PR ld/11384
[binutils.git] / binutils / configure
blob37e64e5ef5424a4ea3c212cb29a85630b51eba92
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
564 ac_unique_file="ar.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 EMULATION_VECTOR
606 EMULATION
607 OBJDUMP_DEFS
608 BUILD_INSTALL_MISC
609 BUILD_MISC
610 BUILD_DLLWRAP
611 BUILD_WINDMC
612 BUILD_WINDRES
613 DLLTOOL_DEFS
614 BUILD_DLLTOOL
615 BUILD_SRCONV
616 BUILD_NLMCONV
617 NLMCONV_DEFS
618 LTLIBICONV
619 LIBICONV
620 ALLOCA
621 DEMANGLER_NAME
622 EXEEXT_FOR_BUILD
623 CC_FOR_BUILD
624 HDEFINES
625 GENINSRC_NEVER_FALSE
626 GENINSRC_NEVER_TRUE
627 MAINT
628 MAINTAINER_MODE_FALSE
629 MAINTAINER_MODE_TRUE
630 MSGMERGE
631 MSGFMT
632 MKINSTALLDIRS
633 CATOBJEXT
634 GENCAT
635 INSTOBJEXT
636 DATADIRNAME
637 CATALOGS
638 POSUB
639 GMSGFMT
640 XGETTEXT
641 INCINTL
642 LIBINTL_DEP
643 LIBINTL
644 USE_NLS
645 LEXLIB
646 LEX_OUTPUT_ROOT
648 YFLAGS
649 YACC
650 NO_WERROR
651 WARN_CFLAGS
652 OTOOL64
653 OTOOL
654 LIPO
655 NMEDIT
656 DSYMUTIL
657 RANLIB
659 OBJDUMP
660 LN_S
662 ac_ct_DUMPBIN
663 DUMPBIN
665 FGREP
667 LIBTOOL
668 EGREP
669 GREP
671 am__fastdepCC_FALSE
672 am__fastdepCC_TRUE
673 CCDEPMODE
674 AMDEPBACKSLASH
675 AMDEP_FALSE
676 AMDEP_TRUE
677 am__quote
678 am__include
679 DEPDIR
680 am__untar
681 am__tar
682 AMTAR
683 am__leading_dot
684 SET_MAKE
686 mkdir_p
687 MKDIR_P
688 INSTALL_STRIP_PROGRAM
689 STRIP
690 install_sh
691 MAKEINFO
692 AUTOHEADER
693 AUTOMAKE
694 AUTOCONF
695 ACLOCAL
696 VERSION
697 PACKAGE
698 CYGPATH_W
699 am__isrc
700 INSTALL_DATA
701 INSTALL_SCRIPT
702 INSTALL_PROGRAM
703 OBJEXT
704 EXEEXT
705 ac_ct_CC
706 CPPFLAGS
707 LDFLAGS
708 CFLAGS
710 target_os
711 target_vendor
712 target_cpu
713 target
714 host_os
715 host_vendor
716 host_cpu
717 host
718 build_os
719 build_vendor
720 build_cpu
721 build
722 target_alias
723 host_alias
724 build_alias
725 LIBS
726 ECHO_T
727 ECHO_N
728 ECHO_C
729 DEFS
730 mandir
731 localedir
732 libdir
733 psdir
734 pdfdir
735 dvidir
736 htmldir
737 infodir
738 docdir
739 oldincludedir
740 includedir
741 localstatedir
742 sharedstatedir
743 sysconfdir
744 datadir
745 datarootdir
746 libexecdir
747 sbindir
748 bindir
749 program_transform_name
750 prefix
751 exec_prefix
752 PACKAGE_URL
753 PACKAGE_BUGREPORT
754 PACKAGE_STRING
755 PACKAGE_VERSION
756 PACKAGE_TARNAME
757 PACKAGE_NAME
758 PATH_SEPARATOR
759 SHELL'
760 ac_subst_files=''
761 ac_user_opts='
762 enable_option_checking
763 enable_dependency_tracking
764 enable_plugins
765 enable_largefile
766 enable_shared
767 enable_static
768 with_pic
769 enable_fast_install
770 with_gnu_ld
771 enable_libtool_lock
772 enable_targets
773 enable_werror
774 enable_build_warnings
775 enable_nls
776 enable_maintainer_mode
777 enable_rpath
778 with_libiconv_prefix
780 ac_precious_vars='build_alias
781 host_alias
782 target_alias
784 CFLAGS
785 LDFLAGS
786 LIBS
787 CPPFLAGS
789 YACC
790 YFLAGS'
793 # Initialize some variables set by options.
794 ac_init_help=
795 ac_init_version=false
796 ac_unrecognized_opts=
797 ac_unrecognized_sep=
798 # The variables have the same names as the options, with
799 # dashes changed to underlines.
800 cache_file=/dev/null
801 exec_prefix=NONE
802 no_create=
803 no_recursion=
804 prefix=NONE
805 program_prefix=NONE
806 program_suffix=NONE
807 program_transform_name=s,x,x,
808 silent=
809 site=
810 srcdir=
811 verbose=
812 x_includes=NONE
813 x_libraries=NONE
815 # Installation directory options.
816 # These are left unexpanded so users can "make install exec_prefix=/foo"
817 # and all the variables that are supposed to be based on exec_prefix
818 # by default will actually change.
819 # Use braces instead of parens because sh, perl, etc. also accept them.
820 # (The list follows the same order as the GNU Coding Standards.)
821 bindir='${exec_prefix}/bin'
822 sbindir='${exec_prefix}/sbin'
823 libexecdir='${exec_prefix}/libexec'
824 datarootdir='${prefix}/share'
825 datadir='${datarootdir}'
826 sysconfdir='${prefix}/etc'
827 sharedstatedir='${prefix}/com'
828 localstatedir='${prefix}/var'
829 includedir='${prefix}/include'
830 oldincludedir='/usr/include'
831 docdir='${datarootdir}/doc/${PACKAGE}'
832 infodir='${datarootdir}/info'
833 htmldir='${docdir}'
834 dvidir='${docdir}'
835 pdfdir='${docdir}'
836 psdir='${docdir}'
837 libdir='${exec_prefix}/lib'
838 localedir='${datarootdir}/locale'
839 mandir='${datarootdir}/man'
841 ac_prev=
842 ac_dashdash=
843 for ac_option
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\$ac_option
848 ac_prev=
849 continue
852 case $ac_option in
853 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 *) ac_optarg=yes ;;
855 esac
857 # Accept the important Cygnus configure options, so we can diagnose typos.
859 case $ac_dashdash$ac_option in
861 ac_dashdash=yes ;;
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
864 ac_prev=bindir ;;
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866 bindir=$ac_optarg ;;
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
880 --config-cache | -C)
881 cache_file=config.cache ;;
883 -datadir | --datadir | --datadi | --datad)
884 ac_prev=datadir ;;
885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
886 datadir=$ac_optarg ;;
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
895 -disable-* | --disable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error "invalid feature name: $ac_useropt"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
904 "enable_$ac_useropt"
905 "*) ;;
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
908 esac
909 eval enable_$ac_useropt=no ;;
911 -docdir | --docdir | --docdi | --doc | --do)
912 ac_prev=docdir ;;
913 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914 docdir=$ac_optarg ;;
916 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917 ac_prev=dvidir ;;
918 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919 dvidir=$ac_optarg ;;
921 -enable-* | --enable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
930 "enable_$ac_useropt"
931 "*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=\$ac_optarg ;;
937 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939 | --exec | --exe | --ex)
940 ac_prev=exec_prefix ;;
941 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943 | --exec=* | --exe=* | --ex=*)
944 exec_prefix=$ac_optarg ;;
946 -gas | --gas | --ga | --g)
947 # Obsolete; use --with-gas.
948 with_gas=yes ;;
950 -help | --help | --hel | --he | -h)
951 ac_init_help=long ;;
952 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953 ac_init_help=recursive ;;
954 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955 ac_init_help=short ;;
957 -host | --host | --hos | --ho)
958 ac_prev=host_alias ;;
959 -host=* | --host=* | --hos=* | --ho=*)
960 host_alias=$ac_optarg ;;
962 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963 ac_prev=htmldir ;;
964 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965 | --ht=*)
966 htmldir=$ac_optarg ;;
968 -includedir | --includedir | --includedi | --included | --include \
969 | --includ | --inclu | --incl | --inc)
970 ac_prev=includedir ;;
971 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972 | --includ=* | --inclu=* | --incl=* | --inc=*)
973 includedir=$ac_optarg ;;
975 -infodir | --infodir | --infodi | --infod | --info | --inf)
976 ac_prev=infodir ;;
977 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978 infodir=$ac_optarg ;;
980 -libdir | --libdir | --libdi | --libd)
981 ac_prev=libdir ;;
982 -libdir=* | --libdir=* | --libdi=* | --libd=*)
983 libdir=$ac_optarg ;;
985 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986 | --libexe | --libex | --libe)
987 ac_prev=libexecdir ;;
988 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989 | --libexe=* | --libex=* | --libe=*)
990 libexecdir=$ac_optarg ;;
992 -localedir | --localedir | --localedi | --localed | --locale)
993 ac_prev=localedir ;;
994 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995 localedir=$ac_optarg ;;
997 -localstatedir | --localstatedir | --localstatedi | --localstated \
998 | --localstate | --localstat | --localsta | --localst | --locals)
999 ac_prev=localstatedir ;;
1000 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1001 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1002 localstatedir=$ac_optarg ;;
1004 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005 ac_prev=mandir ;;
1006 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007 mandir=$ac_optarg ;;
1009 -nfp | --nfp | --nf)
1010 # Obsolete; use --without-fp.
1011 with_fp=no ;;
1013 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014 | --no-cr | --no-c | -n)
1015 no_create=yes ;;
1017 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019 no_recursion=yes ;;
1021 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023 | --oldin | --oldi | --old | --ol | --o)
1024 ac_prev=oldincludedir ;;
1025 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028 oldincludedir=$ac_optarg ;;
1030 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031 ac_prev=prefix ;;
1032 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033 prefix=$ac_optarg ;;
1035 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036 | --program-pre | --program-pr | --program-p)
1037 ac_prev=program_prefix ;;
1038 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040 program_prefix=$ac_optarg ;;
1042 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043 | --program-suf | --program-su | --program-s)
1044 ac_prev=program_suffix ;;
1045 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047 program_suffix=$ac_optarg ;;
1049 -program-transform-name | --program-transform-name \
1050 | --program-transform-nam | --program-transform-na \
1051 | --program-transform-n | --program-transform- \
1052 | --program-transform | --program-transfor \
1053 | --program-transfo | --program-transf \
1054 | --program-trans | --program-tran \
1055 | --progr-tra | --program-tr | --program-t)
1056 ac_prev=program_transform_name ;;
1057 -program-transform-name=* | --program-transform-name=* \
1058 | --program-transform-nam=* | --program-transform-na=* \
1059 | --program-transform-n=* | --program-transform-=* \
1060 | --program-transform=* | --program-transfor=* \
1061 | --program-transfo=* | --program-transf=* \
1062 | --program-trans=* | --program-tran=* \
1063 | --progr-tra=* | --program-tr=* | --program-t=*)
1064 program_transform_name=$ac_optarg ;;
1066 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067 ac_prev=pdfdir ;;
1068 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069 pdfdir=$ac_optarg ;;
1071 -psdir | --psdir | --psdi | --psd | --ps)
1072 ac_prev=psdir ;;
1073 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074 psdir=$ac_optarg ;;
1076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077 | -silent | --silent | --silen | --sile | --sil)
1078 silent=yes ;;
1080 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1081 ac_prev=sbindir ;;
1082 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1083 | --sbi=* | --sb=*)
1084 sbindir=$ac_optarg ;;
1086 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088 | --sharedst | --shareds | --shared | --share | --shar \
1089 | --sha | --sh)
1090 ac_prev=sharedstatedir ;;
1091 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1094 | --sha=* | --sh=*)
1095 sharedstatedir=$ac_optarg ;;
1097 -site | --site | --sit)
1098 ac_prev=site ;;
1099 -site=* | --site=* | --sit=*)
1100 site=$ac_optarg ;;
1102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1103 ac_prev=srcdir ;;
1104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1105 srcdir=$ac_optarg ;;
1107 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108 | --syscon | --sysco | --sysc | --sys | --sy)
1109 ac_prev=sysconfdir ;;
1110 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1112 sysconfdir=$ac_optarg ;;
1114 -target | --target | --targe | --targ | --tar | --ta | --t)
1115 ac_prev=target_alias ;;
1116 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1117 target_alias=$ac_optarg ;;
1119 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120 verbose=yes ;;
1122 -version | --version | --versio | --versi | --vers | -V)
1123 ac_init_version=: ;;
1125 -with-* | --with-*)
1126 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error "invalid package name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1134 "with_$ac_useropt"
1135 "*) ;;
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1138 esac
1139 eval with_$ac_useropt=\$ac_optarg ;;
1141 -without-* | --without-*)
1142 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error "invalid package name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1150 "with_$ac_useropt"
1151 "*) ;;
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1154 esac
1155 eval with_$ac_useropt=no ;;
1157 --x)
1158 # Obsolete; use --with-x.
1159 with_x=yes ;;
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1175 -*) as_fn_error "unrecognized option: \`$ac_option'
1176 Try \`$0 --help' for more information."
1179 *=*)
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
1182 case $ac_envvar in #(
1183 '' | [0-9]* | *[!_$as_cr_alnum]* )
1184 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1185 esac
1186 eval $ac_envvar=\$ac_optarg
1187 export $ac_envvar ;;
1190 # FIXME: should be removed in autoconf 3.0.
1191 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1197 esac
1198 done
1200 if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202 as_fn_error "missing argument to $ac_option"
1205 if test -n "$ac_unrecognized_opts"; then
1206 case $enable_option_checking in
1207 no) ;;
1208 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1209 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1210 esac
1213 # Check all directory arguments for consistency.
1214 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215 datadir sysconfdir sharedstatedir localstatedir includedir \
1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217 libdir localedir mandir
1219 eval ac_val=\$$ac_var
1220 # Remove trailing slashes.
1221 case $ac_val in
1222 */ )
1223 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224 eval $ac_var=\$ac_val;;
1225 esac
1226 # Be sure to have absolute directory names.
1227 case $ac_val in
1228 [\\/$]* | ?:[\\/]* ) continue;;
1229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230 esac
1231 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1232 done
1234 # There might be people who depend on the old broken behavior: `$host'
1235 # used to hold the argument of --host etc.
1236 # FIXME: To remove some day.
1237 build=$build_alias
1238 host=$host_alias
1239 target=$target_alias
1241 # FIXME: To remove some day.
1242 if test "x$host_alias" != x; then
1243 if test "x$build_alias" = x; then
1244 cross_compiling=maybe
1245 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1246 If a cross compiler is detected then cross compile mode will be used." >&2
1247 elif test "x$build_alias" != "x$host_alias"; then
1248 cross_compiling=yes
1252 ac_tool_prefix=
1253 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1255 test "$silent" = yes && exec 6>/dev/null
1258 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259 ac_ls_di=`ls -di .` &&
1260 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1261 as_fn_error "working directory cannot be determined"
1262 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1263 as_fn_error "pwd does not report name of working directory"
1266 # Find the source files, if location was not specified.
1267 if test -z "$srcdir"; then
1268 ac_srcdir_defaulted=yes
1269 # Try the directory containing this script, then the parent directory.
1270 ac_confdir=`$as_dirname -- "$as_myself" ||
1271 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272 X"$as_myself" : 'X\(//\)[^/]' \| \
1273 X"$as_myself" : 'X\(//\)$' \| \
1274 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1275 $as_echo X"$as_myself" |
1276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277 s//\1/
1280 /^X\(\/\/\)[^/].*/{
1281 s//\1/
1284 /^X\(\/\/\)$/{
1285 s//\1/
1288 /^X\(\/\).*/{
1289 s//\1/
1292 s/.*/./; q'`
1293 srcdir=$ac_confdir
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295 srcdir=..
1297 else
1298 ac_srcdir_defaulted=no
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1304 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305 ac_abs_confdir=`(
1306 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1307 pwd)`
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 srcdir=.
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1315 case $srcdir in
1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317 esac
1318 for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323 done
1326 # Report the --help message.
1328 if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1331 cat <<_ACEOF
1332 \`configure' configures this package to adapt to many kinds of systems.
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE. See below for descriptions of some of the useful variables.
1339 Defaults for the options are specified in brackets.
1341 Configuration:
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1352 Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
1354 [$ac_default_prefix]
1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1356 [PREFIX]
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1363 For better control, use the options below.
1365 Fine tuning of the installation directories:
1366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
1385 _ACEOF
1387 cat <<\_ACEOF
1389 Program names:
1390 --program-prefix=PREFIX prepend PREFIX to installed program names
1391 --program-suffix=SUFFIX append SUFFIX to installed program names
1392 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1394 System types:
1395 --build=BUILD configure for building on BUILD [guessed]
1396 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1397 --target=TARGET configure for building compilers for TARGET [HOST]
1398 _ACEOF
1401 if test -n "$ac_init_help"; then
1403 cat <<\_ACEOF
1405 Optional Features:
1406 --disable-option-checking ignore unrecognized --enable/--with options
1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1409 --disable-dependency-tracking speeds up one-time build
1410 --enable-dependency-tracking do not reject slow dependency extractors
1411 --enable-plugins Enable support for plugins (defaults no)
1412 --disable-largefile omit support for large files
1413 --enable-shared[=PKGS] build shared libraries [default=yes]
1414 --enable-static[=PKGS] build static libraries [default=yes]
1415 --enable-fast-install[=PKGS]
1416 optimize for fast installation [default=yes]
1417 --disable-libtool-lock avoid locking (might break parallel builds)
1418 --enable-targets alternative target configurations
1419 --enable-werror treat compile warnings as errors
1420 --enable-build-warnings enable build-time compiler warnings
1421 --disable-nls do not use Native Language Support
1422 --enable-maintainer-mode enable make rules and dependencies not useful
1423 (and sometimes confusing) to the casual installer
1424 --disable-rpath do not hardcode runtime library paths
1426 Optional Packages:
1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1429 --with-pic try to use only PIC/non-PIC objects [default=use
1430 both]
1431 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1432 --with-gnu-ld assume the C compiler uses GNU ld default=no
1433 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1434 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1436 Some influential environment variables:
1437 CC C compiler command
1438 CFLAGS C compiler flags
1439 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1440 nonstandard directory <lib dir>
1441 LIBS libraries to pass to the linker, e.g. -l<library>
1442 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1443 you have headers in a nonstandard directory <include dir>
1444 CPP C preprocessor
1445 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1446 the first program found out of: `bison -y', `byacc', `yacc'.
1447 YFLAGS The list of arguments that will be passed by default to $YACC.
1448 This script will default YFLAGS to the empty string to avoid a
1449 default value of `-d' given by some make applications.
1451 Use these variables to override the choices made by `configure' or to help
1452 it to find libraries and programs with nonstandard names/locations.
1454 Report bugs to the package provider.
1455 _ACEOF
1456 ac_status=$?
1459 if test "$ac_init_help" = "recursive"; then
1460 # If there are subdirs, report their specific --help.
1461 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1462 test -d "$ac_dir" ||
1463 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1464 continue
1465 ac_builddir=.
1467 case "$ac_dir" in
1468 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1471 # A ".." for each directory in $ac_dir_suffix.
1472 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1473 case $ac_top_builddir_sub in
1474 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1476 esac ;;
1477 esac
1478 ac_abs_top_builddir=$ac_pwd
1479 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1480 # for backward compatibility:
1481 ac_top_builddir=$ac_top_build_prefix
1483 case $srcdir in
1484 .) # We are building in place.
1485 ac_srcdir=.
1486 ac_top_srcdir=$ac_top_builddir_sub
1487 ac_abs_top_srcdir=$ac_pwd ;;
1488 [\\/]* | ?:[\\/]* ) # Absolute name.
1489 ac_srcdir=$srcdir$ac_dir_suffix;
1490 ac_top_srcdir=$srcdir
1491 ac_abs_top_srcdir=$srcdir ;;
1492 *) # Relative name.
1493 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1494 ac_top_srcdir=$ac_top_build_prefix$srcdir
1495 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1496 esac
1497 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1499 cd "$ac_dir" || { ac_status=$?; continue; }
1500 # Check for guested configure.
1501 if test -f "$ac_srcdir/configure.gnu"; then
1502 echo &&
1503 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1504 elif test -f "$ac_srcdir/configure"; then
1505 echo &&
1506 $SHELL "$ac_srcdir/configure" --help=recursive
1507 else
1508 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1509 fi || ac_status=$?
1510 cd "$ac_pwd" || { ac_status=$?; break; }
1511 done
1514 test -n "$ac_init_help" && exit $ac_status
1515 if $ac_init_version; then
1516 cat <<\_ACEOF
1517 configure
1518 generated by GNU Autoconf 2.64
1520 Copyright (C) 2009 Free Software Foundation, Inc.
1521 This configure script is free software; the Free Software Foundation
1522 gives unlimited permission to copy, distribute and modify it.
1523 _ACEOF
1524 exit
1527 ## ------------------------ ##
1528 ## Autoconf initialization. ##
1529 ## ------------------------ ##
1531 # ac_fn_c_try_compile LINENO
1532 # --------------------------
1533 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1534 ac_fn_c_try_compile ()
1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537 rm -f conftest.$ac_objext
1538 if { { ac_try="$ac_compile"
1539 case "(($ac_try" in
1540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541 *) ac_try_echo=$ac_try;;
1542 esac
1543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544 $as_echo "$ac_try_echo"; } >&5
1545 (eval "$ac_compile") 2>conftest.err
1546 ac_status=$?
1547 if test -s conftest.err; then
1548 grep -v '^ *+' conftest.err >conftest.er1
1549 cat conftest.er1 >&5
1550 mv -f conftest.er1 conftest.err
1552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553 test $ac_status = 0; } && {
1554 test -z "$ac_c_werror_flag" ||
1555 test ! -s conftest.err
1556 } && test -s conftest.$ac_objext; then :
1557 ac_retval=0
1558 else
1559 $as_echo "$as_me: failed program was:" >&5
1560 sed 's/^/| /' conftest.$ac_ext >&5
1562 ac_retval=1
1564 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1565 return $ac_retval
1567 } # ac_fn_c_try_compile
1569 # ac_fn_c_try_link LINENO
1570 # -----------------------
1571 # Try to link conftest.$ac_ext, and return whether this succeeded.
1572 ac_fn_c_try_link ()
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 rm -f conftest.$ac_objext conftest$ac_exeext
1576 if { { ac_try="$ac_link"
1577 case "(($ac_try" in
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1580 esac
1581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582 $as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_link") 2>conftest.err
1584 ac_status=$?
1585 if test -s conftest.err; then
1586 grep -v '^ *+' conftest.err >conftest.er1
1587 cat conftest.er1 >&5
1588 mv -f conftest.er1 conftest.err
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } && {
1592 test -z "$ac_c_werror_flag" ||
1593 test ! -s conftest.err
1594 } && test -s conftest$ac_exeext && {
1595 test "$cross_compiling" = yes ||
1596 $as_test_x conftest$ac_exeext
1597 }; then :
1598 ac_retval=0
1599 else
1600 $as_echo "$as_me: failed program was:" >&5
1601 sed 's/^/| /' conftest.$ac_ext >&5
1603 ac_retval=1
1605 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1606 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1607 # interfere with the next link command; also delete a directory that is
1608 # left behind by Apple's compiler. We do this before executing the actions.
1609 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1610 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1611 return $ac_retval
1613 } # ac_fn_c_try_link
1615 # ac_fn_c_try_cpp LINENO
1616 # ----------------------
1617 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1618 ac_fn_c_try_cpp ()
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 if { { ac_try="$ac_cpp conftest.$ac_ext"
1622 case "(($ac_try" in
1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624 *) ac_try_echo=$ac_try;;
1625 esac
1626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627 $as_echo "$ac_try_echo"; } >&5
1628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1629 ac_status=$?
1630 if test -s conftest.err; then
1631 grep -v '^ *+' conftest.err >conftest.er1
1632 cat conftest.er1 >&5
1633 mv -f conftest.er1 conftest.err
1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636 test $ac_status = 0; } >/dev/null && {
1637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1638 test ! -s conftest.err
1639 }; then :
1640 ac_retval=0
1641 else
1642 $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1645 ac_retval=1
1647 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1648 return $ac_retval
1650 } # ac_fn_c_try_cpp
1652 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1653 # -------------------------------------------------------
1654 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1655 # the include files in INCLUDES and setting the cache variable VAR
1656 # accordingly.
1657 ac_fn_c_check_header_mongrel ()
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662 $as_echo_n "checking for $2... " >&6; }
1663 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1664 $as_echo_n "(cached) " >&6
1666 eval ac_res=\$$3
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1668 $as_echo "$ac_res" >&6; }
1669 else
1670 # Is the header compilable?
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1672 $as_echo_n "checking $2 usability... " >&6; }
1673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1674 /* end confdefs.h. */
1676 #include <$2>
1677 _ACEOF
1678 if ac_fn_c_try_compile "$LINENO"; then :
1679 ac_header_compiler=yes
1680 else
1681 ac_header_compiler=no
1683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1685 $as_echo "$ac_header_compiler" >&6; }
1687 # Is the header present?
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1689 $as_echo_n "checking $2 presence... " >&6; }
1690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1691 /* end confdefs.h. */
1692 #include <$2>
1693 _ACEOF
1694 if ac_fn_c_try_cpp "$LINENO"; then :
1695 ac_header_preproc=yes
1696 else
1697 ac_header_preproc=no
1699 rm -f conftest.err conftest.$ac_ext
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1701 $as_echo "$ac_header_preproc" >&6; }
1703 # So? What about this header?
1704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1705 yes:no: )
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1707 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1709 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1711 no:yes:* )
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1713 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1715 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1717 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1719 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1721 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1723 esac
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725 $as_echo_n "checking for $2... " >&6; }
1726 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1727 $as_echo_n "(cached) " >&6
1728 else
1729 eval "$3=\$ac_header_compiler"
1731 eval ac_res=\$$3
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1733 $as_echo "$ac_res" >&6; }
1735 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1737 } # ac_fn_c_check_header_mongrel
1739 # ac_fn_c_try_run LINENO
1740 # ----------------------
1741 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1742 # that executables *can* be run.
1743 ac_fn_c_try_run ()
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 if { { ac_try="$ac_link"
1747 case "(($ac_try" in
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1750 esac
1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 $as_echo "$ac_try_echo"; } >&5
1753 (eval "$ac_link") 2>&5
1754 ac_status=$?
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1757 { { case "(($ac_try" in
1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759 *) ac_try_echo=$ac_try;;
1760 esac
1761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762 $as_echo "$ac_try_echo"; } >&5
1763 (eval "$ac_try") 2>&5
1764 ac_status=$?
1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766 test $ac_status = 0; }; }; then :
1767 ac_retval=0
1768 else
1769 $as_echo "$as_me: program exited with status $ac_status" >&5
1770 $as_echo "$as_me: failed program was:" >&5
1771 sed 's/^/| /' conftest.$ac_ext >&5
1773 ac_retval=$ac_status
1775 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1776 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1777 return $ac_retval
1779 } # ac_fn_c_try_run
1781 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1782 # -------------------------------------------------------
1783 # Tests whether HEADER exists and can be compiled using the include files in
1784 # INCLUDES, setting the cache variable VAR accordingly.
1785 ac_fn_c_check_header_compile ()
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1789 $as_echo_n "checking for $2... " >&6; }
1790 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1791 $as_echo_n "(cached) " >&6
1792 else
1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794 /* end confdefs.h. */
1796 #include <$2>
1797 _ACEOF
1798 if ac_fn_c_try_compile "$LINENO"; then :
1799 eval "$3=yes"
1800 else
1801 eval "$3=no"
1803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1805 eval ac_res=\$$3
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1807 $as_echo "$ac_res" >&6; }
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1810 } # ac_fn_c_check_header_compile
1812 # ac_fn_c_check_func LINENO FUNC VAR
1813 # ----------------------------------
1814 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1815 ac_fn_c_check_func ()
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819 $as_echo_n "checking for $2... " >&6; }
1820 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1821 $as_echo_n "(cached) " >&6
1822 else
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h. */
1825 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1827 #define $2 innocuous_$2
1829 /* System header to define __stub macros and hopefully few prototypes,
1830 which can conflict with char $2 (); below.
1831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1832 <limits.h> exists even on freestanding compilers. */
1834 #ifdef __STDC__
1835 # include <limits.h>
1836 #else
1837 # include <assert.h>
1838 #endif
1840 #undef $2
1842 /* Override any GCC internal prototype to avoid an error.
1843 Use char because int might match the return type of a GCC
1844 builtin and then its argument prototype would still apply. */
1845 #ifdef __cplusplus
1846 extern "C"
1847 #endif
1848 char $2 ();
1849 /* The GNU C library defines this for functions which it implements
1850 to always fail with ENOSYS. Some functions are actually named
1851 something starting with __ and the normal name is an alias. */
1852 #if defined __stub_$2 || defined __stub___$2
1853 choke me
1854 #endif
1857 main ()
1859 return $2 ();
1861 return 0;
1863 _ACEOF
1864 if ac_fn_c_try_link "$LINENO"; then :
1865 eval "$3=yes"
1866 else
1867 eval "$3=no"
1869 rm -f core conftest.err conftest.$ac_objext \
1870 conftest$ac_exeext conftest.$ac_ext
1872 eval ac_res=\$$3
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874 $as_echo "$ac_res" >&6; }
1875 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1877 } # ac_fn_c_check_func
1879 # ac_fn_c_check_decl LINENO SYMBOL VAR
1880 # ------------------------------------
1881 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1882 ac_fn_c_check_decl ()
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1886 $as_echo_n "checking whether $2 is declared... " >&6; }
1887 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1888 $as_echo_n "(cached) " >&6
1889 else
1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891 /* end confdefs.h. */
1894 main ()
1896 #ifndef $2
1897 (void) $2;
1898 #endif
1901 return 0;
1903 _ACEOF
1904 if ac_fn_c_try_compile "$LINENO"; then :
1905 eval "$3=yes"
1906 else
1907 eval "$3=no"
1909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1911 eval ac_res=\$$3
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913 $as_echo "$ac_res" >&6; }
1914 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1916 } # ac_fn_c_check_decl
1917 cat >config.log <<_ACEOF
1918 This file contains any messages produced by compilers while
1919 running configure, to aid debugging if configure makes a mistake.
1921 It was created by $as_me, which was
1922 generated by GNU Autoconf 2.64. Invocation command line was
1924 $ $0 $@
1926 _ACEOF
1927 exec 5>>config.log
1929 cat <<_ASUNAME
1930 ## --------- ##
1931 ## Platform. ##
1932 ## --------- ##
1934 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1935 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1936 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1937 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1938 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1940 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1941 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1943 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1944 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1945 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1946 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1947 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1948 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1949 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1951 _ASUNAME
1953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954 for as_dir in $PATH
1956 IFS=$as_save_IFS
1957 test -z "$as_dir" && as_dir=.
1958 $as_echo "PATH: $as_dir"
1959 done
1960 IFS=$as_save_IFS
1962 } >&5
1964 cat >&5 <<_ACEOF
1967 ## ----------- ##
1968 ## Core tests. ##
1969 ## ----------- ##
1971 _ACEOF
1974 # Keep a trace of the command line.
1975 # Strip out --no-create and --no-recursion so they do not pile up.
1976 # Strip out --silent because we don't want to record it for future runs.
1977 # Also quote any args containing shell meta-characters.
1978 # Make two passes to allow for proper duplicate-argument suppression.
1979 ac_configure_args=
1980 ac_configure_args0=
1981 ac_configure_args1=
1982 ac_must_keep_next=false
1983 for ac_pass in 1 2
1985 for ac_arg
1987 case $ac_arg in
1988 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1989 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1990 | -silent | --silent | --silen | --sile | --sil)
1991 continue ;;
1992 *\'*)
1993 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1994 esac
1995 case $ac_pass in
1996 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1998 as_fn_append ac_configure_args1 " '$ac_arg'"
1999 if test $ac_must_keep_next = true; then
2000 ac_must_keep_next=false # Got value, back to normal.
2001 else
2002 case $ac_arg in
2003 *=* | --config-cache | -C | -disable-* | --disable-* \
2004 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2005 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2006 | -with-* | --with-* | -without-* | --without-* | --x)
2007 case "$ac_configure_args0 " in
2008 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2009 esac
2011 -* ) ac_must_keep_next=true ;;
2012 esac
2014 as_fn_append ac_configure_args " '$ac_arg'"
2016 esac
2017 done
2018 done
2019 { ac_configure_args0=; unset ac_configure_args0;}
2020 { ac_configure_args1=; unset ac_configure_args1;}
2022 # When interrupted or exit'd, cleanup temporary files, and complete
2023 # config.log. We remove comments because anyway the quotes in there
2024 # would cause problems or look ugly.
2025 # WARNING: Use '\'' to represent an apostrophe within the trap.
2026 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2027 trap 'exit_status=$?
2028 # Save into config.log some information that might help in debugging.
2030 echo
2032 cat <<\_ASBOX
2033 ## ---------------- ##
2034 ## Cache variables. ##
2035 ## ---------------- ##
2036 _ASBOX
2037 echo
2038 # The following way of writing the cache mishandles newlines in values,
2040 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2041 eval ac_val=\$$ac_var
2042 case $ac_val in #(
2043 *${as_nl}*)
2044 case $ac_var in #(
2045 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2046 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2047 esac
2048 case $ac_var in #(
2049 _ | IFS | as_nl) ;; #(
2050 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2051 *) { eval $ac_var=; unset $ac_var;} ;;
2052 esac ;;
2053 esac
2054 done
2055 (set) 2>&1 |
2056 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2057 *${as_nl}ac_space=\ *)
2058 sed -n \
2059 "s/'\''/'\''\\\\'\'''\''/g;
2060 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2061 ;; #(
2063 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2065 esac |
2066 sort
2068 echo
2070 cat <<\_ASBOX
2071 ## ----------------- ##
2072 ## Output variables. ##
2073 ## ----------------- ##
2074 _ASBOX
2075 echo
2076 for ac_var in $ac_subst_vars
2078 eval ac_val=\$$ac_var
2079 case $ac_val in
2080 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2081 esac
2082 $as_echo "$ac_var='\''$ac_val'\''"
2083 done | sort
2084 echo
2086 if test -n "$ac_subst_files"; then
2087 cat <<\_ASBOX
2088 ## ------------------- ##
2089 ## File substitutions. ##
2090 ## ------------------- ##
2091 _ASBOX
2092 echo
2093 for ac_var in $ac_subst_files
2095 eval ac_val=\$$ac_var
2096 case $ac_val in
2097 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2098 esac
2099 $as_echo "$ac_var='\''$ac_val'\''"
2100 done | sort
2101 echo
2104 if test -s confdefs.h; then
2105 cat <<\_ASBOX
2106 ## ----------- ##
2107 ## confdefs.h. ##
2108 ## ----------- ##
2109 _ASBOX
2110 echo
2111 cat confdefs.h
2112 echo
2114 test "$ac_signal" != 0 &&
2115 $as_echo "$as_me: caught signal $ac_signal"
2116 $as_echo "$as_me: exit $exit_status"
2117 } >&5
2118 rm -f core *.core core.conftest.* &&
2119 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2120 exit $exit_status
2122 for ac_signal in 1 2 13 15; do
2123 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2124 done
2125 ac_signal=0
2127 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2128 rm -f -r conftest* confdefs.h
2130 $as_echo "/* confdefs.h */" > confdefs.h
2132 # Predefined preprocessor variables.
2134 cat >>confdefs.h <<_ACEOF
2135 #define PACKAGE_NAME "$PACKAGE_NAME"
2136 _ACEOF
2138 cat >>confdefs.h <<_ACEOF
2139 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2140 _ACEOF
2142 cat >>confdefs.h <<_ACEOF
2143 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2144 _ACEOF
2146 cat >>confdefs.h <<_ACEOF
2147 #define PACKAGE_STRING "$PACKAGE_STRING"
2148 _ACEOF
2150 cat >>confdefs.h <<_ACEOF
2151 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2152 _ACEOF
2154 cat >>confdefs.h <<_ACEOF
2155 #define PACKAGE_URL "$PACKAGE_URL"
2156 _ACEOF
2159 # Let the site file select an alternate cache file if it wants to.
2160 # Prefer an explicitly selected file to automatically selected ones.
2161 ac_site_file1=NONE
2162 ac_site_file2=NONE
2163 if test -n "$CONFIG_SITE"; then
2164 ac_site_file1=$CONFIG_SITE
2165 elif test "x$prefix" != xNONE; then
2166 ac_site_file1=$prefix/share/config.site
2167 ac_site_file2=$prefix/etc/config.site
2168 else
2169 ac_site_file1=$ac_default_prefix/share/config.site
2170 ac_site_file2=$ac_default_prefix/etc/config.site
2172 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2174 test "x$ac_site_file" = xNONE && continue
2175 if test -r "$ac_site_file"; then
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2177 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2178 sed 's/^/| /' "$ac_site_file" >&5
2179 . "$ac_site_file"
2181 done
2183 if test -r "$cache_file"; then
2184 # Some versions of bash will fail to source /dev/null (special
2185 # files actually), so we avoid doing that.
2186 if test -f "$cache_file"; then
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2188 $as_echo "$as_me: loading cache $cache_file" >&6;}
2189 case $cache_file in
2190 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2191 *) . "./$cache_file";;
2192 esac
2194 else
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2196 $as_echo "$as_me: creating cache $cache_file" >&6;}
2197 >$cache_file
2200 # Check that the precious variables saved in the cache have kept the same
2201 # value.
2202 ac_cache_corrupted=false
2203 for ac_var in $ac_precious_vars; do
2204 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2205 eval ac_new_set=\$ac_env_${ac_var}_set
2206 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2207 eval ac_new_val=\$ac_env_${ac_var}_value
2208 case $ac_old_set,$ac_new_set in
2209 set,)
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2211 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2212 ac_cache_corrupted=: ;;
2213 ,set)
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2215 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2216 ac_cache_corrupted=: ;;
2217 ,);;
2219 if test "x$ac_old_val" != "x$ac_new_val"; then
2220 # differences in whitespace do not lead to failure.
2221 ac_old_val_w=`echo x $ac_old_val`
2222 ac_new_val_w=`echo x $ac_new_val`
2223 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2225 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2226 ac_cache_corrupted=:
2227 else
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2229 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2230 eval $ac_var=\$ac_old_val
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2233 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2235 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2236 fi;;
2237 esac
2238 # Pass precious variables to config.status.
2239 if test "$ac_new_set" = set; then
2240 case $ac_new_val in
2241 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2242 *) ac_arg=$ac_var=$ac_new_val ;;
2243 esac
2244 case " $ac_configure_args " in
2245 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2246 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2247 esac
2249 done
2250 if $ac_cache_corrupted; then
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2254 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2255 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2257 ## -------------------- ##
2258 ## Main body of script. ##
2259 ## -------------------- ##
2261 ac_ext=c
2262 ac_cpp='$CPP $CPPFLAGS'
2263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2273 ac_aux_dir=
2274 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2275 for ac_t in install-sh install.sh shtool; do
2276 if test -f "$ac_dir/$ac_t"; then
2277 ac_aux_dir=$ac_dir
2278 ac_install_sh="$ac_aux_dir/$ac_t -c"
2279 break 2
2281 done
2282 done
2283 if test -z "$ac_aux_dir"; then
2284 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2287 # These three variables are undocumented and unsupported,
2288 # and are intended to be withdrawn in a future Autoconf release.
2289 # They can cause serious problems if a builder's source tree is in a directory
2290 # whose full name contains unusual characters.
2291 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2292 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2293 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2296 # Make sure we can run config.sub.
2297 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2298 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2301 $as_echo_n "checking build system type... " >&6; }
2302 if test "${ac_cv_build+set}" = set; then :
2303 $as_echo_n "(cached) " >&6
2304 else
2305 ac_build_alias=$build_alias
2306 test "x$ac_build_alias" = x &&
2307 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2308 test "x$ac_build_alias" = x &&
2309 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2310 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2311 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2315 $as_echo "$ac_cv_build" >&6; }
2316 case $ac_cv_build in
2317 *-*-*) ;;
2318 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2319 esac
2320 build=$ac_cv_build
2321 ac_save_IFS=$IFS; IFS='-'
2322 set x $ac_cv_build
2323 shift
2324 build_cpu=$1
2325 build_vendor=$2
2326 shift; shift
2327 # Remember, the first character of IFS is used to create $*,
2328 # except with old shells:
2329 build_os=$*
2330 IFS=$ac_save_IFS
2331 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2335 $as_echo_n "checking host system type... " >&6; }
2336 if test "${ac_cv_host+set}" = set; then :
2337 $as_echo_n "(cached) " >&6
2338 else
2339 if test "x$host_alias" = x; then
2340 ac_cv_host=$ac_cv_build
2341 else
2342 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2343 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2348 $as_echo "$ac_cv_host" >&6; }
2349 case $ac_cv_host in
2350 *-*-*) ;;
2351 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2352 esac
2353 host=$ac_cv_host
2354 ac_save_IFS=$IFS; IFS='-'
2355 set x $ac_cv_host
2356 shift
2357 host_cpu=$1
2358 host_vendor=$2
2359 shift; shift
2360 # Remember, the first character of IFS is used to create $*,
2361 # except with old shells:
2362 host_os=$*
2363 IFS=$ac_save_IFS
2364 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2368 $as_echo_n "checking target system type... " >&6; }
2369 if test "${ac_cv_target+set}" = set; then :
2370 $as_echo_n "(cached) " >&6
2371 else
2372 if test "x$target_alias" = x; then
2373 ac_cv_target=$ac_cv_host
2374 else
2375 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2376 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2381 $as_echo "$ac_cv_target" >&6; }
2382 case $ac_cv_target in
2383 *-*-*) ;;
2384 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2385 esac
2386 target=$ac_cv_target
2387 ac_save_IFS=$IFS; IFS='-'
2388 set x $ac_cv_target
2389 shift
2390 target_cpu=$1
2391 target_vendor=$2
2392 shift; shift
2393 # Remember, the first character of IFS is used to create $*,
2394 # except with old shells:
2395 target_os=$*
2396 IFS=$ac_save_IFS
2397 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2400 # The aliases save the names the user supplied, while $host etc.
2401 # will get canonicalized.
2402 test -n "$target_alias" &&
2403 test "$program_prefix$program_suffix$program_transform_name" = \
2404 NONENONEs,x,x, &&
2405 program_prefix=${target_alias}-
2406 ac_ext=c
2407 ac_cpp='$CPP $CPPFLAGS'
2408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2411 if test -n "$ac_tool_prefix"; then
2412 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2413 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2415 $as_echo_n "checking for $ac_word... " >&6; }
2416 if test "${ac_cv_prog_CC+set}" = set; then :
2417 $as_echo_n "(cached) " >&6
2418 else
2419 if test -n "$CC"; then
2420 ac_cv_prog_CC="$CC" # Let the user override the test.
2421 else
2422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423 for as_dir in $PATH
2425 IFS=$as_save_IFS
2426 test -z "$as_dir" && as_dir=.
2427 for ac_exec_ext in '' $ac_executable_extensions; do
2428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2429 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2431 break 2
2433 done
2434 done
2435 IFS=$as_save_IFS
2439 CC=$ac_cv_prog_CC
2440 if test -n "$CC"; then
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2442 $as_echo "$CC" >&6; }
2443 else
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2445 $as_echo "no" >&6; }
2450 if test -z "$ac_cv_prog_CC"; then
2451 ac_ct_CC=$CC
2452 # Extract the first word of "gcc", so it can be a program name with args.
2453 set dummy gcc; ac_word=$2
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2455 $as_echo_n "checking for $ac_word... " >&6; }
2456 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2457 $as_echo_n "(cached) " >&6
2458 else
2459 if test -n "$ac_ct_CC"; then
2460 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2461 else
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 for as_dir in $PATH
2465 IFS=$as_save_IFS
2466 test -z "$as_dir" && as_dir=.
2467 for ac_exec_ext in '' $ac_executable_extensions; do
2468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2469 ac_cv_prog_ac_ct_CC="gcc"
2470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2471 break 2
2473 done
2474 done
2475 IFS=$as_save_IFS
2479 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2480 if test -n "$ac_ct_CC"; then
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2482 $as_echo "$ac_ct_CC" >&6; }
2483 else
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2485 $as_echo "no" >&6; }
2488 if test "x$ac_ct_CC" = x; then
2489 CC=""
2490 else
2491 case $cross_compiling:$ac_tool_warned in
2492 yes:)
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2495 ac_tool_warned=yes ;;
2496 esac
2497 CC=$ac_ct_CC
2499 else
2500 CC="$ac_cv_prog_CC"
2503 if test -z "$CC"; then
2504 if test -n "$ac_tool_prefix"; then
2505 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2506 set dummy ${ac_tool_prefix}cc; ac_word=$2
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2508 $as_echo_n "checking for $ac_word... " >&6; }
2509 if test "${ac_cv_prog_CC+set}" = set; then :
2510 $as_echo_n "(cached) " >&6
2511 else
2512 if test -n "$CC"; then
2513 ac_cv_prog_CC="$CC" # Let the user override the test.
2514 else
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 for as_dir in $PATH
2518 IFS=$as_save_IFS
2519 test -z "$as_dir" && as_dir=.
2520 for ac_exec_ext in '' $ac_executable_extensions; do
2521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2522 ac_cv_prog_CC="${ac_tool_prefix}cc"
2523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2524 break 2
2526 done
2527 done
2528 IFS=$as_save_IFS
2532 CC=$ac_cv_prog_CC
2533 if test -n "$CC"; then
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2535 $as_echo "$CC" >&6; }
2536 else
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2538 $as_echo "no" >&6; }
2544 if test -z "$CC"; then
2545 # Extract the first word of "cc", so it can be a program name with args.
2546 set dummy cc; ac_word=$2
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2548 $as_echo_n "checking for $ac_word... " >&6; }
2549 if test "${ac_cv_prog_CC+set}" = set; then :
2550 $as_echo_n "(cached) " >&6
2551 else
2552 if test -n "$CC"; then
2553 ac_cv_prog_CC="$CC" # Let the user override the test.
2554 else
2555 ac_prog_rejected=no
2556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557 for as_dir in $PATH
2559 IFS=$as_save_IFS
2560 test -z "$as_dir" && as_dir=.
2561 for ac_exec_ext in '' $ac_executable_extensions; do
2562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2563 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2564 ac_prog_rejected=yes
2565 continue
2567 ac_cv_prog_CC="cc"
2568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2569 break 2
2571 done
2572 done
2573 IFS=$as_save_IFS
2575 if test $ac_prog_rejected = yes; then
2576 # We found a bogon in the path, so make sure we never use it.
2577 set dummy $ac_cv_prog_CC
2578 shift
2579 if test $# != 0; then
2580 # We chose a different compiler from the bogus one.
2581 # However, it has the same basename, so the bogon will be chosen
2582 # first if we set CC to just the basename; use the full file name.
2583 shift
2584 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2589 CC=$ac_cv_prog_CC
2590 if test -n "$CC"; then
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2592 $as_echo "$CC" >&6; }
2593 else
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2595 $as_echo "no" >&6; }
2600 if test -z "$CC"; then
2601 if test -n "$ac_tool_prefix"; then
2602 for ac_prog in cl.exe
2604 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2605 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2607 $as_echo_n "checking for $ac_word... " >&6; }
2608 if test "${ac_cv_prog_CC+set}" = set; then :
2609 $as_echo_n "(cached) " >&6
2610 else
2611 if test -n "$CC"; then
2612 ac_cv_prog_CC="$CC" # Let the user override the test.
2613 else
2614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 for as_dir in $PATH
2617 IFS=$as_save_IFS
2618 test -z "$as_dir" && as_dir=.
2619 for ac_exec_ext in '' $ac_executable_extensions; do
2620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2621 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2623 break 2
2625 done
2626 done
2627 IFS=$as_save_IFS
2631 CC=$ac_cv_prog_CC
2632 if test -n "$CC"; then
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2634 $as_echo "$CC" >&6; }
2635 else
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2637 $as_echo "no" >&6; }
2641 test -n "$CC" && break
2642 done
2644 if test -z "$CC"; then
2645 ac_ct_CC=$CC
2646 for ac_prog in cl.exe
2648 # Extract the first word of "$ac_prog", so it can be a program name with args.
2649 set dummy $ac_prog; ac_word=$2
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2651 $as_echo_n "checking for $ac_word... " >&6; }
2652 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2653 $as_echo_n "(cached) " >&6
2654 else
2655 if test -n "$ac_ct_CC"; then
2656 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2657 else
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659 for as_dir in $PATH
2661 IFS=$as_save_IFS
2662 test -z "$as_dir" && as_dir=.
2663 for ac_exec_ext in '' $ac_executable_extensions; do
2664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2665 ac_cv_prog_ac_ct_CC="$ac_prog"
2666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2667 break 2
2669 done
2670 done
2671 IFS=$as_save_IFS
2675 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2676 if test -n "$ac_ct_CC"; then
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2678 $as_echo "$ac_ct_CC" >&6; }
2679 else
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2681 $as_echo "no" >&6; }
2685 test -n "$ac_ct_CC" && break
2686 done
2688 if test "x$ac_ct_CC" = x; then
2689 CC=""
2690 else
2691 case $cross_compiling:$ac_tool_warned in
2692 yes:)
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2695 ac_tool_warned=yes ;;
2696 esac
2697 CC=$ac_ct_CC
2704 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2706 as_fn_error "no acceptable C compiler found in \$PATH
2707 See \`config.log' for more details." "$LINENO" 5; }
2709 # Provide some information about the compiler.
2710 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2711 set X $ac_compile
2712 ac_compiler=$2
2713 for ac_option in --version -v -V -qversion; do
2714 { { ac_try="$ac_compiler $ac_option >&5"
2715 case "(($ac_try" in
2716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717 *) ac_try_echo=$ac_try;;
2718 esac
2719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2720 $as_echo "$ac_try_echo"; } >&5
2721 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2722 ac_status=$?
2723 if test -s conftest.err; then
2724 sed '10a\
2725 ... rest of stderr output deleted ...
2726 10q' conftest.err >conftest.er1
2727 cat conftest.er1 >&5
2728 rm -f conftest.er1 conftest.err
2730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2731 test $ac_status = 0; }
2732 done
2734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2735 /* end confdefs.h. */
2738 main ()
2742 return 0;
2744 _ACEOF
2745 ac_clean_files_save=$ac_clean_files
2746 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2747 # Try to create an executable without -o first, disregard a.out.
2748 # It will help us diagnose broken compilers, and finding out an intuition
2749 # of exeext.
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2751 $as_echo_n "checking for C compiler default output file name... " >&6; }
2752 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2754 # The possible output files:
2755 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2757 ac_rmfiles=
2758 for ac_file in $ac_files
2760 case $ac_file in
2761 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2762 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2763 esac
2764 done
2765 rm -f $ac_rmfiles
2767 if { { ac_try="$ac_link_default"
2768 case "(($ac_try" in
2769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770 *) ac_try_echo=$ac_try;;
2771 esac
2772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2773 $as_echo "$ac_try_echo"; } >&5
2774 (eval "$ac_link_default") 2>&5
2775 ac_status=$?
2776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2777 test $ac_status = 0; }; then :
2778 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2779 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2780 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2781 # so that the user can short-circuit this test for compilers unknown to
2782 # Autoconf.
2783 for ac_file in $ac_files ''
2785 test -f "$ac_file" || continue
2786 case $ac_file in
2787 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2789 [ab].out )
2790 # We found the default executable, but exeext='' is most
2791 # certainly right.
2792 break;;
2793 *.* )
2794 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2795 then :; else
2796 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2798 # We set ac_cv_exeext here because the later test for it is not
2799 # safe: cross compilers may not add the suffix if given an `-o'
2800 # argument, so we may need to know it at that point already.
2801 # Even if this section looks crufty: it has the advantage of
2802 # actually working.
2803 break;;
2805 break;;
2806 esac
2807 done
2808 test "$ac_cv_exeext" = no && ac_cv_exeext=
2810 else
2811 ac_file=''
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2814 $as_echo "$ac_file" >&6; }
2815 if test -z "$ac_file"; then :
2816 $as_echo "$as_me: failed program was:" >&5
2817 sed 's/^/| /' conftest.$ac_ext >&5
2819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2821 { as_fn_set_status 77
2822 as_fn_error "C compiler cannot create executables
2823 See \`config.log' for more details." "$LINENO" 5; }; }
2825 ac_exeext=$ac_cv_exeext
2827 # Check that the compiler produces executables we can run. If not, either
2828 # the compiler is broken, or we cross compile.
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2830 $as_echo_n "checking whether the C compiler works... " >&6; }
2831 # If not cross compiling, check that we can run a simple program.
2832 if test "$cross_compiling" != yes; then
2833 if { ac_try='./$ac_file'
2834 { { case "(($ac_try" in
2835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2836 *) ac_try_echo=$ac_try;;
2837 esac
2838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2839 $as_echo "$ac_try_echo"; } >&5
2840 (eval "$ac_try") 2>&5
2841 ac_status=$?
2842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2843 test $ac_status = 0; }; }; then
2844 cross_compiling=no
2845 else
2846 if test "$cross_compiling" = maybe; then
2847 cross_compiling=yes
2848 else
2849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2851 as_fn_error "cannot run C compiled programs.
2852 If you meant to cross compile, use \`--host'.
2853 See \`config.log' for more details." "$LINENO" 5; }
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2858 $as_echo "yes" >&6; }
2860 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2861 ac_clean_files=$ac_clean_files_save
2862 # Check that the compiler produces executables we can run. If not, either
2863 # the compiler is broken, or we cross compile.
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2865 $as_echo_n "checking whether we are cross compiling... " >&6; }
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2867 $as_echo "$cross_compiling" >&6; }
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2870 $as_echo_n "checking for suffix of executables... " >&6; }
2871 if { { ac_try="$ac_link"
2872 case "(($ac_try" in
2873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874 *) ac_try_echo=$ac_try;;
2875 esac
2876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2877 $as_echo "$ac_try_echo"; } >&5
2878 (eval "$ac_link") 2>&5
2879 ac_status=$?
2880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2881 test $ac_status = 0; }; then :
2882 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2883 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2884 # work properly (i.e., refer to `conftest.exe'), while it won't with
2885 # `rm'.
2886 for ac_file in conftest.exe conftest conftest.*; do
2887 test -f "$ac_file" || continue
2888 case $ac_file in
2889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2890 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2891 break;;
2892 * ) break;;
2893 esac
2894 done
2895 else
2896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2898 as_fn_error "cannot compute suffix of executables: cannot compile and link
2899 See \`config.log' for more details." "$LINENO" 5; }
2901 rm -f conftest$ac_cv_exeext
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2903 $as_echo "$ac_cv_exeext" >&6; }
2905 rm -f conftest.$ac_ext
2906 EXEEXT=$ac_cv_exeext
2907 ac_exeext=$EXEEXT
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2909 $as_echo_n "checking for suffix of object files... " >&6; }
2910 if test "${ac_cv_objext+set}" = set; then :
2911 $as_echo_n "(cached) " >&6
2912 else
2913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2914 /* end confdefs.h. */
2917 main ()
2921 return 0;
2923 _ACEOF
2924 rm -f conftest.o conftest.obj
2925 if { { ac_try="$ac_compile"
2926 case "(($ac_try" in
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2929 esac
2930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2931 $as_echo "$ac_try_echo"; } >&5
2932 (eval "$ac_compile") 2>&5
2933 ac_status=$?
2934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2935 test $ac_status = 0; }; then :
2936 for ac_file in conftest.o conftest.obj conftest.*; do
2937 test -f "$ac_file" || continue;
2938 case $ac_file in
2939 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2940 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2941 break;;
2942 esac
2943 done
2944 else
2945 $as_echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2950 as_fn_error "cannot compute suffix of object files: cannot compile
2951 See \`config.log' for more details." "$LINENO" 5; }
2953 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2956 $as_echo "$ac_cv_objext" >&6; }
2957 OBJEXT=$ac_cv_objext
2958 ac_objext=$OBJEXT
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2960 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2961 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2962 $as_echo_n "(cached) " >&6
2963 else
2964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2965 /* end confdefs.h. */
2968 main ()
2970 #ifndef __GNUC__
2971 choke me
2972 #endif
2975 return 0;
2977 _ACEOF
2978 if ac_fn_c_try_compile "$LINENO"; then :
2979 ac_compiler_gnu=yes
2980 else
2981 ac_compiler_gnu=no
2983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2984 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2988 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2989 if test $ac_compiler_gnu = yes; then
2990 GCC=yes
2991 else
2992 GCC=
2994 ac_test_CFLAGS=${CFLAGS+set}
2995 ac_save_CFLAGS=$CFLAGS
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2997 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2998 if test "${ac_cv_prog_cc_g+set}" = set; then :
2999 $as_echo_n "(cached) " >&6
3000 else
3001 ac_save_c_werror_flag=$ac_c_werror_flag
3002 ac_c_werror_flag=yes
3003 ac_cv_prog_cc_g=no
3004 CFLAGS="-g"
3005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3006 /* end confdefs.h. */
3009 main ()
3013 return 0;
3015 _ACEOF
3016 if ac_fn_c_try_compile "$LINENO"; then :
3017 ac_cv_prog_cc_g=yes
3018 else
3019 CFLAGS=""
3020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3021 /* end confdefs.h. */
3024 main ()
3028 return 0;
3030 _ACEOF
3031 if ac_fn_c_try_compile "$LINENO"; then :
3033 else
3034 ac_c_werror_flag=$ac_save_c_werror_flag
3035 CFLAGS="-g"
3036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3037 /* end confdefs.h. */
3040 main ()
3044 return 0;
3046 _ACEOF
3047 if ac_fn_c_try_compile "$LINENO"; then :
3048 ac_cv_prog_cc_g=yes
3050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3055 ac_c_werror_flag=$ac_save_c_werror_flag
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3058 $as_echo "$ac_cv_prog_cc_g" >&6; }
3059 if test "$ac_test_CFLAGS" = set; then
3060 CFLAGS=$ac_save_CFLAGS
3061 elif test $ac_cv_prog_cc_g = yes; then
3062 if test "$GCC" = yes; then
3063 CFLAGS="-g -O2"
3064 else
3065 CFLAGS="-g"
3067 else
3068 if test "$GCC" = yes; then
3069 CFLAGS="-O2"
3070 else
3071 CFLAGS=
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3075 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3076 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3077 $as_echo_n "(cached) " >&6
3078 else
3079 ac_cv_prog_cc_c89=no
3080 ac_save_CC=$CC
3081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3082 /* end confdefs.h. */
3083 #include <stdarg.h>
3084 #include <stdio.h>
3085 #include <sys/types.h>
3086 #include <sys/stat.h>
3087 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3088 struct buf { int x; };
3089 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3090 static char *e (p, i)
3091 char **p;
3092 int i;
3094 return p[i];
3096 static char *f (char * (*g) (char **, int), char **p, ...)
3098 char *s;
3099 va_list v;
3100 va_start (v,p);
3101 s = g (p, va_arg (v,int));
3102 va_end (v);
3103 return s;
3106 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3107 function prototypes and stuff, but not '\xHH' hex character constants.
3108 These don't provoke an error unfortunately, instead are silently treated
3109 as 'x'. The following induces an error, until -std is added to get
3110 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3111 array size at least. It's necessary to write '\x00'==0 to get something
3112 that's true only with -std. */
3113 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3115 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3116 inside strings and character constants. */
3117 #define FOO(x) 'x'
3118 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3120 int test (int i, double x);
3121 struct s1 {int (*f) (int a);};
3122 struct s2 {int (*f) (double a);};
3123 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3124 int argc;
3125 char **argv;
3127 main ()
3129 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3131 return 0;
3133 _ACEOF
3134 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3135 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3137 CC="$ac_save_CC $ac_arg"
3138 if ac_fn_c_try_compile "$LINENO"; then :
3139 ac_cv_prog_cc_c89=$ac_arg
3141 rm -f core conftest.err conftest.$ac_objext
3142 test "x$ac_cv_prog_cc_c89" != "xno" && break
3143 done
3144 rm -f conftest.$ac_ext
3145 CC=$ac_save_CC
3148 # AC_CACHE_VAL
3149 case "x$ac_cv_prog_cc_c89" in
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3152 $as_echo "none needed" >&6; } ;;
3153 xno)
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3155 $as_echo "unsupported" >&6; } ;;
3157 CC="$CC $ac_cv_prog_cc_c89"
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3159 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3160 esac
3161 if test "x$ac_cv_prog_cc_c89" != xno; then :
3165 ac_ext=c
3166 ac_cpp='$CPP $CPPFLAGS'
3167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3173 $as_echo_n "checking for library containing strerror... " >&6; }
3174 if test "${ac_cv_search_strerror+set}" = set; then :
3175 $as_echo_n "(cached) " >&6
3176 else
3177 ac_func_search_save_LIBS=$LIBS
3178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3179 /* end confdefs.h. */
3181 /* Override any GCC internal prototype to avoid an error.
3182 Use char because int might match the return type of a GCC
3183 builtin and then its argument prototype would still apply. */
3184 #ifdef __cplusplus
3185 extern "C"
3186 #endif
3187 char strerror ();
3189 main ()
3191 return strerror ();
3193 return 0;
3195 _ACEOF
3196 for ac_lib in '' cposix; do
3197 if test -z "$ac_lib"; then
3198 ac_res="none required"
3199 else
3200 ac_res=-l$ac_lib
3201 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3203 if ac_fn_c_try_link "$LINENO"; then :
3204 ac_cv_search_strerror=$ac_res
3206 rm -f core conftest.err conftest.$ac_objext \
3207 conftest$ac_exeext
3208 if test "${ac_cv_search_strerror+set}" = set; then :
3209 break
3211 done
3212 if test "${ac_cv_search_strerror+set}" = set; then :
3214 else
3215 ac_cv_search_strerror=no
3217 rm conftest.$ac_ext
3218 LIBS=$ac_func_search_save_LIBS
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3221 $as_echo "$ac_cv_search_strerror" >&6; }
3222 ac_res=$ac_cv_search_strerror
3223 if test "$ac_res" != no; then :
3224 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3229 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
3230 am__api_version='1.11'
3232 # Find a good install program. We prefer a C program (faster),
3233 # so one script is as good as another. But avoid the broken or
3234 # incompatible versions:
3235 # SysV /etc/install, /usr/sbin/install
3236 # SunOS /usr/etc/install
3237 # IRIX /sbin/install
3238 # AIX /bin/install
3239 # AmigaOS /C/install, which installs bootblocks on floppy discs
3240 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3241 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3242 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3243 # OS/2's system install, which has a completely different semantic
3244 # ./install, which can be erroneously created by make from ./install.sh.
3245 # Reject install programs that cannot install multiple files.
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3247 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3248 if test -z "$INSTALL"; then
3249 if test "${ac_cv_path_install+set}" = set; then :
3250 $as_echo_n "(cached) " >&6
3251 else
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 for as_dir in $PATH
3255 IFS=$as_save_IFS
3256 test -z "$as_dir" && as_dir=.
3257 # Account for people who put trailing slashes in PATH elements.
3258 case $as_dir/ in #((
3259 ./ | .// | /[cC]/* | \
3260 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3261 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3262 /usr/ucb/* ) ;;
3264 # OSF1 and SCO ODT 3.0 have their own names for install.
3265 # Don't use installbsd from OSF since it installs stuff as root
3266 # by default.
3267 for ac_prog in ginstall scoinst install; do
3268 for ac_exec_ext in '' $ac_executable_extensions; do
3269 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3270 if test $ac_prog = install &&
3271 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3272 # AIX install. It has an incompatible calling convention.
3274 elif test $ac_prog = install &&
3275 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3276 # program-specific install script used by HP pwplus--don't use.
3278 else
3279 rm -rf conftest.one conftest.two conftest.dir
3280 echo one > conftest.one
3281 echo two > conftest.two
3282 mkdir conftest.dir
3283 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3284 test -s conftest.one && test -s conftest.two &&
3285 test -s conftest.dir/conftest.one &&
3286 test -s conftest.dir/conftest.two
3287 then
3288 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3289 break 3
3293 done
3294 done
3296 esac
3298 done
3299 IFS=$as_save_IFS
3301 rm -rf conftest.one conftest.two conftest.dir
3304 if test "${ac_cv_path_install+set}" = set; then
3305 INSTALL=$ac_cv_path_install
3306 else
3307 # As a last resort, use the slow shell script. Don't cache a
3308 # value for INSTALL within a source directory, because that will
3309 # break other packages using the cache if that directory is
3310 # removed, or if the value is a relative name.
3311 INSTALL=$ac_install_sh
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3315 $as_echo "$INSTALL" >&6; }
3317 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3318 # It thinks the first close brace ends the variable substitution.
3319 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3321 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3323 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3326 $as_echo_n "checking whether build environment is sane... " >&6; }
3327 # Just in case
3328 sleep 1
3329 echo timestamp > conftest.file
3330 # Reject unsafe characters in $srcdir or the absolute working directory
3331 # name. Accept space and tab only in the latter.
3332 am_lf='
3334 case `pwd` in
3335 *[\\\"\#\$\&\'\`$am_lf]*)
3336 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3337 esac
3338 case $srcdir in
3339 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3340 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3341 esac
3343 # Do `set' in a subshell so we don't clobber the current shell's
3344 # arguments. Must try -L first in case configure is actually a
3345 # symlink; some systems play weird games with the mod time of symlinks
3346 # (eg FreeBSD returns the mod time of the symlink's containing
3347 # directory).
3348 if (
3349 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3350 if test "$*" = "X"; then
3351 # -L didn't work.
3352 set X `ls -t "$srcdir/configure" conftest.file`
3354 rm -f conftest.file
3355 if test "$*" != "X $srcdir/configure conftest.file" \
3356 && test "$*" != "X conftest.file $srcdir/configure"; then
3358 # If neither matched, then we have a broken ls. This can happen
3359 # if, for instance, CONFIG_SHELL is bash and it inherits a
3360 # broken ls alias from the environment. This has actually
3361 # happened. Such a system could not be considered "sane".
3362 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3363 alias in your environment" "$LINENO" 5
3366 test "$2" = conftest.file
3368 then
3369 # Ok.
3371 else
3372 as_fn_error "newly created file is older than distributed files!
3373 Check your system clock" "$LINENO" 5
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3376 $as_echo "yes" >&6; }
3377 test "$program_prefix" != NONE &&
3378 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3379 # Use a double $ so make ignores it.
3380 test "$program_suffix" != NONE &&
3381 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3382 # Double any \ or $.
3383 # By default was `s,x,x', remove it if useless.
3384 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3385 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3387 # expand $ac_aux_dir to an absolute path
3388 am_aux_dir=`cd $ac_aux_dir && pwd`
3390 if test x"${MISSING+set}" != xset; then
3391 case $am_aux_dir in
3392 *\ * | *\ *)
3393 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3395 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3396 esac
3398 # Use eval to expand $SHELL
3399 if eval "$MISSING --run true"; then
3400 am_missing_run="$MISSING --run "
3401 else
3402 am_missing_run=
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3404 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3407 if test x"${install_sh}" != xset; then
3408 case $am_aux_dir in
3409 *\ * | *\ *)
3410 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3412 install_sh="\${SHELL} $am_aux_dir/install-sh"
3413 esac
3416 # Installed binaries are usually stripped using `strip' when the user
3417 # run `make install-strip'. However `strip' might not be the right
3418 # tool to use in cross-compilation environments, therefore Automake
3419 # will honor the `STRIP' environment variable to overrule this program.
3420 if test "$cross_compiling" != no; then
3421 if test -n "$ac_tool_prefix"; then
3422 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3423 set dummy ${ac_tool_prefix}strip; ac_word=$2
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3425 $as_echo_n "checking for $ac_word... " >&6; }
3426 if test "${ac_cv_prog_STRIP+set}" = set; then :
3427 $as_echo_n "(cached) " >&6
3428 else
3429 if test -n "$STRIP"; then
3430 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3431 else
3432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433 for as_dir in $PATH
3435 IFS=$as_save_IFS
3436 test -z "$as_dir" && as_dir=.
3437 for ac_exec_ext in '' $ac_executable_extensions; do
3438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3439 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3441 break 2
3443 done
3444 done
3445 IFS=$as_save_IFS
3449 STRIP=$ac_cv_prog_STRIP
3450 if test -n "$STRIP"; then
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3452 $as_echo "$STRIP" >&6; }
3453 else
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3455 $as_echo "no" >&6; }
3460 if test -z "$ac_cv_prog_STRIP"; then
3461 ac_ct_STRIP=$STRIP
3462 # Extract the first word of "strip", so it can be a program name with args.
3463 set dummy strip; ac_word=$2
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3465 $as_echo_n "checking for $ac_word... " >&6; }
3466 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3467 $as_echo_n "(cached) " >&6
3468 else
3469 if test -n "$ac_ct_STRIP"; then
3470 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3471 else
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 for as_dir in $PATH
3475 IFS=$as_save_IFS
3476 test -z "$as_dir" && as_dir=.
3477 for ac_exec_ext in '' $ac_executable_extensions; do
3478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3479 ac_cv_prog_ac_ct_STRIP="strip"
3480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3481 break 2
3483 done
3484 done
3485 IFS=$as_save_IFS
3489 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3490 if test -n "$ac_ct_STRIP"; then
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3492 $as_echo "$ac_ct_STRIP" >&6; }
3493 else
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495 $as_echo "no" >&6; }
3498 if test "x$ac_ct_STRIP" = x; then
3499 STRIP=":"
3500 else
3501 case $cross_compiling:$ac_tool_warned in
3502 yes:)
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3505 ac_tool_warned=yes ;;
3506 esac
3507 STRIP=$ac_ct_STRIP
3509 else
3510 STRIP="$ac_cv_prog_STRIP"
3514 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3517 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3518 if test -z "$MKDIR_P"; then
3519 if test "${ac_cv_path_mkdir+set}" = set; then :
3520 $as_echo_n "(cached) " >&6
3521 else
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3525 IFS=$as_save_IFS
3526 test -z "$as_dir" && as_dir=.
3527 for ac_prog in mkdir gmkdir; do
3528 for ac_exec_ext in '' $ac_executable_extensions; do
3529 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3530 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3531 'mkdir (GNU coreutils) '* | \
3532 'mkdir (coreutils) '* | \
3533 'mkdir (fileutils) '4.1*)
3534 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3535 break 3;;
3536 esac
3537 done
3538 done
3539 done
3540 IFS=$as_save_IFS
3544 if test "${ac_cv_path_mkdir+set}" = set; then
3545 MKDIR_P="$ac_cv_path_mkdir -p"
3546 else
3547 # As a last resort, use the slow shell script. Don't cache a
3548 # value for MKDIR_P within a source directory, because that will
3549 # break other packages using the cache if that directory is
3550 # removed, or if the value is a relative name.
3551 test -d ./--version && rmdir ./--version
3552 MKDIR_P="$ac_install_sh -d"
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3556 $as_echo "$MKDIR_P" >&6; }
3558 mkdir_p="$MKDIR_P"
3559 case $mkdir_p in
3560 [\\/$]* | ?:[\\/]*) ;;
3561 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3562 esac
3564 for ac_prog in gawk mawk nawk awk
3566 # Extract the first word of "$ac_prog", so it can be a program name with args.
3567 set dummy $ac_prog; ac_word=$2
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3569 $as_echo_n "checking for $ac_word... " >&6; }
3570 if test "${ac_cv_prog_AWK+set}" = set; then :
3571 $as_echo_n "(cached) " >&6
3572 else
3573 if test -n "$AWK"; then
3574 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3575 else
3576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577 for as_dir in $PATH
3579 IFS=$as_save_IFS
3580 test -z "$as_dir" && as_dir=.
3581 for ac_exec_ext in '' $ac_executable_extensions; do
3582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3583 ac_cv_prog_AWK="$ac_prog"
3584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3585 break 2
3587 done
3588 done
3589 IFS=$as_save_IFS
3593 AWK=$ac_cv_prog_AWK
3594 if test -n "$AWK"; then
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3596 $as_echo "$AWK" >&6; }
3597 else
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3599 $as_echo "no" >&6; }
3603 test -n "$AWK" && break
3604 done
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3607 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3608 set x ${MAKE-make}
3609 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3610 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3611 $as_echo_n "(cached) " >&6
3612 else
3613 cat >conftest.make <<\_ACEOF
3614 SHELL = /bin/sh
3615 all:
3616 @echo '@@@%%%=$(MAKE)=@@@%%%'
3617 _ACEOF
3618 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3619 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3620 *@@@%%%=?*=@@@%%%*)
3621 eval ac_cv_prog_make_${ac_make}_set=yes;;
3623 eval ac_cv_prog_make_${ac_make}_set=no;;
3624 esac
3625 rm -f conftest.make
3627 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3629 $as_echo "yes" >&6; }
3630 SET_MAKE=
3631 else
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 $as_echo "no" >&6; }
3634 SET_MAKE="MAKE=${MAKE-make}"
3637 rm -rf .tst 2>/dev/null
3638 mkdir .tst 2>/dev/null
3639 if test -d .tst; then
3640 am__leading_dot=.
3641 else
3642 am__leading_dot=_
3644 rmdir .tst 2>/dev/null
3646 DEPDIR="${am__leading_dot}deps"
3648 ac_config_commands="$ac_config_commands depfiles"
3651 am_make=${MAKE-make}
3652 cat > confinc << 'END'
3653 am__doit:
3654 @echo this is the am__doit target
3655 .PHONY: am__doit
3657 # If we don't find an include directive, just comment out the code.
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3659 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3660 am__include="#"
3661 am__quote=
3662 _am_result=none
3663 # First try GNU make style include.
3664 echo "include confinc" > confmf
3665 # Ignore all kinds of additional output from `make'.
3666 case `$am_make -s -f confmf 2> /dev/null` in #(
3667 *the\ am__doit\ target*)
3668 am__include=include
3669 am__quote=
3670 _am_result=GNU
3672 esac
3673 # Now try BSD make style include.
3674 if test "$am__include" = "#"; then
3675 echo '.include "confinc"' > confmf
3676 case `$am_make -s -f confmf 2> /dev/null` in #(
3677 *the\ am__doit\ target*)
3678 am__include=.include
3679 am__quote="\""
3680 _am_result=BSD
3682 esac
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3687 $as_echo "$_am_result" >&6; }
3688 rm -f confinc confmf
3690 # Check whether --enable-dependency-tracking was given.
3691 if test "${enable_dependency_tracking+set}" = set; then :
3692 enableval=$enable_dependency_tracking;
3695 if test "x$enable_dependency_tracking" != xno; then
3696 am_depcomp="$ac_aux_dir/depcomp"
3697 AMDEPBACKSLASH='\'
3699 if test "x$enable_dependency_tracking" != xno; then
3700 AMDEP_TRUE=
3701 AMDEP_FALSE='#'
3702 else
3703 AMDEP_TRUE='#'
3704 AMDEP_FALSE=
3708 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3709 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3710 # is not polluted with repeated "-I."
3711 am__isrc=' -I$(srcdir)'
3712 # test to see if srcdir already configured
3713 if test -f $srcdir/config.status; then
3714 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3718 # test whether we have cygpath
3719 if test -z "$CYGPATH_W"; then
3720 if (cygpath --version) >/dev/null 2>/dev/null; then
3721 CYGPATH_W='cygpath -w'
3722 else
3723 CYGPATH_W=echo
3728 # Define the identity of the package.
3729 PACKAGE=binutils
3730 VERSION=${BFD_VERSION}
3733 cat >>confdefs.h <<_ACEOF
3734 #define PACKAGE "$PACKAGE"
3735 _ACEOF
3738 cat >>confdefs.h <<_ACEOF
3739 #define VERSION "$VERSION"
3740 _ACEOF
3742 # Some tools Automake needs.
3744 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3747 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3750 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3753 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3756 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3758 # We need awk for the "check" target. The system "awk" is bad on
3759 # some platforms.
3760 # Always define AMTAR for backward compatibility.
3762 AMTAR=${AMTAR-"${am_missing_run}tar"}
3764 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3769 depcc="$CC" am_compiler_list=
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3772 $as_echo_n "checking dependency style of $depcc... " >&6; }
3773 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3774 $as_echo_n "(cached) " >&6
3775 else
3776 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3777 # We make a subdir and do the tests there. Otherwise we can end up
3778 # making bogus files that we don't know about and never remove. For
3779 # instance it was reported that on HP-UX the gcc test will end up
3780 # making a dummy file named `D' -- because `-MD' means `put the output
3781 # in D'.
3782 mkdir conftest.dir
3783 # Copy depcomp to subdir because otherwise we won't find it if we're
3784 # using a relative directory.
3785 cp "$am_depcomp" conftest.dir
3786 cd conftest.dir
3787 # We will build objects and dependencies in a subdirectory because
3788 # it helps to detect inapplicable dependency modes. For instance
3789 # both Tru64's cc and ICC support -MD to output dependencies as a
3790 # side effect of compilation, but ICC will put the dependencies in
3791 # the current directory while Tru64 will put them in the object
3792 # directory.
3793 mkdir sub
3795 am_cv_CC_dependencies_compiler_type=none
3796 if test "$am_compiler_list" = ""; then
3797 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3799 am__universal=false
3800 case " $depcc " in #(
3801 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3802 esac
3804 for depmode in $am_compiler_list; do
3805 # Setup a source with many dependencies, because some compilers
3806 # like to wrap large dependency lists on column 80 (with \), and
3807 # we should not choose a depcomp mode which is confused by this.
3809 # We need to recreate these files for each test, as the compiler may
3810 # overwrite some of them when testing with obscure command lines.
3811 # This happens at least with the AIX C compiler.
3812 : > sub/conftest.c
3813 for i in 1 2 3 4 5 6; do
3814 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3815 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3816 # Solaris 8's {/usr,}/bin/sh.
3817 touch sub/conftst$i.h
3818 done
3819 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3821 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3822 # mode. It turns out that the SunPro C++ compiler does not properly
3823 # handle `-M -o', and we need to detect this. Also, some Intel
3824 # versions had trouble with output in subdirs
3825 am__obj=sub/conftest.${OBJEXT-o}
3826 am__minus_obj="-o $am__obj"
3827 case $depmode in
3828 gcc)
3829 # This depmode causes a compiler race in universal mode.
3830 test "$am__universal" = false || continue
3832 nosideeffect)
3833 # after this tag, mechanisms are not by side-effect, so they'll
3834 # only be used when explicitly requested
3835 if test "x$enable_dependency_tracking" = xyes; then
3836 continue
3837 else
3838 break
3841 msvisualcpp | msvcmsys)
3842 # This compiler won't grok `-c -o', but also, the minuso test has
3843 # not run yet. These depmodes are late enough in the game, and
3844 # so weak that their functioning should not be impacted.
3845 am__obj=conftest.${OBJEXT-o}
3846 am__minus_obj=
3848 none) break ;;
3849 esac
3850 if depmode=$depmode \
3851 source=sub/conftest.c object=$am__obj \
3852 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3853 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3854 >/dev/null 2>conftest.err &&
3855 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3856 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3857 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3858 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3859 # icc doesn't choke on unknown options, it will just issue warnings
3860 # or remarks (even with -Werror). So we grep stderr for any message
3861 # that says an option was ignored or not supported.
3862 # When given -MP, icc 7.0 and 7.1 complain thusly:
3863 # icc: Command line warning: ignoring option '-M'; no argument required
3864 # The diagnosis changed in icc 8.0:
3865 # icc: Command line remark: option '-MP' not supported
3866 if (grep 'ignoring option' conftest.err ||
3867 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3868 am_cv_CC_dependencies_compiler_type=$depmode
3869 break
3872 done
3874 cd ..
3875 rm -rf conftest.dir
3876 else
3877 am_cv_CC_dependencies_compiler_type=none
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3882 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3883 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3886 test "x$enable_dependency_tracking" != xno \
3887 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3888 am__fastdepCC_TRUE=
3889 am__fastdepCC_FALSE='#'
3890 else
3891 am__fastdepCC_TRUE='#'
3892 am__fastdepCC_FALSE=
3898 ac_ext=c
3899 ac_cpp='$CPP $CPPFLAGS'
3900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3903 if test -n "$ac_tool_prefix"; then
3904 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3905 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3907 $as_echo_n "checking for $ac_word... " >&6; }
3908 if test "${ac_cv_prog_CC+set}" = set; then :
3909 $as_echo_n "(cached) " >&6
3910 else
3911 if test -n "$CC"; then
3912 ac_cv_prog_CC="$CC" # Let the user override the test.
3913 else
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH
3917 IFS=$as_save_IFS
3918 test -z "$as_dir" && as_dir=.
3919 for ac_exec_ext in '' $ac_executable_extensions; do
3920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3921 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3923 break 2
3925 done
3926 done
3927 IFS=$as_save_IFS
3931 CC=$ac_cv_prog_CC
3932 if test -n "$CC"; then
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3934 $as_echo "$CC" >&6; }
3935 else
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3937 $as_echo "no" >&6; }
3942 if test -z "$ac_cv_prog_CC"; then
3943 ac_ct_CC=$CC
3944 # Extract the first word of "gcc", so it can be a program name with args.
3945 set dummy gcc; ac_word=$2
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3947 $as_echo_n "checking for $ac_word... " >&6; }
3948 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3949 $as_echo_n "(cached) " >&6
3950 else
3951 if test -n "$ac_ct_CC"; then
3952 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3953 else
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955 for as_dir in $PATH
3957 IFS=$as_save_IFS
3958 test -z "$as_dir" && as_dir=.
3959 for ac_exec_ext in '' $ac_executable_extensions; do
3960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3961 ac_cv_prog_ac_ct_CC="gcc"
3962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3963 break 2
3965 done
3966 done
3967 IFS=$as_save_IFS
3971 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3972 if test -n "$ac_ct_CC"; then
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3974 $as_echo "$ac_ct_CC" >&6; }
3975 else
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3977 $as_echo "no" >&6; }
3980 if test "x$ac_ct_CC" = x; then
3981 CC=""
3982 else
3983 case $cross_compiling:$ac_tool_warned in
3984 yes:)
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3987 ac_tool_warned=yes ;;
3988 esac
3989 CC=$ac_ct_CC
3991 else
3992 CC="$ac_cv_prog_CC"
3995 if test -z "$CC"; then
3996 if test -n "$ac_tool_prefix"; then
3997 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3998 set dummy ${ac_tool_prefix}cc; ac_word=$2
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4000 $as_echo_n "checking for $ac_word... " >&6; }
4001 if test "${ac_cv_prog_CC+set}" = set; then :
4002 $as_echo_n "(cached) " >&6
4003 else
4004 if test -n "$CC"; then
4005 ac_cv_prog_CC="$CC" # Let the user override the test.
4006 else
4007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008 for as_dir in $PATH
4010 IFS=$as_save_IFS
4011 test -z "$as_dir" && as_dir=.
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4014 ac_cv_prog_CC="${ac_tool_prefix}cc"
4015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4016 break 2
4018 done
4019 done
4020 IFS=$as_save_IFS
4024 CC=$ac_cv_prog_CC
4025 if test -n "$CC"; then
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4027 $as_echo "$CC" >&6; }
4028 else
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030 $as_echo "no" >&6; }
4036 if test -z "$CC"; then
4037 # Extract the first word of "cc", so it can be a program name with args.
4038 set dummy cc; ac_word=$2
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4040 $as_echo_n "checking for $ac_word... " >&6; }
4041 if test "${ac_cv_prog_CC+set}" = set; then :
4042 $as_echo_n "(cached) " >&6
4043 else
4044 if test -n "$CC"; then
4045 ac_cv_prog_CC="$CC" # Let the user override the test.
4046 else
4047 ac_prog_rejected=no
4048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049 for as_dir in $PATH
4051 IFS=$as_save_IFS
4052 test -z "$as_dir" && as_dir=.
4053 for ac_exec_ext in '' $ac_executable_extensions; do
4054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4055 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4056 ac_prog_rejected=yes
4057 continue
4059 ac_cv_prog_CC="cc"
4060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4061 break 2
4063 done
4064 done
4065 IFS=$as_save_IFS
4067 if test $ac_prog_rejected = yes; then
4068 # We found a bogon in the path, so make sure we never use it.
4069 set dummy $ac_cv_prog_CC
4070 shift
4071 if test $# != 0; then
4072 # We chose a different compiler from the bogus one.
4073 # However, it has the same basename, so the bogon will be chosen
4074 # first if we set CC to just the basename; use the full file name.
4075 shift
4076 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4081 CC=$ac_cv_prog_CC
4082 if test -n "$CC"; then
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4084 $as_echo "$CC" >&6; }
4085 else
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4087 $as_echo "no" >&6; }
4092 if test -z "$CC"; then
4093 if test -n "$ac_tool_prefix"; then
4094 for ac_prog in cl.exe
4096 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4097 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4099 $as_echo_n "checking for $ac_word... " >&6; }
4100 if test "${ac_cv_prog_CC+set}" = set; then :
4101 $as_echo_n "(cached) " >&6
4102 else
4103 if test -n "$CC"; then
4104 ac_cv_prog_CC="$CC" # Let the user override the test.
4105 else
4106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4107 for as_dir in $PATH
4109 IFS=$as_save_IFS
4110 test -z "$as_dir" && as_dir=.
4111 for ac_exec_ext in '' $ac_executable_extensions; do
4112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4113 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4115 break 2
4117 done
4118 done
4119 IFS=$as_save_IFS
4123 CC=$ac_cv_prog_CC
4124 if test -n "$CC"; then
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4126 $as_echo "$CC" >&6; }
4127 else
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4129 $as_echo "no" >&6; }
4133 test -n "$CC" && break
4134 done
4136 if test -z "$CC"; then
4137 ac_ct_CC=$CC
4138 for ac_prog in cl.exe
4140 # Extract the first word of "$ac_prog", so it can be a program name with args.
4141 set dummy $ac_prog; ac_word=$2
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4143 $as_echo_n "checking for $ac_word... " >&6; }
4144 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4145 $as_echo_n "(cached) " >&6
4146 else
4147 if test -n "$ac_ct_CC"; then
4148 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4149 else
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 for as_dir in $PATH
4153 IFS=$as_save_IFS
4154 test -z "$as_dir" && as_dir=.
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4157 ac_cv_prog_ac_ct_CC="$ac_prog"
4158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4159 break 2
4161 done
4162 done
4163 IFS=$as_save_IFS
4167 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4168 if test -n "$ac_ct_CC"; then
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4170 $as_echo "$ac_ct_CC" >&6; }
4171 else
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4173 $as_echo "no" >&6; }
4177 test -n "$ac_ct_CC" && break
4178 done
4180 if test "x$ac_ct_CC" = x; then
4181 CC=""
4182 else
4183 case $cross_compiling:$ac_tool_warned in
4184 yes:)
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4187 ac_tool_warned=yes ;;
4188 esac
4189 CC=$ac_ct_CC
4196 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4198 as_fn_error "no acceptable C compiler found in \$PATH
4199 See \`config.log' for more details." "$LINENO" 5; }
4201 # Provide some information about the compiler.
4202 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4203 set X $ac_compile
4204 ac_compiler=$2
4205 for ac_option in --version -v -V -qversion; do
4206 { { ac_try="$ac_compiler $ac_option >&5"
4207 case "(($ac_try" in
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4210 esac
4211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4212 $as_echo "$ac_try_echo"; } >&5
4213 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4214 ac_status=$?
4215 if test -s conftest.err; then
4216 sed '10a\
4217 ... rest of stderr output deleted ...
4218 10q' conftest.err >conftest.er1
4219 cat conftest.er1 >&5
4220 rm -f conftest.er1 conftest.err
4222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4223 test $ac_status = 0; }
4224 done
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4227 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4228 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4229 $as_echo_n "(cached) " >&6
4230 else
4231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232 /* end confdefs.h. */
4235 main ()
4237 #ifndef __GNUC__
4238 choke me
4239 #endif
4242 return 0;
4244 _ACEOF
4245 if ac_fn_c_try_compile "$LINENO"; then :
4246 ac_compiler_gnu=yes
4247 else
4248 ac_compiler_gnu=no
4250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4251 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4255 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4256 if test $ac_compiler_gnu = yes; then
4257 GCC=yes
4258 else
4259 GCC=
4261 ac_test_CFLAGS=${CFLAGS+set}
4262 ac_save_CFLAGS=$CFLAGS
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4264 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4265 if test "${ac_cv_prog_cc_g+set}" = set; then :
4266 $as_echo_n "(cached) " >&6
4267 else
4268 ac_save_c_werror_flag=$ac_c_werror_flag
4269 ac_c_werror_flag=yes
4270 ac_cv_prog_cc_g=no
4271 CFLAGS="-g"
4272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273 /* end confdefs.h. */
4276 main ()
4280 return 0;
4282 _ACEOF
4283 if ac_fn_c_try_compile "$LINENO"; then :
4284 ac_cv_prog_cc_g=yes
4285 else
4286 CFLAGS=""
4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h. */
4291 main ()
4295 return 0;
4297 _ACEOF
4298 if ac_fn_c_try_compile "$LINENO"; then :
4300 else
4301 ac_c_werror_flag=$ac_save_c_werror_flag
4302 CFLAGS="-g"
4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304 /* end confdefs.h. */
4307 main ()
4311 return 0;
4313 _ACEOF
4314 if ac_fn_c_try_compile "$LINENO"; then :
4315 ac_cv_prog_cc_g=yes
4317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4322 ac_c_werror_flag=$ac_save_c_werror_flag
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4325 $as_echo "$ac_cv_prog_cc_g" >&6; }
4326 if test "$ac_test_CFLAGS" = set; then
4327 CFLAGS=$ac_save_CFLAGS
4328 elif test $ac_cv_prog_cc_g = yes; then
4329 if test "$GCC" = yes; then
4330 CFLAGS="-g -O2"
4331 else
4332 CFLAGS="-g"
4334 else
4335 if test "$GCC" = yes; then
4336 CFLAGS="-O2"
4337 else
4338 CFLAGS=
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4342 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4343 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4344 $as_echo_n "(cached) " >&6
4345 else
4346 ac_cv_prog_cc_c89=no
4347 ac_save_CC=$CC
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4350 #include <stdarg.h>
4351 #include <stdio.h>
4352 #include <sys/types.h>
4353 #include <sys/stat.h>
4354 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4355 struct buf { int x; };
4356 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4357 static char *e (p, i)
4358 char **p;
4359 int i;
4361 return p[i];
4363 static char *f (char * (*g) (char **, int), char **p, ...)
4365 char *s;
4366 va_list v;
4367 va_start (v,p);
4368 s = g (p, va_arg (v,int));
4369 va_end (v);
4370 return s;
4373 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4374 function prototypes and stuff, but not '\xHH' hex character constants.
4375 These don't provoke an error unfortunately, instead are silently treated
4376 as 'x'. The following induces an error, until -std is added to get
4377 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4378 array size at least. It's necessary to write '\x00'==0 to get something
4379 that's true only with -std. */
4380 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4382 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4383 inside strings and character constants. */
4384 #define FOO(x) 'x'
4385 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4387 int test (int i, double x);
4388 struct s1 {int (*f) (int a);};
4389 struct s2 {int (*f) (double a);};
4390 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4391 int argc;
4392 char **argv;
4394 main ()
4396 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4398 return 0;
4400 _ACEOF
4401 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4402 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4404 CC="$ac_save_CC $ac_arg"
4405 if ac_fn_c_try_compile "$LINENO"; then :
4406 ac_cv_prog_cc_c89=$ac_arg
4408 rm -f core conftest.err conftest.$ac_objext
4409 test "x$ac_cv_prog_cc_c89" != "xno" && break
4410 done
4411 rm -f conftest.$ac_ext
4412 CC=$ac_save_CC
4415 # AC_CACHE_VAL
4416 case "x$ac_cv_prog_cc_c89" in
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4419 $as_echo "none needed" >&6; } ;;
4420 xno)
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4422 $as_echo "unsupported" >&6; } ;;
4424 CC="$CC $ac_cv_prog_cc_c89"
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4426 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4427 esac
4428 if test "x$ac_cv_prog_cc_c89" != xno; then :
4432 ac_ext=c
4433 ac_cpp='$CPP $CPPFLAGS'
4434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4438 ac_ext=c
4439 ac_cpp='$CPP $CPPFLAGS'
4440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4444 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4445 # On Suns, sometimes $CPP names a directory.
4446 if test -n "$CPP" && test -d "$CPP"; then
4447 CPP=
4449 if test -z "$CPP"; then
4450 if test "${ac_cv_prog_CPP+set}" = set; then :
4451 $as_echo_n "(cached) " >&6
4452 else
4453 # Double quotes because CPP needs to be expanded
4454 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4456 ac_preproc_ok=false
4457 for ac_c_preproc_warn_flag in '' yes
4459 # Use a header file that comes with gcc, so configuring glibc
4460 # with a fresh cross-compiler works.
4461 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4462 # <limits.h> exists even on freestanding compilers.
4463 # On the NeXT, cc -E runs the code through the compiler's parser,
4464 # not just through cpp. "Syntax error" is here to catch this case.
4465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4466 /* end confdefs.h. */
4467 #ifdef __STDC__
4468 # include <limits.h>
4469 #else
4470 # include <assert.h>
4471 #endif
4472 Syntax error
4473 _ACEOF
4474 if ac_fn_c_try_cpp "$LINENO"; then :
4476 else
4477 # Broken: fails on valid input.
4478 continue
4480 rm -f conftest.err conftest.$ac_ext
4482 # OK, works on sane cases. Now check whether nonexistent headers
4483 # can be detected and how.
4484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4485 /* end confdefs.h. */
4486 #include <ac_nonexistent.h>
4487 _ACEOF
4488 if ac_fn_c_try_cpp "$LINENO"; then :
4489 # Broken: success on invalid input.
4490 continue
4491 else
4492 # Passes both tests.
4493 ac_preproc_ok=:
4494 break
4496 rm -f conftest.err conftest.$ac_ext
4498 done
4499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4500 rm -f conftest.err conftest.$ac_ext
4501 if $ac_preproc_ok; then :
4502 break
4505 done
4506 ac_cv_prog_CPP=$CPP
4509 CPP=$ac_cv_prog_CPP
4510 else
4511 ac_cv_prog_CPP=$CPP
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4514 $as_echo "$CPP" >&6; }
4515 ac_preproc_ok=false
4516 for ac_c_preproc_warn_flag in '' yes
4518 # Use a header file that comes with gcc, so configuring glibc
4519 # with a fresh cross-compiler works.
4520 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4521 # <limits.h> exists even on freestanding compilers.
4522 # On the NeXT, cc -E runs the code through the compiler's parser,
4523 # not just through cpp. "Syntax error" is here to catch this case.
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4526 #ifdef __STDC__
4527 # include <limits.h>
4528 #else
4529 # include <assert.h>
4530 #endif
4531 Syntax error
4532 _ACEOF
4533 if ac_fn_c_try_cpp "$LINENO"; then :
4535 else
4536 # Broken: fails on valid input.
4537 continue
4539 rm -f conftest.err conftest.$ac_ext
4541 # OK, works on sane cases. Now check whether nonexistent headers
4542 # can be detected and how.
4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h. */
4545 #include <ac_nonexistent.h>
4546 _ACEOF
4547 if ac_fn_c_try_cpp "$LINENO"; then :
4548 # Broken: success on invalid input.
4549 continue
4550 else
4551 # Passes both tests.
4552 ac_preproc_ok=:
4553 break
4555 rm -f conftest.err conftest.$ac_ext
4557 done
4558 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4559 rm -f conftest.err conftest.$ac_ext
4560 if $ac_preproc_ok; then :
4562 else
4563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4565 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4566 See \`config.log' for more details." "$LINENO" 5; }
4569 ac_ext=c
4570 ac_cpp='$CPP $CPPFLAGS'
4571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4577 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4578 if test "${ac_cv_path_GREP+set}" = set; then :
4579 $as_echo_n "(cached) " >&6
4580 else
4581 if test -z "$GREP"; then
4582 ac_path_GREP_found=false
4583 # Loop through the user's path and test for each of PROGNAME-LIST
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4587 IFS=$as_save_IFS
4588 test -z "$as_dir" && as_dir=.
4589 for ac_prog in grep ggrep; do
4590 for ac_exec_ext in '' $ac_executable_extensions; do
4591 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4592 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4593 # Check for GNU ac_path_GREP and select it if it is found.
4594 # Check for GNU $ac_path_GREP
4595 case `"$ac_path_GREP" --version 2>&1` in
4596 *GNU*)
4597 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4599 ac_count=0
4600 $as_echo_n 0123456789 >"conftest.in"
4601 while :
4603 cat "conftest.in" "conftest.in" >"conftest.tmp"
4604 mv "conftest.tmp" "conftest.in"
4605 cp "conftest.in" "conftest.nl"
4606 $as_echo 'GREP' >> "conftest.nl"
4607 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4608 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4609 as_fn_arith $ac_count + 1 && ac_count=$as_val
4610 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4611 # Best one so far, save it but keep looking for a better one
4612 ac_cv_path_GREP="$ac_path_GREP"
4613 ac_path_GREP_max=$ac_count
4615 # 10*(2^10) chars as input seems more than enough
4616 test $ac_count -gt 10 && break
4617 done
4618 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4619 esac
4621 $ac_path_GREP_found && break 3
4622 done
4623 done
4624 done
4625 IFS=$as_save_IFS
4626 if test -z "$ac_cv_path_GREP"; then
4627 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4629 else
4630 ac_cv_path_GREP=$GREP
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4635 $as_echo "$ac_cv_path_GREP" >&6; }
4636 GREP="$ac_cv_path_GREP"
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4640 $as_echo_n "checking for egrep... " >&6; }
4641 if test "${ac_cv_path_EGREP+set}" = set; then :
4642 $as_echo_n "(cached) " >&6
4643 else
4644 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4645 then ac_cv_path_EGREP="$GREP -E"
4646 else
4647 if test -z "$EGREP"; then
4648 ac_path_EGREP_found=false
4649 # Loop through the user's path and test for each of PROGNAME-LIST
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
4655 for ac_prog in egrep; do
4656 for ac_exec_ext in '' $ac_executable_extensions; do
4657 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4658 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4659 # Check for GNU ac_path_EGREP and select it if it is found.
4660 # Check for GNU $ac_path_EGREP
4661 case `"$ac_path_EGREP" --version 2>&1` in
4662 *GNU*)
4663 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4665 ac_count=0
4666 $as_echo_n 0123456789 >"conftest.in"
4667 while :
4669 cat "conftest.in" "conftest.in" >"conftest.tmp"
4670 mv "conftest.tmp" "conftest.in"
4671 cp "conftest.in" "conftest.nl"
4672 $as_echo 'EGREP' >> "conftest.nl"
4673 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4674 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4675 as_fn_arith $ac_count + 1 && ac_count=$as_val
4676 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4677 # Best one so far, save it but keep looking for a better one
4678 ac_cv_path_EGREP="$ac_path_EGREP"
4679 ac_path_EGREP_max=$ac_count
4681 # 10*(2^10) chars as input seems more than enough
4682 test $ac_count -gt 10 && break
4683 done
4684 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4685 esac
4687 $ac_path_EGREP_found && break 3
4688 done
4689 done
4690 done
4691 IFS=$as_save_IFS
4692 if test -z "$ac_cv_path_EGREP"; then
4693 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4695 else
4696 ac_cv_path_EGREP=$EGREP
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4702 $as_echo "$ac_cv_path_EGREP" >&6; }
4703 EGREP="$ac_cv_path_EGREP"
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4707 $as_echo_n "checking for ANSI C header files... " >&6; }
4708 if test "${ac_cv_header_stdc+set}" = set; then :
4709 $as_echo_n "(cached) " >&6
4710 else
4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4713 #include <stdlib.h>
4714 #include <stdarg.h>
4715 #include <string.h>
4716 #include <float.h>
4719 main ()
4723 return 0;
4725 _ACEOF
4726 if ac_fn_c_try_compile "$LINENO"; then :
4727 ac_cv_header_stdc=yes
4728 else
4729 ac_cv_header_stdc=no
4731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4733 if test $ac_cv_header_stdc = yes; then
4734 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736 /* end confdefs.h. */
4737 #include <string.h>
4739 _ACEOF
4740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4741 $EGREP "memchr" >/dev/null 2>&1; then :
4743 else
4744 ac_cv_header_stdc=no
4746 rm -f conftest*
4750 if test $ac_cv_header_stdc = yes; then
4751 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753 /* end confdefs.h. */
4754 #include <stdlib.h>
4756 _ACEOF
4757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4758 $EGREP "free" >/dev/null 2>&1; then :
4760 else
4761 ac_cv_header_stdc=no
4763 rm -f conftest*
4767 if test $ac_cv_header_stdc = yes; then
4768 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4769 if test "$cross_compiling" = yes; then :
4771 else
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h. */
4774 #include <ctype.h>
4775 #include <stdlib.h>
4776 #if ((' ' & 0x0FF) == 0x020)
4777 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4778 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4779 #else
4780 # define ISLOWER(c) \
4781 (('a' <= (c) && (c) <= 'i') \
4782 || ('j' <= (c) && (c) <= 'r') \
4783 || ('s' <= (c) && (c) <= 'z'))
4784 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4785 #endif
4787 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4789 main ()
4791 int i;
4792 for (i = 0; i < 256; i++)
4793 if (XOR (islower (i), ISLOWER (i))
4794 || toupper (i) != TOUPPER (i))
4795 return 2;
4796 return 0;
4798 _ACEOF
4799 if ac_fn_c_try_run "$LINENO"; then :
4801 else
4802 ac_cv_header_stdc=no
4804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4805 conftest.$ac_objext conftest.beam conftest.$ac_ext
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4811 $as_echo "$ac_cv_header_stdc" >&6; }
4812 if test $ac_cv_header_stdc = yes; then
4814 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4818 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4819 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4820 inttypes.h stdint.h unistd.h
4821 do :
4822 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4823 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4825 eval as_val=\$$as_ac_Header
4826 if test "x$as_val" = x""yes; then :
4827 cat >>confdefs.h <<_ACEOF
4828 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4829 _ACEOF
4833 done
4837 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4838 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4839 MINIX=yes
4840 else
4841 MINIX=
4845 if test "$MINIX" = yes; then
4847 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4850 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4853 $as_echo "#define _MINIX 1" >>confdefs.h
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4859 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4860 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4861 $as_echo_n "(cached) " >&6
4862 else
4863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864 /* end confdefs.h. */
4866 # define __EXTENSIONS__ 1
4867 $ac_includes_default
4869 main ()
4873 return 0;
4875 _ACEOF
4876 if ac_fn_c_try_compile "$LINENO"; then :
4877 ac_cv_safe_to_define___extensions__=yes
4878 else
4879 ac_cv_safe_to_define___extensions__=no
4881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4884 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4885 test $ac_cv_safe_to_define___extensions__ = yes &&
4886 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4888 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4890 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4892 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4894 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4901 # The tests for host and target for $enable_largefile require
4902 # canonical names.
4906 # As the $enable_largefile decision depends on --enable-plugins we must set it
4907 # even in directories otherwise not depending on the $plugins option.
4910 # Check whether --enable-plugins was given.
4911 if test "${enable_plugins+set}" = set; then :
4912 enableval=$enable_plugins; case "${enableval}" in
4913 yes | "") plugins=yes ;;
4914 no) plugins=no ;;
4915 *) plugins=yes ;;
4916 esac
4917 else
4918 plugins=no
4923 case "${host}" in
4924 sparc-*-solaris*|i[3-7]86-*-solaris*)
4925 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4926 # are mutually exclusive; and without procfs support, the bfd/ elf module
4927 # cannot provide certain routines such as elfcore_write_prpsinfo
4928 # or elfcore_write_prstatus. So unless the user explicitly requested
4929 # large-file support through the --enable-largefile switch, disable
4930 # large-file support in favor of procfs support.
4931 test "${target}" = "${host}" -a "x$plugins" = xno \
4932 && : ${enable_largefile="no"}
4934 esac
4936 # Check whether --enable-largefile was given.
4937 if test "${enable_largefile+set}" = set; then :
4938 enableval=$enable_largefile;
4941 if test "$enable_largefile" != no; then
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4944 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4945 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4946 $as_echo_n "(cached) " >&6
4947 else
4948 ac_cv_sys_largefile_CC=no
4949 if test "$GCC" != yes; then
4950 ac_save_CC=$CC
4951 while :; do
4952 # IRIX 6.2 and later do not support large files by default,
4953 # so use the C compiler's -n32 option if that helps.
4954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4955 /* end confdefs.h. */
4956 #include <sys/types.h>
4957 /* Check that off_t can represent 2**63 - 1 correctly.
4958 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4959 since some C++ compilers masquerading as C compilers
4960 incorrectly reject 9223372036854775807. */
4961 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4962 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4963 && LARGE_OFF_T % 2147483647 == 1)
4964 ? 1 : -1];
4966 main ()
4970 return 0;
4972 _ACEOF
4973 if ac_fn_c_try_compile "$LINENO"; then :
4974 break
4976 rm -f core conftest.err conftest.$ac_objext
4977 CC="$CC -n32"
4978 if ac_fn_c_try_compile "$LINENO"; then :
4979 ac_cv_sys_largefile_CC=' -n32'; break
4981 rm -f core conftest.err conftest.$ac_objext
4982 break
4983 done
4984 CC=$ac_save_CC
4985 rm -f conftest.$ac_ext
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4989 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4990 if test "$ac_cv_sys_largefile_CC" != no; then
4991 CC=$CC$ac_cv_sys_largefile_CC
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4995 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4996 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4997 $as_echo_n "(cached) " >&6
4998 else
4999 while :; do
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h. */
5002 #include <sys/types.h>
5003 /* Check that off_t can represent 2**63 - 1 correctly.
5004 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5005 since some C++ compilers masquerading as C compilers
5006 incorrectly reject 9223372036854775807. */
5007 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5008 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5009 && LARGE_OFF_T % 2147483647 == 1)
5010 ? 1 : -1];
5012 main ()
5016 return 0;
5018 _ACEOF
5019 if ac_fn_c_try_compile "$LINENO"; then :
5020 ac_cv_sys_file_offset_bits=no; break
5022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024 /* end confdefs.h. */
5025 #define _FILE_OFFSET_BITS 64
5026 #include <sys/types.h>
5027 /* Check that off_t can represent 2**63 - 1 correctly.
5028 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5029 since some C++ compilers masquerading as C compilers
5030 incorrectly reject 9223372036854775807. */
5031 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5032 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5033 && LARGE_OFF_T % 2147483647 == 1)
5034 ? 1 : -1];
5036 main ()
5040 return 0;
5042 _ACEOF
5043 if ac_fn_c_try_compile "$LINENO"; then :
5044 ac_cv_sys_file_offset_bits=64; break
5046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5047 ac_cv_sys_file_offset_bits=unknown
5048 break
5049 done
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5052 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5053 case $ac_cv_sys_file_offset_bits in #(
5054 no | unknown) ;;
5056 cat >>confdefs.h <<_ACEOF
5057 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5058 _ACEOF
5060 esac
5061 rm -rf conftest*
5062 if test $ac_cv_sys_file_offset_bits = unknown; then
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5064 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5065 if test "${ac_cv_sys_large_files+set}" = set; then :
5066 $as_echo_n "(cached) " >&6
5067 else
5068 while :; do
5069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5070 /* end confdefs.h. */
5071 #include <sys/types.h>
5072 /* Check that off_t can represent 2**63 - 1 correctly.
5073 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5074 since some C++ compilers masquerading as C compilers
5075 incorrectly reject 9223372036854775807. */
5076 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5077 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5078 && LARGE_OFF_T % 2147483647 == 1)
5079 ? 1 : -1];
5081 main ()
5085 return 0;
5087 _ACEOF
5088 if ac_fn_c_try_compile "$LINENO"; then :
5089 ac_cv_sys_large_files=no; break
5091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h. */
5094 #define _LARGE_FILES 1
5095 #include <sys/types.h>
5096 /* Check that off_t can represent 2**63 - 1 correctly.
5097 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5098 since some C++ compilers masquerading as C compilers
5099 incorrectly reject 9223372036854775807. */
5100 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5101 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5102 && LARGE_OFF_T % 2147483647 == 1)
5103 ? 1 : -1];
5105 main ()
5109 return 0;
5111 _ACEOF
5112 if ac_fn_c_try_compile "$LINENO"; then :
5113 ac_cv_sys_large_files=1; break
5115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5116 ac_cv_sys_large_files=unknown
5117 break
5118 done
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5121 $as_echo "$ac_cv_sys_large_files" >&6; }
5122 case $ac_cv_sys_large_files in #(
5123 no | unknown) ;;
5125 cat >>confdefs.h <<_ACEOF
5126 #define _LARGE_FILES $ac_cv_sys_large_files
5127 _ACEOF
5129 esac
5130 rm -rf conftest*
5135 case `pwd` in
5136 *\ * | *\ *)
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5138 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5139 esac
5143 macro_version='2.2.7a'
5144 macro_revision='1.3134'
5158 ltmain="$ac_aux_dir/ltmain.sh"
5160 # Backslashify metacharacters that are still active within
5161 # double-quoted strings.
5162 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5164 # Same as above, but do not quote variable references.
5165 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5167 # Sed substitution to delay expansion of an escaped shell variable in a
5168 # double_quote_subst'ed string.
5169 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5171 # Sed substitution to delay expansion of an escaped single quote.
5172 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5174 # Sed substitution to avoid accidental globbing in evaled expressions
5175 no_glob_subst='s/\*/\\\*/g'
5177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5178 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5179 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5182 $as_echo_n "checking how to print strings... " >&6; }
5183 # Test print first, because it will be a builtin if present.
5184 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5185 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5186 ECHO='print -r --'
5187 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5188 ECHO='printf %s\n'
5189 else
5190 # Use this function as a fallback that always works.
5191 func_fallback_echo ()
5193 eval 'cat <<_LTECHO_EOF
5195 _LTECHO_EOF'
5197 ECHO='func_fallback_echo'
5200 # func_echo_all arg...
5201 # Invoke $ECHO with all args, space-separated.
5202 func_echo_all ()
5204 $ECHO ""
5207 case "$ECHO" in
5208 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5209 $as_echo "printf" >&6; } ;;
5210 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5211 $as_echo "print -r" >&6; } ;;
5212 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5213 $as_echo "cat" >&6; } ;;
5214 esac
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5230 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5231 if test "${ac_cv_path_SED+set}" = set; then :
5232 $as_echo_n "(cached) " >&6
5233 else
5234 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5235 for ac_i in 1 2 3 4 5 6 7; do
5236 ac_script="$ac_script$as_nl$ac_script"
5237 done
5238 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5239 { ac_script=; unset ac_script;}
5240 if test -z "$SED"; then
5241 ac_path_SED_found=false
5242 # Loop through the user's path and test for each of PROGNAME-LIST
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 for as_dir in $PATH
5246 IFS=$as_save_IFS
5247 test -z "$as_dir" && as_dir=.
5248 for ac_prog in sed gsed; do
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5251 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5252 # Check for GNU ac_path_SED and select it if it is found.
5253 # Check for GNU $ac_path_SED
5254 case `"$ac_path_SED" --version 2>&1` in
5255 *GNU*)
5256 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5258 ac_count=0
5259 $as_echo_n 0123456789 >"conftest.in"
5260 while :
5262 cat "conftest.in" "conftest.in" >"conftest.tmp"
5263 mv "conftest.tmp" "conftest.in"
5264 cp "conftest.in" "conftest.nl"
5265 $as_echo '' >> "conftest.nl"
5266 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5267 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5268 as_fn_arith $ac_count + 1 && ac_count=$as_val
5269 if test $ac_count -gt ${ac_path_SED_max-0}; then
5270 # Best one so far, save it but keep looking for a better one
5271 ac_cv_path_SED="$ac_path_SED"
5272 ac_path_SED_max=$ac_count
5274 # 10*(2^10) chars as input seems more than enough
5275 test $ac_count -gt 10 && break
5276 done
5277 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5278 esac
5280 $ac_path_SED_found && break 3
5281 done
5282 done
5283 done
5284 IFS=$as_save_IFS
5285 if test -z "$ac_cv_path_SED"; then
5286 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5288 else
5289 ac_cv_path_SED=$SED
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5294 $as_echo "$ac_cv_path_SED" >&6; }
5295 SED="$ac_cv_path_SED"
5296 rm -f conftest.sed
5298 test -z "$SED" && SED=sed
5299 Xsed="$SED -e 1s/^X//"
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5312 $as_echo_n "checking for fgrep... " >&6; }
5313 if test "${ac_cv_path_FGREP+set}" = set; then :
5314 $as_echo_n "(cached) " >&6
5315 else
5316 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5317 then ac_cv_path_FGREP="$GREP -F"
5318 else
5319 if test -z "$FGREP"; then
5320 ac_path_FGREP_found=false
5321 # Loop through the user's path and test for each of PROGNAME-LIST
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5325 IFS=$as_save_IFS
5326 test -z "$as_dir" && as_dir=.
5327 for ac_prog in fgrep; do
5328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5330 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5331 # Check for GNU ac_path_FGREP and select it if it is found.
5332 # Check for GNU $ac_path_FGREP
5333 case `"$ac_path_FGREP" --version 2>&1` in
5334 *GNU*)
5335 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5337 ac_count=0
5338 $as_echo_n 0123456789 >"conftest.in"
5339 while :
5341 cat "conftest.in" "conftest.in" >"conftest.tmp"
5342 mv "conftest.tmp" "conftest.in"
5343 cp "conftest.in" "conftest.nl"
5344 $as_echo 'FGREP' >> "conftest.nl"
5345 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5346 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5347 as_fn_arith $ac_count + 1 && ac_count=$as_val
5348 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5349 # Best one so far, save it but keep looking for a better one
5350 ac_cv_path_FGREP="$ac_path_FGREP"
5351 ac_path_FGREP_max=$ac_count
5353 # 10*(2^10) chars as input seems more than enough
5354 test $ac_count -gt 10 && break
5355 done
5356 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5357 esac
5359 $ac_path_FGREP_found && break 3
5360 done
5361 done
5362 done
5363 IFS=$as_save_IFS
5364 if test -z "$ac_cv_path_FGREP"; then
5365 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5367 else
5368 ac_cv_path_FGREP=$FGREP
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5374 $as_echo "$ac_cv_path_FGREP" >&6; }
5375 FGREP="$ac_cv_path_FGREP"
5378 test -z "$GREP" && GREP=grep
5398 # Check whether --with-gnu-ld was given.
5399 if test "${with_gnu_ld+set}" = set; then :
5400 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5401 else
5402 with_gnu_ld=no
5405 ac_prog=ld
5406 if test "$GCC" = yes; then
5407 # Check if gcc -print-prog-name=ld gives a path.
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5409 $as_echo_n "checking for ld used by $CC... " >&6; }
5410 case $host in
5411 *-*-mingw*)
5412 # gcc leaves a trailing carriage return which upsets mingw
5413 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5415 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5416 esac
5417 case $ac_prog in
5418 # Accept absolute paths.
5419 [\\/]* | ?:[\\/]*)
5420 re_direlt='/[^/][^/]*/\.\./'
5421 # Canonicalize the pathname of ld
5422 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5423 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5424 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5425 done
5426 test -z "$LD" && LD="$ac_prog"
5429 # If it fails, then pretend we aren't using GCC.
5430 ac_prog=ld
5433 # If it is relative, then search for the first ld in PATH.
5434 with_gnu_ld=unknown
5436 esac
5437 elif test "$with_gnu_ld" = yes; then
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5439 $as_echo_n "checking for GNU ld... " >&6; }
5440 else
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5442 $as_echo_n "checking for non-GNU ld... " >&6; }
5444 if test "${lt_cv_path_LD+set}" = set; then :
5445 $as_echo_n "(cached) " >&6
5446 else
5447 if test -z "$LD"; then
5448 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5449 for ac_dir in $PATH; do
5450 IFS="$lt_save_ifs"
5451 test -z "$ac_dir" && ac_dir=.
5452 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5453 lt_cv_path_LD="$ac_dir/$ac_prog"
5454 # Check to see if the program is GNU ld. I'd rather use --version,
5455 # but apparently some variants of GNU ld only accept -v.
5456 # Break only if it was the GNU/non-GNU ld that we prefer.
5457 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5458 *GNU* | *'with BFD'*)
5459 test "$with_gnu_ld" != no && break
5462 test "$with_gnu_ld" != yes && break
5464 esac
5466 done
5467 IFS="$lt_save_ifs"
5468 else
5469 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5473 LD="$lt_cv_path_LD"
5474 if test -n "$LD"; then
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5476 $as_echo "$LD" >&6; }
5477 else
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479 $as_echo "no" >&6; }
5481 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5483 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5484 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5485 $as_echo_n "(cached) " >&6
5486 else
5487 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5488 case `$LD -v 2>&1 </dev/null` in
5489 *GNU* | *'with BFD'*)
5490 lt_cv_prog_gnu_ld=yes
5493 lt_cv_prog_gnu_ld=no
5495 esac
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5498 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5499 with_gnu_ld=$lt_cv_prog_gnu_ld
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5510 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5511 if test "${lt_cv_path_NM+set}" = set; then :
5512 $as_echo_n "(cached) " >&6
5513 else
5514 if test -n "$NM"; then
5515 # Let the user override the test.
5516 lt_cv_path_NM="$NM"
5517 else
5518 lt_nm_to_check="${ac_tool_prefix}nm"
5519 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5520 lt_nm_to_check="$lt_nm_to_check nm"
5522 for lt_tmp_nm in $lt_nm_to_check; do
5523 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5524 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5525 IFS="$lt_save_ifs"
5526 test -z "$ac_dir" && ac_dir=.
5527 tmp_nm="$ac_dir/$lt_tmp_nm"
5528 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5529 # Check to see if the nm accepts a BSD-compat flag.
5530 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5531 # nm: unknown option "B" ignored
5532 # Tru64's nm complains that /dev/null is an invalid object file
5533 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5534 */dev/null* | *'Invalid file or object type'*)
5535 lt_cv_path_NM="$tmp_nm -B"
5536 break
5539 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5540 */dev/null*)
5541 lt_cv_path_NM="$tmp_nm -p"
5542 break
5545 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5546 continue # so that we can try to find one that supports BSD flags
5548 esac
5550 esac
5552 done
5553 IFS="$lt_save_ifs"
5554 done
5555 : ${lt_cv_path_NM=no}
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5559 $as_echo "$lt_cv_path_NM" >&6; }
5560 if test "$lt_cv_path_NM" != "no"; then
5561 NM="$lt_cv_path_NM"
5562 else
5563 # Didn't find any BSD compatible name lister, look for dumpbin.
5564 if test -n "$DUMPBIN"; then :
5565 # Let the user override the test.
5566 else
5567 if test -n "$ac_tool_prefix"; then
5568 for ac_prog in dumpbin "link -dump"
5570 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5571 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5573 $as_echo_n "checking for $ac_word... " >&6; }
5574 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5575 $as_echo_n "(cached) " >&6
5576 else
5577 if test -n "$DUMPBIN"; then
5578 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5579 else
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 for as_dir in $PATH
5583 IFS=$as_save_IFS
5584 test -z "$as_dir" && as_dir=.
5585 for ac_exec_ext in '' $ac_executable_extensions; do
5586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5587 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 break 2
5591 done
5592 done
5593 IFS=$as_save_IFS
5597 DUMPBIN=$ac_cv_prog_DUMPBIN
5598 if test -n "$DUMPBIN"; then
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5600 $as_echo "$DUMPBIN" >&6; }
5601 else
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603 $as_echo "no" >&6; }
5607 test -n "$DUMPBIN" && break
5608 done
5610 if test -z "$DUMPBIN"; then
5611 ac_ct_DUMPBIN=$DUMPBIN
5612 for ac_prog in dumpbin "link -dump"
5614 # Extract the first word of "$ac_prog", so it can be a program name with args.
5615 set dummy $ac_prog; ac_word=$2
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5617 $as_echo_n "checking for $ac_word... " >&6; }
5618 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5619 $as_echo_n "(cached) " >&6
5620 else
5621 if test -n "$ac_ct_DUMPBIN"; then
5622 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5623 else
5624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625 for as_dir in $PATH
5627 IFS=$as_save_IFS
5628 test -z "$as_dir" && as_dir=.
5629 for ac_exec_ext in '' $ac_executable_extensions; do
5630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5631 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5633 break 2
5635 done
5636 done
5637 IFS=$as_save_IFS
5641 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5642 if test -n "$ac_ct_DUMPBIN"; then
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5644 $as_echo "$ac_ct_DUMPBIN" >&6; }
5645 else
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5647 $as_echo "no" >&6; }
5651 test -n "$ac_ct_DUMPBIN" && break
5652 done
5654 if test "x$ac_ct_DUMPBIN" = x; then
5655 DUMPBIN=":"
5656 else
5657 case $cross_compiling:$ac_tool_warned in
5658 yes:)
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5661 ac_tool_warned=yes ;;
5662 esac
5663 DUMPBIN=$ac_ct_DUMPBIN
5667 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5668 *COFF*)
5669 DUMPBIN="$DUMPBIN -symbols"
5672 DUMPBIN=:
5674 esac
5677 if test "$DUMPBIN" != ":"; then
5678 NM="$DUMPBIN"
5681 test -z "$NM" && NM=nm
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5689 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5690 if test "${lt_cv_nm_interface+set}" = set; then :
5691 $as_echo_n "(cached) " >&6
5692 else
5693 lt_cv_nm_interface="BSD nm"
5694 echo "int some_variable = 0;" > conftest.$ac_ext
5695 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5696 (eval "$ac_compile" 2>conftest.err)
5697 cat conftest.err >&5
5698 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5699 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5700 cat conftest.err >&5
5701 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5702 cat conftest.out >&5
5703 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5704 lt_cv_nm_interface="MS dumpbin"
5706 rm -f conftest*
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5709 $as_echo "$lt_cv_nm_interface" >&6; }
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5712 $as_echo_n "checking whether ln -s works... " >&6; }
5713 LN_S=$as_ln_s
5714 if test "$LN_S" = "ln -s"; then
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5716 $as_echo "yes" >&6; }
5717 else
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5719 $as_echo "no, using $LN_S" >&6; }
5722 # find the maximum length of command line arguments
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5724 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5725 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5726 $as_echo_n "(cached) " >&6
5727 else
5729 teststring="ABCD"
5731 case $build_os in
5732 msdosdjgpp*)
5733 # On DJGPP, this test can blow up pretty badly due to problems in libc
5734 # (any single argument exceeding 2000 bytes causes a buffer overrun
5735 # during glob expansion). Even if it were fixed, the result of this
5736 # check would be larger than it should be.
5737 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5740 gnu*)
5741 # Under GNU Hurd, this test is not required because there is
5742 # no limit to the length of command line arguments.
5743 # Libtool will interpret -1 as no limit whatsoever
5744 lt_cv_sys_max_cmd_len=-1;
5747 cygwin* | mingw* | cegcc*)
5748 # On Win9x/ME, this test blows up -- it succeeds, but takes
5749 # about 5 minutes as the teststring grows exponentially.
5750 # Worse, since 9x/ME are not pre-emptively multitasking,
5751 # you end up with a "frozen" computer, even though with patience
5752 # the test eventually succeeds (with a max line length of 256k).
5753 # Instead, let's just punt: use the minimum linelength reported by
5754 # all of the supported platforms: 8192 (on NT/2K/XP).
5755 lt_cv_sys_max_cmd_len=8192;
5758 mint*)
5759 # On MiNT this can take a long time and run out of memory.
5760 lt_cv_sys_max_cmd_len=8192;
5763 amigaos*)
5764 # On AmigaOS with pdksh, this test takes hours, literally.
5765 # So we just punt and use a minimum line length of 8192.
5766 lt_cv_sys_max_cmd_len=8192;
5769 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5770 # This has been around since 386BSD, at least. Likely further.
5771 if test -x /sbin/sysctl; then
5772 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5773 elif test -x /usr/sbin/sysctl; then
5774 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5775 else
5776 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5778 # And add a safety zone
5779 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5780 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5783 interix*)
5784 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5785 lt_cv_sys_max_cmd_len=196608
5788 osf*)
5789 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5790 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5791 # nice to cause kernel panics so lets avoid the loop below.
5792 # First set a reasonable default.
5793 lt_cv_sys_max_cmd_len=16384
5795 if test -x /sbin/sysconfig; then
5796 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5797 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5798 esac
5801 sco3.2v5*)
5802 lt_cv_sys_max_cmd_len=102400
5804 sysv5* | sco5v6* | sysv4.2uw2*)
5805 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5806 if test -n "$kargmax"; then
5807 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5808 else
5809 lt_cv_sys_max_cmd_len=32768
5813 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5814 if test -n "$lt_cv_sys_max_cmd_len"; then
5815 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5816 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5817 else
5818 # Make teststring a little bigger before we do anything with it.
5819 # a 1K string should be a reasonable start.
5820 for i in 1 2 3 4 5 6 7 8 ; do
5821 teststring=$teststring$teststring
5822 done
5823 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5824 # If test is not a shell built-in, we'll probably end up computing a
5825 # maximum length that is only half of the actual maximum length, but
5826 # we can't tell.
5827 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5828 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5829 test $i != 17 # 1/2 MB should be enough
5831 i=`expr $i + 1`
5832 teststring=$teststring$teststring
5833 done
5834 # Only check the string length outside the loop.
5835 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5836 teststring=
5837 # Add a significant safety factor because C++ compilers can tack on
5838 # massive amounts of additional arguments before passing them to the
5839 # linker. It appears as though 1/2 is a usable value.
5840 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5843 esac
5847 if test -n $lt_cv_sys_max_cmd_len ; then
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5849 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5850 else
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5852 $as_echo "none" >&6; }
5854 max_cmd_len=$lt_cv_sys_max_cmd_len
5861 : ${CP="cp -f"}
5862 : ${MV="mv -f"}
5863 : ${RM="rm -f"}
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5866 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5867 # Try some XSI features
5868 xsi_shell=no
5869 ( _lt_dummy="a/b/c"
5870 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5871 = c,a/b,, \
5872 && eval 'test $(( 1 + 1 )) -eq 2 \
5873 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5874 && xsi_shell=yes
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5876 $as_echo "$xsi_shell" >&6; }
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5880 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5881 lt_shell_append=no
5882 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5883 >/dev/null 2>&1 \
5884 && lt_shell_append=yes
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5886 $as_echo "$lt_shell_append" >&6; }
5889 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5890 lt_unset=unset
5891 else
5892 lt_unset=false
5899 # test EBCDIC or ASCII
5900 case `echo X|tr X '\101'` in
5901 A) # ASCII based system
5902 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5903 lt_SP2NL='tr \040 \012'
5904 lt_NL2SP='tr \015\012 \040\040'
5906 *) # EBCDIC based system
5907 lt_SP2NL='tr \100 \n'
5908 lt_NL2SP='tr \r\n \100\100'
5910 esac
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5921 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5922 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5923 $as_echo_n "(cached) " >&6
5924 else
5925 lt_cv_ld_reload_flag='-r'
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5928 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5929 reload_flag=$lt_cv_ld_reload_flag
5930 case $reload_flag in
5931 "" | " "*) ;;
5932 *) reload_flag=" $reload_flag" ;;
5933 esac
5934 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5935 case $host_os in
5936 darwin*)
5937 if test "$GCC" = yes; then
5938 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5939 else
5940 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5943 esac
5953 if test -n "$ac_tool_prefix"; then
5954 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5955 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5957 $as_echo_n "checking for $ac_word... " >&6; }
5958 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5959 $as_echo_n "(cached) " >&6
5960 else
5961 if test -n "$OBJDUMP"; then
5962 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5963 else
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 for as_dir in $PATH
5967 IFS=$as_save_IFS
5968 test -z "$as_dir" && as_dir=.
5969 for ac_exec_ext in '' $ac_executable_extensions; do
5970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5971 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5973 break 2
5975 done
5976 done
5977 IFS=$as_save_IFS
5981 OBJDUMP=$ac_cv_prog_OBJDUMP
5982 if test -n "$OBJDUMP"; then
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5984 $as_echo "$OBJDUMP" >&6; }
5985 else
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987 $as_echo "no" >&6; }
5992 if test -z "$ac_cv_prog_OBJDUMP"; then
5993 ac_ct_OBJDUMP=$OBJDUMP
5994 # Extract the first word of "objdump", so it can be a program name with args.
5995 set dummy objdump; ac_word=$2
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5997 $as_echo_n "checking for $ac_word... " >&6; }
5998 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5999 $as_echo_n "(cached) " >&6
6000 else
6001 if test -n "$ac_ct_OBJDUMP"; then
6002 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6003 else
6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005 for as_dir in $PATH
6007 IFS=$as_save_IFS
6008 test -z "$as_dir" && as_dir=.
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6011 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6013 break 2
6015 done
6016 done
6017 IFS=$as_save_IFS
6021 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6022 if test -n "$ac_ct_OBJDUMP"; then
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6024 $as_echo "$ac_ct_OBJDUMP" >&6; }
6025 else
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6027 $as_echo "no" >&6; }
6030 if test "x$ac_ct_OBJDUMP" = x; then
6031 OBJDUMP="false"
6032 else
6033 case $cross_compiling:$ac_tool_warned in
6034 yes:)
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6037 ac_tool_warned=yes ;;
6038 esac
6039 OBJDUMP=$ac_ct_OBJDUMP
6041 else
6042 OBJDUMP="$ac_cv_prog_OBJDUMP"
6045 test -z "$OBJDUMP" && OBJDUMP=objdump
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6056 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6057 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6058 $as_echo_n "(cached) " >&6
6059 else
6060 lt_cv_file_magic_cmd='$MAGIC_CMD'
6061 lt_cv_file_magic_test_file=
6062 lt_cv_deplibs_check_method='unknown'
6063 # Need to set the preceding variable on all platforms that support
6064 # interlibrary dependencies.
6065 # 'none' -- dependencies not supported.
6066 # `unknown' -- same as none, but documents that we really don't know.
6067 # 'pass_all' -- all dependencies passed with no checks.
6068 # 'test_compile' -- check by making test program.
6069 # 'file_magic [[regex]]' -- check by looking for files in library path
6070 # which responds to the $file_magic_cmd with a given extended regex.
6071 # If you have `file' or equivalent on your system and you're not sure
6072 # whether `pass_all' will *always* work, you probably want this one.
6074 case $host_os in
6075 aix[4-9]*)
6076 lt_cv_deplibs_check_method=pass_all
6079 beos*)
6080 lt_cv_deplibs_check_method=pass_all
6083 bsdi[45]*)
6084 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6085 lt_cv_file_magic_cmd='/usr/bin/file -L'
6086 lt_cv_file_magic_test_file=/shlib/libc.so
6089 cygwin*)
6090 # func_win32_libid is a shell function defined in ltmain.sh
6091 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6092 lt_cv_file_magic_cmd='func_win32_libid'
6095 mingw* | pw32*)
6096 # Base MSYS/MinGW do not provide the 'file' command needed by
6097 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6098 # unless we find 'file', for example because we are cross-compiling.
6099 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6100 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6101 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6102 lt_cv_file_magic_cmd='func_win32_libid'
6103 else
6104 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6105 lt_cv_file_magic_cmd='$OBJDUMP -f'
6109 cegcc*)
6110 # use the weaker test based on 'objdump'. See mingw*.
6111 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6112 lt_cv_file_magic_cmd='$OBJDUMP -f'
6115 darwin* | rhapsody*)
6116 lt_cv_deplibs_check_method=pass_all
6119 freebsd* | dragonfly*)
6120 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6121 case $host_cpu in
6122 i*86 )
6123 # Not sure whether the presence of OpenBSD here was a mistake.
6124 # Let's accept both of them until this is cleared up.
6125 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6126 lt_cv_file_magic_cmd=/usr/bin/file
6127 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6129 esac
6130 else
6131 lt_cv_deplibs_check_method=pass_all
6135 gnu*)
6136 lt_cv_deplibs_check_method=pass_all
6139 haiku*)
6140 lt_cv_deplibs_check_method=pass_all
6143 hpux10.20* | hpux11*)
6144 lt_cv_file_magic_cmd=/usr/bin/file
6145 case $host_cpu in
6146 ia64*)
6147 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6148 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6150 hppa*64*)
6151 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6152 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6155 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6156 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6158 esac
6161 interix[3-9]*)
6162 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6163 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6166 irix5* | irix6* | nonstopux*)
6167 case $LD in
6168 *-32|*"-32 ") libmagic=32-bit;;
6169 *-n32|*"-n32 ") libmagic=N32;;
6170 *-64|*"-64 ") libmagic=64-bit;;
6171 *) libmagic=never-match;;
6172 esac
6173 lt_cv_deplibs_check_method=pass_all
6176 # This must be Linux ELF.
6177 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6178 lt_cv_deplibs_check_method=pass_all
6181 netbsd*)
6182 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6183 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6184 else
6185 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6189 newos6*)
6190 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6191 lt_cv_file_magic_cmd=/usr/bin/file
6192 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6195 *nto* | *qnx*)
6196 lt_cv_deplibs_check_method=pass_all
6199 openbsd*)
6200 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6201 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6202 else
6203 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6207 osf3* | osf4* | osf5*)
6208 lt_cv_deplibs_check_method=pass_all
6211 rdos*)
6212 lt_cv_deplibs_check_method=pass_all
6215 solaris*)
6216 lt_cv_deplibs_check_method=pass_all
6219 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6220 lt_cv_deplibs_check_method=pass_all
6223 sysv4 | sysv4.3*)
6224 case $host_vendor in
6225 motorola)
6226 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]'
6227 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6229 ncr)
6230 lt_cv_deplibs_check_method=pass_all
6232 sequent)
6233 lt_cv_file_magic_cmd='/bin/file'
6234 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6236 sni)
6237 lt_cv_file_magic_cmd='/bin/file'
6238 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6239 lt_cv_file_magic_test_file=/lib/libc.so
6241 siemens)
6242 lt_cv_deplibs_check_method=pass_all
6245 lt_cv_deplibs_check_method=pass_all
6247 esac
6250 tpf*)
6251 lt_cv_deplibs_check_method=pass_all
6253 esac
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6257 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6258 file_magic_cmd=$lt_cv_file_magic_cmd
6259 deplibs_check_method=$lt_cv_deplibs_check_method
6260 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6273 if test -n "$ac_tool_prefix"; then
6274 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6275 set dummy ${ac_tool_prefix}ar; ac_word=$2
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6277 $as_echo_n "checking for $ac_word... " >&6; }
6278 if test "${ac_cv_prog_AR+set}" = set; then :
6279 $as_echo_n "(cached) " >&6
6280 else
6281 if test -n "$AR"; then
6282 ac_cv_prog_AR="$AR" # Let the user override the test.
6283 else
6284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 for as_dir in $PATH
6287 IFS=$as_save_IFS
6288 test -z "$as_dir" && as_dir=.
6289 for ac_exec_ext in '' $ac_executable_extensions; do
6290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6291 ac_cv_prog_AR="${ac_tool_prefix}ar"
6292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6293 break 2
6295 done
6296 done
6297 IFS=$as_save_IFS
6301 AR=$ac_cv_prog_AR
6302 if test -n "$AR"; then
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6304 $as_echo "$AR" >&6; }
6305 else
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307 $as_echo "no" >&6; }
6312 if test -z "$ac_cv_prog_AR"; then
6313 ac_ct_AR=$AR
6314 # Extract the first word of "ar", so it can be a program name with args.
6315 set dummy ar; ac_word=$2
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6317 $as_echo_n "checking for $ac_word... " >&6; }
6318 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6319 $as_echo_n "(cached) " >&6
6320 else
6321 if test -n "$ac_ct_AR"; then
6322 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6323 else
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325 for as_dir in $PATH
6327 IFS=$as_save_IFS
6328 test -z "$as_dir" && as_dir=.
6329 for ac_exec_ext in '' $ac_executable_extensions; do
6330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6331 ac_cv_prog_ac_ct_AR="ar"
6332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6333 break 2
6335 done
6336 done
6337 IFS=$as_save_IFS
6341 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6342 if test -n "$ac_ct_AR"; then
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6344 $as_echo "$ac_ct_AR" >&6; }
6345 else
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347 $as_echo "no" >&6; }
6350 if test "x$ac_ct_AR" = x; then
6351 AR="false"
6352 else
6353 case $cross_compiling:$ac_tool_warned in
6354 yes:)
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6357 ac_tool_warned=yes ;;
6358 esac
6359 AR=$ac_ct_AR
6361 else
6362 AR="$ac_cv_prog_AR"
6365 test -z "$AR" && AR=ar
6366 test -z "$AR_FLAGS" && AR_FLAGS=cru
6378 if test -n "$ac_tool_prefix"; then
6379 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6380 set dummy ${ac_tool_prefix}strip; ac_word=$2
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6382 $as_echo_n "checking for $ac_word... " >&6; }
6383 if test "${ac_cv_prog_STRIP+set}" = set; then :
6384 $as_echo_n "(cached) " >&6
6385 else
6386 if test -n "$STRIP"; then
6387 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6388 else
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 for as_dir in $PATH
6392 IFS=$as_save_IFS
6393 test -z "$as_dir" && as_dir=.
6394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6396 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6398 break 2
6400 done
6401 done
6402 IFS=$as_save_IFS
6406 STRIP=$ac_cv_prog_STRIP
6407 if test -n "$STRIP"; then
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6409 $as_echo "$STRIP" >&6; }
6410 else
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412 $as_echo "no" >&6; }
6417 if test -z "$ac_cv_prog_STRIP"; then
6418 ac_ct_STRIP=$STRIP
6419 # Extract the first word of "strip", so it can be a program name with args.
6420 set dummy strip; ac_word=$2
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6422 $as_echo_n "checking for $ac_word... " >&6; }
6423 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6424 $as_echo_n "(cached) " >&6
6425 else
6426 if test -n "$ac_ct_STRIP"; then
6427 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6428 else
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 for as_dir in $PATH
6432 IFS=$as_save_IFS
6433 test -z "$as_dir" && as_dir=.
6434 for ac_exec_ext in '' $ac_executable_extensions; do
6435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6436 ac_cv_prog_ac_ct_STRIP="strip"
6437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6438 break 2
6440 done
6441 done
6442 IFS=$as_save_IFS
6446 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6447 if test -n "$ac_ct_STRIP"; then
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6449 $as_echo "$ac_ct_STRIP" >&6; }
6450 else
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452 $as_echo "no" >&6; }
6455 if test "x$ac_ct_STRIP" = x; then
6456 STRIP=":"
6457 else
6458 case $cross_compiling:$ac_tool_warned in
6459 yes:)
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6462 ac_tool_warned=yes ;;
6463 esac
6464 STRIP=$ac_ct_STRIP
6466 else
6467 STRIP="$ac_cv_prog_STRIP"
6470 test -z "$STRIP" && STRIP=:
6477 if test -n "$ac_tool_prefix"; then
6478 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6479 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6481 $as_echo_n "checking for $ac_word... " >&6; }
6482 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6483 $as_echo_n "(cached) " >&6
6484 else
6485 if test -n "$RANLIB"; then
6486 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6487 else
6488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 for as_dir in $PATH
6491 IFS=$as_save_IFS
6492 test -z "$as_dir" && as_dir=.
6493 for ac_exec_ext in '' $ac_executable_extensions; do
6494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6495 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6497 break 2
6499 done
6500 done
6501 IFS=$as_save_IFS
6505 RANLIB=$ac_cv_prog_RANLIB
6506 if test -n "$RANLIB"; then
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6508 $as_echo "$RANLIB" >&6; }
6509 else
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6511 $as_echo "no" >&6; }
6516 if test -z "$ac_cv_prog_RANLIB"; then
6517 ac_ct_RANLIB=$RANLIB
6518 # Extract the first word of "ranlib", so it can be a program name with args.
6519 set dummy ranlib; ac_word=$2
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6521 $as_echo_n "checking for $ac_word... " >&6; }
6522 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6523 $as_echo_n "(cached) " >&6
6524 else
6525 if test -n "$ac_ct_RANLIB"; then
6526 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6527 else
6528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 for as_dir in $PATH
6531 IFS=$as_save_IFS
6532 test -z "$as_dir" && as_dir=.
6533 for ac_exec_ext in '' $ac_executable_extensions; do
6534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6535 ac_cv_prog_ac_ct_RANLIB="ranlib"
6536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6537 break 2
6539 done
6540 done
6541 IFS=$as_save_IFS
6545 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6546 if test -n "$ac_ct_RANLIB"; then
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6548 $as_echo "$ac_ct_RANLIB" >&6; }
6549 else
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6551 $as_echo "no" >&6; }
6554 if test "x$ac_ct_RANLIB" = x; then
6555 RANLIB=":"
6556 else
6557 case $cross_compiling:$ac_tool_warned in
6558 yes:)
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6561 ac_tool_warned=yes ;;
6562 esac
6563 RANLIB=$ac_ct_RANLIB
6565 else
6566 RANLIB="$ac_cv_prog_RANLIB"
6569 test -z "$RANLIB" && RANLIB=:
6576 # Determine commands to create old-style static archives.
6577 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6578 old_postinstall_cmds='chmod 644 $oldlib'
6579 old_postuninstall_cmds=
6581 if test -n "$RANLIB"; then
6582 case $host_os in
6583 openbsd*)
6584 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6587 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6589 esac
6590 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6593 case $host_os in
6594 darwin*)
6595 lock_old_archive_extraction=yes ;;
6597 lock_old_archive_extraction=no ;;
6598 esac
6638 # If no C compiler was specified, use CC.
6639 LTCC=${LTCC-"$CC"}
6641 # If no C compiler flags were specified, use CFLAGS.
6642 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6644 # Allow CC to be a program name with arguments.
6645 compiler=$CC
6648 # Check for command to grab the raw symbol name followed by C symbol from nm.
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6650 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6651 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6652 $as_echo_n "(cached) " >&6
6653 else
6655 # These are sane defaults that work on at least a few old systems.
6656 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6658 # Character class describing NM global symbol codes.
6659 symcode='[BCDEGRST]'
6661 # Regexp to match symbols that can be accessed directly from C.
6662 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6664 # Define system-specific variables.
6665 case $host_os in
6666 aix*)
6667 symcode='[BCDT]'
6669 cygwin* | mingw* | pw32* | cegcc*)
6670 symcode='[ABCDGISTW]'
6672 hpux*)
6673 if test "$host_cpu" = ia64; then
6674 symcode='[ABCDEGRST]'
6677 irix* | nonstopux*)
6678 symcode='[BCDEGRST]'
6680 osf*)
6681 symcode='[BCDEGQRST]'
6683 solaris*)
6684 symcode='[BDRT]'
6686 sco3.2v5*)
6687 symcode='[DT]'
6689 sysv4.2uw2*)
6690 symcode='[DT]'
6692 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6693 symcode='[ABDT]'
6695 sysv4)
6696 symcode='[DFNSTU]'
6698 esac
6700 # If we're using GNU nm, then use its standard symbol codes.
6701 case `$NM -V 2>&1` in
6702 *GNU* | *'with BFD'*)
6703 symcode='[ABCDGIRSTW]' ;;
6704 esac
6706 # Transform an extracted symbol line into a proper C declaration.
6707 # Some systems (esp. on ia64) link data and code symbols differently,
6708 # so use this general approach.
6709 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6711 # Transform an extracted symbol line into symbol name and symbol address
6712 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6713 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6715 # Handle CRLF in mingw tool chain
6716 opt_cr=
6717 case $build_os in
6718 mingw*)
6719 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6721 esac
6723 # Try without a prefix underscore, then with it.
6724 for ac_symprfx in "" "_"; do
6726 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6727 symxfrm="\\1 $ac_symprfx\\2 \\2"
6729 # Write the raw and C identifiers.
6730 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6731 # Fake it for dumpbin and say T for any non-static function
6732 # and D for any global variable.
6733 # Also find C++ and __fastcall symbols from MSVC++,
6734 # which start with @ or ?.
6735 lt_cv_sys_global_symbol_pipe="$AWK '"\
6736 " {last_section=section; section=\$ 3};"\
6737 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6738 " \$ 0!~/External *\|/{next};"\
6739 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6740 " {if(hide[section]) next};"\
6741 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6742 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6743 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6744 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6745 " ' prfx=^$ac_symprfx"
6746 else
6747 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6750 # Check to see that the pipe works correctly.
6751 pipe_works=no
6753 rm -f conftest*
6754 cat > conftest.$ac_ext <<_LT_EOF
6755 #ifdef __cplusplus
6756 extern "C" {
6757 #endif
6758 char nm_test_var;
6759 void nm_test_func(void);
6760 void nm_test_func(void){}
6761 #ifdef __cplusplus
6763 #endif
6764 int main(){nm_test_var='a';nm_test_func();return(0);}
6765 _LT_EOF
6767 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6768 (eval $ac_compile) 2>&5
6769 ac_status=$?
6770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6771 test $ac_status = 0; }; then
6772 # Now try to grab the symbols.
6773 nlist=conftest.nm
6774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6775 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6776 ac_status=$?
6777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6778 test $ac_status = 0; } && test -s "$nlist"; then
6779 # Try sorting and uniquifying the output.
6780 if sort "$nlist" | uniq > "$nlist"T; then
6781 mv -f "$nlist"T "$nlist"
6782 else
6783 rm -f "$nlist"T
6786 # Make sure that we snagged all the symbols we need.
6787 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6788 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6789 cat <<_LT_EOF > conftest.$ac_ext
6790 #ifdef __cplusplus
6791 extern "C" {
6792 #endif
6794 _LT_EOF
6795 # Now generate the symbol file.
6796 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6798 cat <<_LT_EOF >> conftest.$ac_ext
6800 /* The mapping between symbol names and symbols. */
6801 const struct {
6802 const char *name;
6803 void *address;
6805 lt__PROGRAM__LTX_preloaded_symbols[] =
6807 { "@PROGRAM@", (void *) 0 },
6808 _LT_EOF
6809 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6810 cat <<\_LT_EOF >> conftest.$ac_ext
6811 {0, (void *) 0}
6814 /* This works around a problem in FreeBSD linker */
6815 #ifdef FREEBSD_WORKAROUND
6816 static const void *lt_preloaded_setup() {
6817 return lt__PROGRAM__LTX_preloaded_symbols;
6819 #endif
6821 #ifdef __cplusplus
6823 #endif
6824 _LT_EOF
6825 # Now try linking the two files.
6826 mv conftest.$ac_objext conftstm.$ac_objext
6827 lt_save_LIBS="$LIBS"
6828 lt_save_CFLAGS="$CFLAGS"
6829 LIBS="conftstm.$ac_objext"
6830 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6831 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6832 (eval $ac_link) 2>&5
6833 ac_status=$?
6834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6835 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6836 pipe_works=yes
6838 LIBS="$lt_save_LIBS"
6839 CFLAGS="$lt_save_CFLAGS"
6840 else
6841 echo "cannot find nm_test_func in $nlist" >&5
6843 else
6844 echo "cannot find nm_test_var in $nlist" >&5
6846 else
6847 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6849 else
6850 echo "$progname: failed program was:" >&5
6851 cat conftest.$ac_ext >&5
6853 rm -rf conftest* conftst*
6855 # Do not use the global_symbol_pipe unless it works.
6856 if test "$pipe_works" = yes; then
6857 break
6858 else
6859 lt_cv_sys_global_symbol_pipe=
6861 done
6865 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6866 lt_cv_sys_global_symbol_to_cdecl=
6868 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6870 $as_echo "failed" >&6; }
6871 else
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6873 $as_echo "ok" >&6; }
6897 # Check whether --enable-libtool-lock was given.
6898 if test "${enable_libtool_lock+set}" = set; then :
6899 enableval=$enable_libtool_lock;
6902 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6904 # Some flags need to be propagated to the compiler or linker for good
6905 # libtool support.
6906 case $host in
6907 ia64-*-hpux*)
6908 # Find out which ABI we are using.
6909 echo 'int i;' > conftest.$ac_ext
6910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6911 (eval $ac_compile) 2>&5
6912 ac_status=$?
6913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6914 test $ac_status = 0; }; then
6915 case `/usr/bin/file conftest.$ac_objext` in
6916 *ELF-32*)
6917 HPUX_IA64_MODE="32"
6919 *ELF-64*)
6920 HPUX_IA64_MODE="64"
6922 esac
6924 rm -rf conftest*
6926 *-*-irix6*)
6927 # Find out which ABI we are using.
6928 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6930 (eval $ac_compile) 2>&5
6931 ac_status=$?
6932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6933 test $ac_status = 0; }; then
6934 if test "$lt_cv_prog_gnu_ld" = yes; then
6935 case `/usr/bin/file conftest.$ac_objext` in
6936 *32-bit*)
6937 LD="${LD-ld} -melf32bsmip"
6939 *N32*)
6940 LD="${LD-ld} -melf32bmipn32"
6942 *64-bit*)
6943 LD="${LD-ld} -melf64bmip"
6945 esac
6946 else
6947 case `/usr/bin/file conftest.$ac_objext` in
6948 *32-bit*)
6949 LD="${LD-ld} -32"
6951 *N32*)
6952 LD="${LD-ld} -n32"
6954 *64-bit*)
6955 LD="${LD-ld} -64"
6957 esac
6960 rm -rf conftest*
6963 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6964 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6965 # Find out which ABI we are using.
6966 echo 'int i;' > conftest.$ac_ext
6967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6968 (eval $ac_compile) 2>&5
6969 ac_status=$?
6970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6971 test $ac_status = 0; }; then
6972 case `/usr/bin/file conftest.o` in
6973 *32-bit*)
6974 case $host in
6975 x86_64-*kfreebsd*-gnu)
6976 LD="${LD-ld} -m elf_i386_fbsd"
6978 x86_64-*linux*)
6979 LD="${LD-ld} -m elf_i386"
6981 ppc64-*linux*|powerpc64-*linux*)
6982 LD="${LD-ld} -m elf32ppclinux"
6984 s390x-*linux*)
6985 LD="${LD-ld} -m elf_s390"
6987 sparc64-*linux*)
6988 LD="${LD-ld} -m elf32_sparc"
6990 esac
6992 *64-bit*)
6993 case $host in
6994 x86_64-*kfreebsd*-gnu)
6995 LD="${LD-ld} -m elf_x86_64_fbsd"
6997 x86_64-*linux*)
6998 LD="${LD-ld} -m elf_x86_64"
7000 ppc*-*linux*|powerpc*-*linux*)
7001 LD="${LD-ld} -m elf64ppc"
7003 s390*-*linux*|s390*-*tpf*)
7004 LD="${LD-ld} -m elf64_s390"
7006 sparc*-*linux*)
7007 LD="${LD-ld} -m elf64_sparc"
7009 esac
7011 esac
7013 rm -rf conftest*
7016 *-*-sco3.2v5*)
7017 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7018 SAVE_CFLAGS="$CFLAGS"
7019 CFLAGS="$CFLAGS -belf"
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7021 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7022 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7023 $as_echo_n "(cached) " >&6
7024 else
7025 ac_ext=c
7026 ac_cpp='$CPP $CPPFLAGS'
7027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7032 /* end confdefs.h. */
7035 main ()
7039 return 0;
7041 _ACEOF
7042 if ac_fn_c_try_link "$LINENO"; then :
7043 lt_cv_cc_needs_belf=yes
7044 else
7045 lt_cv_cc_needs_belf=no
7047 rm -f core conftest.err conftest.$ac_objext \
7048 conftest$ac_exeext conftest.$ac_ext
7049 ac_ext=c
7050 ac_cpp='$CPP $CPPFLAGS'
7051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7057 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7058 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7059 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7060 CFLAGS="$SAVE_CFLAGS"
7063 sparc*-*solaris*)
7064 # Find out which ABI we are using.
7065 echo 'int i;' > conftest.$ac_ext
7066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7067 (eval $ac_compile) 2>&5
7068 ac_status=$?
7069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7070 test $ac_status = 0; }; then
7071 case `/usr/bin/file conftest.o` in
7072 *64-bit*)
7073 case $lt_cv_prog_gnu_ld in
7074 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7076 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7077 LD="${LD-ld} -64"
7080 esac
7082 esac
7084 rm -rf conftest*
7086 esac
7088 need_locks="$enable_libtool_lock"
7091 case $host_os in
7092 rhapsody* | darwin*)
7093 if test -n "$ac_tool_prefix"; then
7094 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7095 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097 $as_echo_n "checking for $ac_word... " >&6; }
7098 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7099 $as_echo_n "(cached) " >&6
7100 else
7101 if test -n "$DSYMUTIL"; then
7102 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7103 else
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 for as_dir in $PATH
7107 IFS=$as_save_IFS
7108 test -z "$as_dir" && as_dir=.
7109 for ac_exec_ext in '' $ac_executable_extensions; do
7110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7111 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7113 break 2
7115 done
7116 done
7117 IFS=$as_save_IFS
7121 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7122 if test -n "$DSYMUTIL"; then
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7124 $as_echo "$DSYMUTIL" >&6; }
7125 else
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127 $as_echo "no" >&6; }
7132 if test -z "$ac_cv_prog_DSYMUTIL"; then
7133 ac_ct_DSYMUTIL=$DSYMUTIL
7134 # Extract the first word of "dsymutil", so it can be a program name with args.
7135 set dummy dsymutil; ac_word=$2
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7137 $as_echo_n "checking for $ac_word... " >&6; }
7138 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7139 $as_echo_n "(cached) " >&6
7140 else
7141 if test -n "$ac_ct_DSYMUTIL"; then
7142 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7143 else
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7147 IFS=$as_save_IFS
7148 test -z "$as_dir" && as_dir=.
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7151 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 break 2
7155 done
7156 done
7157 IFS=$as_save_IFS
7161 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7162 if test -n "$ac_ct_DSYMUTIL"; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7164 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7165 else
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167 $as_echo "no" >&6; }
7170 if test "x$ac_ct_DSYMUTIL" = x; then
7171 DSYMUTIL=":"
7172 else
7173 case $cross_compiling:$ac_tool_warned in
7174 yes:)
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7177 ac_tool_warned=yes ;;
7178 esac
7179 DSYMUTIL=$ac_ct_DSYMUTIL
7181 else
7182 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7185 if test -n "$ac_tool_prefix"; then
7186 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7187 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7189 $as_echo_n "checking for $ac_word... " >&6; }
7190 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7191 $as_echo_n "(cached) " >&6
7192 else
7193 if test -n "$NMEDIT"; then
7194 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7195 else
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197 for as_dir in $PATH
7199 IFS=$as_save_IFS
7200 test -z "$as_dir" && as_dir=.
7201 for ac_exec_ext in '' $ac_executable_extensions; do
7202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7203 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7205 break 2
7207 done
7208 done
7209 IFS=$as_save_IFS
7213 NMEDIT=$ac_cv_prog_NMEDIT
7214 if test -n "$NMEDIT"; then
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7216 $as_echo "$NMEDIT" >&6; }
7217 else
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219 $as_echo "no" >&6; }
7224 if test -z "$ac_cv_prog_NMEDIT"; then
7225 ac_ct_NMEDIT=$NMEDIT
7226 # Extract the first word of "nmedit", so it can be a program name with args.
7227 set dummy nmedit; ac_word=$2
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7229 $as_echo_n "checking for $ac_word... " >&6; }
7230 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7231 $as_echo_n "(cached) " >&6
7232 else
7233 if test -n "$ac_ct_NMEDIT"; then
7234 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7235 else
7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237 for as_dir in $PATH
7239 IFS=$as_save_IFS
7240 test -z "$as_dir" && as_dir=.
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7243 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7245 break 2
7247 done
7248 done
7249 IFS=$as_save_IFS
7253 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7254 if test -n "$ac_ct_NMEDIT"; then
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7256 $as_echo "$ac_ct_NMEDIT" >&6; }
7257 else
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259 $as_echo "no" >&6; }
7262 if test "x$ac_ct_NMEDIT" = x; then
7263 NMEDIT=":"
7264 else
7265 case $cross_compiling:$ac_tool_warned in
7266 yes:)
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7269 ac_tool_warned=yes ;;
7270 esac
7271 NMEDIT=$ac_ct_NMEDIT
7273 else
7274 NMEDIT="$ac_cv_prog_NMEDIT"
7277 if test -n "$ac_tool_prefix"; then
7278 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7279 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281 $as_echo_n "checking for $ac_word... " >&6; }
7282 if test "${ac_cv_prog_LIPO+set}" = set; then :
7283 $as_echo_n "(cached) " >&6
7284 else
7285 if test -n "$LIPO"; then
7286 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7287 else
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289 for as_dir in $PATH
7291 IFS=$as_save_IFS
7292 test -z "$as_dir" && as_dir=.
7293 for ac_exec_ext in '' $ac_executable_extensions; do
7294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7295 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7297 break 2
7299 done
7300 done
7301 IFS=$as_save_IFS
7305 LIPO=$ac_cv_prog_LIPO
7306 if test -n "$LIPO"; then
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7308 $as_echo "$LIPO" >&6; }
7309 else
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311 $as_echo "no" >&6; }
7316 if test -z "$ac_cv_prog_LIPO"; then
7317 ac_ct_LIPO=$LIPO
7318 # Extract the first word of "lipo", so it can be a program name with args.
7319 set dummy lipo; ac_word=$2
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7321 $as_echo_n "checking for $ac_word... " >&6; }
7322 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7323 $as_echo_n "(cached) " >&6
7324 else
7325 if test -n "$ac_ct_LIPO"; then
7326 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7327 else
7328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329 for as_dir in $PATH
7331 IFS=$as_save_IFS
7332 test -z "$as_dir" && as_dir=.
7333 for ac_exec_ext in '' $ac_executable_extensions; do
7334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7335 ac_cv_prog_ac_ct_LIPO="lipo"
7336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7337 break 2
7339 done
7340 done
7341 IFS=$as_save_IFS
7345 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7346 if test -n "$ac_ct_LIPO"; then
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7348 $as_echo "$ac_ct_LIPO" >&6; }
7349 else
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351 $as_echo "no" >&6; }
7354 if test "x$ac_ct_LIPO" = x; then
7355 LIPO=":"
7356 else
7357 case $cross_compiling:$ac_tool_warned in
7358 yes:)
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7361 ac_tool_warned=yes ;;
7362 esac
7363 LIPO=$ac_ct_LIPO
7365 else
7366 LIPO="$ac_cv_prog_LIPO"
7369 if test -n "$ac_tool_prefix"; then
7370 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7371 set dummy ${ac_tool_prefix}otool; ac_word=$2
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7373 $as_echo_n "checking for $ac_word... " >&6; }
7374 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7375 $as_echo_n "(cached) " >&6
7376 else
7377 if test -n "$OTOOL"; then
7378 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7379 else
7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 for as_dir in $PATH
7383 IFS=$as_save_IFS
7384 test -z "$as_dir" && as_dir=.
7385 for ac_exec_ext in '' $ac_executable_extensions; do
7386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7387 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7389 break 2
7391 done
7392 done
7393 IFS=$as_save_IFS
7397 OTOOL=$ac_cv_prog_OTOOL
7398 if test -n "$OTOOL"; then
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7400 $as_echo "$OTOOL" >&6; }
7401 else
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7403 $as_echo "no" >&6; }
7408 if test -z "$ac_cv_prog_OTOOL"; then
7409 ac_ct_OTOOL=$OTOOL
7410 # Extract the first word of "otool", so it can be a program name with args.
7411 set dummy otool; ac_word=$2
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7413 $as_echo_n "checking for $ac_word... " >&6; }
7414 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7415 $as_echo_n "(cached) " >&6
7416 else
7417 if test -n "$ac_ct_OTOOL"; then
7418 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7419 else
7420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421 for as_dir in $PATH
7423 IFS=$as_save_IFS
7424 test -z "$as_dir" && as_dir=.
7425 for ac_exec_ext in '' $ac_executable_extensions; do
7426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7427 ac_cv_prog_ac_ct_OTOOL="otool"
7428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7429 break 2
7431 done
7432 done
7433 IFS=$as_save_IFS
7437 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7438 if test -n "$ac_ct_OTOOL"; then
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7440 $as_echo "$ac_ct_OTOOL" >&6; }
7441 else
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443 $as_echo "no" >&6; }
7446 if test "x$ac_ct_OTOOL" = x; then
7447 OTOOL=":"
7448 else
7449 case $cross_compiling:$ac_tool_warned in
7450 yes:)
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7453 ac_tool_warned=yes ;;
7454 esac
7455 OTOOL=$ac_ct_OTOOL
7457 else
7458 OTOOL="$ac_cv_prog_OTOOL"
7461 if test -n "$ac_tool_prefix"; then
7462 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7463 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7465 $as_echo_n "checking for $ac_word... " >&6; }
7466 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7467 $as_echo_n "(cached) " >&6
7468 else
7469 if test -n "$OTOOL64"; then
7470 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7471 else
7472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473 for as_dir in $PATH
7475 IFS=$as_save_IFS
7476 test -z "$as_dir" && as_dir=.
7477 for ac_exec_ext in '' $ac_executable_extensions; do
7478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7479 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7481 break 2
7483 done
7484 done
7485 IFS=$as_save_IFS
7489 OTOOL64=$ac_cv_prog_OTOOL64
7490 if test -n "$OTOOL64"; then
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7492 $as_echo "$OTOOL64" >&6; }
7493 else
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495 $as_echo "no" >&6; }
7500 if test -z "$ac_cv_prog_OTOOL64"; then
7501 ac_ct_OTOOL64=$OTOOL64
7502 # Extract the first word of "otool64", so it can be a program name with args.
7503 set dummy otool64; ac_word=$2
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7505 $as_echo_n "checking for $ac_word... " >&6; }
7506 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7507 $as_echo_n "(cached) " >&6
7508 else
7509 if test -n "$ac_ct_OTOOL64"; then
7510 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7511 else
7512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513 for as_dir in $PATH
7515 IFS=$as_save_IFS
7516 test -z "$as_dir" && as_dir=.
7517 for ac_exec_ext in '' $ac_executable_extensions; do
7518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7519 ac_cv_prog_ac_ct_OTOOL64="otool64"
7520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7521 break 2
7523 done
7524 done
7525 IFS=$as_save_IFS
7529 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7530 if test -n "$ac_ct_OTOOL64"; then
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7532 $as_echo "$ac_ct_OTOOL64" >&6; }
7533 else
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7535 $as_echo "no" >&6; }
7538 if test "x$ac_ct_OTOOL64" = x; then
7539 OTOOL64=":"
7540 else
7541 case $cross_compiling:$ac_tool_warned in
7542 yes:)
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7545 ac_tool_warned=yes ;;
7546 esac
7547 OTOOL64=$ac_ct_OTOOL64
7549 else
7550 OTOOL64="$ac_cv_prog_OTOOL64"
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7580 $as_echo_n "checking for -single_module linker flag... " >&6; }
7581 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7582 $as_echo_n "(cached) " >&6
7583 else
7584 lt_cv_apple_cc_single_mod=no
7585 if test -z "${LT_MULTI_MODULE}"; then
7586 # By default we will add the -single_module flag. You can override
7587 # by either setting the environment variable LT_MULTI_MODULE
7588 # non-empty at configure time, or by adding -multi_module to the
7589 # link flags.
7590 rm -rf libconftest.dylib*
7591 echo "int foo(void){return 1;}" > conftest.c
7592 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7593 -dynamiclib -Wl,-single_module conftest.c" >&5
7594 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7595 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7596 _lt_result=$?
7597 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7598 lt_cv_apple_cc_single_mod=yes
7599 else
7600 cat conftest.err >&5
7602 rm -rf libconftest.dylib*
7603 rm -f conftest.*
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7607 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7609 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7610 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7611 $as_echo_n "(cached) " >&6
7612 else
7613 lt_cv_ld_exported_symbols_list=no
7614 save_LDFLAGS=$LDFLAGS
7615 echo "_main" > conftest.sym
7616 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618 /* end confdefs.h. */
7621 main ()
7625 return 0;
7627 _ACEOF
7628 if ac_fn_c_try_link "$LINENO"; then :
7629 lt_cv_ld_exported_symbols_list=yes
7630 else
7631 lt_cv_ld_exported_symbols_list=no
7633 rm -f core conftest.err conftest.$ac_objext \
7634 conftest$ac_exeext conftest.$ac_ext
7635 LDFLAGS="$save_LDFLAGS"
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7639 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7641 $as_echo_n "checking for -force_load linker flag... " >&6; }
7642 if test "${lt_cv_ld_force_load+set}" = set; then :
7643 $as_echo_n "(cached) " >&6
7644 else
7645 lt_cv_ld_force_load=no
7646 cat > conftest.c << _LT_EOF
7647 int forced_loaded() { return 2;}
7648 _LT_EOF
7649 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7650 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7651 echo "$AR cru libconftest.a conftest.o" >&5
7652 $AR cru libconftest.a conftest.o 2>&5
7653 cat > conftest.c << _LT_EOF
7654 int main() { return 0;}
7655 _LT_EOF
7656 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7657 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7658 _lt_result=$?
7659 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7660 lt_cv_ld_force_load=yes
7661 else
7662 cat conftest.err >&5
7664 rm -f conftest.err libconftest.a conftest conftest.c
7665 rm -rf conftest.dSYM
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7669 $as_echo "$lt_cv_ld_force_load" >&6; }
7670 case $host_os in
7671 rhapsody* | darwin1.[012])
7672 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7673 darwin1.*)
7674 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7675 darwin*) # darwin 5.x on
7676 # if running on 10.5 or later, the deployment target defaults
7677 # to the OS version, if on x86, and 10.4, the deployment
7678 # target defaults to 10.4. Don't you love it?
7679 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7680 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7681 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7682 10.[012]*)
7683 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7684 10.*)
7685 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7686 esac
7688 esac
7689 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7690 _lt_dar_single_mod='$single_module'
7692 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7693 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7694 else
7695 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7697 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7698 _lt_dsymutil='~$DSYMUTIL $lib || :'
7699 else
7700 _lt_dsymutil=
7703 esac
7705 for ac_header in dlfcn.h
7706 do :
7707 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7709 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7710 cat >>confdefs.h <<_ACEOF
7711 #define HAVE_DLFCN_H 1
7712 _ACEOF
7716 done
7722 # Set options
7726 enable_dlopen=no
7729 enable_win32_dll=no
7732 # Check whether --enable-shared was given.
7733 if test "${enable_shared+set}" = set; then :
7734 enableval=$enable_shared; p=${PACKAGE-default}
7735 case $enableval in
7736 yes) enable_shared=yes ;;
7737 no) enable_shared=no ;;
7739 enable_shared=no
7740 # Look at the argument we got. We use all the common list separators.
7741 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7742 for pkg in $enableval; do
7743 IFS="$lt_save_ifs"
7744 if test "X$pkg" = "X$p"; then
7745 enable_shared=yes
7747 done
7748 IFS="$lt_save_ifs"
7750 esac
7751 else
7752 enable_shared=yes
7763 # Check whether --enable-static was given.
7764 if test "${enable_static+set}" = set; then :
7765 enableval=$enable_static; p=${PACKAGE-default}
7766 case $enableval in
7767 yes) enable_static=yes ;;
7768 no) enable_static=no ;;
7770 enable_static=no
7771 # Look at the argument we got. We use all the common list separators.
7772 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7773 for pkg in $enableval; do
7774 IFS="$lt_save_ifs"
7775 if test "X$pkg" = "X$p"; then
7776 enable_static=yes
7778 done
7779 IFS="$lt_save_ifs"
7781 esac
7782 else
7783 enable_static=yes
7795 # Check whether --with-pic was given.
7796 if test "${with_pic+set}" = set; then :
7797 withval=$with_pic; pic_mode="$withval"
7798 else
7799 pic_mode=default
7803 test -z "$pic_mode" && pic_mode=default
7811 # Check whether --enable-fast-install was given.
7812 if test "${enable_fast_install+set}" = set; then :
7813 enableval=$enable_fast_install; p=${PACKAGE-default}
7814 case $enableval in
7815 yes) enable_fast_install=yes ;;
7816 no) enable_fast_install=no ;;
7818 enable_fast_install=no
7819 # Look at the argument we got. We use all the common list separators.
7820 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7821 for pkg in $enableval; do
7822 IFS="$lt_save_ifs"
7823 if test "X$pkg" = "X$p"; then
7824 enable_fast_install=yes
7826 done
7827 IFS="$lt_save_ifs"
7829 esac
7830 else
7831 enable_fast_install=yes
7844 # This can be used to rebuild libtool when needed
7845 LIBTOOL_DEPS="$ltmain"
7847 # Always use our own libtool.
7848 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7875 test -z "$LN_S" && LN_S="ln -s"
7890 if test -n "${ZSH_VERSION+set}" ; then
7891 setopt NO_GLOB_SUBST
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7895 $as_echo_n "checking for objdir... " >&6; }
7896 if test "${lt_cv_objdir+set}" = set; then :
7897 $as_echo_n "(cached) " >&6
7898 else
7899 rm -f .libs 2>/dev/null
7900 mkdir .libs 2>/dev/null
7901 if test -d .libs; then
7902 lt_cv_objdir=.libs
7903 else
7904 # MS-DOS does not allow filenames that begin with a dot.
7905 lt_cv_objdir=_libs
7907 rmdir .libs 2>/dev/null
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7910 $as_echo "$lt_cv_objdir" >&6; }
7911 objdir=$lt_cv_objdir
7917 cat >>confdefs.h <<_ACEOF
7918 #define LT_OBJDIR "$lt_cv_objdir/"
7919 _ACEOF
7924 case $host_os in
7925 aix3*)
7926 # AIX sometimes has problems with the GCC collect2 program. For some
7927 # reason, if we set the COLLECT_NAMES environment variable, the problems
7928 # vanish in a puff of smoke.
7929 if test "X${COLLECT_NAMES+set}" != Xset; then
7930 COLLECT_NAMES=
7931 export COLLECT_NAMES
7934 esac
7936 # Global variables:
7937 ofile=libtool
7938 can_build_shared=yes
7940 # All known linkers require a `.a' archive for static linking (except MSVC,
7941 # which needs '.lib').
7942 libext=a
7944 with_gnu_ld="$lt_cv_prog_gnu_ld"
7946 old_CC="$CC"
7947 old_CFLAGS="$CFLAGS"
7949 # Set sane defaults for various variables
7950 test -z "$CC" && CC=cc
7951 test -z "$LTCC" && LTCC=$CC
7952 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7953 test -z "$LD" && LD=ld
7954 test -z "$ac_objext" && ac_objext=o
7956 for cc_temp in $compiler""; do
7957 case $cc_temp in
7958 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7959 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7960 \-*) ;;
7961 *) break;;
7962 esac
7963 done
7964 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7967 # Only perform the check for file, if the check method requires it
7968 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7969 case $deplibs_check_method in
7970 file_magic*)
7971 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7973 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7974 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7975 $as_echo_n "(cached) " >&6
7976 else
7977 case $MAGIC_CMD in
7978 [\\/*] | ?:[\\/]*)
7979 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7982 lt_save_MAGIC_CMD="$MAGIC_CMD"
7983 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7984 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7985 for ac_dir in $ac_dummy; do
7986 IFS="$lt_save_ifs"
7987 test -z "$ac_dir" && ac_dir=.
7988 if test -f $ac_dir/${ac_tool_prefix}file; then
7989 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7990 if test -n "$file_magic_test_file"; then
7991 case $deplibs_check_method in
7992 "file_magic "*)
7993 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7994 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7995 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7996 $EGREP "$file_magic_regex" > /dev/null; then
7998 else
7999 cat <<_LT_EOF 1>&2
8001 *** Warning: the command libtool uses to detect shared libraries,
8002 *** $file_magic_cmd, produces output that libtool cannot recognize.
8003 *** The result is that libtool may fail to recognize shared libraries
8004 *** as such. This will affect the creation of libtool libraries that
8005 *** depend on shared libraries, but programs linked with such libtool
8006 *** libraries will work regardless of this problem. Nevertheless, you
8007 *** may want to report the problem to your system manager and/or to
8008 *** bug-libtool@gnu.org
8010 _LT_EOF
8011 fi ;;
8012 esac
8014 break
8016 done
8017 IFS="$lt_save_ifs"
8018 MAGIC_CMD="$lt_save_MAGIC_CMD"
8020 esac
8023 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8024 if test -n "$MAGIC_CMD"; then
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8026 $as_echo "$MAGIC_CMD" >&6; }
8027 else
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8029 $as_echo "no" >&6; }
8036 if test -z "$lt_cv_path_MAGIC_CMD"; then
8037 if test -n "$ac_tool_prefix"; then
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8039 $as_echo_n "checking for file... " >&6; }
8040 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8041 $as_echo_n "(cached) " >&6
8042 else
8043 case $MAGIC_CMD in
8044 [\\/*] | ?:[\\/]*)
8045 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8048 lt_save_MAGIC_CMD="$MAGIC_CMD"
8049 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8050 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8051 for ac_dir in $ac_dummy; do
8052 IFS="$lt_save_ifs"
8053 test -z "$ac_dir" && ac_dir=.
8054 if test -f $ac_dir/file; then
8055 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8056 if test -n "$file_magic_test_file"; then
8057 case $deplibs_check_method in
8058 "file_magic "*)
8059 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8060 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8061 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8062 $EGREP "$file_magic_regex" > /dev/null; then
8064 else
8065 cat <<_LT_EOF 1>&2
8067 *** Warning: the command libtool uses to detect shared libraries,
8068 *** $file_magic_cmd, produces output that libtool cannot recognize.
8069 *** The result is that libtool may fail to recognize shared libraries
8070 *** as such. This will affect the creation of libtool libraries that
8071 *** depend on shared libraries, but programs linked with such libtool
8072 *** libraries will work regardless of this problem. Nevertheless, you
8073 *** may want to report the problem to your system manager and/or to
8074 *** bug-libtool@gnu.org
8076 _LT_EOF
8077 fi ;;
8078 esac
8080 break
8082 done
8083 IFS="$lt_save_ifs"
8084 MAGIC_CMD="$lt_save_MAGIC_CMD"
8086 esac
8089 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8090 if test -n "$MAGIC_CMD"; then
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8092 $as_echo "$MAGIC_CMD" >&6; }
8093 else
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8095 $as_echo "no" >&6; }
8099 else
8100 MAGIC_CMD=:
8106 esac
8108 # Use C for the default configuration in the libtool script
8110 lt_save_CC="$CC"
8111 ac_ext=c
8112 ac_cpp='$CPP $CPPFLAGS'
8113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8118 # Source file extension for C test sources.
8119 ac_ext=c
8121 # Object file extension for compiled C test sources.
8122 objext=o
8123 objext=$objext
8125 # Code to be used in simple compile tests
8126 lt_simple_compile_test_code="int some_variable = 0;"
8128 # Code to be used in simple link tests
8129 lt_simple_link_test_code='int main(){return(0);}'
8137 # If no C compiler was specified, use CC.
8138 LTCC=${LTCC-"$CC"}
8140 # If no C compiler flags were specified, use CFLAGS.
8141 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8143 # Allow CC to be a program name with arguments.
8144 compiler=$CC
8146 # Save the default compiler, since it gets overwritten when the other
8147 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8148 compiler_DEFAULT=$CC
8150 # save warnings/boilerplate of simple test code
8151 ac_outfile=conftest.$ac_objext
8152 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8153 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8154 _lt_compiler_boilerplate=`cat conftest.err`
8155 $RM conftest*
8157 ac_outfile=conftest.$ac_objext
8158 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8159 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8160 _lt_linker_boilerplate=`cat conftest.err`
8161 $RM -r conftest*
8164 ## CAVEAT EMPTOR:
8165 ## There is no encapsulation within the following macros, do not change
8166 ## the running order or otherwise move them around unless you know exactly
8167 ## what you are doing...
8168 if test -n "$compiler"; then
8170 lt_prog_compiler_no_builtin_flag=
8172 if test "$GCC" = yes; then
8173 case $cc_basename in
8174 nvcc*)
8175 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8177 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8178 esac
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8181 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8182 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8183 $as_echo_n "(cached) " >&6
8184 else
8185 lt_cv_prog_compiler_rtti_exceptions=no
8186 ac_outfile=conftest.$ac_objext
8187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8188 lt_compiler_flag="-fno-rtti -fno-exceptions"
8189 # Insert the option either (1) after the last *FLAGS variable, or
8190 # (2) before a word containing "conftest.", or (3) at the end.
8191 # Note that $ac_compile itself does not contain backslashes and begins
8192 # with a dollar sign (not a hyphen), so the echo should work correctly.
8193 # The option is referenced via a variable to avoid confusing sed.
8194 lt_compile=`echo "$ac_compile" | $SED \
8195 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8196 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8197 -e 's:$: $lt_compiler_flag:'`
8198 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8199 (eval "$lt_compile" 2>conftest.err)
8200 ac_status=$?
8201 cat conftest.err >&5
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 if (exit $ac_status) && test -s "$ac_outfile"; then
8204 # The compiler can only warn and ignore the option if not recognized
8205 # So say no if there are warnings other than the usual output.
8206 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8207 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8208 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8209 lt_cv_prog_compiler_rtti_exceptions=yes
8212 $RM conftest*
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8216 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8218 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8219 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8220 else
8231 lt_prog_compiler_wl=
8232 lt_prog_compiler_pic=
8233 lt_prog_compiler_static=
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8236 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8238 if test "$GCC" = yes; then
8239 lt_prog_compiler_wl='-Wl,'
8240 lt_prog_compiler_static='-static'
8242 case $host_os in
8243 aix*)
8244 # All AIX code is PIC.
8245 if test "$host_cpu" = ia64; then
8246 # AIX 5 now supports IA64 processor
8247 lt_prog_compiler_static='-Bstatic'
8251 amigaos*)
8252 case $host_cpu in
8253 powerpc)
8254 # see comment about AmigaOS4 .so support
8255 lt_prog_compiler_pic='-fPIC'
8257 m68k)
8258 # FIXME: we need at least 68020 code to build shared libraries, but
8259 # adding the `-m68020' flag to GCC prevents building anything better,
8260 # like `-m68040'.
8261 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8263 esac
8266 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8267 # PIC is the default for these OSes.
8270 mingw* | cygwin* | pw32* | os2* | cegcc*)
8271 # This hack is so that the source file can tell whether it is being
8272 # built for inclusion in a dll (and should export symbols for example).
8273 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8274 # (--disable-auto-import) libraries
8275 lt_prog_compiler_pic='-DDLL_EXPORT'
8278 darwin* | rhapsody*)
8279 # PIC is the default on this platform
8280 # Common symbols not allowed in MH_DYLIB files
8281 lt_prog_compiler_pic='-fno-common'
8284 haiku*)
8285 # PIC is the default for Haiku.
8286 # The "-static" flag exists, but is broken.
8287 lt_prog_compiler_static=
8290 hpux*)
8291 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8292 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8293 # sets the default TLS model and affects inlining.
8294 case $host_cpu in
8295 hppa*64*)
8296 # +Z the default
8299 lt_prog_compiler_pic='-fPIC'
8301 esac
8304 interix[3-9]*)
8305 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8306 # Instead, we relocate shared libraries at runtime.
8309 msdosdjgpp*)
8310 # Just because we use GCC doesn't mean we suddenly get shared libraries
8311 # on systems that don't support them.
8312 lt_prog_compiler_can_build_shared=no
8313 enable_shared=no
8316 *nto* | *qnx*)
8317 # QNX uses GNU C++, but need to define -shared option too, otherwise
8318 # it will coredump.
8319 lt_prog_compiler_pic='-fPIC -shared'
8322 sysv4*MP*)
8323 if test -d /usr/nec; then
8324 lt_prog_compiler_pic=-Kconform_pic
8329 lt_prog_compiler_pic='-fPIC'
8331 esac
8333 case $cc_basename in
8334 nvcc*) # Cuda Compiler Driver 2.2
8335 lt_prog_compiler_wl='-Xlinker '
8336 lt_prog_compiler_pic='-Xcompiler -fPIC'
8338 esac
8339 else
8340 # PORTME Check for flag to pass linker flags through the system compiler.
8341 case $host_os in
8342 aix*)
8343 lt_prog_compiler_wl='-Wl,'
8344 if test "$host_cpu" = ia64; then
8345 # AIX 5 now supports IA64 processor
8346 lt_prog_compiler_static='-Bstatic'
8347 else
8348 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8352 mingw* | cygwin* | pw32* | os2* | cegcc*)
8353 # This hack is so that the source file can tell whether it is being
8354 # built for inclusion in a dll (and should export symbols for example).
8355 lt_prog_compiler_pic='-DDLL_EXPORT'
8358 hpux9* | hpux10* | hpux11*)
8359 lt_prog_compiler_wl='-Wl,'
8360 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8361 # not for PA HP-UX.
8362 case $host_cpu in
8363 hppa*64*|ia64*)
8364 # +Z the default
8367 lt_prog_compiler_pic='+Z'
8369 esac
8370 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8371 lt_prog_compiler_static='${wl}-a ${wl}archive'
8374 irix5* | irix6* | nonstopux*)
8375 lt_prog_compiler_wl='-Wl,'
8376 # PIC (with -KPIC) is the default.
8377 lt_prog_compiler_static='-non_shared'
8380 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8381 case $cc_basename in
8382 # old Intel for x86_64 which still supported -KPIC.
8383 ecc*)
8384 lt_prog_compiler_wl='-Wl,'
8385 lt_prog_compiler_pic='-KPIC'
8386 lt_prog_compiler_static='-static'
8388 # icc used to be incompatible with GCC.
8389 # ICC 10 doesn't accept -KPIC any more.
8390 icc* | ifort*)
8391 lt_prog_compiler_wl='-Wl,'
8392 lt_prog_compiler_pic='-fPIC'
8393 lt_prog_compiler_static='-static'
8395 # Lahey Fortran 8.1.
8396 lf95*)
8397 lt_prog_compiler_wl='-Wl,'
8398 lt_prog_compiler_pic='--shared'
8399 lt_prog_compiler_static='--static'
8401 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8402 # Portland Group compilers (*not* the Pentium gcc compiler,
8403 # which looks to be a dead project)
8404 lt_prog_compiler_wl='-Wl,'
8405 lt_prog_compiler_pic='-fpic'
8406 lt_prog_compiler_static='-Bstatic'
8408 ccc*)
8409 lt_prog_compiler_wl='-Wl,'
8410 # All Alpha code is PIC.
8411 lt_prog_compiler_static='-non_shared'
8413 xl* | bgxl* | bgf* | mpixl*)
8414 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8415 lt_prog_compiler_wl='-Wl,'
8416 lt_prog_compiler_pic='-qpic'
8417 lt_prog_compiler_static='-qstaticlink'
8420 case `$CC -V 2>&1 | sed 5q` in
8421 *Sun\ F* | *Sun*Fortran*)
8422 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8423 lt_prog_compiler_pic='-KPIC'
8424 lt_prog_compiler_static='-Bstatic'
8425 lt_prog_compiler_wl=''
8427 *Sun\ C*)
8428 # Sun C 5.9
8429 lt_prog_compiler_pic='-KPIC'
8430 lt_prog_compiler_static='-Bstatic'
8431 lt_prog_compiler_wl='-Wl,'
8433 esac
8435 esac
8438 newsos6)
8439 lt_prog_compiler_pic='-KPIC'
8440 lt_prog_compiler_static='-Bstatic'
8443 *nto* | *qnx*)
8444 # QNX uses GNU C++, but need to define -shared option too, otherwise
8445 # it will coredump.
8446 lt_prog_compiler_pic='-fPIC -shared'
8449 osf3* | osf4* | osf5*)
8450 lt_prog_compiler_wl='-Wl,'
8451 # All OSF/1 code is PIC.
8452 lt_prog_compiler_static='-non_shared'
8455 rdos*)
8456 lt_prog_compiler_static='-non_shared'
8459 solaris*)
8460 lt_prog_compiler_pic='-KPIC'
8461 lt_prog_compiler_static='-Bstatic'
8462 case $cc_basename in
8463 f77* | f90* | f95*)
8464 lt_prog_compiler_wl='-Qoption ld ';;
8466 lt_prog_compiler_wl='-Wl,';;
8467 esac
8470 sunos4*)
8471 lt_prog_compiler_wl='-Qoption ld '
8472 lt_prog_compiler_pic='-PIC'
8473 lt_prog_compiler_static='-Bstatic'
8476 sysv4 | sysv4.2uw2* | sysv4.3*)
8477 lt_prog_compiler_wl='-Wl,'
8478 lt_prog_compiler_pic='-KPIC'
8479 lt_prog_compiler_static='-Bstatic'
8482 sysv4*MP*)
8483 if test -d /usr/nec ;then
8484 lt_prog_compiler_pic='-Kconform_pic'
8485 lt_prog_compiler_static='-Bstatic'
8489 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8490 lt_prog_compiler_wl='-Wl,'
8491 lt_prog_compiler_pic='-KPIC'
8492 lt_prog_compiler_static='-Bstatic'
8495 unicos*)
8496 lt_prog_compiler_wl='-Wl,'
8497 lt_prog_compiler_can_build_shared=no
8500 uts4*)
8501 lt_prog_compiler_pic='-pic'
8502 lt_prog_compiler_static='-Bstatic'
8506 lt_prog_compiler_can_build_shared=no
8508 esac
8511 case $host_os in
8512 # For platforms which do not support PIC, -DPIC is meaningless:
8513 *djgpp*)
8514 lt_prog_compiler_pic=
8517 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8519 esac
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8521 $as_echo "$lt_prog_compiler_pic" >&6; }
8529 # Check to make sure the PIC flag actually works.
8531 if test -n "$lt_prog_compiler_pic"; then
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8533 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8534 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8535 $as_echo_n "(cached) " >&6
8536 else
8537 lt_cv_prog_compiler_pic_works=no
8538 ac_outfile=conftest.$ac_objext
8539 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8540 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8541 # Insert the option either (1) after the last *FLAGS variable, or
8542 # (2) before a word containing "conftest.", or (3) at the end.
8543 # Note that $ac_compile itself does not contain backslashes and begins
8544 # with a dollar sign (not a hyphen), so the echo should work correctly.
8545 # The option is referenced via a variable to avoid confusing sed.
8546 lt_compile=`echo "$ac_compile" | $SED \
8547 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8549 -e 's:$: $lt_compiler_flag:'`
8550 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8551 (eval "$lt_compile" 2>conftest.err)
8552 ac_status=$?
8553 cat conftest.err >&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 if (exit $ac_status) && test -s "$ac_outfile"; then
8556 # The compiler can only warn and ignore the option if not recognized
8557 # So say no if there are warnings other than the usual output.
8558 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8559 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8560 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8561 lt_cv_prog_compiler_pic_works=yes
8564 $RM conftest*
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8568 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8570 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8571 case $lt_prog_compiler_pic in
8572 "" | " "*) ;;
8573 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8574 esac
8575 else
8576 lt_prog_compiler_pic=
8577 lt_prog_compiler_can_build_shared=no
8588 # Check to make sure the static flag actually works.
8590 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8592 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8593 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8594 $as_echo_n "(cached) " >&6
8595 else
8596 lt_cv_prog_compiler_static_works=no
8597 save_LDFLAGS="$LDFLAGS"
8598 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8599 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8600 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8601 # The linker can only warn and ignore the option if not recognized
8602 # So say no if there are warnings
8603 if test -s conftest.err; then
8604 # Append any errors to the config.log.
8605 cat conftest.err 1>&5
8606 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8607 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8608 if diff conftest.exp conftest.er2 >/dev/null; then
8609 lt_cv_prog_compiler_static_works=yes
8611 else
8612 lt_cv_prog_compiler_static_works=yes
8615 $RM -r conftest*
8616 LDFLAGS="$save_LDFLAGS"
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8620 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8622 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8624 else
8625 lt_prog_compiler_static=
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8635 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8636 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8637 $as_echo_n "(cached) " >&6
8638 else
8639 lt_cv_prog_compiler_c_o=no
8640 $RM -r conftest 2>/dev/null
8641 mkdir conftest
8642 cd conftest
8643 mkdir out
8644 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8646 lt_compiler_flag="-o out/conftest2.$ac_objext"
8647 # Insert the option either (1) after the last *FLAGS variable, or
8648 # (2) before a word containing "conftest.", or (3) at the end.
8649 # Note that $ac_compile itself does not contain backslashes and begins
8650 # with a dollar sign (not a hyphen), so the echo should work correctly.
8651 lt_compile=`echo "$ac_compile" | $SED \
8652 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8653 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8654 -e 's:$: $lt_compiler_flag:'`
8655 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8656 (eval "$lt_compile" 2>out/conftest.err)
8657 ac_status=$?
8658 cat out/conftest.err >&5
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8661 then
8662 # The compiler can only warn and ignore the option if not recognized
8663 # So say no if there are warnings
8664 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8665 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8666 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8667 lt_cv_prog_compiler_c_o=yes
8670 chmod u+w . 2>&5
8671 $RM conftest*
8672 # SGI C++ compiler will create directory out/ii_files/ for
8673 # template instantiation
8674 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8675 $RM out/* && rmdir out
8676 cd ..
8677 $RM -r conftest
8678 $RM conftest*
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8682 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8690 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8691 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8692 $as_echo_n "(cached) " >&6
8693 else
8694 lt_cv_prog_compiler_c_o=no
8695 $RM -r conftest 2>/dev/null
8696 mkdir conftest
8697 cd conftest
8698 mkdir out
8699 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8701 lt_compiler_flag="-o out/conftest2.$ac_objext"
8702 # Insert the option either (1) after the last *FLAGS variable, or
8703 # (2) before a word containing "conftest.", or (3) at the end.
8704 # Note that $ac_compile itself does not contain backslashes and begins
8705 # with a dollar sign (not a hyphen), so the echo should work correctly.
8706 lt_compile=`echo "$ac_compile" | $SED \
8707 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8708 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8709 -e 's:$: $lt_compiler_flag:'`
8710 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8711 (eval "$lt_compile" 2>out/conftest.err)
8712 ac_status=$?
8713 cat out/conftest.err >&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8716 then
8717 # The compiler can only warn and ignore the option if not recognized
8718 # So say no if there are warnings
8719 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8720 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8721 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8722 lt_cv_prog_compiler_c_o=yes
8725 chmod u+w . 2>&5
8726 $RM conftest*
8727 # SGI C++ compiler will create directory out/ii_files/ for
8728 # template instantiation
8729 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8730 $RM out/* && rmdir out
8731 cd ..
8732 $RM -r conftest
8733 $RM conftest*
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8737 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8742 hard_links="nottested"
8743 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8744 # do not overwrite the value of need_locks provided by the user
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8746 $as_echo_n "checking if we can lock with hard links... " >&6; }
8747 hard_links=yes
8748 $RM conftest*
8749 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8750 touch conftest.a
8751 ln conftest.a conftest.b 2>&5 || hard_links=no
8752 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8754 $as_echo "$hard_links" >&6; }
8755 if test "$hard_links" = no; then
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8757 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8758 need_locks=warn
8760 else
8761 need_locks=no
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8770 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8772 runpath_var=
8773 allow_undefined_flag=
8774 always_export_symbols=no
8775 archive_cmds=
8776 archive_expsym_cmds=
8777 compiler_needs_object=no
8778 enable_shared_with_static_runtimes=no
8779 export_dynamic_flag_spec=
8780 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8781 hardcode_automatic=no
8782 hardcode_direct=no
8783 hardcode_direct_absolute=no
8784 hardcode_libdir_flag_spec=
8785 hardcode_libdir_flag_spec_ld=
8786 hardcode_libdir_separator=
8787 hardcode_minus_L=no
8788 hardcode_shlibpath_var=unsupported
8789 inherit_rpath=no
8790 link_all_deplibs=unknown
8791 module_cmds=
8792 module_expsym_cmds=
8793 old_archive_from_new_cmds=
8794 old_archive_from_expsyms_cmds=
8795 thread_safe_flag_spec=
8796 whole_archive_flag_spec=
8797 # include_expsyms should be a list of space-separated symbols to be *always*
8798 # included in the symbol list
8799 include_expsyms=
8800 # exclude_expsyms can be an extended regexp of symbols to exclude
8801 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8802 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8803 # as well as any symbol that contains `d'.
8804 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8805 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8806 # platforms (ab)use it in PIC code, but their linkers get confused if
8807 # the symbol is explicitly referenced. Since portable code cannot
8808 # rely on this symbol name, it's probably fine to never include it in
8809 # preloaded symbol tables.
8810 # Exclude shared library initialization/finalization symbols.
8811 extract_expsyms_cmds=
8813 case $host_os in
8814 cygwin* | mingw* | pw32* | cegcc*)
8815 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8816 # When not using gcc, we currently assume that we are using
8817 # Microsoft Visual C++.
8818 if test "$GCC" != yes; then
8819 with_gnu_ld=no
8822 interix*)
8823 # we just hope/assume this is gcc and not c89 (= MSVC++)
8824 with_gnu_ld=yes
8826 openbsd*)
8827 with_gnu_ld=no
8829 esac
8831 ld_shlibs=yes
8833 # On some targets, GNU ld is compatible enough with the native linker
8834 # that we're better off using the native interface for both.
8835 lt_use_gnu_ld_interface=no
8836 if test "$with_gnu_ld" = yes; then
8837 case $host_os in
8838 aix*)
8839 # The AIX port of GNU ld has always aspired to compatibility
8840 # with the native linker. However, as the warning in the GNU ld
8841 # block says, versions before 2.19.5* couldn't really create working
8842 # shared libraries, regardless of the interface used.
8843 case `$LD -v 2>&1` in
8844 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8845 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8846 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8848 lt_use_gnu_ld_interface=yes
8850 esac
8853 lt_use_gnu_ld_interface=yes
8855 esac
8858 if test "$lt_use_gnu_ld_interface" = yes; then
8859 # If archive_cmds runs LD, not CC, wlarc should be empty
8860 wlarc='${wl}'
8862 # Set some defaults for GNU ld with shared library support. These
8863 # are reset later if shared libraries are not supported. Putting them
8864 # here allows them to be overridden if necessary.
8865 runpath_var=LD_RUN_PATH
8866 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8867 export_dynamic_flag_spec='${wl}--export-dynamic'
8868 # ancient GNU ld didn't support --whole-archive et. al.
8869 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8870 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8871 else
8872 whole_archive_flag_spec=
8874 supports_anon_versioning=no
8875 case `$LD -v 2>&1` in
8876 *GNU\ gold*) supports_anon_versioning=yes ;;
8877 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8878 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8879 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8880 *\ 2.11.*) ;; # other 2.11 versions
8881 *) supports_anon_versioning=yes ;;
8882 esac
8884 # See if GNU ld supports shared libraries.
8885 case $host_os in
8886 aix[3-9]*)
8887 # On AIX/PPC, the GNU linker is very broken
8888 if test "$host_cpu" != ia64; then
8889 ld_shlibs=no
8890 cat <<_LT_EOF 1>&2
8892 *** Warning: the GNU linker, at least up to release 2.19, is reported
8893 *** to be unable to reliably create shared libraries on AIX.
8894 *** Therefore, libtool is disabling shared libraries support. If you
8895 *** really care for shared libraries, you may want to install binutils
8896 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8897 *** You will then need to restart the configuration process.
8899 _LT_EOF
8903 amigaos*)
8904 case $host_cpu in
8905 powerpc)
8906 # see comment about AmigaOS4 .so support
8907 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8908 archive_expsym_cmds=''
8910 m68k)
8911 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)'
8912 hardcode_libdir_flag_spec='-L$libdir'
8913 hardcode_minus_L=yes
8915 esac
8918 beos*)
8919 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8920 allow_undefined_flag=unsupported
8921 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8922 # support --undefined. This deserves some investigation. FIXME
8923 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8924 else
8925 ld_shlibs=no
8929 cygwin* | mingw* | pw32* | cegcc*)
8930 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8931 # as there is no search path for DLLs.
8932 hardcode_libdir_flag_spec='-L$libdir'
8933 export_dynamic_flag_spec='${wl}--export-all-symbols'
8934 allow_undefined_flag=unsupported
8935 always_export_symbols=no
8936 enable_shared_with_static_runtimes=yes
8937 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8939 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8940 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8941 # If the export-symbols file already is a .def file (1st line
8942 # is EXPORTS), use it as is; otherwise, prepend...
8943 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8944 cp $export_symbols $output_objdir/$soname.def;
8945 else
8946 echo EXPORTS > $output_objdir/$soname.def;
8947 cat $export_symbols >> $output_objdir/$soname.def;
8949 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8950 else
8951 ld_shlibs=no
8955 haiku*)
8956 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8957 link_all_deplibs=yes
8960 interix[3-9]*)
8961 hardcode_direct=no
8962 hardcode_shlibpath_var=no
8963 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8964 export_dynamic_flag_spec='${wl}-E'
8965 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8966 # Instead, shared libraries are loaded at an image base (0x10000000 by
8967 # default) and relocated if they conflict, which is a slow very memory
8968 # consuming and fragmenting process. To avoid this, we pick a random,
8969 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8970 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8971 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8972 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'
8975 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8976 tmp_diet=no
8977 if test "$host_os" = linux-dietlibc; then
8978 case $cc_basename in
8979 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8980 esac
8982 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8983 && test "$tmp_diet" = no
8984 then
8985 tmp_addflag=
8986 tmp_sharedflag='-shared'
8987 case $cc_basename,$host_cpu in
8988 pgcc*) # Portland Group C compiler
8989 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8990 tmp_addflag=' $pic_flag'
8992 pgf77* | pgf90* | pgf95* | pgfortran*)
8993 # Portland Group f77 and f90 compilers
8994 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8995 tmp_addflag=' $pic_flag -Mnomain' ;;
8996 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8997 tmp_addflag=' -i_dynamic' ;;
8998 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8999 tmp_addflag=' -i_dynamic -nofor_main' ;;
9000 ifc* | ifort*) # Intel Fortran compiler
9001 tmp_addflag=' -nofor_main' ;;
9002 lf95*) # Lahey Fortran 8.1
9003 whole_archive_flag_spec=
9004 tmp_sharedflag='--shared' ;;
9005 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9006 tmp_sharedflag='-qmkshrobj'
9007 tmp_addflag= ;;
9008 nvcc*) # Cuda Compiler Driver 2.2
9009 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9010 compiler_needs_object=yes
9012 esac
9013 case `$CC -V 2>&1 | sed 5q` in
9014 *Sun\ C*) # Sun C 5.9
9015 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9016 compiler_needs_object=yes
9017 tmp_sharedflag='-G' ;;
9018 *Sun\ F*) # Sun Fortran 8.3
9019 tmp_sharedflag='-G' ;;
9020 esac
9021 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9023 if test "x$supports_anon_versioning" = xyes; then
9024 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9025 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9026 echo "local: *; };" >> $output_objdir/$libname.ver~
9027 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9030 case $cc_basename in
9031 xlf* | bgf* | bgxlf* | mpixlf*)
9032 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9033 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9034 hardcode_libdir_flag_spec=
9035 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9036 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9037 if test "x$supports_anon_versioning" = xyes; then
9038 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9039 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9040 echo "local: *; };" >> $output_objdir/$libname.ver~
9041 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9044 esac
9045 else
9046 ld_shlibs=no
9050 netbsd*)
9051 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9052 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9053 wlarc=
9054 else
9055 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9056 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9060 solaris*)
9061 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9062 ld_shlibs=no
9063 cat <<_LT_EOF 1>&2
9065 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9066 *** create shared libraries on Solaris systems. Therefore, libtool
9067 *** is disabling shared libraries support. We urge you to upgrade GNU
9068 *** binutils to release 2.9.1 or newer. Another option is to modify
9069 *** your PATH or compiler configuration so that the native linker is
9070 *** used, and then restart.
9072 _LT_EOF
9073 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9074 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9075 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9076 else
9077 ld_shlibs=no
9081 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9082 case `$LD -v 2>&1` in
9083 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9084 ld_shlibs=no
9085 cat <<_LT_EOF 1>&2
9087 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9088 *** reliably create shared libraries on SCO systems. Therefore, libtool
9089 *** is disabling shared libraries support. We urge you to upgrade GNU
9090 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9091 *** your PATH or compiler configuration so that the native linker is
9092 *** used, and then restart.
9094 _LT_EOF
9097 # For security reasons, it is highly recommended that you always
9098 # use absolute paths for naming shared libraries, and exclude the
9099 # DT_RUNPATH tag from executables and libraries. But doing so
9100 # requires that you compile everything twice, which is a pain.
9101 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9102 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9103 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9104 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9105 else
9106 ld_shlibs=no
9109 esac
9112 sunos4*)
9113 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9114 wlarc=
9115 hardcode_direct=yes
9116 hardcode_shlibpath_var=no
9120 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9121 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9122 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9123 else
9124 ld_shlibs=no
9127 esac
9129 if test "$ld_shlibs" = no; then
9130 runpath_var=
9131 hardcode_libdir_flag_spec=
9132 export_dynamic_flag_spec=
9133 whole_archive_flag_spec=
9135 else
9136 # PORTME fill in a description of your system's linker (not GNU ld)
9137 case $host_os in
9138 aix3*)
9139 allow_undefined_flag=unsupported
9140 always_export_symbols=yes
9141 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'
9142 # Note: this linker hardcodes the directories in LIBPATH if there
9143 # are no directories specified by -L.
9144 hardcode_minus_L=yes
9145 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9146 # Neither direct hardcoding nor static linking is supported with a
9147 # broken collect2.
9148 hardcode_direct=unsupported
9152 aix[4-9]*)
9153 if test "$host_cpu" = ia64; then
9154 # On IA64, the linker does run time linking by default, so we don't
9155 # have to do anything special.
9156 aix_use_runtimelinking=no
9157 exp_sym_flag='-Bexport'
9158 no_entry_flag=""
9159 else
9160 # If we're using GNU nm, then we don't want the "-C" option.
9161 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9162 # Also, AIX nm treats weak defined symbols like other global
9163 # defined symbols, whereas GNU nm marks them as "W".
9164 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9165 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9166 else
9167 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'
9169 aix_use_runtimelinking=no
9171 # Test if we are trying to use run time linking or normal
9172 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9173 # need to do runtime linking.
9174 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9175 for ld_flag in $LDFLAGS; do
9176 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9177 aix_use_runtimelinking=yes
9178 break
9180 done
9182 esac
9184 exp_sym_flag='-bexport'
9185 no_entry_flag='-bnoentry'
9188 # When large executables or shared objects are built, AIX ld can
9189 # have problems creating the table of contents. If linking a library
9190 # or program results in "error TOC overflow" add -mminimal-toc to
9191 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9192 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9194 archive_cmds=''
9195 hardcode_direct=yes
9196 hardcode_direct_absolute=yes
9197 hardcode_libdir_separator=':'
9198 link_all_deplibs=yes
9199 file_list_spec='${wl}-f,'
9201 if test "$GCC" = yes; then
9202 case $host_os in aix4.[012]|aix4.[012].*)
9203 # We only want to do this on AIX 4.2 and lower, the check
9204 # below for broken collect2 doesn't work under 4.3+
9205 collect2name=`${CC} -print-prog-name=collect2`
9206 if test -f "$collect2name" &&
9207 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9208 then
9209 # We have reworked collect2
9211 else
9212 # We have old collect2
9213 hardcode_direct=unsupported
9214 # It fails to find uninstalled libraries when the uninstalled
9215 # path is not listed in the libpath. Setting hardcode_minus_L
9216 # to unsupported forces relinking
9217 hardcode_minus_L=yes
9218 hardcode_libdir_flag_spec='-L$libdir'
9219 hardcode_libdir_separator=
9222 esac
9223 shared_flag='-shared'
9224 if test "$aix_use_runtimelinking" = yes; then
9225 shared_flag="$shared_flag "'${wl}-G'
9227 else
9228 # not using gcc
9229 if test "$host_cpu" = ia64; then
9230 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9231 # chokes on -Wl,-G. The following line is correct:
9232 shared_flag='-G'
9233 else
9234 if test "$aix_use_runtimelinking" = yes; then
9235 shared_flag='${wl}-G'
9236 else
9237 shared_flag='${wl}-bM:SRE'
9242 export_dynamic_flag_spec='${wl}-bexpall'
9243 # It seems that -bexpall does not export symbols beginning with
9244 # underscore (_), so it is better to generate a list of symbols to export.
9245 always_export_symbols=yes
9246 if test "$aix_use_runtimelinking" = yes; then
9247 # Warning - without using the other runtime loading flags (-brtl),
9248 # -berok will link without error, but may produce a broken library.
9249 allow_undefined_flag='-berok'
9250 # Determine the default libpath from the value encoded in an
9251 # empty executable.
9252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9253 /* end confdefs.h. */
9256 main ()
9260 return 0;
9262 _ACEOF
9263 if ac_fn_c_try_link "$LINENO"; then :
9265 lt_aix_libpath_sed='
9266 /Import File Strings/,/^$/ {
9267 /^0/ {
9268 s/^0 *\(.*\)$/\1/
9272 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9273 # Check for a 64-bit object if we didn't find anything.
9274 if test -z "$aix_libpath"; then
9275 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9278 rm -f core conftest.err conftest.$ac_objext \
9279 conftest$ac_exeext conftest.$ac_ext
9280 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9282 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9283 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9284 else
9285 if test "$host_cpu" = ia64; then
9286 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9287 allow_undefined_flag="-z nodefs"
9288 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"
9289 else
9290 # Determine the default libpath from the value encoded in an
9291 # empty executable.
9292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9293 /* end confdefs.h. */
9296 main ()
9300 return 0;
9302 _ACEOF
9303 if ac_fn_c_try_link "$LINENO"; then :
9305 lt_aix_libpath_sed='
9306 /Import File Strings/,/^$/ {
9307 /^0/ {
9308 s/^0 *\(.*\)$/\1/
9312 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9313 # Check for a 64-bit object if we didn't find anything.
9314 if test -z "$aix_libpath"; then
9315 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9318 rm -f core conftest.err conftest.$ac_objext \
9319 conftest$ac_exeext conftest.$ac_ext
9320 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9322 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9323 # Warning - without using the other run time loading flags,
9324 # -berok will link without error, but may produce a broken library.
9325 no_undefined_flag=' ${wl}-bernotok'
9326 allow_undefined_flag=' ${wl}-berok'
9327 if test "$with_gnu_ld" = yes; then
9328 # We only use this code for GNU lds that support --whole-archive.
9329 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9330 else
9331 # Exported symbols can be pulled into shared objects from archives
9332 whole_archive_flag_spec='$convenience'
9334 archive_cmds_need_lc=yes
9335 # This is similar to how AIX traditionally builds its shared libraries.
9336 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'
9341 amigaos*)
9342 case $host_cpu in
9343 powerpc)
9344 # see comment about AmigaOS4 .so support
9345 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9346 archive_expsym_cmds=''
9348 m68k)
9349 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)'
9350 hardcode_libdir_flag_spec='-L$libdir'
9351 hardcode_minus_L=yes
9353 esac
9356 bsdi[45]*)
9357 export_dynamic_flag_spec=-rdynamic
9360 cygwin* | mingw* | pw32* | cegcc*)
9361 # When not using gcc, we currently assume that we are using
9362 # Microsoft Visual C++.
9363 # hardcode_libdir_flag_spec is actually meaningless, as there is
9364 # no search path for DLLs.
9365 hardcode_libdir_flag_spec=' '
9366 allow_undefined_flag=unsupported
9367 # Tell ltmain to make .lib files, not .a files.
9368 libext=lib
9369 # Tell ltmain to make .dll files, not .so files.
9370 shrext_cmds=".dll"
9371 # FIXME: Setting linknames here is a bad hack.
9372 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9373 # The linker will automatically build a .lib file if we build a DLL.
9374 old_archive_from_new_cmds='true'
9375 # FIXME: Should let the user specify the lib program.
9376 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9377 fix_srcfile_path='`cygpath -w "$srcfile"`'
9378 enable_shared_with_static_runtimes=yes
9381 darwin* | rhapsody*)
9384 archive_cmds_need_lc=no
9385 hardcode_direct=no
9386 hardcode_automatic=yes
9387 hardcode_shlibpath_var=unsupported
9388 if test "$lt_cv_ld_force_load" = "yes"; then
9389 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9390 else
9391 whole_archive_flag_spec=''
9393 link_all_deplibs=yes
9394 allow_undefined_flag="$_lt_dar_allow_undefined"
9395 case $cc_basename in
9396 ifort*) _lt_dar_can_shared=yes ;;
9397 *) _lt_dar_can_shared=$GCC ;;
9398 esac
9399 if test "$_lt_dar_can_shared" = "yes"; then
9400 output_verbose_link_cmd=func_echo_all
9401 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9402 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9403 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9404 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9406 else
9407 ld_shlibs=no
9412 dgux*)
9413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9414 hardcode_libdir_flag_spec='-L$libdir'
9415 hardcode_shlibpath_var=no
9418 freebsd1*)
9419 ld_shlibs=no
9422 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9423 # support. Future versions do this automatically, but an explicit c++rt0.o
9424 # does not break anything, and helps significantly (at the cost of a little
9425 # extra space).
9426 freebsd2.2*)
9427 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9428 hardcode_libdir_flag_spec='-R$libdir'
9429 hardcode_direct=yes
9430 hardcode_shlibpath_var=no
9433 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9434 freebsd2*)
9435 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9436 hardcode_direct=yes
9437 hardcode_minus_L=yes
9438 hardcode_shlibpath_var=no
9441 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9442 freebsd* | dragonfly*)
9443 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9444 hardcode_libdir_flag_spec='-R$libdir'
9445 hardcode_direct=yes
9446 hardcode_shlibpath_var=no
9449 hpux9*)
9450 if test "$GCC" = yes; then
9451 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'
9452 else
9453 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'
9455 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9456 hardcode_libdir_separator=:
9457 hardcode_direct=yes
9459 # hardcode_minus_L: Not really in the search PATH,
9460 # but as the default location of the library.
9461 hardcode_minus_L=yes
9462 export_dynamic_flag_spec='${wl}-E'
9465 hpux10*)
9466 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9467 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9468 else
9469 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9471 if test "$with_gnu_ld" = no; then
9472 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9473 hardcode_libdir_flag_spec_ld='+b $libdir'
9474 hardcode_libdir_separator=:
9475 hardcode_direct=yes
9476 hardcode_direct_absolute=yes
9477 export_dynamic_flag_spec='${wl}-E'
9478 # hardcode_minus_L: Not really in the search PATH,
9479 # but as the default location of the library.
9480 hardcode_minus_L=yes
9484 hpux11*)
9485 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9486 case $host_cpu in
9487 hppa*64*)
9488 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9490 ia64*)
9491 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9494 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9496 esac
9497 else
9498 case $host_cpu in
9499 hppa*64*)
9500 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9502 ia64*)
9503 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9507 # Older versions of the 11.00 compiler do not understand -b yet
9508 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9510 $as_echo_n "checking if $CC understands -b... " >&6; }
9511 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9512 $as_echo_n "(cached) " >&6
9513 else
9514 lt_cv_prog_compiler__b=no
9515 save_LDFLAGS="$LDFLAGS"
9516 LDFLAGS="$LDFLAGS -b"
9517 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9518 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9519 # The linker can only warn and ignore the option if not recognized
9520 # So say no if there are warnings
9521 if test -s conftest.err; then
9522 # Append any errors to the config.log.
9523 cat conftest.err 1>&5
9524 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9525 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9526 if diff conftest.exp conftest.er2 >/dev/null; then
9527 lt_cv_prog_compiler__b=yes
9529 else
9530 lt_cv_prog_compiler__b=yes
9533 $RM -r conftest*
9534 LDFLAGS="$save_LDFLAGS"
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9538 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9540 if test x"$lt_cv_prog_compiler__b" = xyes; then
9541 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9542 else
9543 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9547 esac
9549 if test "$with_gnu_ld" = no; then
9550 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9551 hardcode_libdir_separator=:
9553 case $host_cpu in
9554 hppa*64*|ia64*)
9555 hardcode_direct=no
9556 hardcode_shlibpath_var=no
9559 hardcode_direct=yes
9560 hardcode_direct_absolute=yes
9561 export_dynamic_flag_spec='${wl}-E'
9563 # hardcode_minus_L: Not really in the search PATH,
9564 # but as the default location of the library.
9565 hardcode_minus_L=yes
9567 esac
9571 irix5* | irix6* | nonstopux*)
9572 if test "$GCC" = yes; then
9573 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9574 # Try to use the -exported_symbol ld option, if it does not
9575 # work, assume that -exports_file does not work either and
9576 # implicitly export all symbols.
9577 save_LDFLAGS="$LDFLAGS"
9578 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9580 /* end confdefs.h. */
9581 int foo(void) {}
9582 _ACEOF
9583 if ac_fn_c_try_link "$LINENO"; then :
9584 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9587 rm -f core conftest.err conftest.$ac_objext \
9588 conftest$ac_exeext conftest.$ac_ext
9589 LDFLAGS="$save_LDFLAGS"
9590 else
9591 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9592 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9594 archive_cmds_need_lc='no'
9595 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9596 hardcode_libdir_separator=:
9597 inherit_rpath=yes
9598 link_all_deplibs=yes
9601 netbsd*)
9602 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9603 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9604 else
9605 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9607 hardcode_libdir_flag_spec='-R$libdir'
9608 hardcode_direct=yes
9609 hardcode_shlibpath_var=no
9612 newsos6)
9613 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9614 hardcode_direct=yes
9615 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9616 hardcode_libdir_separator=:
9617 hardcode_shlibpath_var=no
9620 *nto* | *qnx*)
9623 openbsd*)
9624 if test -f /usr/libexec/ld.so; then
9625 hardcode_direct=yes
9626 hardcode_shlibpath_var=no
9627 hardcode_direct_absolute=yes
9628 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9629 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9630 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9631 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9632 export_dynamic_flag_spec='${wl}-E'
9633 else
9634 case $host_os in
9635 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9636 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9637 hardcode_libdir_flag_spec='-R$libdir'
9640 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9641 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9643 esac
9645 else
9646 ld_shlibs=no
9650 os2*)
9651 hardcode_libdir_flag_spec='-L$libdir'
9652 hardcode_minus_L=yes
9653 allow_undefined_flag=unsupported
9654 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'
9655 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9658 osf3*)
9659 if test "$GCC" = yes; then
9660 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9661 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9662 else
9663 allow_undefined_flag=' -expect_unresolved \*'
9664 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9666 archive_cmds_need_lc='no'
9667 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9668 hardcode_libdir_separator=:
9671 osf4* | osf5*) # as osf3* with the addition of -msym flag
9672 if test "$GCC" = yes; then
9673 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9674 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9675 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9676 else
9677 allow_undefined_flag=' -expect_unresolved \*'
9678 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9679 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~
9680 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9682 # Both c and cxx compiler support -rpath directly
9683 hardcode_libdir_flag_spec='-rpath $libdir'
9685 archive_cmds_need_lc='no'
9686 hardcode_libdir_separator=:
9689 solaris*)
9690 no_undefined_flag=' -z defs'
9691 if test "$GCC" = yes; then
9692 wlarc='${wl}'
9693 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9694 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9695 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9696 else
9697 case `$CC -V 2>&1` in
9698 *"Compilers 5.0"*)
9699 wlarc=''
9700 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9701 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9702 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9705 wlarc='${wl}'
9706 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9707 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9708 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9710 esac
9712 hardcode_libdir_flag_spec='-R$libdir'
9713 hardcode_shlibpath_var=no
9714 case $host_os in
9715 solaris2.[0-5] | solaris2.[0-5].*) ;;
9717 # The compiler driver will combine and reorder linker options,
9718 # but understands `-z linker_flag'. GCC discards it without `$wl',
9719 # but is careful enough not to reorder.
9720 # Supported since Solaris 2.6 (maybe 2.5.1?)
9721 if test "$GCC" = yes; then
9722 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9723 else
9724 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9727 esac
9728 link_all_deplibs=yes
9731 sunos4*)
9732 if test "x$host_vendor" = xsequent; then
9733 # Use $CC to link under sequent, because it throws in some extra .o
9734 # files that make .init and .fini sections work.
9735 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9736 else
9737 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9739 hardcode_libdir_flag_spec='-L$libdir'
9740 hardcode_direct=yes
9741 hardcode_minus_L=yes
9742 hardcode_shlibpath_var=no
9745 sysv4)
9746 case $host_vendor in
9747 sni)
9748 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9749 hardcode_direct=yes # is this really true???
9751 siemens)
9752 ## LD is ld it makes a PLAMLIB
9753 ## CC just makes a GrossModule.
9754 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9755 reload_cmds='$CC -r -o $output$reload_objs'
9756 hardcode_direct=no
9758 motorola)
9759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9760 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9762 esac
9763 runpath_var='LD_RUN_PATH'
9764 hardcode_shlibpath_var=no
9767 sysv4.3*)
9768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9769 hardcode_shlibpath_var=no
9770 export_dynamic_flag_spec='-Bexport'
9773 sysv4*MP*)
9774 if test -d /usr/nec; then
9775 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9776 hardcode_shlibpath_var=no
9777 runpath_var=LD_RUN_PATH
9778 hardcode_runpath_var=yes
9779 ld_shlibs=yes
9783 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9784 no_undefined_flag='${wl}-z,text'
9785 archive_cmds_need_lc=no
9786 hardcode_shlibpath_var=no
9787 runpath_var='LD_RUN_PATH'
9789 if test "$GCC" = yes; then
9790 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9791 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9792 else
9793 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9794 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9798 sysv5* | sco3.2v5* | sco5v6*)
9799 # Note: We can NOT use -z defs as we might desire, because we do not
9800 # link with -lc, and that would cause any symbols used from libc to
9801 # always be unresolved, which means just about no library would
9802 # ever link correctly. If we're not using GNU ld we use -z text
9803 # though, which does catch some bad symbols but isn't as heavy-handed
9804 # as -z defs.
9805 no_undefined_flag='${wl}-z,text'
9806 allow_undefined_flag='${wl}-z,nodefs'
9807 archive_cmds_need_lc=no
9808 hardcode_shlibpath_var=no
9809 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9810 hardcode_libdir_separator=':'
9811 link_all_deplibs=yes
9812 export_dynamic_flag_spec='${wl}-Bexport'
9813 runpath_var='LD_RUN_PATH'
9815 if test "$GCC" = yes; then
9816 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9817 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9818 else
9819 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9820 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9824 uts4*)
9825 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9826 hardcode_libdir_flag_spec='-L$libdir'
9827 hardcode_shlibpath_var=no
9831 ld_shlibs=no
9833 esac
9835 if test x$host_vendor = xsni; then
9836 case $host in
9837 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9838 export_dynamic_flag_spec='${wl}-Blargedynsym'
9840 esac
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9845 $as_echo "$ld_shlibs" >&6; }
9846 test "$ld_shlibs" = no && can_build_shared=no
9848 with_gnu_ld=$with_gnu_ld
9865 # Do we need to explicitly link libc?
9867 case "x$archive_cmds_need_lc" in
9868 x|xyes)
9869 # Assume -lc should be added
9870 archive_cmds_need_lc=yes
9872 if test "$enable_shared" = yes && test "$GCC" = yes; then
9873 case $archive_cmds in
9874 *'~'*)
9875 # FIXME: we may have to deal with multi-command sequences.
9877 '$CC '*)
9878 # Test whether the compiler implicitly links with -lc since on some
9879 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9880 # to ld, don't add -lc before -lgcc.
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9882 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9883 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9884 $as_echo_n "(cached) " >&6
9885 else
9886 $RM conftest*
9887 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9890 (eval $ac_compile) 2>&5
9891 ac_status=$?
9892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9893 test $ac_status = 0; } 2>conftest.err; then
9894 soname=conftest
9895 lib=conftest
9896 libobjs=conftest.$ac_objext
9897 deplibs=
9898 wl=$lt_prog_compiler_wl
9899 pic_flag=$lt_prog_compiler_pic
9900 compiler_flags=-v
9901 linker_flags=-v
9902 verstring=
9903 output_objdir=.
9904 libname=conftest
9905 lt_save_allow_undefined_flag=$allow_undefined_flag
9906 allow_undefined_flag=
9907 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9908 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9909 ac_status=$?
9910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9911 test $ac_status = 0; }
9912 then
9913 lt_cv_archive_cmds_need_lc=no
9914 else
9915 lt_cv_archive_cmds_need_lc=yes
9917 allow_undefined_flag=$lt_save_allow_undefined_flag
9918 else
9919 cat conftest.err 1>&5
9921 $RM conftest*
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9925 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9926 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9928 esac
9931 esac
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10090 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10092 if test "$GCC" = yes; then
10093 case $host_os in
10094 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10095 *) lt_awk_arg="/^libraries:/" ;;
10096 esac
10097 case $host_os in
10098 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10099 *) lt_sed_strip_eq="s,=/,/,g" ;;
10100 esac
10101 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10102 case $lt_search_path_spec in
10103 *\;*)
10104 # if the path contains ";" then we assume it to be the separator
10105 # otherwise default to the standard path separator (i.e. ":") - it is
10106 # assumed that no part of a normal pathname contains ";" but that should
10107 # okay in the real world where ";" in dirpaths is itself problematic.
10108 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10111 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10113 esac
10114 # Ok, now we have the path, separated by spaces, we can step through it
10115 # and add multilib dir if necessary.
10116 lt_tmp_lt_search_path_spec=
10117 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10118 for lt_sys_path in $lt_search_path_spec; do
10119 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10120 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10121 else
10122 test -d "$lt_sys_path" && \
10123 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10125 done
10126 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10127 BEGIN {RS=" "; FS="/|\n";} {
10128 lt_foo="";
10129 lt_count=0;
10130 for (lt_i = NF; lt_i > 0; lt_i--) {
10131 if ($lt_i != "" && $lt_i != ".") {
10132 if ($lt_i == "..") {
10133 lt_count++;
10134 } else {
10135 if (lt_count == 0) {
10136 lt_foo="/" $lt_i lt_foo;
10137 } else {
10138 lt_count--;
10143 if (lt_foo != "") { lt_freq[lt_foo]++; }
10144 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10146 # AWK program above erroneously prepends '/' to C:/dos/paths
10147 # for these hosts.
10148 case $host_os in
10149 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10150 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10151 esac
10152 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10153 else
10154 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10156 library_names_spec=
10157 libname_spec='lib$name'
10158 soname_spec=
10159 shrext_cmds=".so"
10160 postinstall_cmds=
10161 postuninstall_cmds=
10162 finish_cmds=
10163 finish_eval=
10164 shlibpath_var=
10165 shlibpath_overrides_runpath=unknown
10166 version_type=none
10167 dynamic_linker="$host_os ld.so"
10168 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10169 need_lib_prefix=unknown
10170 hardcode_into_libs=no
10172 # when you set need_version to no, make sure it does not cause -set_version
10173 # flags to be left without arguments
10174 need_version=unknown
10176 case $host_os in
10177 aix3*)
10178 version_type=linux
10179 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10180 shlibpath_var=LIBPATH
10182 # AIX 3 has no versioning support, so we append a major version to the name.
10183 soname_spec='${libname}${release}${shared_ext}$major'
10186 aix[4-9]*)
10187 version_type=linux
10188 need_lib_prefix=no
10189 need_version=no
10190 hardcode_into_libs=yes
10191 if test "$host_cpu" = ia64; then
10192 # AIX 5 supports IA64
10193 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10194 shlibpath_var=LD_LIBRARY_PATH
10195 else
10196 # With GCC up to 2.95.x, collect2 would create an import file
10197 # for dependence libraries. The import file would start with
10198 # the line `#! .'. This would cause the generated library to
10199 # depend on `.', always an invalid library. This was fixed in
10200 # development snapshots of GCC prior to 3.0.
10201 case $host_os in
10202 aix4 | aix4.[01] | aix4.[01].*)
10203 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10204 echo ' yes '
10205 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10207 else
10208 can_build_shared=no
10211 esac
10212 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10213 # soname into executable. Probably we can add versioning support to
10214 # collect2, so additional links can be useful in future.
10215 if test "$aix_use_runtimelinking" = yes; then
10216 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10217 # instead of lib<name>.a to let people know that these are not
10218 # typical AIX shared libraries.
10219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10220 else
10221 # We preserve .a as extension for shared libraries through AIX4.2
10222 # and later when we are not doing run time linking.
10223 library_names_spec='${libname}${release}.a $libname.a'
10224 soname_spec='${libname}${release}${shared_ext}$major'
10226 shlibpath_var=LIBPATH
10230 amigaos*)
10231 case $host_cpu in
10232 powerpc)
10233 # Since July 2007 AmigaOS4 officially supports .so libraries.
10234 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10237 m68k)
10238 library_names_spec='$libname.ixlibrary $libname.a'
10239 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10240 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10242 esac
10245 beos*)
10246 library_names_spec='${libname}${shared_ext}'
10247 dynamic_linker="$host_os ld.so"
10248 shlibpath_var=LIBRARY_PATH
10251 bsdi[45]*)
10252 version_type=linux
10253 need_version=no
10254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10255 soname_spec='${libname}${release}${shared_ext}$major'
10256 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10257 shlibpath_var=LD_LIBRARY_PATH
10258 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10259 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10260 # the default ld.so.conf also contains /usr/contrib/lib and
10261 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10262 # libtool to hard-code these into programs
10265 cygwin* | mingw* | pw32* | cegcc*)
10266 version_type=windows
10267 shrext_cmds=".dll"
10268 need_version=no
10269 need_lib_prefix=no
10271 case $GCC,$host_os in
10272 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10273 library_names_spec='$libname.dll.a'
10274 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10275 postinstall_cmds='base_file=`basename \${file}`~
10276 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10277 dldir=$destdir/`dirname \$dlpath`~
10278 test -d \$dldir || mkdir -p \$dldir~
10279 $install_prog $dir/$dlname \$dldir/$dlname~
10280 chmod a+x \$dldir/$dlname~
10281 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10282 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10284 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10285 dlpath=$dir/\$dldll~
10286 $RM \$dlpath'
10287 shlibpath_overrides_runpath=yes
10289 case $host_os in
10290 cygwin*)
10291 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10292 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10294 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10296 mingw* | cegcc*)
10297 # MinGW DLLs use traditional 'lib' prefix
10298 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10300 pw32*)
10301 # pw32 DLLs use 'pw' prefix rather than 'lib'
10302 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10304 esac
10308 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10310 esac
10311 dynamic_linker='Win32 ld.exe'
10312 # FIXME: first we should search . and the directory the executable is in
10313 shlibpath_var=PATH
10316 darwin* | rhapsody*)
10317 dynamic_linker="$host_os dyld"
10318 version_type=darwin
10319 need_lib_prefix=no
10320 need_version=no
10321 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10322 soname_spec='${libname}${release}${major}$shared_ext'
10323 shlibpath_overrides_runpath=yes
10324 shlibpath_var=DYLD_LIBRARY_PATH
10325 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10327 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10328 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10331 dgux*)
10332 version_type=linux
10333 need_lib_prefix=no
10334 need_version=no
10335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10336 soname_spec='${libname}${release}${shared_ext}$major'
10337 shlibpath_var=LD_LIBRARY_PATH
10340 freebsd1*)
10341 dynamic_linker=no
10344 freebsd* | dragonfly*)
10345 # DragonFly does not have aout. When/if they implement a new
10346 # versioning mechanism, adjust this.
10347 if test -x /usr/bin/objformat; then
10348 objformat=`/usr/bin/objformat`
10349 else
10350 case $host_os in
10351 freebsd[123]*) objformat=aout ;;
10352 *) objformat=elf ;;
10353 esac
10355 version_type=freebsd-$objformat
10356 case $version_type in
10357 freebsd-elf*)
10358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10359 need_version=no
10360 need_lib_prefix=no
10362 freebsd-*)
10363 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10364 need_version=yes
10366 esac
10367 shlibpath_var=LD_LIBRARY_PATH
10368 case $host_os in
10369 freebsd2*)
10370 shlibpath_overrides_runpath=yes
10372 freebsd3.[01]* | freebsdelf3.[01]*)
10373 shlibpath_overrides_runpath=yes
10374 hardcode_into_libs=yes
10376 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10377 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10378 shlibpath_overrides_runpath=no
10379 hardcode_into_libs=yes
10381 *) # from 4.6 on, and DragonFly
10382 shlibpath_overrides_runpath=yes
10383 hardcode_into_libs=yes
10385 esac
10388 gnu*)
10389 version_type=linux
10390 need_lib_prefix=no
10391 need_version=no
10392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10393 soname_spec='${libname}${release}${shared_ext}$major'
10394 shlibpath_var=LD_LIBRARY_PATH
10395 hardcode_into_libs=yes
10398 haiku*)
10399 version_type=linux
10400 need_lib_prefix=no
10401 need_version=no
10402 dynamic_linker="$host_os runtime_loader"
10403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10404 soname_spec='${libname}${release}${shared_ext}$major'
10405 shlibpath_var=LIBRARY_PATH
10406 shlibpath_overrides_runpath=yes
10407 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10408 hardcode_into_libs=yes
10411 hpux9* | hpux10* | hpux11*)
10412 # Give a soname corresponding to the major version so that dld.sl refuses to
10413 # link against other versions.
10414 version_type=sunos
10415 need_lib_prefix=no
10416 need_version=no
10417 case $host_cpu in
10418 ia64*)
10419 shrext_cmds='.so'
10420 hardcode_into_libs=yes
10421 dynamic_linker="$host_os dld.so"
10422 shlibpath_var=LD_LIBRARY_PATH
10423 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10425 soname_spec='${libname}${release}${shared_ext}$major'
10426 if test "X$HPUX_IA64_MODE" = X32; then
10427 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10428 else
10429 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10431 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10433 hppa*64*)
10434 shrext_cmds='.sl'
10435 hardcode_into_libs=yes
10436 dynamic_linker="$host_os dld.sl"
10437 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10438 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10440 soname_spec='${libname}${release}${shared_ext}$major'
10441 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10442 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10445 shrext_cmds='.sl'
10446 dynamic_linker="$host_os dld.sl"
10447 shlibpath_var=SHLIB_PATH
10448 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10450 soname_spec='${libname}${release}${shared_ext}$major'
10452 esac
10453 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10454 postinstall_cmds='chmod 555 $lib'
10455 # or fails outright, so override atomically:
10456 install_override_mode=555
10459 interix[3-9]*)
10460 version_type=linux
10461 need_lib_prefix=no
10462 need_version=no
10463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10464 soname_spec='${libname}${release}${shared_ext}$major'
10465 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10466 shlibpath_var=LD_LIBRARY_PATH
10467 shlibpath_overrides_runpath=no
10468 hardcode_into_libs=yes
10471 irix5* | irix6* | nonstopux*)
10472 case $host_os in
10473 nonstopux*) version_type=nonstopux ;;
10475 if test "$lt_cv_prog_gnu_ld" = yes; then
10476 version_type=linux
10477 else
10478 version_type=irix
10479 fi ;;
10480 esac
10481 need_lib_prefix=no
10482 need_version=no
10483 soname_spec='${libname}${release}${shared_ext}$major'
10484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10485 case $host_os in
10486 irix5* | nonstopux*)
10487 libsuff= shlibsuff=
10490 case $LD in # libtool.m4 will add one of these switches to LD
10491 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10492 libsuff= shlibsuff= libmagic=32-bit;;
10493 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10494 libsuff=32 shlibsuff=N32 libmagic=N32;;
10495 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10496 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10497 *) libsuff= shlibsuff= libmagic=never-match;;
10498 esac
10500 esac
10501 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10502 shlibpath_overrides_runpath=no
10503 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10504 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10505 hardcode_into_libs=yes
10508 # No shared lib support for Linux oldld, aout, or coff.
10509 linux*oldld* | linux*aout* | linux*coff*)
10510 dynamic_linker=no
10513 # This must be Linux ELF.
10514 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10515 version_type=linux
10516 need_lib_prefix=no
10517 need_version=no
10518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10519 soname_spec='${libname}${release}${shared_ext}$major'
10520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10521 shlibpath_var=LD_LIBRARY_PATH
10522 shlibpath_overrides_runpath=no
10524 # Some binutils ld are patched to set DT_RUNPATH
10525 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10526 $as_echo_n "(cached) " >&6
10527 else
10528 lt_cv_shlibpath_overrides_runpath=no
10529 save_LDFLAGS=$LDFLAGS
10530 save_libdir=$libdir
10531 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10532 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10534 /* end confdefs.h. */
10537 main ()
10541 return 0;
10543 _ACEOF
10544 if ac_fn_c_try_link "$LINENO"; then :
10545 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10546 lt_cv_shlibpath_overrides_runpath=yes
10549 rm -f core conftest.err conftest.$ac_objext \
10550 conftest$ac_exeext conftest.$ac_ext
10551 LDFLAGS=$save_LDFLAGS
10552 libdir=$save_libdir
10556 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10558 # This implies no fast_install, which is unacceptable.
10559 # Some rework will be needed to allow for fast_install
10560 # before this can be enabled.
10561 hardcode_into_libs=yes
10563 # Append ld.so.conf contents to the search path
10564 if test -f /etc/ld.so.conf; then
10565 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10566 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10569 # We used to test for /lib/ld.so.1 and disable shared libraries on
10570 # powerpc, because MkLinux only supported shared libraries with the
10571 # GNU dynamic linker. Since this was broken with cross compilers,
10572 # most powerpc-linux boxes support dynamic linking these days and
10573 # people can always --disable-shared, the test was removed, and we
10574 # assume the GNU/Linux dynamic linker is in use.
10575 dynamic_linker='GNU/Linux ld.so'
10578 netbsd*)
10579 version_type=sunos
10580 need_lib_prefix=no
10581 need_version=no
10582 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10584 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10585 dynamic_linker='NetBSD (a.out) ld.so'
10586 else
10587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10588 soname_spec='${libname}${release}${shared_ext}$major'
10589 dynamic_linker='NetBSD ld.elf_so'
10591 shlibpath_var=LD_LIBRARY_PATH
10592 shlibpath_overrides_runpath=yes
10593 hardcode_into_libs=yes
10596 newsos6)
10597 version_type=linux
10598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10599 shlibpath_var=LD_LIBRARY_PATH
10600 shlibpath_overrides_runpath=yes
10603 *nto* | *qnx*)
10604 version_type=qnx
10605 need_lib_prefix=no
10606 need_version=no
10607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10608 soname_spec='${libname}${release}${shared_ext}$major'
10609 shlibpath_var=LD_LIBRARY_PATH
10610 shlibpath_overrides_runpath=no
10611 hardcode_into_libs=yes
10612 dynamic_linker='ldqnx.so'
10615 openbsd*)
10616 version_type=sunos
10617 sys_lib_dlsearch_path_spec="/usr/lib"
10618 need_lib_prefix=no
10619 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10620 case $host_os in
10621 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10622 *) need_version=no ;;
10623 esac
10624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10626 shlibpath_var=LD_LIBRARY_PATH
10627 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10628 case $host_os in
10629 openbsd2.[89] | openbsd2.[89].*)
10630 shlibpath_overrides_runpath=no
10633 shlibpath_overrides_runpath=yes
10635 esac
10636 else
10637 shlibpath_overrides_runpath=yes
10641 os2*)
10642 libname_spec='$name'
10643 shrext_cmds=".dll"
10644 need_lib_prefix=no
10645 library_names_spec='$libname${shared_ext} $libname.a'
10646 dynamic_linker='OS/2 ld.exe'
10647 shlibpath_var=LIBPATH
10650 osf3* | osf4* | osf5*)
10651 version_type=osf
10652 need_lib_prefix=no
10653 need_version=no
10654 soname_spec='${libname}${release}${shared_ext}$major'
10655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10656 shlibpath_var=LD_LIBRARY_PATH
10657 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10658 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10661 rdos*)
10662 dynamic_linker=no
10665 solaris*)
10666 version_type=linux
10667 need_lib_prefix=no
10668 need_version=no
10669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10670 soname_spec='${libname}${release}${shared_ext}$major'
10671 shlibpath_var=LD_LIBRARY_PATH
10672 shlibpath_overrides_runpath=yes
10673 hardcode_into_libs=yes
10674 # ldd complains unless libraries are executable
10675 postinstall_cmds='chmod +x $lib'
10678 sunos4*)
10679 version_type=sunos
10680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10681 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10682 shlibpath_var=LD_LIBRARY_PATH
10683 shlibpath_overrides_runpath=yes
10684 if test "$with_gnu_ld" = yes; then
10685 need_lib_prefix=no
10687 need_version=yes
10690 sysv4 | sysv4.3*)
10691 version_type=linux
10692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10693 soname_spec='${libname}${release}${shared_ext}$major'
10694 shlibpath_var=LD_LIBRARY_PATH
10695 case $host_vendor in
10696 sni)
10697 shlibpath_overrides_runpath=no
10698 need_lib_prefix=no
10699 runpath_var=LD_RUN_PATH
10701 siemens)
10702 need_lib_prefix=no
10704 motorola)
10705 need_lib_prefix=no
10706 need_version=no
10707 shlibpath_overrides_runpath=no
10708 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10710 esac
10713 sysv4*MP*)
10714 if test -d /usr/nec ;then
10715 version_type=linux
10716 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10717 soname_spec='$libname${shared_ext}.$major'
10718 shlibpath_var=LD_LIBRARY_PATH
10722 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10723 version_type=freebsd-elf
10724 need_lib_prefix=no
10725 need_version=no
10726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10727 soname_spec='${libname}${release}${shared_ext}$major'
10728 shlibpath_var=LD_LIBRARY_PATH
10729 shlibpath_overrides_runpath=yes
10730 hardcode_into_libs=yes
10731 if test "$with_gnu_ld" = yes; then
10732 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10733 else
10734 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10735 case $host_os in
10736 sco3.2v5*)
10737 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10739 esac
10741 sys_lib_dlsearch_path_spec='/usr/lib'
10744 tpf*)
10745 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10746 version_type=linux
10747 need_lib_prefix=no
10748 need_version=no
10749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10750 shlibpath_var=LD_LIBRARY_PATH
10751 shlibpath_overrides_runpath=no
10752 hardcode_into_libs=yes
10755 uts4*)
10756 version_type=linux
10757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10758 soname_spec='${libname}${release}${shared_ext}$major'
10759 shlibpath_var=LD_LIBRARY_PATH
10763 dynamic_linker=no
10765 esac
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10767 $as_echo "$dynamic_linker" >&6; }
10768 test "$dynamic_linker" = no && can_build_shared=no
10770 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10771 if test "$GCC" = yes; then
10772 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10775 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10776 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10778 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10779 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10874 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10875 hardcode_action=
10876 if test -n "$hardcode_libdir_flag_spec" ||
10877 test -n "$runpath_var" ||
10878 test "X$hardcode_automatic" = "Xyes" ; then
10880 # We can hardcode non-existent directories.
10881 if test "$hardcode_direct" != no &&
10882 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10883 # have to relink, otherwise we might link with an installed library
10884 # when we should be linking with a yet-to-be-installed one
10885 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10886 test "$hardcode_minus_L" != no; then
10887 # Linking always hardcodes the temporary library directory.
10888 hardcode_action=relink
10889 else
10890 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10891 hardcode_action=immediate
10893 else
10894 # We cannot hardcode anything, or else we can only hardcode existing
10895 # directories.
10896 hardcode_action=unsupported
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10899 $as_echo "$hardcode_action" >&6; }
10901 if test "$hardcode_action" = relink ||
10902 test "$inherit_rpath" = yes; then
10903 # Fast installation is not supported
10904 enable_fast_install=no
10905 elif test "$shlibpath_overrides_runpath" = yes ||
10906 test "$enable_shared" = no; then
10907 # Fast installation is not necessary
10908 enable_fast_install=needless
10916 if test "x$enable_dlopen" != xyes; then
10917 enable_dlopen=unknown
10918 enable_dlopen_self=unknown
10919 enable_dlopen_self_static=unknown
10920 else
10921 lt_cv_dlopen=no
10922 lt_cv_dlopen_libs=
10924 case $host_os in
10925 beos*)
10926 lt_cv_dlopen="load_add_on"
10927 lt_cv_dlopen_libs=
10928 lt_cv_dlopen_self=yes
10931 mingw* | pw32* | cegcc*)
10932 lt_cv_dlopen="LoadLibrary"
10933 lt_cv_dlopen_libs=
10936 cygwin*)
10937 lt_cv_dlopen="dlopen"
10938 lt_cv_dlopen_libs=
10941 darwin*)
10942 # if libdl is installed we need to link against it
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10944 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10945 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10946 $as_echo_n "(cached) " >&6
10947 else
10948 ac_check_lib_save_LIBS=$LIBS
10949 LIBS="-ldl $LIBS"
10950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10951 /* end confdefs.h. */
10953 /* Override any GCC internal prototype to avoid an error.
10954 Use char because int might match the return type of a GCC
10955 builtin and then its argument prototype would still apply. */
10956 #ifdef __cplusplus
10957 extern "C"
10958 #endif
10959 char dlopen ();
10961 main ()
10963 return dlopen ();
10965 return 0;
10967 _ACEOF
10968 if ac_fn_c_try_link "$LINENO"; then :
10969 ac_cv_lib_dl_dlopen=yes
10970 else
10971 ac_cv_lib_dl_dlopen=no
10973 rm -f core conftest.err conftest.$ac_objext \
10974 conftest$ac_exeext conftest.$ac_ext
10975 LIBS=$ac_check_lib_save_LIBS
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10978 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10979 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10980 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10981 else
10983 lt_cv_dlopen="dyld"
10984 lt_cv_dlopen_libs=
10985 lt_cv_dlopen_self=yes
10992 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10993 if test "x$ac_cv_func_shl_load" = x""yes; then :
10994 lt_cv_dlopen="shl_load"
10995 else
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10997 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10998 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10999 $as_echo_n "(cached) " >&6
11000 else
11001 ac_check_lib_save_LIBS=$LIBS
11002 LIBS="-ldld $LIBS"
11003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11004 /* end confdefs.h. */
11006 /* Override any GCC internal prototype to avoid an error.
11007 Use char because int might match the return type of a GCC
11008 builtin and then its argument prototype would still apply. */
11009 #ifdef __cplusplus
11010 extern "C"
11011 #endif
11012 char shl_load ();
11014 main ()
11016 return shl_load ();
11018 return 0;
11020 _ACEOF
11021 if ac_fn_c_try_link "$LINENO"; then :
11022 ac_cv_lib_dld_shl_load=yes
11023 else
11024 ac_cv_lib_dld_shl_load=no
11026 rm -f core conftest.err conftest.$ac_objext \
11027 conftest$ac_exeext conftest.$ac_ext
11028 LIBS=$ac_check_lib_save_LIBS
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11031 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11032 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11033 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11034 else
11035 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11036 if test "x$ac_cv_func_dlopen" = x""yes; then :
11037 lt_cv_dlopen="dlopen"
11038 else
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11040 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11041 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11042 $as_echo_n "(cached) " >&6
11043 else
11044 ac_check_lib_save_LIBS=$LIBS
11045 LIBS="-ldl $LIBS"
11046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11047 /* end confdefs.h. */
11049 /* Override any GCC internal prototype to avoid an error.
11050 Use char because int might match the return type of a GCC
11051 builtin and then its argument prototype would still apply. */
11052 #ifdef __cplusplus
11053 extern "C"
11054 #endif
11055 char dlopen ();
11057 main ()
11059 return dlopen ();
11061 return 0;
11063 _ACEOF
11064 if ac_fn_c_try_link "$LINENO"; then :
11065 ac_cv_lib_dl_dlopen=yes
11066 else
11067 ac_cv_lib_dl_dlopen=no
11069 rm -f core conftest.err conftest.$ac_objext \
11070 conftest$ac_exeext conftest.$ac_ext
11071 LIBS=$ac_check_lib_save_LIBS
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11074 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11075 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11076 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11077 else
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11079 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11080 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11081 $as_echo_n "(cached) " >&6
11082 else
11083 ac_check_lib_save_LIBS=$LIBS
11084 LIBS="-lsvld $LIBS"
11085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11086 /* end confdefs.h. */
11088 /* Override any GCC internal prototype to avoid an error.
11089 Use char because int might match the return type of a GCC
11090 builtin and then its argument prototype would still apply. */
11091 #ifdef __cplusplus
11092 extern "C"
11093 #endif
11094 char dlopen ();
11096 main ()
11098 return dlopen ();
11100 return 0;
11102 _ACEOF
11103 if ac_fn_c_try_link "$LINENO"; then :
11104 ac_cv_lib_svld_dlopen=yes
11105 else
11106 ac_cv_lib_svld_dlopen=no
11108 rm -f core conftest.err conftest.$ac_objext \
11109 conftest$ac_exeext conftest.$ac_ext
11110 LIBS=$ac_check_lib_save_LIBS
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11113 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11114 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11115 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11116 else
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11118 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11119 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11120 $as_echo_n "(cached) " >&6
11121 else
11122 ac_check_lib_save_LIBS=$LIBS
11123 LIBS="-ldld $LIBS"
11124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11125 /* end confdefs.h. */
11127 /* Override any GCC internal prototype to avoid an error.
11128 Use char because int might match the return type of a GCC
11129 builtin and then its argument prototype would still apply. */
11130 #ifdef __cplusplus
11131 extern "C"
11132 #endif
11133 char dld_link ();
11135 main ()
11137 return dld_link ();
11139 return 0;
11141 _ACEOF
11142 if ac_fn_c_try_link "$LINENO"; then :
11143 ac_cv_lib_dld_dld_link=yes
11144 else
11145 ac_cv_lib_dld_dld_link=no
11147 rm -f core conftest.err conftest.$ac_objext \
11148 conftest$ac_exeext conftest.$ac_ext
11149 LIBS=$ac_check_lib_save_LIBS
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11152 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11153 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11154 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11173 esac
11175 if test "x$lt_cv_dlopen" != xno; then
11176 enable_dlopen=yes
11177 else
11178 enable_dlopen=no
11181 case $lt_cv_dlopen in
11182 dlopen)
11183 save_CPPFLAGS="$CPPFLAGS"
11184 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11186 save_LDFLAGS="$LDFLAGS"
11187 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11189 save_LIBS="$LIBS"
11190 LIBS="$lt_cv_dlopen_libs $LIBS"
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11193 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11194 if test "${lt_cv_dlopen_self+set}" = set; then :
11195 $as_echo_n "(cached) " >&6
11196 else
11197 if test "$cross_compiling" = yes; then :
11198 lt_cv_dlopen_self=cross
11199 else
11200 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11201 lt_status=$lt_dlunknown
11202 cat > conftest.$ac_ext <<_LT_EOF
11203 #line 11203 "configure"
11204 #include "confdefs.h"
11206 #if HAVE_DLFCN_H
11207 #include <dlfcn.h>
11208 #endif
11210 #include <stdio.h>
11212 #ifdef RTLD_GLOBAL
11213 # define LT_DLGLOBAL RTLD_GLOBAL
11214 #else
11215 # ifdef DL_GLOBAL
11216 # define LT_DLGLOBAL DL_GLOBAL
11217 # else
11218 # define LT_DLGLOBAL 0
11219 # endif
11220 #endif
11222 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11223 find out it does not work in some platform. */
11224 #ifndef LT_DLLAZY_OR_NOW
11225 # ifdef RTLD_LAZY
11226 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11227 # else
11228 # ifdef DL_LAZY
11229 # define LT_DLLAZY_OR_NOW DL_LAZY
11230 # else
11231 # ifdef RTLD_NOW
11232 # define LT_DLLAZY_OR_NOW RTLD_NOW
11233 # else
11234 # ifdef DL_NOW
11235 # define LT_DLLAZY_OR_NOW DL_NOW
11236 # else
11237 # define LT_DLLAZY_OR_NOW 0
11238 # endif
11239 # endif
11240 # endif
11241 # endif
11242 #endif
11244 /* When -fvisbility=hidden is used, assume the code has been annotated
11245 correspondingly for the symbols needed. */
11246 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11247 void fnord () __attribute__((visibility("default")));
11248 #endif
11250 void fnord () { int i=42; }
11251 int main ()
11253 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11254 int status = $lt_dlunknown;
11256 if (self)
11258 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11259 else
11261 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11262 else puts (dlerror ());
11264 /* dlclose (self); */
11266 else
11267 puts (dlerror ());
11269 return status;
11271 _LT_EOF
11272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11273 (eval $ac_link) 2>&5
11274 ac_status=$?
11275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11276 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11277 (./conftest; exit; ) >&5 2>/dev/null
11278 lt_status=$?
11279 case x$lt_status in
11280 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11281 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11282 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11283 esac
11284 else :
11285 # compilation failed
11286 lt_cv_dlopen_self=no
11289 rm -fr conftest*
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11294 $as_echo "$lt_cv_dlopen_self" >&6; }
11296 if test "x$lt_cv_dlopen_self" = xyes; then
11297 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11299 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11300 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11301 $as_echo_n "(cached) " >&6
11302 else
11303 if test "$cross_compiling" = yes; then :
11304 lt_cv_dlopen_self_static=cross
11305 else
11306 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11307 lt_status=$lt_dlunknown
11308 cat > conftest.$ac_ext <<_LT_EOF
11309 #line 11309 "configure"
11310 #include "confdefs.h"
11312 #if HAVE_DLFCN_H
11313 #include <dlfcn.h>
11314 #endif
11316 #include <stdio.h>
11318 #ifdef RTLD_GLOBAL
11319 # define LT_DLGLOBAL RTLD_GLOBAL
11320 #else
11321 # ifdef DL_GLOBAL
11322 # define LT_DLGLOBAL DL_GLOBAL
11323 # else
11324 # define LT_DLGLOBAL 0
11325 # endif
11326 #endif
11328 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11329 find out it does not work in some platform. */
11330 #ifndef LT_DLLAZY_OR_NOW
11331 # ifdef RTLD_LAZY
11332 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11333 # else
11334 # ifdef DL_LAZY
11335 # define LT_DLLAZY_OR_NOW DL_LAZY
11336 # else
11337 # ifdef RTLD_NOW
11338 # define LT_DLLAZY_OR_NOW RTLD_NOW
11339 # else
11340 # ifdef DL_NOW
11341 # define LT_DLLAZY_OR_NOW DL_NOW
11342 # else
11343 # define LT_DLLAZY_OR_NOW 0
11344 # endif
11345 # endif
11346 # endif
11347 # endif
11348 #endif
11350 /* When -fvisbility=hidden is used, assume the code has been annotated
11351 correspondingly for the symbols needed. */
11352 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11353 void fnord () __attribute__((visibility("default")));
11354 #endif
11356 void fnord () { int i=42; }
11357 int main ()
11359 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11360 int status = $lt_dlunknown;
11362 if (self)
11364 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11365 else
11367 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11368 else puts (dlerror ());
11370 /* dlclose (self); */
11372 else
11373 puts (dlerror ());
11375 return status;
11377 _LT_EOF
11378 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11379 (eval $ac_link) 2>&5
11380 ac_status=$?
11381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11382 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11383 (./conftest; exit; ) >&5 2>/dev/null
11384 lt_status=$?
11385 case x$lt_status in
11386 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11387 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11388 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11389 esac
11390 else :
11391 # compilation failed
11392 lt_cv_dlopen_self_static=no
11395 rm -fr conftest*
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11400 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11403 CPPFLAGS="$save_CPPFLAGS"
11404 LDFLAGS="$save_LDFLAGS"
11405 LIBS="$save_LIBS"
11407 esac
11409 case $lt_cv_dlopen_self in
11410 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11411 *) enable_dlopen_self=unknown ;;
11412 esac
11414 case $lt_cv_dlopen_self_static in
11415 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11416 *) enable_dlopen_self_static=unknown ;;
11417 esac
11436 striplib=
11437 old_striplib=
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11439 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11440 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11441 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11442 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11444 $as_echo "yes" >&6; }
11445 else
11446 # FIXME - insert some real tests, host_os isn't really good enough
11447 case $host_os in
11448 darwin*)
11449 if test -n "$STRIP" ; then
11450 striplib="$STRIP -x"
11451 old_striplib="$STRIP -S"
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11453 $as_echo "yes" >&6; }
11454 else
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11456 $as_echo "no" >&6; }
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11461 $as_echo "no" >&6; }
11463 esac
11477 # Report which library types will actually be built
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11479 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11481 $as_echo "$can_build_shared" >&6; }
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11484 $as_echo_n "checking whether to build shared libraries... " >&6; }
11485 test "$can_build_shared" = "no" && enable_shared=no
11487 # On AIX, shared libraries and static libraries use the same namespace, and
11488 # are all built from PIC.
11489 case $host_os in
11490 aix3*)
11491 test "$enable_shared" = yes && enable_static=no
11492 if test -n "$RANLIB"; then
11493 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11494 postinstall_cmds='$RANLIB $lib'
11498 aix[4-9]*)
11499 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11500 test "$enable_shared" = yes && enable_static=no
11503 esac
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11505 $as_echo "$enable_shared" >&6; }
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11508 $as_echo_n "checking whether to build static libraries... " >&6; }
11509 # Make sure either enable_shared or enable_static is yes.
11510 test "$enable_shared" = yes || enable_static=yes
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11512 $as_echo "$enable_static" >&6; }
11518 ac_ext=c
11519 ac_cpp='$CPP $CPPFLAGS'
11520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11524 CC="$lt_save_CC"
11538 ac_config_commands="$ac_config_commands libtool"
11543 # Only expand once:
11547 # Check whether --enable-targets was given.
11548 if test "${enable_targets+set}" = set; then :
11549 enableval=$enable_targets; case "${enableval}" in
11550 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
11552 no) enable_targets= ;;
11553 *) enable_targets=$enableval ;;
11554 esac
11558 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow"
11560 # Check whether --enable-werror was given.
11561 if test "${enable_werror+set}" = set; then :
11562 enableval=$enable_werror; case "${enableval}" in
11563 yes | y) ERROR_ON_WARNING="yes" ;;
11564 no | n) ERROR_ON_WARNING="no" ;;
11565 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
11566 esac
11570 # Enable -Wno-format by default when using gcc on mingw
11571 case "${host}" in
11572 *-*-mingw32*)
11573 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11574 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11577 *) ;;
11578 esac
11580 # Enable -Werror by default when using gcc
11581 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11582 ERROR_ON_WARNING=yes
11585 NO_WERROR=
11586 if test "${ERROR_ON_WARNING}" = yes ; then
11587 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11588 NO_WERROR="-Wno-error"
11591 if test "${GCC}" = yes ; then
11592 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11595 # Check whether --enable-build-warnings was given.
11596 if test "${enable_build_warnings+set}" = set; then :
11597 enableval=$enable_build_warnings; case "${enableval}" in
11598 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11599 no) if test "${GCC}" = yes ; then
11600 WARN_CFLAGS="-w"
11601 fi;;
11602 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11603 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11604 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11605 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11606 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11607 esac
11611 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11612 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11619 ac_config_headers="$ac_config_headers config.h:config.in"
11622 if test -z "$target" ; then
11623 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
11625 if test -z "$host" ; then
11626 as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
11629 for ac_prog in 'bison -y' byacc
11631 # Extract the first word of "$ac_prog", so it can be a program name with args.
11632 set dummy $ac_prog; ac_word=$2
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11634 $as_echo_n "checking for $ac_word... " >&6; }
11635 if test "${ac_cv_prog_YACC+set}" = set; then :
11636 $as_echo_n "(cached) " >&6
11637 else
11638 if test -n "$YACC"; then
11639 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11640 else
11641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11642 for as_dir in $PATH
11644 IFS=$as_save_IFS
11645 test -z "$as_dir" && as_dir=.
11646 for ac_exec_ext in '' $ac_executable_extensions; do
11647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11648 ac_cv_prog_YACC="$ac_prog"
11649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11650 break 2
11652 done
11653 done
11654 IFS=$as_save_IFS
11658 YACC=$ac_cv_prog_YACC
11659 if test -n "$YACC"; then
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
11661 $as_echo "$YACC" >&6; }
11662 else
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11664 $as_echo "no" >&6; }
11668 test -n "$YACC" && break
11669 done
11670 test -n "$YACC" || YACC="yacc"
11672 for ac_prog in flex lex
11674 # Extract the first word of "$ac_prog", so it can be a program name with args.
11675 set dummy $ac_prog; ac_word=$2
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11677 $as_echo_n "checking for $ac_word... " >&6; }
11678 if test "${ac_cv_prog_LEX+set}" = set; then :
11679 $as_echo_n "(cached) " >&6
11680 else
11681 if test -n "$LEX"; then
11682 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11683 else
11684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11685 for as_dir in $PATH
11687 IFS=$as_save_IFS
11688 test -z "$as_dir" && as_dir=.
11689 for ac_exec_ext in '' $ac_executable_extensions; do
11690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11691 ac_cv_prog_LEX="$ac_prog"
11692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11693 break 2
11695 done
11696 done
11697 IFS=$as_save_IFS
11701 LEX=$ac_cv_prog_LEX
11702 if test -n "$LEX"; then
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
11704 $as_echo "$LEX" >&6; }
11705 else
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11707 $as_echo "no" >&6; }
11711 test -n "$LEX" && break
11712 done
11713 test -n "$LEX" || LEX=":"
11715 if test "x$LEX" != "x:"; then
11716 cat >conftest.l <<_ACEOF
11718 a { ECHO; }
11719 b { REJECT; }
11720 c { yymore (); }
11721 d { yyless (1); }
11722 e { yyless (input () != 0); }
11723 f { unput (yytext[0]); }
11724 . { BEGIN INITIAL; }
11726 #ifdef YYTEXT_POINTER
11727 extern char *yytext;
11728 #endif
11730 main (void)
11732 return ! yylex () + ! yywrap ();
11734 _ACEOF
11735 { { ac_try="$LEX conftest.l"
11736 case "(($ac_try" in
11737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11738 *) ac_try_echo=$ac_try;;
11739 esac
11740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11741 $as_echo "$ac_try_echo"; } >&5
11742 (eval "$LEX conftest.l") 2>&5
11743 ac_status=$?
11744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11745 test $ac_status = 0; }
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
11747 $as_echo_n "checking lex output file root... " >&6; }
11748 if test "${ac_cv_prog_lex_root+set}" = set; then :
11749 $as_echo_n "(cached) " >&6
11750 else
11752 if test -f lex.yy.c; then
11753 ac_cv_prog_lex_root=lex.yy
11754 elif test -f lexyy.c; then
11755 ac_cv_prog_lex_root=lexyy
11756 else
11757 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
11761 $as_echo "$ac_cv_prog_lex_root" >&6; }
11762 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11764 if test -z "${LEXLIB+set}"; then
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
11766 $as_echo_n "checking lex library... " >&6; }
11767 if test "${ac_cv_lib_lex+set}" = set; then :
11768 $as_echo_n "(cached) " >&6
11769 else
11771 ac_save_LIBS=$LIBS
11772 ac_cv_lib_lex='none needed'
11773 for ac_lib in '' -lfl -ll; do
11774 LIBS="$ac_lib $ac_save_LIBS"
11775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11776 /* end confdefs.h. */
11777 `cat $LEX_OUTPUT_ROOT.c`
11778 _ACEOF
11779 if ac_fn_c_try_link "$LINENO"; then :
11780 ac_cv_lib_lex=$ac_lib
11782 rm -f core conftest.err conftest.$ac_objext \
11783 conftest$ac_exeext conftest.$ac_ext
11784 test "$ac_cv_lib_lex" != 'none needed' && break
11785 done
11786 LIBS=$ac_save_LIBS
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
11790 $as_echo "$ac_cv_lib_lex" >&6; }
11791 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
11796 $as_echo_n "checking whether yytext is a pointer... " >&6; }
11797 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
11798 $as_echo_n "(cached) " >&6
11799 else
11800 # POSIX says lex can declare yytext either as a pointer or an array; the
11801 # default is implementation-dependent. Figure out which it is, since
11802 # not all implementations provide the %pointer and %array declarations.
11803 ac_cv_prog_lex_yytext_pointer=no
11804 ac_save_LIBS=$LIBS
11805 LIBS="$LEXLIB $ac_save_LIBS"
11806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11807 /* end confdefs.h. */
11808 #define YYTEXT_POINTER 1
11809 `cat $LEX_OUTPUT_ROOT.c`
11810 _ACEOF
11811 if ac_fn_c_try_link "$LINENO"; then :
11812 ac_cv_prog_lex_yytext_pointer=yes
11814 rm -f core conftest.err conftest.$ac_objext \
11815 conftest$ac_exeext conftest.$ac_ext
11816 LIBS=$ac_save_LIBS
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
11820 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
11821 if test $ac_cv_prog_lex_yytext_pointer = yes; then
11823 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
11826 rm -f conftest.l $LEX_OUTPUT_ROOT.c
11829 if test "$LEX" = :; then
11830 LEX=${am_missing_run}flex
11833 ALL_LINGUAS="da es fi fr id ja ro ru rw sk sv tr uk vi zh_CN zh_TW"
11834 # If we haven't got the data from the intl directory,
11835 # assume NLS is disabled.
11836 USE_NLS=no
11837 LIBINTL=
11838 LIBINTL_DEP=
11839 INCINTL=
11840 XGETTEXT=
11841 GMSGFMT=
11842 POSUB=
11844 if test -f ../intl/config.intl; then
11845 . ../intl/config.intl
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11848 $as_echo_n "checking whether NLS is requested... " >&6; }
11849 if test x"$USE_NLS" != xyes; then
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11851 $as_echo "no" >&6; }
11852 else
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11854 $as_echo "yes" >&6; }
11856 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11860 $as_echo_n "checking for catalogs to be installed... " >&6; }
11861 # Look for .po and .gmo files in the source directory.
11862 CATALOGS=
11863 XLINGUAS=
11864 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11865 # If there aren't any .gmo files the shell will give us the
11866 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11867 # weeded out.
11868 case "$cat" in *\**)
11869 continue;;
11870 esac
11871 # The quadruple backslash is collapsed to a double backslash
11872 # by the backticks, then collapsed again by the double quotes,
11873 # leaving us with one backslash in the sed expression (right
11874 # before the dot that mustn't act as a wildcard).
11875 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11876 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11877 # The user is allowed to set LINGUAS to a list of languages to
11878 # install catalogs for. If it's empty that means "all of them."
11879 if test "x$LINGUAS" = x; then
11880 CATALOGS="$CATALOGS $cat"
11881 XLINGUAS="$XLINGUAS $lang"
11882 else
11883 case "$LINGUAS" in *$lang*)
11884 CATALOGS="$CATALOGS $cat"
11885 XLINGUAS="$XLINGUAS $lang"
11887 esac
11889 done
11890 LINGUAS="$XLINGUAS"
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11892 $as_echo "$LINGUAS" >&6; }
11895 DATADIRNAME=share
11897 INSTOBJEXT=.mo
11899 GENCAT=gencat
11901 CATOBJEXT=.gmo
11905 MKINSTALLDIRS=
11906 if test -n "$ac_aux_dir"; then
11907 case "$ac_aux_dir" in
11908 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11909 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11910 esac
11912 if test -z "$MKINSTALLDIRS"; then
11913 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11919 $as_echo_n "checking whether NLS is requested... " >&6; }
11920 # Check whether --enable-nls was given.
11921 if test "${enable_nls+set}" = set; then :
11922 enableval=$enable_nls; USE_NLS=$enableval
11923 else
11924 USE_NLS=yes
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11928 $as_echo "$USE_NLS" >&6; }
11935 # Prepare PATH_SEPARATOR.
11936 # The user is always right.
11937 if test "${PATH_SEPARATOR+set}" != set; then
11938 echo "#! /bin/sh" >conf$$.sh
11939 echo "exit 0" >>conf$$.sh
11940 chmod +x conf$$.sh
11941 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11942 PATH_SEPARATOR=';'
11943 else
11944 PATH_SEPARATOR=:
11946 rm -f conf$$.sh
11949 # Find out how to test for executable files. Don't use a zero-byte file,
11950 # as systems may use methods other than mode bits to determine executability.
11951 cat >conf$$.file <<_ASEOF
11952 #! /bin/sh
11953 exit 0
11954 _ASEOF
11955 chmod +x conf$$.file
11956 if test -x conf$$.file >/dev/null 2>&1; then
11957 ac_executable_p="test -x"
11958 else
11959 ac_executable_p="test -f"
11961 rm -f conf$$.file
11963 # Extract the first word of "msgfmt", so it can be a program name with args.
11964 set dummy msgfmt; ac_word=$2
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11966 $as_echo_n "checking for $ac_word... " >&6; }
11967 if test "${ac_cv_path_MSGFMT+set}" = set; then :
11968 $as_echo_n "(cached) " >&6
11969 else
11970 case "$MSGFMT" in
11971 [\\/]* | ?:[\\/]*)
11972 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11975 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11976 for ac_dir in $PATH; do
11977 IFS="$ac_save_IFS"
11978 test -z "$ac_dir" && ac_dir=.
11979 for ac_exec_ext in '' $ac_executable_extensions; do
11980 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11981 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11982 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11983 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11984 break 2
11987 done
11988 done
11989 IFS="$ac_save_IFS"
11990 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11992 esac
11994 MSGFMT="$ac_cv_path_MSGFMT"
11995 if test "$MSGFMT" != ":"; then
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11997 $as_echo "$MSGFMT" >&6; }
11998 else
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12000 $as_echo "no" >&6; }
12003 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12004 set dummy gmsgfmt; ac_word=$2
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12006 $as_echo_n "checking for $ac_word... " >&6; }
12007 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12008 $as_echo_n "(cached) " >&6
12009 else
12010 case $GMSGFMT in
12011 [\\/]* | ?:[\\/]*)
12012 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12016 for as_dir in $PATH
12018 IFS=$as_save_IFS
12019 test -z "$as_dir" && as_dir=.
12020 for ac_exec_ext in '' $ac_executable_extensions; do
12021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12022 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12024 break 2
12026 done
12027 done
12028 IFS=$as_save_IFS
12030 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12032 esac
12034 GMSGFMT=$ac_cv_path_GMSGFMT
12035 if test -n "$GMSGFMT"; then
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12037 $as_echo "$GMSGFMT" >&6; }
12038 else
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12040 $as_echo "no" >&6; }
12046 # Prepare PATH_SEPARATOR.
12047 # The user is always right.
12048 if test "${PATH_SEPARATOR+set}" != set; then
12049 echo "#! /bin/sh" >conf$$.sh
12050 echo "exit 0" >>conf$$.sh
12051 chmod +x conf$$.sh
12052 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12053 PATH_SEPARATOR=';'
12054 else
12055 PATH_SEPARATOR=:
12057 rm -f conf$$.sh
12060 # Find out how to test for executable files. Don't use a zero-byte file,
12061 # as systems may use methods other than mode bits to determine executability.
12062 cat >conf$$.file <<_ASEOF
12063 #! /bin/sh
12064 exit 0
12065 _ASEOF
12066 chmod +x conf$$.file
12067 if test -x conf$$.file >/dev/null 2>&1; then
12068 ac_executable_p="test -x"
12069 else
12070 ac_executable_p="test -f"
12072 rm -f conf$$.file
12074 # Extract the first word of "xgettext", so it can be a program name with args.
12075 set dummy xgettext; ac_word=$2
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12077 $as_echo_n "checking for $ac_word... " >&6; }
12078 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12079 $as_echo_n "(cached) " >&6
12080 else
12081 case "$XGETTEXT" in
12082 [\\/]* | ?:[\\/]*)
12083 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12086 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12087 for ac_dir in $PATH; do
12088 IFS="$ac_save_IFS"
12089 test -z "$ac_dir" && ac_dir=.
12090 for ac_exec_ext in '' $ac_executable_extensions; do
12091 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12092 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12093 (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
12094 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12095 break 2
12098 done
12099 done
12100 IFS="$ac_save_IFS"
12101 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12103 esac
12105 XGETTEXT="$ac_cv_path_XGETTEXT"
12106 if test "$XGETTEXT" != ":"; then
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12108 $as_echo "$XGETTEXT" >&6; }
12109 else
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12111 $as_echo "no" >&6; }
12114 rm -f messages.po
12117 # Prepare PATH_SEPARATOR.
12118 # The user is always right.
12119 if test "${PATH_SEPARATOR+set}" != set; then
12120 echo "#! /bin/sh" >conf$$.sh
12121 echo "exit 0" >>conf$$.sh
12122 chmod +x conf$$.sh
12123 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12124 PATH_SEPARATOR=';'
12125 else
12126 PATH_SEPARATOR=:
12128 rm -f conf$$.sh
12131 # Find out how to test for executable files. Don't use a zero-byte file,
12132 # as systems may use methods other than mode bits to determine executability.
12133 cat >conf$$.file <<_ASEOF
12134 #! /bin/sh
12135 exit 0
12136 _ASEOF
12137 chmod +x conf$$.file
12138 if test -x conf$$.file >/dev/null 2>&1; then
12139 ac_executable_p="test -x"
12140 else
12141 ac_executable_p="test -f"
12143 rm -f conf$$.file
12145 # Extract the first word of "msgmerge", so it can be a program name with args.
12146 set dummy msgmerge; ac_word=$2
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12148 $as_echo_n "checking for $ac_word... " >&6; }
12149 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12150 $as_echo_n "(cached) " >&6
12151 else
12152 case "$MSGMERGE" in
12153 [\\/]* | ?:[\\/]*)
12154 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12157 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12158 for ac_dir in $PATH; do
12159 IFS="$ac_save_IFS"
12160 test -z "$ac_dir" && ac_dir=.
12161 for ac_exec_ext in '' $ac_executable_extensions; do
12162 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12163 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12164 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12165 break 2
12168 done
12169 done
12170 IFS="$ac_save_IFS"
12171 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12173 esac
12175 MSGMERGE="$ac_cv_path_MSGMERGE"
12176 if test "$MSGMERGE" != ":"; then
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12178 $as_echo "$MSGMERGE" >&6; }
12179 else
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12181 $as_echo "no" >&6; }
12185 if test "$GMSGFMT" != ":"; then
12186 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12187 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12189 else
12190 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12192 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12193 GMSGFMT=":"
12197 if test "$XGETTEXT" != ":"; then
12198 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12199 (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
12201 else
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12203 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12204 XGETTEXT=":"
12206 rm -f messages.po
12209 ac_config_commands="$ac_config_commands default-1"
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12215 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12216 # Check whether --enable-maintainer-mode was given.
12217 if test "${enable_maintainer_mode+set}" = set; then :
12218 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12219 else
12220 USE_MAINTAINER_MODE=no
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12224 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12225 if test $USE_MAINTAINER_MODE = yes; then
12226 MAINTAINER_MODE_TRUE=
12227 MAINTAINER_MODE_FALSE='#'
12228 else
12229 MAINTAINER_MODE_TRUE='#'
12230 MAINTAINER_MODE_FALSE=
12233 MAINT=$MAINTAINER_MODE_TRUE
12236 if false; then
12237 GENINSRC_NEVER_TRUE=
12238 GENINSRC_NEVER_FALSE='#'
12239 else
12240 GENINSRC_NEVER_TRUE='#'
12241 GENINSRC_NEVER_FALSE=
12245 if test -n "$EXEEXT"; then
12247 $as_echo "#define HAVE_EXECUTABLE_SUFFIX 1" >>confdefs.h
12251 cat >>confdefs.h <<_ACEOF
12252 #define EXECUTABLE_SUFFIX "${EXEEXT}"
12253 _ACEOF
12256 # host-specific stuff:
12258 HDEFINES=
12260 . ${srcdir}/../bfd/configure.host
12263 AR=${AR-ar}
12265 if test -n "$ac_tool_prefix"; then
12266 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12267 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12269 $as_echo_n "checking for $ac_word... " >&6; }
12270 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12271 $as_echo_n "(cached) " >&6
12272 else
12273 if test -n "$RANLIB"; then
12274 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12275 else
12276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12277 for as_dir in $PATH
12279 IFS=$as_save_IFS
12280 test -z "$as_dir" && as_dir=.
12281 for ac_exec_ext in '' $ac_executable_extensions; do
12282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12283 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12285 break 2
12287 done
12288 done
12289 IFS=$as_save_IFS
12293 RANLIB=$ac_cv_prog_RANLIB
12294 if test -n "$RANLIB"; then
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12296 $as_echo "$RANLIB" >&6; }
12297 else
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299 $as_echo "no" >&6; }
12304 if test -z "$ac_cv_prog_RANLIB"; then
12305 ac_ct_RANLIB=$RANLIB
12306 # Extract the first word of "ranlib", so it can be a program name with args.
12307 set dummy ranlib; ac_word=$2
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12309 $as_echo_n "checking for $ac_word... " >&6; }
12310 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12311 $as_echo_n "(cached) " >&6
12312 else
12313 if test -n "$ac_ct_RANLIB"; then
12314 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12315 else
12316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12317 for as_dir in $PATH
12319 IFS=$as_save_IFS
12320 test -z "$as_dir" && as_dir=.
12321 for ac_exec_ext in '' $ac_executable_extensions; do
12322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12323 ac_cv_prog_ac_ct_RANLIB="ranlib"
12324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12325 break 2
12327 done
12328 done
12329 IFS=$as_save_IFS
12333 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12334 if test -n "$ac_ct_RANLIB"; then
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12336 $as_echo "$ac_ct_RANLIB" >&6; }
12337 else
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12339 $as_echo "no" >&6; }
12342 if test "x$ac_ct_RANLIB" = x; then
12343 RANLIB=":"
12344 else
12345 case $cross_compiling:$ac_tool_warned in
12346 yes:)
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12349 ac_tool_warned=yes ;;
12350 esac
12351 RANLIB=$ac_ct_RANLIB
12353 else
12354 RANLIB="$ac_cv_prog_RANLIB"
12359 # Put a plausible default for CC_FOR_BUILD in Makefile.
12360 if test -z "$CC_FOR_BUILD"; then
12361 if test "x$cross_compiling" = "xno"; then
12362 CC_FOR_BUILD='$(CC)'
12363 else
12364 CC_FOR_BUILD=gcc
12368 # Also set EXEEXT_FOR_BUILD.
12369 if test "x$cross_compiling" = "xno"; then
12370 EXEEXT_FOR_BUILD='$(EXEEXT)'
12371 else
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
12373 $as_echo_n "checking for build system executable suffix... " >&6; }
12374 if test "${bfd_cv_build_exeext+set}" = set; then :
12375 $as_echo_n "(cached) " >&6
12376 else
12377 rm -f conftest*
12378 echo 'int main () { return 0; }' > conftest.c
12379 bfd_cv_build_exeext=
12380 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12381 for file in conftest.*; do
12382 case $file in
12383 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12384 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12385 esac
12386 done
12387 rm -f conftest*
12388 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
12391 $as_echo "$bfd_cv_build_exeext" >&6; }
12392 EXEEXT_FOR_BUILD=""
12393 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12397 DEMANGLER_NAME=c++filt
12398 case "${host}" in
12399 *-*-go32* | *-*-msdos*)
12400 DEMANGLER_NAME=cxxfilt
12401 esac
12404 for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h
12405 do :
12406 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12407 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12408 eval as_val=\$$as_ac_Header
12409 if test "x$as_val" = x""yes; then :
12410 cat >>confdefs.h <<_ACEOF
12411 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12412 _ACEOF
12416 done
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12419 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12420 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
12421 $as_echo_n "(cached) " >&6
12422 else
12423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12424 /* end confdefs.h. */
12425 #include <sys/types.h>
12426 #include <sys/wait.h>
12427 #ifndef WEXITSTATUS
12428 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12429 #endif
12430 #ifndef WIFEXITED
12431 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12432 #endif
12435 main ()
12437 int s;
12438 wait (&s);
12439 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12441 return 0;
12443 _ACEOF
12444 if ac_fn_c_try_compile "$LINENO"; then :
12445 ac_cv_header_sys_wait_h=yes
12446 else
12447 ac_cv_header_sys_wait_h=no
12449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12452 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
12453 if test $ac_cv_header_sys_wait_h = yes; then
12455 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12459 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12460 # for constant arguments. Useless!
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12462 $as_echo_n "checking for working alloca.h... " >&6; }
12463 if test "${ac_cv_working_alloca_h+set}" = set; then :
12464 $as_echo_n "(cached) " >&6
12465 else
12466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12467 /* end confdefs.h. */
12468 #include <alloca.h>
12470 main ()
12472 char *p = (char *) alloca (2 * sizeof (int));
12473 if (p) return 0;
12475 return 0;
12477 _ACEOF
12478 if ac_fn_c_try_link "$LINENO"; then :
12479 ac_cv_working_alloca_h=yes
12480 else
12481 ac_cv_working_alloca_h=no
12483 rm -f core conftest.err conftest.$ac_objext \
12484 conftest$ac_exeext conftest.$ac_ext
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12487 $as_echo "$ac_cv_working_alloca_h" >&6; }
12488 if test $ac_cv_working_alloca_h = yes; then
12490 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12495 $as_echo_n "checking for alloca... " >&6; }
12496 if test "${ac_cv_func_alloca_works+set}" = set; then :
12497 $as_echo_n "(cached) " >&6
12498 else
12499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12500 /* end confdefs.h. */
12501 #ifdef __GNUC__
12502 # define alloca __builtin_alloca
12503 #else
12504 # ifdef _MSC_VER
12505 # include <malloc.h>
12506 # define alloca _alloca
12507 # else
12508 # ifdef HAVE_ALLOCA_H
12509 # include <alloca.h>
12510 # else
12511 # ifdef _AIX
12512 #pragma alloca
12513 # else
12514 # ifndef alloca /* predefined by HP cc +Olibcalls */
12515 char *alloca ();
12516 # endif
12517 # endif
12518 # endif
12519 # endif
12520 #endif
12523 main ()
12525 char *p = (char *) alloca (1);
12526 if (p) return 0;
12528 return 0;
12530 _ACEOF
12531 if ac_fn_c_try_link "$LINENO"; then :
12532 ac_cv_func_alloca_works=yes
12533 else
12534 ac_cv_func_alloca_works=no
12536 rm -f core conftest.err conftest.$ac_objext \
12537 conftest$ac_exeext conftest.$ac_ext
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12540 $as_echo "$ac_cv_func_alloca_works" >&6; }
12542 if test $ac_cv_func_alloca_works = yes; then
12544 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12546 else
12547 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12548 # that cause trouble. Some versions do not even contain alloca or
12549 # contain a buggy version. If you still want to use their alloca,
12550 # use ar to extract alloca.o from them instead of compiling alloca.c.
12552 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12554 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12558 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12559 if test "${ac_cv_os_cray+set}" = set; then :
12560 $as_echo_n "(cached) " >&6
12561 else
12562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12563 /* end confdefs.h. */
12564 #if defined CRAY && ! defined CRAY2
12565 webecray
12566 #else
12567 wenotbecray
12568 #endif
12570 _ACEOF
12571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12572 $EGREP "webecray" >/dev/null 2>&1; then :
12573 ac_cv_os_cray=yes
12574 else
12575 ac_cv_os_cray=no
12577 rm -f conftest*
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12581 $as_echo "$ac_cv_os_cray" >&6; }
12582 if test $ac_cv_os_cray = yes; then
12583 for ac_func in _getb67 GETB67 getb67; do
12584 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12585 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12586 eval as_val=\$$as_ac_var
12587 if test "x$as_val" = x""yes; then :
12589 cat >>confdefs.h <<_ACEOF
12590 #define CRAY_STACKSEG_END $ac_func
12591 _ACEOF
12593 break
12596 done
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12600 $as_echo_n "checking stack direction for C alloca... " >&6; }
12601 if test "${ac_cv_c_stack_direction+set}" = set; then :
12602 $as_echo_n "(cached) " >&6
12603 else
12604 if test "$cross_compiling" = yes; then :
12605 ac_cv_c_stack_direction=0
12606 else
12607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12608 /* end confdefs.h. */
12609 $ac_includes_default
12611 find_stack_direction ()
12613 static char *addr = 0;
12614 auto char dummy;
12615 if (addr == 0)
12617 addr = &dummy;
12618 return find_stack_direction ();
12620 else
12621 return (&dummy > addr) ? 1 : -1;
12625 main ()
12627 return find_stack_direction () < 0;
12629 _ACEOF
12630 if ac_fn_c_try_run "$LINENO"; then :
12631 ac_cv_c_stack_direction=1
12632 else
12633 ac_cv_c_stack_direction=-1
12635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12636 conftest.$ac_objext conftest.beam conftest.$ac_ext
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12641 $as_echo "$ac_cv_c_stack_direction" >&6; }
12642 cat >>confdefs.h <<_ACEOF
12643 #define STACK_DIRECTION $ac_cv_c_stack_direction
12644 _ACEOF
12649 for ac_func in sbrk utimes setmode getc_unlocked strcoll
12650 do :
12651 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12652 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12653 eval as_val=\$$as_ac_var
12654 if test "x$as_val" = x""yes; then :
12655 cat >>confdefs.h <<_ACEOF
12656 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12657 _ACEOF
12660 done
12662 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
12663 if test "x$ac_cv_func_mkstemp" = x""yes; then :
12665 $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
12669 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
12670 if test "x$ac_cv_func_mkdtemp" = x""yes; then :
12672 $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
12677 # Some systems have frexp only in -lm, not in -lc.
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing frexp" >&5
12679 $as_echo_n "checking for library containing frexp... " >&6; }
12680 if test "${ac_cv_search_frexp+set}" = set; then :
12681 $as_echo_n "(cached) " >&6
12682 else
12683 ac_func_search_save_LIBS=$LIBS
12684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12685 /* end confdefs.h. */
12687 /* Override any GCC internal prototype to avoid an error.
12688 Use char because int might match the return type of a GCC
12689 builtin and then its argument prototype would still apply. */
12690 #ifdef __cplusplus
12691 extern "C"
12692 #endif
12693 char frexp ();
12695 main ()
12697 return frexp ();
12699 return 0;
12701 _ACEOF
12702 for ac_lib in '' m; do
12703 if test -z "$ac_lib"; then
12704 ac_res="none required"
12705 else
12706 ac_res=-l$ac_lib
12707 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12709 if ac_fn_c_try_link "$LINENO"; then :
12710 ac_cv_search_frexp=$ac_res
12712 rm -f core conftest.err conftest.$ac_objext \
12713 conftest$ac_exeext
12714 if test "${ac_cv_search_frexp+set}" = set; then :
12715 break
12717 done
12718 if test "${ac_cv_search_frexp+set}" = set; then :
12720 else
12721 ac_cv_search_frexp=no
12723 rm conftest.$ac_ext
12724 LIBS=$ac_func_search_save_LIBS
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_frexp" >&5
12727 $as_echo "$ac_cv_search_frexp" >&6; }
12728 ac_res=$ac_cv_search_frexp
12729 if test "$ac_res" != no; then :
12730 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t in time.h" >&5
12736 $as_echo_n "checking for time_t in time.h... " >&6; }
12737 if test "${bu_cv_decl_time_t_time_h+set}" = set; then :
12738 $as_echo_n "(cached) " >&6
12739 else
12740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12741 /* end confdefs.h. */
12742 #include <time.h>
12744 main ()
12746 time_t i;
12748 return 0;
12750 _ACEOF
12751 if ac_fn_c_try_compile "$LINENO"; then :
12752 bu_cv_decl_time_t_time_h=yes
12753 else
12754 bu_cv_decl_time_t_time_h=no
12756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_time_t_time_h" >&5
12760 $as_echo "$bu_cv_decl_time_t_time_h" >&6; }
12761 if test $bu_cv_decl_time_t_time_h = yes; then
12763 $as_echo "#define HAVE_TIME_T_IN_TIME_H 1" >>confdefs.h
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t in sys/types.h" >&5
12768 $as_echo_n "checking for time_t in sys/types.h... " >&6; }
12769 if test "${bu_cv_decl_time_t_types_h+set}" = set; then :
12770 $as_echo_n "(cached) " >&6
12771 else
12772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12773 /* end confdefs.h. */
12774 #include <sys/types.h>
12776 main ()
12778 time_t i;
12780 return 0;
12782 _ACEOF
12783 if ac_fn_c_try_compile "$LINENO"; then :
12784 bu_cv_decl_time_t_types_h=yes
12785 else
12786 bu_cv_decl_time_t_types_h=no
12788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_time_t_types_h" >&5
12792 $as_echo "$bu_cv_decl_time_t_types_h" >&6; }
12793 if test $bu_cv_decl_time_t_types_h = yes; then
12795 $as_echo "#define HAVE_TIME_T_IN_TYPES_H 1" >>confdefs.h
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
12800 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
12801 if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then :
12802 $as_echo_n "(cached) " >&6
12803 else
12804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12805 /* end confdefs.h. */
12806 #include <unistd.h>
12808 main ()
12810 extern int getopt (int, char *const*, const char *);
12812 return 0;
12814 _ACEOF
12815 if ac_fn_c_try_compile "$LINENO"; then :
12816 bu_cv_decl_getopt_unistd_h=yes
12817 else
12818 bu_cv_decl_getopt_unistd_h=no
12820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_getopt_unistd_h" >&5
12824 $as_echo "$bu_cv_decl_getopt_unistd_h" >&6; }
12825 if test $bu_cv_decl_getopt_unistd_h = yes; then
12827 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
12831 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
12832 # by default.
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
12834 $as_echo_n "checking for utime.h... " >&6; }
12835 if test "${bu_cv_header_utime_h+set}" = set; then :
12836 $as_echo_n "(cached) " >&6
12837 else
12838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12839 /* end confdefs.h. */
12840 #include <sys/types.h>
12841 #ifdef HAVE_TIME_H
12842 #include <time.h>
12843 #endif
12844 #include <utime.h>
12846 main ()
12848 struct utimbuf s;
12850 return 0;
12852 _ACEOF
12853 if ac_fn_c_try_compile "$LINENO"; then :
12854 bu_cv_header_utime_h=yes
12855 else
12856 bu_cv_header_utime_h=no
12858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_header_utime_h" >&5
12862 $as_echo "$bu_cv_header_utime_h" >&6; }
12863 if test $bu_cv_header_utime_h = yes; then
12865 $as_echo "#define HAVE_GOOD_UTIME_H 1" >>confdefs.h
12869 ac_fn_c_check_decl "$LINENO" "fprintf" "ac_cv_have_decl_fprintf" "$ac_includes_default"
12870 if test "x$ac_cv_have_decl_fprintf" = x""yes; then :
12871 ac_have_decl=1
12872 else
12873 ac_have_decl=0
12876 cat >>confdefs.h <<_ACEOF
12877 #define HAVE_DECL_FPRINTF $ac_have_decl
12878 _ACEOF
12879 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
12880 if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
12881 ac_have_decl=1
12882 else
12883 ac_have_decl=0
12886 cat >>confdefs.h <<_ACEOF
12887 #define HAVE_DECL_STPCPY $ac_have_decl
12888 _ACEOF
12889 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
12890 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
12891 ac_have_decl=1
12892 else
12893 ac_have_decl=0
12896 cat >>confdefs.h <<_ACEOF
12897 #define HAVE_DECL_STRSTR $ac_have_decl
12898 _ACEOF
12899 ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
12900 if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
12901 ac_have_decl=1
12902 else
12903 ac_have_decl=0
12906 cat >>confdefs.h <<_ACEOF
12907 #define HAVE_DECL_SBRK $ac_have_decl
12908 _ACEOF
12909 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
12910 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
12911 ac_have_decl=1
12912 else
12913 ac_have_decl=0
12916 cat >>confdefs.h <<_ACEOF
12917 #define HAVE_DECL_GETENV $ac_have_decl
12918 _ACEOF
12919 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
12920 if test "x$ac_cv_have_decl_environ" = x""yes; then :
12921 ac_have_decl=1
12922 else
12923 ac_have_decl=0
12926 cat >>confdefs.h <<_ACEOF
12927 #define HAVE_DECL_ENVIRON $ac_have_decl
12928 _ACEOF
12929 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
12930 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
12931 ac_have_decl=1
12932 else
12933 ac_have_decl=0
12936 cat >>confdefs.h <<_ACEOF
12937 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
12938 _ACEOF
12939 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12940 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
12941 ac_have_decl=1
12942 else
12943 ac_have_decl=0
12946 cat >>confdefs.h <<_ACEOF
12947 #define HAVE_DECL_SNPRINTF $ac_have_decl
12948 _ACEOF
12949 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12950 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
12951 ac_have_decl=1
12952 else
12953 ac_have_decl=0
12956 cat >>confdefs.h <<_ACEOF
12957 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12958 _ACEOF
12961 # Link in zlib if we can. This allows us to read compressed debug
12962 # sections. This is used only by readelf.c (objdump uses bfd for
12963 # reading compressed sections).
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
12965 $as_echo_n "checking for library containing zlibVersion... " >&6; }
12966 if test "${ac_cv_search_zlibVersion+set}" = set; then :
12967 $as_echo_n "(cached) " >&6
12968 else
12969 ac_func_search_save_LIBS=$LIBS
12970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12971 /* end confdefs.h. */
12973 /* Override any GCC internal prototype to avoid an error.
12974 Use char because int might match the return type of a GCC
12975 builtin and then its argument prototype would still apply. */
12976 #ifdef __cplusplus
12977 extern "C"
12978 #endif
12979 char zlibVersion ();
12981 main ()
12983 return zlibVersion ();
12985 return 0;
12987 _ACEOF
12988 for ac_lib in '' z; do
12989 if test -z "$ac_lib"; then
12990 ac_res="none required"
12991 else
12992 ac_res=-l$ac_lib
12993 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12995 if ac_fn_c_try_link "$LINENO"; then :
12996 ac_cv_search_zlibVersion=$ac_res
12998 rm -f core conftest.err conftest.$ac_objext \
12999 conftest$ac_exeext
13000 if test "${ac_cv_search_zlibVersion+set}" = set; then :
13001 break
13003 done
13004 if test "${ac_cv_search_zlibVersion+set}" = set; then :
13006 else
13007 ac_cv_search_zlibVersion=no
13009 rm conftest.$ac_ext
13010 LIBS=$ac_func_search_save_LIBS
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
13013 $as_echo "$ac_cv_search_zlibVersion" >&6; }
13014 ac_res=$ac_cv_search_zlibVersion
13015 if test "$ac_res" != no; then :
13016 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13017 for ac_header in zlib.h
13018 do :
13019 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13020 if test "x$ac_cv_header_zlib_h" = x""yes; then :
13021 cat >>confdefs.h <<_ACEOF
13022 #define HAVE_ZLIB_H 1
13023 _ACEOF
13027 done
13033 case "${host}" in
13034 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13036 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
13038 esac
13040 # target-specific stuff:
13042 # Canonicalize the secondary target names.
13043 if test -n "$enable_targets"; then
13044 for targ in `echo $enable_targets | sed 's/,/ /g'`
13046 result=`$ac_config_sub $targ 2>/dev/null`
13047 if test -n "$result"; then
13048 canon_targets="$canon_targets $result"
13049 else
13050 # Allow targets that config.sub doesn't recognize, like "all".
13051 canon_targets="$canon_targets $targ"
13053 done
13056 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
13057 if test "x$ac_cv_header_iconv_h" = x""yes; then :
13063 if test "X$prefix" = "XNONE"; then
13064 acl_final_prefix="$ac_default_prefix"
13065 else
13066 acl_final_prefix="$prefix"
13068 if test "X$exec_prefix" = "XNONE"; then
13069 acl_final_exec_prefix='${prefix}'
13070 else
13071 acl_final_exec_prefix="$exec_prefix"
13073 acl_save_prefix="$prefix"
13074 prefix="$acl_final_prefix"
13075 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13076 prefix="$acl_save_prefix"
13079 # Check whether --with-gnu-ld was given.
13080 if test "${with_gnu_ld+set}" = set; then :
13081 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13082 else
13083 with_gnu_ld=no
13086 # Prepare PATH_SEPARATOR.
13087 # The user is always right.
13088 if test "${PATH_SEPARATOR+set}" != set; then
13089 echo "#! /bin/sh" >conf$$.sh
13090 echo "exit 0" >>conf$$.sh
13091 chmod +x conf$$.sh
13092 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13093 PATH_SEPARATOR=';'
13094 else
13095 PATH_SEPARATOR=:
13097 rm -f conf$$.sh
13099 ac_prog=ld
13100 if test "$GCC" = yes; then
13101 # Check if gcc -print-prog-name=ld gives a path.
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13103 $as_echo_n "checking for ld used by GCC... " >&6; }
13104 case $host in
13105 *-*-mingw*)
13106 # gcc leaves a trailing carriage return which upsets mingw
13107 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13109 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13110 esac
13111 case $ac_prog in
13112 # Accept absolute paths.
13113 [\\/]* | [A-Za-z]:[\\/]*)
13114 re_direlt='/[^/][^/]*/\.\./'
13115 # Canonicalize the path of ld
13116 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13117 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13118 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13119 done
13120 test -z "$LD" && LD="$ac_prog"
13123 # If it fails, then pretend we aren't using GCC.
13124 ac_prog=ld
13127 # If it is relative, then search for the first ld in PATH.
13128 with_gnu_ld=unknown
13130 esac
13131 elif test "$with_gnu_ld" = yes; then
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13133 $as_echo_n "checking for GNU ld... " >&6; }
13134 else
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13136 $as_echo_n "checking for non-GNU ld... " >&6; }
13138 if test "${acl_cv_path_LD+set}" = set; then :
13139 $as_echo_n "(cached) " >&6
13140 else
13141 if test -z "$LD"; then
13142 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13143 for ac_dir in $PATH; do
13144 test -z "$ac_dir" && ac_dir=.
13145 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13146 acl_cv_path_LD="$ac_dir/$ac_prog"
13147 # Check to see if the program is GNU ld. I'd rather use --version,
13148 # but apparently some GNU ld's only accept -v.
13149 # Break only if it was the GNU/non-GNU ld that we prefer.
13150 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
13151 test "$with_gnu_ld" != no && break
13152 else
13153 test "$with_gnu_ld" != yes && break
13156 done
13157 IFS="$ac_save_ifs"
13158 else
13159 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13163 LD="$acl_cv_path_LD"
13164 if test -n "$LD"; then
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13166 $as_echo "$LD" >&6; }
13167 else
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13169 $as_echo "no" >&6; }
13171 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13173 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13174 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
13175 $as_echo_n "(cached) " >&6
13176 else
13177 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13178 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
13179 acl_cv_prog_gnu_ld=yes
13180 else
13181 acl_cv_prog_gnu_ld=no
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13185 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13186 with_gnu_ld=$acl_cv_prog_gnu_ld
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13191 $as_echo_n "checking for shared library run path origin... " >&6; }
13192 if test "${acl_cv_rpath+set}" = set; then :
13193 $as_echo_n "(cached) " >&6
13194 else
13196 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13197 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13198 . ./conftest.sh
13199 rm -f ./conftest.sh
13200 acl_cv_rpath=done
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13204 $as_echo "$acl_cv_rpath" >&6; }
13205 wl="$acl_cv_wl"
13206 libext="$acl_cv_libext"
13207 shlibext="$acl_cv_shlibext"
13208 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13209 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13210 hardcode_direct="$acl_cv_hardcode_direct"
13211 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13212 # Check whether --enable-rpath was given.
13213 if test "${enable_rpath+set}" = set; then :
13214 enableval=$enable_rpath; :
13215 else
13216 enable_rpath=yes
13226 use_additional=yes
13228 acl_save_prefix="$prefix"
13229 prefix="$acl_final_prefix"
13230 acl_save_exec_prefix="$exec_prefix"
13231 exec_prefix="$acl_final_exec_prefix"
13233 eval additional_includedir=\"$includedir\"
13234 eval additional_libdir=\"$libdir\"
13236 exec_prefix="$acl_save_exec_prefix"
13237 prefix="$acl_save_prefix"
13240 # Check whether --with-libiconv-prefix was given.
13241 if test "${with_libiconv_prefix+set}" = set; then :
13242 withval=$with_libiconv_prefix;
13243 if test "X$withval" = "Xno"; then
13244 use_additional=no
13245 else
13246 if test "X$withval" = "X"; then
13248 acl_save_prefix="$prefix"
13249 prefix="$acl_final_prefix"
13250 acl_save_exec_prefix="$exec_prefix"
13251 exec_prefix="$acl_final_exec_prefix"
13253 eval additional_includedir=\"$includedir\"
13254 eval additional_libdir=\"$libdir\"
13256 exec_prefix="$acl_save_exec_prefix"
13257 prefix="$acl_save_prefix"
13259 else
13260 additional_includedir="$withval/include"
13261 additional_libdir="$withval/lib"
13267 LIBICONV=
13268 LTLIBICONV=
13269 INCICONV=
13270 rpathdirs=
13271 ltrpathdirs=
13272 names_already_handled=
13273 names_next_round='iconv '
13274 while test -n "$names_next_round"; do
13275 names_this_round="$names_next_round"
13276 names_next_round=
13277 for name in $names_this_round; do
13278 already_handled=
13279 for n in $names_already_handled; do
13280 if test "$n" = "$name"; then
13281 already_handled=yes
13282 break
13284 done
13285 if test -z "$already_handled"; then
13286 names_already_handled="$names_already_handled $name"
13287 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13288 eval value=\"\$HAVE_LIB$uppername\"
13289 if test -n "$value"; then
13290 if test "$value" = yes; then
13291 eval value=\"\$LIB$uppername\"
13292 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13293 eval value=\"\$LTLIB$uppername\"
13294 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13295 else
13298 else
13299 found_dir=
13300 found_la=
13301 found_so=
13302 found_a=
13303 if test $use_additional = yes; then
13304 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13305 found_dir="$additional_libdir"
13306 found_so="$additional_libdir/lib$name.$shlibext"
13307 if test -f "$additional_libdir/lib$name.la"; then
13308 found_la="$additional_libdir/lib$name.la"
13310 else
13311 if test -f "$additional_libdir/lib$name.$libext"; then
13312 found_dir="$additional_libdir"
13313 found_a="$additional_libdir/lib$name.$libext"
13314 if test -f "$additional_libdir/lib$name.la"; then
13315 found_la="$additional_libdir/lib$name.la"
13320 if test "X$found_dir" = "X"; then
13321 for x in $LDFLAGS $LTLIBICONV; do
13323 acl_save_prefix="$prefix"
13324 prefix="$acl_final_prefix"
13325 acl_save_exec_prefix="$exec_prefix"
13326 exec_prefix="$acl_final_exec_prefix"
13327 eval x=\"$x\"
13328 exec_prefix="$acl_save_exec_prefix"
13329 prefix="$acl_save_prefix"
13331 case "$x" in
13332 -L*)
13333 dir=`echo "X$x" | sed -e 's/^X-L//'`
13334 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13335 found_dir="$dir"
13336 found_so="$dir/lib$name.$shlibext"
13337 if test -f "$dir/lib$name.la"; then
13338 found_la="$dir/lib$name.la"
13340 else
13341 if test -f "$dir/lib$name.$libext"; then
13342 found_dir="$dir"
13343 found_a="$dir/lib$name.$libext"
13344 if test -f "$dir/lib$name.la"; then
13345 found_la="$dir/lib$name.la"
13350 esac
13351 if test "X$found_dir" != "X"; then
13352 break
13354 done
13356 if test "X$found_dir" != "X"; then
13357 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13358 if test "X$found_so" != "X"; then
13359 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13360 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13361 else
13362 haveit=
13363 for x in $ltrpathdirs; do
13364 if test "X$x" = "X$found_dir"; then
13365 haveit=yes
13366 break
13368 done
13369 if test -z "$haveit"; then
13370 ltrpathdirs="$ltrpathdirs $found_dir"
13372 if test "$hardcode_direct" = yes; then
13373 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13374 else
13375 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13376 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13377 haveit=
13378 for x in $rpathdirs; do
13379 if test "X$x" = "X$found_dir"; then
13380 haveit=yes
13381 break
13383 done
13384 if test -z "$haveit"; then
13385 rpathdirs="$rpathdirs $found_dir"
13387 else
13388 haveit=
13389 for x in $LDFLAGS $LIBICONV; do
13391 acl_save_prefix="$prefix"
13392 prefix="$acl_final_prefix"
13393 acl_save_exec_prefix="$exec_prefix"
13394 exec_prefix="$acl_final_exec_prefix"
13395 eval x=\"$x\"
13396 exec_prefix="$acl_save_exec_prefix"
13397 prefix="$acl_save_prefix"
13399 if test "X$x" = "X-L$found_dir"; then
13400 haveit=yes
13401 break
13403 done
13404 if test -z "$haveit"; then
13405 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13407 if test "$hardcode_minus_L" != no; then
13408 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13409 else
13410 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13415 else
13416 if test "X$found_a" != "X"; then
13417 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13418 else
13419 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13422 additional_includedir=
13423 case "$found_dir" in
13424 */lib | */lib/)
13425 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13426 additional_includedir="$basedir/include"
13428 esac
13429 if test "X$additional_includedir" != "X"; then
13430 if test "X$additional_includedir" != "X/usr/include"; then
13431 haveit=
13432 if test "X$additional_includedir" = "X/usr/local/include"; then
13433 if test -n "$GCC"; then
13434 case $host_os in
13435 linux*) haveit=yes;;
13436 esac
13439 if test -z "$haveit"; then
13440 for x in $CPPFLAGS $INCICONV; do
13442 acl_save_prefix="$prefix"
13443 prefix="$acl_final_prefix"
13444 acl_save_exec_prefix="$exec_prefix"
13445 exec_prefix="$acl_final_exec_prefix"
13446 eval x=\"$x\"
13447 exec_prefix="$acl_save_exec_prefix"
13448 prefix="$acl_save_prefix"
13450 if test "X$x" = "X-I$additional_includedir"; then
13451 haveit=yes
13452 break
13454 done
13455 if test -z "$haveit"; then
13456 if test -d "$additional_includedir"; then
13457 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13463 if test -n "$found_la"; then
13464 save_libdir="$libdir"
13465 case "$found_la" in
13466 */* | *\\*) . "$found_la" ;;
13467 *) . "./$found_la" ;;
13468 esac
13469 libdir="$save_libdir"
13470 for dep in $dependency_libs; do
13471 case "$dep" in
13472 -L*)
13473 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13474 if test "X$additional_libdir" != "X/usr/lib"; then
13475 haveit=
13476 if test "X$additional_libdir" = "X/usr/local/lib"; then
13477 if test -n "$GCC"; then
13478 case $host_os in
13479 linux*) haveit=yes;;
13480 esac
13483 if test -z "$haveit"; then
13484 haveit=
13485 for x in $LDFLAGS $LIBICONV; do
13487 acl_save_prefix="$prefix"
13488 prefix="$acl_final_prefix"
13489 acl_save_exec_prefix="$exec_prefix"
13490 exec_prefix="$acl_final_exec_prefix"
13491 eval x=\"$x\"
13492 exec_prefix="$acl_save_exec_prefix"
13493 prefix="$acl_save_prefix"
13495 if test "X$x" = "X-L$additional_libdir"; then
13496 haveit=yes
13497 break
13499 done
13500 if test -z "$haveit"; then
13501 if test -d "$additional_libdir"; then
13502 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13505 haveit=
13506 for x in $LDFLAGS $LTLIBICONV; do
13508 acl_save_prefix="$prefix"
13509 prefix="$acl_final_prefix"
13510 acl_save_exec_prefix="$exec_prefix"
13511 exec_prefix="$acl_final_exec_prefix"
13512 eval x=\"$x\"
13513 exec_prefix="$acl_save_exec_prefix"
13514 prefix="$acl_save_prefix"
13516 if test "X$x" = "X-L$additional_libdir"; then
13517 haveit=yes
13518 break
13520 done
13521 if test -z "$haveit"; then
13522 if test -d "$additional_libdir"; then
13523 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13529 -R*)
13530 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13531 if test "$enable_rpath" != no; then
13532 haveit=
13533 for x in $rpathdirs; do
13534 if test "X$x" = "X$dir"; then
13535 haveit=yes
13536 break
13538 done
13539 if test -z "$haveit"; then
13540 rpathdirs="$rpathdirs $dir"
13542 haveit=
13543 for x in $ltrpathdirs; do
13544 if test "X$x" = "X$dir"; then
13545 haveit=yes
13546 break
13548 done
13549 if test -z "$haveit"; then
13550 ltrpathdirs="$ltrpathdirs $dir"
13554 -l*)
13555 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13557 *.la)
13558 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13561 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13562 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13564 esac
13565 done
13567 else
13568 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13569 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13573 done
13574 done
13575 if test "X$rpathdirs" != "X"; then
13576 if test -n "$hardcode_libdir_separator"; then
13577 alldirs=
13578 for found_dir in $rpathdirs; do
13579 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13580 done
13581 acl_save_libdir="$libdir"
13582 libdir="$alldirs"
13583 eval flag=\"$hardcode_libdir_flag_spec\"
13584 libdir="$acl_save_libdir"
13585 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13586 else
13587 for found_dir in $rpathdirs; do
13588 acl_save_libdir="$libdir"
13589 libdir="$found_dir"
13590 eval flag=\"$hardcode_libdir_flag_spec\"
13591 libdir="$acl_save_libdir"
13592 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13593 done
13596 if test "X$ltrpathdirs" != "X"; then
13597 for found_dir in $ltrpathdirs; do
13598 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13599 done
13608 am_save_CPPFLAGS="$CPPFLAGS"
13610 for element in $INCICONV; do
13611 haveit=
13612 for x in $CPPFLAGS; do
13614 acl_save_prefix="$prefix"
13615 prefix="$acl_final_prefix"
13616 acl_save_exec_prefix="$exec_prefix"
13617 exec_prefix="$acl_final_exec_prefix"
13618 eval x=\"$x\"
13619 exec_prefix="$acl_save_exec_prefix"
13620 prefix="$acl_save_prefix"
13622 if test "X$x" = "X$element"; then
13623 haveit=yes
13624 break
13626 done
13627 if test -z "$haveit"; then
13628 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13630 done
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13634 $as_echo_n "checking for iconv... " >&6; }
13635 if test "${am_cv_func_iconv+set}" = set; then :
13636 $as_echo_n "(cached) " >&6
13637 else
13639 am_cv_func_iconv="no, consider installing GNU libiconv"
13640 am_cv_lib_iconv=no
13641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13642 /* end confdefs.h. */
13643 #include <stdlib.h>
13644 #include <iconv.h>
13646 main ()
13648 iconv_t cd = iconv_open("","");
13649 iconv(cd,NULL,NULL,NULL,NULL);
13650 iconv_close(cd);
13652 return 0;
13654 _ACEOF
13655 if ac_fn_c_try_link "$LINENO"; then :
13656 am_cv_func_iconv=yes
13658 rm -f core conftest.err conftest.$ac_objext \
13659 conftest$ac_exeext conftest.$ac_ext
13660 if test "$am_cv_func_iconv" != yes; then
13661 am_save_LIBS="$LIBS"
13662 LIBS="$LIBS $LIBICONV"
13663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13664 /* end confdefs.h. */
13665 #include <stdlib.h>
13666 #include <iconv.h>
13668 main ()
13670 iconv_t cd = iconv_open("","");
13671 iconv(cd,NULL,NULL,NULL,NULL);
13672 iconv_close(cd);
13674 return 0;
13676 _ACEOF
13677 if ac_fn_c_try_link "$LINENO"; then :
13678 am_cv_lib_iconv=yes
13679 am_cv_func_iconv=yes
13681 rm -f core conftest.err conftest.$ac_objext \
13682 conftest$ac_exeext conftest.$ac_ext
13683 LIBS="$am_save_LIBS"
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13688 $as_echo "$am_cv_func_iconv" >&6; }
13689 if test "$am_cv_func_iconv" = yes; then
13691 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13694 if test "$am_cv_lib_iconv" = yes; then
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13696 $as_echo_n "checking how to link with libiconv... " >&6; }
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13698 $as_echo "$LIBICONV" >&6; }
13699 else
13700 CPPFLAGS="$am_save_CPPFLAGS"
13701 LIBICONV=
13702 LTLIBICONV=
13707 if test "$am_cv_func_iconv" = yes; then
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
13709 $as_echo_n "checking for iconv declaration... " >&6; }
13710 if test "${am_cv_proto_iconv+set}" = set; then :
13711 $as_echo_n "(cached) " >&6
13712 else
13714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13715 /* end confdefs.h. */
13717 #include <stdlib.h>
13718 #include <iconv.h>
13719 extern
13720 #ifdef __cplusplus
13722 #endif
13723 #if defined(__STDC__) || defined(__cplusplus)
13724 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13725 #else
13726 size_t iconv();
13727 #endif
13730 main ()
13734 return 0;
13736 _ACEOF
13737 if ac_fn_c_try_compile "$LINENO"; then :
13738 am_cv_proto_iconv_arg1=""
13739 else
13740 am_cv_proto_iconv_arg1="const"
13742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13743 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);"
13746 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
13748 }$am_cv_proto_iconv" >&5
13749 $as_echo "${ac_t:-
13750 }$am_cv_proto_iconv" >&6; }
13752 cat >>confdefs.h <<_ACEOF
13753 #define ICONV_CONST $am_cv_proto_iconv_arg1
13754 _ACEOF
13759 all_targets=false
13760 BUILD_NLMCONV=
13761 NLMCONV_DEFS=
13762 BUILD_SRCONV=
13763 BUILD_DLLTOOL=
13764 DLLTOOL_DEFS=
13765 DLLTOOL_DEFAULT=
13766 BUILD_WINDRES=
13767 BUILD_WINDMC=
13768 BUILD_DLLWRAP=
13769 BUILD_MISC=
13770 BUILD_INSTALL_MISC=
13771 OBJDUMP_DEFS=
13773 for targ in $target $canon_targets
13775 if test "x$targ" = "xall"; then
13776 all_targets=true
13777 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
13778 BUILD_SRCONV='$(SRCONV_PROG)'
13779 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
13780 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
13781 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13782 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
13783 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13784 if test -z "$DLLTOOL_DEFAULT"; then
13785 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
13787 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
13788 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
13789 else
13790 case $targ in
13791 i[3-7]86*-*-netware*)
13792 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
13793 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
13795 alpha*-*-netware*)
13796 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
13797 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
13799 powerpc*-*-netware*)
13800 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
13801 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
13803 sparc*-*-netware*)
13804 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
13805 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
13807 esac
13808 case $targ in
13809 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
13810 esac
13811 case $targ in
13812 arm-epoc-pe*)
13813 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13814 if test -z "$DLLTOOL_DEFAULT"; then
13815 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
13817 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
13818 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13819 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
13821 arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*)
13822 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13823 if test -z "$DLLTOOL_DEFAULT"; then
13824 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
13826 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
13827 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13828 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
13830 arm-*-pe*)
13831 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13832 if test -z "$DLLTOOL_DEFAULT"; then
13833 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
13835 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
13836 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13837 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
13839 thumb-*-pe*)
13840 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13841 if test -z "$DLLTOOL_DEFAULT"; then
13842 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
13844 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
13845 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13846 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
13848 x86_64-*-mingw*)
13849 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13850 if test -z "$DLLTOOL_DEFAULT"; then
13851 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
13853 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
13854 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13855 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
13856 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
13858 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
13859 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13860 if test -z "$DLLTOOL_DEFAULT"; then
13861 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
13863 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
13864 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13865 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
13866 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
13868 i[3-7]86-*-interix)
13869 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
13870 if test -z "$DLLTOOL_DEFAULT"; then
13871 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
13873 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
13875 powerpc*-aix5.[01])
13877 powerpc*-aix[5-9].*)
13878 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
13880 powerpc*-*-pe* | powerpc*-*-cygwin*)
13881 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13882 if test -z "$DLLTOOL_DEFAULT"; then
13883 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
13885 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
13886 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13887 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
13889 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
13890 BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
13892 sh*-*-pe)
13893 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13894 if test -z "$DLLTOOL_DEFAULT"; then
13895 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
13897 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
13898 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13899 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
13901 spu-*-*)
13902 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
13904 mips*-*-pe)
13905 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13906 if test -z "$DLLTOOL_DEFAULT"; then
13907 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
13909 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
13910 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13911 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
13913 mcore-*-pe)
13914 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13915 if test -z "$DLLTOOL_DEFAULT"; then
13916 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
13918 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
13919 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13920 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
13922 mcore-*-elf)
13923 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
13924 if test -z "$DLLTOOL_DEFAULT"; then
13925 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
13927 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
13929 mep-*)
13930 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
13932 esac
13934 done
13936 DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
13938 if test "${with_windres+set}" = set; then
13939 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
13942 if test "${with_windmc+set}" = set; then
13943 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
13959 cat >>confdefs.h <<_ACEOF
13960 #define TARGET "${target}"
13961 _ACEOF
13964 targ=$target
13965 . $srcdir/../bfd/config.bfd
13966 if test "x$targ_underscore" = "xyes"; then
13967 UNDERSCORE=1
13968 else
13969 UNDERSCORE=0
13972 cat >>confdefs.h <<_ACEOF
13973 #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
13974 _ACEOF
13977 # Emulation
13978 targ=$target
13979 . ${srcdir}/configure.tgt
13980 EMULATION=$targ_emul
13981 EMULATION_VECTOR=$targ_emul_vector
13986 # Required for html and install-html
13992 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
13994 cat >confcache <<\_ACEOF
13995 # This file is a shell script that caches the results of configure
13996 # tests run on this system so they can be shared between configure
13997 # scripts and configure runs, see configure's option --config-cache.
13998 # It is not useful on other systems. If it contains results you don't
13999 # want to keep, you may remove or edit it.
14001 # config.status only pays attention to the cache file if you give it
14002 # the --recheck option to rerun configure.
14004 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14005 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14006 # following values.
14008 _ACEOF
14010 # The following way of writing the cache mishandles newlines in values,
14011 # but we know of no workaround that is simple, portable, and efficient.
14012 # So, we kill variables containing newlines.
14013 # Ultrix sh set writes to stderr and can't be redirected directly,
14014 # and sets the high bit in the cache file unless we assign to the vars.
14016 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14017 eval ac_val=\$$ac_var
14018 case $ac_val in #(
14019 *${as_nl}*)
14020 case $ac_var in #(
14021 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14022 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14023 esac
14024 case $ac_var in #(
14025 _ | IFS | as_nl) ;; #(
14026 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14027 *) { eval $ac_var=; unset $ac_var;} ;;
14028 esac ;;
14029 esac
14030 done
14032 (set) 2>&1 |
14033 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14034 *${as_nl}ac_space=\ *)
14035 # `set' does not quote correctly, so add quotes: double-quote
14036 # substitution turns \\\\ into \\, and sed turns \\ into \.
14037 sed -n \
14038 "s/'/'\\\\''/g;
14039 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14040 ;; #(
14042 # `set' quotes correctly as required by POSIX, so do not add quotes.
14043 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14045 esac |
14046 sort
14048 sed '
14049 /^ac_cv_env_/b end
14050 t clear
14051 :clear
14052 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14053 t end
14054 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14055 :end' >>confcache
14056 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14057 if test -w "$cache_file"; then
14058 test "x$cache_file" != "x/dev/null" &&
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14060 $as_echo "$as_me: updating cache $cache_file" >&6;}
14061 cat confcache >$cache_file
14062 else
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14064 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14067 rm -f confcache
14069 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14070 # Let make expand exec_prefix.
14071 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14073 DEFS=-DHAVE_CONFIG_H
14075 ac_libobjs=
14076 ac_ltlibobjs=
14077 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14078 # 1. Remove the extension, and $U if already installed.
14079 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14080 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14081 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14082 # will be set to the directory where LIBOBJS objects are built.
14083 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14084 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14085 done
14086 LIBOBJS=$ac_libobjs
14088 LTLIBOBJS=$ac_ltlibobjs
14091 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14092 as_fn_error "conditional \"AMDEP\" was never defined.
14093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14095 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14096 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14099 if test -n "$EXEEXT"; then
14100 am__EXEEXT_TRUE=
14101 am__EXEEXT_FALSE='#'
14102 else
14103 am__EXEEXT_TRUE='#'
14104 am__EXEEXT_FALSE=
14107 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14108 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14111 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
14112 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
14113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14116 : ${CONFIG_STATUS=./config.status}
14117 ac_write_fail=0
14118 ac_clean_files_save=$ac_clean_files
14119 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14121 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14122 as_write_fail=0
14123 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14124 #! $SHELL
14125 # Generated by $as_me.
14126 # Run this file to recreate the current configuration.
14127 # Compiler output produced by configure, useful for debugging
14128 # configure, is in config.log if it exists.
14130 debug=false
14131 ac_cs_recheck=false
14132 ac_cs_silent=false
14134 SHELL=\${CONFIG_SHELL-$SHELL}
14135 export SHELL
14136 _ASEOF
14137 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14138 ## -------------------- ##
14139 ## M4sh Initialization. ##
14140 ## -------------------- ##
14142 # Be more Bourne compatible
14143 DUALCASE=1; export DUALCASE # for MKS sh
14144 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14145 emulate sh
14146 NULLCMD=:
14147 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14148 # is contrary to our usage. Disable this feature.
14149 alias -g '${1+"$@"}'='"$@"'
14150 setopt NO_GLOB_SUBST
14151 else
14152 case `(set -o) 2>/dev/null` in #(
14153 *posix*) :
14154 set -o posix ;; #(
14155 *) :
14157 esac
14161 as_nl='
14163 export as_nl
14164 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14165 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14166 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14167 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14168 # Prefer a ksh shell builtin over an external printf program on Solaris,
14169 # but without wasting forks for bash or zsh.
14170 if test -z "$BASH_VERSION$ZSH_VERSION" \
14171 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14172 as_echo='print -r --'
14173 as_echo_n='print -rn --'
14174 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14175 as_echo='printf %s\n'
14176 as_echo_n='printf %s'
14177 else
14178 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14179 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14180 as_echo_n='/usr/ucb/echo -n'
14181 else
14182 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14183 as_echo_n_body='eval
14184 arg=$1;
14185 case $arg in #(
14186 *"$as_nl"*)
14187 expr "X$arg" : "X\\(.*\\)$as_nl";
14188 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14189 esac;
14190 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14192 export as_echo_n_body
14193 as_echo_n='sh -c $as_echo_n_body as_echo'
14195 export as_echo_body
14196 as_echo='sh -c $as_echo_body as_echo'
14199 # The user is always right.
14200 if test "${PATH_SEPARATOR+set}" != set; then
14201 PATH_SEPARATOR=:
14202 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14203 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14204 PATH_SEPARATOR=';'
14209 # IFS
14210 # We need space, tab and new line, in precisely that order. Quoting is
14211 # there to prevent editors from complaining about space-tab.
14212 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14213 # splitting by setting IFS to empty value.)
14214 IFS=" "" $as_nl"
14216 # Find who we are. Look in the path if we contain no directory separator.
14217 case $0 in #((
14218 *[\\/]* ) as_myself=$0 ;;
14219 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14220 for as_dir in $PATH
14222 IFS=$as_save_IFS
14223 test -z "$as_dir" && as_dir=.
14224 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14225 done
14226 IFS=$as_save_IFS
14229 esac
14230 # We did not find ourselves, most probably we were run as `sh COMMAND'
14231 # in which case we are not to be found in the path.
14232 if test "x$as_myself" = x; then
14233 as_myself=$0
14235 if test ! -f "$as_myself"; then
14236 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14237 exit 1
14240 # Unset variables that we do not need and which cause bugs (e.g. in
14241 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14242 # suppresses any "Segmentation fault" message there. '((' could
14243 # trigger a bug in pdksh 5.2.14.
14244 for as_var in BASH_ENV ENV MAIL MAILPATH
14245 do eval test x\${$as_var+set} = xset \
14246 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14247 done
14248 PS1='$ '
14249 PS2='> '
14250 PS4='+ '
14252 # NLS nuisances.
14253 LC_ALL=C
14254 export LC_ALL
14255 LANGUAGE=C
14256 export LANGUAGE
14258 # CDPATH.
14259 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14262 # as_fn_error ERROR [LINENO LOG_FD]
14263 # ---------------------------------
14264 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14265 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14266 # script with status $?, using 1 if that was 0.
14267 as_fn_error ()
14269 as_status=$?; test $as_status -eq 0 && as_status=1
14270 if test "$3"; then
14271 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14272 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14274 $as_echo "$as_me: error: $1" >&2
14275 as_fn_exit $as_status
14276 } # as_fn_error
14279 # as_fn_set_status STATUS
14280 # -----------------------
14281 # Set $? to STATUS, without forking.
14282 as_fn_set_status ()
14284 return $1
14285 } # as_fn_set_status
14287 # as_fn_exit STATUS
14288 # -----------------
14289 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14290 as_fn_exit ()
14292 set +e
14293 as_fn_set_status $1
14294 exit $1
14295 } # as_fn_exit
14297 # as_fn_unset VAR
14298 # ---------------
14299 # Portably unset VAR.
14300 as_fn_unset ()
14302 { eval $1=; unset $1;}
14304 as_unset=as_fn_unset
14305 # as_fn_append VAR VALUE
14306 # ----------------------
14307 # Append the text in VALUE to the end of the definition contained in VAR. Take
14308 # advantage of any shell optimizations that allow amortized linear growth over
14309 # repeated appends, instead of the typical quadratic growth present in naive
14310 # implementations.
14311 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14312 eval 'as_fn_append ()
14314 eval $1+=\$2
14316 else
14317 as_fn_append ()
14319 eval $1=\$$1\$2
14321 fi # as_fn_append
14323 # as_fn_arith ARG...
14324 # ------------------
14325 # Perform arithmetic evaluation on the ARGs, and store the result in the
14326 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14327 # must be portable across $(()) and expr.
14328 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14329 eval 'as_fn_arith ()
14331 as_val=$(( $* ))
14333 else
14334 as_fn_arith ()
14336 as_val=`expr "$@" || test $? -eq 1`
14338 fi # as_fn_arith
14341 if expr a : '\(a\)' >/dev/null 2>&1 &&
14342 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14343 as_expr=expr
14344 else
14345 as_expr=false
14348 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14349 as_basename=basename
14350 else
14351 as_basename=false
14354 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14355 as_dirname=dirname
14356 else
14357 as_dirname=false
14360 as_me=`$as_basename -- "$0" ||
14361 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14362 X"$0" : 'X\(//\)$' \| \
14363 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14364 $as_echo X/"$0" |
14365 sed '/^.*\/\([^/][^/]*\)\/*$/{
14366 s//\1/
14369 /^X\/\(\/\/\)$/{
14370 s//\1/
14373 /^X\/\(\/\).*/{
14374 s//\1/
14377 s/.*/./; q'`
14379 # Avoid depending upon Character Ranges.
14380 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14381 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14382 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14383 as_cr_digits='0123456789'
14384 as_cr_alnum=$as_cr_Letters$as_cr_digits
14386 ECHO_C= ECHO_N= ECHO_T=
14387 case `echo -n x` in #(((((
14388 -n*)
14389 case `echo 'xy\c'` in
14390 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14391 xy) ECHO_C='\c';;
14392 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14393 ECHO_T=' ';;
14394 esac;;
14396 ECHO_N='-n';;
14397 esac
14399 rm -f conf$$ conf$$.exe conf$$.file
14400 if test -d conf$$.dir; then
14401 rm -f conf$$.dir/conf$$.file
14402 else
14403 rm -f conf$$.dir
14404 mkdir conf$$.dir 2>/dev/null
14406 if (echo >conf$$.file) 2>/dev/null; then
14407 if ln -s conf$$.file conf$$ 2>/dev/null; then
14408 as_ln_s='ln -s'
14409 # ... but there are two gotchas:
14410 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14411 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14412 # In both cases, we have to default to `cp -p'.
14413 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14414 as_ln_s='cp -p'
14415 elif ln conf$$.file conf$$ 2>/dev/null; then
14416 as_ln_s=ln
14417 else
14418 as_ln_s='cp -p'
14420 else
14421 as_ln_s='cp -p'
14423 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14424 rmdir conf$$.dir 2>/dev/null
14427 # as_fn_mkdir_p
14428 # -------------
14429 # Create "$as_dir" as a directory, including parents if necessary.
14430 as_fn_mkdir_p ()
14433 case $as_dir in #(
14434 -*) as_dir=./$as_dir;;
14435 esac
14436 test -d "$as_dir" || eval $as_mkdir_p || {
14437 as_dirs=
14438 while :; do
14439 case $as_dir in #(
14440 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14441 *) as_qdir=$as_dir;;
14442 esac
14443 as_dirs="'$as_qdir' $as_dirs"
14444 as_dir=`$as_dirname -- "$as_dir" ||
14445 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14446 X"$as_dir" : 'X\(//\)[^/]' \| \
14447 X"$as_dir" : 'X\(//\)$' \| \
14448 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14449 $as_echo X"$as_dir" |
14450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14451 s//\1/
14454 /^X\(\/\/\)[^/].*/{
14455 s//\1/
14458 /^X\(\/\/\)$/{
14459 s//\1/
14462 /^X\(\/\).*/{
14463 s//\1/
14466 s/.*/./; q'`
14467 test -d "$as_dir" && break
14468 done
14469 test -z "$as_dirs" || eval "mkdir $as_dirs"
14470 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14473 } # as_fn_mkdir_p
14474 if mkdir -p . 2>/dev/null; then
14475 as_mkdir_p='mkdir -p "$as_dir"'
14476 else
14477 test -d ./-p && rmdir ./-p
14478 as_mkdir_p=false
14481 if test -x / >/dev/null 2>&1; then
14482 as_test_x='test -x'
14483 else
14484 if ls -dL / >/dev/null 2>&1; then
14485 as_ls_L_option=L
14486 else
14487 as_ls_L_option=
14489 as_test_x='
14490 eval sh -c '\''
14491 if test -d "$1"; then
14492 test -d "$1/.";
14493 else
14494 case $1 in #(
14495 -*)set "./$1";;
14496 esac;
14497 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14498 ???[sx]*):;;*)false;;esac;fi
14499 '\'' sh
14502 as_executable_p=$as_test_x
14504 # Sed expression to map a string onto a valid CPP name.
14505 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14507 # Sed expression to map a string onto a valid variable name.
14508 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14511 exec 6>&1
14512 ## ----------------------------------- ##
14513 ## Main body of $CONFIG_STATUS script. ##
14514 ## ----------------------------------- ##
14515 _ASEOF
14516 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14519 # Save the log message, to keep $0 and so on meaningful, and to
14520 # report actual input values of CONFIG_FILES etc. instead of their
14521 # values after options handling.
14522 ac_log="
14523 This file was extended by $as_me, which was
14524 generated by GNU Autoconf 2.64. Invocation command line was
14526 CONFIG_FILES = $CONFIG_FILES
14527 CONFIG_HEADERS = $CONFIG_HEADERS
14528 CONFIG_LINKS = $CONFIG_LINKS
14529 CONFIG_COMMANDS = $CONFIG_COMMANDS
14530 $ $0 $@
14532 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14535 _ACEOF
14537 case $ac_config_files in *"
14538 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14539 esac
14541 case $ac_config_headers in *"
14542 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14543 esac
14546 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14547 # Files that config.status was made for.
14548 config_files="$ac_config_files"
14549 config_headers="$ac_config_headers"
14550 config_commands="$ac_config_commands"
14552 _ACEOF
14554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14555 ac_cs_usage="\
14556 \`$as_me' instantiates files and other configuration actions
14557 from templates according to the current configuration. Unless the files
14558 and actions are specified as TAGs, all are instantiated by default.
14560 Usage: $0 [OPTION]... [TAG]...
14562 -h, --help print this help, then exit
14563 -V, --version print version number and configuration settings, then exit
14564 -q, --quiet, --silent
14565 do not print progress messages
14566 -d, --debug don't remove temporary files
14567 --recheck update $as_me by reconfiguring in the same conditions
14568 --file=FILE[:TEMPLATE]
14569 instantiate the configuration file FILE
14570 --header=FILE[:TEMPLATE]
14571 instantiate the configuration header FILE
14573 Configuration files:
14574 $config_files
14576 Configuration headers:
14577 $config_headers
14579 Configuration commands:
14580 $config_commands
14582 Report bugs to the package provider."
14584 _ACEOF
14585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14586 ac_cs_version="\\
14587 config.status
14588 configured by $0, generated by GNU Autoconf 2.64,
14589 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14591 Copyright (C) 2009 Free Software Foundation, Inc.
14592 This config.status script is free software; the Free Software Foundation
14593 gives unlimited permission to copy, distribute and modify it."
14595 ac_pwd='$ac_pwd'
14596 srcdir='$srcdir'
14597 INSTALL='$INSTALL'
14598 MKDIR_P='$MKDIR_P'
14599 AWK='$AWK'
14600 test -n "\$AWK" || AWK=awk
14601 _ACEOF
14603 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14604 # The default lists apply if the user does not specify any file.
14605 ac_need_defaults=:
14606 while test $# != 0
14608 case $1 in
14609 --*=*)
14610 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14611 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14612 ac_shift=:
14615 ac_option=$1
14616 ac_optarg=$2
14617 ac_shift=shift
14619 esac
14621 case $ac_option in
14622 # Handling of the options.
14623 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14624 ac_cs_recheck=: ;;
14625 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14626 $as_echo "$ac_cs_version"; exit ;;
14627 --debug | --debu | --deb | --de | --d | -d )
14628 debug=: ;;
14629 --file | --fil | --fi | --f )
14630 $ac_shift
14631 case $ac_optarg in
14632 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14633 esac
14634 as_fn_append CONFIG_FILES " '$ac_optarg'"
14635 ac_need_defaults=false;;
14636 --header | --heade | --head | --hea )
14637 $ac_shift
14638 case $ac_optarg in
14639 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14640 esac
14641 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14642 ac_need_defaults=false;;
14643 --he | --h)
14644 # Conflict between --help and --header
14645 as_fn_error "ambiguous option: \`$1'
14646 Try \`$0 --help' for more information.";;
14647 --help | --hel | -h )
14648 $as_echo "$ac_cs_usage"; exit ;;
14649 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14650 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14651 ac_cs_silent=: ;;
14653 # This is an error.
14654 -*) as_fn_error "unrecognized option: \`$1'
14655 Try \`$0 --help' for more information." ;;
14657 *) as_fn_append ac_config_targets " $1"
14658 ac_need_defaults=false ;;
14660 esac
14661 shift
14662 done
14664 ac_configure_extra_args=
14666 if $ac_cs_silent; then
14667 exec 6>/dev/null
14668 ac_configure_extra_args="$ac_configure_extra_args --silent"
14671 _ACEOF
14672 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14673 if \$ac_cs_recheck; then
14674 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14675 shift
14676 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14677 CONFIG_SHELL='$SHELL'
14678 export CONFIG_SHELL
14679 exec "\$@"
14682 _ACEOF
14683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14684 exec 5>>config.log
14686 echo
14687 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14688 ## Running $as_me. ##
14689 _ASBOX
14690 $as_echo "$ac_log"
14691 } >&5
14693 _ACEOF
14694 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14696 # INIT-COMMANDS
14698 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14701 # The HP-UX ksh and POSIX shell print the target directory to stdout
14702 # if CDPATH is set.
14703 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14705 sed_quote_subst='$sed_quote_subst'
14706 double_quote_subst='$double_quote_subst'
14707 delay_variable_subst='$delay_variable_subst'
14708 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14709 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14710 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14711 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14712 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14713 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14714 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14715 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14716 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14717 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14718 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14719 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14720 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14721 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14722 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14723 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14724 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14725 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14726 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14727 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14728 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14729 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14730 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14731 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14732 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14733 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14734 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14735 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14736 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14737 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14738 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14739 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14740 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14741 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14742 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14743 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14744 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14745 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14746 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14747 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14748 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14749 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14750 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14751 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14752 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14753 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14754 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14755 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14756 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
14757 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14758 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14759 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14760 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14761 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14762 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14763 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14764 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14765 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14766 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14767 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14768 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14769 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14770 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14771 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14772 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14773 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14774 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14775 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14776 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14777 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14778 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14779 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14780 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14781 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14782 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14783 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14784 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14785 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14786 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14787 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14788 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14789 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14790 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14791 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14792 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14793 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14794 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14795 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14796 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14797 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14798 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14799 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14800 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14801 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14802 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14803 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14804 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14805 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14806 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14807 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14808 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14809 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14810 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14811 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14812 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14813 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14814 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14815 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14816 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14817 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14818 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14819 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14820 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14821 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14822 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14823 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14824 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14825 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14826 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14827 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14829 LTCC='$LTCC'
14830 LTCFLAGS='$LTCFLAGS'
14831 compiler='$compiler_DEFAULT'
14833 # A function that is used when there is no print builtin or printf.
14834 func_fallback_echo ()
14836 eval 'cat <<_LTECHO_EOF
14838 _LTECHO_EOF'
14841 # Quote evaled strings.
14842 for var in SHELL \
14843 ECHO \
14844 SED \
14845 GREP \
14846 EGREP \
14847 FGREP \
14848 LD \
14849 NM \
14850 LN_S \
14851 lt_SP2NL \
14852 lt_NL2SP \
14853 reload_flag \
14854 OBJDUMP \
14855 deplibs_check_method \
14856 file_magic_cmd \
14857 AR \
14858 AR_FLAGS \
14859 STRIP \
14860 RANLIB \
14861 CC \
14862 CFLAGS \
14863 compiler \
14864 lt_cv_sys_global_symbol_pipe \
14865 lt_cv_sys_global_symbol_to_cdecl \
14866 lt_cv_sys_global_symbol_to_c_name_address \
14867 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14868 lt_prog_compiler_no_builtin_flag \
14869 lt_prog_compiler_wl \
14870 lt_prog_compiler_pic \
14871 lt_prog_compiler_static \
14872 lt_cv_prog_compiler_c_o \
14873 need_locks \
14874 DSYMUTIL \
14875 NMEDIT \
14876 LIPO \
14877 OTOOL \
14878 OTOOL64 \
14879 shrext_cmds \
14880 export_dynamic_flag_spec \
14881 whole_archive_flag_spec \
14882 compiler_needs_object \
14883 with_gnu_ld \
14884 allow_undefined_flag \
14885 no_undefined_flag \
14886 hardcode_libdir_flag_spec \
14887 hardcode_libdir_flag_spec_ld \
14888 hardcode_libdir_separator \
14889 fix_srcfile_path \
14890 exclude_expsyms \
14891 include_expsyms \
14892 file_list_spec \
14893 variables_saved_for_relink \
14894 libname_spec \
14895 library_names_spec \
14896 soname_spec \
14897 install_override_mode \
14898 finish_eval \
14899 old_striplib \
14900 striplib; do
14901 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14902 *[\\\\\\\`\\"\\\$]*)
14903 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14906 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14908 esac
14909 done
14911 # Double-quote double-evaled strings.
14912 for var in reload_cmds \
14913 old_postinstall_cmds \
14914 old_postuninstall_cmds \
14915 old_archive_cmds \
14916 extract_expsyms_cmds \
14917 old_archive_from_new_cmds \
14918 old_archive_from_expsyms_cmds \
14919 archive_cmds \
14920 archive_expsym_cmds \
14921 module_cmds \
14922 module_expsym_cmds \
14923 export_symbols_cmds \
14924 prelink_cmds \
14925 postinstall_cmds \
14926 postuninstall_cmds \
14927 finish_cmds \
14928 sys_lib_search_path_spec \
14929 sys_lib_dlsearch_path_spec; do
14930 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14931 *[\\\\\\\`\\"\\\$]*)
14932 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14935 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14937 esac
14938 done
14940 ac_aux_dir='$ac_aux_dir'
14941 xsi_shell='$xsi_shell'
14942 lt_shell_append='$lt_shell_append'
14944 # See if we are running on zsh, and set the options which allow our
14945 # commands through without removal of \ escapes INIT.
14946 if test -n "\${ZSH_VERSION+set}" ; then
14947 setopt NO_GLOB_SUBST
14951 PACKAGE='$PACKAGE'
14952 VERSION='$VERSION'
14953 TIMESTAMP='$TIMESTAMP'
14954 RM='$RM'
14955 ofile='$ofile'
14959 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14960 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14961 # from automake.
14962 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14963 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14964 LINGUAS="${LINGUAS-%UNSET%}"
14967 _ACEOF
14969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14971 # Handling of arguments.
14972 for ac_config_target in $ac_config_targets
14974 case $ac_config_target in
14975 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14976 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14977 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14978 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14979 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14980 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14981 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14983 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14984 esac
14985 done
14988 # If the user did not use the arguments to specify the items to instantiate,
14989 # then the envvar interface is used. Set only those that are not.
14990 # We use the long form for the default assignment because of an extremely
14991 # bizarre bug on SunOS 4.1.3.
14992 if $ac_need_defaults; then
14993 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14994 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14995 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14998 # Have a temporary directory for convenience. Make it in the build tree
14999 # simply because there is no reason against having it here, and in addition,
15000 # creating and moving files from /tmp can sometimes cause problems.
15001 # Hook for its removal unless debugging.
15002 # Note that there is a small window in which the directory will not be cleaned:
15003 # after its creation but before its name has been assigned to `$tmp'.
15004 $debug ||
15006 tmp=
15007 trap 'exit_status=$?
15008 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15010 trap 'as_fn_exit 1' 1 2 13 15
15012 # Create a (secure) tmp directory for tmp files.
15015 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15016 test -n "$tmp" && test -d "$tmp"
15017 } ||
15019 tmp=./conf$$-$RANDOM
15020 (umask 077 && mkdir "$tmp")
15021 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15023 # Set up the scripts for CONFIG_FILES section.
15024 # No need to generate them if there are no CONFIG_FILES.
15025 # This happens for instance with `./config.status config.h'.
15026 if test -n "$CONFIG_FILES"; then
15029 ac_cr=`echo X | tr X '\015'`
15030 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15031 # But we know of no other shell where ac_cr would be empty at this
15032 # point, so we can use a bashism as a fallback.
15033 if test "x$ac_cr" = x; then
15034 eval ac_cr=\$\'\\r\'
15036 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15037 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15038 ac_cs_awk_cr='\r'
15039 else
15040 ac_cs_awk_cr=$ac_cr
15043 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15044 _ACEOF
15048 echo "cat >conf$$subs.awk <<_ACEOF" &&
15049 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15050 echo "_ACEOF"
15051 } >conf$$subs.sh ||
15052 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15053 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15054 ac_delim='%!_!# '
15055 for ac_last_try in false false false false false :; do
15056 . ./conf$$subs.sh ||
15057 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15059 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15060 if test $ac_delim_n = $ac_delim_num; then
15061 break
15062 elif $ac_last_try; then
15063 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15064 else
15065 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15067 done
15068 rm -f conf$$subs.sh
15070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15071 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15072 _ACEOF
15073 sed -n '
15075 s/^/S["/; s/!.*/"]=/
15078 s/^[^!]*!//
15079 :repl
15080 t repl
15081 s/'"$ac_delim"'$//
15082 t delim
15085 s/\(.\{148\}\).*/\1/
15086 t more1
15087 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15090 b repl
15091 :more1
15092 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15095 s/.\{148\}//
15096 t nl
15097 :delim
15099 s/\(.\{148\}\).*/\1/
15100 t more2
15101 s/["\\]/\\&/g; s/^/"/; s/$/"/
15104 :more2
15105 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15108 s/.\{148\}//
15109 t delim
15110 ' <conf$$subs.awk | sed '
15111 /^[^""]/{
15113 s/\n//
15115 ' >>$CONFIG_STATUS || ac_write_fail=1
15116 rm -f conf$$subs.awk
15117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15118 _ACAWK
15119 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15120 for (key in S) S_is_set[key] = 1
15121 FS = "\a"
15125 line = $ 0
15126 nfields = split(line, field, "@")
15127 substed = 0
15128 len = length(field[1])
15129 for (i = 2; i < nfields; i++) {
15130 key = field[i]
15131 keylen = length(key)
15132 if (S_is_set[key]) {
15133 value = S[key]
15134 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15135 len += length(value) + length(field[++i])
15136 substed = 1
15137 } else
15138 len += 1 + keylen
15141 print line
15144 _ACAWK
15145 _ACEOF
15146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15147 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15148 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15149 else
15151 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15152 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15153 _ACEOF
15155 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15156 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15157 # trailing colons and then remove the whole line if VPATH becomes empty
15158 # (actually we leave an empty line to preserve line numbers).
15159 if test "x$srcdir" = x.; then
15160 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15161 s/:*\$(srcdir):*/:/
15162 s/:*\${srcdir}:*/:/
15163 s/:*@srcdir@:*/:/
15164 s/^\([^=]*=[ ]*\):*/\1/
15165 s/:*$//
15166 s/^[^=]*=[ ]*$//
15170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15171 fi # test -n "$CONFIG_FILES"
15173 # Set up the scripts for CONFIG_HEADERS section.
15174 # No need to generate them if there are no CONFIG_HEADERS.
15175 # This happens for instance with `./config.status Makefile'.
15176 if test -n "$CONFIG_HEADERS"; then
15177 cat >"$tmp/defines.awk" <<\_ACAWK ||
15178 BEGIN {
15179 _ACEOF
15181 # Transform confdefs.h into an awk script `defines.awk', embedded as
15182 # here-document in config.status, that substitutes the proper values into
15183 # config.h.in to produce config.h.
15185 # Create a delimiter string that does not exist in confdefs.h, to ease
15186 # handling of long lines.
15187 ac_delim='%!_!# '
15188 for ac_last_try in false false :; do
15189 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15190 if test -z "$ac_t"; then
15191 break
15192 elif $ac_last_try; then
15193 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15194 else
15195 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15197 done
15199 # For the awk script, D is an array of macro values keyed by name,
15200 # likewise P contains macro parameters if any. Preserve backslash
15201 # newline sequences.
15203 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15204 sed -n '
15205 s/.\{148\}/&'"$ac_delim"'/g
15206 t rset
15207 :rset
15208 s/^[ ]*#[ ]*define[ ][ ]*/ /
15209 t def
15211 :def
15212 s/\\$//
15213 t bsnl
15214 s/["\\]/\\&/g
15215 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15216 D["\1"]=" \3"/p
15217 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15219 :bsnl
15220 s/["\\]/\\&/g
15221 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15222 D["\1"]=" \3\\\\\\n"\\/p
15223 t cont
15224 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15225 t cont
15227 :cont
15229 s/.\{148\}/&'"$ac_delim"'/g
15230 t clear
15231 :clear
15232 s/\\$//
15233 t bsnlc
15234 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15236 :bsnlc
15237 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15238 b cont
15239 ' <confdefs.h | sed '
15240 s/'"$ac_delim"'/"\\\
15241 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15244 for (key in D) D_is_set[key] = 1
15245 FS = "\a"
15247 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15248 line = \$ 0
15249 split(line, arg, " ")
15250 if (arg[1] == "#") {
15251 defundef = arg[2]
15252 mac1 = arg[3]
15253 } else {
15254 defundef = substr(arg[1], 2)
15255 mac1 = arg[2]
15257 split(mac1, mac2, "(") #)
15258 macro = mac2[1]
15259 prefix = substr(line, 1, index(line, defundef) - 1)
15260 if (D_is_set[macro]) {
15261 # Preserve the white space surrounding the "#".
15262 print prefix "define", macro P[macro] D[macro]
15263 next
15264 } else {
15265 # Replace #undef with comments. This is necessary, for example,
15266 # in the case of _POSIX_SOURCE, which is predefined and required
15267 # on some systems where configure will not decide to define it.
15268 if (defundef == "undef") {
15269 print "/*", prefix defundef, macro, "*/"
15270 next
15274 { print }
15275 _ACAWK
15276 _ACEOF
15277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15278 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15279 fi # test -n "$CONFIG_HEADERS"
15282 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15283 shift
15284 for ac_tag
15286 case $ac_tag in
15287 :[FHLC]) ac_mode=$ac_tag; continue;;
15288 esac
15289 case $ac_mode$ac_tag in
15290 :[FHL]*:*);;
15291 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15292 :[FH]-) ac_tag=-:-;;
15293 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15294 esac
15295 ac_save_IFS=$IFS
15296 IFS=:
15297 set x $ac_tag
15298 IFS=$ac_save_IFS
15299 shift
15300 ac_file=$1
15301 shift
15303 case $ac_mode in
15304 :L) ac_source=$1;;
15305 :[FH])
15306 ac_file_inputs=
15307 for ac_f
15309 case $ac_f in
15310 -) ac_f="$tmp/stdin";;
15311 *) # Look for the file first in the build tree, then in the source tree
15312 # (if the path is not absolute). The absolute path cannot be DOS-style,
15313 # because $ac_f cannot contain `:'.
15314 test -f "$ac_f" ||
15315 case $ac_f in
15316 [\\/$]*) false;;
15317 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15318 esac ||
15319 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15320 esac
15321 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15322 as_fn_append ac_file_inputs " '$ac_f'"
15323 done
15325 # Let's still pretend it is `configure' which instantiates (i.e., don't
15326 # use $as_me), people would be surprised to read:
15327 # /* config.h. Generated by config.status. */
15328 configure_input='Generated from '`
15329 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15330 `' by configure.'
15331 if test x"$ac_file" != x-; then
15332 configure_input="$ac_file. $configure_input"
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15334 $as_echo "$as_me: creating $ac_file" >&6;}
15336 # Neutralize special characters interpreted by sed in replacement strings.
15337 case $configure_input in #(
15338 *\&* | *\|* | *\\* )
15339 ac_sed_conf_input=`$as_echo "$configure_input" |
15340 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15341 *) ac_sed_conf_input=$configure_input;;
15342 esac
15344 case $ac_tag in
15345 *:-:* | *:-) cat >"$tmp/stdin" \
15346 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15347 esac
15349 esac
15351 ac_dir=`$as_dirname -- "$ac_file" ||
15352 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15353 X"$ac_file" : 'X\(//\)[^/]' \| \
15354 X"$ac_file" : 'X\(//\)$' \| \
15355 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15356 $as_echo X"$ac_file" |
15357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15358 s//\1/
15361 /^X\(\/\/\)[^/].*/{
15362 s//\1/
15365 /^X\(\/\/\)$/{
15366 s//\1/
15369 /^X\(\/\).*/{
15370 s//\1/
15373 s/.*/./; q'`
15374 as_dir="$ac_dir"; as_fn_mkdir_p
15375 ac_builddir=.
15377 case "$ac_dir" in
15378 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15380 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15381 # A ".." for each directory in $ac_dir_suffix.
15382 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15383 case $ac_top_builddir_sub in
15384 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15385 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15386 esac ;;
15387 esac
15388 ac_abs_top_builddir=$ac_pwd
15389 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15390 # for backward compatibility:
15391 ac_top_builddir=$ac_top_build_prefix
15393 case $srcdir in
15394 .) # We are building in place.
15395 ac_srcdir=.
15396 ac_top_srcdir=$ac_top_builddir_sub
15397 ac_abs_top_srcdir=$ac_pwd ;;
15398 [\\/]* | ?:[\\/]* ) # Absolute name.
15399 ac_srcdir=$srcdir$ac_dir_suffix;
15400 ac_top_srcdir=$srcdir
15401 ac_abs_top_srcdir=$srcdir ;;
15402 *) # Relative name.
15403 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15404 ac_top_srcdir=$ac_top_build_prefix$srcdir
15405 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15406 esac
15407 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15410 case $ac_mode in
15413 # CONFIG_FILE
15416 case $INSTALL in
15417 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15418 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15419 esac
15420 ac_MKDIR_P=$MKDIR_P
15421 case $MKDIR_P in
15422 [\\/$]* | ?:[\\/]* ) ;;
15423 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15424 esac
15425 _ACEOF
15427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15428 # If the template does not know about datarootdir, expand it.
15429 # FIXME: This hack should be removed a few years after 2.60.
15430 ac_datarootdir_hack=; ac_datarootdir_seen=
15431 ac_sed_dataroot='
15432 /datarootdir/ {
15436 /@datadir@/p
15437 /@docdir@/p
15438 /@infodir@/p
15439 /@localedir@/p
15440 /@mandir@/p'
15441 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15442 *datarootdir*) ac_datarootdir_seen=yes;;
15443 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15445 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15446 _ACEOF
15447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15448 ac_datarootdir_hack='
15449 s&@datadir@&$datadir&g
15450 s&@docdir@&$docdir&g
15451 s&@infodir@&$infodir&g
15452 s&@localedir@&$localedir&g
15453 s&@mandir@&$mandir&g
15454 s&\\\${datarootdir}&$datarootdir&g' ;;
15455 esac
15456 _ACEOF
15458 # Neutralize VPATH when `$srcdir' = `.'.
15459 # Shell code in configure.ac might set extrasub.
15460 # FIXME: do we really want to maintain this feature?
15461 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15462 ac_sed_extra="$ac_vpsub
15463 $extrasub
15464 _ACEOF
15465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15467 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15468 s|@configure_input@|$ac_sed_conf_input|;t t
15469 s&@top_builddir@&$ac_top_builddir_sub&;t t
15470 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15471 s&@srcdir@&$ac_srcdir&;t t
15472 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15473 s&@top_srcdir@&$ac_top_srcdir&;t t
15474 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15475 s&@builddir@&$ac_builddir&;t t
15476 s&@abs_builddir@&$ac_abs_builddir&;t t
15477 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15478 s&@INSTALL@&$ac_INSTALL&;t t
15479 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15480 $ac_datarootdir_hack
15482 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15483 || as_fn_error "could not create $ac_file" "$LINENO" 5
15485 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15486 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15487 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15489 which seems to be undefined. Please make sure it is defined." >&5
15490 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15491 which seems to be undefined. Please make sure it is defined." >&2;}
15493 rm -f "$tmp/stdin"
15494 case $ac_file in
15495 -) cat "$tmp/out" && rm -f "$tmp/out";;
15496 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15497 esac \
15498 || as_fn_error "could not create $ac_file" "$LINENO" 5
15502 # CONFIG_HEADER
15504 if test x"$ac_file" != x-; then
15506 $as_echo "/* $configure_input */" \
15507 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15508 } >"$tmp/config.h" \
15509 || as_fn_error "could not create $ac_file" "$LINENO" 5
15510 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15512 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15513 else
15514 rm -f "$ac_file"
15515 mv "$tmp/config.h" "$ac_file" \
15516 || as_fn_error "could not create $ac_file" "$LINENO" 5
15518 else
15519 $as_echo "/* $configure_input */" \
15520 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15521 || as_fn_error "could not create -" "$LINENO" 5
15523 # Compute "$ac_file"'s index in $config_headers.
15524 _am_arg="$ac_file"
15525 _am_stamp_count=1
15526 for _am_header in $config_headers :; do
15527 case $_am_header in
15528 $_am_arg | $_am_arg:* )
15529 break ;;
15531 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15532 esac
15533 done
15534 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15535 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15536 X"$_am_arg" : 'X\(//\)[^/]' \| \
15537 X"$_am_arg" : 'X\(//\)$' \| \
15538 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15539 $as_echo X"$_am_arg" |
15540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15541 s//\1/
15544 /^X\(\/\/\)[^/].*/{
15545 s//\1/
15548 /^X\(\/\/\)$/{
15549 s//\1/
15552 /^X\(\/\).*/{
15553 s//\1/
15556 s/.*/./; q'`/stamp-h$_am_stamp_count
15559 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15560 $as_echo "$as_me: executing $ac_file commands" >&6;}
15562 esac
15565 case $ac_file$ac_mode in
15566 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15567 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15568 # are listed without --file. Let's play safe and only enable the eval
15569 # if we detect the quoting.
15570 case $CONFIG_FILES in
15571 *\'*) eval set x "$CONFIG_FILES" ;;
15572 *) set x $CONFIG_FILES ;;
15573 esac
15574 shift
15575 for mf
15577 # Strip MF so we end up with the name of the file.
15578 mf=`echo "$mf" | sed -e 's/:.*$//'`
15579 # Check whether this is an Automake generated Makefile or not.
15580 # We used to match only the files named `Makefile.in', but
15581 # some people rename them; so instead we look at the file content.
15582 # Grep'ing the first line is not enough: some people post-process
15583 # each Makefile.in and add a new line on top of each file to say so.
15584 # Grep'ing the whole file is not good either: AIX grep has a line
15585 # limit of 2048, but all sed's we know have understand at least 4000.
15586 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15587 dirpart=`$as_dirname -- "$mf" ||
15588 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15589 X"$mf" : 'X\(//\)[^/]' \| \
15590 X"$mf" : 'X\(//\)$' \| \
15591 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15592 $as_echo X"$mf" |
15593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15594 s//\1/
15597 /^X\(\/\/\)[^/].*/{
15598 s//\1/
15601 /^X\(\/\/\)$/{
15602 s//\1/
15605 /^X\(\/\).*/{
15606 s//\1/
15609 s/.*/./; q'`
15610 else
15611 continue
15613 # Extract the definition of DEPDIR, am__include, and am__quote
15614 # from the Makefile without running `make'.
15615 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15616 test -z "$DEPDIR" && continue
15617 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15618 test -z "am__include" && continue
15619 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15620 # When using ansi2knr, U may be empty or an underscore; expand it
15621 U=`sed -n 's/^U = //p' < "$mf"`
15622 # Find all dependency output files, they are included files with
15623 # $(DEPDIR) in their names. We invoke sed twice because it is the
15624 # simplest approach to changing $(DEPDIR) to its actual value in the
15625 # expansion.
15626 for file in `sed -n "
15627 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15628 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15629 # Make sure the directory exists.
15630 test -f "$dirpart/$file" && continue
15631 fdir=`$as_dirname -- "$file" ||
15632 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15633 X"$file" : 'X\(//\)[^/]' \| \
15634 X"$file" : 'X\(//\)$' \| \
15635 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15636 $as_echo X"$file" |
15637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15638 s//\1/
15641 /^X\(\/\/\)[^/].*/{
15642 s//\1/
15645 /^X\(\/\/\)$/{
15646 s//\1/
15649 /^X\(\/\).*/{
15650 s//\1/
15653 s/.*/./; q'`
15654 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15655 # echo "creating $dirpart/$file"
15656 echo '# dummy' > "$dirpart/$file"
15657 done
15658 done
15661 "libtool":C)
15663 # See if we are running on zsh, and set the options which allow our
15664 # commands through without removal of \ escapes.
15665 if test -n "${ZSH_VERSION+set}" ; then
15666 setopt NO_GLOB_SUBST
15669 cfgfile="${ofile}T"
15670 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15671 $RM "$cfgfile"
15673 cat <<_LT_EOF >> "$cfgfile"
15674 #! $SHELL
15676 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15677 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15678 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15679 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15681 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15682 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15683 # Written by Gordon Matzigkeit, 1996
15685 # This file is part of GNU Libtool.
15687 # GNU Libtool is free software; you can redistribute it and/or
15688 # modify it under the terms of the GNU General Public License as
15689 # published by the Free Software Foundation; either version 2 of
15690 # the License, or (at your option) any later version.
15692 # As a special exception to the GNU General Public License,
15693 # if you distribute this file as part of a program or library that
15694 # is built using GNU Libtool, you may include this file under the
15695 # same distribution terms that you use for the rest of that program.
15697 # GNU Libtool is distributed in the hope that it will be useful,
15698 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15699 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15700 # GNU General Public License for more details.
15702 # You should have received a copy of the GNU General Public License
15703 # along with GNU Libtool; see the file COPYING. If not, a copy
15704 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15705 # obtained by writing to the Free Software Foundation, Inc.,
15706 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15709 # The names of the tagged configurations supported by this script.
15710 available_tags=""
15712 # ### BEGIN LIBTOOL CONFIG
15714 # Which release of libtool.m4 was used?
15715 macro_version=$macro_version
15716 macro_revision=$macro_revision
15718 # Whether or not to build shared libraries.
15719 build_libtool_libs=$enable_shared
15721 # Whether or not to build static libraries.
15722 build_old_libs=$enable_static
15724 # What type of objects to build.
15725 pic_mode=$pic_mode
15727 # Whether or not to optimize for fast installation.
15728 fast_install=$enable_fast_install
15730 # Shell to use when invoking shell scripts.
15731 SHELL=$lt_SHELL
15733 # An echo program that protects backslashes.
15734 ECHO=$lt_ECHO
15736 # The host system.
15737 host_alias=$host_alias
15738 host=$host
15739 host_os=$host_os
15741 # The build system.
15742 build_alias=$build_alias
15743 build=$build
15744 build_os=$build_os
15746 # A sed program that does not truncate output.
15747 SED=$lt_SED
15749 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15750 Xsed="\$SED -e 1s/^X//"
15752 # A grep program that handles long lines.
15753 GREP=$lt_GREP
15755 # An ERE matcher.
15756 EGREP=$lt_EGREP
15758 # A literal string matcher.
15759 FGREP=$lt_FGREP
15761 # A BSD- or MS-compatible name lister.
15762 NM=$lt_NM
15764 # Whether we need soft or hard links.
15765 LN_S=$lt_LN_S
15767 # What is the maximum length of a command?
15768 max_cmd_len=$max_cmd_len
15770 # Object file suffix (normally "o").
15771 objext=$ac_objext
15773 # Executable file suffix (normally "").
15774 exeext=$exeext
15776 # whether the shell understands "unset".
15777 lt_unset=$lt_unset
15779 # turn spaces into newlines.
15780 SP2NL=$lt_lt_SP2NL
15782 # turn newlines into spaces.
15783 NL2SP=$lt_lt_NL2SP
15785 # An object symbol dumper.
15786 OBJDUMP=$lt_OBJDUMP
15788 # Method to check whether dependent libraries are shared objects.
15789 deplibs_check_method=$lt_deplibs_check_method
15791 # Command to use when deplibs_check_method == "file_magic".
15792 file_magic_cmd=$lt_file_magic_cmd
15794 # The archiver.
15795 AR=$lt_AR
15796 AR_FLAGS=$lt_AR_FLAGS
15798 # A symbol stripping program.
15799 STRIP=$lt_STRIP
15801 # Commands used to install an old-style archive.
15802 RANLIB=$lt_RANLIB
15803 old_postinstall_cmds=$lt_old_postinstall_cmds
15804 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15806 # Whether to use a lock for old archive extraction.
15807 lock_old_archive_extraction=$lock_old_archive_extraction
15809 # A C compiler.
15810 LTCC=$lt_CC
15812 # LTCC compiler flags.
15813 LTCFLAGS=$lt_CFLAGS
15815 # Take the output of nm and produce a listing of raw symbols and C names.
15816 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15818 # Transform the output of nm in a proper C declaration.
15819 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15821 # Transform the output of nm in a C name address pair.
15822 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15824 # Transform the output of nm in a C name address pair when lib prefix is needed.
15825 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15827 # The name of the directory that contains temporary libtool files.
15828 objdir=$objdir
15830 # Used to examine libraries when file_magic_cmd begins with "file".
15831 MAGIC_CMD=$MAGIC_CMD
15833 # Must we lock files when doing compilation?
15834 need_locks=$lt_need_locks
15836 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15837 DSYMUTIL=$lt_DSYMUTIL
15839 # Tool to change global to local symbols on Mac OS X.
15840 NMEDIT=$lt_NMEDIT
15842 # Tool to manipulate fat objects and archives on Mac OS X.
15843 LIPO=$lt_LIPO
15845 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15846 OTOOL=$lt_OTOOL
15848 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15849 OTOOL64=$lt_OTOOL64
15851 # Old archive suffix (normally "a").
15852 libext=$libext
15854 # Shared library suffix (normally ".so").
15855 shrext_cmds=$lt_shrext_cmds
15857 # The commands to extract the exported symbol list from a shared archive.
15858 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15860 # Variables whose values should be saved in libtool wrapper scripts and
15861 # restored at link time.
15862 variables_saved_for_relink=$lt_variables_saved_for_relink
15864 # Do we need the "lib" prefix for modules?
15865 need_lib_prefix=$need_lib_prefix
15867 # Do we need a version for libraries?
15868 need_version=$need_version
15870 # Library versioning type.
15871 version_type=$version_type
15873 # Shared library runtime path variable.
15874 runpath_var=$runpath_var
15876 # Shared library path variable.
15877 shlibpath_var=$shlibpath_var
15879 # Is shlibpath searched before the hard-coded library search path?
15880 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15882 # Format of library name prefix.
15883 libname_spec=$lt_libname_spec
15885 # List of archive names. First name is the real one, the rest are links.
15886 # The last name is the one that the linker finds with -lNAME
15887 library_names_spec=$lt_library_names_spec
15889 # The coded name of the library, if different from the real name.
15890 soname_spec=$lt_soname_spec
15892 # Permission mode override for installation of shared libraries.
15893 install_override_mode=$lt_install_override_mode
15895 # Command to use after installation of a shared archive.
15896 postinstall_cmds=$lt_postinstall_cmds
15898 # Command to use after uninstallation of a shared archive.
15899 postuninstall_cmds=$lt_postuninstall_cmds
15901 # Commands used to finish a libtool library installation in a directory.
15902 finish_cmds=$lt_finish_cmds
15904 # As "finish_cmds", except a single script fragment to be evaled but
15905 # not shown.
15906 finish_eval=$lt_finish_eval
15908 # Whether we should hardcode library paths into libraries.
15909 hardcode_into_libs=$hardcode_into_libs
15911 # Compile-time system search path for libraries.
15912 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15914 # Run-time system search path for libraries.
15915 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15917 # Whether dlopen is supported.
15918 dlopen_support=$enable_dlopen
15920 # Whether dlopen of programs is supported.
15921 dlopen_self=$enable_dlopen_self
15923 # Whether dlopen of statically linked programs is supported.
15924 dlopen_self_static=$enable_dlopen_self_static
15926 # Commands to strip libraries.
15927 old_striplib=$lt_old_striplib
15928 striplib=$lt_striplib
15931 # The linker used to build libraries.
15932 LD=$lt_LD
15934 # How to create reloadable object files.
15935 reload_flag=$lt_reload_flag
15936 reload_cmds=$lt_reload_cmds
15938 # Commands used to build an old-style archive.
15939 old_archive_cmds=$lt_old_archive_cmds
15941 # A language specific compiler.
15942 CC=$lt_compiler
15944 # Is the compiler the GNU compiler?
15945 with_gcc=$GCC
15947 # Compiler flag to turn off builtin functions.
15948 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15950 # How to pass a linker flag through the compiler.
15951 wl=$lt_lt_prog_compiler_wl
15953 # Additional compiler flags for building library objects.
15954 pic_flag=$lt_lt_prog_compiler_pic
15956 # Compiler flag to prevent dynamic linking.
15957 link_static_flag=$lt_lt_prog_compiler_static
15959 # Does compiler simultaneously support -c and -o options?
15960 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15962 # Whether or not to add -lc for building shared libraries.
15963 build_libtool_need_lc=$archive_cmds_need_lc
15965 # Whether or not to disallow shared libs when runtime libs are static.
15966 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15968 # Compiler flag to allow reflexive dlopens.
15969 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15971 # Compiler flag to generate shared objects directly from archives.
15972 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15974 # Whether the compiler copes with passing no objects directly.
15975 compiler_needs_object=$lt_compiler_needs_object
15977 # Create an old-style archive from a shared archive.
15978 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15980 # Create a temporary old-style archive to link instead of a shared archive.
15981 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15983 # Commands used to build a shared archive.
15984 archive_cmds=$lt_archive_cmds
15985 archive_expsym_cmds=$lt_archive_expsym_cmds
15987 # Commands used to build a loadable module if different from building
15988 # a shared archive.
15989 module_cmds=$lt_module_cmds
15990 module_expsym_cmds=$lt_module_expsym_cmds
15992 # Whether we are building with GNU ld or not.
15993 with_gnu_ld=$lt_with_gnu_ld
15995 # Flag that allows shared libraries with undefined symbols to be built.
15996 allow_undefined_flag=$lt_allow_undefined_flag
15998 # Flag that enforces no undefined symbols.
15999 no_undefined_flag=$lt_no_undefined_flag
16001 # Flag to hardcode \$libdir into a binary during linking.
16002 # This must work even if \$libdir does not exist
16003 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16005 # If ld is used when linking, flag to hardcode \$libdir into a binary
16006 # during linking. This must work even if \$libdir does not exist.
16007 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16009 # Whether we need a single "-rpath" flag with a separated argument.
16010 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16012 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16013 # DIR into the resulting binary.
16014 hardcode_direct=$hardcode_direct
16016 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16017 # DIR into the resulting binary and the resulting library dependency is
16018 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16019 # library is relocated.
16020 hardcode_direct_absolute=$hardcode_direct_absolute
16022 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16023 # into the resulting binary.
16024 hardcode_minus_L=$hardcode_minus_L
16026 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16027 # into the resulting binary.
16028 hardcode_shlibpath_var=$hardcode_shlibpath_var
16030 # Set to "yes" if building a shared library automatically hardcodes DIR
16031 # into the library and all subsequent libraries and executables linked
16032 # against it.
16033 hardcode_automatic=$hardcode_automatic
16035 # Set to yes if linker adds runtime paths of dependent libraries
16036 # to runtime path list.
16037 inherit_rpath=$inherit_rpath
16039 # Whether libtool must link a program against all its dependency libraries.
16040 link_all_deplibs=$link_all_deplibs
16042 # Fix the shell variable \$srcfile for the compiler.
16043 fix_srcfile_path=$lt_fix_srcfile_path
16045 # Set to "yes" if exported symbols are required.
16046 always_export_symbols=$always_export_symbols
16048 # The commands to list exported symbols.
16049 export_symbols_cmds=$lt_export_symbols_cmds
16051 # Symbols that should not be listed in the preloaded symbols.
16052 exclude_expsyms=$lt_exclude_expsyms
16054 # Symbols that must always be exported.
16055 include_expsyms=$lt_include_expsyms
16057 # Commands necessary for linking programs (against libraries) with templates.
16058 prelink_cmds=$lt_prelink_cmds
16060 # Specify filename containing input files.
16061 file_list_spec=$lt_file_list_spec
16063 # How to hardcode a shared library path into an executable.
16064 hardcode_action=$hardcode_action
16066 # ### END LIBTOOL CONFIG
16068 _LT_EOF
16070 case $host_os in
16071 aix3*)
16072 cat <<\_LT_EOF >> "$cfgfile"
16073 # AIX sometimes has problems with the GCC collect2 program. For some
16074 # reason, if we set the COLLECT_NAMES environment variable, the problems
16075 # vanish in a puff of smoke.
16076 if test "X${COLLECT_NAMES+set}" != Xset; then
16077 COLLECT_NAMES=
16078 export COLLECT_NAMES
16080 _LT_EOF
16082 esac
16085 ltmain="$ac_aux_dir/ltmain.sh"
16088 # We use sed instead of cat because bash on DJGPP gets confused if
16089 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16090 # text mode, it properly converts lines to CR/LF. This bash problem
16091 # is reportedly fixed, but why not run on old versions too?
16092 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16093 || (rm -f "$cfgfile"; exit 1)
16095 case $xsi_shell in
16096 yes)
16097 cat << \_LT_EOF >> "$cfgfile"
16099 # func_dirname file append nondir_replacement
16100 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16101 # otherwise set result to NONDIR_REPLACEMENT.
16102 func_dirname ()
16104 case ${1} in
16105 */*) func_dirname_result="${1%/*}${2}" ;;
16106 * ) func_dirname_result="${3}" ;;
16107 esac
16110 # func_basename file
16111 func_basename ()
16113 func_basename_result="${1##*/}"
16116 # func_dirname_and_basename file append nondir_replacement
16117 # perform func_basename and func_dirname in a single function
16118 # call:
16119 # dirname: Compute the dirname of FILE. If nonempty,
16120 # add APPEND to the result, otherwise set result
16121 # to NONDIR_REPLACEMENT.
16122 # value returned in "$func_dirname_result"
16123 # basename: Compute filename of FILE.
16124 # value retuned in "$func_basename_result"
16125 # Implementation must be kept synchronized with func_dirname
16126 # and func_basename. For efficiency, we do not delegate to
16127 # those functions but instead duplicate the functionality here.
16128 func_dirname_and_basename ()
16130 case ${1} in
16131 */*) func_dirname_result="${1%/*}${2}" ;;
16132 * ) func_dirname_result="${3}" ;;
16133 esac
16134 func_basename_result="${1##*/}"
16137 # func_stripname prefix suffix name
16138 # strip PREFIX and SUFFIX off of NAME.
16139 # PREFIX and SUFFIX must not contain globbing or regex special
16140 # characters, hashes, percent signs, but SUFFIX may contain a leading
16141 # dot (in which case that matches only a dot).
16142 func_stripname ()
16144 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16145 # positional parameters, so assign one to ordinary parameter first.
16146 func_stripname_result=${3}
16147 func_stripname_result=${func_stripname_result#"${1}"}
16148 func_stripname_result=${func_stripname_result%"${2}"}
16151 # func_opt_split
16152 func_opt_split ()
16154 func_opt_split_opt=${1%%=*}
16155 func_opt_split_arg=${1#*=}
16158 # func_lo2o object
16159 func_lo2o ()
16161 case ${1} in
16162 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16163 *) func_lo2o_result=${1} ;;
16164 esac
16167 # func_xform libobj-or-source
16168 func_xform ()
16170 func_xform_result=${1%.*}.lo
16173 # func_arith arithmetic-term...
16174 func_arith ()
16176 func_arith_result=$(( $* ))
16179 # func_len string
16180 # STRING may not start with a hyphen.
16181 func_len ()
16183 func_len_result=${#1}
16186 _LT_EOF
16188 *) # Bourne compatible functions.
16189 cat << \_LT_EOF >> "$cfgfile"
16191 # func_dirname file append nondir_replacement
16192 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16193 # otherwise set result to NONDIR_REPLACEMENT.
16194 func_dirname ()
16196 # Extract subdirectory from the argument.
16197 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16198 if test "X$func_dirname_result" = "X${1}"; then
16199 func_dirname_result="${3}"
16200 else
16201 func_dirname_result="$func_dirname_result${2}"
16205 # func_basename file
16206 func_basename ()
16208 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16212 # func_stripname prefix suffix name
16213 # strip PREFIX and SUFFIX off of NAME.
16214 # PREFIX and SUFFIX must not contain globbing or regex special
16215 # characters, hashes, percent signs, but SUFFIX may contain a leading
16216 # dot (in which case that matches only a dot).
16217 # func_strip_suffix prefix name
16218 func_stripname ()
16220 case ${2} in
16221 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16222 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16223 esac
16226 # sed scripts:
16227 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16228 my_sed_long_arg='1s/^-[^=]*=//'
16230 # func_opt_split
16231 func_opt_split ()
16233 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16234 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16237 # func_lo2o object
16238 func_lo2o ()
16240 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16243 # func_xform libobj-or-source
16244 func_xform ()
16246 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16249 # func_arith arithmetic-term...
16250 func_arith ()
16252 func_arith_result=`expr "$@"`
16255 # func_len string
16256 # STRING may not start with a hyphen.
16257 func_len ()
16259 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16262 _LT_EOF
16263 esac
16265 case $lt_shell_append in
16266 yes)
16267 cat << \_LT_EOF >> "$cfgfile"
16269 # func_append var value
16270 # Append VALUE to the end of shell variable VAR.
16271 func_append ()
16273 eval "$1+=\$2"
16275 _LT_EOF
16278 cat << \_LT_EOF >> "$cfgfile"
16280 # func_append var value
16281 # Append VALUE to the end of shell variable VAR.
16282 func_append ()
16284 eval "$1=\$$1\$2"
16287 _LT_EOF
16289 esac
16292 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16293 || (rm -f "$cfgfile"; exit 1)
16295 mv -f "$cfgfile" "$ofile" ||
16296 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16297 chmod +x "$ofile"
16300 "default-1":C)
16301 for ac_file in $CONFIG_FILES; do
16302 # Support "outfile[:infile[:infile...]]"
16303 case "$ac_file" in
16304 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16305 esac
16306 # PO directories have a Makefile.in generated from Makefile.in.in.
16307 case "$ac_file" in */Makefile.in)
16308 # Adjust a relative srcdir.
16309 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16310 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16311 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16312 # In autoconf-2.13 it is called $ac_given_srcdir.
16313 # In autoconf-2.50 it is called $srcdir.
16314 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16315 case "$ac_given_srcdir" in
16316 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16317 /*) top_srcdir="$ac_given_srcdir" ;;
16318 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16319 esac
16320 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16321 rm -f "$ac_dir/POTFILES"
16322 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16323 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16324 POMAKEFILEDEPS="POTFILES.in"
16325 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16326 # on $ac_dir but don't depend on user-specified configuration
16327 # parameters.
16328 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16329 # The LINGUAS file contains the set of available languages.
16330 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16331 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16333 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16334 # Hide the ALL_LINGUAS assigment from automake.
16335 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16336 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16337 else
16338 # The set of available languages was given in configure.in.
16339 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16341 case "$ac_given_srcdir" in
16342 .) srcdirpre= ;;
16343 *) srcdirpre='$(srcdir)/' ;;
16344 esac
16345 POFILES=
16346 GMOFILES=
16347 UPDATEPOFILES=
16348 DUMMYPOFILES=
16349 for lang in $ALL_LINGUAS; do
16350 POFILES="$POFILES $srcdirpre$lang.po"
16351 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16352 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16353 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16354 done
16355 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16356 # environment variable.
16357 INST_LINGUAS=
16358 if test -n "$ALL_LINGUAS"; then
16359 for presentlang in $ALL_LINGUAS; do
16360 useit=no
16361 if test "%UNSET%" != "$LINGUAS"; then
16362 desiredlanguages="$LINGUAS"
16363 else
16364 desiredlanguages="$ALL_LINGUAS"
16366 for desiredlang in $desiredlanguages; do
16367 # Use the presentlang catalog if desiredlang is
16368 # a. equal to presentlang, or
16369 # b. a variant of presentlang (because in this case,
16370 # presentlang can be used as a fallback for messages
16371 # which are not translated in the desiredlang catalog).
16372 case "$desiredlang" in
16373 "$presentlang"*) useit=yes;;
16374 esac
16375 done
16376 if test $useit = yes; then
16377 INST_LINGUAS="$INST_LINGUAS $presentlang"
16379 done
16381 CATALOGS=
16382 if test -n "$INST_LINGUAS"; then
16383 for lang in $INST_LINGUAS; do
16384 CATALOGS="$CATALOGS $lang.gmo"
16385 done
16387 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16388 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"
16389 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16390 if test -f "$f"; then
16391 case "$f" in
16392 *.orig | *.bak | *~) ;;
16393 *) cat "$f" >> "$ac_dir/Makefile" ;;
16394 esac
16396 done
16399 esac
16400 done ;;
16402 esac
16403 done # for ac_tag
16406 as_fn_exit 0
16407 _ACEOF
16408 ac_clean_files=$ac_clean_files_save
16410 test $ac_write_fail = 0 ||
16411 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16414 # configure is writing to config.log, and then calls config.status.
16415 # config.status does its own redirection, appending to config.log.
16416 # Unfortunately, on DOS this fails, as config.log is still kept open
16417 # by configure, so config.status won't be able to write to it; its
16418 # output is simply discarded. So we exec the FD to /dev/null,
16419 # effectively closing config.log, so it can be properly (re)opened and
16420 # appended to by config.status. When coming back to configure, we
16421 # need to make the FD available again.
16422 if test "$no_create" != yes; then
16423 ac_cs_success=:
16424 ac_config_status_args=
16425 test "$silent" = yes &&
16426 ac_config_status_args="$ac_config_status_args --quiet"
16427 exec 5>/dev/null
16428 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16429 exec 5>>config.log
16430 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16431 # would make configure fail if this is the last instruction.
16432 $ac_cs_success || as_fn_exit $?
16434 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16436 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}