VirtualBox

source: vbox/trunk/src/libs/libpng-1.6.43/configure

Last change on this file was 105469, checked in by vboxsync, 3 months ago

libpng-1.6.43: Applied and adjusted our libpng changes to 1.6.43. bugref:8515

  • Property svn:executable set to *
File size: 498.2 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.72 for libpng 1.6.43.
4#
5# Report bugs to <png-mng-implement@lists.sourceforge.net>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34esac ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" "" $as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84fi
85
86
87# Find who we are. Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as 'sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed 'exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157esac ;;
158esac
159fi
160"
161 as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177esac
178fi
179test x\$exitcode = x0 || exit 1
180blah=\$(echo \$(echo blah))
181test x\"\$blah\" = xblah || exit 1
182test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187test \$(( 1 + 1 )) = 2 || exit 1
188
189 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
190 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
193 PATH=/empty FPATH=/empty; export PATH FPATH
194 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
195 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
196 if (eval "$as_required") 2>/dev/null
197then :
198 as_have_required=yes
199else case e in #(
200 e) as_have_required=no ;;
201esac
202fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204then :
205
206else case e in #(
207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208as_found=false
209for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210do
211 IFS=$as_save_IFS
212 case $as_dir in #(((
213 '') as_dir=./ ;;
214 */) ;;
215 *) as_dir=$as_dir/ ;;
216 esac
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228then :
229 break 2
230fi
231fi
232 done;;
233 esac
234 as_found=false
235done
236IFS=$as_save_IFS
237if $as_found
238then :
239
240else case e in #(
241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245fi ;;
246esac
247fi
248
249
250 if test "x$CONFIG_SHELL" != x
251then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254# neutralization value for shells without unset; and this also
255# works around shells that cannot unset nonexistent variables.
256# Preserve -v and -x to the replacement shell.
257BASH_ENV=/dev/null
258ENV=/dev/null
259(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265esac
266exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267# Admittedly, this is quite paranoid, since all the known shells bail
268# out after a failed 'exec'.
269printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270exit 255
271fi
272
273 if test x$as_have_required = xno
274then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
282$0: png-mng-implement@lists.sourceforge.net about your
283$0: system, including any error possibly output before this
284$0: message. Then install a modern shell, or manually run
285$0: the script under such a shell if you do have one."
286 fi
287 exit 1
288fi ;;
289esac
290fi
291fi
292SHELL=${CONFIG_SHELL-/bin/sh}
293export SHELL
294# Unset more variables known to interfere with behavior of common tools.
295CLICOLOR_FORCE= GREP_OPTIONS=
296unset CLICOLOR_FORCE GREP_OPTIONS
297
298## --------------------- ##
299## M4sh Shell Functions. ##
300## --------------------- ##
301# as_fn_unset VAR
302# ---------------
303# Portably unset VAR.
304as_fn_unset ()
305{
306 { eval $1=; unset $1;}
307}
308as_unset=as_fn_unset
309
310
311# as_fn_set_status STATUS
312# -----------------------
313# Set $? to STATUS, without forking.
314as_fn_set_status ()
315{
316 return $1
317} # as_fn_set_status
318
319# as_fn_exit STATUS
320# -----------------
321# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322as_fn_exit ()
323{
324 set +e
325 as_fn_set_status $1
326 exit $1
327} # as_fn_exit
328
329# as_fn_mkdir_p
330# -------------
331# Create "$as_dir" as a directory, including parents if necessary.
332as_fn_mkdir_p ()
333{
334
335 case $as_dir in #(
336 -*) as_dir=./$as_dir;;
337 esac
338 test -d "$as_dir" || eval $as_mkdir_p || {
339 as_dirs=
340 while :; do
341 case $as_dir in #(
342 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
343 *) as_qdir=$as_dir;;
344 esac
345 as_dirs="'$as_qdir' $as_dirs"
346 as_dir=`$as_dirname -- "$as_dir" ||
347$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
348 X"$as_dir" : 'X\(//\)[^/]' \| \
349 X"$as_dir" : 'X\(//\)$' \| \
350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
351printf "%s\n" X"$as_dir" |
352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)[^/].*/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)$/{
361 s//\1/
362 q
363 }
364 /^X\(\/\).*/{
365 s//\1/
366 q
367 }
368 s/.*/./; q'`
369 test -d "$as_dir" && break
370 done
371 test -z "$as_dirs" || eval "mkdir $as_dirs"
372 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373
374
375} # as_fn_mkdir_p
376
377# as_fn_executable_p FILE
378# -----------------------
379# Test if FILE is an executable regular file.
380as_fn_executable_p ()
381{
382 test -f "$1" && test -x "$1"
383} # as_fn_executable_p
384# as_fn_append VAR VALUE
385# ----------------------
386# Append the text in VALUE to the end of the definition contained in VAR. Take
387# advantage of any shell optimizations that allow amortized linear growth over
388# repeated appends, instead of the typical quadratic growth present in naive
389# implementations.
390if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
391then :
392 eval 'as_fn_append ()
393 {
394 eval $1+=\$2
395 }'
396else case e in #(
397 e) as_fn_append ()
398 {
399 eval $1=\$$1\$2
400 } ;;
401esac
402fi # as_fn_append
403
404# as_fn_arith ARG...
405# ------------------
406# Perform arithmetic evaluation on the ARGs, and store the result in the
407# global $as_val. Take advantage of shells that can avoid forks. The arguments
408# must be portable across $(()) and expr.
409if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415else case e in #(
416 e) as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 } ;;
420esac
421fi # as_fn_arith
422
423
424# as_fn_error STATUS ERROR [LINENO LOG_FD]
425# ----------------------------------------
426# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
427# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
428# script with STATUS, using 1 if that was 0.
429as_fn_error ()
430{
431 as_status=$1; test $as_status -eq 0 && as_status=1
432 if test "$4"; then
433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
435 fi
436 printf "%s\n" "$as_me: error: $2" >&2
437 as_fn_exit $as_status
438} # as_fn_error
439
440if expr a : '\(a\)' >/dev/null 2>&1 &&
441 test "X`expr 00001 : '.*\(...\)'`" = X001; then
442 as_expr=expr
443else
444 as_expr=false
445fi
446
447if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
448 as_basename=basename
449else
450 as_basename=false
451fi
452
453if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
454 as_dirname=dirname
455else
456 as_dirname=false
457fi
458
459as_me=`$as_basename -- "$0" ||
460$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
461 X"$0" : 'X\(//\)$' \| \
462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
463printf "%s\n" X/"$0" |
464 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 s//\1/
466 q
467 }
468 /^X\/\(\/\/\)$/{
469 s//\1/
470 q
471 }
472 /^X\/\(\/\).*/{
473 s//\1/
474 q
475 }
476 s/.*/./; q'`
477
478# Avoid depending upon Character Ranges.
479as_cr_letters='abcdefghijklmnopqrstuvwxyz'
480as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
481as_cr_Letters=$as_cr_letters$as_cr_LETTERS
482as_cr_digits='0123456789'
483as_cr_alnum=$as_cr_Letters$as_cr_digits
484
485
486 as_lineno_1=$LINENO as_lineno_1a=$LINENO
487 as_lineno_2=$LINENO as_lineno_2a=$LINENO
488 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
489 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
490 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
491 sed -n '
492 p
493 /[$]LINENO/=
494 ' <$as_myself |
495 sed '
496 t clear
497 :clear
498 s/[$]LINENO.*/&-/
499 t lineno
500 b
501 :lineno
502 N
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
521}
522
523
524# Determine whether it's possible to make 'echo' print without a newline.
525# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526# for compatibility with existing Makefiles.
527ECHO_C= ECHO_N= ECHO_T=
528case `echo -n x` in #(((((
529-n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
536*)
537 ECHO_N='-n';;
538esac
539
540# For backward compatibility with old third-party macros, we provide
541# the shell variables $as_echo and $as_echo_n. New code should use
542# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543as_echo='printf %s\n'
544as_echo_n='printf %s'
545
546rm -f conf$$ conf$$.exe conf$$.file
547if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
549else
550 rm -f conf$$.dir
551 mkdir conf$$.dir 2>/dev/null
552fi
553if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s='ln -s'
556 # ... but there are two gotchas:
557 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
559 # In both cases, we have to default to 'cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
561 as_ln_s='cp -pR'
562 elif ln conf$$.file conf$$ 2>/dev/null; then
563 as_ln_s=ln
564 else
565 as_ln_s='cp -pR'
566 fi
567else
568 as_ln_s='cp -pR'
569fi
570rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571rmdir conf$$.dir 2>/dev/null
572
573if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
575else
576 test -d ./-p && rmdir ./-p
577 as_mkdir_p=false
578fi
579
580as_test_x='test -x'
581as_executable_p=as_fn_executable_p
582
583# Sed expression to map a string onto a valid CPP name.
584as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
585as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
586
587# Sed expression to map a string onto a valid variable name.
588as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
589as_tr_sh="eval sed '$as_sed_sh'" # deprecated
590
591SHELL=${CONFIG_SHELL-/bin/sh}
592
593
594test -n "$DJDIR" || exec 7<&0 </dev/null
595exec 6>&1
596
597# Name of the host.
598# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
599# so uname gets run too.
600ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
601
602#
603# Initializations.
604#
605ac_default_prefix=/usr/local
606ac_clean_files=
607ac_config_libobj_dir=.
608LIBOBJS=
609cross_compiling=no
610subdirs=
611MFLAGS=
612MAKEFLAGS=
613
614# Identity of this package.
615PACKAGE_NAME='libpng'
616PACKAGE_TARNAME='libpng'
617PACKAGE_VERSION='1.6.43'
618PACKAGE_STRING='libpng 1.6.43'
619PACKAGE_BUGREPORT='png-mng-implement@lists.sourceforge.net'
620PACKAGE_URL=''
621
622ac_unique_file="pngget.c"
623# Factoring default headers for most tests.
624ac_includes_default="\
625#include <stddef.h>
626#ifdef HAVE_STDIO_H
627# include <stdio.h>
628#endif
629#ifdef HAVE_STDLIB_H
630# include <stdlib.h>
631#endif
632#ifdef HAVE_STRING_H
633# include <string.h>
634#endif
635#ifdef HAVE_INTTYPES_H
636# include <inttypes.h>
637#endif
638#ifdef HAVE_STDINT_H
639# include <stdint.h>
640#endif
641#ifdef HAVE_STRINGS_H
642# include <strings.h>
643#endif
644#ifdef HAVE_SYS_TYPES_H
645# include <sys/types.h>
646#endif
647#ifdef HAVE_SYS_STAT_H
648# include <sys/stat.h>
649#endif
650#ifdef HAVE_UNISTD_H
651# include <unistd.h>
652#endif"
653
654ac_header_c_list=
655ac_subst_vars='am__EXEEXT_FALSE
656am__EXEEXT_TRUE
657LTLIBOBJS
658LIBOBJS
659PNG_LOONGARCH_LSX_FALSE
660PNG_LOONGARCH_LSX_TRUE
661PNG_POWERPC_VSX_FALSE
662PNG_POWERPC_VSX_TRUE
663PNG_INTEL_SSE_FALSE
664PNG_INTEL_SSE_TRUE
665PNG_MIPS_MMI_FALSE
666PNG_MIPS_MMI_TRUE
667PNG_MIPS_MSA_FALSE
668PNG_MIPS_MSA_TRUE
669PNG_ARM_NEON_FALSE
670PNG_ARM_NEON_TRUE
671DO_INSTALL_LIBPNG_CONFIG_FALSE
672DO_INSTALL_LIBPNG_CONFIG_TRUE
673DO_INSTALL_LIBPNG_PC_FALSE
674DO_INSTALL_LIBPNG_PC_TRUE
675DO_INSTALL_LINKS_FALSE
676DO_INSTALL_LINKS_TRUE
677DO_PNG_PREFIX_FALSE
678DO_PNG_PREFIX_TRUE
679PNG_PREFIX
680binconfigs
681pkgconfigdir
682PNGLIB_RELEASE
683PNGLIB_MINOR
684PNGLIB_MAJOR
685PNGLIB_VERSION
686SYMBOL_PREFIX
687HAVE_LD_VERSION_SCRIPT_FALSE
688HAVE_LD_VERSION_SCRIPT_TRUE
689HAVE_SOLARIS_LD_FALSE
690HAVE_SOLARIS_LD_TRUE
691HAVE_CLOCK_GETTIME_FALSE
692HAVE_CLOCK_GETTIME_TRUE
693PNG_COPTS
694ENABLE_TOOLS_FALSE
695ENABLE_TOOLS_TRUE
696ENABLE_TESTS_FALSE
697ENABLE_TESTS_TRUE
698DFNCPP
699LT_SYS_LIBRARY_PATH
700OTOOL64
701OTOOL
702LIPO
703NMEDIT
704DSYMUTIL
705MANIFEST_TOOL
706RANLIB
707ac_ct_AR
708AR
709FILECMD
710NM
711ac_ct_DUMPBIN
712DUMPBIN
713LIBTOOL
714OBJDUMP
715DLLTOOL
716AS
717LN_S
718CPP
719LD
720FGREP
721EGREP
722GREP
723SED
724host_os
725host_vendor
726host_cpu
727host
728build_os
729build_vendor
730build_cpu
731build
732am__fastdepCCAS_FALSE
733am__fastdepCCAS_TRUE
734CCASDEPMODE
735CCASFLAGS
736CCAS
737am__fastdepCC_FALSE
738am__fastdepCC_TRUE
739CCDEPMODE
740am__nodep
741AMDEPBACKSLASH
742AMDEP_FALSE
743AMDEP_TRUE
744am__include
745DEPDIR
746OBJEXT
747EXEEXT
748ac_ct_CC
749CPPFLAGS
750LDFLAGS
751CFLAGS
752CC
753MAINT
754MAINTAINER_MODE_FALSE
755MAINTAINER_MODE_TRUE
756AM_BACKSLASH
757AM_DEFAULT_VERBOSITY
758AM_DEFAULT_V
759AM_V
760CSCOPE
761ETAGS
762CTAGS
763am__untar
764am__tar
765AMTAR
766am__leading_dot
767SET_MAKE
768AWK
769mkdir_p
770MKDIR_P
771INSTALL_STRIP_PROGRAM
772STRIP
773install_sh
774MAKEINFO
775AUTOHEADER
776AUTOMAKE
777AUTOCONF
778ACLOCAL
779VERSION
780PACKAGE
781CYGPATH_W
782am__isrc
783INSTALL_DATA
784INSTALL_SCRIPT
785INSTALL_PROGRAM
786target_alias
787host_alias
788build_alias
789LIBS
790ECHO_T
791ECHO_N
792ECHO_C
793DEFS
794mandir
795localedir
796libdir
797psdir
798pdfdir
799dvidir
800htmldir
801infodir
802docdir
803oldincludedir
804includedir
805runstatedir
806localstatedir
807sharedstatedir
808sysconfdir
809datadir
810datarootdir
811libexecdir
812sbindir
813bindir
814program_transform_name
815prefix
816exec_prefix
817PACKAGE_URL
818PACKAGE_BUGREPORT
819PACKAGE_STRING
820PACKAGE_VERSION
821PACKAGE_TARNAME
822PACKAGE_NAME
823PATH_SEPARATOR
824SHELL
825am__quote'
826ac_subst_files=''
827ac_user_opts='
828enable_option_checking
829enable_silent_rules
830enable_maintainer_mode
831enable_dependency_tracking
832with_gnu_ld
833enable_shared
834enable_static
835with_pic
836enable_fast_install
837with_aix_soname
838with_sysroot
839enable_libtool_lock
840enable_tests
841enable_tools
842enable_werror
843with_zlib_prefix
844with_pkgconfigdir
845with_binconfigs
846with_libpng_prefix
847enable_unversioned_links
848enable_unversioned_libpng_pc
849enable_unversioned_libpng_config
850enable_hardware_optimizations
851enable_arm_neon
852enable_mips_msa
853enable_mips_mmi
854enable_intel_sse
855enable_powerpc_vsx
856enable_loongarch_lsx
857'
858 ac_precious_vars='build_alias
859host_alias
860target_alias
861CC
862CFLAGS
863LDFLAGS
864LIBS
865CPPFLAGS
866CCAS
867CCASFLAGS
868CPP
869LT_SYS_LIBRARY_PATH
870AWK
871PNG_COPTS'
872
873
874# Initialize some variables set by options.
875ac_init_help=
876ac_init_version=false
877ac_unrecognized_opts=
878ac_unrecognized_sep=
879# The variables have the same names as the options, with
880# dashes changed to underlines.
881cache_file=/dev/null
882exec_prefix=NONE
883no_create=
884no_recursion=
885prefix=NONE
886program_prefix=NONE
887program_suffix=NONE
888program_transform_name=s,x,x,
889silent=
890site=
891srcdir=
892verbose=
893x_includes=NONE
894x_libraries=NONE
895
896# Installation directory options.
897# These are left unexpanded so users can "make install exec_prefix=/foo"
898# and all the variables that are supposed to be based on exec_prefix
899# by default will actually change.
900# Use braces instead of parens because sh, perl, etc. also accept them.
901# (The list follows the same order as the GNU Coding Standards.)
902bindir='${exec_prefix}/bin'
903sbindir='${exec_prefix}/sbin'
904libexecdir='${exec_prefix}/libexec'
905datarootdir='${prefix}/share'
906datadir='${datarootdir}'
907sysconfdir='${prefix}/etc'
908sharedstatedir='${prefix}/com'
909localstatedir='${prefix}/var'
910runstatedir='${localstatedir}/run'
911includedir='${prefix}/include'
912oldincludedir='/usr/include'
913docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
914infodir='${datarootdir}/info'
915htmldir='${docdir}'
916dvidir='${docdir}'
917pdfdir='${docdir}'
918psdir='${docdir}'
919libdir='${exec_prefix}/lib'
920localedir='${datarootdir}/locale'
921mandir='${datarootdir}/man'
922
923ac_prev=
924ac_dashdash=
925for ac_option
926do
927 # If the previous option needs an argument, assign it.
928 if test -n "$ac_prev"; then
929 eval $ac_prev=\$ac_option
930 ac_prev=
931 continue
932 fi
933
934 case $ac_option in
935 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
936 *=) ac_optarg= ;;
937 *) ac_optarg=yes ;;
938 esac
939
940 case $ac_dashdash$ac_option in
941 --)
942 ac_dashdash=yes ;;
943
944 -bindir | --bindir | --bindi | --bind | --bin | --bi)
945 ac_prev=bindir ;;
946 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
947 bindir=$ac_optarg ;;
948
949 -build | --build | --buil | --bui | --bu)
950 ac_prev=build_alias ;;
951 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
952 build_alias=$ac_optarg ;;
953
954 -cache-file | --cache-file | --cache-fil | --cache-fi \
955 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
956 ac_prev=cache_file ;;
957 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
958 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
959 cache_file=$ac_optarg ;;
960
961 --config-cache | -C)
962 cache_file=config.cache ;;
963
964 -datadir | --datadir | --datadi | --datad)
965 ac_prev=datadir ;;
966 -datadir=* | --datadir=* | --datadi=* | --datad=*)
967 datadir=$ac_optarg ;;
968
969 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
970 | --dataroo | --dataro | --datar)
971 ac_prev=datarootdir ;;
972 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
973 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
974 datarootdir=$ac_optarg ;;
975
976 -disable-* | --disable-*)
977 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
978 # Reject names that are not valid shell variable names.
979 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980 as_fn_error $? "invalid feature name: '$ac_useropt'"
981 ac_useropt_orig=$ac_useropt
982 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
983 case $ac_user_opts in
984 *"
985"enable_$ac_useropt"
986"*) ;;
987 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
988 ac_unrecognized_sep=', ';;
989 esac
990 eval enable_$ac_useropt=no ;;
991
992 -docdir | --docdir | --docdi | --doc | --do)
993 ac_prev=docdir ;;
994 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
995 docdir=$ac_optarg ;;
996
997 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
998 ac_prev=dvidir ;;
999 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1000 dvidir=$ac_optarg ;;
1001
1002 -enable-* | --enable-*)
1003 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1004 # Reject names that are not valid shell variable names.
1005 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1006 as_fn_error $? "invalid feature name: '$ac_useropt'"
1007 ac_useropt_orig=$ac_useropt
1008 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1009 case $ac_user_opts in
1010 *"
1011"enable_$ac_useropt"
1012"*) ;;
1013 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1014 ac_unrecognized_sep=', ';;
1015 esac
1016 eval enable_$ac_useropt=\$ac_optarg ;;
1017
1018 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1019 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1020 | --exec | --exe | --ex)
1021 ac_prev=exec_prefix ;;
1022 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1023 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1024 | --exec=* | --exe=* | --ex=*)
1025 exec_prefix=$ac_optarg ;;
1026
1027 -gas | --gas | --ga | --g)
1028 # Obsolete; use --with-gas.
1029 with_gas=yes ;;
1030
1031 -help | --help | --hel | --he | -h)
1032 ac_init_help=long ;;
1033 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1034 ac_init_help=recursive ;;
1035 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1036 ac_init_help=short ;;
1037
1038 -host | --host | --hos | --ho)
1039 ac_prev=host_alias ;;
1040 -host=* | --host=* | --hos=* | --ho=*)
1041 host_alias=$ac_optarg ;;
1042
1043 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1044 ac_prev=htmldir ;;
1045 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1046 | --ht=*)
1047 htmldir=$ac_optarg ;;
1048
1049 -includedir | --includedir | --includedi | --included | --include \
1050 | --includ | --inclu | --incl | --inc)
1051 ac_prev=includedir ;;
1052 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1053 | --includ=* | --inclu=* | --incl=* | --inc=*)
1054 includedir=$ac_optarg ;;
1055
1056 -infodir | --infodir | --infodi | --infod | --info | --inf)
1057 ac_prev=infodir ;;
1058 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1059 infodir=$ac_optarg ;;
1060
1061 -libdir | --libdir | --libdi | --libd)
1062 ac_prev=libdir ;;
1063 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1064 libdir=$ac_optarg ;;
1065
1066 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1067 | --libexe | --libex | --libe)
1068 ac_prev=libexecdir ;;
1069 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1070 | --libexe=* | --libex=* | --libe=*)
1071 libexecdir=$ac_optarg ;;
1072
1073 -localedir | --localedir | --localedi | --localed | --locale)
1074 ac_prev=localedir ;;
1075 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1076 localedir=$ac_optarg ;;
1077
1078 -localstatedir | --localstatedir | --localstatedi | --localstated \
1079 | --localstate | --localstat | --localsta | --localst | --locals)
1080 ac_prev=localstatedir ;;
1081 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1082 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1083 localstatedir=$ac_optarg ;;
1084
1085 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1086 ac_prev=mandir ;;
1087 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1088 mandir=$ac_optarg ;;
1089
1090 -nfp | --nfp | --nf)
1091 # Obsolete; use --without-fp.
1092 with_fp=no ;;
1093
1094 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1095 | --no-cr | --no-c | -n)
1096 no_create=yes ;;
1097
1098 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1099 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1100 no_recursion=yes ;;
1101
1102 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1103 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1104 | --oldin | --oldi | --old | --ol | --o)
1105 ac_prev=oldincludedir ;;
1106 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1107 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1108 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1109 oldincludedir=$ac_optarg ;;
1110
1111 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1112 ac_prev=prefix ;;
1113 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1114 prefix=$ac_optarg ;;
1115
1116 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1117 | --program-pre | --program-pr | --program-p)
1118 ac_prev=program_prefix ;;
1119 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1120 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1121 program_prefix=$ac_optarg ;;
1122
1123 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1124 | --program-suf | --program-su | --program-s)
1125 ac_prev=program_suffix ;;
1126 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1127 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1128 program_suffix=$ac_optarg ;;
1129
1130 -program-transform-name | --program-transform-name \
1131 | --program-transform-nam | --program-transform-na \
1132 | --program-transform-n | --program-transform- \
1133 | --program-transform | --program-transfor \
1134 | --program-transfo | --program-transf \
1135 | --program-trans | --program-tran \
1136 | --progr-tra | --program-tr | --program-t)
1137 ac_prev=program_transform_name ;;
1138 -program-transform-name=* | --program-transform-name=* \
1139 | --program-transform-nam=* | --program-transform-na=* \
1140 | --program-transform-n=* | --program-transform-=* \
1141 | --program-transform=* | --program-transfor=* \
1142 | --program-transfo=* | --program-transf=* \
1143 | --program-trans=* | --program-tran=* \
1144 | --progr-tra=* | --program-tr=* | --program-t=*)
1145 program_transform_name=$ac_optarg ;;
1146
1147 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1148 ac_prev=pdfdir ;;
1149 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1150 pdfdir=$ac_optarg ;;
1151
1152 -psdir | --psdir | --psdi | --psd | --ps)
1153 ac_prev=psdir ;;
1154 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1155 psdir=$ac_optarg ;;
1156
1157 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1158 | -silent | --silent | --silen | --sile | --sil)
1159 silent=yes ;;
1160
1161 -runstatedir | --runstatedir | --runstatedi | --runstated \
1162 | --runstate | --runstat | --runsta | --runst | --runs \
1163 | --run | --ru | --r)
1164 ac_prev=runstatedir ;;
1165 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1166 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1167 | --run=* | --ru=* | --r=*)
1168 runstatedir=$ac_optarg ;;
1169
1170 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1171 ac_prev=sbindir ;;
1172 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1173 | --sbi=* | --sb=*)
1174 sbindir=$ac_optarg ;;
1175
1176 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1177 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1178 | --sharedst | --shareds | --shared | --share | --shar \
1179 | --sha | --sh)
1180 ac_prev=sharedstatedir ;;
1181 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1182 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1183 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1184 | --sha=* | --sh=*)
1185 sharedstatedir=$ac_optarg ;;
1186
1187 -site | --site | --sit)
1188 ac_prev=site ;;
1189 -site=* | --site=* | --sit=*)
1190 site=$ac_optarg ;;
1191
1192 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1193 ac_prev=srcdir ;;
1194 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1195 srcdir=$ac_optarg ;;
1196
1197 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1198 | --syscon | --sysco | --sysc | --sys | --sy)
1199 ac_prev=sysconfdir ;;
1200 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1201 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1202 sysconfdir=$ac_optarg ;;
1203
1204 -target | --target | --targe | --targ | --tar | --ta | --t)
1205 ac_prev=target_alias ;;
1206 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1207 target_alias=$ac_optarg ;;
1208
1209 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1210 verbose=yes ;;
1211
1212 -version | --version | --versio | --versi | --vers | -V)
1213 ac_init_version=: ;;
1214
1215 -with-* | --with-*)
1216 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1219 as_fn_error $? "invalid package name: '$ac_useropt'"
1220 ac_useropt_orig=$ac_useropt
1221 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1223 *"
1224"with_$ac_useropt"
1225"*) ;;
1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1227 ac_unrecognized_sep=', ';;
1228 esac
1229 eval with_$ac_useropt=\$ac_optarg ;;
1230
1231 -without-* | --without-*)
1232 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1235 as_fn_error $? "invalid package name: '$ac_useropt'"
1236 ac_useropt_orig=$ac_useropt
1237 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1238 case $ac_user_opts in
1239 *"
1240"with_$ac_useropt"
1241"*) ;;
1242 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1243 ac_unrecognized_sep=', ';;
1244 esac
1245 eval with_$ac_useropt=no ;;
1246
1247 --x)
1248 # Obsolete; use --with-x.
1249 with_x=yes ;;
1250
1251 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1252 | --x-incl | --x-inc | --x-in | --x-i)
1253 ac_prev=x_includes ;;
1254 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1255 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1256 x_includes=$ac_optarg ;;
1257
1258 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1259 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1260 ac_prev=x_libraries ;;
1261 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1262 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1263 x_libraries=$ac_optarg ;;
1264
1265 -*) as_fn_error $? "unrecognized option: '$ac_option'
1266Try '$0 --help' for more information"
1267 ;;
1268
1269 *=*)
1270 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1271 # Reject names that are not valid shell variable names.
1272 case $ac_envvar in #(
1273 '' | [0-9]* | *[!_$as_cr_alnum]* )
1274 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1275 esac
1276 eval $ac_envvar=\$ac_optarg
1277 export $ac_envvar ;;
1278
1279 *)
1280 # FIXME: should be removed in autoconf 3.0.
1281 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1282 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1283 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1284 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1285 ;;
1286
1287 esac
1288done
1289
1290if test -n "$ac_prev"; then
1291 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1292 as_fn_error $? "missing argument to $ac_option"
1293fi
1294
1295if test -n "$ac_unrecognized_opts"; then
1296 case $enable_option_checking in
1297 no) ;;
1298 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1299 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1300 esac
1301fi
1302
1303# Check all directory arguments for consistency.
1304for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1305 datadir sysconfdir sharedstatedir localstatedir includedir \
1306 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1307 libdir localedir mandir runstatedir
1308do
1309 eval ac_val=\$$ac_var
1310 # Remove trailing slashes.
1311 case $ac_val in
1312 */ )
1313 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1314 eval $ac_var=\$ac_val;;
1315 esac
1316 # Be sure to have absolute directory names.
1317 case $ac_val in
1318 [\\/$]* | ?:[\\/]* ) continue;;
1319 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1320 esac
1321 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1322done
1323
1324# There might be people who depend on the old broken behavior: '$host'
1325# used to hold the argument of --host etc.
1326# FIXME: To remove some day.
1327build=$build_alias
1328host=$host_alias
1329target=$target_alias
1330
1331# FIXME: To remove some day.
1332if test "x$host_alias" != x; then
1333 if test "x$build_alias" = x; then
1334 cross_compiling=maybe
1335 elif test "x$build_alias" != "x$host_alias"; then
1336 cross_compiling=yes
1337 fi
1338fi
1339
1340ac_tool_prefix=
1341test -n "$host_alias" && ac_tool_prefix=$host_alias-
1342
1343test "$silent" = yes && exec 6>/dev/null
1344
1345
1346ac_pwd=`pwd` && test -n "$ac_pwd" &&
1347ac_ls_di=`ls -di .` &&
1348ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1349 as_fn_error $? "working directory cannot be determined"
1350test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1351 as_fn_error $? "pwd does not report name of working directory"
1352
1353
1354# Find the source files, if location was not specified.
1355if test -z "$srcdir"; then
1356 ac_srcdir_defaulted=yes
1357 # Try the directory containing this script, then the parent directory.
1358 ac_confdir=`$as_dirname -- "$as_myself" ||
1359$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1360 X"$as_myself" : 'X\(//\)[^/]' \| \
1361 X"$as_myself" : 'X\(//\)$' \| \
1362 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1363printf "%s\n" X"$as_myself" |
1364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1365 s//\1/
1366 q
1367 }
1368 /^X\(\/\/\)[^/].*/{
1369 s//\1/
1370 q
1371 }
1372 /^X\(\/\/\)$/{
1373 s//\1/
1374 q
1375 }
1376 /^X\(\/\).*/{
1377 s//\1/
1378 q
1379 }
1380 s/.*/./; q'`
1381 srcdir=$ac_confdir
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1383 srcdir=..
1384 fi
1385else
1386 ac_srcdir_defaulted=no
1387fi
1388if test ! -r "$srcdir/$ac_unique_file"; then
1389 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1390 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1391fi
1392ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1393ac_abs_confdir=`(
1394 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1395 pwd)`
1396# When building in place, set srcdir=.
1397if test "$ac_abs_confdir" = "$ac_pwd"; then
1398 srcdir=.
1399fi
1400# Remove unnecessary trailing slashes from srcdir.
1401# Double slashes in file names in object file debugging info
1402# mess up M-x gdb in Emacs.
1403case $srcdir in
1404*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1405esac
1406for ac_var in $ac_precious_vars; do
1407 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1408 eval ac_env_${ac_var}_value=\$${ac_var}
1409 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1410 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1411done
1412
1413#
1414# Report the --help message.
1415#
1416if test "$ac_init_help" = "long"; then
1417 # Omit some internal or obsolete options to make the list less imposing.
1418 # This message is too long to be a string in the A/UX 3.1 sh.
1419 cat <<_ACEOF
1420'configure' configures libpng 1.6.43 to adapt to many kinds of systems.
1421
1422Usage: $0 [OPTION]... [VAR=VALUE]...
1423
1424To assign environment variables (e.g., CC, CFLAGS...), specify them as
1425VAR=VALUE. See below for descriptions of some of the useful variables.
1426
1427Defaults for the options are specified in brackets.
1428
1429Configuration:
1430 -h, --help display this help and exit
1431 --help=short display options specific to this package
1432 --help=recursive display the short help of all the included packages
1433 -V, --version display version information and exit
1434 -q, --quiet, --silent do not print 'checking ...' messages
1435 --cache-file=FILE cache test results in FILE [disabled]
1436 -C, --config-cache alias for '--cache-file=config.cache'
1437 -n, --no-create do not create output files
1438 --srcdir=DIR find the sources in DIR [configure dir or '..']
1439
1440Installation directories:
1441 --prefix=PREFIX install architecture-independent files in PREFIX
1442 [$ac_default_prefix]
1443 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1444 [PREFIX]
1445
1446By default, 'make install' will install all the files in
1447'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1448an installation prefix other than '$ac_default_prefix' using '--prefix',
1449for instance '--prefix=\$HOME'.
1450
1451For better control, use the options below.
1452
1453Fine tuning of the installation directories:
1454 --bindir=DIR user executables [EPREFIX/bin]
1455 --sbindir=DIR system admin executables [EPREFIX/sbin]
1456 --libexecdir=DIR program executables [EPREFIX/libexec]
1457 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1458 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1459 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1460 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1461 --libdir=DIR object code libraries [EPREFIX/lib]
1462 --includedir=DIR C header files [PREFIX/include]
1463 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1464 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1465 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1466 --infodir=DIR info documentation [DATAROOTDIR/info]
1467 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1468 --mandir=DIR man documentation [DATAROOTDIR/man]
1469 --docdir=DIR documentation root [DATAROOTDIR/doc/libpng]
1470 --htmldir=DIR html documentation [DOCDIR]
1471 --dvidir=DIR dvi documentation [DOCDIR]
1472 --pdfdir=DIR pdf documentation [DOCDIR]
1473 --psdir=DIR ps documentation [DOCDIR]
1474_ACEOF
1475
1476 cat <<\_ACEOF
1477
1478Program names:
1479 --program-prefix=PREFIX prepend PREFIX to installed program names
1480 --program-suffix=SUFFIX append SUFFIX to installed program names
1481 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1482
1483System types:
1484 --build=BUILD configure for building on BUILD [guessed]
1485 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1486_ACEOF
1487fi
1488
1489if test -n "$ac_init_help"; then
1490 case $ac_init_help in
1491 short | recursive ) echo "Configuration of libpng 1.6.43:";;
1492 esac
1493 cat <<\_ACEOF
1494
1495Optional Features:
1496 --disable-option-checking ignore unrecognized --enable/--with options
1497 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1498 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1499 --enable-silent-rules less verbose build output (undo: "make V=1")
1500 --disable-silent-rules verbose build output (undo: "make V=0")
1501 --enable-maintainer-mode
1502 enable make rules and dependencies not useful (and
1503 sometimes confusing) to the casual installer
1504 --enable-dependency-tracking
1505 do not reject slow dependency extractors
1506 --disable-dependency-tracking
1507 speeds up one-time build
1508 --enable-shared[=PKGS] build shared libraries [default=yes]
1509 --enable-static[=PKGS] build static libraries [default=yes]
1510 --enable-fast-install[=PKGS]
1511 optimize for fast installation [default=yes]
1512 --disable-libtool-lock avoid locking (might break parallel builds)
1513 --disable-tests do not build the test programs (default is to build)
1514 --disable-tools do not build the auxiliary tools (default is to
1515 build)
1516 --enable-werror[=OPT] Pass -Werror or the given argument to the compiler
1517 if it is supported
1518 --enable-unversioned-links
1519 Installed libpng header files are placed in a
1520 versioned subdirectory and installed libpng library
1521 (including DLL) files are versioned. If this option
1522 is enabled unversioned links will be created
1523 pointing to the corresponding installed files. If
1524 you use libpng.pc or libpng-config for all builds
1525 you do not need these links, but if you compile
1526 programs directly they will typically #include
1527 <png.h> and link with -lpng; in that case you need
1528 the links. The links can be installed manually using
1529 'make install-header-links' and 'make
1530 install-library-links' and can be removed using the
1531 corresponding uninstall- targets. If you do enable
1532 this option every libpng 'make install' will
1533 recreate the links to point to the just installed
1534 version of libpng. The default is to create the
1535 links; use --disable-unversioned-links to change
1536 this
1537 --enable-unversioned-libpng-pc
1538 Install the configuration file 'libpng.pc' as a link
1539 to the versioned version. This is done by default -
1540 use --disable-unversioned-libpng-pc to change this.
1541 --enable-unversioned-libpng-config
1542 Install the configuration file 'libpng-config' as a
1543 link to the versioned version. This is done by
1544 default - use --disable-unversioned-libpng-config to
1545 change this.
1546 --enable-hardware-optimizations
1547 Enable hardware optimizations: =no/off, yes/on.
1548 --enable-arm-neon Enable ARM NEON optimizations: =no/off, check, api,
1549 yes/on. no/off: disable the optimizations; check:
1550 use internal checking code (deprecated and poorly
1551 supported); api: disable by default, enable by a
1552 call to png_set_option; yes/on: turn on
1553 unconditionally. If not specified: determined by the
1554 compiler.
1555 --enable-mips-msa Enable MIPS MSA optimizations: =no/off, check, api,
1556 yes/on. no/off: disable the optimizations; check:
1557 use internal checking code (deprecated and poorly
1558 supported); api: disable by default, enable by a
1559 call to png_set_option; yes/on: turn on
1560 unconditionally. If not specified: determined by the
1561 compiler.
1562 --enable-mips-mmi Enable MIPS MMI optimizations: =no/off, check, api,
1563 yes/on. no/off: disable the optimizations; check:
1564 use internal checking code (deprecated and poorly
1565 supported); api: disable by default, enable by a
1566 call to png_set_option; yes/on: turn on
1567 unconditionally. If not specified: determined by the
1568 compiler.
1569 --enable-intel-sse Enable Intel SSE optimizations: =no/off, yes/on.
1570 no/off: disable the optimizations; yes/on: enable
1571 the optimizations. If not specified: determined by
1572 the compiler.
1573 --enable-powerpc-vsx Enable POWERPC VSX optimizations: =no/off, check,
1574 api, yes/on. no/off: disable the optimizations;
1575 check: use internal checking code; api: disable by
1576 default, enable by a call to png_set_option; yes/on:
1577 turn on unconditionally. If not specified:
1578 determined by the compiler.
1579 --enable-loongarch-lsx
1580 Enable LOONGARCH LSX optimizations: =no/off, yes/on:
1581 no/off: disable the optimizations; yes/on: turn on
1582 unconditionally. If not specified: determined by the
1583 compiler.
1584
1585Optional Packages:
1586 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1587 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1588 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1589 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1590 both]
1591 --with-aix-soname=aix|svr4|both
1592 shared library versioning (aka "SONAME") variant to
1593 provide on AIX, [default=aix].
1594 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1595 compiler's sysroot if not specified).
1596 --with-zlib-prefix prefix that may have been used in installed zlib
1597 --with-pkgconfigdir Use the specified pkgconfig dir (default is
1598 libdir/pkgconfig)
1599 --with-binconfigs Generate shell libpng-config scripts as well as
1600 pkg-config data [default=yes]
1601 --with-libpng-prefix prefix libpng exported function (API) names with the
1602 given value
1603
1604Some influential environment variables:
1605 CC C compiler command
1606 CFLAGS C compiler flags
1607 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1608 nonstandard directory <lib dir>
1609 LIBS libraries to pass to the linker, e.g. -l<library>
1610 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1611 you have headers in a nonstandard directory <include dir>
1612 CCAS assembler compiler command (defaults to CC)
1613 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1614 CPP C preprocessor
1615 LT_SYS_LIBRARY_PATH
1616 User-defined run-time library search path.
1617 AWK AWK language processor
1618 PNG_COPTS additional flags for the C compiler, to be used for options that
1619 would cause configure itself to fail
1620
1621Use these variables to override the choices made by 'configure' or to help
1622it to find libraries and programs with nonstandard names/locations.
1623
1624Report bugs to <png-mng-implement@lists.sourceforge.net>.
1625_ACEOF
1626ac_status=$?
1627fi
1628
1629if test "$ac_init_help" = "recursive"; then
1630 # If there are subdirs, report their specific --help.
1631 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1632 test -d "$ac_dir" ||
1633 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1634 continue
1635 ac_builddir=.
1636
1637case "$ac_dir" in
1638.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1639*)
1640 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1641 # A ".." for each directory in $ac_dir_suffix.
1642 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1643 case $ac_top_builddir_sub in
1644 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1645 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1646 esac ;;
1647esac
1648ac_abs_top_builddir=$ac_pwd
1649ac_abs_builddir=$ac_pwd$ac_dir_suffix
1650# for backward compatibility:
1651ac_top_builddir=$ac_top_build_prefix
1652
1653case $srcdir in
1654 .) # We are building in place.
1655 ac_srcdir=.
1656 ac_top_srcdir=$ac_top_builddir_sub
1657 ac_abs_top_srcdir=$ac_pwd ;;
1658 [\\/]* | ?:[\\/]* ) # Absolute name.
1659 ac_srcdir=$srcdir$ac_dir_suffix;
1660 ac_top_srcdir=$srcdir
1661 ac_abs_top_srcdir=$srcdir ;;
1662 *) # Relative name.
1663 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1664 ac_top_srcdir=$ac_top_build_prefix$srcdir
1665 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1666esac
1667ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1668
1669 cd "$ac_dir" || { ac_status=$?; continue; }
1670 # Check for configure.gnu first; this name is used for a wrapper for
1671 # Metaconfig's "Configure" on case-insensitive file systems.
1672 if test -f "$ac_srcdir/configure.gnu"; then
1673 echo &&
1674 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1675 elif test -f "$ac_srcdir/configure"; then
1676 echo &&
1677 $SHELL "$ac_srcdir/configure" --help=recursive
1678 else
1679 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1680 fi || ac_status=$?
1681 cd "$ac_pwd" || { ac_status=$?; break; }
1682 done
1683fi
1684
1685test -n "$ac_init_help" && exit $ac_status
1686if $ac_init_version; then
1687 cat <<\_ACEOF
1688libpng configure 1.6.43
1689generated by GNU Autoconf 2.72
1690
1691Copyright (C) 2023 Free Software Foundation, Inc.
1692This configure script is free software; the Free Software Foundation
1693gives unlimited permission to copy, distribute and modify it.
1694_ACEOF
1695 exit
1696fi
1697
1698## ------------------------ ##
1699## Autoconf initialization. ##
1700## ------------------------ ##
1701
1702# ac_fn_c_try_compile LINENO
1703# --------------------------
1704# Try to compile conftest.$ac_ext, and return whether this succeeded.
1705ac_fn_c_try_compile ()
1706{
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 rm -f conftest.$ac_objext conftest.beam
1709 if { { ac_try="$ac_compile"
1710case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713esac
1714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715printf "%s\n" "$ac_try_echo"; } >&5
1716 (eval "$ac_compile") 2>conftest.err
1717 ac_status=$?
1718 if test -s conftest.err; then
1719 grep -v '^ *+' conftest.err >conftest.er1
1720 cat conftest.er1 >&5
1721 mv -f conftest.er1 conftest.err
1722 fi
1723 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && {
1725 test -z "$ac_c_werror_flag" ||
1726 test ! -s conftest.err
1727 } && test -s conftest.$ac_objext
1728then :
1729 ac_retval=0
1730else case e in #(
1731 e) printf "%s\n" "$as_me: failed program was:" >&5
1732sed 's/^/| /' conftest.$ac_ext >&5
1733
1734 ac_retval=1 ;;
1735esac
1736fi
1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738 as_fn_set_status $ac_retval
1739
1740} # ac_fn_c_try_compile
1741
1742# ac_fn_c_try_cpp LINENO
1743# ----------------------
1744# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1745ac_fn_c_try_cpp ()
1746{
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 if { { ac_try="$ac_cpp conftest.$ac_ext"
1749case "(($ac_try" in
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1752esac
1753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754printf "%s\n" "$ac_try_echo"; } >&5
1755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1756 ac_status=$?
1757 if test -s conftest.err; then
1758 grep -v '^ *+' conftest.err >conftest.er1
1759 cat conftest.er1 >&5
1760 mv -f conftest.er1 conftest.err
1761 fi
1762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; } > conftest.i && {
1764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1765 test ! -s conftest.err
1766 }
1767then :
1768 ac_retval=0
1769else case e in #(
1770 e) printf "%s\n" "$as_me: failed program was:" >&5
1771sed 's/^/| /' conftest.$ac_ext >&5
1772
1773 ac_retval=1 ;;
1774esac
1775fi
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777 as_fn_set_status $ac_retval
1778
1779} # ac_fn_c_try_cpp
1780
1781# ac_fn_c_try_link LINENO
1782# -----------------------
1783# Try to link conftest.$ac_ext, and return whether this succeeded.
1784ac_fn_c_try_link ()
1785{
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1788 if { { ac_try="$ac_link"
1789case "(($ac_try" in
1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1792esac
1793eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794printf "%s\n" "$ac_try_echo"; } >&5
1795 (eval "$ac_link") 2>conftest.err
1796 ac_status=$?
1797 if test -s conftest.err; then
1798 grep -v '^ *+' conftest.err >conftest.er1
1799 cat conftest.er1 >&5
1800 mv -f conftest.er1 conftest.err
1801 fi
1802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; } && {
1804 test -z "$ac_c_werror_flag" ||
1805 test ! -s conftest.err
1806 } && test -s conftest$ac_exeext && {
1807 test "$cross_compiling" = yes ||
1808 test -x conftest$ac_exeext
1809 }
1810then :
1811 ac_retval=0
1812else case e in #(
1813 e) printf "%s\n" "$as_me: failed program was:" >&5
1814sed 's/^/| /' conftest.$ac_ext >&5
1815
1816 ac_retval=1 ;;
1817esac
1818fi
1819 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1820 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1821 # interfere with the next link command; also delete a directory that is
1822 # left behind by Apple's compiler. We do this before executing the actions.
1823 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 as_fn_set_status $ac_retval
1826
1827} # ac_fn_c_try_link
1828
1829# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1830# -------------------------------------------------------
1831# Tests whether HEADER exists and can be compiled using the include files in
1832# INCLUDES, setting the cache variable VAR accordingly.
1833ac_fn_c_check_header_compile ()
1834{
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837printf %s "checking for $2... " >&6; }
1838if eval test \${$3+y}
1839then :
1840 printf %s "(cached) " >&6
1841else case e in #(
1842 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843/* end confdefs.h. */
1844$4
1845#include <$2>
1846_ACEOF
1847if ac_fn_c_try_compile "$LINENO"
1848then :
1849 eval "$3=yes"
1850else case e in #(
1851 e) eval "$3=no" ;;
1852esac
1853fi
1854rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1855esac
1856fi
1857eval ac_res=\$$3
1858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1859printf "%s\n" "$ac_res" >&6; }
1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861
1862} # ac_fn_c_check_header_compile
1863
1864# ac_fn_c_check_func LINENO FUNC VAR
1865# ----------------------------------
1866# Tests whether FUNC exists, setting the cache variable VAR accordingly
1867ac_fn_c_check_func ()
1868{
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871printf %s "checking for $2... " >&6; }
1872if eval test \${$3+y}
1873then :
1874 printf %s "(cached) " >&6
1875else case e in #(
1876 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877/* end confdefs.h. */
1878/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1880#define $2 innocuous_$2
1881
1882/* System header to define __stub macros and hopefully few prototypes,
1883 which can conflict with char $2 (void); below. */
1884
1885#include <limits.h>
1886#undef $2
1887
1888/* Override any GCC internal prototype to avoid an error.
1889 Use char because int might match the return type of a GCC
1890 builtin and then its argument prototype would still apply. */
1891#ifdef __cplusplus
1892extern "C"
1893#endif
1894char $2 (void);
1895/* The GNU C library defines this for functions which it implements
1896 to always fail with ENOSYS. Some functions are actually named
1897 something starting with __ and the normal name is an alias. */
1898#if defined __stub_$2 || defined __stub___$2
1899choke me
1900#endif
1901
1902int
1903main (void)
1904{
1905return $2 ();
1906 ;
1907 return 0;
1908}
1909_ACEOF
1910if ac_fn_c_try_link "$LINENO"
1911then :
1912 eval "$3=yes"
1913else case e in #(
1914 e) eval "$3=no" ;;
1915esac
1916fi
1917rm -f core conftest.err conftest.$ac_objext conftest.beam \
1918 conftest$ac_exeext conftest.$ac_ext ;;
1919esac
1920fi
1921eval ac_res=\$$3
1922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923printf "%s\n" "$ac_res" >&6; }
1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925
1926} # ac_fn_c_check_func
1927ac_configure_args_raw=
1928for ac_arg
1929do
1930 case $ac_arg in
1931 *\'*)
1932 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1933 esac
1934 as_fn_append ac_configure_args_raw " '$ac_arg'"
1935done
1936
1937case $ac_configure_args_raw in
1938 *$as_nl*)
1939 ac_safe_unquote= ;;
1940 *)
1941 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1942 ac_unsafe_a="$ac_unsafe_z#~"
1943 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1944 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1945esac
1946
1947cat >config.log <<_ACEOF
1948This file contains any messages produced by compilers while
1949running configure, to aid debugging if configure makes a mistake.
1950
1951It was created by libpng $as_me 1.6.43, which was
1952generated by GNU Autoconf 2.72. Invocation command line was
1953
1954 $ $0$ac_configure_args_raw
1955
1956_ACEOF
1957exec 5>>config.log
1958{
1959cat <<_ASUNAME
1960## --------- ##
1961## Platform. ##
1962## --------- ##
1963
1964hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1965uname -m = `(uname -m) 2>/dev/null || echo unknown`
1966uname -r = `(uname -r) 2>/dev/null || echo unknown`
1967uname -s = `(uname -s) 2>/dev/null || echo unknown`
1968uname -v = `(uname -v) 2>/dev/null || echo unknown`
1969
1970/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1971/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1972
1973/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1974/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1975/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1976/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1977/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1978/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1979/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1980
1981_ASUNAME
1982
1983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984for as_dir in $PATH
1985do
1986 IFS=$as_save_IFS
1987 case $as_dir in #(((
1988 '') as_dir=./ ;;
1989 */) ;;
1990 *) as_dir=$as_dir/ ;;
1991 esac
1992 printf "%s\n" "PATH: $as_dir"
1993 done
1994IFS=$as_save_IFS
1995
1996} >&5
1997
1998cat >&5 <<_ACEOF
1999
2000
2001## ----------- ##
2002## Core tests. ##
2003## ----------- ##
2004
2005_ACEOF
2006
2007
2008# Keep a trace of the command line.
2009# Strip out --no-create and --no-recursion so they do not pile up.
2010# Strip out --silent because we don't want to record it for future runs.
2011# Also quote any args containing shell meta-characters.
2012# Make two passes to allow for proper duplicate-argument suppression.
2013ac_configure_args=
2014ac_configure_args0=
2015ac_configure_args1=
2016ac_must_keep_next=false
2017for ac_pass in 1 2
2018do
2019 for ac_arg
2020 do
2021 case $ac_arg in
2022 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2023 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2024 | -silent | --silent | --silen | --sile | --sil)
2025 continue ;;
2026 *\'*)
2027 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2028 esac
2029 case $ac_pass in
2030 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2031 2)
2032 as_fn_append ac_configure_args1 " '$ac_arg'"
2033 if test $ac_must_keep_next = true; then
2034 ac_must_keep_next=false # Got value, back to normal.
2035 else
2036 case $ac_arg in
2037 *=* | --config-cache | -C | -disable-* | --disable-* \
2038 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2039 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2040 | -with-* | --with-* | -without-* | --without-* | --x)
2041 case "$ac_configure_args0 " in
2042 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2043 esac
2044 ;;
2045 -* ) ac_must_keep_next=true ;;
2046 esac
2047 fi
2048 as_fn_append ac_configure_args " '$ac_arg'"
2049 ;;
2050 esac
2051 done
2052done
2053{ ac_configure_args0=; unset ac_configure_args0;}
2054{ ac_configure_args1=; unset ac_configure_args1;}
2055
2056# When interrupted or exit'd, cleanup temporary files, and complete
2057# config.log. We remove comments because anyway the quotes in there
2058# would cause problems or look ugly.
2059# WARNING: Use '\'' to represent an apostrophe within the trap.
2060# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2061trap 'exit_status=$?
2062 # Sanitize IFS.
2063 IFS=" "" $as_nl"
2064 # Save into config.log some information that might help in debugging.
2065 {
2066 echo
2067
2068 printf "%s\n" "## ---------------- ##
2069## Cache variables. ##
2070## ---------------- ##"
2071 echo
2072 # The following way of writing the cache mishandles newlines in values,
2073(
2074 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2075 eval ac_val=\$$ac_var
2076 case $ac_val in #(
2077 *${as_nl}*)
2078 case $ac_var in #(
2079 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2080printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2081 esac
2082 case $ac_var in #(
2083 _ | IFS | as_nl) ;; #(
2084 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2085 *) { eval $ac_var=; unset $ac_var;} ;;
2086 esac ;;
2087 esac
2088 done
2089 (set) 2>&1 |
2090 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2091 *${as_nl}ac_space=\ *)
2092 sed -n \
2093 "s/'\''/'\''\\\\'\'''\''/g;
2094 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2095 ;; #(
2096 *)
2097 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2098 ;;
2099 esac |
2100 sort
2101)
2102 echo
2103
2104 printf "%s\n" "## ----------------- ##
2105## Output variables. ##
2106## ----------------- ##"
2107 echo
2108 for ac_var in $ac_subst_vars
2109 do
2110 eval ac_val=\$$ac_var
2111 case $ac_val in
2112 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2113 esac
2114 printf "%s\n" "$ac_var='\''$ac_val'\''"
2115 done | sort
2116 echo
2117
2118 if test -n "$ac_subst_files"; then
2119 printf "%s\n" "## ------------------- ##
2120## File substitutions. ##
2121## ------------------- ##"
2122 echo
2123 for ac_var in $ac_subst_files
2124 do
2125 eval ac_val=\$$ac_var
2126 case $ac_val in
2127 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2128 esac
2129 printf "%s\n" "$ac_var='\''$ac_val'\''"
2130 done | sort
2131 echo
2132 fi
2133
2134 if test -s confdefs.h; then
2135 printf "%s\n" "## ----------- ##
2136## confdefs.h. ##
2137## ----------- ##"
2138 echo
2139 cat confdefs.h
2140 echo
2141 fi
2142 test "$ac_signal" != 0 &&
2143 printf "%s\n" "$as_me: caught signal $ac_signal"
2144 printf "%s\n" "$as_me: exit $exit_status"
2145 } >&5
2146 rm -f core *.core core.conftest.* &&
2147 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2148 exit $exit_status
2149' 0
2150for ac_signal in 1 2 13 15; do
2151 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2152done
2153ac_signal=0
2154
2155# confdefs.h avoids OS command line length limits that DEFS can exceed.
2156rm -f -r conftest* confdefs.h
2157
2158printf "%s\n" "/* confdefs.h */" > confdefs.h
2159
2160# Predefined preprocessor variables.
2161
2162printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2163
2164printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2165
2166printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2167
2168printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2169
2170printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2171
2172printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2173
2174
2175# Let the site file select an alternate cache file if it wants to.
2176# Prefer an explicitly selected file to automatically selected ones.
2177if test -n "$CONFIG_SITE"; then
2178 ac_site_files="$CONFIG_SITE"
2179elif test "x$prefix" != xNONE; then
2180 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2181else
2182 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2183fi
2184
2185for ac_site_file in $ac_site_files
2186do
2187 case $ac_site_file in #(
2188 */*) :
2189 ;; #(
2190 *) :
2191 ac_site_file=./$ac_site_file ;;
2192esac
2193 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2195printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2196 sed 's/^/| /' "$ac_site_file" >&5
2197 . "$ac_site_file" \
2198 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2199printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2200as_fn_error $? "failed to load site script $ac_site_file
2201See 'config.log' for more details" "$LINENO" 5; }
2202 fi
2203done
2204
2205if test -r "$cache_file"; then
2206 # Some versions of bash will fail to source /dev/null (special files
2207 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2208 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2210printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2211 case $cache_file in
2212 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2213 *) . "./$cache_file";;
2214 esac
2215 fi
2216else
2217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2218printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2219 >$cache_file
2220fi
2221
2222# Test code for whether the C compiler supports C89 (global declarations)
2223ac_c_conftest_c89_globals='
2224/* Does the compiler advertise C89 conformance?
2225 Do not test the value of __STDC__, because some compilers set it to 0
2226 while being otherwise adequately conformant. */
2227#if !defined __STDC__
2228# error "Compiler does not advertise C89 conformance"
2229#endif
2230
2231#include <stddef.h>
2232#include <stdarg.h>
2233struct stat;
2234/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2235struct buf { int x; };
2236struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2237static char *e (char **p, int i)
2238{
2239 return p[i];
2240}
2241static char *f (char * (*g) (char **, int), char **p, ...)
2242{
2243 char *s;
2244 va_list v;
2245 va_start (v,p);
2246 s = g (p, va_arg (v,int));
2247 va_end (v);
2248 return s;
2249}
2250
2251/* C89 style stringification. */
2252#define noexpand_stringify(a) #a
2253const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2254
2255/* C89 style token pasting. Exercises some of the corner cases that
2256 e.g. old MSVC gets wrong, but not very hard. */
2257#define noexpand_concat(a,b) a##b
2258#define expand_concat(a,b) noexpand_concat(a,b)
2259extern int vA;
2260extern int vbee;
2261#define aye A
2262#define bee B
2263int *pvA = &expand_concat(v,aye);
2264int *pvbee = &noexpand_concat(v,bee);
2265
2266/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2267 function prototypes and stuff, but not \xHH hex character constants.
2268 These do not provoke an error unfortunately, instead are silently treated
2269 as an "x". The following induces an error, until -std is added to get
2270 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2271 array size at least. It is necessary to write \x00 == 0 to get something
2272 that is true only with -std. */
2273int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2274
2275/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2276 inside strings and character constants. */
2277#define FOO(x) '\''x'\''
2278int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2279
2280int test (int i, double x);
2281struct s1 {int (*f) (int a);};
2282struct s2 {int (*f) (double a);};
2283int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2284 int, int);'
2285
2286# Test code for whether the C compiler supports C89 (body of main).
2287ac_c_conftest_c89_main='
2288ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2289'
2290
2291# Test code for whether the C compiler supports C99 (global declarations)
2292ac_c_conftest_c99_globals='
2293/* Does the compiler advertise C99 conformance? */
2294#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2295# error "Compiler does not advertise C99 conformance"
2296#endif
2297
2298// See if C++-style comments work.
2299
2300#include <stdbool.h>
2301extern int puts (const char *);
2302extern int printf (const char *, ...);
2303extern int dprintf (int, const char *, ...);
2304extern void *malloc (size_t);
2305extern void free (void *);
2306
2307// Check varargs macros. These examples are taken from C99 6.10.3.5.
2308// dprintf is used instead of fprintf to avoid needing to declare
2309// FILE and stderr.
2310#define debug(...) dprintf (2, __VA_ARGS__)
2311#define showlist(...) puts (#__VA_ARGS__)
2312#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2313static void
2314test_varargs_macros (void)
2315{
2316 int x = 1234;
2317 int y = 5678;
2318 debug ("Flag");
2319 debug ("X = %d\n", x);
2320 showlist (The first, second, and third items.);
2321 report (x>y, "x is %d but y is %d", x, y);
2322}
2323
2324// Check long long types.
2325#define BIG64 18446744073709551615ull
2326#define BIG32 4294967295ul
2327#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2328#if !BIG_OK
2329 #error "your preprocessor is broken"
2330#endif
2331#if BIG_OK
2332#else
2333 #error "your preprocessor is broken"
2334#endif
2335static long long int bignum = -9223372036854775807LL;
2336static unsigned long long int ubignum = BIG64;
2337
2338struct incomplete_array
2339{
2340 int datasize;
2341 double data[];
2342};
2343
2344struct named_init {
2345 int number;
2346 const wchar_t *name;
2347 double average;
2348};
2349
2350typedef const char *ccp;
2351
2352static inline int
2353test_restrict (ccp restrict text)
2354{
2355 // Iterate through items via the restricted pointer.
2356 // Also check for declarations in for loops.
2357 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2358 continue;
2359 return 0;
2360}
2361
2362// Check varargs and va_copy.
2363static bool
2364test_varargs (const char *format, ...)
2365{
2366 va_list args;
2367 va_start (args, format);
2368 va_list args_copy;
2369 va_copy (args_copy, args);
2370
2371 const char *str = "";
2372 int number = 0;
2373 float fnumber = 0;
2374
2375 while (*format)
2376 {
2377 switch (*format++)
2378 {
2379 case '\''s'\'': // string
2380 str = va_arg (args_copy, const char *);
2381 break;
2382 case '\''d'\'': // int
2383 number = va_arg (args_copy, int);
2384 break;
2385 case '\''f'\'': // float
2386 fnumber = va_arg (args_copy, double);
2387 break;
2388 default:
2389 break;
2390 }
2391 }
2392 va_end (args_copy);
2393 va_end (args);
2394
2395 return *str && number && fnumber;
2396}
2397'
2398
2399# Test code for whether the C compiler supports C99 (body of main).
2400ac_c_conftest_c99_main='
2401 // Check bool.
2402 _Bool success = false;
2403 success |= (argc != 0);
2404
2405 // Check restrict.
2406 if (test_restrict ("String literal") == 0)
2407 success = true;
2408 char *restrict newvar = "Another string";
2409
2410 // Check varargs.
2411 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2412 test_varargs_macros ();
2413
2414 // Check flexible array members.
2415 struct incomplete_array *ia =
2416 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2417 ia->datasize = 10;
2418 for (int i = 0; i < ia->datasize; ++i)
2419 ia->data[i] = i * 1.234;
2420 // Work around memory leak warnings.
2421 free (ia);
2422
2423 // Check named initializers.
2424 struct named_init ni = {
2425 .number = 34,
2426 .name = L"Test wide string",
2427 .average = 543.34343,
2428 };
2429
2430 ni.number = 58;
2431
2432 int dynamic_array[ni.number];
2433 dynamic_array[0] = argv[0][0];
2434 dynamic_array[ni.number - 1] = 543;
2435
2436 // work around unused variable warnings
2437 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2438 || dynamic_array[ni.number - 1] != 543);
2439'
2440
2441# Test code for whether the C compiler supports C11 (global declarations)
2442ac_c_conftest_c11_globals='
2443/* Does the compiler advertise C11 conformance? */
2444#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2445# error "Compiler does not advertise C11 conformance"
2446#endif
2447
2448// Check _Alignas.
2449char _Alignas (double) aligned_as_double;
2450char _Alignas (0) no_special_alignment;
2451extern char aligned_as_int;
2452char _Alignas (0) _Alignas (int) aligned_as_int;
2453
2454// Check _Alignof.
2455enum
2456{
2457 int_alignment = _Alignof (int),
2458 int_array_alignment = _Alignof (int[100]),
2459 char_alignment = _Alignof (char)
2460};
2461_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2462
2463// Check _Noreturn.
2464int _Noreturn does_not_return (void) { for (;;) continue; }
2465
2466// Check _Static_assert.
2467struct test_static_assert
2468{
2469 int x;
2470 _Static_assert (sizeof (int) <= sizeof (long int),
2471 "_Static_assert does not work in struct");
2472 long int y;
2473};
2474
2475// Check UTF-8 literals.
2476#define u8 syntax error!
2477char const utf8_literal[] = u8"happens to be ASCII" "another string";
2478
2479// Check duplicate typedefs.
2480typedef long *long_ptr;
2481typedef long int *long_ptr;
2482typedef long_ptr long_ptr;
2483
2484// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2485struct anonymous
2486{
2487 union {
2488 struct { int i; int j; };
2489 struct { int k; long int l; } w;
2490 };
2491 int m;
2492} v1;
2493'
2494
2495# Test code for whether the C compiler supports C11 (body of main).
2496ac_c_conftest_c11_main='
2497 _Static_assert ((offsetof (struct anonymous, i)
2498 == offsetof (struct anonymous, w.k)),
2499 "Anonymous union alignment botch");
2500 v1.i = 2;
2501 v1.w.k = 5;
2502 ok |= v1.i != 5;
2503'
2504
2505# Test code for whether the C compiler supports C11 (complete).
2506ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2507${ac_c_conftest_c99_globals}
2508${ac_c_conftest_c11_globals}
2509
2510int
2511main (int argc, char **argv)
2512{
2513 int ok = 0;
2514 ${ac_c_conftest_c89_main}
2515 ${ac_c_conftest_c99_main}
2516 ${ac_c_conftest_c11_main}
2517 return ok;
2518}
2519"
2520
2521# Test code for whether the C compiler supports C99 (complete).
2522ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2523${ac_c_conftest_c99_globals}
2524
2525int
2526main (int argc, char **argv)
2527{
2528 int ok = 0;
2529 ${ac_c_conftest_c89_main}
2530 ${ac_c_conftest_c99_main}
2531 return ok;
2532}
2533"
2534
2535# Test code for whether the C compiler supports C89 (complete).
2536ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2537
2538int
2539main (int argc, char **argv)
2540{
2541 int ok = 0;
2542 ${ac_c_conftest_c89_main}
2543 return ok;
2544}
2545"
2546
2547as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2548as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2549as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2550as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2551as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2552as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2553as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2554as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2555as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2556
2557# Auxiliary files required by this configure script.
2558ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
2559
2560# Locations in which to look for auxiliary files.
2561ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2562
2563# Search for a directory containing all of the required auxiliary files,
2564# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2565# If we don't find one directory that contains all the files we need,
2566# we report the set of missing files from the *first* directory in
2567# $ac_aux_dir_candidates and give up.
2568ac_missing_aux_files=""
2569ac_first_candidate=:
2570printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572as_found=false
2573for as_dir in $ac_aux_dir_candidates
2574do
2575 IFS=$as_save_IFS
2576 case $as_dir in #(((
2577 '') as_dir=./ ;;
2578 */) ;;
2579 *) as_dir=$as_dir/ ;;
2580 esac
2581 as_found=:
2582
2583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2584 ac_aux_dir_found=yes
2585 ac_install_sh=
2586 for ac_aux in $ac_aux_files
2587 do
2588 # As a special case, if "install-sh" is required, that requirement
2589 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2590 # and $ac_install_sh is set appropriately for whichever one is found.
2591 if test x"$ac_aux" = x"install-sh"
2592 then
2593 if test -f "${as_dir}install-sh"; then
2594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2595 ac_install_sh="${as_dir}install-sh -c"
2596 elif test -f "${as_dir}install.sh"; then
2597 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2598 ac_install_sh="${as_dir}install.sh -c"
2599 elif test -f "${as_dir}shtool"; then
2600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2601 ac_install_sh="${as_dir}shtool install -c"
2602 else
2603 ac_aux_dir_found=no
2604 if $ac_first_candidate; then
2605 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2606 else
2607 break
2608 fi
2609 fi
2610 else
2611 if test -f "${as_dir}${ac_aux}"; then
2612 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2613 else
2614 ac_aux_dir_found=no
2615 if $ac_first_candidate; then
2616 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2617 else
2618 break
2619 fi
2620 fi
2621 fi
2622 done
2623 if test "$ac_aux_dir_found" = yes; then
2624 ac_aux_dir="$as_dir"
2625 break
2626 fi
2627 ac_first_candidate=false
2628
2629 as_found=false
2630done
2631IFS=$as_save_IFS
2632if $as_found
2633then :
2634
2635else case e in #(
2636 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2637esac
2638fi
2639
2640
2641# These three variables are undocumented and unsupported,
2642# and are intended to be withdrawn in a future Autoconf release.
2643# They can cause serious problems if a builder's source tree is in a directory
2644# whose full name contains unusual characters.
2645if test -f "${ac_aux_dir}config.guess"; then
2646 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2647fi
2648if test -f "${ac_aux_dir}config.sub"; then
2649 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2650fi
2651if test -f "$ac_aux_dir/configure"; then
2652 ac_configure="$SHELL ${ac_aux_dir}configure"
2653fi
2654
2655# Check that the precious variables saved in the cache have kept the same
2656# value.
2657ac_cache_corrupted=false
2658for ac_var in $ac_precious_vars; do
2659 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2660 eval ac_new_set=\$ac_env_${ac_var}_set
2661 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2662 eval ac_new_val=\$ac_env_${ac_var}_value
2663 case $ac_old_set,$ac_new_set in
2664 set,)
2665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2666printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2667 ac_cache_corrupted=: ;;
2668 ,set)
2669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2670printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2671 ac_cache_corrupted=: ;;
2672 ,);;
2673 *)
2674 if test "x$ac_old_val" != "x$ac_new_val"; then
2675 # differences in whitespace do not lead to failure.
2676 ac_old_val_w=`echo x $ac_old_val`
2677 ac_new_val_w=`echo x $ac_new_val`
2678 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2680printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2681 ac_cache_corrupted=:
2682 else
2683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2684printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2685 eval $ac_var=\$ac_old_val
2686 fi
2687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2688printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2690printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2691 fi;;
2692 esac
2693 # Pass precious variables to config.status.
2694 if test "$ac_new_set" = set; then
2695 case $ac_new_val in
2696 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2697 *) ac_arg=$ac_var=$ac_new_val ;;
2698 esac
2699 case " $ac_configure_args " in
2700 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2701 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2702 esac
2703 fi
2704done
2705if $ac_cache_corrupted; then
2706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2707printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2709printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2710 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2711 and start over" "$LINENO" 5
2712fi
2713## -------------------- ##
2714## Main body of script. ##
2715## -------------------- ##
2716
2717ac_ext=c
2718ac_cpp='$CPP $CPPFLAGS'
2719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2721ac_compiler_gnu=$ac_cv_c_compiler_gnu
2722
2723
2724
2725
2726# libpng does not follow GNU file name conventions (hence 'foreign')
2727# color-tests requires automake 1.11 or later
2728# silent-rules requires automake 1.11 or later
2729# dist-xz requires automake 1.11 or later
2730# 1.12.2 fixes a security issue in 1.11.2 and 1.12.1
2731# 1.13 is required for parallel tests
2732am__api_version='1.16'
2733
2734
2735
2736 # Find a good install program. We prefer a C program (faster),
2737# so one script is as good as another. But avoid the broken or
2738# incompatible versions:
2739# SysV /etc/install, /usr/sbin/install
2740# SunOS /usr/etc/install
2741# IRIX /sbin/install
2742# AIX /bin/install
2743# AmigaOS /C/install, which installs bootblocks on floppy discs
2744# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2745# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2746# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2747# OS/2's system install, which has a completely different semantic
2748# ./install, which can be erroneously created by make from ./install.sh.
2749# Reject install programs that cannot install multiple files.
2750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2751printf %s "checking for a BSD-compatible install... " >&6; }
2752if test -z "$INSTALL"; then
2753if test ${ac_cv_path_install+y}
2754then :
2755 printf %s "(cached) " >&6
2756else case e in #(
2757 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758for as_dir in $PATH
2759do
2760 IFS=$as_save_IFS
2761 case $as_dir in #(((
2762 '') as_dir=./ ;;
2763 */) ;;
2764 *) as_dir=$as_dir/ ;;
2765 esac
2766 # Account for fact that we put trailing slashes in our PATH walk.
2767case $as_dir in #((
2768 ./ | /[cC]/* | \
2769 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2770 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2771 /usr/ucb/* ) ;;
2772 *)
2773 # OSF1 and SCO ODT 3.0 have their own names for install.
2774 # Don't use installbsd from OSF since it installs stuff as root
2775 # by default.
2776 for ac_prog in ginstall scoinst install; do
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2779 if test $ac_prog = install &&
2780 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2781 # AIX install. It has an incompatible calling convention.
2782 :
2783 elif test $ac_prog = install &&
2784 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2785 # program-specific install script used by HP pwplus--don't use.
2786 :
2787 else
2788 rm -rf conftest.one conftest.two conftest.dir
2789 echo one > conftest.one
2790 echo two > conftest.two
2791 mkdir conftest.dir
2792 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2793 test -s conftest.one && test -s conftest.two &&
2794 test -s conftest.dir/conftest.one &&
2795 test -s conftest.dir/conftest.two
2796 then
2797 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2798 break 3
2799 fi
2800 fi
2801 fi
2802 done
2803 done
2804 ;;
2805esac
2806
2807 done
2808IFS=$as_save_IFS
2809
2810rm -rf conftest.one conftest.two conftest.dir
2811 ;;
2812esac
2813fi
2814 if test ${ac_cv_path_install+y}; then
2815 INSTALL=$ac_cv_path_install
2816 else
2817 # As a last resort, use the slow shell script. Don't cache a
2818 # value for INSTALL within a source directory, because that will
2819 # break other packages using the cache if that directory is
2820 # removed, or if the value is a relative name.
2821 INSTALL=$ac_install_sh
2822 fi
2823fi
2824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2825printf "%s\n" "$INSTALL" >&6; }
2826
2827# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2828# It thinks the first close brace ends the variable substitution.
2829test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2830
2831test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2832
2833test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2834
2835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2836printf %s "checking whether build environment is sane... " >&6; }
2837# Reject unsafe characters in $srcdir or the absolute working directory
2838# name. Accept space and tab only in the latter.
2839am_lf='
2840'
2841case `pwd` in
2842 *[\\\"\#\$\&\'\`$am_lf]*)
2843 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2844esac
2845case $srcdir in
2846 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2847 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2848esac
2849
2850# Do 'set' in a subshell so we don't clobber the current shell's
2851# arguments. Must try -L first in case configure is actually a
2852# symlink; some systems play weird games with the mod time of symlinks
2853# (eg FreeBSD returns the mod time of the symlink's containing
2854# directory).
2855if (
2856 am_has_slept=no
2857 for am_try in 1 2; do
2858 echo "timestamp, slept: $am_has_slept" > conftest.file
2859 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2860 if test "$*" = "X"; then
2861 # -L didn't work.
2862 set X `ls -t "$srcdir/configure" conftest.file`
2863 fi
2864 if test "$*" != "X $srcdir/configure conftest.file" \
2865 && test "$*" != "X conftest.file $srcdir/configure"; then
2866
2867 # If neither matched, then we have a broken ls. This can happen
2868 # if, for instance, CONFIG_SHELL is bash and it inherits a
2869 # broken ls alias from the environment. This has actually
2870 # happened. Such a system could not be considered "sane".
2871 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2872 alias in your environment" "$LINENO" 5
2873 fi
2874 if test "$2" = conftest.file || test $am_try -eq 2; then
2875 break
2876 fi
2877 # Just in case.
2878 sleep 1
2879 am_has_slept=yes
2880 done
2881 test "$2" = conftest.file
2882 )
2883then
2884 # Ok.
2885 :
2886else
2887 as_fn_error $? "newly created file is older than distributed files!
2888Check your system clock" "$LINENO" 5
2889fi
2890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2891printf "%s\n" "yes" >&6; }
2892# If we didn't sleep, we still need to ensure time stamps of config.status and
2893# generated files are strictly newer.
2894am_sleep_pid=
2895if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2896 ( sleep 1 ) &
2897 am_sleep_pid=$!
2898fi
2899
2900rm -f conftest.file
2901
2902test "$program_prefix" != NONE &&
2903 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2904# Use a double $ so make ignores it.
2905test "$program_suffix" != NONE &&
2906 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2907# Double any \ or $.
2908# By default was 's,x,x', remove it if useless.
2909ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2910program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2911
2912
2913# Expand $ac_aux_dir to an absolute path.
2914am_aux_dir=`cd "$ac_aux_dir" && pwd`
2915
2916
2917 if test x"${MISSING+set}" != xset; then
2918 MISSING="\${SHELL} '$am_aux_dir/missing'"
2919fi
2920# Use eval to expand $SHELL
2921if eval "$MISSING --is-lightweight"; then
2922 am_missing_run="$MISSING "
2923else
2924 am_missing_run=
2925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2926printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2927fi
2928
2929if test x"${install_sh+set}" != xset; then
2930 case $am_aux_dir in
2931 *\ * | *\ *)
2932 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2933 *)
2934 install_sh="\${SHELL} $am_aux_dir/install-sh"
2935 esac
2936fi
2937
2938# Installed binaries are usually stripped using 'strip' when the user
2939# run "make install-strip". However 'strip' might not be the right
2940# tool to use in cross-compilation environments, therefore Automake
2941# will honor the 'STRIP' environment variable to overrule this program.
2942if test "$cross_compiling" != no; then
2943 if test -n "$ac_tool_prefix"; then
2944 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2945set dummy ${ac_tool_prefix}strip; ac_word=$2
2946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947printf %s "checking for $ac_word... " >&6; }
2948if test ${ac_cv_prog_STRIP+y}
2949then :
2950 printf %s "(cached) " >&6
2951else case e in #(
2952 e) if test -n "$STRIP"; then
2953 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2954else
2955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956for as_dir in $PATH
2957do
2958 IFS=$as_save_IFS
2959 case $as_dir in #(((
2960 '') as_dir=./ ;;
2961 */) ;;
2962 *) as_dir=$as_dir/ ;;
2963 esac
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2966 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2968 break 2
2969 fi
2970done
2971 done
2972IFS=$as_save_IFS
2973
2974fi ;;
2975esac
2976fi
2977STRIP=$ac_cv_prog_STRIP
2978if test -n "$STRIP"; then
2979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2980printf "%s\n" "$STRIP" >&6; }
2981else
2982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2983printf "%s\n" "no" >&6; }
2984fi
2985
2986
2987fi
2988if test -z "$ac_cv_prog_STRIP"; then
2989 ac_ct_STRIP=$STRIP
2990 # Extract the first word of "strip", so it can be a program name with args.
2991set dummy strip; ac_word=$2
2992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993printf %s "checking for $ac_word... " >&6; }
2994if test ${ac_cv_prog_ac_ct_STRIP+y}
2995then :
2996 printf %s "(cached) " >&6
2997else case e in #(
2998 e) if test -n "$ac_ct_STRIP"; then
2999 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3000else
3001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002for as_dir in $PATH
3003do
3004 IFS=$as_save_IFS
3005 case $as_dir in #(((
3006 '') as_dir=./ ;;
3007 */) ;;
3008 *) as_dir=$as_dir/ ;;
3009 esac
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3012 ac_cv_prog_ac_ct_STRIP="strip"
3013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3014 break 2
3015 fi
3016done
3017 done
3018IFS=$as_save_IFS
3019
3020fi ;;
3021esac
3022fi
3023ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3024if test -n "$ac_ct_STRIP"; then
3025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3026printf "%s\n" "$ac_ct_STRIP" >&6; }
3027else
3028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029printf "%s\n" "no" >&6; }
3030fi
3031
3032 if test "x$ac_ct_STRIP" = x; then
3033 STRIP=":"
3034 else
3035 case $cross_compiling:$ac_tool_warned in
3036yes:)
3037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3038printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3039ac_tool_warned=yes ;;
3040esac
3041 STRIP=$ac_ct_STRIP
3042 fi
3043else
3044 STRIP="$ac_cv_prog_STRIP"
3045fi
3046
3047fi
3048INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3049
3050
3051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3052printf %s "checking for a race-free mkdir -p... " >&6; }
3053if test -z "$MKDIR_P"; then
3054 if test ${ac_cv_path_mkdir+y}
3055then :
3056 printf %s "(cached) " >&6
3057else case e in #(
3058 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3060do
3061 IFS=$as_save_IFS
3062 case $as_dir in #(((
3063 '') as_dir=./ ;;
3064 */) ;;
3065 *) as_dir=$as_dir/ ;;
3066 esac
3067 for ac_prog in mkdir gmkdir; do
3068 for ac_exec_ext in '' $ac_executable_extensions; do
3069 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3070 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3071 'mkdir ('*'coreutils) '* | \
3072 *'BusyBox '* | \
3073 'mkdir (fileutils) '4.1*)
3074 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3075 break 3;;
3076 esac
3077 done
3078 done
3079 done
3080IFS=$as_save_IFS
3081 ;;
3082esac
3083fi
3084
3085 test -d ./--version && rmdir ./--version
3086 if test ${ac_cv_path_mkdir+y}; then
3087 MKDIR_P="$ac_cv_path_mkdir -p"
3088 else
3089 # As a last resort, use plain mkdir -p,
3090 # in the hope it doesn't have the bugs of ancient mkdir.
3091 MKDIR_P='mkdir -p'
3092 fi
3093fi
3094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3095printf "%s\n" "$MKDIR_P" >&6; }
3096
3097for ac_prog in gawk mawk nawk awk
3098do
3099 # Extract the first word of "$ac_prog", so it can be a program name with args.
3100set dummy $ac_prog; ac_word=$2
3101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3102printf %s "checking for $ac_word... " >&6; }
3103if test ${ac_cv_prog_AWK+y}
3104then :
3105 printf %s "(cached) " >&6
3106else case e in #(
3107 e) if test -n "$AWK"; then
3108 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3109else
3110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111for as_dir in $PATH
3112do
3113 IFS=$as_save_IFS
3114 case $as_dir in #(((
3115 '') as_dir=./ ;;
3116 */) ;;
3117 *) as_dir=$as_dir/ ;;
3118 esac
3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3121 ac_cv_prog_AWK="$ac_prog"
3122 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3123 break 2
3124 fi
3125done
3126 done
3127IFS=$as_save_IFS
3128
3129fi ;;
3130esac
3131fi
3132AWK=$ac_cv_prog_AWK
3133if test -n "$AWK"; then
3134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3135printf "%s\n" "$AWK" >&6; }
3136else
3137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138printf "%s\n" "no" >&6; }
3139fi
3140
3141
3142 test -n "$AWK" && break
3143done
3144
3145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3146printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3147set x ${MAKE-make}
3148ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3149if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3150then :
3151 printf %s "(cached) " >&6
3152else case e in #(
3153 e) cat >conftest.make <<\_ACEOF
3154SHELL = /bin/sh
3155all:
3156 @echo '@@@%%%=$(MAKE)=@@@%%%'
3157_ACEOF
3158# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3159case `${MAKE-make} -f conftest.make 2>/dev/null` in
3160 *@@@%%%=?*=@@@%%%*)
3161 eval ac_cv_prog_make_${ac_make}_set=yes;;
3162 *)
3163 eval ac_cv_prog_make_${ac_make}_set=no;;
3164esac
3165rm -f conftest.make ;;
3166esac
3167fi
3168if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3170printf "%s\n" "yes" >&6; }
3171 SET_MAKE=
3172else
3173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174printf "%s\n" "no" >&6; }
3175 SET_MAKE="MAKE=${MAKE-make}"
3176fi
3177
3178rm -rf .tst 2>/dev/null
3179mkdir .tst 2>/dev/null
3180if test -d .tst; then
3181 am__leading_dot=.
3182else
3183 am__leading_dot=_
3184fi
3185rmdir .tst 2>/dev/null
3186
3187# Check whether --enable-silent-rules was given.
3188if test ${enable_silent_rules+y}
3189then :
3190 enableval=$enable_silent_rules;
3191fi
3192
3193case $enable_silent_rules in # (((
3194 yes) AM_DEFAULT_VERBOSITY=0;;
3195 no) AM_DEFAULT_VERBOSITY=1;;
3196 *) AM_DEFAULT_VERBOSITY=1;;
3197esac
3198am_make=${MAKE-make}
3199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3200printf %s "checking whether $am_make supports nested variables... " >&6; }
3201if test ${am_cv_make_support_nested_variables+y}
3202then :
3203 printf %s "(cached) " >&6
3204else case e in #(
3205 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3206BAR0=false
3207BAR1=true
3208V=1
3209am__doit:
3210 @$(TRUE)
3211.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3212 am_cv_make_support_nested_variables=yes
3213else
3214 am_cv_make_support_nested_variables=no
3215fi ;;
3216esac
3217fi
3218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3219printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3220if test $am_cv_make_support_nested_variables = yes; then
3221 AM_V='$(V)'
3222 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3223else
3224 AM_V=$AM_DEFAULT_VERBOSITY
3225 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3226fi
3227AM_BACKSLASH='\'
3228
3229if test "`cd $srcdir && pwd`" != "`pwd`"; then
3230 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3231 # is not polluted with repeated "-I."
3232 am__isrc=' -I$(srcdir)'
3233 # test to see if srcdir already configured
3234 if test -f $srcdir/config.status; then
3235 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3236 fi
3237fi
3238
3239# test whether we have cygpath
3240if test -z "$CYGPATH_W"; then
3241 if (cygpath --version) >/dev/null 2>/dev/null; then
3242 CYGPATH_W='cygpath -w'
3243 else
3244 CYGPATH_W=echo
3245 fi
3246fi
3247
3248
3249# Define the identity of the package.
3250 PACKAGE='libpng'
3251 VERSION='1.6.43'
3252
3253
3254printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3255
3256
3257printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3258
3259# Some tools Automake needs.
3260
3261ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3262
3263
3264AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3265
3266
3267AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3268
3269
3270AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3271
3272
3273MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3274
3275# For better backward compatibility. To be removed once Automake 1.9.x
3276# dies out for good. For more background, see:
3277# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3278# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3279mkdir_p='$(MKDIR_P)'
3280
3281# We need awk for the "check" target (and possibly the TAP driver). The
3282# system "awk" is bad on some platforms.
3283# Always define AMTAR for backward compatibility. Yes, it's still used
3284# in the wild :-( We should find a proper way to deprecate it ...
3285AMTAR='$${TAR-tar}'
3286
3287
3288# We'll loop over all known methods to create a tar archive until one works.
3289_am_tools='gnutar pax cpio none'
3290
3291am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3292
3293
3294
3295
3296
3297# Variables for tags utilities; see am/tags.am
3298if test -z "$CTAGS"; then
3299 CTAGS=ctags
3300fi
3301
3302if test -z "$ETAGS"; then
3303 ETAGS=etags
3304fi
3305
3306if test -z "$CSCOPE"; then
3307 CSCOPE=cscope
3308fi
3309
3310
3311
3312# POSIX will say in a future version that running "rm -f" with no argument
3313# is OK; and we want to be able to make that assumption in our Makefile
3314# recipes. So use an aggressive probe to check that the usage we want is
3315# actually supported "in the wild" to an acceptable degree.
3316# See automake bug#10828.
3317# To make any issue more visible, cause the running configure to be aborted
3318# by default if the 'rm' program in use doesn't match our expectations; the
3319# user can still override this though.
3320if rm -f && rm -fr && rm -rf; then : OK; else
3321 cat >&2 <<'END'
3322Oops!
3323
3324Your 'rm' program seems unable to run without file operands specified
3325on the command line, even when the '-f' option is present. This is contrary
3326to the behaviour of most rm programs out there, and not conforming with
3327the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3328
3329Please tell bug-automake@gnu.org about your system, including the value
3330of your $PATH and any error possibly output before this message. This
3331can help us improve future automake versions.
3332
3333END
3334 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3335 echo 'Configuration will proceed anyway, since you have set the' >&2
3336 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3337 echo >&2
3338 else
3339 cat >&2 <<'END'
3340Aborting the configuration process, to ensure you take notice of the issue.
3341
3342You can download and install GNU coreutils to get an 'rm' implementation
3343that behaves properly: <https://www.gnu.org/software/coreutils/>.
3344
3345If you want to complete the configuration process using your problematic
3346'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3347to "yes", and re-run configure.
3348
3349END
3350 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3351 fi
3352fi
3353
3354# The following line causes --disable-maintainer-mode to be the default to
3355# configure. This is necessary because libpng distributions cannot rely on the
3356# time stamps of the autotools generated files being correct
3357
3358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3359printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3360 # Check whether --enable-maintainer-mode was given.
3361if test ${enable_maintainer_mode+y}
3362then :
3363 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3364else case e in #(
3365 e) USE_MAINTAINER_MODE=no ;;
3366esac
3367fi
3368
3369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3370printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3371 if test $USE_MAINTAINER_MODE = yes; then
3372 MAINTAINER_MODE_TRUE=
3373 MAINTAINER_MODE_FALSE='#'
3374else
3375 MAINTAINER_MODE_TRUE='#'
3376 MAINTAINER_MODE_FALSE=
3377fi
3378
3379 MAINT=$MAINTAINER_MODE_TRUE
3380
3381
3382
3383
3384PNGLIB_VERSION=1.6.43
3385PNGLIB_MAJOR=1
3386PNGLIB_MINOR=6
3387PNGLIB_RELEASE=43
3388
3389
3390
3391ac_config_headers="$ac_config_headers config.h"
3392
3393
3394# Check for basic programs.
3395ac_ext=c
3396ac_cpp='$CPP $CPPFLAGS'
3397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3399ac_compiler_gnu=$ac_cv_c_compiler_gnu
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410ac_ext=c
3411ac_cpp='$CPP $CPPFLAGS'
3412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3414ac_compiler_gnu=$ac_cv_c_compiler_gnu
3415if test -n "$ac_tool_prefix"; then
3416 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3417set dummy ${ac_tool_prefix}gcc; ac_word=$2
3418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3419printf %s "checking for $ac_word... " >&6; }
3420if test ${ac_cv_prog_CC+y}
3421then :
3422 printf %s "(cached) " >&6
3423else case e in #(
3424 e) if test -n "$CC"; then
3425 ac_cv_prog_CC="$CC" # Let the user override the test.
3426else
3427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428for as_dir in $PATH
3429do
3430 IFS=$as_save_IFS
3431 case $as_dir in #(((
3432 '') as_dir=./ ;;
3433 */) ;;
3434 *) as_dir=$as_dir/ ;;
3435 esac
3436 for ac_exec_ext in '' $ac_executable_extensions; do
3437 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3438 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3440 break 2
3441 fi
3442done
3443 done
3444IFS=$as_save_IFS
3445
3446fi ;;
3447esac
3448fi
3449CC=$ac_cv_prog_CC
3450if test -n "$CC"; then
3451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3452printf "%s\n" "$CC" >&6; }
3453else
3454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3455printf "%s\n" "no" >&6; }
3456fi
3457
3458
3459fi
3460if test -z "$ac_cv_prog_CC"; then
3461 ac_ct_CC=$CC
3462 # Extract the first word of "gcc", so it can be a program name with args.
3463set dummy gcc; ac_word=$2
3464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3465printf %s "checking for $ac_word... " >&6; }
3466if test ${ac_cv_prog_ac_ct_CC+y}
3467then :
3468 printf %s "(cached) " >&6
3469else case e in #(
3470 e) if test -n "$ac_ct_CC"; then
3471 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3472else
3473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474for as_dir in $PATH
3475do
3476 IFS=$as_save_IFS
3477 case $as_dir in #(((
3478 '') as_dir=./ ;;
3479 */) ;;
3480 *) as_dir=$as_dir/ ;;
3481 esac
3482 for ac_exec_ext in '' $ac_executable_extensions; do
3483 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3484 ac_cv_prog_ac_ct_CC="gcc"
3485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3486 break 2
3487 fi
3488done
3489 done
3490IFS=$as_save_IFS
3491
3492fi ;;
3493esac
3494fi
3495ac_ct_CC=$ac_cv_prog_ac_ct_CC
3496if test -n "$ac_ct_CC"; then
3497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3498printf "%s\n" "$ac_ct_CC" >&6; }
3499else
3500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501printf "%s\n" "no" >&6; }
3502fi
3503
3504 if test "x$ac_ct_CC" = x; then
3505 CC=""
3506 else
3507 case $cross_compiling:$ac_tool_warned in
3508yes:)
3509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3510printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3511ac_tool_warned=yes ;;
3512esac
3513 CC=$ac_ct_CC
3514 fi
3515else
3516 CC="$ac_cv_prog_CC"
3517fi
3518
3519if test -z "$CC"; then
3520 if test -n "$ac_tool_prefix"; then
3521 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3522set dummy ${ac_tool_prefix}cc; ac_word=$2
3523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3524printf %s "checking for $ac_word... " >&6; }
3525if test ${ac_cv_prog_CC+y}
3526then :
3527 printf %s "(cached) " >&6
3528else case e in #(
3529 e) if test -n "$CC"; then
3530 ac_cv_prog_CC="$CC" # Let the user override the test.
3531else
3532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533for as_dir in $PATH
3534do
3535 IFS=$as_save_IFS
3536 case $as_dir in #(((
3537 '') as_dir=./ ;;
3538 */) ;;
3539 *) as_dir=$as_dir/ ;;
3540 esac
3541 for ac_exec_ext in '' $ac_executable_extensions; do
3542 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3543 ac_cv_prog_CC="${ac_tool_prefix}cc"
3544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3545 break 2
3546 fi
3547done
3548 done
3549IFS=$as_save_IFS
3550
3551fi ;;
3552esac
3553fi
3554CC=$ac_cv_prog_CC
3555if test -n "$CC"; then
3556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3557printf "%s\n" "$CC" >&6; }
3558else
3559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3560printf "%s\n" "no" >&6; }
3561fi
3562
3563
3564 fi
3565fi
3566if test -z "$CC"; then
3567 # Extract the first word of "cc", so it can be a program name with args.
3568set dummy cc; ac_word=$2
3569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3570printf %s "checking for $ac_word... " >&6; }
3571if test ${ac_cv_prog_CC+y}
3572then :
3573 printf %s "(cached) " >&6
3574else case e in #(
3575 e) if test -n "$CC"; then
3576 ac_cv_prog_CC="$CC" # Let the user override the test.
3577else
3578 ac_prog_rejected=no
3579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580for as_dir in $PATH
3581do
3582 IFS=$as_save_IFS
3583 case $as_dir in #(((
3584 '') as_dir=./ ;;
3585 */) ;;
3586 *) as_dir=$as_dir/ ;;
3587 esac
3588 for ac_exec_ext in '' $ac_executable_extensions; do
3589 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3590 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3591 ac_prog_rejected=yes
3592 continue
3593 fi
3594 ac_cv_prog_CC="cc"
3595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3596 break 2
3597 fi
3598done
3599 done
3600IFS=$as_save_IFS
3601
3602if test $ac_prog_rejected = yes; then
3603 # We found a bogon in the path, so make sure we never use it.
3604 set dummy $ac_cv_prog_CC
3605 shift
3606 if test $# != 0; then
3607 # We chose a different compiler from the bogus one.
3608 # However, it has the same basename, so the bogon will be chosen
3609 # first if we set CC to just the basename; use the full file name.
3610 shift
3611 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3612 fi
3613fi
3614fi ;;
3615esac
3616fi
3617CC=$ac_cv_prog_CC
3618if test -n "$CC"; then
3619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3620printf "%s\n" "$CC" >&6; }
3621else
3622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3623printf "%s\n" "no" >&6; }
3624fi
3625
3626
3627fi
3628if test -z "$CC"; then
3629 if test -n "$ac_tool_prefix"; then
3630 for ac_prog in cl.exe
3631 do
3632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3633set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3635printf %s "checking for $ac_word... " >&6; }
3636if test ${ac_cv_prog_CC+y}
3637then :
3638 printf %s "(cached) " >&6
3639else case e in #(
3640 e) if test -n "$CC"; then
3641 ac_cv_prog_CC="$CC" # Let the user override the test.
3642else
3643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644for as_dir in $PATH
3645do
3646 IFS=$as_save_IFS
3647 case $as_dir in #(((
3648 '') as_dir=./ ;;
3649 */) ;;
3650 *) as_dir=$as_dir/ ;;
3651 esac
3652 for ac_exec_ext in '' $ac_executable_extensions; do
3653 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3654 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3656 break 2
3657 fi
3658done
3659 done
3660IFS=$as_save_IFS
3661
3662fi ;;
3663esac
3664fi
3665CC=$ac_cv_prog_CC
3666if test -n "$CC"; then
3667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3668printf "%s\n" "$CC" >&6; }
3669else
3670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3671printf "%s\n" "no" >&6; }
3672fi
3673
3674
3675 test -n "$CC" && break
3676 done
3677fi
3678if test -z "$CC"; then
3679 ac_ct_CC=$CC
3680 for ac_prog in cl.exe
3681do
3682 # Extract the first word of "$ac_prog", so it can be a program name with args.
3683set dummy $ac_prog; ac_word=$2
3684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3685printf %s "checking for $ac_word... " >&6; }
3686if test ${ac_cv_prog_ac_ct_CC+y}
3687then :
3688 printf %s "(cached) " >&6
3689else case e in #(
3690 e) if test -n "$ac_ct_CC"; then
3691 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3692else
3693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694for as_dir in $PATH
3695do
3696 IFS=$as_save_IFS
3697 case $as_dir in #(((
3698 '') as_dir=./ ;;
3699 */) ;;
3700 *) as_dir=$as_dir/ ;;
3701 esac
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3704 ac_cv_prog_ac_ct_CC="$ac_prog"
3705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3706 break 2
3707 fi
3708done
3709 done
3710IFS=$as_save_IFS
3711
3712fi ;;
3713esac
3714fi
3715ac_ct_CC=$ac_cv_prog_ac_ct_CC
3716if test -n "$ac_ct_CC"; then
3717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3718printf "%s\n" "$ac_ct_CC" >&6; }
3719else
3720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3721printf "%s\n" "no" >&6; }
3722fi
3723
3724
3725 test -n "$ac_ct_CC" && break
3726done
3727
3728 if test "x$ac_ct_CC" = x; then
3729 CC=""
3730 else
3731 case $cross_compiling:$ac_tool_warned in
3732yes:)
3733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3734printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3735ac_tool_warned=yes ;;
3736esac
3737 CC=$ac_ct_CC
3738 fi
3739fi
3740
3741fi
3742if test -z "$CC"; then
3743 if test -n "$ac_tool_prefix"; then
3744 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3745set dummy ${ac_tool_prefix}clang; ac_word=$2
3746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3747printf %s "checking for $ac_word... " >&6; }
3748if test ${ac_cv_prog_CC+y}
3749then :
3750 printf %s "(cached) " >&6
3751else case e in #(
3752 e) if test -n "$CC"; then
3753 ac_cv_prog_CC="$CC" # Let the user override the test.
3754else
3755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756for as_dir in $PATH
3757do
3758 IFS=$as_save_IFS
3759 case $as_dir in #(((
3760 '') as_dir=./ ;;
3761 */) ;;
3762 *) as_dir=$as_dir/ ;;
3763 esac
3764 for ac_exec_ext in '' $ac_executable_extensions; do
3765 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3766 ac_cv_prog_CC="${ac_tool_prefix}clang"
3767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3768 break 2
3769 fi
3770done
3771 done
3772IFS=$as_save_IFS
3773
3774fi ;;
3775esac
3776fi
3777CC=$ac_cv_prog_CC
3778if test -n "$CC"; then
3779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3780printf "%s\n" "$CC" >&6; }
3781else
3782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3783printf "%s\n" "no" >&6; }
3784fi
3785
3786
3787fi
3788if test -z "$ac_cv_prog_CC"; then
3789 ac_ct_CC=$CC
3790 # Extract the first word of "clang", so it can be a program name with args.
3791set dummy clang; ac_word=$2
3792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3793printf %s "checking for $ac_word... " >&6; }
3794if test ${ac_cv_prog_ac_ct_CC+y}
3795then :
3796 printf %s "(cached) " >&6
3797else case e in #(
3798 e) if test -n "$ac_ct_CC"; then
3799 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3800else
3801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802for as_dir in $PATH
3803do
3804 IFS=$as_save_IFS
3805 case $as_dir in #(((
3806 '') as_dir=./ ;;
3807 */) ;;
3808 *) as_dir=$as_dir/ ;;
3809 esac
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3812 ac_cv_prog_ac_ct_CC="clang"
3813 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3814 break 2
3815 fi
3816done
3817 done
3818IFS=$as_save_IFS
3819
3820fi ;;
3821esac
3822fi
3823ac_ct_CC=$ac_cv_prog_ac_ct_CC
3824if test -n "$ac_ct_CC"; then
3825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3826printf "%s\n" "$ac_ct_CC" >&6; }
3827else
3828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3829printf "%s\n" "no" >&6; }
3830fi
3831
3832 if test "x$ac_ct_CC" = x; then
3833 CC=""
3834 else
3835 case $cross_compiling:$ac_tool_warned in
3836yes:)
3837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3838printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3839ac_tool_warned=yes ;;
3840esac
3841 CC=$ac_ct_CC
3842 fi
3843else
3844 CC="$ac_cv_prog_CC"
3845fi
3846
3847fi
3848
3849
3850test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3851printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3852as_fn_error $? "no acceptable C compiler found in \$PATH
3853See 'config.log' for more details" "$LINENO" 5; }
3854
3855# Provide some information about the compiler.
3856printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3857set X $ac_compile
3858ac_compiler=$2
3859for ac_option in --version -v -V -qversion -version; do
3860 { { ac_try="$ac_compiler $ac_option >&5"
3861case "(($ac_try" in
3862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863 *) ac_try_echo=$ac_try;;
3864esac
3865eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3866printf "%s\n" "$ac_try_echo"; } >&5
3867 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3868 ac_status=$?
3869 if test -s conftest.err; then
3870 sed '10a\
3871... rest of stderr output deleted ...
3872 10q' conftest.err >conftest.er1
3873 cat conftest.er1 >&5
3874 fi
3875 rm -f conftest.er1 conftest.err
3876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3877 test $ac_status = 0; }
3878done
3879
3880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881/* end confdefs.h. */
3882
3883int
3884main (void)
3885{
3886
3887 ;
3888 return 0;
3889}
3890_ACEOF
3891ac_clean_files_save=$ac_clean_files
3892ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3893# Try to create an executable without -o first, disregard a.out.
3894# It will help us diagnose broken compilers, and finding out an intuition
3895# of exeext.
3896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3897printf %s "checking whether the C compiler works... " >&6; }
3898ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3899
3900# The possible output files:
3901ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3902
3903ac_rmfiles=
3904for ac_file in $ac_files
3905do
3906 case $ac_file in
3907 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3908 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3909 esac
3910done
3911rm -f $ac_rmfiles
3912
3913if { { ac_try="$ac_link_default"
3914case "(($ac_try" in
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3917esac
3918eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3919printf "%s\n" "$ac_try_echo"; } >&5
3920 (eval "$ac_link_default") 2>&5
3921 ac_status=$?
3922 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3923 test $ac_status = 0; }
3924then :
3925 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3926# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3927# in a Makefile. We should not override ac_cv_exeext if it was cached,
3928# so that the user can short-circuit this test for compilers unknown to
3929# Autoconf.
3930for ac_file in $ac_files ''
3931do
3932 test -f "$ac_file" || continue
3933 case $ac_file in
3934 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3935 ;;
3936 [ab].out )
3937 # We found the default executable, but exeext='' is most
3938 # certainly right.
3939 break;;
3940 *.* )
3941 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3942 then :; else
3943 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3944 fi
3945 # We set ac_cv_exeext here because the later test for it is not
3946 # safe: cross compilers may not add the suffix if given an '-o'
3947 # argument, so we may need to know it at that point already.
3948 # Even if this section looks crufty: it has the advantage of
3949 # actually working.
3950 break;;
3951 * )
3952 break;;
3953 esac
3954done
3955test "$ac_cv_exeext" = no && ac_cv_exeext=
3956
3957else case e in #(
3958 e) ac_file='' ;;
3959esac
3960fi
3961if test -z "$ac_file"
3962then :
3963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3964printf "%s\n" "no" >&6; }
3965printf "%s\n" "$as_me: failed program was:" >&5
3966sed 's/^/| /' conftest.$ac_ext >&5
3967
3968{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3969printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3970as_fn_error 77 "C compiler cannot create executables
3971See 'config.log' for more details" "$LINENO" 5; }
3972else case e in #(
3973 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3974printf "%s\n" "yes" >&6; } ;;
3975esac
3976fi
3977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3978printf %s "checking for C compiler default output file name... " >&6; }
3979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3980printf "%s\n" "$ac_file" >&6; }
3981ac_exeext=$ac_cv_exeext
3982
3983rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3984ac_clean_files=$ac_clean_files_save
3985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3986printf %s "checking for suffix of executables... " >&6; }
3987if { { ac_try="$ac_link"
3988case "(($ac_try" in
3989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990 *) ac_try_echo=$ac_try;;
3991esac
3992eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3993printf "%s\n" "$ac_try_echo"; } >&5
3994 (eval "$ac_link") 2>&5
3995 ac_status=$?
3996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3997 test $ac_status = 0; }
3998then :
3999 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4000# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4001# work properly (i.e., refer to 'conftest.exe'), while it won't with
4002# 'rm'.
4003for ac_file in conftest.exe conftest conftest.*; do
4004 test -f "$ac_file" || continue
4005 case $ac_file in
4006 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4007 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4008 break;;
4009 * ) break;;
4010 esac
4011done
4012else case e in #(
4013 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4014printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4015as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4016See 'config.log' for more details" "$LINENO" 5; } ;;
4017esac
4018fi
4019rm -f conftest conftest$ac_cv_exeext
4020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4021printf "%s\n" "$ac_cv_exeext" >&6; }
4022
4023rm -f conftest.$ac_ext
4024EXEEXT=$ac_cv_exeext
4025ac_exeext=$EXEEXT
4026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027/* end confdefs.h. */
4028#include <stdio.h>
4029int
4030main (void)
4031{
4032FILE *f = fopen ("conftest.out", "w");
4033 if (!f)
4034 return 1;
4035 return ferror (f) || fclose (f) != 0;
4036
4037 ;
4038 return 0;
4039}
4040_ACEOF
4041ac_clean_files="$ac_clean_files conftest.out"
4042# Check that the compiler produces executables we can run. If not, either
4043# the compiler is broken, or we cross compile.
4044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4045printf %s "checking whether we are cross compiling... " >&6; }
4046if test "$cross_compiling" != yes; then
4047 { { ac_try="$ac_link"
4048case "(($ac_try" in
4049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050 *) ac_try_echo=$ac_try;;
4051esac
4052eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4053printf "%s\n" "$ac_try_echo"; } >&5
4054 (eval "$ac_link") 2>&5
4055 ac_status=$?
4056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4057 test $ac_status = 0; }
4058 if { ac_try='./conftest$ac_cv_exeext'
4059 { { case "(($ac_try" in
4060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061 *) ac_try_echo=$ac_try;;
4062esac
4063eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4064printf "%s\n" "$ac_try_echo"; } >&5
4065 (eval "$ac_try") 2>&5
4066 ac_status=$?
4067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4068 test $ac_status = 0; }; }; then
4069 cross_compiling=no
4070 else
4071 if test "$cross_compiling" = maybe; then
4072 cross_compiling=yes
4073 else
4074 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4075printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4076as_fn_error 77 "cannot run C compiled programs.
4077If you meant to cross compile, use '--host'.
4078See 'config.log' for more details" "$LINENO" 5; }
4079 fi
4080 fi
4081fi
4082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4083printf "%s\n" "$cross_compiling" >&6; }
4084
4085rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4086 conftest.o conftest.obj conftest.out
4087ac_clean_files=$ac_clean_files_save
4088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4089printf %s "checking for suffix of object files... " >&6; }
4090if test ${ac_cv_objext+y}
4091then :
4092 printf %s "(cached) " >&6
4093else case e in #(
4094 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095/* end confdefs.h. */
4096
4097int
4098main (void)
4099{
4100
4101 ;
4102 return 0;
4103}
4104_ACEOF
4105rm -f conftest.o conftest.obj
4106if { { ac_try="$ac_compile"
4107case "(($ac_try" in
4108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4109 *) ac_try_echo=$ac_try;;
4110esac
4111eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4112printf "%s\n" "$ac_try_echo"; } >&5
4113 (eval "$ac_compile") 2>&5
4114 ac_status=$?
4115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4116 test $ac_status = 0; }
4117then :
4118 for ac_file in conftest.o conftest.obj conftest.*; do
4119 test -f "$ac_file" || continue;
4120 case $ac_file in
4121 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4122 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4123 break;;
4124 esac
4125done
4126else case e in #(
4127 e) printf "%s\n" "$as_me: failed program was:" >&5
4128sed 's/^/| /' conftest.$ac_ext >&5
4129
4130{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4131printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4132as_fn_error $? "cannot compute suffix of object files: cannot compile
4133See 'config.log' for more details" "$LINENO" 5; } ;;
4134esac
4135fi
4136rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4137esac
4138fi
4139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4140printf "%s\n" "$ac_cv_objext" >&6; }
4141OBJEXT=$ac_cv_objext
4142ac_objext=$OBJEXT
4143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4144printf %s "checking whether the compiler supports GNU C... " >&6; }
4145if test ${ac_cv_c_compiler_gnu+y}
4146then :
4147 printf %s "(cached) " >&6
4148else case e in #(
4149 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150/* end confdefs.h. */
4151
4152int
4153main (void)
4154{
4155#ifndef __GNUC__
4156 choke me
4157#endif
4158
4159 ;
4160 return 0;
4161}
4162_ACEOF
4163if ac_fn_c_try_compile "$LINENO"
4164then :
4165 ac_compiler_gnu=yes
4166else case e in #(
4167 e) ac_compiler_gnu=no ;;
4168esac
4169fi
4170rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4171ac_cv_c_compiler_gnu=$ac_compiler_gnu
4172 ;;
4173esac
4174fi
4175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4176printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4177ac_compiler_gnu=$ac_cv_c_compiler_gnu
4178
4179if test $ac_compiler_gnu = yes; then
4180 GCC=yes
4181else
4182 GCC=
4183fi
4184ac_test_CFLAGS=${CFLAGS+y}
4185ac_save_CFLAGS=$CFLAGS
4186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4187printf %s "checking whether $CC accepts -g... " >&6; }
4188if test ${ac_cv_prog_cc_g+y}
4189then :
4190 printf %s "(cached) " >&6
4191else case e in #(
4192 e) ac_save_c_werror_flag=$ac_c_werror_flag
4193 ac_c_werror_flag=yes
4194 ac_cv_prog_cc_g=no
4195 CFLAGS="-g"
4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197/* end confdefs.h. */
4198
4199int
4200main (void)
4201{
4202
4203 ;
4204 return 0;
4205}
4206_ACEOF
4207if ac_fn_c_try_compile "$LINENO"
4208then :
4209 ac_cv_prog_cc_g=yes
4210else case e in #(
4211 e) CFLAGS=""
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213/* end confdefs.h. */
4214
4215int
4216main (void)
4217{
4218
4219 ;
4220 return 0;
4221}
4222_ACEOF
4223if ac_fn_c_try_compile "$LINENO"
4224then :
4225
4226else case e in #(
4227 e) ac_c_werror_flag=$ac_save_c_werror_flag
4228 CFLAGS="-g"
4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230/* end confdefs.h. */
4231
4232int
4233main (void)
4234{
4235
4236 ;
4237 return 0;
4238}
4239_ACEOF
4240if ac_fn_c_try_compile "$LINENO"
4241then :
4242 ac_cv_prog_cc_g=yes
4243fi
4244rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4245esac
4246fi
4247rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4248esac
4249fi
4250rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4251 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4252esac
4253fi
4254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4255printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4256if test $ac_test_CFLAGS; then
4257 CFLAGS=$ac_save_CFLAGS
4258elif test $ac_cv_prog_cc_g = yes; then
4259 if test "$GCC" = yes; then
4260 CFLAGS="-g -O2"
4261 else
4262 CFLAGS="-g"
4263 fi
4264else
4265 if test "$GCC" = yes; then
4266 CFLAGS="-O2"
4267 else
4268 CFLAGS=
4269 fi
4270fi
4271ac_prog_cc_stdc=no
4272if test x$ac_prog_cc_stdc = xno
4273then :
4274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4275printf %s "checking for $CC option to enable C11 features... " >&6; }
4276if test ${ac_cv_prog_cc_c11+y}
4277then :
4278 printf %s "(cached) " >&6
4279else case e in #(
4280 e) ac_cv_prog_cc_c11=no
4281ac_save_CC=$CC
4282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283/* end confdefs.h. */
4284$ac_c_conftest_c11_program
4285_ACEOF
4286for ac_arg in '' -std=gnu11
4287do
4288 CC="$ac_save_CC $ac_arg"
4289 if ac_fn_c_try_compile "$LINENO"
4290then :
4291 ac_cv_prog_cc_c11=$ac_arg
4292fi
4293rm -f core conftest.err conftest.$ac_objext conftest.beam
4294 test "x$ac_cv_prog_cc_c11" != "xno" && break
4295done
4296rm -f conftest.$ac_ext
4297CC=$ac_save_CC ;;
4298esac
4299fi
4300
4301if test "x$ac_cv_prog_cc_c11" = xno
4302then :
4303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4304printf "%s\n" "unsupported" >&6; }
4305else case e in #(
4306 e) if test "x$ac_cv_prog_cc_c11" = x
4307then :
4308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4309printf "%s\n" "none needed" >&6; }
4310else case e in #(
4311 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4312printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4313 CC="$CC $ac_cv_prog_cc_c11" ;;
4314esac
4315fi
4316 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4317 ac_prog_cc_stdc=c11 ;;
4318esac
4319fi
4320fi
4321if test x$ac_prog_cc_stdc = xno
4322then :
4323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4324printf %s "checking for $CC option to enable C99 features... " >&6; }
4325if test ${ac_cv_prog_cc_c99+y}
4326then :
4327 printf %s "(cached) " >&6
4328else case e in #(
4329 e) ac_cv_prog_cc_c99=no
4330ac_save_CC=$CC
4331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332/* end confdefs.h. */
4333$ac_c_conftest_c99_program
4334_ACEOF
4335for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4336do
4337 CC="$ac_save_CC $ac_arg"
4338 if ac_fn_c_try_compile "$LINENO"
4339then :
4340 ac_cv_prog_cc_c99=$ac_arg
4341fi
4342rm -f core conftest.err conftest.$ac_objext conftest.beam
4343 test "x$ac_cv_prog_cc_c99" != "xno" && break
4344done
4345rm -f conftest.$ac_ext
4346CC=$ac_save_CC ;;
4347esac
4348fi
4349
4350if test "x$ac_cv_prog_cc_c99" = xno
4351then :
4352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4353printf "%s\n" "unsupported" >&6; }
4354else case e in #(
4355 e) if test "x$ac_cv_prog_cc_c99" = x
4356then :
4357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4358printf "%s\n" "none needed" >&6; }
4359else case e in #(
4360 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4361printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4362 CC="$CC $ac_cv_prog_cc_c99" ;;
4363esac
4364fi
4365 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4366 ac_prog_cc_stdc=c99 ;;
4367esac
4368fi
4369fi
4370if test x$ac_prog_cc_stdc = xno
4371then :
4372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4373printf %s "checking for $CC option to enable C89 features... " >&6; }
4374if test ${ac_cv_prog_cc_c89+y}
4375then :
4376 printf %s "(cached) " >&6
4377else case e in #(
4378 e) ac_cv_prog_cc_c89=no
4379ac_save_CC=$CC
4380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381/* end confdefs.h. */
4382$ac_c_conftest_c89_program
4383_ACEOF
4384for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4385do
4386 CC="$ac_save_CC $ac_arg"
4387 if ac_fn_c_try_compile "$LINENO"
4388then :
4389 ac_cv_prog_cc_c89=$ac_arg
4390fi
4391rm -f core conftest.err conftest.$ac_objext conftest.beam
4392 test "x$ac_cv_prog_cc_c89" != "xno" && break
4393done
4394rm -f conftest.$ac_ext
4395CC=$ac_save_CC ;;
4396esac
4397fi
4398
4399if test "x$ac_cv_prog_cc_c89" = xno
4400then :
4401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4402printf "%s\n" "unsupported" >&6; }
4403else case e in #(
4404 e) if test "x$ac_cv_prog_cc_c89" = x
4405then :
4406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4407printf "%s\n" "none needed" >&6; }
4408else case e in #(
4409 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4410printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4411 CC="$CC $ac_cv_prog_cc_c89" ;;
4412esac
4413fi
4414 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4415 ac_prog_cc_stdc=c89 ;;
4416esac
4417fi
4418fi
4419
4420ac_ext=c
4421ac_cpp='$CPP $CPPFLAGS'
4422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4424ac_compiler_gnu=$ac_cv_c_compiler_gnu
4425
4426
4427 ac_ext=c
4428ac_cpp='$CPP $CPPFLAGS'
4429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4431ac_compiler_gnu=$ac_cv_c_compiler_gnu
4432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4433printf %s "checking whether $CC understands -c and -o together... " >&6; }
4434if test ${am_cv_prog_cc_c_o+y}
4435then :
4436 printf %s "(cached) " >&6
4437else case e in #(
4438 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439/* end confdefs.h. */
4440
4441int
4442main (void)
4443{
4444
4445 ;
4446 return 0;
4447}
4448_ACEOF
4449 # Make sure it works both with $CC and with simple cc.
4450 # Following AC_PROG_CC_C_O, we do the test twice because some
4451 # compilers refuse to overwrite an existing .o file with -o,
4452 # though they will create one.
4453 am_cv_prog_cc_c_o=yes
4454 for am_i in 1 2; do
4455 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4456 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4457 ac_status=$?
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); } \
4460 && test -f conftest2.$ac_objext; then
4461 : OK
4462 else
4463 am_cv_prog_cc_c_o=no
4464 break
4465 fi
4466 done
4467 rm -f core conftest*
4468 unset am_i ;;
4469esac
4470fi
4471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4472printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4473if test "$am_cv_prog_cc_c_o" != yes; then
4474 # Losing compiler, so override with the script.
4475 # FIXME: It is wrong to rewrite CC.
4476 # But if we don't then we get into trouble of one sort or another.
4477 # A longer-term fix would be to have automake use am__CC in this case,
4478 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4479 CC="$am_aux_dir/compile $CC"
4480fi
4481ac_ext=c
4482ac_cpp='$CPP $CPPFLAGS'
4483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4485ac_compiler_gnu=$ac_cv_c_compiler_gnu
4486
4487DEPDIR="${am__leading_dot}deps"
4488
4489ac_config_commands="$ac_config_commands depfiles"
4490
4491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4492printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4493cat > confinc.mk << 'END'
4494am__doit:
4495 @echo this is the am__doit target >confinc.out
4496.PHONY: am__doit
4497END
4498am__include="#"
4499am__quote=
4500# BSD make does it like this.
4501echo '.include "confinc.mk" # ignored' > confmf.BSD
4502# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4503echo 'include confinc.mk # ignored' > confmf.GNU
4504_am_result=no
4505for s in GNU BSD; do
4506 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4507 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4508 ac_status=$?
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }
4511 case $?:`cat confinc.out 2>/dev/null` in #(
4512 '0:this is the am__doit target') :
4513 case $s in #(
4514 BSD) :
4515 am__include='.include' am__quote='"' ;; #(
4516 *) :
4517 am__include='include' am__quote='' ;;
4518esac ;; #(
4519 *) :
4520 ;;
4521esac
4522 if test "$am__include" != "#"; then
4523 _am_result="yes ($s style)"
4524 break
4525 fi
4526done
4527rm -f confinc.* confmf.*
4528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4529printf "%s\n" "${_am_result}" >&6; }
4530
4531# Check whether --enable-dependency-tracking was given.
4532if test ${enable_dependency_tracking+y}
4533then :
4534 enableval=$enable_dependency_tracking;
4535fi
4536
4537if test "x$enable_dependency_tracking" != xno; then
4538 am_depcomp="$ac_aux_dir/depcomp"
4539 AMDEPBACKSLASH='\'
4540 am__nodep='_no'
4541fi
4542 if test "x$enable_dependency_tracking" != xno; then
4543 AMDEP_TRUE=
4544 AMDEP_FALSE='#'
4545else
4546 AMDEP_TRUE='#'
4547 AMDEP_FALSE=
4548fi
4549
4550
4551
4552depcc="$CC" am_compiler_list=
4553
4554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4555printf %s "checking dependency style of $depcc... " >&6; }
4556if test ${am_cv_CC_dependencies_compiler_type+y}
4557then :
4558 printf %s "(cached) " >&6
4559else case e in #(
4560 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4561 # We make a subdir and do the tests there. Otherwise we can end up
4562 # making bogus files that we don't know about and never remove. For
4563 # instance it was reported that on HP-UX the gcc test will end up
4564 # making a dummy file named 'D' -- because '-MD' means "put the output
4565 # in D".
4566 rm -rf conftest.dir
4567 mkdir conftest.dir
4568 # Copy depcomp to subdir because otherwise we won't find it if we're
4569 # using a relative directory.
4570 cp "$am_depcomp" conftest.dir
4571 cd conftest.dir
4572 # We will build objects and dependencies in a subdirectory because
4573 # it helps to detect inapplicable dependency modes. For instance
4574 # both Tru64's cc and ICC support -MD to output dependencies as a
4575 # side effect of compilation, but ICC will put the dependencies in
4576 # the current directory while Tru64 will put them in the object
4577 # directory.
4578 mkdir sub
4579
4580 am_cv_CC_dependencies_compiler_type=none
4581 if test "$am_compiler_list" = ""; then
4582 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4583 fi
4584 am__universal=false
4585 case " $depcc " in #(
4586 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4587 esac
4588
4589 for depmode in $am_compiler_list; do
4590 # Setup a source with many dependencies, because some compilers
4591 # like to wrap large dependency lists on column 80 (with \), and
4592 # we should not choose a depcomp mode which is confused by this.
4593 #
4594 # We need to recreate these files for each test, as the compiler may
4595 # overwrite some of them when testing with obscure command lines.
4596 # This happens at least with the AIX C compiler.
4597 : > sub/conftest.c
4598 for i in 1 2 3 4 5 6; do
4599 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4600 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4601 # Solaris 10 /bin/sh.
4602 echo '/* dummy */' > sub/conftst$i.h
4603 done
4604 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4605
4606 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4607 # mode. It turns out that the SunPro C++ compiler does not properly
4608 # handle '-M -o', and we need to detect this. Also, some Intel
4609 # versions had trouble with output in subdirs.
4610 am__obj=sub/conftest.${OBJEXT-o}
4611 am__minus_obj="-o $am__obj"
4612 case $depmode in
4613 gcc)
4614 # This depmode causes a compiler race in universal mode.
4615 test "$am__universal" = false || continue
4616 ;;
4617 nosideeffect)
4618 # After this tag, mechanisms are not by side-effect, so they'll
4619 # only be used when explicitly requested.
4620 if test "x$enable_dependency_tracking" = xyes; then
4621 continue
4622 else
4623 break
4624 fi
4625 ;;
4626 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4627 # This compiler won't grok '-c -o', but also, the minuso test has
4628 # not run yet. These depmodes are late enough in the game, and
4629 # so weak that their functioning should not be impacted.
4630 am__obj=conftest.${OBJEXT-o}
4631 am__minus_obj=
4632 ;;
4633 none) break ;;
4634 esac
4635 if depmode=$depmode \
4636 source=sub/conftest.c object=$am__obj \
4637 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4638 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4639 >/dev/null 2>conftest.err &&
4640 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4641 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4642 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4643 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4644 # icc doesn't choke on unknown options, it will just issue warnings
4645 # or remarks (even with -Werror). So we grep stderr for any message
4646 # that says an option was ignored or not supported.
4647 # When given -MP, icc 7.0 and 7.1 complain thusly:
4648 # icc: Command line warning: ignoring option '-M'; no argument required
4649 # The diagnosis changed in icc 8.0:
4650 # icc: Command line remark: option '-MP' not supported
4651 if (grep 'ignoring option' conftest.err ||
4652 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4653 am_cv_CC_dependencies_compiler_type=$depmode
4654 break
4655 fi
4656 fi
4657 done
4658
4659 cd ..
4660 rm -rf conftest.dir
4661else
4662 am_cv_CC_dependencies_compiler_type=none
4663fi
4664 ;;
4665esac
4666fi
4667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4668printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4669CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4670
4671 if
4672 test "x$enable_dependency_tracking" != xno \
4673 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4674 am__fastdepCC_TRUE=
4675 am__fastdepCC_FALSE='#'
4676else
4677 am__fastdepCC_TRUE='#'
4678 am__fastdepCC_FALSE=
4679fi
4680
4681
4682# By default we simply use the C compiler to build assembly code.
4683
4684test "${CCAS+set}" = set || CCAS=$CC
4685test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4686
4687
4688
4689depcc="$CCAS" am_compiler_list=
4690
4691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4692printf %s "checking dependency style of $depcc... " >&6; }
4693if test ${am_cv_CCAS_dependencies_compiler_type+y}
4694then :
4695 printf %s "(cached) " >&6
4696else case e in #(
4697 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4698 # We make a subdir and do the tests there. Otherwise we can end up
4699 # making bogus files that we don't know about and never remove. For
4700 # instance it was reported that on HP-UX the gcc test will end up
4701 # making a dummy file named 'D' -- because '-MD' means "put the output
4702 # in D".
4703 rm -rf conftest.dir
4704 mkdir conftest.dir
4705 # Copy depcomp to subdir because otherwise we won't find it if we're
4706 # using a relative directory.
4707 cp "$am_depcomp" conftest.dir
4708 cd conftest.dir
4709 # We will build objects and dependencies in a subdirectory because
4710 # it helps to detect inapplicable dependency modes. For instance
4711 # both Tru64's cc and ICC support -MD to output dependencies as a
4712 # side effect of compilation, but ICC will put the dependencies in
4713 # the current directory while Tru64 will put them in the object
4714 # directory.
4715 mkdir sub
4716
4717 am_cv_CCAS_dependencies_compiler_type=none
4718 if test "$am_compiler_list" = ""; then
4719 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4720 fi
4721 am__universal=false
4722
4723
4724 for depmode in $am_compiler_list; do
4725 # Setup a source with many dependencies, because some compilers
4726 # like to wrap large dependency lists on column 80 (with \), and
4727 # we should not choose a depcomp mode which is confused by this.
4728 #
4729 # We need to recreate these files for each test, as the compiler may
4730 # overwrite some of them when testing with obscure command lines.
4731 # This happens at least with the AIX C compiler.
4732 : > sub/conftest.c
4733 for i in 1 2 3 4 5 6; do
4734 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4735 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4736 # Solaris 10 /bin/sh.
4737 echo '/* dummy */' > sub/conftst$i.h
4738 done
4739 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4740
4741 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4742 # mode. It turns out that the SunPro C++ compiler does not properly
4743 # handle '-M -o', and we need to detect this. Also, some Intel
4744 # versions had trouble with output in subdirs.
4745 am__obj=sub/conftest.${OBJEXT-o}
4746 am__minus_obj="-o $am__obj"
4747 case $depmode in
4748 gcc)
4749 # This depmode causes a compiler race in universal mode.
4750 test "$am__universal" = false || continue
4751 ;;
4752 nosideeffect)
4753 # After this tag, mechanisms are not by side-effect, so they'll
4754 # only be used when explicitly requested.
4755 if test "x$enable_dependency_tracking" = xyes; then
4756 continue
4757 else
4758 break
4759 fi
4760 ;;
4761 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4762 # This compiler won't grok '-c -o', but also, the minuso test has
4763 # not run yet. These depmodes are late enough in the game, and
4764 # so weak that their functioning should not be impacted.
4765 am__obj=conftest.${OBJEXT-o}
4766 am__minus_obj=
4767 ;;
4768 none) break ;;
4769 esac
4770 if depmode=$depmode \
4771 source=sub/conftest.c object=$am__obj \
4772 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4773 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4774 >/dev/null 2>conftest.err &&
4775 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4776 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4777 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4778 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4779 # icc doesn't choke on unknown options, it will just issue warnings
4780 # or remarks (even with -Werror). So we grep stderr for any message
4781 # that says an option was ignored or not supported.
4782 # When given -MP, icc 7.0 and 7.1 complain thusly:
4783 # icc: Command line warning: ignoring option '-M'; no argument required
4784 # The diagnosis changed in icc 8.0:
4785 # icc: Command line remark: option '-MP' not supported
4786 if (grep 'ignoring option' conftest.err ||
4787 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4788 am_cv_CCAS_dependencies_compiler_type=$depmode
4789 break
4790 fi
4791 fi
4792 done
4793
4794 cd ..
4795 rm -rf conftest.dir
4796else
4797 am_cv_CCAS_dependencies_compiler_type=none
4798fi
4799 ;;
4800esac
4801fi
4802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4803printf "%s\n" "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4804CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4805
4806 if
4807 test "x$enable_dependency_tracking" != xno \
4808 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4809 am__fastdepCCAS_TRUE=
4810 am__fastdepCCAS_FALSE='#'
4811else
4812 am__fastdepCCAS_TRUE='#'
4813 am__fastdepCCAS_FALSE=
4814fi
4815
4816
4817
4818
4819 # Make sure we can run config.sub.
4820$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4821 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4822
4823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4824printf %s "checking build system type... " >&6; }
4825if test ${ac_cv_build+y}
4826then :
4827 printf %s "(cached) " >&6
4828else case e in #(
4829 e) ac_build_alias=$build_alias
4830test "x$ac_build_alias" = x &&
4831 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4832test "x$ac_build_alias" = x &&
4833 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4834ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4835 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4836 ;;
4837esac
4838fi
4839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4840printf "%s\n" "$ac_cv_build" >&6; }
4841case $ac_cv_build in
4842*-*-*) ;;
4843*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4844esac
4845build=$ac_cv_build
4846ac_save_IFS=$IFS; IFS='-'
4847set x $ac_cv_build
4848shift
4849build_cpu=$1
4850build_vendor=$2
4851shift; shift
4852# Remember, the first character of IFS is used to create $*,
4853# except with old shells:
4854build_os=$*
4855IFS=$ac_save_IFS
4856case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4857
4858
4859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4860printf %s "checking host system type... " >&6; }
4861if test ${ac_cv_host+y}
4862then :
4863 printf %s "(cached) " >&6
4864else case e in #(
4865 e) if test "x$host_alias" = x; then
4866 ac_cv_host=$ac_cv_build
4867else
4868 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4869 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4870fi
4871 ;;
4872esac
4873fi
4874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4875printf "%s\n" "$ac_cv_host" >&6; }
4876case $ac_cv_host in
4877*-*-*) ;;
4878*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4879esac
4880host=$ac_cv_host
4881ac_save_IFS=$IFS; IFS='-'
4882set x $ac_cv_host
4883shift
4884host_cpu=$1
4885host_vendor=$2
4886shift; shift
4887# Remember, the first character of IFS is used to create $*,
4888# except with old shells:
4889host_os=$*
4890IFS=$ac_save_IFS
4891case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4892
4893
4894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4895printf %s "checking for a sed that does not truncate output... " >&6; }
4896if test ${ac_cv_path_SED+y}
4897then :
4898 printf %s "(cached) " >&6
4899else case e in #(
4900 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4901 for ac_i in 1 2 3 4 5 6 7; do
4902 ac_script="$ac_script$as_nl$ac_script"
4903 done
4904 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4905 { ac_script=; unset ac_script;}
4906 if test -z "$SED"; then
4907 ac_path_SED_found=false
4908 # Loop through the user's path and test for each of PROGNAME-LIST
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910for as_dir in $PATH
4911do
4912 IFS=$as_save_IFS
4913 case $as_dir in #(((
4914 '') as_dir=./ ;;
4915 */) ;;
4916 *) as_dir=$as_dir/ ;;
4917 esac
4918 for ac_prog in sed gsed
4919 do
4920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4922 as_fn_executable_p "$ac_path_SED" || continue
4923# Check for GNU ac_path_SED and select it if it is found.
4924 # Check for GNU $ac_path_SED
4925case `"$ac_path_SED" --version 2>&1` in #(
4926*GNU*)
4927 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4928#(
4929*)
4930 ac_count=0
4931 printf %s 0123456789 >"conftest.in"
4932 while :
4933 do
4934 cat "conftest.in" "conftest.in" >"conftest.tmp"
4935 mv "conftest.tmp" "conftest.in"
4936 cp "conftest.in" "conftest.nl"
4937 printf "%s\n" '' >> "conftest.nl"
4938 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4939 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4940 as_fn_arith $ac_count + 1 && ac_count=$as_val
4941 if test $ac_count -gt ${ac_path_SED_max-0}; then
4942 # Best one so far, save it but keep looking for a better one
4943 ac_cv_path_SED="$ac_path_SED"
4944 ac_path_SED_max=$ac_count
4945 fi
4946 # 10*(2^10) chars as input seems more than enough
4947 test $ac_count -gt 10 && break
4948 done
4949 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4950esac
4951
4952 $ac_path_SED_found && break 3
4953 done
4954 done
4955 done
4956IFS=$as_save_IFS
4957 if test -z "$ac_cv_path_SED"; then
4958 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4959 fi
4960else
4961 ac_cv_path_SED=$SED
4962fi
4963 ;;
4964esac
4965fi
4966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4967printf "%s\n" "$ac_cv_path_SED" >&6; }
4968 SED="$ac_cv_path_SED"
4969 rm -f conftest.sed
4970
4971test -z "$SED" && SED=sed
4972Xsed="$SED -e 1s/^X//"
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4985printf %s "checking for grep that handles long lines and -e... " >&6; }
4986if test ${ac_cv_path_GREP+y}
4987then :
4988 printf %s "(cached) " >&6
4989else case e in #(
4990 e) if test -z "$GREP"; then
4991 ac_path_GREP_found=false
4992 # Loop through the user's path and test for each of PROGNAME-LIST
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4995do
4996 IFS=$as_save_IFS
4997 case $as_dir in #(((
4998 '') as_dir=./ ;;
4999 */) ;;
5000 *) as_dir=$as_dir/ ;;
5001 esac
5002 for ac_prog in grep ggrep
5003 do
5004 for ac_exec_ext in '' $ac_executable_extensions; do
5005 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5006 as_fn_executable_p "$ac_path_GREP" || continue
5007# Check for GNU ac_path_GREP and select it if it is found.
5008 # Check for GNU $ac_path_GREP
5009case `"$ac_path_GREP" --version 2>&1` in #(
5010*GNU*)
5011 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5012#(
5013*)
5014 ac_count=0
5015 printf %s 0123456789 >"conftest.in"
5016 while :
5017 do
5018 cat "conftest.in" "conftest.in" >"conftest.tmp"
5019 mv "conftest.tmp" "conftest.in"
5020 cp "conftest.in" "conftest.nl"
5021 printf "%s\n" 'GREP' >> "conftest.nl"
5022 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5023 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5024 as_fn_arith $ac_count + 1 && ac_count=$as_val
5025 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5026 # Best one so far, save it but keep looking for a better one
5027 ac_cv_path_GREP="$ac_path_GREP"
5028 ac_path_GREP_max=$ac_count
5029 fi
5030 # 10*(2^10) chars as input seems more than enough
5031 test $ac_count -gt 10 && break
5032 done
5033 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5034esac
5035
5036 $ac_path_GREP_found && break 3
5037 done
5038 done
5039 done
5040IFS=$as_save_IFS
5041 if test -z "$ac_cv_path_GREP"; then
5042 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5043 fi
5044else
5045 ac_cv_path_GREP=$GREP
5046fi
5047 ;;
5048esac
5049fi
5050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5051printf "%s\n" "$ac_cv_path_GREP" >&6; }
5052 GREP="$ac_cv_path_GREP"
5053
5054
5055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5056printf %s "checking for egrep... " >&6; }
5057if test ${ac_cv_path_EGREP+y}
5058then :
5059 printf %s "(cached) " >&6
5060else case e in #(
5061 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5062 then ac_cv_path_EGREP="$GREP -E"
5063 else
5064 if test -z "$EGREP"; then
5065 ac_path_EGREP_found=false
5066 # Loop through the user's path and test for each of PROGNAME-LIST
5067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5069do
5070 IFS=$as_save_IFS
5071 case $as_dir in #(((
5072 '') as_dir=./ ;;
5073 */) ;;
5074 *) as_dir=$as_dir/ ;;
5075 esac
5076 for ac_prog in egrep
5077 do
5078 for ac_exec_ext in '' $ac_executable_extensions; do
5079 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5080 as_fn_executable_p "$ac_path_EGREP" || continue
5081# Check for GNU ac_path_EGREP and select it if it is found.
5082 # Check for GNU $ac_path_EGREP
5083case `"$ac_path_EGREP" --version 2>&1` in #(
5084*GNU*)
5085 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5086#(
5087*)
5088 ac_count=0
5089 printf %s 0123456789 >"conftest.in"
5090 while :
5091 do
5092 cat "conftest.in" "conftest.in" >"conftest.tmp"
5093 mv "conftest.tmp" "conftest.in"
5094 cp "conftest.in" "conftest.nl"
5095 printf "%s\n" 'EGREP' >> "conftest.nl"
5096 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5097 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5098 as_fn_arith $ac_count + 1 && ac_count=$as_val
5099 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5100 # Best one so far, save it but keep looking for a better one
5101 ac_cv_path_EGREP="$ac_path_EGREP"
5102 ac_path_EGREP_max=$ac_count
5103 fi
5104 # 10*(2^10) chars as input seems more than enough
5105 test $ac_count -gt 10 && break
5106 done
5107 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5108esac
5109
5110 $ac_path_EGREP_found && break 3
5111 done
5112 done
5113 done
5114IFS=$as_save_IFS
5115 if test -z "$ac_cv_path_EGREP"; then
5116 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5117 fi
5118else
5119 ac_cv_path_EGREP=$EGREP
5120fi
5121
5122 fi ;;
5123esac
5124fi
5125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5126printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5127 EGREP="$ac_cv_path_EGREP"
5128
5129 EGREP_TRADITIONAL=$EGREP
5130 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5131
5132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5133printf %s "checking for fgrep... " >&6; }
5134if test ${ac_cv_path_FGREP+y}
5135then :
5136 printf %s "(cached) " >&6
5137else case e in #(
5138 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5139 then ac_cv_path_FGREP="$GREP -F"
5140 else
5141 if test -z "$FGREP"; then
5142 ac_path_FGREP_found=false
5143 # Loop through the user's path and test for each of PROGNAME-LIST
5144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5146do
5147 IFS=$as_save_IFS
5148 case $as_dir in #(((
5149 '') as_dir=./ ;;
5150 */) ;;
5151 *) as_dir=$as_dir/ ;;
5152 esac
5153 for ac_prog in fgrep
5154 do
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5157 as_fn_executable_p "$ac_path_FGREP" || continue
5158# Check for GNU ac_path_FGREP and select it if it is found.
5159 # Check for GNU $ac_path_FGREP
5160case `"$ac_path_FGREP" --version 2>&1` in #(
5161*GNU*)
5162 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5163#(
5164*)
5165 ac_count=0
5166 printf %s 0123456789 >"conftest.in"
5167 while :
5168 do
5169 cat "conftest.in" "conftest.in" >"conftest.tmp"
5170 mv "conftest.tmp" "conftest.in"
5171 cp "conftest.in" "conftest.nl"
5172 printf "%s\n" 'FGREP' >> "conftest.nl"
5173 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5174 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5175 as_fn_arith $ac_count + 1 && ac_count=$as_val
5176 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5177 # Best one so far, save it but keep looking for a better one
5178 ac_cv_path_FGREP="$ac_path_FGREP"
5179 ac_path_FGREP_max=$ac_count
5180 fi
5181 # 10*(2^10) chars as input seems more than enough
5182 test $ac_count -gt 10 && break
5183 done
5184 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5185esac
5186
5187 $ac_path_FGREP_found && break 3
5188 done
5189 done
5190 done
5191IFS=$as_save_IFS
5192 if test -z "$ac_cv_path_FGREP"; then
5193 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5194 fi
5195else
5196 ac_cv_path_FGREP=$FGREP
5197fi
5198
5199 fi ;;
5200esac
5201fi
5202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5203printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5204 FGREP="$ac_cv_path_FGREP"
5205
5206
5207test -z "$GREP" && GREP=grep
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5226ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5227ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5228
5229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5230printf %s "checking how to print strings... " >&6; }
5231# Test print first, because it will be a builtin if present.
5232if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5233 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5234 ECHO='print -r --'
5235elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5236 ECHO='printf %s\n'
5237else
5238 # Use this function as a fallback that always works.
5239 func_fallback_echo ()
5240 {
5241 eval 'cat <<_LTECHO_EOF
5242$1
5243_LTECHO_EOF'
5244 }
5245 ECHO='func_fallback_echo'
5246fi
5247
5248# func_echo_all arg...
5249# Invoke $ECHO with all args, space-separated.
5250func_echo_all ()
5251{
5252 $ECHO ""
5253}
5254
5255case $ECHO in
5256 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5257printf "%s\n" "printf" >&6; } ;;
5258 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5259printf "%s\n" "print -r" >&6; } ;;
5260 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5261printf "%s\n" "cat" >&6; } ;;
5262esac
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279# Check whether --with-gnu-ld was given.
5280if test ${with_gnu_ld+y}
5281then :
5282 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5283else case e in #(
5284 e) with_gnu_ld=no ;;
5285esac
5286fi
5287
5288ac_prog=ld
5289if test yes = "$GCC"; then
5290 # Check if gcc -print-prog-name=ld gives a path.
5291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5292printf %s "checking for ld used by $CC... " >&6; }
5293 case $host in
5294 *-*-mingw*)
5295 # gcc leaves a trailing carriage return, which upsets mingw
5296 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5297 *)
5298 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5299 esac
5300 case $ac_prog in
5301 # Accept absolute paths.
5302 [\\/]* | ?:[\\/]*)
5303 re_direlt='/[^/][^/]*/\.\./'
5304 # Canonicalize the pathname of ld
5305 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5306 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5307 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5308 done
5309 test -z "$LD" && LD=$ac_prog
5310 ;;
5311 "")
5312 # If it fails, then pretend we aren't using GCC.
5313 ac_prog=ld
5314 ;;
5315 *)
5316 # If it is relative, then search for the first ld in PATH.
5317 with_gnu_ld=unknown
5318 ;;
5319 esac
5320elif test yes = "$with_gnu_ld"; then
5321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5322printf %s "checking for GNU ld... " >&6; }
5323else
5324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5325printf %s "checking for non-GNU ld... " >&6; }
5326fi
5327if test ${lt_cv_path_LD+y}
5328then :
5329 printf %s "(cached) " >&6
5330else case e in #(
5331 e) if test -z "$LD"; then
5332 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5333 for ac_dir in $PATH; do
5334 IFS=$lt_save_ifs
5335 test -z "$ac_dir" && ac_dir=.
5336 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5337 lt_cv_path_LD=$ac_dir/$ac_prog
5338 # Check to see if the program is GNU ld. I'd rather use --version,
5339 # but apparently some variants of GNU ld only accept -v.
5340 # Break only if it was the GNU/non-GNU ld that we prefer.
5341 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5342 *GNU* | *'with BFD'*)
5343 test no != "$with_gnu_ld" && break
5344 ;;
5345 *)
5346 test yes != "$with_gnu_ld" && break
5347 ;;
5348 esac
5349 fi
5350 done
5351 IFS=$lt_save_ifs
5352else
5353 lt_cv_path_LD=$LD # Let the user override the test with a path.
5354fi ;;
5355esac
5356fi
5357
5358LD=$lt_cv_path_LD
5359if test -n "$LD"; then
5360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5361printf "%s\n" "$LD" >&6; }
5362else
5363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364printf "%s\n" "no" >&6; }
5365fi
5366test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5368printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5369if test ${lt_cv_prog_gnu_ld+y}
5370then :
5371 printf %s "(cached) " >&6
5372else case e in #(
5373 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5374case `$LD -v 2>&1 </dev/null` in
5375*GNU* | *'with BFD'*)
5376 lt_cv_prog_gnu_ld=yes
5377 ;;
5378*)
5379 lt_cv_prog_gnu_ld=no
5380 ;;
5381esac ;;
5382esac
5383fi
5384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5385printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5386with_gnu_ld=$lt_cv_prog_gnu_ld
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396ac_ext=c
5397ac_cpp='$CPP $CPPFLAGS'
5398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5400ac_compiler_gnu=$ac_cv_c_compiler_gnu
5401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5402printf %s "checking how to run the C preprocessor... " >&6; }
5403# On Suns, sometimes $CPP names a directory.
5404if test -n "$CPP" && test -d "$CPP"; then
5405 CPP=
5406fi
5407if test -z "$CPP"; then
5408 if test ${ac_cv_prog_CPP+y}
5409then :
5410 printf %s "(cached) " >&6
5411else case e in #(
5412 e) # Double quotes because $CC needs to be expanded
5413 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5414 do
5415 ac_preproc_ok=false
5416for ac_c_preproc_warn_flag in '' yes
5417do
5418 # Use a header file that comes with gcc, so configuring glibc
5419 # with a fresh cross-compiler works.
5420 # On the NeXT, cc -E runs the code through the compiler's parser,
5421 # not just through cpp. "Syntax error" is here to catch this case.
5422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5423/* end confdefs.h. */
5424#include <limits.h>
5425 Syntax error
5426_ACEOF
5427if ac_fn_c_try_cpp "$LINENO"
5428then :
5429
5430else case e in #(
5431 e) # Broken: fails on valid input.
5432continue ;;
5433esac
5434fi
5435rm -f conftest.err conftest.i conftest.$ac_ext
5436
5437 # OK, works on sane cases. Now check whether nonexistent headers
5438 # can be detected and how.
5439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5440/* end confdefs.h. */
5441#include <ac_nonexistent.h>
5442_ACEOF
5443if ac_fn_c_try_cpp "$LINENO"
5444then :
5445 # Broken: success on invalid input.
5446continue
5447else case e in #(
5448 e) # Passes both tests.
5449ac_preproc_ok=:
5450break ;;
5451esac
5452fi
5453rm -f conftest.err conftest.i conftest.$ac_ext
5454
5455done
5456# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5457rm -f conftest.i conftest.err conftest.$ac_ext
5458if $ac_preproc_ok
5459then :
5460 break
5461fi
5462
5463 done
5464 ac_cv_prog_CPP=$CPP
5465 ;;
5466esac
5467fi
5468 CPP=$ac_cv_prog_CPP
5469else
5470 ac_cv_prog_CPP=$CPP
5471fi
5472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5473printf "%s\n" "$CPP" >&6; }
5474ac_preproc_ok=false
5475for ac_c_preproc_warn_flag in '' yes
5476do
5477 # Use a header file that comes with gcc, so configuring glibc
5478 # with a fresh cross-compiler works.
5479 # On the NeXT, cc -E runs the code through the compiler's parser,
5480 # not just through cpp. "Syntax error" is here to catch this case.
5481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482/* end confdefs.h. */
5483#include <limits.h>
5484 Syntax error
5485_ACEOF
5486if ac_fn_c_try_cpp "$LINENO"
5487then :
5488
5489else case e in #(
5490 e) # Broken: fails on valid input.
5491continue ;;
5492esac
5493fi
5494rm -f conftest.err conftest.i conftest.$ac_ext
5495
5496 # OK, works on sane cases. Now check whether nonexistent headers
5497 # can be detected and how.
5498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499/* end confdefs.h. */
5500#include <ac_nonexistent.h>
5501_ACEOF
5502if ac_fn_c_try_cpp "$LINENO"
5503then :
5504 # Broken: success on invalid input.
5505continue
5506else case e in #(
5507 e) # Passes both tests.
5508ac_preproc_ok=:
5509break ;;
5510esac
5511fi
5512rm -f conftest.err conftest.i conftest.$ac_ext
5513
5514done
5515# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5516rm -f conftest.i conftest.err conftest.$ac_ext
5517if $ac_preproc_ok
5518then :
5519
5520else case e in #(
5521 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5522printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5523as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5524See 'config.log' for more details" "$LINENO" 5; } ;;
5525esac
5526fi
5527
5528ac_ext=c
5529ac_cpp='$CPP $CPPFLAGS'
5530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5532ac_compiler_gnu=$ac_cv_c_compiler_gnu
5533
5534for ac_prog in gawk mawk nawk awk
5535do
5536 # Extract the first word of "$ac_prog", so it can be a program name with args.
5537set dummy $ac_prog; ac_word=$2
5538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5539printf %s "checking for $ac_word... " >&6; }
5540if test ${ac_cv_prog_AWK+y}
5541then :
5542 printf %s "(cached) " >&6
5543else case e in #(
5544 e) if test -n "$AWK"; then
5545 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5546else
5547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548for as_dir in $PATH
5549do
5550 IFS=$as_save_IFS
5551 case $as_dir in #(((
5552 '') as_dir=./ ;;
5553 */) ;;
5554 *) as_dir=$as_dir/ ;;
5555 esac
5556 for ac_exec_ext in '' $ac_executable_extensions; do
5557 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5558 ac_cv_prog_AWK="$ac_prog"
5559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5560 break 2
5561 fi
5562done
5563 done
5564IFS=$as_save_IFS
5565
5566fi ;;
5567esac
5568fi
5569AWK=$ac_cv_prog_AWK
5570if test -n "$AWK"; then
5571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5572printf "%s\n" "$AWK" >&6; }
5573else
5574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5575printf "%s\n" "no" >&6; }
5576fi
5577
5578
5579 test -n "$AWK" && break
5580done
5581
5582
5583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5584printf %s "checking whether ln -s works... " >&6; }
5585LN_S=$as_ln_s
5586if test "$LN_S" = "ln -s"; then
5587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5588printf "%s\n" "yes" >&6; }
5589else
5590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5591printf "%s\n" "no, using $LN_S" >&6; }
5592fi
5593
5594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5595printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5596set x ${MAKE-make}
5597ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5598if eval test \${ac_cv_prog_make_${ac_make}_set+y}
5599then :
5600 printf %s "(cached) " >&6
5601else case e in #(
5602 e) cat >conftest.make <<\_ACEOF
5603SHELL = /bin/sh
5604all:
5605 @echo '@@@%%%=$(MAKE)=@@@%%%'
5606_ACEOF
5607# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5608case `${MAKE-make} -f conftest.make 2>/dev/null` in
5609 *@@@%%%=?*=@@@%%%*)
5610 eval ac_cv_prog_make_${ac_make}_set=yes;;
5611 *)
5612 eval ac_cv_prog_make_${ac_make}_set=no;;
5613esac
5614rm -f conftest.make ;;
5615esac
5616fi
5617if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5619printf "%s\n" "yes" >&6; }
5620 SET_MAKE=
5621else
5622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5623printf "%s\n" "no" >&6; }
5624 SET_MAKE="MAKE=${MAKE-make}"
5625fi
5626
5627
5628case `pwd` in
5629 *\ * | *\ *)
5630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5631printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5632esac
5633
5634
5635
5636macro_version='2.4.7'
5637macro_revision='2.4.7'
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652ltmain=$ac_aux_dir/ltmain.sh
5653
5654# Backslashify metacharacters that are still active within
5655# double-quoted strings.
5656sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5657
5658# Same as above, but do not quote variable references.
5659double_quote_subst='s/\(["`\\]\)/\\\1/g'
5660
5661# Sed substitution to delay expansion of an escaped shell variable in a
5662# double_quote_subst'ed string.
5663delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5664
5665# Sed substitution to delay expansion of an escaped single quote.
5666delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5667
5668# Sed substitution to avoid accidental globbing in evaled expressions
5669no_glob_subst='s/\*/\\\*/g'
5670
5671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5672printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5673if test ${lt_cv_path_NM+y}
5674then :
5675 printf %s "(cached) " >&6
5676else case e in #(
5677 e) if test -n "$NM"; then
5678 # Let the user override the test.
5679 lt_cv_path_NM=$NM
5680else
5681 lt_nm_to_check=${ac_tool_prefix}nm
5682 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5683 lt_nm_to_check="$lt_nm_to_check nm"
5684 fi
5685 for lt_tmp_nm in $lt_nm_to_check; do
5686 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5687 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5688 IFS=$lt_save_ifs
5689 test -z "$ac_dir" && ac_dir=.
5690 tmp_nm=$ac_dir/$lt_tmp_nm
5691 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5692 # Check to see if the nm accepts a BSD-compat flag.
5693 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5694 # nm: unknown option "B" ignored
5695 # Tru64's nm complains that /dev/null is an invalid object file
5696 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5697 case $build_os in
5698 mingw*) lt_bad_file=conftest.nm/nofile ;;
5699 *) lt_bad_file=/dev/null ;;
5700 esac
5701 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5702 *$lt_bad_file* | *'Invalid file or object type'*)
5703 lt_cv_path_NM="$tmp_nm -B"
5704 break 2
5705 ;;
5706 *)
5707 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5708 */dev/null*)
5709 lt_cv_path_NM="$tmp_nm -p"
5710 break 2
5711 ;;
5712 *)
5713 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5714 continue # so that we can try to find one that supports BSD flags
5715 ;;
5716 esac
5717 ;;
5718 esac
5719 fi
5720 done
5721 IFS=$lt_save_ifs
5722 done
5723 : ${lt_cv_path_NM=no}
5724fi ;;
5725esac
5726fi
5727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5728printf "%s\n" "$lt_cv_path_NM" >&6; }
5729if test no != "$lt_cv_path_NM"; then
5730 NM=$lt_cv_path_NM
5731else
5732 # Didn't find any BSD compatible name lister, look for dumpbin.
5733 if test -n "$DUMPBIN"; then :
5734 # Let the user override the test.
5735 else
5736 if test -n "$ac_tool_prefix"; then
5737 for ac_prog in dumpbin "link -dump"
5738 do
5739 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5740set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5742printf %s "checking for $ac_word... " >&6; }
5743if test ${ac_cv_prog_DUMPBIN+y}
5744then :
5745 printf %s "(cached) " >&6
5746else case e in #(
5747 e) if test -n "$DUMPBIN"; then
5748 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5749else
5750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751for as_dir in $PATH
5752do
5753 IFS=$as_save_IFS
5754 case $as_dir in #(((
5755 '') as_dir=./ ;;
5756 */) ;;
5757 *) as_dir=$as_dir/ ;;
5758 esac
5759 for ac_exec_ext in '' $ac_executable_extensions; do
5760 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5761 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5763 break 2
5764 fi
5765done
5766 done
5767IFS=$as_save_IFS
5768
5769fi ;;
5770esac
5771fi
5772DUMPBIN=$ac_cv_prog_DUMPBIN
5773if test -n "$DUMPBIN"; then
5774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5775printf "%s\n" "$DUMPBIN" >&6; }
5776else
5777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5778printf "%s\n" "no" >&6; }
5779fi
5780
5781
5782 test -n "$DUMPBIN" && break
5783 done
5784fi
5785if test -z "$DUMPBIN"; then
5786 ac_ct_DUMPBIN=$DUMPBIN
5787 for ac_prog in dumpbin "link -dump"
5788do
5789 # Extract the first word of "$ac_prog", so it can be a program name with args.
5790set dummy $ac_prog; ac_word=$2
5791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5792printf %s "checking for $ac_word... " >&6; }
5793if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5794then :
5795 printf %s "(cached) " >&6
5796else case e in #(
5797 e) if test -n "$ac_ct_DUMPBIN"; then
5798 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5799else
5800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801for as_dir in $PATH
5802do
5803 IFS=$as_save_IFS
5804 case $as_dir in #(((
5805 '') as_dir=./ ;;
5806 */) ;;
5807 *) as_dir=$as_dir/ ;;
5808 esac
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5811 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5813 break 2
5814 fi
5815done
5816 done
5817IFS=$as_save_IFS
5818
5819fi ;;
5820esac
5821fi
5822ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5823if test -n "$ac_ct_DUMPBIN"; then
5824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5825printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5826else
5827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828printf "%s\n" "no" >&6; }
5829fi
5830
5831
5832 test -n "$ac_ct_DUMPBIN" && break
5833done
5834
5835 if test "x$ac_ct_DUMPBIN" = x; then
5836 DUMPBIN=":"
5837 else
5838 case $cross_compiling:$ac_tool_warned in
5839yes:)
5840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5841printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5842ac_tool_warned=yes ;;
5843esac
5844 DUMPBIN=$ac_ct_DUMPBIN
5845 fi
5846fi
5847
5848 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5849 *COFF*)
5850 DUMPBIN="$DUMPBIN -symbols -headers"
5851 ;;
5852 *)
5853 DUMPBIN=:
5854 ;;
5855 esac
5856 fi
5857
5858 if test : != "$DUMPBIN"; then
5859 NM=$DUMPBIN
5860 fi
5861fi
5862test -z "$NM" && NM=nm
5863
5864
5865
5866
5867
5868
5869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5870printf %s "checking the name lister ($NM) interface... " >&6; }
5871if test ${lt_cv_nm_interface+y}
5872then :
5873 printf %s "(cached) " >&6
5874else case e in #(
5875 e) lt_cv_nm_interface="BSD nm"
5876 echo "int some_variable = 0;" > conftest.$ac_ext
5877 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5878 (eval "$ac_compile" 2>conftest.err)
5879 cat conftest.err >&5
5880 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5881 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5882 cat conftest.err >&5
5883 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5884 cat conftest.out >&5
5885 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5886 lt_cv_nm_interface="MS dumpbin"
5887 fi
5888 rm -f conftest* ;;
5889esac
5890fi
5891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5892printf "%s\n" "$lt_cv_nm_interface" >&6; }
5893
5894# find the maximum length of command line arguments
5895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5896printf %s "checking the maximum length of command line arguments... " >&6; }
5897if test ${lt_cv_sys_max_cmd_len+y}
5898then :
5899 printf %s "(cached) " >&6
5900else case e in #(
5901 e) i=0
5902 teststring=ABCD
5903
5904 case $build_os in
5905 msdosdjgpp*)
5906 # On DJGPP, this test can blow up pretty badly due to problems in libc
5907 # (any single argument exceeding 2000 bytes causes a buffer overrun
5908 # during glob expansion). Even if it were fixed, the result of this
5909 # check would be larger than it should be.
5910 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5911 ;;
5912
5913 gnu*)
5914 # Under GNU Hurd, this test is not required because there is
5915 # no limit to the length of command line arguments.
5916 # Libtool will interpret -1 as no limit whatsoever
5917 lt_cv_sys_max_cmd_len=-1;
5918 ;;
5919
5920 cygwin* | mingw* | cegcc*)
5921 # On Win9x/ME, this test blows up -- it succeeds, but takes
5922 # about 5 minutes as the teststring grows exponentially.
5923 # Worse, since 9x/ME are not pre-emptively multitasking,
5924 # you end up with a "frozen" computer, even though with patience
5925 # the test eventually succeeds (with a max line length of 256k).
5926 # Instead, let's just punt: use the minimum linelength reported by
5927 # all of the supported platforms: 8192 (on NT/2K/XP).
5928 lt_cv_sys_max_cmd_len=8192;
5929 ;;
5930
5931 mint*)
5932 # On MiNT this can take a long time and run out of memory.
5933 lt_cv_sys_max_cmd_len=8192;
5934 ;;
5935
5936 amigaos*)
5937 # On AmigaOS with pdksh, this test takes hours, literally.
5938 # So we just punt and use a minimum line length of 8192.
5939 lt_cv_sys_max_cmd_len=8192;
5940 ;;
5941
5942 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5943 # This has been around since 386BSD, at least. Likely further.
5944 if test -x /sbin/sysctl; then
5945 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5946 elif test -x /usr/sbin/sysctl; then
5947 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5948 else
5949 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5950 fi
5951 # And add a safety zone
5952 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5953 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5954 ;;
5955
5956 interix*)
5957 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5958 lt_cv_sys_max_cmd_len=196608
5959 ;;
5960
5961 os2*)
5962 # The test takes a long time on OS/2.
5963 lt_cv_sys_max_cmd_len=8192
5964 ;;
5965
5966 osf*)
5967 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5968 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5969 # nice to cause kernel panics so lets avoid the loop below.
5970 # First set a reasonable default.
5971 lt_cv_sys_max_cmd_len=16384
5972 #
5973 if test -x /sbin/sysconfig; then
5974 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5975 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5976 esac
5977 fi
5978 ;;
5979 sco3.2v5*)
5980 lt_cv_sys_max_cmd_len=102400
5981 ;;
5982 sysv5* | sco5v6* | sysv4.2uw2*)
5983 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5984 if test -n "$kargmax"; then
5985 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5986 else
5987 lt_cv_sys_max_cmd_len=32768
5988 fi
5989 ;;
5990 *)
5991 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5992 if test -n "$lt_cv_sys_max_cmd_len" && \
5993 test undefined != "$lt_cv_sys_max_cmd_len"; then
5994 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5995 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5996 else
5997 # Make teststring a little bigger before we do anything with it.
5998 # a 1K string should be a reasonable start.
5999 for i in 1 2 3 4 5 6 7 8; do
6000 teststring=$teststring$teststring
6001 done
6002 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6003 # If test is not a shell built-in, we'll probably end up computing a
6004 # maximum length that is only half of the actual maximum length, but
6005 # we can't tell.
6006 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6007 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6008 test 17 != "$i" # 1/2 MB should be enough
6009 do
6010 i=`expr $i + 1`
6011 teststring=$teststring$teststring
6012 done
6013 # Only check the string length outside the loop.
6014 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6015 teststring=
6016 # Add a significant safety factor because C++ compilers can tack on
6017 # massive amounts of additional arguments before passing them to the
6018 # linker. It appears as though 1/2 is a usable value.
6019 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6020 fi
6021 ;;
6022 esac
6023 ;;
6024esac
6025fi
6026
6027if test -n "$lt_cv_sys_max_cmd_len"; then
6028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6029printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6030else
6031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6032printf "%s\n" "none" >&6; }
6033fi
6034max_cmd_len=$lt_cv_sys_max_cmd_len
6035
6036
6037
6038
6039
6040
6041: ${CP="cp -f"}
6042: ${MV="mv -f"}
6043: ${RM="rm -f"}
6044
6045if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6046 lt_unset=unset
6047else
6048 lt_unset=false
6049fi
6050
6051
6052
6053
6054
6055# test EBCDIC or ASCII
6056case `echo X|tr X '\101'` in
6057 A) # ASCII based system
6058 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6059 lt_SP2NL='tr \040 \012'
6060 lt_NL2SP='tr \015\012 \040\040'
6061 ;;
6062 *) # EBCDIC based system
6063 lt_SP2NL='tr \100 \n'
6064 lt_NL2SP='tr \r\n \100\100'
6065 ;;
6066esac
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6077printf %s "checking how to convert $build file names to $host format... " >&6; }
6078if test ${lt_cv_to_host_file_cmd+y}
6079then :
6080 printf %s "(cached) " >&6
6081else case e in #(
6082 e) case $host in
6083 *-*-mingw* )
6084 case $build in
6085 *-*-mingw* ) # actually msys
6086 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6087 ;;
6088 *-*-cygwin* )
6089 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6090 ;;
6091 * ) # otherwise, assume *nix
6092 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6093 ;;
6094 esac
6095 ;;
6096 *-*-cygwin* )
6097 case $build in
6098 *-*-mingw* ) # actually msys
6099 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6100 ;;
6101 *-*-cygwin* )
6102 lt_cv_to_host_file_cmd=func_convert_file_noop
6103 ;;
6104 * ) # otherwise, assume *nix
6105 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6106 ;;
6107 esac
6108 ;;
6109 * ) # unhandled hosts (and "normal" native builds)
6110 lt_cv_to_host_file_cmd=func_convert_file_noop
6111 ;;
6112esac
6113 ;;
6114esac
6115fi
6116
6117to_host_file_cmd=$lt_cv_to_host_file_cmd
6118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6119printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6120
6121
6122
6123
6124
6125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6126printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6127if test ${lt_cv_to_tool_file_cmd+y}
6128then :
6129 printf %s "(cached) " >&6
6130else case e in #(
6131 e) #assume ordinary cross tools, or native build.
6132lt_cv_to_tool_file_cmd=func_convert_file_noop
6133case $host in
6134 *-*-mingw* )
6135 case $build in
6136 *-*-mingw* ) # actually msys
6137 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6138 ;;
6139 esac
6140 ;;
6141esac
6142 ;;
6143esac
6144fi
6145
6146to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6148printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6149
6150
6151
6152
6153
6154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6155printf %s "checking for $LD option to reload object files... " >&6; }
6156if test ${lt_cv_ld_reload_flag+y}
6157then :
6158 printf %s "(cached) " >&6
6159else case e in #(
6160 e) lt_cv_ld_reload_flag='-r' ;;
6161esac
6162fi
6163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6164printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6165reload_flag=$lt_cv_ld_reload_flag
6166case $reload_flag in
6167"" | " "*) ;;
6168*) reload_flag=" $reload_flag" ;;
6169esac
6170reload_cmds='$LD$reload_flag -o $output$reload_objs'
6171case $host_os in
6172 cygwin* | mingw* | pw32* | cegcc*)
6173 if test yes != "$GCC"; then
6174 reload_cmds=false
6175 fi
6176 ;;
6177 darwin*)
6178 if test yes = "$GCC"; then
6179 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6180 else
6181 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6182 fi
6183 ;;
6184esac
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194if test -n "$ac_tool_prefix"; then
6195 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6196set dummy ${ac_tool_prefix}file; ac_word=$2
6197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6198printf %s "checking for $ac_word... " >&6; }
6199if test ${ac_cv_prog_FILECMD+y}
6200then :
6201 printf %s "(cached) " >&6
6202else case e in #(
6203 e) if test -n "$FILECMD"; then
6204 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6205else
6206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207for as_dir in $PATH
6208do
6209 IFS=$as_save_IFS
6210 case $as_dir in #(((
6211 '') as_dir=./ ;;
6212 */) ;;
6213 *) as_dir=$as_dir/ ;;
6214 esac
6215 for ac_exec_ext in '' $ac_executable_extensions; do
6216 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6217 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6218 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6219 break 2
6220 fi
6221done
6222 done
6223IFS=$as_save_IFS
6224
6225fi ;;
6226esac
6227fi
6228FILECMD=$ac_cv_prog_FILECMD
6229if test -n "$FILECMD"; then
6230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6231printf "%s\n" "$FILECMD" >&6; }
6232else
6233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6234printf "%s\n" "no" >&6; }
6235fi
6236
6237
6238fi
6239if test -z "$ac_cv_prog_FILECMD"; then
6240 ac_ct_FILECMD=$FILECMD
6241 # Extract the first word of "file", so it can be a program name with args.
6242set dummy file; ac_word=$2
6243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6244printf %s "checking for $ac_word... " >&6; }
6245if test ${ac_cv_prog_ac_ct_FILECMD+y}
6246then :
6247 printf %s "(cached) " >&6
6248else case e in #(
6249 e) if test -n "$ac_ct_FILECMD"; then
6250 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6251else
6252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253for as_dir in $PATH
6254do
6255 IFS=$as_save_IFS
6256 case $as_dir in #(((
6257 '') as_dir=./ ;;
6258 */) ;;
6259 *) as_dir=$as_dir/ ;;
6260 esac
6261 for ac_exec_ext in '' $ac_executable_extensions; do
6262 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6263 ac_cv_prog_ac_ct_FILECMD="file"
6264 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6265 break 2
6266 fi
6267done
6268 done
6269IFS=$as_save_IFS
6270
6271fi ;;
6272esac
6273fi
6274ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6275if test -n "$ac_ct_FILECMD"; then
6276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6277printf "%s\n" "$ac_ct_FILECMD" >&6; }
6278else
6279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6280printf "%s\n" "no" >&6; }
6281fi
6282
6283 if test "x$ac_ct_FILECMD" = x; then
6284 FILECMD=":"
6285 else
6286 case $cross_compiling:$ac_tool_warned in
6287yes:)
6288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6289printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6290ac_tool_warned=yes ;;
6291esac
6292 FILECMD=$ac_ct_FILECMD
6293 fi
6294else
6295 FILECMD="$ac_cv_prog_FILECMD"
6296fi
6297
6298
6299
6300
6301
6302
6303
6304if test -n "$ac_tool_prefix"; then
6305 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6306set dummy ${ac_tool_prefix}objdump; ac_word=$2
6307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6308printf %s "checking for $ac_word... " >&6; }
6309if test ${ac_cv_prog_OBJDUMP+y}
6310then :
6311 printf %s "(cached) " >&6
6312else case e in #(
6313 e) if test -n "$OBJDUMP"; then
6314 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6315else
6316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317for as_dir in $PATH
6318do
6319 IFS=$as_save_IFS
6320 case $as_dir in #(((
6321 '') as_dir=./ ;;
6322 */) ;;
6323 *) as_dir=$as_dir/ ;;
6324 esac
6325 for ac_exec_ext in '' $ac_executable_extensions; do
6326 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6327 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6328 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6329 break 2
6330 fi
6331done
6332 done
6333IFS=$as_save_IFS
6334
6335fi ;;
6336esac
6337fi
6338OBJDUMP=$ac_cv_prog_OBJDUMP
6339if test -n "$OBJDUMP"; then
6340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6341printf "%s\n" "$OBJDUMP" >&6; }
6342else
6343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6344printf "%s\n" "no" >&6; }
6345fi
6346
6347
6348fi
6349if test -z "$ac_cv_prog_OBJDUMP"; then
6350 ac_ct_OBJDUMP=$OBJDUMP
6351 # Extract the first word of "objdump", so it can be a program name with args.
6352set dummy objdump; ac_word=$2
6353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6354printf %s "checking for $ac_word... " >&6; }
6355if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6356then :
6357 printf %s "(cached) " >&6
6358else case e in #(
6359 e) if test -n "$ac_ct_OBJDUMP"; then
6360 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6361else
6362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363for as_dir in $PATH
6364do
6365 IFS=$as_save_IFS
6366 case $as_dir in #(((
6367 '') as_dir=./ ;;
6368 */) ;;
6369 *) as_dir=$as_dir/ ;;
6370 esac
6371 for ac_exec_ext in '' $ac_executable_extensions; do
6372 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6373 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6375 break 2
6376 fi
6377done
6378 done
6379IFS=$as_save_IFS
6380
6381fi ;;
6382esac
6383fi
6384ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6385if test -n "$ac_ct_OBJDUMP"; then
6386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6387printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6388else
6389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6390printf "%s\n" "no" >&6; }
6391fi
6392
6393 if test "x$ac_ct_OBJDUMP" = x; then
6394 OBJDUMP="false"
6395 else
6396 case $cross_compiling:$ac_tool_warned in
6397yes:)
6398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6399printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6400ac_tool_warned=yes ;;
6401esac
6402 OBJDUMP=$ac_ct_OBJDUMP
6403 fi
6404else
6405 OBJDUMP="$ac_cv_prog_OBJDUMP"
6406fi
6407
6408test -z "$OBJDUMP" && OBJDUMP=objdump
6409
6410
6411
6412
6413
6414
6415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6416printf %s "checking how to recognize dependent libraries... " >&6; }
6417if test ${lt_cv_deplibs_check_method+y}
6418then :
6419 printf %s "(cached) " >&6
6420else case e in #(
6421 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6422lt_cv_file_magic_test_file=
6423lt_cv_deplibs_check_method='unknown'
6424# Need to set the preceding variable on all platforms that support
6425# interlibrary dependencies.
6426# 'none' -- dependencies not supported.
6427# 'unknown' -- same as none, but documents that we really don't know.
6428# 'pass_all' -- all dependencies passed with no checks.
6429# 'test_compile' -- check by making test program.
6430# 'file_magic [[regex]]' -- check by looking for files in library path
6431# that responds to the $file_magic_cmd with a given extended regex.
6432# If you have 'file' or equivalent on your system and you're not sure
6433# whether 'pass_all' will *always* work, you probably want this one.
6434
6435case $host_os in
6436aix[4-9]*)
6437 lt_cv_deplibs_check_method=pass_all
6438 ;;
6439
6440beos*)
6441 lt_cv_deplibs_check_method=pass_all
6442 ;;
6443
6444bsdi[45]*)
6445 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6446 lt_cv_file_magic_cmd='$FILECMD -L'
6447 lt_cv_file_magic_test_file=/shlib/libc.so
6448 ;;
6449
6450cygwin*)
6451 # func_win32_libid is a shell function defined in ltmain.sh
6452 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6453 lt_cv_file_magic_cmd='func_win32_libid'
6454 ;;
6455
6456mingw* | pw32*)
6457 # Base MSYS/MinGW do not provide the 'file' command needed by
6458 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6459 # unless we find 'file', for example because we are cross-compiling.
6460 if ( file / ) >/dev/null 2>&1; then
6461 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6462 lt_cv_file_magic_cmd='func_win32_libid'
6463 else
6464 # Keep this pattern in sync with the one in func_win32_libid.
6465 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6466 lt_cv_file_magic_cmd='$OBJDUMP -f'
6467 fi
6468 ;;
6469
6470cegcc*)
6471 # use the weaker test based on 'objdump'. See mingw*.
6472 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6473 lt_cv_file_magic_cmd='$OBJDUMP -f'
6474 ;;
6475
6476darwin* | rhapsody*)
6477 lt_cv_deplibs_check_method=pass_all
6478 ;;
6479
6480freebsd* | dragonfly* | midnightbsd*)
6481 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6482 case $host_cpu in
6483 i*86 )
6484 # Not sure whether the presence of OpenBSD here was a mistake.
6485 # Let's accept both of them until this is cleared up.
6486 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6487 lt_cv_file_magic_cmd=$FILECMD
6488 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6489 ;;
6490 esac
6491 else
6492 lt_cv_deplibs_check_method=pass_all
6493 fi
6494 ;;
6495
6496haiku*)
6497 lt_cv_deplibs_check_method=pass_all
6498 ;;
6499
6500hpux10.20* | hpux11*)
6501 lt_cv_file_magic_cmd=$FILECMD
6502 case $host_cpu in
6503 ia64*)
6504 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6505 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6506 ;;
6507 hppa*64*)
6508 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]'
6509 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6510 ;;
6511 *)
6512 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6513 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6514 ;;
6515 esac
6516 ;;
6517
6518interix[3-9]*)
6519 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6520 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6521 ;;
6522
6523irix5* | irix6* | nonstopux*)
6524 case $LD in
6525 *-32|*"-32 ") libmagic=32-bit;;
6526 *-n32|*"-n32 ") libmagic=N32;;
6527 *-64|*"-64 ") libmagic=64-bit;;
6528 *) libmagic=never-match;;
6529 esac
6530 lt_cv_deplibs_check_method=pass_all
6531 ;;
6532
6533# This must be glibc/ELF.
6534linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6535 lt_cv_deplibs_check_method=pass_all
6536 ;;
6537
6538netbsd*)
6539 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6540 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6541 else
6542 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6543 fi
6544 ;;
6545
6546newos6*)
6547 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6548 lt_cv_file_magic_cmd=$FILECMD
6549 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6550 ;;
6551
6552*nto* | *qnx*)
6553 lt_cv_deplibs_check_method=pass_all
6554 ;;
6555
6556openbsd* | bitrig*)
6557 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6558 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6559 else
6560 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6561 fi
6562 ;;
6563
6564osf3* | osf4* | osf5*)
6565 lt_cv_deplibs_check_method=pass_all
6566 ;;
6567
6568rdos*)
6569 lt_cv_deplibs_check_method=pass_all
6570 ;;
6571
6572solaris*)
6573 lt_cv_deplibs_check_method=pass_all
6574 ;;
6575
6576sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6577 lt_cv_deplibs_check_method=pass_all
6578 ;;
6579
6580sysv4 | sysv4.3*)
6581 case $host_vendor in
6582 motorola)
6583 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]'
6584 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6585 ;;
6586 ncr)
6587 lt_cv_deplibs_check_method=pass_all
6588 ;;
6589 sequent)
6590 lt_cv_file_magic_cmd='/bin/file'
6591 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6592 ;;
6593 sni)
6594 lt_cv_file_magic_cmd='/bin/file'
6595 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6596 lt_cv_file_magic_test_file=/lib/libc.so
6597 ;;
6598 siemens)
6599 lt_cv_deplibs_check_method=pass_all
6600 ;;
6601 pc)
6602 lt_cv_deplibs_check_method=pass_all
6603 ;;
6604 esac
6605 ;;
6606
6607tpf*)
6608 lt_cv_deplibs_check_method=pass_all
6609 ;;
6610os2*)
6611 lt_cv_deplibs_check_method=pass_all
6612 ;;
6613esac
6614 ;;
6615esac
6616fi
6617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6618printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6619
6620file_magic_glob=
6621want_nocaseglob=no
6622if test "$build" = "$host"; then
6623 case $host_os in
6624 mingw* | pw32*)
6625 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6626 want_nocaseglob=yes
6627 else
6628 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6629 fi
6630 ;;
6631 esac
6632fi
6633
6634file_magic_cmd=$lt_cv_file_magic_cmd
6635deplibs_check_method=$lt_cv_deplibs_check_method
6636test -z "$deplibs_check_method" && deplibs_check_method=unknown
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659if test -n "$ac_tool_prefix"; then
6660 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6661set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6663printf %s "checking for $ac_word... " >&6; }
6664if test ${ac_cv_prog_DLLTOOL+y}
6665then :
6666 printf %s "(cached) " >&6
6667else case e in #(
6668 e) if test -n "$DLLTOOL"; then
6669 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6670else
6671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672for as_dir in $PATH
6673do
6674 IFS=$as_save_IFS
6675 case $as_dir in #(((
6676 '') as_dir=./ ;;
6677 */) ;;
6678 *) as_dir=$as_dir/ ;;
6679 esac
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6682 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6684 break 2
6685 fi
6686done
6687 done
6688IFS=$as_save_IFS
6689
6690fi ;;
6691esac
6692fi
6693DLLTOOL=$ac_cv_prog_DLLTOOL
6694if test -n "$DLLTOOL"; then
6695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6696printf "%s\n" "$DLLTOOL" >&6; }
6697else
6698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699printf "%s\n" "no" >&6; }
6700fi
6701
6702
6703fi
6704if test -z "$ac_cv_prog_DLLTOOL"; then
6705 ac_ct_DLLTOOL=$DLLTOOL
6706 # Extract the first word of "dlltool", so it can be a program name with args.
6707set dummy dlltool; ac_word=$2
6708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6709printf %s "checking for $ac_word... " >&6; }
6710if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6711then :
6712 printf %s "(cached) " >&6
6713else case e in #(
6714 e) if test -n "$ac_ct_DLLTOOL"; then
6715 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6716else
6717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718for as_dir in $PATH
6719do
6720 IFS=$as_save_IFS
6721 case $as_dir in #(((
6722 '') as_dir=./ ;;
6723 */) ;;
6724 *) as_dir=$as_dir/ ;;
6725 esac
6726 for ac_exec_ext in '' $ac_executable_extensions; do
6727 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6728 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6730 break 2
6731 fi
6732done
6733 done
6734IFS=$as_save_IFS
6735
6736fi ;;
6737esac
6738fi
6739ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6740if test -n "$ac_ct_DLLTOOL"; then
6741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6742printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6743else
6744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6745printf "%s\n" "no" >&6; }
6746fi
6747
6748 if test "x$ac_ct_DLLTOOL" = x; then
6749 DLLTOOL="false"
6750 else
6751 case $cross_compiling:$ac_tool_warned in
6752yes:)
6753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6754printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6755ac_tool_warned=yes ;;
6756esac
6757 DLLTOOL=$ac_ct_DLLTOOL
6758 fi
6759else
6760 DLLTOOL="$ac_cv_prog_DLLTOOL"
6761fi
6762
6763test -z "$DLLTOOL" && DLLTOOL=dlltool
6764
6765
6766
6767
6768
6769
6770
6771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6772printf %s "checking how to associate runtime and link libraries... " >&6; }
6773if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6774then :
6775 printf %s "(cached) " >&6
6776else case e in #(
6777 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6778
6779case $host_os in
6780cygwin* | mingw* | pw32* | cegcc*)
6781 # two different shell functions defined in ltmain.sh;
6782 # decide which one to use based on capabilities of $DLLTOOL
6783 case `$DLLTOOL --help 2>&1` in
6784 *--identify-strict*)
6785 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6786 ;;
6787 *)
6788 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6789 ;;
6790 esac
6791 ;;
6792*)
6793 # fallback: assume linklib IS sharedlib
6794 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6795 ;;
6796esac
6797 ;;
6798esac
6799fi
6800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6801printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6802sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6803test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6804
6805
6806
6807
6808
6809
6810
6811
6812if test -n "$ac_tool_prefix"; then
6813 for ac_prog in ar
6814 do
6815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6816set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6818printf %s "checking for $ac_word... " >&6; }
6819if test ${ac_cv_prog_AR+y}
6820then :
6821 printf %s "(cached) " >&6
6822else case e in #(
6823 e) if test -n "$AR"; then
6824 ac_cv_prog_AR="$AR" # Let the user override the test.
6825else
6826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827for as_dir in $PATH
6828do
6829 IFS=$as_save_IFS
6830 case $as_dir in #(((
6831 '') as_dir=./ ;;
6832 */) ;;
6833 *) as_dir=$as_dir/ ;;
6834 esac
6835 for ac_exec_ext in '' $ac_executable_extensions; do
6836 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6837 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6838 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6839 break 2
6840 fi
6841done
6842 done
6843IFS=$as_save_IFS
6844
6845fi ;;
6846esac
6847fi
6848AR=$ac_cv_prog_AR
6849if test -n "$AR"; then
6850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6851printf "%s\n" "$AR" >&6; }
6852else
6853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854printf "%s\n" "no" >&6; }
6855fi
6856
6857
6858 test -n "$AR" && break
6859 done
6860fi
6861if test -z "$AR"; then
6862 ac_ct_AR=$AR
6863 for ac_prog in ar
6864do
6865 # Extract the first word of "$ac_prog", so it can be a program name with args.
6866set dummy $ac_prog; ac_word=$2
6867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6868printf %s "checking for $ac_word... " >&6; }
6869if test ${ac_cv_prog_ac_ct_AR+y}
6870then :
6871 printf %s "(cached) " >&6
6872else case e in #(
6873 e) if test -n "$ac_ct_AR"; then
6874 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6875else
6876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877for as_dir in $PATH
6878do
6879 IFS=$as_save_IFS
6880 case $as_dir in #(((
6881 '') as_dir=./ ;;
6882 */) ;;
6883 *) as_dir=$as_dir/ ;;
6884 esac
6885 for ac_exec_ext in '' $ac_executable_extensions; do
6886 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6887 ac_cv_prog_ac_ct_AR="$ac_prog"
6888 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6889 break 2
6890 fi
6891done
6892 done
6893IFS=$as_save_IFS
6894
6895fi ;;
6896esac
6897fi
6898ac_ct_AR=$ac_cv_prog_ac_ct_AR
6899if test -n "$ac_ct_AR"; then
6900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6901printf "%s\n" "$ac_ct_AR" >&6; }
6902else
6903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904printf "%s\n" "no" >&6; }
6905fi
6906
6907
6908 test -n "$ac_ct_AR" && break
6909done
6910
6911 if test "x$ac_ct_AR" = x; then
6912 AR="false"
6913 else
6914 case $cross_compiling:$ac_tool_warned in
6915yes:)
6916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6917printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6918ac_tool_warned=yes ;;
6919esac
6920 AR=$ac_ct_AR
6921 fi
6922fi
6923
6924: ${AR=ar}
6925
6926
6927
6928
6929
6930
6931# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6932# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6933# higher priority because thats what people were doing historically (setting
6934# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6935# variable obsoleted/removed.
6936
6937test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6938lt_ar_flags=$AR_FLAGS
6939
6940
6941
6942
6943
6944
6945# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6946# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6947
6948
6949
6950
6951
6952
6953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6954printf %s "checking for archiver @FILE support... " >&6; }
6955if test ${lt_cv_ar_at_file+y}
6956then :
6957 printf %s "(cached) " >&6
6958else case e in #(
6959 e) lt_cv_ar_at_file=no
6960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6961/* end confdefs.h. */
6962
6963int
6964main (void)
6965{
6966
6967 ;
6968 return 0;
6969}
6970_ACEOF
6971if ac_fn_c_try_compile "$LINENO"
6972then :
6973 echo conftest.$ac_objext > conftest.lst
6974 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6976 (eval $lt_ar_try) 2>&5
6977 ac_status=$?
6978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6979 test $ac_status = 0; }
6980 if test 0 -eq "$ac_status"; then
6981 # Ensure the archiver fails upon bogus file names.
6982 rm -f conftest.$ac_objext libconftest.a
6983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6984 (eval $lt_ar_try) 2>&5
6985 ac_status=$?
6986 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6987 test $ac_status = 0; }
6988 if test 0 -ne "$ac_status"; then
6989 lt_cv_ar_at_file=@
6990 fi
6991 fi
6992 rm -f conftest.* libconftest.a
6993
6994fi
6995rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6996 ;;
6997esac
6998fi
6999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7000printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7001
7002if test no = "$lt_cv_ar_at_file"; then
7003 archiver_list_spec=
7004else
7005 archiver_list_spec=$lt_cv_ar_at_file
7006fi
7007
7008
7009
7010
7011
7012
7013
7014if test -n "$ac_tool_prefix"; then
7015 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7016set dummy ${ac_tool_prefix}strip; ac_word=$2
7017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7018printf %s "checking for $ac_word... " >&6; }
7019if test ${ac_cv_prog_STRIP+y}
7020then :
7021 printf %s "(cached) " >&6
7022else case e in #(
7023 e) if test -n "$STRIP"; then
7024 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7025else
7026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027for as_dir in $PATH
7028do
7029 IFS=$as_save_IFS
7030 case $as_dir in #(((
7031 '') as_dir=./ ;;
7032 */) ;;
7033 *) as_dir=$as_dir/ ;;
7034 esac
7035 for ac_exec_ext in '' $ac_executable_extensions; do
7036 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7037 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7039 break 2
7040 fi
7041done
7042 done
7043IFS=$as_save_IFS
7044
7045fi ;;
7046esac
7047fi
7048STRIP=$ac_cv_prog_STRIP
7049if test -n "$STRIP"; then
7050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7051printf "%s\n" "$STRIP" >&6; }
7052else
7053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7054printf "%s\n" "no" >&6; }
7055fi
7056
7057
7058fi
7059if test -z "$ac_cv_prog_STRIP"; then
7060 ac_ct_STRIP=$STRIP
7061 # Extract the first word of "strip", so it can be a program name with args.
7062set dummy strip; ac_word=$2
7063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7064printf %s "checking for $ac_word... " >&6; }
7065if test ${ac_cv_prog_ac_ct_STRIP+y}
7066then :
7067 printf %s "(cached) " >&6
7068else case e in #(
7069 e) if test -n "$ac_ct_STRIP"; then
7070 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7071else
7072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073for as_dir in $PATH
7074do
7075 IFS=$as_save_IFS
7076 case $as_dir in #(((
7077 '') as_dir=./ ;;
7078 */) ;;
7079 *) as_dir=$as_dir/ ;;
7080 esac
7081 for ac_exec_ext in '' $ac_executable_extensions; do
7082 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7083 ac_cv_prog_ac_ct_STRIP="strip"
7084 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7085 break 2
7086 fi
7087done
7088 done
7089IFS=$as_save_IFS
7090
7091fi ;;
7092esac
7093fi
7094ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7095if test -n "$ac_ct_STRIP"; then
7096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7097printf "%s\n" "$ac_ct_STRIP" >&6; }
7098else
7099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7100printf "%s\n" "no" >&6; }
7101fi
7102
7103 if test "x$ac_ct_STRIP" = x; then
7104 STRIP=":"
7105 else
7106 case $cross_compiling:$ac_tool_warned in
7107yes:)
7108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7109printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7110ac_tool_warned=yes ;;
7111esac
7112 STRIP=$ac_ct_STRIP
7113 fi
7114else
7115 STRIP="$ac_cv_prog_STRIP"
7116fi
7117
7118test -z "$STRIP" && STRIP=:
7119
7120
7121
7122
7123
7124
7125if test -n "$ac_tool_prefix"; then
7126 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7127set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7129printf %s "checking for $ac_word... " >&6; }
7130if test ${ac_cv_prog_RANLIB+y}
7131then :
7132 printf %s "(cached) " >&6
7133else case e in #(
7134 e) if test -n "$RANLIB"; then
7135 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7136else
7137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138for as_dir in $PATH
7139do
7140 IFS=$as_save_IFS
7141 case $as_dir in #(((
7142 '') as_dir=./ ;;
7143 */) ;;
7144 *) as_dir=$as_dir/ ;;
7145 esac
7146 for ac_exec_ext in '' $ac_executable_extensions; do
7147 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7148 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7150 break 2
7151 fi
7152done
7153 done
7154IFS=$as_save_IFS
7155
7156fi ;;
7157esac
7158fi
7159RANLIB=$ac_cv_prog_RANLIB
7160if test -n "$RANLIB"; then
7161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7162printf "%s\n" "$RANLIB" >&6; }
7163else
7164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7165printf "%s\n" "no" >&6; }
7166fi
7167
7168
7169fi
7170if test -z "$ac_cv_prog_RANLIB"; then
7171 ac_ct_RANLIB=$RANLIB
7172 # Extract the first word of "ranlib", so it can be a program name with args.
7173set dummy ranlib; ac_word=$2
7174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7175printf %s "checking for $ac_word... " >&6; }
7176if test ${ac_cv_prog_ac_ct_RANLIB+y}
7177then :
7178 printf %s "(cached) " >&6
7179else case e in #(
7180 e) if test -n "$ac_ct_RANLIB"; then
7181 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7182else
7183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184for as_dir in $PATH
7185do
7186 IFS=$as_save_IFS
7187 case $as_dir in #(((
7188 '') as_dir=./ ;;
7189 */) ;;
7190 *) as_dir=$as_dir/ ;;
7191 esac
7192 for ac_exec_ext in '' $ac_executable_extensions; do
7193 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7194 ac_cv_prog_ac_ct_RANLIB="ranlib"
7195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7196 break 2
7197 fi
7198done
7199 done
7200IFS=$as_save_IFS
7201
7202fi ;;
7203esac
7204fi
7205ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7206if test -n "$ac_ct_RANLIB"; then
7207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7208printf "%s\n" "$ac_ct_RANLIB" >&6; }
7209else
7210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7211printf "%s\n" "no" >&6; }
7212fi
7213
7214 if test "x$ac_ct_RANLIB" = x; then
7215 RANLIB=":"
7216 else
7217 case $cross_compiling:$ac_tool_warned in
7218yes:)
7219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7220printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7221ac_tool_warned=yes ;;
7222esac
7223 RANLIB=$ac_ct_RANLIB
7224 fi
7225else
7226 RANLIB="$ac_cv_prog_RANLIB"
7227fi
7228
7229test -z "$RANLIB" && RANLIB=:
7230
7231
7232
7233
7234
7235
7236# Determine commands to create old-style static archives.
7237old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7238old_postinstall_cmds='chmod 644 $oldlib'
7239old_postuninstall_cmds=
7240
7241if test -n "$RANLIB"; then
7242 case $host_os in
7243 bitrig* | openbsd*)
7244 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7245 ;;
7246 *)
7247 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7248 ;;
7249 esac
7250 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7251fi
7252
7253case $host_os in
7254 darwin*)
7255 lock_old_archive_extraction=yes ;;
7256 *)
7257 lock_old_archive_extraction=no ;;
7258esac
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298# If no C compiler was specified, use CC.
7299LTCC=${LTCC-"$CC"}
7300
7301# If no C compiler flags were specified, use CFLAGS.
7302LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7303
7304# Allow CC to be a program name with arguments.
7305compiler=$CC
7306
7307
7308# Check for command to grab the raw symbol name followed by C symbol from nm.
7309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7310printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7311if test ${lt_cv_sys_global_symbol_pipe+y}
7312then :
7313 printf %s "(cached) " >&6
7314else case e in #(
7315 e)
7316# These are sane defaults that work on at least a few old systems.
7317# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7318
7319# Character class describing NM global symbol codes.
7320symcode='[BCDEGRST]'
7321
7322# Regexp to match symbols that can be accessed directly from C.
7323sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7324
7325# Define system-specific variables.
7326case $host_os in
7327aix*)
7328 symcode='[BCDT]'
7329 ;;
7330cygwin* | mingw* | pw32* | cegcc*)
7331 symcode='[ABCDGISTW]'
7332 ;;
7333hpux*)
7334 if test ia64 = "$host_cpu"; then
7335 symcode='[ABCDEGRST]'
7336 fi
7337 ;;
7338irix* | nonstopux*)
7339 symcode='[BCDEGRST]'
7340 ;;
7341osf*)
7342 symcode='[BCDEGQRST]'
7343 ;;
7344solaris*)
7345 symcode='[BDRT]'
7346 ;;
7347sco3.2v5*)
7348 symcode='[DT]'
7349 ;;
7350sysv4.2uw2*)
7351 symcode='[DT]'
7352 ;;
7353sysv5* | sco5v6* | unixware* | OpenUNIX*)
7354 symcode='[ABDT]'
7355 ;;
7356sysv4)
7357 symcode='[DFNSTU]'
7358 ;;
7359esac
7360
7361# If we're using GNU nm, then use its standard symbol codes.
7362case `$NM -V 2>&1` in
7363*GNU* | *'with BFD'*)
7364 symcode='[ABCDGIRSTW]' ;;
7365esac
7366
7367if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7368 # Gets list of data symbols to import.
7369 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7370 # Adjust the below global symbol transforms to fixup imported variables.
7371 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7372 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7373 lt_c_name_lib_hook="\
7374 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7375 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7376else
7377 # Disable hooks by default.
7378 lt_cv_sys_global_symbol_to_import=
7379 lt_cdecl_hook=
7380 lt_c_name_hook=
7381 lt_c_name_lib_hook=
7382fi
7383
7384# Transform an extracted symbol line into a proper C declaration.
7385# Some systems (esp. on ia64) link data and code symbols differently,
7386# so use this general approach.
7387lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7388$lt_cdecl_hook\
7389" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7390" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7391
7392# Transform an extracted symbol line into symbol name and symbol address
7393lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7394$lt_c_name_hook\
7395" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7396" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7397
7398# Transform an extracted symbol line into symbol name with lib prefix and
7399# symbol address.
7400lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7401$lt_c_name_lib_hook\
7402" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7403" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7404" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7405
7406# Handle CRLF in mingw tool chain
7407opt_cr=
7408case $build_os in
7409mingw*)
7410 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7411 ;;
7412esac
7413
7414# Try without a prefix underscore, then with it.
7415for ac_symprfx in "" "_"; do
7416
7417 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7418 symxfrm="\\1 $ac_symprfx\\2 \\2"
7419
7420 # Write the raw and C identifiers.
7421 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7422 # Fake it for dumpbin and say T for any non-static function,
7423 # D for any global variable and I for any imported variable.
7424 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7425 # which start with @ or ?.
7426 lt_cv_sys_global_symbol_pipe="$AWK '"\
7427" {last_section=section; section=\$ 3};"\
7428" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7429" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7430" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7431" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7432" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7433" \$ 0!~/External *\|/{next};"\
7434" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7435" {if(hide[section]) next};"\
7436" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7437" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7438" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7439" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7440" ' prfx=^$ac_symprfx"
7441 else
7442 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7443 fi
7444 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7445
7446 # Check to see that the pipe works correctly.
7447 pipe_works=no
7448
7449 rm -f conftest*
7450 cat > conftest.$ac_ext <<_LT_EOF
7451#ifdef __cplusplus
7452extern "C" {
7453#endif
7454char nm_test_var;
7455void nm_test_func(void);
7456void nm_test_func(void){}
7457#ifdef __cplusplus
7458}
7459#endif
7460int main(){nm_test_var='a';nm_test_func();return(0);}
7461_LT_EOF
7462
7463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7464 (eval $ac_compile) 2>&5
7465 ac_status=$?
7466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7467 test $ac_status = 0; }; then
7468 # Now try to grab the symbols.
7469 nlist=conftest.nm
7470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7471 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7472 ac_status=$?
7473 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7474 test $ac_status = 0; } && test -s "$nlist"; then
7475 # Try sorting and uniquifying the output.
7476 if sort "$nlist" | uniq > "$nlist"T; then
7477 mv -f "$nlist"T "$nlist"
7478 else
7479 rm -f "$nlist"T
7480 fi
7481
7482 # Make sure that we snagged all the symbols we need.
7483 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7484 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7485 cat <<_LT_EOF > conftest.$ac_ext
7486/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7487#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7488/* DATA imports from DLLs on WIN32 can't be const, because runtime
7489 relocations are performed -- see ld's documentation on pseudo-relocs. */
7490# define LT_DLSYM_CONST
7491#elif defined __osf__
7492/* This system does not cope well with relocations in const data. */
7493# define LT_DLSYM_CONST
7494#else
7495# define LT_DLSYM_CONST const
7496#endif
7497
7498#ifdef __cplusplus
7499extern "C" {
7500#endif
7501
7502_LT_EOF
7503 # Now generate the symbol file.
7504 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7505
7506 cat <<_LT_EOF >> conftest.$ac_ext
7507
7508/* The mapping between symbol names and symbols. */
7509LT_DLSYM_CONST struct {
7510 const char *name;
7511 void *address;
7512}
7513lt__PROGRAM__LTX_preloaded_symbols[] =
7514{
7515 { "@PROGRAM@", (void *) 0 },
7516_LT_EOF
7517 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7518 cat <<\_LT_EOF >> conftest.$ac_ext
7519 {0, (void *) 0}
7520};
7521
7522/* This works around a problem in FreeBSD linker */
7523#ifdef FREEBSD_WORKAROUND
7524static const void *lt_preloaded_setup() {
7525 return lt__PROGRAM__LTX_preloaded_symbols;
7526}
7527#endif
7528
7529#ifdef __cplusplus
7530}
7531#endif
7532_LT_EOF
7533 # Now try linking the two files.
7534 mv conftest.$ac_objext conftstm.$ac_objext
7535 lt_globsym_save_LIBS=$LIBS
7536 lt_globsym_save_CFLAGS=$CFLAGS
7537 LIBS=conftstm.$ac_objext
7538 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7540 (eval $ac_link) 2>&5
7541 ac_status=$?
7542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7543 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7544 pipe_works=yes
7545 fi
7546 LIBS=$lt_globsym_save_LIBS
7547 CFLAGS=$lt_globsym_save_CFLAGS
7548 else
7549 echo "cannot find nm_test_func in $nlist" >&5
7550 fi
7551 else
7552 echo "cannot find nm_test_var in $nlist" >&5
7553 fi
7554 else
7555 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7556 fi
7557 else
7558 echo "$progname: failed program was:" >&5
7559 cat conftest.$ac_ext >&5
7560 fi
7561 rm -rf conftest* conftst*
7562
7563 # Do not use the global_symbol_pipe unless it works.
7564 if test yes = "$pipe_works"; then
7565 break
7566 else
7567 lt_cv_sys_global_symbol_pipe=
7568 fi
7569done
7570 ;;
7571esac
7572fi
7573
7574if test -z "$lt_cv_sys_global_symbol_pipe"; then
7575 lt_cv_sys_global_symbol_to_cdecl=
7576fi
7577if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7579printf "%s\n" "failed" >&6; }
7580else
7581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7582printf "%s\n" "ok" >&6; }
7583fi
7584
7585# Response file support.
7586if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7587 nm_file_list_spec='@'
7588elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7589 nm_file_list_spec='@'
7590fi
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7629printf %s "checking for sysroot... " >&6; }
7630
7631# Check whether --with-sysroot was given.
7632if test ${with_sysroot+y}
7633then :
7634 withval=$with_sysroot;
7635else case e in #(
7636 e) with_sysroot=no ;;
7637esac
7638fi
7639
7640
7641lt_sysroot=
7642case $with_sysroot in #(
7643 yes)
7644 if test yes = "$GCC"; then
7645 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7646 fi
7647 ;; #(
7648 /*)
7649 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7650 ;; #(
7651 no|'')
7652 ;; #(
7653 *)
7654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7655printf "%s\n" "$with_sysroot" >&6; }
7656 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7657 ;;
7658esac
7659
7660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7661printf "%s\n" "${lt_sysroot:-no}" >&6; }
7662
7663
7664
7665
7666
7667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7668printf %s "checking for a working dd... " >&6; }
7669if test ${ac_cv_path_lt_DD+y}
7670then :
7671 printf %s "(cached) " >&6
7672else case e in #(
7673 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7674cat conftest.i conftest.i >conftest2.i
7675: ${lt_DD:=$DD}
7676if test -z "$lt_DD"; then
7677 ac_path_lt_DD_found=false
7678 # Loop through the user's path and test for each of PROGNAME-LIST
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680for as_dir in $PATH
7681do
7682 IFS=$as_save_IFS
7683 case $as_dir in #(((
7684 '') as_dir=./ ;;
7685 */) ;;
7686 *) as_dir=$as_dir/ ;;
7687 esac
7688 for ac_prog in dd
7689 do
7690 for ac_exec_ext in '' $ac_executable_extensions; do
7691 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7692 as_fn_executable_p "$ac_path_lt_DD" || continue
7693if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7694 cmp -s conftest.i conftest.out \
7695 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7696fi
7697 $ac_path_lt_DD_found && break 3
7698 done
7699 done
7700 done
7701IFS=$as_save_IFS
7702 if test -z "$ac_cv_path_lt_DD"; then
7703 :
7704 fi
7705else
7706 ac_cv_path_lt_DD=$lt_DD
7707fi
7708
7709rm -f conftest.i conftest2.i conftest.out ;;
7710esac
7711fi
7712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7713printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7714
7715
7716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7717printf %s "checking how to truncate binary pipes... " >&6; }
7718if test ${lt_cv_truncate_bin+y}
7719then :
7720 printf %s "(cached) " >&6
7721else case e in #(
7722 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7723cat conftest.i conftest.i >conftest2.i
7724lt_cv_truncate_bin=
7725if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7726 cmp -s conftest.i conftest.out \
7727 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7728fi
7729rm -f conftest.i conftest2.i conftest.out
7730test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7731esac
7732fi
7733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7734printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7735
7736
7737
7738
7739
7740
7741
7742# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7743func_cc_basename ()
7744{
7745 for cc_temp in $*""; do
7746 case $cc_temp in
7747 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7748 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7749 \-*) ;;
7750 *) break;;
7751 esac
7752 done
7753 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7754}
7755
7756# Check whether --enable-libtool-lock was given.
7757if test ${enable_libtool_lock+y}
7758then :
7759 enableval=$enable_libtool_lock;
7760fi
7761
7762test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7763
7764# Some flags need to be propagated to the compiler or linker for good
7765# libtool support.
7766case $host in
7767ia64-*-hpux*)
7768 # Find out what ABI is being produced by ac_compile, and set mode
7769 # options accordingly.
7770 echo 'int i;' > conftest.$ac_ext
7771 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7772 (eval $ac_compile) 2>&5
7773 ac_status=$?
7774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7775 test $ac_status = 0; }; then
7776 case `$FILECMD conftest.$ac_objext` in
7777 *ELF-32*)
7778 HPUX_IA64_MODE=32
7779 ;;
7780 *ELF-64*)
7781 HPUX_IA64_MODE=64
7782 ;;
7783 esac
7784 fi
7785 rm -rf conftest*
7786 ;;
7787*-*-irix6*)
7788 # Find out what ABI is being produced by ac_compile, and set linker
7789 # options accordingly.
7790 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7792 (eval $ac_compile) 2>&5
7793 ac_status=$?
7794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7795 test $ac_status = 0; }; then
7796 if test yes = "$lt_cv_prog_gnu_ld"; then
7797 case `$FILECMD conftest.$ac_objext` in
7798 *32-bit*)
7799 LD="${LD-ld} -melf32bsmip"
7800 ;;
7801 *N32*)
7802 LD="${LD-ld} -melf32bmipn32"
7803 ;;
7804 *64-bit*)
7805 LD="${LD-ld} -melf64bmip"
7806 ;;
7807 esac
7808 else
7809 case `$FILECMD conftest.$ac_objext` in
7810 *32-bit*)
7811 LD="${LD-ld} -32"
7812 ;;
7813 *N32*)
7814 LD="${LD-ld} -n32"
7815 ;;
7816 *64-bit*)
7817 LD="${LD-ld} -64"
7818 ;;
7819 esac
7820 fi
7821 fi
7822 rm -rf conftest*
7823 ;;
7824
7825mips64*-*linux*)
7826 # Find out what ABI is being produced by ac_compile, and set linker
7827 # options accordingly.
7828 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7830 (eval $ac_compile) 2>&5
7831 ac_status=$?
7832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7833 test $ac_status = 0; }; then
7834 emul=elf
7835 case `$FILECMD conftest.$ac_objext` in
7836 *32-bit*)
7837 emul="${emul}32"
7838 ;;
7839 *64-bit*)
7840 emul="${emul}64"
7841 ;;
7842 esac
7843 case `$FILECMD conftest.$ac_objext` in
7844 *MSB*)
7845 emul="${emul}btsmip"
7846 ;;
7847 *LSB*)
7848 emul="${emul}ltsmip"
7849 ;;
7850 esac
7851 case `$FILECMD conftest.$ac_objext` in
7852 *N32*)
7853 emul="${emul}n32"
7854 ;;
7855 esac
7856 LD="${LD-ld} -m $emul"
7857 fi
7858 rm -rf conftest*
7859 ;;
7860
7861x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7862s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7863 # Find out what ABI is being produced by ac_compile, and set linker
7864 # options accordingly. Note that the listed cases only cover the
7865 # situations where additional linker options are needed (such as when
7866 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7867 # vice versa); the common cases where no linker options are needed do
7868 # not appear in the list.
7869 echo 'int i;' > conftest.$ac_ext
7870 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7871 (eval $ac_compile) 2>&5
7872 ac_status=$?
7873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7874 test $ac_status = 0; }; then
7875 case `$FILECMD conftest.o` in
7876 *32-bit*)
7877 case $host in
7878 x86_64-*kfreebsd*-gnu)
7879 LD="${LD-ld} -m elf_i386_fbsd"
7880 ;;
7881 x86_64-*linux*)
7882 case `$FILECMD conftest.o` in
7883 *x86-64*)
7884 LD="${LD-ld} -m elf32_x86_64"
7885 ;;
7886 *)
7887 LD="${LD-ld} -m elf_i386"
7888 ;;
7889 esac
7890 ;;
7891 powerpc64le-*linux*)
7892 LD="${LD-ld} -m elf32lppclinux"
7893 ;;
7894 powerpc64-*linux*)
7895 LD="${LD-ld} -m elf32ppclinux"
7896 ;;
7897 s390x-*linux*)
7898 LD="${LD-ld} -m elf_s390"
7899 ;;
7900 sparc64-*linux*)
7901 LD="${LD-ld} -m elf32_sparc"
7902 ;;
7903 esac
7904 ;;
7905 *64-bit*)
7906 case $host in
7907 x86_64-*kfreebsd*-gnu)
7908 LD="${LD-ld} -m elf_x86_64_fbsd"
7909 ;;
7910 x86_64-*linux*)
7911 LD="${LD-ld} -m elf_x86_64"
7912 ;;
7913 powerpcle-*linux*)
7914 LD="${LD-ld} -m elf64lppc"
7915 ;;
7916 powerpc-*linux*)
7917 LD="${LD-ld} -m elf64ppc"
7918 ;;
7919 s390*-*linux*|s390*-*tpf*)
7920 LD="${LD-ld} -m elf64_s390"
7921 ;;
7922 sparc*-*linux*)
7923 LD="${LD-ld} -m elf64_sparc"
7924 ;;
7925 esac
7926 ;;
7927 esac
7928 fi
7929 rm -rf conftest*
7930 ;;
7931
7932*-*-sco3.2v5*)
7933 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7934 SAVE_CFLAGS=$CFLAGS
7935 CFLAGS="$CFLAGS -belf"
7936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7937printf %s "checking whether the C compiler needs -belf... " >&6; }
7938if test ${lt_cv_cc_needs_belf+y}
7939then :
7940 printf %s "(cached) " >&6
7941else case e in #(
7942 e) ac_ext=c
7943ac_cpp='$CPP $CPPFLAGS'
7944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7946ac_compiler_gnu=$ac_cv_c_compiler_gnu
7947
7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949/* end confdefs.h. */
7950
7951int
7952main (void)
7953{
7954
7955 ;
7956 return 0;
7957}
7958_ACEOF
7959if ac_fn_c_try_link "$LINENO"
7960then :
7961 lt_cv_cc_needs_belf=yes
7962else case e in #(
7963 e) lt_cv_cc_needs_belf=no ;;
7964esac
7965fi
7966rm -f core conftest.err conftest.$ac_objext conftest.beam \
7967 conftest$ac_exeext conftest.$ac_ext
7968 ac_ext=c
7969ac_cpp='$CPP $CPPFLAGS'
7970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7972ac_compiler_gnu=$ac_cv_c_compiler_gnu
7973 ;;
7974esac
7975fi
7976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7977printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7978 if test yes != "$lt_cv_cc_needs_belf"; then
7979 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7980 CFLAGS=$SAVE_CFLAGS
7981 fi
7982 ;;
7983*-*solaris*)
7984 # Find out what ABI is being produced by ac_compile, and set linker
7985 # options accordingly.
7986 echo 'int i;' > conftest.$ac_ext
7987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7988 (eval $ac_compile) 2>&5
7989 ac_status=$?
7990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7991 test $ac_status = 0; }; then
7992 case `$FILECMD conftest.o` in
7993 *64-bit*)
7994 case $lt_cv_prog_gnu_ld in
7995 yes*)
7996 case $host in
7997 i?86-*-solaris*|x86_64-*-solaris*)
7998 LD="${LD-ld} -m elf_x86_64"
7999 ;;
8000 sparc*-*-solaris*)
8001 LD="${LD-ld} -m elf64_sparc"
8002 ;;
8003 esac
8004 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8005 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8006 LD=${LD-ld}_sol2
8007 fi
8008 ;;
8009 *)
8010 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8011 LD="${LD-ld} -64"
8012 fi
8013 ;;
8014 esac
8015 ;;
8016 esac
8017 fi
8018 rm -rf conftest*
8019 ;;
8020esac
8021
8022need_locks=$enable_libtool_lock
8023
8024if test -n "$ac_tool_prefix"; then
8025 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8026set dummy ${ac_tool_prefix}mt; ac_word=$2
8027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8028printf %s "checking for $ac_word... " >&6; }
8029if test ${ac_cv_prog_MANIFEST_TOOL+y}
8030then :
8031 printf %s "(cached) " >&6
8032else case e in #(
8033 e) if test -n "$MANIFEST_TOOL"; then
8034 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8035else
8036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8037for as_dir in $PATH
8038do
8039 IFS=$as_save_IFS
8040 case $as_dir in #(((
8041 '') as_dir=./ ;;
8042 */) ;;
8043 *) as_dir=$as_dir/ ;;
8044 esac
8045 for ac_exec_ext in '' $ac_executable_extensions; do
8046 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8047 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8049 break 2
8050 fi
8051done
8052 done
8053IFS=$as_save_IFS
8054
8055fi ;;
8056esac
8057fi
8058MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8059if test -n "$MANIFEST_TOOL"; then
8060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8061printf "%s\n" "$MANIFEST_TOOL" >&6; }
8062else
8063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8064printf "%s\n" "no" >&6; }
8065fi
8066
8067
8068fi
8069if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8070 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8071 # Extract the first word of "mt", so it can be a program name with args.
8072set dummy mt; ac_word=$2
8073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8074printf %s "checking for $ac_word... " >&6; }
8075if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8076then :
8077 printf %s "(cached) " >&6
8078else case e in #(
8079 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8080 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8081else
8082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8083for as_dir in $PATH
8084do
8085 IFS=$as_save_IFS
8086 case $as_dir in #(((
8087 '') as_dir=./ ;;
8088 */) ;;
8089 *) as_dir=$as_dir/ ;;
8090 esac
8091 for ac_exec_ext in '' $ac_executable_extensions; do
8092 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8093 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8094 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8095 break 2
8096 fi
8097done
8098 done
8099IFS=$as_save_IFS
8100
8101fi ;;
8102esac
8103fi
8104ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8105if test -n "$ac_ct_MANIFEST_TOOL"; then
8106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8107printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8108else
8109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8110printf "%s\n" "no" >&6; }
8111fi
8112
8113 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8114 MANIFEST_TOOL=":"
8115 else
8116 case $cross_compiling:$ac_tool_warned in
8117yes:)
8118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8119printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8120ac_tool_warned=yes ;;
8121esac
8122 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8123 fi
8124else
8125 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8126fi
8127
8128test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8130printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8131if test ${lt_cv_path_mainfest_tool+y}
8132then :
8133 printf %s "(cached) " >&6
8134else case e in #(
8135 e) lt_cv_path_mainfest_tool=no
8136 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8137 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8138 cat conftest.err >&5
8139 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8140 lt_cv_path_mainfest_tool=yes
8141 fi
8142 rm -f conftest* ;;
8143esac
8144fi
8145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8146printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8147if test yes != "$lt_cv_path_mainfest_tool"; then
8148 MANIFEST_TOOL=:
8149fi
8150
8151
8152
8153
8154
8155
8156 case $host_os in
8157 rhapsody* | darwin*)
8158 if test -n "$ac_tool_prefix"; then
8159 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8160set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8162printf %s "checking for $ac_word... " >&6; }
8163if test ${ac_cv_prog_DSYMUTIL+y}
8164then :
8165 printf %s "(cached) " >&6
8166else case e in #(
8167 e) if test -n "$DSYMUTIL"; then
8168 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8169else
8170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8171for as_dir in $PATH
8172do
8173 IFS=$as_save_IFS
8174 case $as_dir in #(((
8175 '') as_dir=./ ;;
8176 */) ;;
8177 *) as_dir=$as_dir/ ;;
8178 esac
8179 for ac_exec_ext in '' $ac_executable_extensions; do
8180 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8181 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8182 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8183 break 2
8184 fi
8185done
8186 done
8187IFS=$as_save_IFS
8188
8189fi ;;
8190esac
8191fi
8192DSYMUTIL=$ac_cv_prog_DSYMUTIL
8193if test -n "$DSYMUTIL"; then
8194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8195printf "%s\n" "$DSYMUTIL" >&6; }
8196else
8197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8198printf "%s\n" "no" >&6; }
8199fi
8200
8201
8202fi
8203if test -z "$ac_cv_prog_DSYMUTIL"; then
8204 ac_ct_DSYMUTIL=$DSYMUTIL
8205 # Extract the first word of "dsymutil", so it can be a program name with args.
8206set dummy dsymutil; ac_word=$2
8207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8208printf %s "checking for $ac_word... " >&6; }
8209if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8210then :
8211 printf %s "(cached) " >&6
8212else case e in #(
8213 e) if test -n "$ac_ct_DSYMUTIL"; then
8214 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8215else
8216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8217for as_dir in $PATH
8218do
8219 IFS=$as_save_IFS
8220 case $as_dir in #(((
8221 '') as_dir=./ ;;
8222 */) ;;
8223 *) as_dir=$as_dir/ ;;
8224 esac
8225 for ac_exec_ext in '' $ac_executable_extensions; do
8226 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8227 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8228 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8229 break 2
8230 fi
8231done
8232 done
8233IFS=$as_save_IFS
8234
8235fi ;;
8236esac
8237fi
8238ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8239if test -n "$ac_ct_DSYMUTIL"; then
8240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8241printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8242else
8243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8244printf "%s\n" "no" >&6; }
8245fi
8246
8247 if test "x$ac_ct_DSYMUTIL" = x; then
8248 DSYMUTIL=":"
8249 else
8250 case $cross_compiling:$ac_tool_warned in
8251yes:)
8252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8253printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8254ac_tool_warned=yes ;;
8255esac
8256 DSYMUTIL=$ac_ct_DSYMUTIL
8257 fi
8258else
8259 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8260fi
8261
8262 if test -n "$ac_tool_prefix"; then
8263 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8264set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8266printf %s "checking for $ac_word... " >&6; }
8267if test ${ac_cv_prog_NMEDIT+y}
8268then :
8269 printf %s "(cached) " >&6
8270else case e in #(
8271 e) if test -n "$NMEDIT"; then
8272 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8273else
8274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8275for as_dir in $PATH
8276do
8277 IFS=$as_save_IFS
8278 case $as_dir in #(((
8279 '') as_dir=./ ;;
8280 */) ;;
8281 *) as_dir=$as_dir/ ;;
8282 esac
8283 for ac_exec_ext in '' $ac_executable_extensions; do
8284 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8285 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8286 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8287 break 2
8288 fi
8289done
8290 done
8291IFS=$as_save_IFS
8292
8293fi ;;
8294esac
8295fi
8296NMEDIT=$ac_cv_prog_NMEDIT
8297if test -n "$NMEDIT"; then
8298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8299printf "%s\n" "$NMEDIT" >&6; }
8300else
8301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8302printf "%s\n" "no" >&6; }
8303fi
8304
8305
8306fi
8307if test -z "$ac_cv_prog_NMEDIT"; then
8308 ac_ct_NMEDIT=$NMEDIT
8309 # Extract the first word of "nmedit", so it can be a program name with args.
8310set dummy nmedit; ac_word=$2
8311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8312printf %s "checking for $ac_word... " >&6; }
8313if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8314then :
8315 printf %s "(cached) " >&6
8316else case e in #(
8317 e) if test -n "$ac_ct_NMEDIT"; then
8318 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8319else
8320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8321for as_dir in $PATH
8322do
8323 IFS=$as_save_IFS
8324 case $as_dir in #(((
8325 '') as_dir=./ ;;
8326 */) ;;
8327 *) as_dir=$as_dir/ ;;
8328 esac
8329 for ac_exec_ext in '' $ac_executable_extensions; do
8330 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8331 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8332 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8333 break 2
8334 fi
8335done
8336 done
8337IFS=$as_save_IFS
8338
8339fi ;;
8340esac
8341fi
8342ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8343if test -n "$ac_ct_NMEDIT"; then
8344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8345printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8346else
8347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8348printf "%s\n" "no" >&6; }
8349fi
8350
8351 if test "x$ac_ct_NMEDIT" = x; then
8352 NMEDIT=":"
8353 else
8354 case $cross_compiling:$ac_tool_warned in
8355yes:)
8356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8357printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8358ac_tool_warned=yes ;;
8359esac
8360 NMEDIT=$ac_ct_NMEDIT
8361 fi
8362else
8363 NMEDIT="$ac_cv_prog_NMEDIT"
8364fi
8365
8366 if test -n "$ac_tool_prefix"; then
8367 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8368set dummy ${ac_tool_prefix}lipo; ac_word=$2
8369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8370printf %s "checking for $ac_word... " >&6; }
8371if test ${ac_cv_prog_LIPO+y}
8372then :
8373 printf %s "(cached) " >&6
8374else case e in #(
8375 e) if test -n "$LIPO"; then
8376 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8377else
8378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8379for as_dir in $PATH
8380do
8381 IFS=$as_save_IFS
8382 case $as_dir in #(((
8383 '') as_dir=./ ;;
8384 */) ;;
8385 *) as_dir=$as_dir/ ;;
8386 esac
8387 for ac_exec_ext in '' $ac_executable_extensions; do
8388 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8389 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8391 break 2
8392 fi
8393done
8394 done
8395IFS=$as_save_IFS
8396
8397fi ;;
8398esac
8399fi
8400LIPO=$ac_cv_prog_LIPO
8401if test -n "$LIPO"; then
8402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8403printf "%s\n" "$LIPO" >&6; }
8404else
8405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8406printf "%s\n" "no" >&6; }
8407fi
8408
8409
8410fi
8411if test -z "$ac_cv_prog_LIPO"; then
8412 ac_ct_LIPO=$LIPO
8413 # Extract the first word of "lipo", so it can be a program name with args.
8414set dummy lipo; ac_word=$2
8415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8416printf %s "checking for $ac_word... " >&6; }
8417if test ${ac_cv_prog_ac_ct_LIPO+y}
8418then :
8419 printf %s "(cached) " >&6
8420else case e in #(
8421 e) if test -n "$ac_ct_LIPO"; then
8422 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8423else
8424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8425for as_dir in $PATH
8426do
8427 IFS=$as_save_IFS
8428 case $as_dir in #(((
8429 '') as_dir=./ ;;
8430 */) ;;
8431 *) as_dir=$as_dir/ ;;
8432 esac
8433 for ac_exec_ext in '' $ac_executable_extensions; do
8434 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8435 ac_cv_prog_ac_ct_LIPO="lipo"
8436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8437 break 2
8438 fi
8439done
8440 done
8441IFS=$as_save_IFS
8442
8443fi ;;
8444esac
8445fi
8446ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8447if test -n "$ac_ct_LIPO"; then
8448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8449printf "%s\n" "$ac_ct_LIPO" >&6; }
8450else
8451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8452printf "%s\n" "no" >&6; }
8453fi
8454
8455 if test "x$ac_ct_LIPO" = x; then
8456 LIPO=":"
8457 else
8458 case $cross_compiling:$ac_tool_warned in
8459yes:)
8460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8461printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8462ac_tool_warned=yes ;;
8463esac
8464 LIPO=$ac_ct_LIPO
8465 fi
8466else
8467 LIPO="$ac_cv_prog_LIPO"
8468fi
8469
8470 if test -n "$ac_tool_prefix"; then
8471 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8472set dummy ${ac_tool_prefix}otool; ac_word=$2
8473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8474printf %s "checking for $ac_word... " >&6; }
8475if test ${ac_cv_prog_OTOOL+y}
8476then :
8477 printf %s "(cached) " >&6
8478else case e in #(
8479 e) if test -n "$OTOOL"; then
8480 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8481else
8482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8483for as_dir in $PATH
8484do
8485 IFS=$as_save_IFS
8486 case $as_dir in #(((
8487 '') as_dir=./ ;;
8488 */) ;;
8489 *) as_dir=$as_dir/ ;;
8490 esac
8491 for ac_exec_ext in '' $ac_executable_extensions; do
8492 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8493 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8495 break 2
8496 fi
8497done
8498 done
8499IFS=$as_save_IFS
8500
8501fi ;;
8502esac
8503fi
8504OTOOL=$ac_cv_prog_OTOOL
8505if test -n "$OTOOL"; then
8506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8507printf "%s\n" "$OTOOL" >&6; }
8508else
8509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8510printf "%s\n" "no" >&6; }
8511fi
8512
8513
8514fi
8515if test -z "$ac_cv_prog_OTOOL"; then
8516 ac_ct_OTOOL=$OTOOL
8517 # Extract the first word of "otool", so it can be a program name with args.
8518set dummy otool; ac_word=$2
8519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8520printf %s "checking for $ac_word... " >&6; }
8521if test ${ac_cv_prog_ac_ct_OTOOL+y}
8522then :
8523 printf %s "(cached) " >&6
8524else case e in #(
8525 e) if test -n "$ac_ct_OTOOL"; then
8526 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8527else
8528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8529for as_dir in $PATH
8530do
8531 IFS=$as_save_IFS
8532 case $as_dir in #(((
8533 '') as_dir=./ ;;
8534 */) ;;
8535 *) as_dir=$as_dir/ ;;
8536 esac
8537 for ac_exec_ext in '' $ac_executable_extensions; do
8538 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8539 ac_cv_prog_ac_ct_OTOOL="otool"
8540 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8541 break 2
8542 fi
8543done
8544 done
8545IFS=$as_save_IFS
8546
8547fi ;;
8548esac
8549fi
8550ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8551if test -n "$ac_ct_OTOOL"; then
8552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8553printf "%s\n" "$ac_ct_OTOOL" >&6; }
8554else
8555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8556printf "%s\n" "no" >&6; }
8557fi
8558
8559 if test "x$ac_ct_OTOOL" = x; then
8560 OTOOL=":"
8561 else
8562 case $cross_compiling:$ac_tool_warned in
8563yes:)
8564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8565printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8566ac_tool_warned=yes ;;
8567esac
8568 OTOOL=$ac_ct_OTOOL
8569 fi
8570else
8571 OTOOL="$ac_cv_prog_OTOOL"
8572fi
8573
8574 if test -n "$ac_tool_prefix"; then
8575 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8576set dummy ${ac_tool_prefix}otool64; ac_word=$2
8577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8578printf %s "checking for $ac_word... " >&6; }
8579if test ${ac_cv_prog_OTOOL64+y}
8580then :
8581 printf %s "(cached) " >&6
8582else case e in #(
8583 e) if test -n "$OTOOL64"; then
8584 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8585else
8586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8587for as_dir in $PATH
8588do
8589 IFS=$as_save_IFS
8590 case $as_dir in #(((
8591 '') as_dir=./ ;;
8592 */) ;;
8593 *) as_dir=$as_dir/ ;;
8594 esac
8595 for ac_exec_ext in '' $ac_executable_extensions; do
8596 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8597 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8599 break 2
8600 fi
8601done
8602 done
8603IFS=$as_save_IFS
8604
8605fi ;;
8606esac
8607fi
8608OTOOL64=$ac_cv_prog_OTOOL64
8609if test -n "$OTOOL64"; then
8610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8611printf "%s\n" "$OTOOL64" >&6; }
8612else
8613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8614printf "%s\n" "no" >&6; }
8615fi
8616
8617
8618fi
8619if test -z "$ac_cv_prog_OTOOL64"; then
8620 ac_ct_OTOOL64=$OTOOL64
8621 # Extract the first word of "otool64", so it can be a program name with args.
8622set dummy otool64; ac_word=$2
8623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8624printf %s "checking for $ac_word... " >&6; }
8625if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8626then :
8627 printf %s "(cached) " >&6
8628else case e in #(
8629 e) if test -n "$ac_ct_OTOOL64"; then
8630 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8631else
8632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8633for as_dir in $PATH
8634do
8635 IFS=$as_save_IFS
8636 case $as_dir in #(((
8637 '') as_dir=./ ;;
8638 */) ;;
8639 *) as_dir=$as_dir/ ;;
8640 esac
8641 for ac_exec_ext in '' $ac_executable_extensions; do
8642 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8643 ac_cv_prog_ac_ct_OTOOL64="otool64"
8644 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8645 break 2
8646 fi
8647done
8648 done
8649IFS=$as_save_IFS
8650
8651fi ;;
8652esac
8653fi
8654ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8655if test -n "$ac_ct_OTOOL64"; then
8656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8657printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8658else
8659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8660printf "%s\n" "no" >&6; }
8661fi
8662
8663 if test "x$ac_ct_OTOOL64" = x; then
8664 OTOOL64=":"
8665 else
8666 case $cross_compiling:$ac_tool_warned in
8667yes:)
8668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8669printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8670ac_tool_warned=yes ;;
8671esac
8672 OTOOL64=$ac_ct_OTOOL64
8673 fi
8674else
8675 OTOOL64="$ac_cv_prog_OTOOL64"
8676fi
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8705printf %s "checking for -single_module linker flag... " >&6; }
8706if test ${lt_cv_apple_cc_single_mod+y}
8707then :
8708 printf %s "(cached) " >&6
8709else case e in #(
8710 e) lt_cv_apple_cc_single_mod=no
8711 if test -z "$LT_MULTI_MODULE"; then
8712 # By default we will add the -single_module flag. You can override
8713 # by either setting the environment variable LT_MULTI_MODULE
8714 # non-empty at configure time, or by adding -multi_module to the
8715 # link flags.
8716 rm -rf libconftest.dylib*
8717 echo "int foo(void){return 1;}" > conftest.c
8718 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8719-dynamiclib -Wl,-single_module conftest.c" >&5
8720 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8721 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8722 _lt_result=$?
8723 # If there is a non-empty error log, and "single_module"
8724 # appears in it, assume the flag caused a linker warning
8725 if test -s conftest.err && $GREP single_module conftest.err; then
8726 cat conftest.err >&5
8727 # Otherwise, if the output was created with a 0 exit code from
8728 # the compiler, it worked.
8729 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8730 lt_cv_apple_cc_single_mod=yes
8731 else
8732 cat conftest.err >&5
8733 fi
8734 rm -rf libconftest.dylib*
8735 rm -f conftest.*
8736 fi ;;
8737esac
8738fi
8739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8740printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8741
8742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8743printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8744if test ${lt_cv_ld_exported_symbols_list+y}
8745then :
8746 printf %s "(cached) " >&6
8747else case e in #(
8748 e) lt_cv_ld_exported_symbols_list=no
8749 save_LDFLAGS=$LDFLAGS
8750 echo "_main" > conftest.sym
8751 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8753/* end confdefs.h. */
8754
8755int
8756main (void)
8757{
8758
8759 ;
8760 return 0;
8761}
8762_ACEOF
8763if ac_fn_c_try_link "$LINENO"
8764then :
8765 lt_cv_ld_exported_symbols_list=yes
8766else case e in #(
8767 e) lt_cv_ld_exported_symbols_list=no ;;
8768esac
8769fi
8770rm -f core conftest.err conftest.$ac_objext conftest.beam \
8771 conftest$ac_exeext conftest.$ac_ext
8772 LDFLAGS=$save_LDFLAGS
8773 ;;
8774esac
8775fi
8776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8777printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8778
8779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8780printf %s "checking for -force_load linker flag... " >&6; }
8781if test ${lt_cv_ld_force_load+y}
8782then :
8783 printf %s "(cached) " >&6
8784else case e in #(
8785 e) lt_cv_ld_force_load=no
8786 cat > conftest.c << _LT_EOF
8787int forced_loaded() { return 2;}
8788_LT_EOF
8789 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8790 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8791 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8792 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8793 echo "$RANLIB libconftest.a" >&5
8794 $RANLIB libconftest.a 2>&5
8795 cat > conftest.c << _LT_EOF
8796int main() { return 0;}
8797_LT_EOF
8798 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8799 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8800 _lt_result=$?
8801 if test -s conftest.err && $GREP force_load conftest.err; then
8802 cat conftest.err >&5
8803 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8804 lt_cv_ld_force_load=yes
8805 else
8806 cat conftest.err >&5
8807 fi
8808 rm -f conftest.err libconftest.a conftest conftest.c
8809 rm -rf conftest.dSYM
8810 ;;
8811esac
8812fi
8813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8814printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8815 case $host_os in
8816 rhapsody* | darwin1.[012])
8817 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8818 darwin1.*)
8819 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8820 darwin*)
8821 case $MACOSX_DEPLOYMENT_TARGET,$host in
8822 10.[012],*|,*powerpc*-darwin[5-8]*)
8823 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8824 *)
8825 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8826 esac
8827 ;;
8828 esac
8829 if test yes = "$lt_cv_apple_cc_single_mod"; then
8830 _lt_dar_single_mod='$single_module'
8831 fi
8832 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8833 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8834 else
8835 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8836 fi
8837 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8838 _lt_dsymutil='~$DSYMUTIL $lib || :'
8839 else
8840 _lt_dsymutil=
8841 fi
8842 ;;
8843 esac
8844
8845# func_munge_path_list VARIABLE PATH
8846# -----------------------------------
8847# VARIABLE is name of variable containing _space_ separated list of
8848# directories to be munged by the contents of PATH, which is string
8849# having a format:
8850# "DIR[:DIR]:"
8851# string "DIR[ DIR]" will be prepended to VARIABLE
8852# ":DIR[:DIR]"
8853# string "DIR[ DIR]" will be appended to VARIABLE
8854# "DIRP[:DIRP]::[DIRA:]DIRA"
8855# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8856# "DIRA[ DIRA]" will be appended to VARIABLE
8857# "DIR[:DIR]"
8858# VARIABLE will be replaced by "DIR[ DIR]"
8859func_munge_path_list ()
8860{
8861 case x$2 in
8862 x)
8863 ;;
8864 *:)
8865 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8866 ;;
8867 x:*)
8868 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8869 ;;
8870 *::*)
8871 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8872 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8873 ;;
8874 *)
8875 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8876 ;;
8877 esac
8878}
8879
8880ac_header= ac_cache=
8881for ac_item in $ac_header_c_list
8882do
8883 if test $ac_cache; then
8884 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8885 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8886 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8887 fi
8888 ac_header= ac_cache=
8889 elif test $ac_header; then
8890 ac_cache=$ac_item
8891 else
8892 ac_header=$ac_item
8893 fi
8894done
8895
8896
8897
8898
8899
8900
8901
8902
8903if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8904then :
8905
8906printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8907
8908fi
8909ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8910"
8911if test "x$ac_cv_header_dlfcn_h" = xyes
8912then :
8913 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8914
8915fi
8916
8917
8918
8919
8920
8921# Set options
8922enable_win32_dll=yes
8923
8924case $host in
8925*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8926 if test -n "$ac_tool_prefix"; then
8927 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8928set dummy ${ac_tool_prefix}as; ac_word=$2
8929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8930printf %s "checking for $ac_word... " >&6; }
8931if test ${ac_cv_prog_AS+y}
8932then :
8933 printf %s "(cached) " >&6
8934else case e in #(
8935 e) if test -n "$AS"; then
8936 ac_cv_prog_AS="$AS" # Let the user override the test.
8937else
8938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8939for as_dir in $PATH
8940do
8941 IFS=$as_save_IFS
8942 case $as_dir in #(((
8943 '') as_dir=./ ;;
8944 */) ;;
8945 *) as_dir=$as_dir/ ;;
8946 esac
8947 for ac_exec_ext in '' $ac_executable_extensions; do
8948 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8949 ac_cv_prog_AS="${ac_tool_prefix}as"
8950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8951 break 2
8952 fi
8953done
8954 done
8955IFS=$as_save_IFS
8956
8957fi ;;
8958esac
8959fi
8960AS=$ac_cv_prog_AS
8961if test -n "$AS"; then
8962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8963printf "%s\n" "$AS" >&6; }
8964else
8965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8966printf "%s\n" "no" >&6; }
8967fi
8968
8969
8970fi
8971if test -z "$ac_cv_prog_AS"; then
8972 ac_ct_AS=$AS
8973 # Extract the first word of "as", so it can be a program name with args.
8974set dummy as; ac_word=$2
8975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8976printf %s "checking for $ac_word... " >&6; }
8977if test ${ac_cv_prog_ac_ct_AS+y}
8978then :
8979 printf %s "(cached) " >&6
8980else case e in #(
8981 e) if test -n "$ac_ct_AS"; then
8982 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8983else
8984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8985for as_dir in $PATH
8986do
8987 IFS=$as_save_IFS
8988 case $as_dir in #(((
8989 '') as_dir=./ ;;
8990 */) ;;
8991 *) as_dir=$as_dir/ ;;
8992 esac
8993 for ac_exec_ext in '' $ac_executable_extensions; do
8994 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8995 ac_cv_prog_ac_ct_AS="as"
8996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8997 break 2
8998 fi
8999done
9000 done
9001IFS=$as_save_IFS
9002
9003fi ;;
9004esac
9005fi
9006ac_ct_AS=$ac_cv_prog_ac_ct_AS
9007if test -n "$ac_ct_AS"; then
9008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9009printf "%s\n" "$ac_ct_AS" >&6; }
9010else
9011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9012printf "%s\n" "no" >&6; }
9013fi
9014
9015 if test "x$ac_ct_AS" = x; then
9016 AS="false"
9017 else
9018 case $cross_compiling:$ac_tool_warned in
9019yes:)
9020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9021printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9022ac_tool_warned=yes ;;
9023esac
9024 AS=$ac_ct_AS
9025 fi
9026else
9027 AS="$ac_cv_prog_AS"
9028fi
9029
9030 if test -n "$ac_tool_prefix"; then
9031 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9032set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9034printf %s "checking for $ac_word... " >&6; }
9035if test ${ac_cv_prog_DLLTOOL+y}
9036then :
9037 printf %s "(cached) " >&6
9038else case e in #(
9039 e) if test -n "$DLLTOOL"; then
9040 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9041else
9042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9043for as_dir in $PATH
9044do
9045 IFS=$as_save_IFS
9046 case $as_dir in #(((
9047 '') as_dir=./ ;;
9048 */) ;;
9049 *) as_dir=$as_dir/ ;;
9050 esac
9051 for ac_exec_ext in '' $ac_executable_extensions; do
9052 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9053 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9055 break 2
9056 fi
9057done
9058 done
9059IFS=$as_save_IFS
9060
9061fi ;;
9062esac
9063fi
9064DLLTOOL=$ac_cv_prog_DLLTOOL
9065if test -n "$DLLTOOL"; then
9066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9067printf "%s\n" "$DLLTOOL" >&6; }
9068else
9069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9070printf "%s\n" "no" >&6; }
9071fi
9072
9073
9074fi
9075if test -z "$ac_cv_prog_DLLTOOL"; then
9076 ac_ct_DLLTOOL=$DLLTOOL
9077 # Extract the first word of "dlltool", so it can be a program name with args.
9078set dummy dlltool; ac_word=$2
9079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9080printf %s "checking for $ac_word... " >&6; }
9081if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9082then :
9083 printf %s "(cached) " >&6
9084else case e in #(
9085 e) if test -n "$ac_ct_DLLTOOL"; then
9086 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9087else
9088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9089for as_dir in $PATH
9090do
9091 IFS=$as_save_IFS
9092 case $as_dir in #(((
9093 '') as_dir=./ ;;
9094 */) ;;
9095 *) as_dir=$as_dir/ ;;
9096 esac
9097 for ac_exec_ext in '' $ac_executable_extensions; do
9098 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9099 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9101 break 2
9102 fi
9103done
9104 done
9105IFS=$as_save_IFS
9106
9107fi ;;
9108esac
9109fi
9110ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9111if test -n "$ac_ct_DLLTOOL"; then
9112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9113printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9114else
9115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9116printf "%s\n" "no" >&6; }
9117fi
9118
9119 if test "x$ac_ct_DLLTOOL" = x; then
9120 DLLTOOL="false"
9121 else
9122 case $cross_compiling:$ac_tool_warned in
9123yes:)
9124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9125printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9126ac_tool_warned=yes ;;
9127esac
9128 DLLTOOL=$ac_ct_DLLTOOL
9129 fi
9130else
9131 DLLTOOL="$ac_cv_prog_DLLTOOL"
9132fi
9133
9134 if test -n "$ac_tool_prefix"; then
9135 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9136set dummy ${ac_tool_prefix}objdump; ac_word=$2
9137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9138printf %s "checking for $ac_word... " >&6; }
9139if test ${ac_cv_prog_OBJDUMP+y}
9140then :
9141 printf %s "(cached) " >&6
9142else case e in #(
9143 e) if test -n "$OBJDUMP"; then
9144 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9145else
9146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9147for as_dir in $PATH
9148do
9149 IFS=$as_save_IFS
9150 case $as_dir in #(((
9151 '') as_dir=./ ;;
9152 */) ;;
9153 *) as_dir=$as_dir/ ;;
9154 esac
9155 for ac_exec_ext in '' $ac_executable_extensions; do
9156 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9157 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9158 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9159 break 2
9160 fi
9161done
9162 done
9163IFS=$as_save_IFS
9164
9165fi ;;
9166esac
9167fi
9168OBJDUMP=$ac_cv_prog_OBJDUMP
9169if test -n "$OBJDUMP"; then
9170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9171printf "%s\n" "$OBJDUMP" >&6; }
9172else
9173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9174printf "%s\n" "no" >&6; }
9175fi
9176
9177
9178fi
9179if test -z "$ac_cv_prog_OBJDUMP"; then
9180 ac_ct_OBJDUMP=$OBJDUMP
9181 # Extract the first word of "objdump", so it can be a program name with args.
9182set dummy objdump; ac_word=$2
9183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9184printf %s "checking for $ac_word... " >&6; }
9185if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9186then :
9187 printf %s "(cached) " >&6
9188else case e in #(
9189 e) if test -n "$ac_ct_OBJDUMP"; then
9190 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9191else
9192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9193for as_dir in $PATH
9194do
9195 IFS=$as_save_IFS
9196 case $as_dir in #(((
9197 '') as_dir=./ ;;
9198 */) ;;
9199 *) as_dir=$as_dir/ ;;
9200 esac
9201 for ac_exec_ext in '' $ac_executable_extensions; do
9202 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9203 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9205 break 2
9206 fi
9207done
9208 done
9209IFS=$as_save_IFS
9210
9211fi ;;
9212esac
9213fi
9214ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9215if test -n "$ac_ct_OBJDUMP"; then
9216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9217printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9218else
9219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9220printf "%s\n" "no" >&6; }
9221fi
9222
9223 if test "x$ac_ct_OBJDUMP" = x; then
9224 OBJDUMP="false"
9225 else
9226 case $cross_compiling:$ac_tool_warned in
9227yes:)
9228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9229printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9230ac_tool_warned=yes ;;
9231esac
9232 OBJDUMP=$ac_ct_OBJDUMP
9233 fi
9234else
9235 OBJDUMP="$ac_cv_prog_OBJDUMP"
9236fi
9237
9238 ;;
9239esac
9240
9241test -z "$AS" && AS=as
9242
9243
9244
9245
9246
9247test -z "$DLLTOOL" && DLLTOOL=dlltool
9248
9249
9250
9251
9252
9253test -z "$OBJDUMP" && OBJDUMP=objdump
9254
9255
9256
9257
9258
9259
9260
9261 enable_dlopen=no
9262
9263
9264
9265 # Check whether --enable-shared was given.
9266if test ${enable_shared+y}
9267then :
9268 enableval=$enable_shared; p=${PACKAGE-default}
9269 case $enableval in
9270 yes) enable_shared=yes ;;
9271 no) enable_shared=no ;;
9272 *)
9273 enable_shared=no
9274 # Look at the argument we got. We use all the common list separators.
9275 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9276 for pkg in $enableval; do
9277 IFS=$lt_save_ifs
9278 if test "X$pkg" = "X$p"; then
9279 enable_shared=yes
9280 fi
9281 done
9282 IFS=$lt_save_ifs
9283 ;;
9284 esac
9285else case e in #(
9286 e) enable_shared=yes ;;
9287esac
9288fi
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298 # Check whether --enable-static was given.
9299if test ${enable_static+y}
9300then :
9301 enableval=$enable_static; p=${PACKAGE-default}
9302 case $enableval in
9303 yes) enable_static=yes ;;
9304 no) enable_static=no ;;
9305 *)
9306 enable_static=no
9307 # Look at the argument we got. We use all the common list separators.
9308 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9309 for pkg in $enableval; do
9310 IFS=$lt_save_ifs
9311 if test "X$pkg" = "X$p"; then
9312 enable_static=yes
9313 fi
9314 done
9315 IFS=$lt_save_ifs
9316 ;;
9317 esac
9318else case e in #(
9319 e) enable_static=yes ;;
9320esac
9321fi
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332# Check whether --with-pic was given.
9333if test ${with_pic+y}
9334then :
9335 withval=$with_pic; lt_p=${PACKAGE-default}
9336 case $withval in
9337 yes|no) pic_mode=$withval ;;
9338 *)
9339 pic_mode=default
9340 # Look at the argument we got. We use all the common list separators.
9341 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9342 for lt_pkg in $withval; do
9343 IFS=$lt_save_ifs
9344 if test "X$lt_pkg" = "X$lt_p"; then
9345 pic_mode=yes
9346 fi
9347 done
9348 IFS=$lt_save_ifs
9349 ;;
9350 esac
9351else case e in #(
9352 e) pic_mode=default ;;
9353esac
9354fi
9355
9356
9357
9358
9359
9360
9361
9362
9363 # Check whether --enable-fast-install was given.
9364if test ${enable_fast_install+y}
9365then :
9366 enableval=$enable_fast_install; p=${PACKAGE-default}
9367 case $enableval in
9368 yes) enable_fast_install=yes ;;
9369 no) enable_fast_install=no ;;
9370 *)
9371 enable_fast_install=no
9372 # Look at the argument we got. We use all the common list separators.
9373 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9374 for pkg in $enableval; do
9375 IFS=$lt_save_ifs
9376 if test "X$pkg" = "X$p"; then
9377 enable_fast_install=yes
9378 fi
9379 done
9380 IFS=$lt_save_ifs
9381 ;;
9382 esac
9383else case e in #(
9384 e) enable_fast_install=yes ;;
9385esac
9386fi
9387
9388
9389
9390
9391
9392
9393
9394
9395 shared_archive_member_spec=
9396case $host,$enable_shared in
9397power*-*-aix[5-9]*,yes)
9398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9399printf %s "checking which variant of shared library versioning to provide... " >&6; }
9400
9401# Check whether --with-aix-soname was given.
9402if test ${with_aix_soname+y}
9403then :
9404 withval=$with_aix_soname; case $withval in
9405 aix|svr4|both)
9406 ;;
9407 *)
9408 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9409 ;;
9410 esac
9411 lt_cv_with_aix_soname=$with_aix_soname
9412else case e in #(
9413 e) if test ${lt_cv_with_aix_soname+y}
9414then :
9415 printf %s "(cached) " >&6
9416else case e in #(
9417 e) lt_cv_with_aix_soname=aix ;;
9418esac
9419fi
9420
9421 with_aix_soname=$lt_cv_with_aix_soname ;;
9422esac
9423fi
9424
9425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9426printf "%s\n" "$with_aix_soname" >&6; }
9427 if test aix != "$with_aix_soname"; then
9428 # For the AIX way of multilib, we name the shared archive member
9429 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9430 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9431 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9432 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9433 if test 64 = "${OBJECT_MODE-32}"; then
9434 shared_archive_member_spec=shr_64
9435 else
9436 shared_archive_member_spec=shr
9437 fi
9438 fi
9439 ;;
9440*)
9441 with_aix_soname=aix
9442 ;;
9443esac
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454# This can be used to rebuild libtool when needed
9455LIBTOOL_DEPS=$ltmain
9456
9457# Always use our own libtool.
9458LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489test -z "$LN_S" && LN_S="ln -s"
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504if test -n "${ZSH_VERSION+set}"; then
9505 setopt NO_GLOB_SUBST
9506fi
9507
9508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9509printf %s "checking for objdir... " >&6; }
9510if test ${lt_cv_objdir+y}
9511then :
9512 printf %s "(cached) " >&6
9513else case e in #(
9514 e) rm -f .libs 2>/dev/null
9515mkdir .libs 2>/dev/null
9516if test -d .libs; then
9517 lt_cv_objdir=.libs
9518else
9519 # MS-DOS does not allow filenames that begin with a dot.
9520 lt_cv_objdir=_libs
9521fi
9522rmdir .libs 2>/dev/null ;;
9523esac
9524fi
9525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9526printf "%s\n" "$lt_cv_objdir" >&6; }
9527objdir=$lt_cv_objdir
9528
9529
9530
9531
9532
9533printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9534
9535
9536
9537
9538case $host_os in
9539aix3*)
9540 # AIX sometimes has problems with the GCC collect2 program. For some
9541 # reason, if we set the COLLECT_NAMES environment variable, the problems
9542 # vanish in a puff of smoke.
9543 if test set != "${COLLECT_NAMES+set}"; then
9544 COLLECT_NAMES=
9545 export COLLECT_NAMES
9546 fi
9547 ;;
9548esac
9549
9550# Global variables:
9551ofile=libtool
9552can_build_shared=yes
9553
9554# All known linkers require a '.a' archive for static linking (except MSVC and
9555# ICC, which need '.lib').
9556libext=a
9557
9558with_gnu_ld=$lt_cv_prog_gnu_ld
9559
9560old_CC=$CC
9561old_CFLAGS=$CFLAGS
9562
9563# Set sane defaults for various variables
9564test -z "$CC" && CC=cc
9565test -z "$LTCC" && LTCC=$CC
9566test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9567test -z "$LD" && LD=ld
9568test -z "$ac_objext" && ac_objext=o
9569
9570func_cc_basename $compiler
9571cc_basename=$func_cc_basename_result
9572
9573
9574# Only perform the check for file, if the check method requires it
9575test -z "$MAGIC_CMD" && MAGIC_CMD=file
9576case $deplibs_check_method in
9577file_magic*)
9578 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9580printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9581if test ${lt_cv_path_MAGIC_CMD+y}
9582then :
9583 printf %s "(cached) " >&6
9584else case e in #(
9585 e) case $MAGIC_CMD in
9586[\\/*] | ?:[\\/]*)
9587 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9588 ;;
9589*)
9590 lt_save_MAGIC_CMD=$MAGIC_CMD
9591 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9592 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9593 for ac_dir in $ac_dummy; do
9594 IFS=$lt_save_ifs
9595 test -z "$ac_dir" && ac_dir=.
9596 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9597 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9598 if test -n "$file_magic_test_file"; then
9599 case $deplibs_check_method in
9600 "file_magic "*)
9601 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9602 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9603 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9604 $EGREP "$file_magic_regex" > /dev/null; then
9605 :
9606 else
9607 cat <<_LT_EOF 1>&2
9608
9609*** Warning: the command libtool uses to detect shared libraries,
9610*** $file_magic_cmd, produces output that libtool cannot recognize.
9611*** The result is that libtool may fail to recognize shared libraries
9612*** as such. This will affect the creation of libtool libraries that
9613*** depend on shared libraries, but programs linked with such libtool
9614*** libraries will work regardless of this problem. Nevertheless, you
9615*** may want to report the problem to your system manager and/or to
9616*** bug-libtool@gnu.org
9617
9618_LT_EOF
9619 fi ;;
9620 esac
9621 fi
9622 break
9623 fi
9624 done
9625 IFS=$lt_save_ifs
9626 MAGIC_CMD=$lt_save_MAGIC_CMD
9627 ;;
9628esac ;;
9629esac
9630fi
9631
9632MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9633if test -n "$MAGIC_CMD"; then
9634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9635printf "%s\n" "$MAGIC_CMD" >&6; }
9636else
9637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9638printf "%s\n" "no" >&6; }
9639fi
9640
9641
9642
9643
9644
9645if test -z "$lt_cv_path_MAGIC_CMD"; then
9646 if test -n "$ac_tool_prefix"; then
9647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9648printf %s "checking for file... " >&6; }
9649if test ${lt_cv_path_MAGIC_CMD+y}
9650then :
9651 printf %s "(cached) " >&6
9652else case e in #(
9653 e) case $MAGIC_CMD in
9654[\\/*] | ?:[\\/]*)
9655 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9656 ;;
9657*)
9658 lt_save_MAGIC_CMD=$MAGIC_CMD
9659 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9660 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9661 for ac_dir in $ac_dummy; do
9662 IFS=$lt_save_ifs
9663 test -z "$ac_dir" && ac_dir=.
9664 if test -f "$ac_dir/file"; then
9665 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9666 if test -n "$file_magic_test_file"; then
9667 case $deplibs_check_method in
9668 "file_magic "*)
9669 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9670 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9671 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9672 $EGREP "$file_magic_regex" > /dev/null; then
9673 :
9674 else
9675 cat <<_LT_EOF 1>&2
9676
9677*** Warning: the command libtool uses to detect shared libraries,
9678*** $file_magic_cmd, produces output that libtool cannot recognize.
9679*** The result is that libtool may fail to recognize shared libraries
9680*** as such. This will affect the creation of libtool libraries that
9681*** depend on shared libraries, but programs linked with such libtool
9682*** libraries will work regardless of this problem. Nevertheless, you
9683*** may want to report the problem to your system manager and/or to
9684*** bug-libtool@gnu.org
9685
9686_LT_EOF
9687 fi ;;
9688 esac
9689 fi
9690 break
9691 fi
9692 done
9693 IFS=$lt_save_ifs
9694 MAGIC_CMD=$lt_save_MAGIC_CMD
9695 ;;
9696esac ;;
9697esac
9698fi
9699
9700MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9701if test -n "$MAGIC_CMD"; then
9702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9703printf "%s\n" "$MAGIC_CMD" >&6; }
9704else
9705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9706printf "%s\n" "no" >&6; }
9707fi
9708
9709
9710 else
9711 MAGIC_CMD=:
9712 fi
9713fi
9714
9715 fi
9716 ;;
9717esac
9718
9719# Use C for the default configuration in the libtool script
9720
9721lt_save_CC=$CC
9722ac_ext=c
9723ac_cpp='$CPP $CPPFLAGS'
9724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9726ac_compiler_gnu=$ac_cv_c_compiler_gnu
9727
9728
9729# Source file extension for C test sources.
9730ac_ext=c
9731
9732# Object file extension for compiled C test sources.
9733objext=o
9734objext=$objext
9735
9736# Code to be used in simple compile tests
9737lt_simple_compile_test_code="int some_variable = 0;"
9738
9739# Code to be used in simple link tests
9740lt_simple_link_test_code='int main(){return(0);}'
9741
9742
9743
9744
9745
9746
9747
9748# If no C compiler was specified, use CC.
9749LTCC=${LTCC-"$CC"}
9750
9751# If no C compiler flags were specified, use CFLAGS.
9752LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9753
9754# Allow CC to be a program name with arguments.
9755compiler=$CC
9756
9757# Save the default compiler, since it gets overwritten when the other
9758# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9759compiler_DEFAULT=$CC
9760
9761# save warnings/boilerplate of simple test code
9762ac_outfile=conftest.$ac_objext
9763echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9764eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9765_lt_compiler_boilerplate=`cat conftest.err`
9766$RM conftest*
9767
9768ac_outfile=conftest.$ac_objext
9769echo "$lt_simple_link_test_code" >conftest.$ac_ext
9770eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9771_lt_linker_boilerplate=`cat conftest.err`
9772$RM -r conftest*
9773
9774
9775## CAVEAT EMPTOR:
9776## There is no encapsulation within the following macros, do not change
9777## the running order or otherwise move them around unless you know exactly
9778## what you are doing...
9779if test -n "$compiler"; then
9780
9781lt_prog_compiler_no_builtin_flag=
9782
9783if test yes = "$GCC"; then
9784 case $cc_basename in
9785 nvcc*)
9786 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9787 *)
9788 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9789 esac
9790
9791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9792printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9793if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9794then :
9795 printf %s "(cached) " >&6
9796else case e in #(
9797 e) lt_cv_prog_compiler_rtti_exceptions=no
9798 ac_outfile=conftest.$ac_objext
9799 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9800 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9801 # Insert the option either (1) after the last *FLAGS variable, or
9802 # (2) before a word containing "conftest.", or (3) at the end.
9803 # Note that $ac_compile itself does not contain backslashes and begins
9804 # with a dollar sign (not a hyphen), so the echo should work correctly.
9805 # The option is referenced via a variable to avoid confusing sed.
9806 lt_compile=`echo "$ac_compile" | $SED \
9807 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9808 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9809 -e 's:$: $lt_compiler_flag:'`
9810 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9811 (eval "$lt_compile" 2>conftest.err)
9812 ac_status=$?
9813 cat conftest.err >&5
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 if (exit $ac_status) && test -s "$ac_outfile"; then
9816 # The compiler can only warn and ignore the option if not recognized
9817 # So say no if there are warnings other than the usual output.
9818 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9819 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9820 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9821 lt_cv_prog_compiler_rtti_exceptions=yes
9822 fi
9823 fi
9824 $RM conftest*
9825 ;;
9826esac
9827fi
9828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9829printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9830
9831if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9832 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9833else
9834 :
9835fi
9836
9837fi
9838
9839
9840
9841
9842
9843
9844 lt_prog_compiler_wl=
9845lt_prog_compiler_pic=
9846lt_prog_compiler_static=
9847
9848
9849 if test yes = "$GCC"; then
9850 lt_prog_compiler_wl='-Wl,'
9851 lt_prog_compiler_static='-static'
9852
9853 case $host_os in
9854 aix*)
9855 # All AIX code is PIC.
9856 if test ia64 = "$host_cpu"; then
9857 # AIX 5 now supports IA64 processor
9858 lt_prog_compiler_static='-Bstatic'
9859 fi
9860 lt_prog_compiler_pic='-fPIC'
9861 ;;
9862
9863 amigaos*)
9864 case $host_cpu in
9865 powerpc)
9866 # see comment about AmigaOS4 .so support
9867 lt_prog_compiler_pic='-fPIC'
9868 ;;
9869 m68k)
9870 # FIXME: we need at least 68020 code to build shared libraries, but
9871 # adding the '-m68020' flag to GCC prevents building anything better,
9872 # like '-m68040'.
9873 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9874 ;;
9875 esac
9876 ;;
9877
9878 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9879 # PIC is the default for these OSes.
9880 ;;
9881
9882 mingw* | cygwin* | pw32* | os2* | cegcc*)
9883 # This hack is so that the source file can tell whether it is being
9884 # built for inclusion in a dll (and should export symbols for example).
9885 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9886 # (--disable-auto-import) libraries
9887 lt_prog_compiler_pic='-DDLL_EXPORT'
9888 case $host_os in
9889 os2*)
9890 lt_prog_compiler_static='$wl-static'
9891 ;;
9892 esac
9893 ;;
9894
9895 darwin* | rhapsody*)
9896 # PIC is the default on this platform
9897 # Common symbols not allowed in MH_DYLIB files
9898 lt_prog_compiler_pic='-fno-common'
9899 ;;
9900
9901 haiku*)
9902 # PIC is the default for Haiku.
9903 # The "-static" flag exists, but is broken.
9904 lt_prog_compiler_static=
9905 ;;
9906
9907 hpux*)
9908 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9909 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9910 # sets the default TLS model and affects inlining.
9911 case $host_cpu in
9912 hppa*64*)
9913 # +Z the default
9914 ;;
9915 *)
9916 lt_prog_compiler_pic='-fPIC'
9917 ;;
9918 esac
9919 ;;
9920
9921 interix[3-9]*)
9922 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9923 # Instead, we relocate shared libraries at runtime.
9924 ;;
9925
9926 msdosdjgpp*)
9927 # Just because we use GCC doesn't mean we suddenly get shared libraries
9928 # on systems that don't support them.
9929 lt_prog_compiler_can_build_shared=no
9930 enable_shared=no
9931 ;;
9932
9933 *nto* | *qnx*)
9934 # QNX uses GNU C++, but need to define -shared option too, otherwise
9935 # it will coredump.
9936 lt_prog_compiler_pic='-fPIC -shared'
9937 ;;
9938
9939 sysv4*MP*)
9940 if test -d /usr/nec; then
9941 lt_prog_compiler_pic=-Kconform_pic
9942 fi
9943 ;;
9944
9945 *)
9946 lt_prog_compiler_pic='-fPIC'
9947 ;;
9948 esac
9949
9950 case $cc_basename in
9951 nvcc*) # Cuda Compiler Driver 2.2
9952 lt_prog_compiler_wl='-Xlinker '
9953 if test -n "$lt_prog_compiler_pic"; then
9954 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9955 fi
9956 ;;
9957 esac
9958 else
9959 # PORTME Check for flag to pass linker flags through the system compiler.
9960 case $host_os in
9961 aix*)
9962 lt_prog_compiler_wl='-Wl,'
9963 if test ia64 = "$host_cpu"; then
9964 # AIX 5 now supports IA64 processor
9965 lt_prog_compiler_static='-Bstatic'
9966 else
9967 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9968 fi
9969 ;;
9970
9971 darwin* | rhapsody*)
9972 # PIC is the default on this platform
9973 # Common symbols not allowed in MH_DYLIB files
9974 lt_prog_compiler_pic='-fno-common'
9975 case $cc_basename in
9976 nagfor*)
9977 # NAG Fortran compiler
9978 lt_prog_compiler_wl='-Wl,-Wl,,'
9979 lt_prog_compiler_pic='-PIC'
9980 lt_prog_compiler_static='-Bstatic'
9981 ;;
9982 esac
9983 ;;
9984
9985 mingw* | cygwin* | pw32* | os2* | cegcc*)
9986 # This hack is so that the source file can tell whether it is being
9987 # built for inclusion in a dll (and should export symbols for example).
9988 lt_prog_compiler_pic='-DDLL_EXPORT'
9989 case $host_os in
9990 os2*)
9991 lt_prog_compiler_static='$wl-static'
9992 ;;
9993 esac
9994 ;;
9995
9996 hpux9* | hpux10* | hpux11*)
9997 lt_prog_compiler_wl='-Wl,'
9998 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9999 # not for PA HP-UX.
10000 case $host_cpu in
10001 hppa*64*|ia64*)
10002 # +Z the default
10003 ;;
10004 *)
10005 lt_prog_compiler_pic='+Z'
10006 ;;
10007 esac
10008 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10009 lt_prog_compiler_static='$wl-a ${wl}archive'
10010 ;;
10011
10012 irix5* | irix6* | nonstopux*)
10013 lt_prog_compiler_wl='-Wl,'
10014 # PIC (with -KPIC) is the default.
10015 lt_prog_compiler_static='-non_shared'
10016 ;;
10017
10018 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10019 case $cc_basename in
10020 # old Intel for x86_64, which still supported -KPIC.
10021 ecc*)
10022 lt_prog_compiler_wl='-Wl,'
10023 lt_prog_compiler_pic='-KPIC'
10024 lt_prog_compiler_static='-static'
10025 ;;
10026 # icc used to be incompatible with GCC.
10027 # ICC 10 doesn't accept -KPIC any more.
10028 icc* | ifort*)
10029 lt_prog_compiler_wl='-Wl,'
10030 lt_prog_compiler_pic='-fPIC'
10031 lt_prog_compiler_static='-static'
10032 ;;
10033 # Lahey Fortran 8.1.
10034 lf95*)
10035 lt_prog_compiler_wl='-Wl,'
10036 lt_prog_compiler_pic='--shared'
10037 lt_prog_compiler_static='--static'
10038 ;;
10039 nagfor*)
10040 # NAG Fortran compiler
10041 lt_prog_compiler_wl='-Wl,-Wl,,'
10042 lt_prog_compiler_pic='-PIC'
10043 lt_prog_compiler_static='-Bstatic'
10044 ;;
10045 tcc*)
10046 # Fabrice Bellard et al's Tiny C Compiler
10047 lt_prog_compiler_wl='-Wl,'
10048 lt_prog_compiler_pic='-fPIC'
10049 lt_prog_compiler_static='-static'
10050 ;;
10051 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10052 # Portland Group compilers (*not* the Pentium gcc compiler,
10053 # which looks to be a dead project)
10054 lt_prog_compiler_wl='-Wl,'
10055 lt_prog_compiler_pic='-fpic'
10056 lt_prog_compiler_static='-Bstatic'
10057 ;;
10058 ccc*)
10059 lt_prog_compiler_wl='-Wl,'
10060 # All Alpha code is PIC.
10061 lt_prog_compiler_static='-non_shared'
10062 ;;
10063 xl* | bgxl* | bgf* | mpixl*)
10064 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10065 lt_prog_compiler_wl='-Wl,'
10066 lt_prog_compiler_pic='-qpic'
10067 lt_prog_compiler_static='-qstaticlink'
10068 ;;
10069 *)
10070 case `$CC -V 2>&1 | $SED 5q` in
10071 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10072 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10073 lt_prog_compiler_pic='-KPIC'
10074 lt_prog_compiler_static='-Bstatic'
10075 lt_prog_compiler_wl=''
10076 ;;
10077 *Sun\ F* | *Sun*Fortran*)
10078 lt_prog_compiler_pic='-KPIC'
10079 lt_prog_compiler_static='-Bstatic'
10080 lt_prog_compiler_wl='-Qoption ld '
10081 ;;
10082 *Sun\ C*)
10083 # Sun C 5.9
10084 lt_prog_compiler_pic='-KPIC'
10085 lt_prog_compiler_static='-Bstatic'
10086 lt_prog_compiler_wl='-Wl,'
10087 ;;
10088 *Intel*\ [CF]*Compiler*)
10089 lt_prog_compiler_wl='-Wl,'
10090 lt_prog_compiler_pic='-fPIC'
10091 lt_prog_compiler_static='-static'
10092 ;;
10093 *Portland\ Group*)
10094 lt_prog_compiler_wl='-Wl,'
10095 lt_prog_compiler_pic='-fpic'
10096 lt_prog_compiler_static='-Bstatic'
10097 ;;
10098 esac
10099 ;;
10100 esac
10101 ;;
10102
10103 newsos6)
10104 lt_prog_compiler_pic='-KPIC'
10105 lt_prog_compiler_static='-Bstatic'
10106 ;;
10107
10108 *nto* | *qnx*)
10109 # QNX uses GNU C++, but need to define -shared option too, otherwise
10110 # it will coredump.
10111 lt_prog_compiler_pic='-fPIC -shared'
10112 ;;
10113
10114 osf3* | osf4* | osf5*)
10115 lt_prog_compiler_wl='-Wl,'
10116 # All OSF/1 code is PIC.
10117 lt_prog_compiler_static='-non_shared'
10118 ;;
10119
10120 rdos*)
10121 lt_prog_compiler_static='-non_shared'
10122 ;;
10123
10124 solaris*)
10125 lt_prog_compiler_pic='-KPIC'
10126 lt_prog_compiler_static='-Bstatic'
10127 case $cc_basename in
10128 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10129 lt_prog_compiler_wl='-Qoption ld ';;
10130 *)
10131 lt_prog_compiler_wl='-Wl,';;
10132 esac
10133 ;;
10134
10135 sunos4*)
10136 lt_prog_compiler_wl='-Qoption ld '
10137 lt_prog_compiler_pic='-PIC'
10138 lt_prog_compiler_static='-Bstatic'
10139 ;;
10140
10141 sysv4 | sysv4.2uw2* | sysv4.3*)
10142 lt_prog_compiler_wl='-Wl,'
10143 lt_prog_compiler_pic='-KPIC'
10144 lt_prog_compiler_static='-Bstatic'
10145 ;;
10146
10147 sysv4*MP*)
10148 if test -d /usr/nec; then
10149 lt_prog_compiler_pic='-Kconform_pic'
10150 lt_prog_compiler_static='-Bstatic'
10151 fi
10152 ;;
10153
10154 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10155 lt_prog_compiler_wl='-Wl,'
10156 lt_prog_compiler_pic='-KPIC'
10157 lt_prog_compiler_static='-Bstatic'
10158 ;;
10159
10160 unicos*)
10161 lt_prog_compiler_wl='-Wl,'
10162 lt_prog_compiler_can_build_shared=no
10163 ;;
10164
10165 uts4*)
10166 lt_prog_compiler_pic='-pic'
10167 lt_prog_compiler_static='-Bstatic'
10168 ;;
10169
10170 *)
10171 lt_prog_compiler_can_build_shared=no
10172 ;;
10173 esac
10174 fi
10175
10176case $host_os in
10177 # For platforms that do not support PIC, -DPIC is meaningless:
10178 *djgpp*)
10179 lt_prog_compiler_pic=
10180 ;;
10181 *)
10182 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10183 ;;
10184esac
10185
10186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10187printf %s "checking for $compiler option to produce PIC... " >&6; }
10188if test ${lt_cv_prog_compiler_pic+y}
10189then :
10190 printf %s "(cached) " >&6
10191else case e in #(
10192 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
10193esac
10194fi
10195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10196printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10197lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10198
10199#
10200# Check to make sure the PIC flag actually works.
10201#
10202if test -n "$lt_prog_compiler_pic"; then
10203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10204printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10205if test ${lt_cv_prog_compiler_pic_works+y}
10206then :
10207 printf %s "(cached) " >&6
10208else case e in #(
10209 e) lt_cv_prog_compiler_pic_works=no
10210 ac_outfile=conftest.$ac_objext
10211 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10212 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10213 # Insert the option either (1) after the last *FLAGS variable, or
10214 # (2) before a word containing "conftest.", or (3) at the end.
10215 # Note that $ac_compile itself does not contain backslashes and begins
10216 # with a dollar sign (not a hyphen), so the echo should work correctly.
10217 # The option is referenced via a variable to avoid confusing sed.
10218 lt_compile=`echo "$ac_compile" | $SED \
10219 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10220 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10221 -e 's:$: $lt_compiler_flag:'`
10222 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10223 (eval "$lt_compile" 2>conftest.err)
10224 ac_status=$?
10225 cat conftest.err >&5
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 if (exit $ac_status) && test -s "$ac_outfile"; then
10228 # The compiler can only warn and ignore the option if not recognized
10229 # So say no if there are warnings other than the usual output.
10230 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10231 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10232 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10233 lt_cv_prog_compiler_pic_works=yes
10234 fi
10235 fi
10236 $RM conftest*
10237 ;;
10238esac
10239fi
10240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10241printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10242
10243if test yes = "$lt_cv_prog_compiler_pic_works"; then
10244 case $lt_prog_compiler_pic in
10245 "" | " "*) ;;
10246 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10247 esac
10248else
10249 lt_prog_compiler_pic=
10250 lt_prog_compiler_can_build_shared=no
10251fi
10252
10253fi
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265#
10266# Check to make sure the static flag actually works.
10267#
10268wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10270printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10271if test ${lt_cv_prog_compiler_static_works+y}
10272then :
10273 printf %s "(cached) " >&6
10274else case e in #(
10275 e) lt_cv_prog_compiler_static_works=no
10276 save_LDFLAGS=$LDFLAGS
10277 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10278 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10279 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10280 # The linker can only warn and ignore the option if not recognized
10281 # So say no if there are warnings
10282 if test -s conftest.err; then
10283 # Append any errors to the config.log.
10284 cat conftest.err 1>&5
10285 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10286 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10287 if diff conftest.exp conftest.er2 >/dev/null; then
10288 lt_cv_prog_compiler_static_works=yes
10289 fi
10290 else
10291 lt_cv_prog_compiler_static_works=yes
10292 fi
10293 fi
10294 $RM -r conftest*
10295 LDFLAGS=$save_LDFLAGS
10296 ;;
10297esac
10298fi
10299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10300printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10301
10302if test yes = "$lt_cv_prog_compiler_static_works"; then
10303 :
10304else
10305 lt_prog_compiler_static=
10306fi
10307
10308
10309
10310
10311
10312
10313
10314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10315printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10316if test ${lt_cv_prog_compiler_c_o+y}
10317then :
10318 printf %s "(cached) " >&6
10319else case e in #(
10320 e) lt_cv_prog_compiler_c_o=no
10321 $RM -r conftest 2>/dev/null
10322 mkdir conftest
10323 cd conftest
10324 mkdir out
10325 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10326
10327 lt_compiler_flag="-o out/conftest2.$ac_objext"
10328 # Insert the option either (1) after the last *FLAGS variable, or
10329 # (2) before a word containing "conftest.", or (3) at the end.
10330 # Note that $ac_compile itself does not contain backslashes and begins
10331 # with a dollar sign (not a hyphen), so the echo should work correctly.
10332 lt_compile=`echo "$ac_compile" | $SED \
10333 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10334 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10335 -e 's:$: $lt_compiler_flag:'`
10336 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10337 (eval "$lt_compile" 2>out/conftest.err)
10338 ac_status=$?
10339 cat out/conftest.err >&5
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10342 then
10343 # The compiler can only warn and ignore the option if not recognized
10344 # So say no if there are warnings
10345 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10346 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10347 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10348 lt_cv_prog_compiler_c_o=yes
10349 fi
10350 fi
10351 chmod u+w . 2>&5
10352 $RM conftest*
10353 # SGI C++ compiler will create directory out/ii_files/ for
10354 # template instantiation
10355 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10356 $RM out/* && rmdir out
10357 cd ..
10358 $RM -r conftest
10359 $RM conftest*
10360 ;;
10361esac
10362fi
10363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10364printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10365
10366
10367
10368
10369
10370
10371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10372printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10373if test ${lt_cv_prog_compiler_c_o+y}
10374then :
10375 printf %s "(cached) " >&6
10376else case e in #(
10377 e) lt_cv_prog_compiler_c_o=no
10378 $RM -r conftest 2>/dev/null
10379 mkdir conftest
10380 cd conftest
10381 mkdir out
10382 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10383
10384 lt_compiler_flag="-o out/conftest2.$ac_objext"
10385 # Insert the option either (1) after the last *FLAGS variable, or
10386 # (2) before a word containing "conftest.", or (3) at the end.
10387 # Note that $ac_compile itself does not contain backslashes and begins
10388 # with a dollar sign (not a hyphen), so the echo should work correctly.
10389 lt_compile=`echo "$ac_compile" | $SED \
10390 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10391 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10392 -e 's:$: $lt_compiler_flag:'`
10393 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10394 (eval "$lt_compile" 2>out/conftest.err)
10395 ac_status=$?
10396 cat out/conftest.err >&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10399 then
10400 # The compiler can only warn and ignore the option if not recognized
10401 # So say no if there are warnings
10402 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10403 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10404 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10405 lt_cv_prog_compiler_c_o=yes
10406 fi
10407 fi
10408 chmod u+w . 2>&5
10409 $RM conftest*
10410 # SGI C++ compiler will create directory out/ii_files/ for
10411 # template instantiation
10412 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10413 $RM out/* && rmdir out
10414 cd ..
10415 $RM -r conftest
10416 $RM conftest*
10417 ;;
10418esac
10419fi
10420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10421printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10422
10423
10424
10425
10426hard_links=nottested
10427if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10428 # do not overwrite the value of need_locks provided by the user
10429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10430printf %s "checking if we can lock with hard links... " >&6; }
10431 hard_links=yes
10432 $RM conftest*
10433 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10434 touch conftest.a
10435 ln conftest.a conftest.b 2>&5 || hard_links=no
10436 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10438printf "%s\n" "$hard_links" >&6; }
10439 if test no = "$hard_links"; then
10440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10441printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10442 need_locks=warn
10443 fi
10444else
10445 need_locks=no
10446fi
10447
10448
10449
10450
10451
10452
10453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10454printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10455
10456 runpath_var=
10457 allow_undefined_flag=
10458 always_export_symbols=no
10459 archive_cmds=
10460 archive_expsym_cmds=
10461 compiler_needs_object=no
10462 enable_shared_with_static_runtimes=no
10463 export_dynamic_flag_spec=
10464 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10465 hardcode_automatic=no
10466 hardcode_direct=no
10467 hardcode_direct_absolute=no
10468 hardcode_libdir_flag_spec=
10469 hardcode_libdir_separator=
10470 hardcode_minus_L=no
10471 hardcode_shlibpath_var=unsupported
10472 inherit_rpath=no
10473 link_all_deplibs=unknown
10474 module_cmds=
10475 module_expsym_cmds=
10476 old_archive_from_new_cmds=
10477 old_archive_from_expsyms_cmds=
10478 thread_safe_flag_spec=
10479 whole_archive_flag_spec=
10480 # include_expsyms should be a list of space-separated symbols to be *always*
10481 # included in the symbol list
10482 include_expsyms=
10483 # exclude_expsyms can be an extended regexp of symbols to exclude
10484 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10485 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10486 # as well as any symbol that contains 'd'.
10487 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10488 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10489 # platforms (ab)use it in PIC code, but their linkers get confused if
10490 # the symbol is explicitly referenced. Since portable code cannot
10491 # rely on this symbol name, it's probably fine to never include it in
10492 # preloaded symbol tables.
10493 # Exclude shared library initialization/finalization symbols.
10494 extract_expsyms_cmds=
10495
10496 case $host_os in
10497 cygwin* | mingw* | pw32* | cegcc*)
10498 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10499 # When not using gcc, we currently assume that we are using
10500 # Microsoft Visual C++ or Intel C++ Compiler.
10501 if test yes != "$GCC"; then
10502 with_gnu_ld=no
10503 fi
10504 ;;
10505 interix*)
10506 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10507 with_gnu_ld=yes
10508 ;;
10509 openbsd* | bitrig*)
10510 with_gnu_ld=no
10511 ;;
10512 esac
10513
10514 ld_shlibs=yes
10515
10516 # On some targets, GNU ld is compatible enough with the native linker
10517 # that we're better off using the native interface for both.
10518 lt_use_gnu_ld_interface=no
10519 if test yes = "$with_gnu_ld"; then
10520 case $host_os in
10521 aix*)
10522 # The AIX port of GNU ld has always aspired to compatibility
10523 # with the native linker. However, as the warning in the GNU ld
10524 # block says, versions before 2.19.5* couldn't really create working
10525 # shared libraries, regardless of the interface used.
10526 case `$LD -v 2>&1` in
10527 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10528 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10529 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10530 *)
10531 lt_use_gnu_ld_interface=yes
10532 ;;
10533 esac
10534 ;;
10535 *)
10536 lt_use_gnu_ld_interface=yes
10537 ;;
10538 esac
10539 fi
10540
10541 if test yes = "$lt_use_gnu_ld_interface"; then
10542 # If archive_cmds runs LD, not CC, wlarc should be empty
10543 wlarc='$wl'
10544
10545 # Set some defaults for GNU ld with shared library support. These
10546 # are reset later if shared libraries are not supported. Putting them
10547 # here allows them to be overridden if necessary.
10548 runpath_var=LD_RUN_PATH
10549 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10550 export_dynamic_flag_spec='$wl--export-dynamic'
10551 # ancient GNU ld didn't support --whole-archive et. al.
10552 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10553 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10554 else
10555 whole_archive_flag_spec=
10556 fi
10557 supports_anon_versioning=no
10558 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10559 *GNU\ gold*) supports_anon_versioning=yes ;;
10560 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10561 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10562 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10563 *\ 2.11.*) ;; # other 2.11 versions
10564 *) supports_anon_versioning=yes ;;
10565 esac
10566
10567 # See if GNU ld supports shared libraries.
10568 case $host_os in
10569 aix[3-9]*)
10570 # On AIX/PPC, the GNU linker is very broken
10571 if test ia64 != "$host_cpu"; then
10572 ld_shlibs=no
10573 cat <<_LT_EOF 1>&2
10574
10575*** Warning: the GNU linker, at least up to release 2.19, is reported
10576*** to be unable to reliably create shared libraries on AIX.
10577*** Therefore, libtool is disabling shared libraries support. If you
10578*** really care for shared libraries, you may want to install binutils
10579*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10580*** You will then need to restart the configuration process.
10581
10582_LT_EOF
10583 fi
10584 ;;
10585
10586 amigaos*)
10587 case $host_cpu in
10588 powerpc)
10589 # see comment about AmigaOS4 .so support
10590 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10591 archive_expsym_cmds=''
10592 ;;
10593 m68k)
10594 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)'
10595 hardcode_libdir_flag_spec='-L$libdir'
10596 hardcode_minus_L=yes
10597 ;;
10598 esac
10599 ;;
10600
10601 beos*)
10602 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10603 allow_undefined_flag=unsupported
10604 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10605 # support --undefined. This deserves some investigation. FIXME
10606 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10607 else
10608 ld_shlibs=no
10609 fi
10610 ;;
10611
10612 cygwin* | mingw* | pw32* | cegcc*)
10613 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10614 # as there is no search path for DLLs.
10615 hardcode_libdir_flag_spec='-L$libdir'
10616 export_dynamic_flag_spec='$wl--export-all-symbols'
10617 allow_undefined_flag=unsupported
10618 always_export_symbols=no
10619 enable_shared_with_static_runtimes=yes
10620 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10621 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10622
10623 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10624 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10625 # If the export-symbols file already is a .def file, use it as
10626 # is; otherwise, prepend EXPORTS...
10627 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10628 cp $export_symbols $output_objdir/$soname.def;
10629 else
10630 echo EXPORTS > $output_objdir/$soname.def;
10631 cat $export_symbols >> $output_objdir/$soname.def;
10632 fi~
10633 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10634 else
10635 ld_shlibs=no
10636 fi
10637 ;;
10638
10639 haiku*)
10640 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10641 link_all_deplibs=yes
10642 ;;
10643
10644 os2*)
10645 hardcode_libdir_flag_spec='-L$libdir'
10646 hardcode_minus_L=yes
10647 allow_undefined_flag=unsupported
10648 shrext_cmds=.dll
10649 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10650 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10651 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10652 $ECHO EXPORTS >> $output_objdir/$libname.def~
10653 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10654 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10655 emximp -o $lib $output_objdir/$libname.def'
10656 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10657 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10658 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10659 $ECHO EXPORTS >> $output_objdir/$libname.def~
10660 prefix_cmds="$SED"~
10661 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10662 prefix_cmds="$prefix_cmds -e 1d";
10663 fi~
10664 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10665 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10666 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10667 emximp -o $lib $output_objdir/$libname.def'
10668 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10669 enable_shared_with_static_runtimes=yes
10670 file_list_spec='@'
10671 ;;
10672
10673 interix[3-9]*)
10674 hardcode_direct=no
10675 hardcode_shlibpath_var=no
10676 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10677 export_dynamic_flag_spec='$wl-E'
10678 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10679 # Instead, shared libraries are loaded at an image base (0x10000000 by
10680 # default) and relocated if they conflict, which is a slow very memory
10681 # consuming and fragmenting process. To avoid this, we pick a random,
10682 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10683 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10684 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10685 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'
10686 ;;
10687
10688 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10689 tmp_diet=no
10690 if test linux-dietlibc = "$host_os"; then
10691 case $cc_basename in
10692 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10693 esac
10694 fi
10695 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10696 && test no = "$tmp_diet"
10697 then
10698 tmp_addflag=' $pic_flag'
10699 tmp_sharedflag='-shared'
10700 case $cc_basename,$host_cpu in
10701 pgcc*) # Portland Group C compiler
10702 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'
10703 tmp_addflag=' $pic_flag'
10704 ;;
10705 pgf77* | pgf90* | pgf95* | pgfortran*)
10706 # Portland Group f77 and f90 compilers
10707 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'
10708 tmp_addflag=' $pic_flag -Mnomain' ;;
10709 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10710 tmp_addflag=' -i_dynamic' ;;
10711 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10712 tmp_addflag=' -i_dynamic -nofor_main' ;;
10713 ifc* | ifort*) # Intel Fortran compiler
10714 tmp_addflag=' -nofor_main' ;;
10715 lf95*) # Lahey Fortran 8.1
10716 whole_archive_flag_spec=
10717 tmp_sharedflag='--shared' ;;
10718 nagfor*) # NAGFOR 5.3
10719 tmp_sharedflag='-Wl,-shared' ;;
10720 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10721 tmp_sharedflag='-qmkshrobj'
10722 tmp_addflag= ;;
10723 nvcc*) # Cuda Compiler Driver 2.2
10724 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'
10725 compiler_needs_object=yes
10726 ;;
10727 esac
10728 case `$CC -V 2>&1 | $SED 5q` in
10729 *Sun\ C*) # Sun C 5.9
10730 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'
10731 compiler_needs_object=yes
10732 tmp_sharedflag='-G' ;;
10733 *Sun\ F*) # Sun Fortran 8.3
10734 tmp_sharedflag='-G' ;;
10735 esac
10736 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10737
10738 if test yes = "$supports_anon_versioning"; then
10739 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10740 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10741 echo "local: *; }