Automatic date update in version.in
[binutils-gdb.git] / opcodes / configure
blob050fd5ff0fffc4ac75068871a0b764b9327c5390
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for opcodes 2.42.50.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software 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 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME='opcodes'
589 PACKAGE_TARNAME='opcodes'
590 PACKAGE_VERSION='2.42.50'
591 PACKAGE_STRING='opcodes 2.42.50'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
595 ac_unique_file="z8k-dis.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
632 gt_needs=
633 ac_subst_vars='am__EXEEXT_FALSE
634 am__EXEEXT_TRUE
635 LTLIBOBJS
636 LIBOBJS
637 BFD_MACHINES
638 archdefs
639 SHARED_DEPENDENCIES
640 SHARED_LIBADD
641 SHARED_LDFLAGS
642 BUILD_LIB_DEPS
643 BUILD_LIBS
644 LIBM
645 cgendir
646 CGEN_MAINT_FALSE
647 CGEN_MAINT_TRUE
648 HDEFINES
649 ENABLE_BFD_64_BIT_FALSE
650 ENABLE_BFD_64_BIT_TRUE
651 EXEEXT_FOR_BUILD
652 CC_FOR_BUILD
653 CATOBJEXT
654 GENCAT
655 INSTOBJEXT
656 DATADIRNAME
657 CATALOGS
658 INCINTL
659 LIBINTL_DEP
660 POSUB
661 LTLIBINTL
662 LIBINTL
663 INTLLIBS
664 LTLIBICONV
665 LIBICONV
666 INTL_MACOSX_LIBS
667 MSGMERGE
668 XGETTEXT
669 GMSGFMT
670 MSGFMT
671 USE_NLS
672 MKINSTALLDIRS
673 bfdincludedir
674 bfdlibdir
675 target_noncanonical
676 host_noncanonical
677 INSTALL_LIBBFD_FALSE
678 INSTALL_LIBBFD_TRUE
679 MAINT
680 MAINTAINER_MODE_FALSE
681 MAINTAINER_MODE_TRUE
682 WARN_WRITE_STRINGS
683 NO_WERROR
684 WARN_CFLAGS_FOR_BUILD
685 WARN_CFLAGS
686 OTOOL64
687 OTOOL
688 LIPO
689 NMEDIT
690 DSYMUTIL
691 OBJDUMP
692 LN_S
694 ac_ct_DUMPBIN
695 DUMPBIN
697 FGREP
699 LIBTOOL
700 RANLIB
702 EGREP
703 GREP
705 am__fastdepCC_FALSE
706 am__fastdepCC_TRUE
707 CCDEPMODE
708 am__nodep
709 AMDEPBACKSLASH
710 AMDEP_FALSE
711 AMDEP_TRUE
712 am__quote
713 am__include
714 DEPDIR
715 OBJEXT
716 EXEEXT
717 ac_ct_CC
718 CPPFLAGS
719 LDFLAGS
720 CFLAGS
722 AM_BACKSLASH
723 AM_DEFAULT_VERBOSITY
724 AM_DEFAULT_V
725 AM_V
726 am__untar
727 am__tar
728 AMTAR
729 am__leading_dot
730 SET_MAKE
732 mkdir_p
733 MKDIR_P
734 INSTALL_STRIP_PROGRAM
735 STRIP
736 install_sh
737 MAKEINFO
738 AUTOHEADER
739 AUTOMAKE
740 AUTOCONF
741 ACLOCAL
742 VERSION
743 PACKAGE
744 CYGPATH_W
745 am__isrc
746 INSTALL_DATA
747 INSTALL_SCRIPT
748 INSTALL_PROGRAM
749 target_os
750 target_vendor
751 target_cpu
752 target
753 host_os
754 host_vendor
755 host_cpu
756 host
757 build_os
758 build_vendor
759 build_cpu
760 build
761 target_alias
762 host_alias
763 build_alias
764 LIBS
765 ECHO_T
766 ECHO_N
767 ECHO_C
768 DEFS
769 mandir
770 localedir
771 libdir
772 psdir
773 pdfdir
774 dvidir
775 htmldir
776 infodir
777 docdir
778 oldincludedir
779 includedir
780 localstatedir
781 sharedstatedir
782 sysconfdir
783 datadir
784 datarootdir
785 libexecdir
786 sbindir
787 bindir
788 program_transform_name
789 prefix
790 exec_prefix
791 PACKAGE_URL
792 PACKAGE_BUGREPORT
793 PACKAGE_STRING
794 PACKAGE_VERSION
795 PACKAGE_TARNAME
796 PACKAGE_NAME
797 PATH_SEPARATOR
798 SHELL'
799 ac_subst_files=''
800 ac_user_opts='
801 enable_option_checking
802 enable_silent_rules
803 enable_dependency_tracking
804 enable_shared
805 enable_static
806 with_pic
807 enable_fast_install
808 with_gnu_ld
809 enable_libtool_lock
810 enable_checking
811 enable_targets
812 enable_werror
813 enable_build_warnings
814 enable_maintainer_mode
815 enable_install_libbfd
816 enable_nls
817 enable_rpath
818 with_libiconv_prefix
819 with_libiconv_type
820 with_libintl_prefix
821 with_libintl_type
822 enable_64_bit_bfd
823 enable_cgen_maint
825 ac_precious_vars='build_alias
826 host_alias
827 target_alias
829 CFLAGS
830 LDFLAGS
831 LIBS
832 CPPFLAGS
833 CPP'
836 # Initialize some variables set by options.
837 ac_init_help=
838 ac_init_version=false
839 ac_unrecognized_opts=
840 ac_unrecognized_sep=
841 # The variables have the same names as the options, with
842 # dashes changed to underlines.
843 cache_file=/dev/null
844 exec_prefix=NONE
845 no_create=
846 no_recursion=
847 prefix=NONE
848 program_prefix=NONE
849 program_suffix=NONE
850 program_transform_name=s,x,x,
851 silent=
852 site=
853 srcdir=
854 verbose=
855 x_includes=NONE
856 x_libraries=NONE
858 # Installation directory options.
859 # These are left unexpanded so users can "make install exec_prefix=/foo"
860 # and all the variables that are supposed to be based on exec_prefix
861 # by default will actually change.
862 # Use braces instead of parens because sh, perl, etc. also accept them.
863 # (The list follows the same order as the GNU Coding Standards.)
864 bindir='${exec_prefix}/bin'
865 sbindir='${exec_prefix}/sbin'
866 libexecdir='${exec_prefix}/libexec'
867 datarootdir='${prefix}/share'
868 datadir='${datarootdir}'
869 sysconfdir='${prefix}/etc'
870 sharedstatedir='${prefix}/com'
871 localstatedir='${prefix}/var'
872 includedir='${prefix}/include'
873 oldincludedir='/usr/include'
874 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
875 infodir='${datarootdir}/info'
876 htmldir='${docdir}'
877 dvidir='${docdir}'
878 pdfdir='${docdir}'
879 psdir='${docdir}'
880 libdir='${exec_prefix}/lib'
881 localedir='${datarootdir}/locale'
882 mandir='${datarootdir}/man'
884 ac_prev=
885 ac_dashdash=
886 for ac_option
888 # If the previous option needs an argument, assign it.
889 if test -n "$ac_prev"; then
890 eval $ac_prev=\$ac_option
891 ac_prev=
892 continue
895 case $ac_option in
896 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
897 *=) ac_optarg= ;;
898 *) ac_optarg=yes ;;
899 esac
901 # Accept the important Cygnus configure options, so we can diagnose typos.
903 case $ac_dashdash$ac_option in
905 ac_dashdash=yes ;;
907 -bindir | --bindir | --bindi | --bind | --bin | --bi)
908 ac_prev=bindir ;;
909 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
910 bindir=$ac_optarg ;;
912 -build | --build | --buil | --bui | --bu)
913 ac_prev=build_alias ;;
914 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
915 build_alias=$ac_optarg ;;
917 -cache-file | --cache-file | --cache-fil | --cache-fi \
918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919 ac_prev=cache_file ;;
920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
922 cache_file=$ac_optarg ;;
924 --config-cache | -C)
925 cache_file=config.cache ;;
927 -datadir | --datadir | --datadi | --datad)
928 ac_prev=datadir ;;
929 -datadir=* | --datadir=* | --datadi=* | --datad=*)
930 datadir=$ac_optarg ;;
932 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933 | --dataroo | --dataro | --datar)
934 ac_prev=datarootdir ;;
935 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937 datarootdir=$ac_optarg ;;
939 -disable-* | --disable-*)
940 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error $? "invalid feature name: $ac_useropt"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
948 "enable_$ac_useropt"
949 "*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
952 esac
953 eval enable_$ac_useropt=no ;;
955 -docdir | --docdir | --docdi | --doc | --do)
956 ac_prev=docdir ;;
957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958 docdir=$ac_optarg ;;
960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961 ac_prev=dvidir ;;
962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963 dvidir=$ac_optarg ;;
965 -enable-* | --enable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 as_fn_error $? "invalid feature name: $ac_useropt"
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
974 "enable_$ac_useropt"
975 "*) ;;
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
978 esac
979 eval enable_$ac_useropt=\$ac_optarg ;;
981 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983 | --exec | --exe | --ex)
984 ac_prev=exec_prefix ;;
985 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987 | --exec=* | --exe=* | --ex=*)
988 exec_prefix=$ac_optarg ;;
990 -gas | --gas | --ga | --g)
991 # Obsolete; use --with-gas.
992 with_gas=yes ;;
994 -help | --help | --hel | --he | -h)
995 ac_init_help=long ;;
996 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997 ac_init_help=recursive ;;
998 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999 ac_init_help=short ;;
1001 -host | --host | --hos | --ho)
1002 ac_prev=host_alias ;;
1003 -host=* | --host=* | --hos=* | --ho=*)
1004 host_alias=$ac_optarg ;;
1006 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007 ac_prev=htmldir ;;
1008 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009 | --ht=*)
1010 htmldir=$ac_optarg ;;
1012 -includedir | --includedir | --includedi | --included | --include \
1013 | --includ | --inclu | --incl | --inc)
1014 ac_prev=includedir ;;
1015 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016 | --includ=* | --inclu=* | --incl=* | --inc=*)
1017 includedir=$ac_optarg ;;
1019 -infodir | --infodir | --infodi | --infod | --info | --inf)
1020 ac_prev=infodir ;;
1021 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1022 infodir=$ac_optarg ;;
1024 -libdir | --libdir | --libdi | --libd)
1025 ac_prev=libdir ;;
1026 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1027 libdir=$ac_optarg ;;
1029 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030 | --libexe | --libex | --libe)
1031 ac_prev=libexecdir ;;
1032 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033 | --libexe=* | --libex=* | --libe=*)
1034 libexecdir=$ac_optarg ;;
1036 -localedir | --localedir | --localedi | --localed | --locale)
1037 ac_prev=localedir ;;
1038 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039 localedir=$ac_optarg ;;
1041 -localstatedir | --localstatedir | --localstatedi | --localstated \
1042 | --localstate | --localstat | --localsta | --localst | --locals)
1043 ac_prev=localstatedir ;;
1044 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1045 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1046 localstatedir=$ac_optarg ;;
1048 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049 ac_prev=mandir ;;
1050 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1051 mandir=$ac_optarg ;;
1053 -nfp | --nfp | --nf)
1054 # Obsolete; use --without-fp.
1055 with_fp=no ;;
1057 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1058 | --no-cr | --no-c | -n)
1059 no_create=yes ;;
1061 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1063 no_recursion=yes ;;
1065 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067 | --oldin | --oldi | --old | --ol | --o)
1068 ac_prev=oldincludedir ;;
1069 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1072 oldincludedir=$ac_optarg ;;
1074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075 ac_prev=prefix ;;
1076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1077 prefix=$ac_optarg ;;
1079 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080 | --program-pre | --program-pr | --program-p)
1081 ac_prev=program_prefix ;;
1082 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1084 program_prefix=$ac_optarg ;;
1086 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087 | --program-suf | --program-su | --program-s)
1088 ac_prev=program_suffix ;;
1089 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1091 program_suffix=$ac_optarg ;;
1093 -program-transform-name | --program-transform-name \
1094 | --program-transform-nam | --program-transform-na \
1095 | --program-transform-n | --program-transform- \
1096 | --program-transform | --program-transfor \
1097 | --program-transfo | --program-transf \
1098 | --program-trans | --program-tran \
1099 | --progr-tra | --program-tr | --program-t)
1100 ac_prev=program_transform_name ;;
1101 -program-transform-name=* | --program-transform-name=* \
1102 | --program-transform-nam=* | --program-transform-na=* \
1103 | --program-transform-n=* | --program-transform-=* \
1104 | --program-transform=* | --program-transfor=* \
1105 | --program-transfo=* | --program-transf=* \
1106 | --program-trans=* | --program-tran=* \
1107 | --progr-tra=* | --program-tr=* | --program-t=*)
1108 program_transform_name=$ac_optarg ;;
1110 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111 ac_prev=pdfdir ;;
1112 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113 pdfdir=$ac_optarg ;;
1115 -psdir | --psdir | --psdi | --psd | --ps)
1116 ac_prev=psdir ;;
1117 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1118 psdir=$ac_optarg ;;
1120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121 | -silent | --silent | --silen | --sile | --sil)
1122 silent=yes ;;
1124 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125 ac_prev=sbindir ;;
1126 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127 | --sbi=* | --sb=*)
1128 sbindir=$ac_optarg ;;
1130 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132 | --sharedst | --shareds | --shared | --share | --shar \
1133 | --sha | --sh)
1134 ac_prev=sharedstatedir ;;
1135 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138 | --sha=* | --sh=*)
1139 sharedstatedir=$ac_optarg ;;
1141 -site | --site | --sit)
1142 ac_prev=site ;;
1143 -site=* | --site=* | --sit=*)
1144 site=$ac_optarg ;;
1146 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147 ac_prev=srcdir ;;
1148 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1149 srcdir=$ac_optarg ;;
1151 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152 | --syscon | --sysco | --sysc | --sys | --sy)
1153 ac_prev=sysconfdir ;;
1154 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1156 sysconfdir=$ac_optarg ;;
1158 -target | --target | --targe | --targ | --tar | --ta | --t)
1159 ac_prev=target_alias ;;
1160 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1161 target_alias=$ac_optarg ;;
1163 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164 verbose=yes ;;
1166 -version | --version | --versio | --versi | --vers | -V)
1167 ac_init_version=: ;;
1169 -with-* | --with-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error $? "invalid package name: $ac_useropt"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1178 "with_$ac_useropt"
1179 "*) ;;
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1182 esac
1183 eval with_$ac_useropt=\$ac_optarg ;;
1185 -without-* | --without-*)
1186 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189 as_fn_error $? "invalid package name: $ac_useropt"
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1194 "with_$ac_useropt"
1195 "*) ;;
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval with_$ac_useropt=no ;;
1201 --x)
1202 # Obsolete; use --with-x.
1203 with_x=yes ;;
1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206 | --x-incl | --x-inc | --x-in | --x-i)
1207 ac_prev=x_includes ;;
1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1210 x_includes=$ac_optarg ;;
1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214 ac_prev=x_libraries ;;
1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1217 x_libraries=$ac_optarg ;;
1219 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1220 Try \`$0 --help' for more information"
1223 *=*)
1224 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225 # Reject names that are not valid shell variable names.
1226 case $ac_envvar in #(
1227 '' | [0-9]* | *[!_$as_cr_alnum]* )
1228 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1229 esac
1230 eval $ac_envvar=\$ac_optarg
1231 export $ac_envvar ;;
1234 # FIXME: should be removed in autoconf 3.0.
1235 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1238 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1241 esac
1242 done
1244 if test -n "$ac_prev"; then
1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1246 as_fn_error $? "missing argument to $ac_option"
1249 if test -n "$ac_unrecognized_opts"; then
1250 case $enable_option_checking in
1251 no) ;;
1252 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1253 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1254 esac
1257 # Check all directory arguments for consistency.
1258 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259 datadir sysconfdir sharedstatedir localstatedir includedir \
1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261 libdir localedir mandir
1263 eval ac_val=\$$ac_var
1264 # Remove trailing slashes.
1265 case $ac_val in
1266 */ )
1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268 eval $ac_var=\$ac_val;;
1269 esac
1270 # Be sure to have absolute directory names.
1271 case $ac_val in
1272 [\\/$]* | ?:[\\/]* ) continue;;
1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274 esac
1275 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1276 done
1278 # There might be people who depend on the old broken behavior: `$host'
1279 # used to hold the argument of --host etc.
1280 # FIXME: To remove some day.
1281 build=$build_alias
1282 host=$host_alias
1283 target=$target_alias
1285 # FIXME: To remove some day.
1286 if test "x$host_alias" != x; then
1287 if test "x$build_alias" = x; then
1288 cross_compiling=maybe
1289 elif test "x$build_alias" != "x$host_alias"; then
1290 cross_compiling=yes
1294 ac_tool_prefix=
1295 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297 test "$silent" = yes && exec 6>/dev/null
1300 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301 ac_ls_di=`ls -di .` &&
1302 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1303 as_fn_error $? "working directory cannot be determined"
1304 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1305 as_fn_error $? "pwd does not report name of working directory"
1308 # Find the source files, if location was not specified.
1309 if test -z "$srcdir"; then
1310 ac_srcdir_defaulted=yes
1311 # Try the directory containing this script, then the parent directory.
1312 ac_confdir=`$as_dirname -- "$as_myself" ||
1313 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1314 X"$as_myself" : 'X\(//\)[^/]' \| \
1315 X"$as_myself" : 'X\(//\)$' \| \
1316 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1317 $as_echo X"$as_myself" |
1318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1319 s//\1/
1322 /^X\(\/\/\)[^/].*/{
1323 s//\1/
1326 /^X\(\/\/\)$/{
1327 s//\1/
1330 /^X\(\/\).*/{
1331 s//\1/
1334 s/.*/./; q'`
1335 srcdir=$ac_confdir
1336 if test ! -r "$srcdir/$ac_unique_file"; then
1337 srcdir=..
1339 else
1340 ac_srcdir_defaulted=no
1342 if test ! -r "$srcdir/$ac_unique_file"; then
1343 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1344 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1346 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1347 ac_abs_confdir=`(
1348 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1349 pwd)`
1350 # When building in place, set srcdir=.
1351 if test "$ac_abs_confdir" = "$ac_pwd"; then
1352 srcdir=.
1354 # Remove unnecessary trailing slashes from srcdir.
1355 # Double slashes in file names in object file debugging info
1356 # mess up M-x gdb in Emacs.
1357 case $srcdir in
1358 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1359 esac
1360 for ac_var in $ac_precious_vars; do
1361 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_env_${ac_var}_value=\$${ac_var}
1363 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1365 done
1368 # Report the --help message.
1370 if test "$ac_init_help" = "long"; then
1371 # Omit some internal or obsolete options to make the list less imposing.
1372 # This message is too long to be a string in the A/UX 3.1 sh.
1373 cat <<_ACEOF
1374 \`configure' configures opcodes 2.42.50 to adapt to many kinds of systems.
1376 Usage: $0 [OPTION]... [VAR=VALUE]...
1378 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1379 VAR=VALUE. See below for descriptions of some of the useful variables.
1381 Defaults for the options are specified in brackets.
1383 Configuration:
1384 -h, --help display this help and exit
1385 --help=short display options specific to this package
1386 --help=recursive display the short help of all the included packages
1387 -V, --version display version information and exit
1388 -q, --quiet, --silent do not print \`checking ...' messages
1389 --cache-file=FILE cache test results in FILE [disabled]
1390 -C, --config-cache alias for \`--cache-file=config.cache'
1391 -n, --no-create do not create output files
1392 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1394 Installation directories:
1395 --prefix=PREFIX install architecture-independent files in PREFIX
1396 [$ac_default_prefix]
1397 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1398 [PREFIX]
1400 By default, \`make install' will install all the files in
1401 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1402 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1403 for instance \`--prefix=\$HOME'.
1405 For better control, use the options below.
1407 Fine tuning of the installation directories:
1408 --bindir=DIR user executables [EPREFIX/bin]
1409 --sbindir=DIR system admin executables [EPREFIX/sbin]
1410 --libexecdir=DIR program executables [EPREFIX/libexec]
1411 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1412 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1413 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1414 --libdir=DIR object code libraries [EPREFIX/lib]
1415 --includedir=DIR C header files [PREFIX/include]
1416 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1417 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1418 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1419 --infodir=DIR info documentation [DATAROOTDIR/info]
1420 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1421 --mandir=DIR man documentation [DATAROOTDIR/man]
1422 --docdir=DIR documentation root [DATAROOTDIR/doc/opcodes]
1423 --htmldir=DIR html documentation [DOCDIR]
1424 --dvidir=DIR dvi documentation [DOCDIR]
1425 --pdfdir=DIR pdf documentation [DOCDIR]
1426 --psdir=DIR ps documentation [DOCDIR]
1427 _ACEOF
1429 cat <<\_ACEOF
1431 Program names:
1432 --program-prefix=PREFIX prepend PREFIX to installed program names
1433 --program-suffix=SUFFIX append SUFFIX to installed program names
1434 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1436 System types:
1437 --build=BUILD configure for building on BUILD [guessed]
1438 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1439 --target=TARGET configure for building compilers for TARGET [HOST]
1440 _ACEOF
1443 if test -n "$ac_init_help"; then
1444 case $ac_init_help in
1445 short | recursive ) echo "Configuration of opcodes 2.42.50:";;
1446 esac
1447 cat <<\_ACEOF
1449 Optional Features:
1450 --disable-option-checking ignore unrecognized --enable/--with options
1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1453 --enable-silent-rules less verbose build output (undo: "make V=1")
1454 --disable-silent-rules verbose build output (undo: "make V=0")
1455 --enable-dependency-tracking
1456 do not reject slow dependency extractors
1457 --disable-dependency-tracking
1458 speeds up one-time build
1459 --enable-shared[=PKGS] build shared libraries [default=no]
1460 --enable-static[=PKGS] build static libraries [default=yes]
1461 --enable-fast-install[=PKGS]
1462 optimize for fast installation [default=yes]
1463 --disable-libtool-lock avoid locking (might break parallel builds)
1464 --enable-checking enable run-time checks
1465 --enable-targets alternative target configurations
1466 --enable-werror treat compile warnings as errors
1467 --enable-build-warnings enable build-time compiler warnings
1468 --enable-maintainer-mode
1469 enable make rules and dependencies not useful (and
1470 sometimes confusing) to the casual installer
1471 --enable-install-libbfd controls installation of libbfd and related headers
1472 --disable-nls do not use Native Language Support
1473 --disable-rpath do not hardcode runtime library paths
1474 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1475 --enable-cgen-maint=dir build cgen generated files
1477 Optional Packages:
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1480 --with-pic try to use only PIC/non-PIC objects [default=use
1481 both]
1482 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1483 --with-gnu-ld assume the C compiler uses GNU ld default=no
1484 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1485 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1486 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1487 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1488 --without-libintl-prefix don't search for libintl in includedir and libdir
1489 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
1491 Some influential environment variables:
1492 CC C compiler command
1493 CFLAGS C compiler flags
1494 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1495 nonstandard directory <lib dir>
1496 LIBS libraries to pass to the linker, e.g. -l<library>
1497 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1498 you have headers in a nonstandard directory <include dir>
1499 CPP C preprocessor
1501 Use these variables to override the choices made by `configure' or to help
1502 it to find libraries and programs with nonstandard names/locations.
1504 Report bugs to the package provider.
1505 _ACEOF
1506 ac_status=$?
1509 if test "$ac_init_help" = "recursive"; then
1510 # If there are subdirs, report their specific --help.
1511 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1512 test -d "$ac_dir" ||
1513 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1514 continue
1515 ac_builddir=.
1517 case "$ac_dir" in
1518 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1521 # A ".." for each directory in $ac_dir_suffix.
1522 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1523 case $ac_top_builddir_sub in
1524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1526 esac ;;
1527 esac
1528 ac_abs_top_builddir=$ac_pwd
1529 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1530 # for backward compatibility:
1531 ac_top_builddir=$ac_top_build_prefix
1533 case $srcdir in
1534 .) # We are building in place.
1535 ac_srcdir=.
1536 ac_top_srcdir=$ac_top_builddir_sub
1537 ac_abs_top_srcdir=$ac_pwd ;;
1538 [\\/]* | ?:[\\/]* ) # Absolute name.
1539 ac_srcdir=$srcdir$ac_dir_suffix;
1540 ac_top_srcdir=$srcdir
1541 ac_abs_top_srcdir=$srcdir ;;
1542 *) # Relative name.
1543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1544 ac_top_srcdir=$ac_top_build_prefix$srcdir
1545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1546 esac
1547 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1549 cd "$ac_dir" || { ac_status=$?; continue; }
1550 # Check for guested configure.
1551 if test -f "$ac_srcdir/configure.gnu"; then
1552 echo &&
1553 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1554 elif test -f "$ac_srcdir/configure"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure" --help=recursive
1557 else
1558 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1559 fi || ac_status=$?
1560 cd "$ac_pwd" || { ac_status=$?; break; }
1561 done
1564 test -n "$ac_init_help" && exit $ac_status
1565 if $ac_init_version; then
1566 cat <<\_ACEOF
1567 opcodes configure 2.42.50
1568 generated by GNU Autoconf 2.69
1570 Copyright (C) 2012 Free Software Foundation, Inc.
1571 This configure script is free software; the Free Software Foundation
1572 gives unlimited permission to copy, distribute and modify it.
1573 _ACEOF
1574 exit
1577 ## ------------------------ ##
1578 ## Autoconf initialization. ##
1579 ## ------------------------ ##
1581 # ac_fn_c_try_compile LINENO
1582 # --------------------------
1583 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_compile ()
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 rm -f conftest.$ac_objext
1588 if { { ac_try="$ac_compile"
1589 case "(($ac_try" in
1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591 *) ac_try_echo=$ac_try;;
1592 esac
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 $as_echo "$ac_try_echo"; } >&5
1595 (eval "$ac_compile") 2>conftest.err
1596 ac_status=$?
1597 if test -s conftest.err; then
1598 grep -v '^ *+' conftest.err >conftest.er1
1599 cat conftest.er1 >&5
1600 mv -f conftest.er1 conftest.err
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; } && {
1604 test -z "$ac_c_werror_flag" ||
1605 test ! -s conftest.err
1606 } && test -s conftest.$ac_objext; then :
1607 ac_retval=0
1608 else
1609 $as_echo "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.$ac_ext >&5
1612 ac_retval=1
1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615 as_fn_set_status $ac_retval
1617 } # ac_fn_c_try_compile
1619 # ac_fn_c_try_cpp LINENO
1620 # ----------------------
1621 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1622 ac_fn_c_try_cpp ()
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 if { { ac_try="$ac_cpp conftest.$ac_ext"
1626 case "(($ac_try" in
1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628 *) ac_try_echo=$ac_try;;
1629 esac
1630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631 $as_echo "$ac_try_echo"; } >&5
1632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1633 ac_status=$?
1634 if test -s conftest.err; then
1635 grep -v '^ *+' conftest.err >conftest.er1
1636 cat conftest.er1 >&5
1637 mv -f conftest.er1 conftest.err
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; } > conftest.i && {
1641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1642 test ! -s conftest.err
1643 }; then :
1644 ac_retval=0
1645 else
1646 $as_echo "$as_me: failed program was:" >&5
1647 sed 's/^/| /' conftest.$ac_ext >&5
1649 ac_retval=1
1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652 as_fn_set_status $ac_retval
1654 } # ac_fn_c_try_cpp
1656 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1657 # -------------------------------------------------------
1658 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1659 # the include files in INCLUDES and setting the cache variable VAR
1660 # accordingly.
1661 ac_fn_c_check_header_mongrel ()
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 if eval \${$3+:} false; then :
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666 $as_echo_n "checking for $2... " >&6; }
1667 if eval \${$3+:} false; then :
1668 $as_echo_n "(cached) " >&6
1670 eval ac_res=\$$3
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1672 $as_echo "$ac_res" >&6; }
1673 else
1674 # Is the header compilable?
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1676 $as_echo_n "checking $2 usability... " >&6; }
1677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1678 /* end confdefs.h. */
1680 #include <$2>
1681 _ACEOF
1682 if ac_fn_c_try_compile "$LINENO"; then :
1683 ac_header_compiler=yes
1684 else
1685 ac_header_compiler=no
1687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1689 $as_echo "$ac_header_compiler" >&6; }
1691 # Is the header present?
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1693 $as_echo_n "checking $2 presence... " >&6; }
1694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1695 /* end confdefs.h. */
1696 #include <$2>
1697 _ACEOF
1698 if ac_fn_c_try_cpp "$LINENO"; then :
1699 ac_header_preproc=yes
1700 else
1701 ac_header_preproc=no
1703 rm -f conftest.err conftest.i conftest.$ac_ext
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1705 $as_echo "$ac_header_preproc" >&6; }
1707 # So? What about this header?
1708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1709 yes:no: )
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1711 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1713 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1715 no:yes:* )
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1717 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1719 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1721 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1723 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1725 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1727 esac
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729 $as_echo_n "checking for $2... " >&6; }
1730 if eval \${$3+:} false; then :
1731 $as_echo_n "(cached) " >&6
1732 else
1733 eval "$3=\$ac_header_compiler"
1735 eval ac_res=\$$3
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1737 $as_echo "$ac_res" >&6; }
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741 } # ac_fn_c_check_header_mongrel
1743 # ac_fn_c_try_run LINENO
1744 # ----------------------
1745 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1746 # that executables *can* be run.
1747 ac_fn_c_try_run ()
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 if { { ac_try="$ac_link"
1751 case "(($ac_try" in
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1754 esac
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_link") 2>&5
1758 ac_status=$?
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1761 { { case "(($ac_try" in
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1764 esac
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_try") 2>&5
1768 ac_status=$?
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; }; }; then :
1771 ac_retval=0
1772 else
1773 $as_echo "$as_me: program exited with status $ac_status" >&5
1774 $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1777 ac_retval=$ac_status
1779 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781 as_fn_set_status $ac_retval
1783 } # ac_fn_c_try_run
1785 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1786 # -------------------------------------------------------
1787 # Tests whether HEADER exists and can be compiled using the include files in
1788 # INCLUDES, setting the cache variable VAR accordingly.
1789 ac_fn_c_check_header_compile ()
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793 $as_echo_n "checking for $2... " >&6; }
1794 if eval \${$3+:} false; then :
1795 $as_echo_n "(cached) " >&6
1796 else
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798 /* end confdefs.h. */
1800 #include <$2>
1801 _ACEOF
1802 if ac_fn_c_try_compile "$LINENO"; then :
1803 eval "$3=yes"
1804 else
1805 eval "$3=no"
1807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1809 eval ac_res=\$$3
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811 $as_echo "$ac_res" >&6; }
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814 } # ac_fn_c_check_header_compile
1816 # ac_fn_c_try_link LINENO
1817 # -----------------------
1818 # Try to link conftest.$ac_ext, and return whether this succeeded.
1819 ac_fn_c_try_link ()
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 rm -f conftest.$ac_objext conftest$ac_exeext
1823 if { { ac_try="$ac_link"
1824 case "(($ac_try" in
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1827 esac
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_link") 2>conftest.err
1831 ac_status=$?
1832 if test -s conftest.err; then
1833 grep -v '^ *+' conftest.err >conftest.er1
1834 cat conftest.er1 >&5
1835 mv -f conftest.er1 conftest.err
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && {
1839 test -z "$ac_c_werror_flag" ||
1840 test ! -s conftest.err
1841 } && test -s conftest$ac_exeext && {
1842 test "$cross_compiling" = yes ||
1843 test -x conftest$ac_exeext
1844 }; then :
1845 ac_retval=0
1846 else
1847 $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1850 ac_retval=1
1852 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1853 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1854 # interfere with the next link command; also delete a directory that is
1855 # left behind by Apple's compiler. We do this before executing the actions.
1856 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858 as_fn_set_status $ac_retval
1860 } # ac_fn_c_try_link
1862 # ac_fn_c_check_func LINENO FUNC VAR
1863 # ----------------------------------
1864 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1865 ac_fn_c_check_func ()
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869 $as_echo_n "checking for $2... " >&6; }
1870 if eval \${$3+:} false; then :
1871 $as_echo_n "(cached) " >&6
1872 else
1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h. */
1875 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1877 #define $2 innocuous_$2
1879 /* System header to define __stub macros and hopefully few prototypes,
1880 which can conflict with char $2 (); below.
1881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1882 <limits.h> exists even on freestanding compilers. */
1884 #ifdef __STDC__
1885 # include <limits.h>
1886 #else
1887 # include <assert.h>
1888 #endif
1890 #undef $2
1892 /* Override any GCC internal prototype to avoid an error.
1893 Use char because int might match the return type of a GCC
1894 builtin and then its argument prototype would still apply. */
1895 #ifdef __cplusplus
1896 extern "C"
1897 #endif
1898 char $2 ();
1899 /* The GNU C library defines this for functions which it implements
1900 to always fail with ENOSYS. Some functions are actually named
1901 something starting with __ and the normal name is an alias. */
1902 #if defined __stub_$2 || defined __stub___$2
1903 choke me
1904 #endif
1907 main ()
1909 return $2 ();
1911 return 0;
1913 _ACEOF
1914 if ac_fn_c_try_link "$LINENO"; then :
1915 eval "$3=yes"
1916 else
1917 eval "$3=no"
1919 rm -f core conftest.err conftest.$ac_objext \
1920 conftest$ac_exeext conftest.$ac_ext
1922 eval ac_res=\$$3
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 $as_echo "$ac_res" >&6; }
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 } # ac_fn_c_check_func
1929 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1930 # --------------------------------------------
1931 # Tries to find the compile-time value of EXPR in a program that includes
1932 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1933 # computed
1934 ac_fn_c_compute_int ()
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 if test "$cross_compiling" = yes; then
1938 # Depending upon the size, compute the lo and hi bounds.
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1943 main ()
1945 static int test_array [1 - 2 * !(($2) >= 0)];
1946 test_array [0] = 0;
1947 return test_array [0];
1950 return 0;
1952 _ACEOF
1953 if ac_fn_c_try_compile "$LINENO"; then :
1954 ac_lo=0 ac_mid=0
1955 while :; do
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1960 main ()
1962 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1963 test_array [0] = 0;
1964 return test_array [0];
1967 return 0;
1969 _ACEOF
1970 if ac_fn_c_try_compile "$LINENO"; then :
1971 ac_hi=$ac_mid; break
1972 else
1973 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1974 if test $ac_lo -le $ac_mid; then
1975 ac_lo= ac_hi=
1976 break
1978 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981 done
1982 else
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h. */
1987 main ()
1989 static int test_array [1 - 2 * !(($2) < 0)];
1990 test_array [0] = 0;
1991 return test_array [0];
1994 return 0;
1996 _ACEOF
1997 if ac_fn_c_try_compile "$LINENO"; then :
1998 ac_hi=-1 ac_mid=-1
1999 while :; do
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2004 main ()
2006 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2007 test_array [0] = 0;
2008 return test_array [0];
2011 return 0;
2013 _ACEOF
2014 if ac_fn_c_try_compile "$LINENO"; then :
2015 ac_lo=$ac_mid; break
2016 else
2017 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2018 if test $ac_mid -le $ac_hi; then
2019 ac_lo= ac_hi=
2020 break
2022 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025 done
2026 else
2027 ac_lo= ac_hi=
2029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032 # Binary search between lo and hi bounds.
2033 while test "x$ac_lo" != "x$ac_hi"; do
2034 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h. */
2039 main ()
2041 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2042 test_array [0] = 0;
2043 return test_array [0];
2046 return 0;
2048 _ACEOF
2049 if ac_fn_c_try_compile "$LINENO"; then :
2050 ac_hi=$ac_mid
2051 else
2052 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055 done
2056 case $ac_lo in #((
2057 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2058 '') ac_retval=1 ;;
2059 esac
2060 else
2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h. */
2064 static long int longval () { return $2; }
2065 static unsigned long int ulongval () { return $2; }
2066 #include <stdio.h>
2067 #include <stdlib.h>
2069 main ()
2072 FILE *f = fopen ("conftest.val", "w");
2073 if (! f)
2074 return 1;
2075 if (($2) < 0)
2077 long int i = longval ();
2078 if (i != ($2))
2079 return 1;
2080 fprintf (f, "%ld", i);
2082 else
2084 unsigned long int i = ulongval ();
2085 if (i != ($2))
2086 return 1;
2087 fprintf (f, "%lu", i);
2089 /* Do not output a trailing newline, as this causes \r\n confusion
2090 on some platforms. */
2091 return ferror (f) || fclose (f) != 0;
2094 return 0;
2096 _ACEOF
2097 if ac_fn_c_try_run "$LINENO"; then :
2098 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2099 else
2100 ac_retval=1
2102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2103 conftest.$ac_objext conftest.beam conftest.$ac_ext
2104 rm -f conftest.val
2107 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2108 as_fn_set_status $ac_retval
2110 } # ac_fn_c_compute_int
2112 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2113 # ---------------------------------------------
2114 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2115 # accordingly.
2116 ac_fn_c_check_decl ()
2118 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2119 as_decl_name=`echo $2|sed 's/ *(.*//'`
2120 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2122 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2123 if eval \${$3+:} false; then :
2124 $as_echo_n "(cached) " >&6
2125 else
2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127 /* end confdefs.h. */
2130 main ()
2132 #ifndef $as_decl_name
2133 #ifdef __cplusplus
2134 (void) $as_decl_use;
2135 #else
2136 (void) $as_decl_name;
2137 #endif
2138 #endif
2141 return 0;
2143 _ACEOF
2144 if ac_fn_c_try_compile "$LINENO"; then :
2145 eval "$3=yes"
2146 else
2147 eval "$3=no"
2149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151 eval ac_res=\$$3
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2153 $as_echo "$ac_res" >&6; }
2154 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2156 } # ac_fn_c_check_decl
2157 cat >config.log <<_ACEOF
2158 This file contains any messages produced by compilers while
2159 running configure, to aid debugging if configure makes a mistake.
2161 It was created by opcodes $as_me 2.42.50, which was
2162 generated by GNU Autoconf 2.69. Invocation command line was
2164 $ $0 $@
2166 _ACEOF
2167 exec 5>>config.log
2169 cat <<_ASUNAME
2170 ## --------- ##
2171 ## Platform. ##
2172 ## --------- ##
2174 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2175 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2176 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2177 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2178 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2180 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2181 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2183 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2184 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2185 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2186 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2187 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2188 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2189 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2191 _ASUNAME
2193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194 for as_dir in $PATH
2196 IFS=$as_save_IFS
2197 test -z "$as_dir" && as_dir=.
2198 $as_echo "PATH: $as_dir"
2199 done
2200 IFS=$as_save_IFS
2202 } >&5
2204 cat >&5 <<_ACEOF
2207 ## ----------- ##
2208 ## Core tests. ##
2209 ## ----------- ##
2211 _ACEOF
2214 # Keep a trace of the command line.
2215 # Strip out --no-create and --no-recursion so they do not pile up.
2216 # Strip out --silent because we don't want to record it for future runs.
2217 # Also quote any args containing shell meta-characters.
2218 # Make two passes to allow for proper duplicate-argument suppression.
2219 ac_configure_args=
2220 ac_configure_args0=
2221 ac_configure_args1=
2222 ac_must_keep_next=false
2223 for ac_pass in 1 2
2225 for ac_arg
2227 case $ac_arg in
2228 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2230 | -silent | --silent | --silen | --sile | --sil)
2231 continue ;;
2232 *\'*)
2233 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2234 esac
2235 case $ac_pass in
2236 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2238 as_fn_append ac_configure_args1 " '$ac_arg'"
2239 if test $ac_must_keep_next = true; then
2240 ac_must_keep_next=false # Got value, back to normal.
2241 else
2242 case $ac_arg in
2243 *=* | --config-cache | -C | -disable-* | --disable-* \
2244 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2245 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2246 | -with-* | --with-* | -without-* | --without-* | --x)
2247 case "$ac_configure_args0 " in
2248 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2249 esac
2251 -* ) ac_must_keep_next=true ;;
2252 esac
2254 as_fn_append ac_configure_args " '$ac_arg'"
2256 esac
2257 done
2258 done
2259 { ac_configure_args0=; unset ac_configure_args0;}
2260 { ac_configure_args1=; unset ac_configure_args1;}
2262 # When interrupted or exit'd, cleanup temporary files, and complete
2263 # config.log. We remove comments because anyway the quotes in there
2264 # would cause problems or look ugly.
2265 # WARNING: Use '\'' to represent an apostrophe within the trap.
2266 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2267 trap 'exit_status=$?
2268 # Save into config.log some information that might help in debugging.
2270 echo
2272 $as_echo "## ---------------- ##
2273 ## Cache variables. ##
2274 ## ---------------- ##"
2275 echo
2276 # The following way of writing the cache mishandles newlines in values,
2278 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2279 eval ac_val=\$$ac_var
2280 case $ac_val in #(
2281 *${as_nl}*)
2282 case $ac_var in #(
2283 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2284 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2285 esac
2286 case $ac_var in #(
2287 _ | IFS | as_nl) ;; #(
2288 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2289 *) { eval $ac_var=; unset $ac_var;} ;;
2290 esac ;;
2291 esac
2292 done
2293 (set) 2>&1 |
2294 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2295 *${as_nl}ac_space=\ *)
2296 sed -n \
2297 "s/'\''/'\''\\\\'\'''\''/g;
2298 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2299 ;; #(
2301 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2303 esac |
2304 sort
2306 echo
2308 $as_echo "## ----------------- ##
2309 ## Output variables. ##
2310 ## ----------------- ##"
2311 echo
2312 for ac_var in $ac_subst_vars
2314 eval ac_val=\$$ac_var
2315 case $ac_val in
2316 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2317 esac
2318 $as_echo "$ac_var='\''$ac_val'\''"
2319 done | sort
2320 echo
2322 if test -n "$ac_subst_files"; then
2323 $as_echo "## ------------------- ##
2324 ## File substitutions. ##
2325 ## ------------------- ##"
2326 echo
2327 for ac_var in $ac_subst_files
2329 eval ac_val=\$$ac_var
2330 case $ac_val in
2331 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2332 esac
2333 $as_echo "$ac_var='\''$ac_val'\''"
2334 done | sort
2335 echo
2338 if test -s confdefs.h; then
2339 $as_echo "## ----------- ##
2340 ## confdefs.h. ##
2341 ## ----------- ##"
2342 echo
2343 cat confdefs.h
2344 echo
2346 test "$ac_signal" != 0 &&
2347 $as_echo "$as_me: caught signal $ac_signal"
2348 $as_echo "$as_me: exit $exit_status"
2349 } >&5
2350 rm -f core *.core core.conftest.* &&
2351 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2352 exit $exit_status
2354 for ac_signal in 1 2 13 15; do
2355 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2356 done
2357 ac_signal=0
2359 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2360 rm -f -r conftest* confdefs.h
2362 $as_echo "/* confdefs.h */" > confdefs.h
2364 # Predefined preprocessor variables.
2366 cat >>confdefs.h <<_ACEOF
2367 #define PACKAGE_NAME "$PACKAGE_NAME"
2368 _ACEOF
2370 cat >>confdefs.h <<_ACEOF
2371 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2372 _ACEOF
2374 cat >>confdefs.h <<_ACEOF
2375 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2376 _ACEOF
2378 cat >>confdefs.h <<_ACEOF
2379 #define PACKAGE_STRING "$PACKAGE_STRING"
2380 _ACEOF
2382 cat >>confdefs.h <<_ACEOF
2383 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2384 _ACEOF
2386 cat >>confdefs.h <<_ACEOF
2387 #define PACKAGE_URL "$PACKAGE_URL"
2388 _ACEOF
2391 # Let the site file select an alternate cache file if it wants to.
2392 # Prefer an explicitly selected file to automatically selected ones.
2393 ac_site_file1=NONE
2394 ac_site_file2=NONE
2395 if test -n "$CONFIG_SITE"; then
2396 # We do not want a PATH search for config.site.
2397 case $CONFIG_SITE in #((
2398 -*) ac_site_file1=./$CONFIG_SITE;;
2399 */*) ac_site_file1=$CONFIG_SITE;;
2400 *) ac_site_file1=./$CONFIG_SITE;;
2401 esac
2402 elif test "x$prefix" != xNONE; then
2403 ac_site_file1=$prefix/share/config.site
2404 ac_site_file2=$prefix/etc/config.site
2405 else
2406 ac_site_file1=$ac_default_prefix/share/config.site
2407 ac_site_file2=$ac_default_prefix/etc/config.site
2409 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2411 test "x$ac_site_file" = xNONE && continue
2412 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2414 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2415 sed 's/^/| /' "$ac_site_file" >&5
2416 . "$ac_site_file" \
2417 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2419 as_fn_error $? "failed to load site script $ac_site_file
2420 See \`config.log' for more details" "$LINENO" 5; }
2422 done
2424 if test -r "$cache_file"; then
2425 # Some versions of bash will fail to source /dev/null (special files
2426 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2427 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2429 $as_echo "$as_me: loading cache $cache_file" >&6;}
2430 case $cache_file in
2431 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2432 *) . "./$cache_file";;
2433 esac
2435 else
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2437 $as_echo "$as_me: creating cache $cache_file" >&6;}
2438 >$cache_file
2441 gt_needs="$gt_needs "
2442 # Check that the precious variables saved in the cache have kept the same
2443 # value.
2444 ac_cache_corrupted=false
2445 for ac_var in $ac_precious_vars; do
2446 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2447 eval ac_new_set=\$ac_env_${ac_var}_set
2448 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2449 eval ac_new_val=\$ac_env_${ac_var}_value
2450 case $ac_old_set,$ac_new_set in
2451 set,)
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2453 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2454 ac_cache_corrupted=: ;;
2455 ,set)
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2457 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2458 ac_cache_corrupted=: ;;
2459 ,);;
2461 if test "x$ac_old_val" != "x$ac_new_val"; then
2462 # differences in whitespace do not lead to failure.
2463 ac_old_val_w=`echo x $ac_old_val`
2464 ac_new_val_w=`echo x $ac_new_val`
2465 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2467 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2468 ac_cache_corrupted=:
2469 else
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2471 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2472 eval $ac_var=\$ac_old_val
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2475 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2477 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2478 fi;;
2479 esac
2480 # Pass precious variables to config.status.
2481 if test "$ac_new_set" = set; then
2482 case $ac_new_val in
2483 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2484 *) ac_arg=$ac_var=$ac_new_val ;;
2485 esac
2486 case " $ac_configure_args " in
2487 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2488 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2489 esac
2491 done
2492 if $ac_cache_corrupted; then
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2496 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2497 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2499 ## -------------------- ##
2500 ## Main body of script. ##
2501 ## -------------------- ##
2503 ac_ext=c
2504 ac_cpp='$CPP $CPPFLAGS'
2505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2515 ac_aux_dir=
2516 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2517 if test -f "$ac_dir/install-sh"; then
2518 ac_aux_dir=$ac_dir
2519 ac_install_sh="$ac_aux_dir/install-sh -c"
2520 break
2521 elif test -f "$ac_dir/install.sh"; then
2522 ac_aux_dir=$ac_dir
2523 ac_install_sh="$ac_aux_dir/install.sh -c"
2524 break
2525 elif test -f "$ac_dir/shtool"; then
2526 ac_aux_dir=$ac_dir
2527 ac_install_sh="$ac_aux_dir/shtool install -c"
2528 break
2530 done
2531 if test -z "$ac_aux_dir"; then
2532 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2535 # These three variables are undocumented and unsupported,
2536 # and are intended to be withdrawn in a future Autoconf release.
2537 # They can cause serious problems if a builder's source tree is in a directory
2538 # whose full name contains unusual characters.
2539 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2540 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2541 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2544 # Make sure we can run config.sub.
2545 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2546 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2549 $as_echo_n "checking build system type... " >&6; }
2550 if ${ac_cv_build+:} false; then :
2551 $as_echo_n "(cached) " >&6
2552 else
2553 ac_build_alias=$build_alias
2554 test "x$ac_build_alias" = x &&
2555 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2556 test "x$ac_build_alias" = x &&
2557 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2558 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2559 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2563 $as_echo "$ac_cv_build" >&6; }
2564 case $ac_cv_build in
2565 *-*-*) ;;
2566 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2567 esac
2568 build=$ac_cv_build
2569 ac_save_IFS=$IFS; IFS='-'
2570 set x $ac_cv_build
2571 shift
2572 build_cpu=$1
2573 build_vendor=$2
2574 shift; shift
2575 # Remember, the first character of IFS is used to create $*,
2576 # except with old shells:
2577 build_os=$*
2578 IFS=$ac_save_IFS
2579 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2583 $as_echo_n "checking host system type... " >&6; }
2584 if ${ac_cv_host+:} false; then :
2585 $as_echo_n "(cached) " >&6
2586 else
2587 if test "x$host_alias" = x; then
2588 ac_cv_host=$ac_cv_build
2589 else
2590 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2591 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2596 $as_echo "$ac_cv_host" >&6; }
2597 case $ac_cv_host in
2598 *-*-*) ;;
2599 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2600 esac
2601 host=$ac_cv_host
2602 ac_save_IFS=$IFS; IFS='-'
2603 set x $ac_cv_host
2604 shift
2605 host_cpu=$1
2606 host_vendor=$2
2607 shift; shift
2608 # Remember, the first character of IFS is used to create $*,
2609 # except with old shells:
2610 host_os=$*
2611 IFS=$ac_save_IFS
2612 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2616 $as_echo_n "checking target system type... " >&6; }
2617 if ${ac_cv_target+:} false; then :
2618 $as_echo_n "(cached) " >&6
2619 else
2620 if test "x$target_alias" = x; then
2621 ac_cv_target=$ac_cv_host
2622 else
2623 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2624 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2629 $as_echo "$ac_cv_target" >&6; }
2630 case $ac_cv_target in
2631 *-*-*) ;;
2632 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2633 esac
2634 target=$ac_cv_target
2635 ac_save_IFS=$IFS; IFS='-'
2636 set x $ac_cv_target
2637 shift
2638 target_cpu=$1
2639 target_vendor=$2
2640 shift; shift
2641 # Remember, the first character of IFS is used to create $*,
2642 # except with old shells:
2643 target_os=$*
2644 IFS=$ac_save_IFS
2645 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2648 # The aliases save the names the user supplied, while $host etc.
2649 # will get canonicalized.
2650 test -n "$target_alias" &&
2651 test "$program_prefix$program_suffix$program_transform_name" = \
2652 NONENONEs,x,x, &&
2653 program_prefix=${target_alias}-
2655 am__api_version='1.15'
2657 # Find a good install program. We prefer a C program (faster),
2658 # so one script is as good as another. But avoid the broken or
2659 # incompatible versions:
2660 # SysV /etc/install, /usr/sbin/install
2661 # SunOS /usr/etc/install
2662 # IRIX /sbin/install
2663 # AIX /bin/install
2664 # AmigaOS /C/install, which installs bootblocks on floppy discs
2665 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2666 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2667 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2668 # OS/2's system install, which has a completely different semantic
2669 # ./install, which can be erroneously created by make from ./install.sh.
2670 # Reject install programs that cannot install multiple files.
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2672 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2673 if test -z "$INSTALL"; then
2674 if ${ac_cv_path_install+:} false; then :
2675 $as_echo_n "(cached) " >&6
2676 else
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 for as_dir in $PATH
2680 IFS=$as_save_IFS
2681 test -z "$as_dir" && as_dir=.
2682 # Account for people who put trailing slashes in PATH elements.
2683 case $as_dir/ in #((
2684 ./ | .// | /[cC]/* | \
2685 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2686 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2687 /usr/ucb/* ) ;;
2689 # OSF1 and SCO ODT 3.0 have their own names for install.
2690 # Don't use installbsd from OSF since it installs stuff as root
2691 # by default.
2692 for ac_prog in ginstall scoinst install; do
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2695 if test $ac_prog = install &&
2696 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2697 # AIX install. It has an incompatible calling convention.
2699 elif test $ac_prog = install &&
2700 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2701 # program-specific install script used by HP pwplus--don't use.
2703 else
2704 rm -rf conftest.one conftest.two conftest.dir
2705 echo one > conftest.one
2706 echo two > conftest.two
2707 mkdir conftest.dir
2708 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2709 test -s conftest.one && test -s conftest.two &&
2710 test -s conftest.dir/conftest.one &&
2711 test -s conftest.dir/conftest.two
2712 then
2713 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2714 break 3
2718 done
2719 done
2721 esac
2723 done
2724 IFS=$as_save_IFS
2726 rm -rf conftest.one conftest.two conftest.dir
2729 if test "${ac_cv_path_install+set}" = set; then
2730 INSTALL=$ac_cv_path_install
2731 else
2732 # As a last resort, use the slow shell script. Don't cache a
2733 # value for INSTALL within a source directory, because that will
2734 # break other packages using the cache if that directory is
2735 # removed, or if the value is a relative name.
2736 INSTALL=$ac_install_sh
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2740 $as_echo "$INSTALL" >&6; }
2742 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2743 # It thinks the first close brace ends the variable substitution.
2744 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2746 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2748 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2751 $as_echo_n "checking whether build environment is sane... " >&6; }
2752 # Reject unsafe characters in $srcdir or the absolute working directory
2753 # name. Accept space and tab only in the latter.
2754 am_lf='
2756 case `pwd` in
2757 *[\\\"\#\$\&\'\`$am_lf]*)
2758 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2759 esac
2760 case $srcdir in
2761 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2762 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2763 esac
2765 # Do 'set' in a subshell so we don't clobber the current shell's
2766 # arguments. Must try -L first in case configure is actually a
2767 # symlink; some systems play weird games with the mod time of symlinks
2768 # (eg FreeBSD returns the mod time of the symlink's containing
2769 # directory).
2770 if (
2771 am_has_slept=no
2772 for am_try in 1 2; do
2773 echo "timestamp, slept: $am_has_slept" > conftest.file
2774 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2775 if test "$*" = "X"; then
2776 # -L didn't work.
2777 set X `ls -t "$srcdir/configure" conftest.file`
2779 if test "$*" != "X $srcdir/configure conftest.file" \
2780 && test "$*" != "X conftest.file $srcdir/configure"; then
2782 # If neither matched, then we have a broken ls. This can happen
2783 # if, for instance, CONFIG_SHELL is bash and it inherits a
2784 # broken ls alias from the environment. This has actually
2785 # happened. Such a system could not be considered "sane".
2786 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2787 alias in your environment" "$LINENO" 5
2789 if test "$2" = conftest.file || test $am_try -eq 2; then
2790 break
2792 # Just in case.
2793 sleep 1
2794 am_has_slept=yes
2795 done
2796 test "$2" = conftest.file
2798 then
2799 # Ok.
2801 else
2802 as_fn_error $? "newly created file is older than distributed files!
2803 Check your system clock" "$LINENO" 5
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2806 $as_echo "yes" >&6; }
2807 # If we didn't sleep, we still need to ensure time stamps of config.status and
2808 # generated files are strictly newer.
2809 am_sleep_pid=
2810 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2811 ( sleep 1 ) &
2812 am_sleep_pid=$!
2815 rm -f conftest.file
2817 test "$program_prefix" != NONE &&
2818 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2819 # Use a double $ so make ignores it.
2820 test "$program_suffix" != NONE &&
2821 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2822 # Double any \ or $.
2823 # By default was `s,x,x', remove it if useless.
2824 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2825 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2827 # Expand $ac_aux_dir to an absolute path.
2828 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2830 if test x"${MISSING+set}" != xset; then
2831 case $am_aux_dir in
2832 *\ * | *\ *)
2833 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2835 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2836 esac
2838 # Use eval to expand $SHELL
2839 if eval "$MISSING --is-lightweight"; then
2840 am_missing_run="$MISSING "
2841 else
2842 am_missing_run=
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2844 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2847 if test x"${install_sh+set}" != xset; then
2848 case $am_aux_dir in
2849 *\ * | *\ *)
2850 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2852 install_sh="\${SHELL} $am_aux_dir/install-sh"
2853 esac
2856 # Installed binaries are usually stripped using 'strip' when the user
2857 # run "make install-strip". However 'strip' might not be the right
2858 # tool to use in cross-compilation environments, therefore Automake
2859 # will honor the 'STRIP' environment variable to overrule this program.
2860 if test "$cross_compiling" != no; then
2861 if test -n "$ac_tool_prefix"; then
2862 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2863 set dummy ${ac_tool_prefix}strip; ac_word=$2
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865 $as_echo_n "checking for $ac_word... " >&6; }
2866 if ${ac_cv_prog_STRIP+:} false; then :
2867 $as_echo_n "(cached) " >&6
2868 else
2869 if test -n "$STRIP"; then
2870 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2871 else
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 for as_dir in $PATH
2875 IFS=$as_save_IFS
2876 test -z "$as_dir" && as_dir=.
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2879 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 break 2
2883 done
2884 done
2885 IFS=$as_save_IFS
2889 STRIP=$ac_cv_prog_STRIP
2890 if test -n "$STRIP"; then
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2892 $as_echo "$STRIP" >&6; }
2893 else
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895 $as_echo "no" >&6; }
2900 if test -z "$ac_cv_prog_STRIP"; then
2901 ac_ct_STRIP=$STRIP
2902 # Extract the first word of "strip", so it can be a program name with args.
2903 set dummy strip; ac_word=$2
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2905 $as_echo_n "checking for $ac_word... " >&6; }
2906 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2907 $as_echo_n "(cached) " >&6
2908 else
2909 if test -n "$ac_ct_STRIP"; then
2910 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2911 else
2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 for as_dir in $PATH
2915 IFS=$as_save_IFS
2916 test -z "$as_dir" && as_dir=.
2917 for ac_exec_ext in '' $ac_executable_extensions; do
2918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2919 ac_cv_prog_ac_ct_STRIP="strip"
2920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2921 break 2
2923 done
2924 done
2925 IFS=$as_save_IFS
2929 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2930 if test -n "$ac_ct_STRIP"; then
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2932 $as_echo "$ac_ct_STRIP" >&6; }
2933 else
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935 $as_echo "no" >&6; }
2938 if test "x$ac_ct_STRIP" = x; then
2939 STRIP=":"
2940 else
2941 case $cross_compiling:$ac_tool_warned in
2942 yes:)
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2945 ac_tool_warned=yes ;;
2946 esac
2947 STRIP=$ac_ct_STRIP
2949 else
2950 STRIP="$ac_cv_prog_STRIP"
2954 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2957 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2958 if test -z "$MKDIR_P"; then
2959 if ${ac_cv_path_mkdir+:} false; then :
2960 $as_echo_n "(cached) " >&6
2961 else
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2965 IFS=$as_save_IFS
2966 test -z "$as_dir" && as_dir=.
2967 for ac_prog in mkdir gmkdir; do
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2969 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2970 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2971 'mkdir (GNU coreutils) '* | \
2972 'mkdir (coreutils) '* | \
2973 'mkdir (fileutils) '4.1*)
2974 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2975 break 3;;
2976 esac
2977 done
2978 done
2979 done
2980 IFS=$as_save_IFS
2984 test -d ./--version && rmdir ./--version
2985 if test "${ac_cv_path_mkdir+set}" = set; then
2986 MKDIR_P="$ac_cv_path_mkdir -p"
2987 else
2988 # As a last resort, use the slow shell script. Don't cache a
2989 # value for MKDIR_P within a source directory, because that will
2990 # break other packages using the cache if that directory is
2991 # removed, or if the value is a relative name.
2992 MKDIR_P="$ac_install_sh -d"
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2996 $as_echo "$MKDIR_P" >&6; }
2998 for ac_prog in gawk mawk nawk awk
3000 # Extract the first word of "$ac_prog", so it can be a program name with args.
3001 set dummy $ac_prog; ac_word=$2
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003 $as_echo_n "checking for $ac_word... " >&6; }
3004 if ${ac_cv_prog_AWK+:} false; then :
3005 $as_echo_n "(cached) " >&6
3006 else
3007 if test -n "$AWK"; then
3008 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3009 else
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011 for as_dir in $PATH
3013 IFS=$as_save_IFS
3014 test -z "$as_dir" && as_dir=.
3015 for ac_exec_ext in '' $ac_executable_extensions; do
3016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3017 ac_cv_prog_AWK="$ac_prog"
3018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019 break 2
3021 done
3022 done
3023 IFS=$as_save_IFS
3027 AWK=$ac_cv_prog_AWK
3028 if test -n "$AWK"; then
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3030 $as_echo "$AWK" >&6; }
3031 else
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033 $as_echo "no" >&6; }
3037 test -n "$AWK" && break
3038 done
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3041 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3042 set x ${MAKE-make}
3043 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3044 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3045 $as_echo_n "(cached) " >&6
3046 else
3047 cat >conftest.make <<\_ACEOF
3048 SHELL = /bin/sh
3049 all:
3050 @echo '@@@%%%=$(MAKE)=@@@%%%'
3051 _ACEOF
3052 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3053 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3054 *@@@%%%=?*=@@@%%%*)
3055 eval ac_cv_prog_make_${ac_make}_set=yes;;
3057 eval ac_cv_prog_make_${ac_make}_set=no;;
3058 esac
3059 rm -f conftest.make
3061 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3063 $as_echo "yes" >&6; }
3064 SET_MAKE=
3065 else
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067 $as_echo "no" >&6; }
3068 SET_MAKE="MAKE=${MAKE-make}"
3071 rm -rf .tst 2>/dev/null
3072 mkdir .tst 2>/dev/null
3073 if test -d .tst; then
3074 am__leading_dot=.
3075 else
3076 am__leading_dot=_
3078 rmdir .tst 2>/dev/null
3080 # Check whether --enable-silent-rules was given.
3081 if test "${enable_silent_rules+set}" = set; then :
3082 enableval=$enable_silent_rules;
3085 case $enable_silent_rules in # (((
3086 yes) AM_DEFAULT_VERBOSITY=0;;
3087 no) AM_DEFAULT_VERBOSITY=1;;
3088 *) AM_DEFAULT_VERBOSITY=1;;
3089 esac
3090 am_make=${MAKE-make}
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3092 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3093 if ${am_cv_make_support_nested_variables+:} false; then :
3094 $as_echo_n "(cached) " >&6
3095 else
3096 if $as_echo 'TRUE=$(BAR$(V))
3097 BAR0=false
3098 BAR1=true
3100 am__doit:
3101 @$(TRUE)
3102 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3103 am_cv_make_support_nested_variables=yes
3104 else
3105 am_cv_make_support_nested_variables=no
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3109 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3110 if test $am_cv_make_support_nested_variables = yes; then
3111 AM_V='$(V)'
3112 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3113 else
3114 AM_V=$AM_DEFAULT_VERBOSITY
3115 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3117 AM_BACKSLASH='\'
3119 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3120 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3121 # is not polluted with repeated "-I."
3122 am__isrc=' -I$(srcdir)'
3123 # test to see if srcdir already configured
3124 if test -f $srcdir/config.status; then
3125 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3129 # test whether we have cygpath
3130 if test -z "$CYGPATH_W"; then
3131 if (cygpath --version) >/dev/null 2>/dev/null; then
3132 CYGPATH_W='cygpath -w'
3133 else
3134 CYGPATH_W=echo
3139 # Define the identity of the package.
3140 PACKAGE='opcodes'
3141 VERSION='2.42.50'
3144 cat >>confdefs.h <<_ACEOF
3145 #define PACKAGE "$PACKAGE"
3146 _ACEOF
3149 cat >>confdefs.h <<_ACEOF
3150 #define VERSION "$VERSION"
3151 _ACEOF
3153 # Some tools Automake needs.
3155 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3158 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3161 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3164 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3167 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3169 # For better backward compatibility. To be removed once Automake 1.9.x
3170 # dies out for good. For more background, see:
3171 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3172 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3173 mkdir_p='$(MKDIR_P)'
3175 # We need awk for the "check" target (and possibly the TAP driver). The
3176 # system "awk" is bad on some platforms.
3177 # Always define AMTAR for backward compatibility. Yes, it's still used
3178 # in the wild :-( We should find a proper way to deprecate it ...
3179 AMTAR='$${TAR-tar}'
3182 # We'll loop over all known methods to create a tar archive until one works.
3183 _am_tools='gnutar pax cpio none'
3185 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3192 # POSIX will say in a future version that running "rm -f" with no argument
3193 # is OK; and we want to be able to make that assumption in our Makefile
3194 # recipes. So use an aggressive probe to check that the usage we want is
3195 # actually supported "in the wild" to an acceptable degree.
3196 # See automake bug#10828.
3197 # To make any issue more visible, cause the running configure to be aborted
3198 # by default if the 'rm' program in use doesn't match our expectations; the
3199 # user can still override this though.
3200 if rm -f && rm -fr && rm -rf; then : OK; else
3201 cat >&2 <<'END'
3202 Oops!
3204 Your 'rm' program seems unable to run without file operands specified
3205 on the command line, even when the '-f' option is present. This is contrary
3206 to the behaviour of most rm programs out there, and not conforming with
3207 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3209 Please tell bug-automake@gnu.org about your system, including the value
3210 of your $PATH and any error possibly output before this message. This
3211 can help us improve future automake versions.
3214 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3215 echo 'Configuration will proceed anyway, since you have set the' >&2
3216 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3217 echo >&2
3218 else
3219 cat >&2 <<'END'
3220 Aborting the configuration process, to ensure you take notice of the issue.
3222 You can download and install GNU coreutils to get an 'rm' implementation
3223 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3225 If you want to complete the configuration process using your problematic
3226 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3227 to "yes", and re-run configure.
3230 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3234 # Check whether --enable-silent-rules was given.
3235 if test "${enable_silent_rules+set}" = set; then :
3236 enableval=$enable_silent_rules;
3239 case $enable_silent_rules in # (((
3240 yes) AM_DEFAULT_VERBOSITY=0;;
3241 no) AM_DEFAULT_VERBOSITY=1;;
3242 *) AM_DEFAULT_VERBOSITY=0;;
3243 esac
3244 am_make=${MAKE-make}
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3246 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3247 if ${am_cv_make_support_nested_variables+:} false; then :
3248 $as_echo_n "(cached) " >&6
3249 else
3250 if $as_echo 'TRUE=$(BAR$(V))
3251 BAR0=false
3252 BAR1=true
3254 am__doit:
3255 @$(TRUE)
3256 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3257 am_cv_make_support_nested_variables=yes
3258 else
3259 am_cv_make_support_nested_variables=no
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3263 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3264 if test $am_cv_make_support_nested_variables = yes; then
3265 AM_V='$(V)'
3266 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3267 else
3268 AM_V=$AM_DEFAULT_VERBOSITY
3269 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3271 AM_BACKSLASH='\'
3274 ac_ext=c
3275 ac_cpp='$CPP $CPPFLAGS'
3276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3279 if test -n "$ac_tool_prefix"; then
3280 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3281 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3283 $as_echo_n "checking for $ac_word... " >&6; }
3284 if ${ac_cv_prog_CC+:} false; then :
3285 $as_echo_n "(cached) " >&6
3286 else
3287 if test -n "$CC"; then
3288 ac_cv_prog_CC="$CC" # Let the user override the test.
3289 else
3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291 for as_dir in $PATH
3293 IFS=$as_save_IFS
3294 test -z "$as_dir" && as_dir=.
3295 for ac_exec_ext in '' $ac_executable_extensions; do
3296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3297 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3299 break 2
3301 done
3302 done
3303 IFS=$as_save_IFS
3307 CC=$ac_cv_prog_CC
3308 if test -n "$CC"; then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3310 $as_echo "$CC" >&6; }
3311 else
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313 $as_echo "no" >&6; }
3318 if test -z "$ac_cv_prog_CC"; then
3319 ac_ct_CC=$CC
3320 # Extract the first word of "gcc", so it can be a program name with args.
3321 set dummy gcc; ac_word=$2
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323 $as_echo_n "checking for $ac_word... " >&6; }
3324 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3325 $as_echo_n "(cached) " >&6
3326 else
3327 if test -n "$ac_ct_CC"; then
3328 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3329 else
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331 for as_dir in $PATH
3333 IFS=$as_save_IFS
3334 test -z "$as_dir" && as_dir=.
3335 for ac_exec_ext in '' $ac_executable_extensions; do
3336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3337 ac_cv_prog_ac_ct_CC="gcc"
3338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3339 break 2
3341 done
3342 done
3343 IFS=$as_save_IFS
3347 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3348 if test -n "$ac_ct_CC"; then
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3350 $as_echo "$ac_ct_CC" >&6; }
3351 else
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 $as_echo "no" >&6; }
3356 if test "x$ac_ct_CC" = x; then
3357 CC=""
3358 else
3359 case $cross_compiling:$ac_tool_warned in
3360 yes:)
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3363 ac_tool_warned=yes ;;
3364 esac
3365 CC=$ac_ct_CC
3367 else
3368 CC="$ac_cv_prog_CC"
3371 if test -z "$CC"; then
3372 if test -n "$ac_tool_prefix"; then
3373 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3374 set dummy ${ac_tool_prefix}cc; ac_word=$2
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3376 $as_echo_n "checking for $ac_word... " >&6; }
3377 if ${ac_cv_prog_CC+:} false; then :
3378 $as_echo_n "(cached) " >&6
3379 else
3380 if test -n "$CC"; then
3381 ac_cv_prog_CC="$CC" # Let the user override the test.
3382 else
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384 for as_dir in $PATH
3386 IFS=$as_save_IFS
3387 test -z "$as_dir" && as_dir=.
3388 for ac_exec_ext in '' $ac_executable_extensions; do
3389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3390 ac_cv_prog_CC="${ac_tool_prefix}cc"
3391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 break 2
3394 done
3395 done
3396 IFS=$as_save_IFS
3400 CC=$ac_cv_prog_CC
3401 if test -n "$CC"; then
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3403 $as_echo "$CC" >&6; }
3404 else
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406 $as_echo "no" >&6; }
3412 if test -z "$CC"; then
3413 # Extract the first word of "cc", so it can be a program name with args.
3414 set dummy cc; ac_word=$2
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3416 $as_echo_n "checking for $ac_word... " >&6; }
3417 if ${ac_cv_prog_CC+:} false; then :
3418 $as_echo_n "(cached) " >&6
3419 else
3420 if test -n "$CC"; then
3421 ac_cv_prog_CC="$CC" # Let the user override the test.
3422 else
3423 ac_prog_rejected=no
3424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425 for as_dir in $PATH
3427 IFS=$as_save_IFS
3428 test -z "$as_dir" && as_dir=.
3429 for ac_exec_ext in '' $ac_executable_extensions; do
3430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3431 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3432 ac_prog_rejected=yes
3433 continue
3435 ac_cv_prog_CC="cc"
3436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3437 break 2
3439 done
3440 done
3441 IFS=$as_save_IFS
3443 if test $ac_prog_rejected = yes; then
3444 # We found a bogon in the path, so make sure we never use it.
3445 set dummy $ac_cv_prog_CC
3446 shift
3447 if test $# != 0; then
3448 # We chose a different compiler from the bogus one.
3449 # However, it has the same basename, so the bogon will be chosen
3450 # first if we set CC to just the basename; use the full file name.
3451 shift
3452 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3457 CC=$ac_cv_prog_CC
3458 if test -n "$CC"; then
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3460 $as_echo "$CC" >&6; }
3461 else
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3463 $as_echo "no" >&6; }
3468 if test -z "$CC"; then
3469 if test -n "$ac_tool_prefix"; then
3470 for ac_prog in cl.exe
3472 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3473 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3475 $as_echo_n "checking for $ac_word... " >&6; }
3476 if ${ac_cv_prog_CC+:} false; then :
3477 $as_echo_n "(cached) " >&6
3478 else
3479 if test -n "$CC"; then
3480 ac_cv_prog_CC="$CC" # Let the user override the test.
3481 else
3482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483 for as_dir in $PATH
3485 IFS=$as_save_IFS
3486 test -z "$as_dir" && as_dir=.
3487 for ac_exec_ext in '' $ac_executable_extensions; do
3488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3489 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3491 break 2
3493 done
3494 done
3495 IFS=$as_save_IFS
3499 CC=$ac_cv_prog_CC
3500 if test -n "$CC"; then
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3502 $as_echo "$CC" >&6; }
3503 else
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505 $as_echo "no" >&6; }
3509 test -n "$CC" && break
3510 done
3512 if test -z "$CC"; then
3513 ac_ct_CC=$CC
3514 for ac_prog in cl.exe
3516 # Extract the first word of "$ac_prog", so it can be a program name with args.
3517 set dummy $ac_prog; ac_word=$2
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3519 $as_echo_n "checking for $ac_word... " >&6; }
3520 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3521 $as_echo_n "(cached) " >&6
3522 else
3523 if test -n "$ac_ct_CC"; then
3524 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3525 else
3526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527 for as_dir in $PATH
3529 IFS=$as_save_IFS
3530 test -z "$as_dir" && as_dir=.
3531 for ac_exec_ext in '' $ac_executable_extensions; do
3532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3533 ac_cv_prog_ac_ct_CC="$ac_prog"
3534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3535 break 2
3537 done
3538 done
3539 IFS=$as_save_IFS
3543 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3544 if test -n "$ac_ct_CC"; then
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3546 $as_echo "$ac_ct_CC" >&6; }
3547 else
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3549 $as_echo "no" >&6; }
3553 test -n "$ac_ct_CC" && break
3554 done
3556 if test "x$ac_ct_CC" = x; then
3557 CC=""
3558 else
3559 case $cross_compiling:$ac_tool_warned in
3560 yes:)
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3563 ac_tool_warned=yes ;;
3564 esac
3565 CC=$ac_ct_CC
3572 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3574 as_fn_error $? "no acceptable C compiler found in \$PATH
3575 See \`config.log' for more details" "$LINENO" 5; }
3577 # Provide some information about the compiler.
3578 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3579 set X $ac_compile
3580 ac_compiler=$2
3581 for ac_option in --version -v -V -qversion; do
3582 { { ac_try="$ac_compiler $ac_option >&5"
3583 case "(($ac_try" in
3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3586 esac
3587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3588 $as_echo "$ac_try_echo"; } >&5
3589 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3590 ac_status=$?
3591 if test -s conftest.err; then
3592 sed '10a\
3593 ... rest of stderr output deleted ...
3594 10q' conftest.err >conftest.er1
3595 cat conftest.er1 >&5
3597 rm -f conftest.er1 conftest.err
3598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3599 test $ac_status = 0; }
3600 done
3602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603 /* end confdefs.h. */
3606 main ()
3610 return 0;
3612 _ACEOF
3613 ac_clean_files_save=$ac_clean_files
3614 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3615 # Try to create an executable without -o first, disregard a.out.
3616 # It will help us diagnose broken compilers, and finding out an intuition
3617 # of exeext.
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3619 $as_echo_n "checking whether the C compiler works... " >&6; }
3620 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3622 # The possible output files:
3623 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3625 ac_rmfiles=
3626 for ac_file in $ac_files
3628 case $ac_file in
3629 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3630 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3631 esac
3632 done
3633 rm -f $ac_rmfiles
3635 if { { ac_try="$ac_link_default"
3636 case "(($ac_try" in
3637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638 *) ac_try_echo=$ac_try;;
3639 esac
3640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3641 $as_echo "$ac_try_echo"; } >&5
3642 (eval "$ac_link_default") 2>&5
3643 ac_status=$?
3644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3645 test $ac_status = 0; }; then :
3646 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3647 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3648 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3649 # so that the user can short-circuit this test for compilers unknown to
3650 # Autoconf.
3651 for ac_file in $ac_files ''
3653 test -f "$ac_file" || continue
3654 case $ac_file in
3655 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3657 [ab].out )
3658 # We found the default executable, but exeext='' is most
3659 # certainly right.
3660 break;;
3661 *.* )
3662 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3663 then :; else
3664 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3666 # We set ac_cv_exeext here because the later test for it is not
3667 # safe: cross compilers may not add the suffix if given an `-o'
3668 # argument, so we may need to know it at that point already.
3669 # Even if this section looks crufty: it has the advantage of
3670 # actually working.
3671 break;;
3673 break;;
3674 esac
3675 done
3676 test "$ac_cv_exeext" = no && ac_cv_exeext=
3678 else
3679 ac_file=''
3681 if test -z "$ac_file"; then :
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 $as_echo "no" >&6; }
3684 $as_echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3689 as_fn_error 77 "C compiler cannot create executables
3690 See \`config.log' for more details" "$LINENO" 5; }
3691 else
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3693 $as_echo "yes" >&6; }
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3696 $as_echo_n "checking for C compiler default output file name... " >&6; }
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3698 $as_echo "$ac_file" >&6; }
3699 ac_exeext=$ac_cv_exeext
3701 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3702 ac_clean_files=$ac_clean_files_save
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3704 $as_echo_n "checking for suffix of executables... " >&6; }
3705 if { { ac_try="$ac_link"
3706 case "(($ac_try" in
3707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708 *) ac_try_echo=$ac_try;;
3709 esac
3710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3711 $as_echo "$ac_try_echo"; } >&5
3712 (eval "$ac_link") 2>&5
3713 ac_status=$?
3714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3715 test $ac_status = 0; }; then :
3716 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3717 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3718 # work properly (i.e., refer to `conftest.exe'), while it won't with
3719 # `rm'.
3720 for ac_file in conftest.exe conftest conftest.*; do
3721 test -f "$ac_file" || continue
3722 case $ac_file in
3723 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3724 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3725 break;;
3726 * ) break;;
3727 esac
3728 done
3729 else
3730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3732 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3733 See \`config.log' for more details" "$LINENO" 5; }
3735 rm -f conftest conftest$ac_cv_exeext
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3737 $as_echo "$ac_cv_exeext" >&6; }
3739 rm -f conftest.$ac_ext
3740 EXEEXT=$ac_cv_exeext
3741 ac_exeext=$EXEEXT
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h. */
3744 #include <stdio.h>
3746 main ()
3748 FILE *f = fopen ("conftest.out", "w");
3749 return ferror (f) || fclose (f) != 0;
3752 return 0;
3754 _ACEOF
3755 ac_clean_files="$ac_clean_files conftest.out"
3756 # Check that the compiler produces executables we can run. If not, either
3757 # the compiler is broken, or we cross compile.
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3759 $as_echo_n "checking whether we are cross compiling... " >&6; }
3760 if test "$cross_compiling" != yes; then
3761 { { ac_try="$ac_link"
3762 case "(($ac_try" in
3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3765 esac
3766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3767 $as_echo "$ac_try_echo"; } >&5
3768 (eval "$ac_link") 2>&5
3769 ac_status=$?
3770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3771 test $ac_status = 0; }
3772 if { ac_try='./conftest$ac_cv_exeext'
3773 { { case "(($ac_try" in
3774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775 *) ac_try_echo=$ac_try;;
3776 esac
3777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3778 $as_echo "$ac_try_echo"; } >&5
3779 (eval "$ac_try") 2>&5
3780 ac_status=$?
3781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3782 test $ac_status = 0; }; }; then
3783 cross_compiling=no
3784 else
3785 if test "$cross_compiling" = maybe; then
3786 cross_compiling=yes
3787 else
3788 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3790 as_fn_error $? "cannot run C compiled programs.
3791 If you meant to cross compile, use \`--host'.
3792 See \`config.log' for more details" "$LINENO" 5; }
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3797 $as_echo "$cross_compiling" >&6; }
3799 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3800 ac_clean_files=$ac_clean_files_save
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3802 $as_echo_n "checking for suffix of object files... " >&6; }
3803 if ${ac_cv_objext+:} false; then :
3804 $as_echo_n "(cached) " >&6
3805 else
3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807 /* end confdefs.h. */
3810 main ()
3814 return 0;
3816 _ACEOF
3817 rm -f conftest.o conftest.obj
3818 if { { ac_try="$ac_compile"
3819 case "(($ac_try" in
3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821 *) ac_try_echo=$ac_try;;
3822 esac
3823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3824 $as_echo "$ac_try_echo"; } >&5
3825 (eval "$ac_compile") 2>&5
3826 ac_status=$?
3827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3828 test $ac_status = 0; }; then :
3829 for ac_file in conftest.o conftest.obj conftest.*; do
3830 test -f "$ac_file" || continue;
3831 case $ac_file in
3832 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3833 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3834 break;;
3835 esac
3836 done
3837 else
3838 $as_echo "$as_me: failed program was:" >&5
3839 sed 's/^/| /' conftest.$ac_ext >&5
3841 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3842 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3843 as_fn_error $? "cannot compute suffix of object files: cannot compile
3844 See \`config.log' for more details" "$LINENO" 5; }
3846 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3849 $as_echo "$ac_cv_objext" >&6; }
3850 OBJEXT=$ac_cv_objext
3851 ac_objext=$OBJEXT
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3853 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3854 if ${ac_cv_c_compiler_gnu+:} false; then :
3855 $as_echo_n "(cached) " >&6
3856 else
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3861 main ()
3863 #ifndef __GNUC__
3864 choke me
3865 #endif
3868 return 0;
3870 _ACEOF
3871 if ac_fn_c_try_compile "$LINENO"; then :
3872 ac_compiler_gnu=yes
3873 else
3874 ac_compiler_gnu=no
3876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3877 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3881 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3882 if test $ac_compiler_gnu = yes; then
3883 GCC=yes
3884 else
3885 GCC=
3887 ac_test_CFLAGS=${CFLAGS+set}
3888 ac_save_CFLAGS=$CFLAGS
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3890 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3891 if ${ac_cv_prog_cc_g+:} false; then :
3892 $as_echo_n "(cached) " >&6
3893 else
3894 ac_save_c_werror_flag=$ac_c_werror_flag
3895 ac_c_werror_flag=yes
3896 ac_cv_prog_cc_g=no
3897 CFLAGS="-g"
3898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3899 /* end confdefs.h. */
3902 main ()
3906 return 0;
3908 _ACEOF
3909 if ac_fn_c_try_compile "$LINENO"; then :
3910 ac_cv_prog_cc_g=yes
3911 else
3912 CFLAGS=""
3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h. */
3917 main ()
3921 return 0;
3923 _ACEOF
3924 if ac_fn_c_try_compile "$LINENO"; then :
3926 else
3927 ac_c_werror_flag=$ac_save_c_werror_flag
3928 CFLAGS="-g"
3929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h. */
3933 main ()
3937 return 0;
3939 _ACEOF
3940 if ac_fn_c_try_compile "$LINENO"; then :
3941 ac_cv_prog_cc_g=yes
3943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3948 ac_c_werror_flag=$ac_save_c_werror_flag
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3951 $as_echo "$ac_cv_prog_cc_g" >&6; }
3952 if test "$ac_test_CFLAGS" = set; then
3953 CFLAGS=$ac_save_CFLAGS
3954 elif test $ac_cv_prog_cc_g = yes; then
3955 if test "$GCC" = yes; then
3956 CFLAGS="-g -O2"
3957 else
3958 CFLAGS="-g"
3960 else
3961 if test "$GCC" = yes; then
3962 CFLAGS="-O2"
3963 else
3964 CFLAGS=
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3968 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3969 if ${ac_cv_prog_cc_c89+:} false; then :
3970 $as_echo_n "(cached) " >&6
3971 else
3972 ac_cv_prog_cc_c89=no
3973 ac_save_CC=$CC
3974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975 /* end confdefs.h. */
3976 #include <stdarg.h>
3977 #include <stdio.h>
3978 struct stat;
3979 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3980 struct buf { int x; };
3981 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3982 static char *e (p, i)
3983 char **p;
3984 int i;
3986 return p[i];
3988 static char *f (char * (*g) (char **, int), char **p, ...)
3990 char *s;
3991 va_list v;
3992 va_start (v,p);
3993 s = g (p, va_arg (v,int));
3994 va_end (v);
3995 return s;
3998 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3999 function prototypes and stuff, but not '\xHH' hex character constants.
4000 These don't provoke an error unfortunately, instead are silently treated
4001 as 'x'. The following induces an error, until -std is added to get
4002 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4003 array size at least. It's necessary to write '\x00'==0 to get something
4004 that's true only with -std. */
4005 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4007 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4008 inside strings and character constants. */
4009 #define FOO(x) 'x'
4010 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4012 int test (int i, double x);
4013 struct s1 {int (*f) (int a);};
4014 struct s2 {int (*f) (double a);};
4015 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4016 int argc;
4017 char **argv;
4019 main ()
4021 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4023 return 0;
4025 _ACEOF
4026 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4027 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4029 CC="$ac_save_CC $ac_arg"
4030 if ac_fn_c_try_compile "$LINENO"; then :
4031 ac_cv_prog_cc_c89=$ac_arg
4033 rm -f core conftest.err conftest.$ac_objext
4034 test "x$ac_cv_prog_cc_c89" != "xno" && break
4035 done
4036 rm -f conftest.$ac_ext
4037 CC=$ac_save_CC
4040 # AC_CACHE_VAL
4041 case "x$ac_cv_prog_cc_c89" in
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4044 $as_echo "none needed" >&6; } ;;
4045 xno)
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4047 $as_echo "unsupported" >&6; } ;;
4049 CC="$CC $ac_cv_prog_cc_c89"
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4051 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4052 esac
4053 if test "x$ac_cv_prog_cc_c89" != xno; then :
4057 ac_ext=c
4058 ac_cpp='$CPP $CPPFLAGS'
4059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4063 ac_ext=c
4064 ac_cpp='$CPP $CPPFLAGS'
4065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4069 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4070 if ${am_cv_prog_cc_c_o+:} false; then :
4071 $as_echo_n "(cached) " >&6
4072 else
4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h. */
4077 main ()
4081 return 0;
4083 _ACEOF
4084 # Make sure it works both with $CC and with simple cc.
4085 # Following AC_PROG_CC_C_O, we do the test twice because some
4086 # compilers refuse to overwrite an existing .o file with -o,
4087 # though they will create one.
4088 am_cv_prog_cc_c_o=yes
4089 for am_i in 1 2; do
4090 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4091 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4092 ac_status=$?
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); } \
4095 && test -f conftest2.$ac_objext; then
4096 : OK
4097 else
4098 am_cv_prog_cc_c_o=no
4099 break
4101 done
4102 rm -f core conftest*
4103 unset am_i
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4106 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4107 if test "$am_cv_prog_cc_c_o" != yes; then
4108 # Losing compiler, so override with the script.
4109 # FIXME: It is wrong to rewrite CC.
4110 # But if we don't then we get into trouble of one sort or another.
4111 # A longer-term fix would be to have automake use am__CC in this case,
4112 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4113 CC="$am_aux_dir/compile $CC"
4115 ac_ext=c
4116 ac_cpp='$CPP $CPPFLAGS'
4117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4121 DEPDIR="${am__leading_dot}deps"
4123 ac_config_commands="$ac_config_commands depfiles"
4126 am_make=${MAKE-make}
4127 cat > confinc << 'END'
4128 am__doit:
4129 @echo this is the am__doit target
4130 .PHONY: am__doit
4132 # If we don't find an include directive, just comment out the code.
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4134 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4135 am__include="#"
4136 am__quote=
4137 _am_result=none
4138 # First try GNU make style include.
4139 echo "include confinc" > confmf
4140 # Ignore all kinds of additional output from 'make'.
4141 case `$am_make -s -f confmf 2> /dev/null` in #(
4142 *the\ am__doit\ target*)
4143 am__include=include
4144 am__quote=
4145 _am_result=GNU
4147 esac
4148 # Now try BSD make style include.
4149 if test "$am__include" = "#"; then
4150 echo '.include "confinc"' > confmf
4151 case `$am_make -s -f confmf 2> /dev/null` in #(
4152 *the\ am__doit\ target*)
4153 am__include=.include
4154 am__quote="\""
4155 _am_result=BSD
4157 esac
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4162 $as_echo "$_am_result" >&6; }
4163 rm -f confinc confmf
4165 # Check whether --enable-dependency-tracking was given.
4166 if test "${enable_dependency_tracking+set}" = set; then :
4167 enableval=$enable_dependency_tracking;
4170 if test "x$enable_dependency_tracking" != xno; then
4171 am_depcomp="$ac_aux_dir/depcomp"
4172 AMDEPBACKSLASH='\'
4173 am__nodep='_no'
4175 if test "x$enable_dependency_tracking" != xno; then
4176 AMDEP_TRUE=
4177 AMDEP_FALSE='#'
4178 else
4179 AMDEP_TRUE='#'
4180 AMDEP_FALSE=
4185 depcc="$CC" am_compiler_list=
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4188 $as_echo_n "checking dependency style of $depcc... " >&6; }
4189 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4190 $as_echo_n "(cached) " >&6
4191 else
4192 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4193 # We make a subdir and do the tests there. Otherwise we can end up
4194 # making bogus files that we don't know about and never remove. For
4195 # instance it was reported that on HP-UX the gcc test will end up
4196 # making a dummy file named 'D' -- because '-MD' means "put the output
4197 # in D".
4198 rm -rf conftest.dir
4199 mkdir conftest.dir
4200 # Copy depcomp to subdir because otherwise we won't find it if we're
4201 # using a relative directory.
4202 cp "$am_depcomp" conftest.dir
4203 cd conftest.dir
4204 # We will build objects and dependencies in a subdirectory because
4205 # it helps to detect inapplicable dependency modes. For instance
4206 # both Tru64's cc and ICC support -MD to output dependencies as a
4207 # side effect of compilation, but ICC will put the dependencies in
4208 # the current directory while Tru64 will put them in the object
4209 # directory.
4210 mkdir sub
4212 am_cv_CC_dependencies_compiler_type=none
4213 if test "$am_compiler_list" = ""; then
4214 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4216 am__universal=false
4217 case " $depcc " in #(
4218 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4219 esac
4221 for depmode in $am_compiler_list; do
4222 # Setup a source with many dependencies, because some compilers
4223 # like to wrap large dependency lists on column 80 (with \), and
4224 # we should not choose a depcomp mode which is confused by this.
4226 # We need to recreate these files for each test, as the compiler may
4227 # overwrite some of them when testing with obscure command lines.
4228 # This happens at least with the AIX C compiler.
4229 : > sub/conftest.c
4230 for i in 1 2 3 4 5 6; do
4231 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4232 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4233 # Solaris 10 /bin/sh.
4234 echo '/* dummy */' > sub/conftst$i.h
4235 done
4236 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4238 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4239 # mode. It turns out that the SunPro C++ compiler does not properly
4240 # handle '-M -o', and we need to detect this. Also, some Intel
4241 # versions had trouble with output in subdirs.
4242 am__obj=sub/conftest.${OBJEXT-o}
4243 am__minus_obj="-o $am__obj"
4244 case $depmode in
4245 gcc)
4246 # This depmode causes a compiler race in universal mode.
4247 test "$am__universal" = false || continue
4249 nosideeffect)
4250 # After this tag, mechanisms are not by side-effect, so they'll
4251 # only be used when explicitly requested.
4252 if test "x$enable_dependency_tracking" = xyes; then
4253 continue
4254 else
4255 break
4258 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4259 # This compiler won't grok '-c -o', but also, the minuso test has
4260 # not run yet. These depmodes are late enough in the game, and
4261 # so weak that their functioning should not be impacted.
4262 am__obj=conftest.${OBJEXT-o}
4263 am__minus_obj=
4265 none) break ;;
4266 esac
4267 if depmode=$depmode \
4268 source=sub/conftest.c object=$am__obj \
4269 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4270 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4271 >/dev/null 2>conftest.err &&
4272 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4273 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4274 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4275 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4276 # icc doesn't choke on unknown options, it will just issue warnings
4277 # or remarks (even with -Werror). So we grep stderr for any message
4278 # that says an option was ignored or not supported.
4279 # When given -MP, icc 7.0 and 7.1 complain thusly:
4280 # icc: Command line warning: ignoring option '-M'; no argument required
4281 # The diagnosis changed in icc 8.0:
4282 # icc: Command line remark: option '-MP' not supported
4283 if (grep 'ignoring option' conftest.err ||
4284 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4285 am_cv_CC_dependencies_compiler_type=$depmode
4286 break
4289 done
4291 cd ..
4292 rm -rf conftest.dir
4293 else
4294 am_cv_CC_dependencies_compiler_type=none
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4299 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4300 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4303 test "x$enable_dependency_tracking" != xno \
4304 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4305 am__fastdepCC_TRUE=
4306 am__fastdepCC_FALSE='#'
4307 else
4308 am__fastdepCC_TRUE='#'
4309 am__fastdepCC_FALSE=
4314 ac_ext=c
4315 ac_cpp='$CPP $CPPFLAGS'
4316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4320 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4321 # On Suns, sometimes $CPP names a directory.
4322 if test -n "$CPP" && test -d "$CPP"; then
4323 CPP=
4325 if test -z "$CPP"; then
4326 if ${ac_cv_prog_CPP+:} false; then :
4327 $as_echo_n "(cached) " >&6
4328 else
4329 # Double quotes because CPP needs to be expanded
4330 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4332 ac_preproc_ok=false
4333 for ac_c_preproc_warn_flag in '' yes
4335 # Use a header file that comes with gcc, so configuring glibc
4336 # with a fresh cross-compiler works.
4337 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4338 # <limits.h> exists even on freestanding compilers.
4339 # On the NeXT, cc -E runs the code through the compiler's parser,
4340 # not just through cpp. "Syntax error" is here to catch this case.
4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342 /* end confdefs.h. */
4343 #ifdef __STDC__
4344 # include <limits.h>
4345 #else
4346 # include <assert.h>
4347 #endif
4348 Syntax error
4349 _ACEOF
4350 if ac_fn_c_try_cpp "$LINENO"; then :
4352 else
4353 # Broken: fails on valid input.
4354 continue
4356 rm -f conftest.err conftest.i conftest.$ac_ext
4358 # OK, works on sane cases. Now check whether nonexistent headers
4359 # can be detected and how.
4360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4361 /* end confdefs.h. */
4362 #include <ac_nonexistent.h>
4363 _ACEOF
4364 if ac_fn_c_try_cpp "$LINENO"; then :
4365 # Broken: success on invalid input.
4366 continue
4367 else
4368 # Passes both tests.
4369 ac_preproc_ok=:
4370 break
4372 rm -f conftest.err conftest.i conftest.$ac_ext
4374 done
4375 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4376 rm -f conftest.i conftest.err conftest.$ac_ext
4377 if $ac_preproc_ok; then :
4378 break
4381 done
4382 ac_cv_prog_CPP=$CPP
4385 CPP=$ac_cv_prog_CPP
4386 else
4387 ac_cv_prog_CPP=$CPP
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4390 $as_echo "$CPP" >&6; }
4391 ac_preproc_ok=false
4392 for ac_c_preproc_warn_flag in '' yes
4394 # Use a header file that comes with gcc, so configuring glibc
4395 # with a fresh cross-compiler works.
4396 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4397 # <limits.h> exists even on freestanding compilers.
4398 # On the NeXT, cc -E runs the code through the compiler's parser,
4399 # not just through cpp. "Syntax error" is here to catch this case.
4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h. */
4402 #ifdef __STDC__
4403 # include <limits.h>
4404 #else
4405 # include <assert.h>
4406 #endif
4407 Syntax error
4408 _ACEOF
4409 if ac_fn_c_try_cpp "$LINENO"; then :
4411 else
4412 # Broken: fails on valid input.
4413 continue
4415 rm -f conftest.err conftest.i conftest.$ac_ext
4417 # OK, works on sane cases. Now check whether nonexistent headers
4418 # can be detected and how.
4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420 /* end confdefs.h. */
4421 #include <ac_nonexistent.h>
4422 _ACEOF
4423 if ac_fn_c_try_cpp "$LINENO"; then :
4424 # Broken: success on invalid input.
4425 continue
4426 else
4427 # Passes both tests.
4428 ac_preproc_ok=:
4429 break
4431 rm -f conftest.err conftest.i conftest.$ac_ext
4433 done
4434 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4435 rm -f conftest.i conftest.err conftest.$ac_ext
4436 if $ac_preproc_ok; then :
4438 else
4439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4441 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4442 See \`config.log' for more details" "$LINENO" 5; }
4445 ac_ext=c
4446 ac_cpp='$CPP $CPPFLAGS'
4447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4453 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4454 if ${ac_cv_path_GREP+:} false; then :
4455 $as_echo_n "(cached) " >&6
4456 else
4457 if test -z "$GREP"; then
4458 ac_path_GREP_found=false
4459 # Loop through the user's path and test for each of PROGNAME-LIST
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4463 IFS=$as_save_IFS
4464 test -z "$as_dir" && as_dir=.
4465 for ac_prog in grep ggrep; do
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4468 as_fn_executable_p "$ac_path_GREP" || continue
4469 # Check for GNU ac_path_GREP and select it if it is found.
4470 # Check for GNU $ac_path_GREP
4471 case `"$ac_path_GREP" --version 2>&1` in
4472 *GNU*)
4473 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4475 ac_count=0
4476 $as_echo_n 0123456789 >"conftest.in"
4477 while :
4479 cat "conftest.in" "conftest.in" >"conftest.tmp"
4480 mv "conftest.tmp" "conftest.in"
4481 cp "conftest.in" "conftest.nl"
4482 $as_echo 'GREP' >> "conftest.nl"
4483 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4484 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4485 as_fn_arith $ac_count + 1 && ac_count=$as_val
4486 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4487 # Best one so far, save it but keep looking for a better one
4488 ac_cv_path_GREP="$ac_path_GREP"
4489 ac_path_GREP_max=$ac_count
4491 # 10*(2^10) chars as input seems more than enough
4492 test $ac_count -gt 10 && break
4493 done
4494 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4495 esac
4497 $ac_path_GREP_found && break 3
4498 done
4499 done
4500 done
4501 IFS=$as_save_IFS
4502 if test -z "$ac_cv_path_GREP"; then
4503 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4505 else
4506 ac_cv_path_GREP=$GREP
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4511 $as_echo "$ac_cv_path_GREP" >&6; }
4512 GREP="$ac_cv_path_GREP"
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4516 $as_echo_n "checking for egrep... " >&6; }
4517 if ${ac_cv_path_EGREP+:} false; then :
4518 $as_echo_n "(cached) " >&6
4519 else
4520 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4521 then ac_cv_path_EGREP="$GREP -E"
4522 else
4523 if test -z "$EGREP"; then
4524 ac_path_EGREP_found=false
4525 # Loop through the user's path and test for each of PROGNAME-LIST
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4529 IFS=$as_save_IFS
4530 test -z "$as_dir" && as_dir=.
4531 for ac_prog in egrep; do
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4534 as_fn_executable_p "$ac_path_EGREP" || continue
4535 # Check for GNU ac_path_EGREP and select it if it is found.
4536 # Check for GNU $ac_path_EGREP
4537 case `"$ac_path_EGREP" --version 2>&1` in
4538 *GNU*)
4539 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4541 ac_count=0
4542 $as_echo_n 0123456789 >"conftest.in"
4543 while :
4545 cat "conftest.in" "conftest.in" >"conftest.tmp"
4546 mv "conftest.tmp" "conftest.in"
4547 cp "conftest.in" "conftest.nl"
4548 $as_echo 'EGREP' >> "conftest.nl"
4549 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4550 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4551 as_fn_arith $ac_count + 1 && ac_count=$as_val
4552 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4553 # Best one so far, save it but keep looking for a better one
4554 ac_cv_path_EGREP="$ac_path_EGREP"
4555 ac_path_EGREP_max=$ac_count
4557 # 10*(2^10) chars as input seems more than enough
4558 test $ac_count -gt 10 && break
4559 done
4560 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4561 esac
4563 $ac_path_EGREP_found && break 3
4564 done
4565 done
4566 done
4567 IFS=$as_save_IFS
4568 if test -z "$ac_cv_path_EGREP"; then
4569 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4571 else
4572 ac_cv_path_EGREP=$EGREP
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4578 $as_echo "$ac_cv_path_EGREP" >&6; }
4579 EGREP="$ac_cv_path_EGREP"
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4583 $as_echo_n "checking for ANSI C header files... " >&6; }
4584 if ${ac_cv_header_stdc+:} false; then :
4585 $as_echo_n "(cached) " >&6
4586 else
4587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4588 /* end confdefs.h. */
4589 #include <stdlib.h>
4590 #include <stdarg.h>
4591 #include <string.h>
4592 #include <float.h>
4595 main ()
4599 return 0;
4601 _ACEOF
4602 if ac_fn_c_try_compile "$LINENO"; then :
4603 ac_cv_header_stdc=yes
4604 else
4605 ac_cv_header_stdc=no
4607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4609 if test $ac_cv_header_stdc = yes; then
4610 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4613 #include <string.h>
4615 _ACEOF
4616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4617 $EGREP "memchr" >/dev/null 2>&1; then :
4619 else
4620 ac_cv_header_stdc=no
4622 rm -f conftest*
4626 if test $ac_cv_header_stdc = yes; then
4627 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h. */
4630 #include <stdlib.h>
4632 _ACEOF
4633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4634 $EGREP "free" >/dev/null 2>&1; then :
4636 else
4637 ac_cv_header_stdc=no
4639 rm -f conftest*
4643 if test $ac_cv_header_stdc = yes; then
4644 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4645 if test "$cross_compiling" = yes; then :
4647 else
4648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4649 /* end confdefs.h. */
4650 #include <ctype.h>
4651 #include <stdlib.h>
4652 #if ((' ' & 0x0FF) == 0x020)
4653 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4654 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4655 #else
4656 # define ISLOWER(c) \
4657 (('a' <= (c) && (c) <= 'i') \
4658 || ('j' <= (c) && (c) <= 'r') \
4659 || ('s' <= (c) && (c) <= 'z'))
4660 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4661 #endif
4663 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4665 main ()
4667 int i;
4668 for (i = 0; i < 256; i++)
4669 if (XOR (islower (i), ISLOWER (i))
4670 || toupper (i) != TOUPPER (i))
4671 return 2;
4672 return 0;
4674 _ACEOF
4675 if ac_fn_c_try_run "$LINENO"; then :
4677 else
4678 ac_cv_header_stdc=no
4680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4681 conftest.$ac_objext conftest.beam conftest.$ac_ext
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4687 $as_echo "$ac_cv_header_stdc" >&6; }
4688 if test $ac_cv_header_stdc = yes; then
4690 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4694 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4695 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4696 inttypes.h stdint.h unistd.h
4697 do :
4698 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4699 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4701 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4702 cat >>confdefs.h <<_ACEOF
4703 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4704 _ACEOF
4708 done
4712 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4713 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4714 MINIX=yes
4715 else
4716 MINIX=
4720 if test "$MINIX" = yes; then
4722 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4725 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4728 $as_echo "#define _MINIX 1" >>confdefs.h
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4734 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4735 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4736 $as_echo_n "(cached) " >&6
4737 else
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4741 # define __EXTENSIONS__ 1
4742 $ac_includes_default
4744 main ()
4748 return 0;
4750 _ACEOF
4751 if ac_fn_c_try_compile "$LINENO"; then :
4752 ac_cv_safe_to_define___extensions__=yes
4753 else
4754 ac_cv_safe_to_define___extensions__=no
4756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4759 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4760 test $ac_cv_safe_to_define___extensions__ = yes &&
4761 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4763 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4765 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4767 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4769 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4773 if test -n "$ac_tool_prefix"; then
4774 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4775 set dummy ${ac_tool_prefix}ar; ac_word=$2
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777 $as_echo_n "checking for $ac_word... " >&6; }
4778 if ${ac_cv_prog_AR+:} false; then :
4779 $as_echo_n "(cached) " >&6
4780 else
4781 if test -n "$AR"; then
4782 ac_cv_prog_AR="$AR" # Let the user override the test.
4783 else
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 for as_dir in $PATH
4787 IFS=$as_save_IFS
4788 test -z "$as_dir" && as_dir=.
4789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4791 ac_cv_prog_AR="${ac_tool_prefix}ar"
4792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4793 break 2
4795 done
4796 done
4797 IFS=$as_save_IFS
4801 AR=$ac_cv_prog_AR
4802 if test -n "$AR"; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4804 $as_echo "$AR" >&6; }
4805 else
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4812 if test -z "$ac_cv_prog_AR"; then
4813 ac_ct_AR=$AR
4814 # Extract the first word of "ar", so it can be a program name with args.
4815 set dummy ar; ac_word=$2
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817 $as_echo_n "checking for $ac_word... " >&6; }
4818 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4819 $as_echo_n "(cached) " >&6
4820 else
4821 if test -n "$ac_ct_AR"; then
4822 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4823 else
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH
4827 IFS=$as_save_IFS
4828 test -z "$as_dir" && as_dir=.
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4831 ac_cv_prog_ac_ct_AR="ar"
4832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 break 2
4835 done
4836 done
4837 IFS=$as_save_IFS
4841 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4842 if test -n "$ac_ct_AR"; then
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4844 $as_echo "$ac_ct_AR" >&6; }
4845 else
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847 $as_echo "no" >&6; }
4850 if test "x$ac_ct_AR" = x; then
4851 AR=""
4852 else
4853 case $cross_compiling:$ac_tool_warned in
4854 yes:)
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4857 ac_tool_warned=yes ;;
4858 esac
4859 AR=$ac_ct_AR
4861 else
4862 AR="$ac_cv_prog_AR"
4865 if test -n "$ac_tool_prefix"; then
4866 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4867 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4869 $as_echo_n "checking for $ac_word... " >&6; }
4870 if ${ac_cv_prog_RANLIB+:} false; then :
4871 $as_echo_n "(cached) " >&6
4872 else
4873 if test -n "$RANLIB"; then
4874 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4875 else
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH
4879 IFS=$as_save_IFS
4880 test -z "$as_dir" && as_dir=.
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4883 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4885 break 2
4887 done
4888 done
4889 IFS=$as_save_IFS
4893 RANLIB=$ac_cv_prog_RANLIB
4894 if test -n "$RANLIB"; then
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4896 $as_echo "$RANLIB" >&6; }
4897 else
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899 $as_echo "no" >&6; }
4904 if test -z "$ac_cv_prog_RANLIB"; then
4905 ac_ct_RANLIB=$RANLIB
4906 # Extract the first word of "ranlib", so it can be a program name with args.
4907 set dummy ranlib; ac_word=$2
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909 $as_echo_n "checking for $ac_word... " >&6; }
4910 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4911 $as_echo_n "(cached) " >&6
4912 else
4913 if test -n "$ac_ct_RANLIB"; then
4914 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4915 else
4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 for as_dir in $PATH
4919 IFS=$as_save_IFS
4920 test -z "$as_dir" && as_dir=.
4921 for ac_exec_ext in '' $ac_executable_extensions; do
4922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4923 ac_cv_prog_ac_ct_RANLIB="ranlib"
4924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4925 break 2
4927 done
4928 done
4929 IFS=$as_save_IFS
4933 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4934 if test -n "$ac_ct_RANLIB"; then
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4936 $as_echo "$ac_ct_RANLIB" >&6; }
4937 else
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4939 $as_echo "no" >&6; }
4942 if test "x$ac_ct_RANLIB" = x; then
4943 RANLIB=":"
4944 else
4945 case $cross_compiling:$ac_tool_warned in
4946 yes:)
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4949 ac_tool_warned=yes ;;
4950 esac
4951 RANLIB=$ac_ct_RANLIB
4953 else
4954 RANLIB="$ac_cv_prog_RANLIB"
4958 # Check whether --enable-shared was given.
4959 if test "${enable_shared+set}" = set; then :
4960 enableval=$enable_shared; p=${PACKAGE-default}
4961 case $enableval in
4962 yes) enable_shared=yes ;;
4963 no) enable_shared=no ;;
4965 enable_shared=no
4966 # Look at the argument we got. We use all the common list separators.
4967 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4968 for pkg in $enableval; do
4969 IFS="$lt_save_ifs"
4970 if test "X$pkg" = "X$p"; then
4971 enable_shared=yes
4973 done
4974 IFS="$lt_save_ifs"
4976 esac
4977 else
4978 enable_shared=no
4990 case `pwd` in
4991 *\ * | *\ *)
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4993 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4994 esac
4998 macro_version='2.2.7a'
4999 macro_revision='1.3134'
5013 ltmain="$ac_aux_dir/ltmain.sh"
5015 # Backslashify metacharacters that are still active within
5016 # double-quoted strings.
5017 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5019 # Same as above, but do not quote variable references.
5020 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5022 # Sed substitution to delay expansion of an escaped shell variable in a
5023 # double_quote_subst'ed string.
5024 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5026 # Sed substitution to delay expansion of an escaped single quote.
5027 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5029 # Sed substitution to avoid accidental globbing in evaled expressions
5030 no_glob_subst='s/\*/\\\*/g'
5032 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5033 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5034 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5037 $as_echo_n "checking how to print strings... " >&6; }
5038 # Test print first, because it will be a builtin if present.
5039 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5040 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5041 ECHO='print -r --'
5042 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5043 ECHO='printf %s\n'
5044 else
5045 # Use this function as a fallback that always works.
5046 func_fallback_echo ()
5048 eval 'cat <<_LTECHO_EOF
5050 _LTECHO_EOF'
5052 ECHO='func_fallback_echo'
5055 # func_echo_all arg...
5056 # Invoke $ECHO with all args, space-separated.
5057 func_echo_all ()
5059 $ECHO ""
5062 case "$ECHO" in
5063 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5064 $as_echo "printf" >&6; } ;;
5065 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5066 $as_echo "print -r" >&6; } ;;
5067 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5068 $as_echo "cat" >&6; } ;;
5069 esac
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5085 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5086 if ${ac_cv_path_SED+:} false; then :
5087 $as_echo_n "(cached) " >&6
5088 else
5089 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5090 for ac_i in 1 2 3 4 5 6 7; do
5091 ac_script="$ac_script$as_nl$ac_script"
5092 done
5093 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5094 { ac_script=; unset ac_script;}
5095 if test -z "$SED"; then
5096 ac_path_SED_found=false
5097 # Loop through the user's path and test for each of PROGNAME-LIST
5098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099 for as_dir in $PATH
5101 IFS=$as_save_IFS
5102 test -z "$as_dir" && as_dir=.
5103 for ac_prog in sed gsed; do
5104 for ac_exec_ext in '' $ac_executable_extensions; do
5105 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5106 as_fn_executable_p "$ac_path_SED" || continue
5107 # Check for GNU ac_path_SED and select it if it is found.
5108 # Check for GNU $ac_path_SED
5109 case `"$ac_path_SED" --version 2>&1` in
5110 *GNU*)
5111 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5113 ac_count=0
5114 $as_echo_n 0123456789 >"conftest.in"
5115 while :
5117 cat "conftest.in" "conftest.in" >"conftest.tmp"
5118 mv "conftest.tmp" "conftest.in"
5119 cp "conftest.in" "conftest.nl"
5120 $as_echo '' >> "conftest.nl"
5121 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5122 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5123 as_fn_arith $ac_count + 1 && ac_count=$as_val
5124 if test $ac_count -gt ${ac_path_SED_max-0}; then
5125 # Best one so far, save it but keep looking for a better one
5126 ac_cv_path_SED="$ac_path_SED"
5127 ac_path_SED_max=$ac_count
5129 # 10*(2^10) chars as input seems more than enough
5130 test $ac_count -gt 10 && break
5131 done
5132 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5133 esac
5135 $ac_path_SED_found && break 3
5136 done
5137 done
5138 done
5139 IFS=$as_save_IFS
5140 if test -z "$ac_cv_path_SED"; then
5141 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5143 else
5144 ac_cv_path_SED=$SED
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5149 $as_echo "$ac_cv_path_SED" >&6; }
5150 SED="$ac_cv_path_SED"
5151 rm -f conftest.sed
5153 test -z "$SED" && SED=sed
5154 Xsed="$SED -e 1s/^X//"
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5167 $as_echo_n "checking for fgrep... " >&6; }
5168 if ${ac_cv_path_FGREP+:} false; then :
5169 $as_echo_n "(cached) " >&6
5170 else
5171 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5172 then ac_cv_path_FGREP="$GREP -F"
5173 else
5174 if test -z "$FGREP"; then
5175 ac_path_FGREP_found=false
5176 # Loop through the user's path and test for each of PROGNAME-LIST
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5180 IFS=$as_save_IFS
5181 test -z "$as_dir" && as_dir=.
5182 for ac_prog in fgrep; do
5183 for ac_exec_ext in '' $ac_executable_extensions; do
5184 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5185 as_fn_executable_p "$ac_path_FGREP" || continue
5186 # Check for GNU ac_path_FGREP and select it if it is found.
5187 # Check for GNU $ac_path_FGREP
5188 case `"$ac_path_FGREP" --version 2>&1` in
5189 *GNU*)
5190 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5192 ac_count=0
5193 $as_echo_n 0123456789 >"conftest.in"
5194 while :
5196 cat "conftest.in" "conftest.in" >"conftest.tmp"
5197 mv "conftest.tmp" "conftest.in"
5198 cp "conftest.in" "conftest.nl"
5199 $as_echo 'FGREP' >> "conftest.nl"
5200 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5201 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5202 as_fn_arith $ac_count + 1 && ac_count=$as_val
5203 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5204 # Best one so far, save it but keep looking for a better one
5205 ac_cv_path_FGREP="$ac_path_FGREP"
5206 ac_path_FGREP_max=$ac_count
5208 # 10*(2^10) chars as input seems more than enough
5209 test $ac_count -gt 10 && break
5210 done
5211 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5212 esac
5214 $ac_path_FGREP_found && break 3
5215 done
5216 done
5217 done
5218 IFS=$as_save_IFS
5219 if test -z "$ac_cv_path_FGREP"; then
5220 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5222 else
5223 ac_cv_path_FGREP=$FGREP
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5229 $as_echo "$ac_cv_path_FGREP" >&6; }
5230 FGREP="$ac_cv_path_FGREP"
5233 test -z "$GREP" && GREP=grep
5253 # Check whether --with-gnu-ld was given.
5254 if test "${with_gnu_ld+set}" = set; then :
5255 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5256 else
5257 with_gnu_ld=no
5260 ac_prog=ld
5261 if test "$GCC" = yes; then
5262 # Check if gcc -print-prog-name=ld gives a path.
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5264 $as_echo_n "checking for ld used by $CC... " >&6; }
5265 case $host in
5266 *-*-mingw*)
5267 # gcc leaves a trailing carriage return which upsets mingw
5268 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5270 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5271 esac
5272 case $ac_prog in
5273 # Accept absolute paths.
5274 [\\/]* | ?:[\\/]*)
5275 re_direlt='/[^/][^/]*/\.\./'
5276 # Canonicalize the pathname of ld
5277 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5278 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5279 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5280 done
5281 test -z "$LD" && LD="$ac_prog"
5284 # If it fails, then pretend we aren't using GCC.
5285 ac_prog=ld
5288 # If it is relative, then search for the first ld in PATH.
5289 with_gnu_ld=unknown
5291 esac
5292 elif test "$with_gnu_ld" = yes; then
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5294 $as_echo_n "checking for GNU ld... " >&6; }
5295 else
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5297 $as_echo_n "checking for non-GNU ld... " >&6; }
5299 if ${lt_cv_path_LD+:} false; then :
5300 $as_echo_n "(cached) " >&6
5301 else
5302 if test -z "$LD"; then
5303 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5304 for ac_dir in $PATH; do
5305 IFS="$lt_save_ifs"
5306 test -z "$ac_dir" && ac_dir=.
5307 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5308 lt_cv_path_LD="$ac_dir/$ac_prog"
5309 # Check to see if the program is GNU ld. I'd rather use --version,
5310 # but apparently some variants of GNU ld only accept -v.
5311 # Break only if it was the GNU/non-GNU ld that we prefer.
5312 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5313 *GNU* | *'with BFD'*)
5314 test "$with_gnu_ld" != no && break
5317 test "$with_gnu_ld" != yes && break
5319 esac
5321 done
5322 IFS="$lt_save_ifs"
5323 else
5324 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5328 LD="$lt_cv_path_LD"
5329 if test -n "$LD"; then
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5331 $as_echo "$LD" >&6; }
5332 else
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5334 $as_echo "no" >&6; }
5336 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5338 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5339 if ${lt_cv_prog_gnu_ld+:} false; then :
5340 $as_echo_n "(cached) " >&6
5341 else
5342 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5343 case `$LD -v 2>&1 </dev/null` in
5344 *GNU* | *'with BFD'*)
5345 lt_cv_prog_gnu_ld=yes
5348 lt_cv_prog_gnu_ld=no
5350 esac
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5353 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5354 with_gnu_ld=$lt_cv_prog_gnu_ld
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5365 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5366 if ${lt_cv_path_NM+:} false; then :
5367 $as_echo_n "(cached) " >&6
5368 else
5369 if test -n "$NM"; then
5370 # Let the user override the nm to test.
5371 lt_nm_to_check="$NM"
5372 else
5373 lt_nm_to_check="${ac_tool_prefix}nm"
5374 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5375 lt_nm_to_check="$lt_nm_to_check nm"
5378 for lt_tmp_nm in "$lt_nm_to_check"; do
5379 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5380 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5381 IFS="$lt_save_ifs"
5382 test -z "$ac_dir" && ac_dir=.
5383 # Strip out any user-provided options from the nm to test twice,
5384 # the first time to test to see if nm (rather than its options) has
5385 # an explicit path, the second time to yield a file which can be
5386 # nm'ed itself.
5387 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5388 case "$tmp_nm_path" in
5389 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5390 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5391 esac
5392 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5393 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5394 # Check to see if the nm accepts a BSD-compat flag.
5395 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5396 # nm: unknown option "B" ignored
5397 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5398 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5399 break
5402 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5403 *$tmp_nm*)
5404 lt_cv_path_NM="$tmp_nm -p"
5405 break
5408 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5409 continue # so that we can try to find one that supports BSD flags
5411 esac
5413 esac
5415 done
5416 IFS="$lt_save_ifs"
5417 done
5418 : ${lt_cv_path_NM=no}
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5421 $as_echo "$lt_cv_path_NM" >&6; }
5422 if test "$lt_cv_path_NM" != "no"; then
5423 NM="$lt_cv_path_NM"
5424 else
5425 # Didn't find any BSD compatible name lister, look for dumpbin.
5426 if test -n "$DUMPBIN"; then :
5427 # Let the user override the test.
5428 else
5429 if test -n "$ac_tool_prefix"; then
5430 for ac_prog in dumpbin "link -dump"
5432 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5433 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5435 $as_echo_n "checking for $ac_word... " >&6; }
5436 if ${ac_cv_prog_DUMPBIN+:} false; then :
5437 $as_echo_n "(cached) " >&6
5438 else
5439 if test -n "$DUMPBIN"; then
5440 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5441 else
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443 for as_dir in $PATH
5445 IFS=$as_save_IFS
5446 test -z "$as_dir" && as_dir=.
5447 for ac_exec_ext in '' $ac_executable_extensions; do
5448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5449 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5451 break 2
5453 done
5454 done
5455 IFS=$as_save_IFS
5459 DUMPBIN=$ac_cv_prog_DUMPBIN
5460 if test -n "$DUMPBIN"; then
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5462 $as_echo "$DUMPBIN" >&6; }
5463 else
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5465 $as_echo "no" >&6; }
5469 test -n "$DUMPBIN" && break
5470 done
5472 if test -z "$DUMPBIN"; then
5473 ac_ct_DUMPBIN=$DUMPBIN
5474 for ac_prog in dumpbin "link -dump"
5476 # Extract the first word of "$ac_prog", so it can be a program name with args.
5477 set dummy $ac_prog; ac_word=$2
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479 $as_echo_n "checking for $ac_word... " >&6; }
5480 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5481 $as_echo_n "(cached) " >&6
5482 else
5483 if test -n "$ac_ct_DUMPBIN"; then
5484 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5485 else
5486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487 for as_dir in $PATH
5489 IFS=$as_save_IFS
5490 test -z "$as_dir" && as_dir=.
5491 for ac_exec_ext in '' $ac_executable_extensions; do
5492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5493 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5495 break 2
5497 done
5498 done
5499 IFS=$as_save_IFS
5503 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5504 if test -n "$ac_ct_DUMPBIN"; then
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5506 $as_echo "$ac_ct_DUMPBIN" >&6; }
5507 else
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5509 $as_echo "no" >&6; }
5513 test -n "$ac_ct_DUMPBIN" && break
5514 done
5516 if test "x$ac_ct_DUMPBIN" = x; then
5517 DUMPBIN=":"
5518 else
5519 case $cross_compiling:$ac_tool_warned in
5520 yes:)
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5523 ac_tool_warned=yes ;;
5524 esac
5525 DUMPBIN=$ac_ct_DUMPBIN
5529 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5530 *COFF*)
5531 DUMPBIN="$DUMPBIN -symbols"
5534 DUMPBIN=:
5536 esac
5539 if test "$DUMPBIN" != ":"; then
5540 NM="$DUMPBIN"
5543 test -z "$NM" && NM=nm
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5551 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5552 if ${lt_cv_nm_interface+:} false; then :
5553 $as_echo_n "(cached) " >&6
5554 else
5555 lt_cv_nm_interface="BSD nm"
5556 echo "int some_variable = 0;" > conftest.$ac_ext
5557 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5558 (eval "$ac_compile" 2>conftest.err)
5559 cat conftest.err >&5
5560 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5561 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5562 cat conftest.err >&5
5563 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5564 cat conftest.out >&5
5565 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5566 lt_cv_nm_interface="MS dumpbin"
5568 rm -f conftest*
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5571 $as_echo "$lt_cv_nm_interface" >&6; }
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5574 $as_echo_n "checking whether ln -s works... " >&6; }
5575 LN_S=$as_ln_s
5576 if test "$LN_S" = "ln -s"; then
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5578 $as_echo "yes" >&6; }
5579 else
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5581 $as_echo "no, using $LN_S" >&6; }
5584 # find the maximum length of command line arguments
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5586 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5587 if ${lt_cv_sys_max_cmd_len+:} false; then :
5588 $as_echo_n "(cached) " >&6
5589 else
5591 teststring="ABCD"
5593 case $build_os in
5594 msdosdjgpp*)
5595 # On DJGPP, this test can blow up pretty badly due to problems in libc
5596 # (any single argument exceeding 2000 bytes causes a buffer overrun
5597 # during glob expansion). Even if it were fixed, the result of this
5598 # check would be larger than it should be.
5599 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5602 gnu*)
5603 # Under GNU Hurd, this test is not required because there is
5604 # no limit to the length of command line arguments.
5605 # Libtool will interpret -1 as no limit whatsoever
5606 lt_cv_sys_max_cmd_len=-1;
5609 cygwin* | mingw* | cegcc*)
5610 # On Win9x/ME, this test blows up -- it succeeds, but takes
5611 # about 5 minutes as the teststring grows exponentially.
5612 # Worse, since 9x/ME are not pre-emptively multitasking,
5613 # you end up with a "frozen" computer, even though with patience
5614 # the test eventually succeeds (with a max line length of 256k).
5615 # Instead, let's just punt: use the minimum linelength reported by
5616 # all of the supported platforms: 8192 (on NT/2K/XP).
5617 lt_cv_sys_max_cmd_len=8192;
5620 mint*)
5621 # On MiNT this can take a long time and run out of memory.
5622 lt_cv_sys_max_cmd_len=8192;
5625 amigaos*)
5626 # On AmigaOS with pdksh, this test takes hours, literally.
5627 # So we just punt and use a minimum line length of 8192.
5628 lt_cv_sys_max_cmd_len=8192;
5631 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5632 # This has been around since 386BSD, at least. Likely further.
5633 if test -x /sbin/sysctl; then
5634 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5635 elif test -x /usr/sbin/sysctl; then
5636 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5637 else
5638 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5640 # And add a safety zone
5641 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5642 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5645 interix*)
5646 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5647 lt_cv_sys_max_cmd_len=196608
5650 osf*)
5651 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5652 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5653 # nice to cause kernel panics so lets avoid the loop below.
5654 # First set a reasonable default.
5655 lt_cv_sys_max_cmd_len=16384
5657 if test -x /sbin/sysconfig; then
5658 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5659 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5660 esac
5663 sco3.2v5*)
5664 lt_cv_sys_max_cmd_len=102400
5666 sysv5* | sco5v6* | sysv4.2uw2*)
5667 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5668 if test -n "$kargmax"; then
5669 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5670 else
5671 lt_cv_sys_max_cmd_len=32768
5675 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5676 if test -n "$lt_cv_sys_max_cmd_len"; then
5677 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5678 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5679 else
5680 # Make teststring a little bigger before we do anything with it.
5681 # a 1K string should be a reasonable start.
5682 for i in 1 2 3 4 5 6 7 8 ; do
5683 teststring=$teststring$teststring
5684 done
5685 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5686 # If test is not a shell built-in, we'll probably end up computing a
5687 # maximum length that is only half of the actual maximum length, but
5688 # we can't tell.
5689 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5690 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5691 test $i != 17 # 1/2 MB should be enough
5693 i=`expr $i + 1`
5694 teststring=$teststring$teststring
5695 done
5696 # Only check the string length outside the loop.
5697 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5698 teststring=
5699 # Add a significant safety factor because C++ compilers can tack on
5700 # massive amounts of additional arguments before passing them to the
5701 # linker. It appears as though 1/2 is a usable value.
5702 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5705 esac
5709 if test -n $lt_cv_sys_max_cmd_len ; then
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5711 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5712 else
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5714 $as_echo "none" >&6; }
5716 max_cmd_len=$lt_cv_sys_max_cmd_len
5723 : ${CP="cp -f"}
5724 : ${MV="mv -f"}
5725 : ${RM="rm -f"}
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5728 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5729 # Try some XSI features
5730 xsi_shell=no
5731 ( _lt_dummy="a/b/c"
5732 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5733 = c,a/b,, \
5734 && eval 'test $(( 1 + 1 )) -eq 2 \
5735 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5736 && xsi_shell=yes
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5738 $as_echo "$xsi_shell" >&6; }
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5742 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5743 lt_shell_append=no
5744 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5745 >/dev/null 2>&1 \
5746 && lt_shell_append=yes
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5748 $as_echo "$lt_shell_append" >&6; }
5751 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5752 lt_unset=unset
5753 else
5754 lt_unset=false
5761 # test EBCDIC or ASCII
5762 case `echo X|tr X '\101'` in
5763 A) # ASCII based system
5764 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5765 lt_SP2NL='tr \040 \012'
5766 lt_NL2SP='tr \015\012 \040\040'
5768 *) # EBCDIC based system
5769 lt_SP2NL='tr \100 \n'
5770 lt_NL2SP='tr \r\n \100\100'
5772 esac
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5783 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5784 if ${lt_cv_ld_reload_flag+:} false; then :
5785 $as_echo_n "(cached) " >&6
5786 else
5787 lt_cv_ld_reload_flag='-r'
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5790 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5791 reload_flag=$lt_cv_ld_reload_flag
5792 case $reload_flag in
5793 "" | " "*) ;;
5794 *) reload_flag=" $reload_flag" ;;
5795 esac
5796 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5797 case $host_os in
5798 darwin*)
5799 if test "$GCC" = yes; then
5800 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5801 else
5802 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5805 esac
5815 if test -n "$ac_tool_prefix"; then
5816 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5817 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5819 $as_echo_n "checking for $ac_word... " >&6; }
5820 if ${ac_cv_prog_OBJDUMP+:} false; then :
5821 $as_echo_n "(cached) " >&6
5822 else
5823 if test -n "$OBJDUMP"; then
5824 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5825 else
5826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5827 for as_dir in $PATH
5829 IFS=$as_save_IFS
5830 test -z "$as_dir" && as_dir=.
5831 for ac_exec_ext in '' $ac_executable_extensions; do
5832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5833 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5835 break 2
5837 done
5838 done
5839 IFS=$as_save_IFS
5843 OBJDUMP=$ac_cv_prog_OBJDUMP
5844 if test -n "$OBJDUMP"; then
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5846 $as_echo "$OBJDUMP" >&6; }
5847 else
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5849 $as_echo "no" >&6; }
5854 if test -z "$ac_cv_prog_OBJDUMP"; then
5855 ac_ct_OBJDUMP=$OBJDUMP
5856 # Extract the first word of "objdump", so it can be a program name with args.
5857 set dummy objdump; ac_word=$2
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5859 $as_echo_n "checking for $ac_word... " >&6; }
5860 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5861 $as_echo_n "(cached) " >&6
5862 else
5863 if test -n "$ac_ct_OBJDUMP"; then
5864 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5865 else
5866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867 for as_dir in $PATH
5869 IFS=$as_save_IFS
5870 test -z "$as_dir" && as_dir=.
5871 for ac_exec_ext in '' $ac_executable_extensions; do
5872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5873 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5875 break 2
5877 done
5878 done
5879 IFS=$as_save_IFS
5883 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5884 if test -n "$ac_ct_OBJDUMP"; then
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5886 $as_echo "$ac_ct_OBJDUMP" >&6; }
5887 else
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5889 $as_echo "no" >&6; }
5892 if test "x$ac_ct_OBJDUMP" = x; then
5893 OBJDUMP="false"
5894 else
5895 case $cross_compiling:$ac_tool_warned in
5896 yes:)
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5899 ac_tool_warned=yes ;;
5900 esac
5901 OBJDUMP=$ac_ct_OBJDUMP
5903 else
5904 OBJDUMP="$ac_cv_prog_OBJDUMP"
5907 test -z "$OBJDUMP" && OBJDUMP=objdump
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5918 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5919 if ${lt_cv_deplibs_check_method+:} false; then :
5920 $as_echo_n "(cached) " >&6
5921 else
5922 lt_cv_file_magic_cmd='$MAGIC_CMD'
5923 lt_cv_file_magic_test_file=
5924 lt_cv_deplibs_check_method='unknown'
5925 # Need to set the preceding variable on all platforms that support
5926 # interlibrary dependencies.
5927 # 'none' -- dependencies not supported.
5928 # `unknown' -- same as none, but documents that we really don't know.
5929 # 'pass_all' -- all dependencies passed with no checks.
5930 # 'test_compile' -- check by making test program.
5931 # 'file_magic [[regex]]' -- check by looking for files in library path
5932 # which responds to the $file_magic_cmd with a given extended regex.
5933 # If you have `file' or equivalent on your system and you're not sure
5934 # whether `pass_all' will *always* work, you probably want this one.
5936 case $host_os in
5937 aix[4-9]*)
5938 lt_cv_deplibs_check_method=pass_all
5941 beos*)
5942 lt_cv_deplibs_check_method=pass_all
5945 bsdi[45]*)
5946 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5947 lt_cv_file_magic_cmd='/usr/bin/file -L'
5948 lt_cv_file_magic_test_file=/shlib/libc.so
5951 cygwin*)
5952 # func_win32_libid is a shell function defined in ltmain.sh
5953 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5954 lt_cv_file_magic_cmd='func_win32_libid'
5957 mingw* | pw32*)
5958 # Base MSYS/MinGW do not provide the 'file' command needed by
5959 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5960 # unless we find 'file', for example because we are cross-compiling.
5961 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5962 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5963 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5964 lt_cv_file_magic_cmd='func_win32_libid'
5965 else
5966 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5967 lt_cv_file_magic_cmd='$OBJDUMP -f'
5971 cegcc*)
5972 # use the weaker test based on 'objdump'. See mingw*.
5973 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5974 lt_cv_file_magic_cmd='$OBJDUMP -f'
5977 darwin* | rhapsody*)
5978 lt_cv_deplibs_check_method=pass_all
5981 freebsd* | dragonfly*)
5982 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5983 case $host_cpu in
5984 i*86 )
5985 # Not sure whether the presence of OpenBSD here was a mistake.
5986 # Let's accept both of them until this is cleared up.
5987 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5988 lt_cv_file_magic_cmd=/usr/bin/file
5989 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5991 esac
5992 else
5993 lt_cv_deplibs_check_method=pass_all
5997 gnu*)
5998 lt_cv_deplibs_check_method=pass_all
6001 haiku*)
6002 lt_cv_deplibs_check_method=pass_all
6005 hpux10.20* | hpux11*)
6006 lt_cv_file_magic_cmd=/usr/bin/file
6007 case $host_cpu in
6008 ia64*)
6009 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6010 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6012 hppa*64*)
6013 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]'
6014 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6017 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6018 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6020 esac
6023 interix[3-9]*)
6024 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6025 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6028 irix5* | irix6* | nonstopux*)
6029 case $LD in
6030 *-32|*"-32 ") libmagic=32-bit;;
6031 *-n32|*"-n32 ") libmagic=N32;;
6032 *-64|*"-64 ") libmagic=64-bit;;
6033 *) libmagic=never-match;;
6034 esac
6035 lt_cv_deplibs_check_method=pass_all
6038 # This must be Linux ELF.
6039 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6040 lt_cv_deplibs_check_method=pass_all
6043 netbsd*)
6044 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6045 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6046 else
6047 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6051 newos6*)
6052 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6053 lt_cv_file_magic_cmd=/usr/bin/file
6054 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6057 *nto* | *qnx*)
6058 lt_cv_deplibs_check_method=pass_all
6061 openbsd*)
6062 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6063 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6064 else
6065 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6069 osf3* | osf4* | osf5*)
6070 lt_cv_deplibs_check_method=pass_all
6073 rdos*)
6074 lt_cv_deplibs_check_method=pass_all
6077 solaris*)
6078 lt_cv_deplibs_check_method=pass_all
6081 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6082 lt_cv_deplibs_check_method=pass_all
6085 sysv4 | sysv4.3*)
6086 case $host_vendor in
6087 motorola)
6088 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]'
6089 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6091 ncr)
6092 lt_cv_deplibs_check_method=pass_all
6094 sequent)
6095 lt_cv_file_magic_cmd='/bin/file'
6096 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6098 sni)
6099 lt_cv_file_magic_cmd='/bin/file'
6100 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6101 lt_cv_file_magic_test_file=/lib/libc.so
6103 siemens)
6104 lt_cv_deplibs_check_method=pass_all
6107 lt_cv_deplibs_check_method=pass_all
6109 esac
6112 tpf*)
6113 lt_cv_deplibs_check_method=pass_all
6115 vxworks*)
6116 # Assume VxWorks cross toolchains are built on Linux, possibly
6117 # as canadian for Windows hosts.
6118 lt_cv_deplibs_check_method=pass_all
6120 esac
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6124 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6125 file_magic_cmd=$lt_cv_file_magic_cmd
6126 deplibs_check_method=$lt_cv_deplibs_check_method
6127 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6140 plugin_option=
6141 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6142 for plugin in $plugin_names; do
6143 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6144 if test x$plugin_so = x$plugin; then
6145 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6147 if test x$plugin_so != x$plugin; then
6148 plugin_option="--plugin $plugin_so"
6149 break
6151 done
6153 if test -n "$ac_tool_prefix"; then
6154 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6155 set dummy ${ac_tool_prefix}ar; ac_word=$2
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6157 $as_echo_n "checking for $ac_word... " >&6; }
6158 if ${ac_cv_prog_AR+:} false; then :
6159 $as_echo_n "(cached) " >&6
6160 else
6161 if test -n "$AR"; then
6162 ac_cv_prog_AR="$AR" # Let the user override the test.
6163 else
6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 for as_dir in $PATH
6167 IFS=$as_save_IFS
6168 test -z "$as_dir" && as_dir=.
6169 for ac_exec_ext in '' $ac_executable_extensions; do
6170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6171 ac_cv_prog_AR="${ac_tool_prefix}ar"
6172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6173 break 2
6175 done
6176 done
6177 IFS=$as_save_IFS
6181 AR=$ac_cv_prog_AR
6182 if test -n "$AR"; then
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6184 $as_echo "$AR" >&6; }
6185 else
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6187 $as_echo "no" >&6; }
6192 if test -z "$ac_cv_prog_AR"; then
6193 ac_ct_AR=$AR
6194 # Extract the first word of "ar", so it can be a program name with args.
6195 set dummy ar; ac_word=$2
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6197 $as_echo_n "checking for $ac_word... " >&6; }
6198 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6199 $as_echo_n "(cached) " >&6
6200 else
6201 if test -n "$ac_ct_AR"; then
6202 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6203 else
6204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205 for as_dir in $PATH
6207 IFS=$as_save_IFS
6208 test -z "$as_dir" && as_dir=.
6209 for ac_exec_ext in '' $ac_executable_extensions; do
6210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6211 ac_cv_prog_ac_ct_AR="ar"
6212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6213 break 2
6215 done
6216 done
6217 IFS=$as_save_IFS
6221 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6222 if test -n "$ac_ct_AR"; then
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6224 $as_echo "$ac_ct_AR" >&6; }
6225 else
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6227 $as_echo "no" >&6; }
6230 if test "x$ac_ct_AR" = x; then
6231 AR="false"
6232 else
6233 case $cross_compiling:$ac_tool_warned in
6234 yes:)
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6237 ac_tool_warned=yes ;;
6238 esac
6239 AR=$ac_ct_AR
6241 else
6242 AR="$ac_cv_prog_AR"
6245 test -z "$AR" && AR=ar
6246 if test -n "$plugin_option"; then
6247 if $AR --help 2>&1 | grep -q "\--plugin"; then
6248 touch conftest.c
6249 $AR $plugin_option rc conftest.a conftest.c
6250 if test "$?" != 0; then
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6252 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6253 else
6254 AR="$AR $plugin_option"
6256 rm -f conftest.*
6259 test -z "$AR_FLAGS" && AR_FLAGS=cru
6271 if test -n "$ac_tool_prefix"; then
6272 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6273 set dummy ${ac_tool_prefix}strip; ac_word=$2
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6275 $as_echo_n "checking for $ac_word... " >&6; }
6276 if ${ac_cv_prog_STRIP+:} false; then :
6277 $as_echo_n "(cached) " >&6
6278 else
6279 if test -n "$STRIP"; then
6280 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6281 else
6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283 for as_dir in $PATH
6285 IFS=$as_save_IFS
6286 test -z "$as_dir" && as_dir=.
6287 for ac_exec_ext in '' $ac_executable_extensions; do
6288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6289 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6291 break 2
6293 done
6294 done
6295 IFS=$as_save_IFS
6299 STRIP=$ac_cv_prog_STRIP
6300 if test -n "$STRIP"; then
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6302 $as_echo "$STRIP" >&6; }
6303 else
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6305 $as_echo "no" >&6; }
6310 if test -z "$ac_cv_prog_STRIP"; then
6311 ac_ct_STRIP=$STRIP
6312 # Extract the first word of "strip", so it can be a program name with args.
6313 set dummy strip; ac_word=$2
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6315 $as_echo_n "checking for $ac_word... " >&6; }
6316 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6317 $as_echo_n "(cached) " >&6
6318 else
6319 if test -n "$ac_ct_STRIP"; then
6320 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6321 else
6322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 for as_dir in $PATH
6325 IFS=$as_save_IFS
6326 test -z "$as_dir" && as_dir=.
6327 for ac_exec_ext in '' $ac_executable_extensions; do
6328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6329 ac_cv_prog_ac_ct_STRIP="strip"
6330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6331 break 2
6333 done
6334 done
6335 IFS=$as_save_IFS
6339 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6340 if test -n "$ac_ct_STRIP"; then
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6342 $as_echo "$ac_ct_STRIP" >&6; }
6343 else
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6345 $as_echo "no" >&6; }
6348 if test "x$ac_ct_STRIP" = x; then
6349 STRIP=":"
6350 else
6351 case $cross_compiling:$ac_tool_warned in
6352 yes:)
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6355 ac_tool_warned=yes ;;
6356 esac
6357 STRIP=$ac_ct_STRIP
6359 else
6360 STRIP="$ac_cv_prog_STRIP"
6363 test -z "$STRIP" && STRIP=:
6370 if test -n "$ac_tool_prefix"; then
6371 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6372 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6374 $as_echo_n "checking for $ac_word... " >&6; }
6375 if ${ac_cv_prog_RANLIB+:} false; then :
6376 $as_echo_n "(cached) " >&6
6377 else
6378 if test -n "$RANLIB"; then
6379 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6380 else
6381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382 for as_dir in $PATH
6384 IFS=$as_save_IFS
6385 test -z "$as_dir" && as_dir=.
6386 for ac_exec_ext in '' $ac_executable_extensions; do
6387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6388 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6390 break 2
6392 done
6393 done
6394 IFS=$as_save_IFS
6398 RANLIB=$ac_cv_prog_RANLIB
6399 if test -n "$RANLIB"; then
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6401 $as_echo "$RANLIB" >&6; }
6402 else
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6404 $as_echo "no" >&6; }
6409 if test -z "$ac_cv_prog_RANLIB"; then
6410 ac_ct_RANLIB=$RANLIB
6411 # Extract the first word of "ranlib", so it can be a program name with args.
6412 set dummy ranlib; ac_word=$2
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6414 $as_echo_n "checking for $ac_word... " >&6; }
6415 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6416 $as_echo_n "(cached) " >&6
6417 else
6418 if test -n "$ac_ct_RANLIB"; then
6419 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6420 else
6421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422 for as_dir in $PATH
6424 IFS=$as_save_IFS
6425 test -z "$as_dir" && as_dir=.
6426 for ac_exec_ext in '' $ac_executable_extensions; do
6427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6428 ac_cv_prog_ac_ct_RANLIB="ranlib"
6429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6430 break 2
6432 done
6433 done
6434 IFS=$as_save_IFS
6438 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6439 if test -n "$ac_ct_RANLIB"; then
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6441 $as_echo "$ac_ct_RANLIB" >&6; }
6442 else
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6444 $as_echo "no" >&6; }
6447 if test "x$ac_ct_RANLIB" = x; then
6448 RANLIB=":"
6449 else
6450 case $cross_compiling:$ac_tool_warned in
6451 yes:)
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6453 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6454 ac_tool_warned=yes ;;
6455 esac
6456 RANLIB=$ac_ct_RANLIB
6458 else
6459 RANLIB="$ac_cv_prog_RANLIB"
6462 test -z "$RANLIB" && RANLIB=:
6463 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6464 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6465 RANLIB="$RANLIB $plugin_option"
6474 # Determine commands to create old-style static archives.
6475 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6476 old_postinstall_cmds='chmod 644 $oldlib'
6477 old_postuninstall_cmds=
6479 if test -n "$RANLIB"; then
6480 case $host_os in
6481 openbsd*)
6482 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6485 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6487 esac
6488 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6491 case $host_os in
6492 darwin*)
6493 lock_old_archive_extraction=yes ;;
6495 lock_old_archive_extraction=no ;;
6496 esac
6536 # If no C compiler was specified, use CC.
6537 LTCC=${LTCC-"$CC"}
6539 # If no C compiler flags were specified, use CFLAGS.
6540 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6542 # Allow CC to be a program name with arguments.
6543 compiler=$CC
6546 # Check for command to grab the raw symbol name followed by C symbol from nm.
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6548 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6549 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6550 $as_echo_n "(cached) " >&6
6551 else
6553 # These are sane defaults that work on at least a few old systems.
6554 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6556 # Character class describing NM global symbol codes.
6557 symcode='[BCDEGRST]'
6559 # Regexp to match symbols that can be accessed directly from C.
6560 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6562 # Define system-specific variables.
6563 case $host_os in
6564 aix*)
6565 symcode='[BCDT]'
6567 cygwin* | mingw* | pw32* | cegcc*)
6568 symcode='[ABCDGISTW]'
6570 hpux*)
6571 if test "$host_cpu" = ia64; then
6572 symcode='[ABCDEGRST]'
6575 irix* | nonstopux*)
6576 symcode='[BCDEGRST]'
6578 osf*)
6579 symcode='[BCDEGQRST]'
6581 solaris*)
6582 symcode='[BCDRT]'
6584 sco3.2v5*)
6585 symcode='[DT]'
6587 sysv4.2uw2*)
6588 symcode='[DT]'
6590 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6591 symcode='[ABDT]'
6593 sysv4)
6594 symcode='[DFNSTU]'
6596 esac
6598 # If we're using GNU nm, then use its standard symbol codes.
6599 case `$NM -V 2>&1` in
6600 *GNU* | *'with BFD'*)
6601 symcode='[ABCDGIRSTW]' ;;
6602 esac
6604 # Transform an extracted symbol line into a proper C declaration.
6605 # Some systems (esp. on ia64) link data and code symbols differently,
6606 # so use this general approach.
6607 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6609 # Transform an extracted symbol line into symbol name and symbol address
6610 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6611 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'"
6613 # Handle CRLF in mingw tool chain
6614 opt_cr=
6615 case $build_os in
6616 mingw*)
6617 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6619 esac
6621 # Try without a prefix underscore, then with it.
6622 for ac_symprfx in "" "_"; do
6624 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6625 symxfrm="\\1 $ac_symprfx\\2 \\2"
6627 # Write the raw and C identifiers.
6628 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6629 # Fake it for dumpbin and say T for any non-static function
6630 # and D for any global variable.
6631 # Also find C++ and __fastcall symbols from MSVC++,
6632 # which start with @ or ?.
6633 lt_cv_sys_global_symbol_pipe="$AWK '"\
6634 " {last_section=section; section=\$ 3};"\
6635 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6636 " \$ 0!~/External *\|/{next};"\
6637 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6638 " {if(hide[section]) next};"\
6639 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6640 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6641 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6642 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6643 " ' prfx=^$ac_symprfx"
6644 else
6645 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6648 # Check to see that the pipe works correctly.
6649 pipe_works=no
6651 rm -f conftest*
6652 cat > conftest.$ac_ext <<_LT_EOF
6653 #ifdef __cplusplus
6654 extern "C" {
6655 #endif
6656 char nm_test_var;
6657 void nm_test_func(void);
6658 void nm_test_func(void){}
6659 #ifdef __cplusplus
6661 #endif
6662 int main(){nm_test_var='a';nm_test_func();return(0);}
6663 _LT_EOF
6665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6666 (eval $ac_compile) 2>&5
6667 ac_status=$?
6668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6669 test $ac_status = 0; }; then
6670 # Now try to grab the symbols.
6671 nlist=conftest.nm
6672 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6673 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6674 ac_status=$?
6675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6676 test $ac_status = 0; } && test -s "$nlist"; then
6677 # Try sorting and uniquifying the output.
6678 if sort "$nlist" | uniq > "$nlist"T; then
6679 mv -f "$nlist"T "$nlist"
6680 else
6681 rm -f "$nlist"T
6684 # Make sure that we snagged all the symbols we need.
6685 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6686 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6687 cat <<_LT_EOF > conftest.$ac_ext
6688 #ifdef __cplusplus
6689 extern "C" {
6690 #endif
6692 _LT_EOF
6693 # Now generate the symbol file.
6694 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6696 cat <<_LT_EOF >> conftest.$ac_ext
6698 /* The mapping between symbol names and symbols. */
6699 const struct {
6700 const char *name;
6701 void *address;
6703 lt__PROGRAM__LTX_preloaded_symbols[] =
6705 { "@PROGRAM@", (void *) 0 },
6706 _LT_EOF
6707 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6708 cat <<\_LT_EOF >> conftest.$ac_ext
6709 {0, (void *) 0}
6712 /* This works around a problem in FreeBSD linker */
6713 #ifdef FREEBSD_WORKAROUND
6714 static const void *lt_preloaded_setup() {
6715 return lt__PROGRAM__LTX_preloaded_symbols;
6717 #endif
6719 #ifdef __cplusplus
6721 #endif
6722 _LT_EOF
6723 # Now try linking the two files.
6724 mv conftest.$ac_objext conftstm.$ac_objext
6725 lt_save_LIBS="$LIBS"
6726 lt_save_CFLAGS="$CFLAGS"
6727 LIBS="conftstm.$ac_objext"
6728 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6730 (eval $ac_link) 2>&5
6731 ac_status=$?
6732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6733 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6734 pipe_works=yes
6736 LIBS="$lt_save_LIBS"
6737 CFLAGS="$lt_save_CFLAGS"
6738 else
6739 echo "cannot find nm_test_func in $nlist" >&5
6741 else
6742 echo "cannot find nm_test_var in $nlist" >&5
6744 else
6745 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6747 else
6748 echo "$progname: failed program was:" >&5
6749 cat conftest.$ac_ext >&5
6751 rm -rf conftest* conftst*
6753 # Do not use the global_symbol_pipe unless it works.
6754 if test "$pipe_works" = yes; then
6755 break
6756 else
6757 lt_cv_sys_global_symbol_pipe=
6759 done
6763 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6764 lt_cv_sys_global_symbol_to_cdecl=
6766 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6768 $as_echo "failed" >&6; }
6769 else
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6771 $as_echo "ok" >&6; }
6795 # Check whether --enable-libtool-lock was given.
6796 if test "${enable_libtool_lock+set}" = set; then :
6797 enableval=$enable_libtool_lock;
6800 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6802 # Some flags need to be propagated to the compiler or linker for good
6803 # libtool support.
6804 case $host in
6805 ia64-*-hpux*)
6806 # Find out which ABI we are using.
6807 echo 'int i;' > conftest.$ac_ext
6808 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6809 (eval $ac_compile) 2>&5
6810 ac_status=$?
6811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6812 test $ac_status = 0; }; then
6813 case `/usr/bin/file conftest.$ac_objext` in
6814 *ELF-32*)
6815 HPUX_IA64_MODE="32"
6817 *ELF-64*)
6818 HPUX_IA64_MODE="64"
6820 esac
6822 rm -rf conftest*
6824 *-*-irix6*)
6825 # Find out which ABI we are using.
6826 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6828 (eval $ac_compile) 2>&5
6829 ac_status=$?
6830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6831 test $ac_status = 0; }; then
6832 if test "$lt_cv_prog_gnu_ld" = yes; then
6833 case `/usr/bin/file conftest.$ac_objext` in
6834 *32-bit*)
6835 LD="${LD-ld} -melf32bsmip"
6837 *N32*)
6838 LD="${LD-ld} -melf32bmipn32"
6840 *64-bit*)
6841 LD="${LD-ld} -melf64bmip"
6843 esac
6844 else
6845 case `/usr/bin/file conftest.$ac_objext` in
6846 *32-bit*)
6847 LD="${LD-ld} -32"
6849 *N32*)
6850 LD="${LD-ld} -n32"
6852 *64-bit*)
6853 LD="${LD-ld} -64"
6855 esac
6858 rm -rf conftest*
6861 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6862 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6863 # Find out which ABI we are using.
6864 echo 'int i;' > conftest.$ac_ext
6865 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6866 (eval $ac_compile) 2>&5
6867 ac_status=$?
6868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6869 test $ac_status = 0; }; then
6870 case `/usr/bin/file conftest.o` in
6871 *32-bit*)
6872 case $host in
6873 x86_64-*kfreebsd*-gnu)
6874 LD="${LD-ld} -m elf_i386_fbsd"
6876 x86_64-*linux*)
6877 case `/usr/bin/file conftest.o` in
6878 *x86-64*)
6879 LD="${LD-ld} -m elf32_x86_64"
6882 LD="${LD-ld} -m elf_i386"
6884 esac
6886 powerpc64le-*linux*)
6887 LD="${LD-ld} -m elf32lppclinux"
6889 powerpc64-*linux*)
6890 LD="${LD-ld} -m elf32ppclinux"
6892 s390x-*linux*)
6893 LD="${LD-ld} -m elf_s390"
6895 sparc64-*linux*)
6896 LD="${LD-ld} -m elf32_sparc"
6898 esac
6900 *64-bit*)
6901 case $host in
6902 x86_64-*kfreebsd*-gnu)
6903 LD="${LD-ld} -m elf_x86_64_fbsd"
6905 x86_64-*linux*)
6906 LD="${LD-ld} -m elf_x86_64"
6908 powerpcle-*linux*)
6909 LD="${LD-ld} -m elf64lppc"
6911 powerpc-*linux*)
6912 LD="${LD-ld} -m elf64ppc"
6914 s390*-*linux*|s390*-*tpf*)
6915 LD="${LD-ld} -m elf64_s390"
6917 sparc*-*linux*)
6918 LD="${LD-ld} -m elf64_sparc"
6920 esac
6922 esac
6924 rm -rf conftest*
6927 *-*-sco3.2v5*)
6928 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6929 SAVE_CFLAGS="$CFLAGS"
6930 CFLAGS="$CFLAGS -belf"
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6932 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6933 if ${lt_cv_cc_needs_belf+:} false; then :
6934 $as_echo_n "(cached) " >&6
6935 else
6936 ac_ext=c
6937 ac_cpp='$CPP $CPPFLAGS'
6938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943 /* end confdefs.h. */
6946 main ()
6950 return 0;
6952 _ACEOF
6953 if ac_fn_c_try_link "$LINENO"; then :
6954 lt_cv_cc_needs_belf=yes
6955 else
6956 lt_cv_cc_needs_belf=no
6958 rm -f core conftest.err conftest.$ac_objext \
6959 conftest$ac_exeext conftest.$ac_ext
6960 ac_ext=c
6961 ac_cpp='$CPP $CPPFLAGS'
6962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6968 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6969 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6970 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6971 CFLAGS="$SAVE_CFLAGS"
6974 sparc*-*solaris*)
6975 # Find out which ABI we are using.
6976 echo 'int i;' > conftest.$ac_ext
6977 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6978 (eval $ac_compile) 2>&5
6979 ac_status=$?
6980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6981 test $ac_status = 0; }; then
6982 case `/usr/bin/file conftest.o` in
6983 *64-bit*)
6984 case $lt_cv_prog_gnu_ld in
6985 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6987 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6988 LD="${LD-ld} -64"
6991 esac
6993 esac
6995 rm -rf conftest*
6997 esac
6999 need_locks="$enable_libtool_lock"
7002 case $host_os in
7003 rhapsody* | darwin*)
7004 if test -n "$ac_tool_prefix"; then
7005 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7006 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7008 $as_echo_n "checking for $ac_word... " >&6; }
7009 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7010 $as_echo_n "(cached) " >&6
7011 else
7012 if test -n "$DSYMUTIL"; then
7013 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7014 else
7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016 for as_dir in $PATH
7018 IFS=$as_save_IFS
7019 test -z "$as_dir" && as_dir=.
7020 for ac_exec_ext in '' $ac_executable_extensions; do
7021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7022 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7024 break 2
7026 done
7027 done
7028 IFS=$as_save_IFS
7032 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7033 if test -n "$DSYMUTIL"; then
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7035 $as_echo "$DSYMUTIL" >&6; }
7036 else
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038 $as_echo "no" >&6; }
7043 if test -z "$ac_cv_prog_DSYMUTIL"; then
7044 ac_ct_DSYMUTIL=$DSYMUTIL
7045 # Extract the first word of "dsymutil", so it can be a program name with args.
7046 set dummy dsymutil; ac_word=$2
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7048 $as_echo_n "checking for $ac_word... " >&6; }
7049 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7050 $as_echo_n "(cached) " >&6
7051 else
7052 if test -n "$ac_ct_DSYMUTIL"; then
7053 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7054 else
7055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056 for as_dir in $PATH
7058 IFS=$as_save_IFS
7059 test -z "$as_dir" && as_dir=.
7060 for ac_exec_ext in '' $ac_executable_extensions; do
7061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7062 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7064 break 2
7066 done
7067 done
7068 IFS=$as_save_IFS
7072 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7073 if test -n "$ac_ct_DSYMUTIL"; then
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7075 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7076 else
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7078 $as_echo "no" >&6; }
7081 if test "x$ac_ct_DSYMUTIL" = x; then
7082 DSYMUTIL=":"
7083 else
7084 case $cross_compiling:$ac_tool_warned in
7085 yes:)
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7088 ac_tool_warned=yes ;;
7089 esac
7090 DSYMUTIL=$ac_ct_DSYMUTIL
7092 else
7093 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7096 if test -n "$ac_tool_prefix"; then
7097 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7098 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7100 $as_echo_n "checking for $ac_word... " >&6; }
7101 if ${ac_cv_prog_NMEDIT+:} false; then :
7102 $as_echo_n "(cached) " >&6
7103 else
7104 if test -n "$NMEDIT"; then
7105 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7106 else
7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 for as_dir in $PATH
7110 IFS=$as_save_IFS
7111 test -z "$as_dir" && as_dir=.
7112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7114 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7116 break 2
7118 done
7119 done
7120 IFS=$as_save_IFS
7124 NMEDIT=$ac_cv_prog_NMEDIT
7125 if test -n "$NMEDIT"; then
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7127 $as_echo "$NMEDIT" >&6; }
7128 else
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130 $as_echo "no" >&6; }
7135 if test -z "$ac_cv_prog_NMEDIT"; then
7136 ac_ct_NMEDIT=$NMEDIT
7137 # Extract the first word of "nmedit", so it can be a program name with args.
7138 set dummy nmedit; ac_word=$2
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7140 $as_echo_n "checking for $ac_word... " >&6; }
7141 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7142 $as_echo_n "(cached) " >&6
7143 else
7144 if test -n "$ac_ct_NMEDIT"; then
7145 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7146 else
7147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 for as_dir in $PATH
7150 IFS=$as_save_IFS
7151 test -z "$as_dir" && as_dir=.
7152 for ac_exec_ext in '' $ac_executable_extensions; do
7153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7154 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7156 break 2
7158 done
7159 done
7160 IFS=$as_save_IFS
7164 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7165 if test -n "$ac_ct_NMEDIT"; then
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7167 $as_echo "$ac_ct_NMEDIT" >&6; }
7168 else
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170 $as_echo "no" >&6; }
7173 if test "x$ac_ct_NMEDIT" = x; then
7174 NMEDIT=":"
7175 else
7176 case $cross_compiling:$ac_tool_warned in
7177 yes:)
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7180 ac_tool_warned=yes ;;
7181 esac
7182 NMEDIT=$ac_ct_NMEDIT
7184 else
7185 NMEDIT="$ac_cv_prog_NMEDIT"
7188 if test -n "$ac_tool_prefix"; then
7189 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7190 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7192 $as_echo_n "checking for $ac_word... " >&6; }
7193 if ${ac_cv_prog_LIPO+:} false; then :
7194 $as_echo_n "(cached) " >&6
7195 else
7196 if test -n "$LIPO"; then
7197 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7198 else
7199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 for as_dir in $PATH
7202 IFS=$as_save_IFS
7203 test -z "$as_dir" && as_dir=.
7204 for ac_exec_ext in '' $ac_executable_extensions; do
7205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7206 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7208 break 2
7210 done
7211 done
7212 IFS=$as_save_IFS
7216 LIPO=$ac_cv_prog_LIPO
7217 if test -n "$LIPO"; then
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7219 $as_echo "$LIPO" >&6; }
7220 else
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7222 $as_echo "no" >&6; }
7227 if test -z "$ac_cv_prog_LIPO"; then
7228 ac_ct_LIPO=$LIPO
7229 # Extract the first word of "lipo", so it can be a program name with args.
7230 set dummy lipo; ac_word=$2
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7232 $as_echo_n "checking for $ac_word... " >&6; }
7233 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7234 $as_echo_n "(cached) " >&6
7235 else
7236 if test -n "$ac_ct_LIPO"; then
7237 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7238 else
7239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 for as_dir in $PATH
7242 IFS=$as_save_IFS
7243 test -z "$as_dir" && as_dir=.
7244 for ac_exec_ext in '' $ac_executable_extensions; do
7245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7246 ac_cv_prog_ac_ct_LIPO="lipo"
7247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7248 break 2
7250 done
7251 done
7252 IFS=$as_save_IFS
7256 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7257 if test -n "$ac_ct_LIPO"; then
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7259 $as_echo "$ac_ct_LIPO" >&6; }
7260 else
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7262 $as_echo "no" >&6; }
7265 if test "x$ac_ct_LIPO" = x; then
7266 LIPO=":"
7267 else
7268 case $cross_compiling:$ac_tool_warned in
7269 yes:)
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7272 ac_tool_warned=yes ;;
7273 esac
7274 LIPO=$ac_ct_LIPO
7276 else
7277 LIPO="$ac_cv_prog_LIPO"
7280 if test -n "$ac_tool_prefix"; then
7281 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7282 set dummy ${ac_tool_prefix}otool; ac_word=$2
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7284 $as_echo_n "checking for $ac_word... " >&6; }
7285 if ${ac_cv_prog_OTOOL+:} false; then :
7286 $as_echo_n "(cached) " >&6
7287 else
7288 if test -n "$OTOOL"; then
7289 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7290 else
7291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292 for as_dir in $PATH
7294 IFS=$as_save_IFS
7295 test -z "$as_dir" && as_dir=.
7296 for ac_exec_ext in '' $ac_executable_extensions; do
7297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7298 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7300 break 2
7302 done
7303 done
7304 IFS=$as_save_IFS
7308 OTOOL=$ac_cv_prog_OTOOL
7309 if test -n "$OTOOL"; then
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7311 $as_echo "$OTOOL" >&6; }
7312 else
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7314 $as_echo "no" >&6; }
7319 if test -z "$ac_cv_prog_OTOOL"; then
7320 ac_ct_OTOOL=$OTOOL
7321 # Extract the first word of "otool", so it can be a program name with args.
7322 set dummy otool; ac_word=$2
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7324 $as_echo_n "checking for $ac_word... " >&6; }
7325 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7326 $as_echo_n "(cached) " >&6
7327 else
7328 if test -n "$ac_ct_OTOOL"; then
7329 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7330 else
7331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332 for as_dir in $PATH
7334 IFS=$as_save_IFS
7335 test -z "$as_dir" && as_dir=.
7336 for ac_exec_ext in '' $ac_executable_extensions; do
7337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7338 ac_cv_prog_ac_ct_OTOOL="otool"
7339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7340 break 2
7342 done
7343 done
7344 IFS=$as_save_IFS
7348 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7349 if test -n "$ac_ct_OTOOL"; then
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7351 $as_echo "$ac_ct_OTOOL" >&6; }
7352 else
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7354 $as_echo "no" >&6; }
7357 if test "x$ac_ct_OTOOL" = x; then
7358 OTOOL=":"
7359 else
7360 case $cross_compiling:$ac_tool_warned in
7361 yes:)
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7363 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7364 ac_tool_warned=yes ;;
7365 esac
7366 OTOOL=$ac_ct_OTOOL
7368 else
7369 OTOOL="$ac_cv_prog_OTOOL"
7372 if test -n "$ac_tool_prefix"; then
7373 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7374 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7376 $as_echo_n "checking for $ac_word... " >&6; }
7377 if ${ac_cv_prog_OTOOL64+:} false; then :
7378 $as_echo_n "(cached) " >&6
7379 else
7380 if test -n "$OTOOL64"; then
7381 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7382 else
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384 for as_dir in $PATH
7386 IFS=$as_save_IFS
7387 test -z "$as_dir" && as_dir=.
7388 for ac_exec_ext in '' $ac_executable_extensions; do
7389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7390 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7392 break 2
7394 done
7395 done
7396 IFS=$as_save_IFS
7400 OTOOL64=$ac_cv_prog_OTOOL64
7401 if test -n "$OTOOL64"; then
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7403 $as_echo "$OTOOL64" >&6; }
7404 else
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7406 $as_echo "no" >&6; }
7411 if test -z "$ac_cv_prog_OTOOL64"; then
7412 ac_ct_OTOOL64=$OTOOL64
7413 # Extract the first word of "otool64", so it can be a program name with args.
7414 set dummy otool64; ac_word=$2
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7416 $as_echo_n "checking for $ac_word... " >&6; }
7417 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7418 $as_echo_n "(cached) " >&6
7419 else
7420 if test -n "$ac_ct_OTOOL64"; then
7421 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7422 else
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424 for as_dir in $PATH
7426 IFS=$as_save_IFS
7427 test -z "$as_dir" && as_dir=.
7428 for ac_exec_ext in '' $ac_executable_extensions; do
7429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7430 ac_cv_prog_ac_ct_OTOOL64="otool64"
7431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7432 break 2
7434 done
7435 done
7436 IFS=$as_save_IFS
7440 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7441 if test -n "$ac_ct_OTOOL64"; then
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7443 $as_echo "$ac_ct_OTOOL64" >&6; }
7444 else
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7446 $as_echo "no" >&6; }
7449 if test "x$ac_ct_OTOOL64" = x; then
7450 OTOOL64=":"
7451 else
7452 case $cross_compiling:$ac_tool_warned in
7453 yes:)
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7456 ac_tool_warned=yes ;;
7457 esac
7458 OTOOL64=$ac_ct_OTOOL64
7460 else
7461 OTOOL64="$ac_cv_prog_OTOOL64"
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7491 $as_echo_n "checking for -single_module linker flag... " >&6; }
7492 if ${lt_cv_apple_cc_single_mod+:} false; then :
7493 $as_echo_n "(cached) " >&6
7494 else
7495 lt_cv_apple_cc_single_mod=no
7496 if test -z "${LT_MULTI_MODULE}"; then
7497 # By default we will add the -single_module flag. You can override
7498 # by either setting the environment variable LT_MULTI_MODULE
7499 # non-empty at configure time, or by adding -multi_module to the
7500 # link flags.
7501 rm -rf libconftest.dylib*
7502 echo "int foo(void){return 1;}" > conftest.c
7503 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7504 -dynamiclib -Wl,-single_module conftest.c" >&5
7505 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7506 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7507 _lt_result=$?
7508 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7509 lt_cv_apple_cc_single_mod=yes
7510 else
7511 cat conftest.err >&5
7513 rm -rf libconftest.dylib*
7514 rm -f conftest.*
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7518 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7520 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7521 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7522 $as_echo_n "(cached) " >&6
7523 else
7524 lt_cv_ld_exported_symbols_list=no
7525 save_LDFLAGS=$LDFLAGS
7526 echo "_main" > conftest.sym
7527 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7529 /* end confdefs.h. */
7532 main ()
7536 return 0;
7538 _ACEOF
7539 if ac_fn_c_try_link "$LINENO"; then :
7540 lt_cv_ld_exported_symbols_list=yes
7541 else
7542 lt_cv_ld_exported_symbols_list=no
7544 rm -f core conftest.err conftest.$ac_objext \
7545 conftest$ac_exeext conftest.$ac_ext
7546 LDFLAGS="$save_LDFLAGS"
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7550 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7552 $as_echo_n "checking for -force_load linker flag... " >&6; }
7553 if ${lt_cv_ld_force_load+:} false; then :
7554 $as_echo_n "(cached) " >&6
7555 else
7556 lt_cv_ld_force_load=no
7557 cat > conftest.c << _LT_EOF
7558 int forced_loaded() { return 2;}
7559 _LT_EOF
7560 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7561 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7562 echo "$AR cru libconftest.a conftest.o" >&5
7563 $AR cru libconftest.a conftest.o 2>&5
7564 cat > conftest.c << _LT_EOF
7565 int main() { return 0;}
7566 _LT_EOF
7567 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7568 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7569 _lt_result=$?
7570 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7571 lt_cv_ld_force_load=yes
7572 else
7573 cat conftest.err >&5
7575 rm -f conftest.err libconftest.a conftest conftest.c
7576 rm -rf conftest.dSYM
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7580 $as_echo "$lt_cv_ld_force_load" >&6; }
7581 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7582 # build without first building modern cctools / linker.
7583 case $host_cpu-$host_os in
7584 *-rhapsody* | *-darwin1.[012])
7585 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7586 *-darwin1.*)
7587 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7588 *-darwin*)
7589 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7590 # deployment target is forced to an earlier version.
7591 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7592 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7594 10.[012][,.]*)
7595 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7599 esac
7601 esac
7602 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7603 _lt_dar_single_mod='$single_module'
7605 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7606 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7607 else
7608 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7610 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7611 _lt_dsymutil='~$DSYMUTIL $lib || :'
7612 else
7613 _lt_dsymutil=
7616 esac
7618 for ac_header in dlfcn.h
7619 do :
7620 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7622 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7623 cat >>confdefs.h <<_ACEOF
7624 #define HAVE_DLFCN_H 1
7625 _ACEOF
7629 done
7635 # Set options
7639 enable_dlopen=no
7642 enable_win32_dll=no
7646 # Check whether --enable-static was given.
7647 if test "${enable_static+set}" = set; then :
7648 enableval=$enable_static; p=${PACKAGE-default}
7649 case $enableval in
7650 yes) enable_static=yes ;;
7651 no) enable_static=no ;;
7653 enable_static=no
7654 # Look at the argument we got. We use all the common list separators.
7655 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7656 for pkg in $enableval; do
7657 IFS="$lt_save_ifs"
7658 if test "X$pkg" = "X$p"; then
7659 enable_static=yes
7661 done
7662 IFS="$lt_save_ifs"
7664 esac
7665 else
7666 enable_static=yes
7678 # Check whether --with-pic was given.
7679 if test "${with_pic+set}" = set; then :
7680 withval=$with_pic; pic_mode="$withval"
7681 else
7682 pic_mode=default
7686 test -z "$pic_mode" && pic_mode=default
7694 # Check whether --enable-fast-install was given.
7695 if test "${enable_fast_install+set}" = set; then :
7696 enableval=$enable_fast_install; p=${PACKAGE-default}
7697 case $enableval in
7698 yes) enable_fast_install=yes ;;
7699 no) enable_fast_install=no ;;
7701 enable_fast_install=no
7702 # Look at the argument we got. We use all the common list separators.
7703 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7704 for pkg in $enableval; do
7705 IFS="$lt_save_ifs"
7706 if test "X$pkg" = "X$p"; then
7707 enable_fast_install=yes
7709 done
7710 IFS="$lt_save_ifs"
7712 esac
7713 else
7714 enable_fast_install=yes
7727 # This can be used to rebuild libtool when needed
7728 LIBTOOL_DEPS="$ltmain"
7730 # Always use our own libtool.
7731 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7758 test -z "$LN_S" && LN_S="ln -s"
7773 if test -n "${ZSH_VERSION+set}" ; then
7774 setopt NO_GLOB_SUBST
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7778 $as_echo_n "checking for objdir... " >&6; }
7779 if ${lt_cv_objdir+:} false; then :
7780 $as_echo_n "(cached) " >&6
7781 else
7782 rm -f .libs 2>/dev/null
7783 mkdir .libs 2>/dev/null
7784 if test -d .libs; then
7785 lt_cv_objdir=.libs
7786 else
7787 # MS-DOS does not allow filenames that begin with a dot.
7788 lt_cv_objdir=_libs
7790 rmdir .libs 2>/dev/null
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7793 $as_echo "$lt_cv_objdir" >&6; }
7794 objdir=$lt_cv_objdir
7800 cat >>confdefs.h <<_ACEOF
7801 #define LT_OBJDIR "$lt_cv_objdir/"
7802 _ACEOF
7807 case $host_os in
7808 aix3*)
7809 # AIX sometimes has problems with the GCC collect2 program. For some
7810 # reason, if we set the COLLECT_NAMES environment variable, the problems
7811 # vanish in a puff of smoke.
7812 if test "X${COLLECT_NAMES+set}" != Xset; then
7813 COLLECT_NAMES=
7814 export COLLECT_NAMES
7817 esac
7819 # Global variables:
7820 ofile=libtool
7821 can_build_shared=yes
7823 # All known linkers require a `.a' archive for static linking (except MSVC,
7824 # which needs '.lib').
7825 libext=a
7827 with_gnu_ld="$lt_cv_prog_gnu_ld"
7829 old_CC="$CC"
7830 old_CFLAGS="$CFLAGS"
7832 # Set sane defaults for various variables
7833 test -z "$CC" && CC=cc
7834 test -z "$LTCC" && LTCC=$CC
7835 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7836 test -z "$LD" && LD=ld
7837 test -z "$ac_objext" && ac_objext=o
7839 for cc_temp in $compiler""; do
7840 case $cc_temp in
7841 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7842 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7843 \-*) ;;
7844 *) break;;
7845 esac
7846 done
7847 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7850 # Only perform the check for file, if the check method requires it
7851 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7852 case $deplibs_check_method in
7853 file_magic*)
7854 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7856 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7857 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7858 $as_echo_n "(cached) " >&6
7859 else
7860 case $MAGIC_CMD in
7861 [\\/*] | ?:[\\/]*)
7862 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7865 lt_save_MAGIC_CMD="$MAGIC_CMD"
7866 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7867 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7868 for ac_dir in $ac_dummy; do
7869 IFS="$lt_save_ifs"
7870 test -z "$ac_dir" && ac_dir=.
7871 if test -f $ac_dir/${ac_tool_prefix}file; then
7872 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7873 if test -n "$file_magic_test_file"; then
7874 case $deplibs_check_method in
7875 "file_magic "*)
7876 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7877 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7878 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7879 $EGREP "$file_magic_regex" > /dev/null; then
7881 else
7882 cat <<_LT_EOF 1>&2
7884 *** Warning: the command libtool uses to detect shared libraries,
7885 *** $file_magic_cmd, produces output that libtool cannot recognize.
7886 *** The result is that libtool may fail to recognize shared libraries
7887 *** as such. This will affect the creation of libtool libraries that
7888 *** depend on shared libraries, but programs linked with such libtool
7889 *** libraries will work regardless of this problem. Nevertheless, you
7890 *** may want to report the problem to your system manager and/or to
7891 *** bug-libtool@gnu.org
7893 _LT_EOF
7894 fi ;;
7895 esac
7897 break
7899 done
7900 IFS="$lt_save_ifs"
7901 MAGIC_CMD="$lt_save_MAGIC_CMD"
7903 esac
7906 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7907 if test -n "$MAGIC_CMD"; then
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7909 $as_echo "$MAGIC_CMD" >&6; }
7910 else
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7912 $as_echo "no" >&6; }
7919 if test -z "$lt_cv_path_MAGIC_CMD"; then
7920 if test -n "$ac_tool_prefix"; then
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7922 $as_echo_n "checking for file... " >&6; }
7923 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7924 $as_echo_n "(cached) " >&6
7925 else
7926 case $MAGIC_CMD in
7927 [\\/*] | ?:[\\/]*)
7928 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7931 lt_save_MAGIC_CMD="$MAGIC_CMD"
7932 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7933 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7934 for ac_dir in $ac_dummy; do
7935 IFS="$lt_save_ifs"
7936 test -z "$ac_dir" && ac_dir=.
7937 if test -f $ac_dir/file; then
7938 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7939 if test -n "$file_magic_test_file"; then
7940 case $deplibs_check_method in
7941 "file_magic "*)
7942 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7943 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7944 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7945 $EGREP "$file_magic_regex" > /dev/null; then
7947 else
7948 cat <<_LT_EOF 1>&2
7950 *** Warning: the command libtool uses to detect shared libraries,
7951 *** $file_magic_cmd, produces output that libtool cannot recognize.
7952 *** The result is that libtool may fail to recognize shared libraries
7953 *** as such. This will affect the creation of libtool libraries that
7954 *** depend on shared libraries, but programs linked with such libtool
7955 *** libraries will work regardless of this problem. Nevertheless, you
7956 *** may want to report the problem to your system manager and/or to
7957 *** bug-libtool@gnu.org
7959 _LT_EOF
7960 fi ;;
7961 esac
7963 break
7965 done
7966 IFS="$lt_save_ifs"
7967 MAGIC_CMD="$lt_save_MAGIC_CMD"
7969 esac
7972 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7973 if test -n "$MAGIC_CMD"; then
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7975 $as_echo "$MAGIC_CMD" >&6; }
7976 else
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7978 $as_echo "no" >&6; }
7982 else
7983 MAGIC_CMD=:
7989 esac
7991 # Use C for the default configuration in the libtool script
7993 lt_save_CC="$CC"
7994 ac_ext=c
7995 ac_cpp='$CPP $CPPFLAGS'
7996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8001 # Source file extension for C test sources.
8002 ac_ext=c
8004 # Object file extension for compiled C test sources.
8005 objext=o
8006 objext=$objext
8008 # Code to be used in simple compile tests
8009 lt_simple_compile_test_code="int some_variable = 0;"
8011 # Code to be used in simple link tests
8012 lt_simple_link_test_code='int main(){return(0);}'
8020 # If no C compiler was specified, use CC.
8021 LTCC=${LTCC-"$CC"}
8023 # If no C compiler flags were specified, use CFLAGS.
8024 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8026 # Allow CC to be a program name with arguments.
8027 compiler=$CC
8029 # Save the default compiler, since it gets overwritten when the other
8030 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8031 compiler_DEFAULT=$CC
8033 # save warnings/boilerplate of simple test code
8034 ac_outfile=conftest.$ac_objext
8035 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8036 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8037 _lt_compiler_boilerplate=`cat conftest.err`
8038 $RM conftest*
8040 ac_outfile=conftest.$ac_objext
8041 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8042 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8043 _lt_linker_boilerplate=`cat conftest.err`
8044 $RM -r conftest*
8047 ## CAVEAT EMPTOR:
8048 ## There is no encapsulation within the following macros, do not change
8049 ## the running order or otherwise move them around unless you know exactly
8050 ## what you are doing...
8051 if test -n "$compiler"; then
8053 lt_prog_compiler_no_builtin_flag=
8055 if test "$GCC" = yes; then
8056 case $cc_basename in
8057 nvcc*)
8058 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8060 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8061 esac
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8064 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8065 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8066 $as_echo_n "(cached) " >&6
8067 else
8068 lt_cv_prog_compiler_rtti_exceptions=no
8069 ac_outfile=conftest.$ac_objext
8070 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8071 lt_compiler_flag="-fno-rtti -fno-exceptions"
8072 # Insert the option either (1) after the last *FLAGS variable, or
8073 # (2) before a word containing "conftest.", or (3) at the end.
8074 # Note that $ac_compile itself does not contain backslashes and begins
8075 # with a dollar sign (not a hyphen), so the echo should work correctly.
8076 # The option is referenced via a variable to avoid confusing sed.
8077 lt_compile=`echo "$ac_compile" | $SED \
8078 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8079 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8080 -e 's:$: $lt_compiler_flag:'`
8081 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8082 (eval "$lt_compile" 2>conftest.err)
8083 ac_status=$?
8084 cat conftest.err >&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 if (exit $ac_status) && test -s "$ac_outfile"; then
8087 # The compiler can only warn and ignore the option if not recognized
8088 # So say no if there are warnings other than the usual output.
8089 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8090 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8091 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8092 lt_cv_prog_compiler_rtti_exceptions=yes
8095 $RM conftest*
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8099 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8101 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8102 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8103 else
8114 lt_prog_compiler_wl=
8115 lt_prog_compiler_pic=
8116 lt_prog_compiler_static=
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8119 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8121 if test "$GCC" = yes; then
8122 lt_prog_compiler_wl='-Wl,'
8123 lt_prog_compiler_static='-static'
8125 case $host_os in
8126 aix*)
8127 # All AIX code is PIC.
8128 if test "$host_cpu" = ia64; then
8129 # AIX 5 now supports IA64 processor
8130 lt_prog_compiler_static='-Bstatic'
8132 lt_prog_compiler_pic='-fPIC'
8135 amigaos*)
8136 case $host_cpu in
8137 powerpc)
8138 # see comment about AmigaOS4 .so support
8139 lt_prog_compiler_pic='-fPIC'
8141 m68k)
8142 # FIXME: we need at least 68020 code to build shared libraries, but
8143 # adding the `-m68020' flag to GCC prevents building anything better,
8144 # like `-m68040'.
8145 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8147 esac
8150 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8151 # PIC is the default for these OSes.
8154 mingw* | cygwin* | pw32* | os2* | cegcc*)
8155 # This hack is so that the source file can tell whether it is being
8156 # built for inclusion in a dll (and should export symbols for example).
8157 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8158 # (--disable-auto-import) libraries
8159 lt_prog_compiler_pic='-DDLL_EXPORT'
8162 darwin* | rhapsody*)
8163 # PIC is the default on this platform
8164 # Common symbols not allowed in MH_DYLIB files
8165 lt_prog_compiler_pic='-fno-common'
8168 haiku*)
8169 # PIC is the default for Haiku.
8170 # The "-static" flag exists, but is broken.
8171 lt_prog_compiler_static=
8174 hpux*)
8175 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8176 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8177 # sets the default TLS model and affects inlining.
8178 case $host_cpu in
8179 hppa*64*)
8180 # +Z the default
8183 lt_prog_compiler_pic='-fPIC'
8185 esac
8188 interix[3-9]*)
8189 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8190 # Instead, we relocate shared libraries at runtime.
8193 msdosdjgpp*)
8194 # Just because we use GCC doesn't mean we suddenly get shared libraries
8195 # on systems that don't support them.
8196 lt_prog_compiler_can_build_shared=no
8197 enable_shared=no
8200 *nto* | *qnx*)
8201 # QNX uses GNU C++, but need to define -shared option too, otherwise
8202 # it will coredump.
8203 lt_prog_compiler_pic='-fPIC -shared'
8206 sysv4*MP*)
8207 if test -d /usr/nec; then
8208 lt_prog_compiler_pic=-Kconform_pic
8213 lt_prog_compiler_pic='-fPIC'
8215 esac
8217 case $cc_basename in
8218 nvcc*) # Cuda Compiler Driver 2.2
8219 lt_prog_compiler_wl='-Xlinker '
8220 lt_prog_compiler_pic='-Xcompiler -fPIC'
8222 esac
8223 else
8224 # PORTME Check for flag to pass linker flags through the system compiler.
8225 case $host_os in
8226 aix*)
8227 lt_prog_compiler_wl='-Wl,'
8228 if test "$host_cpu" = ia64; then
8229 # AIX 5 now supports IA64 processor
8230 lt_prog_compiler_static='-Bstatic'
8231 else
8232 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8236 mingw* | cygwin* | pw32* | os2* | cegcc*)
8237 # This hack is so that the source file can tell whether it is being
8238 # built for inclusion in a dll (and should export symbols for example).
8239 lt_prog_compiler_pic='-DDLL_EXPORT'
8242 hpux9* | hpux10* | hpux11*)
8243 lt_prog_compiler_wl='-Wl,'
8244 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8245 # not for PA HP-UX.
8246 case $host_cpu in
8247 hppa*64*|ia64*)
8248 # +Z the default
8251 lt_prog_compiler_pic='+Z'
8253 esac
8254 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8255 lt_prog_compiler_static='${wl}-a ${wl}archive'
8258 irix5* | irix6* | nonstopux*)
8259 lt_prog_compiler_wl='-Wl,'
8260 # PIC (with -KPIC) is the default.
8261 lt_prog_compiler_static='-non_shared'
8264 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8265 case $cc_basename in
8266 # old Intel for x86_64 which still supported -KPIC.
8267 ecc*)
8268 lt_prog_compiler_wl='-Wl,'
8269 lt_prog_compiler_pic='-KPIC'
8270 lt_prog_compiler_static='-static'
8272 # icc used to be incompatible with GCC.
8273 # ICC 10 doesn't accept -KPIC any more.
8274 icc* | ifort*)
8275 lt_prog_compiler_wl='-Wl,'
8276 lt_prog_compiler_pic='-fPIC'
8277 lt_prog_compiler_static='-static'
8279 # Lahey Fortran 8.1.
8280 lf95*)
8281 lt_prog_compiler_wl='-Wl,'
8282 lt_prog_compiler_pic='--shared'
8283 lt_prog_compiler_static='--static'
8285 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8286 # Portland Group compilers (*not* the Pentium gcc compiler,
8287 # which looks to be a dead project)
8288 lt_prog_compiler_wl='-Wl,'
8289 lt_prog_compiler_pic='-fpic'
8290 lt_prog_compiler_static='-Bstatic'
8292 ccc*)
8293 lt_prog_compiler_wl='-Wl,'
8294 # All Alpha code is PIC.
8295 lt_prog_compiler_static='-non_shared'
8297 xl* | bgxl* | bgf* | mpixl*)
8298 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8299 lt_prog_compiler_wl='-Wl,'
8300 lt_prog_compiler_pic='-qpic'
8301 lt_prog_compiler_static='-qstaticlink'
8304 case `$CC -V 2>&1 | sed 5q` in
8305 *Sun\ F* | *Sun*Fortran*)
8306 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8307 lt_prog_compiler_pic='-KPIC'
8308 lt_prog_compiler_static='-Bstatic'
8309 lt_prog_compiler_wl=''
8311 *Sun\ C*)
8312 # Sun C 5.9
8313 lt_prog_compiler_pic='-KPIC'
8314 lt_prog_compiler_static='-Bstatic'
8315 lt_prog_compiler_wl='-Wl,'
8317 esac
8319 esac
8322 newsos6)
8323 lt_prog_compiler_pic='-KPIC'
8324 lt_prog_compiler_static='-Bstatic'
8327 *nto* | *qnx*)
8328 # QNX uses GNU C++, but need to define -shared option too, otherwise
8329 # it will coredump.
8330 lt_prog_compiler_pic='-fPIC -shared'
8333 osf3* | osf4* | osf5*)
8334 lt_prog_compiler_wl='-Wl,'
8335 # All OSF/1 code is PIC.
8336 lt_prog_compiler_static='-non_shared'
8339 rdos*)
8340 lt_prog_compiler_static='-non_shared'
8343 solaris*)
8344 lt_prog_compiler_pic='-KPIC'
8345 lt_prog_compiler_static='-Bstatic'
8346 case $cc_basename in
8347 f77* | f90* | f95*)
8348 lt_prog_compiler_wl='-Qoption ld ';;
8350 lt_prog_compiler_wl='-Wl,';;
8351 esac
8354 sunos4*)
8355 lt_prog_compiler_wl='-Qoption ld '
8356 lt_prog_compiler_pic='-PIC'
8357 lt_prog_compiler_static='-Bstatic'
8360 sysv4 | sysv4.2uw2* | sysv4.3*)
8361 lt_prog_compiler_wl='-Wl,'
8362 lt_prog_compiler_pic='-KPIC'
8363 lt_prog_compiler_static='-Bstatic'
8366 sysv4*MP*)
8367 if test -d /usr/nec ;then
8368 lt_prog_compiler_pic='-Kconform_pic'
8369 lt_prog_compiler_static='-Bstatic'
8373 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8374 lt_prog_compiler_wl='-Wl,'
8375 lt_prog_compiler_pic='-KPIC'
8376 lt_prog_compiler_static='-Bstatic'
8379 unicos*)
8380 lt_prog_compiler_wl='-Wl,'
8381 lt_prog_compiler_can_build_shared=no
8384 uts4*)
8385 lt_prog_compiler_pic='-pic'
8386 lt_prog_compiler_static='-Bstatic'
8390 lt_prog_compiler_can_build_shared=no
8392 esac
8395 case $host_os in
8396 # For platforms which do not support PIC, -DPIC is meaningless:
8397 *djgpp*)
8398 lt_prog_compiler_pic=
8401 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8403 esac
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8405 $as_echo "$lt_prog_compiler_pic" >&6; }
8413 # Check to make sure the PIC flag actually works.
8415 if test -n "$lt_prog_compiler_pic"; then
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8417 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8418 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8419 $as_echo_n "(cached) " >&6
8420 else
8421 lt_cv_prog_compiler_pic_works=no
8422 ac_outfile=conftest.$ac_objext
8423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8424 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8425 # Insert the option either (1) after the last *FLAGS variable, or
8426 # (2) before a word containing "conftest.", or (3) at the end.
8427 # Note that $ac_compile itself does not contain backslashes and begins
8428 # with a dollar sign (not a hyphen), so the echo should work correctly.
8429 # The option is referenced via a variable to avoid confusing sed.
8430 lt_compile=`echo "$ac_compile" | $SED \
8431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8433 -e 's:$: $lt_compiler_flag:'`
8434 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8435 (eval "$lt_compile" 2>conftest.err)
8436 ac_status=$?
8437 cat conftest.err >&5
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 if (exit $ac_status) && test -s "$ac_outfile"; then
8440 # The compiler can only warn and ignore the option if not recognized
8441 # So say no if there are warnings other than the usual output.
8442 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8443 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8444 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8445 lt_cv_prog_compiler_pic_works=yes
8448 $RM conftest*
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8452 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8454 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8455 case $lt_prog_compiler_pic in
8456 "" | " "*) ;;
8457 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8458 esac
8459 else
8460 lt_prog_compiler_pic=
8461 lt_prog_compiler_can_build_shared=no
8472 # Check to make sure the static flag actually works.
8474 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8476 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8477 if ${lt_cv_prog_compiler_static_works+:} false; then :
8478 $as_echo_n "(cached) " >&6
8479 else
8480 lt_cv_prog_compiler_static_works=no
8481 save_LDFLAGS="$LDFLAGS"
8482 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8483 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8484 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8485 # The linker can only warn and ignore the option if not recognized
8486 # So say no if there are warnings
8487 if test -s conftest.err; then
8488 # Append any errors to the config.log.
8489 cat conftest.err 1>&5
8490 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8491 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8492 if diff conftest.exp conftest.er2 >/dev/null; then
8493 lt_cv_prog_compiler_static_works=yes
8495 else
8496 lt_cv_prog_compiler_static_works=yes
8499 $RM -r conftest*
8500 LDFLAGS="$save_LDFLAGS"
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8504 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8506 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8508 else
8509 lt_prog_compiler_static=
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8519 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8520 if ${lt_cv_prog_compiler_c_o+:} false; then :
8521 $as_echo_n "(cached) " >&6
8522 else
8523 lt_cv_prog_compiler_c_o=no
8524 $RM -r conftest 2>/dev/null
8525 mkdir conftest
8526 cd conftest
8527 mkdir out
8528 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8530 lt_compiler_flag="-o out/conftest2.$ac_objext"
8531 # Insert the option either (1) after the last *FLAGS variable, or
8532 # (2) before a word containing "conftest.", or (3) at the end.
8533 # Note that $ac_compile itself does not contain backslashes and begins
8534 # with a dollar sign (not a hyphen), so the echo should work correctly.
8535 lt_compile=`echo "$ac_compile" | $SED \
8536 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8537 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8538 -e 's:$: $lt_compiler_flag:'`
8539 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8540 (eval "$lt_compile" 2>out/conftest.err)
8541 ac_status=$?
8542 cat out/conftest.err >&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8545 then
8546 # The compiler can only warn and ignore the option if not recognized
8547 # So say no if there are warnings
8548 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8549 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8550 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8551 lt_cv_prog_compiler_c_o=yes
8554 chmod u+w . 2>&5
8555 $RM conftest*
8556 # SGI C++ compiler will create directory out/ii_files/ for
8557 # template instantiation
8558 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8559 $RM out/* && rmdir out
8560 cd ..
8561 $RM -r conftest
8562 $RM conftest*
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8566 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8574 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8575 if ${lt_cv_prog_compiler_c_o+:} false; then :
8576 $as_echo_n "(cached) " >&6
8577 else
8578 lt_cv_prog_compiler_c_o=no
8579 $RM -r conftest 2>/dev/null
8580 mkdir conftest
8581 cd conftest
8582 mkdir out
8583 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8585 lt_compiler_flag="-o out/conftest2.$ac_objext"
8586 # Insert the option either (1) after the last *FLAGS variable, or
8587 # (2) before a word containing "conftest.", or (3) at the end.
8588 # Note that $ac_compile itself does not contain backslashes and begins
8589 # with a dollar sign (not a hyphen), so the echo should work correctly.
8590 lt_compile=`echo "$ac_compile" | $SED \
8591 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8592 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8593 -e 's:$: $lt_compiler_flag:'`
8594 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8595 (eval "$lt_compile" 2>out/conftest.err)
8596 ac_status=$?
8597 cat out/conftest.err >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8600 then
8601 # The compiler can only warn and ignore the option if not recognized
8602 # So say no if there are warnings
8603 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8604 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8605 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8606 lt_cv_prog_compiler_c_o=yes
8609 chmod u+w . 2>&5
8610 $RM conftest*
8611 # SGI C++ compiler will create directory out/ii_files/ for
8612 # template instantiation
8613 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8614 $RM out/* && rmdir out
8615 cd ..
8616 $RM -r conftest
8617 $RM conftest*
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8621 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8626 hard_links="nottested"
8627 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8628 # do not overwrite the value of need_locks provided by the user
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8630 $as_echo_n "checking if we can lock with hard links... " >&6; }
8631 hard_links=yes
8632 $RM conftest*
8633 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8634 touch conftest.a
8635 ln conftest.a conftest.b 2>&5 || hard_links=no
8636 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8638 $as_echo "$hard_links" >&6; }
8639 if test "$hard_links" = no; then
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8641 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8642 need_locks=warn
8644 else
8645 need_locks=no
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8654 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8656 runpath_var=
8657 allow_undefined_flag=
8658 always_export_symbols=no
8659 archive_cmds=
8660 archive_expsym_cmds=
8661 compiler_needs_object=no
8662 enable_shared_with_static_runtimes=no
8663 export_dynamic_flag_spec=
8664 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8665 hardcode_automatic=no
8666 hardcode_direct=no
8667 hardcode_direct_absolute=no
8668 hardcode_libdir_flag_spec=
8669 hardcode_libdir_flag_spec_ld=
8670 hardcode_libdir_separator=
8671 hardcode_minus_L=no
8672 hardcode_shlibpath_var=unsupported
8673 inherit_rpath=no
8674 link_all_deplibs=unknown
8675 module_cmds=
8676 module_expsym_cmds=
8677 old_archive_from_new_cmds=
8678 old_archive_from_expsyms_cmds=
8679 thread_safe_flag_spec=
8680 whole_archive_flag_spec=
8681 # include_expsyms should be a list of space-separated symbols to be *always*
8682 # included in the symbol list
8683 include_expsyms=
8684 # exclude_expsyms can be an extended regexp of symbols to exclude
8685 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8686 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8687 # as well as any symbol that contains `d'.
8688 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8689 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8690 # platforms (ab)use it in PIC code, but their linkers get confused if
8691 # the symbol is explicitly referenced. Since portable code cannot
8692 # rely on this symbol name, it's probably fine to never include it in
8693 # preloaded symbol tables.
8694 # Exclude shared library initialization/finalization symbols.
8695 extract_expsyms_cmds=
8697 case $host_os in
8698 cygwin* | mingw* | pw32* | cegcc*)
8699 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8700 # When not using gcc, we currently assume that we are using
8701 # Microsoft Visual C++.
8702 if test "$GCC" != yes; then
8703 with_gnu_ld=no
8706 interix*)
8707 # we just hope/assume this is gcc and not c89 (= MSVC++)
8708 with_gnu_ld=yes
8710 openbsd*)
8711 with_gnu_ld=no
8713 esac
8715 ld_shlibs=yes
8717 # On some targets, GNU ld is compatible enough with the native linker
8718 # that we're better off using the native interface for both.
8719 lt_use_gnu_ld_interface=no
8720 if test "$with_gnu_ld" = yes; then
8721 case $host_os in
8722 aix*)
8723 # The AIX port of GNU ld has always aspired to compatibility
8724 # with the native linker. However, as the warning in the GNU ld
8725 # block says, versions before 2.19.5* couldn't really create working
8726 # shared libraries, regardless of the interface used.
8727 case `$LD -v 2>&1` in
8728 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8729 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8730 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8732 lt_use_gnu_ld_interface=yes
8734 esac
8737 lt_use_gnu_ld_interface=yes
8739 esac
8742 if test "$lt_use_gnu_ld_interface" = yes; then
8743 # If archive_cmds runs LD, not CC, wlarc should be empty
8744 wlarc='${wl}'
8746 # Set some defaults for GNU ld with shared library support. These
8747 # are reset later if shared libraries are not supported. Putting them
8748 # here allows them to be overridden if necessary.
8749 runpath_var=LD_RUN_PATH
8750 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8751 export_dynamic_flag_spec='${wl}--export-dynamic'
8752 # ancient GNU ld didn't support --whole-archive et. al.
8753 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8754 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8755 else
8756 whole_archive_flag_spec=
8758 supports_anon_versioning=no
8759 case `$LD -v 2>&1` in
8760 *GNU\ gold*) supports_anon_versioning=yes ;;
8761 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8762 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8763 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8764 *\ 2.11.*) ;; # other 2.11 versions
8765 *) supports_anon_versioning=yes ;;
8766 esac
8768 # See if GNU ld supports shared libraries.
8769 case $host_os in
8770 aix[3-9]*)
8771 # On AIX/PPC, the GNU linker is very broken
8772 if test "$host_cpu" != ia64; then
8773 ld_shlibs=no
8774 cat <<_LT_EOF 1>&2
8776 *** Warning: the GNU linker, at least up to release 2.19, is reported
8777 *** to be unable to reliably create shared libraries on AIX.
8778 *** Therefore, libtool is disabling shared libraries support. If you
8779 *** really care for shared libraries, you may want to install binutils
8780 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8781 *** You will then need to restart the configuration process.
8783 _LT_EOF
8787 amigaos*)
8788 case $host_cpu in
8789 powerpc)
8790 # see comment about AmigaOS4 .so support
8791 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8792 archive_expsym_cmds=''
8794 m68k)
8795 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)'
8796 hardcode_libdir_flag_spec='-L$libdir'
8797 hardcode_minus_L=yes
8799 esac
8802 beos*)
8803 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8804 allow_undefined_flag=unsupported
8805 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8806 # support --undefined. This deserves some investigation. FIXME
8807 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8808 else
8809 ld_shlibs=no
8813 cygwin* | mingw* | pw32* | cegcc*)
8814 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8815 # as there is no search path for DLLs.
8816 hardcode_libdir_flag_spec='-L$libdir'
8817 export_dynamic_flag_spec='${wl}--export-all-symbols'
8818 allow_undefined_flag=unsupported
8819 always_export_symbols=no
8820 enable_shared_with_static_runtimes=yes
8821 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8823 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8824 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8825 # If the export-symbols file already is a .def file (1st line
8826 # is EXPORTS), use it as is; otherwise, prepend...
8827 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8828 cp $export_symbols $output_objdir/$soname.def;
8829 else
8830 echo EXPORTS > $output_objdir/$soname.def;
8831 cat $export_symbols >> $output_objdir/$soname.def;
8833 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8834 else
8835 ld_shlibs=no
8839 haiku*)
8840 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8841 link_all_deplibs=yes
8844 interix[3-9]*)
8845 hardcode_direct=no
8846 hardcode_shlibpath_var=no
8847 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8848 export_dynamic_flag_spec='${wl}-E'
8849 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8850 # Instead, shared libraries are loaded at an image base (0x10000000 by
8851 # default) and relocated if they conflict, which is a slow very memory
8852 # consuming and fragmenting process. To avoid this, we pick a random,
8853 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8854 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8855 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8856 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'
8859 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
8860 tmp_diet=no
8861 if test "$host_os" = linux-dietlibc; then
8862 case $cc_basename in
8863 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8864 esac
8866 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8867 && test "$tmp_diet" = no
8868 then
8869 tmp_addflag=' $pic_flag'
8870 tmp_sharedflag='-shared'
8871 case $cc_basename,$host_cpu in
8872 pgcc*) # Portland Group C compiler
8873 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'
8874 tmp_addflag=' $pic_flag'
8876 pgf77* | pgf90* | pgf95* | pgfortran*)
8877 # Portland Group f77 and f90 compilers
8878 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'
8879 tmp_addflag=' $pic_flag -Mnomain' ;;
8880 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8881 tmp_addflag=' -i_dynamic' ;;
8882 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8883 tmp_addflag=' -i_dynamic -nofor_main' ;;
8884 ifc* | ifort*) # Intel Fortran compiler
8885 tmp_addflag=' -nofor_main' ;;
8886 lf95*) # Lahey Fortran 8.1
8887 whole_archive_flag_spec=
8888 tmp_sharedflag='--shared' ;;
8889 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8890 tmp_sharedflag='-qmkshrobj'
8891 tmp_addflag= ;;
8892 nvcc*) # Cuda Compiler Driver 2.2
8893 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'
8894 compiler_needs_object=yes
8896 esac
8897 case `$CC -V 2>&1 | sed 5q` in
8898 *Sun\ C*) # Sun C 5.9
8899 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'
8900 compiler_needs_object=yes
8901 tmp_sharedflag='-G' ;;
8902 *Sun\ F*) # Sun Fortran 8.3
8903 tmp_sharedflag='-G' ;;
8904 esac
8905 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8907 if test "x$supports_anon_versioning" = xyes; then
8908 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8909 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8910 echo "local: *; };" >> $output_objdir/$libname.ver~
8911 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8914 case $cc_basename in
8915 xlf* | bgf* | bgxlf* | mpixlf*)
8916 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8917 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8918 hardcode_libdir_flag_spec=
8919 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8920 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8921 if test "x$supports_anon_versioning" = xyes; then
8922 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8923 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8924 echo "local: *; };" >> $output_objdir/$libname.ver~
8925 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8928 esac
8929 else
8930 ld_shlibs=no
8934 netbsd*)
8935 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8936 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8937 wlarc=
8938 else
8939 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8940 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8944 solaris*)
8945 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8946 ld_shlibs=no
8947 cat <<_LT_EOF 1>&2
8949 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8950 *** create shared libraries on Solaris systems. Therefore, libtool
8951 *** is disabling shared libraries support. We urge you to upgrade GNU
8952 *** binutils to release 2.9.1 or newer. Another option is to modify
8953 *** your PATH or compiler configuration so that the native linker is
8954 *** used, and then restart.
8956 _LT_EOF
8957 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8958 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8959 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8960 else
8961 ld_shlibs=no
8965 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8966 case `$LD -v 2>&1` in
8967 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8968 ld_shlibs=no
8969 cat <<_LT_EOF 1>&2
8971 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8972 *** reliably create shared libraries on SCO systems. Therefore, libtool
8973 *** is disabling shared libraries support. We urge you to upgrade GNU
8974 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8975 *** your PATH or compiler configuration so that the native linker is
8976 *** used, and then restart.
8978 _LT_EOF
8981 # For security reasons, it is highly recommended that you always
8982 # use absolute paths for naming shared libraries, and exclude the
8983 # DT_RUNPATH tag from executables and libraries. But doing so
8984 # requires that you compile everything twice, which is a pain.
8985 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8986 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8987 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8988 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8989 else
8990 ld_shlibs=no
8993 esac
8996 sunos4*)
8997 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8998 wlarc=
8999 hardcode_direct=yes
9000 hardcode_shlibpath_var=no
9004 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9005 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9006 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9007 else
9008 ld_shlibs=no
9011 esac
9013 if test "$ld_shlibs" = no; then
9014 runpath_var=
9015 hardcode_libdir_flag_spec=
9016 export_dynamic_flag_spec=
9017 whole_archive_flag_spec=
9019 else
9020 # PORTME fill in a description of your system's linker (not GNU ld)
9021 case $host_os in
9022 aix3*)
9023 allow_undefined_flag=unsupported
9024 always_export_symbols=yes
9025 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'
9026 # Note: this linker hardcodes the directories in LIBPATH if there
9027 # are no directories specified by -L.
9028 hardcode_minus_L=yes
9029 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9030 # Neither direct hardcoding nor static linking is supported with a
9031 # broken collect2.
9032 hardcode_direct=unsupported
9036 aix[4-9]*)
9037 if test "$host_cpu" = ia64; then
9038 # On IA64, the linker does run time linking by default, so we don't
9039 # have to do anything special.
9040 aix_use_runtimelinking=no
9041 exp_sym_flag='-Bexport'
9042 no_entry_flag=""
9043 else
9044 # If we're using GNU nm, then we don't want the "-C" option.
9045 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9046 # Also, AIX nm treats weak defined symbols like other global
9047 # defined symbols, whereas GNU nm marks them as "W".
9048 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9049 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'
9050 else
9051 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9053 aix_use_runtimelinking=no
9055 # Test if we are trying to use run time linking or normal
9056 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9057 # need to do runtime linking.
9058 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9059 for ld_flag in $LDFLAGS; do
9060 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9061 aix_use_runtimelinking=yes
9062 break
9064 done
9066 esac
9068 exp_sym_flag='-bexport'
9069 no_entry_flag='-bnoentry'
9072 # When large executables or shared objects are built, AIX ld can
9073 # have problems creating the table of contents. If linking a library
9074 # or program results in "error TOC overflow" add -mminimal-toc to
9075 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9076 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9078 archive_cmds=''
9079 hardcode_direct=yes
9080 hardcode_direct_absolute=yes
9081 hardcode_libdir_separator=':'
9082 link_all_deplibs=yes
9083 file_list_spec='${wl}-f,'
9085 if test "$GCC" = yes; then
9086 case $host_os in aix4.[012]|aix4.[012].*)
9087 # We only want to do this on AIX 4.2 and lower, the check
9088 # below for broken collect2 doesn't work under 4.3+
9089 collect2name=`${CC} -print-prog-name=collect2`
9090 if test -f "$collect2name" &&
9091 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9092 then
9093 # We have reworked collect2
9095 else
9096 # We have old collect2
9097 hardcode_direct=unsupported
9098 # It fails to find uninstalled libraries when the uninstalled
9099 # path is not listed in the libpath. Setting hardcode_minus_L
9100 # to unsupported forces relinking
9101 hardcode_minus_L=yes
9102 hardcode_libdir_flag_spec='-L$libdir'
9103 hardcode_libdir_separator=
9106 esac
9107 shared_flag='-shared'
9108 if test "$aix_use_runtimelinking" = yes; then
9109 shared_flag="$shared_flag "'${wl}-G'
9111 else
9112 # not using gcc
9113 if test "$host_cpu" = ia64; then
9114 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9115 # chokes on -Wl,-G. The following line is correct:
9116 shared_flag='-G'
9117 else
9118 if test "$aix_use_runtimelinking" = yes; then
9119 shared_flag='${wl}-G'
9120 else
9121 shared_flag='${wl}-bM:SRE'
9126 export_dynamic_flag_spec='${wl}-bexpall'
9127 # It seems that -bexpall does not export symbols beginning with
9128 # underscore (_), so it is better to generate a list of symbols to export.
9129 always_export_symbols=yes
9130 if test "$aix_use_runtimelinking" = yes; then
9131 # Warning - without using the other runtime loading flags (-brtl),
9132 # -berok will link without error, but may produce a broken library.
9133 allow_undefined_flag='-berok'
9134 # Determine the default libpath from the value encoded in an
9135 # empty executable.
9136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9137 /* end confdefs.h. */
9140 main ()
9144 return 0;
9146 _ACEOF
9147 if ac_fn_c_try_link "$LINENO"; then :
9149 lt_aix_libpath_sed='
9150 /Import File Strings/,/^$/ {
9151 /^0/ {
9152 s/^0 *\(.*\)$/\1/
9156 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9157 # Check for a 64-bit object if we didn't find anything.
9158 if test -z "$aix_libpath"; then
9159 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9162 rm -f core conftest.err conftest.$ac_objext \
9163 conftest$ac_exeext conftest.$ac_ext
9164 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9166 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9167 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"
9168 else
9169 if test "$host_cpu" = ia64; then
9170 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9171 allow_undefined_flag="-z nodefs"
9172 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"
9173 else
9174 # Determine the default libpath from the value encoded in an
9175 # empty executable.
9176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9177 /* end confdefs.h. */
9180 main ()
9184 return 0;
9186 _ACEOF
9187 if ac_fn_c_try_link "$LINENO"; then :
9189 lt_aix_libpath_sed='
9190 /Import File Strings/,/^$/ {
9191 /^0/ {
9192 s/^0 *\(.*\)$/\1/
9196 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9197 # Check for a 64-bit object if we didn't find anything.
9198 if test -z "$aix_libpath"; then
9199 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9202 rm -f core conftest.err conftest.$ac_objext \
9203 conftest$ac_exeext conftest.$ac_ext
9204 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9206 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9207 # Warning - without using the other run time loading flags,
9208 # -berok will link without error, but may produce a broken library.
9209 no_undefined_flag=' ${wl}-bernotok'
9210 allow_undefined_flag=' ${wl}-berok'
9211 if test "$with_gnu_ld" = yes; then
9212 # We only use this code for GNU lds that support --whole-archive.
9213 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9214 else
9215 # Exported symbols can be pulled into shared objects from archives
9216 whole_archive_flag_spec='$convenience'
9218 archive_cmds_need_lc=yes
9219 # This is similar to how AIX traditionally builds its shared libraries.
9220 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'
9225 amigaos*)
9226 case $host_cpu in
9227 powerpc)
9228 # see comment about AmigaOS4 .so support
9229 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9230 archive_expsym_cmds=''
9232 m68k)
9233 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)'
9234 hardcode_libdir_flag_spec='-L$libdir'
9235 hardcode_minus_L=yes
9237 esac
9240 bsdi[45]*)
9241 export_dynamic_flag_spec=-rdynamic
9244 cygwin* | mingw* | pw32* | cegcc*)
9245 # When not using gcc, we currently assume that we are using
9246 # Microsoft Visual C++.
9247 # hardcode_libdir_flag_spec is actually meaningless, as there is
9248 # no search path for DLLs.
9249 hardcode_libdir_flag_spec=' '
9250 allow_undefined_flag=unsupported
9251 # Tell ltmain to make .lib files, not .a files.
9252 libext=lib
9253 # Tell ltmain to make .dll files, not .so files.
9254 shrext_cmds=".dll"
9255 # FIXME: Setting linknames here is a bad hack.
9256 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9257 # The linker will automatically build a .lib file if we build a DLL.
9258 old_archive_from_new_cmds='true'
9259 # FIXME: Should let the user specify the lib program.
9260 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9261 fix_srcfile_path='`cygpath -w "$srcfile"`'
9262 enable_shared_with_static_runtimes=yes
9265 darwin* | rhapsody*)
9268 archive_cmds_need_lc=no
9269 hardcode_direct=no
9270 hardcode_automatic=yes
9271 hardcode_shlibpath_var=unsupported
9272 if test "$lt_cv_ld_force_load" = "yes"; then
9273 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\"`'
9274 else
9275 whole_archive_flag_spec=''
9277 link_all_deplibs=yes
9278 allow_undefined_flag="$_lt_dar_allow_undefined"
9279 case $cc_basename in
9280 ifort*) _lt_dar_can_shared=yes ;;
9281 *) _lt_dar_can_shared=$GCC ;;
9282 esac
9283 if test "$_lt_dar_can_shared" = "yes"; then
9284 output_verbose_link_cmd=func_echo_all
9285 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9286 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9287 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}"
9288 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}"
9290 else
9291 ld_shlibs=no
9296 dgux*)
9297 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9298 hardcode_libdir_flag_spec='-L$libdir'
9299 hardcode_shlibpath_var=no
9302 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9303 # support. Future versions do this automatically, but an explicit c++rt0.o
9304 # does not break anything, and helps significantly (at the cost of a little
9305 # extra space).
9306 freebsd2.2*)
9307 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9308 hardcode_libdir_flag_spec='-R$libdir'
9309 hardcode_direct=yes
9310 hardcode_shlibpath_var=no
9313 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9314 freebsd2.*)
9315 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9316 hardcode_direct=yes
9317 hardcode_minus_L=yes
9318 hardcode_shlibpath_var=no
9321 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9322 freebsd* | dragonfly*)
9323 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9324 hardcode_libdir_flag_spec='-R$libdir'
9325 hardcode_direct=yes
9326 hardcode_shlibpath_var=no
9329 hpux9*)
9330 if test "$GCC" = yes; then
9331 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'
9332 else
9333 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'
9335 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9336 hardcode_libdir_separator=:
9337 hardcode_direct=yes
9339 # hardcode_minus_L: Not really in the search PATH,
9340 # but as the default location of the library.
9341 hardcode_minus_L=yes
9342 export_dynamic_flag_spec='${wl}-E'
9345 hpux10*)
9346 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9347 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9348 else
9349 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9351 if test "$with_gnu_ld" = no; then
9352 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9353 hardcode_libdir_flag_spec_ld='+b $libdir'
9354 hardcode_libdir_separator=:
9355 hardcode_direct=yes
9356 hardcode_direct_absolute=yes
9357 export_dynamic_flag_spec='${wl}-E'
9358 # hardcode_minus_L: Not really in the search PATH,
9359 # but as the default location of the library.
9360 hardcode_minus_L=yes
9364 hpux11*)
9365 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9366 case $host_cpu in
9367 hppa*64*)
9368 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9370 ia64*)
9371 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9374 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9376 esac
9377 else
9378 case $host_cpu in
9379 hppa*64*)
9380 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9382 ia64*)
9383 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9387 # Older versions of the 11.00 compiler do not understand -b yet
9388 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9390 $as_echo_n "checking if $CC understands -b... " >&6; }
9391 if ${lt_cv_prog_compiler__b+:} false; then :
9392 $as_echo_n "(cached) " >&6
9393 else
9394 lt_cv_prog_compiler__b=no
9395 save_LDFLAGS="$LDFLAGS"
9396 LDFLAGS="$LDFLAGS -b"
9397 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9398 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9399 # The linker can only warn and ignore the option if not recognized
9400 # So say no if there are warnings
9401 if test -s conftest.err; then
9402 # Append any errors to the config.log.
9403 cat conftest.err 1>&5
9404 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9405 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9406 if diff conftest.exp conftest.er2 >/dev/null; then
9407 lt_cv_prog_compiler__b=yes
9409 else
9410 lt_cv_prog_compiler__b=yes
9413 $RM -r conftest*
9414 LDFLAGS="$save_LDFLAGS"
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9418 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9420 if test x"$lt_cv_prog_compiler__b" = xyes; then
9421 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9422 else
9423 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9427 esac
9429 if test "$with_gnu_ld" = no; then
9430 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9431 hardcode_libdir_separator=:
9433 case $host_cpu in
9434 hppa*64*|ia64*)
9435 hardcode_direct=no
9436 hardcode_shlibpath_var=no
9439 hardcode_direct=yes
9440 hardcode_direct_absolute=yes
9441 export_dynamic_flag_spec='${wl}-E'
9443 # hardcode_minus_L: Not really in the search PATH,
9444 # but as the default location of the library.
9445 hardcode_minus_L=yes
9447 esac
9451 irix5* | irix6* | nonstopux*)
9452 if test "$GCC" = yes; then
9453 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'
9454 # Try to use the -exported_symbol ld option, if it does not
9455 # work, assume that -exports_file does not work either and
9456 # implicitly export all symbols.
9457 save_LDFLAGS="$LDFLAGS"
9458 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9460 /* end confdefs.h. */
9461 int foo(void) {}
9462 _ACEOF
9463 if ac_fn_c_try_link "$LINENO"; then :
9464 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'
9467 rm -f core conftest.err conftest.$ac_objext \
9468 conftest$ac_exeext conftest.$ac_ext
9469 LDFLAGS="$save_LDFLAGS"
9470 else
9471 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'
9472 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'
9474 archive_cmds_need_lc='no'
9475 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9476 hardcode_libdir_separator=:
9477 inherit_rpath=yes
9478 link_all_deplibs=yes
9481 netbsd*)
9482 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9483 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9484 else
9485 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9487 hardcode_libdir_flag_spec='-R$libdir'
9488 hardcode_direct=yes
9489 hardcode_shlibpath_var=no
9492 newsos6)
9493 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9494 hardcode_direct=yes
9495 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9496 hardcode_libdir_separator=:
9497 hardcode_shlibpath_var=no
9500 *nto* | *qnx*)
9503 openbsd*)
9504 if test -f /usr/libexec/ld.so; then
9505 hardcode_direct=yes
9506 hardcode_shlibpath_var=no
9507 hardcode_direct_absolute=yes
9508 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9509 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9510 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9511 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9512 export_dynamic_flag_spec='${wl}-E'
9513 else
9514 case $host_os in
9515 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9516 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9517 hardcode_libdir_flag_spec='-R$libdir'
9520 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9521 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9523 esac
9525 else
9526 ld_shlibs=no
9530 os2*)
9531 hardcode_libdir_flag_spec='-L$libdir'
9532 hardcode_minus_L=yes
9533 allow_undefined_flag=unsupported
9534 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'
9535 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9538 osf3*)
9539 if test "$GCC" = yes; then
9540 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9541 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'
9542 else
9543 allow_undefined_flag=' -expect_unresolved \*'
9544 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'
9546 archive_cmds_need_lc='no'
9547 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9548 hardcode_libdir_separator=:
9551 osf4* | osf5*) # as osf3* with the addition of -msym flag
9552 if test "$GCC" = yes; then
9553 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9554 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'
9555 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9556 else
9557 allow_undefined_flag=' -expect_unresolved \*'
9558 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'
9559 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~
9560 $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'
9562 # Both c and cxx compiler support -rpath directly
9563 hardcode_libdir_flag_spec='-rpath $libdir'
9565 archive_cmds_need_lc='no'
9566 hardcode_libdir_separator=:
9569 solaris*)
9570 no_undefined_flag=' -z defs'
9571 if test "$GCC" = yes; then
9572 wlarc='${wl}'
9573 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9574 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9575 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9576 else
9577 case `$CC -V 2>&1` in
9578 *"Compilers 5.0"*)
9579 wlarc=''
9580 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9581 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9582 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9585 wlarc='${wl}'
9586 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9587 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9588 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9590 esac
9592 hardcode_libdir_flag_spec='-R$libdir'
9593 hardcode_shlibpath_var=no
9594 case $host_os in
9595 solaris2.[0-5] | solaris2.[0-5].*) ;;
9597 # The compiler driver will combine and reorder linker options,
9598 # but understands `-z linker_flag'. GCC discards it without `$wl',
9599 # but is careful enough not to reorder.
9600 # Supported since Solaris 2.6 (maybe 2.5.1?)
9601 if test "$GCC" = yes; then
9602 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9603 else
9604 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9607 esac
9608 link_all_deplibs=yes
9611 sunos4*)
9612 if test "x$host_vendor" = xsequent; then
9613 # Use $CC to link under sequent, because it throws in some extra .o
9614 # files that make .init and .fini sections work.
9615 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9616 else
9617 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9619 hardcode_libdir_flag_spec='-L$libdir'
9620 hardcode_direct=yes
9621 hardcode_minus_L=yes
9622 hardcode_shlibpath_var=no
9625 sysv4)
9626 case $host_vendor in
9627 sni)
9628 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9629 hardcode_direct=yes # is this really true???
9631 siemens)
9632 ## LD is ld it makes a PLAMLIB
9633 ## CC just makes a GrossModule.
9634 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9635 reload_cmds='$CC -r -o $output$reload_objs'
9636 hardcode_direct=no
9638 motorola)
9639 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9640 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9642 esac
9643 runpath_var='LD_RUN_PATH'
9644 hardcode_shlibpath_var=no
9647 sysv4.3*)
9648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9649 hardcode_shlibpath_var=no
9650 export_dynamic_flag_spec='-Bexport'
9653 sysv4*MP*)
9654 if test -d /usr/nec; then
9655 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9656 hardcode_shlibpath_var=no
9657 runpath_var=LD_RUN_PATH
9658 hardcode_runpath_var=yes
9659 ld_shlibs=yes
9663 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9664 no_undefined_flag='${wl}-z,text'
9665 archive_cmds_need_lc=no
9666 hardcode_shlibpath_var=no
9667 runpath_var='LD_RUN_PATH'
9669 if test "$GCC" = yes; then
9670 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9671 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9672 else
9673 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9674 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9678 sysv5* | sco3.2v5* | sco5v6*)
9679 # Note: We can NOT use -z defs as we might desire, because we do not
9680 # link with -lc, and that would cause any symbols used from libc to
9681 # always be unresolved, which means just about no library would
9682 # ever link correctly. If we're not using GNU ld we use -z text
9683 # though, which does catch some bad symbols but isn't as heavy-handed
9684 # as -z defs.
9685 no_undefined_flag='${wl}-z,text'
9686 allow_undefined_flag='${wl}-z,nodefs'
9687 archive_cmds_need_lc=no
9688 hardcode_shlibpath_var=no
9689 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9690 hardcode_libdir_separator=':'
9691 link_all_deplibs=yes
9692 export_dynamic_flag_spec='${wl}-Bexport'
9693 runpath_var='LD_RUN_PATH'
9695 if test "$GCC" = yes; then
9696 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9697 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9698 else
9699 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9700 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9704 uts4*)
9705 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9706 hardcode_libdir_flag_spec='-L$libdir'
9707 hardcode_shlibpath_var=no
9711 ld_shlibs=no
9713 esac
9715 if test x$host_vendor = xsni; then
9716 case $host in
9717 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9718 export_dynamic_flag_spec='${wl}-Blargedynsym'
9720 esac
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9725 $as_echo "$ld_shlibs" >&6; }
9726 test "$ld_shlibs" = no && can_build_shared=no
9728 with_gnu_ld=$with_gnu_ld
9745 # Do we need to explicitly link libc?
9747 case "x$archive_cmds_need_lc" in
9748 x|xyes)
9749 # Assume -lc should be added
9750 archive_cmds_need_lc=yes
9752 if test "$enable_shared" = yes && test "$GCC" = yes; then
9753 case $archive_cmds in
9754 *'~'*)
9755 # FIXME: we may have to deal with multi-command sequences.
9757 '$CC '*)
9758 # Test whether the compiler implicitly links with -lc since on some
9759 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9760 # to ld, don't add -lc before -lgcc.
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9762 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9763 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9764 $as_echo_n "(cached) " >&6
9765 else
9766 $RM conftest*
9767 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9769 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9770 (eval $ac_compile) 2>&5
9771 ac_status=$?
9772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9773 test $ac_status = 0; } 2>conftest.err; then
9774 soname=conftest
9775 lib=conftest
9776 libobjs=conftest.$ac_objext
9777 deplibs=
9778 wl=$lt_prog_compiler_wl
9779 pic_flag=$lt_prog_compiler_pic
9780 compiler_flags=-v
9781 linker_flags=-v
9782 verstring=
9783 output_objdir=.
9784 libname=conftest
9785 lt_save_allow_undefined_flag=$allow_undefined_flag
9786 allow_undefined_flag=
9787 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9788 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9789 ac_status=$?
9790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9791 test $ac_status = 0; }
9792 then
9793 lt_cv_archive_cmds_need_lc=no
9794 else
9795 lt_cv_archive_cmds_need_lc=yes
9797 allow_undefined_flag=$lt_save_allow_undefined_flag
9798 else
9799 cat conftest.err 1>&5
9801 $RM conftest*
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9805 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9806 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9808 esac
9811 esac
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9970 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9972 if test "$GCC" = yes; then
9973 case $host_os in
9974 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9975 *) lt_awk_arg="/^libraries:/" ;;
9976 esac
9977 case $host_os in
9978 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9979 *) lt_sed_strip_eq="s,=/,/,g" ;;
9980 esac
9981 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9982 case $lt_search_path_spec in
9983 *\;*)
9984 # if the path contains ";" then we assume it to be the separator
9985 # otherwise default to the standard path separator (i.e. ":") - it is
9986 # assumed that no part of a normal pathname contains ";" but that should
9987 # okay in the real world where ";" in dirpaths is itself problematic.
9988 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9991 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9993 esac
9994 # Ok, now we have the path, separated by spaces, we can step through it
9995 # and add multilib dir if necessary.
9996 lt_tmp_lt_search_path_spec=
9997 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9998 for lt_sys_path in $lt_search_path_spec; do
9999 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10000 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10001 else
10002 test -d "$lt_sys_path" && \
10003 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10005 done
10006 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10007 BEGIN {RS=" "; FS="/|\n";} {
10008 lt_foo="";
10009 lt_count=0;
10010 for (lt_i = NF; lt_i > 0; lt_i--) {
10011 if ($lt_i != "" && $lt_i != ".") {
10012 if ($lt_i == "..") {
10013 lt_count++;
10014 } else {
10015 if (lt_count == 0) {
10016 lt_foo="/" $lt_i lt_foo;
10017 } else {
10018 lt_count--;
10023 if (lt_foo != "") { lt_freq[lt_foo]++; }
10024 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10026 # AWK program above erroneously prepends '/' to C:/dos/paths
10027 # for these hosts.
10028 case $host_os in
10029 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10030 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10031 esac
10032 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10033 else
10034 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10036 library_names_spec=
10037 libname_spec='lib$name'
10038 soname_spec=
10039 shrext_cmds=".so"
10040 postinstall_cmds=
10041 postuninstall_cmds=
10042 finish_cmds=
10043 finish_eval=
10044 shlibpath_var=
10045 shlibpath_overrides_runpath=unknown
10046 version_type=none
10047 dynamic_linker="$host_os ld.so"
10048 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10049 need_lib_prefix=unknown
10050 hardcode_into_libs=no
10052 # when you set need_version to no, make sure it does not cause -set_version
10053 # flags to be left without arguments
10054 need_version=unknown
10056 case $host_os in
10057 aix3*)
10058 version_type=linux
10059 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10060 shlibpath_var=LIBPATH
10062 # AIX 3 has no versioning support, so we append a major version to the name.
10063 soname_spec='${libname}${release}${shared_ext}$major'
10066 aix[4-9]*)
10067 version_type=linux
10068 need_lib_prefix=no
10069 need_version=no
10070 hardcode_into_libs=yes
10071 if test "$host_cpu" = ia64; then
10072 # AIX 5 supports IA64
10073 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10074 shlibpath_var=LD_LIBRARY_PATH
10075 else
10076 # With GCC up to 2.95.x, collect2 would create an import file
10077 # for dependence libraries. The import file would start with
10078 # the line `#! .'. This would cause the generated library to
10079 # depend on `.', always an invalid library. This was fixed in
10080 # development snapshots of GCC prior to 3.0.
10081 case $host_os in
10082 aix4 | aix4.[01] | aix4.[01].*)
10083 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10084 echo ' yes '
10085 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10087 else
10088 can_build_shared=no
10091 esac
10092 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10093 # soname into executable. Probably we can add versioning support to
10094 # collect2, so additional links can be useful in future.
10095 if test "$aix_use_runtimelinking" = yes; then
10096 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10097 # instead of lib<name>.a to let people know that these are not
10098 # typical AIX shared libraries.
10099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10100 else
10101 # We preserve .a as extension for shared libraries through AIX4.2
10102 # and later when we are not doing run time linking.
10103 library_names_spec='${libname}${release}.a $libname.a'
10104 soname_spec='${libname}${release}${shared_ext}$major'
10106 shlibpath_var=LIBPATH
10110 amigaos*)
10111 case $host_cpu in
10112 powerpc)
10113 # Since July 2007 AmigaOS4 officially supports .so libraries.
10114 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10117 m68k)
10118 library_names_spec='$libname.ixlibrary $libname.a'
10119 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10120 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'
10122 esac
10125 beos*)
10126 library_names_spec='${libname}${shared_ext}'
10127 dynamic_linker="$host_os ld.so"
10128 shlibpath_var=LIBRARY_PATH
10131 bsdi[45]*)
10132 version_type=linux
10133 need_version=no
10134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10135 soname_spec='${libname}${release}${shared_ext}$major'
10136 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10137 shlibpath_var=LD_LIBRARY_PATH
10138 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10139 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10140 # the default ld.so.conf also contains /usr/contrib/lib and
10141 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10142 # libtool to hard-code these into programs
10145 cygwin* | mingw* | pw32* | cegcc*)
10146 version_type=windows
10147 shrext_cmds=".dll"
10148 need_version=no
10149 need_lib_prefix=no
10151 case $GCC,$host_os in
10152 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10153 library_names_spec='$libname.dll.a'
10154 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10155 postinstall_cmds='base_file=`basename \${file}`~
10156 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10157 dldir=$destdir/`dirname \$dlpath`~
10158 test -d \$dldir || mkdir -p \$dldir~
10159 $install_prog $dir/$dlname \$dldir/$dlname~
10160 chmod a+x \$dldir/$dlname~
10161 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10162 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10164 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10165 dlpath=$dir/\$dldll~
10166 $RM \$dlpath'
10167 shlibpath_overrides_runpath=yes
10169 case $host_os in
10170 cygwin*)
10171 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10172 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10174 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10176 mingw* | cegcc*)
10177 # MinGW DLLs use traditional 'lib' prefix
10178 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10180 pw32*)
10181 # pw32 DLLs use 'pw' prefix rather than 'lib'
10182 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10184 esac
10188 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10190 esac
10191 dynamic_linker='Win32 ld.exe'
10192 # FIXME: first we should search . and the directory the executable is in
10193 shlibpath_var=PATH
10196 darwin* | rhapsody*)
10197 dynamic_linker="$host_os dyld"
10198 version_type=darwin
10199 need_lib_prefix=no
10200 need_version=no
10201 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10202 soname_spec='${libname}${release}${major}$shared_ext'
10203 shlibpath_overrides_runpath=yes
10204 shlibpath_var=DYLD_LIBRARY_PATH
10205 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10207 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10208 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10211 dgux*)
10212 version_type=linux
10213 need_lib_prefix=no
10214 need_version=no
10215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10216 soname_spec='${libname}${release}${shared_ext}$major'
10217 shlibpath_var=LD_LIBRARY_PATH
10220 freebsd* | dragonfly*)
10221 # DragonFly does not have aout. When/if they implement a new
10222 # versioning mechanism, adjust this.
10223 if test -x /usr/bin/objformat; then
10224 objformat=`/usr/bin/objformat`
10225 else
10226 case $host_os in
10227 freebsd[23].*) objformat=aout ;;
10228 *) objformat=elf ;;
10229 esac
10231 version_type=freebsd-$objformat
10232 case $version_type in
10233 freebsd-elf*)
10234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10235 need_version=no
10236 need_lib_prefix=no
10238 freebsd-*)
10239 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10240 need_version=yes
10242 esac
10243 shlibpath_var=LD_LIBRARY_PATH
10244 case $host_os in
10245 freebsd2.*)
10246 shlibpath_overrides_runpath=yes
10248 freebsd3.[01]* | freebsdelf3.[01]*)
10249 shlibpath_overrides_runpath=yes
10250 hardcode_into_libs=yes
10252 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10253 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10254 shlibpath_overrides_runpath=no
10255 hardcode_into_libs=yes
10257 *) # from 4.6 on, and DragonFly
10258 shlibpath_overrides_runpath=yes
10259 hardcode_into_libs=yes
10261 esac
10264 haiku*)
10265 version_type=linux
10266 need_lib_prefix=no
10267 need_version=no
10268 dynamic_linker="$host_os runtime_loader"
10269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10270 soname_spec='${libname}${release}${shared_ext}$major'
10271 shlibpath_var=LIBRARY_PATH
10272 shlibpath_overrides_runpath=yes
10273 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10274 hardcode_into_libs=yes
10277 hpux9* | hpux10* | hpux11*)
10278 # Give a soname corresponding to the major version so that dld.sl refuses to
10279 # link against other versions.
10280 version_type=sunos
10281 need_lib_prefix=no
10282 need_version=no
10283 case $host_cpu in
10284 ia64*)
10285 shrext_cmds='.so'
10286 hardcode_into_libs=yes
10287 dynamic_linker="$host_os dld.so"
10288 shlibpath_var=LD_LIBRARY_PATH
10289 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10291 soname_spec='${libname}${release}${shared_ext}$major'
10292 if test "X$HPUX_IA64_MODE" = X32; then
10293 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10294 else
10295 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10297 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10299 hppa*64*)
10300 shrext_cmds='.sl'
10301 hardcode_into_libs=yes
10302 dynamic_linker="$host_os dld.sl"
10303 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10304 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10306 soname_spec='${libname}${release}${shared_ext}$major'
10307 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10308 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10311 shrext_cmds='.sl'
10312 dynamic_linker="$host_os dld.sl"
10313 shlibpath_var=SHLIB_PATH
10314 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10316 soname_spec='${libname}${release}${shared_ext}$major'
10318 esac
10319 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10320 postinstall_cmds='chmod 555 $lib'
10321 # or fails outright, so override atomically:
10322 install_override_mode=555
10325 interix[3-9]*)
10326 version_type=linux
10327 need_lib_prefix=no
10328 need_version=no
10329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10330 soname_spec='${libname}${release}${shared_ext}$major'
10331 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10332 shlibpath_var=LD_LIBRARY_PATH
10333 shlibpath_overrides_runpath=no
10334 hardcode_into_libs=yes
10337 irix5* | irix6* | nonstopux*)
10338 case $host_os in
10339 nonstopux*) version_type=nonstopux ;;
10341 if test "$lt_cv_prog_gnu_ld" = yes; then
10342 version_type=linux
10343 else
10344 version_type=irix
10345 fi ;;
10346 esac
10347 need_lib_prefix=no
10348 need_version=no
10349 soname_spec='${libname}${release}${shared_ext}$major'
10350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10351 case $host_os in
10352 irix5* | nonstopux*)
10353 libsuff= shlibsuff=
10356 case $LD in # libtool.m4 will add one of these switches to LD
10357 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10358 libsuff= shlibsuff= libmagic=32-bit;;
10359 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10360 libsuff=32 shlibsuff=N32 libmagic=N32;;
10361 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10362 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10363 *) libsuff= shlibsuff= libmagic=never-match;;
10364 esac
10366 esac
10367 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10368 shlibpath_overrides_runpath=no
10369 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10370 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10371 hardcode_into_libs=yes
10374 # No shared lib support for Linux oldld, aout, or coff.
10375 linux*oldld* | linux*aout* | linux*coff*)
10376 dynamic_linker=no
10379 # This must be Linux ELF.
10381 # uclinux* changes (here and below) have been submitted to the libtool
10382 # project, but have not yet been accepted: they are GCC-local changes
10383 # for the time being. (See
10384 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10385 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10386 version_type=linux
10387 need_lib_prefix=no
10388 need_version=no
10389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10390 soname_spec='${libname}${release}${shared_ext}$major'
10391 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10392 shlibpath_var=LD_LIBRARY_PATH
10393 shlibpath_overrides_runpath=no
10395 # Some binutils ld are patched to set DT_RUNPATH
10396 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10397 $as_echo_n "(cached) " >&6
10398 else
10399 lt_cv_shlibpath_overrides_runpath=no
10400 save_LDFLAGS=$LDFLAGS
10401 save_libdir=$libdir
10402 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10403 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10405 /* end confdefs.h. */
10408 main ()
10412 return 0;
10414 _ACEOF
10415 if ac_fn_c_try_link "$LINENO"; then :
10416 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10417 lt_cv_shlibpath_overrides_runpath=yes
10420 rm -f core conftest.err conftest.$ac_objext \
10421 conftest$ac_exeext conftest.$ac_ext
10422 LDFLAGS=$save_LDFLAGS
10423 libdir=$save_libdir
10427 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10429 # This implies no fast_install, which is unacceptable.
10430 # Some rework will be needed to allow for fast_install
10431 # before this can be enabled.
10432 hardcode_into_libs=yes
10434 # Append ld.so.conf contents to the search path
10435 if test -f /etc/ld.so.conf; then
10436 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' ' '`
10437 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10440 # We used to test for /lib/ld.so.1 and disable shared libraries on
10441 # powerpc, because MkLinux only supported shared libraries with the
10442 # GNU dynamic linker. Since this was broken with cross compilers,
10443 # most powerpc-linux boxes support dynamic linking these days and
10444 # people can always --disable-shared, the test was removed, and we
10445 # assume the GNU/Linux dynamic linker is in use.
10446 dynamic_linker='GNU/Linux ld.so'
10449 netbsd*)
10450 version_type=sunos
10451 need_lib_prefix=no
10452 need_version=no
10453 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10455 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10456 dynamic_linker='NetBSD (a.out) ld.so'
10457 else
10458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10459 soname_spec='${libname}${release}${shared_ext}$major'
10460 dynamic_linker='NetBSD ld.elf_so'
10462 shlibpath_var=LD_LIBRARY_PATH
10463 shlibpath_overrides_runpath=yes
10464 hardcode_into_libs=yes
10467 newsos6)
10468 version_type=linux
10469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10470 shlibpath_var=LD_LIBRARY_PATH
10471 shlibpath_overrides_runpath=yes
10474 *nto* | *qnx*)
10475 version_type=qnx
10476 need_lib_prefix=no
10477 need_version=no
10478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10479 soname_spec='${libname}${release}${shared_ext}$major'
10480 shlibpath_var=LD_LIBRARY_PATH
10481 shlibpath_overrides_runpath=no
10482 hardcode_into_libs=yes
10483 dynamic_linker='ldqnx.so'
10486 openbsd*)
10487 version_type=sunos
10488 sys_lib_dlsearch_path_spec="/usr/lib"
10489 need_lib_prefix=no
10490 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10491 case $host_os in
10492 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10493 *) need_version=no ;;
10494 esac
10495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10496 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10497 shlibpath_var=LD_LIBRARY_PATH
10498 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10499 case $host_os in
10500 openbsd2.[89] | openbsd2.[89].*)
10501 shlibpath_overrides_runpath=no
10504 shlibpath_overrides_runpath=yes
10506 esac
10507 else
10508 shlibpath_overrides_runpath=yes
10512 os2*)
10513 libname_spec='$name'
10514 shrext_cmds=".dll"
10515 need_lib_prefix=no
10516 library_names_spec='$libname${shared_ext} $libname.a'
10517 dynamic_linker='OS/2 ld.exe'
10518 shlibpath_var=LIBPATH
10521 osf3* | osf4* | osf5*)
10522 version_type=osf
10523 need_lib_prefix=no
10524 need_version=no
10525 soname_spec='${libname}${release}${shared_ext}$major'
10526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10527 shlibpath_var=LD_LIBRARY_PATH
10528 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10529 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10532 rdos*)
10533 dynamic_linker=no
10536 solaris*)
10537 version_type=linux
10538 need_lib_prefix=no
10539 need_version=no
10540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10541 soname_spec='${libname}${release}${shared_ext}$major'
10542 shlibpath_var=LD_LIBRARY_PATH
10543 shlibpath_overrides_runpath=yes
10544 hardcode_into_libs=yes
10545 # ldd complains unless libraries are executable
10546 postinstall_cmds='chmod +x $lib'
10549 sunos4*)
10550 version_type=sunos
10551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10552 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10553 shlibpath_var=LD_LIBRARY_PATH
10554 shlibpath_overrides_runpath=yes
10555 if test "$with_gnu_ld" = yes; then
10556 need_lib_prefix=no
10558 need_version=yes
10561 sysv4 | sysv4.3*)
10562 version_type=linux
10563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10564 soname_spec='${libname}${release}${shared_ext}$major'
10565 shlibpath_var=LD_LIBRARY_PATH
10566 case $host_vendor in
10567 sni)
10568 shlibpath_overrides_runpath=no
10569 need_lib_prefix=no
10570 runpath_var=LD_RUN_PATH
10572 siemens)
10573 need_lib_prefix=no
10575 motorola)
10576 need_lib_prefix=no
10577 need_version=no
10578 shlibpath_overrides_runpath=no
10579 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10581 esac
10584 sysv4*MP*)
10585 if test -d /usr/nec ;then
10586 version_type=linux
10587 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10588 soname_spec='$libname${shared_ext}.$major'
10589 shlibpath_var=LD_LIBRARY_PATH
10593 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10594 version_type=freebsd-elf
10595 need_lib_prefix=no
10596 need_version=no
10597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10598 soname_spec='${libname}${release}${shared_ext}$major'
10599 shlibpath_var=LD_LIBRARY_PATH
10600 shlibpath_overrides_runpath=yes
10601 hardcode_into_libs=yes
10602 if test "$with_gnu_ld" = yes; then
10603 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10604 else
10605 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10606 case $host_os in
10607 sco3.2v5*)
10608 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10610 esac
10612 sys_lib_dlsearch_path_spec='/usr/lib'
10615 tpf*)
10616 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10617 version_type=linux
10618 need_lib_prefix=no
10619 need_version=no
10620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10621 shlibpath_var=LD_LIBRARY_PATH
10622 shlibpath_overrides_runpath=no
10623 hardcode_into_libs=yes
10626 uts4*)
10627 version_type=linux
10628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10629 soname_spec='${libname}${release}${shared_ext}$major'
10630 shlibpath_var=LD_LIBRARY_PATH
10633 # Shared libraries for VwWorks, >= 7 only at this stage
10634 # and (fpic) still incompatible with "large" code models
10635 # in a few configurations. Only for RTP mode in any case,
10636 # and upon explicit request at configure time.
10637 vxworks7*)
10638 dynamic_linker=no
10639 case ${with_multisubdir}-${enable_shared} in
10640 *large*)
10642 *mrtp*-yes)
10643 version_type=linux
10644 need_lib_prefix=no
10645 need_version=no
10646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10647 soname_spec='${libname}${release}${shared_ext}$major'
10648 dynamic_linker="$host_os module_loader"
10650 esac
10653 dynamic_linker=no
10655 esac
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10657 $as_echo "$dynamic_linker" >&6; }
10658 test "$dynamic_linker" = no && can_build_shared=no
10660 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10661 if test "$GCC" = yes; then
10662 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10665 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10666 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10668 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10669 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10764 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10765 hardcode_action=
10766 if test -n "$hardcode_libdir_flag_spec" ||
10767 test -n "$runpath_var" ||
10768 test "X$hardcode_automatic" = "Xyes" ; then
10770 # We can hardcode non-existent directories.
10771 if test "$hardcode_direct" != no &&
10772 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10773 # have to relink, otherwise we might link with an installed library
10774 # when we should be linking with a yet-to-be-installed one
10775 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10776 test "$hardcode_minus_L" != no; then
10777 # Linking always hardcodes the temporary library directory.
10778 hardcode_action=relink
10779 else
10780 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10781 hardcode_action=immediate
10783 else
10784 # We cannot hardcode anything, or else we can only hardcode existing
10785 # directories.
10786 hardcode_action=unsupported
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10789 $as_echo "$hardcode_action" >&6; }
10791 if test "$hardcode_action" = relink ||
10792 test "$inherit_rpath" = yes; then
10793 # Fast installation is not supported
10794 enable_fast_install=no
10795 elif test "$shlibpath_overrides_runpath" = yes ||
10796 test "$enable_shared" = no; then
10797 # Fast installation is not necessary
10798 enable_fast_install=needless
10806 if test "x$enable_dlopen" != xyes; then
10807 enable_dlopen=unknown
10808 enable_dlopen_self=unknown
10809 enable_dlopen_self_static=unknown
10810 else
10811 lt_cv_dlopen=no
10812 lt_cv_dlopen_libs=
10814 case $host_os in
10815 beos*)
10816 lt_cv_dlopen="load_add_on"
10817 lt_cv_dlopen_libs=
10818 lt_cv_dlopen_self=yes
10821 mingw* | pw32* | cegcc*)
10822 lt_cv_dlopen="LoadLibrary"
10823 lt_cv_dlopen_libs=
10826 cygwin*)
10827 lt_cv_dlopen="dlopen"
10828 lt_cv_dlopen_libs=
10831 darwin*)
10832 # if libdl is installed we need to link against it
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10834 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10835 if ${ac_cv_lib_dl_dlopen+:} false; then :
10836 $as_echo_n "(cached) " >&6
10837 else
10838 ac_check_lib_save_LIBS=$LIBS
10839 LIBS="-ldl $LIBS"
10840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10841 /* end confdefs.h. */
10843 /* Override any GCC internal prototype to avoid an error.
10844 Use char because int might match the return type of a GCC
10845 builtin and then its argument prototype would still apply. */
10846 #ifdef __cplusplus
10847 extern "C"
10848 #endif
10849 char dlopen ();
10851 main ()
10853 return dlopen ();
10855 return 0;
10857 _ACEOF
10858 if ac_fn_c_try_link "$LINENO"; then :
10859 ac_cv_lib_dl_dlopen=yes
10860 else
10861 ac_cv_lib_dl_dlopen=no
10863 rm -f core conftest.err conftest.$ac_objext \
10864 conftest$ac_exeext conftest.$ac_ext
10865 LIBS=$ac_check_lib_save_LIBS
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10868 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10869 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10870 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10871 else
10873 lt_cv_dlopen="dyld"
10874 lt_cv_dlopen_libs=
10875 lt_cv_dlopen_self=yes
10882 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10883 if test "x$ac_cv_func_shl_load" = xyes; then :
10884 lt_cv_dlopen="shl_load"
10885 else
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10887 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10888 if ${ac_cv_lib_dld_shl_load+:} false; then :
10889 $as_echo_n "(cached) " >&6
10890 else
10891 ac_check_lib_save_LIBS=$LIBS
10892 LIBS="-ldld $LIBS"
10893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10894 /* end confdefs.h. */
10896 /* Override any GCC internal prototype to avoid an error.
10897 Use char because int might match the return type of a GCC
10898 builtin and then its argument prototype would still apply. */
10899 #ifdef __cplusplus
10900 extern "C"
10901 #endif
10902 char shl_load ();
10904 main ()
10906 return shl_load ();
10908 return 0;
10910 _ACEOF
10911 if ac_fn_c_try_link "$LINENO"; then :
10912 ac_cv_lib_dld_shl_load=yes
10913 else
10914 ac_cv_lib_dld_shl_load=no
10916 rm -f core conftest.err conftest.$ac_objext \
10917 conftest$ac_exeext conftest.$ac_ext
10918 LIBS=$ac_check_lib_save_LIBS
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10921 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10922 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10923 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10924 else
10925 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10926 if test "x$ac_cv_func_dlopen" = xyes; then :
10927 lt_cv_dlopen="dlopen"
10928 else
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10930 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10931 if ${ac_cv_lib_dl_dlopen+:} false; then :
10932 $as_echo_n "(cached) " >&6
10933 else
10934 ac_check_lib_save_LIBS=$LIBS
10935 LIBS="-ldl $LIBS"
10936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10937 /* end confdefs.h. */
10939 /* Override any GCC internal prototype to avoid an error.
10940 Use char because int might match the return type of a GCC
10941 builtin and then its argument prototype would still apply. */
10942 #ifdef __cplusplus
10943 extern "C"
10944 #endif
10945 char dlopen ();
10947 main ()
10949 return dlopen ();
10951 return 0;
10953 _ACEOF
10954 if ac_fn_c_try_link "$LINENO"; then :
10955 ac_cv_lib_dl_dlopen=yes
10956 else
10957 ac_cv_lib_dl_dlopen=no
10959 rm -f core conftest.err conftest.$ac_objext \
10960 conftest$ac_exeext conftest.$ac_ext
10961 LIBS=$ac_check_lib_save_LIBS
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10964 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10965 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10966 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10967 else
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10969 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10970 if ${ac_cv_lib_svld_dlopen+:} false; then :
10971 $as_echo_n "(cached) " >&6
10972 else
10973 ac_check_lib_save_LIBS=$LIBS
10974 LIBS="-lsvld $LIBS"
10975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10976 /* end confdefs.h. */
10978 /* Override any GCC internal prototype to avoid an error.
10979 Use char because int might match the return type of a GCC
10980 builtin and then its argument prototype would still apply. */
10981 #ifdef __cplusplus
10982 extern "C"
10983 #endif
10984 char dlopen ();
10986 main ()
10988 return dlopen ();
10990 return 0;
10992 _ACEOF
10993 if ac_fn_c_try_link "$LINENO"; then :
10994 ac_cv_lib_svld_dlopen=yes
10995 else
10996 ac_cv_lib_svld_dlopen=no
10998 rm -f core conftest.err conftest.$ac_objext \
10999 conftest$ac_exeext conftest.$ac_ext
11000 LIBS=$ac_check_lib_save_LIBS
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11003 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11004 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11005 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11006 else
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11008 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11009 if ${ac_cv_lib_dld_dld_link+:} false; then :
11010 $as_echo_n "(cached) " >&6
11011 else
11012 ac_check_lib_save_LIBS=$LIBS
11013 LIBS="-ldld $LIBS"
11014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11015 /* end confdefs.h. */
11017 /* Override any GCC internal prototype to avoid an error.
11018 Use char because int might match the return type of a GCC
11019 builtin and then its argument prototype would still apply. */
11020 #ifdef __cplusplus
11021 extern "C"
11022 #endif
11023 char dld_link ();
11025 main ()
11027 return dld_link ();
11029 return 0;
11031 _ACEOF
11032 if ac_fn_c_try_link "$LINENO"; then :
11033 ac_cv_lib_dld_dld_link=yes
11034 else
11035 ac_cv_lib_dld_dld_link=no
11037 rm -f core conftest.err conftest.$ac_objext \
11038 conftest$ac_exeext conftest.$ac_ext
11039 LIBS=$ac_check_lib_save_LIBS
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11042 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11043 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11044 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11063 esac
11065 if test "x$lt_cv_dlopen" != xno; then
11066 enable_dlopen=yes
11067 else
11068 enable_dlopen=no
11071 case $lt_cv_dlopen in
11072 dlopen)
11073 save_CPPFLAGS="$CPPFLAGS"
11074 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11076 save_LDFLAGS="$LDFLAGS"
11077 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11079 save_LIBS="$LIBS"
11080 LIBS="$lt_cv_dlopen_libs $LIBS"
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11083 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11084 if ${lt_cv_dlopen_self+:} false; then :
11085 $as_echo_n "(cached) " >&6
11086 else
11087 if test "$cross_compiling" = yes; then :
11088 lt_cv_dlopen_self=cross
11089 else
11090 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11091 lt_status=$lt_dlunknown
11092 cat > conftest.$ac_ext <<_LT_EOF
11093 #line 11093 "configure"
11094 #include "confdefs.h"
11096 #if HAVE_DLFCN_H
11097 #include <dlfcn.h>
11098 #endif
11100 #include <stdio.h>
11102 #ifdef RTLD_GLOBAL
11103 # define LT_DLGLOBAL RTLD_GLOBAL
11104 #else
11105 # ifdef DL_GLOBAL
11106 # define LT_DLGLOBAL DL_GLOBAL
11107 # else
11108 # define LT_DLGLOBAL 0
11109 # endif
11110 #endif
11112 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11113 find out it does not work in some platform. */
11114 #ifndef LT_DLLAZY_OR_NOW
11115 # ifdef RTLD_LAZY
11116 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11117 # else
11118 # ifdef DL_LAZY
11119 # define LT_DLLAZY_OR_NOW DL_LAZY
11120 # else
11121 # ifdef RTLD_NOW
11122 # define LT_DLLAZY_OR_NOW RTLD_NOW
11123 # else
11124 # ifdef DL_NOW
11125 # define LT_DLLAZY_OR_NOW DL_NOW
11126 # else
11127 # define LT_DLLAZY_OR_NOW 0
11128 # endif
11129 # endif
11130 # endif
11131 # endif
11132 #endif
11134 /* When -fvisbility=hidden is used, assume the code has been annotated
11135 correspondingly for the symbols needed. */
11136 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11137 void fnord () __attribute__((visibility("default")));
11138 #endif
11140 void fnord () { int i=42; }
11141 int main ()
11143 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11144 int status = $lt_dlunknown;
11146 if (self)
11148 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11149 else
11151 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11152 else puts (dlerror ());
11154 /* dlclose (self); */
11156 else
11157 puts (dlerror ());
11159 return status;
11161 _LT_EOF
11162 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11163 (eval $ac_link) 2>&5
11164 ac_status=$?
11165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11166 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11167 (./conftest; exit; ) >&5 2>/dev/null
11168 lt_status=$?
11169 case x$lt_status in
11170 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11171 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11172 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11173 esac
11174 else :
11175 # compilation failed
11176 lt_cv_dlopen_self=no
11179 rm -fr conftest*
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11184 $as_echo "$lt_cv_dlopen_self" >&6; }
11186 if test "x$lt_cv_dlopen_self" = xyes; then
11187 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11189 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11190 if ${lt_cv_dlopen_self_static+:} false; then :
11191 $as_echo_n "(cached) " >&6
11192 else
11193 if test "$cross_compiling" = yes; then :
11194 lt_cv_dlopen_self_static=cross
11195 else
11196 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11197 lt_status=$lt_dlunknown
11198 cat > conftest.$ac_ext <<_LT_EOF
11199 #line 11199 "configure"
11200 #include "confdefs.h"
11202 #if HAVE_DLFCN_H
11203 #include <dlfcn.h>
11204 #endif
11206 #include <stdio.h>
11208 #ifdef RTLD_GLOBAL
11209 # define LT_DLGLOBAL RTLD_GLOBAL
11210 #else
11211 # ifdef DL_GLOBAL
11212 # define LT_DLGLOBAL DL_GLOBAL
11213 # else
11214 # define LT_DLGLOBAL 0
11215 # endif
11216 #endif
11218 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11219 find out it does not work in some platform. */
11220 #ifndef LT_DLLAZY_OR_NOW
11221 # ifdef RTLD_LAZY
11222 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11223 # else
11224 # ifdef DL_LAZY
11225 # define LT_DLLAZY_OR_NOW DL_LAZY
11226 # else
11227 # ifdef RTLD_NOW
11228 # define LT_DLLAZY_OR_NOW RTLD_NOW
11229 # else
11230 # ifdef DL_NOW
11231 # define LT_DLLAZY_OR_NOW DL_NOW
11232 # else
11233 # define LT_DLLAZY_OR_NOW 0
11234 # endif
11235 # endif
11236 # endif
11237 # endif
11238 #endif
11240 /* When -fvisbility=hidden is used, assume the code has been annotated
11241 correspondingly for the symbols needed. */
11242 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11243 void fnord () __attribute__((visibility("default")));
11244 #endif
11246 void fnord () { int i=42; }
11247 int main ()
11249 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11250 int status = $lt_dlunknown;
11252 if (self)
11254 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11255 else
11257 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11258 else puts (dlerror ());
11260 /* dlclose (self); */
11262 else
11263 puts (dlerror ());
11265 return status;
11267 _LT_EOF
11268 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11269 (eval $ac_link) 2>&5
11270 ac_status=$?
11271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11272 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11273 (./conftest; exit; ) >&5 2>/dev/null
11274 lt_status=$?
11275 case x$lt_status in
11276 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11277 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11278 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11279 esac
11280 else :
11281 # compilation failed
11282 lt_cv_dlopen_self_static=no
11285 rm -fr conftest*
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11290 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11293 CPPFLAGS="$save_CPPFLAGS"
11294 LDFLAGS="$save_LDFLAGS"
11295 LIBS="$save_LIBS"
11297 esac
11299 case $lt_cv_dlopen_self in
11300 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11301 *) enable_dlopen_self=unknown ;;
11302 esac
11304 case $lt_cv_dlopen_self_static in
11305 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11306 *) enable_dlopen_self_static=unknown ;;
11307 esac
11326 striplib=
11327 old_striplib=
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11329 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11330 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11331 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11332 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11334 $as_echo "yes" >&6; }
11335 else
11336 # FIXME - insert some real tests, host_os isn't really good enough
11337 case $host_os in
11338 darwin*)
11339 if test -n "$STRIP" ; then
11340 striplib="$STRIP -x"
11341 old_striplib="$STRIP -S"
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11343 $as_echo "yes" >&6; }
11344 else
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11346 $as_echo "no" >&6; }
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11351 $as_echo "no" >&6; }
11353 esac
11367 # Report which library types will actually be built
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11369 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11371 $as_echo "$can_build_shared" >&6; }
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11374 $as_echo_n "checking whether to build shared libraries... " >&6; }
11375 test "$can_build_shared" = "no" && enable_shared=no
11377 # On AIX, shared libraries and static libraries use the same namespace, and
11378 # are all built from PIC.
11379 case $host_os in
11380 aix3*)
11381 test "$enable_shared" = yes && enable_static=no
11382 if test -n "$RANLIB"; then
11383 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11384 postinstall_cmds='$RANLIB $lib'
11388 aix[4-9]*)
11389 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11390 test "$enable_shared" = yes && enable_static=no
11393 esac
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11395 $as_echo "$enable_shared" >&6; }
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11398 $as_echo_n "checking whether to build static libraries... " >&6; }
11399 # Make sure either enable_shared or enable_static is yes.
11400 test "$enable_shared" = yes || enable_static=yes
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11402 $as_echo "$enable_static" >&6; }
11408 ac_ext=c
11409 ac_cpp='$CPP $CPPFLAGS'
11410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11414 CC="$lt_save_CC"
11428 ac_config_commands="$ac_config_commands libtool"
11433 # Only expand once:
11437 ac_checking=
11438 . ${srcdir}/../bfd/development.sh
11439 test "$development" = true && ac_checking=yes
11440 # Check whether --enable-checking was given.
11441 if test "${enable_checking+set}" = set; then :
11442 enableval=$enable_checking; case "${enableval}" in
11443 no|none) ac_checking= ;;
11444 *) ac_checking=yes ;;
11445 esac
11447 if test x$ac_checking != x ; then
11449 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
11453 # Check whether --enable-targets was given.
11454 if test "${enable_targets+set}" = set; then :
11455 enableval=$enable_targets; case "${enableval}" in
11456 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
11458 no) enable_targets= ;;
11459 *) enable_targets=$enableval ;;
11460 esac
11464 # Set the 'development' global.
11465 . $srcdir/../bfd/development.sh
11467 # Set acp_cpp_for_build variable
11468 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
11470 # Default set of GCC warnings to enable.
11471 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11472 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11474 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
11475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11476 /* end confdefs.h. */
11477 __GNUC__
11478 _ACEOF
11479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11480 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
11482 else
11483 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
11485 rm -f conftest*
11488 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
11489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11490 /* end confdefs.h. */
11491 __GNUC__
11492 _ACEOF
11493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11494 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
11496 else
11497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11498 /* end confdefs.h. */
11499 __clang__
11500 _ACEOF
11501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11502 $EGREP "^__clang__$" >/dev/null 2>&1; then :
11503 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
11505 rm -f conftest*
11508 rm -f conftest*
11511 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
11512 WARN_WRITE_STRINGS=""
11513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11514 /* end confdefs.h. */
11515 __GNUC__
11516 _ACEOF
11517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11518 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
11520 else
11521 WARN_WRITE_STRINGS="-Wwrite-strings"
11523 rm -f conftest*
11526 # Verify CC_FOR_BUILD to be compatible with warning flags
11528 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
11529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11530 /* end confdefs.h. */
11531 __GNUC__
11532 _ACEOF
11533 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
11534 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
11536 else
11537 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
11539 rm -f conftest*
11542 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
11543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11544 /* end confdefs.h. */
11545 __GNUC__
11546 _ACEOF
11547 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
11548 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
11550 else
11551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11552 /* end confdefs.h. */
11553 __clang__
11554 _ACEOF
11555 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
11556 $EGREP "^__clang__$" >/dev/null 2>&1; then :
11557 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
11559 rm -f conftest*
11562 rm -f conftest*
11565 # Check whether --enable-werror was given.
11566 if test "${enable_werror+set}" = set; then :
11567 enableval=$enable_werror; case "${enableval}" in
11568 yes | y) ERROR_ON_WARNING="yes" ;;
11569 no | n) ERROR_ON_WARNING="no" ;;
11570 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
11571 esac
11575 # Disable -Wformat by default when using gcc on mingw
11576 case "${host}" in
11577 *-*-mingw32*)
11578 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11579 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11580 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
11583 *) ;;
11584 esac
11586 # Enable -Werror by default when using gcc. Turn it off for releases.
11587 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
11588 ERROR_ON_WARNING=yes
11591 NO_WERROR=
11592 if test "${ERROR_ON_WARNING}" = yes ; then
11593 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11594 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
11595 NO_WERROR="-Wno-error"
11598 if test "${GCC}" = yes ; then
11599 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11600 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
11603 # Check whether --enable-build-warnings was given.
11604 if test "${enable_build_warnings+set}" = set; then :
11605 enableval=$enable_build_warnings; case "${enableval}" in
11606 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11607 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
11608 no) if test "${GCC}" = yes ; then
11609 WARN_CFLAGS="-w"
11610 WARN_CFLAGS_FOR_BUILD="-w"
11611 fi;;
11612 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11613 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
11614 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
11615 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11616 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
11617 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
11618 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
11619 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11620 esac
11624 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11625 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11634 ac_config_headers="$ac_config_headers config.h:config.in"
11637 # PR 14072
11640 if test -z "$target" ; then
11641 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11646 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11647 # Check whether --enable-maintainer-mode was given.
11648 if test "${enable_maintainer_mode+set}" = set; then :
11649 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11650 else
11651 USE_MAINTAINER_MODE=no
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11655 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11656 if test $USE_MAINTAINER_MODE = yes; then
11657 MAINTAINER_MODE_TRUE=
11658 MAINTAINER_MODE_FALSE='#'
11659 else
11660 MAINTAINER_MODE_TRUE='#'
11661 MAINTAINER_MODE_FALSE=
11664 MAINT=$MAINTAINER_MODE_TRUE
11667 case ${build_alias} in
11668 "") build_noncanonical=${build} ;;
11669 *) build_noncanonical=${build_alias} ;;
11670 esac
11672 case ${host_alias} in
11673 "") host_noncanonical=${build_noncanonical} ;;
11674 *) host_noncanonical=${host_alias} ;;
11675 esac
11677 case ${target_alias} in
11678 "") target_noncanonical=${host_noncanonical} ;;
11679 *) target_noncanonical=${target_alias} ;;
11680 esac
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
11683 $as_echo_n "checking whether to install libbfd... " >&6; }
11684 # Check whether --enable-install-libbfd was given.
11685 if test "${enable_install_libbfd+set}" = set; then :
11686 enableval=$enable_install_libbfd; install_libbfd_p=$enableval
11687 else
11688 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
11689 install_libbfd_p=yes
11690 else
11691 install_libbfd_p=no
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
11696 $as_echo "$install_libbfd_p" >&6; }
11697 if test $install_libbfd_p = yes; then
11698 INSTALL_LIBBFD_TRUE=
11699 INSTALL_LIBBFD_FALSE='#'
11700 else
11701 INSTALL_LIBBFD_TRUE='#'
11702 INSTALL_LIBBFD_FALSE=
11705 # Need _noncanonical variables for this.
11710 # libbfd.a is a host library containing target dependent code
11711 bfdlibdir='$(libdir)'
11712 bfdincludedir='$(includedir)'
11713 if test "${host}" != "${target}"; then
11714 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
11715 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
11725 # host-specific stuff:
11727 ALL_LINGUAS="da de es fi fr ga id it nl pt_BR ro sr sv tr uk vi zh_CN"
11729 MKINSTALLDIRS=
11730 if test -n "$ac_aux_dir"; then
11731 case "$ac_aux_dir" in
11732 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11733 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11734 esac
11736 if test -z "$MKINSTALLDIRS"; then
11737 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11743 $as_echo_n "checking whether NLS is requested... " >&6; }
11744 # Check whether --enable-nls was given.
11745 if test "${enable_nls+set}" = set; then :
11746 enableval=$enable_nls; USE_NLS=$enableval
11747 else
11748 USE_NLS=yes
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11752 $as_echo "$USE_NLS" >&6; }
11759 # Prepare PATH_SEPARATOR.
11760 # The user is always right.
11761 if test "${PATH_SEPARATOR+set}" != set; then
11762 echo "#! /bin/sh" >conf$$.sh
11763 echo "exit 0" >>conf$$.sh
11764 chmod +x conf$$.sh
11765 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11766 PATH_SEPARATOR=';'
11767 else
11768 PATH_SEPARATOR=:
11770 rm -f conf$$.sh
11773 # Find out how to test for executable files. Don't use a zero-byte file,
11774 # as systems may use methods other than mode bits to determine executability.
11775 cat >conf$$.file <<_ASEOF
11776 #! /bin/sh
11777 exit 0
11778 _ASEOF
11779 chmod +x conf$$.file
11780 if test -x conf$$.file >/dev/null 2>&1; then
11781 ac_executable_p="test -x"
11782 else
11783 ac_executable_p="test -f"
11785 rm -f conf$$.file
11787 # Extract the first word of "msgfmt", so it can be a program name with args.
11788 set dummy msgfmt; ac_word=$2
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11790 $as_echo_n "checking for $ac_word... " >&6; }
11791 if ${ac_cv_path_MSGFMT+:} false; then :
11792 $as_echo_n "(cached) " >&6
11793 else
11794 case "$MSGFMT" in
11795 [\\/]* | ?:[\\/]*)
11796 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11799 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11800 for ac_dir in $PATH; do
11801 IFS="$ac_save_IFS"
11802 test -z "$ac_dir" && ac_dir=.
11803 for ac_exec_ext in '' $ac_executable_extensions; do
11804 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11805 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11806 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11807 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11808 break 2
11811 done
11812 done
11813 IFS="$ac_save_IFS"
11814 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11816 esac
11818 MSGFMT="$ac_cv_path_MSGFMT"
11819 if test "$MSGFMT" != ":"; then
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11821 $as_echo "$MSGFMT" >&6; }
11822 else
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11824 $as_echo "no" >&6; }
11827 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11828 set dummy gmsgfmt; ac_word=$2
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11830 $as_echo_n "checking for $ac_word... " >&6; }
11831 if ${ac_cv_path_GMSGFMT+:} false; then :
11832 $as_echo_n "(cached) " >&6
11833 else
11834 case $GMSGFMT in
11835 [\\/]* | ?:[\\/]*)
11836 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11840 for as_dir in $PATH
11842 IFS=$as_save_IFS
11843 test -z "$as_dir" && as_dir=.
11844 for ac_exec_ext in '' $ac_executable_extensions; do
11845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11846 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11848 break 2
11850 done
11851 done
11852 IFS=$as_save_IFS
11854 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11856 esac
11858 GMSGFMT=$ac_cv_path_GMSGFMT
11859 if test -n "$GMSGFMT"; then
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11861 $as_echo "$GMSGFMT" >&6; }
11862 else
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11864 $as_echo "no" >&6; }
11870 # Prepare PATH_SEPARATOR.
11871 # The user is always right.
11872 if test "${PATH_SEPARATOR+set}" != set; then
11873 echo "#! /bin/sh" >conf$$.sh
11874 echo "exit 0" >>conf$$.sh
11875 chmod +x conf$$.sh
11876 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11877 PATH_SEPARATOR=';'
11878 else
11879 PATH_SEPARATOR=:
11881 rm -f conf$$.sh
11884 # Find out how to test for executable files. Don't use a zero-byte file,
11885 # as systems may use methods other than mode bits to determine executability.
11886 cat >conf$$.file <<_ASEOF
11887 #! /bin/sh
11888 exit 0
11889 _ASEOF
11890 chmod +x conf$$.file
11891 if test -x conf$$.file >/dev/null 2>&1; then
11892 ac_executable_p="test -x"
11893 else
11894 ac_executable_p="test -f"
11896 rm -f conf$$.file
11898 # Extract the first word of "xgettext", so it can be a program name with args.
11899 set dummy xgettext; ac_word=$2
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11901 $as_echo_n "checking for $ac_word... " >&6; }
11902 if ${ac_cv_path_XGETTEXT+:} false; then :
11903 $as_echo_n "(cached) " >&6
11904 else
11905 case "$XGETTEXT" in
11906 [\\/]* | ?:[\\/]*)
11907 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11910 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11911 for ac_dir in $PATH; do
11912 IFS="$ac_save_IFS"
11913 test -z "$ac_dir" && ac_dir=.
11914 for ac_exec_ext in '' $ac_executable_extensions; do
11915 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11916 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11917 (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
11918 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11919 break 2
11922 done
11923 done
11924 IFS="$ac_save_IFS"
11925 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11927 esac
11929 XGETTEXT="$ac_cv_path_XGETTEXT"
11930 if test "$XGETTEXT" != ":"; then
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11932 $as_echo "$XGETTEXT" >&6; }
11933 else
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11935 $as_echo "no" >&6; }
11938 rm -f messages.po
11941 # Prepare PATH_SEPARATOR.
11942 # The user is always right.
11943 if test "${PATH_SEPARATOR+set}" != set; then
11944 echo "#! /bin/sh" >conf$$.sh
11945 echo "exit 0" >>conf$$.sh
11946 chmod +x conf$$.sh
11947 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11948 PATH_SEPARATOR=';'
11949 else
11950 PATH_SEPARATOR=:
11952 rm -f conf$$.sh
11955 # Find out how to test for executable files. Don't use a zero-byte file,
11956 # as systems may use methods other than mode bits to determine executability.
11957 cat >conf$$.file <<_ASEOF
11958 #! /bin/sh
11959 exit 0
11960 _ASEOF
11961 chmod +x conf$$.file
11962 if test -x conf$$.file >/dev/null 2>&1; then
11963 ac_executable_p="test -x"
11964 else
11965 ac_executable_p="test -f"
11967 rm -f conf$$.file
11969 # Extract the first word of "msgmerge", so it can be a program name with args.
11970 set dummy msgmerge; ac_word=$2
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11972 $as_echo_n "checking for $ac_word... " >&6; }
11973 if ${ac_cv_path_MSGMERGE+:} false; then :
11974 $as_echo_n "(cached) " >&6
11975 else
11976 case "$MSGMERGE" in
11977 [\\/]* | ?:[\\/]*)
11978 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11981 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11982 for ac_dir in $PATH; do
11983 IFS="$ac_save_IFS"
11984 test -z "$ac_dir" && ac_dir=.
11985 for ac_exec_ext in '' $ac_executable_extensions; do
11986 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11987 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11988 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11989 break 2
11992 done
11993 done
11994 IFS="$ac_save_IFS"
11995 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11997 esac
11999 MSGMERGE="$ac_cv_path_MSGMERGE"
12000 if test "$MSGMERGE" != ":"; then
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12002 $as_echo "$MSGMERGE" >&6; }
12003 else
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12005 $as_echo "no" >&6; }
12009 if test "$GMSGFMT" != ":"; then
12010 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12011 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12013 else
12014 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12016 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12017 GMSGFMT=":"
12021 if test "$XGETTEXT" != ":"; then
12022 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12023 (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
12025 else
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12027 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12028 XGETTEXT=":"
12030 rm -f messages.po
12033 ac_config_commands="$ac_config_commands default-1"
12037 if test "X$prefix" = "XNONE"; then
12038 acl_final_prefix="$ac_default_prefix"
12039 else
12040 acl_final_prefix="$prefix"
12042 if test "X$exec_prefix" = "XNONE"; then
12043 acl_final_exec_prefix='${prefix}'
12044 else
12045 acl_final_exec_prefix="$exec_prefix"
12047 acl_save_prefix="$prefix"
12048 prefix="$acl_final_prefix"
12049 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12050 prefix="$acl_save_prefix"
12053 # Check whether --with-gnu-ld was given.
12054 if test "${with_gnu_ld+set}" = set; then :
12055 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12056 else
12057 with_gnu_ld=no
12060 # Prepare PATH_SEPARATOR.
12061 # The user is always right.
12062 if test "${PATH_SEPARATOR+set}" != set; then
12063 echo "#! /bin/sh" >conf$$.sh
12064 echo "exit 0" >>conf$$.sh
12065 chmod +x conf$$.sh
12066 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12067 PATH_SEPARATOR=';'
12068 else
12069 PATH_SEPARATOR=:
12071 rm -f conf$$.sh
12073 ac_prog=ld
12074 if test "$GCC" = yes; then
12075 # Check if gcc -print-prog-name=ld gives a path.
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12077 $as_echo_n "checking for ld used by GCC... " >&6; }
12078 case $host in
12079 *-*-mingw*)
12080 # gcc leaves a trailing carriage return which upsets mingw
12081 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12083 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12084 esac
12085 case $ac_prog in
12086 # Accept absolute paths.
12087 [\\/]* | [A-Za-z]:[\\/]*)
12088 re_direlt='/[^/][^/]*/\.\./'
12089 # Canonicalize the path of ld
12090 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12091 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12092 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12093 done
12094 test -z "$LD" && LD="$ac_prog"
12097 # If it fails, then pretend we aren't using GCC.
12098 ac_prog=ld
12101 # If it is relative, then search for the first ld in PATH.
12102 with_gnu_ld=unknown
12104 esac
12105 elif test "$with_gnu_ld" = yes; then
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12107 $as_echo_n "checking for GNU ld... " >&6; }
12108 else
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12110 $as_echo_n "checking for non-GNU ld... " >&6; }
12112 if ${acl_cv_path_LD+:} false; then :
12113 $as_echo_n "(cached) " >&6
12114 else
12115 if test -z "$LD"; then
12116 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12117 for ac_dir in $PATH; do
12118 test -z "$ac_dir" && ac_dir=.
12119 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12120 acl_cv_path_LD="$ac_dir/$ac_prog"
12121 # Check to see if the program is GNU ld. I'd rather use --version,
12122 # but apparently some GNU ld's only accept -v.
12123 # Break only if it was the GNU/non-GNU ld that we prefer.
12124 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
12125 test "$with_gnu_ld" != no && break
12126 else
12127 test "$with_gnu_ld" != yes && break
12130 done
12131 IFS="$ac_save_ifs"
12132 else
12133 acl_cv_path_LD="$LD" # Let the user override the test with a path.
12137 LD="$acl_cv_path_LD"
12138 if test -n "$LD"; then
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12140 $as_echo "$LD" >&6; }
12141 else
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12143 $as_echo "no" >&6; }
12145 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12147 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12148 if ${acl_cv_prog_gnu_ld+:} false; then :
12149 $as_echo_n "(cached) " >&6
12150 else
12151 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12152 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
12153 acl_cv_prog_gnu_ld=yes
12154 else
12155 acl_cv_prog_gnu_ld=no
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12159 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12160 with_gnu_ld=$acl_cv_prog_gnu_ld
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12165 $as_echo_n "checking for shared library run path origin... " >&6; }
12166 if ${acl_cv_rpath+:} false; then :
12167 $as_echo_n "(cached) " >&6
12168 else
12170 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12171 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12172 . ./conftest.sh
12173 rm -f ./conftest.sh
12174 acl_cv_rpath=done
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12178 $as_echo "$acl_cv_rpath" >&6; }
12179 wl="$acl_cv_wl"
12180 libext="$acl_cv_libext"
12181 shlibext="$acl_cv_shlibext"
12182 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12183 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12184 hardcode_direct="$acl_cv_hardcode_direct"
12185 hardcode_minus_L="$acl_cv_hardcode_minus_L"
12186 # Check whether --enable-rpath was given.
12187 if test "${enable_rpath+set}" = set; then :
12188 enableval=$enable_rpath; :
12189 else
12190 enable_rpath=yes
12200 use_additional=yes
12202 acl_save_prefix="$prefix"
12203 prefix="$acl_final_prefix"
12204 acl_save_exec_prefix="$exec_prefix"
12205 exec_prefix="$acl_final_exec_prefix"
12207 eval additional_includedir=\"$includedir\"
12208 eval additional_libdir=\"$libdir\"
12210 exec_prefix="$acl_save_exec_prefix"
12211 prefix="$acl_save_prefix"
12214 # Check whether --with-libiconv-prefix was given.
12215 if test "${with_libiconv_prefix+set}" = set; then :
12216 withval=$with_libiconv_prefix;
12217 if test "X$withval" = "Xno"; then
12218 use_additional=no
12219 else
12220 if test "X$withval" = "X"; then
12222 acl_save_prefix="$prefix"
12223 prefix="$acl_final_prefix"
12224 acl_save_exec_prefix="$exec_prefix"
12225 exec_prefix="$acl_final_exec_prefix"
12227 eval additional_includedir=\"$includedir\"
12228 eval additional_libdir=\"$libdir\"
12230 exec_prefix="$acl_save_exec_prefix"
12231 prefix="$acl_save_prefix"
12233 else
12234 additional_includedir="$withval/include"
12235 additional_libdir="$withval/lib"
12242 # Check whether --with-libiconv-type was given.
12243 if test "${with_libiconv_type+set}" = set; then :
12244 withval=$with_libiconv_type; with_libiconv_type=$withval
12245 else
12246 with_libiconv_type=auto
12249 lib_type=`eval echo \$with_libiconv_type`
12251 LIBICONV=
12252 LTLIBICONV=
12253 INCICONV=
12254 rpathdirs=
12255 ltrpathdirs=
12256 names_already_handled=
12257 names_next_round='iconv '
12258 while test -n "$names_next_round"; do
12259 names_this_round="$names_next_round"
12260 names_next_round=
12261 for name in $names_this_round; do
12262 already_handled=
12263 for n in $names_already_handled; do
12264 if test "$n" = "$name"; then
12265 already_handled=yes
12266 break
12268 done
12269 if test -z "$already_handled"; then
12270 names_already_handled="$names_already_handled $name"
12271 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12272 eval value=\"\$HAVE_LIB$uppername\"
12273 if test -n "$value"; then
12274 if test "$value" = yes; then
12275 eval value=\"\$LIB$uppername\"
12276 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12277 eval value=\"\$LTLIB$uppername\"
12278 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12279 else
12282 else
12283 found_dir=
12284 found_la=
12285 found_so=
12286 found_a=
12287 if test $use_additional = yes; then
12288 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
12289 found_dir="$additional_libdir"
12290 found_so="$additional_libdir/lib$name.$shlibext"
12291 if test -f "$additional_libdir/lib$name.la"; then
12292 found_la="$additional_libdir/lib$name.la"
12294 elif test x$lib_type != xshared; then
12295 if test -f "$additional_libdir/lib$name.$libext"; then
12296 found_dir="$additional_libdir"
12297 found_a="$additional_libdir/lib$name.$libext"
12298 if test -f "$additional_libdir/lib$name.la"; then
12299 found_la="$additional_libdir/lib$name.la"
12304 if test "X$found_dir" = "X"; then
12305 for x in $LDFLAGS $LTLIBICONV; do
12307 acl_save_prefix="$prefix"
12308 prefix="$acl_final_prefix"
12309 acl_save_exec_prefix="$exec_prefix"
12310 exec_prefix="$acl_final_exec_prefix"
12311 eval x=\"$x\"
12312 exec_prefix="$acl_save_exec_prefix"
12313 prefix="$acl_save_prefix"
12315 case "$x" in
12316 -L*)
12317 dir=`echo "X$x" | sed -e 's/^X-L//'`
12318 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
12319 found_dir="$dir"
12320 found_so="$dir/lib$name.$shlibext"
12321 if test -f "$dir/lib$name.la"; then
12322 found_la="$dir/lib$name.la"
12324 elif test x$lib_type != xshared; then
12325 if test -f "$dir/lib$name.$libext"; then
12326 found_dir="$dir"
12327 found_a="$dir/lib$name.$libext"
12328 if test -f "$dir/lib$name.la"; then
12329 found_la="$dir/lib$name.la"
12334 esac
12335 if test "X$found_dir" != "X"; then
12336 break
12338 done
12340 if test "X$found_dir" != "X"; then
12341 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12342 if test "X$found_so" != "X"; then
12343 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12344 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12345 else
12346 haveit=
12347 for x in $ltrpathdirs; do
12348 if test "X$x" = "X$found_dir"; then
12349 haveit=yes
12350 break
12352 done
12353 if test -z "$haveit"; then
12354 ltrpathdirs="$ltrpathdirs $found_dir"
12356 if test "$hardcode_direct" = yes; then
12357 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12358 else
12359 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12360 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12361 haveit=
12362 for x in $rpathdirs; do
12363 if test "X$x" = "X$found_dir"; then
12364 haveit=yes
12365 break
12367 done
12368 if test -z "$haveit"; then
12369 rpathdirs="$rpathdirs $found_dir"
12371 else
12372 haveit=
12373 for x in $LDFLAGS $LIBICONV; do
12375 acl_save_prefix="$prefix"
12376 prefix="$acl_final_prefix"
12377 acl_save_exec_prefix="$exec_prefix"
12378 exec_prefix="$acl_final_exec_prefix"
12379 eval x=\"$x\"
12380 exec_prefix="$acl_save_exec_prefix"
12381 prefix="$acl_save_prefix"
12383 if test "X$x" = "X-L$found_dir"; then
12384 haveit=yes
12385 break
12387 done
12388 if test -z "$haveit"; then
12389 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12391 if test "$hardcode_minus_L" != no; then
12392 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12393 else
12394 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12399 else
12400 if test "X$found_a" != "X"; then
12401 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12402 else
12403 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12406 additional_includedir=
12407 case "$found_dir" in
12408 */lib | */lib/)
12409 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12410 additional_includedir="$basedir/include"
12412 esac
12413 if test "X$additional_includedir" != "X"; then
12414 if test "X$additional_includedir" != "X/usr/include"; then
12415 haveit=
12416 if test "X$additional_includedir" = "X/usr/local/include"; then
12417 if test -n "$GCC"; then
12418 case $host_os in
12419 linux*) haveit=yes;;
12420 esac
12423 if test -z "$haveit"; then
12424 for x in $CPPFLAGS $INCICONV; do
12426 acl_save_prefix="$prefix"
12427 prefix="$acl_final_prefix"
12428 acl_save_exec_prefix="$exec_prefix"
12429 exec_prefix="$acl_final_exec_prefix"
12430 eval x=\"$x\"
12431 exec_prefix="$acl_save_exec_prefix"
12432 prefix="$acl_save_prefix"
12434 if test "X$x" = "X-I$additional_includedir"; then
12435 haveit=yes
12436 break
12438 done
12439 if test -z "$haveit"; then
12440 if test -d "$additional_includedir"; then
12441 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12447 if test -n "$found_la"; then
12448 save_libdir="$libdir"
12449 case "$found_la" in
12450 */* | *\\*) . "$found_la" ;;
12451 *) . "./$found_la" ;;
12452 esac
12453 libdir="$save_libdir"
12454 for dep in $dependency_libs; do
12455 case "$dep" in
12456 -L*)
12457 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12458 if test "X$additional_libdir" != "X/usr/lib"; then
12459 haveit=
12460 if test "X$additional_libdir" = "X/usr/local/lib"; then
12461 if test -n "$GCC"; then
12462 case $host_os in
12463 linux*) haveit=yes;;
12464 esac
12467 if test -z "$haveit"; then
12468 haveit=
12469 for x in $LDFLAGS $LIBICONV; do
12471 acl_save_prefix="$prefix"
12472 prefix="$acl_final_prefix"
12473 acl_save_exec_prefix="$exec_prefix"
12474 exec_prefix="$acl_final_exec_prefix"
12475 eval x=\"$x\"
12476 exec_prefix="$acl_save_exec_prefix"
12477 prefix="$acl_save_prefix"
12479 if test "X$x" = "X-L$additional_libdir"; then
12480 haveit=yes
12481 break
12483 done
12484 if test -z "$haveit"; then
12485 if test -d "$additional_libdir"; then
12486 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12489 haveit=
12490 for x in $LDFLAGS $LTLIBICONV; do
12492 acl_save_prefix="$prefix"
12493 prefix="$acl_final_prefix"
12494 acl_save_exec_prefix="$exec_prefix"
12495 exec_prefix="$acl_final_exec_prefix"
12496 eval x=\"$x\"
12497 exec_prefix="$acl_save_exec_prefix"
12498 prefix="$acl_save_prefix"
12500 if test "X$x" = "X-L$additional_libdir"; then
12501 haveit=yes
12502 break
12504 done
12505 if test -z "$haveit"; then
12506 if test -d "$additional_libdir"; then
12507 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12513 -R*)
12514 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12515 if test "$enable_rpath" != no; then
12516 haveit=
12517 for x in $rpathdirs; do
12518 if test "X$x" = "X$dir"; then
12519 haveit=yes
12520 break
12522 done
12523 if test -z "$haveit"; then
12524 rpathdirs="$rpathdirs $dir"
12526 haveit=
12527 for x in $ltrpathdirs; do
12528 if test "X$x" = "X$dir"; then
12529 haveit=yes
12530 break
12532 done
12533 if test -z "$haveit"; then
12534 ltrpathdirs="$ltrpathdirs $dir"
12538 -l*)
12539 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12541 *.la)
12542 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12545 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12546 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12548 esac
12549 done
12551 else
12552 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
12553 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12554 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12555 else
12556 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
12557 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
12562 done
12563 done
12564 if test "X$rpathdirs" != "X"; then
12565 if test -n "$hardcode_libdir_separator"; then
12566 alldirs=
12567 for found_dir in $rpathdirs; do
12568 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12569 done
12570 acl_save_libdir="$libdir"
12571 libdir="$alldirs"
12572 eval flag=\"$hardcode_libdir_flag_spec\"
12573 libdir="$acl_save_libdir"
12574 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12575 else
12576 for found_dir in $rpathdirs; do
12577 acl_save_libdir="$libdir"
12578 libdir="$found_dir"
12579 eval flag=\"$hardcode_libdir_flag_spec\"
12580 libdir="$acl_save_libdir"
12581 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12582 done
12585 if test "X$ltrpathdirs" != "X"; then
12586 for found_dir in $ltrpathdirs; do
12587 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12588 done
12595 if test -f ../gettext/uninstalled-config.sh; then
12596 relative_builddir='$(top_builddir)/../gettext'
12597 . ../gettext/uninstalled-config.sh
12598 else
12599 # The sister gettext directory doesn't exist and won't collect information on
12600 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
12625 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
12626 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
12627 $as_echo_n "(cached) " >&6
12628 else
12629 gt_save_LIBS="$LIBS"
12630 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12632 /* end confdefs.h. */
12633 #include <CoreFoundation/CFPreferences.h>
12635 main ()
12637 CFPreferencesCopyAppValue(NULL, NULL)
12639 return 0;
12641 _ACEOF
12642 if ac_fn_c_try_link "$LINENO"; then :
12643 gt_cv_func_CFPreferencesCopyAppValue=yes
12644 else
12645 gt_cv_func_CFPreferencesCopyAppValue=no
12647 rm -f core conftest.err conftest.$ac_objext \
12648 conftest$ac_exeext conftest.$ac_ext
12649 LIBS="$gt_save_LIBS"
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12652 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12653 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12655 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
12659 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
12660 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
12661 $as_echo_n "(cached) " >&6
12662 else
12663 gt_save_LIBS="$LIBS"
12664 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12666 /* end confdefs.h. */
12667 #include <CoreFoundation/CFLocale.h>
12669 main ()
12671 CFLocaleCopyPreferredLanguages();
12673 return 0;
12675 _ACEOF
12676 if ac_fn_c_try_link "$LINENO"; then :
12677 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
12678 else
12679 gt_cv_func_CFLocaleCopyPreferredLanguages=no
12681 rm -f core conftest.err conftest.$ac_objext \
12682 conftest$ac_exeext conftest.$ac_ext
12683 LIBS="$gt_save_LIBS"
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
12686 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
12687 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
12689 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
12692 INTL_MACOSX_LIBS=
12693 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
12694 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
12695 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
12703 LIBINTL=
12704 LTLIBINTL=
12705 POSUB=
12707 case " $gt_needs " in
12708 *" need-formatstring-macros "*) gt_api_version=3 ;;
12709 *" need-ngettext "*) gt_api_version=2 ;;
12710 *) gt_api_version=1 ;;
12711 esac
12712 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
12713 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
12715 if test "$USE_NLS" = "yes"; then
12716 gt_use_preinstalled_gnugettext=no
12719 if test $gt_api_version -ge 3; then
12720 gt_revision_test_code='
12721 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12722 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
12723 #endif
12724 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
12726 else
12727 gt_revision_test_code=
12729 if test $gt_api_version -ge 2; then
12730 gt_expression_test_code=' + * ngettext ("", "", 0)'
12731 else
12732 gt_expression_test_code=
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
12736 $as_echo_n "checking for GNU gettext in libc... " >&6; }
12737 if eval \${$gt_func_gnugettext_libc+:} false; then :
12738 $as_echo_n "(cached) " >&6
12739 else
12740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12741 /* end confdefs.h. */
12743 #include <libintl.h>
12744 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12745 extern int _nl_msg_cat_cntr;
12746 extern int *_nl_domain_bindings;
12747 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
12748 #else
12749 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
12750 #endif
12751 $gt_revision_test_code
12754 main ()
12757 bindtextdomain ("", "");
12758 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
12761 return 0;
12763 _ACEOF
12764 if ac_fn_c_try_link "$LINENO"; then :
12765 eval "$gt_func_gnugettext_libc=yes"
12766 else
12767 eval "$gt_func_gnugettext_libc=no"
12769 rm -f core conftest.err conftest.$ac_objext \
12770 conftest$ac_exeext conftest.$ac_ext
12772 eval ac_res=\$$gt_func_gnugettext_libc
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12774 $as_echo "$ac_res" >&6; }
12776 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
12782 am_save_CPPFLAGS="$CPPFLAGS"
12784 for element in $INCICONV; do
12785 haveit=
12786 for x in $CPPFLAGS; do
12788 acl_save_prefix="$prefix"
12789 prefix="$acl_final_prefix"
12790 acl_save_exec_prefix="$exec_prefix"
12791 exec_prefix="$acl_final_exec_prefix"
12792 eval x=\"$x\"
12793 exec_prefix="$acl_save_exec_prefix"
12794 prefix="$acl_save_prefix"
12796 if test "X$x" = "X$element"; then
12797 haveit=yes
12798 break
12800 done
12801 if test -z "$haveit"; then
12802 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12804 done
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12808 $as_echo_n "checking for iconv... " >&6; }
12809 if ${am_cv_func_iconv+:} false; then :
12810 $as_echo_n "(cached) " >&6
12811 else
12813 am_cv_func_iconv="no, consider installing GNU libiconv"
12814 am_cv_lib_iconv=no
12815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12816 /* end confdefs.h. */
12818 #include <stdlib.h>
12819 #include <iconv.h>
12822 main ()
12824 iconv_t cd = iconv_open("","");
12825 iconv(cd,NULL,NULL,NULL,NULL);
12826 iconv_close(cd);
12828 return 0;
12830 _ACEOF
12831 if ac_fn_c_try_link "$LINENO"; then :
12832 am_cv_func_iconv=yes
12834 rm -f core conftest.err conftest.$ac_objext \
12835 conftest$ac_exeext conftest.$ac_ext
12836 if test "$am_cv_func_iconv" != yes; then
12837 am_save_LIBS="$LIBS"
12838 LIBS="$LIBS $LIBICONV"
12839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12840 /* end confdefs.h. */
12842 #include <stdlib.h>
12843 #include <iconv.h>
12846 main ()
12848 iconv_t cd = iconv_open("","");
12849 iconv(cd,NULL,NULL,NULL,NULL);
12850 iconv_close(cd);
12852 return 0;
12854 _ACEOF
12855 if ac_fn_c_try_link "$LINENO"; then :
12856 am_cv_lib_iconv=yes
12857 am_cv_func_iconv=yes
12859 rm -f core conftest.err conftest.$ac_objext \
12860 conftest$ac_exeext conftest.$ac_ext
12861 LIBS="$am_save_LIBS"
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12866 $as_echo "$am_cv_func_iconv" >&6; }
12867 if test "$am_cv_func_iconv" = yes; then
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
12869 $as_echo_n "checking for working iconv... " >&6; }
12870 if ${am_cv_func_iconv_works+:} false; then :
12871 $as_echo_n "(cached) " >&6
12872 else
12874 am_save_LIBS="$LIBS"
12875 if test $am_cv_lib_iconv = yes; then
12876 LIBS="$LIBS $LIBICONV"
12878 am_cv_func_iconv_works=no
12879 for ac_iconv_const in '' 'const'; do
12880 if test "$cross_compiling" = yes; then :
12881 case "$host_os" in
12882 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
12883 *) am_cv_func_iconv_works="guessing yes" ;;
12884 esac
12885 else
12886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12887 /* end confdefs.h. */
12889 #include <iconv.h>
12890 #include <string.h>
12892 #ifndef ICONV_CONST
12893 # define ICONV_CONST $ac_iconv_const
12894 #endif
12897 main ()
12899 int result = 0;
12900 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
12901 successful returns. This is even documented in
12902 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
12904 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
12905 if (cd_utf8_to_88591 != (iconv_t)(-1))
12907 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
12908 char buf[10];
12909 ICONV_CONST char *inptr = input;
12910 size_t inbytesleft = strlen (input);
12911 char *outptr = buf;
12912 size_t outbytesleft = sizeof (buf);
12913 size_t res = iconv (cd_utf8_to_88591,
12914 &inptr, &inbytesleft,
12915 &outptr, &outbytesleft);
12916 if (res == 0)
12917 result |= 1;
12918 iconv_close (cd_utf8_to_88591);
12921 /* Test against Solaris 10 bug: Failures are not distinguishable from
12922 successful returns. */
12924 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
12925 if (cd_ascii_to_88591 != (iconv_t)(-1))
12927 static ICONV_CONST char input[] = "\263";
12928 char buf[10];
12929 ICONV_CONST char *inptr = input;
12930 size_t inbytesleft = strlen (input);
12931 char *outptr = buf;
12932 size_t outbytesleft = sizeof (buf);
12933 size_t res = iconv (cd_ascii_to_88591,
12934 &inptr, &inbytesleft,
12935 &outptr, &outbytesleft);
12936 if (res == 0)
12937 result |= 2;
12938 iconv_close (cd_ascii_to_88591);
12941 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
12943 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
12944 if (cd_88591_to_utf8 != (iconv_t)(-1))
12946 static ICONV_CONST char input[] = "\304";
12947 static char buf[2] = { (char)0xDE, (char)0xAD };
12948 ICONV_CONST char *inptr = input;
12949 size_t inbytesleft = 1;
12950 char *outptr = buf;
12951 size_t outbytesleft = 1;
12952 size_t res = iconv (cd_88591_to_utf8,
12953 &inptr, &inbytesleft,
12954 &outptr, &outbytesleft);
12955 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
12956 result |= 4;
12957 iconv_close (cd_88591_to_utf8);
12960 #if 0 /* This bug could be worked around by the caller. */
12961 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
12963 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
12964 if (cd_88591_to_utf8 != (iconv_t)(-1))
12966 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
12967 char buf[50];
12968 ICONV_CONST char *inptr = input;
12969 size_t inbytesleft = strlen (input);
12970 char *outptr = buf;
12971 size_t outbytesleft = sizeof (buf);
12972 size_t res = iconv (cd_88591_to_utf8,
12973 &inptr, &inbytesleft,
12974 &outptr, &outbytesleft);
12975 if ((int)res > 0)
12976 result |= 8;
12977 iconv_close (cd_88591_to_utf8);
12980 #endif
12981 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12982 provided. */
12984 /* Try standardized names. */
12985 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
12986 /* Try IRIX, OSF/1 names. */
12987 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
12988 /* Try AIX names. */
12989 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
12990 /* Try HP-UX names. */
12991 iconv_t cd4 = iconv_open ("utf8", "eucJP");
12992 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
12993 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
12994 result |= 16;
12995 if (cd1 != (iconv_t)(-1))
12996 iconv_close (cd1);
12997 if (cd2 != (iconv_t)(-1))
12998 iconv_close (cd2);
12999 if (cd3 != (iconv_t)(-1))
13000 iconv_close (cd3);
13001 if (cd4 != (iconv_t)(-1))
13002 iconv_close (cd4);
13004 return result;
13007 return 0;
13009 _ACEOF
13010 if ac_fn_c_try_run "$LINENO"; then :
13011 am_cv_func_iconv_works=yes
13013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13014 conftest.$ac_objext conftest.beam conftest.$ac_ext
13017 test "$am_cv_func_iconv_works" = no || break
13018 done
13019 LIBS="$am_save_LIBS"
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
13023 $as_echo "$am_cv_func_iconv_works" >&6; }
13024 case "$am_cv_func_iconv_works" in
13025 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
13026 *) am_func_iconv=yes ;;
13027 esac
13028 else
13029 am_func_iconv=no am_cv_lib_iconv=no
13031 if test "$am_func_iconv" = yes; then
13033 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13036 if test "$am_cv_lib_iconv" = yes; then
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13038 $as_echo_n "checking how to link with libiconv... " >&6; }
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13040 $as_echo "$LIBICONV" >&6; }
13041 else
13042 CPPFLAGS="$am_save_CPPFLAGS"
13043 LIBICONV=
13044 LTLIBICONV=
13052 use_additional=yes
13054 acl_save_prefix="$prefix"
13055 prefix="$acl_final_prefix"
13056 acl_save_exec_prefix="$exec_prefix"
13057 exec_prefix="$acl_final_exec_prefix"
13059 eval additional_includedir=\"$includedir\"
13060 eval additional_libdir=\"$libdir\"
13062 exec_prefix="$acl_save_exec_prefix"
13063 prefix="$acl_save_prefix"
13066 # Check whether --with-libintl-prefix was given.
13067 if test "${with_libintl_prefix+set}" = set; then :
13068 withval=$with_libintl_prefix;
13069 if test "X$withval" = "Xno"; then
13070 use_additional=no
13071 else
13072 if test "X$withval" = "X"; then
13074 acl_save_prefix="$prefix"
13075 prefix="$acl_final_prefix"
13076 acl_save_exec_prefix="$exec_prefix"
13077 exec_prefix="$acl_final_exec_prefix"
13079 eval additional_includedir=\"$includedir\"
13080 eval additional_libdir=\"$libdir\"
13082 exec_prefix="$acl_save_exec_prefix"
13083 prefix="$acl_save_prefix"
13085 else
13086 additional_includedir="$withval/include"
13087 additional_libdir="$withval/lib"
13094 # Check whether --with-libintl-type was given.
13095 if test "${with_libintl_type+set}" = set; then :
13096 withval=$with_libintl_type; with_libintl_type=$withval
13097 else
13098 with_libintl_type=auto
13101 lib_type=`eval echo \$with_libintl_type`
13103 LIBINTL=
13104 LTLIBINTL=
13105 INCINTL=
13106 rpathdirs=
13107 ltrpathdirs=
13108 names_already_handled=
13109 names_next_round='intl '
13110 while test -n "$names_next_round"; do
13111 names_this_round="$names_next_round"
13112 names_next_round=
13113 for name in $names_this_round; do
13114 already_handled=
13115 for n in $names_already_handled; do
13116 if test "$n" = "$name"; then
13117 already_handled=yes
13118 break
13120 done
13121 if test -z "$already_handled"; then
13122 names_already_handled="$names_already_handled $name"
13123 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13124 eval value=\"\$HAVE_LIB$uppername\"
13125 if test -n "$value"; then
13126 if test "$value" = yes; then
13127 eval value=\"\$LIB$uppername\"
13128 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13129 eval value=\"\$LTLIB$uppername\"
13130 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13131 else
13134 else
13135 found_dir=
13136 found_la=
13137 found_so=
13138 found_a=
13139 if test $use_additional = yes; then
13140 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
13141 found_dir="$additional_libdir"
13142 found_so="$additional_libdir/lib$name.$shlibext"
13143 if test -f "$additional_libdir/lib$name.la"; then
13144 found_la="$additional_libdir/lib$name.la"
13146 elif test x$lib_type != xshared; then
13147 if test -f "$additional_libdir/lib$name.$libext"; then
13148 found_dir="$additional_libdir"
13149 found_a="$additional_libdir/lib$name.$libext"
13150 if test -f "$additional_libdir/lib$name.la"; then
13151 found_la="$additional_libdir/lib$name.la"
13156 if test "X$found_dir" = "X"; then
13157 for x in $LDFLAGS $LTLIBINTL; do
13159 acl_save_prefix="$prefix"
13160 prefix="$acl_final_prefix"
13161 acl_save_exec_prefix="$exec_prefix"
13162 exec_prefix="$acl_final_exec_prefix"
13163 eval x=\"$x\"
13164 exec_prefix="$acl_save_exec_prefix"
13165 prefix="$acl_save_prefix"
13167 case "$x" in
13168 -L*)
13169 dir=`echo "X$x" | sed -e 's/^X-L//'`
13170 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
13171 found_dir="$dir"
13172 found_so="$dir/lib$name.$shlibext"
13173 if test -f "$dir/lib$name.la"; then
13174 found_la="$dir/lib$name.la"
13176 elif test x$lib_type != xshared; then
13177 if test -f "$dir/lib$name.$libext"; then
13178 found_dir="$dir"
13179 found_a="$dir/lib$name.$libext"
13180 if test -f "$dir/lib$name.la"; then
13181 found_la="$dir/lib$name.la"
13186 esac
13187 if test "X$found_dir" != "X"; then
13188 break
13190 done
13192 if test "X$found_dir" != "X"; then
13193 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13194 if test "X$found_so" != "X"; then
13195 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13196 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13197 else
13198 haveit=
13199 for x in $ltrpathdirs; do
13200 if test "X$x" = "X$found_dir"; then
13201 haveit=yes
13202 break
13204 done
13205 if test -z "$haveit"; then
13206 ltrpathdirs="$ltrpathdirs $found_dir"
13208 if test "$hardcode_direct" = yes; then
13209 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13210 else
13211 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13212 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13213 haveit=
13214 for x in $rpathdirs; do
13215 if test "X$x" = "X$found_dir"; then
13216 haveit=yes
13217 break
13219 done
13220 if test -z "$haveit"; then
13221 rpathdirs="$rpathdirs $found_dir"
13223 else
13224 haveit=
13225 for x in $LDFLAGS $LIBINTL; do
13227 acl_save_prefix="$prefix"
13228 prefix="$acl_final_prefix"
13229 acl_save_exec_prefix="$exec_prefix"
13230 exec_prefix="$acl_final_exec_prefix"
13231 eval x=\"$x\"
13232 exec_prefix="$acl_save_exec_prefix"
13233 prefix="$acl_save_prefix"
13235 if test "X$x" = "X-L$found_dir"; then
13236 haveit=yes
13237 break
13239 done
13240 if test -z "$haveit"; then
13241 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13243 if test "$hardcode_minus_L" != no; then
13244 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13245 else
13246 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13251 else
13252 if test "X$found_a" != "X"; then
13253 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13254 else
13255 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13258 additional_includedir=
13259 case "$found_dir" in
13260 */lib | */lib/)
13261 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13262 additional_includedir="$basedir/include"
13264 esac
13265 if test "X$additional_includedir" != "X"; then
13266 if test "X$additional_includedir" != "X/usr/include"; then
13267 haveit=
13268 if test "X$additional_includedir" = "X/usr/local/include"; then
13269 if test -n "$GCC"; then
13270 case $host_os in
13271 linux*) haveit=yes;;
13272 esac
13275 if test -z "$haveit"; then
13276 for x in $CPPFLAGS $INCINTL; do
13278 acl_save_prefix="$prefix"
13279 prefix="$acl_final_prefix"
13280 acl_save_exec_prefix="$exec_prefix"
13281 exec_prefix="$acl_final_exec_prefix"
13282 eval x=\"$x\"
13283 exec_prefix="$acl_save_exec_prefix"
13284 prefix="$acl_save_prefix"
13286 if test "X$x" = "X-I$additional_includedir"; then
13287 haveit=yes
13288 break
13290 done
13291 if test -z "$haveit"; then
13292 if test -d "$additional_includedir"; then
13293 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13299 if test -n "$found_la"; then
13300 save_libdir="$libdir"
13301 case "$found_la" in
13302 */* | *\\*) . "$found_la" ;;
13303 *) . "./$found_la" ;;
13304 esac
13305 libdir="$save_libdir"
13306 for dep in $dependency_libs; do
13307 case "$dep" in
13308 -L*)
13309 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13310 if test "X$additional_libdir" != "X/usr/lib"; then
13311 haveit=
13312 if test "X$additional_libdir" = "X/usr/local/lib"; then
13313 if test -n "$GCC"; then
13314 case $host_os in
13315 linux*) haveit=yes;;
13316 esac
13319 if test -z "$haveit"; then
13320 haveit=
13321 for x in $LDFLAGS $LIBINTL; 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 if test "X$x" = "X-L$additional_libdir"; then
13332 haveit=yes
13333 break
13335 done
13336 if test -z "$haveit"; then
13337 if test -d "$additional_libdir"; then
13338 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13341 haveit=
13342 for x in $LDFLAGS $LTLIBINTL; do
13344 acl_save_prefix="$prefix"
13345 prefix="$acl_final_prefix"
13346 acl_save_exec_prefix="$exec_prefix"
13347 exec_prefix="$acl_final_exec_prefix"
13348 eval x=\"$x\"
13349 exec_prefix="$acl_save_exec_prefix"
13350 prefix="$acl_save_prefix"
13352 if test "X$x" = "X-L$additional_libdir"; then
13353 haveit=yes
13354 break
13356 done
13357 if test -z "$haveit"; then
13358 if test -d "$additional_libdir"; then
13359 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13365 -R*)
13366 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13367 if test "$enable_rpath" != no; then
13368 haveit=
13369 for x in $rpathdirs; do
13370 if test "X$x" = "X$dir"; then
13371 haveit=yes
13372 break
13374 done
13375 if test -z "$haveit"; then
13376 rpathdirs="$rpathdirs $dir"
13378 haveit=
13379 for x in $ltrpathdirs; do
13380 if test "X$x" = "X$dir"; then
13381 haveit=yes
13382 break
13384 done
13385 if test -z "$haveit"; then
13386 ltrpathdirs="$ltrpathdirs $dir"
13390 -l*)
13391 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13393 *.la)
13394 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13397 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13398 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13400 esac
13401 done
13403 else
13404 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
13405 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13406 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13407 else
13408 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
13409 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
13414 done
13415 done
13416 if test "X$rpathdirs" != "X"; then
13417 if test -n "$hardcode_libdir_separator"; then
13418 alldirs=
13419 for found_dir in $rpathdirs; do
13420 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13421 done
13422 acl_save_libdir="$libdir"
13423 libdir="$alldirs"
13424 eval flag=\"$hardcode_libdir_flag_spec\"
13425 libdir="$acl_save_libdir"
13426 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13427 else
13428 for found_dir in $rpathdirs; do
13429 acl_save_libdir="$libdir"
13430 libdir="$found_dir"
13431 eval flag=\"$hardcode_libdir_flag_spec\"
13432 libdir="$acl_save_libdir"
13433 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13434 done
13437 if test "X$ltrpathdirs" != "X"; then
13438 for found_dir in $ltrpathdirs; do
13439 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13440 done
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13444 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
13445 if eval \${$gt_func_gnugettext_libintl+:} false; then :
13446 $as_echo_n "(cached) " >&6
13447 else
13448 gt_save_CPPFLAGS="$CPPFLAGS"
13449 CPPFLAGS="$CPPFLAGS $INCINTL"
13450 gt_save_LIBS="$LIBS"
13451 LIBS="$LIBS $LIBINTL"
13452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13453 /* end confdefs.h. */
13455 #include <libintl.h>
13456 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13457 extern int _nl_msg_cat_cntr;
13458 extern
13459 #ifdef __cplusplus
13461 #endif
13462 const char *_nl_expand_alias (const char *);
13463 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
13464 #else
13465 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13466 #endif
13467 $gt_revision_test_code
13470 main ()
13473 bindtextdomain ("", "");
13474 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13477 return 0;
13479 _ACEOF
13480 if ac_fn_c_try_link "$LINENO"; then :
13481 eval "$gt_func_gnugettext_libintl=yes"
13482 else
13483 eval "$gt_func_gnugettext_libintl=no"
13485 rm -f core conftest.err conftest.$ac_objext \
13486 conftest$ac_exeext conftest.$ac_ext
13487 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
13488 LIBS="$LIBS $LIBICONV"
13489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13490 /* end confdefs.h. */
13492 #include <libintl.h>
13493 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13494 extern int _nl_msg_cat_cntr;
13495 extern
13496 #ifdef __cplusplus
13498 #endif
13499 const char *_nl_expand_alias (const char *);
13500 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
13501 #else
13502 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13503 #endif
13504 $gt_revision_test_code
13507 main ()
13510 bindtextdomain ("", "");
13511 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13514 return 0;
13516 _ACEOF
13517 if ac_fn_c_try_link "$LINENO"; then :
13518 LIBINTL="$LIBINTL $LIBICONV"
13519 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13520 eval "$gt_func_gnugettext_libintl=yes"
13523 rm -f core conftest.err conftest.$ac_objext \
13524 conftest$ac_exeext conftest.$ac_ext
13526 CPPFLAGS="$gt_save_CPPFLAGS"
13527 LIBS="$gt_save_LIBS"
13529 eval ac_res=\$$gt_func_gnugettext_libintl
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13531 $as_echo "$ac_res" >&6; }
13534 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
13535 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
13536 && test "$PACKAGE" != gettext-runtime \
13537 && test "$PACKAGE" != gettext-tools; }; then
13538 gt_use_preinstalled_gnugettext=yes
13539 else
13540 LIBINTL=
13541 LTLIBINTL=
13542 INCINTL=
13547 if test -n "$INTL_MACOSX_LIBS"; then
13548 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13549 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13550 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13551 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13555 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13556 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13558 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13560 else
13561 USE_NLS=no
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
13566 $as_echo_n "checking whether to use NLS... " >&6; }
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13568 $as_echo "$USE_NLS" >&6; }
13569 if test "$USE_NLS" = "yes"; then
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
13571 $as_echo_n "checking where the gettext function comes from... " >&6; }
13572 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13573 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13574 gt_source="external libintl"
13575 else
13576 gt_source="libc"
13578 else
13579 gt_source="included intl directory"
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
13582 $as_echo "$gt_source" >&6; }
13585 if test "$USE_NLS" = "yes"; then
13587 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13588 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13590 $as_echo_n "checking how to link with libintl... " >&6; }
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13592 $as_echo "$LIBINTL" >&6; }
13594 for element in $INCINTL; do
13595 haveit=
13596 for x in $CPPFLAGS; do
13598 acl_save_prefix="$prefix"
13599 prefix="$acl_final_prefix"
13600 acl_save_exec_prefix="$exec_prefix"
13601 exec_prefix="$acl_final_exec_prefix"
13602 eval x=\"$x\"
13603 exec_prefix="$acl_save_exec_prefix"
13604 prefix="$acl_save_prefix"
13606 if test "X$x" = "X$element"; then
13607 haveit=yes
13608 break
13610 done
13611 if test -z "$haveit"; then
13612 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13614 done
13619 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13622 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
13626 POSUB=po
13631 INTLLIBS="$LIBINTL"
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13651 $as_echo_n "checking whether NLS is requested... " >&6; }
13652 if test x"$USE_NLS" != xyes; then
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13654 $as_echo "no" >&6; }
13655 else
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13657 $as_echo "yes" >&6; }
13659 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13663 $as_echo_n "checking for catalogs to be installed... " >&6; }
13664 # Look for .po and .gmo files in the source directory.
13665 CATALOGS=
13666 XLINGUAS=
13667 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13668 # If there aren't any .gmo files the shell will give us the
13669 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13670 # weeded out.
13671 case "$cat" in *\**)
13672 continue;;
13673 esac
13674 # The quadruple backslash is collapsed to a double backslash
13675 # by the backticks, then collapsed again by the double quotes,
13676 # leaving us with one backslash in the sed expression (right
13677 # before the dot that mustn't act as a wildcard).
13678 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13679 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13680 # The user is allowed to set LINGUAS to a list of languages to
13681 # install catalogs for. If it's empty that means "all of them."
13682 if test "x$LINGUAS" = x; then
13683 CATALOGS="$CATALOGS $cat"
13684 XLINGUAS="$XLINGUAS $lang"
13685 else
13686 case "$LINGUAS" in *$lang*)
13687 CATALOGS="$CATALOGS $cat"
13688 XLINGUAS="$XLINGUAS $lang"
13690 esac
13692 done
13693 LINGUAS="$XLINGUAS"
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13695 $as_echo "$LINGUAS" >&6; }
13698 DATADIRNAME=share
13700 INSTOBJEXT=.mo
13702 GENCAT=gencat
13704 CATOBJEXT=.gmo
13711 # Prepare PATH_SEPARATOR.
13712 # The user is always right.
13713 if test "${PATH_SEPARATOR+set}" != set; then
13714 echo "#! /bin/sh" >conf$$.sh
13715 echo "exit 0" >>conf$$.sh
13716 chmod +x conf$$.sh
13717 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13718 PATH_SEPARATOR=';'
13719 else
13720 PATH_SEPARATOR=:
13722 rm -f conf$$.sh
13725 # Find out how to test for executable files. Don't use a zero-byte file,
13726 # as systems may use methods other than mode bits to determine executability.
13727 cat >conf$$.file <<_ASEOF
13728 #! /bin/sh
13729 exit 0
13730 _ASEOF
13731 chmod +x conf$$.file
13732 if test -x conf$$.file >/dev/null 2>&1; then
13733 ac_executable_p="test -x"
13734 else
13735 ac_executable_p="test -f"
13737 rm -f conf$$.file
13739 # Extract the first word of "msgfmt", so it can be a program name with args.
13740 set dummy msgfmt; ac_word=$2
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13742 $as_echo_n "checking for $ac_word... " >&6; }
13743 if ${ac_cv_path_MSGFMT+:} false; then :
13744 $as_echo_n "(cached) " >&6
13745 else
13746 case "$MSGFMT" in
13747 [\\/]* | ?:[\\/]*)
13748 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13751 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13752 for ac_dir in $PATH; do
13753 IFS="$ac_save_IFS"
13754 test -z "$ac_dir" && ac_dir=.
13755 for ac_exec_ext in '' $ac_executable_extensions; do
13756 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13757 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13758 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13759 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13760 break 2
13763 done
13764 done
13765 IFS="$ac_save_IFS"
13766 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13768 esac
13770 MSGFMT="$ac_cv_path_MSGFMT"
13771 if test "$MSGFMT" != ":"; then
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13773 $as_echo "$MSGFMT" >&6; }
13774 else
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13776 $as_echo "no" >&6; }
13779 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13780 set dummy gmsgfmt; ac_word=$2
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13782 $as_echo_n "checking for $ac_word... " >&6; }
13783 if ${ac_cv_path_GMSGFMT+:} false; then :
13784 $as_echo_n "(cached) " >&6
13785 else
13786 case $GMSGFMT in
13787 [\\/]* | ?:[\\/]*)
13788 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13792 for as_dir in $PATH
13794 IFS=$as_save_IFS
13795 test -z "$as_dir" && as_dir=.
13796 for ac_exec_ext in '' $ac_executable_extensions; do
13797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13798 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13800 break 2
13802 done
13803 done
13804 IFS=$as_save_IFS
13806 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13808 esac
13810 GMSGFMT=$ac_cv_path_GMSGFMT
13811 if test -n "$GMSGFMT"; then
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13813 $as_echo "$GMSGFMT" >&6; }
13814 else
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13816 $as_echo "no" >&6; }
13822 # Prepare PATH_SEPARATOR.
13823 # The user is always right.
13824 if test "${PATH_SEPARATOR+set}" != set; then
13825 echo "#! /bin/sh" >conf$$.sh
13826 echo "exit 0" >>conf$$.sh
13827 chmod +x conf$$.sh
13828 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13829 PATH_SEPARATOR=';'
13830 else
13831 PATH_SEPARATOR=:
13833 rm -f conf$$.sh
13836 # Find out how to test for executable files. Don't use a zero-byte file,
13837 # as systems may use methods other than mode bits to determine executability.
13838 cat >conf$$.file <<_ASEOF
13839 #! /bin/sh
13840 exit 0
13841 _ASEOF
13842 chmod +x conf$$.file
13843 if test -x conf$$.file >/dev/null 2>&1; then
13844 ac_executable_p="test -x"
13845 else
13846 ac_executable_p="test -f"
13848 rm -f conf$$.file
13850 # Extract the first word of "xgettext", so it can be a program name with args.
13851 set dummy xgettext; ac_word=$2
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13853 $as_echo_n "checking for $ac_word... " >&6; }
13854 if ${ac_cv_path_XGETTEXT+:} false; then :
13855 $as_echo_n "(cached) " >&6
13856 else
13857 case "$XGETTEXT" in
13858 [\\/]* | ?:[\\/]*)
13859 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13862 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13863 for ac_dir in $PATH; do
13864 IFS="$ac_save_IFS"
13865 test -z "$ac_dir" && ac_dir=.
13866 for ac_exec_ext in '' $ac_executable_extensions; do
13867 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13868 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13869 (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
13870 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13871 break 2
13874 done
13875 done
13876 IFS="$ac_save_IFS"
13877 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13879 esac
13881 XGETTEXT="$ac_cv_path_XGETTEXT"
13882 if test "$XGETTEXT" != ":"; then
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13884 $as_echo "$XGETTEXT" >&6; }
13885 else
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13887 $as_echo "no" >&6; }
13890 rm -f messages.po
13893 # Prepare PATH_SEPARATOR.
13894 # The user is always right.
13895 if test "${PATH_SEPARATOR+set}" != set; then
13896 echo "#! /bin/sh" >conf$$.sh
13897 echo "exit 0" >>conf$$.sh
13898 chmod +x conf$$.sh
13899 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13900 PATH_SEPARATOR=';'
13901 else
13902 PATH_SEPARATOR=:
13904 rm -f conf$$.sh
13907 # Find out how to test for executable files. Don't use a zero-byte file,
13908 # as systems may use methods other than mode bits to determine executability.
13909 cat >conf$$.file <<_ASEOF
13910 #! /bin/sh
13911 exit 0
13912 _ASEOF
13913 chmod +x conf$$.file
13914 if test -x conf$$.file >/dev/null 2>&1; then
13915 ac_executable_p="test -x"
13916 else
13917 ac_executable_p="test -f"
13919 rm -f conf$$.file
13921 # Extract the first word of "msgmerge", so it can be a program name with args.
13922 set dummy msgmerge; ac_word=$2
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13924 $as_echo_n "checking for $ac_word... " >&6; }
13925 if ${ac_cv_path_MSGMERGE+:} false; then :
13926 $as_echo_n "(cached) " >&6
13927 else
13928 case "$MSGMERGE" in
13929 [\\/]* | ?:[\\/]*)
13930 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13933 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13934 for ac_dir in $PATH; do
13935 IFS="$ac_save_IFS"
13936 test -z "$ac_dir" && ac_dir=.
13937 for ac_exec_ext in '' $ac_executable_extensions; do
13938 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13939 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13940 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13941 break 2
13944 done
13945 done
13946 IFS="$ac_save_IFS"
13947 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13949 esac
13951 MSGMERGE="$ac_cv_path_MSGMERGE"
13952 if test "$MSGMERGE" != ":"; then
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13954 $as_echo "$MSGMERGE" >&6; }
13955 else
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13957 $as_echo "no" >&6; }
13961 if test "$GMSGFMT" != ":"; then
13962 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13963 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13965 else
13966 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13968 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13969 GMSGFMT=":"
13973 if test "$XGETTEXT" != ":"; then
13974 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13975 (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
13977 else
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13979 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13980 XGETTEXT=":"
13982 rm -f messages.po
13985 ac_config_commands="$ac_config_commands default-2"
13989 . ${srcdir}/../bfd/configure.host
13991 # Put a plausible default for CC_FOR_BUILD in Makefile.
13992 if test -z "$CC_FOR_BUILD"; then
13993 if test "x$cross_compiling" = "xno"; then
13994 CC_FOR_BUILD='$(CC)'
13995 else
13996 CC_FOR_BUILD=gcc
14000 # Also set EXEEXT_FOR_BUILD.
14001 if test "x$cross_compiling" = "xno"; then
14002 EXEEXT_FOR_BUILD='$(EXEEXT)'
14003 else
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
14005 $as_echo_n "checking for build system executable suffix... " >&6; }
14006 if ${bfd_cv_build_exeext+:} false; then :
14007 $as_echo_n "(cached) " >&6
14008 else
14009 rm -f conftest*
14010 echo 'int main () { return 0; }' > conftest.c
14011 bfd_cv_build_exeext=
14012 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
14013 for file in conftest.*; do
14014 case $file in
14015 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
14016 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
14017 esac
14018 done
14019 rm -f conftest*
14020 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
14023 $as_echo "$bfd_cv_build_exeext" >&6; }
14024 EXEEXT_FOR_BUILD=""
14025 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
14028 # Check whether --enable-64-bit-bfd was given.
14029 if test "${enable_64_bit_bfd+set}" = set; then :
14030 enableval=$enable_64_bit_bfd; case $enableval in #(
14031 yes|no) :
14032 ;; #(
14033 *) :
14034 as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #(
14035 *) :
14037 esac
14038 else
14039 enable_64_bit_bfd=no
14043 if test "x$enable_64_bit_bfd" = "xno"; then :
14044 # The cast to long int works around a bug in the HP C Compiler
14045 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14046 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14047 # This bug is HP SR number 8606223364.
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14049 $as_echo_n "checking size of void *... " >&6; }
14050 if ${ac_cv_sizeof_void_p+:} false; then :
14051 $as_echo_n "(cached) " >&6
14052 else
14053 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14055 else
14056 if test "$ac_cv_type_void_p" = yes; then
14057 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14058 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14059 as_fn_error 77 "cannot compute sizeof (void *)
14060 See \`config.log' for more details" "$LINENO" 5; }
14061 else
14062 ac_cv_sizeof_void_p=0
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14068 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14072 cat >>confdefs.h <<_ACEOF
14073 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14074 _ACEOF
14077 if test "x$ac_cv_sizeof_void_p" = "x8"; then :
14078 enable_64_bit_bfd=yes
14083 if test "x$enable_64_bit_bfd" = "xyes"; then
14084 ENABLE_BFD_64_BIT_TRUE=
14085 ENABLE_BFD_64_BIT_FALSE='#'
14086 else
14087 ENABLE_BFD_64_BIT_TRUE='#'
14088 ENABLE_BFD_64_BIT_FALSE=
14096 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
14097 if test "x$ac_cv_have_decl_basename" = xyes; then :
14098 ac_have_decl=1
14099 else
14100 ac_have_decl=0
14103 cat >>confdefs.h <<_ACEOF
14104 #define HAVE_DECL_BASENAME $ac_have_decl
14105 _ACEOF
14106 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
14107 if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
14108 ac_have_decl=1
14109 else
14110 ac_have_decl=0
14113 cat >>confdefs.h <<_ACEOF
14114 #define HAVE_DECL_STPCPY $ac_have_decl
14115 _ACEOF
14118 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
14119 # since sigsetjmp might only be defined as a macro.
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
14121 $as_echo_n "checking for sigsetjmp... " >&6; }
14122 if ${gdb_cv_func_sigsetjmp+:} false; then :
14123 $as_echo_n "(cached) " >&6
14124 else
14125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14126 /* end confdefs.h. */
14128 #include <setjmp.h>
14131 main ()
14133 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
14135 return 0;
14137 _ACEOF
14138 if ac_fn_c_try_compile "$LINENO"; then :
14139 bfd_cv_func_sigsetjmp=yes
14140 else
14141 bfd_cv_func_sigsetjmp=no
14143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
14146 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
14147 if test $bfd_cv_func_sigsetjmp = yes; then
14149 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
14153 cgen_maint=no
14154 cgendir='$(srcdir)/../../cgen'
14155 if test -r ${srcdir}/../cgen/iformat.scm; then
14156 cgendir='$(srcdir)/../cgen'
14159 # Check whether --enable-cgen-maint was given.
14160 if test "${enable_cgen_maint+set}" = set; then :
14161 enableval=$enable_cgen_maint; case "${enableval}" in
14162 yes) cgen_maint=yes ;;
14163 no) cgen_maint=no ;;
14165 # Argument is a directory where cgen can be found. In some
14166 # future world cgen could be installable, but right now this
14167 # is not the case. Instead we assume the directory is a path
14168 # to the cgen source tree.
14169 cgen_maint=yes
14170 if test -r ${enableval}/iformat.scm; then
14171 # This looks like a cgen source tree.
14172 cgendir=${enableval}
14173 else
14174 as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5
14177 esac
14179 if test x${cgen_maint} = xyes; then
14180 CGEN_MAINT_TRUE=
14181 CGEN_MAINT_FALSE='#'
14182 else
14183 CGEN_MAINT_TRUE='#'
14184 CGEN_MAINT_FALSE=
14189 using_cgen=no
14191 # Check if linker supports --as-needed and --no-as-needed options
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
14193 $as_echo_n "checking linker --as-needed support... " >&6; }
14194 if ${bfd_cv_ld_as_needed+:} false; then :
14195 $as_echo_n "(cached) " >&6
14196 else
14197 bfd_cv_ld_as_needed=no
14198 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
14199 bfd_cv_ld_as_needed=yes
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
14204 $as_echo "$bfd_cv_ld_as_needed" >&6; }
14206 LIBM=
14207 case $host in
14208 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
14209 # These system don't have libm, or don't need it
14211 *-ncr-sysv4.3*)
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
14213 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
14214 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
14215 $as_echo_n "(cached) " >&6
14216 else
14217 ac_check_lib_save_LIBS=$LIBS
14218 LIBS="-lmw $LIBS"
14219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14220 /* end confdefs.h. */
14222 /* Override any GCC internal prototype to avoid an error.
14223 Use char because int might match the return type of a GCC
14224 builtin and then its argument prototype would still apply. */
14225 #ifdef __cplusplus
14226 extern "C"
14227 #endif
14228 char _mwvalidcheckl ();
14230 main ()
14232 return _mwvalidcheckl ();
14234 return 0;
14236 _ACEOF
14237 if ac_fn_c_try_link "$LINENO"; then :
14238 ac_cv_lib_mw__mwvalidcheckl=yes
14239 else
14240 ac_cv_lib_mw__mwvalidcheckl=no
14242 rm -f core conftest.err conftest.$ac_objext \
14243 conftest$ac_exeext conftest.$ac_ext
14244 LIBS=$ac_check_lib_save_LIBS
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
14247 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
14248 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
14249 LIBM="-lmw"
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14253 $as_echo_n "checking for cos in -lm... " >&6; }
14254 if ${ac_cv_lib_m_cos+:} false; then :
14255 $as_echo_n "(cached) " >&6
14256 else
14257 ac_check_lib_save_LIBS=$LIBS
14258 LIBS="-lm $LIBS"
14259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14260 /* end confdefs.h. */
14262 /* Override any GCC internal prototype to avoid an error.
14263 Use char because int might match the return type of a GCC
14264 builtin and then its argument prototype would still apply. */
14265 #ifdef __cplusplus
14266 extern "C"
14267 #endif
14268 char cos ();
14270 main ()
14272 return cos ();
14274 return 0;
14276 _ACEOF
14277 if ac_fn_c_try_link "$LINENO"; then :
14278 ac_cv_lib_m_cos=yes
14279 else
14280 ac_cv_lib_m_cos=no
14282 rm -f core conftest.err conftest.$ac_objext \
14283 conftest$ac_exeext conftest.$ac_ext
14284 LIBS=$ac_check_lib_save_LIBS
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14287 $as_echo "$ac_cv_lib_m_cos" >&6; }
14288 if test "x$ac_cv_lib_m_cos" = xyes; then :
14289 LIBM="$LIBM -lm"
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14295 $as_echo_n "checking for cos in -lm... " >&6; }
14296 if ${ac_cv_lib_m_cos+:} false; then :
14297 $as_echo_n "(cached) " >&6
14298 else
14299 ac_check_lib_save_LIBS=$LIBS
14300 LIBS="-lm $LIBS"
14301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14302 /* end confdefs.h. */
14304 /* Override any GCC internal prototype to avoid an error.
14305 Use char because int might match the return type of a GCC
14306 builtin and then its argument prototype would still apply. */
14307 #ifdef __cplusplus
14308 extern "C"
14309 #endif
14310 char cos ();
14312 main ()
14314 return cos ();
14316 return 0;
14318 _ACEOF
14319 if ac_fn_c_try_link "$LINENO"; then :
14320 ac_cv_lib_m_cos=yes
14321 else
14322 ac_cv_lib_m_cos=no
14324 rm -f core conftest.err conftest.$ac_objext \
14325 conftest$ac_exeext conftest.$ac_ext
14326 LIBS=$ac_check_lib_save_LIBS
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14329 $as_echo "$ac_cv_lib_m_cos" >&6; }
14330 if test "x$ac_cv_lib_m_cos" = xyes; then :
14331 LIBM="-lm"
14335 esac
14339 #Libs for generator progs
14340 if test "x$cross_compiling" = "xno"; then
14341 BUILD_LIBS=../libiberty/libiberty.a
14342 BUILD_LIB_DEPS=$BUILD_LIBS
14343 else
14344 # if cross-compiling, assume that the system provides -liberty
14345 # and that the version is compatible with new headers.
14346 BUILD_LIBS=-liberty
14347 BUILD_LIB_DEPS=
14349 BUILD_LIBS="$BUILD_LIBS $LIBINTL"
14350 BUILD_LIB_DEPS="$BUILD_LIB_DEPS $LIBINTL_DEP"
14355 # Horrible hacks to build DLLs on Windows and a shared library elsewhere.
14356 SHARED_LDFLAGS=
14357 SHARED_LIBADD=
14358 SHARED_DEPENDENCIES=
14359 if test "$enable_shared" = "yes"; then
14360 # When building a shared libopcodes, link against the pic version of libiberty
14361 # so that apps that use libopcodes won't need libiberty just to satisfy any
14362 # libopcodes references.
14363 # We can't do that if a pic libiberty is unavailable since including non-pic
14364 # code would insert text relocations into libopcodes.
14365 # Note that linking against libbfd as we do here, which is itself linked
14366 # against libiberty, may not satisfy all the libopcodes libiberty references
14367 # since libbfd may not pull in the entirety of libiberty.
14368 # Also, jam libintl into the right place in all of this: after libiberty,
14369 # which uses it, but before -lcygwin, which it uses.
14370 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
14371 if test -n "$x"; then
14372 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
14376 SHARED_LIBADD="$SHARED_LIBADD $LTLIBINTL"
14378 if test "$enable_shared" = "yes"; then
14379 case "${host}" in
14380 *-*-cygwin*)
14381 SHARED_LDFLAGS="-no-undefined"
14382 SHARED_LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty $SHARED_LIBADD"
14385 SHARED_LIBADD="../bfd/libbfd.la ${SHARED_LIBADD}"
14386 SHARED_DEPENDENCIES="../bfd/libbfd.la"
14388 esac
14390 if test -n "$SHARED_LIBADD"; then
14391 if test -n "$LIBM"; then
14392 if test x"$bfd_cv_ld_as_needed" = xyes; then
14393 # Link against libm only when needed. Put -lc, -lm inside -Wl
14394 # to stop libtool reordering these options.
14395 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
14396 else
14397 SHARED_LIBADD="$SHARED_LIBADD $LIBM"
14406 # target-specific stuff:
14408 # Canonicalize the secondary target names.
14409 if test -n "$enable_targets" ; then
14410 for targ in `echo $enable_targets | sed 's/,/ /g'`
14412 result=`$ac_config_sub $targ 2>/dev/null`
14413 if test -n "$result" ; then
14414 canon_targets="$canon_targets $result"
14415 else
14416 # Allow targets that config.sub doesn't recognize, like "all".
14417 canon_targets="$canon_targets $targ"
14419 done
14422 all_targets=false
14423 selarchs=
14424 for targ in $target $canon_targets
14426 if test "x$targ" = "xall" ; then
14427 all_targets=true
14428 else
14429 . $srcdir/../bfd/config.bfd
14430 selarchs="$selarchs $targ_archs"
14432 done
14434 # Utility var, documents generic cgen support files.
14436 cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo cgen-bitset.lo"
14438 # We don't do any links based on the target system, just makefile config.
14440 if test x${all_targets} = xfalse ; then
14442 # Target architecture .o files.
14445 for arch in $selarchs
14447 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
14448 archdefs="$archdefs -DARCH_$ad"
14449 case "$arch" in
14450 bfd_aarch64_arch) ta="$ta aarch64-asm.lo aarch64-dis.lo aarch64-opc.lo aarch64-asm-2.lo aarch64-dis-2.lo aarch64-opc-2.lo" ;;
14451 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
14452 bfd_amdgcn_arch) ;;
14453 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
14454 bfd_arm_arch) ta="$ta arm-dis.lo" ;;
14455 bfd_avr_arch) ta="$ta avr-dis.lo" ;;
14456 bfd_bfin_arch) ta="$ta bfin-dis.lo" ;;
14457 bfd_cr16_arch) ta="$ta cr16-dis.lo cr16-opc.lo" ;;
14458 bfd_cris_arch) ta="$ta cris-desc.lo cris-dis.lo cris-opc.lo cgen-bitset.lo" ;;
14459 bfd_crx_arch) ta="$ta crx-dis.lo crx-opc.lo" ;;
14460 bfd_csky_arch) ta="$ta csky-dis.lo" ;;
14461 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
14462 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
14463 bfd_dlx_arch) ta="$ta dlx-dis.lo" ;;
14464 bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
14465 bfd_frv_arch) ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;;
14466 bfd_ft32_arch) ta="$ta ft32-opc.lo ft32-dis.lo" ;;
14467 bfd_moxie_arch) ta="$ta moxie-dis.lo moxie-opc.lo" ;;
14468 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
14469 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
14470 bfd_i386_arch|bfd_iamcu_arch)
14471 ta="$ta i386-dis.lo" ;;
14472 bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;;
14473 bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;;
14474 bfd_epiphany_arch) ta="$ta epiphany-asm.lo epiphany-desc.lo epiphany-dis.lo epiphany-ibld.lo epiphany-opc.lo" using_cgen=yes ;;
14475 bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;;
14476 bfd_kvx_arch) ta="$ta kvx-opc.lo kvx-dis.lo" ;;
14477 bfd_lm32_arch) ta="$ta lm32-asm.lo lm32-desc.lo lm32-dis.lo lm32-ibld.lo lm32-opc.lo lm32-opinst.lo" using_cgen=yes ;;
14478 bfd_m32c_arch) ta="$ta m32c-asm.lo m32c-desc.lo m32c-dis.lo m32c-ibld.lo m32c-opc.lo" using_cgen=yes ;;
14479 bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;;
14480 bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
14481 bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
14482 bfd_m9s12x_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
14483 bfd_m9s12xg_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
14484 bfd_s12z_arch) ta="$ta s12z-dis.lo s12z-opc.lo" ;;
14485 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
14486 bfd_mcore_arch) ta="$ta mcore-dis.lo" ;;
14487 bfd_mep_arch) ta="$ta mep-asm.lo mep-desc.lo mep-dis.lo mep-ibld.lo mep-opc.lo" using_cgen=yes ;;
14488 bfd_metag_arch) ta="$ta metag-dis.lo" ;;
14489 bfd_microblaze_arch) ta="$ta microblaze-dis.lo" ;;
14490 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo micromips-opc.lo" ;;
14491 bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;;
14492 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
14493 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
14494 bfd_mt_arch) ta="$ta mt-asm.lo mt-desc.lo mt-dis.lo mt-ibld.lo mt-opc.lo" using_cgen=yes ;;
14495 bfd_msp430_arch) ta="$ta msp430-dis.lo msp430-decode.lo" ;;
14496 bfd_nds32_arch) ta="$ta nds32-asm.lo nds32-dis.lo" ;;
14497 bfd_nfp_arch) ta="$ta nfp-dis.lo" ;;
14498 bfd_nios2_arch) ta="$ta nios2-dis.lo nios2-opc.lo" ;;
14499 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
14500 bfd_or1k_arch) ta="$ta or1k-asm.lo or1k-desc.lo or1k-dis.lo or1k-ibld.lo or1k-opc.lo" using_cgen=yes ;;
14501 bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;;
14502 bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;;
14503 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
14504 bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
14505 bfd_pru_arch) ta="$ta pru-dis.lo pru-opc.lo" ;;
14506 bfd_pyramid_arch) ;;
14507 bfd_romp_arch) ;;
14508 bfd_riscv_arch) ta="$ta riscv-dis.lo riscv-opc.lo" ;;
14509 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
14510 bfd_rl78_arch) ta="$ta rl78-dis.lo rl78-decode.lo";;
14511 bfd_rx_arch) ta="$ta rx-dis.lo rx-decode.lo";;
14512 bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;;
14513 bfd_score_arch) ta="$ta score-dis.lo score7-dis.lo" ;;
14514 bfd_sh_arch) ta="$ta sh-dis.lo cgen-bitset.lo" ;;
14515 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
14516 bfd_spu_arch) ta="$ta spu-dis.lo spu-opc.lo" ;;
14517 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
14518 bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;;
14519 bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
14520 bfd_tic6x_arch) ta="$ta tic6x-dis.lo" ;;
14521 bfd_tilegx_arch) ta="$ta tilegx-dis.lo tilegx-opc.lo" ;;
14522 bfd_tilepro_arch) ta="$ta tilepro-dis.lo tilepro-opc.lo" ;;
14523 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
14524 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
14525 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
14526 bfd_v850_rh850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
14527 bfd_vax_arch) ta="$ta vax-dis.lo" ;;
14528 bfd_visium_arch) ta="$ta visium-dis.lo visium-opc.lo" ;;
14529 bfd_wasm32_arch) ta="$ta wasm32-dis.lo" ;;
14530 bfd_xgate_arch) ta="$ta xgate-dis.lo xgate-opc.lo" ;;
14531 bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;;
14532 bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;;
14533 bfd_z80_arch) ta="$ta z80-dis.lo" ;;
14534 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
14535 bfd_bpf_arch) ta="$ta bpf-dis.lo bpf-opc.lo" ;;
14536 bfd_loongarch_arch) ta="$ta loongarch-dis.lo loongarch-opc.lo loongarch-coder.lo" ;;
14538 "") ;;
14539 *) as_fn_error $? "*** unknown target architecture $arch" "$LINENO" 5 ;;
14540 esac
14541 done
14543 if test $using_cgen = yes ; then
14544 ta="$ta $cgen_files"
14547 # Weed out duplicate .o files.
14548 f=""
14549 for i in $ta ; do
14550 case " $f " in
14551 *" $i "*) ;;
14552 *) f="$f $i" ;;
14553 esac
14554 done
14555 ta="$f"
14557 # And duplicate -D flags.
14558 f=""
14559 for i in $archdefs ; do
14560 case " $f " in
14561 *" $i "*) ;;
14562 *) f="$f $i" ;;
14563 esac
14564 done
14565 archdefs="$f"
14567 BFD_MACHINES="$ta"
14569 else # all_targets is true
14570 archdefs=-DARCH_all
14571 if test "$enable_64_bit_bfd" = "yes" ; then
14572 BFD_MACHINES='$(ALL32_MACHINES) $(ALL64_MACHINES)'
14573 else
14574 BFD_MACHINES='$(ALL32_MACHINES)'
14581 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
14583 cat >confcache <<\_ACEOF
14584 # This file is a shell script that caches the results of configure
14585 # tests run on this system so they can be shared between configure
14586 # scripts and configure runs, see configure's option --config-cache.
14587 # It is not useful on other systems. If it contains results you don't
14588 # want to keep, you may remove or edit it.
14590 # config.status only pays attention to the cache file if you give it
14591 # the --recheck option to rerun configure.
14593 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14594 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14595 # following values.
14597 _ACEOF
14599 # The following way of writing the cache mishandles newlines in values,
14600 # but we know of no workaround that is simple, portable, and efficient.
14601 # So, we kill variables containing newlines.
14602 # Ultrix sh set writes to stderr and can't be redirected directly,
14603 # and sets the high bit in the cache file unless we assign to the vars.
14605 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14606 eval ac_val=\$$ac_var
14607 case $ac_val in #(
14608 *${as_nl}*)
14609 case $ac_var in #(
14610 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14611 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14612 esac
14613 case $ac_var in #(
14614 _ | IFS | as_nl) ;; #(
14615 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14616 *) { eval $ac_var=; unset $ac_var;} ;;
14617 esac ;;
14618 esac
14619 done
14621 (set) 2>&1 |
14622 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14623 *${as_nl}ac_space=\ *)
14624 # `set' does not quote correctly, so add quotes: double-quote
14625 # substitution turns \\\\ into \\, and sed turns \\ into \.
14626 sed -n \
14627 "s/'/'\\\\''/g;
14628 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14629 ;; #(
14631 # `set' quotes correctly as required by POSIX, so do not add quotes.
14632 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14634 esac |
14635 sort
14637 sed '
14638 /^ac_cv_env_/b end
14639 t clear
14640 :clear
14641 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14642 t end
14643 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14644 :end' >>confcache
14645 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14646 if test -w "$cache_file"; then
14647 if test "x$cache_file" != "x/dev/null"; then
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14649 $as_echo "$as_me: updating cache $cache_file" >&6;}
14650 if test ! -f "$cache_file" || test -h "$cache_file"; then
14651 cat confcache >"$cache_file"
14652 else
14653 case $cache_file in #(
14654 */* | ?:*)
14655 mv -f confcache "$cache_file"$$ &&
14656 mv -f "$cache_file"$$ "$cache_file" ;; #(
14658 mv -f confcache "$cache_file" ;;
14659 esac
14662 else
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14664 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14667 rm -f confcache
14669 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14670 # Let make expand exec_prefix.
14671 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14673 DEFS=-DHAVE_CONFIG_H
14675 ac_libobjs=
14676 ac_ltlibobjs=
14678 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14679 # 1. Remove the extension, and $U if already installed.
14680 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14681 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14682 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14683 # will be set to the directory where LIBOBJS objects are built.
14684 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14685 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14686 done
14687 LIBOBJS=$ac_libobjs
14689 LTLIBOBJS=$ac_ltlibobjs
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14693 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14694 if test -n "$am_sleep_pid"; then
14695 # Hide warnings about reused PIDs.
14696 wait $am_sleep_pid 2>/dev/null
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14699 $as_echo "done" >&6; }
14700 if test -n "$EXEEXT"; then
14701 am__EXEEXT_TRUE=
14702 am__EXEEXT_FALSE='#'
14703 else
14704 am__EXEEXT_TRUE='#'
14705 am__EXEEXT_FALSE=
14708 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14709 as_fn_error $? "conditional \"AMDEP\" was never defined.
14710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14712 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14713 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14716 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14717 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14720 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
14721 as_fn_error $? "conditional \"INSTALL_LIBBFD\" was never defined.
14722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14724 if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then
14725 as_fn_error $? "conditional \"ENABLE_BFD_64_BIT\" was never defined.
14726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14728 if test -z "${CGEN_MAINT_TRUE}" && test -z "${CGEN_MAINT_FALSE}"; then
14729 as_fn_error $? "conditional \"CGEN_MAINT\" was never defined.
14730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14733 : "${CONFIG_STATUS=./config.status}"
14734 ac_write_fail=0
14735 ac_clean_files_save=$ac_clean_files
14736 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14738 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14739 as_write_fail=0
14740 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14741 #! $SHELL
14742 # Generated by $as_me.
14743 # Run this file to recreate the current configuration.
14744 # Compiler output produced by configure, useful for debugging
14745 # configure, is in config.log if it exists.
14747 debug=false
14748 ac_cs_recheck=false
14749 ac_cs_silent=false
14751 SHELL=\${CONFIG_SHELL-$SHELL}
14752 export SHELL
14753 _ASEOF
14754 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14755 ## -------------------- ##
14756 ## M4sh Initialization. ##
14757 ## -------------------- ##
14759 # Be more Bourne compatible
14760 DUALCASE=1; export DUALCASE # for MKS sh
14761 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14762 emulate sh
14763 NULLCMD=:
14764 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14765 # is contrary to our usage. Disable this feature.
14766 alias -g '${1+"$@"}'='"$@"'
14767 setopt NO_GLOB_SUBST
14768 else
14769 case `(set -o) 2>/dev/null` in #(
14770 *posix*) :
14771 set -o posix ;; #(
14772 *) :
14774 esac
14778 as_nl='
14780 export as_nl
14781 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14782 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14783 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14784 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14785 # Prefer a ksh shell builtin over an external printf program on Solaris,
14786 # but without wasting forks for bash or zsh.
14787 if test -z "$BASH_VERSION$ZSH_VERSION" \
14788 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14789 as_echo='print -r --'
14790 as_echo_n='print -rn --'
14791 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14792 as_echo='printf %s\n'
14793 as_echo_n='printf %s'
14794 else
14795 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14796 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14797 as_echo_n='/usr/ucb/echo -n'
14798 else
14799 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14800 as_echo_n_body='eval
14801 arg=$1;
14802 case $arg in #(
14803 *"$as_nl"*)
14804 expr "X$arg" : "X\\(.*\\)$as_nl";
14805 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14806 esac;
14807 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14809 export as_echo_n_body
14810 as_echo_n='sh -c $as_echo_n_body as_echo'
14812 export as_echo_body
14813 as_echo='sh -c $as_echo_body as_echo'
14816 # The user is always right.
14817 if test "${PATH_SEPARATOR+set}" != set; then
14818 PATH_SEPARATOR=:
14819 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14820 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14821 PATH_SEPARATOR=';'
14826 # IFS
14827 # We need space, tab and new line, in precisely that order. Quoting is
14828 # there to prevent editors from complaining about space-tab.
14829 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14830 # splitting by setting IFS to empty value.)
14831 IFS=" "" $as_nl"
14833 # Find who we are. Look in the path if we contain no directory separator.
14834 as_myself=
14835 case $0 in #((
14836 *[\\/]* ) as_myself=$0 ;;
14837 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14838 for as_dir in $PATH
14840 IFS=$as_save_IFS
14841 test -z "$as_dir" && as_dir=.
14842 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14843 done
14844 IFS=$as_save_IFS
14847 esac
14848 # We did not find ourselves, most probably we were run as `sh COMMAND'
14849 # in which case we are not to be found in the path.
14850 if test "x$as_myself" = x; then
14851 as_myself=$0
14853 if test ! -f "$as_myself"; then
14854 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14855 exit 1
14858 # Unset variables that we do not need and which cause bugs (e.g. in
14859 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14860 # suppresses any "Segmentation fault" message there. '((' could
14861 # trigger a bug in pdksh 5.2.14.
14862 for as_var in BASH_ENV ENV MAIL MAILPATH
14863 do eval test x\${$as_var+set} = xset \
14864 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14865 done
14866 PS1='$ '
14867 PS2='> '
14868 PS4='+ '
14870 # NLS nuisances.
14871 LC_ALL=C
14872 export LC_ALL
14873 LANGUAGE=C
14874 export LANGUAGE
14876 # CDPATH.
14877 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14880 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14881 # ----------------------------------------
14882 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14883 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14884 # script with STATUS, using 1 if that was 0.
14885 as_fn_error ()
14887 as_status=$1; test $as_status -eq 0 && as_status=1
14888 if test "$4"; then
14889 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14890 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14892 $as_echo "$as_me: error: $2" >&2
14893 as_fn_exit $as_status
14894 } # as_fn_error
14897 # as_fn_set_status STATUS
14898 # -----------------------
14899 # Set $? to STATUS, without forking.
14900 as_fn_set_status ()
14902 return $1
14903 } # as_fn_set_status
14905 # as_fn_exit STATUS
14906 # -----------------
14907 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14908 as_fn_exit ()
14910 set +e
14911 as_fn_set_status $1
14912 exit $1
14913 } # as_fn_exit
14915 # as_fn_unset VAR
14916 # ---------------
14917 # Portably unset VAR.
14918 as_fn_unset ()
14920 { eval $1=; unset $1;}
14922 as_unset=as_fn_unset
14923 # as_fn_append VAR VALUE
14924 # ----------------------
14925 # Append the text in VALUE to the end of the definition contained in VAR. Take
14926 # advantage of any shell optimizations that allow amortized linear growth over
14927 # repeated appends, instead of the typical quadratic growth present in naive
14928 # implementations.
14929 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14930 eval 'as_fn_append ()
14932 eval $1+=\$2
14934 else
14935 as_fn_append ()
14937 eval $1=\$$1\$2
14939 fi # as_fn_append
14941 # as_fn_arith ARG...
14942 # ------------------
14943 # Perform arithmetic evaluation on the ARGs, and store the result in the
14944 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14945 # must be portable across $(()) and expr.
14946 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14947 eval 'as_fn_arith ()
14949 as_val=$(( $* ))
14951 else
14952 as_fn_arith ()
14954 as_val=`expr "$@" || test $? -eq 1`
14956 fi # as_fn_arith
14959 if expr a : '\(a\)' >/dev/null 2>&1 &&
14960 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14961 as_expr=expr
14962 else
14963 as_expr=false
14966 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14967 as_basename=basename
14968 else
14969 as_basename=false
14972 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14973 as_dirname=dirname
14974 else
14975 as_dirname=false
14978 as_me=`$as_basename -- "$0" ||
14979 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14980 X"$0" : 'X\(//\)$' \| \
14981 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14982 $as_echo X/"$0" |
14983 sed '/^.*\/\([^/][^/]*\)\/*$/{
14984 s//\1/
14987 /^X\/\(\/\/\)$/{
14988 s//\1/
14991 /^X\/\(\/\).*/{
14992 s//\1/
14995 s/.*/./; q'`
14997 # Avoid depending upon Character Ranges.
14998 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14999 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15000 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15001 as_cr_digits='0123456789'
15002 as_cr_alnum=$as_cr_Letters$as_cr_digits
15004 ECHO_C= ECHO_N= ECHO_T=
15005 case `echo -n x` in #(((((
15006 -n*)
15007 case `echo 'xy\c'` in
15008 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15009 xy) ECHO_C='\c';;
15010 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15011 ECHO_T=' ';;
15012 esac;;
15014 ECHO_N='-n';;
15015 esac
15017 rm -f conf$$ conf$$.exe conf$$.file
15018 if test -d conf$$.dir; then
15019 rm -f conf$$.dir/conf$$.file
15020 else
15021 rm -f conf$$.dir
15022 mkdir conf$$.dir 2>/dev/null
15024 if (echo >conf$$.file) 2>/dev/null; then
15025 if ln -s conf$$.file conf$$ 2>/dev/null; then
15026 as_ln_s='ln -s'
15027 # ... but there are two gotchas:
15028 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15029 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15030 # In both cases, we have to default to `cp -pR'.
15031 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15032 as_ln_s='cp -pR'
15033 elif ln conf$$.file conf$$ 2>/dev/null; then
15034 as_ln_s=ln
15035 else
15036 as_ln_s='cp -pR'
15038 else
15039 as_ln_s='cp -pR'
15041 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15042 rmdir conf$$.dir 2>/dev/null
15045 # as_fn_mkdir_p
15046 # -------------
15047 # Create "$as_dir" as a directory, including parents if necessary.
15048 as_fn_mkdir_p ()
15051 case $as_dir in #(
15052 -*) as_dir=./$as_dir;;
15053 esac
15054 test -d "$as_dir" || eval $as_mkdir_p || {
15055 as_dirs=
15056 while :; do
15057 case $as_dir in #(
15058 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15059 *) as_qdir=$as_dir;;
15060 esac
15061 as_dirs="'$as_qdir' $as_dirs"
15062 as_dir=`$as_dirname -- "$as_dir" ||
15063 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15064 X"$as_dir" : 'X\(//\)[^/]' \| \
15065 X"$as_dir" : 'X\(//\)$' \| \
15066 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15067 $as_echo X"$as_dir" |
15068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15069 s//\1/
15072 /^X\(\/\/\)[^/].*/{
15073 s//\1/
15076 /^X\(\/\/\)$/{
15077 s//\1/
15080 /^X\(\/\).*/{
15081 s//\1/
15084 s/.*/./; q'`
15085 test -d "$as_dir" && break
15086 done
15087 test -z "$as_dirs" || eval "mkdir $as_dirs"
15088 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15091 } # as_fn_mkdir_p
15092 if mkdir -p . 2>/dev/null; then
15093 as_mkdir_p='mkdir -p "$as_dir"'
15094 else
15095 test -d ./-p && rmdir ./-p
15096 as_mkdir_p=false
15100 # as_fn_executable_p FILE
15101 # -----------------------
15102 # Test if FILE is an executable regular file.
15103 as_fn_executable_p ()
15105 test -f "$1" && test -x "$1"
15106 } # as_fn_executable_p
15107 as_test_x='test -x'
15108 as_executable_p=as_fn_executable_p
15110 # Sed expression to map a string onto a valid CPP name.
15111 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15113 # Sed expression to map a string onto a valid variable name.
15114 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15117 exec 6>&1
15118 ## ----------------------------------- ##
15119 ## Main body of $CONFIG_STATUS script. ##
15120 ## ----------------------------------- ##
15121 _ASEOF
15122 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15125 # Save the log message, to keep $0 and so on meaningful, and to
15126 # report actual input values of CONFIG_FILES etc. instead of their
15127 # values after options handling.
15128 ac_log="
15129 This file was extended by opcodes $as_me 2.42.50, which was
15130 generated by GNU Autoconf 2.69. Invocation command line was
15132 CONFIG_FILES = $CONFIG_FILES
15133 CONFIG_HEADERS = $CONFIG_HEADERS
15134 CONFIG_LINKS = $CONFIG_LINKS
15135 CONFIG_COMMANDS = $CONFIG_COMMANDS
15136 $ $0 $@
15138 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15141 _ACEOF
15143 case $ac_config_files in *"
15144 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15145 esac
15147 case $ac_config_headers in *"
15148 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15149 esac
15152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15153 # Files that config.status was made for.
15154 config_files="$ac_config_files"
15155 config_headers="$ac_config_headers"
15156 config_commands="$ac_config_commands"
15158 _ACEOF
15160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15161 ac_cs_usage="\
15162 \`$as_me' instantiates files and other configuration actions
15163 from templates according to the current configuration. Unless the files
15164 and actions are specified as TAGs, all are instantiated by default.
15166 Usage: $0 [OPTION]... [TAG]...
15168 -h, --help print this help, then exit
15169 -V, --version print version number and configuration settings, then exit
15170 --config print configuration, then exit
15171 -q, --quiet, --silent
15172 do not print progress messages
15173 -d, --debug don't remove temporary files
15174 --recheck update $as_me by reconfiguring in the same conditions
15175 --file=FILE[:TEMPLATE]
15176 instantiate the configuration file FILE
15177 --header=FILE[:TEMPLATE]
15178 instantiate the configuration header FILE
15180 Configuration files:
15181 $config_files
15183 Configuration headers:
15184 $config_headers
15186 Configuration commands:
15187 $config_commands
15189 Report bugs to the package provider."
15191 _ACEOF
15192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15193 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15194 ac_cs_version="\\
15195 opcodes config.status 2.42.50
15196 configured by $0, generated by GNU Autoconf 2.69,
15197 with options \\"\$ac_cs_config\\"
15199 Copyright (C) 2012 Free Software Foundation, Inc.
15200 This config.status script is free software; the Free Software Foundation
15201 gives unlimited permission to copy, distribute and modify it."
15203 ac_pwd='$ac_pwd'
15204 srcdir='$srcdir'
15205 INSTALL='$INSTALL'
15206 MKDIR_P='$MKDIR_P'
15207 AWK='$AWK'
15208 test -n "\$AWK" || AWK=awk
15209 _ACEOF
15211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15212 # The default lists apply if the user does not specify any file.
15213 ac_need_defaults=:
15214 while test $# != 0
15216 case $1 in
15217 --*=?*)
15218 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15219 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15220 ac_shift=:
15222 --*=)
15223 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15224 ac_optarg=
15225 ac_shift=:
15228 ac_option=$1
15229 ac_optarg=$2
15230 ac_shift=shift
15232 esac
15234 case $ac_option in
15235 # Handling of the options.
15236 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15237 ac_cs_recheck=: ;;
15238 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15239 $as_echo "$ac_cs_version"; exit ;;
15240 --config | --confi | --conf | --con | --co | --c )
15241 $as_echo "$ac_cs_config"; exit ;;
15242 --debug | --debu | --deb | --de | --d | -d )
15243 debug=: ;;
15244 --file | --fil | --fi | --f )
15245 $ac_shift
15246 case $ac_optarg in
15247 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15248 '') as_fn_error $? "missing file argument" ;;
15249 esac
15250 as_fn_append CONFIG_FILES " '$ac_optarg'"
15251 ac_need_defaults=false;;
15252 --header | --heade | --head | --hea )
15253 $ac_shift
15254 case $ac_optarg in
15255 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15256 esac
15257 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15258 ac_need_defaults=false;;
15259 --he | --h)
15260 # Conflict between --help and --header
15261 as_fn_error $? "ambiguous option: \`$1'
15262 Try \`$0 --help' for more information.";;
15263 --help | --hel | -h )
15264 $as_echo "$ac_cs_usage"; exit ;;
15265 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15266 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15267 ac_cs_silent=: ;;
15269 # This is an error.
15270 -*) as_fn_error $? "unrecognized option: \`$1'
15271 Try \`$0 --help' for more information." ;;
15273 *) as_fn_append ac_config_targets " $1"
15274 ac_need_defaults=false ;;
15276 esac
15277 shift
15278 done
15280 ac_configure_extra_args=
15282 if $ac_cs_silent; then
15283 exec 6>/dev/null
15284 ac_configure_extra_args="$ac_configure_extra_args --silent"
15287 _ACEOF
15288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15289 if \$ac_cs_recheck; then
15290 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15291 shift
15292 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15293 CONFIG_SHELL='$SHELL'
15294 export CONFIG_SHELL
15295 exec "\$@"
15298 _ACEOF
15299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15300 exec 5>>config.log
15302 echo
15303 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15304 ## Running $as_me. ##
15305 _ASBOX
15306 $as_echo "$ac_log"
15307 } >&5
15309 _ACEOF
15310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15312 # INIT-COMMANDS
15314 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15317 # The HP-UX ksh and POSIX shell print the target directory to stdout
15318 # if CDPATH is set.
15319 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15321 sed_quote_subst='$sed_quote_subst'
15322 double_quote_subst='$double_quote_subst'
15323 delay_variable_subst='$delay_variable_subst'
15324 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15325 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15326 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15327 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15328 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15329 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15330 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15331 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15332 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15333 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15334 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15335 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15336 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15337 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15338 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15339 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15340 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15341 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15342 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15343 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15344 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15345 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15346 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15347 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15348 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15349 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15350 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15351 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15352 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15353 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15354 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15355 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15356 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15357 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15358 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15359 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15360 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15361 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15362 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15363 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15364 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15365 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15366 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15367 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15368 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15369 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15370 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15371 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15372 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"`'
15373 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15374 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15375 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15376 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15377 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15378 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15379 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15380 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15381 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15382 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15383 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15384 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15385 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15386 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15387 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15388 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15389 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15390 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15391 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15392 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15393 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15394 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15395 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15396 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15397 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15398 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15399 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15400 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15401 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15402 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15403 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15404 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15405 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15406 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15407 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15408 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15409 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15410 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15411 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15412 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15413 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15414 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15415 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15416 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15417 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15418 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15419 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15420 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15421 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15422 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15423 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15424 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15425 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15426 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15427 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15428 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15429 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15430 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15431 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15432 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15433 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15434 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15435 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15436 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15437 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15438 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15439 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15440 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15441 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15442 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15443 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15445 LTCC='$LTCC'
15446 LTCFLAGS='$LTCFLAGS'
15447 compiler='$compiler_DEFAULT'
15449 # A function that is used when there is no print builtin or printf.
15450 func_fallback_echo ()
15452 eval 'cat <<_LTECHO_EOF
15454 _LTECHO_EOF'
15457 # Quote evaled strings.
15458 for var in SHELL \
15459 ECHO \
15460 SED \
15461 GREP \
15462 EGREP \
15463 FGREP \
15464 LD \
15465 NM \
15466 LN_S \
15467 lt_SP2NL \
15468 lt_NL2SP \
15469 reload_flag \
15470 OBJDUMP \
15471 deplibs_check_method \
15472 file_magic_cmd \
15473 AR \
15474 AR_FLAGS \
15475 STRIP \
15476 RANLIB \
15477 CC \
15478 CFLAGS \
15479 compiler \
15480 lt_cv_sys_global_symbol_pipe \
15481 lt_cv_sys_global_symbol_to_cdecl \
15482 lt_cv_sys_global_symbol_to_c_name_address \
15483 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15484 lt_prog_compiler_no_builtin_flag \
15485 lt_prog_compiler_wl \
15486 lt_prog_compiler_pic \
15487 lt_prog_compiler_static \
15488 lt_cv_prog_compiler_c_o \
15489 need_locks \
15490 DSYMUTIL \
15491 NMEDIT \
15492 LIPO \
15493 OTOOL \
15494 OTOOL64 \
15495 shrext_cmds \
15496 export_dynamic_flag_spec \
15497 whole_archive_flag_spec \
15498 compiler_needs_object \
15499 with_gnu_ld \
15500 allow_undefined_flag \
15501 no_undefined_flag \
15502 hardcode_libdir_flag_spec \
15503 hardcode_libdir_flag_spec_ld \
15504 hardcode_libdir_separator \
15505 fix_srcfile_path \
15506 exclude_expsyms \
15507 include_expsyms \
15508 file_list_spec \
15509 variables_saved_for_relink \
15510 libname_spec \
15511 library_names_spec \
15512 soname_spec \
15513 install_override_mode \
15514 finish_eval \
15515 old_striplib \
15516 striplib; do
15517 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15518 *[\\\\\\\`\\"\\\$]*)
15519 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15522 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15524 esac
15525 done
15527 # Double-quote double-evaled strings.
15528 for var in reload_cmds \
15529 old_postinstall_cmds \
15530 old_postuninstall_cmds \
15531 old_archive_cmds \
15532 extract_expsyms_cmds \
15533 old_archive_from_new_cmds \
15534 old_archive_from_expsyms_cmds \
15535 archive_cmds \
15536 archive_expsym_cmds \
15537 module_cmds \
15538 module_expsym_cmds \
15539 export_symbols_cmds \
15540 prelink_cmds \
15541 postinstall_cmds \
15542 postuninstall_cmds \
15543 finish_cmds \
15544 sys_lib_search_path_spec \
15545 sys_lib_dlsearch_path_spec; do
15546 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15547 *[\\\\\\\`\\"\\\$]*)
15548 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15551 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15553 esac
15554 done
15556 ac_aux_dir='$ac_aux_dir'
15557 xsi_shell='$xsi_shell'
15558 lt_shell_append='$lt_shell_append'
15560 # See if we are running on zsh, and set the options which allow our
15561 # commands through without removal of \ escapes INIT.
15562 if test -n "\${ZSH_VERSION+set}" ; then
15563 setopt NO_GLOB_SUBST
15567 PACKAGE='$PACKAGE'
15568 VERSION='$VERSION'
15569 TIMESTAMP='$TIMESTAMP'
15570 RM='$RM'
15571 ofile='$ofile'
15575 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15576 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15577 # from automake.
15578 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15579 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15580 LINGUAS="${LINGUAS-%UNSET%}"
15582 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15583 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15584 # from automake.
15585 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15586 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15587 LINGUAS="${LINGUAS-%UNSET%}"
15590 _ACEOF
15592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15594 # Handling of arguments.
15595 for ac_config_target in $ac_config_targets
15597 case $ac_config_target in
15598 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15599 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15600 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15601 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15602 "default-2") CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
15603 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15604 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15606 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15607 esac
15608 done
15611 # If the user did not use the arguments to specify the items to instantiate,
15612 # then the envvar interface is used. Set only those that are not.
15613 # We use the long form for the default assignment because of an extremely
15614 # bizarre bug on SunOS 4.1.3.
15615 if $ac_need_defaults; then
15616 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15617 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15618 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15621 # Have a temporary directory for convenience. Make it in the build tree
15622 # simply because there is no reason against having it here, and in addition,
15623 # creating and moving files from /tmp can sometimes cause problems.
15624 # Hook for its removal unless debugging.
15625 # Note that there is a small window in which the directory will not be cleaned:
15626 # after its creation but before its name has been assigned to `$tmp'.
15627 $debug ||
15629 tmp= ac_tmp=
15630 trap 'exit_status=$?
15631 : "${ac_tmp:=$tmp}"
15632 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15634 trap 'as_fn_exit 1' 1 2 13 15
15636 # Create a (secure) tmp directory for tmp files.
15639 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15640 test -d "$tmp"
15641 } ||
15643 tmp=./conf$$-$RANDOM
15644 (umask 077 && mkdir "$tmp")
15645 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15646 ac_tmp=$tmp
15648 # Set up the scripts for CONFIG_FILES section.
15649 # No need to generate them if there are no CONFIG_FILES.
15650 # This happens for instance with `./config.status config.h'.
15651 if test -n "$CONFIG_FILES"; then
15654 ac_cr=`echo X | tr X '\015'`
15655 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15656 # But we know of no other shell where ac_cr would be empty at this
15657 # point, so we can use a bashism as a fallback.
15658 if test "x$ac_cr" = x; then
15659 eval ac_cr=\$\'\\r\'
15661 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15662 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15663 ac_cs_awk_cr='\\r'
15664 else
15665 ac_cs_awk_cr=$ac_cr
15668 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15669 _ACEOF
15673 echo "cat >conf$$subs.awk <<_ACEOF" &&
15674 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15675 echo "_ACEOF"
15676 } >conf$$subs.sh ||
15677 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15678 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15679 ac_delim='%!_!# '
15680 for ac_last_try in false false false false false :; do
15681 . ./conf$$subs.sh ||
15682 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15684 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15685 if test $ac_delim_n = $ac_delim_num; then
15686 break
15687 elif $ac_last_try; then
15688 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15689 else
15690 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15692 done
15693 rm -f conf$$subs.sh
15695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15696 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15697 _ACEOF
15698 sed -n '
15700 s/^/S["/; s/!.*/"]=/
15703 s/^[^!]*!//
15704 :repl
15705 t repl
15706 s/'"$ac_delim"'$//
15707 t delim
15710 s/\(.\{148\}\)..*/\1/
15711 t more1
15712 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15715 b repl
15716 :more1
15717 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15720 s/.\{148\}//
15721 t nl
15722 :delim
15724 s/\(.\{148\}\)..*/\1/
15725 t more2
15726 s/["\\]/\\&/g; s/^/"/; s/$/"/
15729 :more2
15730 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15733 s/.\{148\}//
15734 t delim
15735 ' <conf$$subs.awk | sed '
15736 /^[^""]/{
15738 s/\n//
15740 ' >>$CONFIG_STATUS || ac_write_fail=1
15741 rm -f conf$$subs.awk
15742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15743 _ACAWK
15744 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15745 for (key in S) S_is_set[key] = 1
15746 FS = "\a"
15750 line = $ 0
15751 nfields = split(line, field, "@")
15752 substed = 0
15753 len = length(field[1])
15754 for (i = 2; i < nfields; i++) {
15755 key = field[i]
15756 keylen = length(key)
15757 if (S_is_set[key]) {
15758 value = S[key]
15759 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15760 len += length(value) + length(field[++i])
15761 substed = 1
15762 } else
15763 len += 1 + keylen
15766 print line
15769 _ACAWK
15770 _ACEOF
15771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15772 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15773 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15774 else
15776 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15777 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15778 _ACEOF
15780 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15781 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15782 # trailing colons and then remove the whole line if VPATH becomes empty
15783 # (actually we leave an empty line to preserve line numbers).
15784 if test "x$srcdir" = x.; then
15785 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15787 s///
15788 s/^/:/
15789 s/[ ]*$/:/
15790 s/:\$(srcdir):/:/g
15791 s/:\${srcdir}:/:/g
15792 s/:@srcdir@:/:/g
15793 s/^:*//
15794 s/:*$//
15796 s/\(=[ ]*\).*/\1/
15798 s/\n//
15799 s/^[^=]*=[ ]*$//
15803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15804 fi # test -n "$CONFIG_FILES"
15806 # Set up the scripts for CONFIG_HEADERS section.
15807 # No need to generate them if there are no CONFIG_HEADERS.
15808 # This happens for instance with `./config.status Makefile'.
15809 if test -n "$CONFIG_HEADERS"; then
15810 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15811 BEGIN {
15812 _ACEOF
15814 # Transform confdefs.h into an awk script `defines.awk', embedded as
15815 # here-document in config.status, that substitutes the proper values into
15816 # config.h.in to produce config.h.
15818 # Create a delimiter string that does not exist in confdefs.h, to ease
15819 # handling of long lines.
15820 ac_delim='%!_!# '
15821 for ac_last_try in false false :; do
15822 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15823 if test -z "$ac_tt"; then
15824 break
15825 elif $ac_last_try; then
15826 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15827 else
15828 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15830 done
15832 # For the awk script, D is an array of macro values keyed by name,
15833 # likewise P contains macro parameters if any. Preserve backslash
15834 # newline sequences.
15836 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15837 sed -n '
15838 s/.\{148\}/&'"$ac_delim"'/g
15839 t rset
15840 :rset
15841 s/^[ ]*#[ ]*define[ ][ ]*/ /
15842 t def
15844 :def
15845 s/\\$//
15846 t bsnl
15847 s/["\\]/\\&/g
15848 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15849 D["\1"]=" \3"/p
15850 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15852 :bsnl
15853 s/["\\]/\\&/g
15854 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15855 D["\1"]=" \3\\\\\\n"\\/p
15856 t cont
15857 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15858 t cont
15860 :cont
15862 s/.\{148\}/&'"$ac_delim"'/g
15863 t clear
15864 :clear
15865 s/\\$//
15866 t bsnlc
15867 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15869 :bsnlc
15870 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15871 b cont
15872 ' <confdefs.h | sed '
15873 s/'"$ac_delim"'/"\\\
15874 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15876 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15877 for (key in D) D_is_set[key] = 1
15878 FS = "\a"
15880 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15881 line = \$ 0
15882 split(line, arg, " ")
15883 if (arg[1] == "#") {
15884 defundef = arg[2]
15885 mac1 = arg[3]
15886 } else {
15887 defundef = substr(arg[1], 2)
15888 mac1 = arg[2]
15890 split(mac1, mac2, "(") #)
15891 macro = mac2[1]
15892 prefix = substr(line, 1, index(line, defundef) - 1)
15893 if (D_is_set[macro]) {
15894 # Preserve the white space surrounding the "#".
15895 print prefix "define", macro P[macro] D[macro]
15896 next
15897 } else {
15898 # Replace #undef with comments. This is necessary, for example,
15899 # in the case of _POSIX_SOURCE, which is predefined and required
15900 # on some systems where configure will not decide to define it.
15901 if (defundef == "undef") {
15902 print "/*", prefix defundef, macro, "*/"
15903 next
15907 { print }
15908 _ACAWK
15909 _ACEOF
15910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15911 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15912 fi # test -n "$CONFIG_HEADERS"
15915 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15916 shift
15917 for ac_tag
15919 case $ac_tag in
15920 :[FHLC]) ac_mode=$ac_tag; continue;;
15921 esac
15922 case $ac_mode$ac_tag in
15923 :[FHL]*:*);;
15924 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15925 :[FH]-) ac_tag=-:-;;
15926 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15927 esac
15928 ac_save_IFS=$IFS
15929 IFS=:
15930 set x $ac_tag
15931 IFS=$ac_save_IFS
15932 shift
15933 ac_file=$1
15934 shift
15936 case $ac_mode in
15937 :L) ac_source=$1;;
15938 :[FH])
15939 ac_file_inputs=
15940 for ac_f
15942 case $ac_f in
15943 -) ac_f="$ac_tmp/stdin";;
15944 *) # Look for the file first in the build tree, then in the source tree
15945 # (if the path is not absolute). The absolute path cannot be DOS-style,
15946 # because $ac_f cannot contain `:'.
15947 test -f "$ac_f" ||
15948 case $ac_f in
15949 [\\/$]*) false;;
15950 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15951 esac ||
15952 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15953 esac
15954 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15955 as_fn_append ac_file_inputs " '$ac_f'"
15956 done
15958 # Let's still pretend it is `configure' which instantiates (i.e., don't
15959 # use $as_me), people would be surprised to read:
15960 # /* config.h. Generated by config.status. */
15961 configure_input='Generated from '`
15962 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15963 `' by configure.'
15964 if test x"$ac_file" != x-; then
15965 configure_input="$ac_file. $configure_input"
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15967 $as_echo "$as_me: creating $ac_file" >&6;}
15969 # Neutralize special characters interpreted by sed in replacement strings.
15970 case $configure_input in #(
15971 *\&* | *\|* | *\\* )
15972 ac_sed_conf_input=`$as_echo "$configure_input" |
15973 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15974 *) ac_sed_conf_input=$configure_input;;
15975 esac
15977 case $ac_tag in
15978 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15979 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15980 esac
15982 esac
15984 ac_dir=`$as_dirname -- "$ac_file" ||
15985 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15986 X"$ac_file" : 'X\(//\)[^/]' \| \
15987 X"$ac_file" : 'X\(//\)$' \| \
15988 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15989 $as_echo X"$ac_file" |
15990 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15991 s//\1/
15994 /^X\(\/\/\)[^/].*/{
15995 s//\1/
15998 /^X\(\/\/\)$/{
15999 s//\1/
16002 /^X\(\/\).*/{
16003 s//\1/
16006 s/.*/./; q'`
16007 as_dir="$ac_dir"; as_fn_mkdir_p
16008 ac_builddir=.
16010 case "$ac_dir" in
16011 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16013 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16014 # A ".." for each directory in $ac_dir_suffix.
16015 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16016 case $ac_top_builddir_sub in
16017 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16018 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16019 esac ;;
16020 esac
16021 ac_abs_top_builddir=$ac_pwd
16022 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16023 # for backward compatibility:
16024 ac_top_builddir=$ac_top_build_prefix
16026 case $srcdir in
16027 .) # We are building in place.
16028 ac_srcdir=.
16029 ac_top_srcdir=$ac_top_builddir_sub
16030 ac_abs_top_srcdir=$ac_pwd ;;
16031 [\\/]* | ?:[\\/]* ) # Absolute name.
16032 ac_srcdir=$srcdir$ac_dir_suffix;
16033 ac_top_srcdir=$srcdir
16034 ac_abs_top_srcdir=$srcdir ;;
16035 *) # Relative name.
16036 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16037 ac_top_srcdir=$ac_top_build_prefix$srcdir
16038 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16039 esac
16040 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16043 case $ac_mode in
16046 # CONFIG_FILE
16049 case $INSTALL in
16050 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16051 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16052 esac
16053 ac_MKDIR_P=$MKDIR_P
16054 case $MKDIR_P in
16055 [\\/$]* | ?:[\\/]* ) ;;
16056 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16057 esac
16058 _ACEOF
16060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16061 # If the template does not know about datarootdir, expand it.
16062 # FIXME: This hack should be removed a few years after 2.60.
16063 ac_datarootdir_hack=; ac_datarootdir_seen=
16064 ac_sed_dataroot='
16065 /datarootdir/ {
16069 /@datadir@/p
16070 /@docdir@/p
16071 /@infodir@/p
16072 /@localedir@/p
16073 /@mandir@/p'
16074 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16075 *datarootdir*) ac_datarootdir_seen=yes;;
16076 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16078 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16079 _ACEOF
16080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16081 ac_datarootdir_hack='
16082 s&@datadir@&$datadir&g
16083 s&@docdir@&$docdir&g
16084 s&@infodir@&$infodir&g
16085 s&@localedir@&$localedir&g
16086 s&@mandir@&$mandir&g
16087 s&\\\${datarootdir}&$datarootdir&g' ;;
16088 esac
16089 _ACEOF
16091 # Neutralize VPATH when `$srcdir' = `.'.
16092 # Shell code in configure.ac might set extrasub.
16093 # FIXME: do we really want to maintain this feature?
16094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16095 ac_sed_extra="$ac_vpsub
16096 $extrasub
16097 _ACEOF
16098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16100 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16101 s|@configure_input@|$ac_sed_conf_input|;t t
16102 s&@top_builddir@&$ac_top_builddir_sub&;t t
16103 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16104 s&@srcdir@&$ac_srcdir&;t t
16105 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16106 s&@top_srcdir@&$ac_top_srcdir&;t t
16107 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16108 s&@builddir@&$ac_builddir&;t t
16109 s&@abs_builddir@&$ac_abs_builddir&;t t
16110 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16111 s&@INSTALL@&$ac_INSTALL&;t t
16112 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16113 $ac_datarootdir_hack
16115 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16116 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16118 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16119 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16120 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16121 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16123 which seems to be undefined. Please make sure it is defined" >&5
16124 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16125 which seems to be undefined. Please make sure it is defined" >&2;}
16127 rm -f "$ac_tmp/stdin"
16128 case $ac_file in
16129 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16130 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16131 esac \
16132 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16136 # CONFIG_HEADER
16138 if test x"$ac_file" != x-; then
16140 $as_echo "/* $configure_input */" \
16141 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16142 } >"$ac_tmp/config.h" \
16143 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16144 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16146 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16147 else
16148 rm -f "$ac_file"
16149 mv "$ac_tmp/config.h" "$ac_file" \
16150 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16152 else
16153 $as_echo "/* $configure_input */" \
16154 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16155 || as_fn_error $? "could not create -" "$LINENO" 5
16157 # Compute "$ac_file"'s index in $config_headers.
16158 _am_arg="$ac_file"
16159 _am_stamp_count=1
16160 for _am_header in $config_headers :; do
16161 case $_am_header in
16162 $_am_arg | $_am_arg:* )
16163 break ;;
16165 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16166 esac
16167 done
16168 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16169 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16170 X"$_am_arg" : 'X\(//\)[^/]' \| \
16171 X"$_am_arg" : 'X\(//\)$' \| \
16172 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16173 $as_echo X"$_am_arg" |
16174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16175 s//\1/
16178 /^X\(\/\/\)[^/].*/{
16179 s//\1/
16182 /^X\(\/\/\)$/{
16183 s//\1/
16186 /^X\(\/\).*/{
16187 s//\1/
16190 s/.*/./; q'`/stamp-h$_am_stamp_count
16193 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16194 $as_echo "$as_me: executing $ac_file commands" >&6;}
16196 esac
16199 case $ac_file$ac_mode in
16200 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16201 # Older Autoconf quotes --file arguments for eval, but not when files
16202 # are listed without --file. Let's play safe and only enable the eval
16203 # if we detect the quoting.
16204 case $CONFIG_FILES in
16205 *\'*) eval set x "$CONFIG_FILES" ;;
16206 *) set x $CONFIG_FILES ;;
16207 esac
16208 shift
16209 for mf
16211 # Strip MF so we end up with the name of the file.
16212 mf=`echo "$mf" | sed -e 's/:.*$//'`
16213 # Check whether this is an Automake generated Makefile or not.
16214 # We used to match only the files named 'Makefile.in', but
16215 # some people rename them; so instead we look at the file content.
16216 # Grep'ing the first line is not enough: some people post-process
16217 # each Makefile.in and add a new line on top of each file to say so.
16218 # Grep'ing the whole file is not good either: AIX grep has a line
16219 # limit of 2048, but all sed's we know have understand at least 4000.
16220 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16221 dirpart=`$as_dirname -- "$mf" ||
16222 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16223 X"$mf" : 'X\(//\)[^/]' \| \
16224 X"$mf" : 'X\(//\)$' \| \
16225 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16226 $as_echo X"$mf" |
16227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16228 s//\1/
16231 /^X\(\/\/\)[^/].*/{
16232 s//\1/
16235 /^X\(\/\/\)$/{
16236 s//\1/
16239 /^X\(\/\).*/{
16240 s//\1/
16243 s/.*/./; q'`
16244 else
16245 continue
16247 # Extract the definition of DEPDIR, am__include, and am__quote
16248 # from the Makefile without running 'make'.
16249 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16250 test -z "$DEPDIR" && continue
16251 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16252 test -z "$am__include" && continue
16253 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16254 # Find all dependency output files, they are included files with
16255 # $(DEPDIR) in their names. We invoke sed twice because it is the
16256 # simplest approach to changing $(DEPDIR) to its actual value in the
16257 # expansion.
16258 for file in `sed -n "
16259 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16260 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16261 # Make sure the directory exists.
16262 test -f "$dirpart/$file" && continue
16263 fdir=`$as_dirname -- "$file" ||
16264 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16265 X"$file" : 'X\(//\)[^/]' \| \
16266 X"$file" : 'X\(//\)$' \| \
16267 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16268 $as_echo X"$file" |
16269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16270 s//\1/
16273 /^X\(\/\/\)[^/].*/{
16274 s//\1/
16277 /^X\(\/\/\)$/{
16278 s//\1/
16281 /^X\(\/\).*/{
16282 s//\1/
16285 s/.*/./; q'`
16286 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16287 # echo "creating $dirpart/$file"
16288 echo '# dummy' > "$dirpart/$file"
16289 done
16290 done
16293 "libtool":C)
16295 # See if we are running on zsh, and set the options which allow our
16296 # commands through without removal of \ escapes.
16297 if test -n "${ZSH_VERSION+set}" ; then
16298 setopt NO_GLOB_SUBST
16301 cfgfile="${ofile}T"
16302 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16303 $RM "$cfgfile"
16305 cat <<_LT_EOF >> "$cfgfile"
16306 #! $SHELL
16308 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16309 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16310 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16311 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16313 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16314 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16315 # Written by Gordon Matzigkeit, 1996
16317 # This file is part of GNU Libtool.
16319 # GNU Libtool is free software; you can redistribute it and/or
16320 # modify it under the terms of the GNU General Public License as
16321 # published by the Free Software Foundation; either version 2 of
16322 # the License, or (at your option) any later version.
16324 # As a special exception to the GNU General Public License,
16325 # if you distribute this file as part of a program or library that
16326 # is built using GNU Libtool, you may include this file under the
16327 # same distribution terms that you use for the rest of that program.
16329 # GNU Libtool is distributed in the hope that it will be useful,
16330 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16331 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16332 # GNU General Public License for more details.
16334 # You should have received a copy of the GNU General Public License
16335 # along with GNU Libtool; see the file COPYING. If not, a copy
16336 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16337 # obtained by writing to the Free Software Foundation, Inc.,
16338 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16341 # The names of the tagged configurations supported by this script.
16342 available_tags=""
16344 # ### BEGIN LIBTOOL CONFIG
16346 # Whether or not to build shared libraries.
16347 build_libtool_libs=$enable_shared
16349 # Which release of libtool.m4 was used?
16350 macro_version=$macro_version
16351 macro_revision=$macro_revision
16353 # Whether or not to build static libraries.
16354 build_old_libs=$enable_static
16356 # What type of objects to build.
16357 pic_mode=$pic_mode
16359 # Whether or not to optimize for fast installation.
16360 fast_install=$enable_fast_install
16362 # Shell to use when invoking shell scripts.
16363 SHELL=$lt_SHELL
16365 # An echo program that protects backslashes.
16366 ECHO=$lt_ECHO
16368 # The host system.
16369 host_alias=$host_alias
16370 host=$host
16371 host_os=$host_os
16373 # The build system.
16374 build_alias=$build_alias
16375 build=$build
16376 build_os=$build_os
16378 # A sed program that does not truncate output.
16379 SED=$lt_SED
16381 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16382 Xsed="\$SED -e 1s/^X//"
16384 # A grep program that handles long lines.
16385 GREP=$lt_GREP
16387 # An ERE matcher.
16388 EGREP=$lt_EGREP
16390 # A literal string matcher.
16391 FGREP=$lt_FGREP
16393 # A BSD- or MS-compatible name lister.
16394 NM=$lt_NM
16396 # Whether we need soft or hard links.
16397 LN_S=$lt_LN_S
16399 # What is the maximum length of a command?
16400 max_cmd_len=$max_cmd_len
16402 # Object file suffix (normally "o").
16403 objext=$ac_objext
16405 # Executable file suffix (normally "").
16406 exeext=$exeext
16408 # whether the shell understands "unset".
16409 lt_unset=$lt_unset
16411 # turn spaces into newlines.
16412 SP2NL=$lt_lt_SP2NL
16414 # turn newlines into spaces.
16415 NL2SP=$lt_lt_NL2SP
16417 # An object symbol dumper.
16418 OBJDUMP=$lt_OBJDUMP
16420 # Method to check whether dependent libraries are shared objects.
16421 deplibs_check_method=$lt_deplibs_check_method
16423 # Command to use when deplibs_check_method == "file_magic".
16424 file_magic_cmd=$lt_file_magic_cmd
16426 # The archiver.
16427 AR=$lt_AR
16428 AR_FLAGS=$lt_AR_FLAGS
16430 # A symbol stripping program.
16431 STRIP=$lt_STRIP
16433 # Commands used to install an old-style archive.
16434 RANLIB=$lt_RANLIB
16435 old_postinstall_cmds=$lt_old_postinstall_cmds
16436 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16438 # Whether to use a lock for old archive extraction.
16439 lock_old_archive_extraction=$lock_old_archive_extraction
16441 # A C compiler.
16442 LTCC=$lt_CC
16444 # LTCC compiler flags.
16445 LTCFLAGS=$lt_CFLAGS
16447 # Take the output of nm and produce a listing of raw symbols and C names.
16448 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16450 # Transform the output of nm in a proper C declaration.
16451 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16453 # Transform the output of nm in a C name address pair.
16454 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16456 # Transform the output of nm in a C name address pair when lib prefix is needed.
16457 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16459 # The name of the directory that contains temporary libtool files.
16460 objdir=$objdir
16462 # Used to examine libraries when file_magic_cmd begins with "file".
16463 MAGIC_CMD=$MAGIC_CMD
16465 # Must we lock files when doing compilation?
16466 need_locks=$lt_need_locks
16468 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16469 DSYMUTIL=$lt_DSYMUTIL
16471 # Tool to change global to local symbols on Mac OS X.
16472 NMEDIT=$lt_NMEDIT
16474 # Tool to manipulate fat objects and archives on Mac OS X.
16475 LIPO=$lt_LIPO
16477 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16478 OTOOL=$lt_OTOOL
16480 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16481 OTOOL64=$lt_OTOOL64
16483 # Old archive suffix (normally "a").
16484 libext=$libext
16486 # Shared library suffix (normally ".so").
16487 shrext_cmds=$lt_shrext_cmds
16489 # The commands to extract the exported symbol list from a shared archive.
16490 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16492 # Variables whose values should be saved in libtool wrapper scripts and
16493 # restored at link time.
16494 variables_saved_for_relink=$lt_variables_saved_for_relink
16496 # Do we need the "lib" prefix for modules?
16497 need_lib_prefix=$need_lib_prefix
16499 # Do we need a version for libraries?
16500 need_version=$need_version
16502 # Library versioning type.
16503 version_type=$version_type
16505 # Shared library runtime path variable.
16506 runpath_var=$runpath_var
16508 # Shared library path variable.
16509 shlibpath_var=$shlibpath_var
16511 # Is shlibpath searched before the hard-coded library search path?
16512 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16514 # Format of library name prefix.
16515 libname_spec=$lt_libname_spec
16517 # List of archive names. First name is the real one, the rest are links.
16518 # The last name is the one that the linker finds with -lNAME
16519 library_names_spec=$lt_library_names_spec
16521 # The coded name of the library, if different from the real name.
16522 soname_spec=$lt_soname_spec
16524 # Permission mode override for installation of shared libraries.
16525 install_override_mode=$lt_install_override_mode
16527 # Command to use after installation of a shared archive.
16528 postinstall_cmds=$lt_postinstall_cmds
16530 # Command to use after uninstallation of a shared archive.
16531 postuninstall_cmds=$lt_postuninstall_cmds
16533 # Commands used to finish a libtool library installation in a directory.
16534 finish_cmds=$lt_finish_cmds
16536 # As "finish_cmds", except a single script fragment to be evaled but
16537 # not shown.
16538 finish_eval=$lt_finish_eval
16540 # Whether we should hardcode library paths into libraries.
16541 hardcode_into_libs=$hardcode_into_libs
16543 # Compile-time system search path for libraries.
16544 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16546 # Run-time system search path for libraries.
16547 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16549 # Whether dlopen is supported.
16550 dlopen_support=$enable_dlopen
16552 # Whether dlopen of programs is supported.
16553 dlopen_self=$enable_dlopen_self
16555 # Whether dlopen of statically linked programs is supported.
16556 dlopen_self_static=$enable_dlopen_self_static
16558 # Commands to strip libraries.
16559 old_striplib=$lt_old_striplib
16560 striplib=$lt_striplib
16563 # The linker used to build libraries.
16564 LD=$lt_LD
16566 # How to create reloadable object files.
16567 reload_flag=$lt_reload_flag
16568 reload_cmds=$lt_reload_cmds
16570 # Commands used to build an old-style archive.
16571 old_archive_cmds=$lt_old_archive_cmds
16573 # A language specific compiler.
16574 CC=$lt_compiler
16576 # Is the compiler the GNU compiler?
16577 with_gcc=$GCC
16579 # Compiler flag to turn off builtin functions.
16580 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16582 # How to pass a linker flag through the compiler.
16583 wl=$lt_lt_prog_compiler_wl
16585 # Additional compiler flags for building library objects.
16586 pic_flag=$lt_lt_prog_compiler_pic
16588 # Compiler flag to prevent dynamic linking.
16589 link_static_flag=$lt_lt_prog_compiler_static
16591 # Does compiler simultaneously support -c and -o options?
16592 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16594 # Whether or not to add -lc for building shared libraries.
16595 build_libtool_need_lc=$archive_cmds_need_lc
16597 # Whether or not to disallow shared libs when runtime libs are static.
16598 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16600 # Compiler flag to allow reflexive dlopens.
16601 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16603 # Compiler flag to generate shared objects directly from archives.
16604 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16606 # Whether the compiler copes with passing no objects directly.
16607 compiler_needs_object=$lt_compiler_needs_object
16609 # Create an old-style archive from a shared archive.
16610 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16612 # Create a temporary old-style archive to link instead of a shared archive.
16613 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16615 # Commands used to build a shared archive.
16616 archive_cmds=$lt_archive_cmds
16617 archive_expsym_cmds=$lt_archive_expsym_cmds
16619 # Commands used to build a loadable module if different from building
16620 # a shared archive.
16621 module_cmds=$lt_module_cmds
16622 module_expsym_cmds=$lt_module_expsym_cmds
16624 # Whether we are building with GNU ld or not.
16625 with_gnu_ld=$lt_with_gnu_ld
16627 # Flag that allows shared libraries with undefined symbols to be built.
16628 allow_undefined_flag=$lt_allow_undefined_flag
16630 # Flag that enforces no undefined symbols.
16631 no_undefined_flag=$lt_no_undefined_flag
16633 # Flag to hardcode \$libdir into a binary during linking.
16634 # This must work even if \$libdir does not exist
16635 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16637 # If ld is used when linking, flag to hardcode \$libdir into a binary
16638 # during linking. This must work even if \$libdir does not exist.
16639 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16641 # Whether we need a single "-rpath" flag with a separated argument.
16642 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16644 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16645 # DIR into the resulting binary.
16646 hardcode_direct=$hardcode_direct
16648 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16649 # DIR into the resulting binary and the resulting library dependency is
16650 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16651 # library is relocated.
16652 hardcode_direct_absolute=$hardcode_direct_absolute
16654 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16655 # into the resulting binary.
16656 hardcode_minus_L=$hardcode_minus_L
16658 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16659 # into the resulting binary.
16660 hardcode_shlibpath_var=$hardcode_shlibpath_var
16662 # Set to "yes" if building a shared library automatically hardcodes DIR
16663 # into the library and all subsequent libraries and executables linked
16664 # against it.
16665 hardcode_automatic=$hardcode_automatic
16667 # Set to yes if linker adds runtime paths of dependent libraries
16668 # to runtime path list.
16669 inherit_rpath=$inherit_rpath
16671 # Whether libtool must link a program against all its dependency libraries.
16672 link_all_deplibs=$link_all_deplibs
16674 # Fix the shell variable \$srcfile for the compiler.
16675 fix_srcfile_path=$lt_fix_srcfile_path
16677 # Set to "yes" if exported symbols are required.
16678 always_export_symbols=$always_export_symbols
16680 # The commands to list exported symbols.
16681 export_symbols_cmds=$lt_export_symbols_cmds
16683 # Symbols that should not be listed in the preloaded symbols.
16684 exclude_expsyms=$lt_exclude_expsyms
16686 # Symbols that must always be exported.
16687 include_expsyms=$lt_include_expsyms
16689 # Commands necessary for linking programs (against libraries) with templates.
16690 prelink_cmds=$lt_prelink_cmds
16692 # Specify filename containing input files.
16693 file_list_spec=$lt_file_list_spec
16695 # How to hardcode a shared library path into an executable.
16696 hardcode_action=$hardcode_action
16698 # ### END LIBTOOL CONFIG
16700 _LT_EOF
16702 case $host_os in
16703 aix3*)
16704 cat <<\_LT_EOF >> "$cfgfile"
16705 # AIX sometimes has problems with the GCC collect2 program. For some
16706 # reason, if we set the COLLECT_NAMES environment variable, the problems
16707 # vanish in a puff of smoke.
16708 if test "X${COLLECT_NAMES+set}" != Xset; then
16709 COLLECT_NAMES=
16710 export COLLECT_NAMES
16712 _LT_EOF
16714 esac
16717 ltmain="$ac_aux_dir/ltmain.sh"
16720 # We use sed instead of cat because bash on DJGPP gets confused if
16721 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16722 # text mode, it properly converts lines to CR/LF. This bash problem
16723 # is reportedly fixed, but why not run on old versions too?
16724 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16725 || (rm -f "$cfgfile"; exit 1)
16727 case $xsi_shell in
16728 yes)
16729 cat << \_LT_EOF >> "$cfgfile"
16731 # func_dirname file append nondir_replacement
16732 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16733 # otherwise set result to NONDIR_REPLACEMENT.
16734 func_dirname ()
16736 case ${1} in
16737 */*) func_dirname_result="${1%/*}${2}" ;;
16738 * ) func_dirname_result="${3}" ;;
16739 esac
16742 # func_basename file
16743 func_basename ()
16745 func_basename_result="${1##*/}"
16748 # func_dirname_and_basename file append nondir_replacement
16749 # perform func_basename and func_dirname in a single function
16750 # call:
16751 # dirname: Compute the dirname of FILE. If nonempty,
16752 # add APPEND to the result, otherwise set result
16753 # to NONDIR_REPLACEMENT.
16754 # value returned in "$func_dirname_result"
16755 # basename: Compute filename of FILE.
16756 # value retuned in "$func_basename_result"
16757 # Implementation must be kept synchronized with func_dirname
16758 # and func_basename. For efficiency, we do not delegate to
16759 # those functions but instead duplicate the functionality here.
16760 func_dirname_and_basename ()
16762 case ${1} in
16763 */*) func_dirname_result="${1%/*}${2}" ;;
16764 * ) func_dirname_result="${3}" ;;
16765 esac
16766 func_basename_result="${1##*/}"
16769 # func_stripname prefix suffix name
16770 # strip PREFIX and SUFFIX off of NAME.
16771 # PREFIX and SUFFIX must not contain globbing or regex special
16772 # characters, hashes, percent signs, but SUFFIX may contain a leading
16773 # dot (in which case that matches only a dot).
16774 func_stripname ()
16776 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16777 # positional parameters, so assign one to ordinary parameter first.
16778 func_stripname_result=${3}
16779 func_stripname_result=${func_stripname_result#"${1}"}
16780 func_stripname_result=${func_stripname_result%"${2}"}
16783 # func_opt_split
16784 func_opt_split ()
16786 func_opt_split_opt=${1%%=*}
16787 func_opt_split_arg=${1#*=}
16790 # func_lo2o object
16791 func_lo2o ()
16793 case ${1} in
16794 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16795 *) func_lo2o_result=${1} ;;
16796 esac
16799 # func_xform libobj-or-source
16800 func_xform ()
16802 func_xform_result=${1%.*}.lo
16805 # func_arith arithmetic-term...
16806 func_arith ()
16808 func_arith_result=$(( $* ))
16811 # func_len string
16812 # STRING may not start with a hyphen.
16813 func_len ()
16815 func_len_result=${#1}
16818 _LT_EOF
16820 *) # Bourne compatible functions.
16821 cat << \_LT_EOF >> "$cfgfile"
16823 # func_dirname file append nondir_replacement
16824 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16825 # otherwise set result to NONDIR_REPLACEMENT.
16826 func_dirname ()
16828 # Extract subdirectory from the argument.
16829 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16830 if test "X$func_dirname_result" = "X${1}"; then
16831 func_dirname_result="${3}"
16832 else
16833 func_dirname_result="$func_dirname_result${2}"
16837 # func_basename file
16838 func_basename ()
16840 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16844 # func_stripname prefix suffix name
16845 # strip PREFIX and SUFFIX off of NAME.
16846 # PREFIX and SUFFIX must not contain globbing or regex special
16847 # characters, hashes, percent signs, but SUFFIX may contain a leading
16848 # dot (in which case that matches only a dot).
16849 # func_strip_suffix prefix name
16850 func_stripname ()
16852 case ${2} in
16853 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16854 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16855 esac
16858 # sed scripts:
16859 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16860 my_sed_long_arg='1s/^-[^=]*=//'
16862 # func_opt_split
16863 func_opt_split ()
16865 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16866 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16869 # func_lo2o object
16870 func_lo2o ()
16872 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16875 # func_xform libobj-or-source
16876 func_xform ()
16878 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16881 # func_arith arithmetic-term...
16882 func_arith ()
16884 func_arith_result=`expr "$@"`
16887 # func_len string
16888 # STRING may not start with a hyphen.
16889 func_len ()
16891 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16894 _LT_EOF
16895 esac
16897 case $lt_shell_append in
16898 yes)
16899 cat << \_LT_EOF >> "$cfgfile"
16901 # func_append var value
16902 # Append VALUE to the end of shell variable VAR.
16903 func_append ()
16905 eval "$1+=\$2"
16907 _LT_EOF
16910 cat << \_LT_EOF >> "$cfgfile"
16912 # func_append var value
16913 # Append VALUE to the end of shell variable VAR.
16914 func_append ()
16916 eval "$1=\$$1\$2"
16919 _LT_EOF
16921 esac
16924 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16925 || (rm -f "$cfgfile"; exit 1)
16927 mv -f "$cfgfile" "$ofile" ||
16928 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16929 chmod +x "$ofile"
16932 "default-1":C)
16933 for ac_file in $CONFIG_FILES; do
16934 # Support "outfile[:infile[:infile...]]"
16935 case "$ac_file" in
16936 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16937 esac
16938 # PO directories have a Makefile.in generated from Makefile.in.in.
16939 case "$ac_file" in */Makefile.in)
16940 # Adjust a relative srcdir.
16941 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16942 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
16943 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16944 # In autoconf-2.13 it is called $ac_given_srcdir.
16945 # In autoconf-2.50 it is called $srcdir.
16946 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16947 case "$ac_given_srcdir" in
16948 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16949 /*) top_srcdir="$ac_given_srcdir" ;;
16950 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16951 esac
16952 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16953 rm -f "$ac_dir/POTFILES"
16954 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16955 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16956 POMAKEFILEDEPS="POTFILES.in"
16957 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16958 # on $ac_dir but don't depend on user-specified configuration
16959 # parameters.
16960 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16961 # The LINGUAS file contains the set of available languages.
16962 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16963 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
16965 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16966 # Hide the ALL_LINGUAS assigment from automake.
16967 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16968 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16969 else
16970 # The set of available languages was given in configure.ac.
16971 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16973 case "$ac_given_srcdir" in
16974 .) srcdirpre= ;;
16975 *) srcdirpre='$(srcdir)/' ;;
16976 esac
16977 POFILES=
16978 GMOFILES=
16979 UPDATEPOFILES=
16980 DUMMYPOFILES=
16981 for lang in $ALL_LINGUAS; do
16982 POFILES="$POFILES $srcdirpre$lang.po"
16983 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16984 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16985 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16986 done
16987 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16988 # environment variable.
16989 INST_LINGUAS=
16990 if test -n "$ALL_LINGUAS"; then
16991 for presentlang in $ALL_LINGUAS; do
16992 useit=no
16993 if test "%UNSET%" != "$LINGUAS"; then
16994 desiredlanguages="$LINGUAS"
16995 else
16996 desiredlanguages="$ALL_LINGUAS"
16998 for desiredlang in $desiredlanguages; do
16999 # Use the presentlang catalog if desiredlang is
17000 # a. equal to presentlang, or
17001 # b. a variant of presentlang (because in this case,
17002 # presentlang can be used as a fallback for messages
17003 # which are not translated in the desiredlang catalog).
17004 case "$desiredlang" in
17005 "$presentlang"*) useit=yes;;
17006 esac
17007 done
17008 if test $useit = yes; then
17009 INST_LINGUAS="$INST_LINGUAS $presentlang"
17011 done
17013 CATALOGS=
17014 if test -n "$INST_LINGUAS"; then
17015 for lang in $INST_LINGUAS; do
17016 CATALOGS="$CATALOGS $lang.gmo"
17017 done
17019 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17020 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"
17021 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17022 if test -f "$f"; then
17023 case "$f" in
17024 *.orig | *.bak | *~) ;;
17025 *) cat "$f" >> "$ac_dir/Makefile" ;;
17026 esac
17028 done
17031 esac
17032 done ;;
17033 "default-2":C)
17034 for ac_file in $CONFIG_FILES; do
17035 # Support "outfile[:infile[:infile...]]"
17036 case "$ac_file" in
17037 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17038 esac
17039 # PO directories have a Makefile.in generated from Makefile.in.in.
17040 case "$ac_file" in */Makefile.in)
17041 # Adjust a relative srcdir.
17042 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17043 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
17044 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17045 # In autoconf-2.13 it is called $ac_given_srcdir.
17046 # In autoconf-2.50 it is called $srcdir.
17047 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17048 case "$ac_given_srcdir" in
17049 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17050 /*) top_srcdir="$ac_given_srcdir" ;;
17051 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17052 esac
17053 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17054 rm -f "$ac_dir/POTFILES"
17055 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17056 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17057 POMAKEFILEDEPS="POTFILES.in"
17058 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17059 # on $ac_dir but don't depend on user-specified configuration
17060 # parameters.
17061 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17062 # The LINGUAS file contains the set of available languages.
17063 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17064 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
17066 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17067 # Hide the ALL_LINGUAS assigment from automake.
17068 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17069 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17070 else
17071 # The set of available languages was given in configure.ac.
17072 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17074 case "$ac_given_srcdir" in
17075 .) srcdirpre= ;;
17076 *) srcdirpre='$(srcdir)/' ;;
17077 esac
17078 POFILES=
17079 GMOFILES=
17080 UPDATEPOFILES=
17081 DUMMYPOFILES=
17082 for lang in $ALL_LINGUAS; do
17083 POFILES="$POFILES $srcdirpre$lang.po"
17084 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17085 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17086 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17087 done
17088 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17089 # environment variable.
17090 INST_LINGUAS=
17091 if test -n "$ALL_LINGUAS"; then
17092 for presentlang in $ALL_LINGUAS; do
17093 useit=no
17094 if test "%UNSET%" != "$LINGUAS"; then
17095 desiredlanguages="$LINGUAS"
17096 else
17097 desiredlanguages="$ALL_LINGUAS"
17099 for desiredlang in $desiredlanguages; do
17100 # Use the presentlang catalog if desiredlang is
17101 # a. equal to presentlang, or
17102 # b. a variant of presentlang (because in this case,
17103 # presentlang can be used as a fallback for messages
17104 # which are not translated in the desiredlang catalog).
17105 case "$desiredlang" in
17106 "$presentlang"*) useit=yes;;
17107 esac
17108 done
17109 if test $useit = yes; then
17110 INST_LINGUAS="$INST_LINGUAS $presentlang"
17112 done
17114 CATALOGS=
17115 if test -n "$INST_LINGUAS"; then
17116 for lang in $INST_LINGUAS; do
17117 CATALOGS="$CATALOGS $lang.gmo"
17118 done
17120 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17121 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"
17122 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17123 if test -f "$f"; then
17124 case "$f" in
17125 *.orig | *.bak | *~) ;;
17126 *) cat "$f" >> "$ac_dir/Makefile" ;;
17127 esac
17129 done
17132 esac
17133 done ;;
17135 esac
17136 done # for ac_tag
17139 as_fn_exit 0
17140 _ACEOF
17141 ac_clean_files=$ac_clean_files_save
17143 test $ac_write_fail = 0 ||
17144 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17147 # configure is writing to config.log, and then calls config.status.
17148 # config.status does its own redirection, appending to config.log.
17149 # Unfortunately, on DOS this fails, as config.log is still kept open
17150 # by configure, so config.status won't be able to write to it; its
17151 # output is simply discarded. So we exec the FD to /dev/null,
17152 # effectively closing config.log, so it can be properly (re)opened and
17153 # appended to by config.status. When coming back to configure, we
17154 # need to make the FD available again.
17155 if test "$no_create" != yes; then
17156 ac_cs_success=:
17157 ac_config_status_args=
17158 test "$silent" = yes &&
17159 ac_config_status_args="$ac_config_status_args --quiet"
17160 exec 5>/dev/null
17161 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17162 exec 5>>config.log
17163 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17164 # would make configure fail if this is the last instruction.
17165 $ac_cs_success || as_fn_exit 1
17167 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17169 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17174 touch config.status.tmp
17175 if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
17176 sed '/as_fn_exit 0/i \
17177 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
17178 touch --reference=Makefile Makefile.tmp \
17179 mv Makefile.tmp Makefile \
17180 ' config.status > config.status.tmp
17181 touch --reference=config.status config.status.tmp
17182 mv config.status.tmp config.status
17183 chmod +x config.status
17184 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
17185 touch --reference=Makefile Makefile.tmp
17186 mv Makefile.tmp Makefile
17187 else
17188 rm -f config.status.tmp