VirtualBox

source: vbox/trunk/src/libs/libpng-1.6.45/configure@ 107935

Last change on this file since 107935 was 107813, checked in by vboxsync, 3 weeks ago

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

  • Property svn:executable set to *
File size: 538.9 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.45.
4#
5# Report bugs to <[email protected]>.
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 [email protected] and
282$0: [email protected] 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.45'
618PACKAGE_STRING='libpng 1.6.45'
619PACKAGE_BUGREPORT='[email protected]'
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__xargs_n
757am__rm_f_notfound
758AM_BACKSLASH
759AM_DEFAULT_VERBOSITY
760AM_DEFAULT_V
761AM_V
762CSCOPE
763ETAGS
764CTAGS
765am__untar
766am__tar
767AMTAR
768am__leading_dot
769SET_MAKE
770AWK
771mkdir_p
772MKDIR_P
773INSTALL_STRIP_PROGRAM
774STRIP
775install_sh
776MAKEINFO
777AUTOHEADER
778AUTOMAKE
779AUTOCONF
780ACLOCAL
781VERSION
782PACKAGE
783CYGPATH_W
784am__isrc
785INSTALL_DATA
786INSTALL_SCRIPT
787INSTALL_PROGRAM
788target_alias
789host_alias
790build_alias
791LIBS
792ECHO_T
793ECHO_N
794ECHO_C
795DEFS
796mandir
797localedir
798libdir
799psdir
800pdfdir
801dvidir
802htmldir
803infodir
804docdir
805oldincludedir
806includedir
807runstatedir
808localstatedir
809sharedstatedir
810sysconfdir
811datadir
812datarootdir
813libexecdir
814sbindir
815bindir
816program_transform_name
817prefix
818exec_prefix
819PACKAGE_URL
820PACKAGE_BUGREPORT
821PACKAGE_STRING
822PACKAGE_VERSION
823PACKAGE_TARNAME
824PACKAGE_NAME
825PATH_SEPARATOR
826SHELL
827am__quote'
828ac_subst_files=''
829ac_user_opts='
830enable_option_checking
831enable_silent_rules
832enable_maintainer_mode
833enable_dependency_tracking
834with_gnu_ld
835enable_shared
836enable_static
837enable_pic
838with_pic
839enable_fast_install
840enable_aix_soname
841with_aix_soname
842with_sysroot
843enable_libtool_lock
844enable_tests
845enable_tools
846enable_werror
847with_zlib_prefix
848with_pkgconfigdir
849with_binconfigs
850with_libpng_prefix
851enable_unversioned_links
852enable_unversioned_libpng_pc
853enable_unversioned_libpng_config
854enable_hardware_optimizations
855enable_arm_neon
856enable_mips_msa
857enable_mips_mmi
858enable_intel_sse
859enable_powerpc_vsx
860enable_loongarch_lsx
861'
862 ac_precious_vars='build_alias
863host_alias
864target_alias
865CC
866CFLAGS
867LDFLAGS
868LIBS
869CPPFLAGS
870CCAS
871CCASFLAGS
872CPP
873LT_SYS_LIBRARY_PATH
874AWK
875PNG_COPTS'
876
877
878# Initialize some variables set by options.
879ac_init_help=
880ac_init_version=false
881ac_unrecognized_opts=
882ac_unrecognized_sep=
883# The variables have the same names as the options, with
884# dashes changed to underlines.
885cache_file=/dev/null
886exec_prefix=NONE
887no_create=
888no_recursion=
889prefix=NONE
890program_prefix=NONE
891program_suffix=NONE
892program_transform_name=s,x,x,
893silent=
894site=
895srcdir=
896verbose=
897x_includes=NONE
898x_libraries=NONE
899
900# Installation directory options.
901# These are left unexpanded so users can "make install exec_prefix=/foo"
902# and all the variables that are supposed to be based on exec_prefix
903# by default will actually change.
904# Use braces instead of parens because sh, perl, etc. also accept them.
905# (The list follows the same order as the GNU Coding Standards.)
906bindir='${exec_prefix}/bin'
907sbindir='${exec_prefix}/sbin'
908libexecdir='${exec_prefix}/libexec'
909datarootdir='${prefix}/share'
910datadir='${datarootdir}'
911sysconfdir='${prefix}/etc'
912sharedstatedir='${prefix}/com'
913localstatedir='${prefix}/var'
914runstatedir='${localstatedir}/run'
915includedir='${prefix}/include'
916oldincludedir='/usr/include'
917docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
918infodir='${datarootdir}/info'
919htmldir='${docdir}'
920dvidir='${docdir}'
921pdfdir='${docdir}'
922psdir='${docdir}'
923libdir='${exec_prefix}/lib'
924localedir='${datarootdir}/locale'
925mandir='${datarootdir}/man'
926
927ac_prev=
928ac_dashdash=
929for ac_option
930do
931 # If the previous option needs an argument, assign it.
932 if test -n "$ac_prev"; then
933 eval $ac_prev=\$ac_option
934 ac_prev=
935 continue
936 fi
937
938 case $ac_option in
939 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
940 *=) ac_optarg= ;;
941 *) ac_optarg=yes ;;
942 esac
943
944 case $ac_dashdash$ac_option in
945 --)
946 ac_dashdash=yes ;;
947
948 -bindir | --bindir | --bindi | --bind | --bin | --bi)
949 ac_prev=bindir ;;
950 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
951 bindir=$ac_optarg ;;
952
953 -build | --build | --buil | --bui | --bu)
954 ac_prev=build_alias ;;
955 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
956 build_alias=$ac_optarg ;;
957
958 -cache-file | --cache-file | --cache-fil | --cache-fi \
959 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
960 ac_prev=cache_file ;;
961 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
962 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
963 cache_file=$ac_optarg ;;
964
965 --config-cache | -C)
966 cache_file=config.cache ;;
967
968 -datadir | --datadir | --datadi | --datad)
969 ac_prev=datadir ;;
970 -datadir=* | --datadir=* | --datadi=* | --datad=*)
971 datadir=$ac_optarg ;;
972
973 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
974 | --dataroo | --dataro | --datar)
975 ac_prev=datarootdir ;;
976 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
977 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
978 datarootdir=$ac_optarg ;;
979
980 -disable-* | --disable-*)
981 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
982 # Reject names that are not valid shell variable names.
983 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984 as_fn_error $? "invalid feature name: '$ac_useropt'"
985 ac_useropt_orig=$ac_useropt
986 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
987 case $ac_user_opts in
988 *"
989"enable_$ac_useropt"
990"*) ;;
991 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
992 ac_unrecognized_sep=', ';;
993 esac
994 eval enable_$ac_useropt=no ;;
995
996 -docdir | --docdir | --docdi | --doc | --do)
997 ac_prev=docdir ;;
998 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
999 docdir=$ac_optarg ;;
1000
1001 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1002 ac_prev=dvidir ;;
1003 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1004 dvidir=$ac_optarg ;;
1005
1006 -enable-* | --enable-*)
1007 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1008 # Reject names that are not valid shell variable names.
1009 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1010 as_fn_error $? "invalid feature name: '$ac_useropt'"
1011 ac_useropt_orig=$ac_useropt
1012 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1013 case $ac_user_opts in
1014 *"
1015"enable_$ac_useropt"
1016"*) ;;
1017 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1018 ac_unrecognized_sep=', ';;
1019 esac
1020 eval enable_$ac_useropt=\$ac_optarg ;;
1021
1022 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1023 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1024 | --exec | --exe | --ex)
1025 ac_prev=exec_prefix ;;
1026 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1027 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1028 | --exec=* | --exe=* | --ex=*)
1029 exec_prefix=$ac_optarg ;;
1030
1031 -gas | --gas | --ga | --g)
1032 # Obsolete; use --with-gas.
1033 with_gas=yes ;;
1034
1035 -help | --help | --hel | --he | -h)
1036 ac_init_help=long ;;
1037 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1038 ac_init_help=recursive ;;
1039 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1040 ac_init_help=short ;;
1041
1042 -host | --host | --hos | --ho)
1043 ac_prev=host_alias ;;
1044 -host=* | --host=* | --hos=* | --ho=*)
1045 host_alias=$ac_optarg ;;
1046
1047 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1048 ac_prev=htmldir ;;
1049 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1050 | --ht=*)
1051 htmldir=$ac_optarg ;;
1052
1053 -includedir | --includedir | --includedi | --included | --include \
1054 | --includ | --inclu | --incl | --inc)
1055 ac_prev=includedir ;;
1056 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1057 | --includ=* | --inclu=* | --incl=* | --inc=*)
1058 includedir=$ac_optarg ;;
1059
1060 -infodir | --infodir | --infodi | --infod | --info | --inf)
1061 ac_prev=infodir ;;
1062 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1063 infodir=$ac_optarg ;;
1064
1065 -libdir | --libdir | --libdi | --libd)
1066 ac_prev=libdir ;;
1067 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1068 libdir=$ac_optarg ;;
1069
1070 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1071 | --libexe | --libex | --libe)
1072 ac_prev=libexecdir ;;
1073 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1074 | --libexe=* | --libex=* | --libe=*)
1075 libexecdir=$ac_optarg ;;
1076
1077 -localedir | --localedir | --localedi | --localed | --locale)
1078 ac_prev=localedir ;;
1079 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1080 localedir=$ac_optarg ;;
1081
1082 -localstatedir | --localstatedir | --localstatedi | --localstated \
1083 | --localstate | --localstat | --localsta | --localst | --locals)
1084 ac_prev=localstatedir ;;
1085 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1086 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1087 localstatedir=$ac_optarg ;;
1088
1089 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1090 ac_prev=mandir ;;
1091 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1092 mandir=$ac_optarg ;;
1093
1094 -nfp | --nfp | --nf)
1095 # Obsolete; use --without-fp.
1096 with_fp=no ;;
1097
1098 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1099 | --no-cr | --no-c | -n)
1100 no_create=yes ;;
1101
1102 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1103 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1104 no_recursion=yes ;;
1105
1106 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1107 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1108 | --oldin | --oldi | --old | --ol | --o)
1109 ac_prev=oldincludedir ;;
1110 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1111 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1112 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1113 oldincludedir=$ac_optarg ;;
1114
1115 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1116 ac_prev=prefix ;;
1117 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1118 prefix=$ac_optarg ;;
1119
1120 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1121 | --program-pre | --program-pr | --program-p)
1122 ac_prev=program_prefix ;;
1123 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1124 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1125 program_prefix=$ac_optarg ;;
1126
1127 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1128 | --program-suf | --program-su | --program-s)
1129 ac_prev=program_suffix ;;
1130 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1131 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1132 program_suffix=$ac_optarg ;;
1133
1134 -program-transform-name | --program-transform-name \
1135 | --program-transform-nam | --program-transform-na \
1136 | --program-transform-n | --program-transform- \
1137 | --program-transform | --program-transfor \
1138 | --program-transfo | --program-transf \
1139 | --program-trans | --program-tran \
1140 | --progr-tra | --program-tr | --program-t)
1141 ac_prev=program_transform_name ;;
1142 -program-transform-name=* | --program-transform-name=* \
1143 | --program-transform-nam=* | --program-transform-na=* \
1144 | --program-transform-n=* | --program-transform-=* \
1145 | --program-transform=* | --program-transfor=* \
1146 | --program-transfo=* | --program-transf=* \
1147 | --program-trans=* | --program-tran=* \
1148 | --progr-tra=* | --program-tr=* | --program-t=*)
1149 program_transform_name=$ac_optarg ;;
1150
1151 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1152 ac_prev=pdfdir ;;
1153 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1154 pdfdir=$ac_optarg ;;
1155
1156 -psdir | --psdir | --psdi | --psd | --ps)
1157 ac_prev=psdir ;;
1158 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1159 psdir=$ac_optarg ;;
1160
1161 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1162 | -silent | --silent | --silen | --sile | --sil)
1163 silent=yes ;;
1164
1165 -runstatedir | --runstatedir | --runstatedi | --runstated \
1166 | --runstate | --runstat | --runsta | --runst | --runs \
1167 | --run | --ru | --r)
1168 ac_prev=runstatedir ;;
1169 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1170 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1171 | --run=* | --ru=* | --r=*)
1172 runstatedir=$ac_optarg ;;
1173
1174 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1175 ac_prev=sbindir ;;
1176 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1177 | --sbi=* | --sb=*)
1178 sbindir=$ac_optarg ;;
1179
1180 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1181 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1182 | --sharedst | --shareds | --shared | --share | --shar \
1183 | --sha | --sh)
1184 ac_prev=sharedstatedir ;;
1185 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1186 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1187 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1188 | --sha=* | --sh=*)
1189 sharedstatedir=$ac_optarg ;;
1190
1191 -site | --site | --sit)
1192 ac_prev=site ;;
1193 -site=* | --site=* | --sit=*)
1194 site=$ac_optarg ;;
1195
1196 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1197 ac_prev=srcdir ;;
1198 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1199 srcdir=$ac_optarg ;;
1200
1201 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1202 | --syscon | --sysco | --sysc | --sys | --sy)
1203 ac_prev=sysconfdir ;;
1204 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1205 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1206 sysconfdir=$ac_optarg ;;
1207
1208 -target | --target | --targe | --targ | --tar | --ta | --t)
1209 ac_prev=target_alias ;;
1210 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1211 target_alias=$ac_optarg ;;
1212
1213 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1214 verbose=yes ;;
1215
1216 -version | --version | --versio | --versi | --vers | -V)
1217 ac_init_version=: ;;
1218
1219 -with-* | --with-*)
1220 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223 as_fn_error $? "invalid package name: '$ac_useropt'"
1224 ac_useropt_orig=$ac_useropt
1225 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1226 case $ac_user_opts in
1227 *"
1228"with_$ac_useropt"
1229"*) ;;
1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1231 ac_unrecognized_sep=', ';;
1232 esac
1233 eval with_$ac_useropt=\$ac_optarg ;;
1234
1235 -without-* | --without-*)
1236 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1239 as_fn_error $? "invalid package name: '$ac_useropt'"
1240 ac_useropt_orig=$ac_useropt
1241 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1242 case $ac_user_opts in
1243 *"
1244"with_$ac_useropt"
1245"*) ;;
1246 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1247 ac_unrecognized_sep=', ';;
1248 esac
1249 eval with_$ac_useropt=no ;;
1250
1251 --x)
1252 # Obsolete; use --with-x.
1253 with_x=yes ;;
1254
1255 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1256 | --x-incl | --x-inc | --x-in | --x-i)
1257 ac_prev=x_includes ;;
1258 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1259 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1260 x_includes=$ac_optarg ;;
1261
1262 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1263 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1264 ac_prev=x_libraries ;;
1265 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1266 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1267 x_libraries=$ac_optarg ;;
1268
1269 -*) as_fn_error $? "unrecognized option: '$ac_option'
1270Try '$0 --help' for more information"
1271 ;;
1272
1273 *=*)
1274 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1275 # Reject names that are not valid shell variable names.
1276 case $ac_envvar in #(
1277 '' | [0-9]* | *[!_$as_cr_alnum]* )
1278 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1279 esac
1280 eval $ac_envvar=\$ac_optarg
1281 export $ac_envvar ;;
1282
1283 *)
1284 # FIXME: should be removed in autoconf 3.0.
1285 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1286 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1287 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1288 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1289 ;;
1290
1291 esac
1292done
1293
1294if test -n "$ac_prev"; then
1295 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1296 as_fn_error $? "missing argument to $ac_option"
1297fi
1298
1299if test -n "$ac_unrecognized_opts"; then
1300 case $enable_option_checking in
1301 no) ;;
1302 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1303 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1304 esac
1305fi
1306
1307# Check all directory arguments for consistency.
1308for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1309 datadir sysconfdir sharedstatedir localstatedir includedir \
1310 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1311 libdir localedir mandir runstatedir
1312do
1313 eval ac_val=\$$ac_var
1314 # Remove trailing slashes.
1315 case $ac_val in
1316 */ )
1317 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1318 eval $ac_var=\$ac_val;;
1319 esac
1320 # Be sure to have absolute directory names.
1321 case $ac_val in
1322 [\\/$]* | ?:[\\/]* ) continue;;
1323 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1324 esac
1325 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1326done
1327
1328# There might be people who depend on the old broken behavior: '$host'
1329# used to hold the argument of --host etc.
1330# FIXME: To remove some day.
1331build=$build_alias
1332host=$host_alias
1333target=$target_alias
1334
1335# FIXME: To remove some day.
1336if test "x$host_alias" != x; then
1337 if test "x$build_alias" = x; then
1338 cross_compiling=maybe
1339 elif test "x$build_alias" != "x$host_alias"; then
1340 cross_compiling=yes
1341 fi
1342fi
1343
1344ac_tool_prefix=
1345test -n "$host_alias" && ac_tool_prefix=$host_alias-
1346
1347test "$silent" = yes && exec 6>/dev/null
1348
1349
1350ac_pwd=`pwd` && test -n "$ac_pwd" &&
1351ac_ls_di=`ls -di .` &&
1352ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1353 as_fn_error $? "working directory cannot be determined"
1354test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1355 as_fn_error $? "pwd does not report name of working directory"
1356
1357
1358# Find the source files, if location was not specified.
1359if test -z "$srcdir"; then
1360 ac_srcdir_defaulted=yes
1361 # Try the directory containing this script, then the parent directory.
1362 ac_confdir=`$as_dirname -- "$as_myself" ||
1363$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1364 X"$as_myself" : 'X\(//\)[^/]' \| \
1365 X"$as_myself" : 'X\(//\)$' \| \
1366 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1367printf "%s\n" X"$as_myself" |
1368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1369 s//\1/
1370 q
1371 }
1372 /^X\(\/\/\)[^/].*/{
1373 s//\1/
1374 q
1375 }
1376 /^X\(\/\/\)$/{
1377 s//\1/
1378 q
1379 }
1380 /^X\(\/\).*/{
1381 s//\1/
1382 q
1383 }
1384 s/.*/./; q'`
1385 srcdir=$ac_confdir
1386 if test ! -r "$srcdir/$ac_unique_file"; then
1387 srcdir=..
1388 fi
1389else
1390 ac_srcdir_defaulted=no
1391fi
1392if test ! -r "$srcdir/$ac_unique_file"; then
1393 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1394 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1395fi
1396ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1397ac_abs_confdir=`(
1398 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1399 pwd)`
1400# When building in place, set srcdir=.
1401if test "$ac_abs_confdir" = "$ac_pwd"; then
1402 srcdir=.
1403fi
1404# Remove unnecessary trailing slashes from srcdir.
1405# Double slashes in file names in object file debugging info
1406# mess up M-x gdb in Emacs.
1407case $srcdir in
1408*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1409esac
1410for ac_var in $ac_precious_vars; do
1411 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1412 eval ac_env_${ac_var}_value=\$${ac_var}
1413 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1414 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1415done
1416
1417#
1418# Report the --help message.
1419#
1420if test "$ac_init_help" = "long"; then
1421 # Omit some internal or obsolete options to make the list less imposing.
1422 # This message is too long to be a string in the A/UX 3.1 sh.
1423 cat <<_ACEOF
1424'configure' configures libpng 1.6.45 to adapt to many kinds of systems.
1425
1426Usage: $0 [OPTION]... [VAR=VALUE]...
1427
1428To assign environment variables (e.g., CC, CFLAGS...), specify them as
1429VAR=VALUE. See below for descriptions of some of the useful variables.
1430
1431Defaults for the options are specified in brackets.
1432
1433Configuration:
1434 -h, --help display this help and exit
1435 --help=short display options specific to this package
1436 --help=recursive display the short help of all the included packages
1437 -V, --version display version information and exit
1438 -q, --quiet, --silent do not print 'checking ...' messages
1439 --cache-file=FILE cache test results in FILE [disabled]
1440 -C, --config-cache alias for '--cache-file=config.cache'
1441 -n, --no-create do not create output files
1442 --srcdir=DIR find the sources in DIR [configure dir or '..']
1443
1444Installation directories:
1445 --prefix=PREFIX install architecture-independent files in PREFIX
1446 [$ac_default_prefix]
1447 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1448 [PREFIX]
1449
1450By default, 'make install' will install all the files in
1451'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1452an installation prefix other than '$ac_default_prefix' using '--prefix',
1453for instance '--prefix=\$HOME'.
1454
1455For better control, use the options below.
1456
1457Fine tuning of the installation directories:
1458 --bindir=DIR user executables [EPREFIX/bin]
1459 --sbindir=DIR system admin executables [EPREFIX/sbin]
1460 --libexecdir=DIR program executables [EPREFIX/libexec]
1461 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1462 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1463 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1464 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1465 --libdir=DIR object code libraries [EPREFIX/lib]
1466 --includedir=DIR C header files [PREFIX/include]
1467 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1468 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1469 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1470 --infodir=DIR info documentation [DATAROOTDIR/info]
1471 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1472 --mandir=DIR man documentation [DATAROOTDIR/man]
1473 --docdir=DIR documentation root [DATAROOTDIR/doc/libpng]
1474 --htmldir=DIR html documentation [DOCDIR]
1475 --dvidir=DIR dvi documentation [DOCDIR]
1476 --pdfdir=DIR pdf documentation [DOCDIR]
1477 --psdir=DIR ps documentation [DOCDIR]
1478_ACEOF
1479
1480 cat <<\_ACEOF
1481
1482Program names:
1483 --program-prefix=PREFIX prepend PREFIX to installed program names
1484 --program-suffix=SUFFIX append SUFFIX to installed program names
1485 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1486
1487System types:
1488 --build=BUILD configure for building on BUILD [guessed]
1489 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1490_ACEOF
1491fi
1492
1493if test -n "$ac_init_help"; then
1494 case $ac_init_help in
1495 short | recursive ) echo "Configuration of libpng 1.6.45:";;
1496 esac
1497 cat <<\_ACEOF
1498
1499Optional Features:
1500 --disable-option-checking ignore unrecognized --enable/--with options
1501 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1502 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1503 --enable-silent-rules less verbose build output (undo: "make V=1")
1504 --disable-silent-rules verbose build output (undo: "make V=0")
1505 --enable-maintainer-mode
1506 enable make rules and dependencies not useful (and
1507 sometimes confusing) to the casual installer
1508 --enable-dependency-tracking
1509 do not reject slow dependency extractors
1510 --disable-dependency-tracking
1511 speeds up one-time build
1512 --enable-shared[=PKGS] build shared libraries [default=yes]
1513 --enable-static[=PKGS] build static libraries [default=yes]
1514 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1515 both]
1516 --enable-fast-install[=PKGS]
1517 optimize for fast installation [default=yes]
1518 --enable-aix-soname=aix|svr4|both
1519 shared library versioning (aka "SONAME") variant to
1520 provide on AIX, [default=aix].
1521 --disable-libtool-lock avoid locking (might break parallel builds)
1522 --disable-tests do not build the test programs (default is to build)
1523 --disable-tools do not build the auxiliary tools (default is to
1524 build)
1525 --enable-werror[=OPT] Pass -Werror or the given argument to the compiler
1526 if it is supported
1527 --enable-unversioned-links
1528 Installed libpng header files are placed in a
1529 versioned subdirectory and installed libpng library
1530 (including DLL) files are versioned. If this option
1531 is enabled unversioned links will be created
1532 pointing to the corresponding installed files. If
1533 you use libpng.pc or libpng-config for all builds
1534 you do not need these links, but if you compile
1535 programs directly they will typically #include
1536 <png.h> and link with -lpng; in that case you need
1537 the links. The links can be installed manually using
1538 'make install-header-links' and 'make
1539 install-library-links' and can be removed using the
1540 corresponding uninstall- targets. If you do enable
1541 this option every libpng 'make install' will
1542 recreate the links to point to the just installed
1543 version of libpng. The default is to create the
1544 links; use --disable-unversioned-links to change
1545 this
1546 --enable-unversioned-libpng-pc
1547 Install the configuration file 'libpng.pc' as a link
1548 to the versioned version. This is done by default -
1549 use --disable-unversioned-libpng-pc to change this.
1550 --enable-unversioned-libpng-config
1551 Install the configuration file 'libpng-config' as a
1552 link to the versioned version. This is done by
1553 default - use --disable-unversioned-libpng-config to
1554 change this.
1555 --enable-hardware-optimizations
1556 Enable hardware optimizations: =no/off, yes/on.
1557 --enable-arm-neon Enable ARM NEON optimizations: =no/off, check, api,
1558 yes/on. no/off: disable the optimizations; check:
1559 use internal checking code (deprecated and poorly
1560 supported); api: disable by default, enable by a
1561 call to png_set_option; yes/on: turn on
1562 unconditionally. If not specified: determined by the
1563 compiler.
1564 --enable-mips-msa Enable MIPS MSA optimizations: =no/off, check, api,
1565 yes/on. no/off: disable the optimizations; check:
1566 use internal checking code (deprecated and poorly
1567 supported); api: disable by default, enable by a
1568 call to png_set_option; yes/on: turn on
1569 unconditionally. If not specified: determined by the
1570 compiler.
1571 --enable-mips-mmi Enable MIPS MMI optimizations: =no/off, check, api,
1572 yes/on. no/off: disable the optimizations; check:
1573 use internal checking code (deprecated and poorly
1574 supported); api: disable by default, enable by a
1575 call to png_set_option; yes/on: turn on
1576 unconditionally. If not specified: determined by the
1577 compiler.
1578 --enable-intel-sse Enable Intel SSE optimizations: =no/off, yes/on.
1579 no/off: disable the optimizations; yes/on: enable
1580 the optimizations. If not specified: determined by
1581 the compiler.
1582 --enable-powerpc-vsx Enable POWERPC VSX optimizations: =no/off, check,
1583 api, yes/on. no/off: disable the optimizations;
1584 check: use internal checking code; api: disable by
1585 default, enable by a call to png_set_option; yes/on:
1586 turn on unconditionally. If not specified:
1587 determined by the compiler.
1588 --enable-loongarch-lsx
1589 Enable LOONGARCH LSX optimizations: =no/off, yes/on:
1590 no/off: disable the optimizations; yes/on: turn on
1591 unconditionally. If not specified: determined by the
1592 compiler.
1593
1594Optional Packages:
1595 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1596 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1597 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1598 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1599 compiler's sysroot if not specified).
1600 --with-zlib-prefix prefix that may have been used in installed zlib
1601 --with-pkgconfigdir Use the specified pkgconfig dir (default is
1602 libdir/pkgconfig)
1603 --with-binconfigs Generate shell libpng-config scripts as well as
1604 pkg-config data [default=yes]
1605 --with-libpng-prefix prefix libpng exported function (API) names with the
1606 given value
1607
1608Some influential environment variables:
1609 CC C compiler command
1610 CFLAGS C compiler flags
1611 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1612 nonstandard directory <lib dir>
1613 LIBS libraries to pass to the linker, e.g. -l<library>
1614 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1615 you have headers in a nonstandard directory <include dir>
1616 CCAS assembler compiler command (defaults to CC)
1617 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1618 CPP C preprocessor
1619 LT_SYS_LIBRARY_PATH
1620 User-defined run-time library search path.
1621 AWK AWK language processor
1622 PNG_COPTS additional flags for the C compiler, to be used for options that
1623 would cause configure itself to fail
1624
1625Use these variables to override the choices made by 'configure' or to help
1626it to find libraries and programs with nonstandard names/locations.
1627
1628Report bugs to <[email protected]>.
1629_ACEOF
1630ac_status=$?
1631fi
1632
1633if test "$ac_init_help" = "recursive"; then
1634 # If there are subdirs, report their specific --help.
1635 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1636 test -d "$ac_dir" ||
1637 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1638 continue
1639 ac_builddir=.
1640
1641case "$ac_dir" in
1642.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643*)
1644 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1645 # A ".." for each directory in $ac_dir_suffix.
1646 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1647 case $ac_top_builddir_sub in
1648 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1649 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1650 esac ;;
1651esac
1652ac_abs_top_builddir=$ac_pwd
1653ac_abs_builddir=$ac_pwd$ac_dir_suffix
1654# for backward compatibility:
1655ac_top_builddir=$ac_top_build_prefix
1656
1657case $srcdir in
1658 .) # We are building in place.
1659 ac_srcdir=.
1660 ac_top_srcdir=$ac_top_builddir_sub
1661 ac_abs_top_srcdir=$ac_pwd ;;
1662 [\\/]* | ?:[\\/]* ) # Absolute name.
1663 ac_srcdir=$srcdir$ac_dir_suffix;
1664 ac_top_srcdir=$srcdir
1665 ac_abs_top_srcdir=$srcdir ;;
1666 *) # Relative name.
1667 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1668 ac_top_srcdir=$ac_top_build_prefix$srcdir
1669 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1670esac
1671ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1672
1673 cd "$ac_dir" || { ac_status=$?; continue; }
1674 # Check for configure.gnu first; this name is used for a wrapper for
1675 # Metaconfig's "Configure" on case-insensitive file systems.
1676 if test -f "$ac_srcdir/configure.gnu"; then
1677 echo &&
1678 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1679 elif test -f "$ac_srcdir/configure"; then
1680 echo &&
1681 $SHELL "$ac_srcdir/configure" --help=recursive
1682 else
1683 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1684 fi || ac_status=$?
1685 cd "$ac_pwd" || { ac_status=$?; break; }
1686 done
1687fi
1688
1689test -n "$ac_init_help" && exit $ac_status
1690if $ac_init_version; then
1691 cat <<\_ACEOF
1692libpng configure 1.6.45
1693generated by GNU Autoconf 2.72
1694
1695Copyright (C) 2023 Free Software Foundation, Inc.
1696This configure script is free software; the Free Software Foundation
1697gives unlimited permission to copy, distribute and modify it.
1698_ACEOF
1699 exit
1700fi
1701
1702## ------------------------ ##
1703## Autoconf initialization. ##
1704## ------------------------ ##
1705
1706# ac_fn_c_try_compile LINENO
1707# --------------------------
1708# Try to compile conftest.$ac_ext, and return whether this succeeded.
1709ac_fn_c_try_compile ()
1710{
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 rm -f conftest.$ac_objext conftest.beam
1713 if { { ac_try="$ac_compile"
1714case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717esac
1718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719printf "%s\n" "$ac_try_echo"; } >&5
1720 (eval "$ac_compile") 2>conftest.err
1721 ac_status=$?
1722 if test -s conftest.err; then
1723 grep -v '^ *+' conftest.err >conftest.er1
1724 cat conftest.er1 >&5
1725 mv -f conftest.er1 conftest.err
1726 fi
1727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; } && {
1729 test -z "$ac_c_werror_flag" ||
1730 test ! -s conftest.err
1731 } && test -s conftest.$ac_objext
1732then :
1733 ac_retval=0
1734else case e in #(
1735 e) printf "%s\n" "$as_me: failed program was:" >&5
1736sed 's/^/| /' conftest.$ac_ext >&5
1737
1738 ac_retval=1 ;;
1739esac
1740fi
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742 as_fn_set_status $ac_retval
1743
1744} # ac_fn_c_try_compile
1745
1746# ac_fn_c_try_cpp LINENO
1747# ----------------------
1748# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1749ac_fn_c_try_cpp ()
1750{
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 if { { ac_try="$ac_cpp conftest.$ac_ext"
1753case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1756esac
1757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758printf "%s\n" "$ac_try_echo"; } >&5
1759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1760 ac_status=$?
1761 if test -s conftest.err; then
1762 grep -v '^ *+' conftest.err >conftest.er1
1763 cat conftest.er1 >&5
1764 mv -f conftest.er1 conftest.err
1765 fi
1766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; } > conftest.i && {
1768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1769 test ! -s conftest.err
1770 }
1771then :
1772 ac_retval=0
1773else case e in #(
1774 e) printf "%s\n" "$as_me: failed program was:" >&5
1775sed 's/^/| /' conftest.$ac_ext >&5
1776
1777 ac_retval=1 ;;
1778esac
1779fi
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781 as_fn_set_status $ac_retval
1782
1783} # ac_fn_c_try_cpp
1784
1785# ac_fn_c_try_link LINENO
1786# -----------------------
1787# Try to link conftest.$ac_ext, and return whether this succeeded.
1788ac_fn_c_try_link ()
1789{
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1792 if { { ac_try="$ac_link"
1793case "(($ac_try" in
1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795 *) ac_try_echo=$ac_try;;
1796esac
1797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798printf "%s\n" "$ac_try_echo"; } >&5
1799 (eval "$ac_link") 2>conftest.err
1800 ac_status=$?
1801 if test -s conftest.err; then
1802 grep -v '^ *+' conftest.err >conftest.er1
1803 cat conftest.er1 >&5
1804 mv -f conftest.er1 conftest.err
1805 fi
1806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807 test $ac_status = 0; } && {
1808 test -z "$ac_c_werror_flag" ||
1809 test ! -s conftest.err
1810 } && test -s conftest$ac_exeext && {
1811 test "$cross_compiling" = yes ||
1812 test -x conftest$ac_exeext
1813 }
1814then :
1815 ac_retval=0
1816else case e in #(
1817 e) printf "%s\n" "$as_me: failed program was:" >&5
1818sed 's/^/| /' conftest.$ac_ext >&5
1819
1820 ac_retval=1 ;;
1821esac
1822fi
1823 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1824 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1825 # interfere with the next link command; also delete a directory that is
1826 # left behind by Apple's compiler. We do this before executing the actions.
1827 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 as_fn_set_status $ac_retval
1830
1831} # ac_fn_c_try_link
1832
1833# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1834# -------------------------------------------------------
1835# Tests whether HEADER exists and can be compiled using the include files in
1836# INCLUDES, setting the cache variable VAR accordingly.
1837ac_fn_c_check_header_compile ()
1838{
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841printf %s "checking for $2... " >&6; }
1842if eval test \${$3+y}
1843then :
1844 printf %s "(cached) " >&6
1845else case e in #(
1846 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847/* end confdefs.h. */
1848$4
1849#include <$2>
1850_ACEOF
1851if ac_fn_c_try_compile "$LINENO"
1852then :
1853 eval "$3=yes"
1854else case e in #(
1855 e) eval "$3=no" ;;
1856esac
1857fi
1858rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1859esac
1860fi
1861eval ac_res=\$$3
1862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863printf "%s\n" "$ac_res" >&6; }
1864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1865
1866} # ac_fn_c_check_header_compile
1867
1868# ac_fn_c_check_func LINENO FUNC VAR
1869# ----------------------------------
1870# Tests whether FUNC exists, setting the cache variable VAR accordingly
1871ac_fn_c_check_func ()
1872{
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875printf %s "checking for $2... " >&6; }
1876if eval test \${$3+y}
1877then :
1878 printf %s "(cached) " >&6
1879else case e in #(
1880 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881/* end confdefs.h. */
1882/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1884#define $2 innocuous_$2
1885
1886/* System header to define __stub macros and hopefully few prototypes,
1887 which can conflict with char $2 (void); below. */
1888
1889#include <limits.h>
1890#undef $2
1891
1892/* Override any GCC internal prototype to avoid an error.
1893 Use char because int might match the return type of a GCC
1894 builtin and then its argument prototype would still apply. */
1895#ifdef __cplusplus
1896extern "C"
1897#endif
1898char $2 (void);
1899/* The GNU C library defines this for functions which it implements
1900 to always fail with ENOSYS. Some functions are actually named
1901 something starting with __ and the normal name is an alias. */
1902#if defined __stub_$2 || defined __stub___$2
1903choke me
1904#endif
1905
1906int
1907main (void)
1908{
1909return $2 ();
1910 ;
1911 return 0;
1912}
1913_ACEOF
1914if ac_fn_c_try_link "$LINENO"
1915then :
1916 eval "$3=yes"
1917else case e in #(
1918 e) eval "$3=no" ;;
1919esac
1920fi
1921rm -f core conftest.err conftest.$ac_objext conftest.beam \
1922 conftest$ac_exeext conftest.$ac_ext ;;
1923esac
1924fi
1925eval ac_res=\$$3
1926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927printf "%s\n" "$ac_res" >&6; }
1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929
1930} # ac_fn_c_check_func
1931ac_configure_args_raw=
1932for ac_arg
1933do
1934 case $ac_arg in
1935 *\'*)
1936 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1937 esac
1938 as_fn_append ac_configure_args_raw " '$ac_arg'"
1939done
1940
1941case $ac_configure_args_raw in
1942 *$as_nl*)
1943 ac_safe_unquote= ;;
1944 *)
1945 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1946 ac_unsafe_a="$ac_unsafe_z#~"
1947 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1948 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1949esac
1950
1951cat >config.log <<_ACEOF
1952This file contains any messages produced by compilers while
1953running configure, to aid debugging if configure makes a mistake.
1954
1955It was created by libpng $as_me 1.6.45, which was
1956generated by GNU Autoconf 2.72. Invocation command line was
1957
1958 $ $0$ac_configure_args_raw
1959
1960_ACEOF
1961exec 5>>config.log
1962{
1963cat <<_ASUNAME
1964## --------- ##
1965## Platform. ##
1966## --------- ##
1967
1968hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1969uname -m = `(uname -m) 2>/dev/null || echo unknown`
1970uname -r = `(uname -r) 2>/dev/null || echo unknown`
1971uname -s = `(uname -s) 2>/dev/null || echo unknown`
1972uname -v = `(uname -v) 2>/dev/null || echo unknown`
1973
1974/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1975/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1976
1977/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1978/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1979/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1980/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1981/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1982/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1983/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1984
1985_ASUNAME
1986
1987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988for as_dir in $PATH
1989do
1990 IFS=$as_save_IFS
1991 case $as_dir in #(((
1992 '') as_dir=./ ;;
1993 */) ;;
1994 *) as_dir=$as_dir/ ;;
1995 esac
1996 printf "%s\n" "PATH: $as_dir"
1997 done
1998IFS=$as_save_IFS
1999
2000} >&5
2001
2002cat >&5 <<_ACEOF
2003
2004
2005## ----------- ##
2006## Core tests. ##
2007## ----------- ##
2008
2009_ACEOF
2010
2011
2012# Keep a trace of the command line.
2013# Strip out --no-create and --no-recursion so they do not pile up.
2014# Strip out --silent because we don't want to record it for future runs.
2015# Also quote any args containing shell meta-characters.
2016# Make two passes to allow for proper duplicate-argument suppression.
2017ac_configure_args=
2018ac_configure_args0=
2019ac_configure_args1=
2020ac_must_keep_next=false
2021for ac_pass in 1 2
2022do
2023 for ac_arg
2024 do
2025 case $ac_arg in
2026 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2027 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2028 | -silent | --silent | --silen | --sile | --sil)
2029 continue ;;
2030 *\'*)
2031 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2032 esac
2033 case $ac_pass in
2034 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2035 2)
2036 as_fn_append ac_configure_args1 " '$ac_arg'"
2037 if test $ac_must_keep_next = true; then
2038 ac_must_keep_next=false # Got value, back to normal.
2039 else
2040 case $ac_arg in
2041 *=* | --config-cache | -C | -disable-* | --disable-* \
2042 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2043 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2044 | -with-* | --with-* | -without-* | --without-* | --x)
2045 case "$ac_configure_args0 " in
2046 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2047 esac
2048 ;;
2049 -* ) ac_must_keep_next=true ;;
2050 esac
2051 fi
2052 as_fn_append ac_configure_args " '$ac_arg'"
2053 ;;
2054 esac
2055 done
2056done
2057{ ac_configure_args0=; unset ac_configure_args0;}
2058{ ac_configure_args1=; unset ac_configure_args1;}
2059
2060# When interrupted or exit'd, cleanup temporary files, and complete
2061# config.log. We remove comments because anyway the quotes in there
2062# would cause problems or look ugly.
2063# WARNING: Use '\'' to represent an apostrophe within the trap.
2064# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2065trap 'exit_status=$?
2066 # Sanitize IFS.
2067 IFS=" "" $as_nl"
2068 # Save into config.log some information that might help in debugging.
2069 {
2070 echo
2071
2072 printf "%s\n" "## ---------------- ##
2073## Cache variables. ##
2074## ---------------- ##"
2075 echo
2076 # The following way of writing the cache mishandles newlines in values,
2077(
2078 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2079 eval ac_val=\$$ac_var
2080 case $ac_val in #(
2081 *${as_nl}*)
2082 case $ac_var in #(
2083 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2084printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2085 esac
2086 case $ac_var in #(
2087 _ | IFS | as_nl) ;; #(
2088 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2089 *) { eval $ac_var=; unset $ac_var;} ;;
2090 esac ;;
2091 esac
2092 done
2093 (set) 2>&1 |
2094 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2095 *${as_nl}ac_space=\ *)
2096 sed -n \
2097 "s/'\''/'\''\\\\'\'''\''/g;
2098 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2099 ;; #(
2100 *)
2101 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2102 ;;
2103 esac |
2104 sort
2105)
2106 echo
2107
2108 printf "%s\n" "## ----------------- ##
2109## Output variables. ##
2110## ----------------- ##"
2111 echo
2112 for ac_var in $ac_subst_vars
2113 do
2114 eval ac_val=\$$ac_var
2115 case $ac_val in
2116 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2117 esac
2118 printf "%s\n" "$ac_var='\''$ac_val'\''"
2119 done | sort
2120 echo
2121
2122 if test -n "$ac_subst_files"; then
2123 printf "%s\n" "## ------------------- ##
2124## File substitutions. ##
2125## ------------------- ##"
2126 echo
2127 for ac_var in $ac_subst_files
2128 do
2129 eval ac_val=\$$ac_var
2130 case $ac_val in
2131 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2132 esac
2133 printf "%s\n" "$ac_var='\''$ac_val'\''"
2134 done | sort
2135 echo
2136 fi
2137
2138 if test -s confdefs.h; then
2139 printf "%s\n" "## ----------- ##
2140## confdefs.h. ##
2141## ----------- ##"
2142 echo
2143 cat confdefs.h
2144 echo
2145 fi
2146 test "$ac_signal" != 0 &&
2147 printf "%s\n" "$as_me: caught signal $ac_signal"
2148 printf "%s\n" "$as_me: exit $exit_status"
2149 } >&5
2150 rm -f core *.core core.conftest.* &&
2151 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2152 exit $exit_status
2153' 0
2154for ac_signal in 1 2 13 15; do
2155 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2156done
2157ac_signal=0
2158
2159# confdefs.h avoids OS command line length limits that DEFS can exceed.
2160rm -f -r conftest* confdefs.h
2161
2162printf "%s\n" "/* confdefs.h */" > confdefs.h
2163
2164# Predefined preprocessor variables.
2165
2166printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2167
2168printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2169
2170printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2171
2172printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2173
2174printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2175
2176printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2177
2178
2179# Let the site file select an alternate cache file if it wants to.
2180# Prefer an explicitly selected file to automatically selected ones.
2181if test -n "$CONFIG_SITE"; then
2182 ac_site_files="$CONFIG_SITE"
2183elif test "x$prefix" != xNONE; then
2184 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2185else
2186 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2187fi
2188
2189for ac_site_file in $ac_site_files
2190do
2191 case $ac_site_file in #(
2192 */*) :
2193 ;; #(
2194 *) :
2195 ac_site_file=./$ac_site_file ;;
2196esac
2197 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2199printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2200 sed 's/^/| /' "$ac_site_file" >&5
2201 . "$ac_site_file" \
2202 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2203printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2204as_fn_error $? "failed to load site script $ac_site_file
2205See 'config.log' for more details" "$LINENO" 5; }
2206 fi
2207done
2208
2209if test -r "$cache_file"; then
2210 # Some versions of bash will fail to source /dev/null (special files
2211 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2212 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2214printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2215 case $cache_file in
2216 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2217 *) . "./$cache_file";;
2218 esac
2219 fi
2220else
2221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2222printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2223 >$cache_file
2224fi
2225
2226# Test code for whether the C compiler supports C89 (global declarations)
2227ac_c_conftest_c89_globals='
2228/* Does the compiler advertise C89 conformance?
2229 Do not test the value of __STDC__, because some compilers set it to 0
2230 while being otherwise adequately conformant. */
2231#if !defined __STDC__
2232# error "Compiler does not advertise C89 conformance"
2233#endif
2234
2235#include <stddef.h>
2236#include <stdarg.h>
2237struct stat;
2238/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2239struct buf { int x; };
2240struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2241static char *e (char **p, int i)
2242{
2243 return p[i];
2244}
2245static char *f (char * (*g) (char **, int), char **p, ...)
2246{
2247 char *s;
2248 va_list v;
2249 va_start (v,p);
2250 s = g (p, va_arg (v,int));
2251 va_end (v);
2252 return s;
2253}
2254
2255/* C89 style stringification. */
2256#define noexpand_stringify(a) #a
2257const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2258
2259/* C89 style token pasting. Exercises some of the corner cases that
2260 e.g. old MSVC gets wrong, but not very hard. */
2261#define noexpand_concat(a,b) a##b
2262#define expand_concat(a,b) noexpand_concat(a,b)
2263extern int vA;
2264extern int vbee;
2265#define aye A
2266#define bee B
2267int *pvA = &expand_concat(v,aye);
2268int *pvbee = &noexpand_concat(v,bee);
2269
2270/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2271 function prototypes and stuff, but not \xHH hex character constants.
2272 These do not provoke an error unfortunately, instead are silently treated
2273 as an "x". The following induces an error, until -std is added to get
2274 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2275 array size at least. It is necessary to write \x00 == 0 to get something
2276 that is true only with -std. */
2277int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2278
2279/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2280 inside strings and character constants. */
2281#define FOO(x) '\''x'\''
2282int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2283
2284int test (int i, double x);
2285struct s1 {int (*f) (int a);};
2286struct s2 {int (*f) (double a);};
2287int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2288 int, int);'
2289
2290# Test code for whether the C compiler supports C89 (body of main).
2291ac_c_conftest_c89_main='
2292ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2293'
2294
2295# Test code for whether the C compiler supports C99 (global declarations)
2296ac_c_conftest_c99_globals='
2297/* Does the compiler advertise C99 conformance? */
2298#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2299# error "Compiler does not advertise C99 conformance"
2300#endif
2301
2302// See if C++-style comments work.
2303
2304#include <stdbool.h>
2305extern int puts (const char *);
2306extern int printf (const char *, ...);
2307extern int dprintf (int, const char *, ...);
2308extern void *malloc (size_t);
2309extern void free (void *);
2310
2311// Check varargs macros. These examples are taken from C99 6.10.3.5.
2312// dprintf is used instead of fprintf to avoid needing to declare
2313// FILE and stderr.
2314#define debug(...) dprintf (2, __VA_ARGS__)
2315#define showlist(...) puts (#__VA_ARGS__)
2316#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2317static void
2318test_varargs_macros (void)
2319{
2320 int x = 1234;
2321 int y = 5678;
2322 debug ("Flag");
2323 debug ("X = %d\n", x);
2324 showlist (The first, second, and third items.);
2325 report (x>y, "x is %d but y is %d", x, y);
2326}
2327
2328// Check long long types.
2329#define BIG64 18446744073709551615ull
2330#define BIG32 4294967295ul
2331#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2332#if !BIG_OK
2333 #error "your preprocessor is broken"
2334#endif
2335#if BIG_OK
2336#else
2337 #error "your preprocessor is broken"
2338#endif
2339static long long int bignum = -9223372036854775807LL;
2340static unsigned long long int ubignum = BIG64;
2341
2342struct incomplete_array
2343{
2344 int datasize;
2345 double data[];
2346};
2347
2348struct named_init {
2349 int number;
2350 const wchar_t *name;
2351 double average;
2352};
2353
2354typedef const char *ccp;
2355
2356static inline int
2357test_restrict (ccp restrict text)
2358{
2359 // Iterate through items via the restricted pointer.
2360 // Also check for declarations in for loops.
2361 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2362 continue;
2363 return 0;
2364}
2365
2366// Check varargs and va_copy.
2367static bool
2368test_varargs (const char *format, ...)
2369{
2370 va_list args;
2371 va_start (args, format);
2372 va_list args_copy;
2373 va_copy (args_copy, args);
2374
2375 const char *str = "";
2376 int number = 0;
2377 float fnumber = 0;
2378
2379 while (*format)
2380 {
2381 switch (*format++)
2382 {
2383 case '\''s'\'': // string
2384 str = va_arg (args_copy, const char *);
2385 break;
2386 case '\''d'\'': // int
2387 number = va_arg (args_copy, int);
2388 break;
2389 case '\''f'\'': // float
2390 fnumber = va_arg (args_copy, double);
2391 break;
2392 default:
2393 break;
2394 }
2395 }
2396 va_end (args_copy);
2397 va_end (args);
2398
2399 return *str && number && fnumber;
2400}
2401'
2402
2403# Test code for whether the C compiler supports C99 (body of main).
2404ac_c_conftest_c99_main='
2405 // Check bool.
2406 _Bool success = false;
2407 success |= (argc != 0);
2408
2409 // Check restrict.
2410 if (test_restrict ("String literal") == 0)
2411 success = true;
2412 char *restrict newvar = "Another string";
2413
2414 // Check varargs.
2415 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2416 test_varargs_macros ();
2417
2418 // Check flexible array members.
2419 struct incomplete_array *ia =
2420 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2421 ia->datasize = 10;
2422 for (int i = 0; i < ia->datasize; ++i)
2423 ia->data[i] = i * 1.234;
2424 // Work around memory leak warnings.
2425 free (ia);
2426
2427 // Check named initializers.
2428 struct named_init ni = {
2429 .number = 34,
2430 .name = L"Test wide string",
2431 .average = 543.34343,
2432 };
2433
2434 ni.number = 58;
2435
2436 int dynamic_array[ni.number];
2437 dynamic_array[0] = argv[0][0];
2438 dynamic_array[ni.number - 1] = 543;
2439
2440 // work around unused variable warnings
2441 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2442 || dynamic_array[ni.number - 1] != 543);
2443'
2444
2445# Test code for whether the C compiler supports C11 (global declarations)
2446ac_c_conftest_c11_globals='
2447/* Does the compiler advertise C11 conformance? */
2448#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2449# error "Compiler does not advertise C11 conformance"
2450#endif
2451
2452// Check _Alignas.
2453char _Alignas (double) aligned_as_double;
2454char _Alignas (0) no_special_alignment;
2455extern char aligned_as_int;
2456char _Alignas (0) _Alignas (int) aligned_as_int;
2457
2458// Check _Alignof.
2459enum
2460{
2461 int_alignment = _Alignof (int),
2462 int_array_alignment = _Alignof (int[100]),
2463 char_alignment = _Alignof (char)
2464};
2465_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2466
2467// Check _Noreturn.
2468int _Noreturn does_not_return (void) { for (;;) continue; }
2469
2470// Check _Static_assert.
2471struct test_static_assert
2472{
2473 int x;
2474 _Static_assert (sizeof (int) <= sizeof (long int),
2475 "_Static_assert does not work in struct");
2476 long int y;
2477};
2478
2479// Check UTF-8 literals.
2480#define u8 syntax error!
2481char const utf8_literal[] = u8"happens to be ASCII" "another string";
2482
2483// Check duplicate typedefs.
2484typedef long *long_ptr;
2485typedef long int *long_ptr;
2486typedef long_ptr long_ptr;
2487
2488// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2489struct anonymous
2490{
2491 union {
2492 struct { int i; int j; };
2493 struct { int k; long int l; } w;
2494 };
2495 int m;
2496} v1;
2497'
2498
2499# Test code for whether the C compiler supports C11 (body of main).
2500ac_c_conftest_c11_main='
2501 _Static_assert ((offsetof (struct anonymous, i)
2502 == offsetof (struct anonymous, w.k)),
2503 "Anonymous union alignment botch");
2504 v1.i = 2;
2505 v1.w.k = 5;
2506 ok |= v1.i != 5;
2507'
2508
2509# Test code for whether the C compiler supports C11 (complete).
2510ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2511${ac_c_conftest_c99_globals}
2512${ac_c_conftest_c11_globals}
2513
2514int
2515main (int argc, char **argv)
2516{
2517 int ok = 0;
2518 ${ac_c_conftest_c89_main}
2519 ${ac_c_conftest_c99_main}
2520 ${ac_c_conftest_c11_main}
2521 return ok;
2522}
2523"
2524
2525# Test code for whether the C compiler supports C99 (complete).
2526ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2527${ac_c_conftest_c99_globals}
2528
2529int
2530main (int argc, char **argv)
2531{
2532 int ok = 0;
2533 ${ac_c_conftest_c89_main}
2534 ${ac_c_conftest_c99_main}
2535 return ok;
2536}
2537"
2538
2539# Test code for whether the C compiler supports C89 (complete).
2540ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2541
2542int
2543main (int argc, char **argv)
2544{
2545 int ok = 0;
2546 ${ac_c_conftest_c89_main}
2547 return ok;
2548}
2549"
2550
2551as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2552as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2553as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2554as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2555as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2556as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2557as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2558as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2559as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2560
2561# Auxiliary files required by this configure script.
2562ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
2563
2564# Locations in which to look for auxiliary files.
2565ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2566
2567# Search for a directory containing all of the required auxiliary files,
2568# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2569# If we don't find one directory that contains all the files we need,
2570# we report the set of missing files from the *first* directory in
2571# $ac_aux_dir_candidates and give up.
2572ac_missing_aux_files=""
2573ac_first_candidate=:
2574printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576as_found=false
2577for as_dir in $ac_aux_dir_candidates
2578do
2579 IFS=$as_save_IFS
2580 case $as_dir in #(((
2581 '') as_dir=./ ;;
2582 */) ;;
2583 *) as_dir=$as_dir/ ;;
2584 esac
2585 as_found=:
2586
2587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2588 ac_aux_dir_found=yes
2589 ac_install_sh=
2590 for ac_aux in $ac_aux_files
2591 do
2592 # As a special case, if "install-sh" is required, that requirement
2593 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2594 # and $ac_install_sh is set appropriately for whichever one is found.
2595 if test x"$ac_aux" = x"install-sh"
2596 then
2597 if test -f "${as_dir}install-sh"; then
2598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2599 ac_install_sh="${as_dir}install-sh -c"
2600 elif test -f "${as_dir}install.sh"; then
2601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2602 ac_install_sh="${as_dir}install.sh -c"
2603 elif test -f "${as_dir}shtool"; then
2604 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2605 ac_install_sh="${as_dir}shtool install -c"
2606 else
2607 ac_aux_dir_found=no
2608 if $ac_first_candidate; then
2609 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2610 else
2611 break
2612 fi
2613 fi
2614 else
2615 if test -f "${as_dir}${ac_aux}"; then
2616 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2617 else
2618 ac_aux_dir_found=no
2619 if $ac_first_candidate; then
2620 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2621 else
2622 break
2623 fi
2624 fi
2625 fi
2626 done
2627 if test "$ac_aux_dir_found" = yes; then
2628 ac_aux_dir="$as_dir"
2629 break
2630 fi
2631 ac_first_candidate=false
2632
2633 as_found=false
2634done
2635IFS=$as_save_IFS
2636if $as_found
2637then :
2638
2639else case e in #(
2640 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2641esac
2642fi
2643
2644
2645# These three variables are undocumented and unsupported,
2646# and are intended to be withdrawn in a future Autoconf release.
2647# They can cause serious problems if a builder's source tree is in a directory
2648# whose full name contains unusual characters.
2649if test -f "${ac_aux_dir}config.guess"; then
2650 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2651fi
2652if test -f "${ac_aux_dir}config.sub"; then
2653 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2654fi
2655if test -f "$ac_aux_dir/configure"; then
2656 ac_configure="$SHELL ${ac_aux_dir}configure"
2657fi
2658
2659# Check that the precious variables saved in the cache have kept the same
2660# value.
2661ac_cache_corrupted=false
2662for ac_var in $ac_precious_vars; do
2663 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2664 eval ac_new_set=\$ac_env_${ac_var}_set
2665 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2666 eval ac_new_val=\$ac_env_${ac_var}_value
2667 case $ac_old_set,$ac_new_set in
2668 set,)
2669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2670printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2671 ac_cache_corrupted=: ;;
2672 ,set)
2673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2674printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2675 ac_cache_corrupted=: ;;
2676 ,);;
2677 *)
2678 if test "x$ac_old_val" != "x$ac_new_val"; then
2679 # differences in whitespace do not lead to failure.
2680 ac_old_val_w=`echo x $ac_old_val`
2681 ac_new_val_w=`echo x $ac_new_val`
2682 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2684printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2685 ac_cache_corrupted=:
2686 else
2687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2688printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2689 eval $ac_var=\$ac_old_val
2690 fi
2691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2692printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2694printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2695 fi;;
2696 esac
2697 # Pass precious variables to config.status.
2698 if test "$ac_new_set" = set; then
2699 case $ac_new_val in
2700 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2701 *) ac_arg=$ac_var=$ac_new_val ;;
2702 esac
2703 case " $ac_configure_args " in
2704 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2705 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2706 esac
2707 fi
2708done
2709if $ac_cache_corrupted; then
2710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2711printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2713printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2714 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2715 and start over" "$LINENO" 5
2716fi
2717## -------------------- ##
2718## Main body of script. ##
2719## -------------------- ##
2720
2721ac_ext=c
2722ac_cpp='$CPP $CPPFLAGS'
2723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2725ac_compiler_gnu=$ac_cv_c_compiler_gnu
2726
2727
2728
2729
2730# libpng does not follow GNU file name conventions (hence 'foreign')
2731# color-tests requires automake 1.11 or later
2732# silent-rules requires automake 1.11 or later
2733# dist-xz requires automake 1.11 or later
2734# 1.12.2 fixes a security issue in 1.11.2 and 1.12.1
2735# 1.13 is required for parallel tests
2736am__api_version='1.17'
2737
2738
2739
2740 # Find a good install program. We prefer a C program (faster),
2741# so one script is as good as another. But avoid the broken or
2742# incompatible versions:
2743# SysV /etc/install, /usr/sbin/install
2744# SunOS /usr/etc/install
2745# IRIX /sbin/install
2746# AIX /bin/install
2747# AmigaOS /C/install, which installs bootblocks on floppy discs
2748# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2749# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2750# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2751# OS/2's system install, which has a completely different semantic
2752# ./install, which can be erroneously created by make from ./install.sh.
2753# Reject install programs that cannot install multiple files.
2754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2755printf %s "checking for a BSD-compatible install... " >&6; }
2756if test -z "$INSTALL"; then
2757if test ${ac_cv_path_install+y}
2758then :
2759 printf %s "(cached) " >&6
2760else case e in #(
2761 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762for as_dir in $PATH
2763do
2764 IFS=$as_save_IFS
2765 case $as_dir in #(((
2766 '') as_dir=./ ;;
2767 */) ;;
2768 *) as_dir=$as_dir/ ;;
2769 esac
2770 # Account for fact that we put trailing slashes in our PATH walk.
2771case $as_dir in #((
2772 ./ | /[cC]/* | \
2773 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2774 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2775 /usr/ucb/* ) ;;
2776 *)
2777 # OSF1 and SCO ODT 3.0 have their own names for install.
2778 # Don't use installbsd from OSF since it installs stuff as root
2779 # by default.
2780 for ac_prog in ginstall scoinst install; do
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2783 if test $ac_prog = install &&
2784 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2785 # AIX install. It has an incompatible calling convention.
2786 :
2787 elif test $ac_prog = install &&
2788 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2789 # program-specific install script used by HP pwplus--don't use.
2790 :
2791 else
2792 rm -rf conftest.one conftest.two conftest.dir
2793 echo one > conftest.one
2794 echo two > conftest.two
2795 mkdir conftest.dir
2796 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2797 test -s conftest.one && test -s conftest.two &&
2798 test -s conftest.dir/conftest.one &&
2799 test -s conftest.dir/conftest.two
2800 then
2801 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2802 break 3
2803 fi
2804 fi
2805 fi
2806 done
2807 done
2808 ;;
2809esac
2810
2811 done
2812IFS=$as_save_IFS
2813
2814rm -rf conftest.one conftest.two conftest.dir
2815 ;;
2816esac
2817fi
2818 if test ${ac_cv_path_install+y}; then
2819 INSTALL=$ac_cv_path_install
2820 else
2821 # As a last resort, use the slow shell script. Don't cache a
2822 # value for INSTALL within a source directory, because that will
2823 # break other packages using the cache if that directory is
2824 # removed, or if the value is a relative name.
2825 INSTALL=$ac_install_sh
2826 fi
2827fi
2828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2829printf "%s\n" "$INSTALL" >&6; }
2830
2831# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2832# It thinks the first close brace ends the variable substitution.
2833test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2834
2835test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2836
2837test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2838
2839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2840printf %s "checking whether sleep supports fractional seconds... " >&6; }
2841if test ${am_cv_sleep_fractional_seconds+y}
2842then :
2843 printf %s "(cached) " >&6
2844else case e in #(
2845 e) if sleep 0.001 2>/dev/null
2846then :
2847 am_cv_sleep_fractional_seconds=yes
2848else case e in #(
2849 e) am_cv_sleep_fractional_seconds=no ;;
2850esac
2851fi
2852 ;;
2853esac
2854fi
2855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2856printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2857
2858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2859printf %s "checking filesystem timestamp resolution... " >&6; }
2860if test ${am_cv_filesystem_timestamp_resolution+y}
2861then :
2862 printf %s "(cached) " >&6
2863else case e in #(
2864 e) # Default to the worst case.
2865am_cv_filesystem_timestamp_resolution=2
2866
2867# Only try to go finer than 1 sec if sleep can do it.
2868# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2869# - 1 sec is not much of a win compared to 2 sec, and
2870# - it takes 2 seconds to perform the test whether 1 sec works.
2871#
2872# Instead, just use the default 2s on platforms that have 1s resolution,
2873# accept the extra 1s delay when using $sleep in the Automake tests, in
2874# exchange for not incurring the 2s delay for running the test for all
2875# packages.
2876#
2877am_try_resolutions=
2878if test "$am_cv_sleep_fractional_seconds" = yes; then
2879 # Even a millisecond often causes a bunch of false positives,
2880 # so just try a hundredth of a second. The time saved between .001 and
2881 # .01 is not terribly consequential.
2882 am_try_resolutions="0.01 0.1 $am_try_resolutions"
2883fi
2884
2885# In order to catch current-generation FAT out, we must *modify* files
2886# that already exist; the *creation* timestamp is finer. Use names
2887# that make ls -t sort them differently when they have equal
2888# timestamps than when they have distinct timestamps, keeping
2889# in mind that ls -t prints the *newest* file first.
2890rm -f conftest.ts?
2891: > conftest.ts1
2892: > conftest.ts2
2893: > conftest.ts3
2894
2895# Make sure ls -t actually works. Do 'set' in a subshell so we don't
2896# clobber the current shell's arguments. (Outer-level square brackets
2897# are removed by m4; they're present so that m4 does not expand
2898# <dollar><star>; be careful, easy to get confused.)
2899if (
2900 set X `ls -t conftest.ts[12]` &&
2901 {
2902 test "$*" != "X conftest.ts1 conftest.ts2" ||
2903 test "$*" != "X conftest.ts2 conftest.ts1";
2904 }
2905); then :; else
2906 # If neither matched, then we have a broken ls. This can happen
2907 # if, for instance, CONFIG_SHELL is bash and it inherits a
2908 # broken ls alias from the environment. This has actually
2909 # happened. Such a system could not be considered "sane".
2910 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2911 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2912printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2913as_fn_error $? "ls -t produces unexpected output.
2914Make sure there is not a broken ls alias in your environment.
2915See 'config.log' for more details" "$LINENO" 5; }
2916fi
2917
2918for am_try_res in $am_try_resolutions; do
2919 # Any one fine-grained sleep might happen to cross the boundary
2920 # between two values of a coarser actual resolution, but if we do
2921 # two fine-grained sleeps in a row, at least one of them will fall
2922 # entirely within a coarse interval.
2923 echo alpha > conftest.ts1
2924 sleep $am_try_res
2925 echo beta > conftest.ts2
2926 sleep $am_try_res
2927 echo gamma > conftest.ts3
2928
2929 # We assume that 'ls -t' will make use of high-resolution
2930 # timestamps if the operating system supports them at all.
2931 if (set X `ls -t conftest.ts?` &&
2932 test "$2" = conftest.ts3 &&
2933 test "$3" = conftest.ts2 &&
2934 test "$4" = conftest.ts1); then
2935 #
2936 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
2937 # because we don't need to test make.
2938 make_ok=true
2939 if test $am_try_res != 1; then
2940 # But if we've succeeded so far with a subsecond resolution, we
2941 # have one more thing to check: make. It can happen that
2942 # everything else supports the subsecond mtimes, but make doesn't;
2943 # notably on macOS, which ships make 3.81 from 2006 (the last one
2944 # released under GPLv2). https://bugs.gnu.org/68808
2945 #
2946 # We test $MAKE if it is defined in the environment, else "make".
2947 # It might get overridden later, but our hope is that in practice
2948 # it does not matter: it is the system "make" which is (by far)
2949 # the most likely to be broken, whereas if the user overrides it,
2950 # probably they did so with a better, or at least not worse, make.
2951 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
2952 #
2953 # Create a Makefile (real tab character here):
2954 rm -f conftest.mk
2955 echo 'conftest.ts1: conftest.ts2' >conftest.mk
2956 echo ' touch conftest.ts2' >>conftest.mk
2957 #
2958 # Now, running
2959 # touch conftest.ts1; touch conftest.ts2; make
2960 # should touch ts1 because ts2 is newer. This could happen by luck,
2961 # but most often, it will fail if make's support is insufficient. So
2962 # test for several consecutive successes.
2963 #
2964 # (We reuse conftest.ts[12] because we still want to modify existing
2965 # files, not create new ones, per above.)
2966 n=0
2967 make=${MAKE-make}
2968 until test $n -eq 3; do
2969 echo one > conftest.ts1
2970 sleep $am_try_res
2971 echo two > conftest.ts2 # ts2 should now be newer than ts1
2972 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
2973 make_ok=false
2974 break # out of $n loop
2975 fi
2976 n=`expr $n + 1`
2977 done
2978 fi
2979 #
2980 if $make_ok; then
2981 # Everything we know to check worked out, so call this resolution good.
2982 am_cv_filesystem_timestamp_resolution=$am_try_res
2983 break # out of $am_try_res loop
2984 fi
2985 # Otherwise, we'll go on to check the next resolution.
2986 fi
2987done
2988rm -f conftest.ts?
2989# (end _am_filesystem_timestamp_resolution)
2990 ;;
2991esac
2992fi
2993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
2994printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
2995
2996# This check should not be cached, as it may vary across builds of
2997# different projects.
2998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2999printf %s "checking whether build environment is sane... " >&6; }
3000# Reject unsafe characters in $srcdir or the absolute working directory
3001# name. Accept space and tab only in the latter.
3002am_lf='
3003'
3004case `pwd` in
3005 *[\\\"\#\$\&\'\`$am_lf]*)
3006 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3007esac
3008case $srcdir in
3009 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3010 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3011esac
3012
3013# Do 'set' in a subshell so we don't clobber the current shell's
3014# arguments. Must try -L first in case configure is actually a
3015# symlink; some systems play weird games with the mod time of symlinks
3016# (eg FreeBSD returns the mod time of the symlink's containing
3017# directory).
3018am_build_env_is_sane=no
3019am_has_slept=no
3020rm -f conftest.file
3021for am_try in 1 2; do
3022 echo "timestamp, slept: $am_has_slept" > conftest.file
3023 if (
3024 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3025 if test "$*" = "X"; then
3026 # -L didn't work.
3027 set X `ls -t "$srcdir/configure" conftest.file`
3028 fi
3029 test "$2" = conftest.file
3030 ); then
3031 am_build_env_is_sane=yes
3032 break
3033 fi
3034 # Just in case.
3035 sleep "$am_cv_filesystem_timestamp_resolution"
3036 am_has_slept=yes
3037done
3038
3039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3040printf "%s\n" "$am_build_env_is_sane" >&6; }
3041if test "$am_build_env_is_sane" = no; then
3042 as_fn_error $? "newly created file is older than distributed files!
3043Check your system clock" "$LINENO" 5
3044fi
3045
3046# If we didn't sleep, we still need to ensure time stamps of config.status and
3047# generated files are strictly newer.
3048am_sleep_pid=
3049if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3050then :
3051
3052else case e in #(
3053 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3054 am_sleep_pid=$!
3055 ;;
3056esac
3057fi
3058
3059rm -f conftest.file
3060
3061test "$program_prefix" != NONE &&
3062 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3063# Use a double $ so make ignores it.
3064test "$program_suffix" != NONE &&
3065 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3066# Double any \ or $.
3067# By default was 's,x,x', remove it if useless.
3068ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3069program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3070
3071
3072# Expand $ac_aux_dir to an absolute path.
3073am_aux_dir=`cd "$ac_aux_dir" && pwd`
3074
3075
3076 if test x"${MISSING+set}" != xset; then
3077 MISSING="\${SHELL} '$am_aux_dir/missing'"
3078fi
3079# Use eval to expand $SHELL
3080if eval "$MISSING --is-lightweight"; then
3081 am_missing_run="$MISSING "
3082else
3083 am_missing_run=
3084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3085printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3086fi
3087
3088if test x"${install_sh+set}" != xset; then
3089 case $am_aux_dir in
3090 *\ * | *\ *)
3091 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3092 *)
3093 install_sh="\${SHELL} $am_aux_dir/install-sh"
3094 esac
3095fi
3096
3097# Installed binaries are usually stripped using 'strip' when the user
3098# run "make install-strip". However 'strip' might not be the right
3099# tool to use in cross-compilation environments, therefore Automake
3100# will honor the 'STRIP' environment variable to overrule this program.
3101if test "$cross_compiling" != no; then
3102 if test -n "$ac_tool_prefix"; then
3103 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3104set dummy ${ac_tool_prefix}strip; ac_word=$2
3105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106printf %s "checking for $ac_word... " >&6; }
3107if test ${ac_cv_prog_STRIP+y}
3108then :
3109 printf %s "(cached) " >&6
3110else case e in #(
3111 e) if test -n "$STRIP"; then
3112 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3113else
3114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115for as_dir in $PATH
3116do
3117 IFS=$as_save_IFS
3118 case $as_dir in #(((
3119 '') as_dir=./ ;;
3120 */) ;;
3121 *) as_dir=$as_dir/ ;;
3122 esac
3123 for ac_exec_ext in '' $ac_executable_extensions; do
3124 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3125 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3126 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3127 break 2
3128 fi
3129done
3130 done
3131IFS=$as_save_IFS
3132
3133fi ;;
3134esac
3135fi
3136STRIP=$ac_cv_prog_STRIP
3137if test -n "$STRIP"; then
3138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3139printf "%s\n" "$STRIP" >&6; }
3140else
3141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142printf "%s\n" "no" >&6; }
3143fi
3144
3145
3146fi
3147if test -z "$ac_cv_prog_STRIP"; then
3148 ac_ct_STRIP=$STRIP
3149 # Extract the first word of "strip", so it can be a program name with args.
3150set dummy strip; ac_word=$2
3151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3152printf %s "checking for $ac_word... " >&6; }
3153if test ${ac_cv_prog_ac_ct_STRIP+y}
3154then :
3155 printf %s "(cached) " >&6
3156else case e in #(
3157 e) if test -n "$ac_ct_STRIP"; then
3158 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3159else
3160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161for as_dir in $PATH
3162do
3163 IFS=$as_save_IFS
3164 case $as_dir in #(((
3165 '') as_dir=./ ;;
3166 */) ;;
3167 *) as_dir=$as_dir/ ;;
3168 esac
3169 for ac_exec_ext in '' $ac_executable_extensions; do
3170 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3171 ac_cv_prog_ac_ct_STRIP="strip"
3172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3173 break 2
3174 fi
3175done
3176 done
3177IFS=$as_save_IFS
3178
3179fi ;;
3180esac
3181fi
3182ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3183if test -n "$ac_ct_STRIP"; then
3184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3185printf "%s\n" "$ac_ct_STRIP" >&6; }
3186else
3187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188printf "%s\n" "no" >&6; }
3189fi
3190
3191 if test "x$ac_ct_STRIP" = x; then
3192 STRIP=":"
3193 else
3194 case $cross_compiling:$ac_tool_warned in
3195yes:)
3196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3197printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3198ac_tool_warned=yes ;;
3199esac
3200 STRIP=$ac_ct_STRIP
3201 fi
3202else
3203 STRIP="$ac_cv_prog_STRIP"
3204fi
3205
3206fi
3207INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3208
3209
3210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3211printf %s "checking for a race-free mkdir -p... " >&6; }
3212if test -z "$MKDIR_P"; then
3213 if test ${ac_cv_path_mkdir+y}
3214then :
3215 printf %s "(cached) " >&6
3216else case e in #(
3217 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3219do
3220 IFS=$as_save_IFS
3221 case $as_dir in #(((
3222 '') as_dir=./ ;;
3223 */) ;;
3224 *) as_dir=$as_dir/ ;;
3225 esac
3226 for ac_prog in mkdir gmkdir; do
3227 for ac_exec_ext in '' $ac_executable_extensions; do
3228 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3229 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3230 'mkdir ('*'coreutils) '* | \
3231 *'BusyBox '* | \
3232 'mkdir (fileutils) '4.1*)
3233 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3234 break 3;;
3235 esac
3236 done
3237 done
3238 done
3239IFS=$as_save_IFS
3240 ;;
3241esac
3242fi
3243
3244 test -d ./--version && rmdir ./--version
3245 if test ${ac_cv_path_mkdir+y}; then
3246 MKDIR_P="$ac_cv_path_mkdir -p"
3247 else
3248 # As a last resort, use plain mkdir -p,
3249 # in the hope it doesn't have the bugs of ancient mkdir.
3250 MKDIR_P='mkdir -p'
3251 fi
3252fi
3253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3254printf "%s\n" "$MKDIR_P" >&6; }
3255
3256for ac_prog in gawk mawk nawk awk
3257do
3258 # Extract the first word of "$ac_prog", so it can be a program name with args.
3259set dummy $ac_prog; ac_word=$2
3260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3261printf %s "checking for $ac_word... " >&6; }
3262if test ${ac_cv_prog_AWK+y}
3263then :
3264 printf %s "(cached) " >&6
3265else case e in #(
3266 e) if test -n "$AWK"; then
3267 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3268else
3269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270for as_dir in $PATH
3271do
3272 IFS=$as_save_IFS
3273 case $as_dir in #(((
3274 '') as_dir=./ ;;
3275 */) ;;
3276 *) as_dir=$as_dir/ ;;
3277 esac
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3280 ac_cv_prog_AWK="$ac_prog"
3281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3282 break 2
3283 fi
3284done
3285 done
3286IFS=$as_save_IFS
3287
3288fi ;;
3289esac
3290fi
3291AWK=$ac_cv_prog_AWK
3292if test -n "$AWK"; then
3293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3294printf "%s\n" "$AWK" >&6; }
3295else
3296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297printf "%s\n" "no" >&6; }
3298fi
3299
3300
3301 test -n "$AWK" && break
3302done
3303
3304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3305printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3306set x ${MAKE-make}
3307ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3308if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3309then :
3310 printf %s "(cached) " >&6
3311else case e in #(
3312 e) cat >conftest.make <<\_ACEOF
3313SHELL = /bin/sh
3314all:
3315 @echo '@@@%%%=$(MAKE)=@@@%%%'
3316_ACEOF
3317# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3318case `${MAKE-make} -f conftest.make 2>/dev/null` in
3319 *@@@%%%=?*=@@@%%%*)
3320 eval ac_cv_prog_make_${ac_make}_set=yes;;
3321 *)
3322 eval ac_cv_prog_make_${ac_make}_set=no;;
3323esac
3324rm -f conftest.make ;;
3325esac
3326fi
3327if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3329printf "%s\n" "yes" >&6; }
3330 SET_MAKE=
3331else
3332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333printf "%s\n" "no" >&6; }
3334 SET_MAKE="MAKE=${MAKE-make}"
3335fi
3336
3337rm -rf .tst 2>/dev/null
3338mkdir .tst 2>/dev/null
3339if test -d .tst; then
3340 am__leading_dot=.
3341else
3342 am__leading_dot=_
3343fi
3344rmdir .tst 2>/dev/null
3345
3346AM_DEFAULT_VERBOSITY=1
3347# Check whether --enable-silent-rules was given.
3348if test ${enable_silent_rules+y}
3349then :
3350 enableval=$enable_silent_rules;
3351fi
3352
3353am_make=${MAKE-make}
3354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3355printf %s "checking whether $am_make supports nested variables... " >&6; }
3356if test ${am_cv_make_support_nested_variables+y}
3357then :
3358 printf %s "(cached) " >&6
3359else case e in #(
3360 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3361BAR0=false
3362BAR1=true
3363V=1
3364am__doit:
3365 @$(TRUE)
3366.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3367 am_cv_make_support_nested_variables=yes
3368else
3369 am_cv_make_support_nested_variables=no
3370fi ;;
3371esac
3372fi
3373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3374printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3375AM_BACKSLASH='\'
3376
3377am__rm_f_notfound=
3378if (rm -f && rm -fr && rm -rf) 2>/dev/null
3379then :
3380
3381else case e in #(
3382 e) am__rm_f_notfound='""' ;;
3383esac
3384fi
3385
3386
3387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3388printf %s "checking xargs -n works... " >&6; }
3389if test ${am_cv_xargs_n_works+y}
3390then :
3391 printf %s "(cached) " >&6
3392else case e in #(
3393 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
33943"
3395then :
3396 am_cv_xargs_n_works=yes
3397else case e in #(
3398 e) am_cv_xargs_n_works=no ;;
3399esac
3400fi ;;
3401esac
3402fi
3403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3404printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3405if test "$am_cv_xargs_n_works" = yes
3406then :
3407 am__xargs_n='xargs -n'
3408else case e in #(
3409 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3410 ;;
3411esac
3412fi
3413
3414if test "`cd $srcdir && pwd`" != "`pwd`"; then
3415 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3416 # is not polluted with repeated "-I."
3417 am__isrc=' -I$(srcdir)'
3418 # test to see if srcdir already configured
3419 if test -f $srcdir/config.status; then
3420 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3421 fi
3422fi
3423
3424# test whether we have cygpath
3425if test -z "$CYGPATH_W"; then
3426 if (cygpath --version) >/dev/null 2>/dev/null; then
3427 CYGPATH_W='cygpath -w'
3428 else
3429 CYGPATH_W=echo
3430 fi
3431fi
3432
3433
3434# Define the identity of the package.
3435 PACKAGE='libpng'
3436 VERSION='1.6.45'
3437
3438
3439printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3440
3441
3442printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3443
3444# Some tools Automake needs.
3445
3446ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3447
3448
3449AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3450
3451
3452AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3453
3454
3455AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3456
3457
3458MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3459
3460# For better backward compatibility. To be removed once Automake 1.9.x
3461# dies out for good. For more background, see:
3462# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3463# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3464mkdir_p='$(MKDIR_P)'
3465
3466# We need awk for the "check" target (and possibly the TAP driver). The
3467# system "awk" is bad on some platforms.
3468# Always define AMTAR for backward compatibility. Yes, it's still used
3469# in the wild :-( We should find a proper way to deprecate it ...
3470AMTAR='$${TAR-tar}'
3471
3472
3473# We'll loop over all known methods to create a tar archive until one works.
3474_am_tools='gnutar pax cpio none'
3475
3476am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3477
3478
3479
3480
3481
3482# Variables for tags utilities; see am/tags.am
3483if test -z "$CTAGS"; then
3484 CTAGS=ctags
3485fi
3486
3487if test -z "$ETAGS"; then
3488 ETAGS=etags
3489fi
3490
3491if test -z "$CSCOPE"; then
3492 CSCOPE=cscope
3493fi
3494
3495
3496
3497
3498
3499
3500
3501# The following line causes --disable-maintainer-mode to be the default to
3502# configure. This is necessary because libpng distributions cannot rely on the
3503# time stamps of the autotools generated files being correct
3504
3505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3506printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3507 # Check whether --enable-maintainer-mode was given.
3508if test ${enable_maintainer_mode+y}
3509then :
3510 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3511else case e in #(
3512 e) USE_MAINTAINER_MODE=no ;;
3513esac
3514fi
3515
3516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3517printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3518 if test $USE_MAINTAINER_MODE = yes; then
3519 MAINTAINER_MODE_TRUE=
3520 MAINTAINER_MODE_FALSE='#'
3521else
3522 MAINTAINER_MODE_TRUE='#'
3523 MAINTAINER_MODE_FALSE=
3524fi
3525
3526 MAINT=$MAINTAINER_MODE_TRUE
3527
3528
3529
3530
3531PNGLIB_VERSION=1.6.45
3532PNGLIB_MAJOR=1
3533PNGLIB_MINOR=6
3534PNGLIB_RELEASE=45
3535
3536
3537
3538ac_config_headers="$ac_config_headers config.h"
3539
3540
3541# Check the basic programs.
3542ac_ext=c
3543ac_cpp='$CPP $CPPFLAGS'
3544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3546ac_compiler_gnu=$ac_cv_c_compiler_gnu
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557ac_ext=c
3558ac_cpp='$CPP $CPPFLAGS'
3559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3561ac_compiler_gnu=$ac_cv_c_compiler_gnu
3562if test -n "$ac_tool_prefix"; then
3563 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3564set dummy ${ac_tool_prefix}gcc; ac_word=$2
3565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3566printf %s "checking for $ac_word... " >&6; }
3567if test ${ac_cv_prog_CC+y}
3568then :
3569 printf %s "(cached) " >&6
3570else case e in #(
3571 e) if test -n "$CC"; then
3572 ac_cv_prog_CC="$CC" # Let the user override the test.
3573else
3574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575for as_dir in $PATH
3576do
3577 IFS=$as_save_IFS
3578 case $as_dir in #(((
3579 '') as_dir=./ ;;
3580 */) ;;
3581 *) as_dir=$as_dir/ ;;
3582 esac
3583 for ac_exec_ext in '' $ac_executable_extensions; do
3584 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3585 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3586 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3587 break 2
3588 fi
3589done
3590 done
3591IFS=$as_save_IFS
3592
3593fi ;;
3594esac
3595fi
3596CC=$ac_cv_prog_CC
3597if test -n "$CC"; then
3598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3599printf "%s\n" "$CC" >&6; }
3600else
3601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3602printf "%s\n" "no" >&6; }
3603fi
3604
3605
3606fi
3607if test -z "$ac_cv_prog_CC"; then
3608 ac_ct_CC=$CC
3609 # Extract the first word of "gcc", so it can be a program name with args.
3610set dummy gcc; ac_word=$2
3611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3612printf %s "checking for $ac_word... " >&6; }
3613if test ${ac_cv_prog_ac_ct_CC+y}
3614then :
3615 printf %s "(cached) " >&6
3616else case e in #(
3617 e) if test -n "$ac_ct_CC"; then
3618 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3619else
3620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3621for as_dir in $PATH
3622do
3623 IFS=$as_save_IFS
3624 case $as_dir in #(((
3625 '') as_dir=./ ;;
3626 */) ;;
3627 *) as_dir=$as_dir/ ;;
3628 esac
3629 for ac_exec_ext in '' $ac_executable_extensions; do
3630 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3631 ac_cv_prog_ac_ct_CC="gcc"
3632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3633 break 2
3634 fi
3635done
3636 done
3637IFS=$as_save_IFS
3638
3639fi ;;
3640esac
3641fi
3642ac_ct_CC=$ac_cv_prog_ac_ct_CC
3643if test -n "$ac_ct_CC"; then
3644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3645printf "%s\n" "$ac_ct_CC" >&6; }
3646else
3647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3648printf "%s\n" "no" >&6; }
3649fi
3650
3651 if test "x$ac_ct_CC" = x; then
3652 CC=""
3653 else
3654 case $cross_compiling:$ac_tool_warned in
3655yes:)
3656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3657printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3658ac_tool_warned=yes ;;
3659esac
3660 CC=$ac_ct_CC
3661 fi
3662else
3663 CC="$ac_cv_prog_CC"
3664fi
3665
3666if test -z "$CC"; then
3667 if test -n "$ac_tool_prefix"; then
3668 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3669set dummy ${ac_tool_prefix}cc; ac_word=$2
3670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3671printf %s "checking for $ac_word... " >&6; }
3672if test ${ac_cv_prog_CC+y}
3673then :
3674 printf %s "(cached) " >&6
3675else case e in #(
3676 e) if test -n "$CC"; then
3677 ac_cv_prog_CC="$CC" # Let the user override the test.
3678else
3679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680for as_dir in $PATH
3681do
3682 IFS=$as_save_IFS
3683 case $as_dir in #(((
3684 '') as_dir=./ ;;
3685 */) ;;
3686 *) as_dir=$as_dir/ ;;
3687 esac
3688 for ac_exec_ext in '' $ac_executable_extensions; do
3689 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3690 ac_cv_prog_CC="${ac_tool_prefix}cc"
3691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3692 break 2
3693 fi
3694done
3695 done
3696IFS=$as_save_IFS
3697
3698fi ;;
3699esac
3700fi
3701CC=$ac_cv_prog_CC
3702if test -n "$CC"; then
3703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3704printf "%s\n" "$CC" >&6; }
3705else
3706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707printf "%s\n" "no" >&6; }
3708fi
3709
3710
3711 fi
3712fi
3713if test -z "$CC"; then
3714 # Extract the first word of "cc", so it can be a program name with args.
3715set dummy cc; ac_word=$2
3716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3717printf %s "checking for $ac_word... " >&6; }
3718if test ${ac_cv_prog_CC+y}
3719then :
3720 printf %s "(cached) " >&6
3721else case e in #(
3722 e) if test -n "$CC"; then
3723 ac_cv_prog_CC="$CC" # Let the user override the test.
3724else
3725 ac_prog_rejected=no
3726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727for as_dir in $PATH
3728do
3729 IFS=$as_save_IFS
3730 case $as_dir in #(((
3731 '') as_dir=./ ;;
3732 */) ;;
3733 *) as_dir=$as_dir/ ;;
3734 esac
3735 for ac_exec_ext in '' $ac_executable_extensions; do
3736 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3737 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3738 ac_prog_rejected=yes
3739 continue
3740 fi
3741 ac_cv_prog_CC="cc"
3742 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3743 break 2
3744 fi
3745done
3746 done
3747IFS=$as_save_IFS
3748
3749if test $ac_prog_rejected = yes; then
3750 # We found a bogon in the path, so make sure we never use it.
3751 set dummy $ac_cv_prog_CC
3752 shift
3753 if test $# != 0; then
3754 # We chose a different compiler from the bogus one.
3755 # However, it has the same basename, so the bogon will be chosen
3756 # first if we set CC to just the basename; use the full file name.
3757 shift
3758 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3759 fi
3760fi
3761fi ;;
3762esac
3763fi
3764CC=$ac_cv_prog_CC
3765if test -n "$CC"; then
3766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3767printf "%s\n" "$CC" >&6; }
3768else
3769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3770printf "%s\n" "no" >&6; }
3771fi
3772
3773
3774fi
3775if test -z "$CC"; then
3776 if test -n "$ac_tool_prefix"; then
3777 for ac_prog in cl.exe
3778 do
3779 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3780set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3782printf %s "checking for $ac_word... " >&6; }
3783if test ${ac_cv_prog_CC+y}
3784then :
3785 printf %s "(cached) " >&6
3786else case e in #(
3787 e) if test -n "$CC"; then
3788 ac_cv_prog_CC="$CC" # Let the user override the test.
3789else
3790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791for as_dir in $PATH
3792do
3793 IFS=$as_save_IFS
3794 case $as_dir in #(((
3795 '') as_dir=./ ;;
3796 */) ;;
3797 *) as_dir=$as_dir/ ;;
3798 esac
3799 for ac_exec_ext in '' $ac_executable_extensions; do
3800 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3801 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3803 break 2
3804 fi
3805done
3806 done
3807IFS=$as_save_IFS
3808
3809fi ;;
3810esac
3811fi
3812CC=$ac_cv_prog_CC
3813if test -n "$CC"; then
3814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3815printf "%s\n" "$CC" >&6; }
3816else
3817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3818printf "%s\n" "no" >&6; }
3819fi
3820
3821
3822 test -n "$CC" && break
3823 done
3824fi
3825if test -z "$CC"; then
3826 ac_ct_CC=$CC
3827 for ac_prog in cl.exe
3828do
3829 # Extract the first word of "$ac_prog", so it can be a program name with args.
3830set dummy $ac_prog; ac_word=$2
3831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3832printf %s "checking for $ac_word... " >&6; }
3833if test ${ac_cv_prog_ac_ct_CC+y}
3834then :
3835 printf %s "(cached) " >&6
3836else case e in #(
3837 e) if test -n "$ac_ct_CC"; then
3838 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3839else
3840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3841for as_dir in $PATH
3842do
3843 IFS=$as_save_IFS
3844 case $as_dir in #(((
3845 '') as_dir=./ ;;
3846 */) ;;
3847 *) as_dir=$as_dir/ ;;
3848 esac
3849 for ac_exec_ext in '' $ac_executable_extensions; do
3850 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3851 ac_cv_prog_ac_ct_CC="$ac_prog"
3852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3853 break 2
3854 fi
3855done
3856 done
3857IFS=$as_save_IFS
3858
3859fi ;;
3860esac
3861fi
3862ac_ct_CC=$ac_cv_prog_ac_ct_CC
3863if test -n "$ac_ct_CC"; then
3864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3865printf "%s\n" "$ac_ct_CC" >&6; }
3866else
3867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3868printf "%s\n" "no" >&6; }
3869fi
3870
3871
3872 test -n "$ac_ct_CC" && break
3873done
3874
3875 if test "x$ac_ct_CC" = x; then
3876 CC=""
3877 else
3878 case $cross_compiling:$ac_tool_warned in
3879yes:)
3880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3881printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3882ac_tool_warned=yes ;;
3883esac
3884 CC=$ac_ct_CC
3885 fi
3886fi
3887
3888fi
3889if test -z "$CC"; then
3890 if test -n "$ac_tool_prefix"; then
3891 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3892set dummy ${ac_tool_prefix}clang; ac_word=$2
3893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3894printf %s "checking for $ac_word... " >&6; }
3895if test ${ac_cv_prog_CC+y}
3896then :
3897 printf %s "(cached) " >&6
3898else case e in #(
3899 e) if test -n "$CC"; then
3900 ac_cv_prog_CC="$CC" # Let the user override the test.
3901else
3902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903for as_dir in $PATH
3904do
3905 IFS=$as_save_IFS
3906 case $as_dir in #(((
3907 '') as_dir=./ ;;
3908 */) ;;
3909 *) as_dir=$as_dir/ ;;
3910 esac
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3913 ac_cv_prog_CC="${ac_tool_prefix}clang"
3914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3915 break 2
3916 fi
3917done
3918 done
3919IFS=$as_save_IFS
3920
3921fi ;;
3922esac
3923fi
3924CC=$ac_cv_prog_CC
3925if test -n "$CC"; then
3926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3927printf "%s\n" "$CC" >&6; }
3928else
3929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3930printf "%s\n" "no" >&6; }
3931fi
3932
3933
3934fi
3935if test -z "$ac_cv_prog_CC"; then
3936 ac_ct_CC=$CC
3937 # Extract the first word of "clang", so it can be a program name with args.
3938set dummy clang; ac_word=$2
3939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3940printf %s "checking for $ac_word... " >&6; }
3941if test ${ac_cv_prog_ac_ct_CC+y}
3942then :
3943 printf %s "(cached) " >&6
3944else case e in #(
3945 e) if test -n "$ac_ct_CC"; then
3946 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3947else
3948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949for as_dir in $PATH
3950do
3951 IFS=$as_save_IFS
3952 case $as_dir in #(((
3953 '') as_dir=./ ;;
3954 */) ;;
3955 *) as_dir=$as_dir/ ;;
3956 esac
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3959 ac_cv_prog_ac_ct_CC="clang"
3960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3961 break 2
3962 fi
3963done
3964 done
3965IFS=$as_save_IFS
3966
3967fi ;;
3968esac
3969fi
3970ac_ct_CC=$ac_cv_prog_ac_ct_CC
3971if test -n "$ac_ct_CC"; then
3972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3973printf "%s\n" "$ac_ct_CC" >&6; }
3974else
3975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3976printf "%s\n" "no" >&6; }
3977fi
3978
3979 if test "x$ac_ct_CC" = x; then
3980 CC=""
3981 else
3982 case $cross_compiling:$ac_tool_warned in
3983yes:)
3984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3985printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3986ac_tool_warned=yes ;;
3987esac
3988 CC=$ac_ct_CC
3989 fi
3990else
3991 CC="$ac_cv_prog_CC"
3992fi
3993
3994fi
3995
3996
3997test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3998printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3999as_fn_error $? "no acceptable C compiler found in \$PATH
4000See 'config.log' for more details" "$LINENO" 5; }
4001
4002# Provide some information about the compiler.
4003printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4004set X $ac_compile
4005ac_compiler=$2
4006for ac_option in --version -v -V -qversion -version; do
4007 { { ac_try="$ac_compiler $ac_option >&5"
4008case "(($ac_try" in
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4011esac
4012eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4013printf "%s\n" "$ac_try_echo"; } >&5
4014 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4015 ac_status=$?
4016 if test -s conftest.err; then
4017 sed '10a\
4018... rest of stderr output deleted ...
4019 10q' conftest.err >conftest.er1
4020 cat conftest.er1 >&5
4021 fi
4022 rm -f conftest.er1 conftest.err
4023 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4024 test $ac_status = 0; }
4025done
4026
4027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028/* end confdefs.h. */
4029
4030int
4031main (void)
4032{
4033
4034 ;
4035 return 0;
4036}
4037_ACEOF
4038ac_clean_files_save=$ac_clean_files
4039ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4040# Try to create an executable without -o first, disregard a.out.
4041# It will help us diagnose broken compilers, and finding out an intuition
4042# of exeext.
4043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4044printf %s "checking whether the C compiler works... " >&6; }
4045ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4046
4047# The possible output files:
4048ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4049
4050ac_rmfiles=
4051for ac_file in $ac_files
4052do
4053 case $ac_file in
4054 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4055 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4056 esac
4057done
4058rm -f $ac_rmfiles
4059
4060if { { ac_try="$ac_link_default"
4061case "(($ac_try" in
4062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4063 *) ac_try_echo=$ac_try;;
4064esac
4065eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4066printf "%s\n" "$ac_try_echo"; } >&5
4067 (eval "$ac_link_default") 2>&5
4068 ac_status=$?
4069 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4070 test $ac_status = 0; }
4071then :
4072 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4073# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4074# in a Makefile. We should not override ac_cv_exeext if it was cached,
4075# so that the user can short-circuit this test for compilers unknown to
4076# Autoconf.
4077for ac_file in $ac_files ''
4078do
4079 test -f "$ac_file" || continue
4080 case $ac_file in
4081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4082 ;;
4083 [ab].out )
4084 # We found the default executable, but exeext='' is most
4085 # certainly right.
4086 break;;
4087 *.* )
4088 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4089 then :; else
4090 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4091 fi
4092 # We set ac_cv_exeext here because the later test for it is not
4093 # safe: cross compilers may not add the suffix if given an '-o'
4094 # argument, so we may need to know it at that point already.
4095 # Even if this section looks crufty: it has the advantage of
4096 # actually working.
4097 break;;
4098 * )
4099 break;;
4100 esac
4101done
4102test "$ac_cv_exeext" = no && ac_cv_exeext=
4103
4104else case e in #(
4105 e) ac_file='' ;;
4106esac
4107fi
4108if test -z "$ac_file"
4109then :
4110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4111printf "%s\n" "no" >&6; }
4112printf "%s\n" "$as_me: failed program was:" >&5
4113sed 's/^/| /' conftest.$ac_ext >&5
4114
4115{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4116printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4117as_fn_error 77 "C compiler cannot create executables
4118See 'config.log' for more details" "$LINENO" 5; }
4119else case e in #(
4120 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4121printf "%s\n" "yes" >&6; } ;;
4122esac
4123fi
4124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4125printf %s "checking for C compiler default output file name... " >&6; }
4126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4127printf "%s\n" "$ac_file" >&6; }
4128ac_exeext=$ac_cv_exeext
4129
4130rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4131ac_clean_files=$ac_clean_files_save
4132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4133printf %s "checking for suffix of executables... " >&6; }
4134if { { ac_try="$ac_link"
4135case "(($ac_try" in
4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137 *) ac_try_echo=$ac_try;;
4138esac
4139eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4140printf "%s\n" "$ac_try_echo"; } >&5
4141 (eval "$ac_link") 2>&5
4142 ac_status=$?
4143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4144 test $ac_status = 0; }
4145then :
4146 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4147# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4148# work properly (i.e., refer to 'conftest.exe'), while it won't with
4149# 'rm'.
4150for ac_file in conftest.exe conftest conftest.*; do
4151 test -f "$ac_file" || continue
4152 case $ac_file in
4153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4154 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4155 break;;
4156 * ) break;;
4157 esac
4158done
4159else case e in #(
4160 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4161printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4162as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4163See 'config.log' for more details" "$LINENO" 5; } ;;
4164esac
4165fi
4166rm -f conftest conftest$ac_cv_exeext
4167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4168printf "%s\n" "$ac_cv_exeext" >&6; }
4169
4170rm -f conftest.$ac_ext
4171EXEEXT=$ac_cv_exeext
4172ac_exeext=$EXEEXT
4173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174/* end confdefs.h. */
4175#include <stdio.h>
4176int
4177main (void)
4178{
4179FILE *f = fopen ("conftest.out", "w");
4180 if (!f)
4181 return 1;
4182 return ferror (f) || fclose (f) != 0;
4183
4184 ;
4185 return 0;
4186}
4187_ACEOF
4188ac_clean_files="$ac_clean_files conftest.out"
4189# Check that the compiler produces executables we can run. If not, either
4190# the compiler is broken, or we cross compile.
4191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4192printf %s "checking whether we are cross compiling... " >&6; }
4193if test "$cross_compiling" != yes; then
4194 { { ac_try="$ac_link"
4195case "(($ac_try" in
4196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4197 *) ac_try_echo=$ac_try;;
4198esac
4199eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4200printf "%s\n" "$ac_try_echo"; } >&5
4201 (eval "$ac_link") 2>&5
4202 ac_status=$?
4203 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4204 test $ac_status = 0; }
4205 if { ac_try='./conftest$ac_cv_exeext'
4206 { { case "(($ac_try" in
4207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208 *) ac_try_echo=$ac_try;;
4209esac
4210eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4211printf "%s\n" "$ac_try_echo"; } >&5
4212 (eval "$ac_try") 2>&5
4213 ac_status=$?
4214 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4215 test $ac_status = 0; }; }; then
4216 cross_compiling=no
4217 else
4218 if test "$cross_compiling" = maybe; then
4219 cross_compiling=yes
4220 else
4221 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4222printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4223as_fn_error 77 "cannot run C compiled programs.
4224If you meant to cross compile, use '--host'.
4225See 'config.log' for more details" "$LINENO" 5; }
4226 fi
4227 fi
4228fi
4229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4230printf "%s\n" "$cross_compiling" >&6; }
4231
4232rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4233 conftest.o conftest.obj conftest.out
4234ac_clean_files=$ac_clean_files_save
4235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4236printf %s "checking for suffix of object files... " >&6; }
4237if test ${ac_cv_objext+y}
4238then :
4239 printf %s "(cached) " >&6
4240else case e in #(
4241 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242/* end confdefs.h. */
4243
4244int
4245main (void)
4246{
4247
4248 ;
4249 return 0;
4250}
4251_ACEOF
4252rm -f conftest.o conftest.obj
4253if { { ac_try="$ac_compile"
4254case "(($ac_try" in
4255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4256 *) ac_try_echo=$ac_try;;
4257esac
4258eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4259printf "%s\n" "$ac_try_echo"; } >&5
4260 (eval "$ac_compile") 2>&5
4261 ac_status=$?
4262 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4263 test $ac_status = 0; }
4264then :
4265 for ac_file in conftest.o conftest.obj conftest.*; do
4266 test -f "$ac_file" || continue;
4267 case $ac_file in
4268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4269 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4270 break;;
4271 esac
4272done
4273else case e in #(
4274 e) printf "%s\n" "$as_me: failed program was:" >&5
4275sed 's/^/| /' conftest.$ac_ext >&5
4276
4277{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4278printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4279as_fn_error $? "cannot compute suffix of object files: cannot compile
4280See 'config.log' for more details" "$LINENO" 5; } ;;
4281esac
4282fi
4283rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4284esac
4285fi
4286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4287printf "%s\n" "$ac_cv_objext" >&6; }
4288OBJEXT=$ac_cv_objext
4289ac_objext=$OBJEXT
4290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4291printf %s "checking whether the compiler supports GNU C... " >&6; }
4292if test ${ac_cv_c_compiler_gnu+y}
4293then :
4294 printf %s "(cached) " >&6
4295else case e in #(
4296 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297/* end confdefs.h. */
4298
4299int
4300main (void)
4301{
4302#ifndef __GNUC__
4303 choke me
4304#endif
4305
4306 ;
4307 return 0;
4308}
4309_ACEOF
4310if ac_fn_c_try_compile "$LINENO"
4311then :
4312 ac_compiler_gnu=yes
4313else case e in #(
4314 e) ac_compiler_gnu=no ;;
4315esac
4316fi
4317rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4318ac_cv_c_compiler_gnu=$ac_compiler_gnu
4319 ;;
4320esac
4321fi
4322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4323printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4324ac_compiler_gnu=$ac_cv_c_compiler_gnu
4325
4326if test $ac_compiler_gnu = yes; then
4327 GCC=yes
4328else
4329 GCC=
4330fi
4331ac_test_CFLAGS=${CFLAGS+y}
4332ac_save_CFLAGS=$CFLAGS
4333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4334printf %s "checking whether $CC accepts -g... " >&6; }
4335if test ${ac_cv_prog_cc_g+y}
4336then :
4337 printf %s "(cached) " >&6
4338else case e in #(
4339 e) ac_save_c_werror_flag=$ac_c_werror_flag
4340 ac_c_werror_flag=yes
4341 ac_cv_prog_cc_g=no
4342 CFLAGS="-g"
4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344/* end confdefs.h. */
4345
4346int
4347main (void)
4348{
4349
4350 ;
4351 return 0;
4352}
4353_ACEOF
4354if ac_fn_c_try_compile "$LINENO"
4355then :
4356 ac_cv_prog_cc_g=yes
4357else case e in #(
4358 e) CFLAGS=""
4359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360/* end confdefs.h. */
4361
4362int
4363main (void)
4364{
4365
4366 ;
4367 return 0;
4368}
4369_ACEOF
4370if ac_fn_c_try_compile "$LINENO"
4371then :
4372
4373else case e in #(
4374 e) ac_c_werror_flag=$ac_save_c_werror_flag
4375 CFLAGS="-g"
4376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377/* end confdefs.h. */
4378
4379int
4380main (void)
4381{
4382
4383 ;
4384 return 0;
4385}
4386_ACEOF
4387if ac_fn_c_try_compile "$LINENO"
4388then :
4389 ac_cv_prog_cc_g=yes
4390fi
4391rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4392esac
4393fi
4394rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4395esac
4396fi
4397rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4398 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4399esac
4400fi
4401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4402printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4403if test $ac_test_CFLAGS; then
4404 CFLAGS=$ac_save_CFLAGS
4405elif test $ac_cv_prog_cc_g = yes; then
4406 if test "$GCC" = yes; then
4407 CFLAGS="-g -O2"
4408 else
4409 CFLAGS="-g"
4410 fi
4411else
4412 if test "$GCC" = yes; then
4413 CFLAGS="-O2"
4414 else
4415 CFLAGS=
4416 fi
4417fi
4418ac_prog_cc_stdc=no
4419if test x$ac_prog_cc_stdc = xno
4420then :
4421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4422printf %s "checking for $CC option to enable C11 features... " >&6; }
4423if test ${ac_cv_prog_cc_c11+y}
4424then :
4425 printf %s "(cached) " >&6
4426else case e in #(
4427 e) ac_cv_prog_cc_c11=no
4428ac_save_CC=$CC
4429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430/* end confdefs.h. */
4431$ac_c_conftest_c11_program
4432_ACEOF
4433for ac_arg in '' -std=gnu11
4434do
4435 CC="$ac_save_CC $ac_arg"
4436 if ac_fn_c_try_compile "$LINENO"
4437then :
4438 ac_cv_prog_cc_c11=$ac_arg
4439fi
4440rm -f core conftest.err conftest.$ac_objext conftest.beam
4441 test "x$ac_cv_prog_cc_c11" != "xno" && break
4442done
4443rm -f conftest.$ac_ext
4444CC=$ac_save_CC ;;
4445esac
4446fi
4447
4448if test "x$ac_cv_prog_cc_c11" = xno
4449then :
4450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4451printf "%s\n" "unsupported" >&6; }
4452else case e in #(
4453 e) if test "x$ac_cv_prog_cc_c11" = x
4454then :
4455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4456printf "%s\n" "none needed" >&6; }
4457else case e in #(
4458 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4459printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4460 CC="$CC $ac_cv_prog_cc_c11" ;;
4461esac
4462fi
4463 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4464 ac_prog_cc_stdc=c11 ;;
4465esac
4466fi
4467fi
4468if test x$ac_prog_cc_stdc = xno
4469then :
4470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4471printf %s "checking for $CC option to enable C99 features... " >&6; }
4472if test ${ac_cv_prog_cc_c99+y}
4473then :
4474 printf %s "(cached) " >&6
4475else case e in #(
4476 e) ac_cv_prog_cc_c99=no
4477ac_save_CC=$CC
4478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479/* end confdefs.h. */
4480$ac_c_conftest_c99_program
4481_ACEOF
4482for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4483do
4484 CC="$ac_save_CC $ac_arg"
4485 if ac_fn_c_try_compile "$LINENO"
4486then :
4487 ac_cv_prog_cc_c99=$ac_arg
4488fi
4489rm -f core conftest.err conftest.$ac_objext conftest.beam
4490 test "x$ac_cv_prog_cc_c99" != "xno" && break
4491done
4492rm -f conftest.$ac_ext
4493CC=$ac_save_CC ;;
4494esac
4495fi
4496
4497if test "x$ac_cv_prog_cc_c99" = xno
4498then :
4499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4500printf "%s\n" "unsupported" >&6; }
4501else case e in #(
4502 e) if test "x$ac_cv_prog_cc_c99" = x
4503then :
4504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4505printf "%s\n" "none needed" >&6; }
4506else case e in #(
4507 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4508printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4509 CC="$CC $ac_cv_prog_cc_c99" ;;
4510esac
4511fi
4512 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4513 ac_prog_cc_stdc=c99 ;;
4514esac
4515fi
4516fi
4517if test x$ac_prog_cc_stdc = xno
4518then :
4519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4520printf %s "checking for $CC option to enable C89 features... " >&6; }
4521if test ${ac_cv_prog_cc_c89+y}
4522then :
4523 printf %s "(cached) " >&6
4524else case e in #(
4525 e) ac_cv_prog_cc_c89=no
4526ac_save_CC=$CC
4527cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528/* end confdefs.h. */
4529$ac_c_conftest_c89_program
4530_ACEOF
4531for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4532do
4533 CC="$ac_save_CC $ac_arg"
4534 if ac_fn_c_try_compile "$LINENO"
4535then :
4536 ac_cv_prog_cc_c89=$ac_arg
4537fi
4538rm -f core conftest.err conftest.$ac_objext conftest.beam
4539 test "x$ac_cv_prog_cc_c89" != "xno" && break
4540done
4541rm -f conftest.$ac_ext
4542CC=$ac_save_CC ;;
4543esac
4544fi
4545
4546if test "x$ac_cv_prog_cc_c89" = xno
4547then :
4548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4549printf "%s\n" "unsupported" >&6; }
4550else case e in #(
4551 e) if test "x$ac_cv_prog_cc_c89" = x
4552then :
4553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4554printf "%s\n" "none needed" >&6; }
4555else case e in #(
4556 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4557printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4558 CC="$CC $ac_cv_prog_cc_c89" ;;
4559esac
4560fi
4561 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4562 ac_prog_cc_stdc=c89 ;;
4563esac
4564fi
4565fi
4566
4567ac_ext=c
4568ac_cpp='$CPP $CPPFLAGS'
4569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4571ac_compiler_gnu=$ac_cv_c_compiler_gnu
4572
4573
4574 ac_ext=c
4575ac_cpp='$CPP $CPPFLAGS'
4576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4578ac_compiler_gnu=$ac_cv_c_compiler_gnu
4579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4580printf %s "checking whether $CC understands -c and -o together... " >&6; }
4581if test ${am_cv_prog_cc_c_o+y}
4582then :
4583 printf %s "(cached) " >&6
4584else case e in #(
4585 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586/* end confdefs.h. */
4587
4588int
4589main (void)
4590{
4591
4592 ;
4593 return 0;
4594}
4595_ACEOF
4596 # Make sure it works both with $CC and with simple cc.
4597 # Following AC_PROG_CC_C_O, we do the test twice because some
4598 # compilers refuse to overwrite an existing .o file with -o,
4599 # though they will create one.
4600 am_cv_prog_cc_c_o=yes
4601 for am_i in 1 2; do
4602 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4603 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4604 ac_status=$?
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); } \
4607 && test -f conftest2.$ac_objext; then
4608 : OK
4609 else
4610 am_cv_prog_cc_c_o=no
4611 break
4612 fi
4613 done
4614 rm -f core conftest*
4615 unset am_i ;;
4616esac
4617fi
4618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4619printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4620if test "$am_cv_prog_cc_c_o" != yes; then
4621 # Losing compiler, so override with the script.
4622 # FIXME: It is wrong to rewrite CC.
4623 # But if we don't then we get into trouble of one sort or another.
4624 # A longer-term fix would be to have automake use am__CC in this case,
4625 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4626 CC="$am_aux_dir/compile $CC"
4627fi
4628ac_ext=c
4629ac_cpp='$CPP $CPPFLAGS'
4630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4632ac_compiler_gnu=$ac_cv_c_compiler_gnu
4633
4634DEPDIR="${am__leading_dot}deps"
4635
4636ac_config_commands="$ac_config_commands depfiles"
4637
4638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4639printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4640cat > confinc.mk << 'END'
4641am__doit:
4642 @echo this is the am__doit target >confinc.out
4643.PHONY: am__doit
4644END
4645am__include="#"
4646am__quote=
4647# BSD make does it like this.
4648echo '.include "confinc.mk" # ignored' > confmf.BSD
4649# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4650echo 'include confinc.mk # ignored' > confmf.GNU
4651_am_result=no
4652for s in GNU BSD; do
4653 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4654 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4655 ac_status=$?
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); }
4658 case $?:`cat confinc.out 2>/dev/null` in #(
4659 '0:this is the am__doit target') :
4660 case $s in #(
4661 BSD) :
4662 am__include='.include' am__quote='"' ;; #(
4663 *) :
4664 am__include='include' am__quote='' ;;
4665esac ;; #(
4666 *) :
4667 ;;
4668esac
4669 if test "$am__include" != "#"; then
4670 _am_result="yes ($s style)"
4671 break
4672 fi
4673done
4674rm -f confinc.* confmf.*
4675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4676printf "%s\n" "${_am_result}" >&6; }
4677
4678# Check whether --enable-dependency-tracking was given.
4679if test ${enable_dependency_tracking+y}
4680then :
4681 enableval=$enable_dependency_tracking;
4682fi
4683
4684if test "x$enable_dependency_tracking" != xno; then
4685 am_depcomp="$ac_aux_dir/depcomp"
4686 AMDEPBACKSLASH='\'
4687 am__nodep='_no'
4688fi
4689 if test "x$enable_dependency_tracking" != xno; then
4690 AMDEP_TRUE=
4691 AMDEP_FALSE='#'
4692else
4693 AMDEP_TRUE='#'
4694 AMDEP_FALSE=
4695fi
4696
4697
4698
4699depcc="$CC" am_compiler_list=
4700
4701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4702printf %s "checking dependency style of $depcc... " >&6; }
4703if test ${am_cv_CC_dependencies_compiler_type+y}
4704then :
4705 printf %s "(cached) " >&6
4706else case e in #(
4707 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4708 # We make a subdir and do the tests there. Otherwise we can end up
4709 # making bogus files that we don't know about and never remove. For
4710 # instance it was reported that on HP-UX the gcc test will end up
4711 # making a dummy file named 'D' -- because '-MD' means "put the output
4712 # in D".
4713 rm -rf conftest.dir
4714 mkdir conftest.dir
4715 # Copy depcomp to subdir because otherwise we won't find it if we're
4716 # using a relative directory.
4717 cp "$am_depcomp" conftest.dir
4718 cd conftest.dir
4719 # We will build objects and dependencies in a subdirectory because
4720 # it helps to detect inapplicable dependency modes. For instance
4721 # both Tru64's cc and ICC support -MD to output dependencies as a
4722 # side effect of compilation, but ICC will put the dependencies in
4723 # the current directory while Tru64 will put them in the object
4724 # directory.
4725 mkdir sub
4726
4727 am_cv_CC_dependencies_compiler_type=none
4728 if test "$am_compiler_list" = ""; then
4729 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4730 fi
4731 am__universal=false
4732 case " $depcc " in #(
4733 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4734 esac
4735
4736 for depmode in $am_compiler_list; do
4737 # Setup a source with many dependencies, because some compilers
4738 # like to wrap large dependency lists on column 80 (with \), and
4739 # we should not choose a depcomp mode which is confused by this.
4740 #
4741 # We need to recreate these files for each test, as the compiler may
4742 # overwrite some of them when testing with obscure command lines.
4743 # This happens at least with the AIX C compiler.
4744 : > sub/conftest.c
4745 for i in 1 2 3 4 5 6; do
4746 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4747 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4748 # Solaris 10 /bin/sh.
4749 echo '/* dummy */' > sub/conftst$i.h
4750 done
4751 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4752
4753 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4754 # mode. It turns out that the SunPro C++ compiler does not properly
4755 # handle '-M -o', and we need to detect this. Also, some Intel
4756 # versions had trouble with output in subdirs.
4757 am__obj=sub/conftest.${OBJEXT-o}
4758 am__minus_obj="-o $am__obj"
4759 case $depmode in
4760 gcc)
4761 # This depmode causes a compiler race in universal mode.
4762 test "$am__universal" = false || continue
4763 ;;
4764 nosideeffect)
4765 # After this tag, mechanisms are not by side-effect, so they'll
4766 # only be used when explicitly requested.
4767 if test "x$enable_dependency_tracking" = xyes; then
4768 continue
4769 else
4770 break
4771 fi
4772 ;;
4773 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4774 # This compiler won't grok '-c -o', but also, the minuso test has
4775 # not run yet. These depmodes are late enough in the game, and
4776 # so weak that their functioning should not be impacted.
4777 am__obj=conftest.${OBJEXT-o}
4778 am__minus_obj=
4779 ;;
4780 none) break ;;
4781 esac
4782 if depmode=$depmode \
4783 source=sub/conftest.c object=$am__obj \
4784 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4785 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4786 >/dev/null 2>conftest.err &&
4787 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4788 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4789 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4790 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4791 # icc doesn't choke on unknown options, it will just issue warnings
4792 # or remarks (even with -Werror). So we grep stderr for any message
4793 # that says an option was ignored or not supported.
4794 # When given -MP, icc 7.0 and 7.1 complain thus:
4795 # icc: Command line warning: ignoring option '-M'; no argument required
4796 # The diagnosis changed in icc 8.0:
4797 # icc: Command line remark: option '-MP' not supported
4798 if (grep 'ignoring option' conftest.err ||
4799 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4800 am_cv_CC_dependencies_compiler_type=$depmode
4801 break
4802 fi
4803 fi
4804 done
4805
4806 cd ..
4807 rm -rf conftest.dir
4808else
4809 am_cv_CC_dependencies_compiler_type=none
4810fi
4811 ;;
4812esac
4813fi
4814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4815printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4816CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4817
4818 if
4819 test "x$enable_dependency_tracking" != xno \
4820 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4821 am__fastdepCC_TRUE=
4822 am__fastdepCC_FALSE='#'
4823else
4824 am__fastdepCC_TRUE='#'
4825 am__fastdepCC_FALSE=
4826fi
4827
4828
4829# By default we simply use the C compiler to build assembly code.
4830
4831test "${CCAS+set}" = set || CCAS=$CC
4832test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4833
4834
4835
4836depcc="$CCAS" am_compiler_list=
4837
4838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4839printf %s "checking dependency style of $depcc... " >&6; }
4840if test ${am_cv_CCAS_dependencies_compiler_type+y}
4841then :
4842 printf %s "(cached) " >&6
4843else case e in #(
4844 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4845 # We make a subdir and do the tests there. Otherwise we can end up
4846 # making bogus files that we don't know about and never remove. For
4847 # instance it was reported that on HP-UX the gcc test will end up
4848 # making a dummy file named 'D' -- because '-MD' means "put the output
4849 # in D".
4850 rm -rf conftest.dir
4851 mkdir conftest.dir
4852 # Copy depcomp to subdir because otherwise we won't find it if we're
4853 # using a relative directory.
4854 cp "$am_depcomp" conftest.dir
4855 cd conftest.dir
4856 # We will build objects and dependencies in a subdirectory because
4857 # it helps to detect inapplicable dependency modes. For instance
4858 # both Tru64's cc and ICC support -MD to output dependencies as a
4859 # side effect of compilation, but ICC will put the dependencies in
4860 # the current directory while Tru64 will put them in the object
4861 # directory.
4862 mkdir sub
4863
4864 am_cv_CCAS_dependencies_compiler_type=none
4865 if test "$am_compiler_list" = ""; then
4866 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4867 fi
4868 am__universal=false
4869
4870
4871 for depmode in $am_compiler_list; do
4872 # Setup a source with many dependencies, because some compilers
4873 # like to wrap large dependency lists on column 80 (with \), and
4874 # we should not choose a depcomp mode which is confused by this.
4875 #
4876 # We need to recreate these files for each test, as the compiler may
4877 # overwrite some of them when testing with obscure command lines.
4878 # This happens at least with the AIX C compiler.
4879 : > sub/conftest.c
4880 for i in 1 2 3 4 5 6; do
4881 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4882 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4883 # Solaris 10 /bin/sh.
4884 echo '/* dummy */' > sub/conftst$i.h
4885 done
4886 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4887
4888 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4889 # mode. It turns out that the SunPro C++ compiler does not properly
4890 # handle '-M -o', and we need to detect this. Also, some Intel
4891 # versions had trouble with output in subdirs.
4892 am__obj=sub/conftest.${OBJEXT-o}
4893 am__minus_obj="-o $am__obj"
4894 case $depmode in
4895 gcc)
4896 # This depmode causes a compiler race in universal mode.
4897 test "$am__universal" = false || continue
4898 ;;
4899 nosideeffect)
4900 # After this tag, mechanisms are not by side-effect, so they'll
4901 # only be used when explicitly requested.
4902 if test "x$enable_dependency_tracking" = xyes; then
4903 continue
4904 else
4905 break
4906 fi
4907 ;;
4908 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4909 # This compiler won't grok '-c -o', but also, the minuso test has
4910 # not run yet. These depmodes are late enough in the game, and
4911 # so weak that their functioning should not be impacted.
4912 am__obj=conftest.${OBJEXT-o}
4913 am__minus_obj=
4914 ;;
4915 none) break ;;
4916 esac
4917 if depmode=$depmode \
4918 source=sub/conftest.c object=$am__obj \
4919 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4920 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4921 >/dev/null 2>conftest.err &&
4922 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4923 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4924 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4925 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4926 # icc doesn't choke on unknown options, it will just issue warnings
4927 # or remarks (even with -Werror). So we grep stderr for any message
4928 # that says an option was ignored or not supported.
4929 # When given -MP, icc 7.0 and 7.1 complain thus:
4930 # icc: Command line warning: ignoring option '-M'; no argument required
4931 # The diagnosis changed in icc 8.0:
4932 # icc: Command line remark: option '-MP' not supported
4933 if (grep 'ignoring option' conftest.err ||
4934 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4935 am_cv_CCAS_dependencies_compiler_type=$depmode
4936 break
4937 fi
4938 fi
4939 done
4940
4941 cd ..
4942 rm -rf conftest.dir
4943else
4944 am_cv_CCAS_dependencies_compiler_type=none
4945fi
4946 ;;
4947esac
4948fi
4949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4950printf "%s\n" "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4951CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4952
4953 if
4954 test "x$enable_dependency_tracking" != xno \
4955 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4956 am__fastdepCCAS_TRUE=
4957 am__fastdepCCAS_FALSE='#'
4958else
4959 am__fastdepCCAS_TRUE='#'
4960 am__fastdepCCAS_FALSE=
4961fi
4962
4963
4964
4965
4966 # Make sure we can run config.sub.
4967$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4968 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4969
4970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4971printf %s "checking build system type... " >&6; }
4972if test ${ac_cv_build+y}
4973then :
4974 printf %s "(cached) " >&6
4975else case e in #(
4976 e) ac_build_alias=$build_alias
4977test "x$ac_build_alias" = x &&
4978 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4979test "x$ac_build_alias" = x &&
4980 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4981ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4982 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4983 ;;
4984esac
4985fi
4986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4987printf "%s\n" "$ac_cv_build" >&6; }
4988case $ac_cv_build in
4989*-*-*) ;;
4990*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4991esac
4992build=$ac_cv_build
4993ac_save_IFS=$IFS; IFS='-'
4994set x $ac_cv_build
4995shift
4996build_cpu=$1
4997build_vendor=$2
4998shift; shift
4999# Remember, the first character of IFS is used to create $*,
5000# except with old shells:
5001build_os=$*
5002IFS=$ac_save_IFS
5003case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5004
5005
5006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5007printf %s "checking host system type... " >&6; }
5008if test ${ac_cv_host+y}
5009then :
5010 printf %s "(cached) " >&6
5011else case e in #(
5012 e) if test "x$host_alias" = x; then
5013 ac_cv_host=$ac_cv_build
5014else
5015 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5016 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5017fi
5018 ;;
5019esac
5020fi
5021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5022printf "%s\n" "$ac_cv_host" >&6; }
5023case $ac_cv_host in
5024*-*-*) ;;
5025*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5026esac
5027host=$ac_cv_host
5028ac_save_IFS=$IFS; IFS='-'
5029set x $ac_cv_host
5030shift
5031host_cpu=$1
5032host_vendor=$2
5033shift; shift
5034# Remember, the first character of IFS is used to create $*,
5035# except with old shells:
5036host_os=$*
5037IFS=$ac_save_IFS
5038case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5039
5040
5041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5042printf %s "checking for a sed that does not truncate output... " >&6; }
5043if test ${ac_cv_path_SED+y}
5044then :
5045 printf %s "(cached) " >&6
5046else case e in #(
5047 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5048 for ac_i in 1 2 3 4 5 6 7; do
5049 ac_script="$ac_script$as_nl$ac_script"
5050 done
5051 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5052 { ac_script=; unset ac_script;}
5053 if test -z "$SED"; then
5054 ac_path_SED_found=false
5055 # Loop through the user's path and test for each of PROGNAME-LIST
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057for as_dir in $PATH
5058do
5059 IFS=$as_save_IFS
5060 case $as_dir in #(((
5061 '') as_dir=./ ;;
5062 */) ;;
5063 *) as_dir=$as_dir/ ;;
5064 esac
5065 for ac_prog in sed gsed
5066 do
5067 for ac_exec_ext in '' $ac_executable_extensions; do
5068 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5069 as_fn_executable_p "$ac_path_SED" || continue
5070# Check for GNU ac_path_SED and select it if it is found.
5071 # Check for GNU $ac_path_SED
5072case `"$ac_path_SED" --version 2>&1` in #(
5073*GNU*)
5074 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5075#(
5076*)
5077 ac_count=0
5078 printf %s 0123456789 >"conftest.in"
5079 while :
5080 do
5081 cat "conftest.in" "conftest.in" >"conftest.tmp"
5082 mv "conftest.tmp" "conftest.in"
5083 cp "conftest.in" "conftest.nl"
5084 printf "%s\n" '' >> "conftest.nl"
5085 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5086 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5087 as_fn_arith $ac_count + 1 && ac_count=$as_val
5088 if test $ac_count -gt ${ac_path_SED_max-0}; then
5089 # Best one so far, save it but keep looking for a better one
5090 ac_cv_path_SED="$ac_path_SED"
5091 ac_path_SED_max=$ac_count
5092 fi
5093 # 10*(2^10) chars as input seems more than enough
5094 test $ac_count -gt 10 && break
5095 done
5096 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5097esac
5098
5099 $ac_path_SED_found && break 3
5100 done
5101 done
5102 done
5103IFS=$as_save_IFS
5104 if test -z "$ac_cv_path_SED"; then
5105 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5106 fi
5107else
5108 ac_cv_path_SED=$SED
5109fi
5110 ;;
5111esac
5112fi
5113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5114printf "%s\n" "$ac_cv_path_SED" >&6; }
5115 SED="$ac_cv_path_SED"
5116 rm -f conftest.sed
5117
5118test -z "$SED" && SED=sed
5119Xsed="$SED -e 1s/^X//"
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5132printf %s "checking for grep that handles long lines and -e... " >&6; }
5133if test ${ac_cv_path_GREP+y}
5134then :
5135 printf %s "(cached) " >&6
5136else case e in #(
5137 e) if test -z "$GREP"; then
5138 ac_path_GREP_found=false
5139 # Loop through the user's path and test for each of PROGNAME-LIST
5140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5142do
5143 IFS=$as_save_IFS
5144 case $as_dir in #(((
5145 '') as_dir=./ ;;
5146 */) ;;
5147 *) as_dir=$as_dir/ ;;
5148 esac
5149 for ac_prog in grep ggrep
5150 do
5151 for ac_exec_ext in '' $ac_executable_extensions; do
5152 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5153 as_fn_executable_p "$ac_path_GREP" || continue
5154# Check for GNU ac_path_GREP and select it if it is found.
5155 # Check for GNU $ac_path_GREP
5156case `"$ac_path_GREP" --version 2>&1` in #(
5157*GNU*)
5158 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5159#(
5160*)
5161 ac_count=0
5162 printf %s 0123456789 >"conftest.in"
5163 while :
5164 do
5165 cat "conftest.in" "conftest.in" >"conftest.tmp"
5166 mv "conftest.tmp" "conftest.in"
5167 cp "conftest.in" "conftest.nl"
5168 printf "%s\n" 'GREP' >> "conftest.nl"
5169 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5170 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5171 as_fn_arith $ac_count + 1 && ac_count=$as_val
5172 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5173 # Best one so far, save it but keep looking for a better one
5174 ac_cv_path_GREP="$ac_path_GREP"
5175 ac_path_GREP_max=$ac_count
5176 fi
5177 # 10*(2^10) chars as input seems more than enough
5178 test $ac_count -gt 10 && break
5179 done
5180 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5181esac
5182
5183 $ac_path_GREP_found && break 3
5184 done
5185 done
5186 done
5187IFS=$as_save_IFS
5188 if test -z "$ac_cv_path_GREP"; then
5189 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5190 fi
5191else
5192 ac_cv_path_GREP=$GREP
5193fi
5194 ;;
5195esac
5196fi
5197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5198printf "%s\n" "$ac_cv_path_GREP" >&6; }
5199 GREP="$ac_cv_path_GREP"
5200
5201
5202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5203printf %s "checking for egrep... " >&6; }
5204if test ${ac_cv_path_EGREP+y}
5205then :
5206 printf %s "(cached) " >&6
5207else case e in #(
5208 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5209 then ac_cv_path_EGREP="$GREP -E"
5210 else
5211 if test -z "$EGREP"; then
5212 ac_path_EGREP_found=false
5213 # Loop through the user's path and test for each of PROGNAME-LIST
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5216do
5217 IFS=$as_save_IFS
5218 case $as_dir in #(((
5219 '') as_dir=./ ;;
5220 */) ;;
5221 *) as_dir=$as_dir/ ;;
5222 esac
5223 for ac_prog in egrep
5224 do
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5227 as_fn_executable_p "$ac_path_EGREP" || continue
5228# Check for GNU ac_path_EGREP and select it if it is found.
5229 # Check for GNU $ac_path_EGREP
5230case `"$ac_path_EGREP" --version 2>&1` in #(
5231*GNU*)
5232 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5233#(
5234*)
5235 ac_count=0
5236 printf %s 0123456789 >"conftest.in"
5237 while :
5238 do
5239 cat "conftest.in" "conftest.in" >"conftest.tmp"
5240 mv "conftest.tmp" "conftest.in"
5241 cp "conftest.in" "conftest.nl"
5242 printf "%s\n" 'EGREP' >> "conftest.nl"
5243 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5244 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5245 as_fn_arith $ac_count + 1 && ac_count=$as_val
5246 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5247 # Best one so far, save it but keep looking for a better one
5248 ac_cv_path_EGREP="$ac_path_EGREP"
5249 ac_path_EGREP_max=$ac_count
5250 fi
5251 # 10*(2^10) chars as input seems more than enough
5252 test $ac_count -gt 10 && break
5253 done
5254 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5255esac
5256
5257 $ac_path_EGREP_found && break 3
5258 done
5259 done
5260 done
5261IFS=$as_save_IFS
5262 if test -z "$ac_cv_path_EGREP"; then
5263 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5264 fi
5265else
5266 ac_cv_path_EGREP=$EGREP
5267fi
5268
5269 fi ;;
5270esac
5271fi
5272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5273printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5274 EGREP="$ac_cv_path_EGREP"
5275
5276 EGREP_TRADITIONAL=$EGREP
5277 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5278
5279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5280printf %s "checking for fgrep... " >&6; }
5281if test ${ac_cv_path_FGREP+y}
5282then :
5283 printf %s "(cached) " >&6
5284else case e in #(
5285 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5286 then ac_cv_path_FGREP="$GREP -F"
5287 else
5288 if test -z "$FGREP"; then
5289 ac_path_FGREP_found=false
5290 # Loop through the user's path and test for each of PROGNAME-LIST
5291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5293do
5294 IFS=$as_save_IFS
5295 case $as_dir in #(((
5296 '') as_dir=./ ;;
5297 */) ;;
5298 *) as_dir=$as_dir/ ;;
5299 esac
5300 for ac_prog in fgrep
5301 do
5302 for ac_exec_ext in '' $ac_executable_extensions; do
5303 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5304 as_fn_executable_p "$ac_path_FGREP" || continue
5305# Check for GNU ac_path_FGREP and select it if it is found.
5306 # Check for GNU $ac_path_FGREP
5307case `"$ac_path_FGREP" --version 2>&1` in #(
5308*GNU*)
5309 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5310#(
5311*)
5312 ac_count=0
5313 printf %s 0123456789 >"conftest.in"
5314 while :
5315 do
5316 cat "conftest.in" "conftest.in" >"conftest.tmp"
5317 mv "conftest.tmp" "conftest.in"
5318 cp "conftest.in" "conftest.nl"
5319 printf "%s\n" 'FGREP' >> "conftest.nl"
5320 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5321 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5322 as_fn_arith $ac_count + 1 && ac_count=$as_val
5323 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5324 # Best one so far, save it but keep looking for a better one
5325 ac_cv_path_FGREP="$ac_path_FGREP"
5326 ac_path_FGREP_max=$ac_count
5327 fi
5328 # 10*(2^10) chars as input seems more than enough
5329 test $ac_count -gt 10 && break
5330 done
5331 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5332esac
5333
5334 $ac_path_FGREP_found && break 3
5335 done
5336 done
5337 done
5338IFS=$as_save_IFS
5339 if test -z "$ac_cv_path_FGREP"; then
5340 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5341 fi
5342else
5343 ac_cv_path_FGREP=$FGREP
5344fi
5345
5346 fi ;;
5347esac
5348fi
5349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5350printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5351 FGREP="$ac_cv_path_FGREP"
5352
5353
5354test -z "$GREP" && GREP=grep
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5373ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5374ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5375
5376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5377printf %s "checking how to print strings... " >&6; }
5378# Test print first, because it will be a builtin if present.
5379if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5380 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5381 ECHO='print -r --'
5382elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5383 ECHO='printf %s\n'
5384else
5385 # Use this function as a fallback that always works.
5386 func_fallback_echo ()
5387 {
5388 eval 'cat <<_LTECHO_EOF
5389$1
5390_LTECHO_EOF'
5391 }
5392 ECHO='func_fallback_echo'
5393fi
5394
5395# func_echo_all arg...
5396# Invoke $ECHO with all args, space-separated.
5397func_echo_all ()
5398{
5399 $ECHO ""
5400}
5401
5402case $ECHO in
5403 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5404printf "%s\n" "printf" >&6; } ;;
5405 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5406printf "%s\n" "print -r" >&6; } ;;
5407 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5408printf "%s\n" "cat" >&6; } ;;
5409esac
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426# Check whether --with-gnu-ld was given.
5427if test ${with_gnu_ld+y}
5428then :
5429 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5430else case e in #(
5431 e) with_gnu_ld=no ;;
5432esac
5433fi
5434
5435ac_prog=ld
5436if test yes = "$GCC"; then
5437 # Check if gcc -print-prog-name=ld gives a path.
5438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5439printf %s "checking for ld used by $CC... " >&6; }
5440 case $host in
5441 *-*-mingw* | *-*-windows*)
5442 # gcc leaves a trailing carriage return, which upsets mingw
5443 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5444 *)
5445 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5446 esac
5447 case $ac_prog in
5448 # Accept absolute paths.
5449 [\\/]* | ?:[\\/]*)
5450 re_direlt='/[^/][^/]*/\.\./'
5451 # Canonicalize the pathname of ld
5452 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5453 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5454 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5455 done
5456 test -z "$LD" && LD=$ac_prog
5457 ;;
5458 "")
5459 # If it fails, then pretend we aren't using GCC.
5460 ac_prog=ld
5461 ;;
5462 *)
5463 # If it is relative, then search for the first ld in PATH.
5464 with_gnu_ld=unknown
5465 ;;
5466 esac
5467elif test yes = "$with_gnu_ld"; then
5468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5469printf %s "checking for GNU ld... " >&6; }
5470else
5471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5472printf %s "checking for non-GNU ld... " >&6; }
5473fi
5474if test ${lt_cv_path_LD+y}
5475then :
5476 printf %s "(cached) " >&6
5477else case e in #(
5478 e) if test -z "$LD"; then
5479 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5480 for ac_dir in $PATH; do
5481 IFS=$lt_save_ifs
5482 test -z "$ac_dir" && ac_dir=.
5483 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5484 lt_cv_path_LD=$ac_dir/$ac_prog
5485 # Check to see if the program is GNU ld. I'd rather use --version,
5486 # but apparently some variants of GNU ld only accept -v.
5487 # Break only if it was the GNU/non-GNU ld that we prefer.
5488 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5489 *GNU* | *'with BFD'*)
5490 test no != "$with_gnu_ld" && break
5491 ;;
5492 *)
5493 test yes != "$with_gnu_ld" && break
5494 ;;
5495 esac
5496 fi
5497 done
5498 IFS=$lt_save_ifs
5499else
5500 lt_cv_path_LD=$LD # Let the user override the test with a path.
5501fi ;;
5502esac
5503fi
5504
5505LD=$lt_cv_path_LD
5506if test -n "$LD"; then
5507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5508printf "%s\n" "$LD" >&6; }
5509else
5510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5511printf "%s\n" "no" >&6; }
5512fi
5513test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5515printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5516if test ${lt_cv_prog_gnu_ld+y}
5517then :
5518 printf %s "(cached) " >&6
5519else case e in #(
5520 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5521case `$LD -v 2>&1 </dev/null` in
5522*GNU* | *'with BFD'*)
5523 lt_cv_prog_gnu_ld=yes
5524 ;;
5525*)
5526 lt_cv_prog_gnu_ld=no
5527 ;;
5528esac ;;
5529esac
5530fi
5531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5532printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5533with_gnu_ld=$lt_cv_prog_gnu_ld
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543ac_ext=c
5544ac_cpp='$CPP $CPPFLAGS'
5545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5547ac_compiler_gnu=$ac_cv_c_compiler_gnu
5548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5549printf %s "checking how to run the C preprocessor... " >&6; }
5550# On Suns, sometimes $CPP names a directory.
5551if test -n "$CPP" && test -d "$CPP"; then
5552 CPP=
5553fi
5554if test -z "$CPP"; then
5555 if test ${ac_cv_prog_CPP+y}
5556then :
5557 printf %s "(cached) " >&6
5558else case e in #(
5559 e) # Double quotes because $CC needs to be expanded
5560 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5561 do
5562 ac_preproc_ok=false
5563for ac_c_preproc_warn_flag in '' yes
5564do
5565 # Use a header file that comes with gcc, so configuring glibc
5566 # with a fresh cross-compiler works.
5567 # On the NeXT, cc -E runs the code through the compiler's parser,
5568 # not just through cpp. "Syntax error" is here to catch this case.
5569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570/* end confdefs.h. */
5571#include <limits.h>
5572 Syntax error
5573_ACEOF
5574if ac_fn_c_try_cpp "$LINENO"
5575then :
5576
5577else case e in #(
5578 e) # Broken: fails on valid input.
5579continue ;;
5580esac
5581fi
5582rm -f conftest.err conftest.i conftest.$ac_ext
5583
5584 # OK, works on sane cases. Now check whether nonexistent headers
5585 # can be detected and how.
5586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5587/* end confdefs.h. */
5588#include <ac_nonexistent.h>
5589_ACEOF
5590if ac_fn_c_try_cpp "$LINENO"
5591then :
5592 # Broken: success on invalid input.
5593continue
5594else case e in #(
5595 e) # Passes both tests.
5596ac_preproc_ok=:
5597break ;;
5598esac
5599fi
5600rm -f conftest.err conftest.i conftest.$ac_ext
5601
5602done
5603# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5604rm -f conftest.i conftest.err conftest.$ac_ext
5605if $ac_preproc_ok
5606then :
5607 break
5608fi
5609
5610 done
5611 ac_cv_prog_CPP=$CPP
5612 ;;
5613esac
5614fi
5615 CPP=$ac_cv_prog_CPP
5616else
5617 ac_cv_prog_CPP=$CPP
5618fi
5619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5620printf "%s\n" "$CPP" >&6; }
5621ac_preproc_ok=false
5622for ac_c_preproc_warn_flag in '' yes
5623do
5624 # Use a header file that comes with gcc, so configuring glibc
5625 # with a fresh cross-compiler works.
5626 # On the NeXT, cc -E runs the code through the compiler's parser,
5627 # not just through cpp. "Syntax error" is here to catch this case.
5628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5629/* end confdefs.h. */
5630#include <limits.h>
5631 Syntax error
5632_ACEOF
5633if ac_fn_c_try_cpp "$LINENO"
5634then :
5635
5636else case e in #(
5637 e) # Broken: fails on valid input.
5638continue ;;
5639esac
5640fi
5641rm -f conftest.err conftest.i conftest.$ac_ext
5642
5643 # OK, works on sane cases. Now check whether nonexistent headers
5644 # can be detected and how.
5645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646/* end confdefs.h. */
5647#include <ac_nonexistent.h>
5648_ACEOF
5649if ac_fn_c_try_cpp "$LINENO"
5650then :
5651 # Broken: success on invalid input.
5652continue
5653else case e in #(
5654 e) # Passes both tests.
5655ac_preproc_ok=:
5656break ;;
5657esac
5658fi
5659rm -f conftest.err conftest.i conftest.$ac_ext
5660
5661done
5662# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5663rm -f conftest.i conftest.err conftest.$ac_ext
5664if $ac_preproc_ok
5665then :
5666
5667else case e in #(
5668 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5669printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5670as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5671See 'config.log' for more details" "$LINENO" 5; } ;;
5672esac
5673fi
5674
5675ac_ext=c
5676ac_cpp='$CPP $CPPFLAGS'
5677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5679ac_compiler_gnu=$ac_cv_c_compiler_gnu
5680
5681for ac_prog in gawk mawk nawk awk
5682do
5683 # Extract the first word of "$ac_prog", so it can be a program name with args.
5684set dummy $ac_prog; ac_word=$2
5685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5686printf %s "checking for $ac_word... " >&6; }
5687if test ${ac_cv_prog_AWK+y}
5688then :
5689 printf %s "(cached) " >&6
5690else case e in #(
5691 e) if test -n "$AWK"; then
5692 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5693else
5694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695for as_dir in $PATH
5696do
5697 IFS=$as_save_IFS
5698 case $as_dir in #(((
5699 '') as_dir=./ ;;
5700 */) ;;
5701 *) as_dir=$as_dir/ ;;
5702 esac
5703 for ac_exec_ext in '' $ac_executable_extensions; do
5704 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5705 ac_cv_prog_AWK="$ac_prog"
5706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5707 break 2
5708 fi
5709done
5710 done
5711IFS=$as_save_IFS
5712
5713fi ;;
5714esac
5715fi
5716AWK=$ac_cv_prog_AWK
5717if test -n "$AWK"; then
5718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5719printf "%s\n" "$AWK" >&6; }
5720else
5721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5722printf "%s\n" "no" >&6; }
5723fi
5724
5725
5726 test -n "$AWK" && break
5727done
5728
5729
5730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5731printf %s "checking whether ln -s works... " >&6; }
5732LN_S=$as_ln_s
5733if test "$LN_S" = "ln -s"; then
5734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5735printf "%s\n" "yes" >&6; }
5736else
5737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5738printf "%s\n" "no, using $LN_S" >&6; }
5739fi
5740
5741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5742printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5743set x ${MAKE-make}
5744ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5745if eval test \${ac_cv_prog_make_${ac_make}_set+y}
5746then :
5747 printf %s "(cached) " >&6
5748else case e in #(
5749 e) cat >conftest.make <<\_ACEOF
5750SHELL = /bin/sh
5751all:
5752 @echo '@@@%%%=$(MAKE)=@@@%%%'
5753_ACEOF
5754# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5755case `${MAKE-make} -f conftest.make 2>/dev/null` in
5756 *@@@%%%=?*=@@@%%%*)
5757 eval ac_cv_prog_make_${ac_make}_set=yes;;
5758 *)
5759 eval ac_cv_prog_make_${ac_make}_set=no;;
5760esac
5761rm -f conftest.make ;;
5762esac
5763fi
5764if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5766printf "%s\n" "yes" >&6; }
5767 SET_MAKE=
5768else
5769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5770printf "%s\n" "no" >&6; }
5771 SET_MAKE="MAKE=${MAKE-make}"
5772fi
5773
5774
5775case `pwd` in
5776 *\ * | *\ *)
5777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5778printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5779esac
5780
5781
5782
5783macro_version='2.5.4'
5784macro_revision='2.5.4'
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799ltmain=$ac_aux_dir/ltmain.sh
5800
5801# Backslashify metacharacters that are still active within
5802# double-quoted strings.
5803sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5804
5805# Same as above, but do not quote variable references.
5806double_quote_subst='s/\(["`\\]\)/\\\1/g'
5807
5808# Sed substitution to delay expansion of an escaped shell variable in a
5809# double_quote_subst'ed string.
5810delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5811
5812# Sed substitution to delay expansion of an escaped single quote.
5813delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5814
5815# Sed substitution to avoid accidental globbing in evaled expressions
5816no_glob_subst='s/\*/\\\*/g'
5817
5818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5819printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5820if test ${lt_cv_path_NM+y}
5821then :
5822 printf %s "(cached) " >&6
5823else case e in #(
5824 e) if test -n "$NM"; then
5825 # Let the user override the test.
5826 lt_cv_path_NM=$NM
5827else
5828 lt_nm_to_check=${ac_tool_prefix}nm
5829 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5830 lt_nm_to_check="$lt_nm_to_check nm"
5831 fi
5832 for lt_tmp_nm in $lt_nm_to_check; do
5833 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5834 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5835 IFS=$lt_save_ifs
5836 test -z "$ac_dir" && ac_dir=.
5837 tmp_nm=$ac_dir/$lt_tmp_nm
5838 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5839 # Check to see if the nm accepts a BSD-compat flag.
5840 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5841 # nm: unknown option "B" ignored
5842 # Tru64's nm complains that /dev/null is an invalid object file
5843 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5844 case $build_os in
5845 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5846 *) lt_bad_file=/dev/null ;;
5847 esac
5848 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5849 *$lt_bad_file* | *'Invalid file or object type'*)
5850 lt_cv_path_NM="$tmp_nm -B"
5851 break 2
5852 ;;
5853 *)
5854 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5855 */dev/null*)
5856 lt_cv_path_NM="$tmp_nm -p"
5857 break 2
5858 ;;
5859 *)
5860 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5861 continue # so that we can try to find one that supports BSD flags
5862 ;;
5863 esac
5864 ;;
5865 esac
5866 fi
5867 done
5868 IFS=$lt_save_ifs
5869 done
5870 : ${lt_cv_path_NM=no}
5871fi ;;
5872esac
5873fi
5874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5875printf "%s\n" "$lt_cv_path_NM" >&6; }
5876if test no != "$lt_cv_path_NM"; then
5877 NM=$lt_cv_path_NM
5878else
5879 # Didn't find any BSD compatible name lister, look for dumpbin.
5880 if test -n "$DUMPBIN"; then :
5881 # Let the user override the test.
5882 else
5883 if test -n "$ac_tool_prefix"; then
5884 for ac_prog in dumpbin "link -dump"
5885 do
5886 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5887set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5889printf %s "checking for $ac_word... " >&6; }
5890if test ${ac_cv_prog_DUMPBIN+y}
5891then :
5892 printf %s "(cached) " >&6
5893else case e in #(
5894 e) if test -n "$DUMPBIN"; then
5895 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5896else
5897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898for as_dir in $PATH
5899do
5900 IFS=$as_save_IFS
5901 case $as_dir in #(((
5902 '') as_dir=./ ;;
5903 */) ;;
5904 *) as_dir=$as_dir/ ;;
5905 esac
5906 for ac_exec_ext in '' $ac_executable_extensions; do
5907 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5908 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5910 break 2
5911 fi
5912done
5913 done
5914IFS=$as_save_IFS
5915
5916fi ;;
5917esac
5918fi
5919DUMPBIN=$ac_cv_prog_DUMPBIN
5920if test -n "$DUMPBIN"; then
5921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5922printf "%s\n" "$DUMPBIN" >&6; }
5923else
5924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5925printf "%s\n" "no" >&6; }
5926fi
5927
5928
5929 test -n "$DUMPBIN" && break
5930 done
5931fi
5932if test -z "$DUMPBIN"; then
5933 ac_ct_DUMPBIN=$DUMPBIN
5934 for ac_prog in dumpbin "link -dump"
5935do
5936 # Extract the first word of "$ac_prog", so it can be a program name with args.
5937set dummy $ac_prog; ac_word=$2
5938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5939printf %s "checking for $ac_word... " >&6; }
5940if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5941then :
5942 printf %s "(cached) " >&6
5943else case e in #(
5944 e) if test -n "$ac_ct_DUMPBIN"; then
5945 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5946else
5947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948for as_dir in $PATH
5949do
5950 IFS=$as_save_IFS
5951 case $as_dir in #(((
5952 '') as_dir=./ ;;
5953 */) ;;
5954 *) as_dir=$as_dir/ ;;
5955 esac
5956 for ac_exec_ext in '' $ac_executable_extensions; do
5957 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5958 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5960 break 2
5961 fi
5962done
5963 done
5964IFS=$as_save_IFS
5965
5966fi ;;
5967esac
5968fi
5969ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5970if test -n "$ac_ct_DUMPBIN"; then
5971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5972printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5973else
5974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5975printf "%s\n" "no" >&6; }
5976fi
5977
5978
5979 test -n "$ac_ct_DUMPBIN" && break
5980done
5981
5982 if test "x$ac_ct_DUMPBIN" = x; then
5983 DUMPBIN=":"
5984 else
5985 case $cross_compiling:$ac_tool_warned in
5986yes:)
5987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5988printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5989ac_tool_warned=yes ;;
5990esac
5991 DUMPBIN=$ac_ct_DUMPBIN
5992 fi
5993fi
5994
5995 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5996 *COFF*)
5997 DUMPBIN="$DUMPBIN -symbols -headers"
5998 ;;
5999 *)
6000 DUMPBIN=:
6001 ;;
6002 esac
6003 fi
6004
6005 if test : != "$DUMPBIN"; then
6006 NM=$DUMPBIN
6007 fi
6008fi
6009test -z "$NM" && NM=nm
6010
6011
6012
6013
6014
6015
6016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6017printf %s "checking the name lister ($NM) interface... " >&6; }
6018if test ${lt_cv_nm_interface+y}
6019then :
6020 printf %s "(cached) " >&6
6021else case e in #(
6022 e) lt_cv_nm_interface="BSD nm"
6023 echo "int some_variable = 0;" > conftest.$ac_ext
6024 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6025 (eval "$ac_compile" 2>conftest.err)
6026 cat conftest.err >&5
6027 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6028 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6029 cat conftest.err >&5
6030 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6031 cat conftest.out >&5
6032 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6033 lt_cv_nm_interface="MS dumpbin"
6034 fi
6035 rm -f conftest* ;;
6036esac
6037fi
6038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6039printf "%s\n" "$lt_cv_nm_interface" >&6; }
6040
6041# find the maximum length of command line arguments
6042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6043printf %s "checking the maximum length of command line arguments... " >&6; }
6044if test ${lt_cv_sys_max_cmd_len+y}
6045then :
6046 printf %s "(cached) " >&6
6047else case e in #(
6048 e) i=0
6049 teststring=ABCD
6050
6051 case $build_os in
6052 msdosdjgpp*)
6053 # On DJGPP, this test can blow up pretty badly due to problems in libc
6054 # (any single argument exceeding 2000 bytes causes a buffer overrun
6055 # during glob expansion). Even if it were fixed, the result of this
6056 # check would be larger than it should be.
6057 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6058 ;;
6059
6060 gnu* | ironclad*)
6061 # Under GNU Hurd and Ironclad, this test is not required because there
6062 # is no limit to the length of command line arguments.
6063 # Libtool will interpret -1 as no limit whatsoever
6064 lt_cv_sys_max_cmd_len=-1;
6065 ;;
6066
6067 cygwin* | mingw* | windows* | cegcc*)
6068 # On Win9x/ME, this test blows up -- it succeeds, but takes
6069 # about 5 minutes as the teststring grows exponentially.
6070 # Worse, since 9x/ME are not pre-emptively multitasking,
6071 # you end up with a "frozen" computer, even though with patience
6072 # the test eventually succeeds (with a max line length of 256k).
6073 # Instead, let's just punt: use the minimum linelength reported by
6074 # all of the supported platforms: 8192 (on NT/2K/XP).
6075 lt_cv_sys_max_cmd_len=8192;
6076 ;;
6077
6078 mint*)
6079 # On MiNT this can take a long time and run out of memory.
6080 lt_cv_sys_max_cmd_len=8192;
6081 ;;
6082
6083 amigaos*)
6084 # On AmigaOS with pdksh, this test takes hours, literally.
6085 # So we just punt and use a minimum line length of 8192.
6086 lt_cv_sys_max_cmd_len=8192;
6087 ;;
6088
6089 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6090 # This has been around since 386BSD, at least. Likely further.
6091 if test -x /sbin/sysctl; then
6092 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6093 elif test -x /usr/sbin/sysctl; then
6094 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6095 else
6096 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6097 fi
6098 # And add a safety zone
6099 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6100 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6101 ;;
6102
6103 interix*)
6104 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6105 lt_cv_sys_max_cmd_len=196608
6106 ;;
6107
6108 os2*)
6109 # The test takes a long time on OS/2.
6110 lt_cv_sys_max_cmd_len=8192
6111 ;;
6112
6113 osf*)
6114 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6115 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6116 # nice to cause kernel panics so lets avoid the loop below.
6117 # First set a reasonable default.
6118 lt_cv_sys_max_cmd_len=16384
6119 #
6120 if test -x /sbin/sysconfig; then
6121 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6122 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6123 esac
6124 fi
6125 ;;
6126 sco3.2v5*)
6127 lt_cv_sys_max_cmd_len=102400
6128 ;;
6129 sysv5* | sco5v6* | sysv4.2uw2*)
6130 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6131 if test -n "$kargmax"; then
6132 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6133 else
6134 lt_cv_sys_max_cmd_len=32768
6135 fi
6136 ;;
6137 *)
6138 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6139 if test -n "$lt_cv_sys_max_cmd_len" && \
6140 test undefined != "$lt_cv_sys_max_cmd_len"; then
6141 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6142 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6143 else
6144 # Make teststring a little bigger before we do anything with it.
6145 # a 1K string should be a reasonable start.
6146 for i in 1 2 3 4 5 6 7 8; do
6147 teststring=$teststring$teststring
6148 done
6149 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6150 # If test is not a shell built-in, we'll probably end up computing a
6151 # maximum length that is only half of the actual maximum length, but
6152 # we can't tell.
6153 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6154 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6155 test 17 != "$i" # 1/2 MB should be enough
6156 do
6157 i=`expr $i + 1`
6158 teststring=$teststring$teststring
6159 done
6160 # Only check the string length outside the loop.
6161 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6162 teststring=
6163 # Add a significant safety factor because C++ compilers can tack on
6164 # massive amounts of additional arguments before passing them to the
6165 # linker. It appears as though 1/2 is a usable value.
6166 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6167 fi
6168 ;;
6169 esac
6170 ;;
6171esac
6172fi
6173
6174if test -n "$lt_cv_sys_max_cmd_len"; then
6175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6176printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6177else
6178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6179printf "%s\n" "none" >&6; }
6180fi
6181max_cmd_len=$lt_cv_sys_max_cmd_len
6182
6183
6184
6185
6186
6187
6188: ${CP="cp -f"}
6189: ${MV="mv -f"}
6190: ${RM="rm -f"}
6191
6192if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6193 lt_unset=unset
6194else
6195 lt_unset=false
6196fi
6197
6198
6199
6200
6201
6202# test EBCDIC or ASCII
6203case `echo X|tr X '\101'` in
6204 A) # ASCII based system
6205 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6206 lt_SP2NL='tr \040 \012'
6207 lt_NL2SP='tr \015\012 \040\040'
6208 ;;
6209 *) # EBCDIC based system
6210 lt_SP2NL='tr \100 \n'
6211 lt_NL2SP='tr \r\n \100\100'
6212 ;;
6213esac
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6224printf %s "checking how to convert $build file names to $host format... " >&6; }
6225if test ${lt_cv_to_host_file_cmd+y}
6226then :
6227 printf %s "(cached) " >&6
6228else case e in #(
6229 e) case $host in
6230 *-*-mingw* )
6231 case $build in
6232 *-*-mingw* | *-*-windows* ) # actually msys
6233 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6234 ;;
6235 *-*-cygwin* )
6236 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6237 ;;
6238 * ) # otherwise, assume *nix
6239 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6240 ;;
6241 esac
6242 ;;
6243 *-*-cygwin* )
6244 case $build in
6245 *-*-mingw* | *-*-windows* ) # actually msys
6246 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6247 ;;
6248 *-*-cygwin* )
6249 lt_cv_to_host_file_cmd=func_convert_file_noop
6250 ;;
6251 * ) # otherwise, assume *nix
6252 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6253 ;;
6254 esac
6255 ;;
6256 * ) # unhandled hosts (and "normal" native builds)
6257 lt_cv_to_host_file_cmd=func_convert_file_noop
6258 ;;
6259esac
6260 ;;
6261esac
6262fi
6263
6264to_host_file_cmd=$lt_cv_to_host_file_cmd
6265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6266printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6267
6268
6269
6270
6271
6272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6273printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6274if test ${lt_cv_to_tool_file_cmd+y}
6275then :
6276 printf %s "(cached) " >&6
6277else case e in #(
6278 e) #assume ordinary cross tools, or native build.
6279lt_cv_to_tool_file_cmd=func_convert_file_noop
6280case $host in
6281 *-*-mingw* | *-*-windows* )
6282 case $build in
6283 *-*-mingw* | *-*-windows* ) # actually msys
6284 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6285 ;;
6286 esac
6287 ;;
6288esac
6289 ;;
6290esac
6291fi
6292
6293to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6295printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6296
6297
6298
6299
6300
6301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6302printf %s "checking for $LD option to reload object files... " >&6; }
6303if test ${lt_cv_ld_reload_flag+y}
6304then :
6305 printf %s "(cached) " >&6
6306else case e in #(
6307 e) lt_cv_ld_reload_flag='-r' ;;
6308esac
6309fi
6310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6311printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6312reload_flag=$lt_cv_ld_reload_flag
6313case $reload_flag in
6314"" | " "*) ;;
6315*) reload_flag=" $reload_flag" ;;
6316esac
6317reload_cmds='$LD$reload_flag -o $output$reload_objs'
6318case $host_os in
6319 cygwin* | mingw* | windows* | pw32* | cegcc*)
6320 if test yes != "$GCC"; then
6321 reload_cmds=false
6322 fi
6323 ;;
6324 darwin*)
6325 if test yes = "$GCC"; then
6326 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6327 else
6328 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6329 fi
6330 ;;
6331esac
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341# Extract the first word of "file", so it can be a program name with args.
6342set dummy file; ac_word=$2
6343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6344printf %s "checking for $ac_word... " >&6; }
6345if test ${ac_cv_prog_FILECMD+y}
6346then :
6347 printf %s "(cached) " >&6
6348else case e in #(
6349 e) if test -n "$FILECMD"; then
6350 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6351else
6352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353for as_dir in $PATH
6354do
6355 IFS=$as_save_IFS
6356 case $as_dir in #(((
6357 '') as_dir=./ ;;
6358 */) ;;
6359 *) as_dir=$as_dir/ ;;
6360 esac
6361 for ac_exec_ext in '' $ac_executable_extensions; do
6362 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6363 ac_cv_prog_FILECMD="file"
6364 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6365 break 2
6366 fi
6367done
6368 done
6369IFS=$as_save_IFS
6370
6371 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6372fi ;;
6373esac
6374fi
6375FILECMD=$ac_cv_prog_FILECMD
6376if test -n "$FILECMD"; then
6377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6378printf "%s\n" "$FILECMD" >&6; }
6379else
6380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6381printf "%s\n" "no" >&6; }
6382fi
6383
6384
6385
6386
6387
6388
6389
6390
6391if test -n "$ac_tool_prefix"; then
6392 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6393set dummy ${ac_tool_prefix}objdump; ac_word=$2
6394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6395printf %s "checking for $ac_word... " >&6; }
6396if test ${ac_cv_prog_OBJDUMP+y}
6397then :
6398 printf %s "(cached) " >&6
6399else case e in #(
6400 e) if test -n "$OBJDUMP"; then
6401 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6402else
6403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404for as_dir in $PATH
6405do
6406 IFS=$as_save_IFS
6407 case $as_dir in #(((
6408 '') as_dir=./ ;;
6409 */) ;;
6410 *) as_dir=$as_dir/ ;;
6411 esac
6412 for ac_exec_ext in '' $ac_executable_extensions; do
6413 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6414 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6415 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6416 break 2
6417 fi
6418done
6419 done
6420IFS=$as_save_IFS
6421
6422fi ;;
6423esac
6424fi
6425OBJDUMP=$ac_cv_prog_OBJDUMP
6426if test -n "$OBJDUMP"; then
6427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6428printf "%s\n" "$OBJDUMP" >&6; }
6429else
6430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6431printf "%s\n" "no" >&6; }
6432fi
6433
6434
6435fi
6436if test -z "$ac_cv_prog_OBJDUMP"; then
6437 ac_ct_OBJDUMP=$OBJDUMP
6438 # Extract the first word of "objdump", so it can be a program name with args.
6439set dummy objdump; ac_word=$2
6440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441printf %s "checking for $ac_word... " >&6; }
6442if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6443then :
6444 printf %s "(cached) " >&6
6445else case e in #(
6446 e) if test -n "$ac_ct_OBJDUMP"; then
6447 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6448else
6449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450for as_dir in $PATH
6451do
6452 IFS=$as_save_IFS
6453 case $as_dir in #(((
6454 '') as_dir=./ ;;
6455 */) ;;
6456 *) as_dir=$as_dir/ ;;
6457 esac
6458 for ac_exec_ext in '' $ac_executable_extensions; do
6459 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6460 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6462 break 2
6463 fi
6464done
6465 done
6466IFS=$as_save_IFS
6467
6468fi ;;
6469esac
6470fi
6471ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6472if test -n "$ac_ct_OBJDUMP"; then
6473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6474printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6475else
6476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477printf "%s\n" "no" >&6; }
6478fi
6479
6480 if test "x$ac_ct_OBJDUMP" = x; then
6481 OBJDUMP="false"
6482 else
6483 case $cross_compiling:$ac_tool_warned in
6484yes:)
6485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6486printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6487ac_tool_warned=yes ;;
6488esac
6489 OBJDUMP=$ac_ct_OBJDUMP
6490 fi
6491else
6492 OBJDUMP="$ac_cv_prog_OBJDUMP"
6493fi
6494
6495test -z "$OBJDUMP" && OBJDUMP=objdump
6496
6497
6498
6499
6500
6501
6502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6503printf %s "checking how to recognize dependent libraries... " >&6; }
6504if test ${lt_cv_deplibs_check_method+y}
6505then :
6506 printf %s "(cached) " >&6
6507else case e in #(
6508 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6509lt_cv_file_magic_test_file=
6510lt_cv_deplibs_check_method='unknown'
6511# Need to set the preceding variable on all platforms that support
6512# interlibrary dependencies.
6513# 'none' -- dependencies not supported.
6514# 'unknown' -- same as none, but documents that we really don't know.
6515# 'pass_all' -- all dependencies passed with no checks.
6516# 'file_magic [[regex]]' -- check by looking for files in library path
6517# that responds to the $file_magic_cmd with a given extended regex.
6518# If you have 'file' or equivalent on your system and you're not sure
6519# whether 'pass_all' will *always* work, you probably want this one.
6520
6521case $host_os in
6522aix[4-9]*)
6523 lt_cv_deplibs_check_method=pass_all
6524 ;;
6525
6526beos*)
6527 lt_cv_deplibs_check_method=pass_all
6528 ;;
6529
6530bsdi[45]*)
6531 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6532 lt_cv_file_magic_cmd='$FILECMD -L'
6533 lt_cv_file_magic_test_file=/shlib/libc.so
6534 ;;
6535
6536cygwin*)
6537 # func_win32_libid is a shell function defined in ltmain.sh
6538 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6539 lt_cv_file_magic_cmd='func_win32_libid'
6540 ;;
6541
6542mingw* | windows* | pw32*)
6543 # Base MSYS/MinGW do not provide the 'file' command needed by
6544 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6545 # unless we find 'file', for example because we are cross-compiling.
6546 if ( file / ) >/dev/null 2>&1; then
6547 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6548 lt_cv_file_magic_cmd='func_win32_libid'
6549 else
6550 # Keep this pattern in sync with the one in func_win32_libid.
6551 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6552 lt_cv_file_magic_cmd='$OBJDUMP -f'
6553 fi
6554 ;;
6555
6556cegcc*)
6557 # use the weaker test based on 'objdump'. See mingw*.
6558 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6559 lt_cv_file_magic_cmd='$OBJDUMP -f'
6560 ;;
6561
6562darwin* | rhapsody*)
6563 lt_cv_deplibs_check_method=pass_all
6564 ;;
6565
6566freebsd* | dragonfly* | midnightbsd*)
6567 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6568 case $host_cpu in
6569 i*86 )
6570 # Not sure whether the presence of OpenBSD here was a mistake.
6571 # Let's accept both of them until this is cleared up.
6572 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6573 lt_cv_file_magic_cmd=$FILECMD
6574 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6575 ;;
6576 esac
6577 else
6578 lt_cv_deplibs_check_method=pass_all
6579 fi
6580 ;;
6581
6582haiku*)
6583 lt_cv_deplibs_check_method=pass_all
6584 ;;
6585
6586hpux10.20* | hpux11*)
6587 lt_cv_file_magic_cmd=$FILECMD
6588 case $host_cpu in
6589 ia64*)
6590 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6591 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6592 ;;
6593 hppa*64*)
6594 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]'
6595 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6596 ;;
6597 *)
6598 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6599 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6600 ;;
6601 esac
6602 ;;
6603
6604interix[3-9]*)
6605 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6606 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6607 ;;
6608
6609irix5* | irix6* | nonstopux*)
6610 case $LD in
6611 *-32|*"-32 ") libmagic=32-bit;;
6612 *-n32|*"-n32 ") libmagic=N32;;
6613 *-64|*"-64 ") libmagic=64-bit;;
6614 *) libmagic=never-match;;
6615 esac
6616 lt_cv_deplibs_check_method=pass_all
6617 ;;
6618
6619# This must be glibc/ELF.
6620linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6621 lt_cv_deplibs_check_method=pass_all
6622 ;;
6623
6624*-mlibc)
6625 lt_cv_deplibs_check_method=pass_all
6626 ;;
6627
6628netbsd* | netbsdelf*-gnu)
6629 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6630 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6631 else
6632 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6633 fi
6634 ;;
6635
6636newos6*)
6637 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6638 lt_cv_file_magic_cmd=$FILECMD
6639 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6640 ;;
6641
6642*nto* | *qnx*)
6643 lt_cv_deplibs_check_method=pass_all
6644 ;;
6645
6646openbsd*)
6647 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6648 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6649 else
6650 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6651 fi
6652 ;;
6653
6654osf3* | osf4* | osf5*)
6655 lt_cv_deplibs_check_method=pass_all
6656 ;;
6657
6658rdos*)
6659 lt_cv_deplibs_check_method=pass_all
6660 ;;
6661
6662serenity*)
6663 lt_cv_deplibs_check_method=pass_all
6664 ;;
6665
6666solaris*)
6667 lt_cv_deplibs_check_method=pass_all
6668 ;;
6669
6670sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6671 lt_cv_deplibs_check_method=pass_all
6672 ;;
6673
6674sysv4 | sysv4.3*)
6675 case $host_vendor in
6676 motorola)
6677 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]'
6678 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6679 ;;
6680 ncr)
6681 lt_cv_deplibs_check_method=pass_all
6682 ;;
6683 sequent)
6684 lt_cv_file_magic_cmd='/bin/file'
6685 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6686 ;;
6687 sni)
6688 lt_cv_file_magic_cmd='/bin/file'
6689 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6690 lt_cv_file_magic_test_file=/lib/libc.so
6691 ;;
6692 siemens)
6693 lt_cv_deplibs_check_method=pass_all
6694 ;;
6695 pc)
6696 lt_cv_deplibs_check_method=pass_all
6697 ;;
6698 esac
6699 ;;
6700
6701tpf*)
6702 lt_cv_deplibs_check_method=pass_all
6703 ;;
6704os2*)
6705 lt_cv_deplibs_check_method=pass_all
6706 ;;
6707esac
6708 ;;
6709esac
6710fi
6711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6712printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6713
6714file_magic_glob=
6715want_nocaseglob=no
6716if test "$build" = "$host"; then
6717 case $host_os in
6718 mingw* | windows* | pw32*)
6719 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6720 want_nocaseglob=yes
6721 else
6722 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6723 fi
6724 ;;
6725 esac
6726fi
6727
6728file_magic_cmd=$lt_cv_file_magic_cmd
6729deplibs_check_method=$lt_cv_deplibs_check_method
6730test -z "$deplibs_check_method" && deplibs_check_method=unknown
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753if test -n "$ac_tool_prefix"; then
6754 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6755set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757printf %s "checking for $ac_word... " >&6; }
6758if test ${ac_cv_prog_DLLTOOL+y}
6759then :
6760 printf %s "(cached) " >&6
6761else case e in #(
6762 e) if test -n "$DLLTOOL"; then
6763 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6764else
6765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766for as_dir in $PATH
6767do
6768 IFS=$as_save_IFS
6769 case $as_dir in #(((
6770 '') as_dir=./ ;;
6771 */) ;;
6772 *) as_dir=$as_dir/ ;;
6773 esac
6774 for ac_exec_ext in '' $ac_executable_extensions; do
6775 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6776 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6778 break 2
6779 fi
6780done
6781 done
6782IFS=$as_save_IFS
6783
6784fi ;;
6785esac
6786fi
6787DLLTOOL=$ac_cv_prog_DLLTOOL
6788if test -n "$DLLTOOL"; then
6789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6790printf "%s\n" "$DLLTOOL" >&6; }
6791else
6792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6793printf "%s\n" "no" >&6; }
6794fi
6795
6796
6797fi
6798if test -z "$ac_cv_prog_DLLTOOL"; then
6799 ac_ct_DLLTOOL=$DLLTOOL
6800 # Extract the first word of "dlltool", so it can be a program name with args.
6801set dummy dlltool; ac_word=$2
6802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6803printf %s "checking for $ac_word... " >&6; }
6804if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6805then :
6806 printf %s "(cached) " >&6
6807else case e in #(
6808 e) if test -n "$ac_ct_DLLTOOL"; then
6809 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6810else
6811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812for as_dir in $PATH
6813do
6814 IFS=$as_save_IFS
6815 case $as_dir in #(((
6816 '') as_dir=./ ;;
6817 */) ;;
6818 *) as_dir=$as_dir/ ;;
6819 esac
6820 for ac_exec_ext in '' $ac_executable_extensions; do
6821 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6822 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6824 break 2
6825 fi
6826done
6827 done
6828IFS=$as_save_IFS
6829
6830fi ;;
6831esac
6832fi
6833ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6834if test -n "$ac_ct_DLLTOOL"; then
6835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6836printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6837else
6838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6839printf "%s\n" "no" >&6; }
6840fi
6841
6842 if test "x$ac_ct_DLLTOOL" = x; then
6843 DLLTOOL="false"
6844 else
6845 case $cross_compiling:$ac_tool_warned in
6846yes:)
6847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6848printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6849ac_tool_warned=yes ;;
6850esac
6851 DLLTOOL=$ac_ct_DLLTOOL
6852 fi
6853else
6854 DLLTOOL="$ac_cv_prog_DLLTOOL"
6855fi
6856
6857test -z "$DLLTOOL" && DLLTOOL=dlltool
6858
6859
6860
6861
6862
6863
6864
6865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6866printf %s "checking how to associate runtime and link libraries... " >&6; }
6867if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6868then :
6869 printf %s "(cached) " >&6
6870else case e in #(
6871 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6872
6873case $host_os in
6874cygwin* | mingw* | windows* | pw32* | cegcc*)
6875 # two different shell functions defined in ltmain.sh;
6876 # decide which one to use based on capabilities of $DLLTOOL
6877 case `$DLLTOOL --help 2>&1` in
6878 *--identify-strict*)
6879 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6880 ;;
6881 *)
6882 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6883 ;;
6884 esac
6885 ;;
6886*)
6887 # fallback: assume linklib IS sharedlib
6888 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6889 ;;
6890esac
6891 ;;
6892esac
6893fi
6894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6895printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6896sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6897test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6898
6899
6900
6901
6902
6903
6904
6905
6906if test -n "$ac_tool_prefix"; then
6907 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6908set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6910printf %s "checking for $ac_word... " >&6; }
6911if test ${ac_cv_prog_RANLIB+y}
6912then :
6913 printf %s "(cached) " >&6
6914else case e in #(
6915 e) if test -n "$RANLIB"; then
6916 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6917else
6918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919for as_dir in $PATH
6920do
6921 IFS=$as_save_IFS
6922 case $as_dir in #(((
6923 '') as_dir=./ ;;
6924 */) ;;
6925 *) as_dir=$as_dir/ ;;
6926 esac
6927 for ac_exec_ext in '' $ac_executable_extensions; do
6928 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6929 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6931 break 2
6932 fi
6933done
6934 done
6935IFS=$as_save_IFS
6936
6937fi ;;
6938esac
6939fi
6940RANLIB=$ac_cv_prog_RANLIB
6941if test -n "$RANLIB"; then
6942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6943printf "%s\n" "$RANLIB" >&6; }
6944else
6945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946printf "%s\n" "no" >&6; }
6947fi
6948
6949
6950fi
6951if test -z "$ac_cv_prog_RANLIB"; then
6952 ac_ct_RANLIB=$RANLIB
6953 # Extract the first word of "ranlib", so it can be a program name with args.
6954set dummy ranlib; ac_word=$2
6955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6956printf %s "checking for $ac_word... " >&6; }
6957if test ${ac_cv_prog_ac_ct_RANLIB+y}
6958then :
6959 printf %s "(cached) " >&6
6960else case e in #(
6961 e) if test -n "$ac_ct_RANLIB"; then
6962 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6963else
6964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965for as_dir in $PATH
6966do
6967 IFS=$as_save_IFS
6968 case $as_dir in #(((
6969 '') as_dir=./ ;;
6970 */) ;;
6971 *) as_dir=$as_dir/ ;;
6972 esac
6973 for ac_exec_ext in '' $ac_executable_extensions; do
6974 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6975 ac_cv_prog_ac_ct_RANLIB="ranlib"
6976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6977 break 2
6978 fi
6979done
6980 done
6981IFS=$as_save_IFS
6982
6983fi ;;
6984esac
6985fi
6986ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6987if test -n "$ac_ct_RANLIB"; then
6988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6989printf "%s\n" "$ac_ct_RANLIB" >&6; }
6990else
6991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6992printf "%s\n" "no" >&6; }
6993fi
6994
6995 if test "x$ac_ct_RANLIB" = x; then
6996 RANLIB=":"
6997 else
6998 case $cross_compiling:$ac_tool_warned in
6999yes:)
7000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7001printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7002ac_tool_warned=yes ;;
7003esac
7004 RANLIB=$ac_ct_RANLIB
7005 fi
7006else
7007 RANLIB="$ac_cv_prog_RANLIB"
7008fi
7009
7010if test -n "$ac_tool_prefix"; then
7011 for ac_prog in ar
7012 do
7013 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7014set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7016printf %s "checking for $ac_word... " >&6; }
7017if test ${ac_cv_prog_AR+y}
7018then :
7019 printf %s "(cached) " >&6
7020else case e in #(
7021 e) if test -n "$AR"; then
7022 ac_cv_prog_AR="$AR" # Let the user override the test.
7023else
7024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025for as_dir in $PATH
7026do
7027 IFS=$as_save_IFS
7028 case $as_dir in #(((
7029 '') as_dir=./ ;;
7030 */) ;;
7031 *) as_dir=$as_dir/ ;;
7032 esac
7033 for ac_exec_ext in '' $ac_executable_extensions; do
7034 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7035 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7036 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7037 break 2
7038 fi
7039done
7040 done
7041IFS=$as_save_IFS
7042
7043fi ;;
7044esac
7045fi
7046AR=$ac_cv_prog_AR
7047if test -n "$AR"; then
7048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7049printf "%s\n" "$AR" >&6; }
7050else
7051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052printf "%s\n" "no" >&6; }
7053fi
7054
7055
7056 test -n "$AR" && break
7057 done
7058fi
7059if test -z "$AR"; then
7060 ac_ct_AR=$AR
7061 for ac_prog in ar
7062do
7063 # Extract the first word of "$ac_prog", so it can be a program name with args.
7064set dummy $ac_prog; ac_word=$2
7065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7066printf %s "checking for $ac_word... " >&6; }
7067if test ${ac_cv_prog_ac_ct_AR+y}
7068then :
7069 printf %s "(cached) " >&6
7070else case e in #(
7071 e) if test -n "$ac_ct_AR"; then
7072 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7073else
7074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075for as_dir in $PATH
7076do
7077 IFS=$as_save_IFS
7078 case $as_dir in #(((
7079 '') as_dir=./ ;;
7080 */) ;;
7081 *) as_dir=$as_dir/ ;;
7082 esac
7083 for ac_exec_ext in '' $ac_executable_extensions; do
7084 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7085 ac_cv_prog_ac_ct_AR="$ac_prog"
7086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7087 break 2
7088 fi
7089done
7090 done
7091IFS=$as_save_IFS
7092
7093fi ;;
7094esac
7095fi
7096ac_ct_AR=$ac_cv_prog_ac_ct_AR
7097if test -n "$ac_ct_AR"; then
7098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7099printf "%s\n" "$ac_ct_AR" >&6; }
7100else
7101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7102printf "%s\n" "no" >&6; }
7103fi
7104
7105
7106 test -n "$ac_ct_AR" && break
7107done
7108
7109 if test "x$ac_ct_AR" = x; then
7110 AR="false"
7111 else
7112 case $cross_compiling:$ac_tool_warned in
7113yes:)
7114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7115printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7116ac_tool_warned=yes ;;
7117esac
7118 AR=$ac_ct_AR
7119 fi
7120fi
7121
7122: ${AR=ar}
7123
7124
7125
7126
7127
7128
7129# Use ARFLAGS variable as AR's operation code to sync the variable naming with
7130# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7131# higher priority because that's what people were doing historically (setting
7132# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7133# variable obsoleted/removed.
7134
7135test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7136lt_ar_flags=$AR_FLAGS
7137
7138
7139
7140
7141
7142
7143# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7144# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7145
7146
7147
7148
7149
7150
7151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7152printf %s "checking for archiver @FILE support... " >&6; }
7153if test ${lt_cv_ar_at_file+y}
7154then :
7155 printf %s "(cached) " >&6
7156else case e in #(
7157 e) lt_cv_ar_at_file=no
7158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7159/* end confdefs.h. */
7160
7161int
7162main (void)
7163{
7164
7165 ;
7166 return 0;
7167}
7168_ACEOF
7169if ac_fn_c_try_compile "$LINENO"
7170then :
7171 echo conftest.$ac_objext > conftest.lst
7172 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7174 (eval $lt_ar_try) 2>&5
7175 ac_status=$?
7176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7177 test $ac_status = 0; }
7178 if test 0 -eq "$ac_status"; then
7179 # Ensure the archiver fails upon bogus file names.
7180 rm -f conftest.$ac_objext libconftest.a
7181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7182 (eval $lt_ar_try) 2>&5
7183 ac_status=$?
7184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7185 test $ac_status = 0; }
7186 if test 0 -ne "$ac_status"; then
7187 lt_cv_ar_at_file=@
7188 fi
7189 fi
7190 rm -f conftest.* libconftest.a
7191
7192fi
7193rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7194 ;;
7195esac
7196fi
7197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7198printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7199
7200if test no = "$lt_cv_ar_at_file"; then
7201 archiver_list_spec=
7202else
7203 archiver_list_spec=$lt_cv_ar_at_file
7204fi
7205
7206
7207
7208
7209
7210
7211
7212if test -n "$ac_tool_prefix"; then
7213 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7214set dummy ${ac_tool_prefix}strip; ac_word=$2
7215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7216printf %s "checking for $ac_word... " >&6; }
7217if test ${ac_cv_prog_STRIP+y}
7218then :
7219 printf %s "(cached) " >&6
7220else case e in #(
7221 e) if test -n "$STRIP"; then
7222 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7223else
7224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225for as_dir in $PATH
7226do
7227 IFS=$as_save_IFS
7228 case $as_dir in #(((
7229 '') as_dir=./ ;;
7230 */) ;;
7231 *) as_dir=$as_dir/ ;;
7232 esac
7233 for ac_exec_ext in '' $ac_executable_extensions; do
7234 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7235 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7236 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7237 break 2
7238 fi
7239done
7240 done
7241IFS=$as_save_IFS
7242
7243fi ;;
7244esac
7245fi
7246STRIP=$ac_cv_prog_STRIP
7247if test -n "$STRIP"; then
7248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7249printf "%s\n" "$STRIP" >&6; }
7250else
7251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7252printf "%s\n" "no" >&6; }
7253fi
7254
7255
7256fi
7257if test -z "$ac_cv_prog_STRIP"; then
7258 ac_ct_STRIP=$STRIP
7259 # Extract the first word of "strip", so it can be a program name with args.
7260set dummy strip; ac_word=$2
7261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7262printf %s "checking for $ac_word... " >&6; }
7263if test ${ac_cv_prog_ac_ct_STRIP+y}
7264then :
7265 printf %s "(cached) " >&6
7266else case e in #(
7267 e) if test -n "$ac_ct_STRIP"; then
7268 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7269else
7270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271for as_dir in $PATH
7272do
7273 IFS=$as_save_IFS
7274 case $as_dir in #(((
7275 '') as_dir=./ ;;
7276 */) ;;
7277 *) as_dir=$as_dir/ ;;
7278 esac
7279 for ac_exec_ext in '' $ac_executable_extensions; do
7280 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7281 ac_cv_prog_ac_ct_STRIP="strip"
7282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7283 break 2
7284 fi
7285done
7286 done
7287IFS=$as_save_IFS
7288
7289fi ;;
7290esac
7291fi
7292ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7293if test -n "$ac_ct_STRIP"; then
7294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7295printf "%s\n" "$ac_ct_STRIP" >&6; }
7296else
7297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7298printf "%s\n" "no" >&6; }
7299fi
7300
7301 if test "x$ac_ct_STRIP" = x; then
7302 STRIP=":"
7303 else
7304 case $cross_compiling:$ac_tool_warned in
7305yes:)
7306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7307printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7308ac_tool_warned=yes ;;
7309esac
7310 STRIP=$ac_ct_STRIP
7311 fi
7312else
7313 STRIP="$ac_cv_prog_STRIP"
7314fi
7315
7316test -z "$STRIP" && STRIP=:
7317
7318
7319
7320
7321
7322
7323
7324test -z "$RANLIB" && RANLIB=:
7325
7326
7327
7328
7329
7330
7331# Determine commands to create old-style static archives.
7332old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7333old_postinstall_cmds='chmod 644 $oldlib'
7334old_postuninstall_cmds=
7335
7336if test -n "$RANLIB"; then
7337 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7338 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7339fi
7340
7341case $host_os in
7342 darwin*)
7343 lock_old_archive_extraction=yes ;;
7344 *)
7345 lock_old_archive_extraction=no ;;
7346esac
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386# If no C compiler was specified, use CC.
7387LTCC=${LTCC-"$CC"}
7388
7389# If no C compiler flags were specified, use CFLAGS.
7390LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7391
7392# Allow CC to be a program name with arguments.
7393compiler=$CC
7394
7395
7396# Check for command to grab the raw symbol name followed by C symbol from nm.
7397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7398printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7399if test ${lt_cv_sys_global_symbol_pipe+y}
7400then :
7401 printf %s "(cached) " >&6
7402else case e in #(
7403 e)
7404# These are sane defaults that work on at least a few old systems.
7405# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7406
7407# Character class describing NM global symbol codes.
7408symcode='[BCDEGRST]'
7409
7410# Regexp to match symbols that can be accessed directly from C.
7411sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7412
7413# Define system-specific variables.
7414case $host_os in
7415aix*)
7416 symcode='[BCDT]'
7417 ;;
7418cygwin* | mingw* | windows* | pw32* | cegcc*)
7419 symcode='[ABCDGISTW]'
7420 ;;
7421hpux*)
7422 if test ia64 = "$host_cpu"; then
7423 symcode='[ABCDEGRST]'
7424 fi
7425 ;;
7426irix* | nonstopux*)
7427 symcode='[BCDEGRST]'
7428 ;;
7429osf*)
7430 symcode='[BCDEGQRST]'
7431 ;;
7432solaris*)
7433 symcode='[BCDRT]'
7434 ;;
7435sco3.2v5*)
7436 symcode='[DT]'
7437 ;;
7438sysv4.2uw2*)
7439 symcode='[DT]'
7440 ;;
7441sysv5* | sco5v6* | unixware* | OpenUNIX*)
7442 symcode='[ABDT]'
7443 ;;
7444sysv4)
7445 symcode='[DFNSTU]'
7446 ;;
7447esac
7448
7449# If we're using GNU nm, then use its standard symbol codes.
7450case `$NM -V 2>&1` in
7451*GNU* | *'with BFD'*)
7452 symcode='[ABCDGIRSTW]' ;;
7453esac
7454
7455if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7456 # Gets list of data symbols to import.
7457 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7458 # Adjust the below global symbol transforms to fixup imported variables.
7459 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7460 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7461 lt_c_name_lib_hook="\
7462 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7463 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7464else
7465 # Disable hooks by default.
7466 lt_cv_sys_global_symbol_to_import=
7467 lt_cdecl_hook=
7468 lt_c_name_hook=
7469 lt_c_name_lib_hook=
7470fi
7471
7472# Transform an extracted symbol line into a proper C declaration.
7473# Some systems (esp. on ia64) link data and code symbols differently,
7474# so use this general approach.
7475lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7476$lt_cdecl_hook\
7477" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7478" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7479
7480# Transform an extracted symbol line into symbol name and symbol address
7481lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7482$lt_c_name_hook\
7483" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7484" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7485
7486# Transform an extracted symbol line into symbol name with lib prefix and
7487# symbol address.
7488lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7489$lt_c_name_lib_hook\
7490" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7491" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7492" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7493
7494# Handle CRLF in mingw tool chain
7495opt_cr=
7496case $build_os in
7497mingw* | windows*)
7498 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7499 ;;
7500esac
7501
7502# Try without a prefix underscore, then with it.
7503for ac_symprfx in "" "_"; do
7504
7505 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7506 symxfrm="\\1 $ac_symprfx\\2 \\2"
7507
7508 # Write the raw and C identifiers.
7509 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7510 # Fake it for dumpbin and say T for any non-static function,
7511 # D for any global variable and I for any imported variable.
7512 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7513 # which start with @ or ?.
7514 lt_cv_sys_global_symbol_pipe="$AWK '"\
7515" {last_section=section; section=\$ 3};"\
7516" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7517" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7518" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7519" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7520" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7521" \$ 0!~/External *\|/{next};"\
7522" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7523" {if(hide[section]) next};"\
7524" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7525" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7526" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7527" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7528" ' prfx=^$ac_symprfx"
7529 else
7530 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7531 fi
7532 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7533
7534 # Check to see that the pipe works correctly.
7535 pipe_works=no
7536
7537 rm -f conftest*
7538 cat > conftest.$ac_ext <<_LT_EOF
7539#ifdef __cplusplus
7540extern "C" {
7541#endif
7542char nm_test_var;
7543void nm_test_func(void);
7544void nm_test_func(void){}
7545#ifdef __cplusplus
7546}
7547#endif
7548int main(void){nm_test_var='a';nm_test_func();return(0);}
7549_LT_EOF
7550
7551 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7552 (eval $ac_compile) 2>&5
7553 ac_status=$?
7554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7555 test $ac_status = 0; }; then
7556 # Now try to grab the symbols.
7557 nlist=conftest.nm
7558 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7559 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7560 # Try sorting and uniquifying the output.
7561 if sort "$nlist" | uniq > "$nlist"T; then
7562 mv -f "$nlist"T "$nlist"
7563 else
7564 rm -f "$nlist"T
7565 fi
7566
7567 # Make sure that we snagged all the symbols we need.
7568 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7569 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7570 cat <<_LT_EOF > conftest.$ac_ext
7571/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7572#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7573/* DATA imports from DLLs on WIN32 can't be const, because runtime
7574 relocations are performed -- see ld's documentation on pseudo-relocs. */
7575# define LT_DLSYM_CONST
7576#elif defined __osf__
7577/* This system does not cope well with relocations in const data. */
7578# define LT_DLSYM_CONST
7579#else
7580# define LT_DLSYM_CONST const
7581#endif
7582
7583#ifdef __cplusplus
7584extern "C" {
7585#endif
7586
7587_LT_EOF
7588 # Now generate the symbol file.
7589 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7590
7591 cat <<_LT_EOF >> conftest.$ac_ext
7592
7593/* The mapping between symbol names and symbols. */
7594LT_DLSYM_CONST struct {
7595 const char *name;
7596 void *address;
7597}
7598lt__PROGRAM__LTX_preloaded_symbols[] =
7599{
7600 { "@PROGRAM@", (void *) 0 },
7601_LT_EOF
7602 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7603 cat <<\_LT_EOF >> conftest.$ac_ext
7604 {0, (void *) 0}
7605};
7606
7607/* This works around a problem in FreeBSD linker */
7608#ifdef FREEBSD_WORKAROUND
7609static const void *lt_preloaded_setup() {
7610 return lt__PROGRAM__LTX_preloaded_symbols;
7611}
7612#endif
7613
7614#ifdef __cplusplus
7615}
7616#endif
7617_LT_EOF
7618 # Now try linking the two files.
7619 mv conftest.$ac_objext conftstm.$ac_objext
7620 lt_globsym_save_LIBS=$LIBS
7621 lt_globsym_save_CFLAGS=$CFLAGS
7622 LIBS=conftstm.$ac_objext
7623 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7625 (eval $ac_link) 2>&5
7626 ac_status=$?
7627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7628 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7629 pipe_works=yes
7630 fi
7631 LIBS=$lt_globsym_save_LIBS
7632 CFLAGS=$lt_globsym_save_CFLAGS
7633 else
7634 echo "cannot find nm_test_func in $nlist" >&5
7635 fi
7636 else
7637 echo "cannot find nm_test_var in $nlist" >&5
7638 fi
7639 else
7640 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7641 fi
7642 else
7643 echo "$progname: failed program was:" >&5
7644 cat conftest.$ac_ext >&5
7645 fi
7646 rm -rf conftest* conftst*
7647
7648 # Do not use the global_symbol_pipe unless it works.
7649 if test yes = "$pipe_works"; then
7650 break
7651 else
7652 lt_cv_sys_global_symbol_pipe=
7653 fi
7654done
7655 ;;
7656esac
7657fi
7658
7659if test -z "$lt_cv_sys_global_symbol_pipe"; then
7660 lt_cv_sys_global_symbol_to_cdecl=
7661fi
7662if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7664printf "%s\n" "failed" >&6; }
7665else
7666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7667printf "%s\n" "ok" >&6; }
7668fi
7669
7670# Response file support.
7671if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7672 nm_file_list_spec='@'
7673elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7674 nm_file_list_spec='@'
7675fi
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7714printf %s "checking for sysroot... " >&6; }
7715
7716# Check whether --with-sysroot was given.
7717if test ${with_sysroot+y}
7718then :
7719 withval=$with_sysroot;
7720else case e in #(
7721 e) with_sysroot=no ;;
7722esac
7723fi
7724
7725
7726lt_sysroot=
7727case $with_sysroot in #(
7728 yes)
7729 if test yes = "$GCC"; then
7730 # Trim trailing / since we'll always append absolute paths and we want
7731 # to avoid //, if only for less confusing output for the user.
7732 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7733 fi
7734 ;; #(
7735 /*)
7736 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7737 ;; #(
7738 no|'')
7739 ;; #(
7740 *)
7741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7742printf "%s\n" "$with_sysroot" >&6; }
7743 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7744 ;;
7745esac
7746
7747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7748printf "%s\n" "${lt_sysroot:-no}" >&6; }
7749
7750
7751
7752
7753
7754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7755printf %s "checking for a working dd... " >&6; }
7756if test ${ac_cv_path_lt_DD+y}
7757then :
7758 printf %s "(cached) " >&6
7759else case e in #(
7760 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7761cat conftest.i conftest.i >conftest2.i
7762: ${lt_DD:=$DD}
7763if test -z "$lt_DD"; then
7764 ac_path_lt_DD_found=false
7765 # Loop through the user's path and test for each of PROGNAME-LIST
7766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7767for as_dir in $PATH
7768do
7769 IFS=$as_save_IFS
7770 case $as_dir in #(((
7771 '') as_dir=./ ;;
7772 */) ;;
7773 *) as_dir=$as_dir/ ;;
7774 esac
7775 for ac_prog in dd
7776 do
7777 for ac_exec_ext in '' $ac_executable_extensions; do
7778 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7779 as_fn_executable_p "$ac_path_lt_DD" || continue
7780if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7781 cmp -s conftest.i conftest.out \
7782 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7783fi
7784 $ac_path_lt_DD_found && break 3
7785 done
7786 done
7787 done
7788IFS=$as_save_IFS
7789 if test -z "$ac_cv_path_lt_DD"; then
7790 :
7791 fi
7792else
7793 ac_cv_path_lt_DD=$lt_DD
7794fi
7795
7796rm -f conftest.i conftest2.i conftest.out ;;
7797esac
7798fi
7799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7800printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7801
7802
7803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7804printf %s "checking how to truncate binary pipes... " >&6; }
7805if test ${lt_cv_truncate_bin+y}
7806then :
7807 printf %s "(cached) " >&6
7808else case e in #(
7809 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7810cat conftest.i conftest.i >conftest2.i
7811lt_cv_truncate_bin=
7812if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7813 cmp -s conftest.i conftest.out \
7814 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7815fi
7816rm -f conftest.i conftest2.i conftest.out
7817test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7818esac
7819fi
7820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7821printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7822
7823
7824
7825
7826
7827
7828
7829# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7830func_cc_basename ()
7831{
7832 for cc_temp in $*""; do
7833 case $cc_temp in
7834 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7835 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7836 \-*) ;;
7837 *) break;;
7838 esac
7839 done
7840 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7841}
7842
7843# Check whether --enable-libtool-lock was given.
7844if test ${enable_libtool_lock+y}
7845then :
7846 enableval=$enable_libtool_lock;
7847fi
7848
7849test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7850
7851# Some flags need to be propagated to the compiler or linker for good
7852# libtool support.
7853case $host in
7854ia64-*-hpux*)
7855 # Find out what ABI is being produced by ac_compile, and set mode
7856 # options accordingly.
7857 echo 'int i;' > conftest.$ac_ext
7858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7859 (eval $ac_compile) 2>&5
7860 ac_status=$?
7861 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7862 test $ac_status = 0; }; then
7863 case `$FILECMD conftest.$ac_objext` in
7864 *ELF-32*)
7865 HPUX_IA64_MODE=32
7866 ;;
7867 *ELF-64*)
7868 HPUX_IA64_MODE=64
7869 ;;
7870 esac
7871 fi
7872 rm -rf conftest*
7873 ;;
7874*-*-irix6*)
7875 # Find out what ABI is being produced by ac_compile, and set linker
7876 # options accordingly.
7877 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7878 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7879 (eval $ac_compile) 2>&5
7880 ac_status=$?
7881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7882 test $ac_status = 0; }; then
7883 if test yes = "$lt_cv_prog_gnu_ld"; then
7884 case `$FILECMD conftest.$ac_objext` in
7885 *32-bit*)
7886 LD="${LD-ld} -melf32bsmip"
7887 ;;
7888 *N32*)
7889 LD="${LD-ld} -melf32bmipn32"
7890 ;;
7891 *64-bit*)
7892 LD="${LD-ld} -melf64bmip"
7893 ;;
7894 esac
7895 else
7896 case `$FILECMD conftest.$ac_objext` in
7897 *32-bit*)
7898 LD="${LD-ld} -32"
7899 ;;
7900 *N32*)
7901 LD="${LD-ld} -n32"
7902 ;;
7903 *64-bit*)
7904 LD="${LD-ld} -64"
7905 ;;
7906 esac
7907 fi
7908 fi
7909 rm -rf conftest*
7910 ;;
7911
7912mips64*-*linux*)
7913 # Find out what ABI is being produced by ac_compile, and set linker
7914 # options accordingly.
7915 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7917 (eval $ac_compile) 2>&5
7918 ac_status=$?
7919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7920 test $ac_status = 0; }; then
7921 emul=elf
7922 case `$FILECMD conftest.$ac_objext` in
7923 *32-bit*)
7924 emul="${emul}32"
7925 ;;
7926 *64-bit*)
7927 emul="${emul}64"
7928 ;;
7929 esac
7930 case `$FILECMD conftest.$ac_objext` in
7931 *MSB*)
7932 emul="${emul}btsmip"
7933 ;;
7934 *LSB*)
7935 emul="${emul}ltsmip"
7936 ;;
7937 esac
7938 case `$FILECMD conftest.$ac_objext` in
7939 *N32*)
7940 emul="${emul}n32"
7941 ;;
7942 esac
7943 LD="${LD-ld} -m $emul"
7944 fi
7945 rm -rf conftest*
7946 ;;
7947
7948x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7949s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7950 # Find out what ABI is being produced by ac_compile, and set linker
7951 # options accordingly. Note that the listed cases only cover the
7952 # situations where additional linker options are needed (such as when
7953 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7954 # vice versa); the common cases where no linker options are needed do
7955 # not appear in the list.
7956 echo 'int i;' > conftest.$ac_ext
7957 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7958 (eval $ac_compile) 2>&5
7959 ac_status=$?
7960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7961 test $ac_status = 0; }; then
7962 case `$FILECMD conftest.o` in
7963 *32-bit*)
7964 case $host in
7965 x86_64-*kfreebsd*-gnu)
7966 LD="${LD-ld} -m elf_i386_fbsd"
7967 ;;
7968 x86_64-*linux*|x86_64-gnu*)
7969 case `$FILECMD conftest.o` in
7970 *x86-64*)
7971 LD="${LD-ld} -m elf32_x86_64"
7972 ;;
7973 *)
7974 LD="${LD-ld} -m elf_i386"
7975 ;;
7976 esac
7977 ;;
7978 powerpc64le-*linux*)
7979 LD="${LD-ld} -m elf32lppclinux"
7980 ;;
7981 powerpc64-*linux*)
7982 LD="${LD-ld} -m elf32ppclinux"
7983 ;;
7984 s390x-*linux*)
7985 LD="${LD-ld} -m elf_s390"
7986 ;;
7987 sparc64-*linux*)
7988 LD="${LD-ld} -m elf32_sparc"
7989 ;;
7990 esac
7991 ;;
7992 *64-bit*)
7993 case $host in
7994 x86_64-*kfreebsd*-gnu)
7995 LD="${LD-ld} -m elf_x86_64_fbsd"
7996 ;;
7997 x86_64-*linux*|x86_64-gnu*)
7998 LD="${LD-ld} -m elf_x86_64"
7999 ;;
8000 powerpcle-*linux*)
8001 LD="${LD-ld} -m elf64lppc"
8002 ;;
8003 powerpc-*linux*)
8004 LD="${LD-ld} -m elf64ppc"
8005 ;;
8006 s390*-*linux*|s390*-*tpf*)
8007 LD="${LD-ld} -m elf64_s390"
8008 ;;
8009 sparc*-*linux*)
8010 LD="${LD-ld} -m elf64_sparc"
8011 ;;
8012 esac
8013 ;;
8014 esac
8015 fi
8016 rm -rf conftest*
8017 ;;
8018
8019*-*-sco3.2v5*)
8020 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8021 SAVE_CFLAGS=$CFLAGS
8022 CFLAGS="$CFLAGS -belf"
8023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8024printf %s "checking whether the C compiler needs -belf... " >&6; }
8025if test ${lt_cv_cc_needs_belf+y}
8026then :
8027 printf %s "(cached) " >&6
8028else case e in #(
8029 e) ac_ext=c
8030ac_cpp='$CPP $CPPFLAGS'
8031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8033ac_compiler_gnu=$ac_cv_c_compiler_gnu
8034
8035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8036/* end confdefs.h. */
8037
8038int
8039main (void)
8040{
8041
8042 ;
8043 return 0;
8044}
8045_ACEOF
8046if ac_fn_c_try_link "$LINENO"
8047then :
8048 lt_cv_cc_needs_belf=yes
8049else case e in #(
8050 e) lt_cv_cc_needs_belf=no ;;
8051esac
8052fi
8053rm -f core conftest.err conftest.$ac_objext conftest.beam \
8054 conftest$ac_exeext conftest.$ac_ext
8055 ac_ext=c
8056ac_cpp='$CPP $CPPFLAGS'
8057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8059ac_compiler_gnu=$ac_cv_c_compiler_gnu
8060 ;;
8061esac
8062fi
8063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8064printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8065 if test yes != "$lt_cv_cc_needs_belf"; then
8066 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8067 CFLAGS=$SAVE_CFLAGS
8068 fi
8069 ;;
8070*-*solaris*)
8071 # Find out what ABI is being produced by ac_compile, and set linker
8072 # options accordingly.
8073 echo 'int i;' > conftest.$ac_ext
8074 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8075 (eval $ac_compile) 2>&5
8076 ac_status=$?
8077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8078 test $ac_status = 0; }; then
8079 case `$FILECMD conftest.o` in
8080 *64-bit*)
8081 case $lt_cv_prog_gnu_ld in
8082 yes*)
8083 case $host in
8084 i?86-*-solaris*|x86_64-*-solaris*)
8085 LD="${LD-ld} -m elf_x86_64"
8086 ;;
8087 sparc*-*-solaris*)
8088 LD="${LD-ld} -m elf64_sparc"
8089 ;;
8090 esac
8091 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8092 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8093 LD=${LD-ld}_sol2
8094 fi
8095 ;;
8096 *)
8097 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8098 LD="${LD-ld} -64"
8099 fi
8100 ;;
8101 esac
8102 ;;
8103 esac
8104 fi
8105 rm -rf conftest*
8106 ;;
8107esac
8108
8109need_locks=$enable_libtool_lock
8110
8111if test -n "$ac_tool_prefix"; then
8112 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8113set dummy ${ac_tool_prefix}mt; ac_word=$2
8114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8115printf %s "checking for $ac_word... " >&6; }
8116if test ${ac_cv_prog_MANIFEST_TOOL+y}
8117then :
8118 printf %s "(cached) " >&6
8119else case e in #(
8120 e) if test -n "$MANIFEST_TOOL"; then
8121 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8122else
8123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124for as_dir in $PATH
8125do
8126 IFS=$as_save_IFS
8127 case $as_dir in #(((
8128 '') as_dir=./ ;;
8129 */) ;;
8130 *) as_dir=$as_dir/ ;;
8131 esac
8132 for ac_exec_ext in '' $ac_executable_extensions; do
8133 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8134 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8136 break 2
8137 fi
8138done
8139 done
8140IFS=$as_save_IFS
8141
8142fi ;;
8143esac
8144fi
8145MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8146if test -n "$MANIFEST_TOOL"; then
8147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8148printf "%s\n" "$MANIFEST_TOOL" >&6; }
8149else
8150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8151printf "%s\n" "no" >&6; }
8152fi
8153
8154
8155fi
8156if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8157 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8158 # Extract the first word of "mt", so it can be a program name with args.
8159set dummy mt; ac_word=$2
8160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8161printf %s "checking for $ac_word... " >&6; }
8162if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8163then :
8164 printf %s "(cached) " >&6
8165else case e in #(
8166 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8167 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8168else
8169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8170for as_dir in $PATH
8171do
8172 IFS=$as_save_IFS
8173 case $as_dir in #(((
8174 '') as_dir=./ ;;
8175 */) ;;
8176 *) as_dir=$as_dir/ ;;
8177 esac
8178 for ac_exec_ext in '' $ac_executable_extensions; do
8179 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8180 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8182 break 2
8183 fi
8184done
8185 done
8186IFS=$as_save_IFS
8187
8188fi ;;
8189esac
8190fi
8191ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8192if test -n "$ac_ct_MANIFEST_TOOL"; then
8193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8194printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8195else
8196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197printf "%s\n" "no" >&6; }
8198fi
8199
8200 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8201 MANIFEST_TOOL=":"
8202 else
8203 case $cross_compiling:$ac_tool_warned in
8204yes:)
8205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8206printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8207ac_tool_warned=yes ;;
8208esac
8209 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8210 fi
8211else
8212 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8213fi
8214
8215test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8217printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8218if test ${lt_cv_path_manifest_tool+y}
8219then :
8220 printf %s "(cached) " >&6
8221else case e in #(
8222 e) lt_cv_path_manifest_tool=no
8223 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8224 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8225 cat conftest.err >&5
8226 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8227 lt_cv_path_manifest_tool=yes
8228 fi
8229 rm -f conftest* ;;
8230esac
8231fi
8232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8233printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8234if test yes != "$lt_cv_path_manifest_tool"; then
8235 MANIFEST_TOOL=:
8236fi
8237
8238
8239
8240
8241
8242
8243 case $host_os in
8244 rhapsody* | darwin*)
8245 if test -n "$ac_tool_prefix"; then
8246 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8247set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8249printf %s "checking for $ac_word... " >&6; }
8250if test ${ac_cv_prog_DSYMUTIL+y}
8251then :
8252 printf %s "(cached) " >&6
8253else case e in #(
8254 e) if test -n "$DSYMUTIL"; then
8255 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8256else
8257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8258for as_dir in $PATH
8259do
8260 IFS=$as_save_IFS
8261 case $as_dir in #(((
8262 '') as_dir=./ ;;
8263 */) ;;
8264 *) as_dir=$as_dir/ ;;
8265 esac
8266 for ac_exec_ext in '' $ac_executable_extensions; do
8267 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8268 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8269 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8270 break 2
8271 fi
8272done
8273 done
8274IFS=$as_save_IFS
8275
8276fi ;;
8277esac
8278fi
8279DSYMUTIL=$ac_cv_prog_DSYMUTIL
8280if test -n "$DSYMUTIL"; then
8281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8282printf "%s\n" "$DSYMUTIL" >&6; }
8283else
8284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8285printf "%s\n" "no" >&6; }
8286fi
8287
8288
8289fi
8290if test -z "$ac_cv_prog_DSYMUTIL"; then
8291 ac_ct_DSYMUTIL=$DSYMUTIL
8292 # Extract the first word of "dsymutil", so it can be a program name with args.
8293set dummy dsymutil; ac_word=$2
8294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8295printf %s "checking for $ac_word... " >&6; }
8296if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8297then :
8298 printf %s "(cached) " >&6
8299else case e in #(
8300 e) if test -n "$ac_ct_DSYMUTIL"; then
8301 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8302else
8303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8304for as_dir in $PATH
8305do
8306 IFS=$as_save_IFS
8307 case $as_dir in #(((
8308 '') as_dir=./ ;;
8309 */) ;;
8310 *) as_dir=$as_dir/ ;;
8311 esac
8312 for ac_exec_ext in '' $ac_executable_extensions; do
8313 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8314 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8316 break 2
8317 fi
8318done
8319 done
8320IFS=$as_save_IFS
8321
8322fi ;;
8323esac
8324fi
8325ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8326if test -n "$ac_ct_DSYMUTIL"; then
8327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8328printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8329else
8330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331printf "%s\n" "no" >&6; }
8332fi
8333
8334 if test "x$ac_ct_DSYMUTIL" = x; then
8335 DSYMUTIL=":"
8336 else
8337 case $cross_compiling:$ac_tool_warned in
8338yes:)
8339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8340printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8341ac_tool_warned=yes ;;
8342esac
8343 DSYMUTIL=$ac_ct_DSYMUTIL
8344 fi
8345else
8346 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8347fi
8348
8349 if test -n "$ac_tool_prefix"; then
8350 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8351set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8353printf %s "checking for $ac_word... " >&6; }
8354if test ${ac_cv_prog_NMEDIT+y}
8355then :
8356 printf %s "(cached) " >&6
8357else case e in #(
8358 e) if test -n "$NMEDIT"; then
8359 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8360else
8361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362for as_dir in $PATH
8363do
8364 IFS=$as_save_IFS
8365 case $as_dir in #(((
8366 '') as_dir=./ ;;
8367 */) ;;
8368 *) as_dir=$as_dir/ ;;
8369 esac
8370 for ac_exec_ext in '' $ac_executable_extensions; do
8371 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8372 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8374 break 2
8375 fi
8376done
8377 done
8378IFS=$as_save_IFS
8379
8380fi ;;
8381esac
8382fi
8383NMEDIT=$ac_cv_prog_NMEDIT
8384if test -n "$NMEDIT"; then
8385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8386printf "%s\n" "$NMEDIT" >&6; }
8387else
8388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389printf "%s\n" "no" >&6; }
8390fi
8391
8392
8393fi
8394if test -z "$ac_cv_prog_NMEDIT"; then
8395 ac_ct_NMEDIT=$NMEDIT
8396 # Extract the first word of "nmedit", so it can be a program name with args.
8397set dummy nmedit; ac_word=$2
8398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8399printf %s "checking for $ac_word... " >&6; }
8400if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8401then :
8402 printf %s "(cached) " >&6
8403else case e in #(
8404 e) if test -n "$ac_ct_NMEDIT"; then
8405 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8406else
8407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8408for as_dir in $PATH
8409do
8410 IFS=$as_save_IFS
8411 case $as_dir in #(((
8412 '') as_dir=./ ;;
8413 */) ;;
8414 *) as_dir=$as_dir/ ;;
8415 esac
8416 for ac_exec_ext in '' $ac_executable_extensions; do
8417 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8418 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8419 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8420 break 2
8421 fi
8422done
8423 done
8424IFS=$as_save_IFS
8425
8426fi ;;
8427esac
8428fi
8429ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8430if test -n "$ac_ct_NMEDIT"; then
8431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8432printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8433else
8434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435printf "%s\n" "no" >&6; }
8436fi
8437
8438 if test "x$ac_ct_NMEDIT" = x; then
8439 NMEDIT=":"
8440 else
8441 case $cross_compiling:$ac_tool_warned in
8442yes:)
8443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8444printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8445ac_tool_warned=yes ;;
8446esac
8447 NMEDIT=$ac_ct_NMEDIT
8448 fi
8449else
8450 NMEDIT="$ac_cv_prog_NMEDIT"
8451fi
8452
8453 if test -n "$ac_tool_prefix"; then
8454 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8455set dummy ${ac_tool_prefix}lipo; ac_word=$2
8456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8457printf %s "checking for $ac_word... " >&6; }
8458if test ${ac_cv_prog_LIPO+y}
8459then :
8460 printf %s "(cached) " >&6
8461else case e in #(
8462 e) if test -n "$LIPO"; then
8463 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8464else
8465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8466for as_dir in $PATH
8467do
8468 IFS=$as_save_IFS
8469 case $as_dir in #(((
8470 '') as_dir=./ ;;
8471 */) ;;
8472 *) as_dir=$as_dir/ ;;
8473 esac
8474 for ac_exec_ext in '' $ac_executable_extensions; do
8475 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8476 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8477 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8478 break 2
8479 fi
8480done
8481 done
8482IFS=$as_save_IFS
8483
8484fi ;;
8485esac
8486fi
8487LIPO=$ac_cv_prog_LIPO
8488if test -n "$LIPO"; then
8489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8490printf "%s\n" "$LIPO" >&6; }
8491else
8492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8493printf "%s\n" "no" >&6; }
8494fi
8495
8496
8497fi
8498if test -z "$ac_cv_prog_LIPO"; then
8499 ac_ct_LIPO=$LIPO
8500 # Extract the first word of "lipo", so it can be a program name with args.
8501set dummy lipo; ac_word=$2
8502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8503printf %s "checking for $ac_word... " >&6; }
8504if test ${ac_cv_prog_ac_ct_LIPO+y}
8505then :
8506 printf %s "(cached) " >&6
8507else case e in #(
8508 e) if test -n "$ac_ct_LIPO"; then
8509 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8510else
8511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8512for as_dir in $PATH
8513do
8514 IFS=$as_save_IFS
8515 case $as_dir in #(((
8516 '') as_dir=./ ;;
8517 */) ;;
8518 *) as_dir=$as_dir/ ;;
8519 esac
8520 for ac_exec_ext in '' $ac_executable_extensions; do
8521 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8522 ac_cv_prog_ac_ct_LIPO="lipo"
8523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8524 break 2
8525 fi
8526done
8527 done
8528IFS=$as_save_IFS
8529
8530fi ;;
8531esac
8532fi
8533ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8534if test -n "$ac_ct_LIPO"; then
8535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8536printf "%s\n" "$ac_ct_LIPO" >&6; }
8537else
8538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8539printf "%s\n" "no" >&6; }
8540fi
8541
8542 if test "x$ac_ct_LIPO" = x; then
8543 LIPO=":"
8544 else
8545 case $cross_compiling:$ac_tool_warned in
8546yes:)
8547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8548printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8549ac_tool_warned=yes ;;
8550esac
8551 LIPO=$ac_ct_LIPO
8552 fi
8553else
8554 LIPO="$ac_cv_prog_LIPO"
8555fi
8556
8557 if test -n "$ac_tool_prefix"; then
8558 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8559set dummy ${ac_tool_prefix}otool; ac_word=$2
8560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8561printf %s "checking for $ac_word... " >&6; }
8562if test ${ac_cv_prog_OTOOL+y}
8563then :
8564 printf %s "(cached) " >&6
8565else case e in #(
8566 e) if test -n "$OTOOL"; then
8567 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8568else
8569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8570for as_dir in $PATH
8571do
8572 IFS=$as_save_IFS
8573 case $as_dir in #(((
8574 '') as_dir=./ ;;
8575 */) ;;
8576 *) as_dir=$as_dir/ ;;
8577 esac
8578 for ac_exec_ext in '' $ac_executable_extensions; do
8579 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8580 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8582 break 2
8583 fi
8584done
8585 done
8586IFS=$as_save_IFS
8587
8588fi ;;
8589esac
8590fi
8591OTOOL=$ac_cv_prog_OTOOL
8592if test -n "$OTOOL"; then
8593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8594printf "%s\n" "$OTOOL" >&6; }
8595else
8596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8597printf "%s\n" "no" >&6; }
8598fi
8599
8600
8601fi
8602if test -z "$ac_cv_prog_OTOOL"; then
8603 ac_ct_OTOOL=$OTOOL
8604 # Extract the first word of "otool", so it can be a program name with args.
8605set dummy otool; ac_word=$2
8606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8607printf %s "checking for $ac_word... " >&6; }
8608if test ${ac_cv_prog_ac_ct_OTOOL+y}
8609then :
8610 printf %s "(cached) " >&6
8611else case e in #(
8612 e) if test -n "$ac_ct_OTOOL"; then
8613 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8614else
8615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8616for as_dir in $PATH
8617do
8618 IFS=$as_save_IFS
8619 case $as_dir in #(((
8620 '') as_dir=./ ;;
8621 */) ;;
8622 *) as_dir=$as_dir/ ;;
8623 esac
8624 for ac_exec_ext in '' $ac_executable_extensions; do
8625 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8626 ac_cv_prog_ac_ct_OTOOL="otool"
8627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8628 break 2
8629 fi
8630done
8631 done
8632IFS=$as_save_IFS
8633
8634fi ;;
8635esac
8636fi
8637ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8638if test -n "$ac_ct_OTOOL"; then
8639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8640printf "%s\n" "$ac_ct_OTOOL" >&6; }
8641else
8642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8643printf "%s\n" "no" >&6; }
8644fi
8645
8646 if test "x$ac_ct_OTOOL" = x; then
8647 OTOOL=":"
8648 else
8649 case $cross_compiling:$ac_tool_warned in
8650yes:)
8651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8652printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8653ac_tool_warned=yes ;;
8654esac
8655 OTOOL=$ac_ct_OTOOL
8656 fi
8657else
8658 OTOOL="$ac_cv_prog_OTOOL"
8659fi
8660
8661 if test -n "$ac_tool_prefix"; then
8662 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8663set dummy ${ac_tool_prefix}otool64; ac_word=$2
8664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8665printf %s "checking for $ac_word... " >&6; }
8666if test ${ac_cv_prog_OTOOL64+y}
8667then :
8668 printf %s "(cached) " >&6
8669else case e in #(
8670 e) if test -n "$OTOOL64"; then
8671 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8672else
8673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8674for as_dir in $PATH
8675do
8676 IFS=$as_save_IFS
8677 case $as_dir in #(((
8678 '') as_dir=./ ;;
8679 */) ;;
8680 *) as_dir=$as_dir/ ;;
8681 esac
8682 for ac_exec_ext in '' $ac_executable_extensions; do
8683 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8684 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8686 break 2
8687 fi
8688done
8689 done
8690IFS=$as_save_IFS
8691
8692fi ;;
8693esac
8694fi
8695OTOOL64=$ac_cv_prog_OTOOL64
8696if test -n "$OTOOL64"; then
8697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8698printf "%s\n" "$OTOOL64" >&6; }
8699else
8700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8701printf "%s\n" "no" >&6; }
8702fi
8703
8704
8705fi
8706if test -z "$ac_cv_prog_OTOOL64"; then
8707 ac_ct_OTOOL64=$OTOOL64
8708 # Extract the first word of "otool64", so it can be a program name with args.
8709set dummy otool64; ac_word=$2
8710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8711printf %s "checking for $ac_word... " >&6; }
8712if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8713then :
8714 printf %s "(cached) " >&6
8715else case e in #(
8716 e) if test -n "$ac_ct_OTOOL64"; then
8717 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8718else
8719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8720for as_dir in $PATH
8721do
8722 IFS=$as_save_IFS
8723 case $as_dir in #(((
8724 '') as_dir=./ ;;
8725 */) ;;
8726 *) as_dir=$as_dir/ ;;
8727 esac
8728 for ac_exec_ext in '' $ac_executable_extensions; do
8729 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8730 ac_cv_prog_ac_ct_OTOOL64="otool64"
8731 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8732 break 2
8733 fi
8734done
8735 done
8736IFS=$as_save_IFS
8737
8738fi ;;
8739esac
8740fi
8741ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8742if test -n "$ac_ct_OTOOL64"; then
8743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8744printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8745else
8746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8747printf "%s\n" "no" >&6; }
8748fi
8749
8750 if test "x$ac_ct_OTOOL64" = x; then
8751 OTOOL64=":"
8752 else
8753 case $cross_compiling:$ac_tool_warned in
8754yes:)
8755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8756printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8757ac_tool_warned=yes ;;
8758esac
8759 OTOOL64=$ac_ct_OTOOL64
8760 fi
8761else
8762 OTOOL64="$ac_cv_prog_OTOOL64"
8763fi
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8792printf %s "checking for -single_module linker flag... " >&6; }
8793if test ${lt_cv_apple_cc_single_mod+y}
8794then :
8795 printf %s "(cached) " >&6
8796else case e in #(
8797 e) lt_cv_apple_cc_single_mod=no
8798 if test -z "$LT_MULTI_MODULE"; then
8799 # By default we will add the -single_module flag. You can override
8800 # by either setting the environment variable LT_MULTI_MODULE
8801 # non-empty at configure time, or by adding -multi_module to the
8802 # link flags.
8803 rm -rf libconftest.dylib*
8804 echo "int foo(void){return 1;}" > conftest.c
8805 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8806-dynamiclib -Wl,-single_module conftest.c" >&5
8807 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8808 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8809 _lt_result=$?
8810 # If there is a non-empty error log, and "single_module"
8811 # appears in it, assume the flag caused a linker warning
8812 if test -s conftest.err && $GREP single_module conftest.err; then
8813 cat conftest.err >&5
8814 # Otherwise, if the output was created with a 0 exit code from
8815 # the compiler, it worked.
8816 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8817 lt_cv_apple_cc_single_mod=yes
8818 else
8819 cat conftest.err >&5
8820 fi
8821 rm -rf libconftest.dylib*
8822 rm -f conftest.*
8823 fi ;;
8824esac
8825fi
8826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8827printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8828
8829 # Feature test to disable chained fixups since it is not
8830 # compatible with '-undefined dynamic_lookup'
8831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8832printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8833if test ${lt_cv_support_no_fixup_chains+y}
8834then :
8835 printf %s "(cached) " >&6
8836else case e in #(
8837 e) save_LDFLAGS=$LDFLAGS
8838 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8840/* end confdefs.h. */
8841
8842int
8843main (void)
8844{
8845
8846 ;
8847 return 0;
8848}
8849_ACEOF
8850if ac_fn_c_try_link "$LINENO"
8851then :
8852 lt_cv_support_no_fixup_chains=yes
8853else case e in #(
8854 e) lt_cv_support_no_fixup_chains=no
8855 ;;
8856esac
8857fi
8858rm -f core conftest.err conftest.$ac_objext conftest.beam \
8859 conftest$ac_exeext conftest.$ac_ext
8860 LDFLAGS=$save_LDFLAGS
8861
8862 ;;
8863esac
8864fi
8865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8866printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8867
8868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8869printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8870if test ${lt_cv_ld_exported_symbols_list+y}
8871then :
8872 printf %s "(cached) " >&6
8873else case e in #(
8874 e) lt_cv_ld_exported_symbols_list=no
8875 save_LDFLAGS=$LDFLAGS
8876 echo "_main" > conftest.sym
8877 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8879/* end confdefs.h. */
8880
8881int
8882main (void)
8883{
8884
8885 ;
8886 return 0;
8887}
8888_ACEOF
8889if ac_fn_c_try_link "$LINENO"
8890then :
8891 lt_cv_ld_exported_symbols_list=yes
8892else case e in #(
8893 e) lt_cv_ld_exported_symbols_list=no ;;
8894esac
8895fi
8896rm -f core conftest.err conftest.$ac_objext conftest.beam \
8897 conftest$ac_exeext conftest.$ac_ext
8898 LDFLAGS=$save_LDFLAGS
8899 ;;
8900esac
8901fi
8902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8903printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8904
8905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8906printf %s "checking for -force_load linker flag... " >&6; }
8907if test ${lt_cv_ld_force_load+y}
8908then :
8909 printf %s "(cached) " >&6
8910else case e in #(
8911 e) lt_cv_ld_force_load=no
8912 cat > conftest.c << _LT_EOF
8913int forced_loaded() { return 2;}
8914_LT_EOF
8915 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8916 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8917 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8918 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8919 echo "$RANLIB libconftest.a" >&5
8920 $RANLIB libconftest.a 2>&5
8921 cat > conftest.c << _LT_EOF
8922int main(void) { return 0;}
8923_LT_EOF
8924 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8925 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8926 _lt_result=$?
8927 if test -s conftest.err && $GREP force_load conftest.err; then
8928 cat conftest.err >&5
8929 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8930 lt_cv_ld_force_load=yes
8931 else
8932 cat conftest.err >&5
8933 fi
8934 rm -f conftest.err libconftest.a conftest conftest.c
8935 rm -rf conftest.dSYM
8936 ;;
8937esac
8938fi
8939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8940printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8941 case $host_os in
8942 rhapsody* | darwin1.[012])
8943 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8944 darwin1.*)
8945 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8946 darwin*)
8947 case $MACOSX_DEPLOYMENT_TARGET,$host in
8948 10.[012],*|,*powerpc*-darwin[5-8]*)
8949 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8950 *)
8951 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8952 if test yes = "$lt_cv_support_no_fixup_chains"; then
8953 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
8954 fi
8955 ;;
8956 esac
8957 ;;
8958 esac
8959 if test yes = "$lt_cv_apple_cc_single_mod"; then
8960 _lt_dar_single_mod='$single_module'
8961 fi
8962 _lt_dar_needs_single_mod=no
8963 case $host_os in
8964 rhapsody* | darwin1.*)
8965 _lt_dar_needs_single_mod=yes ;;
8966 darwin*)
8967 # When targeting Mac OS X 10.4 (darwin 8) or later,
8968 # -single_module is the default and -multi_module is unsupported.
8969 # The toolchain on macOS 10.14 (darwin 18) and later cannot
8970 # target any OS version that needs -single_module.
8971 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8972 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8973 _lt_dar_needs_single_mod=yes ;;
8974 esac
8975 ;;
8976 esac
8977 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8978 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8979 else
8980 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8981 fi
8982 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8983 _lt_dsymutil='~$DSYMUTIL $lib || :'
8984 else
8985 _lt_dsymutil=
8986 fi
8987 ;;
8988 esac
8989
8990# func_munge_path_list VARIABLE PATH
8991# -----------------------------------
8992# VARIABLE is name of variable containing _space_ separated list of
8993# directories to be munged by the contents of PATH, which is string
8994# having a format:
8995# "DIR[:DIR]:"
8996# string "DIR[ DIR]" will be prepended to VARIABLE
8997# ":DIR[:DIR]"
8998# string "DIR[ DIR]" will be appended to VARIABLE
8999# "DIRP[:DIRP]::[DIRA:]DIRA"
9000# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9001# "DIRA[ DIRA]" will be appended to VARIABLE
9002# "DIR[:DIR]"
9003# VARIABLE will be replaced by "DIR[ DIR]"
9004func_munge_path_list ()
9005{
9006 case x$2 in
9007 x)
9008 ;;
9009 *:)
9010 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9011 ;;
9012 x:*)
9013 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9014 ;;
9015 *::*)
9016 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9017 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9018 ;;
9019 *)
9020 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9021 ;;
9022 esac
9023}
9024
9025ac_header= ac_cache=
9026for ac_item in $ac_header_c_list
9027do
9028 if test $ac_cache; then
9029 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
9030 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
9031 printf "%s\n" "#define $ac_item 1" >> confdefs.h
9032 fi
9033 ac_header= ac_cache=
9034 elif test $ac_header; then
9035 ac_cache=$ac_item
9036 else
9037 ac_header=$ac_item
9038 fi
9039done
9040
9041
9042
9043
9044
9045
9046
9047
9048if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
9049then :
9050
9051printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
9052
9053fi
9054ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9055"
9056if test "x$ac_cv_header_dlfcn_h" = xyes
9057then :
9058 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9059
9060fi
9061
9062
9063
9064
9065
9066# Set options
9067enable_win32_dll=yes
9068
9069case $host in
9070*-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
9071 if test -n "$ac_tool_prefix"; then
9072 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9073set dummy ${ac_tool_prefix}as; ac_word=$2
9074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9075printf %s "checking for $ac_word... " >&6; }
9076if test ${ac_cv_prog_AS+y}
9077then :
9078 printf %s "(cached) " >&6
9079else case e in #(
9080 e) if test -n "$AS"; then
9081 ac_cv_prog_AS="$AS" # Let the user override the test.
9082else
9083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9084for as_dir in $PATH
9085do
9086 IFS=$as_save_IFS
9087 case $as_dir in #(((
9088 '') as_dir=./ ;;
9089 */) ;;
9090 *) as_dir=$as_dir/ ;;
9091 esac
9092 for ac_exec_ext in '' $ac_executable_extensions; do
9093 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9094 ac_cv_prog_AS="${ac_tool_prefix}as"
9095 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9096 break 2
9097 fi
9098done
9099 done
9100IFS=$as_save_IFS
9101
9102fi ;;
9103esac
9104fi
9105AS=$ac_cv_prog_AS
9106if test -n "$AS"; then
9107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9108printf "%s\n" "$AS" >&6; }
9109else
9110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9111printf "%s\n" "no" >&6; }
9112fi
9113
9114
9115fi
9116if test -z "$ac_cv_prog_AS"; then
9117 ac_ct_AS=$AS
9118 # Extract the first word of "as", so it can be a program name with args.
9119set dummy as; ac_word=$2
9120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9121printf %s "checking for $ac_word... " >&6; }
9122if test ${ac_cv_prog_ac_ct_AS+y}
9123then :
9124 printf %s "(cached) " >&6
9125else case e in #(
9126 e) if test -n "$ac_ct_AS"; then
9127 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9128else
9129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9130for as_dir in $PATH
9131do
9132 IFS=$as_save_IFS
9133 case $as_dir in #(((
9134 '') as_dir=./ ;;
9135 */) ;;
9136 *) as_dir=$as_dir/ ;;
9137 esac
9138 for ac_exec_ext in '' $ac_executable_extensions; do
9139 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9140 ac_cv_prog_ac_ct_AS="as"
9141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9142 break 2
9143 fi
9144done
9145 done
9146IFS=$as_save_IFS
9147
9148fi ;;
9149esac
9150fi
9151ac_ct_AS=$ac_cv_prog_ac_ct_AS
9152if test -n "$ac_ct_AS"; then
9153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9154printf "%s\n" "$ac_ct_AS" >&6; }
9155else
9156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9157printf "%s\n" "no" >&6; }
9158fi
9159
9160 if test "x$ac_ct_AS" = x; then
9161 AS="false"
9162 else
9163 case $cross_compiling:$ac_tool_warned in
9164yes:)
9165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9166printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9167ac_tool_warned=yes ;;
9168esac
9169 AS=$ac_ct_AS
9170 fi
9171else
9172 AS="$ac_cv_prog_AS"
9173fi
9174
9175 if test -n "$ac_tool_prefix"; then
9176 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9177set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9179printf %s "checking for $ac_word... " >&6; }
9180if test ${ac_cv_prog_DLLTOOL+y}
9181then :
9182 printf %s "(cached) " >&6
9183else case e in #(
9184 e) if test -n "$DLLTOOL"; then
9185 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9186else
9187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9188for as_dir in $PATH
9189do
9190 IFS=$as_save_IFS
9191 case $as_dir in #(((
9192 '') as_dir=./ ;;
9193 */) ;;
9194 *) as_dir=$as_dir/ ;;
9195 esac
9196 for ac_exec_ext in '' $ac_executable_extensions; do
9197 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9198 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9199 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9200 break 2
9201 fi
9202done
9203 done
9204IFS=$as_save_IFS
9205
9206fi ;;
9207esac
9208fi
9209DLLTOOL=$ac_cv_prog_DLLTOOL
9210if test -n "$DLLTOOL"; then
9211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9212printf "%s\n" "$DLLTOOL" >&6; }
9213else
9214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9215printf "%s\n" "no" >&6; }
9216fi
9217
9218
9219fi
9220if test -z "$ac_cv_prog_DLLTOOL"; then
9221 ac_ct_DLLTOOL=$DLLTOOL
9222 # Extract the first word of "dlltool", so it can be a program name with args.
9223set dummy dlltool; ac_word=$2
9224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9225printf %s "checking for $ac_word... " >&6; }
9226if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9227then :
9228 printf %s "(cached) " >&6
9229else case e in #(
9230 e) if test -n "$ac_ct_DLLTOOL"; then
9231 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9232else
9233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9234for as_dir in $PATH
9235do
9236 IFS=$as_save_IFS
9237 case $as_dir in #(((
9238 '') as_dir=./ ;;
9239 */) ;;
9240 *) as_dir=$as_dir/ ;;
9241 esac
9242 for ac_exec_ext in '' $ac_executable_extensions; do
9243 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9244 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9246 break 2
9247 fi
9248done
9249 done
9250IFS=$as_save_IFS
9251
9252fi ;;
9253esac
9254fi
9255ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9256if test -n "$ac_ct_DLLTOOL"; then
9257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9258printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9259else
9260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9261printf "%s\n" "no" >&6; }
9262fi
9263
9264 if test "x$ac_ct_DLLTOOL" = x; then
9265 DLLTOOL="false"
9266 else
9267 case $cross_compiling:$ac_tool_warned in
9268yes:)
9269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9270printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9271ac_tool_warned=yes ;;
9272esac
9273 DLLTOOL=$ac_ct_DLLTOOL
9274 fi
9275else
9276 DLLTOOL="$ac_cv_prog_DLLTOOL"
9277fi
9278
9279 if test -n "$ac_tool_prefix"; then
9280 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9281set dummy ${ac_tool_prefix}objdump; ac_word=$2
9282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9283printf %s "checking for $ac_word... " >&6; }
9284if test ${ac_cv_prog_OBJDUMP+y}
9285then :
9286 printf %s "(cached) " >&6
9287else case e in #(
9288 e) if test -n "$OBJDUMP"; then
9289 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9290else
9291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9292for as_dir in $PATH
9293do
9294 IFS=$as_save_IFS
9295 case $as_dir in #(((
9296 '') as_dir=./ ;;
9297 */) ;;
9298 *) as_dir=$as_dir/ ;;
9299 esac
9300 for ac_exec_ext in '' $ac_executable_extensions; do
9301 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9302 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9304 break 2
9305 fi
9306done
9307 done
9308IFS=$as_save_IFS
9309
9310fi ;;
9311esac
9312fi
9313OBJDUMP=$ac_cv_prog_OBJDUMP
9314if test -n "$OBJDUMP"; then
9315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9316printf "%s\n" "$OBJDUMP" >&6; }
9317else
9318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9319printf "%s\n" "no" >&6; }
9320fi
9321
9322
9323fi
9324if test -z "$ac_cv_prog_OBJDUMP"; then
9325 ac_ct_OBJDUMP=$OBJDUMP
9326 # Extract the first word of "objdump", so it can be a program name with args.
9327set dummy objdump; ac_word=$2
9328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9329printf %s "checking for $ac_word... " >&6; }
9330if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9331then :
9332 printf %s "(cached) " >&6
9333else case e in #(
9334 e) if test -n "$ac_ct_OBJDUMP"; then
9335 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9336else
9337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9338for as_dir in $PATH
9339do
9340 IFS=$as_save_IFS
9341 case $as_dir in #(((
9342 '') as_dir=./ ;;
9343 */) ;;
9344 *) as_dir=$as_dir/ ;;
9345 esac
9346 for ac_exec_ext in '' $ac_executable_extensions; do
9347 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9348 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9349 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9350 break 2
9351 fi
9352done
9353 done
9354IFS=$as_save_IFS
9355
9356fi ;;
9357esac
9358fi
9359ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9360if test -n "$ac_ct_OBJDUMP"; then
9361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9362printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9363else
9364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9365printf "%s\n" "no" >&6; }
9366fi
9367
9368 if test "x$ac_ct_OBJDUMP" = x; then
9369 OBJDUMP="false"
9370 else
9371 case $cross_compiling:$ac_tool_warned in
9372yes:)
9373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9374printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9375ac_tool_warned=yes ;;
9376esac
9377 OBJDUMP=$ac_ct_OBJDUMP
9378 fi
9379else
9380 OBJDUMP="$ac_cv_prog_OBJDUMP"
9381fi
9382
9383 ;;
9384esac
9385
9386test -z "$AS" && AS=as
9387
9388
9389
9390
9391
9392test -z "$DLLTOOL" && DLLTOOL=dlltool
9393
9394
9395
9396
9397
9398test -z "$OBJDUMP" && OBJDUMP=objdump
9399
9400
9401
9402
9403
9404
9405
9406 enable_dlopen=no
9407
9408
9409
9410 # Check whether --enable-shared was given.
9411if test ${enable_shared+y}
9412then :
9413 enableval=$enable_shared; p=${PACKAGE-default}
9414 case $enableval in
9415 yes) enable_shared=yes ;;
9416 no) enable_shared=no ;;
9417 *)
9418 enable_shared=no
9419 # Look at the argument we got. We use all the common list separators.
9420 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9421 for pkg in $enableval; do
9422 IFS=$lt_save_ifs
9423 if test "X$pkg" = "X$p"; then
9424 enable_shared=yes
9425 fi
9426 done
9427 IFS=$lt_save_ifs
9428 ;;
9429 esac
9430else case e in #(
9431 e) enable_shared=yes ;;
9432esac
9433fi
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443 # Check whether --enable-static was given.
9444if test ${enable_static+y}
9445then :
9446 enableval=$enable_static; p=${PACKAGE-default}
9447 case $enableval in
9448 yes) enable_static=yes ;;
9449 no) enable_static=no ;;
9450 *)
9451 enable_static=no
9452 # Look at the argument we got. We use all the common list separators.
9453 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9454 for pkg in $enableval; do
9455 IFS=$lt_save_ifs
9456 if test "X$pkg" = "X$p"; then
9457 enable_static=yes
9458 fi
9459 done
9460 IFS=$lt_save_ifs
9461 ;;
9462 esac
9463else case e in #(
9464 e) enable_static=yes ;;
9465esac
9466fi
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476 # Check whether --enable-pic was given.
9477if test ${enable_pic+y}
9478then :
9479 enableval=$enable_pic; lt_p=${PACKAGE-default}
9480 case $enableval in
9481 yes|no) pic_mode=$enableval ;;
9482 *)
9483 pic_mode=default
9484 # Look at the argument we got. We use all the common list separators.
9485 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9486 for lt_pkg in $enableval; do
9487 IFS=$lt_save_ifs
9488 if test "X$lt_pkg" = "X$lt_p"; then
9489 pic_mode=yes
9490 fi
9491 done
9492 IFS=$lt_save_ifs
9493 ;;
9494 esac
9495else case e in #(
9496 e) # Check whether --with-pic was given.
9497if test ${with_pic+y}
9498then :
9499 withval=$with_pic; lt_p=${PACKAGE-default}
9500 case $withval in
9501 yes|no) pic_mode=$withval ;;
9502 *)
9503 pic_mode=default
9504 # Look at the argument we got. We use all the common list separators.
9505 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9506 for lt_pkg in $withval; do
9507 IFS=$lt_save_ifs
9508 if test "X$lt_pkg" = "X$lt_p"; then
9509 pic_mode=yes
9510 fi
9511 done
9512 IFS=$lt_save_ifs
9513 ;;
9514 esac
9515else case e in #(
9516 e) pic_mode=default ;;
9517esac
9518fi
9519
9520 ;;
9521esac
9522fi
9523
9524
9525
9526
9527
9528
9529
9530
9531 # Check whether --enable-fast-install was given.
9532if test ${enable_fast_install+y}
9533then :
9534 enableval=$enable_fast_install; p=${PACKAGE-default}
9535 case $enableval in
9536 yes) enable_fast_install=yes ;;
9537 no) enable_fast_install=no ;;
9538 *)
9539 enable_fast_install=no
9540 # Look at the argument we got. We use all the common list separators.
9541 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9542 for pkg in $enableval; do
9543 IFS=$lt_save_ifs
9544 if test "X$pkg" = "X$p"; then
9545 enable_fast_install=yes
9546 fi
9547 done
9548 IFS=$lt_save_ifs
9549 ;;
9550 esac
9551else case e in #(
9552 e) enable_fast_install=yes ;;
9553esac
9554fi
9555
9556
9557
9558
9559
9560
9561
9562
9563 shared_archive_member_spec=
9564case $host,$enable_shared in
9565power*-*-aix[5-9]*,yes)
9566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9567printf %s "checking which variant of shared library versioning to provide... " >&6; }
9568 # Check whether --enable-aix-soname was given.
9569if test ${enable_aix_soname+y}
9570then :
9571 enableval=$enable_aix_soname; case $enableval in
9572 aix|svr4|both)
9573 ;;
9574 *)
9575 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
9576 ;;
9577 esac
9578 lt_cv_with_aix_soname=$enable_aix_soname
9579else case e in #(
9580 e) # Check whether --with-aix-soname was given.
9581if test ${with_aix_soname+y}
9582then :
9583 withval=$with_aix_soname; case $withval in
9584 aix|svr4|both)
9585 ;;
9586 *)
9587 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9588 ;;
9589 esac
9590 lt_cv_with_aix_soname=$with_aix_soname
9591else case e in #(
9592 e) if test ${lt_cv_with_aix_soname+y}
9593then :
9594 printf %s "(cached) " >&6
9595else case e in #(
9596 e) lt_cv_with_aix_soname=aix ;;
9597esac
9598fi
9599 ;;
9600esac
9601fi
9602
9603 enable_aix_soname=$lt_cv_with_aix_soname ;;
9604esac
9605fi
9606
9607 with_aix_soname=$enable_aix_soname
9608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9609printf "%s\n" "$with_aix_soname" >&6; }
9610 if test aix != "$with_aix_soname"; then
9611 # For the AIX way of multilib, we name the shared archive member
9612 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9613 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9614 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9615 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9616 if test 64 = "${OBJECT_MODE-32}"; then
9617 shared_archive_member_spec=shr_64
9618 else
9619 shared_archive_member_spec=shr
9620 fi
9621 fi
9622 ;;
9623*)
9624 with_aix_soname=aix
9625 ;;
9626esac
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637# This can be used to rebuild libtool when needed
9638LIBTOOL_DEPS=$ltmain
9639
9640# Always use our own libtool.
9641LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672test -z "$LN_S" && LN_S="ln -s"
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687if test -n "${ZSH_VERSION+set}"; then
9688 setopt NO_GLOB_SUBST
9689fi
9690
9691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9692printf %s "checking for objdir... " >&6; }
9693if test ${lt_cv_objdir+y}
9694then :
9695 printf %s "(cached) " >&6
9696else case e in #(
9697 e) rm -f .libs 2>/dev/null
9698mkdir .libs 2>/dev/null
9699if test -d .libs; then
9700 lt_cv_objdir=.libs
9701else
9702 # MS-DOS does not allow filenames that begin with a dot.
9703 lt_cv_objdir=_libs
9704fi
9705rmdir .libs 2>/dev/null ;;
9706esac
9707fi
9708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9709printf "%s\n" "$lt_cv_objdir" >&6; }
9710objdir=$lt_cv_objdir
9711
9712
9713
9714
9715
9716printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9717
9718
9719
9720
9721case $host_os in
9722aix3*)
9723 # AIX sometimes has problems with the GCC collect2 program. For some
9724 # reason, if we set the COLLECT_NAMES environment variable, the problems
9725 # vanish in a puff of smoke.
9726 if test set != "${COLLECT_NAMES+set}"; then
9727 COLLECT_NAMES=
9728 export COLLECT_NAMES
9729 fi
9730 ;;
9731esac
9732
9733# Global variables:
9734ofile=libtool
9735can_build_shared=yes
9736
9737# All known linkers require a '.a' archive for static linking (except MSVC and
9738# ICC, which need '.lib').
9739libext=a
9740
9741with_gnu_ld=$lt_cv_prog_gnu_ld
9742
9743old_CC=$CC
9744old_CFLAGS=$CFLAGS
9745
9746# Set sane defaults for various variables
9747test -z "$CC" && CC=cc
9748test -z "$LTCC" && LTCC=$CC
9749test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9750test -z "$LD" && LD=ld
9751test -z "$ac_objext" && ac_objext=o
9752
9753func_cc_basename $compiler
9754cc_basename=$func_cc_basename_result
9755
9756
9757# Only perform the check for file, if the check method requires it
9758test -z "$MAGIC_CMD" && MAGIC_CMD=file
9759case $deplibs_check_method in
9760file_magic*)
9761 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9763printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9764if test ${lt_cv_path_MAGIC_CMD+y}
9765then :
9766 printf %s "(cached) " >&6
9767else case e in #(
9768 e) case $MAGIC_CMD in
9769[\\/*] | ?:[\\/]*)
9770 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9771 ;;
9772*)
9773 lt_save_MAGIC_CMD=$MAGIC_CMD
9774 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9775 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9776 for ac_dir in $ac_dummy; do
9777 IFS=$lt_save_ifs
9778 test -z "$ac_dir" && ac_dir=.
9779 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9780 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9781 if test -n "$file_magic_test_file"; then
9782 case $deplibs_check_method in
9783 "file_magic "*)
9784 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9785 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9786 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9787 $EGREP "$file_magic_regex" > /dev/null; then
9788 :
9789 else
9790 cat <<_LT_EOF 1>&2
9791
9792*** Warning: the command libtool uses to detect shared libraries,
9793*** $file_magic_cmd, produces output that libtool cannot recognize.
9794*** The result is that libtool may fail to recognize shared libraries
9795*** as such. This will affect the creation of libtool libraries that
9796*** depend on shared libraries, but programs linked with such libtool
9797*** libraries will work regardless of this problem. Nevertheless, you
9798*** may want to report the problem to your system manager and/or to
9799*** [email protected]
9800
9801_LT_EOF
9802 fi ;;
9803 esac
9804 fi
9805 break
9806 fi
9807 done
9808 IFS=$lt_save_ifs
9809 MAGIC_CMD=$lt_save_MAGIC_CMD
9810 ;;
9811esac ;;
9812esac
9813fi
9814
9815MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9816if test -n "$MAGIC_CMD"; then
9817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9818printf "%s\n" "$MAGIC_CMD" >&6; }
9819else
9820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9821printf "%s\n" "no" >&6; }
9822fi
9823
9824
9825
9826
9827
9828if test -z "$lt_cv_path_MAGIC_CMD"; then
9829 if test -n "$ac_tool_prefix"; then
9830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9831printf %s "checking for file... " >&6; }
9832if test ${lt_cv_path_MAGIC_CMD+y}
9833then :
9834 printf %s "(cached) " >&6
9835else case e in #(
9836 e) case $MAGIC_CMD in
9837[\\/*] | ?:[\\/]*)
9838 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9839 ;;
9840*)
9841 lt_save_MAGIC_CMD=$MAGIC_CMD
9842 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9843 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9844 for ac_dir in $ac_dummy; do
9845 IFS=$lt_save_ifs
9846 test -z "$ac_dir" && ac_dir=.
9847 if test -f "$ac_dir/file"; then
9848 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9849 if test -n "$file_magic_test_file"; then
9850 case $deplibs_check_method in
9851 "file_magic "*)
9852 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9853 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9854 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9855 $EGREP "$file_magic_regex" > /dev/null; then
9856 :
9857 else
9858 cat <<_LT_EOF 1>&2
9859
9860*** Warning: the command libtool uses to detect shared libraries,
9861*** $file_magic_cmd, produces output that libtool cannot recognize.
9862*** The result is that libtool may fail to recognize shared libraries
9863*** as such. This will affect the creation of libtool libraries that
9864*** depend on shared libraries, but programs linked with such libtool
9865*** libraries will work regardless of this problem. Nevertheless, you
9866*** may want to report the problem to your system manager and/or to
9867*** [email protected]
9868
9869_LT_EOF
9870 fi ;;
9871 esac
9872 fi
9873 break
9874 fi
9875 done
9876 IFS=$lt_save_ifs
9877 MAGIC_CMD=$lt_save_MAGIC_CMD
9878 ;;
9879esac ;;
9880esac
9881fi
9882
9883MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9884if test -n "$MAGIC_CMD"; then
9885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9886printf "%s\n" "$MAGIC_CMD" >&6; }
9887else
9888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9889printf "%s\n" "no" >&6; }
9890fi
9891
9892
9893 else
9894 MAGIC_CMD=:
9895 fi
9896fi
9897
9898 fi
9899 ;;
9900esac
9901
9902# Use C for the default configuration in the libtool script
9903
9904lt_save_CC=$CC
9905ac_ext=c
9906ac_cpp='$CPP $CPPFLAGS'
9907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9909ac_compiler_gnu=$ac_cv_c_compiler_gnu
9910
9911
9912# Source file extension for C test sources.
9913ac_ext=c
9914
9915# Object file extension for compiled C test sources.
9916objext=o
9917objext=$objext
9918
9919# Code to be used in simple compile tests
9920lt_simple_compile_test_code="int some_variable = 0;"
9921
9922# Code to be used in simple link tests
9923lt_simple_link_test_code='int main(void){return(0);}'
9924
9925
9926
9927
9928
9929
9930
9931# If no C compiler was specified, use CC.
9932LTCC=${LTCC-"$CC"}
9933
9934# If no C compiler flags were specified, use CFLAGS.
9935LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9936
9937# Allow CC to be a program name with arguments.
9938compiler=$CC
9939
9940# Save the default compiler, since it gets overwritten when the other
9941# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9942compiler_DEFAULT=$CC
9943
9944# save warnings/boilerplate of simple test code
9945ac_outfile=conftest.$ac_objext
9946echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9947eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9948_lt_compiler_boilerplate=`cat conftest.err`
9949$RM conftest*
9950
9951ac_outfile=conftest.$ac_objext
9952echo "$lt_simple_link_test_code" >conftest.$ac_ext
9953eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9954_lt_linker_boilerplate=`cat conftest.err`
9955$RM -r conftest*
9956
9957
9958## CAVEAT EMPTOR:
9959## There is no encapsulation within the following macros, do not change
9960## the running order or otherwise move them around unless you know exactly
9961## what you are doing...
9962if test -n "$compiler"; then
9963
9964lt_prog_compiler_no_builtin_flag=
9965
9966if test yes = "$GCC"; then
9967 case $cc_basename in
9968 nvcc*)
9969 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9970 *)
9971 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9972 esac
9973
9974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9975printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9976if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9977then :
9978 printf %s "(cached) " >&6
9979else case e in #(
9980 e) lt_cv_prog_compiler_rtti_exceptions=no
9981 ac_outfile=conftest.$ac_objext
9982 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9983 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9984 # Insert the option either (1) after the last *FLAGS variable, or
9985 # (2) before a word containing "conftest.", or (3) at the end.
9986 # Note that $ac_compile itself does not contain backslashes and begins
9987 # with a dollar sign (not a hyphen), so the echo should work correctly.
9988 # The option is referenced via a variable to avoid confusing sed.
9989 lt_compile=`echo "$ac_compile" | $SED \
9990 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9991 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9992 -e 's:$: $lt_compiler_flag:'`
9993 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9994 (eval "$lt_compile" 2>conftest.err)
9995 ac_status=$?
9996 cat conftest.err >&5
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 if (exit $ac_status) && test -s "$ac_outfile"; then
9999 # The compiler can only warn and ignore the option if not recognized
10000 # So say no if there are warnings other than the usual output.
10001 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10002 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10003 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10004 lt_cv_prog_compiler_rtti_exceptions=yes
10005 fi
10006 fi
10007 $RM conftest*
10008 ;;
10009esac
10010fi
10011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10012printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10013
10014if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10015 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10016else
10017 :
10018fi
10019
10020fi
10021
10022
10023
10024
10025
10026
10027 lt_prog_compiler_wl=
10028lt_prog_compiler_pic=
10029lt_prog_compiler_static=
10030
10031
10032 if test yes = "$GCC"; then
10033 lt_prog_compiler_wl='-Wl,'
10034 lt_prog_compiler_static='-static'
10035
10036 case $host_os in
10037 aix*)
10038 # All AIX code is PIC.
10039 if test ia64 = "$host_cpu"; then
10040 # AIX 5 now supports IA64 processor
10041 lt_prog_compiler_static='-Bstatic'
10042 fi
10043 lt_prog_compiler_pic='-fPIC'
10044 ;;
10045
10046 amigaos*)
10047 case $host_cpu in
10048 powerpc)
10049 # see comment about AmigaOS4 .so support
10050 lt_prog_compiler_pic='-fPIC'
10051 ;;
10052 m68k)
10053 # FIXME: we need at least 68020 code to build shared libraries, but
10054 # adding the '-m68020' flag to GCC prevents building anything better,
10055 # like '-m68040'.
10056 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10057 ;;
10058 esac
10059 ;;
10060
10061 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10062 # PIC is the default for these OSes.
10063 ;;
10064
10065 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10066 # This hack is so that the source file can tell whether it is being
10067 # built for inclusion in a dll (and should export symbols for example).
10068 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10069 # (--disable-auto-import) libraries
10070 lt_prog_compiler_pic='-DDLL_EXPORT'
10071 case $host_os in
10072 os2*)
10073 lt_prog_compiler_static='$wl-static'
10074 ;;
10075 esac
10076 ;;
10077
10078 darwin* | rhapsody*)
10079 # PIC is the default on this platform
10080 # Common symbols not allowed in MH_DYLIB files
10081 lt_prog_compiler_pic='-fno-common'
10082 ;;
10083
10084 haiku*)
10085 # PIC is the default for Haiku.
10086 # The "-static" flag exists, but is broken.
10087 lt_prog_compiler_static=
10088 ;;
10089
10090 hpux*)
10091 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10092 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10093 # sets the default TLS model and affects inlining.
10094 case $host_cpu in
10095 hppa*64*)
10096 # +Z the default
10097 ;;
10098 *)
10099 lt_prog_compiler_pic='-fPIC'
10100 ;;
10101 esac
10102 ;;
10103
10104 interix[3-9]*)
10105 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10106 # Instead, we relocate shared libraries at runtime.
10107 ;;
10108
10109 msdosdjgpp*)
10110 # Just because we use GCC doesn't mean we suddenly get shared libraries
10111 # on systems that don't support them.
10112 lt_prog_compiler_can_build_shared=no
10113 enable_shared=no
10114 ;;
10115
10116 *nto* | *qnx*)
10117 # QNX uses GNU C++, but need to define -shared option too, otherwise
10118 # it will coredump.
10119 lt_prog_compiler_pic='-fPIC -shared'
10120 ;;
10121
10122 sysv4*MP*)
10123 if test -d /usr/nec; then
10124 lt_prog_compiler_pic=-Kconform_pic
10125 fi
10126 ;;
10127
10128 *)
10129 lt_prog_compiler_pic='-fPIC'
10130 ;;
10131 esac
10132
10133 case $cc_basename in
10134 nvcc*) # Cuda Compiler Driver 2.2
10135 lt_prog_compiler_wl='-Xlinker '
10136 if test -n "$lt_prog_compiler_pic"; then
10137 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10138 fi
10139 ;;
10140 esac
10141 else
10142 # PORTME Check for flag to pass linker flags through the system compiler.
10143 case $host_os in
10144 aix*)
10145 lt_prog_compiler_wl='-Wl,'
10146 if test ia64 = "$host_cpu"; then
10147 # AIX 5 now supports IA64 processor
10148 lt_prog_compiler_static='-Bstatic'
10149 else
10150 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10151 fi
10152 ;;
10153
10154 darwin* | rhapsody*)
10155 # PIC is the default on this platform
10156 # Common symbols not allowed in MH_DYLIB files
10157 lt_prog_compiler_pic='-fno-common'
10158 case $cc_basename in
10159 nagfor*)
10160 # NAG Fortran compiler
10161 lt_prog_compiler_wl='-Wl,-Wl,,'
10162 lt_prog_compiler_pic='-PIC'
10163 lt_prog_compiler_static='-Bstatic'
10164 ;;
10165 esac
10166 ;;
10167
10168 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10169 # This hack is so that the source file can tell whether it is being
10170 # built for inclusion in a dll (and should export symbols for example).
10171 lt_prog_compiler_pic='-DDLL_EXPORT'
10172 case $host_os in
10173 os2*)
10174 lt_prog_compiler_static='$wl-static'
10175 ;;
10176 esac
10177 ;;
10178
10179 hpux9* | hpux10* | hpux11*)
10180 lt_prog_compiler_wl='-Wl,'
10181 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10182 # not for PA HP-UX.
10183 case $host_cpu in
10184 hppa*64*|ia64*)
10185 # +Z the default
10186 ;;
10187 *)
10188 lt_prog_compiler_pic='+Z'
10189 ;;
10190 esac
10191 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10192 lt_prog_compiler_static='$wl-a ${wl}archive'
10193 ;;
10194
10195 irix5* | irix6* | nonstopux*)
10196 lt_prog_compiler_wl='-Wl,'
10197 # PIC (with -KPIC) is the default.
10198 lt_prog_compiler_static='-non_shared'
10199 ;;
10200
10201 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10202 case $cc_basename in
10203 # old Intel for x86_64, which still supported -KPIC.
10204 ecc*)
10205 lt_prog_compiler_wl='-Wl,'
10206 lt_prog_compiler_pic='-KPIC'
10207 lt_prog_compiler_static='-static'
10208 ;;
10209 *flang* | ftn | f18* | f95*)
10210 # Flang compiler.
10211 lt_prog_compiler_wl='-Wl,'
10212 lt_prog_compiler_pic='-fPIC'
10213 lt_prog_compiler_static='-static'
10214 ;;
10215 # icc used to be incompatible with GCC.
10216 # ICC 10 doesn't accept -KPIC any more.
10217 icc* | ifort*)
10218 lt_prog_compiler_wl='-Wl,'
10219 lt_prog_compiler_pic='-fPIC'
10220 lt_prog_compiler_static='-static'
10221 ;;
10222 # Lahey Fortran 8.1.
10223 lf95*)
10224 lt_prog_compiler_wl='-Wl,'
10225 lt_prog_compiler_pic='--shared'
10226 lt_prog_compiler_static='--static'
10227 ;;
10228 nagfor*)
10229 # NAG Fortran compiler
10230 lt_prog_compiler_wl='-Wl,-Wl,,'
10231 lt_prog_compiler_pic='-PIC'
10232 lt_prog_compiler_static='-Bstatic'
10233 ;;
10234 tcc*)
10235 # Fabrice Bellard et al's Tiny C Compiler
10236 lt_prog_compiler_wl='-Wl,'
10237 lt_prog_compiler_pic='-fPIC'
10238 lt_prog_compiler_static='-static'
10239 ;;
10240 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10241 # Portland Group compilers (*not* the Pentium gcc compiler,
10242 # which looks to be a dead project)
10243 lt_prog_compiler_wl='-Wl,'
10244 lt_prog_compiler_pic='-fpic'
10245 lt_prog_compiler_static='-Bstatic'
10246 ;;
10247 ccc*)
10248 lt_prog_compiler_wl='-Wl,'
10249 # All Alpha code is PIC.
10250 lt_prog_compiler_static='-non_shared'
10251 ;;
10252 xl* | bgxl* | bgf* | mpixl*)
10253 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10254 lt_prog_compiler_wl='-Wl,'
10255 lt_prog_compiler_pic='-qpic'
10256 lt_prog_compiler_static='-qstaticlink'
10257 ;;
10258 *)
10259 case `$CC -V 2>&1 | $SED 5q` in
10260 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10261 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10262 lt_prog_compiler_pic='-KPIC'
10263 lt_prog_compiler_static='-Bstatic'
10264 lt_prog_compiler_wl=''
10265 ;;
10266 *Sun\ F* | *Sun*Fortran*)
10267 lt_prog_compiler_pic='-KPIC'
10268 lt_prog_compiler_static='-Bstatic'
10269 lt_prog_compiler_wl='-Qoption ld '
10270 ;;
10271 *Sun\ C*)
10272 # Sun C 5.9
10273 lt_prog_compiler_pic='-KPIC'
10274 lt_prog_compiler_static='-Bstatic'
10275 lt_prog_compiler_wl='-Wl,'
10276 ;;
10277 *Intel*\ [CF]*Compiler*)
10278 lt_prog_compiler_wl='-Wl,'
10279 lt_prog_compiler_pic='-fPIC'
10280 lt_prog_compiler_static='-static'
10281 ;;
10282 *Portland\ Group*)
10283 lt_prog_compiler_wl='-Wl,'
10284 lt_prog_compiler_pic='-fpic'
10285 lt_prog_compiler_static='-Bstatic'
10286 ;;
10287 esac
10288 ;;
10289 esac
10290 ;;
10291
10292 newsos6)
10293 lt_prog_compiler_pic='-KPIC'
10294 lt_prog_compiler_static='-Bstatic'
10295 ;;
10296
10297 *-mlibc)
10298 lt_prog_compiler_wl='-Wl,'
10299 lt_prog_compiler_pic='-fPIC'
10300 lt_prog_compiler_static='-static'
10301 ;;
10302
10303 *nto* | *qnx*)
10304 # QNX uses GNU C++, but need to define -shared option too, otherwise
10305 # it will coredump.
10306 lt_prog_compiler_pic='-fPIC -shared'
10307 ;;
10308
10309 osf3* | osf4* | osf5*)
10310 lt_prog_compiler_wl='-Wl,'
10311 # All OSF/1 code is PIC.
10312 lt_prog_compiler_static='-non_shared'
10313 ;;
10314
10315 rdos*)
10316 lt_prog_compiler_static='-non_shared'
10317 ;;
10318
10319 serenity*)
10320 ;;
10321
10322 solaris*)
10323 lt_prog_compiler_pic='-KPIC'
10324 lt_prog_compiler_static='-Bstatic'
10325 case $cc_basename in
10326 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10327 lt_prog_compiler_wl='-Qoption ld ';;
10328 *)
10329 lt_prog_compiler_wl='-Wl,';;
10330 esac
10331 ;;
10332
10333 sunos4*)
10334 lt_prog_compiler_wl='-Qoption ld '
10335 lt_prog_compiler_pic='-PIC'
10336 lt_prog_compiler_static='-Bstatic'
10337 ;;
10338
10339 sysv4 | sysv4.2uw2* | sysv4.3*)
10340 lt_prog_compiler_wl='-Wl,'
10341 lt_prog_compiler_pic='-KPIC'
10342 lt_prog_compiler_static='-Bstatic'
10343 ;;
10344
10345 sysv4*MP*)
10346 if test -d /usr/nec; then
10347 lt_prog_compiler_pic='-Kconform_pic'
10348 lt_prog_compiler_static='-Bstatic'
10349 fi
10350 ;;
10351
10352 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10353 lt_prog_compiler_wl='-Wl,'
10354 lt_prog_compiler_pic='-KPIC'
10355 lt_prog_compiler_static='-Bstatic'
10356 ;;
10357
10358 unicos*)
10359 lt_prog_compiler_wl='-Wl,'
10360 lt_prog_compiler_can_build_shared=no
10361 ;;
10362
10363 uts4*)
10364 lt_prog_compiler_pic='-pic'
10365 lt_prog_compiler_static='-Bstatic'
10366 ;;
10367
10368 *)
10369 lt_prog_compiler_can_build_shared=no
10370 ;;
10371 esac
10372 fi
10373
10374case $host_os in
10375 # For platforms that do not support PIC, -DPIC is meaningless:
10376 *djgpp*)
10377 lt_prog_compiler_pic=
10378 ;;
10379 *)
10380 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10381 ;;
10382esac
10383
10384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10385printf %s "checking for $compiler option to produce PIC... " >&6; }
10386if test ${lt_cv_prog_compiler_pic+y}
10387then :
10388 printf %s "(cached) " >&6
10389else case e in #(
10390 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
10391esac
10392fi
10393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10394printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10395lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10396
10397#
10398# Check to make sure the PIC flag actually works.
10399#
10400if test -n "$lt_prog_compiler_pic"; then
10401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10402printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10403if test ${lt_cv_prog_compiler_pic_works+y}
10404then :
10405 printf %s "(cached) " >&6
10406else case e in #(
10407 e) lt_cv_prog_compiler_pic_works=no
10408 ac_outfile=conftest.$ac_objext
10409 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10410 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10411 # Insert the option either (1) after the last *FLAGS variable, or
10412 # (2) before a word containing "conftest.", or (3) at the end.
10413 # Note that $ac_compile itself does not contain backslashes and begins
10414 # with a dollar sign (not a hyphen), so the echo should work correctly.
10415 # The option is referenced via a variable to avoid confusing sed.
10416 lt_compile=`echo "$ac_compile" | $SED \
10417 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10418 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10419 -e 's:$: $lt_compiler_flag:'`
10420 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10421 (eval "$lt_compile" 2>conftest.err)
10422 ac_status=$?
10423 cat conftest.err >&5
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 if (exit $ac_status) && test -s "$ac_outfile"; then
10426 # The compiler can only warn and ignore the option if not recognized
10427 # So say no if there are warnings other than the usual output.
10428 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10429 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10430 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10431 lt_cv_prog_compiler_pic_works=yes
10432 fi
10433 fi
10434 $RM conftest*
10435 ;;
10436esac
10437fi
10438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10439printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10440
10441if test yes = "$lt_cv_prog_compiler_pic_works"; then
10442 case $lt_prog_compiler_pic in
10443 "" | " "*) ;;
10444 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10445 esac
10446else
10447 lt_prog_compiler_pic=
10448 lt_prog_compiler_can_build_shared=no
10449fi
10450
10451fi
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463#
10464# Check to make sure the static flag actually works.
10465#
10466wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10468printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10469if test ${lt_cv_prog_compiler_static_works+y}
10470then :
10471 printf %s "(cached) " >&6
10472else case e in #(
10473 e) lt_cv_prog_compiler_static_works=no
10474 save_LDFLAGS=$LDFLAGS
10475 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10476 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10477 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10478 # The linker can only warn and ignore the option if not recognized
10479 # So say no if there are warnings
10480 if test -s conftest.err; then
10481 # Append any errors to the config.log.
10482 cat conftest.err 1>&5
10483 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10484 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10485 if diff conftest.exp conftest.er2 >/dev/null; then
10486 lt_cv_prog_compiler_static_works=yes
10487 fi
10488 else
10489 lt_cv_prog_compiler_static_works=yes
10490 fi
10491 fi
10492 $RM -r conftest*
10493 LDFLAGS=$save_LDFLAGS
10494 ;;
10495esac
10496fi
10497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10498printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10499
10500if test yes = "$lt_cv_prog_compiler_static_works"; then
10501 :
10502else
10503 lt_prog_compiler_static=
10504fi
10505
10506
10507
10508
10509
10510
10511
10512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10513printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10514if test ${lt_cv_prog_compiler_c_o+y}
10515then :
10516 printf %s "(cached) " >&6
10517else case e in #(
10518 e) lt_cv_prog_compiler_c_o=no
10519 $RM -r conftest 2>/dev/null
10520 mkdir conftest
10521 cd conftest
10522 mkdir out
10523 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10524
10525 lt_compiler_flag="-o out/conftest2.$ac_objext"
10526 # Insert the option either (1) after the last *FLAGS variable, or
10527 # (2) before a word containing "conftest.", or (3) at the end.
10528 # Note that $ac_compile itself does not contain backslashes and begins
10529 # with a dollar sign (not a hyphen), so the echo should work correctly.
10530 lt_compile=`echo "$ac_compile" | $SED \
10531 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10532 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10533 -e 's:$: $lt_compiler_flag:'`
10534 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10535 (eval "$lt_compile" 2>out/conftest.err)
10536 ac_status=$?
10537 cat out/conftest.err >&5
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10540 then
10541 # The compiler can only warn and ignore the option if not recognized
10542 # So say no if there are warnings
10543 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10544 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10545 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10546 lt_cv_prog_compiler_c_o=yes
10547 fi
10548 fi
10549 chmod u+w . 2>&5
10550 $RM conftest*
10551 # SGI C++ compiler will create directory out/ii_files/ for
10552 # template instantiation
10553 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10554 $RM out/* && rmdir out
10555 cd ..
10556 $RM -r conftest
10557 $RM conftest*
10558 ;;
10559esac
10560fi
10561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10562printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10563
10564
10565
10566
10567
10568
10569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10570printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10571if test ${lt_cv_prog_compiler_c_o+y}
10572then :
10573 printf %s "(cached) " >&6
10574else case e in #(
10575 e) lt_cv_prog_compiler_c_o=no
10576 $RM -r conftest 2>/dev/null
10577 mkdir conftest
10578 cd conftest
10579 mkdir out
10580 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10581
10582 lt_compiler_flag="-o out/conftest2.$ac_objext"
10583 # Insert the option either (1) after the last *FLAGS variable, or
10584 # (2) before a word containing "conftest.", or (3) at the end.
10585 # Note that $ac_compile itself does not contain backslashes and begins
10586 # with a dollar sign (not a hyphen), so the echo should work correctly.
10587 lt_compile=`echo "$ac_compile" | $SED \
10588 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10589 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10590 -e 's:$: $lt_compiler_flag:'`
10591 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10592 (eval "$lt_compile" 2>out/conftest.err)
10593 ac_status=$?
10594 cat out/conftest.err >&5
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10597 then
10598 # The compiler can only warn and ignore the option if not recognized
10599 # So say no if there are warnings
10600 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10601 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10602 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10603 lt_cv_prog_compiler_c_o=yes
10604 fi
10605 fi
10606 chmod u+w . 2>&5
10607 $RM conftest*
10608 # SGI C++ compiler will create directory out/ii_files/ for
10609 # template instantiation
10610 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10611 $RM out/* && rmdir out
10612 cd ..
10613 $RM -r conftest
10614 $RM conftest*
10615 ;;
10616esac
10617fi
10618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10619printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10620
10621
10622
10623
10624hard_links=nottested
10625if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10626 # do not overwrite the value of need_locks provided by the user
10627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10628printf %s "checking if we can lock with hard links... " >&6; }
10629 hard_links=yes
10630 $RM conftest*
10631 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10632 touch conftest.a
10633 ln conftest.a conftest.b 2>&5 || hard_links=no
10634 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10636printf "%s\n" "$hard_links" >&6; }
10637 if test no = "$hard_links"; then
10638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10639printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10640 need_locks=warn
10641 fi
10642else
10643 need_locks=no
10644fi
10645
10646
10647
10648
10649
10650
10651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10652printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10653
10654 runpath_var=
10655 allow_undefined_flag=
10656 always_export_symbols=no
10657 archive_cmds=
10658 archive_expsym_cmds=
10659 compiler_needs_object=no
10660 enable_shared_with_static_runtimes=no
10661 export_dynamic_flag_spec=
10662 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10663 hardcode_automatic=no
10664 hardcode_direct=no
10665 hardcode_direct_absolute=no
10666 hardcode_libdir_flag_spec=
10667 hardcode_libdir_separator=
10668 hardcode_minus_L=no
10669 hardcode_shlibpath_var=unsupported
10670 inherit_rpath=no
10671 link_all_deplibs=unknown
10672 module_cmds=
10673 module_expsym_cmds=
10674 old_archive_from_new_cmds=
10675 old_archive_from_expsyms_cmds=
10676 thread_safe_flag_spec=
10677 whole_archive_flag_spec=
10678 # include_expsyms should be a list of space-separated symbols to be *always*
10679 # included in the symbol list
10680 include_expsyms=
10681 # exclude_expsyms can be an extended regexp of symbols to exclude
10682 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10683 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10684 # as well as any symbol that contains 'd'.
10685 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10686 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10687 # platforms (ab)use it in PIC code, but their linkers get confused if
10688 # the symbol is explicitly referenced. Since portable code cannot
10689 # rely on this symbol name, it's probably fine to never include it in
10690 # preloaded symbol tables.
10691 # Exclude shared library initialization/finalization symbols.
10692 extract_expsyms_cmds=
10693
10694 case $host_os in
10695 cygwin* | mingw* | windows* | pw32* | cegcc*)
10696 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10697 # When not using gcc, we currently assume that we are using
10698 # Microsoft Visual C++ or Intel C++ Compiler.
10699 if test yes != "$GCC"; then
10700 with_gnu_ld=no
10701 fi
10702 ;;
10703 interix*)
10704 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10705 with_gnu_ld=yes
10706 ;;
10707 esac
10708
10709 ld_shlibs=yes
10710
10711 # On some targets, GNU ld is compatible enough with the native linker
10712 # that we're better off using the native interface for both.
10713 lt_use_gnu_ld_interface=no
10714 if test yes = "$with_gnu_ld"; then
10715 case $host_os in
10716 aix*)
10717 # The AIX port of GNU ld has always aspired to compatibility
10718 # with the native linker. However, as the warning in the GNU ld
10719 # block says, versions before 2.19.5* couldn't really create working
10720 # shared libraries, regardless of the interface used.
10721 case `$LD -v 2>&1` in
10722 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10723 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10724 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10725 *)
10726 lt_use_gnu_ld_interface=yes
10727 ;;
10728 esac
10729 ;;
10730 *)
10731 lt_use_gnu_ld_interface=yes
10732 ;;
10733 esac
10734 fi
10735
10736 if test yes = "$lt_use_gnu_ld_interface"; then
10737 # If archive_cmds runs LD, not CC, wlarc should be empty
10738 wlarc='$wl'
10739
10740 # Set some defaults for GNU ld with shared library support. These
10741 # are reset later if shared libraries are not supported. Putting them
10742 # here allows them to be overridden if necessary.
10743 runpath_var=LD_RUN_PATH
10744 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10745 export_dynamic_flag_spec='$wl--export-dynamic'
10746 # ancient GNU ld didn't support --whole-archive et. al.
10747 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10748 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10749 else
10750 whole_archive_flag_spec=
10751 fi
10752 supports_anon_versioning=no
10753 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10754 *GNU\ gold*) supports_anon_versioning=yes ;;
10755 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10756 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10757 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10758 *\ 2.11.*) ;; # other 2.11 versions
10759 *) supports_anon_versioning=yes ;;
10760 esac
10761
10762 # See if GNU ld supports shared libraries.
10763 case $host_os in
10764 aix[3-9]*)
10765 # On AIX/PPC, the GNU linker is very broken
10766 if test ia64 != "$host_cpu"; then
10767 ld_shlibs=no
10768 cat <<_LT_EOF 1>&2
10769
10770*** Warning: the GNU linker, at least up to release 2.19, is reported
10771*** to be unable to reliably create shared libraries on AIX.
10772*** Therefore, libtool is disabling shared libraries support. If you
10773*** really care for shared libraries, you may want to install binutils
10774*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10775*** You will then need to restart the configuration process.
10776
10777_LT_EOF
10778 fi
10779 ;;
10780
10781 amigaos*)
10782 case $host_cpu in
10783 powerpc)
10784 # see comment about AmigaOS4 .so support
10785 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10786 archive_expsym_cmds=''
10787 ;;
10788 m68k)
10789 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)'
10790 hardcode_libdir_flag_spec='-L$libdir'
10791 hardcode_minus_L=yes
10792 ;;
10793 esac
10794 ;;
10795
10796 beos*)
10797 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10798 allow_undefined_flag=unsupported
10799 # Joseph Beckenbach <[email protected]> says some releases of gcc
10800 # support --undefined. This deserves some investigation. FIXME
10801 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10802 else
10803 ld_shlibs=no
10804 fi
10805 ;;
10806
10807 cygwin* | mingw* | windows* | pw32* | cegcc*)
10808 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10809 # as there is no search path for DLLs.
10810 hardcode_libdir_flag_spec='-L$libdir'
10811 export_dynamic_flag_spec='$wl--export-all-symbols'
10812 allow_undefined_flag=unsupported
10813 always_export_symbols=no
10814 enable_shared_with_static_runtimes=yes
10815 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'
10816 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10817 file_list_spec='@'
10818
10819 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10820 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10821 # If the export-symbols file already is a .def file, use it as
10822 # is; otherwise, prepend EXPORTS...
10823 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10824 cp $export_symbols $output_objdir/$soname.def;
10825 else
10826 echo EXPORTS > $output_objdir/$soname.def;
10827 cat $export_symbols >> $output_objdir/$soname.def;
10828 fi~
10829 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10830 else
10831 ld_shlibs=no
10832 fi
10833 ;;
10834
10835 haiku*)
10836 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10837 link_all_deplibs=no
10838 ;;
10839
10840 os2*)
10841 hardcode_libdir_flag_spec='-L$libdir'
10842 hardcode_minus_L=yes
10843 allow_undefined_flag=unsupported
10844 shrext_cmds=.dll
10845 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10846 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10847 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10848 $ECHO EXPORTS >> $output_objdir/$libname.def~
10849 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10850 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10851 emximp -o $lib $output_objdir/$libname.def'
10852 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10853 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10854 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10855 $ECHO EXPORTS >> $output_objdir/$libname.def~
10856 prefix_cmds="$SED"~
10857 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10858 prefix_cmds="$prefix_cmds -e 1d";
10859 fi~
10860 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10861 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10862 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10863 emximp -o $lib $output_objdir/$libname.def'
10864 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10865 enable_shared_with_static_runtimes=yes
10866 file_list_spec='@'
10867 ;;
10868
10869 interix[3-9]*)
10870 hardcode_direct=no
10871 hardcode_shlibpath_var=no
10872 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10873 export_dynamic_flag_spec='$wl-E'
10874 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10875 # Instead, shared libraries are loaded at an image base (0x10000000 by
10876 # default) and relocated if they conflict, which is a slow very memory
10877 # consuming and fragmenting process. To avoid this, we pick a random,
10878 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10879 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10880 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10881 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'
10882 ;;
10883
10884 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10885 tmp_diet=no
10886 if test linux-dietlibc = "$host_os"; then
10887 case $cc_basename in
10888 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10889 esac
10890 fi
10891 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10892 && test no = "$tmp_diet"
10893 then
10894 tmp_addflag=' $pic_flag'
10895 tmp_sharedflag='-shared'
10896 case $cc_basename,$host_cpu in
10897 pgcc*) # Portland Group C compiler
10898 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'
10899 tmp_addflag=' $pic_flag'
10900 ;;
10901 pgf77* | pgf90* | pgf95* | pgfortran*)
10902 # Portland Group f77 and f90 compilers
10903 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'
10904 tmp_addflag=' $pic_flag -Mnomain' ;;
10905 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10906 tmp_addflag=' -i_dynamic' ;;
10907 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10908 tmp_addflag=' -i_dynamic -nofor_main' ;;
10909 ifc* | ifort*) # Intel Fortran compiler
10910 tmp_addflag=' -nofor_main' ;;
10911 lf95*) # Lahey Fortran 8.1
10912 whole_archive_flag_spec=
10913 tmp_sharedflag='--shared' ;;
10914 nagfor*) # NAGFOR 5.3
10915 tmp_sharedflag='-Wl,-shared' ;;
10916 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10917 tmp_sharedflag='-qmkshrobj'
10918 tmp_addflag= ;;
10919 nvcc*) # Cuda Compiler Driver 2.2
10920 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'
10921 compiler_needs_object=yes
10922 ;;
10923 esac
10924 case `$CC -V 2>&1 | $SED 5q` in
10925 *Sun\ C*) # Sun C 5.9
10926 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'
10927 compiler_needs_object=yes
10928 tmp_sharedflag='-G' ;;
10929 *Sun\ F*) # Sun Fortran 8.3
10930 tmp_sharedflag='-G' ;;
10931 esac
10932 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10933
10934 if test yes = "$supports_anon_versioning"; then
10935 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10936 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10937 echo "local: *; };" >> $output_objdir/$libname.ver~
10938 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10939 fi
10940
10941 case $cc_basename in
10942 tcc*)
10943 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10944 export_dynamic_flag_spec='-rdynamic'
10945 ;;
10946 xlf* | bgf* | bgxlf* | mpixlf*)
10947 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10948 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10949 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10950 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10951 if test yes = "$supports_anon_versioning"; then
10952 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10953 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10954 echo "local: *; };" >> $output_objdir/$libname.ver~
10955 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10956 fi
10957 ;;
10958 esac
10959 else
10960 ld_shlibs=no
10961 fi
10962 ;;
10963
10964 *-mlibc)
10965 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10966 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10967 ;;
10968
10969 netbsd* | netbsdelf*-gnu)
10970 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10971 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10972 wlarc=
10973 else
10974 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10975 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10976 fi
10977 ;;
10978
10979 solaris*)
10980 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10981 ld_shlibs=no
10982 cat <<_LT_EOF 1>&2
10983
10984*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10985*** create shared libraries on Solaris systems. Therefore, libtool
10986*** is disabling shared libraries support. We urge you to upgrade GNU
10987*** binutils to release 2.9.1 or newer. Another option is to modify
10988*** your PATH or compiler configuration so that the native linker is
10989*** used, and then restart.
10990
10991_LT_EOF
10992 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10993 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10994 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10995 else
10996 ld_shlibs=no
10997 fi
10998 ;;
10999
11000 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11001 case `$LD -v 2>&1` in
11002 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11003 ld_shlibs=no
11004 cat <<_LT_EOF 1>&2
11005
11006*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11007*** reliably create shared libraries on SCO systems. Therefore, libtool
11008*** is disabling shared libraries support. We urge you to upgrade GNU
11009*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11010*** your PATH or compiler configuration so that the native linker is
11011*** used, and then restart.
11012
11013_LT_EOF
11014 ;;
11015 *)
11016 # For security reasons, it is highly recommended that you always
11017 # use absolute paths for naming shared libraries, and exclude the
11018 # DT_RUNPATH tag from executables and libraries. But doing so
11019 # requires that you compile everything twice, which is a pain.
11020 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11021 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11022 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11023 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11024 else
11025 ld_shlibs=no
11026 fi
11027 ;;
11028 esac
11029 ;;
11030
11031 sunos4*)
11032 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11033 wlarc=
11034 hardcode_direct=yes
11035 hardcode_shlibpath_var=no
11036 ;;
11037
11038 *)
11039 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11040 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11041 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11042 else
11043 ld_shlibs=no
11044 fi
11045 ;;
11046 esac
11047
11048 if test no = "$ld_shlibs"; then
11049 runpath_var=
11050 hardcode_libdir_flag_spec=
11051 export_dynamic_flag_spec=
11052 whole_archive_flag_spec=
11053 fi
11054 else
11055 # PORTME fill in a description of your system's linker (not GNU ld)
11056 case $host_os in
11057 aix3*)
11058 allow_undefined_flag=unsupported
11059 always_export_symbols=yes
11060 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
11061 # Note: this linker hardcodes the directories in LIBPATH if there
11062 # are no directories specified by -L.
11063 hardcode_minus_L=yes
11064 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11065 # Neither direct hardcoding nor static linking is supported with a
11066 # broken collect2.
11067 hardcode_direct=unsupported
11068 fi
11069 ;;
11070
11071 aix[4-9]*)
11072 if test ia64 = "$host_cpu"; then
11073 # On IA64, the linker does run time linking by default, so we don't
11074 # have to do anything special.
11075 aix_use_runtimelinking=no
11076 exp_sym_flag='-Bexport'
11077 no_entry_flag=
11078 else
11079 # If we're using GNU nm, then we don't want the "-C" option.
11080 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11081 # Without the "-l" option, or with the "-B" option, AIX nm treats
11082 # weak defined symbols like other global defined symbols, whereas
11083 # GNU nm marks them as "W".
11084 # While the 'weak' keyword is ignored in the Export File, we need
11085 # it in the Import File for the 'aix-soname' feature, so we have
11086 # to replace the "-B" option with "-P" for AIX nm.
11087 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11088 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11089 else
11090 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11091 fi
11092 aix_use_runtimelinking=no
11093
11094 # Test if we are trying to use run time linking or normal
11095 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11096 # have runtime linking enabled, and use it for executables.
11097 # For shared libraries, we enable/disable runtime linking
11098 # depending on the kind of the shared library created -
11099 # when "with_aix_soname,aix_use_runtimelinking" is:
11100 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11101 # "aix,yes" lib.so shared, rtl:yes, for executables
11102 # lib.a static archive
11103 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11104 # lib.a(lib.so.V) shared, rtl:no, for executables
11105 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11106 # lib.a(lib.so.V) shared, rtl:no
11107 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11108 # lib.a static archive
11109 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11110 for ld_flag in $LDFLAGS; do
11111 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11112 aix_use_runtimelinking=yes
11113 break
11114 fi
11115 done
11116 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11117 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11118 # so we don't have lib.a shared libs to link our executables.
11119 # We have to force runtime linking in this case.
11120 aix_use_runtimelinking=yes
11121 LDFLAGS="$LDFLAGS -Wl,-brtl"
11122 fi
11123 ;;
11124 esac
11125
11126 exp_sym_flag='-bexport'
11127 no_entry_flag='-bnoentry'
11128 fi
11129
11130 # When large executables or shared objects are built, AIX ld can
11131 # have problems creating the table of contents. If linking a library
11132 # or program results in "error TOC overflow" add -mminimal-toc to
11133 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11134 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11135
11136 archive_cmds=''
11137 hardcode_direct=yes
11138 hardcode_direct_absolute=yes
11139 hardcode_libdir_separator=':'
11140 link_all_deplibs=yes
11141 file_list_spec='$wl-f,'
11142 case $with_aix_soname,$aix_use_runtimelinking in
11143 aix,*) ;; # traditional, no import file
11144 svr4,* | *,yes) # use import file
11145 # The Import File defines what to hardcode.
11146 hardcode_direct=no
11147 hardcode_direct_absolute=no
11148 ;;
11149 esac
11150
11151 if test yes = "$GCC"; then
11152 case $host_os in aix4.[012]|aix4.[012].*)
11153 # We only want to do this on AIX 4.2 and lower, the check
11154 # below for broken collect2 doesn't work under 4.3+
11155 collect2name=`$CC -print-prog-name=collect2`
11156 if test -f "$collect2name" &&
11157 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11158 then
11159 # We have reworked collect2
11160 :
11161 else
11162 # We have old collect2
11163 hardcode_direct=unsupported
11164 # It fails to find uninstalled libraries when the uninstalled
11165 # path is not listed in the libpath. Setting hardcode_minus_L
11166 # to unsupported forces relinking
11167 hardcode_minus_L=yes
11168 hardcode_libdir_flag_spec='-L$libdir'
11169 hardcode_libdir_separator=
11170 fi
11171 ;;
11172 esac
11173 shared_flag='-shared'
11174 if test yes = "$aix_use_runtimelinking"; then
11175 shared_flag="$shared_flag "'$wl-G'
11176 fi
11177 # Need to ensure runtime linking is disabled for the traditional
11178 # shared library, or the linker may eventually find shared libraries
11179 # /with/ Import File - we do not want to mix them.
11180 shared_flag_aix='-shared'
11181 shared_flag_svr4='-shared $wl-G'
11182 else
11183 # not using gcc
11184 if test ia64 = "$host_cpu"; then
11185 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11186 # chokes on -Wl,-G. The following line is correct:
11187 shared_flag='-G'
11188 else
11189 if test yes = "$aix_use_runtimelinking"; then
11190 shared_flag='$wl-G'
11191 else
11192 shared_flag='$wl-bM:SRE'
11193 fi
11194 shared_flag_aix='$wl-bM:SRE'
11195 shared_flag_svr4='$wl-G'
11196 fi
11197 fi
11198
11199 export_dynamic_flag_spec='$wl-bexpall'
11200 # It seems that -bexpall does not export symbols beginning with
11201 # underscore (_), so it is better to generate a list of symbols to export.
11202 always_export_symbols=yes
11203 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11204 # Warning - without using the other runtime loading flags (-brtl),
11205 # -berok will link without error, but may produce a broken library.
11206 allow_undefined_flag='-berok'
11207 # Determine the default libpath from the value encoded in an
11208 # empty executable.
11209 if test set = "${lt_cv_aix_libpath+set}"; then
11210 aix_libpath=$lt_cv_aix_libpath
11211else
11212 if test ${lt_cv_aix_libpath_+y}
11213then :
11214 printf %s "(cached) " >&6
11215else case e in #(
11216 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11217/* end confdefs.h. */
11218
11219int
11220main (void)
11221{
11222
11223 ;
11224 return 0;
11225}
11226_ACEOF
11227if ac_fn_c_try_link "$LINENO"
11228then :
11229
11230 lt_aix_libpath_sed='
11231 /Import File Strings/,/^$/ {
11232 /^0/ {
11233 s/^0 *\([^ ]*\) *$/\1/
11234 p
11235 }
11236 }'
11237 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11238 # Check for a 64-bit object if we didn't find anything.
11239 if test -z "$lt_cv_aix_libpath_"; then
11240 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11241 fi
11242fi
11243rm -f core conftest.err conftest.$ac_objext conftest.beam \
11244 conftest$ac_exeext conftest.$ac_ext
11245 if test -z "$lt_cv_aix_libpath_"; then
11246 lt_cv_aix_libpath_=/usr/lib:/lib
11247 fi
11248 ;;
11249esac
11250fi
11251
11252 aix_libpath=$lt_cv_aix_libpath_
11253fi
11254
11255 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11256 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11257 else
11258 if test ia64 = "$host_cpu"; then
11259 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11260 allow_undefined_flag="-z nodefs"
11261 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
11262 else
11263 # Determine the default libpath from the value encoded in an
11264 # empty executable.
11265 if test set = "${lt_cv_aix_libpath+set}"; then
11266 aix_libpath=$lt_cv_aix_libpath
11267else
11268 if test ${lt_cv_aix_libpath_+y}
11269then :
11270 printf %s "(cached) " >&6
11271else case e in #(
11272 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11273/* end confdefs.h. */
11274
11275int
11276main (void)
11277{
11278
11279 ;
11280 return 0;
11281}
11282_ACEOF
11283if ac_fn_c_try_link "$LINENO"
11284then :
11285
11286 lt_aix_libpath_sed='
11287 /Import File Strings/,/^$/ {
11288 /^0/ {
11289 s/^0 *\([^ ]*\) *$/\1/
11290 p
11291 }
11292 }'
11293 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11294 # Check for a 64-bit object if we didn't find anything.
11295 if test -z "$lt_cv_aix_libpath_"; then
11296 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11297 fi
11298fi
11299rm -f core conftest.err conftest.$ac_objext conftest.beam \
11300 conftest$ac_exeext conftest.$ac_ext
11301 if test -z "$lt_cv_aix_libpath_"; then
11302 lt_cv_aix_libpath_=/usr/lib:/lib
11303 fi
11304 ;;
11305esac
11306fi
11307
11308 aix_libpath=$lt_cv_aix_libpath_
11309fi
11310
11311 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11312 # Warning - without using the other run time loading flags,
11313 # -berok will link without error, but may produce a broken library.
11314 no_undefined_flag=' $wl-bernotok'
11315 allow_undefined_flag=' $wl-berok'
11316 if test yes = "$with_gnu_ld"; then
11317 # We only use this code for GNU lds that support --whole-archive.
11318 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11319 else
11320 # Exported symbols can be pulled into shared objects from archives
11321 whole_archive_flag_spec='$convenience'
11322 fi
11323 archive_cmds_need_lc=yes
11324 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11325 # -brtl affects multiple linker settings, -berok does not and is overridden later
11326 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11327 if test svr4 != "$with_aix_soname"; then
11328 # This is similar to how AIX traditionally builds its shared libraries.
11329 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11330 fi
11331 if test aix != "$with_aix_soname"; then
11332 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11333 else
11334 # used by -dlpreopen to get the symbols
11335 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11336 fi
11337 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11338 fi
11339 fi
11340 ;;
11341
11342 amigaos*)
11343 case $host_cpu in
11344 powerpc)
11345 # see comment about AmigaOS4 .so support
11346 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11347 archive_expsym_cmds=''
11348 ;;
11349 m68k)
11350 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)'
11351 hardcode_libdir_flag_spec='-L$libdir'
11352 hardcode_minus_L=yes
11353 ;;
11354 esac
11355 ;;
11356
11357 bsdi[45]*)
11358 export_dynamic_flag_spec=-rdynamic
11359 ;;
11360
11361 cygwin* | mingw* | windows* | pw32* | cegcc*)
11362 # When not using gcc, we currently assume that we are using
11363 # Microsoft Visual C++ or Intel C++ Compiler.
11364 # hardcode_libdir_flag_spec is actually meaningless, as there is
11365 # no search path for DLLs.
11366 case $cc_basename in
11367 cl* | icl*)
11368 # Native MSVC or ICC
11369 hardcode_libdir_flag_spec=' '
11370 allow_undefined_flag=unsupported
11371 always_export_symbols=yes
11372 file_list_spec='@'
11373 # Tell ltmain to make .lib files, not .a files.
11374 libext=lib
11375 # Tell ltmain to make .dll files, not .so files.
11376 shrext_cmds=.dll
11377 # FIXME: Setting linknames here is a bad hack.
11378 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11379 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11380 cp "$export_symbols" "$output_objdir/$soname.def";
11381 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11382 else
11383 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11384 fi~
11385 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11386 linknames='
11387 # The linker will not automatically build a static lib if we build a DLL.
11388 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11389 enable_shared_with_static_runtimes=yes
11390 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11391 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11392 # Don't use ranlib
11393 old_postinstall_cmds='chmod 644 $oldlib'
11394 postlink_cmds='lt_outputfile="@OUTPUT@"~
11395 lt_tool_outputfile="@TOOL_OUTPUT@"~
11396 case $lt_outputfile in
11397 *.exe|*.EXE) ;;
11398 *)
11399 lt_outputfile=$lt_outputfile.exe
11400 lt_tool_outputfile=$lt_tool_outputfile.exe
11401 ;;
11402 esac~
11403 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11404 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11405 $RM "$lt_outputfile.manifest";
11406 fi'
11407 ;;
11408 *)
11409 # Assume MSVC and ICC wrapper
11410 hardcode_libdir_flag_spec=' '
11411 allow_undefined_flag=unsupported
11412 # Tell ltmain to make .lib files, not .a files.
11413 libext=lib
11414 # Tell ltmain to make .dll files, not .so files.
11415 shrext_cmds=.dll
11416 # FIXME: Setting linknames here is a bad hack.
11417 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11418 # The linker will automatically build a .lib file if we build a DLL.
11419 old_archive_from_new_cmds='true'
11420 # FIXME: Should let the user specify the lib program.
11421 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11422 enable_shared_with_static_runtimes=yes
11423 ;;
11424 esac
11425 ;;
11426
11427 darwin* | rhapsody*)
11428
11429
11430 archive_cmds_need_lc=no
11431 hardcode_direct=no
11432 hardcode_automatic=yes
11433 hardcode_shlibpath_var=unsupported
11434 if test yes = "$lt_cv_ld_force_load"; then
11435 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11436
11437 else
11438 whole_archive_flag_spec=''
11439 fi
11440 link_all_deplibs=yes
11441 allow_undefined_flag=$_lt_dar_allow_undefined
11442 case $cc_basename in
11443 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11444 *) _lt_dar_can_shared=$GCC ;;
11445 esac
11446 if test yes = "$_lt_dar_can_shared"; then
11447 output_verbose_link_cmd=func_echo_all
11448 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11449 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11450 archive_expsym_cmds="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
11451 module_expsym_cmds="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
11452
11453 else
11454 ld_shlibs=no
11455 fi
11456
11457 ;;
11458
11459 dgux*)
11460 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11461 hardcode_libdir_flag_spec='-L$libdir'
11462 hardcode_shlibpath_var=no
11463 ;;
11464
11465 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11466 # support. Future versions do this automatically, but an explicit c++rt0.o
11467 # does not break anything, and helps significantly (at the cost of a little
11468 # extra space).
11469 freebsd2.2*)
11470 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11471 hardcode_libdir_flag_spec='-R$libdir'
11472 hardcode_direct=yes
11473 hardcode_shlibpath_var=no
11474 ;;
11475
11476 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11477 freebsd2.*)
11478 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11479 hardcode_direct=yes
11480 hardcode_minus_L=yes
11481 hardcode_shlibpath_var=no
11482 ;;
11483
11484 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11485 freebsd* | dragonfly* | midnightbsd*)
11486 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11487 hardcode_libdir_flag_spec='-R$libdir'
11488 hardcode_direct=yes
11489 hardcode_shlibpath_var=no
11490 ;;
11491
11492 hpux9*)
11493 if test yes = "$GCC"; then
11494 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11495 else
11496 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11497 fi
11498 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11499 hardcode_libdir_separator=:
11500 hardcode_direct=yes
11501
11502 # hardcode_minus_L: Not really in the search PATH,
11503 # but as the default location of the library.
11504 hardcode_minus_L=yes
11505 export_dynamic_flag_spec='$wl-E'
11506 ;;
11507
11508 hpux10*)
11509 if test yes,no = "$GCC,$with_gnu_ld"; then
11510 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11511 else
11512 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11513 fi
11514 if test no = "$with_gnu_ld"; then
11515 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11516 hardcode_libdir_separator=:
11517 hardcode_direct=yes
11518 hardcode_direct_absolute=yes
11519 export_dynamic_flag_spec='$wl-E'
11520 # hardcode_minus_L: Not really in the search PATH,
11521 # but as the default location of the library.
11522 hardcode_minus_L=yes
11523 fi
11524 ;;
11525
11526 hpux11*)
11527 if test yes,no = "$GCC,$with_gnu_ld"; then
11528 case $host_cpu in
11529 hppa*64*)
11530 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11531 ;;
11532 ia64*)
11533 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11534 ;;
11535 *)
11536 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11537 ;;
11538 esac
11539 else
11540 case $host_cpu in
11541 hppa*64*)
11542 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11543 ;;
11544 ia64*)
11545 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11546 ;;
11547 *)
11548
11549 # Older versions of the 11.00 compiler do not understand -b yet
11550 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11552printf %s "checking if $CC understands -b... " >&6; }
11553if test ${lt_cv_prog_compiler__b+y}
11554then :
11555 printf %s "(cached) " >&6
11556else case e in #(
11557 e) lt_cv_prog_compiler__b=no
11558 save_LDFLAGS=$LDFLAGS
11559 LDFLAGS="$LDFLAGS -b"
11560 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11561 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11562 # The linker can only warn and ignore the option if not recognized
11563 # So say no if there are warnings
11564 if test -s conftest.err; then
11565 # Append any errors to the config.log.
11566 cat conftest.err 1>&5
11567 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11568 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11569 if diff conftest.exp conftest.er2 >/dev/null; then
11570 lt_cv_prog_compiler__b=yes
11571 fi
11572 else
11573 lt_cv_prog_compiler__b=yes
11574 fi
11575 fi
11576 $RM -r conftest*
11577 LDFLAGS=$save_LDFLAGS
11578 ;;
11579esac
11580fi
11581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11582printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11583
11584if test yes = "$lt_cv_prog_compiler__b"; then
11585 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11586else
11587 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11588fi
11589
11590 ;;
11591 esac
11592 fi
11593 if test no = "$with_gnu_ld"; then
11594 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11595 hardcode_libdir_separator=:
11596
11597 case $host_cpu in
11598 hppa*64*|ia64*)
11599 hardcode_direct=no
11600 hardcode_shlibpath_var=no
11601 ;;
11602 *)
11603 hardcode_direct=yes
11604 hardcode_direct_absolute=yes
11605 export_dynamic_flag_spec='$wl-E'
11606
11607 # hardcode_minus_L: Not really in the search PATH,
11608 # but as the default location of the library.
11609 hardcode_minus_L=yes
11610 ;;
11611 esac
11612 fi
11613 ;;
11614
11615 irix5* | irix6* | nonstopux*)
11616 if test yes = "$GCC"; then
11617 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11618 # Try to use the -exported_symbol ld option, if it does not
11619 # work, assume that -exports_file does not work either and
11620 # implicitly export all symbols.
11621 # This should be the same for all languages, so no per-tag cache variable.
11622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11623printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11624if test ${lt_cv_irix_exported_symbol+y}
11625then :
11626 printf %s "(cached) " >&6
11627else case e in #(
11628 e) save_LDFLAGS=$LDFLAGS
11629 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11631/* end confdefs.h. */
11632int foo (void) { return 0; }
11633_ACEOF
11634if ac_fn_c_try_link "$LINENO"
11635then :
11636 lt_cv_irix_exported_symbol=yes
11637else case e in #(
11638 e) lt_cv_irix_exported_symbol=no ;;
11639esac
11640fi
11641rm -f core conftest.err conftest.$ac_objext conftest.beam \
11642 conftest$ac_exeext conftest.$ac_ext
11643 LDFLAGS=$save_LDFLAGS ;;
11644esac
11645fi
11646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11647printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11648 if test yes = "$lt_cv_irix_exported_symbol"; then
11649 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
11650 fi
11651 else
11652 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11653 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
11654 fi
11655 archive_cmds_need_lc='no'
11656 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11657 hardcode_libdir_separator=:
11658 inherit_rpath=yes
11659 link_all_deplibs=yes
11660 ;;
11661
11662 linux*)
11663 case $cc_basename in
11664 tcc*)
11665 # Fabrice Bellard et al's Tiny C Compiler
11666 ld_shlibs=yes
11667 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11668 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11669 ;;
11670 esac
11671 ;;
11672
11673 *-mlibc)
11674 ;;
11675
11676 netbsd* | netbsdelf*-gnu)
11677 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11678 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11679 else
11680 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11681 fi
11682 hardcode_libdir_flag_spec='-R$libdir'
11683 hardcode_direct=yes
11684 hardcode_shlibpath_var=no
11685 ;;
11686
11687 newsos6)
11688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11689 hardcode_direct=yes
11690 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11691 hardcode_libdir_separator=:
11692 hardcode_shlibpath_var=no
11693 ;;
11694
11695 *nto* | *qnx*)
11696 ;;
11697
11698 openbsd*)
11699 if test -f /usr/libexec/ld.so; then
11700 hardcode_direct=yes
11701 hardcode_shlibpath_var=no
11702 hardcode_direct_absolute=yes
11703 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11704 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11705 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11706 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11707 export_dynamic_flag_spec='$wl-E'
11708 else
11709 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11710 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11711 fi
11712 else
11713 ld_shlibs=no
11714 fi
11715 ;;
11716
11717 os2*)
11718 hardcode_libdir_flag_spec='-L$libdir'
11719 hardcode_minus_L=yes
11720 allow_undefined_flag=unsupported
11721 shrext_cmds=.dll
11722 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11723 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11724 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11725 $ECHO EXPORTS >> $output_objdir/$libname.def~
11726 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11727 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11728 emximp -o $lib $output_objdir/$libname.def'
11729 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11730 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11731 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11732 $ECHO EXPORTS >> $output_objdir/$libname.def~
11733 prefix_cmds="$SED"~
11734 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11735 prefix_cmds="$prefix_cmds -e 1d";
11736 fi~
11737 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11738 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11739 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11740 emximp -o $lib $output_objdir/$libname.def'
11741 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11742 enable_shared_with_static_runtimes=yes
11743 file_list_spec='@'
11744 ;;
11745
11746 osf3*)
11747 if test yes = "$GCC"; then
11748 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11749 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11750 else
11751 allow_undefined_flag=' -expect_unresolved \*'
11752 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11753 fi
11754 archive_cmds_need_lc='no'
11755 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11756 hardcode_libdir_separator=:
11757 ;;
11758
11759 osf4* | osf5*) # as osf3* with the addition of -msym flag
11760 if test yes = "$GCC"; then
11761 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11762 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11763 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11764 else
11765 allow_undefined_flag=' -expect_unresolved \*'
11766 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11767 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11768 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
11769
11770 # Both c and cxx compiler support -rpath directly
11771 hardcode_libdir_flag_spec='-rpath $libdir'
11772 fi
11773 archive_cmds_need_lc='no'
11774 hardcode_libdir_separator=:
11775 ;;
11776
11777 serenity*)
11778 ;;
11779
11780 solaris*)
11781 no_undefined_flag=' -z defs'
11782 if test yes = "$GCC"; then
11783 wlarc='$wl'
11784 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11785 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11786 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11787 else
11788 case `$CC -V 2>&1` in
11789 *"Compilers 5.0"*)
11790 wlarc=''
11791 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11792 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11793 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11794 ;;
11795 *)
11796 wlarc='$wl'
11797 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11798 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11799 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11800 ;;
11801 esac
11802 fi
11803 hardcode_libdir_flag_spec='-R$libdir'
11804 hardcode_shlibpath_var=no
11805 case $host_os in
11806 solaris2.[0-5] | solaris2.[0-5].*) ;;
11807 *)
11808 # The compiler driver will combine and reorder linker options,
11809 # but understands '-z linker_flag'. GCC discards it without '$wl',
11810 # but is careful enough not to reorder.
11811 # Supported since Solaris 2.6 (maybe 2.5.1?)
11812 if test yes = "$GCC"; then
11813 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11814 else
11815 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11816 fi
11817 ;;
11818 esac
11819 link_all_deplibs=yes
11820 ;;
11821
11822 sunos4*)
11823 if test sequent = "$host_vendor"; then
11824 # Use $CC to link under sequent, because it throws in some extra .o
11825 # files that make .init and .fini sections work.
11826 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11827 else
11828 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11829 fi
11830 hardcode_libdir_flag_spec='-L$libdir'
11831 hardcode_direct=yes
11832 hardcode_minus_L=yes
11833 hardcode_shlibpath_var=no
11834 ;;
11835
11836 sysv4)
11837 case $host_vendor in
11838 sni)
11839 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11840 hardcode_direct=yes # is this really true???
11841 ;;
11842 siemens)
11843 ## LD is ld it makes a PLAMLIB
11844 ## CC just makes a GrossModule.
11845 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11846 reload_cmds='$CC -r -o $output$reload_objs'
11847 hardcode_direct=no
11848 ;;
11849 motorola)
11850 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11851 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11852 ;;
11853 esac
11854 runpath_var='LD_RUN_PATH'
11855 hardcode_shlibpath_var=no
11856 ;;
11857
11858 sysv4.3*)
11859 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11860 hardcode_shlibpath_var=no
11861 export_dynamic_flag_spec='-Bexport'
11862 ;;
11863
11864 sysv4*MP*)
11865 if test -d /usr/nec; then
11866 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11867 hardcode_shlibpath_var=no
11868 runpath_var=LD_RUN_PATH
11869 hardcode_runpath_var=yes
11870 ld_shlibs=yes
11871 fi
11872 ;;
11873
11874 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11875 no_undefined_flag='$wl-z,text'
11876 archive_cmds_need_lc=no
11877 hardcode_shlibpath_var=no
11878 runpath_var='LD_RUN_PATH'
11879
11880 if test yes = "$GCC"; then
11881 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11882 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11883 else
11884 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11885 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11886 fi
11887 ;;
11888
11889 sysv5* | sco3.2v5* | sco5v6*)
11890 # Note: We CANNOT use -z defs as we might desire, because we do not
11891 # link with -lc, and that would cause any symbols used from libc to
11892 # always be unresolved, which means just about no library would
11893 # ever link correctly. If we're not using GNU ld we use -z text
11894 # though, which does catch some bad symbols but isn't as heavy-handed
11895 # as -z defs.
11896 no_undefined_flag='$wl-z,text'
11897 allow_undefined_flag='$wl-z,nodefs'
11898 archive_cmds_need_lc=no
11899 hardcode_shlibpath_var=no
11900 hardcode_libdir_flag_spec='$wl-R,$libdir'
11901 hardcode_libdir_separator=':'
11902 link_all_deplibs=yes
11903 export_dynamic_flag_spec='$wl-Bexport'
11904 runpath_var='LD_RUN_PATH'
11905
11906 if test yes = "$GCC"; then
11907 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11908 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11909 else
11910 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11911 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11912 fi
11913 ;;
11914
11915 uts4*)
11916 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11917 hardcode_libdir_flag_spec='-L$libdir'
11918 hardcode_shlibpath_var=no
11919 ;;
11920
11921 *)
11922 ld_shlibs=no
11923 ;;
11924 esac
11925
11926 if test sni = "$host_vendor"; then
11927 case $host in
11928 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11929 export_dynamic_flag_spec='$wl-Blargedynsym'
11930 ;;
11931 esac
11932 fi
11933 fi
11934
11935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11936printf "%s\n" "$ld_shlibs" >&6; }
11937test no = "$ld_shlibs" && can_build_shared=no
11938
11939with_gnu_ld=$with_gnu_ld
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955#
11956# Do we need to explicitly link libc?
11957#
11958case "x$archive_cmds_need_lc" in
11959x|xyes)
11960 # Assume -lc should be added
11961 archive_cmds_need_lc=yes
11962
11963 if test yes,yes = "$GCC,$enable_shared"; then
11964 case $archive_cmds in
11965 *'~'*)
11966 # FIXME: we may have to deal with multi-command sequences.
11967 ;;
11968 '$CC '*)
11969 # Test whether the compiler implicitly links with -lc since on some
11970 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11971 # to ld, don't add -lc before -lgcc.
11972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11973printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11974if test ${lt_cv_archive_cmds_need_lc+y}
11975then :
11976 printf %s "(cached) " >&6
11977else case e in #(
11978 e) $RM conftest*
11979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11980
11981 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11982 (eval $ac_compile) 2>&5
11983 ac_status=$?
11984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11985 test $ac_status = 0; } 2>conftest.err; then
11986 soname=conftest
11987 lib=conftest
11988 libobjs=conftest.$ac_objext
11989 deplibs=
11990 wl=$lt_prog_compiler_wl
11991 pic_flag=$lt_prog_compiler_pic
11992 compiler_flags=-v
11993 linker_flags=-v
11994 verstring=
11995 output_objdir=.
11996 libname=conftest
11997 lt_save_allow_undefined_flag=$allow_undefined_flag
11998 allow_undefined_flag=
11999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12000 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12001 ac_status=$?
12002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12003 test $ac_status = 0; }
12004 then
12005 lt_cv_archive_cmds_need_lc=no
12006 else
12007 lt_cv_archive_cmds_need_lc=yes
12008 fi
12009 allow_undefined_flag=$lt_save_allow_undefined_flag
12010 else
12011 cat conftest.err 1>&5
12012 fi
12013 $RM conftest*
12014 ;;
12015esac
12016fi
12017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12018printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12019 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12020 ;;
12021 esac
12022 fi
12023 ;;
12024esac
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12178printf %s "checking dynamic linker characteristics... " >&6; }
12179
12180if test yes = "$GCC"; then
12181 case $host_os in
12182 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12183 *) lt_awk_arg='/^libraries:/' ;;
12184 esac
12185 case $host_os in
12186 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12187 *) lt_sed_strip_eq='s|=/|/|g' ;;
12188 esac
12189 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12190 case $lt_search_path_spec in
12191 *\;*)
12192 # if the path contains ";" then we assume it to be the separator
12193 # otherwise default to the standard path separator (i.e. ":") - it is
12194 # assumed that no part of a normal pathname contains ";" but that should
12195 # okay in the real world where ";" in dirpaths is itself problematic.
12196 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12197 ;;
12198 *)
12199 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12200 ;;
12201 esac
12202 # Ok, now we have the path, separated by spaces, we can step through it
12203 # and add multilib dir if necessary...
12204 lt_tmp_lt_search_path_spec=
12205 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12206 # ...but if some path component already ends with the multilib dir we assume
12207 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12208 case "$lt_multi_os_dir; $lt_search_path_spec " in
12209 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12210 lt_multi_os_dir=
12211 ;;
12212 esac
12213 for lt_sys_path in $lt_search_path_spec; do
12214 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12215 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12216 elif test -n "$lt_multi_os_dir"; then
12217 test -d "$lt_sys_path" && \
12218 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12219 fi
12220 done
12221 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12222BEGIN {RS = " "; FS = "/|\n";} {
12223 lt_foo = "";
12224 lt_count = 0;
12225 for (lt_i = NF; lt_i > 0; lt_i--) {
12226 if ($lt_i != "" && $lt_i != ".") {
12227 if ($lt_i == "..") {
12228 lt_count++;
12229 } else {
12230 if (lt_count == 0) {
12231 lt_foo = "/" $lt_i lt_foo;
12232 } else {
12233 lt_count--;
12234 }
12235 }
12236 }
12237 }
12238 if (lt_foo != "") { lt_freq[lt_foo]++; }
12239 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12240}'`
12241 # AWK program above erroneously prepends '/' to C:/dos/paths
12242 # for these hosts.
12243 case $host_os in
12244 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12245 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12246 esac
12247 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12248else
12249 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12250fi
12251library_names_spec=
12252libname_spec='lib$name'
12253soname_spec=
12254shrext_cmds=.so
12255postinstall_cmds=
12256postuninstall_cmds=
12257finish_cmds=
12258finish_eval=
12259shlibpath_var=
12260shlibpath_overrides_runpath=unknown
12261version_type=none
12262dynamic_linker="$host_os ld.so"
12263sys_lib_dlsearch_path_spec="/lib /usr/lib"
12264need_lib_prefix=unknown
12265hardcode_into_libs=no
12266
12267# when you set need_version to no, make sure it does not cause -set_version
12268# flags to be left without arguments
12269need_version=unknown
12270
12271
12272
12273case $host_os in
12274aix3*)
12275 version_type=linux # correct to gnu/linux during the next big refactor
12276 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12277 shlibpath_var=LIBPATH
12278
12279 # AIX 3 has no versioning support, so we append a major version to the name.
12280 soname_spec='$libname$release$shared_ext$major'
12281 ;;
12282
12283aix[4-9]*)
12284 version_type=linux # correct to gnu/linux during the next big refactor
12285 need_lib_prefix=no
12286 need_version=no
12287 hardcode_into_libs=yes
12288 if test ia64 = "$host_cpu"; then
12289 # AIX 5 supports IA64
12290 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12291 shlibpath_var=LD_LIBRARY_PATH
12292 else
12293 # With GCC up to 2.95.x, collect2 would create an import file
12294 # for dependence libraries. The import file would start with
12295 # the line '#! .'. This would cause the generated library to
12296 # depend on '.', always an invalid library. This was fixed in
12297 # development snapshots of GCC prior to 3.0.
12298 case $host_os in
12299 aix4 | aix4.[01] | aix4.[01].*)
12300 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12301 echo ' yes '
12302 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12303 :
12304 else
12305 can_build_shared=no
12306 fi
12307 ;;
12308 esac
12309 # Using Import Files as archive members, it is possible to support
12310 # filename-based versioning of shared library archives on AIX. While
12311 # this would work for both with and without runtime linking, it will
12312 # prevent static linking of such archives. So we do filename-based
12313 # shared library versioning with .so extension only, which is used
12314 # when both runtime linking and shared linking is enabled.
12315 # Unfortunately, runtime linking may impact performance, so we do
12316 # not want this to be the default eventually. Also, we use the
12317 # versioned .so libs for executables only if there is the -brtl
12318 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
12319 # To allow for filename-based versioning support, we need to create
12320 # libNAME.so.V as an archive file, containing:
12321 # *) an Import File, referring to the versioned filename of the
12322 # archive as well as the shared archive member, telling the
12323 # bitwidth (32 or 64) of that shared object, and providing the
12324 # list of exported symbols of that shared object, eventually
12325 # decorated with the 'weak' keyword
12326 # *) the shared object with the F_LOADONLY flag set, to really avoid
12327 # it being seen by the linker.
12328 # At run time we better use the real file rather than another symlink,
12329 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12330
12331 case $with_aix_soname,$aix_use_runtimelinking in
12332 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12333 # soname into executable. Probably we can add versioning support to
12334 # collect2, so additional links can be useful in future.
12335 aix,yes) # traditional libtool
12336 dynamic_linker='AIX unversionable lib.so'
12337 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12338 # instead of lib<name>.a to let people know that these are not
12339 # typical AIX shared libraries.
12340 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12341 ;;
12342 aix,no) # traditional AIX only
12343 dynamic_linker='AIX lib.a(lib.so.V)'
12344 # We preserve .a as extension for shared libraries through AIX4.2
12345 # and later when we are not doing run time linking.
12346 library_names_spec='$libname$release.a $libname.a'
12347 soname_spec='$libname$release$shared_ext$major'
12348 ;;
12349 svr4,*) # full svr4 only
12350 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12351 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12352 # We do not specify a path in Import Files, so LIBPATH fires.
12353 shlibpath_overrides_runpath=yes
12354 ;;
12355 *,yes) # both, prefer svr4
12356 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12357 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12358 # unpreferred sharedlib libNAME.a needs extra handling
12359 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12360 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12361 # We do not specify a path in Import Files, so LIBPATH fires.
12362 shlibpath_overrides_runpath=yes
12363 ;;
12364 *,no) # both, prefer aix
12365 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12366 library_names_spec='$libname$release.a $libname.a'
12367 soname_spec='$libname$release$shared_ext$major'
12368 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12369 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12370 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12371 ;;
12372 esac
12373 shlibpath_var=LIBPATH
12374 fi
12375 ;;
12376
12377amigaos*)
12378 case $host_cpu in
12379 powerpc)
12380 # Since July 2007 AmigaOS4 officially supports .so libraries.
12381 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12382 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12383 ;;
12384 m68k)
12385 library_names_spec='$libname.ixlibrary $libname.a'
12386 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12387 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12388 ;;
12389 esac
12390 ;;
12391
12392beos*)
12393 library_names_spec='$libname$shared_ext'
12394 dynamic_linker="$host_os ld.so"
12395 shlibpath_var=LIBRARY_PATH
12396 ;;
12397
12398bsdi[45]*)
12399 version_type=linux # correct to gnu/linux during the next big refactor
12400 need_version=no
12401 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12402 soname_spec='$libname$release$shared_ext$major'
12403 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12404 shlibpath_var=LD_LIBRARY_PATH
12405 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12406 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12407 # the default ld.so.conf also contains /usr/contrib/lib and
12408 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12409 # libtool to hard-code these into programs
12410 ;;
12411
12412cygwin* | mingw* | windows* | pw32* | cegcc*)
12413 version_type=windows
12414 shrext_cmds=.dll
12415 need_version=no
12416 need_lib_prefix=no
12417
12418 case $GCC,$cc_basename in
12419 yes,*)
12420 # gcc
12421 library_names_spec='$libname.dll.a'
12422 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12423 # If user builds GCC with multilib enabled,
12424 # it should just install on $(libdir)
12425 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
12426 if test xyes = x"$multilib"; then
12427 postinstall_cmds='base_file=`basename \$file`~
12428 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12429 dldir=$destdir/`dirname \$dlpath`~
12430 $install_prog $dir/$dlname $destdir/$dlname~
12431 chmod a+x $destdir/$dlname~
12432 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12433 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
12434 fi'
12435 else
12436 postinstall_cmds='base_file=`basename \$file`~
12437 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12438 dldir=$destdir/`dirname \$dlpath`~
12439 test -d \$dldir || mkdir -p \$dldir~
12440 $install_prog $dir/$dlname \$dldir/$dlname~
12441 chmod a+x \$dldir/$dlname~
12442 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12443 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12444 fi'
12445 fi
12446 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12447 dlpath=$dir/\$dldll~
12448 $RM \$dlpath'
12449 shlibpath_overrides_runpath=yes
12450
12451 case $host_os in
12452 cygwin*)
12453 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12454 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12455
12456 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12457 ;;
12458 mingw* | windows* | cegcc*)
12459 # MinGW DLLs use traditional 'lib' prefix
12460 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12461 ;;
12462 pw32*)
12463 # pw32 DLLs use 'pw' prefix rather than 'lib'
12464 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12465 ;;
12466 esac
12467 dynamic_linker='Win32 ld.exe'
12468 ;;
12469
12470 *,cl* | *,icl*)
12471 # Native MSVC or ICC
12472 libname_spec='$name'
12473 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12474 library_names_spec='$libname.dll.lib'
12475
12476 case $build_os in
12477 mingw* | windows*)
12478 sys_lib_search_path_spec=
12479 lt_save_ifs=$IFS
12480 IFS=';'
12481 for lt_path in $LIB
12482 do
12483 IFS=$lt_save_ifs
12484 # Let DOS variable expansion print the short 8.3 style file name.
12485 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12486 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12487 done
12488 IFS=$lt_save_ifs
12489 # Convert to MSYS style.
12490 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12491 ;;
12492 cygwin*)
12493 # Convert to unix form, then to dos form, then back to unix form
12494 # but this time dos style (no spaces!) so that the unix form looks
12495 # like /cygdrive/c/PROGRA~1:/cygdr...
12496 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12497 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12498 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12499 ;;
12500 *)
12501 sys_lib_search_path_spec=$LIB
12502 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12503 # It is most probably a Windows format PATH.
12504 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12505 else
12506 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12507 fi
12508 # FIXME: find the short name or the path components, as spaces are
12509 # common. (e.g. "Program Files" -> "PROGRA~1")
12510 ;;
12511 esac
12512
12513 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12514 postinstall_cmds='base_file=`basename \$file`~
12515 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12516 dldir=$destdir/`dirname \$dlpath`~
12517 test -d \$dldir || mkdir -p \$dldir~
12518 $install_prog $dir/$dlname \$dldir/$dlname'
12519 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12520 dlpath=$dir/\$dldll~
12521 $RM \$dlpath'
12522 shlibpath_overrides_runpath=yes
12523 dynamic_linker='Win32 link.exe'
12524 ;;
12525
12526 *)
12527 # Assume MSVC and ICC wrapper
12528 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12529 dynamic_linker='Win32 ld.exe'
12530 ;;
12531 esac
12532 # FIXME: first we should search . and the directory the executable is in
12533 shlibpath_var=PATH
12534 ;;
12535
12536darwin* | rhapsody*)
12537 dynamic_linker="$host_os dyld"
12538 version_type=darwin
12539 need_lib_prefix=no
12540 need_version=no
12541 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12542 soname_spec='$libname$release$major$shared_ext'
12543 shlibpath_overrides_runpath=yes
12544 shlibpath_var=DYLD_LIBRARY_PATH
12545 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12546
12547 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12548 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12549 ;;
12550
12551dgux*)
12552 version_type=linux # correct to gnu/linux during the next big refactor
12553 need_lib_prefix=no
12554 need_version=no
12555 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12556 soname_spec='$libname$release$shared_ext$major'
12557 shlibpath_var=LD_LIBRARY_PATH
12558 ;;
12559
12560freebsd* | dragonfly* | midnightbsd*)
12561 # DragonFly does not have aout. When/if they implement a new
12562 # versioning mechanism, adjust this.
12563 if test -x /usr/bin/objformat; then
12564 objformat=`/usr/bin/objformat`
12565 else
12566 case $host_os in
12567 freebsd[23].*) objformat=aout ;;
12568 *) objformat=elf ;;
12569 esac
12570 fi
12571 version_type=freebsd-$objformat
12572 case $version_type in
12573 freebsd-elf*)
12574 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12575 soname_spec='$libname$release$shared_ext$major'
12576 need_version=no
12577 need_lib_prefix=no
12578 ;;
12579 freebsd-*)
12580 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12581 need_version=yes
12582 ;;
12583 esac
12584 case $host_cpu in
12585 powerpc64)
12586 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
12587 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
12588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12589/* end confdefs.h. */
12590int test_pointer_size[sizeof (void *) - 5];
12591
12592_ACEOF
12593if ac_fn_c_try_compile "$LINENO"
12594then :
12595 shlibpath_var=LD_LIBRARY_PATH
12596else case e in #(
12597 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
12598esac
12599fi
12600rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12601 ;;
12602 *)
12603 shlibpath_var=LD_LIBRARY_PATH
12604 ;;
12605 esac
12606 case $host_os in
12607 freebsd2.*)
12608 shlibpath_overrides_runpath=yes
12609 ;;
12610 freebsd3.[01]* | freebsdelf3.[01]*)
12611 shlibpath_overrides_runpath=yes
12612 hardcode_into_libs=yes
12613 ;;
12614 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12615 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12616 shlibpath_overrides_runpath=no
12617 hardcode_into_libs=yes
12618 ;;
12619 *) # from 4.6 on, and DragonFly
12620 shlibpath_overrides_runpath=yes
12621 hardcode_into_libs=yes
12622 ;;
12623 esac
12624 ;;
12625
12626haiku*)
12627 version_type=linux # correct to gnu/linux during the next big refactor
12628 need_lib_prefix=no
12629 need_version=no
12630 dynamic_linker="$host_os runtime_loader"
12631 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12632 soname_spec='$libname$release$shared_ext$major'
12633 shlibpath_var=LIBRARY_PATH
12634 shlibpath_overrides_runpath=no
12635 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
12636 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
12637 hardcode_into_libs=no
12638 ;;
12639
12640hpux9* | hpux10* | hpux11*)
12641 # Give a soname corresponding to the major version so that dld.sl refuses to
12642 # link against other versions.
12643 version_type=sunos
12644 need_lib_prefix=no
12645 need_version=no
12646 case $host_cpu in
12647 ia64*)
12648 shrext_cmds='.so'
12649 hardcode_into_libs=yes
12650 dynamic_linker="$host_os dld.so"
12651 shlibpath_var=LD_LIBRARY_PATH
12652 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12653 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12654 soname_spec='$libname$release$shared_ext$major'
12655 if test 32 = "$HPUX_IA64_MODE"; then
12656 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12657 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12658 else
12659 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12660 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12661 fi
12662 ;;
12663 hppa*64*)
12664 shrext_cmds='.sl'
12665 hardcode_into_libs=yes
12666 dynamic_linker="$host_os dld.sl"
12667 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12668 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12669 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12670 soname_spec='$libname$release$shared_ext$major'
12671 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12672 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12673 ;;
12674 *)
12675 shrext_cmds='.sl'
12676 dynamic_linker="$host_os dld.sl"
12677 shlibpath_var=SHLIB_PATH
12678 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12679 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12680 soname_spec='$libname$release$shared_ext$major'
12681 ;;
12682 esac
12683 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12684 postinstall_cmds='chmod 555 $lib'
12685 # or fails outright, so override atomically:
12686 install_override_mode=555
12687 ;;
12688
12689interix[3-9]*)
12690 version_type=linux # correct to gnu/linux during the next big refactor
12691 need_lib_prefix=no
12692 need_version=no
12693 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12694 soname_spec='$libname$release$shared_ext$major'
12695 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12696 shlibpath_var=LD_LIBRARY_PATH
12697 shlibpath_overrides_runpath=no
12698 hardcode_into_libs=yes
12699 ;;
12700
12701irix5* | irix6* | nonstopux*)
12702 case $host_os in
12703 nonstopux*) version_type=nonstopux ;;
12704 *)
12705 if test yes = "$lt_cv_prog_gnu_ld"; then
12706 version_type=linux # correct to gnu/linux during the next big refactor
12707 else
12708 version_type=irix
12709 fi ;;
12710 esac
12711 need_lib_prefix=no
12712 need_version=no
12713 soname_spec='$libname$release$shared_ext$major'
12714 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12715 case $host_os in
12716 irix5* | nonstopux*)
12717 libsuff= shlibsuff=
12718 ;;
12719 *)
12720 case $LD in # libtool.m4 will add one of these switches to LD
12721 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12722 libsuff= shlibsuff= libmagic=32-bit;;
12723 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12724 libsuff=32 shlibsuff=N32 libmagic=N32;;
12725 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12726 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12727 *) libsuff= shlibsuff= libmagic=never-match;;
12728 esac
12729 ;;
12730 esac
12731 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12732 shlibpath_overrides_runpath=no
12733 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12734 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12735 hardcode_into_libs=yes
12736 ;;
12737
12738# No shared lib support for Linux oldld, aout, or coff.
12739linux*oldld* | linux*aout* | linux*coff*)
12740 dynamic_linker=no
12741 ;;
12742
12743linux*android*)
12744 version_type=none # Android doesn't support versioned libraries.
12745 need_lib_prefix=no
12746 need_version=no
12747 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
12748 soname_spec='$libname$release$shared_ext'
12749 finish_cmds=
12750 shlibpath_var=LD_LIBRARY_PATH
12751 shlibpath_overrides_runpath=yes
12752
12753 # This implies no fast_install, which is unacceptable.
12754 # Some rework will be needed to allow for fast_install
12755 # before this can be enabled.
12756 hardcode_into_libs=yes
12757
12758 dynamic_linker='Android linker'
12759 # -rpath works at least for libraries that are not overridden by
12760 # libraries installed in system locations.
12761 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12762 ;;
12763
12764# This must be glibc/ELF.
12765linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12766 version_type=linux # correct to gnu/linux during the next big refactor
12767 need_lib_prefix=no
12768 need_version=no
12769 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12770 soname_spec='$libname$release$shared_ext$major'
12771 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12772 shlibpath_var=LD_LIBRARY_PATH
12773 shlibpath_overrides_runpath=no
12774
12775 # Some binutils ld are patched to set DT_RUNPATH
12776 if test ${lt_cv_shlibpath_overrides_runpath+y}
12777then :
12778 printf %s "(cached) " >&6
12779else case e in #(
12780 e) lt_cv_shlibpath_overrides_runpath=no
12781 save_LDFLAGS=$LDFLAGS
12782 save_libdir=$libdir
12783 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12784 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12786/* end confdefs.h. */
12787
12788int
12789main (void)
12790{
12791
12792 ;
12793 return 0;
12794}
12795_ACEOF
12796if ac_fn_c_try_link "$LINENO"
12797then :
12798 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12799then :
12800 lt_cv_shlibpath_overrides_runpath=yes
12801fi
12802fi
12803rm -f core conftest.err conftest.$ac_objext conftest.beam \
12804 conftest$ac_exeext conftest.$ac_ext
12805 LDFLAGS=$save_LDFLAGS
12806 libdir=$save_libdir
12807 ;;
12808esac
12809fi
12810
12811 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12812
12813 # This implies no fast_install, which is unacceptable.
12814 # Some rework will be needed to allow for fast_install
12815 # before this can be enabled.
12816 hardcode_into_libs=yes
12817
12818 # Ideally, we could use ldconfig to report *all* directories which are
12819 # searched for libraries, however this is still not possible. Aside from not
12820 # being certain /sbin/ldconfig is available, command
12821 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12822 # even though it is searched at run-time. Try to do the best guess by
12823 # appending ld.so.conf contents (and includes) to the search path.
12824 if test -f /etc/ld.so.conf; then
12825 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12826 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12827 fi
12828
12829 # We used to test for /lib/ld.so.1 and disable shared libraries on
12830 # powerpc, because MkLinux only supported shared libraries with the
12831 # GNU dynamic linker. Since this was broken with cross compilers,
12832 # most powerpc-linux boxes support dynamic linking these days and
12833 # people can always --disable-shared, the test was removed, and we
12834 # assume the GNU/Linux dynamic linker is in use.
12835 dynamic_linker='GNU/Linux ld.so'
12836 ;;
12837
12838netbsdelf*-gnu)
12839 version_type=linux
12840 need_lib_prefix=no
12841 need_version=no
12842 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12843 soname_spec='$libname$release$shared_ext$major'
12844 shlibpath_var=LD_LIBRARY_PATH
12845 shlibpath_overrides_runpath=no
12846 hardcode_into_libs=yes
12847 dynamic_linker='NetBSD ld.elf_so'
12848 ;;
12849
12850netbsd*)
12851 version_type=sunos
12852 need_lib_prefix=no
12853 need_version=no
12854 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12855 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12856 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12857 dynamic_linker='NetBSD (a.out) ld.so'
12858 else
12859 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12860 soname_spec='$libname$release$shared_ext$major'
12861 dynamic_linker='NetBSD ld.elf_so'
12862 fi
12863 shlibpath_var=LD_LIBRARY_PATH
12864 shlibpath_overrides_runpath=yes
12865 hardcode_into_libs=yes
12866 ;;
12867
12868*-mlibc)
12869 version_type=linux # correct to gnu/linux during the next big refactor
12870 need_lib_prefix=no
12871 need_version=no
12872 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12873 soname_spec='$libname$release$shared_ext$major'
12874 dynamic_linker='mlibc ld.so'
12875 shlibpath_var=LD_LIBRARY_PATH
12876 shlibpath_overrides_runpath=no
12877 hardcode_into_libs=yes
12878 ;;
12879
12880newsos6)
12881 version_type=linux # correct to gnu/linux during the next big refactor
12882 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12883 shlibpath_var=LD_LIBRARY_PATH
12884 shlibpath_overrides_runpath=yes
12885 ;;
12886
12887*nto* | *qnx*)
12888 version_type=qnx
12889 need_lib_prefix=no
12890 need_version=no
12891 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12892 soname_spec='$libname$release$shared_ext$major'
12893 shlibpath_var=LD_LIBRARY_PATH
12894 shlibpath_overrides_runpath=no
12895 hardcode_into_libs=yes
12896 dynamic_linker='ldqnx.so'
12897 ;;
12898
12899openbsd*)
12900 version_type=sunos
12901 sys_lib_dlsearch_path_spec=/usr/lib
12902 need_lib_prefix=no
12903 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12904 need_version=no
12905 else
12906 need_version=yes
12907 fi
12908 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12909 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12910 shlibpath_var=LD_LIBRARY_PATH
12911 shlibpath_overrides_runpath=yes
12912 ;;
12913
12914os2*)
12915 libname_spec='$name'
12916 version_type=windows
12917 shrext_cmds=.dll
12918 need_version=no
12919 need_lib_prefix=no
12920 # OS/2 can only load a DLL with a base name of 8 characters or less.
12921 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12922 v=$($ECHO $release$versuffix | tr -d .-);
12923 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12924 $ECHO $n$v`$shared_ext'
12925 library_names_spec='${libname}_dll.$libext'
12926 dynamic_linker='OS/2 ld.exe'
12927 shlibpath_var=BEGINLIBPATH
12928 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12929 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12930 postinstall_cmds='base_file=`basename \$file`~
12931 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12932 dldir=$destdir/`dirname \$dlpath`~
12933 test -d \$dldir || mkdir -p \$dldir~
12934 $install_prog $dir/$dlname \$dldir/$dlname~
12935 chmod a+x \$dldir/$dlname~
12936 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12937 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12938 fi'
12939 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12940 dlpath=$dir/\$dldll~
12941 $RM \$dlpath'
12942 ;;
12943
12944osf3* | osf4* | osf5*)
12945 version_type=osf
12946 need_lib_prefix=no
12947 need_version=no
12948 soname_spec='$libname$release$shared_ext$major'
12949 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12950 shlibpath_var=LD_LIBRARY_PATH
12951 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12952 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12953 ;;
12954
12955rdos*)
12956 dynamic_linker=no
12957 ;;
12958
12959serenity*)
12960 version_type=linux # correct to gnu/linux during the next big refactor
12961 need_lib_prefix=no
12962 need_version=no
12963 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12964 soname_spec='$libname$release$shared_ext$major'
12965 shlibpath_var=LD_LIBRARY_PATH
12966 shlibpath_overrides_runpath=no
12967 dynamic_linker='SerenityOS LibELF'
12968 ;;
12969
12970solaris*)
12971 version_type=linux # correct to gnu/linux during the next big refactor
12972 need_lib_prefix=no
12973 need_version=no
12974 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12975 soname_spec='$libname$release$shared_ext$major'
12976 shlibpath_var=LD_LIBRARY_PATH
12977 shlibpath_overrides_runpath=yes
12978 hardcode_into_libs=yes
12979 # ldd complains unless libraries are executable
12980 postinstall_cmds='chmod +x $lib'
12981 ;;
12982
12983sunos4*)
12984 version_type=sunos
12985 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12986 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12987 shlibpath_var=LD_LIBRARY_PATH
12988 shlibpath_overrides_runpath=yes
12989 if test yes = "$with_gnu_ld"; then
12990 need_lib_prefix=no
12991 fi
12992 need_version=yes
12993 ;;
12994
12995sysv4 | sysv4.3*)
12996 version_type=linux # correct to gnu/linux during the next big refactor
12997 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12998 soname_spec='$libname$release$shared_ext$major'
12999 shlibpath_var=LD_LIBRARY_PATH
13000 case $host_vendor in
13001 sni)
13002 shlibpath_overrides_runpath=no
13003 need_lib_prefix=no
13004 runpath_var=LD_RUN_PATH
13005 ;;
13006 siemens)
13007 need_lib_prefix=no
13008 ;;
13009 motorola)
13010 need_lib_prefix=no
13011 need_version=no
13012 shlibpath_overrides_runpath=no
13013 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13014 ;;
13015 esac
13016 ;;
13017
13018sysv4*MP*)
13019 if test -d /usr/nec; then
13020 version_type=linux # correct to gnu/linux during the next big refactor
13021 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13022 soname_spec='$libname$shared_ext.$major'
13023 shlibpath_var=LD_LIBRARY_PATH
13024 fi
13025 ;;
13026
13027sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13028 version_type=sco
13029 need_lib_prefix=no
13030 need_version=no
13031 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13032 soname_spec='$libname$release$shared_ext$major'
13033 shlibpath_var=LD_LIBRARY_PATH
13034 shlibpath_overrides_runpath=yes
13035 hardcode_into_libs=yes
13036 if test yes = "$with_gnu_ld"; then
13037 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13038 else
13039 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13040 case $host_os in
13041 sco3.2v5*)
13042 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13043 ;;
13044 esac
13045 fi
13046 sys_lib_dlsearch_path_spec='/usr/lib'
13047 ;;
13048
13049tpf*)
13050 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13051 version_type=linux # correct to gnu/linux during the next big refactor
13052 need_lib_prefix=no
13053 need_version=no
13054 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13055 shlibpath_var=LD_LIBRARY_PATH
13056 shlibpath_overrides_runpath=no
13057 hardcode_into_libs=yes
13058 ;;
13059
13060uts4*)
13061 version_type=linux # correct to gnu/linux during the next big refactor
13062 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13063 soname_spec='$libname$release$shared_ext$major'
13064 shlibpath_var=LD_LIBRARY_PATH
13065 ;;
13066
13067emscripten*)
13068 version_type=none
13069 need_lib_prefix=no
13070 need_version=no
13071 library_names_spec='$libname$release$shared_ext'
13072 soname_spec='$libname$release$shared_ext'
13073 finish_cmds=
13074 dynamic_linker="Emscripten linker"
13075 lt_prog_compiler_wl=
13076lt_prog_compiler_pic=
13077lt_prog_compiler_static=
13078
13079
13080 if test yes = "$GCC"; then
13081 lt_prog_compiler_wl='-Wl,'
13082 lt_prog_compiler_static='-static'
13083
13084 case $host_os in
13085 aix*)
13086 # All AIX code is PIC.
13087 if test ia64 = "$host_cpu"; then
13088 # AIX 5 now supports IA64 processor
13089 lt_prog_compiler_static='-Bstatic'
13090 fi
13091 lt_prog_compiler_pic='-fPIC'
13092 ;;
13093
13094 amigaos*)
13095 case $host_cpu in
13096 powerpc)
13097 # see comment about AmigaOS4 .so support
13098 lt_prog_compiler_pic='-fPIC'
13099 ;;
13100 m68k)
13101 # FIXME: we need at least 68020 code to build shared libraries, but
13102 # adding the '-m68020' flag to GCC prevents building anything better,
13103 # like '-m68040'.
13104 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13105 ;;
13106 esac
13107 ;;
13108
13109 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13110 # PIC is the default for these OSes.
13111 ;;
13112
13113 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13114 # This hack is so that the source file can tell whether it is being
13115 # built for inclusion in a dll (and should export symbols for example).
13116 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13117 # (--disable-auto-import) libraries
13118 lt_prog_compiler_pic='-DDLL_EXPORT'
13119 case $host_os in
13120 os2*)
13121 lt_prog_compiler_static='$wl-static'
13122 ;;
13123 esac
13124 ;;
13125
13126 darwin* | rhapsody*)
13127 # PIC is the default on this platform
13128 # Common symbols not allowed in MH_DYLIB files
13129 lt_prog_compiler_pic='-fno-common'
13130 ;;
13131
13132 haiku*)
13133 # PIC is the default for Haiku.
13134 # The "-static" flag exists, but is broken.
13135 lt_prog_compiler_static=
13136 ;;
13137
13138 hpux*)
13139 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13140 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13141 # sets the default TLS model and affects inlining.
13142 case $host_cpu in
13143 hppa*64*)
13144 # +Z the default
13145 ;;
13146 *)
13147 lt_prog_compiler_pic='-fPIC'
13148 ;;
13149 esac
13150 ;;
13151
13152 interix[3-9]*)
13153 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13154 # Instead, we relocate shared libraries at runtime.
13155 ;;
13156
13157 msdosdjgpp*)
13158 # Just because we use GCC doesn't mean we suddenly get shared libraries
13159 # on systems that don't support them.
13160 lt_prog_compiler_can_build_shared=no
13161 enable_shared=no
13162 ;;
13163
13164 *nto* | *qnx*)
13165 # QNX uses GNU C++, but need to define -shared option too, otherwise
13166 # it will coredump.
13167 lt_prog_compiler_pic='-fPIC -shared'
13168 ;;
13169
13170 sysv4*MP*)
13171 if test -d /usr/nec; then
13172 lt_prog_compiler_pic=-Kconform_pic
13173 fi
13174 ;;
13175
13176 *)
13177 lt_prog_compiler_pic='-fPIC'
13178 ;;
13179 esac
13180
13181 case $cc_basename in
13182 nvcc*) # Cuda Compiler Driver 2.2
13183 lt_prog_compiler_wl='-Xlinker '
13184 if test -n "$lt_prog_compiler_pic"; then
13185 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13186 fi
13187 ;;
13188 esac
13189 else
13190 # PORTME Check for flag to pass linker flags through the system compiler.
13191 case $host_os in
13192 aix*)
13193 lt_prog_compiler_wl='-Wl,'
13194 if test ia64 = "$host_cpu"; then
13195 # AIX 5 now supports IA64 processor
13196 lt_prog_compiler_static='-Bstatic'
13197 else
13198 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13199 fi
13200 ;;
13201
13202 darwin* | rhapsody*)
13203 # PIC is the default on this platform
13204 # Common symbols not allowed in MH_DYLIB files
13205 lt_prog_compiler_pic='-fno-common'
13206 case $cc_basename in
13207 nagfor*)
13208 # NAG Fortran compiler
13209 lt_prog_compiler_wl='-Wl,-Wl,,'
13210 lt_prog_compiler_pic='-PIC'
13211 lt_prog_compiler_static='-Bstatic'
13212 ;;
13213 esac
13214 ;;
13215
13216 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13217 # This hack is so that the source file can tell whether it is being
13218 # built for inclusion in a dll (and should export symbols for example).
13219 lt_prog_compiler_pic='-DDLL_EXPORT'
13220 case $host_os in
13221 os2*)
13222 lt_prog_compiler_static='$wl-static'
13223 ;;
13224 esac
13225 ;;
13226
13227 hpux9* | hpux10* | hpux11*)
13228 lt_prog_compiler_wl='-Wl,'
13229 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13230 # not for PA HP-UX.
13231 case $host_cpu in
13232 hppa*64*|ia64*)
13233 # +Z the default
13234 ;;
13235 *)
13236 lt_prog_compiler_pic='+Z'
13237 ;;
13238 esac
13239 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13240 lt_prog_compiler_static='$wl-a ${wl}archive'
13241 ;;
13242
13243 irix5* | irix6* | nonstopux*)
13244 lt_prog_compiler_wl='-Wl,'
13245 # PIC (with -KPIC) is the default.
13246 lt_prog_compiler_static='-non_shared'
13247 ;;
13248
13249 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13250 case $cc_basename in
13251 # old Intel for x86_64, which still supported -KPIC.
13252 ecc*)
13253 lt_prog_compiler_wl='-Wl,'
13254 lt_prog_compiler_pic='-KPIC'
13255 lt_prog_compiler_static='-static'
13256 ;;
13257 *flang* | ftn | f18* | f95*)
13258 # Flang compiler.
13259 lt_prog_compiler_wl='-Wl,'
13260 lt_prog_compiler_pic='-fPIC'
13261 lt_prog_compiler_static='-static'
13262 ;;
13263 # icc used to be incompatible with GCC.
13264 # ICC 10 doesn't accept -KPIC any more.
13265 icc* | ifort*)
13266 lt_prog_compiler_wl='-Wl,'
13267 lt_prog_compiler_pic='-fPIC'
13268 lt_prog_compiler_static='-static'
13269 ;;
13270 # Lahey Fortran 8.1.
13271 lf95*)
13272 lt_prog_compiler_wl='-Wl,'
13273 lt_prog_compiler_pic='--shared'
13274 lt_prog_compiler_static='--static'
13275 ;;
13276 nagfor*)
13277 # NAG Fortran compiler
13278 lt_prog_compiler_wl='-Wl,-Wl,,'
13279 lt_prog_compiler_pic='-PIC'
13280 lt_prog_compiler_static='-Bstatic'
13281 ;;
13282 tcc*)
13283 # Fabrice Bellard et al's Tiny C Compiler
13284 lt_prog_compiler_wl='-Wl,'
13285 lt_prog_compiler_pic='-fPIC'
13286 lt_prog_compiler_static='-static'
13287 ;;
13288 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13289 # Portland Group compilers (*not* the Pentium gcc compiler,
13290 # which looks to be a dead project)
13291 lt_prog_compiler_wl='-Wl,'
13292 lt_prog_compiler_pic='-fpic'
13293 lt_prog_compiler_static='-Bstatic'
13294 ;;
13295 ccc*)
13296 lt_prog_compiler_wl='-Wl,'
13297 # All Alpha code is PIC.
13298 lt_prog_compiler_static='-non_shared'
13299 ;;
13300 xl* | bgxl* | bgf* | mpixl*)
13301 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13302 lt_prog_compiler_wl='-Wl,'
13303 lt_prog_compiler_pic='-qpic'
13304 lt_prog_compiler_static='-qstaticlink'
13305 ;;
13306 *)
13307 case `$CC -V 2>&1 | $SED 5q` in
13308 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13309 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13310 lt_prog_compiler_pic='-KPIC'
13311 lt_prog_compiler_static='-Bstatic'
13312 lt_prog_compiler_wl=''
13313 ;;
13314 *Sun\ F* | *Sun*Fortran*)
13315 lt_prog_compiler_pic='-KPIC'
13316 lt_prog_compiler_static='-Bstatic'
13317 lt_prog_compiler_wl='-Qoption ld '
13318 ;;
13319 *Sun\ C*)
13320 # Sun C 5.9
13321 lt_prog_compiler_pic='-KPIC'
13322 lt_prog_compiler_static='-Bstatic'
13323 lt_prog_compiler_wl='-Wl,'
13324 ;;
13325 *Intel*\ [CF]*Compiler*)
13326 lt_prog_compiler_wl='-Wl,'
13327 lt_prog_compiler_pic='-fPIC'
13328 lt_prog_compiler_static='-static'
13329 ;;
13330 *Portland\ Group*)
13331 lt_prog_compiler_wl='-Wl,'
13332 lt_prog_compiler_pic='-fpic'
13333 lt_prog_compiler_static='-Bstatic'
13334 ;;
13335 esac
13336 ;;
13337 esac
13338 ;;
13339
13340 newsos6)
13341 lt_prog_compiler_pic='-KPIC'
13342 lt_prog_compiler_static='-Bstatic'
13343 ;;
13344
13345 *-mlibc)
13346 lt_prog_compiler_wl='-Wl,'
13347 lt_prog_compiler_pic='-fPIC'
13348 lt_prog_compiler_static='-static'
13349 ;;
13350
13351 *nto* | *qnx*)
13352 # QNX uses GNU C++, but need to define -shared option too, otherwise
13353 # it will coredump.
13354 lt_prog_compiler_pic='-fPIC -shared'
13355 ;;
13356
13357 osf3* | osf4* | osf5*)
13358 lt_prog_compiler_wl='-Wl,'
13359 # All OSF/1 code is PIC.
13360 lt_prog_compiler_static='-non_shared'
13361 ;;
13362
13363 rdos*)
13364 lt_prog_compiler_static='-non_shared'
13365 ;;
13366
13367 serenity*)
13368 ;;
13369
13370 solaris*)
13371 lt_prog_compiler_pic='-KPIC'
13372 lt_prog_compiler_static='-Bstatic'
13373 case $cc_basename in
13374 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13375 lt_prog_compiler_wl='-Qoption ld ';;
13376 *)
13377 lt_prog_compiler_wl='-Wl,';;
13378 esac
13379 ;;
13380
13381 sunos4*)
13382 lt_prog_compiler_wl='-Qoption ld '
13383 lt_prog_compiler_pic='-PIC'
13384 lt_prog_compiler_static='-Bstatic'
13385 ;;
13386
13387 sysv4 | sysv4.2uw2* | sysv4.3*)
13388 lt_prog_compiler_wl='-Wl,'
13389 lt_prog_compiler_pic='-KPIC'
13390 lt_prog_compiler_static='-Bstatic'
13391 ;;
13392
13393 sysv4*MP*)
13394 if test -d /usr/nec; then
13395 lt_prog_compiler_pic='-Kconform_pic'
13396 lt_prog_compiler_static='-Bstatic'
13397 fi
13398 ;;
13399
13400 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13401 lt_prog_compiler_wl='-Wl,'
13402 lt_prog_compiler_pic='-KPIC'
13403 lt_prog_compiler_static='-Bstatic'
13404 ;;
13405
13406 unicos*)
13407 lt_prog_compiler_wl='-Wl,'
13408 lt_prog_compiler_can_build_shared=no
13409 ;;
13410
13411 uts4*)
13412 lt_prog_compiler_pic='-pic'
13413 lt_prog_compiler_static='-Bstatic'
13414 ;;
13415
13416 *)
13417 lt_prog_compiler_can_build_shared=no
13418 ;;
13419 esac
13420 fi
13421
13422case $host_os in
13423 # For platforms that do not support PIC, -DPIC is meaningless:
13424 *djgpp*)
13425 lt_prog_compiler_pic=
13426 ;;
13427 *)
13428 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13429 ;;
13430esac
13431
13432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13433printf %s "checking for $compiler option to produce PIC... " >&6; }
13434if test ${lt_cv_prog_compiler_pic+y}
13435then :
13436 printf %s "(cached) " >&6
13437else case e in #(
13438 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
13439esac
13440fi
13441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13442printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13443lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13444
13445#
13446# Check to make sure the PIC flag actually works.
13447#
13448if test -n "$lt_prog_compiler_pic"; then
13449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13450printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13451if test ${lt_cv_prog_compiler_pic_works+y}
13452then :
13453 printf %s "(cached) " >&6
13454else case e in #(
13455 e) lt_cv_prog_compiler_pic_works=no
13456 ac_outfile=conftest.$ac_objext
13457 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13458 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13459 # Insert the option either (1) after the last *FLAGS variable, or
13460 # (2) before a word containing "conftest.", or (3) at the end.
13461 # Note that $ac_compile itself does not contain backslashes and begins
13462 # with a dollar sign (not a hyphen), so the echo should work correctly.
13463 # The option is referenced via a variable to avoid confusing sed.
13464 lt_compile=`echo "$ac_compile" | $SED \
13465 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13466 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13467 -e 's:$: $lt_compiler_flag:'`
13468 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13469 (eval "$lt_compile" 2>conftest.err)
13470 ac_status=$?
13471 cat conftest.err >&5
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 if (exit $ac_status) && test -s "$ac_outfile"; then
13474 # The compiler can only warn and ignore the option if not recognized
13475 # So say no if there are warnings other than the usual output.
13476 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13477 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13478 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13479 lt_cv_prog_compiler_pic_works=yes
13480 fi
13481 fi
13482 $RM conftest*
13483 ;;
13484esac
13485fi
13486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13487printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13488
13489if test yes = "$lt_cv_prog_compiler_pic_works"; then
13490 case $lt_prog_compiler_pic in
13491 "" | " "*) ;;
13492 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13493 esac
13494else
13495 lt_prog_compiler_pic=
13496 lt_prog_compiler_can_build_shared=no
13497fi
13498
13499fi
13500
13501
13502
13503
13504
13505#
13506# Check to make sure the static flag actually works.
13507#
13508wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13510printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13511if test ${lt_cv_prog_compiler_static_works+y}
13512then :
13513 printf %s "(cached) " >&6
13514else case e in #(
13515 e) lt_cv_prog_compiler_static_works=no
13516 save_LDFLAGS=$LDFLAGS
13517 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13518 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13519 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13520 # The linker can only warn and ignore the option if not recognized
13521 # So say no if there are warnings
13522 if test -s conftest.err; then
13523 # Append any errors to the config.log.
13524 cat conftest.err 1>&5
13525 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13526 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13527 if diff conftest.exp conftest.er2 >/dev/null; then
13528 lt_cv_prog_compiler_static_works=yes
13529 fi
13530 else
13531 lt_cv_prog_compiler_static_works=yes
13532 fi
13533 fi
13534 $RM -r conftest*
13535 LDFLAGS=$save_LDFLAGS
13536 ;;
13537esac
13538fi
13539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13540printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13541
13542if test yes = "$lt_cv_prog_compiler_static_works"; then
13543 :
13544else
13545 lt_prog_compiler_static=
13546fi
13547
13548
13549
13550='-fPIC'
13551 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
13552 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
13553 archive_cmds_need_lc=no
13554 no_undefined_flag=
13555 ;;
13556
13557*)
13558 dynamic_linker=no
13559 ;;
13560esac
13561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13562printf "%s\n" "$dynamic_linker" >&6; }
13563test no = "$dynamic_linker" && can_build_shared=no
13564
13565variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13566if test yes = "$GCC"; then
13567 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13568fi
13569
13570if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13571 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13572fi
13573
13574if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13575 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13576fi
13577
13578# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13579configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13580
13581# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13582func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13583
13584# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13585configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13684printf %s "checking how to hardcode library paths into programs... " >&6; }
13685hardcode_action=
13686if test -n "$hardcode_libdir_flag_spec" ||
13687 test -n "$runpath_var" ||
13688 test yes = "$hardcode_automatic"; then
13689
13690 # We can hardcode non-existent directories.
13691 if test no != "$hardcode_direct" &&
13692 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13693 # have to relink, otherwise we might link with an installed library
13694 # when we should be linking with a yet-to-be-installed one
13695 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13696 test no != "$hardcode_minus_L"; then
13697 # Linking always hardcodes the temporary library directory.
13698 hardcode_action=relink
13699 else
13700 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13701 hardcode_action=immediate
13702 fi
13703else
13704 # We cannot hardcode anything, or else we can only hardcode existing
13705 # directories.
13706 hardcode_action=unsupported
13707fi
13708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13709printf "%s\n" "$hardcode_action" >&6; }
13710
13711if test relink = "$hardcode_action" ||
13712 test yes = "$inherit_rpath"; then
13713 # Fast installation is not supported
13714 enable_fast_install=no
13715elif test yes = "$shlibpath_overrides_runpath" ||
13716 test no = "$enable_shared"; then
13717 # Fast installation is not necessary
13718 enable_fast_install=needless
13719fi
13720
13721
13722
13723
13724
13725
13726 if test yes != "$enable_dlopen"; then
13727 enable_dlopen=unknown
13728 enable_dlopen_self=unknown
13729 enable_dlopen_self_static=unknown
13730else
13731 lt_cv_dlopen=no
13732 lt_cv_dlopen_libs=
13733
13734 case $host_os in
13735 beos*)
13736 lt_cv_dlopen=load_add_on
13737 lt_cv_dlopen_libs=
13738 lt_cv_dlopen_self=yes
13739 ;;
13740
13741 mingw* | windows* | pw32* | cegcc*)
13742 lt_cv_dlopen=LoadLibrary
13743 lt_cv_dlopen_libs=
13744 ;;
13745
13746 cygwin*)
13747 lt_cv_dlopen=dlopen
13748 lt_cv_dlopen_libs=
13749 ;;
13750
13751 darwin*)
13752 # if libdl is installed we need to link against it
13753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13754printf %s "checking for dlopen in -ldl... " >&6; }
13755if test ${ac_cv_lib_dl_dlopen+y}
13756then :
13757 printf %s "(cached) " >&6
13758else case e in #(
13759 e) ac_check_lib_save_LIBS=$LIBS
13760LIBS="-ldl $LIBS"
13761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13762/* end confdefs.h. */
13763
13764/* Override any GCC internal prototype to avoid an error.
13765 Use char because int might match the return type of a GCC
13766 builtin and then its argument prototype would still apply.
13767 The 'extern "C"' is for builds by C++ compilers;
13768 although this is not generally supported in C code supporting it here
13769 has little cost and some practical benefit (sr 110532). */
13770#ifdef __cplusplus
13771extern "C"
13772#endif
13773char dlopen (void);
13774int
13775main (void)
13776{
13777return dlopen ();
13778 ;
13779 return 0;
13780}
13781_ACEOF
13782if ac_fn_c_try_link "$LINENO"
13783then :
13784 ac_cv_lib_dl_dlopen=yes
13785else case e in #(
13786 e) ac_cv_lib_dl_dlopen=no ;;
13787esac
13788fi
13789rm -f core conftest.err conftest.$ac_objext conftest.beam \
13790 conftest$ac_exeext conftest.$ac_ext
13791LIBS=$ac_check_lib_save_LIBS ;;
13792esac
13793fi
13794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13795printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13796if test "x$ac_cv_lib_dl_dlopen" = xyes
13797then :
13798 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13799else case e in #(
13800 e)
13801 lt_cv_dlopen=dyld
13802 lt_cv_dlopen_libs=
13803 lt_cv_dlopen_self=yes
13804 ;;
13805esac
13806fi
13807
13808 ;;
13809
13810 tpf*)
13811 # Don't try to run any link tests for TPF. We know it's impossible
13812 # because TPF is a cross-compiler, and we know how we open DSOs.
13813 lt_cv_dlopen=dlopen
13814 lt_cv_dlopen_libs=
13815 lt_cv_dlopen_self=no
13816 ;;
13817
13818 *)
13819 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13820if test "x$ac_cv_func_shl_load" = xyes
13821then :
13822 lt_cv_dlopen=shl_load
13823else case e in #(
13824 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13825printf %s "checking for shl_load in -ldld... " >&6; }
13826if test ${ac_cv_lib_dld_shl_load+y}
13827then :
13828 printf %s "(cached) " >&6
13829else case e in #(
13830 e) ac_check_lib_save_LIBS=$LIBS
13831LIBS="-ldld $LIBS"
13832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13833/* end confdefs.h. */
13834
13835/* Override any GCC internal prototype to avoid an error.
13836 Use char because int might match the return type of a GCC
13837 builtin and then its argument prototype would still apply.
13838 The 'extern "C"' is for builds by C++ compilers;
13839 although this is not generally supported in C code supporting it here
13840 has little cost and some practical benefit (sr 110532). */
13841#ifdef __cplusplus
13842extern "C"
13843#endif
13844char shl_load (void);
13845int
13846main (void)
13847{
13848return shl_load ();
13849 ;
13850 return 0;
13851}
13852_ACEOF
13853if ac_fn_c_try_link "$LINENO"
13854then :
13855 ac_cv_lib_dld_shl_load=yes
13856else case e in #(
13857 e) ac_cv_lib_dld_shl_load=no ;;
13858esac
13859fi
13860rm -f core conftest.err conftest.$ac_objext conftest.beam \
13861 conftest$ac_exeext conftest.$ac_ext
13862LIBS=$ac_check_lib_save_LIBS ;;
13863esac
13864fi
13865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13866printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13867if test "x$ac_cv_lib_dld_shl_load" = xyes
13868then :
13869 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13870else case e in #(
13871 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13872if test "x$ac_cv_func_dlopen" = xyes
13873then :
13874 lt_cv_dlopen=dlopen
13875else case e in #(
13876 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13877printf %s "checking for dlopen in -ldl... " >&6; }
13878if test ${ac_cv_lib_dl_dlopen+y}
13879then :
13880 printf %s "(cached) " >&6
13881else case e in #(
13882 e) ac_check_lib_save_LIBS=$LIBS
13883LIBS="-ldl $LIBS"
13884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13885/* end confdefs.h. */
13886
13887/* Override any GCC internal prototype to avoid an error.
13888 Use char because int might match the return type of a GCC
13889 builtin and then its argument prototype would still apply.
13890 The 'extern "C"' is for builds by C++ compilers;
13891 although this is not generally supported in C code supporting it here
13892 has little cost and some practical benefit (sr 110532). */
13893#ifdef __cplusplus
13894extern "C"
13895#endif
13896char dlopen (void);
13897int
13898main (void)
13899{
13900return dlopen ();
13901 ;
13902 return 0;
13903}
13904_ACEOF
13905if ac_fn_c_try_link "$LINENO"
13906then :
13907 ac_cv_lib_dl_dlopen=yes
13908else case e in #(
13909 e) ac_cv_lib_dl_dlopen=no ;;
13910esac
13911fi
13912rm -f core conftest.err conftest.$ac_objext conftest.beam \
13913 conftest$ac_exeext conftest.$ac_ext
13914LIBS=$ac_check_lib_save_LIBS ;;
13915esac
13916fi
13917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13918printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13919if test "x$ac_cv_lib_dl_dlopen" = xyes
13920then :
13921 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13922else case e in #(
13923 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13924printf %s "checking for dlopen in -lsvld... " >&6; }
13925if test ${ac_cv_lib_svld_dlopen+y}
13926then :
13927 printf %s "(cached) " >&6
13928else case e in #(
13929 e) ac_check_lib_save_LIBS=$LIBS
13930LIBS="-lsvld $LIBS"
13931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13932/* end confdefs.h. */
13933
13934/* Override any GCC internal prototype to avoid an error.
13935 Use char because int might match the return type of a GCC
13936 builtin and then its argument prototype would still apply.
13937 The 'extern "C"' is for builds by C++ compilers;
13938 although this is not generally supported in C code supporting it here
13939 has little cost and some practical benefit (sr 110532). */
13940#ifdef __cplusplus
13941extern "C"
13942#endif
13943char dlopen (void);
13944int
13945main (void)
13946{
13947return dlopen ();
13948 ;
13949 return 0;
13950}
13951_ACEOF
13952if ac_fn_c_try_link "$LINENO"
13953then :
13954 ac_cv_lib_svld_dlopen=yes
13955else case e in #(
13956 e) ac_cv_lib_svld_dlopen=no ;;
13957esac
13958fi
13959rm -f core conftest.err conftest.$ac_objext conftest.beam \
13960 conftest$ac_exeext conftest.$ac_ext
13961LIBS=$ac_check_lib_save_LIBS ;;
13962esac
13963fi
13964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13965printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13966if test "x$ac_cv_lib_svld_dlopen" = xyes
13967then :
13968 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13969else case e in #(
13970 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13971printf %s "checking for dld_link in -ldld... " >&6; }
13972if test ${ac_cv_lib_dld_dld_link+y}
13973then :
13974 printf %s "(cached) " >&6
13975else case e in #(
13976 e) ac_check_lib_save_LIBS=$LIBS
13977LIBS="-ldld $LIBS"
13978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13979/* end confdefs.h. */
13980
13981/* Override any GCC internal prototype to avoid an error.
13982 Use char because int might match the return type of a GCC
13983 builtin and then its argument prototype would still apply.
13984 The 'extern "C"' is for builds by C++ compilers;
13985 although this is not generally supported in C code supporting it here
13986 has little cost and some practical benefit (sr 110532). */
13987#ifdef __cplusplus
13988extern "C"
13989#endif
13990char dld_link (void);
13991int
13992main (void)
13993{
13994return dld_link ();
13995 ;
13996 return 0;
13997}
13998_ACEOF
13999if ac_fn_c_try_link "$LINENO"
14000then :
14001 ac_cv_lib_dld_dld_link=yes
14002else case e in #(
14003 e) ac_cv_lib_dld_dld_link=no ;;
14004esac
14005fi
14006rm -f core conftest.err conftest.$ac_objext conftest.beam \
14007 conftest$ac_exeext conftest.$ac_ext
14008LIBS=$ac_check_lib_save_LIBS ;;
14009esac
14010fi
14011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14012printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14013if test "x$ac_cv_lib_dld_dld_link" = xyes
14014then :
14015 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14016fi
14017
14018 ;;
14019esac
14020fi
14021
14022 ;;
14023esac
14024fi
14025
14026 ;;
14027esac
14028fi
14029
14030 ;;
14031esac
14032fi
14033
14034 ;;
14035esac
14036fi
14037
14038 ;;
14039 esac
14040
14041 if test no = "$lt_cv_dlopen"; then
14042 enable_dlopen=no
14043 else
14044 enable_dlopen=yes
14045 fi
14046
14047 case $lt_cv_dlopen in
14048 dlopen)
14049 save_CPPFLAGS=$CPPFLAGS
14050 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14051
14052 save_LDFLAGS=$LDFLAGS
14053 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14054
14055 save_LIBS=$LIBS
14056 LIBS="$lt_cv_dlopen_libs $LIBS"
14057
14058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14059printf %s "checking whether a program can dlopen itself... " >&6; }
14060if test ${lt_cv_dlopen_self+y}
14061then :
14062 printf %s "(cached) " >&6
14063else case e in #(
14064 e) if test yes = "$cross_compiling"; then :
14065 lt_cv_dlopen_self=cross
14066else
14067 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14068 lt_status=$lt_dlunknown
14069 cat > conftest.$ac_ext <<_LT_EOF
14070#line $LINENO "configure"
14071#include "confdefs.h"
14072
14073#if HAVE_DLFCN_H
14074#include <dlfcn.h>
14075#endif
14076
14077#include <stdio.h>
14078
14079#ifdef RTLD_GLOBAL
14080# define LT_DLGLOBAL RTLD_GLOBAL
14081#else
14082# ifdef DL_GLOBAL
14083# define LT_DLGLOBAL DL_GLOBAL
14084# else
14085# define LT_DLGLOBAL 0
14086# endif
14087#endif
14088
14089/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14090 find out it does not work in some platform. */
14091#ifndef LT_DLLAZY_OR_NOW
14092# ifdef RTLD_LAZY
14093# define LT_DLLAZY_OR_NOW RTLD_LAZY
14094# else
14095# ifdef DL_LAZY
14096# define LT_DLLAZY_OR_NOW DL_LAZY
14097# else
14098# ifdef RTLD_NOW
14099# define LT_DLLAZY_OR_NOW RTLD_NOW
14100# else
14101# ifdef DL_NOW
14102# define LT_DLLAZY_OR_NOW DL_NOW
14103# else
14104# define LT_DLLAZY_OR_NOW 0
14105# endif
14106# endif
14107# endif
14108# endif
14109#endif
14110
14111/* When -fvisibility=hidden is used, assume the code has been annotated
14112 correspondingly for the symbols needed. */
14113#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14114int fnord (void) __attribute__((visibility("default")));
14115#endif
14116
14117int fnord (void) { return 42; }
14118int main (void)
14119{
14120 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14121 int status = $lt_dlunknown;
14122
14123 if (self)
14124 {
14125 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14126 else
14127 {
14128 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14129 else puts (dlerror ());
14130 }
14131 /* dlclose (self); */
14132 }
14133 else
14134 puts (dlerror ());
14135
14136 return status;
14137}
14138_LT_EOF
14139 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14140 (eval $ac_link) 2>&5
14141 ac_status=$?
14142 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14143 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14144 (./conftest; exit; ) >&5 2>/dev/null
14145 lt_status=$?
14146 case x$lt_status in
14147 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14148 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14149 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14150 esac
14151 else :
14152 # compilation failed
14153 lt_cv_dlopen_self=no
14154 fi
14155fi
14156rm -fr conftest*
14157
14158 ;;
14159esac
14160fi
14161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14162printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14163
14164 if test yes = "$lt_cv_dlopen_self"; then
14165 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14167printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14168if test ${lt_cv_dlopen_self_static+y}
14169then :
14170 printf %s "(cached) " >&6
14171else case e in #(
14172 e) if test yes = "$cross_compiling"; then :
14173 lt_cv_dlopen_self_static=cross
14174else
14175 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14176 lt_status=$lt_dlunknown
14177 cat > conftest.$ac_ext <<_LT_EOF
14178#line $LINENO "configure"
14179#include "confdefs.h"
14180
14181#if HAVE_DLFCN_H
14182#include <dlfcn.h>
14183#endif
14184
14185#include <stdio.h>
14186
14187#ifdef RTLD_GLOBAL
14188# define LT_DLGLOBAL RTLD_GLOBAL
14189#else
14190# ifdef DL_GLOBAL
14191# define LT_DLGLOBAL DL_GLOBAL
14192# else
14193# define LT_DLGLOBAL 0
14194# endif
14195#endif
14196
14197/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14198 find out it does not work in some platform. */
14199#ifndef LT_DLLAZY_OR_NOW
14200# ifdef RTLD_LAZY
14201# define LT_DLLAZY_OR_NOW RTLD_LAZY
14202# else
14203# ifdef DL_LAZY
14204# define LT_DLLAZY_OR_NOW DL_LAZY
14205# else
14206# ifdef RTLD_NOW
14207# define LT_DLLAZY_OR_NOW RTLD_NOW
14208# else
14209# ifdef DL_NOW
14210# define LT_DLLAZY_OR_NOW DL_NOW
14211# else
14212# define LT_DLLAZY_OR_NOW 0
14213# endif
14214# endif
14215# endif
14216# endif
14217#endif
14218
14219/* When -fvisibility=hidden is used, assume the code has been annotated
14220 correspondingly for the symbols needed. */
14221#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14222int fnord (void) __attribute__((visibility("default")));
14223#endif
14224
14225int fnord (void) { return 42; }
14226int main (void)
14227{
14228 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14229 int status = $lt_dlunknown;
14230
14231 if (self)
14232 {
14233 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14234 else
14235 {
14236 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14237 else puts (dlerror ());
14238 }
14239 /* dlclose (self); */
14240 }
14241 else
14242 puts (dlerror ());
14243
14244 return status;
14245}
14246_LT_EOF
14247 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14248 (eval $ac_link) 2>&5
14249 ac_status=$?
14250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14251 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14252 (./conftest; exit; ) >&5 2>/dev/null
14253 lt_status=$?
14254 case x$lt_status in
14255 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14256 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14257 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14258 esac
14259 else :
14260 # compilation failed
14261 lt_cv_dlopen_self_static=no
14262 fi
14263fi
14264rm -fr conftest*
14265
14266 ;;
14267esac
14268fi
14269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14270printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14271 fi
14272
14273 CPPFLAGS=$save_CPPFLAGS
14274 LDFLAGS=$save_LDFLAGS
14275 LIBS=$save_LIBS
14276 ;;
14277 esac
14278
14279 case $lt_cv_dlopen_self in
14280 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14281 *) enable_dlopen_self=unknown ;;
14282 esac
14283
14284 case $lt_cv_dlopen_self_static in
14285 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14286 *) enable_dlopen_self_static=unknown ;;
14287 esac
14288fi
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306striplib=
14307old_striplib=
14308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14309printf %s "checking whether stripping libraries is possible... " >&6; }
14310if test -z "$STRIP"; then
14311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14312printf "%s\n" "no" >&6; }
14313else
14314 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14315 old_striplib="$STRIP --strip-debug"
14316 striplib="$STRIP --strip-unneeded"
14317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14318printf "%s\n" "yes" >&6; }
14319 else
14320 case $host_os in
14321 darwin*)
14322 # FIXME - insert some real tests, host_os isn't really good enough
14323 striplib="$STRIP -x"
14324 old_striplib="$STRIP -S"
14325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14326printf "%s\n" "yes" >&6; }
14327 ;;
14328 freebsd*)
14329 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14330 old_striplib="$STRIP --strip-debug"
14331 striplib="$STRIP --strip-unneeded"
14332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14333printf "%s\n" "yes" >&6; }
14334 else
14335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14336printf "%s\n" "no" >&6; }
14337 fi
14338 ;;
14339 *)
14340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14341printf "%s\n" "no" >&6; }
14342 ;;
14343 esac
14344 fi
14345fi
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358 # Report what library types will actually be built
14359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14360printf %s "checking if libtool supports shared libraries... " >&6; }
14361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14362printf "%s\n" "$can_build_shared" >&6; }
14363
14364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14365printf %s "checking whether to build shared libraries... " >&6; }
14366 test no = "$can_build_shared" && enable_shared=no
14367
14368 # On AIX, shared libraries and static libraries use the same namespace, and
14369 # are all built from PIC.
14370 case $host_os in
14371 aix3*)
14372 test yes = "$enable_shared" && enable_static=no
14373 if test -n "$RANLIB"; then
14374 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14375 postinstall_cmds='$RANLIB $lib'
14376 fi
14377 ;;
14378
14379 aix[4-9]*)
14380 if test ia64 != "$host_cpu"; then
14381 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14382 yes,aix,yes) ;; # shared object as lib.so file only
14383 yes,svr4,*) ;; # shared object as lib.so archive member only
14384 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14385 esac
14386 fi
14387 ;;
14388 esac
14389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14390printf "%s\n" "$enable_shared" >&6; }
14391
14392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14393printf %s "checking whether to build static libraries... " >&6; }
14394 # Make sure either enable_shared or enable_static is yes.
14395 test yes = "$enable_shared" || enable_static=yes
14396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14397printf "%s\n" "$enable_static" >&6; }
14398
14399
14400
14401
14402fi
14403ac_ext=c
14404ac_cpp='$CPP $CPPFLAGS'
14405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14407ac_compiler_gnu=$ac_cv_c_compiler_gnu
14408
14409CC=$lt_save_CC
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425 ac_config_commands="$ac_config_commands libtool"
14426
14427
14428
14429
14430# Only expand once:
14431
14432
14433
14434
14435
14436
14437# Some awk implementations crash when confronted with pnglibconf.dfa.
14438# Run a test now, to make sure this doesn't happen.
14439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if awk ($AWK) works" >&5
14440printf %s "checking if awk ($AWK) works... " >&6; }
14441if ${AWK} -f ${srcdir}/scripts/options.awk out="/dev/null" version=search\
14442 ${srcdir}/pngconf.h ${srcdir}/scripts/pnglibconf.dfa\
14443 ${srcdir}/pngusr.dfa 1>&2
14444then
14445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14446printf "%s\n" "yes" >&6; }
14447else
14448 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14449printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14450as_fn_error 1 "no
14451See 'config.log' for more details" "$LINENO" 5; }
14452fi
14453
14454# This is a remnant of the old cc -E validation, where it may have been
14455# necessary to use a different preprocessor for .dfn files
14456DFNCPP="$CPP"
14457
14458
14459# Check whether --enable-tests was given.
14460if test ${enable_tests+y}
14461then :
14462 enableval=$enable_tests; enable_tests="$enableval"
14463else case e in #(
14464 e) enable_tests=yes ;;
14465esac
14466fi
14467
14468
14469 if test "$enable_tests" != "no"; then
14470 ENABLE_TESTS_TRUE=
14471 ENABLE_TESTS_FALSE='#'
14472else
14473 ENABLE_TESTS_TRUE='#'
14474 ENABLE_TESTS_FALSE=
14475fi
14476
14477
14478# Check whether --enable-tools was given.
14479if test ${enable_tools+y}
14480then :
14481 enableval=$enable_tools; enable_tools="$enableval"
14482else case e in #(
14483 e) enable_tools=yes ;;
14484esac
14485fi
14486
14487
14488 if test "$enable_tools" != "no"; then
14489 ENABLE_TOOLS_TRUE=
14490 ENABLE_TOOLS_FALSE='#'
14491else
14492 ENABLE_TOOLS_TRUE='#'
14493 ENABLE_TOOLS_FALSE=
14494fi
14495
14496
14497# -Werror cannot be passed to GCC in CFLAGS because configure will fail
14498# (it checks the compiler with a program that generates a warning).
14499# Add the following option to deal with this:
14500
14501# Check whether --enable-werror was given.
14502if test ${enable_werror+y}
14503then :
14504 enableval=$enable_werror; test "$enable_werror" = "yes" && enable_werror="-Werror"
14505 if test "$enable_werror" != "no"; then
14506 sav_CFLAGS="$CFLAGS"
14507 CFLAGS="$enable_werror $CFLAGS"
14508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler allows $enable_werror" >&5
14509printf %s "checking if the compiler allows $enable_werror... " >&6; }
14510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14511/* end confdefs.h. */
14512
14513 int main(int argc, char **argv){
14514 return argv[argc-1][0];
14515 }
14516_ACEOF
14517if ac_fn_c_try_compile "$LINENO"
14518then :
14519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14520printf "%s\n" "yes" >&6; }
14521 PNG_COPTS="$PNG_COPTS $enable_werror"
14522else case e in #(
14523 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14524printf "%s\n" "no" >&6; } ;;
14525esac
14526fi
14527rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14528 CFLAGS="$sav_CFLAGS"
14529 fi
14530fi
14531
14532
14533# For GCC 5 the default mode for C is -std=gnu11 instead of -std=gnu89.
14534# In pngpriv.h we request just the POSIX 1003.1 and C89 APIs by defining
14535# _POSIX_SOURCE to 1. This is incompatible with the new default mode, so
14536# we test for that and force the "-std=c89" compiler option:
14537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we need to force back C standard to C89" >&5
14538printf %s "checking if we need to force back C standard to C89... " >&6; }
14539cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14540/* end confdefs.h. */
14541
14542 #define _POSIX_SOURCE 1
14543 #include <stdio.h>
14544
14545int
14546main (void)
14547{
14548
14549 ;
14550 return 0;
14551}
14552_ACEOF
14553if ac_fn_c_try_compile "$LINENO"
14554then :
14555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14556printf "%s\n" "no" >&6; }
14557else case e in #(
14558 e)
14559 if test "x$GCC" != "xyes"; then
14560 as_fn_error $? "Forcing back to C89 is required but the flags are only known for GCC" "$LINENO" 5
14561 fi
14562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14563printf "%s\n" "yes" >&6; }
14564 CFLAGS="$CFLAGS -std=c89"
14565 ;;
14566esac
14567fi
14568rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14569
14570# Checks for structures and compiler characteristics.
14571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
14572printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14573if test ${ac_cv_struct_tm+y}
14574then :
14575 printf %s "(cached) " >&6
14576else case e in #(
14577 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14578/* end confdefs.h. */
14579#include <sys/types.h>
14580#include <time.h>
14581
14582int
14583main (void)
14584{
14585struct tm tm;
14586 int *p = &tm.tm_sec;
14587 return !p;
14588 ;
14589 return 0;
14590}
14591_ACEOF
14592if ac_fn_c_try_compile "$LINENO"
14593then :
14594 ac_cv_struct_tm=time.h
14595else case e in #(
14596 e) ac_cv_struct_tm=sys/time.h ;;
14597esac
14598fi
14599rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14600esac
14601fi
14602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
14603printf "%s\n" "$ac_cv_struct_tm" >&6; }
14604if test $ac_cv_struct_tm = sys/time.h; then
14605
14606printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
14607
14608fi
14609
14610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14611printf %s "checking for C/C++ restrict keyword... " >&6; }
14612if test ${ac_cv_c_restrict+y}
14613then :
14614 printf %s "(cached) " >&6
14615else case e in #(
14616 e) ac_cv_c_restrict=no
14617 # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
14618 # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
14619 # Put 'restrict' last, because C++ lacks it.
14620 for ac_kw in __restrict__ __restrict _Restrict restrict; do
14621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14622/* end confdefs.h. */
14623typedef int *int_ptr;
14624 int foo (int_ptr $ac_kw ip) { return ip[0]; }
14625 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
14626 int bar (int ip[$ac_kw]) { return ip[0]; }
14627
14628int
14629main (void)
14630{
14631int s[1];
14632 int *$ac_kw t = s;
14633 t[0] = 0;
14634 return foo (t) + bar (t);
14635
14636 ;
14637 return 0;
14638}
14639_ACEOF
14640if ac_fn_c_try_compile "$LINENO"
14641then :
14642 ac_cv_c_restrict=$ac_kw
14643fi
14644rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14645 test "$ac_cv_c_restrict" != no && break
14646 done
14647 ;;
14648esac
14649fi
14650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14651printf "%s\n" "$ac_cv_c_restrict" >&6; }
14652
14653 case $ac_cv_c_restrict in
14654 restrict) ;;
14655 no) printf "%s\n" "#define restrict /**/" >>confdefs.h
14656 ;;
14657 *) printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h
14658 ;;
14659 esac
14660
14661
14662# Checks for library functions.
14663
14664 for ac_func in pow
14665do :
14666 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
14667if test "x$ac_cv_func_pow" = xyes
14668then :
14669 printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
14670
14671else case e in #(
14672 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
14673printf %s "checking for pow in -lm... " >&6; }
14674if test ${ac_cv_lib_m_pow+y}
14675then :
14676 printf %s "(cached) " >&6
14677else case e in #(
14678 e) ac_check_lib_save_LIBS=$LIBS
14679LIBS="-lm $LIBS"
14680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14681/* end confdefs.h. */
14682
14683/* Override any GCC internal prototype to avoid an error.
14684 Use char because int might match the return type of a GCC
14685 builtin and then its argument prototype would still apply.
14686 The 'extern "C"' is for builds by C++ compilers;
14687 although this is not generally supported in C code supporting it here
14688 has little cost and some practical benefit (sr 110532). */
14689#ifdef __cplusplus
14690extern "C"
14691#endif
14692char pow (void);
14693int
14694main (void)
14695{
14696return pow ();
14697 ;
14698 return 0;
14699}
14700_ACEOF
14701if ac_fn_c_try_link "$LINENO"
14702then :
14703 ac_cv_lib_m_pow=yes
14704else case e in #(
14705 e) ac_cv_lib_m_pow=no ;;
14706esac
14707fi
14708rm -f core conftest.err conftest.$ac_objext conftest.beam \
14709 conftest$ac_exeext conftest.$ac_ext
14710LIBS=$ac_check_lib_save_LIBS ;;
14711esac
14712fi
14713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
14714printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
14715if test "x$ac_cv_lib_m_pow" = xyes
14716then :
14717 printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
14718
14719 LIBS="-lm $LIBS"
14720
14721else case e in #(
14722 e) as_fn_error $? "cannot find pow" "$LINENO" 5 ;;
14723esac
14724fi
14725 ;;
14726esac
14727fi
14728
14729done
14730
14731# Some later POSIX 1003.1 functions are required for test programs, failure
14732# here is soft (the corresponding test program is not built).
14733ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
14734if test "x$ac_cv_func_clock_gettime" = xyes
14735then :
14736
14737else case e in #(
14738 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: not building timepng" >&5
14739printf "%s\n" "$as_me: WARNING: not building timepng" >&2;} ;;
14740esac
14741fi
14742
14743 if test "$ac_cv_func_clock_gettime" = "yes"; then
14744 HAVE_CLOCK_GETTIME_TRUE=
14745 HAVE_CLOCK_GETTIME_FALSE='#'
14746else
14747 HAVE_CLOCK_GETTIME_TRUE='#'
14748 HAVE_CLOCK_GETTIME_FALSE=
14749fi
14750
14751
14752
14753# Check whether --with-zlib-prefix was given.
14754if test ${with_zlib_prefix+y}
14755then :
14756 withval=$with_zlib_prefix; ZPREFIX=${withval}
14757else case e in #(
14758 e) ZPREFIX='z_' ;;
14759esac
14760fi
14761
14762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
14763printf %s "checking for zlibVersion in -lz... " >&6; }
14764if test ${ac_cv_lib_z_zlibVersion+y}
14765then :
14766 printf %s "(cached) " >&6
14767else case e in #(
14768 e) ac_check_lib_save_LIBS=$LIBS
14769LIBS="-lz $LIBS"
14770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14771/* end confdefs.h. */
14772
14773/* Override any GCC internal prototype to avoid an error.
14774 Use char because int might match the return type of a GCC
14775 builtin and then its argument prototype would still apply.
14776 The 'extern "C"' is for builds by C++ compilers;
14777 although this is not generally supported in C code supporting it here
14778 has little cost and some practical benefit (sr 110532). */
14779#ifdef __cplusplus
14780extern "C"
14781#endif
14782char zlibVersion (void);
14783int
14784main (void)
14785{
14786return zlibVersion ();
14787 ;
14788 return 0;
14789}
14790_ACEOF
14791if ac_fn_c_try_link "$LINENO"
14792then :
14793 ac_cv_lib_z_zlibVersion=yes
14794else case e in #(
14795 e) ac_cv_lib_z_zlibVersion=no ;;
14796esac
14797fi
14798rm -f core conftest.err conftest.$ac_objext conftest.beam \
14799 conftest$ac_exeext conftest.$ac_ext
14800LIBS=$ac_check_lib_save_LIBS ;;
14801esac
14802fi
14803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
14804printf "%s\n" "$ac_cv_lib_z_zlibVersion" >&6; }
14805if test "x$ac_cv_lib_z_zlibVersion" = xyes
14806then :
14807 printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
14808
14809 LIBS="-lz $LIBS"
14810
14811else case e in #(
14812 e) as_ac_Lib=`printf "%s\n" "ac_cv_lib_z_${ZPREFIX}zlibVersion" | sed "$as_sed_sh"`
14813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ZPREFIX}zlibVersion in -lz" >&5
14814printf %s "checking for ${ZPREFIX}zlibVersion in -lz... " >&6; }
14815if eval test \${$as_ac_Lib+y}
14816then :
14817 printf %s "(cached) " >&6
14818else case e in #(
14819 e) ac_check_lib_save_LIBS=$LIBS
14820LIBS="-lz $LIBS"
14821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14822/* end confdefs.h. */
14823
14824/* Override any GCC internal prototype to avoid an error.
14825 Use char because int might match the return type of a GCC
14826 builtin and then its argument prototype would still apply.
14827 The 'extern "C"' is for builds by C++ compilers;
14828 although this is not generally supported in C code supporting it here
14829 has little cost and some practical benefit (sr 110532). */
14830#ifdef __cplusplus
14831extern "C"
14832#endif
14833char ${ZPREFIX}zlibVersion (void);
14834int
14835main (void)
14836{
14837return ${ZPREFIX}zlibVersion ();
14838 ;
14839 return 0;
14840}
14841_ACEOF
14842if ac_fn_c_try_link "$LINENO"
14843then :
14844 eval "$as_ac_Lib=yes"
14845else case e in #(
14846 e) eval "$as_ac_Lib=no" ;;
14847esac
14848fi
14849rm -f core conftest.err conftest.$ac_objext conftest.beam \
14850 conftest$ac_exeext conftest.$ac_ext
14851LIBS=$ac_check_lib_save_LIBS ;;
14852esac
14853fi
14854eval ac_res=\$$as_ac_Lib
14855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14856printf "%s\n" "$ac_res" >&6; }
14857if eval test \"x\$"$as_ac_Lib"\" = x"yes"
14858then :
14859 printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
14860
14861 LIBS="-lz $LIBS"
14862
14863else case e in #(
14864 e) as_fn_error $? "zlib not installed" "$LINENO" 5 ;;
14865esac
14866fi
14867 ;;
14868esac
14869fi
14870
14871
14872# The following is for pngvalid, to ensure it catches FP errors even on
14873# platforms that don't enable FP exceptions, the function appears in the math
14874# library (typically), it's not an error if it is not found.
14875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
14876printf %s "checking for feenableexcept in -lm... " >&6; }
14877if test ${ac_cv_lib_m_feenableexcept+y}
14878then :
14879 printf %s "(cached) " >&6
14880else case e in #(
14881 e) ac_check_lib_save_LIBS=$LIBS
14882LIBS="-lm $LIBS"
14883cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14884/* end confdefs.h. */
14885
14886/* Override any GCC internal prototype to avoid an error.
14887 Use char because int might match the return type of a GCC
14888 builtin and then its argument prototype would still apply.
14889 The 'extern "C"' is for builds by C++ compilers;
14890 although this is not generally supported in C code supporting it here
14891 has little cost and some practical benefit (sr 110532). */
14892#ifdef __cplusplus
14893extern "C"
14894#endif
14895char feenableexcept (void);
14896int
14897main (void)
14898{
14899return feenableexcept ();
14900 ;
14901 return 0;
14902}
14903_ACEOF
14904if ac_fn_c_try_link "$LINENO"
14905then :
14906 ac_cv_lib_m_feenableexcept=yes
14907else case e in #(
14908 e) ac_cv_lib_m_feenableexcept=no ;;
14909esac
14910fi
14911rm -f core conftest.err conftest.$ac_objext conftest.beam \
14912 conftest$ac_exeext conftest.$ac_ext
14913LIBS=$ac_check_lib_save_LIBS ;;
14914esac
14915fi
14916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
14917printf "%s\n" "$ac_cv_lib_m_feenableexcept" >&6; }
14918if test "x$ac_cv_lib_m_feenableexcept" = xyes
14919then :
14920 printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
14921
14922 LIBS="-lm $LIBS"
14923
14924fi
14925
14926ac_fn_c_check_func "$LINENO" "feenableexcept" "ac_cv_func_feenableexcept"
14927if test "x$ac_cv_func_feenableexcept" = xyes
14928then :
14929 printf "%s\n" "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
14930
14931fi
14932
14933
14934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if using Solaris linker" >&5
14935printf %s "checking if using Solaris linker... " >&6; }
14936SLD=`$LD --version 2>&1 | grep Solaris`
14937if test "$SLD"; then
14938 have_solaris_ld=yes
14939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14940printf "%s\n" "yes" >&6; }
14941else
14942 have_solaris_ld=no
14943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14944printf "%s\n" "no" >&6; }
14945fi
14946 if test "$have_solaris_ld" = "yes"; then
14947 HAVE_SOLARIS_LD_TRUE=
14948 HAVE_SOLARIS_LD_FALSE='#'
14949else
14950 HAVE_SOLARIS_LD_TRUE='#'
14951 HAVE_SOLARIS_LD_FALSE=
14952fi
14953
14954
14955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
14956printf %s "checking if libraries can be versioned... " >&6; }
14957# Special case for PE/COFF platforms: ld reports
14958# support for version-script, but doesn't actually
14959# DO anything with it.
14960case $host in
14961*cygwin* | *mingw32* | *interix* )
14962 have_ld_version_script=no
14963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14964printf "%s\n" "no" >&6; }
14965;;
14966* )
14967
14968if test "$have_solaris_ld" = "yes"; then
14969 GLD=`$LD --help < /dev/null 2>&1 | grep 'M mapfile'`
14970else
14971 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
14972fi
14973
14974if test "$GLD"; then
14975 have_ld_version_script=yes
14976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14977printf "%s\n" "yes" >&6; }
14978else
14979 have_ld_version_script=no
14980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14981printf "%s\n" "no" >&6; }
14982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** You have not enabled versioned symbols." >&5
14983printf "%s\n" "$as_me: WARNING: *** You have not enabled versioned symbols." >&2;}
14984fi
14985;;
14986esac
14987
14988 if test "$have_ld_version_script" = "yes"; then
14989 HAVE_LD_VERSION_SCRIPT_TRUE=
14990 HAVE_LD_VERSION_SCRIPT_FALSE='#'
14991else
14992 HAVE_LD_VERSION_SCRIPT_TRUE='#'
14993 HAVE_LD_VERSION_SCRIPT_FALSE=
14994fi
14995
14996
14997if test "$have_ld_version_script" = "yes"; then
14998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for symbol prefix" >&5
14999printf %s "checking for symbol prefix... " >&6; }
15000 SYMBOL_PREFIX=`echo "PREFIX=__USER_LABEL_PREFIX__" \
15001 | ${CPP:-${CC:-gcc} -E} - 2>&1 \
15002 | ${EGREP:-grep} "^PREFIX=" \
15003 | ${SED:-sed} -e "s:^PREFIX=::" -e "s:__USER_LABEL_PREFIX__::"`
15004
15005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYMBOL_PREFIX" >&5
15006printf "%s\n" "$SYMBOL_PREFIX" >&6; }
15007fi
15008
15009# Substitutions for .in files
15010
15011
15012
15013
15014
15015# Additional arguments (and substitutions)
15016# Allow the pkg-config directory to be set
15017
15018# Check whether --with-pkgconfigdir was given.
15019if test ${with_pkgconfigdir+y}
15020then :
15021 withval=$with_pkgconfigdir; pkgconfigdir=${withval}
15022else case e in #(
15023 e) pkgconfigdir='${libdir}/pkgconfig' ;;
15024esac
15025fi
15026
15027
15028
15029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkgconfig directory is ${pkgconfigdir}" >&5
15030printf "%s\n" "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;}
15031
15032# Make the *-config binary config scripts optional
15033
15034# Check whether --with-binconfigs was given.
15035if test ${with_binconfigs+y}
15036then :
15037 withval=$with_binconfigs; if test "${withval}" = no; then
15038 binconfigs=
15039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libpng-config scripts will not be built" >&5
15040printf "%s\n" "$as_me: libpng-config scripts will not be built" >&6;}
15041 else
15042 binconfigs='${binconfigs}'
15043 fi
15044else case e in #(
15045 e) binconfigs='${binconfigs}' ;;
15046esac
15047fi
15048
15049
15050
15051# Support for prefixes to the API function names; this will generate defines
15052# at the start of the build to rename exported library functions
15053
15054# Check whether --with-libpng-prefix was given.
15055if test ${with_libpng_prefix+y}
15056then :
15057 withval=$with_libpng_prefix; if test "${withval:-no}" != "no"; then
15058 PNG_PREFIX=${withval}
15059
15060 fi
15061fi
15062
15063 if test "${with_libpng_prefix:-no}" != "no"; then
15064 DO_PNG_PREFIX_TRUE=
15065 DO_PNG_PREFIX_FALSE='#'
15066else
15067 DO_PNG_PREFIX_TRUE='#'
15068 DO_PNG_PREFIX_FALSE=
15069fi
15070
15071
15072# Control over what links are made for installed files. Versioned files are
15073# always installed, when the following options are turned on corresponding
15074# unversioned links are also created (normally as symbolic links):
15075# Check whether --enable-unversioned-links was given.
15076if test ${enable_unversioned_links+y}
15077then :
15078 enableval=$enable_unversioned_links;
15079fi
15080
15081
15082# The AM_CONDITIONAL test is written so that the default is enabled;
15083# --disable-unversioned-links must be given to turn the option off.
15084 if test "$enable_unversioned_links" != "no"; then
15085 DO_INSTALL_LINKS_TRUE=
15086 DO_INSTALL_LINKS_FALSE='#'
15087else
15088 DO_INSTALL_LINKS_TRUE='#'
15089 DO_INSTALL_LINKS_FALSE=
15090fi
15091
15092
15093# Check whether --enable-unversioned-libpng-pc was given.
15094if test ${enable_unversioned_libpng_pc+y}
15095then :
15096 enableval=$enable_unversioned_libpng_pc;
15097fi
15098
15099 if test "$enable_unversioned_libpng_pc" != "no"; then
15100 DO_INSTALL_LIBPNG_PC_TRUE=
15101 DO_INSTALL_LIBPNG_PC_FALSE='#'
15102else
15103 DO_INSTALL_LIBPNG_PC_TRUE='#'
15104 DO_INSTALL_LIBPNG_PC_FALSE=
15105fi
15106
15107
15108# Check whether --enable-unversioned-libpng-config was given.
15109if test ${enable_unversioned_libpng_config+y}
15110then :
15111 enableval=$enable_unversioned_libpng_config;
15112fi
15113
15114 if test "$enable_unversioned_libpng_config" != "no"; then
15115 DO_INSTALL_LIBPNG_CONFIG_TRUE=
15116 DO_INSTALL_LIBPNG_CONFIG_FALSE='#'
15117else
15118 DO_INSTALL_LIBPNG_CONFIG_TRUE='#'
15119 DO_INSTALL_LIBPNG_CONFIG_FALSE=
15120fi
15121
15122
15123# HOST-SPECIFIC OPTIONS
15124# =====================
15125#
15126# DEFAULT
15127# =======
15128#
15129# Check whether --enable-hardware-optimizations was given.
15130if test ${enable_hardware_optimizations+y}
15131then :
15132 enableval=$enable_hardware_optimizations; case "$enableval" in
15133 no|off)
15134 # disable hardware optimization on all systems:
15135 enable_arm_neon=no
15136
15137printf "%s\n" "#define PNG_ARM_NEON_OPT 0" >>confdefs.h
15138
15139 enable_mips_msa=no
15140
15141printf "%s\n" "#define PNG_MIPS_MSA_OPT 0" >>confdefs.h
15142
15143 enable_mips_mmi=no
15144
15145printf "%s\n" "#define PNG_MIPS_MMI_OPT 0" >>confdefs.h
15146
15147 enable_powerpc_vsx=no
15148
15149printf "%s\n" "#define PNG_POWERPC_VSX_OPT 0" >>confdefs.h
15150
15151 enable_intel_sse=no
15152
15153printf "%s\n" "#define PNG_INTEL_SSE_OPT 0" >>confdefs.h
15154
15155 enable_loongarch_lsx=no
15156
15157printf "%s\n" "#define PNG_LOONGARCH_LSX_OPT 0" >>confdefs.h
15158
15159 ;;
15160 *)
15161 # allow enabling hardware optimization on any system:
15162 case "$host_cpu" in
15163 arm*|aarch64*)
15164 enable_arm_neon=yes
15165
15166printf "%s\n" "#define PNG_ARM_NEON_OPT 2" >>confdefs.h
15167
15168 ;;
15169 mipsel*|mips64el*)
15170 enable_mips_mmi=yes
15171 enable_mips_msa=yes
15172
15173printf "%s\n" "#define PNG_MIPS_MMI_OPT 1" >>confdefs.h
15174
15175
15176printf "%s\n" "#define PNG_MIPS_MSA_OPT 2" >>confdefs.h
15177
15178 ;;
15179 i?86|x86_64)
15180 enable_intel_sse=yes
15181
15182printf "%s\n" "#define PNG_INTEL_SSE_OPT 1" >>confdefs.h
15183
15184 ;;
15185 powerpc*|ppc64*)
15186 enable_powerpc_vsx=yes
15187
15188printf "%s\n" "#define PNG_POWERPC_VSX_OPT 2" >>confdefs.h
15189
15190 ;;
15191 loongarch*)
15192 enable_loongarch_lsx=yes
15193
15194printf "%s\n" "#define PNG_LOONGARCH_LSX_OPT 1" >>confdefs.h
15195
15196 ;;
15197 esac
15198 ;;
15199 esac
15200fi
15201
15202
15203# ARM NEON
15204# ========
15205
15206# Check whether --enable-arm-neon was given.
15207if test ${enable_arm_neon+y}
15208then :
15209 enableval=$enable_arm_neon; case "$enableval" in
15210 no|off)
15211 # disable the default enabling on __ARM_NEON__ systems:
15212
15213printf "%s\n" "#define PNG_ARM_NEON_OPT 0" >>confdefs.h
15214
15215 # Prevent inclusion of the assembler files below:
15216 enable_arm_neon=no ;;
15217 check)
15218
15219printf "%s\n" "#define PNG_ARM_NEON_CHECK_SUPPORTED /**/" >>confdefs.h
15220;;
15221 api)
15222
15223printf "%s\n" "#define PNG_ARM_NEON_API_SUPPORTED /**/" >>confdefs.h
15224;;
15225 yes|on)
15226
15227printf "%s\n" "#define PNG_ARM_NEON_OPT 2" >>confdefs.h
15228
15229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-arm-neon: please specify 'check' or 'api';
15230 if you want the optimizations unconditionally,
15231 pass '-mfpu=neon' to the compiler." >&5
15232printf "%s\n" "$as_me: WARNING: --enable-arm-neon: please specify 'check' or 'api';
15233 if you want the optimizations unconditionally,
15234 pass '-mfpu=neon' to the compiler." >&2;};;
15235 *)
15236 as_fn_error $? "--enable-arm-neon=${enable_arm_neon}:
15237 invalid argument" "$LINENO" 5
15238 esac
15239fi
15240
15241
15242# Add ARM-specific files to all builds where $host_cpu is arm ('arm*') or
15243# where ARM optimizations were explicitly requested. (This allows a fallback
15244# if a future host CPU does not match 'arm*'.)
15245
15246 if test "$enable_arm_neon" != 'no' &&
15247 case "$host_cpu" in
15248 arm*|aarch64*) : ;;
15249 *) test "$enable_arm_neon" != '' ;;
15250 esac; then
15251 PNG_ARM_NEON_TRUE=
15252 PNG_ARM_NEON_FALSE='#'
15253else
15254 PNG_ARM_NEON_TRUE='#'
15255 PNG_ARM_NEON_FALSE=
15256fi
15257
15258
15259# MIPS MSA
15260# ========
15261
15262# Check whether --enable-mips-msa was given.
15263if test ${enable_mips_msa+y}
15264then :
15265 enableval=$enable_mips_msa; case "$enableval" in
15266 no|off)
15267 # disable the default enabling on __mips_msa systems:
15268
15269printf "%s\n" "#define PNG_MIPS_MSA_OPT 0" >>confdefs.h
15270
15271 # Prevent inclusion of the assembler files below:
15272 enable_mips_msa=no ;;
15273 check)
15274
15275printf "%s\n" "#define PNG_MIPS_MSA_CHECK_SUPPORTED /**/" >>confdefs.h
15276;;
15277 api)
15278
15279printf "%s\n" "#define PNG_MIPS_MSA_API_SUPPORTED /**/" >>confdefs.h
15280;;
15281 yes|on)
15282
15283printf "%s\n" "#define PNG_MIPS_MSA_OPT 2" >>confdefs.h
15284
15285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-mips-msa: please specify 'check' or 'api';
15286 if you want the optimizations unconditionally,
15287 pass '-mmsa -mfp64' to the compiler." >&5
15288printf "%s\n" "$as_me: WARNING: --enable-mips-msa: please specify 'check' or 'api';
15289 if you want the optimizations unconditionally,
15290 pass '-mmsa -mfp64' to the compiler." >&2;};;
15291 *)
15292 as_fn_error $? "--enable-mips-msa=${enable_mips_msa}:
15293 invalid argument" "$LINENO" 5
15294 esac
15295fi
15296
15297
15298# Add MIPS-specific files to all builds where $host_cpu is mips ('mips*') or
15299# where MIPS optimizations were explicitly requested. (This allows a fallback
15300# if a future host CPU does not match 'mips*'.)
15301
15302 if test "$enable_mips_msa" != 'no' &&
15303 case "$host_cpu" in
15304 mipsel*|mips64el*) : ;;
15305 esac; then
15306 PNG_MIPS_MSA_TRUE=
15307 PNG_MIPS_MSA_FALSE='#'
15308else
15309 PNG_MIPS_MSA_TRUE='#'
15310 PNG_MIPS_MSA_FALSE=
15311fi
15312
15313
15314# MIPS MMI
15315# ========
15316
15317# Check whether --enable-mips-mmi was given.
15318if test ${enable_mips_mmi+y}
15319then :
15320 enableval=$enable_mips_mmi; case "$enableval" in
15321 no|off)
15322 # disable the default enabling on __mips_mmi systems:
15323
15324printf "%s\n" "#define PNG_MIPS_MMI_OPT 0" >>confdefs.h
15325
15326 # Prevent inclusion of the assembler files below:
15327 enable_mips_mmi=no;;
15328 check)
15329
15330printf "%s\n" "#define PNG_MIPS_MMI_CHECK_SUPPORTED /**/" >>confdefs.h
15331;;
15332 api)
15333
15334printf "%s\n" "#define PNG_MIPS_MMI_API_SUPPORTED /**/" >>confdefs.h
15335;;
15336 yes|on)
15337
15338printf "%s\n" "#define PNG_MIPS_MMI_OPT 1" >>confdefs.h
15339
15340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-mips-mmi: please specify 'check' or 'api';
15341 if you want the optimizations unconditionally
15342 pass '-mloongson-mmi -march=loongson3a' to the compiler." >&5
15343printf "%s\n" "$as_me: WARNING: --enable-mips-mmi: please specify 'check' or 'api';
15344 if you want the optimizations unconditionally
15345 pass '-mloongson-mmi -march=loongson3a' to the compiler." >&2;};;
15346 *)
15347 as_fn_error $? "--enable-mips-mmi=${enable_mips_mmi}:
15348 invalid argument" "$LINENO" 5
15349 esac
15350fi
15351
15352
15353# Add MIPS specific files to all builds where the host_cpu is mips ('mips*') or
15354# where MIPS optimizations were explicitly requested. (This allows a fallback
15355# if a future host CPU does not match 'mips*'.)
15356
15357 if test "$enable_mips_mmi" != 'no' &&
15358 case "$host_cpu" in
15359 mipsel*|mips64el*) : ;;
15360 esac; then
15361 PNG_MIPS_MMI_TRUE=
15362 PNG_MIPS_MMI_FALSE='#'
15363else
15364 PNG_MIPS_MMI_TRUE='#'
15365 PNG_MIPS_MMI_FALSE=
15366fi
15367
15368
15369# INTEL SSE
15370# =========
15371
15372# Check whether --enable-intel-sse was given.
15373if test ${enable_intel_sse+y}
15374then :
15375 enableval=$enable_intel_sse; case "$enableval" in
15376 no|off)
15377 # disable the default enabling:
15378
15379printf "%s\n" "#define PNG_INTEL_SSE_OPT 0" >>confdefs.h
15380
15381 # Prevent inclusion of the assembler files below:
15382 enable_intel_sse=no ;;
15383 yes|on)
15384
15385printf "%s\n" "#define PNG_INTEL_SSE_OPT 1" >>confdefs.h
15386;;
15387 *)
15388 as_fn_error $? "--enable-intel-sse=${enable_intel_sse}:
15389 invalid argument" "$LINENO" 5
15390 esac
15391fi
15392
15393
15394# Add Intel-specific files to all builds where $host_cpu is Intel ('x86*') or
15395# where Intel optimizations were explicitly requested. (This allows a fallback
15396# if a future host CPU does not match 'x86*'.)
15397 if test "$enable_intel_sse" != 'no' &&
15398 case "$host_cpu" in
15399 i?86|x86_64) : ;;
15400 *) test "$enable_intel_sse" != '' ;;
15401 esac; then
15402 PNG_INTEL_SSE_TRUE=
15403 PNG_INTEL_SSE_FALSE='#'
15404else
15405 PNG_INTEL_SSE_TRUE='#'
15406 PNG_INTEL_SSE_FALSE=
15407fi
15408
15409
15410# POWERPC VSX
15411# ===========
15412
15413# Check whether --enable-powerpc-vsx was given.
15414if test ${enable_powerpc_vsx+y}
15415then :
15416 enableval=$enable_powerpc_vsx; case "$enableval" in
15417 no|off)
15418 # disable the default enabling on __ppc64__ systems:
15419
15420printf "%s\n" "#define PNG_POWERPC_VSX_OPT 0" >>confdefs.h
15421
15422 # Prevent inclusion of the platform-specific files below:
15423 enable_powerpc_vsx=no ;;
15424 check)
15425
15426printf "%s\n" "#define PNG_POWERPC_VSX_CHECK_SUPPORTED /**/" >>confdefs.h
15427
15428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-powerpc-vsx: please see contrib/powerpc/README
15429 for the list of supported systems." >&5
15430printf "%s\n" "$as_me: WARNING: --enable-powerpc-vsx: please see contrib/powerpc/README
15431 for the list of supported systems." >&2;};;
15432 api)
15433
15434printf "%s\n" "#define PNG_POWERPC_VSX_API_SUPPORTED /**/" >>confdefs.h
15435;;
15436 yes|on)
15437
15438printf "%s\n" "#define PNG_POWERPC_VSX_OPT 2" >>confdefs.h
15439
15440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-powerpc-vsx: please specify 'check' or 'api';
15441 if you want the optimizations unconditionally,
15442 pass '-maltivec -mvsx' or '-mcpu=power8' to the compiler." >&5
15443printf "%s\n" "$as_me: WARNING: --enable-powerpc-vsx: please specify 'check' or 'api';
15444 if you want the optimizations unconditionally,
15445 pass '-maltivec -mvsx' or '-mcpu=power8' to the compiler." >&2;};;
15446 *)
15447 as_fn_error $? "--enable-powerpc-vsx=${enable_powerpc_vsx}:
15448 invalid argument" "$LINENO" 5
15449 esac
15450fi
15451
15452
15453# Add PowerPC-specific files to all builds where $host_cpu is powerpc
15454# ('powerpc*') or where PowerPC optimizations were explicitly requested.
15455# (This allows a fallback if a future host CPU does not match 'powerpc*'.)
15456
15457 if test "$enable_powerpc_vsx" != 'no' &&
15458 case "$host_cpu" in
15459 powerpc*|ppc64*) : ;;
15460 esac; then
15461 PNG_POWERPC_VSX_TRUE=
15462 PNG_POWERPC_VSX_FALSE='#'
15463else
15464 PNG_POWERPC_VSX_TRUE='#'
15465 PNG_POWERPC_VSX_FALSE=
15466fi
15467
15468
15469# LOONGARCH LSX
15470# =============
15471
15472# Check whether --enable-loongarch-lsx was given.
15473if test ${enable_loongarch_lsx+y}
15474then :
15475 enableval=$enable_loongarch_lsx; case "$enableval" in
15476 no|off)
15477 # disable the default enabling on __loongarch_simd systems:
15478
15479printf "%s\n" "#define PNG_LOONGARCH_LSX_OPT 0" >>confdefs.h
15480
15481 # Prevent inclusion of the assembler files below:
15482 enable_loongarch_lsx=no;;
15483 yes|on)
15484
15485printf "%s\n" "#define PNG_LOONGARCH_LSX_OPT 1" >>confdefs.h
15486
15487 ;;
15488 *)
15489 as_fn_error $? "--enable-loongarch-lsx=${enable_loongarch_lsx}:
15490 invalid argument" "$LINENO" 5
15491 esac
15492fi
15493
15494
15495if test "$enable_loongarch_lsx" != "no" &&
15496 case "$host_cpu" in
15497 loongarch*) : ;;
15498 *) test "$enable_loongarch_lsx" != '' ;;
15499 esac
15500then
15501 compiler_support_loongarch_lsx=no
15502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use LoongArch LSX intrinsics" >&5
15503printf %s "checking whether to use LoongArch LSX intrinsics... " >&6; }
15504 save_CFLAGS="$CFLAGS"
15505 LSX_CFLAGS="${LSX_CFLAGS:-"-mlsx"}"
15506 CFLAGS="$CFLAGS $LSX_CFLAGS"
15507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15508/* end confdefs.h. */
15509
15510#include <lsxintrin.h>
15511int main(){
15512 __m128i a, b, c;
15513 a = __lsx_vadd_w(b, c);
15514 return 0;
15515}
15516_ACEOF
15517if ac_fn_c_try_compile "$LINENO"
15518then :
15519 compiler_support_loongarch_lsx=yes
15520fi
15521rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15522 CFLAGS="$save_CFLAGS"
15523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $compiler_support_loongarch_lsx" >&5
15524printf "%s\n" "$compiler_support_loongarch_lsx" >&6; }
15525 if test "$compiler_support_loongarch_lsx" = "yes"; then
15526
15527printf "%s\n" "#define PNG_LOONGARCH_LSX_OPT 1" >>confdefs.h
15528
15529 else
15530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support loongarch LSX." >&5
15531printf "%s\n" "$as_me: WARNING: Compiler does not support loongarch LSX." >&2;}
15532 fi
15533fi
15534
15535# Add LoongArch specific files to all builds where the host_cpu is loongarch
15536# ('loongarch*') or where LoongArch optimizations were explicitly requested.
15537# (This allows a fallback if a future host CPU does not match 'loongarch*'.)
15538
15539 if test "$enable_loongarch_lsx" != "no" &&
15540 test "$compiler_support_loongarch_lsx" = "yes" &&
15541 case "$host_cpu" in
15542 loongarch*) : ;;
15543 *) test "$enable_loongarch_lsx" != '' ;;
15544 esac; then
15545 PNG_LOONGARCH_LSX_TRUE=
15546 PNG_LOONGARCH_LSX_FALSE='#'
15547else
15548 PNG_LOONGARCH_LSX_TRUE='#'
15549 PNG_LOONGARCH_LSX_FALSE=
15550fi
15551
15552
15553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Extra options for compiler: $PNG_COPTS" >&5
15554printf "%s\n" "$as_me: Extra options for compiler: $PNG_COPTS" >&6;}
15555
15556# Config files, substituting as above
15557ac_config_files="$ac_config_files Makefile libpng.pc:libpng.pc.in"
15558
15559ac_config_files="$ac_config_files libpng-config:libpng-config.in"
15560
15561
15562cat >confcache <<\_ACEOF
15563# This file is a shell script that caches the results of configure
15564# tests run on this system so they can be shared between configure
15565# scripts and configure runs, see configure's option --config-cache.
15566# It is not useful on other systems. If it contains results you don't
15567# want to keep, you may remove or edit it.
15568#
15569# config.status only pays attention to the cache file if you give it
15570# the --recheck option to rerun configure.
15571#
15572# 'ac_cv_env_foo' variables (set or unset) will be overridden when
15573# loading this file, other *unset* 'ac_cv_foo' will be assigned the
15574# following values.
15575
15576_ACEOF
15577
15578# The following way of writing the cache mishandles newlines in values,
15579# but we know of no workaround that is simple, portable, and efficient.
15580# So, we kill variables containing newlines.
15581# Ultrix sh set writes to stderr and can't be redirected directly,
15582# and sets the high bit in the cache file unless we assign to the vars.
15583(
15584 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15585 eval ac_val=\$$ac_var
15586 case $ac_val in #(
15587 *${as_nl}*)
15588 case $ac_var in #(
15589 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15590printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15591 esac
15592 case $ac_var in #(
15593 _ | IFS | as_nl) ;; #(
15594 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15595 *) { eval $ac_var=; unset $ac_var;} ;;
15596 esac ;;
15597 esac
15598 done
15599
15600 (set) 2>&1 |
15601 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15602 *${as_nl}ac_space=\ *)
15603 # 'set' does not quote correctly, so add quotes: double-quote
15604 # substitution turns \\\\ into \\, and sed turns \\ into \.
15605 sed -n \
15606 "s/'/'\\\\''/g;
15607 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15608 ;; #(
15609 *)
15610 # 'set' quotes correctly as required by POSIX, so do not add quotes.
15611 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15612 ;;
15613 esac |
15614 sort
15615) |
15616 sed '
15617 /^ac_cv_env_/b end
15618 t clear
15619 :clear
15620 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
15621 t end
15622 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15623 :end' >>confcache
15624if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15625 if test -w "$cache_file"; then
15626 if test "x$cache_file" != "x/dev/null"; then
15627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15628printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
15629 if test ! -f "$cache_file" || test -h "$cache_file"; then
15630 cat confcache >"$cache_file"
15631 else
15632 case $cache_file in #(
15633 */* | ?:*)
15634 mv -f confcache "$cache_file"$$ &&
15635 mv -f "$cache_file"$$ "$cache_file" ;; #(
15636 *)
15637 mv -f confcache "$cache_file" ;;
15638 esac
15639 fi
15640 fi
15641 else
15642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15643printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
15644 fi
15645fi
15646rm -f confcache
15647
15648test "x$prefix" = xNONE && prefix=$ac_default_prefix
15649# Let make expand exec_prefix.
15650test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15651
15652DEFS=-DHAVE_CONFIG_H
15653
15654ac_libobjs=
15655ac_ltlibobjs=
15656U=
15657for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15658 # 1. Remove the extension, and $U if already installed.
15659 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15660 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
15661 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15662 # will be set to the directory where LIBOBJS objects are built.
15663 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15664 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15665done
15666LIBOBJS=$ac_libobjs
15667
15668LTLIBOBJS=$ac_ltlibobjs
15669
15670
15671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15672printf %s "checking that generated files are newer than configure... " >&6; }
15673 if test -n "$am_sleep_pid"; then
15674 # Hide warnings about reused PIDs.
15675 wait $am_sleep_pid 2>/dev/null
15676 fi
15677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
15678printf "%s\n" "done" >&6; }
15679case $enable_silent_rules in # (((
15680 yes) AM_DEFAULT_VERBOSITY=0;;
15681 no) AM_DEFAULT_VERBOSITY=1;;
15682esac
15683if test $am_cv_make_support_nested_variables = yes; then
15684 AM_V='$(V)'
15685 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
15686else
15687 AM_V=$AM_DEFAULT_VERBOSITY
15688 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
15689fi
15690
15691 if test -n "$EXEEXT"; then
15692 am__EXEEXT_TRUE=
15693 am__EXEEXT_FALSE='#'
15694else
15695 am__EXEEXT_TRUE='#'
15696 am__EXEEXT_FALSE=
15697fi
15698
15699if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15700 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15701Usually this means the macro was only invoked conditionally." "$LINENO" 5
15702fi
15703if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15704 as_fn_error $? "conditional \"AMDEP\" was never defined.
15705Usually this means the macro was only invoked conditionally." "$LINENO" 5
15706fi
15707if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15708 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15709Usually this means the macro was only invoked conditionally." "$LINENO" 5
15710fi
15711if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
15712 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
15713Usually this means the macro was only invoked conditionally." "$LINENO" 5
15714fi
15715if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then
15716 as_fn_error $? "conditional \"ENABLE_TESTS\" was never defined.
15717Usually this means the macro was only invoked conditionally." "$LINENO" 5
15718fi
15719if test -z "${ENABLE_TOOLS_TRUE}" && test -z "${ENABLE_TOOLS_FALSE}"; then
15720 as_fn_error $? "conditional \"ENABLE_TOOLS\" was never defined.
15721Usually this means the macro was only invoked conditionally." "$LINENO" 5
15722fi
15723if test -z "${HAVE_CLOCK_GETTIME_TRUE}" && test -z "${HAVE_CLOCK_GETTIME_FALSE}"; then
15724 as_fn_error $? "conditional \"HAVE_CLOCK_GETTIME\" was never defined.
15725Usually this means the macro was only invoked conditionally." "$LINENO" 5
15726fi
15727if test -z "${HAVE_SOLARIS_LD_TRUE}" && test -z "${HAVE_SOLARIS_LD_FALSE}"; then
15728 as_fn_error $? "conditional \"HAVE_SOLARIS_LD\" was never defined.
15729Usually this means the macro was only invoked conditionally." "$LINENO" 5
15730fi
15731if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
15732 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
15733Usually this means the macro was only invoked conditionally." "$LINENO" 5
15734fi
15735if test -z "${DO_PNG_PREFIX_TRUE}" && test -z "${DO_PNG_PREFIX_FALSE}"; then
15736 as_fn_error $? "conditional \"DO_PNG_PREFIX\" was never defined.
15737Usually this means the macro was only invoked conditionally." "$LINENO" 5
15738fi
15739if test -z "${DO_INSTALL_LINKS_TRUE}" && test -z "${DO_INSTALL_LINKS_FALSE}"; then
15740 as_fn_error $? "conditional \"DO_INSTALL_LINKS\" was never defined.
15741Usually this means the macro was only invoked conditionally." "$LINENO" 5
15742fi
15743if test -z "${DO_INSTALL_LIBPNG_PC_TRUE}" && test -z "${DO_INSTALL_LIBPNG_PC_FALSE}"; then
15744 as_fn_error $? "conditional \"DO_INSTALL_LIBPNG_PC\" was never defined.
15745Usually this means the macro was only invoked conditionally." "$LINENO" 5
15746fi
15747if test -z "${DO_INSTALL_LIBPNG_CONFIG_TRUE}" && test -z "${DO_INSTALL_LIBPNG_CONFIG_FALSE}"; then
15748 as_fn_error $? "conditional \"DO_INSTALL_LIBPNG_CONFIG\" was never defined.
15749Usually this means the macro was only invoked conditionally." "$LINENO" 5
15750fi
15751if test -z "${PNG_ARM_NEON_TRUE}" && test -z "${PNG_ARM_NEON_FALSE}"; then
15752 as_fn_error $? "conditional \"PNG_ARM_NEON\" was never defined.
15753Usually this means the macro was only invoked conditionally." "$LINENO" 5
15754fi
15755if test -z "${PNG_MIPS_MSA_TRUE}" && test -z "${PNG_MIPS_MSA_FALSE}"; then
15756 as_fn_error $? "conditional \"PNG_MIPS_MSA\" was never defined.
15757Usually this means the macro was only invoked conditionally." "$LINENO" 5
15758fi
15759if test -z "${PNG_MIPS_MMI_TRUE}" && test -z "${PNG_MIPS_MMI_FALSE}"; then
15760 as_fn_error $? "conditional \"PNG_MIPS_MMI\" was never defined.
15761Usually this means the macro was only invoked conditionally." "$LINENO" 5
15762fi
15763if test -z "${PNG_INTEL_SSE_TRUE}" && test -z "${PNG_INTEL_SSE_FALSE}"; then
15764 as_fn_error $? "conditional \"PNG_INTEL_SSE\" was never defined.
15765Usually this means the macro was only invoked conditionally." "$LINENO" 5
15766fi
15767if test -z "${PNG_POWERPC_VSX_TRUE}" && test -z "${PNG_POWERPC_VSX_FALSE}"; then
15768 as_fn_error $? "conditional \"PNG_POWERPC_VSX\" was never defined.
15769Usually this means the macro was only invoked conditionally." "$LINENO" 5
15770fi
15771if test -z "${PNG_LOONGARCH_LSX_TRUE}" && test -z "${PNG_LOONGARCH_LSX_FALSE}"; then
15772 as_fn_error $? "conditional \"PNG_LOONGARCH_LSX\" was never defined.
15773Usually this means the macro was only invoked conditionally." "$LINENO" 5
15774fi
15775
15776: "${CONFIG_STATUS=./config.status}"
15777ac_write_fail=0
15778ac_clean_files_save=$ac_clean_files
15779ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15781printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15782as_write_fail=0
15783cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15784#! $SHELL
15785# Generated by $as_me.
15786# Run this file to recreate the current configuration.
15787# Compiler output produced by configure, useful for debugging
15788# configure, is in config.log if it exists.
15789
15790debug=false
15791ac_cs_recheck=false
15792ac_cs_silent=false
15793
15794SHELL=\${CONFIG_SHELL-$SHELL}
15795export SHELL
15796_ASEOF
15797cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15798## -------------------- ##
15799## M4sh Initialization. ##
15800## -------------------- ##
15801
15802# Be more Bourne compatible
15803DUALCASE=1; export DUALCASE # for MKS sh
15804if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15805then :
15806 emulate sh
15807 NULLCMD=:
15808 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15809 # is contrary to our usage. Disable this feature.
15810 alias -g '${1+"$@"}'='"$@"'
15811 setopt NO_GLOB_SUBST
15812else case e in #(
15813 e) case `(set -o) 2>/dev/null` in #(
15814 *posix*) :
15815 set -o posix ;; #(
15816 *) :
15817 ;;
15818esac ;;
15819esac
15820fi
15821
15822
15823
15824# Reset variables that may have inherited troublesome values from
15825# the environment.
15826
15827# IFS needs to be set, to space, tab, and newline, in precisely that order.
15828# (If _AS_PATH_WALK were called with IFS unset, it would have the
15829# side effect of setting IFS to empty, thus disabling word splitting.)
15830# Quoting is to prevent editors from complaining about space-tab.
15831as_nl='
15832'
15833export as_nl
15834IFS=" "" $as_nl"
15835
15836PS1='$ '
15837PS2='> '
15838PS4='+ '
15839
15840# Ensure predictable behavior from utilities with locale-dependent output.
15841LC_ALL=C
15842export LC_ALL
15843LANGUAGE=C
15844export LANGUAGE
15845
15846# We cannot yet rely on "unset" to work, but we need these variables
15847# to be unset--not just set to an empty or harmless value--now, to
15848# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
15849# also avoids known problems related to "unset" and subshell syntax
15850# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15851for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15852do eval test \${$as_var+y} \
15853 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15854done
15855
15856# Ensure that fds 0, 1, and 2 are open.
15857if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15858if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15859if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
15860
15861# The user is always right.
15862if ${PATH_SEPARATOR+false} :; then
15863 PATH_SEPARATOR=:
15864 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15865 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15866 PATH_SEPARATOR=';'
15867 }
15868fi
15869
15870
15871# Find who we are. Look in the path if we contain no directory separator.
15872as_myself=
15873case $0 in #((
15874 *[\\/]* ) as_myself=$0 ;;
15875 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15876for as_dir in $PATH
15877do
15878 IFS=$as_save_IFS
15879 case $as_dir in #(((
15880 '') as_dir=./ ;;
15881 */) ;;
15882 *) as_dir=$as_dir/ ;;
15883 esac
15884 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15885 done
15886IFS=$as_save_IFS
15887
15888 ;;
15889esac
15890# We did not find ourselves, most probably we were run as 'sh COMMAND'
15891# in which case we are not to be found in the path.
15892if test "x$as_myself" = x; then
15893 as_myself=$0
15894fi
15895if test ! -f "$as_myself"; then
15896 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15897 exit 1
15898fi
15899
15900
15901
15902# as_fn_error STATUS ERROR [LINENO LOG_FD]
15903# ----------------------------------------
15904# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15905# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15906# script with STATUS, using 1 if that was 0.
15907as_fn_error ()
15908{
15909 as_status=$1; test $as_status -eq 0 && as_status=1
15910 if test "$4"; then
15911 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15913 fi
15914 printf "%s\n" "$as_me: error: $2" >&2
15915 as_fn_exit $as_status
15916} # as_fn_error
15917
15918
15919# as_fn_set_status STATUS
15920# -----------------------
15921# Set $? to STATUS, without forking.
15922as_fn_set_status ()
15923{
15924 return $1
15925} # as_fn_set_status
15926
15927# as_fn_exit STATUS
15928# -----------------
15929# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15930as_fn_exit ()
15931{
15932 set +e
15933 as_fn_set_status $1
15934 exit $1
15935} # as_fn_exit
15936
15937# as_fn_unset VAR
15938# ---------------
15939# Portably unset VAR.
15940as_fn_unset ()
15941{
15942 { eval $1=; unset $1;}
15943}
15944as_unset=as_fn_unset
15945
15946# as_fn_append VAR VALUE
15947# ----------------------
15948# Append the text in VALUE to the end of the definition contained in VAR. Take
15949# advantage of any shell optimizations that allow amortized linear growth over
15950# repeated appends, instead of the typical quadratic growth present in naive
15951# implementations.
15952if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15953then :
15954 eval 'as_fn_append ()
15955 {
15956 eval $1+=\$2
15957 }'
15958else case e in #(
15959 e) as_fn_append ()
15960 {
15961 eval $1=\$$1\$2
15962 } ;;
15963esac
15964fi # as_fn_append
15965
15966# as_fn_arith ARG...
15967# ------------------
15968# Perform arithmetic evaluation on the ARGs, and store the result in the
15969# global $as_val. Take advantage of shells that can avoid forks. The arguments
15970# must be portable across $(()) and expr.
15971if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15972then :
15973 eval 'as_fn_arith ()
15974 {
15975 as_val=$(( $* ))
15976 }'
15977else case e in #(
15978 e) as_fn_arith ()
15979 {
15980 as_val=`expr "$@" || test $? -eq 1`
15981 } ;;
15982esac
15983fi # as_fn_arith
15984
15985
15986if expr a : '\(a\)' >/dev/null 2>&1 &&
15987 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15988 as_expr=expr
15989else
15990 as_expr=false
15991fi
15992
15993if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15994 as_basename=basename
15995else
15996 as_basename=false
15997fi
15998
15999if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16000 as_dirname=dirname
16001else
16002 as_dirname=false
16003fi
16004
16005as_me=`$as_basename -- "$0" ||
16006$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16007 X"$0" : 'X\(//\)$' \| \
16008 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16009printf "%s\n" X/"$0" |
16010 sed '/^.*\/\([^/][^/]*\)\/*$/{
16011 s//\1/
16012 q
16013 }
16014 /^X\/\(\/\/\)$/{
16015 s//\1/
16016 q
16017 }
16018 /^X\/\(\/\).*/{
16019 s//\1/
16020 q
16021 }
16022 s/.*/./; q'`
16023
16024# Avoid depending upon Character Ranges.
16025as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16026as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16027as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16028as_cr_digits='0123456789'
16029as_cr_alnum=$as_cr_Letters$as_cr_digits
16030
16031
16032# Determine whether it's possible to make 'echo' print without a newline.
16033# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16034# for compatibility with existing Makefiles.
16035ECHO_C= ECHO_N= ECHO_T=
16036case `echo -n x` in #(((((
16037-n*)
16038 case `echo 'xy\c'` in
16039 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16040 xy) ECHO_C='\c';;
16041 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16042 ECHO_T=' ';;
16043 esac;;
16044*)
16045 ECHO_N='-n';;
16046esac
16047
16048# For backward compatibility with old third-party macros, we provide
16049# the shell variables $as_echo and $as_echo_n. New code should use
16050# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16051as_echo='printf %s\n'
16052as_echo_n='printf %s'
16053
16054rm -f conf$$ conf$$.exe conf$$.file
16055if test -d conf$$.dir; then
16056 rm -f conf$$.dir/conf$$.file
16057else
16058 rm -f conf$$.dir
16059 mkdir conf$$.dir 2>/dev/null
16060fi
16061if (echo >conf$$.file) 2>/dev/null; then
16062 if ln -s conf$$.file conf$$ 2>/dev/null; then
16063 as_ln_s='ln -s'
16064 # ... but there are two gotchas:
16065 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
16066 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
16067 # In both cases, we have to default to 'cp -pR'.
16068 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16069 as_ln_s='cp -pR'
16070 elif ln conf$$.file conf$$ 2>/dev/null; then
16071 as_ln_s=ln
16072 else
16073 as_ln_s='cp -pR'
16074 fi
16075else
16076 as_ln_s='cp -pR'
16077fi
16078rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16079rmdir conf$$.dir 2>/dev/null
16080
16081
16082# as_fn_mkdir_p
16083# -------------
16084# Create "$as_dir" as a directory, including parents if necessary.
16085as_fn_mkdir_p ()
16086{
16087
16088 case $as_dir in #(
16089 -*) as_dir=./$as_dir;;
16090 esac
16091 test -d "$as_dir" || eval $as_mkdir_p || {
16092 as_dirs=
16093 while :; do
16094 case $as_dir in #(
16095 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16096 *) as_qdir=$as_dir;;
16097 esac
16098 as_dirs="'$as_qdir' $as_dirs"
16099 as_dir=`$as_dirname -- "$as_dir" ||
16100$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16101 X"$as_dir" : 'X\(//\)[^/]' \| \
16102 X"$as_dir" : 'X\(//\)$' \| \
16103 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16104printf "%s\n" X"$as_dir" |
16105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16106 s//\1/
16107 q
16108 }
16109 /^X\(\/\/\)[^/].*/{
16110 s//\1/
16111 q
16112 }
16113 /^X\(\/\/\)$/{
16114 s//\1/
16115 q
16116 }
16117 /^X\(\/\).*/{
16118 s//\1/
16119 q
16120 }
16121 s/.*/./; q'`
16122 test -d "$as_dir" && break
16123 done
16124 test -z "$as_dirs" || eval "mkdir $as_dirs"
16125 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16126
16127
16128} # as_fn_mkdir_p
16129if mkdir -p . 2>/dev/null; then
16130 as_mkdir_p='mkdir -p "$as_dir"'
16131else
16132 test -d ./-p && rmdir ./-p
16133 as_mkdir_p=false
16134fi
16135
16136
16137# as_fn_executable_p FILE
16138# -----------------------
16139# Test if FILE is an executable regular file.
16140as_fn_executable_p ()
16141{
16142 test -f "$1" && test -x "$1"
16143} # as_fn_executable_p
16144as_test_x='test -x'
16145as_executable_p=as_fn_executable_p
16146
16147# Sed expression to map a string onto a valid CPP name.
16148as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16149as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
16150
16151# Sed expression to map a string onto a valid variable name.
16152as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16153as_tr_sh="eval sed '$as_sed_sh'" # deprecated
16154
16155
16156exec 6>&1
16157## ----------------------------------- ##
16158## Main body of $CONFIG_STATUS script. ##
16159## ----------------------------------- ##
16160_ASEOF
16161test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16162
16163cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16164# Save the log message, to keep $0 and so on meaningful, and to
16165# report actual input values of CONFIG_FILES etc. instead of their
16166# values after options handling.
16167ac_log="
16168This file was extended by libpng $as_me 1.6.45, which was
16169generated by GNU Autoconf 2.72. Invocation command line was
16170
16171 CONFIG_FILES = $CONFIG_FILES
16172 CONFIG_HEADERS = $CONFIG_HEADERS
16173 CONFIG_LINKS = $CONFIG_LINKS
16174 CONFIG_COMMANDS = $CONFIG_COMMANDS
16175 $ $0 $@
16176
16177on `(hostname || uname -n) 2>/dev/null | sed 1q`
16178"
16179
16180_ACEOF
16181
16182case $ac_config_files in *"
16183"*) set x $ac_config_files; shift; ac_config_files=$*;;
16184esac
16185
16186case $ac_config_headers in *"
16187"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16188esac
16189
16190
16191cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16192# Files that config.status was made for.
16193config_files="$ac_config_files"
16194config_headers="$ac_config_headers"
16195config_commands="$ac_config_commands"
16196
16197_ACEOF
16198
16199cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16200ac_cs_usage="\
16201'$as_me' instantiates files and other configuration actions
16202from templates according to the current configuration. Unless the files
16203and actions are specified as TAGs, all are instantiated by default.
16204
16205Usage: $0 [OPTION]... [TAG]...
16206
16207 -h, --help print this help, then exit
16208 -V, --version print version number and configuration settings, then exit
16209 --config print configuration, then exit
16210 -q, --quiet, --silent
16211 do not print progress messages
16212 -d, --debug don't remove temporary files
16213 --recheck update $as_me by reconfiguring in the same conditions
16214 --file=FILE[:TEMPLATE]
16215 instantiate the configuration file FILE
16216 --header=FILE[:TEMPLATE]
16217 instantiate the configuration header FILE
16218
16219Configuration files:
16220$config_files
16221
16222Configuration headers:
16223$config_headers
16224
16225Configuration commands:
16226$config_commands
16227
16228Report bugs to <[email protected]>."
16229
16230_ACEOF
16231ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16232ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16233cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16234ac_cs_config='$ac_cs_config_escaped'
16235ac_cs_version="\\
16236libpng config.status 1.6.45
16237configured by $0, generated by GNU Autoconf 2.72,
16238 with options \\"\$ac_cs_config\\"
16239
16240Copyright (C) 2023 Free Software Foundation, Inc.
16241This config.status script is free software; the Free Software Foundation
16242gives unlimited permission to copy, distribute and modify it."
16243
16244ac_pwd='$ac_pwd'
16245srcdir='$srcdir'
16246INSTALL='$INSTALL'
16247MKDIR_P='$MKDIR_P'
16248AWK='$AWK'
16249test -n "\$AWK" || AWK=awk
16250_ACEOF
16251
16252cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16253# The default lists apply if the user does not specify any file.
16254ac_need_defaults=:
16255while test $# != 0
16256do
16257 case $1 in
16258 --*=?*)
16259 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16260 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16261 ac_shift=:
16262 ;;
16263 --*=)
16264 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16265 ac_optarg=
16266 ac_shift=:
16267 ;;
16268 *)
16269 ac_option=$1
16270 ac_optarg=$2
16271 ac_shift=shift
16272 ;;
16273 esac
16274
16275 case $ac_option in
16276 # Handling of the options.
16277 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16278 ac_cs_recheck=: ;;
16279 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16280 printf "%s\n" "$ac_cs_version"; exit ;;
16281 --config | --confi | --conf | --con | --co | --c )
16282 printf "%s\n" "$ac_cs_config"; exit ;;
16283 --debug | --debu | --deb | --de | --d | -d )
16284 debug=: ;;
16285 --file | --fil | --fi | --f )
16286 $ac_shift
16287 case $ac_optarg in
16288 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16289 '') as_fn_error $? "missing file argument" ;;
16290 esac
16291 as_fn_append CONFIG_FILES " '$ac_optarg'"
16292 ac_need_defaults=false;;
16293 --header | --heade | --head | --hea )
16294 $ac_shift
16295 case $ac_optarg in
16296 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16297 esac
16298 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16299 ac_need_defaults=false;;
16300 --he | --h)
16301 # Conflict between --help and --header
16302 as_fn_error $? "ambiguous option: '$1'
16303Try '$0 --help' for more information.";;
16304 --help | --hel | -h )
16305 printf "%s\n" "$ac_cs_usage"; exit ;;
16306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16307 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16308 ac_cs_silent=: ;;
16309
16310 # This is an error.
16311 -*) as_fn_error $? "unrecognized option: '$1'
16312Try '$0 --help' for more information." ;;
16313
16314 *) as_fn_append ac_config_targets " $1"
16315 ac_need_defaults=false ;;
16316
16317 esac
16318 shift
16319done
16320
16321ac_configure_extra_args=
16322
16323if $ac_cs_silent; then
16324 exec 6>/dev/null
16325 ac_configure_extra_args="$ac_configure_extra_args --silent"
16326fi
16327
16328_ACEOF
16329cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16330if \$ac_cs_recheck; then
16331 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16332 shift
16333 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16334 CONFIG_SHELL='$SHELL'
16335 export CONFIG_SHELL
16336 exec "\$@"
16337fi
16338
16339_ACEOF
16340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16341exec 5>>config.log
16342{
16343 echo
16344 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16345## Running $as_me. ##
16346_ASBOX
16347 printf "%s\n" "$ac_log"
16348} >&5
16349
16350_ACEOF
16351cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16352#
16353# INIT-COMMANDS
16354#
16355AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
16356
16357
16358# The HP-UX ksh and POSIX shell print the target directory to stdout
16359# if CDPATH is set.
16360(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16361
16362sed_quote_subst='$sed_quote_subst'
16363double_quote_subst='$double_quote_subst'
16364delay_variable_subst='$delay_variable_subst'
16365SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16366Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16367GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16368EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16369FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16370SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16371ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16372LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16373macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16374macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16375AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16376DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16377OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16378enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16379enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16380pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16381enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16382shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16383PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16384host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16385host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16386host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16387build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16388build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16389build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16390NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16391LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16392max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16393ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16394exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16395lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16396lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16397lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16398lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16399lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16400reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16401reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16402FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
16403deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16404file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16405file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16406want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16407sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16408AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16409lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
16410AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16411archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16412STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16413RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16414old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16415old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16416old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16417lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16418CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16419CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16420compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16421GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16422lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16423lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16424lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16425lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16426lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16427lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16428nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16429lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16430lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16431objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16432MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16433lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16434lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16435lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16436lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16437lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16438need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16439MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16440DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16441NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16442LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16443OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16444OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16445libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16446shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16447extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16448archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16449enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16450export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16451whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16452compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16453old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16454old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16455archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16456archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16457module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16458module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16459with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16460allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16461no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16462hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16463hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16464hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16465hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16466hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16467hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16468hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16469inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16470link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16471always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16472export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16473exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16474include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16475prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16476postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16477file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16478variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16479need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16480need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16481version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16482runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16483shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16484shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16485libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16486library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16487soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16488install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16489postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16490postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16491finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16492finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16493hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16494sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16495configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16496configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16497hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16498enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16499enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16500enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16501old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16502striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16503
16504LTCC='$LTCC'
16505LTCFLAGS='$LTCFLAGS'
16506compiler='$compiler_DEFAULT'
16507
16508# A function that is used when there is no print builtin or printf.
16509func_fallback_echo ()
16510{
16511 eval 'cat <<_LTECHO_EOF
16512\$1
16513_LTECHO_EOF'
16514}
16515
16516# Quote evaled strings.
16517for var in SED \
16518GREP \
16519EGREP \
16520FGREP \
16521SHELL \
16522ECHO \
16523LD \
16524AS \
16525DLLTOOL \
16526OBJDUMP \
16527PATH_SEPARATOR \
16528NM \
16529LN_S \
16530lt_SP2NL \
16531lt_NL2SP \
16532reload_flag \
16533FILECMD \
16534deplibs_check_method \
16535file_magic_cmd \
16536file_magic_glob \
16537want_nocaseglob \
16538sharedlib_from_linklib_cmd \
16539AR \
16540archiver_list_spec \
16541STRIP \
16542RANLIB \
16543CC \
16544CFLAGS \
16545compiler \
16546lt_cv_sys_global_symbol_pipe \
16547lt_cv_sys_global_symbol_to_cdecl \
16548lt_cv_sys_global_symbol_to_import \
16549lt_cv_sys_global_symbol_to_c_name_address \
16550lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16551lt_cv_nm_interface \
16552nm_file_list_spec \
16553lt_cv_truncate_bin \
16554lt_prog_compiler_no_builtin_flag \
16555lt_prog_compiler_pic \
16556lt_prog_compiler_wl \
16557lt_prog_compiler_static \
16558lt_cv_prog_compiler_c_o \
16559need_locks \
16560MANIFEST_TOOL \
16561DSYMUTIL \
16562NMEDIT \
16563LIPO \
16564OTOOL \
16565OTOOL64 \
16566shrext_cmds \
16567export_dynamic_flag_spec \
16568whole_archive_flag_spec \
16569compiler_needs_object \
16570with_gnu_ld \
16571allow_undefined_flag \
16572no_undefined_flag \
16573hardcode_libdir_flag_spec \
16574hardcode_libdir_separator \
16575exclude_expsyms \
16576include_expsyms \
16577file_list_spec \
16578variables_saved_for_relink \
16579libname_spec \
16580library_names_spec \
16581soname_spec \
16582install_override_mode \
16583finish_eval \
16584old_striplib \
16585striplib; do
16586 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16587 *[\\\\\\\`\\"\\\$]*)
16588 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16589 ;;
16590 *)
16591 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16592 ;;
16593 esac
16594done
16595
16596# Double-quote double-evaled strings.
16597for var in reload_cmds \
16598old_postinstall_cmds \
16599old_postuninstall_cmds \
16600old_archive_cmds \
16601extract_expsyms_cmds \
16602old_archive_from_new_cmds \
16603old_archive_from_expsyms_cmds \
16604archive_cmds \
16605archive_expsym_cmds \
16606module_cmds \
16607module_expsym_cmds \
16608export_symbols_cmds \
16609prelink_cmds \
16610postlink_cmds \
16611postinstall_cmds \
16612postuninstall_cmds \
16613finish_cmds \
16614sys_lib_search_path_spec \
16615configure_time_dlsearch_path \
16616configure_time_lt_sys_library_path; do
16617 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16618 *[\\\\\\\`\\"\\\$]*)
16619 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16620 ;;
16621 *)
16622 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16623 ;;
16624 esac
16625done
16626
16627ac_aux_dir='$ac_aux_dir'
16628
16629# See if we are running on zsh, and set the options that allow our
16630# commands through without removal of \ escapes INIT.
16631if test -n "\${ZSH_VERSION+set}"; then
16632 setopt NO_GLOB_SUBST
16633fi
16634
16635
16636 PACKAGE='$PACKAGE'
16637 VERSION='$VERSION'
16638 RM='$RM'
16639 ofile='$ofile'
16640
16641
16642
16643
16644_ACEOF
16645
16646cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16647
16648# Handling of arguments.
16649for ac_config_target in $ac_config_targets
16650do
16651 case $ac_config_target in
16652 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16653 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16654 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16655 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16656 "libpng.pc") CONFIG_FILES="$CONFIG_FILES libpng.pc:libpng.pc.in" ;;
16657 "libpng-config") CONFIG_FILES="$CONFIG_FILES libpng-config:libpng-config.in" ;;
16658
16659 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
16660 esac
16661done
16662
16663
16664# If the user did not use the arguments to specify the items to instantiate,
16665# then the envvar interface is used. Set only those that are not.
16666# We use the long form for the default assignment because of an extremely
16667# bizarre bug on SunOS 4.1.3.
16668if $ac_need_defaults; then
16669 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16670 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16671 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16672fi
16673
16674# Have a temporary directory for convenience. Make it in the build tree
16675# simply because there is no reason against having it here, and in addition,
16676# creating and moving files from /tmp can sometimes cause problems.
16677# Hook for its removal unless debugging.
16678# Note that there is a small window in which the directory will not be cleaned:
16679# after its creation but before its name has been assigned to '$tmp'.
16680$debug ||
16681{
16682 tmp= ac_tmp=
16683 trap 'exit_status=$?
16684 : "${ac_tmp:=$tmp}"
16685 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16686' 0
16687 trap 'as_fn_exit 1' 1 2 13 15
16688}
16689# Create a (secure) tmp directory for tmp files.
16690
16691{
16692 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16693 test -d "$tmp"
16694} ||
16695{
16696 tmp=./conf$$-$RANDOM
16697 (umask 077 && mkdir "$tmp")
16698} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16699ac_tmp=$tmp
16700
16701# Set up the scripts for CONFIG_FILES section.
16702# No need to generate them if there are no CONFIG_FILES.
16703# This happens for instance with './config.status config.h'.
16704if test -n "$CONFIG_FILES"; then
16705
16706
16707ac_cr=`echo X | tr X '\015'`
16708# On cygwin, bash can eat \r inside `` if the user requested igncr.
16709# But we know of no other shell where ac_cr would be empty at this
16710# point, so we can use a bashism as a fallback.
16711if test "x$ac_cr" = x; then
16712 eval ac_cr=\$\'\\r\'
16713fi
16714ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16715if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16716 ac_cs_awk_cr='\\r'
16717else
16718 ac_cs_awk_cr=$ac_cr
16719fi
16720
16721echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16722_ACEOF
16723
16724
16725{
16726 echo "cat >conf$$subs.awk <<_ACEOF" &&
16727 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16728 echo "_ACEOF"
16729} >conf$$subs.sh ||
16730 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16731ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16732ac_delim='%!_!# '
16733for ac_last_try in false false false false false :; do
16734 . ./conf$$subs.sh ||
16735 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16736
16737 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16738 if test $ac_delim_n = $ac_delim_num; then
16739 break
16740 elif $ac_last_try; then
16741 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16742 else
16743 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16744 fi
16745done
16746rm -f conf$$subs.sh
16747
16748cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16749cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16750_ACEOF
16751sed -n '
16752h
16753s/^/S["/; s/!.*/"]=/
16754p
16755g
16756s/^[^!]*!//
16757:repl
16758t repl
16759s/'"$ac_delim"'$//
16760t delim
16761:nl
16762h
16763s/\(.\{148\}\)..*/\1/
16764t more1
16765s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16766p
16767n
16768b repl
16769:more1
16770s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16771p
16772g
16773s/.\{148\}//
16774t nl
16775:delim
16776h
16777s/\(.\{148\}\)..*/\1/
16778t more2
16779s/["\\]/\\&/g; s/^/"/; s/$/"/
16780p
16781b
16782:more2
16783s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16784p
16785g
16786s/.\{148\}//
16787t delim
16788' <conf$$subs.awk | sed '
16789/^[^""]/{
16790 N
16791 s/\n//
16792}
16793' >>$CONFIG_STATUS || ac_write_fail=1
16794rm -f conf$$subs.awk
16795cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16796_ACAWK
16797cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16798 for (key in S) S_is_set[key] = 1
16799 FS = ""
16800
16801}
16802{
16803 line = $ 0
16804 nfields = split(line, field, "@")
16805 substed = 0
16806 len = length(field[1])
16807 for (i = 2; i < nfields; i++) {
16808 key = field[i]
16809 keylen = length(key)
16810 if (S_is_set[key]) {
16811 value = S[key]
16812 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16813 len += length(value) + length(field[++i])
16814 substed = 1
16815 } else
16816 len += 1 + keylen
16817 }
16818
16819 print line
16820}
16821
16822_ACAWK
16823_ACEOF
16824cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16825if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16826 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16827else
16828 cat
16829fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16830 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16831_ACEOF
16832
16833# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16834# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16835# trailing colons and then remove the whole line if VPATH becomes empty
16836# (actually we leave an empty line to preserve line numbers).
16837if test "x$srcdir" = x.; then
16838 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16839h
16840s///
16841s/^/:/
16842s/[ ]*$/:/
16843s/:\$(srcdir):/:/g
16844s/:\${srcdir}:/:/g
16845s/:@srcdir@:/:/g
16846s/^:*//
16847s/:*$//
16848x
16849s/\(=[ ]*\).*/\1/
16850G
16851s/\n//
16852s/^[^=]*=[ ]*$//
16853}'
16854fi
16855
16856cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16857fi # test -n "$CONFIG_FILES"
16858
16859# Set up the scripts for CONFIG_HEADERS section.
16860# No need to generate them if there are no CONFIG_HEADERS.
16861# This happens for instance with './config.status Makefile'.
16862if test -n "$CONFIG_HEADERS"; then
16863cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16864BEGIN {
16865_ACEOF
16866
16867# Transform confdefs.h into an awk script 'defines.awk', embedded as
16868# here-document in config.status, that substitutes the proper values into
16869# config.h.in to produce config.h.
16870
16871# Create a delimiter string that does not exist in confdefs.h, to ease
16872# handling of long lines.
16873ac_delim='%!_!# '
16874for ac_last_try in false false :; do
16875 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16876 if test -z "$ac_tt"; then
16877 break
16878 elif $ac_last_try; then
16879 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16880 else
16881 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16882 fi
16883done
16884
16885# For the awk script, D is an array of macro values keyed by name,
16886# likewise P contains macro parameters if any. Preserve backslash
16887# newline sequences.
16888
16889ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16890sed -n '
16891s/.\{148\}/&'"$ac_delim"'/g
16892t rset
16893:rset
16894s/^[ ]*#[ ]*define[ ][ ]*/ /
16895t def
16896d
16897:def
16898s/\\$//
16899t bsnl
16900s/["\\]/\\&/g
16901s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16902D["\1"]=" \3"/p
16903s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16904d
16905:bsnl
16906s/["\\]/\\&/g
16907s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16908D["\1"]=" \3\\\\\\n"\\/p
16909t cont
16910s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16911t cont
16912d
16913:cont
16914n
16915s/.\{148\}/&'"$ac_delim"'/g
16916t clear
16917:clear
16918s/\\$//
16919t bsnlc
16920s/["\\]/\\&/g; s/^/"/; s/$/"/p
16921d
16922:bsnlc
16923s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16924b cont
16925' <confdefs.h | sed '
16926s/'"$ac_delim"'/"\\\
16927"/g' >>$CONFIG_STATUS || ac_write_fail=1
16928
16929cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16930 for (key in D) D_is_set[key] = 1
16931 FS = ""
16932}
16933/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16934 line = \$ 0
16935 split(line, arg, " ")
16936 if (arg[1] == "#") {
16937 defundef = arg[2]
16938 mac1 = arg[3]
16939 } else {
16940 defundef = substr(arg[1], 2)
16941 mac1 = arg[2]
16942 }
16943 split(mac1, mac2, "(") #)
16944 macro = mac2[1]
16945 prefix = substr(line, 1, index(line, defundef) - 1)
16946 if (D_is_set[macro]) {
16947 # Preserve the white space surrounding the "#".
16948 print prefix "define", macro P[macro] D[macro]
16949 next
16950 } else {
16951 # Replace #undef with comments. This is necessary, for example,
16952 # in the case of _POSIX_SOURCE, which is predefined and required
16953 # on some systems where configure will not decide to define it.
16954 if (defundef == "undef") {
16955 print "/*", prefix defundef, macro, "*/"
16956 next
16957 }
16958 }
16959}
16960{ print }
16961_ACAWK
16962_ACEOF
16963cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16964 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16965fi # test -n "$CONFIG_HEADERS"
16966
16967
16968eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16969shift
16970for ac_tag
16971do
16972 case $ac_tag in
16973 :[FHLC]) ac_mode=$ac_tag; continue;;
16974 esac
16975 case $ac_mode$ac_tag in
16976 :[FHL]*:*);;
16977 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
16978 :[FH]-) ac_tag=-:-;;
16979 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16980 esac
16981 ac_save_IFS=$IFS
16982 IFS=:
16983 set x $ac_tag
16984 IFS=$ac_save_IFS
16985 shift
16986 ac_file=$1
16987 shift
16988
16989 case $ac_mode in
16990 :L) ac_source=$1;;
16991 :[FH])
16992 ac_file_inputs=
16993 for ac_f
16994 do
16995 case $ac_f in
16996 -) ac_f="$ac_tmp/stdin";;
16997 *) # Look for the file first in the build tree, then in the source tree
16998 # (if the path is not absolute). The absolute path cannot be DOS-style,
16999 # because $ac_f cannot contain ':'.
17000 test -f "$ac_f" ||
17001 case $ac_f in
17002 [\\/$]*) false;;
17003 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17004 esac ||
17005 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
17006 esac
17007 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17008 as_fn_append ac_file_inputs " '$ac_f'"
17009 done
17010
17011 # Let's still pretend it is 'configure' which instantiates (i.e., don't
17012 # use $as_me), people would be surprised to read:
17013 # /* config.h. Generated by config.status. */
17014 configure_input='Generated from '`
17015 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17016 `' by configure.'
17017 if test x"$ac_file" != x-; then
17018 configure_input="$ac_file. $configure_input"
17019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17020printf "%s\n" "$as_me: creating $ac_file" >&6;}
17021 fi
17022 # Neutralize special characters interpreted by sed in replacement strings.
17023 case $configure_input in #(
17024 *\&* | *\|* | *\\* )
17025 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
17026 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17027 *) ac_sed_conf_input=$configure_input;;
17028 esac
17029
17030 case $ac_tag in
17031 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17032 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17033 esac
17034 ;;
17035 esac
17036
17037 ac_dir=`$as_dirname -- "$ac_file" ||
17038$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17039 X"$ac_file" : 'X\(//\)[^/]' \| \
17040 X"$ac_file" : 'X\(//\)$' \| \
17041 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17042printf "%s\n" X"$ac_file" |
17043 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17044 s//\1/
17045 q
17046 }
17047 /^X\(\/\/\)[^/].*/{
17048 s//\1/
17049 q
17050 }
17051 /^X\(\/\/\)$/{
17052 s//\1/
17053 q
17054 }
17055 /^X\(\/\).*/{
17056 s//\1/
17057 q
17058 }
17059 s/.*/./; q'`
17060 as_dir="$ac_dir"; as_fn_mkdir_p
17061 ac_builddir=.
17062
17063case "$ac_dir" in
17064.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17065*)
17066 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
17067 # A ".." for each directory in $ac_dir_suffix.
17068 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17069 case $ac_top_builddir_sub in
17070 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17071 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17072 esac ;;
17073esac
17074ac_abs_top_builddir=$ac_pwd
17075ac_abs_builddir=$ac_pwd$ac_dir_suffix
17076# for backward compatibility:
17077ac_top_builddir=$ac_top_build_prefix
17078
17079case $srcdir in
17080 .) # We are building in place.
17081 ac_srcdir=.
17082 ac_top_srcdir=$ac_top_builddir_sub
17083 ac_abs_top_srcdir=$ac_pwd ;;
17084 [\\/]* | ?:[\\/]* ) # Absolute name.
17085 ac_srcdir=$srcdir$ac_dir_suffix;
17086 ac_top_srcdir=$srcdir
17087 ac_abs_top_srcdir=$srcdir ;;
17088 *) # Relative name.
17089 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17090 ac_top_srcdir=$ac_top_build_prefix$srcdir
17091 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17092esac
17093ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17094
17095
17096 case $ac_mode in
17097 :F)
17098 #
17099 # CONFIG_FILE
17100 #
17101
17102 case $INSTALL in
17103 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17104 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17105 esac
17106 ac_MKDIR_P=$MKDIR_P
17107 case $MKDIR_P in
17108 [\\/$]* | ?:[\\/]* ) ;;
17109 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17110 esac
17111_ACEOF
17112
17113cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17114# If the template does not know about datarootdir, expand it.
17115# FIXME: This hack should be removed a few years after 2.60.
17116ac_datarootdir_hack=; ac_datarootdir_seen=
17117ac_sed_dataroot='
17118/datarootdir/ {
17119 p
17120 q
17121}
17122/@datadir@/p
17123/@docdir@/p
17124/@infodir@/p
17125/@localedir@/p
17126/@mandir@/p'
17127case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17128*datarootdir*) ac_datarootdir_seen=yes;;
17129*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17131printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17132_ACEOF
17133cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17134 ac_datarootdir_hack='
17135 s&@datadir@&$datadir&g
17136 s&@docdir@&$docdir&g
17137 s&@infodir@&$infodir&g
17138 s&@localedir@&$localedir&g
17139 s&@mandir@&$mandir&g
17140 s&\\\${datarootdir}&$datarootdir&g' ;;
17141esac
17142_ACEOF
17143
17144# Neutralize VPATH when '$srcdir' = '.'.
17145# Shell code in configure.ac might set extrasub.
17146# FIXME: do we really want to maintain this feature?
17147cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17148ac_sed_extra="$ac_vpsub
17149$extrasub
17150_ACEOF
17151cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17152:t
17153/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17154s|@configure_input@|$ac_sed_conf_input|;t t
17155s&@top_builddir@&$ac_top_builddir_sub&;t t
17156s&@top_build_prefix@&$ac_top_build_prefix&;t t
17157s&@srcdir@&$ac_srcdir&;t t
17158s&@abs_srcdir@&$ac_abs_srcdir&;t t
17159s&@top_srcdir@&$ac_top_srcdir&;t t
17160s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17161s&@builddir@&$ac_builddir&;t t
17162s&@abs_builddir@&$ac_abs_builddir&;t t
17163s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17164s&@INSTALL@&$ac_INSTALL&;t t
17165s&@MKDIR_P@&$ac_MKDIR_P&;t t
17166$ac_datarootdir_hack
17167"
17168eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17169 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17170
17171test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17172 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17173 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17174 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
17176which seems to be undefined. Please make sure it is defined" >&5
17177printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
17178which seems to be undefined. Please make sure it is defined" >&2;}
17179
17180 rm -f "$ac_tmp/stdin"
17181 case $ac_file in
17182 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17183 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17184 esac \
17185 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17186 ;;
17187 :H)
17188 #
17189 # CONFIG_HEADER
17190 #
17191 if test x"$ac_file" != x-; then
17192 {
17193 printf "%s\n" "/* $configure_input */" >&1 \
17194 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17195 } >"$ac_tmp/config.h" \
17196 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17197 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17199printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
17200 else
17201 rm -f "$ac_file"
17202 mv "$ac_tmp/config.h" "$ac_file" \
17203 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17204 fi
17205 else
17206 printf "%s\n" "/* $configure_input */" >&1 \
17207 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17208 || as_fn_error $? "could not create -" "$LINENO" 5
17209 fi
17210# Compute "$ac_file"'s index in $config_headers.
17211_am_arg="$ac_file"
17212_am_stamp_count=1
17213for _am_header in $config_headers :; do
17214 case $_am_header in
17215 $_am_arg | $_am_arg:* )
17216 break ;;
17217 * )
17218 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17219 esac
17220done
17221echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17222$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17223 X"$_am_arg" : 'X\(//\)[^/]' \| \
17224 X"$_am_arg" : 'X\(//\)$' \| \
17225 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17226printf "%s\n" X"$_am_arg" |
17227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17228 s//\1/
17229 q
17230 }
17231 /^X\(\/\/\)[^/].*/{
17232 s//\1/
17233 q
17234 }
17235 /^X\(\/\/\)$/{
17236 s//\1/
17237 q
17238 }
17239 /^X\(\/\).*/{
17240 s//\1/
17241 q
17242 }
17243 s/.*/./; q'`/stamp-h$_am_stamp_count
17244 ;;
17245
17246 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17247printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
17248 ;;
17249 esac
17250
17251
17252 case $ac_file$ac_mode in
17253 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17254 # Older Autoconf quotes --file arguments for eval, but not when files
17255 # are listed without --file. Let's play safe and only enable the eval
17256 # if we detect the quoting.
17257 # TODO: see whether this extra hack can be removed once we start
17258 # requiring Autoconf 2.70 or later.
17259 case $CONFIG_FILES in #(
17260 *\'*) :
17261 eval set x "$CONFIG_FILES" ;; #(
17262 *) :
17263 set x $CONFIG_FILES ;; #(
17264 *) :
17265 ;;
17266esac
17267 shift
17268 # Used to flag and report bootstrapping failures.
17269 am_rc=0
17270 for am_mf
17271 do
17272 # Strip MF so we end up with the name of the file.
17273 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
17274 # Check whether this is an Automake generated Makefile which includes
17275 # dependency-tracking related rules and includes.
17276 # Grep'ing the whole file directly is not great: AIX grep has a line
17277 # limit of 2048, but all sed's we know have understand at least 4000.
17278 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
17279 || continue
17280 am_dirpart=`$as_dirname -- "$am_mf" ||
17281$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17282 X"$am_mf" : 'X\(//\)[^/]' \| \
17283 X"$am_mf" : 'X\(//\)$' \| \
17284 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17285printf "%s\n" X"$am_mf" |
17286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17287 s//\1/
17288 q
17289 }
17290 /^X\(\/\/\)[^/].*/{
17291 s//\1/
17292 q
17293 }
17294 /^X\(\/\/\)$/{
17295 s//\1/
17296 q
17297 }
17298 /^X\(\/\).*/{
17299 s//\1/
17300 q
17301 }
17302 s/.*/./; q'`
17303 am_filepart=`$as_basename -- "$am_mf" ||
17304$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
17305 X"$am_mf" : 'X\(//\)$' \| \
17306 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17307printf "%s\n" X/"$am_mf" |
17308 sed '/^.*\/\([^/][^/]*\)\/*$/{
17309 s//\1/
17310 q
17311 }
17312 /^X\/\(\/\/\)$/{
17313 s//\1/
17314 q
17315 }
17316 /^X\/\(\/\).*/{
17317 s//\1/
17318 q
17319 }
17320 s/.*/./; q'`
17321 { echo "$as_me:$LINENO: cd "$am_dirpart" \
17322 && sed -e '/# am--include-marker/d' "$am_filepart" \
17323 | $MAKE -f - am--depfiles" >&5
17324 (cd "$am_dirpart" \
17325 && sed -e '/# am--include-marker/d' "$am_filepart" \
17326 | $MAKE -f - am--depfiles) >&5 2>&5
17327 ac_status=$?
17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); } || am_rc=$?
17330 done
17331 if test $am_rc -ne 0; then
17332 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
17333printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
17334as_fn_error $? "Something went wrong bootstrapping makefile fragments
17335 for automatic dependency tracking. If GNU make was not used, consider
17336 re-running the configure script with MAKE=\"gmake\" (or whatever is
17337 necessary). You can also try re-running configure with the
17338 '--disable-dependency-tracking' option to at least be able to build
17339 the package (albeit without support for automatic dependency tracking).
17340See 'config.log' for more details" "$LINENO" 5; }
17341 fi
17342 { am_dirpart=; unset am_dirpart;}
17343 { am_filepart=; unset am_filepart;}
17344 { am_mf=; unset am_mf;}
17345 { am_rc=; unset am_rc;}
17346 rm -f conftest-deps.mk
17347}
17348 ;;
17349 "libtool":C)
17350
17351 # See if we are running on zsh, and set the options that allow our
17352 # commands through without removal of \ escapes.
17353 if test -n "${ZSH_VERSION+set}"; then
17354 setopt NO_GLOB_SUBST
17355 fi
17356
17357 cfgfile=${ofile}T
17358 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17359 $RM "$cfgfile"
17360
17361 cat <<_LT_EOF >> "$cfgfile"
17362#! $SHELL
17363# Generated automatically by $as_me ($PACKAGE) $VERSION
17364# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17365
17366# Provide generalized library-building support services.
17367# Written by Gordon Matzigkeit, 1996
17368
17369# Copyright (C) 2024 Free Software Foundation, Inc.
17370# This is free software; see the source for copying conditions. There is NO
17371# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17372
17373# GNU Libtool is free software; you can redistribute it and/or modify
17374# it under the terms of the GNU General Public License as published by
17375# the Free Software Foundation; either version 2 of the License, or
17376# (at your option) any later version.
17377#
17378# As a special exception to the GNU General Public License, if you
17379# distribute this file as part of a program or library that is built
17380# using GNU Libtool, you may include this file under the same
17381# distribution terms that you use for the rest of that program.
17382#
17383# GNU Libtool is distributed in the hope that it will be useful, but
17384# WITHOUT ANY WARRANTY; without even the implied warranty of
17385# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17386# GNU General Public License for more details.
17387#
17388# You should have received a copy of the GNU General Public License
17389# along with this program. If not, see <http://www.gnu.org/licenses/>.
17390
17391
17392# The names of the tagged configurations supported by this script.
17393available_tags=''
17394
17395# Configured defaults for sys_lib_dlsearch_path munging.
17396: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17397
17398# ### BEGIN LIBTOOL CONFIG
17399
17400# A sed program that does not truncate output.
17401SED=$lt_SED
17402
17403# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17404Xsed="\$SED -e 1s/^X//"
17405
17406# A grep program that handles long lines.
17407GREP=$lt_GREP
17408
17409# An ERE matcher.
17410EGREP=$lt_EGREP
17411
17412# A literal string matcher.
17413FGREP=$lt_FGREP
17414
17415# Shell to use when invoking shell scripts.
17416SHELL=$lt_SHELL
17417
17418# An echo program that protects backslashes.
17419ECHO=$lt_ECHO
17420
17421# Which release of libtool.m4 was used?
17422macro_version=$macro_version
17423macro_revision=$macro_revision
17424
17425# Assembler program.
17426AS=$lt_AS
17427
17428# DLL creation program.
17429DLLTOOL=$lt_DLLTOOL
17430
17431# Object dumper program.
17432OBJDUMP=$lt_OBJDUMP
17433
17434# Whether or not to build shared libraries.
17435build_libtool_libs=$enable_shared
17436
17437# Whether or not to build static libraries.
17438build_old_libs=$enable_static
17439
17440# What type of objects to build.
17441pic_mode=$pic_mode
17442
17443# Whether or not to optimize for fast installation.
17444fast_install=$enable_fast_install
17445
17446# Shared archive member basename,for filename based shared library versioning on AIX.
17447shared_archive_member_spec=$shared_archive_member_spec
17448
17449# The PATH separator for the build system.
17450PATH_SEPARATOR=$lt_PATH_SEPARATOR
17451
17452# The host system.
17453host_alias=$host_alias
17454host=$host
17455host_os=$host_os
17456
17457# The build system.
17458build_alias=$build_alias
17459build=$build
17460build_os=$build_os
17461
17462# A BSD- or MS-compatible name lister.
17463NM=$lt_NM
17464
17465# Whether we need soft or hard links.
17466LN_S=$lt_LN_S
17467
17468# What is the maximum length of a command?
17469max_cmd_len=$max_cmd_len
17470
17471# Object file suffix (normally "o").
17472objext=$ac_objext
17473
17474# Executable file suffix (normally "").
17475exeext=$exeext
17476
17477# whether the shell understands "unset".
17478lt_unset=$lt_unset
17479
17480# turn spaces into newlines.
17481SP2NL=$lt_lt_SP2NL
17482
17483# turn newlines into spaces.
17484NL2SP=$lt_lt_NL2SP
17485
17486# convert \$build file names to \$host format.
17487to_host_file_cmd=$lt_cv_to_host_file_cmd
17488
17489# convert \$build files to toolchain format.
17490to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17491
17492# A file(cmd) program that detects file types.
17493FILECMD=$lt_FILECMD
17494
17495# Method to check whether dependent libraries are shared objects.
17496deplibs_check_method=$lt_deplibs_check_method
17497
17498# Command to use when deplibs_check_method = "file_magic".
17499file_magic_cmd=$lt_file_magic_cmd
17500
17501# How to find potential files when deplibs_check_method = "file_magic".
17502file_magic_glob=$lt_file_magic_glob
17503
17504# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17505want_nocaseglob=$lt_want_nocaseglob
17506
17507# Command to associate shared and link libraries.
17508sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17509
17510# The archiver.
17511AR=$lt_AR
17512
17513# Flags to create an archive (by configure).
17514lt_ar_flags=$lt_ar_flags
17515
17516# Flags to create an archive.
17517AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
17518
17519# How to feed a file listing to the archiver.
17520archiver_list_spec=$lt_archiver_list_spec
17521
17522# A symbol stripping program.
17523STRIP=$lt_STRIP
17524
17525# Commands used to install an old-style archive.
17526RANLIB=$lt_RANLIB
17527old_postinstall_cmds=$lt_old_postinstall_cmds
17528old_postuninstall_cmds=$lt_old_postuninstall_cmds
17529
17530# Whether to use a lock for old archive extraction.
17531lock_old_archive_extraction=$lock_old_archive_extraction
17532
17533# A C compiler.
17534LTCC=$lt_CC
17535
17536# LTCC compiler flags.
17537LTCFLAGS=$lt_CFLAGS
17538
17539# Take the output of nm and produce a listing of raw symbols and C names.
17540global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17541
17542# Transform the output of nm in a proper C declaration.
17543global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17544
17545# Transform the output of nm into a list of symbols to manually relocate.
17546global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17547
17548# Transform the output of nm in a C name address pair.
17549global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17550
17551# Transform the output of nm in a C name address pair when lib prefix is needed.
17552global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17553
17554# The name lister interface.
17555nm_interface=$lt_lt_cv_nm_interface
17556
17557# Specify filename containing input files for \$NM.
17558nm_file_list_spec=$lt_nm_file_list_spec
17559
17560# The root where to search for dependent libraries,and where our libraries should be installed.
17561lt_sysroot=$lt_sysroot
17562
17563# Command to truncate a binary pipe.
17564lt_truncate_bin=$lt_lt_cv_truncate_bin
17565
17566# The name of the directory that contains temporary libtool files.
17567objdir=$objdir
17568
17569# Used to examine libraries when file_magic_cmd begins with "file".
17570MAGIC_CMD=$MAGIC_CMD
17571
17572# Must we lock files when doing compilation?
17573need_locks=$lt_need_locks
17574
17575# Manifest tool.
17576MANIFEST_TOOL=$lt_MANIFEST_TOOL
17577
17578# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17579DSYMUTIL=$lt_DSYMUTIL
17580
17581# Tool to change global to local symbols on Mac OS X.
17582NMEDIT=$lt_NMEDIT
17583
17584# Tool to manipulate fat objects and archives on Mac OS X.
17585LIPO=$lt_LIPO
17586
17587# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17588OTOOL=$lt_OTOOL
17589
17590# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17591OTOOL64=$lt_OTOOL64
17592
17593# Old archive suffix (normally "a").
17594libext=$libext
17595
17596# Shared library suffix (normally ".so").
17597shrext_cmds=$lt_shrext_cmds
17598
17599# The commands to extract the exported symbol list from a shared archive.
17600extract_expsyms_cmds=$lt_extract_expsyms_cmds
17601
17602# Variables whose values should be saved in libtool wrapper scripts and
17603# restored at link time.
17604variables_saved_for_relink=$lt_variables_saved_for_relink
17605
17606# Do we need the "lib" prefix for modules?
17607need_lib_prefix=$need_lib_prefix
17608
17609# Do we need a version for libraries?
17610need_version=$need_version
17611
17612# Library versioning type.
17613version_type=$version_type
17614
17615# Shared library runtime path variable.
17616runpath_var=$runpath_var
17617
17618# Shared library path variable.
17619shlibpath_var=$shlibpath_var
17620
17621# Is shlibpath searched before the hard-coded library search path?
17622shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17623
17624# Format of library name prefix.
17625libname_spec=$lt_libname_spec
17626
17627# List of archive names. First name is the real one, the rest are links.
17628# The last name is the one that the linker finds with -lNAME
17629library_names_spec=$lt_library_names_spec
17630
17631# The coded name of the library, if different from the real name.
17632soname_spec=$lt_soname_spec
17633
17634# Permission mode override for installation of shared libraries.
17635install_override_mode=$lt_install_override_mode
17636
17637# Command to use after installation of a shared archive.
17638postinstall_cmds=$lt_postinstall_cmds
17639
17640# Command to use after uninstallation of a shared archive.
17641postuninstall_cmds=$lt_postuninstall_cmds
17642
17643# Commands used to finish a libtool library installation in a directory.
17644finish_cmds=$lt_finish_cmds
17645
17646# As "finish_cmds", except a single script fragment to be evaled but
17647# not shown.
17648finish_eval=$lt_finish_eval
17649
17650# Whether we should hardcode library paths into libraries.
17651hardcode_into_libs=$hardcode_into_libs
17652
17653# Compile-time system search path for libraries.
17654sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17655
17656# Detected run-time system search path for libraries.
17657sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17658
17659# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17660configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17661
17662# Whether dlopen is supported.
17663dlopen_support=$enable_dlopen
17664
17665# Whether dlopen of programs is supported.
17666dlopen_self=$enable_dlopen_self
17667
17668# Whether dlopen of statically linked programs is supported.
17669dlopen_self_static=$enable_dlopen_self_static
17670
17671# Commands to strip libraries.
17672old_striplib=$lt_old_striplib
17673striplib=$lt_striplib
17674
17675
17676# The linker used to build libraries.
17677LD=$lt_LD
17678
17679# How to create reloadable object files.
17680reload_flag=$lt_reload_flag
17681reload_cmds=$lt_reload_cmds
17682
17683# Commands used to build an old-style archive.
17684old_archive_cmds=$lt_old_archive_cmds
17685
17686# A language specific compiler.
17687CC=$lt_compiler
17688
17689# Is the compiler the GNU compiler?
17690with_gcc=$GCC
17691
17692# Compiler flag to turn off builtin functions.
17693no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17694
17695# Additional compiler flags for building library objects.
17696pic_flag=$lt_lt_prog_compiler_pic
17697
17698# How to pass a linker flag through the compiler.
17699wl=$lt_lt_prog_compiler_wl
17700
17701# Compiler flag to prevent dynamic linking.
17702link_static_flag=$lt_lt_prog_compiler_static
17703
17704# Does compiler simultaneously support -c and -o options?
17705compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17706
17707# Whether or not to add -lc for building shared libraries.
17708build_libtool_need_lc=$archive_cmds_need_lc
17709
17710# Whether or not to disallow shared libs when runtime libs are static.
17711allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17712
17713# Compiler flag to allow reflexive dlopens.
17714export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17715
17716# Compiler flag to generate shared objects directly from archives.
17717whole_archive_flag_spec=$lt_whole_archive_flag_spec
17718
17719# Whether the compiler copes with passing no objects directly.
17720compiler_needs_object=$lt_compiler_needs_object
17721
17722# Create an old-style archive from a shared archive.
17723old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17724
17725# Create a temporary old-style archive to link instead of a shared archive.
17726old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17727
17728# Commands used to build a shared archive.
17729archive_cmds=$lt_archive_cmds
17730archive_expsym_cmds=$lt_archive_expsym_cmds
17731
17732# Commands used to build a loadable module if different from building
17733# a shared archive.
17734module_cmds=$lt_module_cmds
17735module_expsym_cmds=$lt_module_expsym_cmds
17736
17737# Whether we are building with GNU ld or not.
17738with_gnu_ld=$lt_with_gnu_ld
17739
17740# Flag that allows shared libraries with undefined symbols to be built.
17741allow_undefined_flag=$lt_allow_undefined_flag
17742
17743# Flag that enforces no undefined symbols.
17744no_undefined_flag=$lt_no_undefined_flag
17745
17746# Flag to hardcode \$libdir into a binary during linking.
17747# This must work even if \$libdir does not exist
17748hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17749
17750# Whether we need a single "-rpath" flag with a separated argument.
17751hardcode_libdir_separator=$lt_hardcode_libdir_separator
17752
17753# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17754# DIR into the resulting binary.
17755hardcode_direct=$hardcode_direct
17756
17757# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17758# DIR into the resulting binary and the resulting library dependency is
17759# "absolute",i.e. impossible to change by setting \$shlibpath_var if the
17760# library is relocated.
17761hardcode_direct_absolute=$hardcode_direct_absolute
17762
17763# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17764# into the resulting binary.
17765hardcode_minus_L=$hardcode_minus_L
17766
17767# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17768# into the resulting binary.
17769hardcode_shlibpath_var=$hardcode_shlibpath_var
17770
17771# Set to "yes" if building a shared library automatically hardcodes DIR
17772# into the library and all subsequent libraries and executables linked
17773# against it.
17774hardcode_automatic=$hardcode_automatic
17775
17776# Set to yes if linker adds runtime paths of dependent libraries
17777# to runtime path list.
17778inherit_rpath=$inherit_rpath
17779
17780# Whether libtool must link a program against all its dependency libraries.
17781link_all_deplibs=$link_all_deplibs
17782
17783# Set to "yes" if exported symbols are required.
17784always_export_symbols=$always_export_symbols
17785
17786# The commands to list exported symbols.
17787export_symbols_cmds=$lt_export_symbols_cmds
17788
17789# Symbols that should not be listed in the preloaded symbols.
17790exclude_expsyms=$lt_exclude_expsyms
17791
17792# Symbols that must always be exported.
17793include_expsyms=$lt_include_expsyms
17794
17795# Commands necessary for linking programs (against libraries) with templates.
17796prelink_cmds=$lt_prelink_cmds
17797
17798# Commands necessary for finishing linking programs.
17799postlink_cmds=$lt_postlink_cmds
17800
17801# Specify filename containing input files.
17802file_list_spec=$lt_file_list_spec
17803
17804# How to hardcode a shared library path into an executable.
17805hardcode_action=$hardcode_action
17806
17807# ### END LIBTOOL CONFIG
17808
17809_LT_EOF
17810
17811 cat <<'_LT_EOF' >> "$cfgfile"
17812
17813# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17814
17815# func_munge_path_list VARIABLE PATH
17816# -----------------------------------
17817# VARIABLE is name of variable containing _space_ separated list of
17818# directories to be munged by the contents of PATH, which is string
17819# having a format:
17820# "DIR[:DIR]:"
17821# string "DIR[ DIR]" will be prepended to VARIABLE
17822# ":DIR[:DIR]"
17823# string "DIR[ DIR]" will be appended to VARIABLE
17824# "DIRP[:DIRP]::[DIRA:]DIRA"
17825# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17826# "DIRA[ DIRA]" will be appended to VARIABLE
17827# "DIR[:DIR]"
17828# VARIABLE will be replaced by "DIR[ DIR]"
17829func_munge_path_list ()
17830{
17831 case x$2 in
17832 x)
17833 ;;
17834 *:)
17835 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17836 ;;
17837 x:*)
17838 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17839 ;;
17840 *::*)
17841 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17842 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17843 ;;
17844 *)
17845 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17846 ;;
17847 esac
17848}
17849
17850
17851# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17852func_cc_basename ()
17853{
17854 for cc_temp in $*""; do
17855 case $cc_temp in
17856 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17857 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17858 \-*) ;;
17859 *) break;;
17860 esac
17861 done
17862 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17863}
17864
17865
17866# ### END FUNCTIONS SHARED WITH CONFIGURE
17867
17868_LT_EOF
17869
17870 case $host_os in
17871 aix3*)
17872 cat <<\_LT_EOF >> "$cfgfile"
17873# AIX sometimes has problems with the GCC collect2 program. For some
17874# reason, if we set the COLLECT_NAMES environment variable, the problems
17875# vanish in a puff of smoke.
17876if test set != "${COLLECT_NAMES+set}"; then
17877 COLLECT_NAMES=
17878 export COLLECT_NAMES
17879fi
17880_LT_EOF
17881 ;;
17882 esac
17883
17884
17885
17886ltmain=$ac_aux_dir/ltmain.sh
17887
17888
17889 # We use sed instead of cat because bash on DJGPP gets confused if
17890 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17891 # text mode, it properly converts lines to CR/LF. This bash problem
17892 # is reportedly fixed, but why not run on old versions too?
17893 $SED '$q' "$ltmain" >> "$cfgfile" \
17894 || (rm -f "$cfgfile"; exit 1)
17895
17896 mv -f "$cfgfile" "$ofile" ||
17897 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17898 chmod +x "$ofile"
17899
17900 ;;
17901 "libpng-config":F) chmod +x libpng-config ;;
17902
17903 esac
17904done # for ac_tag
17905
17906
17907as_fn_exit 0
17908_ACEOF
17909ac_clean_files=$ac_clean_files_save
17910
17911test $ac_write_fail = 0 ||
17912 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17913
17914
17915# configure is writing to config.log, and then calls config.status.
17916# config.status does its own redirection, appending to config.log.
17917# Unfortunately, on DOS this fails, as config.log is still kept open
17918# by configure, so config.status won't be able to write to it; its
17919# output is simply discarded. So we exec the FD to /dev/null,
17920# effectively closing config.log, so it can be properly (re)opened and
17921# appended to by config.status. When coming back to configure, we
17922# need to make the FD available again.
17923if test "$no_create" != yes; then
17924 ac_cs_success=:
17925 ac_config_status_args=
17926 test "$silent" = yes &&
17927 ac_config_status_args="$ac_config_status_args --quiet"
17928 exec 5>/dev/null
17929 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17930 exec 5>>config.log
17931 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17932 # would make configure fail if this is the last instruction.
17933 $ac_cs_success || as_fn_exit 1
17934fi
17935if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17937printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17938fi
17939
17940
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette