VirtualBox

source: vbox/trunk/src/libs/libpng-1.6.42/configure@ 104389

Last change on this file since 104389 was 103316, checked in by vboxsync, 9 months ago

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

  • Property svn:executable set to *
File size: 497.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.42.
4#
5# Report bugs to <png-mng-implement@lists.sourceforge.net>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34esac ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" "" $as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84fi
85
86
87# Find who we are. Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as 'sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed 'exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157esac ;;
158esac
159fi
160"
161 as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177esac
178fi
179test x\$exitcode = x0 || exit 1
180blah=\$(echo \$(echo blah))
181test x\"\$blah\" = xblah || exit 1
182test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187test \$(( 1 + 1 )) = 2 || exit 1
188
189 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
190 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
193 PATH=/empty FPATH=/empty; export PATH FPATH
194 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
195 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
196 if (eval "$as_required") 2>/dev/null
197then :
198 as_have_required=yes
199else case e in #(
200 e) as_have_required=no ;;
201esac
202fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204then :
205
206else case e in #(
207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208as_found=false
209for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210do
211 IFS=$as_save_IFS
212 case $as_dir in #(((
213 '') as_dir=./ ;;
214 */) ;;
215 *) as_dir=$as_dir/ ;;
216 esac
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228then :
229 break 2
230fi
231fi
232 done;;
233 esac
234 as_found=false
235done
236IFS=$as_save_IFS
237if $as_found
238then :
239
240else case e in #(
241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245fi ;;
246esac
247fi
248
249
250 if test "x$CONFIG_SHELL" != x
251then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254# neutralization value for shells without unset; and this also
255# works around shells that cannot unset nonexistent variables.
256# Preserve -v and -x to the replacement shell.
257BASH_ENV=/dev/null
258ENV=/dev/null
259(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265esac
266exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267# Admittedly, this is quite paranoid, since all the known shells bail
268# out after a failed 'exec'.
269printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270exit 255
271fi
272
273 if test x$as_have_required = xno
274then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
282$0: png-mng-implement@lists.sourceforge.net about your
283$0: system, including any error possibly output before this
284$0: message. Then install a modern shell, or manually run
285$0: the script under such a shell if you do have one."
286 fi
287 exit 1
288fi ;;
289esac
290fi
291fi
292SHELL=${CONFIG_SHELL-/bin/sh}
293export SHELL
294# Unset more variables known to interfere with behavior of common tools.
295CLICOLOR_FORCE= GREP_OPTIONS=
296unset CLICOLOR_FORCE GREP_OPTIONS
297
298## --------------------- ##
299## M4sh Shell Functions. ##
300## --------------------- ##
301# as_fn_unset VAR
302# ---------------
303# Portably unset VAR.
304as_fn_unset ()
305{
306 { eval $1=; unset $1;}
307}
308as_unset=as_fn_unset
309
310
311# as_fn_set_status STATUS
312# -----------------------
313# Set $? to STATUS, without forking.
314as_fn_set_status ()
315{
316 return $1
317} # as_fn_set_status
318
319# as_fn_exit STATUS
320# -----------------
321# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322as_fn_exit ()
323{
324 set +e
325 as_fn_set_status $1
326 exit $1
327} # as_fn_exit
328
329# as_fn_mkdir_p
330# -------------
331# Create "$as_dir" as a directory, including parents if necessary.
332as_fn_mkdir_p ()
333{
334
335 case $as_dir in #(
336 -*) as_dir=./$as_dir;;
337 esac
338 test -d "$as_dir" || eval $as_mkdir_p || {
339 as_dirs=
340 while :; do
341 case $as_dir in #(
342 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
343 *) as_qdir=$as_dir;;
344 esac
345 as_dirs="'$as_qdir' $as_dirs"
346 as_dir=`$as_dirname -- "$as_dir" ||
347$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
348 X"$as_dir" : 'X\(//\)[^/]' \| \
349 X"$as_dir" : 'X\(//\)$' \| \
350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
351printf "%s\n" X"$as_dir" |
352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)[^/].*/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)$/{
361 s//\1/
362 q
363 }
364 /^X\(\/\).*/{
365 s//\1/
366 q
367 }
368 s/.*/./; q'`
369 test -d "$as_dir" && break
370 done
371 test -z "$as_dirs" || eval "mkdir $as_dirs"
372 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373
374
375} # as_fn_mkdir_p
376
377# as_fn_executable_p FILE
378# -----------------------
379# Test if FILE is an executable regular file.
380as_fn_executable_p ()
381{
382 test -f "$1" && test -x "$1"
383} # as_fn_executable_p
384# as_fn_append VAR VALUE
385# ----------------------
386# Append the text in VALUE to the end of the definition contained in VAR. Take
387# advantage of any shell optimizations that allow amortized linear growth over
388# repeated appends, instead of the typical quadratic growth present in naive
389# implementations.
390if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
391then :
392 eval 'as_fn_append ()
393 {
394 eval $1+=\$2
395 }'
396else case e in #(
397 e) as_fn_append ()
398 {
399 eval $1=\$$1\$2
400 } ;;
401esac
402fi # as_fn_append
403
404# as_fn_arith ARG...
405# ------------------
406# Perform arithmetic evaluation on the ARGs, and store the result in the
407# global $as_val. Take advantage of shells that can avoid forks. The arguments
408# must be portable across $(()) and expr.
409if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415else case e in #(
416 e) as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 } ;;
420esac
421fi # as_fn_arith
422
423
424# as_fn_error STATUS ERROR [LINENO LOG_FD]
425# ----------------------------------------
426# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
427# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
428# script with STATUS, using 1 if that was 0.
429as_fn_error ()
430{
431 as_status=$1; test $as_status -eq 0 && as_status=1
432 if test "$4"; then
433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
435 fi
436 printf "%s\n" "$as_me: error: $2" >&2
437 as_fn_exit $as_status
438} # as_fn_error
439
440if expr a : '\(a\)' >/dev/null 2>&1 &&
441 test "X`expr 00001 : '.*\(...\)'`" = X001; then
442 as_expr=expr
443else
444 as_expr=false
445fi
446
447if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
448 as_basename=basename
449else
450 as_basename=false
451fi
452
453if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
454 as_dirname=dirname
455else
456 as_dirname=false
457fi
458
459as_me=`$as_basename -- "$0" ||
460$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
461 X"$0" : 'X\(//\)$' \| \
462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
463printf "%s\n" X/"$0" |
464 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 s//\1/
466 q
467 }
468 /^X\/\(\/\/\)$/{
469 s//\1/
470 q
471 }
472 /^X\/\(\/\).*/{
473 s//\1/
474 q
475 }
476 s/.*/./; q'`
477
478# Avoid depending upon Character Ranges.
479as_cr_letters='abcdefghijklmnopqrstuvwxyz'
480as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
481as_cr_Letters=$as_cr_letters$as_cr_LETTERS
482as_cr_digits='0123456789'
483as_cr_alnum=$as_cr_Letters$as_cr_digits
484
485
486 as_lineno_1=$LINENO as_lineno_1a=$LINENO
487 as_lineno_2=$LINENO as_lineno_2a=$LINENO
488 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
489 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
490 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
491 sed -n '
492 p
493 /[$]LINENO/=
494 ' <$as_myself |
495 sed '
496 t clear
497 :clear
498 s/[$]LINENO.*/&-/
499 t lineno
500 b
501 :lineno
502 N
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
521}
522
523
524# Determine whether it's possible to make 'echo' print without a newline.
525# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526# for compatibility with existing Makefiles.
527ECHO_C= ECHO_N= ECHO_T=
528case `echo -n x` in #(((((
529-n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
536*)
537 ECHO_N='-n';;
538esac
539
540# For backward compatibility with old third-party macros, we provide
541# the shell variables $as_echo and $as_echo_n. New code should use
542# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543as_echo='printf %s\n'
544as_echo_n='printf %s'
545
546rm -f conf$$ conf$$.exe conf$$.file
547if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
549else
550 rm -f conf$$.dir
551 mkdir conf$$.dir 2>/dev/null
552fi
553if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s='ln -s'
556 # ... but there are two gotchas:
557 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
559 # In both cases, we have to default to 'cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
561 as_ln_s='cp -pR'
562 elif ln conf$$.file conf$$ 2>/dev/null; then
563 as_ln_s=ln
564 else
565 as_ln_s='cp -pR'
566 fi
567else
568 as_ln_s='cp -pR'
569fi
570rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571rmdir conf$$.dir 2>/dev/null
572
573if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
575else
576 test -d ./-p && rmdir ./-p
577 as_mkdir_p=false
578fi
579
580as_test_x='test -x'
581as_executable_p=as_fn_executable_p
582
583# Sed expression to map a string onto a valid CPP name.
584as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
585as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
586
587# Sed expression to map a string onto a valid variable name.
588as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
589as_tr_sh="eval sed '$as_sed_sh'" # deprecated
590
591SHELL=${CONFIG_SHELL-/bin/sh}
592
593
594test -n "$DJDIR" || exec 7<&0 </dev/null
595exec 6>&1
596
597# Name of the host.
598# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
599# so uname gets run too.
600ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
601
602#
603# Initializations.
604#
605ac_default_prefix=/usr/local
606ac_clean_files=
607ac_config_libobj_dir=.
608LIBOBJS=
609cross_compiling=no
610subdirs=
611MFLAGS=
612MAKEFLAGS=
613
614# Identity of this package.
615PACKAGE_NAME='libpng'
616PACKAGE_TARNAME='libpng'
617PACKAGE_VERSION='1.6.42'
618PACKAGE_STRING='libpng 1.6.42'
619PACKAGE_BUGREPORT='png-mng-implement@lists.sourceforge.net'
620PACKAGE_URL=''
621
622ac_unique_file="pngget.c"
623# Factoring default headers for most tests.
624ac_includes_default="\
625#include <stddef.h>
626#ifdef HAVE_STDIO_H
627# include <stdio.h>
628#endif
629#ifdef HAVE_STDLIB_H
630# include <stdlib.h>
631#endif
632#ifdef HAVE_STRING_H
633# include <string.h>
634#endif
635#ifdef HAVE_INTTYPES_H
636# include <inttypes.h>
637#endif
638#ifdef HAVE_STDINT_H
639# include <stdint.h>
640#endif
641#ifdef HAVE_STRINGS_H
642# include <strings.h>
643#endif
644#ifdef HAVE_SYS_TYPES_H
645# include <sys/types.h>
646#endif
647#ifdef HAVE_SYS_STAT_H
648# include <sys/stat.h>
649#endif
650#ifdef HAVE_UNISTD_H
651# include <unistd.h>
652#endif"
653
654ac_header_c_list=
655ac_subst_vars='am__EXEEXT_FALSE
656am__EXEEXT_TRUE
657LTLIBOBJS
658LIBOBJS
659PNG_LOONGARCH_LSX_FALSE
660PNG_LOONGARCH_LSX_TRUE
661PNG_POWERPC_VSX_FALSE
662PNG_POWERPC_VSX_TRUE
663PNG_INTEL_SSE_FALSE
664PNG_INTEL_SSE_TRUE
665PNG_MIPS_MMI_FALSE
666PNG_MIPS_MMI_TRUE
667PNG_MIPS_MSA_FALSE
668PNG_MIPS_MSA_TRUE
669PNG_ARM_NEON_FALSE
670PNG_ARM_NEON_TRUE
671DO_INSTALL_LIBPNG_CONFIG_FALSE
672DO_INSTALL_LIBPNG_CONFIG_TRUE
673DO_INSTALL_LIBPNG_PC_FALSE
674DO_INSTALL_LIBPNG_PC_TRUE
675DO_INSTALL_LINKS_FALSE
676DO_INSTALL_LINKS_TRUE
677DO_PNG_PREFIX_FALSE
678DO_PNG_PREFIX_TRUE
679PNG_PREFIX
680binconfigs
681pkgconfigdir
682PNGLIB_RELEASE
683PNGLIB_MINOR
684PNGLIB_MAJOR
685PNGLIB_VERSION
686SYMBOL_PREFIX
687HAVE_LD_VERSION_SCRIPT_FALSE
688HAVE_LD_VERSION_SCRIPT_TRUE
689HAVE_SOLARIS_LD_FALSE
690HAVE_SOLARIS_LD_TRUE
691HAVE_CLOCK_GETTIME_FALSE
692HAVE_CLOCK_GETTIME_TRUE
693PNG_COPTS
694ENABLE_TOOLS_FALSE
695ENABLE_TOOLS_TRUE
696ENABLE_TESTS_FALSE
697ENABLE_TESTS_TRUE
698DFNCPP
699LT_SYS_LIBRARY_PATH
700OTOOL64
701OTOOL
702LIPO
703NMEDIT
704DSYMUTIL
705MANIFEST_TOOL
706RANLIB
707ac_ct_AR
708AR
709FILECMD
710NM
711ac_ct_DUMPBIN
712DUMPBIN
713LIBTOOL
714OBJDUMP
715DLLTOOL
716AS
717LN_S
718CPP
719LD
720FGREP
721EGREP
722GREP
723SED
724host_os
725host_vendor
726host_cpu
727host
728build_os
729build_vendor
730build_cpu
731build
732am__fastdepCCAS_FALSE
733am__fastdepCCAS_TRUE
734CCASDEPMODE
735CCASFLAGS
736CCAS
737am__fastdepCC_FALSE
738am__fastdepCC_TRUE
739CCDEPMODE
740am__nodep
741AMDEPBACKSLASH
742AMDEP_FALSE
743AMDEP_TRUE
744am__include
745DEPDIR
746OBJEXT
747EXEEXT
748ac_ct_CC
749CPPFLAGS
750LDFLAGS
751CFLAGS
752CC
753MAINT
754MAINTAINER_MODE_FALSE
755MAINTAINER_MODE_TRUE
756AM_BACKSLASH
757AM_DEFAULT_VERBOSITY
758AM_DEFAULT_V
759AM_V
760CSCOPE
761ETAGS
762CTAGS
763am__untar
764am__tar
765AMTAR
766am__leading_dot
767SET_MAKE
768AWK
769mkdir_p
770MKDIR_P
771INSTALL_STRIP_PROGRAM
772STRIP
773install_sh
774MAKEINFO
775AUTOHEADER
776AUTOMAKE
777AUTOCONF
778ACLOCAL
779VERSION
780PACKAGE
781CYGPATH_W
782am__isrc
783INSTALL_DATA
784INSTALL_SCRIPT
785INSTALL_PROGRAM
786target_alias
787host_alias
788build_alias
789LIBS
790ECHO_T
791ECHO_N
792ECHO_C
793DEFS
794mandir
795localedir
796libdir
797psdir
798pdfdir
799dvidir
800htmldir
801infodir
802docdir
803oldincludedir
804includedir
805runstatedir
806localstatedir
807sharedstatedir
808sysconfdir
809datadir
810datarootdir
811libexecdir
812sbindir
813bindir
814program_transform_name
815prefix
816exec_prefix
817PACKAGE_URL
818PACKAGE_BUGREPORT
819PACKAGE_STRING
820PACKAGE_VERSION
821PACKAGE_TARNAME
822PACKAGE_NAME
823PATH_SEPARATOR
824SHELL
825am__quote'
826ac_subst_files=''
827ac_user_opts='
828enable_option_checking
829enable_silent_rules
830enable_maintainer_mode
831enable_dependency_tracking
832with_gnu_ld
833enable_shared
834enable_static
835with_pic
836enable_fast_install
837with_aix_soname
838with_sysroot
839enable_libtool_lock
840enable_tests
841enable_tools
842enable_werror
843with_zlib_prefix
844with_pkgconfigdir
845with_binconfigs
846with_libpng_prefix
847enable_unversioned_links
848enable_unversioned_libpng_pc
849enable_unversioned_libpng_config
850enable_hardware_optimizations
851enable_arm_neon
852enable_mips_msa
853enable_mips_mmi
854enable_intel_sse
855enable_powerpc_vsx
856enable_loongarch_lsx
857'
858 ac_precious_vars='build_alias
859host_alias
860target_alias
861CC
862CFLAGS
863LDFLAGS
864LIBS
865CPPFLAGS
866CCAS
867CCASFLAGS
868CPP
869LT_SYS_LIBRARY_PATH
870PNG_COPTS'
871
872
873# Initialize some variables set by options.
874ac_init_help=
875ac_init_version=false
876ac_unrecognized_opts=
877ac_unrecognized_sep=
878# The variables have the same names as the options, with
879# dashes changed to underlines.
880cache_file=/dev/null
881exec_prefix=NONE
882no_create=
883no_recursion=
884prefix=NONE
885program_prefix=NONE
886program_suffix=NONE
887program_transform_name=s,x,x,
888silent=
889site=
890srcdir=
891verbose=
892x_includes=NONE
893x_libraries=NONE
894
895# Installation directory options.
896# These are left unexpanded so users can "make install exec_prefix=/foo"
897# and all the variables that are supposed to be based on exec_prefix
898# by default will actually change.
899# Use braces instead of parens because sh, perl, etc. also accept them.
900# (The list follows the same order as the GNU Coding Standards.)
901bindir='${exec_prefix}/bin'
902sbindir='${exec_prefix}/sbin'
903libexecdir='${exec_prefix}/libexec'
904datarootdir='${prefix}/share'
905datadir='${datarootdir}'
906sysconfdir='${prefix}/etc'
907sharedstatedir='${prefix}/com'
908localstatedir='${prefix}/var'
909runstatedir='${localstatedir}/run'
910includedir='${prefix}/include'
911oldincludedir='/usr/include'
912docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
913infodir='${datarootdir}/info'
914htmldir='${docdir}'
915dvidir='${docdir}'
916pdfdir='${docdir}'
917psdir='${docdir}'
918libdir='${exec_prefix}/lib'
919localedir='${datarootdir}/locale'
920mandir='${datarootdir}/man'
921
922ac_prev=
923ac_dashdash=
924for ac_option
925do
926 # If the previous option needs an argument, assign it.
927 if test -n "$ac_prev"; then
928 eval $ac_prev=\$ac_option
929 ac_prev=
930 continue
931 fi
932
933 case $ac_option in
934 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
935 *=) ac_optarg= ;;
936 *) ac_optarg=yes ;;
937 esac
938
939 case $ac_dashdash$ac_option in
940 --)
941 ac_dashdash=yes ;;
942
943 -bindir | --bindir | --bindi | --bind | --bin | --bi)
944 ac_prev=bindir ;;
945 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
946 bindir=$ac_optarg ;;
947
948 -build | --build | --buil | --bui | --bu)
949 ac_prev=build_alias ;;
950 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
951 build_alias=$ac_optarg ;;
952
953 -cache-file | --cache-file | --cache-fil | --cache-fi \
954 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
955 ac_prev=cache_file ;;
956 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
957 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
958 cache_file=$ac_optarg ;;
959
960 --config-cache | -C)
961 cache_file=config.cache ;;
962
963 -datadir | --datadir | --datadi | --datad)
964 ac_prev=datadir ;;
965 -datadir=* | --datadir=* | --datadi=* | --datad=*)
966 datadir=$ac_optarg ;;
967
968 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
969 | --dataroo | --dataro | --datar)
970 ac_prev=datarootdir ;;
971 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
972 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
973 datarootdir=$ac_optarg ;;
974
975 -disable-* | --disable-*)
976 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
977 # Reject names that are not valid shell variable names.
978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979 as_fn_error $? "invalid feature name: '$ac_useropt'"
980 ac_useropt_orig=$ac_useropt
981 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
982 case $ac_user_opts in
983 *"
984"enable_$ac_useropt"
985"*) ;;
986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
987 ac_unrecognized_sep=', ';;
988 esac
989 eval enable_$ac_useropt=no ;;
990
991 -docdir | --docdir | --docdi | --doc | --do)
992 ac_prev=docdir ;;
993 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
994 docdir=$ac_optarg ;;
995
996 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
997 ac_prev=dvidir ;;
998 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
999 dvidir=$ac_optarg ;;
1000
1001 -enable-* | --enable-*)
1002 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1003 # Reject names that are not valid shell variable names.
1004 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1005 as_fn_error $? "invalid feature name: '$ac_useropt'"
1006 ac_useropt_orig=$ac_useropt
1007 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1008 case $ac_user_opts in
1009 *"
1010"enable_$ac_useropt"
1011"*) ;;
1012 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1013 ac_unrecognized_sep=', ';;
1014 esac
1015 eval enable_$ac_useropt=\$ac_optarg ;;
1016
1017 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1018 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1019 | --exec | --exe | --ex)
1020 ac_prev=exec_prefix ;;
1021 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1022 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1023 | --exec=* | --exe=* | --ex=*)
1024 exec_prefix=$ac_optarg ;;
1025
1026 -gas | --gas | --ga | --g)
1027 # Obsolete; use --with-gas.
1028 with_gas=yes ;;
1029
1030 -help | --help | --hel | --he | -h)
1031 ac_init_help=long ;;
1032 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1033 ac_init_help=recursive ;;
1034 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1035 ac_init_help=short ;;
1036
1037 -host | --host | --hos | --ho)
1038 ac_prev=host_alias ;;
1039 -host=* | --host=* | --hos=* | --ho=*)
1040 host_alias=$ac_optarg ;;
1041
1042 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1043 ac_prev=htmldir ;;
1044 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1045 | --ht=*)
1046 htmldir=$ac_optarg ;;
1047
1048 -includedir | --includedir | --includedi | --included | --include \
1049 | --includ | --inclu | --incl | --inc)
1050 ac_prev=includedir ;;
1051 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1052 | --includ=* | --inclu=* | --incl=* | --inc=*)
1053 includedir=$ac_optarg ;;
1054
1055 -infodir | --infodir | --infodi | --infod | --info | --inf)
1056 ac_prev=infodir ;;
1057 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1058 infodir=$ac_optarg ;;
1059
1060 -libdir | --libdir | --libdi | --libd)
1061 ac_prev=libdir ;;
1062 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1063 libdir=$ac_optarg ;;
1064
1065 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1066 | --libexe | --libex | --libe)
1067 ac_prev=libexecdir ;;
1068 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1069 | --libexe=* | --libex=* | --libe=*)
1070 libexecdir=$ac_optarg ;;
1071
1072 -localedir | --localedir | --localedi | --localed | --locale)
1073 ac_prev=localedir ;;
1074 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1075 localedir=$ac_optarg ;;
1076
1077 -localstatedir | --localstatedir | --localstatedi | --localstated \
1078 | --localstate | --localstat | --localsta | --localst | --locals)
1079 ac_prev=localstatedir ;;
1080 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1081 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1082 localstatedir=$ac_optarg ;;
1083
1084 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1085 ac_prev=mandir ;;
1086 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1087 mandir=$ac_optarg ;;
1088
1089 -nfp | --nfp | --nf)
1090 # Obsolete; use --without-fp.
1091 with_fp=no ;;
1092
1093 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1094 | --no-cr | --no-c | -n)
1095 no_create=yes ;;
1096
1097 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1098 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1099 no_recursion=yes ;;
1100
1101 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1102 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1103 | --oldin | --oldi | --old | --ol | --o)
1104 ac_prev=oldincludedir ;;
1105 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1106 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1107 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1108 oldincludedir=$ac_optarg ;;
1109
1110 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1111 ac_prev=prefix ;;
1112 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1113 prefix=$ac_optarg ;;
1114
1115 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1116 | --program-pre | --program-pr | --program-p)
1117 ac_prev=program_prefix ;;
1118 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1119 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1120 program_prefix=$ac_optarg ;;
1121
1122 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1123 | --program-suf | --program-su | --program-s)
1124 ac_prev=program_suffix ;;
1125 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1126 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1127 program_suffix=$ac_optarg ;;
1128
1129 -program-transform-name | --program-transform-name \
1130 | --program-transform-nam | --program-transform-na \
1131 | --program-transform-n | --program-transform- \
1132 | --program-transform | --program-transfor \
1133 | --program-transfo | --program-transf \
1134 | --program-trans | --program-tran \
1135 | --progr-tra | --program-tr | --program-t)
1136 ac_prev=program_transform_name ;;
1137 -program-transform-name=* | --program-transform-name=* \
1138 | --program-transform-nam=* | --program-transform-na=* \
1139 | --program-transform-n=* | --program-transform-=* \
1140 | --program-transform=* | --program-transfor=* \
1141 | --program-transfo=* | --program-transf=* \
1142 | --program-trans=* | --program-tran=* \
1143 | --progr-tra=* | --program-tr=* | --program-t=*)
1144 program_transform_name=$ac_optarg ;;
1145
1146 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1147 ac_prev=pdfdir ;;
1148 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1149 pdfdir=$ac_optarg ;;
1150
1151 -psdir | --psdir | --psdi | --psd | --ps)
1152 ac_prev=psdir ;;
1153 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1154 psdir=$ac_optarg ;;
1155
1156 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1157 | -silent | --silent | --silen | --sile | --sil)
1158 silent=yes ;;
1159
1160 -runstatedir | --runstatedir | --runstatedi | --runstated \
1161 | --runstate | --runstat | --runsta | --runst | --runs \
1162 | --run | --ru | --r)
1163 ac_prev=runstatedir ;;
1164 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1165 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1166 | --run=* | --ru=* | --r=*)
1167 runstatedir=$ac_optarg ;;
1168
1169 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1170 ac_prev=sbindir ;;
1171 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1172 | --sbi=* | --sb=*)
1173 sbindir=$ac_optarg ;;
1174
1175 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1176 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1177 | --sharedst | --shareds | --shared | --share | --shar \
1178 | --sha | --sh)
1179 ac_prev=sharedstatedir ;;
1180 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1181 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1182 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1183 | --sha=* | --sh=*)
1184 sharedstatedir=$ac_optarg ;;
1185
1186 -site | --site | --sit)
1187 ac_prev=site ;;
1188 -site=* | --site=* | --sit=*)
1189 site=$ac_optarg ;;
1190
1191 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1192 ac_prev=srcdir ;;
1193 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1194 srcdir=$ac_optarg ;;
1195
1196 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1197 | --syscon | --sysco | --sysc | --sys | --sy)
1198 ac_prev=sysconfdir ;;
1199 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1200 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1201 sysconfdir=$ac_optarg ;;
1202
1203 -target | --target | --targe | --targ | --tar | --ta | --t)
1204 ac_prev=target_alias ;;
1205 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1206 target_alias=$ac_optarg ;;
1207
1208 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1209 verbose=yes ;;
1210
1211 -version | --version | --versio | --versi | --vers | -V)
1212 ac_init_version=: ;;
1213
1214 -with-* | --with-*)
1215 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218 as_fn_error $? "invalid package name: '$ac_useropt'"
1219 ac_useropt_orig=$ac_useropt
1220 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1221 case $ac_user_opts in
1222 *"
1223"with_$ac_useropt"
1224"*) ;;
1225 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1226 ac_unrecognized_sep=', ';;
1227 esac
1228 eval with_$ac_useropt=\$ac_optarg ;;
1229
1230 -without-* | --without-*)
1231 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1234 as_fn_error $? "invalid package name: '$ac_useropt'"
1235 ac_useropt_orig=$ac_useropt
1236 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1237 case $ac_user_opts in
1238 *"
1239"with_$ac_useropt"
1240"*) ;;
1241 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1242 ac_unrecognized_sep=', ';;
1243 esac
1244 eval with_$ac_useropt=no ;;
1245
1246 --x)
1247 # Obsolete; use --with-x.
1248 with_x=yes ;;
1249
1250 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1251 | --x-incl | --x-inc | --x-in | --x-i)
1252 ac_prev=x_includes ;;
1253 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1254 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1255 x_includes=$ac_optarg ;;
1256
1257 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1258 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1259 ac_prev=x_libraries ;;
1260 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1261 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1262 x_libraries=$ac_optarg ;;
1263
1264 -*) as_fn_error $? "unrecognized option: '$ac_option'
1265Try '$0 --help' for more information"
1266 ;;
1267
1268 *=*)
1269 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1270 # Reject names that are not valid shell variable names.
1271 case $ac_envvar in #(
1272 '' | [0-9]* | *[!_$as_cr_alnum]* )
1273 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1274 esac
1275 eval $ac_envvar=\$ac_optarg
1276 export $ac_envvar ;;
1277
1278 *)
1279 # FIXME: should be removed in autoconf 3.0.
1280 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1281 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1282 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1283 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1284 ;;
1285
1286 esac
1287done
1288
1289if test -n "$ac_prev"; then
1290 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1291 as_fn_error $? "missing argument to $ac_option"
1292fi
1293
1294if test -n "$ac_unrecognized_opts"; then
1295 case $enable_option_checking in
1296 no) ;;
1297 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1298 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1299 esac
1300fi
1301
1302# Check all directory arguments for consistency.
1303for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1304 datadir sysconfdir sharedstatedir localstatedir includedir \
1305 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1306 libdir localedir mandir runstatedir
1307do
1308 eval ac_val=\$$ac_var
1309 # Remove trailing slashes.
1310 case $ac_val in
1311 */ )
1312 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1313 eval $ac_var=\$ac_val;;
1314 esac
1315 # Be sure to have absolute directory names.
1316 case $ac_val in
1317 [\\/$]* | ?:[\\/]* ) continue;;
1318 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1319 esac
1320 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1321done
1322
1323# There might be people who depend on the old broken behavior: '$host'
1324# used to hold the argument of --host etc.
1325# FIXME: To remove some day.
1326build=$build_alias
1327host=$host_alias
1328target=$target_alias
1329
1330# FIXME: To remove some day.
1331if test "x$host_alias" != x; then
1332 if test "x$build_alias" = x; then
1333 cross_compiling=maybe
1334 elif test "x$build_alias" != "x$host_alias"; then
1335 cross_compiling=yes
1336 fi
1337fi
1338
1339ac_tool_prefix=
1340test -n "$host_alias" && ac_tool_prefix=$host_alias-
1341
1342test "$silent" = yes && exec 6>/dev/null
1343
1344
1345ac_pwd=`pwd` && test -n "$ac_pwd" &&
1346ac_ls_di=`ls -di .` &&
1347ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1348 as_fn_error $? "working directory cannot be determined"
1349test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1350 as_fn_error $? "pwd does not report name of working directory"
1351
1352
1353# Find the source files, if location was not specified.
1354if test -z "$srcdir"; then
1355 ac_srcdir_defaulted=yes
1356 # Try the directory containing this script, then the parent directory.
1357 ac_confdir=`$as_dirname -- "$as_myself" ||
1358$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1359 X"$as_myself" : 'X\(//\)[^/]' \| \
1360 X"$as_myself" : 'X\(//\)$' \| \
1361 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1362printf "%s\n" X"$as_myself" |
1363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1364 s//\1/
1365 q
1366 }
1367 /^X\(\/\/\)[^/].*/{
1368 s//\1/
1369 q
1370 }
1371 /^X\(\/\/\)$/{
1372 s//\1/
1373 q
1374 }
1375 /^X\(\/\).*/{
1376 s//\1/
1377 q
1378 }
1379 s/.*/./; q'`
1380 srcdir=$ac_confdir
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382 srcdir=..
1383 fi
1384else
1385 ac_srcdir_defaulted=no
1386fi
1387if test ! -r "$srcdir/$ac_unique_file"; then
1388 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1389 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1390fi
1391ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1392ac_abs_confdir=`(
1393 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1394 pwd)`
1395# When building in place, set srcdir=.
1396if test "$ac_abs_confdir" = "$ac_pwd"; then
1397 srcdir=.
1398fi
1399# Remove unnecessary trailing slashes from srcdir.
1400# Double slashes in file names in object file debugging info
1401# mess up M-x gdb in Emacs.
1402case $srcdir in
1403*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1404esac
1405for ac_var in $ac_precious_vars; do
1406 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1407 eval ac_env_${ac_var}_value=\$${ac_var}
1408 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1409 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1410done
1411
1412#
1413# Report the --help message.
1414#
1415if test "$ac_init_help" = "long"; then
1416 # Omit some internal or obsolete options to make the list less imposing.
1417 # This message is too long to be a string in the A/UX 3.1 sh.
1418 cat <<_ACEOF
1419'configure' configures libpng 1.6.42 to adapt to many kinds of systems.
1420
1421Usage: $0 [OPTION]... [VAR=VALUE]...
1422
1423To assign environment variables (e.g., CC, CFLAGS...), specify them as
1424VAR=VALUE. See below for descriptions of some of the useful variables.
1425
1426Defaults for the options are specified in brackets.
1427
1428Configuration:
1429 -h, --help display this help and exit
1430 --help=short display options specific to this package
1431 --help=recursive display the short help of all the included packages
1432 -V, --version display version information and exit
1433 -q, --quiet, --silent do not print 'checking ...' messages
1434 --cache-file=FILE cache test results in FILE [disabled]
1435 -C, --config-cache alias for '--cache-file=config.cache'
1436 -n, --no-create do not create output files
1437 --srcdir=DIR find the sources in DIR [configure dir or '..']
1438
1439Installation directories:
1440 --prefix=PREFIX install architecture-independent files in PREFIX
1441 [$ac_default_prefix]
1442 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1443 [PREFIX]
1444
1445By default, 'make install' will install all the files in
1446'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1447an installation prefix other than '$ac_default_prefix' using '--prefix',
1448for instance '--prefix=\$HOME'.
1449
1450For better control, use the options below.
1451
1452Fine tuning of the installation directories:
1453 --bindir=DIR user executables [EPREFIX/bin]
1454 --sbindir=DIR system admin executables [EPREFIX/sbin]
1455 --libexecdir=DIR program executables [EPREFIX/libexec]
1456 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1457 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1458 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1459 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1460 --libdir=DIR object code libraries [EPREFIX/lib]
1461 --includedir=DIR C header files [PREFIX/include]
1462 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1463 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1464 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1465 --infodir=DIR info documentation [DATAROOTDIR/info]
1466 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1467 --mandir=DIR man documentation [DATAROOTDIR/man]
1468 --docdir=DIR documentation root [DATAROOTDIR/doc/libpng]
1469 --htmldir=DIR html documentation [DOCDIR]
1470 --dvidir=DIR dvi documentation [DOCDIR]
1471 --pdfdir=DIR pdf documentation [DOCDIR]
1472 --psdir=DIR ps documentation [DOCDIR]
1473_ACEOF
1474
1475 cat <<\_ACEOF
1476
1477Program names:
1478 --program-prefix=PREFIX prepend PREFIX to installed program names
1479 --program-suffix=SUFFIX append SUFFIX to installed program names
1480 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1481
1482System types:
1483 --build=BUILD configure for building on BUILD [guessed]
1484 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1485_ACEOF
1486fi
1487
1488if test -n "$ac_init_help"; then
1489 case $ac_init_help in
1490 short | recursive ) echo "Configuration of libpng 1.6.42:";;
1491 esac
1492 cat <<\_ACEOF
1493
1494Optional Features:
1495 --disable-option-checking ignore unrecognized --enable/--with options
1496 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1497 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1498 --enable-silent-rules less verbose build output (undo: "make V=1")
1499 --disable-silent-rules verbose build output (undo: "make V=0")
1500 --enable-maintainer-mode
1501 enable make rules and dependencies not useful (and
1502 sometimes confusing) to the casual installer
1503 --enable-dependency-tracking
1504 do not reject slow dependency extractors
1505 --disable-dependency-tracking
1506 speeds up one-time build
1507 --enable-shared[=PKGS] build shared libraries [default=yes]
1508 --enable-static[=PKGS] build static libraries [default=yes]
1509 --enable-fast-install[=PKGS]
1510 optimize for fast installation [default=yes]
1511 --disable-libtool-lock avoid locking (might break parallel builds)
1512 --disable-tests do not build the test programs (default is to build)
1513 --disable-tools do not build the auxiliary tools (default is to
1514 build)
1515 --enable-werror[=OPT] Pass -Werror or the given argument to the compiler
1516 if it is supported
1517 --enable-unversioned-links
1518 Installed libpng header files are placed in a
1519 versioned subdirectory and installed libpng library
1520 (including DLL) files are versioned. If this option
1521 is enabled unversioned links will be created
1522 pointing to the corresponding installed files. If
1523 you use libpng.pc or libpng-config for all builds
1524 you do not need these links, but if you compile
1525 programs directly they will typically #include
1526 <png.h> and link with -lpng; in that case you need
1527 the links. The links can be installed manually using
1528 'make install-header-links' and 'make
1529 install-library-links' and can be removed using the
1530 corresponding uninstall- targets. If you do enable
1531 this option every libpng 'make install' will
1532 recreate the links to point to the just installed
1533 version of libpng. The default is to create the
1534 links; use --disable-unversioned-links to change
1535 this
1536 --enable-unversioned-libpng-pc
1537 Install the configuration file 'libpng.pc' as a link
1538 to the versioned version. This is done by default -
1539 use --disable-unversioned-libpng-pc to change this.
1540 --enable-unversioned-libpng-config
1541 Install the configuration file 'libpng-config' as a
1542 link to the versioned version. This is done by
1543 default - use --disable-unversioned-libpng-config to
1544 change this.
1545 --enable-hardware-optimizations
1546 Enable hardware optimizations: =no/off, yes/on:
1547 --enable-arm-neon Enable ARM NEON optimizations: =no/off, check, api,
1548 yes/on: no/off: disable the optimizations; check:
1549 use internal checking code (deprecated and poorly
1550 supported); api: disable by default, enable by a
1551 call to png_set_option; yes/on: turn on
1552 unconditionally. If not specified: determined by the
1553 compiler.
1554 --enable-mips-msa Enable MIPS MSA optimizations: =no/off, check, api,
1555 yes/on: no/off: disable the optimizations; check:
1556 use internal checking code (deprecated and poorly
1557 supported); api: disable by default, enable by a
1558 call to png_set_option; yes/on: turn on
1559 unconditionally. If not specified: determined by the
1560 compiler.
1561 --enable-mips-mmi Enable MIPS MMI optimizations: =no/off, check, api,
1562 yes/on: no/off: disable the optimizations; check:
1563 use internal checking code (deprecated and poorly
1564 supported); api: disable by default, enable by a
1565 call to png_set_option; yes/on: turn on
1566 unconditionally. If not specified: determined by the
1567 compiler.
1568 --enable-intel-sse Enable Intel SSE optimizations: =no/off, yes/on:
1569 no/off: disable the optimizations; yes/on: enable
1570 the optimizations. If not specified: determined by
1571 the compiler.
1572 --enable-powerpc-vsx Enable POWERPC VSX optimizations: =no/off, check,
1573 api, yes/on: no/off: disable the optimizations;
1574 check: use internal checking code api: disable by
1575 default, enable by a call to png_set_option yes/on:
1576 turn on unconditionally. If not specified:
1577 determined by the compiler.
1578 --enable-loongarch-lsx
1579 Enable LOONGARCH LSX optimizations: =no/off, yes/on:
1580 no/off: disable the optimizations; yes/on: turn on
1581 unconditionally. If not specified: determined by the
1582 compiler.
1583
1584Optional Packages:
1585 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1586 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1587 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1588 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1589 both]
1590 --with-aix-soname=aix|svr4|both
1591 shared library versioning (aka "SONAME") variant to
1592 provide on AIX, [default=aix].
1593 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1594 compiler's sysroot if not specified).
1595 --with-zlib-prefix prefix that may have been used in installed zlib
1596 --with-pkgconfigdir Use the specified pkgconfig dir (default is
1597 libdir/pkgconfig)
1598 --with-binconfigs Generate shell libpng-config scripts as well as
1599 pkg-config data [default=yes]
1600 --with-libpng-prefix prefix libpng exported function (API) names with the
1601 given value
1602
1603Some influential environment variables:
1604 CC C compiler command
1605 CFLAGS C compiler flags
1606 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1607 nonstandard directory <lib dir>
1608 LIBS libraries to pass to the linker, e.g. -l<library>
1609 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1610 you have headers in a nonstandard directory <include dir>
1611 CCAS assembler compiler command (defaults to CC)
1612 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1613 CPP C preprocessor
1614 LT_SYS_LIBRARY_PATH
1615 User-defined run-time library search path.
1616 PNG_COPTS additional flags for the C compiler, use this for options that
1617 would cause configure itself to fail
1618
1619Use these variables to override the choices made by 'configure' or to help
1620it to find libraries and programs with nonstandard names/locations.
1621
1622Report bugs to <png-mng-implement@lists.sourceforge.net>.
1623_ACEOF
1624ac_status=$?
1625fi
1626
1627if test "$ac_init_help" = "recursive"; then
1628 # If there are subdirs, report their specific --help.
1629 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1630 test -d "$ac_dir" ||
1631 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1632 continue
1633 ac_builddir=.
1634
1635case "$ac_dir" in
1636.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637*)
1638 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1639 # A ".." for each directory in $ac_dir_suffix.
1640 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1641 case $ac_top_builddir_sub in
1642 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1644 esac ;;
1645esac
1646ac_abs_top_builddir=$ac_pwd
1647ac_abs_builddir=$ac_pwd$ac_dir_suffix
1648# for backward compatibility:
1649ac_top_builddir=$ac_top_build_prefix
1650
1651case $srcdir in
1652 .) # We are building in place.
1653 ac_srcdir=.
1654 ac_top_srcdir=$ac_top_builddir_sub
1655 ac_abs_top_srcdir=$ac_pwd ;;
1656 [\\/]* | ?:[\\/]* ) # Absolute name.
1657 ac_srcdir=$srcdir$ac_dir_suffix;
1658 ac_top_srcdir=$srcdir
1659 ac_abs_top_srcdir=$srcdir ;;
1660 *) # Relative name.
1661 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1662 ac_top_srcdir=$ac_top_build_prefix$srcdir
1663 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1664esac
1665ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1666
1667 cd "$ac_dir" || { ac_status=$?; continue; }
1668 # Check for configure.gnu first; this name is used for a wrapper for
1669 # Metaconfig's "Configure" on case-insensitive file systems.
1670 if test -f "$ac_srcdir/configure.gnu"; then
1671 echo &&
1672 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1673 elif test -f "$ac_srcdir/configure"; then
1674 echo &&
1675 $SHELL "$ac_srcdir/configure" --help=recursive
1676 else
1677 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1678 fi || ac_status=$?
1679 cd "$ac_pwd" || { ac_status=$?; break; }
1680 done
1681fi
1682
1683test -n "$ac_init_help" && exit $ac_status
1684if $ac_init_version; then
1685 cat <<\_ACEOF
1686libpng configure 1.6.42
1687generated by GNU Autoconf 2.72
1688
1689Copyright (C) 2023 Free Software Foundation, Inc.
1690This configure script is free software; the Free Software Foundation
1691gives unlimited permission to copy, distribute and modify it.
1692_ACEOF
1693 exit
1694fi
1695
1696## ------------------------ ##
1697## Autoconf initialization. ##
1698## ------------------------ ##
1699
1700# ac_fn_c_try_compile LINENO
1701# --------------------------
1702# Try to compile conftest.$ac_ext, and return whether this succeeded.
1703ac_fn_c_try_compile ()
1704{
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 rm -f conftest.$ac_objext conftest.beam
1707 if { { ac_try="$ac_compile"
1708case "(($ac_try" in
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1711esac
1712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713printf "%s\n" "$ac_try_echo"; } >&5
1714 (eval "$ac_compile") 2>conftest.err
1715 ac_status=$?
1716 if test -s conftest.err; then
1717 grep -v '^ *+' conftest.err >conftest.er1
1718 cat conftest.er1 >&5
1719 mv -f conftest.er1 conftest.err
1720 fi
1721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } && {
1723 test -z "$ac_c_werror_flag" ||
1724 test ! -s conftest.err
1725 } && test -s conftest.$ac_objext
1726then :
1727 ac_retval=0
1728else case e in #(
1729 e) printf "%s\n" "$as_me: failed program was:" >&5
1730sed 's/^/| /' conftest.$ac_ext >&5
1731
1732 ac_retval=1 ;;
1733esac
1734fi
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 as_fn_set_status $ac_retval
1737
1738} # ac_fn_c_try_compile
1739
1740# ac_fn_c_try_cpp LINENO
1741# ----------------------
1742# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1743ac_fn_c_try_cpp ()
1744{
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 if { { ac_try="$ac_cpp conftest.$ac_ext"
1747case "(($ac_try" in
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1750esac
1751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752printf "%s\n" "$ac_try_echo"; } >&5
1753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1754 ac_status=$?
1755 if test -s conftest.err; then
1756 grep -v '^ *+' conftest.err >conftest.er1
1757 cat conftest.er1 >&5
1758 mv -f conftest.er1 conftest.err
1759 fi
1760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761 test $ac_status = 0; } > conftest.i && {
1762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1763 test ! -s conftest.err
1764 }
1765then :
1766 ac_retval=0
1767else case e in #(
1768 e) printf "%s\n" "$as_me: failed program was:" >&5
1769sed 's/^/| /' conftest.$ac_ext >&5
1770
1771 ac_retval=1 ;;
1772esac
1773fi
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775 as_fn_set_status $ac_retval
1776
1777} # ac_fn_c_try_cpp
1778
1779# ac_fn_c_try_link LINENO
1780# -----------------------
1781# Try to link conftest.$ac_ext, and return whether this succeeded.
1782ac_fn_c_try_link ()
1783{
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1786 if { { ac_try="$ac_link"
1787case "(($ac_try" in
1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1790esac
1791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792printf "%s\n" "$ac_try_echo"; } >&5
1793 (eval "$ac_link") 2>conftest.err
1794 ac_status=$?
1795 if test -s conftest.err; then
1796 grep -v '^ *+' conftest.err >conftest.er1
1797 cat conftest.er1 >&5
1798 mv -f conftest.er1 conftest.err
1799 fi
1800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } && {
1802 test -z "$ac_c_werror_flag" ||
1803 test ! -s conftest.err
1804 } && test -s conftest$ac_exeext && {
1805 test "$cross_compiling" = yes ||
1806 test -x conftest$ac_exeext
1807 }
1808then :
1809 ac_retval=0
1810else case e in #(
1811 e) printf "%s\n" "$as_me: failed program was:" >&5
1812sed 's/^/| /' conftest.$ac_ext >&5
1813
1814 ac_retval=1 ;;
1815esac
1816fi
1817 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1818 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1819 # interfere with the next link command; also delete a directory that is
1820 # left behind by Apple's compiler. We do this before executing the actions.
1821 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823 as_fn_set_status $ac_retval
1824
1825} # ac_fn_c_try_link
1826
1827# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1828# -------------------------------------------------------
1829# Tests whether HEADER exists and can be compiled using the include files in
1830# INCLUDES, setting the cache variable VAR accordingly.
1831ac_fn_c_check_header_compile ()
1832{
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835printf %s "checking for $2... " >&6; }
1836if eval test \${$3+y}
1837then :
1838 printf %s "(cached) " >&6
1839else case e in #(
1840 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841/* end confdefs.h. */
1842$4
1843#include <$2>
1844_ACEOF
1845if ac_fn_c_try_compile "$LINENO"
1846then :
1847 eval "$3=yes"
1848else case e in #(
1849 e) eval "$3=no" ;;
1850esac
1851fi
1852rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1853esac
1854fi
1855eval ac_res=\$$3
1856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857printf "%s\n" "$ac_res" >&6; }
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859
1860} # ac_fn_c_check_header_compile
1861
1862# ac_fn_c_check_func LINENO FUNC VAR
1863# ----------------------------------
1864# Tests whether FUNC exists, setting the cache variable VAR accordingly
1865ac_fn_c_check_func ()
1866{
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869printf %s "checking for $2... " >&6; }
1870if eval test \${$3+y}
1871then :
1872 printf %s "(cached) " >&6
1873else case e in #(
1874 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875/* end confdefs.h. */
1876/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1878#define $2 innocuous_$2
1879
1880/* System header to define __stub macros and hopefully few prototypes,
1881 which can conflict with char $2 (void); below. */
1882
1883#include <limits.h>
1884#undef $2
1885
1886/* Override any GCC internal prototype to avoid an error.
1887 Use char because int might match the return type of a GCC
1888 builtin and then its argument prototype would still apply. */
1889#ifdef __cplusplus
1890extern "C"
1891#endif
1892char $2 (void);
1893/* The GNU C library defines this for functions which it implements
1894 to always fail with ENOSYS. Some functions are actually named
1895 something starting with __ and the normal name is an alias. */
1896#if defined __stub_$2 || defined __stub___$2
1897choke me
1898#endif
1899
1900int
1901main (void)
1902{
1903return $2 ();
1904 ;
1905 return 0;
1906}
1907_ACEOF
1908if ac_fn_c_try_link "$LINENO"
1909then :
1910 eval "$3=yes"
1911else case e in #(
1912 e) eval "$3=no" ;;
1913esac
1914fi
1915rm -f core conftest.err conftest.$ac_objext conftest.beam \
1916 conftest$ac_exeext conftest.$ac_ext ;;
1917esac
1918fi
1919eval ac_res=\$$3
1920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921printf "%s\n" "$ac_res" >&6; }
1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923
1924} # ac_fn_c_check_func
1925ac_configure_args_raw=
1926for ac_arg
1927do
1928 case $ac_arg in
1929 *\'*)
1930 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1931 esac
1932 as_fn_append ac_configure_args_raw " '$ac_arg'"
1933done
1934
1935case $ac_configure_args_raw in
1936 *$as_nl*)
1937 ac_safe_unquote= ;;
1938 *)
1939 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1940 ac_unsafe_a="$ac_unsafe_z#~"
1941 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1942 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1943esac
1944
1945cat >config.log <<_ACEOF
1946This file contains any messages produced by compilers while
1947running configure, to aid debugging if configure makes a mistake.
1948
1949It was created by libpng $as_me 1.6.42, which was
1950generated by GNU Autoconf 2.72. Invocation command line was
1951
1952 $ $0$ac_configure_args_raw
1953
1954_ACEOF
1955exec 5>>config.log
1956{
1957cat <<_ASUNAME
1958## --------- ##
1959## Platform. ##
1960## --------- ##
1961
1962hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1963uname -m = `(uname -m) 2>/dev/null || echo unknown`
1964uname -r = `(uname -r) 2>/dev/null || echo unknown`
1965uname -s = `(uname -s) 2>/dev/null || echo unknown`
1966uname -v = `(uname -v) 2>/dev/null || echo unknown`
1967
1968/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1969/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1970
1971/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1972/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1973/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1974/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1975/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1976/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1977/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1978
1979_ASUNAME
1980
1981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982for as_dir in $PATH
1983do
1984 IFS=$as_save_IFS
1985 case $as_dir in #(((
1986 '') as_dir=./ ;;
1987 */) ;;
1988 *) as_dir=$as_dir/ ;;
1989 esac
1990 printf "%s\n" "PATH: $as_dir"
1991 done
1992IFS=$as_save_IFS
1993
1994} >&5
1995
1996cat >&5 <<_ACEOF
1997
1998
1999## ----------- ##
2000## Core tests. ##
2001## ----------- ##
2002
2003_ACEOF
2004
2005
2006# Keep a trace of the command line.
2007# Strip out --no-create and --no-recursion so they do not pile up.
2008# Strip out --silent because we don't want to record it for future runs.
2009# Also quote any args containing shell meta-characters.
2010# Make two passes to allow for proper duplicate-argument suppression.
2011ac_configure_args=
2012ac_configure_args0=
2013ac_configure_args1=
2014ac_must_keep_next=false
2015for ac_pass in 1 2
2016do
2017 for ac_arg
2018 do
2019 case $ac_arg in
2020 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2022 | -silent | --silent | --silen | --sile | --sil)
2023 continue ;;
2024 *\'*)
2025 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2026 esac
2027 case $ac_pass in
2028 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2029 2)
2030 as_fn_append ac_configure_args1 " '$ac_arg'"
2031 if test $ac_must_keep_next = true; then
2032 ac_must_keep_next=false # Got value, back to normal.
2033 else
2034 case $ac_arg in
2035 *=* | --config-cache | -C | -disable-* | --disable-* \
2036 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2037 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2038 | -with-* | --with-* | -without-* | --without-* | --x)
2039 case "$ac_configure_args0 " in
2040 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2041 esac
2042 ;;
2043 -* ) ac_must_keep_next=true ;;
2044 esac
2045 fi
2046 as_fn_append ac_configure_args " '$ac_arg'"
2047 ;;
2048 esac
2049 done
2050done
2051{ ac_configure_args0=; unset ac_configure_args0;}
2052{ ac_configure_args1=; unset ac_configure_args1;}
2053
2054# When interrupted or exit'd, cleanup temporary files, and complete
2055# config.log. We remove comments because anyway the quotes in there
2056# would cause problems or look ugly.
2057# WARNING: Use '\'' to represent an apostrophe within the trap.
2058# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2059trap 'exit_status=$?
2060 # Sanitize IFS.
2061 IFS=" "" $as_nl"
2062 # Save into config.log some information that might help in debugging.
2063 {
2064 echo
2065
2066 printf "%s\n" "## ---------------- ##
2067## Cache variables. ##
2068## ---------------- ##"
2069 echo
2070 # The following way of writing the cache mishandles newlines in values,
2071(
2072 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2073 eval ac_val=\$$ac_var
2074 case $ac_val in #(
2075 *${as_nl}*)
2076 case $ac_var in #(
2077 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2078printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2079 esac
2080 case $ac_var in #(
2081 _ | IFS | as_nl) ;; #(
2082 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2083 *) { eval $ac_var=; unset $ac_var;} ;;
2084 esac ;;
2085 esac
2086 done
2087 (set) 2>&1 |
2088 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2089 *${as_nl}ac_space=\ *)
2090 sed -n \
2091 "s/'\''/'\''\\\\'\'''\''/g;
2092 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2093 ;; #(
2094 *)
2095 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2096 ;;
2097 esac |
2098 sort
2099)
2100 echo
2101
2102 printf "%s\n" "## ----------------- ##
2103## Output variables. ##
2104## ----------------- ##"
2105 echo
2106 for ac_var in $ac_subst_vars
2107 do
2108 eval ac_val=\$$ac_var
2109 case $ac_val in
2110 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2111 esac
2112 printf "%s\n" "$ac_var='\''$ac_val'\''"
2113 done | sort
2114 echo
2115
2116 if test -n "$ac_subst_files"; then
2117 printf "%s\n" "## ------------------- ##
2118## File substitutions. ##
2119## ------------------- ##"
2120 echo
2121 for ac_var in $ac_subst_files
2122 do
2123 eval ac_val=\$$ac_var
2124 case $ac_val in
2125 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2126 esac
2127 printf "%s\n" "$ac_var='\''$ac_val'\''"
2128 done | sort
2129 echo
2130 fi
2131
2132 if test -s confdefs.h; then
2133 printf "%s\n" "## ----------- ##
2134## confdefs.h. ##
2135## ----------- ##"
2136 echo
2137 cat confdefs.h
2138 echo
2139 fi
2140 test "$ac_signal" != 0 &&
2141 printf "%s\n" "$as_me: caught signal $ac_signal"
2142 printf "%s\n" "$as_me: exit $exit_status"
2143 } >&5
2144 rm -f core *.core core.conftest.* &&
2145 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2146 exit $exit_status
2147' 0
2148for ac_signal in 1 2 13 15; do
2149 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2150done
2151ac_signal=0
2152
2153# confdefs.h avoids OS command line length limits that DEFS can exceed.
2154rm -f -r conftest* confdefs.h
2155
2156printf "%s\n" "/* confdefs.h */" > confdefs.h
2157
2158# Predefined preprocessor variables.
2159
2160printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2161
2162printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2163
2164printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2165
2166printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2167
2168printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2169
2170printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2171
2172
2173# Let the site file select an alternate cache file if it wants to.
2174# Prefer an explicitly selected file to automatically selected ones.
2175if test -n "$CONFIG_SITE"; then
2176 ac_site_files="$CONFIG_SITE"
2177elif test "x$prefix" != xNONE; then
2178 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2179else
2180 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2181fi
2182
2183for ac_site_file in $ac_site_files
2184do
2185 case $ac_site_file in #(
2186 */*) :
2187 ;; #(
2188 *) :
2189 ac_site_file=./$ac_site_file ;;
2190esac
2191 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2193printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2194 sed 's/^/| /' "$ac_site_file" >&5
2195 . "$ac_site_file" \
2196 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2197printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2198as_fn_error $? "failed to load site script $ac_site_file
2199See 'config.log' for more details" "$LINENO" 5; }
2200 fi
2201done
2202
2203if test -r "$cache_file"; then
2204 # Some versions of bash will fail to source /dev/null (special files
2205 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2206 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2208printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2209 case $cache_file in
2210 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2211 *) . "./$cache_file";;
2212 esac
2213 fi
2214else
2215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2216printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2217 >$cache_file
2218fi
2219
2220# Test code for whether the C compiler supports C89 (global declarations)
2221ac_c_conftest_c89_globals='
2222/* Does the compiler advertise C89 conformance?
2223 Do not test the value of __STDC__, because some compilers set it to 0
2224 while being otherwise adequately conformant. */
2225#if !defined __STDC__
2226# error "Compiler does not advertise C89 conformance"
2227#endif
2228
2229#include <stddef.h>
2230#include <stdarg.h>
2231struct stat;
2232/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2233struct buf { int x; };
2234struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2235static char *e (char **p, int i)
2236{
2237 return p[i];
2238}
2239static char *f (char * (*g) (char **, int), char **p, ...)
2240{
2241 char *s;
2242 va_list v;
2243 va_start (v,p);
2244 s = g (p, va_arg (v,int));
2245 va_end (v);
2246 return s;
2247}
2248
2249/* C89 style stringification. */
2250#define noexpand_stringify(a) #a
2251const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2252
2253/* C89 style token pasting. Exercises some of the corner cases that
2254 e.g. old MSVC gets wrong, but not very hard. */
2255#define noexpand_concat(a,b) a##b
2256#define expand_concat(a,b) noexpand_concat(a,b)
2257extern int vA;
2258extern int vbee;
2259#define aye A
2260#define bee B
2261int *pvA = &expand_concat(v,aye);
2262int *pvbee = &noexpand_concat(v,bee);
2263
2264/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2265 function prototypes and stuff, but not \xHH hex character constants.
2266 These do not provoke an error unfortunately, instead are silently treated
2267 as an "x". The following induces an error, until -std is added to get
2268 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2269 array size at least. It is necessary to write \x00 == 0 to get something
2270 that is true only with -std. */
2271int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2272
2273/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2274 inside strings and character constants. */
2275#define FOO(x) '\''x'\''
2276int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2277
2278int test (int i, double x);
2279struct s1 {int (*f) (int a);};
2280struct s2 {int (*f) (double a);};
2281int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2282 int, int);'
2283
2284# Test code for whether the C compiler supports C89 (body of main).
2285ac_c_conftest_c89_main='
2286ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2287'
2288
2289# Test code for whether the C compiler supports C99 (global declarations)
2290ac_c_conftest_c99_globals='
2291/* Does the compiler advertise C99 conformance? */
2292#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2293# error "Compiler does not advertise C99 conformance"
2294#endif
2295
2296// See if C++-style comments work.
2297
2298#include <stdbool.h>
2299extern int puts (const char *);
2300extern int printf (const char *, ...);
2301extern int dprintf (int, const char *, ...);
2302extern void *malloc (size_t);
2303extern void free (void *);
2304
2305// Check varargs macros. These examples are taken from C99 6.10.3.5.
2306// dprintf is used instead of fprintf to avoid needing to declare
2307// FILE and stderr.
2308#define debug(...) dprintf (2, __VA_ARGS__)
2309#define showlist(...) puts (#__VA_ARGS__)
2310#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2311static void
2312test_varargs_macros (void)
2313{
2314 int x = 1234;
2315 int y = 5678;
2316 debug ("Flag");
2317 debug ("X = %d\n", x);
2318 showlist (The first, second, and third items.);
2319 report (x>y, "x is %d but y is %d", x, y);
2320}
2321
2322// Check long long types.
2323#define BIG64 18446744073709551615ull
2324#define BIG32 4294967295ul
2325#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2326#if !BIG_OK
2327 #error "your preprocessor is broken"
2328#endif
2329#if BIG_OK
2330#else
2331 #error "your preprocessor is broken"
2332#endif
2333static long long int bignum = -9223372036854775807LL;
2334static unsigned long long int ubignum = BIG64;
2335
2336struct incomplete_array
2337{
2338 int datasize;
2339 double data[];
2340};
2341
2342struct named_init {
2343 int number;
2344 const wchar_t *name;
2345 double average;
2346};
2347
2348typedef const char *ccp;
2349
2350static inline int
2351test_restrict (ccp restrict text)
2352{
2353 // Iterate through items via the restricted pointer.
2354 // Also check for declarations in for loops.
2355 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2356 continue;
2357 return 0;
2358}
2359
2360// Check varargs and va_copy.
2361static bool
2362test_varargs (const char *format, ...)
2363{
2364 va_list args;
2365 va_start (args, format);
2366 va_list args_copy;
2367 va_copy (args_copy, args);
2368
2369 const char *str = "";
2370 int number = 0;
2371 float fnumber = 0;
2372
2373 while (*format)
2374 {
2375 switch (*format++)
2376 {
2377 case '\''s'\'': // string
2378 str = va_arg (args_copy, const char *);
2379 break;
2380 case '\''d'\'': // int
2381 number = va_arg (args_copy, int);
2382 break;
2383 case '\''f'\'': // float
2384 fnumber = va_arg (args_copy, double);
2385 break;
2386 default:
2387 break;
2388 }
2389 }
2390 va_end (args_copy);
2391 va_end (args);
2392
2393 return *str && number && fnumber;
2394}
2395'
2396
2397# Test code for whether the C compiler supports C99 (body of main).
2398ac_c_conftest_c99_main='
2399 // Check bool.
2400 _Bool success = false;
2401 success |= (argc != 0);
2402
2403 // Check restrict.
2404 if (test_restrict ("String literal") == 0)
2405 success = true;
2406 char *restrict newvar = "Another string";
2407
2408 // Check varargs.
2409 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2410 test_varargs_macros ();
2411
2412 // Check flexible array members.
2413 struct incomplete_array *ia =
2414 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2415 ia->datasize = 10;
2416 for (int i = 0; i < ia->datasize; ++i)
2417 ia->data[i] = i * 1.234;
2418 // Work around memory leak warnings.
2419 free (ia);
2420
2421 // Check named initializers.
2422 struct named_init ni = {
2423 .number = 34,
2424 .name = L"Test wide string",
2425 .average = 543.34343,
2426 };
2427
2428 ni.number = 58;
2429
2430 int dynamic_array[ni.number];
2431 dynamic_array[0] = argv[0][0];
2432 dynamic_array[ni.number - 1] = 543;
2433
2434 // work around unused variable warnings
2435 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2436 || dynamic_array[ni.number - 1] != 543);
2437'
2438
2439# Test code for whether the C compiler supports C11 (global declarations)
2440ac_c_conftest_c11_globals='
2441/* Does the compiler advertise C11 conformance? */
2442#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2443# error "Compiler does not advertise C11 conformance"
2444#endif
2445
2446// Check _Alignas.
2447char _Alignas (double) aligned_as_double;
2448char _Alignas (0) no_special_alignment;
2449extern char aligned_as_int;
2450char _Alignas (0) _Alignas (int) aligned_as_int;
2451
2452// Check _Alignof.
2453enum
2454{
2455 int_alignment = _Alignof (int),
2456 int_array_alignment = _Alignof (int[100]),
2457 char_alignment = _Alignof (char)
2458};
2459_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2460
2461// Check _Noreturn.
2462int _Noreturn does_not_return (void) { for (;;) continue; }
2463
2464// Check _Static_assert.
2465struct test_static_assert
2466{
2467 int x;
2468 _Static_assert (sizeof (int) <= sizeof (long int),
2469 "_Static_assert does not work in struct");
2470 long int y;
2471};
2472
2473// Check UTF-8 literals.
2474#define u8 syntax error!
2475char const utf8_literal[] = u8"happens to be ASCII" "another string";
2476
2477// Check duplicate typedefs.
2478typedef long *long_ptr;
2479typedef long int *long_ptr;
2480typedef long_ptr long_ptr;
2481
2482// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2483struct anonymous
2484{
2485 union {
2486 struct { int i; int j; };
2487 struct { int k; long int l; } w;
2488 };
2489 int m;
2490} v1;
2491'
2492
2493# Test code for whether the C compiler supports C11 (body of main).
2494ac_c_conftest_c11_main='
2495 _Static_assert ((offsetof (struct anonymous, i)
2496 == offsetof (struct anonymous, w.k)),
2497 "Anonymous union alignment botch");
2498 v1.i = 2;
2499 v1.w.k = 5;
2500 ok |= v1.i != 5;
2501'
2502
2503# Test code for whether the C compiler supports C11 (complete).
2504ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2505${ac_c_conftest_c99_globals}
2506${ac_c_conftest_c11_globals}
2507
2508int
2509main (int argc, char **argv)
2510{
2511 int ok = 0;
2512 ${ac_c_conftest_c89_main}
2513 ${ac_c_conftest_c99_main}
2514 ${ac_c_conftest_c11_main}
2515 return ok;
2516}
2517"
2518
2519# Test code for whether the C compiler supports C99 (complete).
2520ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2521${ac_c_conftest_c99_globals}
2522
2523int
2524main (int argc, char **argv)
2525{
2526 int ok = 0;
2527 ${ac_c_conftest_c89_main}
2528 ${ac_c_conftest_c99_main}
2529 return ok;
2530}
2531"
2532
2533# Test code for whether the C compiler supports C89 (complete).
2534ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2535
2536int
2537main (int argc, char **argv)
2538{
2539 int ok = 0;
2540 ${ac_c_conftest_c89_main}
2541 return ok;
2542}
2543"
2544
2545as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2546as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2547as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2548as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2549as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2550as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2551as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2552as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2553as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2554
2555# Auxiliary files required by this configure script.
2556ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
2557
2558# Locations in which to look for auxiliary files.
2559ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2560
2561# Search for a directory containing all of the required auxiliary files,
2562# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2563# If we don't find one directory that contains all the files we need,
2564# we report the set of missing files from the *first* directory in
2565# $ac_aux_dir_candidates and give up.
2566ac_missing_aux_files=""
2567ac_first_candidate=:
2568printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570as_found=false
2571for as_dir in $ac_aux_dir_candidates
2572do
2573 IFS=$as_save_IFS
2574 case $as_dir in #(((
2575 '') as_dir=./ ;;
2576 */) ;;
2577 *) as_dir=$as_dir/ ;;
2578 esac
2579 as_found=:
2580
2581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2582 ac_aux_dir_found=yes
2583 ac_install_sh=
2584 for ac_aux in $ac_aux_files
2585 do
2586 # As a special case, if "install-sh" is required, that requirement
2587 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2588 # and $ac_install_sh is set appropriately for whichever one is found.
2589 if test x"$ac_aux" = x"install-sh"
2590 then
2591 if test -f "${as_dir}install-sh"; then
2592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2593 ac_install_sh="${as_dir}install-sh -c"
2594 elif test -f "${as_dir}install.sh"; then
2595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2596 ac_install_sh="${as_dir}install.sh -c"
2597 elif test -f "${as_dir}shtool"; then
2598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2599 ac_install_sh="${as_dir}shtool install -c"
2600 else
2601 ac_aux_dir_found=no
2602 if $ac_first_candidate; then
2603 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2604 else
2605 break
2606 fi
2607 fi
2608 else
2609 if test -f "${as_dir}${ac_aux}"; then
2610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2611 else
2612 ac_aux_dir_found=no
2613 if $ac_first_candidate; then
2614 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2615 else
2616 break
2617 fi
2618 fi
2619 fi
2620 done
2621 if test "$ac_aux_dir_found" = yes; then
2622 ac_aux_dir="$as_dir"
2623 break
2624 fi
2625 ac_first_candidate=false
2626
2627 as_found=false
2628done
2629IFS=$as_save_IFS
2630if $as_found
2631then :
2632
2633else case e in #(
2634 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2635esac
2636fi
2637
2638
2639# These three variables are undocumented and unsupported,
2640# and are intended to be withdrawn in a future Autoconf release.
2641# They can cause serious problems if a builder's source tree is in a directory
2642# whose full name contains unusual characters.
2643if test -f "${ac_aux_dir}config.guess"; then
2644 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2645fi
2646if test -f "${ac_aux_dir}config.sub"; then
2647 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2648fi
2649if test -f "$ac_aux_dir/configure"; then
2650 ac_configure="$SHELL ${ac_aux_dir}configure"
2651fi
2652
2653# Check that the precious variables saved in the cache have kept the same
2654# value.
2655ac_cache_corrupted=false
2656for ac_var in $ac_precious_vars; do
2657 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2658 eval ac_new_set=\$ac_env_${ac_var}_set
2659 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2660 eval ac_new_val=\$ac_env_${ac_var}_value
2661 case $ac_old_set,$ac_new_set in
2662 set,)
2663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2664printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2665 ac_cache_corrupted=: ;;
2666 ,set)
2667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2668printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2669 ac_cache_corrupted=: ;;
2670 ,);;
2671 *)
2672 if test "x$ac_old_val" != "x$ac_new_val"; then
2673 # differences in whitespace do not lead to failure.
2674 ac_old_val_w=`echo x $ac_old_val`
2675 ac_new_val_w=`echo x $ac_new_val`
2676 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2678printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2679 ac_cache_corrupted=:
2680 else
2681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2682printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2683 eval $ac_var=\$ac_old_val
2684 fi
2685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2686printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2688printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2689 fi;;
2690 esac
2691 # Pass precious variables to config.status.
2692 if test "$ac_new_set" = set; then
2693 case $ac_new_val in
2694 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2695 *) ac_arg=$ac_var=$ac_new_val ;;
2696 esac
2697 case " $ac_configure_args " in
2698 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2699 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2700 esac
2701 fi
2702done
2703if $ac_cache_corrupted; then
2704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2705printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2707printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2708 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2709 and start over" "$LINENO" 5
2710fi
2711## -------------------- ##
2712## Main body of script. ##
2713## -------------------- ##
2714
2715ac_ext=c
2716ac_cpp='$CPP $CPPFLAGS'
2717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2719ac_compiler_gnu=$ac_cv_c_compiler_gnu
2720
2721
2722
2723
2724# libpng does not follow GNU file name conventions (hence 'foreign')
2725# color-tests requires automake 1.11 or later
2726# silent-rules requires automake 1.11 or later
2727# dist-xz requires automake 1.11 or later
2728# 1.12.2 fixes a security issue in 1.11.2 and 1.12.1
2729# 1.13 is required for parallel tests
2730am__api_version='1.16'
2731
2732
2733
2734 # Find a good install program. We prefer a C program (faster),
2735# so one script is as good as another. But avoid the broken or
2736# incompatible versions:
2737# SysV /etc/install, /usr/sbin/install
2738# SunOS /usr/etc/install
2739# IRIX /sbin/install
2740# AIX /bin/install
2741# AmigaOS /C/install, which installs bootblocks on floppy discs
2742# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2743# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2744# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2745# OS/2's system install, which has a completely different semantic
2746# ./install, which can be erroneously created by make from ./install.sh.
2747# Reject install programs that cannot install multiple files.
2748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2749printf %s "checking for a BSD-compatible install... " >&6; }
2750if test -z "$INSTALL"; then
2751if test ${ac_cv_path_install+y}
2752then :
2753 printf %s "(cached) " >&6
2754else case e in #(
2755 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756for as_dir in $PATH
2757do
2758 IFS=$as_save_IFS
2759 case $as_dir in #(((
2760 '') as_dir=./ ;;
2761 */) ;;
2762 *) as_dir=$as_dir/ ;;
2763 esac
2764 # Account for fact that we put trailing slashes in our PATH walk.
2765case $as_dir in #((
2766 ./ | /[cC]/* | \
2767 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2768 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2769 /usr/ucb/* ) ;;
2770 *)
2771 # OSF1 and SCO ODT 3.0 have their own names for install.
2772 # Don't use installbsd from OSF since it installs stuff as root
2773 # by default.
2774 for ac_prog in ginstall scoinst install; do
2775 for ac_exec_ext in '' $ac_executable_extensions; do
2776 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2777 if test $ac_prog = install &&
2778 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2779 # AIX install. It has an incompatible calling convention.
2780 :
2781 elif test $ac_prog = install &&
2782 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2783 # program-specific install script used by HP pwplus--don't use.
2784 :
2785 else
2786 rm -rf conftest.one conftest.two conftest.dir
2787 echo one > conftest.one
2788 echo two > conftest.two
2789 mkdir conftest.dir
2790 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2791 test -s conftest.one && test -s conftest.two &&
2792 test -s conftest.dir/conftest.one &&
2793 test -s conftest.dir/conftest.two
2794 then
2795 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2796 break 3
2797 fi
2798 fi
2799 fi
2800 done
2801 done
2802 ;;
2803esac
2804
2805 done
2806IFS=$as_save_IFS
2807
2808rm -rf conftest.one conftest.two conftest.dir
2809 ;;
2810esac
2811fi
2812 if test ${ac_cv_path_install+y}; then
2813 INSTALL=$ac_cv_path_install
2814 else
2815 # As a last resort, use the slow shell script. Don't cache a
2816 # value for INSTALL within a source directory, because that will
2817 # break other packages using the cache if that directory is
2818 # removed, or if the value is a relative name.
2819 INSTALL=$ac_install_sh
2820 fi
2821fi
2822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2823printf "%s\n" "$INSTALL" >&6; }
2824
2825# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2826# It thinks the first close brace ends the variable substitution.
2827test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2828
2829test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2830
2831test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2832
2833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2834printf %s "checking whether build environment is sane... " >&6; }
2835# Reject unsafe characters in $srcdir or the absolute working directory
2836# name. Accept space and tab only in the latter.
2837am_lf='
2838'
2839case `pwd` in
2840 *[\\\"\#\$\&\'\`$am_lf]*)
2841 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2842esac
2843case $srcdir in
2844 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2845 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2846esac
2847
2848# Do 'set' in a subshell so we don't clobber the current shell's
2849# arguments. Must try -L first in case configure is actually a
2850# symlink; some systems play weird games with the mod time of symlinks
2851# (eg FreeBSD returns the mod time of the symlink's containing
2852# directory).
2853if (
2854 am_has_slept=no
2855 for am_try in 1 2; do
2856 echo "timestamp, slept: $am_has_slept" > conftest.file
2857 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2858 if test "$*" = "X"; then
2859 # -L didn't work.
2860 set X `ls -t "$srcdir/configure" conftest.file`
2861 fi
2862 if test "$*" != "X $srcdir/configure conftest.file" \
2863 && test "$*" != "X conftest.file $srcdir/configure"; then
2864
2865 # If neither matched, then we have a broken ls. This can happen
2866 # if, for instance, CONFIG_SHELL is bash and it inherits a
2867 # broken ls alias from the environment. This has actually
2868 # happened. Such a system could not be considered "sane".
2869 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2870 alias in your environment" "$LINENO" 5
2871 fi
2872 if test "$2" = conftest.file || test $am_try -eq 2; then
2873 break
2874 fi
2875 # Just in case.
2876 sleep 1
2877 am_has_slept=yes
2878 done
2879 test "$2" = conftest.file
2880 )
2881then
2882 # Ok.
2883 :
2884else
2885 as_fn_error $? "newly created file is older than distributed files!
2886Check your system clock" "$LINENO" 5
2887fi
2888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2889printf "%s\n" "yes" >&6; }
2890# If we didn't sleep, we still need to ensure time stamps of config.status and
2891# generated files are strictly newer.
2892am_sleep_pid=
2893if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2894 ( sleep 1 ) &
2895 am_sleep_pid=$!
2896fi
2897
2898rm -f conftest.file
2899
2900test "$program_prefix" != NONE &&
2901 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2902# Use a double $ so make ignores it.
2903test "$program_suffix" != NONE &&
2904 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2905# Double any \ or $.
2906# By default was 's,x,x', remove it if useless.
2907ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2908program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2909
2910
2911# Expand $ac_aux_dir to an absolute path.
2912am_aux_dir=`cd "$ac_aux_dir" && pwd`
2913
2914
2915 if test x"${MISSING+set}" != xset; then
2916 MISSING="\${SHELL} '$am_aux_dir/missing'"
2917fi
2918# Use eval to expand $SHELL
2919if eval "$MISSING --is-lightweight"; then
2920 am_missing_run="$MISSING "
2921else
2922 am_missing_run=
2923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2924printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2925fi
2926
2927if test x"${install_sh+set}" != xset; then
2928 case $am_aux_dir in
2929 *\ * | *\ *)
2930 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2931 *)
2932 install_sh="\${SHELL} $am_aux_dir/install-sh"
2933 esac
2934fi
2935
2936# Installed binaries are usually stripped using 'strip' when the user
2937# run "make install-strip". However 'strip' might not be the right
2938# tool to use in cross-compilation environments, therefore Automake
2939# will honor the 'STRIP' environment variable to overrule this program.
2940if test "$cross_compiling" != no; then
2941 if test -n "$ac_tool_prefix"; then
2942 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2943set dummy ${ac_tool_prefix}strip; ac_word=$2
2944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945printf %s "checking for $ac_word... " >&6; }
2946if test ${ac_cv_prog_STRIP+y}
2947then :
2948 printf %s "(cached) " >&6
2949else case e in #(
2950 e) if test -n "$STRIP"; then
2951 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2952else
2953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954for as_dir in $PATH
2955do
2956 IFS=$as_save_IFS
2957 case $as_dir in #(((
2958 '') as_dir=./ ;;
2959 */) ;;
2960 *) as_dir=$as_dir/ ;;
2961 esac
2962 for ac_exec_ext in '' $ac_executable_extensions; do
2963 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2964 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2966 break 2
2967 fi
2968done
2969 done
2970IFS=$as_save_IFS
2971
2972fi ;;
2973esac
2974fi
2975STRIP=$ac_cv_prog_STRIP
2976if test -n "$STRIP"; then
2977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2978printf "%s\n" "$STRIP" >&6; }
2979else
2980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981printf "%s\n" "no" >&6; }
2982fi
2983
2984
2985fi
2986if test -z "$ac_cv_prog_STRIP"; then
2987 ac_ct_STRIP=$STRIP
2988 # Extract the first word of "strip", so it can be a program name with args.
2989set dummy strip; ac_word=$2
2990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991printf %s "checking for $ac_word... " >&6; }
2992if test ${ac_cv_prog_ac_ct_STRIP+y}
2993then :
2994 printf %s "(cached) " >&6
2995else case e in #(
2996 e) if test -n "$ac_ct_STRIP"; then
2997 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2998else
2999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000for as_dir in $PATH
3001do
3002 IFS=$as_save_IFS
3003 case $as_dir in #(((
3004 '') as_dir=./ ;;
3005 */) ;;
3006 *) as_dir=$as_dir/ ;;
3007 esac
3008 for ac_exec_ext in '' $ac_executable_extensions; do
3009 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3010 ac_cv_prog_ac_ct_STRIP="strip"
3011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3012 break 2
3013 fi
3014done
3015 done
3016IFS=$as_save_IFS
3017
3018fi ;;
3019esac
3020fi
3021ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3022if test -n "$ac_ct_STRIP"; then
3023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3024printf "%s\n" "$ac_ct_STRIP" >&6; }
3025else
3026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027printf "%s\n" "no" >&6; }
3028fi
3029
3030 if test "x$ac_ct_STRIP" = x; then
3031 STRIP=":"
3032 else
3033 case $cross_compiling:$ac_tool_warned in
3034yes:)
3035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3036printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3037ac_tool_warned=yes ;;
3038esac
3039 STRIP=$ac_ct_STRIP
3040 fi
3041else
3042 STRIP="$ac_cv_prog_STRIP"
3043fi
3044
3045fi
3046INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3047
3048
3049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3050printf %s "checking for a race-free mkdir -p... " >&6; }
3051if test -z "$MKDIR_P"; then
3052 if test ${ac_cv_path_mkdir+y}
3053then :
3054 printf %s "(cached) " >&6
3055else case e in #(
3056 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3058do
3059 IFS=$as_save_IFS
3060 case $as_dir in #(((
3061 '') as_dir=./ ;;
3062 */) ;;
3063 *) as_dir=$as_dir/ ;;
3064 esac
3065 for ac_prog in mkdir gmkdir; do
3066 for ac_exec_ext in '' $ac_executable_extensions; do
3067 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3068 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3069 'mkdir ('*'coreutils) '* | \
3070 *'BusyBox '* | \
3071 'mkdir (fileutils) '4.1*)
3072 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3073 break 3;;
3074 esac
3075 done
3076 done
3077 done
3078IFS=$as_save_IFS
3079 ;;
3080esac
3081fi
3082
3083 test -d ./--version && rmdir ./--version
3084 if test ${ac_cv_path_mkdir+y}; then
3085 MKDIR_P="$ac_cv_path_mkdir -p"
3086 else
3087 # As a last resort, use plain mkdir -p,
3088 # in the hope it doesn't have the bugs of ancient mkdir.
3089 MKDIR_P='mkdir -p'
3090 fi
3091fi
3092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3093printf "%s\n" "$MKDIR_P" >&6; }
3094
3095for ac_prog in gawk mawk nawk awk
3096do
3097 # Extract the first word of "$ac_prog", so it can be a program name with args.
3098set dummy $ac_prog; ac_word=$2
3099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3100printf %s "checking for $ac_word... " >&6; }
3101if test ${ac_cv_prog_AWK+y}
3102then :
3103 printf %s "(cached) " >&6
3104else case e in #(
3105 e) if test -n "$AWK"; then
3106 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3107else
3108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109for as_dir in $PATH
3110do
3111 IFS=$as_save_IFS
3112 case $as_dir in #(((
3113 '') as_dir=./ ;;
3114 */) ;;
3115 *) as_dir=$as_dir/ ;;
3116 esac
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3119 ac_cv_prog_AWK="$ac_prog"
3120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3121 break 2
3122 fi
3123done
3124 done
3125IFS=$as_save_IFS
3126
3127fi ;;
3128esac
3129fi
3130AWK=$ac_cv_prog_AWK
3131if test -n "$AWK"; then
3132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3133printf "%s\n" "$AWK" >&6; }
3134else
3135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136printf "%s\n" "no" >&6; }
3137fi
3138
3139
3140 test -n "$AWK" && break
3141done
3142
3143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3144printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3145set x ${MAKE-make}
3146ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3147if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3148then :
3149 printf %s "(cached) " >&6
3150else case e in #(
3151 e) cat >conftest.make <<\_ACEOF
3152SHELL = /bin/sh
3153all:
3154 @echo '@@@%%%=$(MAKE)=@@@%%%'
3155_ACEOF
3156# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3157case `${MAKE-make} -f conftest.make 2>/dev/null` in
3158 *@@@%%%=?*=@@@%%%*)
3159 eval ac_cv_prog_make_${ac_make}_set=yes;;
3160 *)
3161 eval ac_cv_prog_make_${ac_make}_set=no;;
3162esac
3163rm -f conftest.make ;;
3164esac
3165fi
3166if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3168printf "%s\n" "yes" >&6; }
3169 SET_MAKE=
3170else
3171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172printf "%s\n" "no" >&6; }
3173 SET_MAKE="MAKE=${MAKE-make}"
3174fi
3175
3176rm -rf .tst 2>/dev/null
3177mkdir .tst 2>/dev/null
3178if test -d .tst; then
3179 am__leading_dot=.
3180else
3181 am__leading_dot=_
3182fi
3183rmdir .tst 2>/dev/null
3184
3185# Check whether --enable-silent-rules was given.
3186if test ${enable_silent_rules+y}
3187then :
3188 enableval=$enable_silent_rules;
3189fi
3190
3191case $enable_silent_rules in # (((
3192 yes) AM_DEFAULT_VERBOSITY=0;;
3193 no) AM_DEFAULT_VERBOSITY=1;;
3194 *) AM_DEFAULT_VERBOSITY=1;;
3195esac
3196am_make=${MAKE-make}
3197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3198printf %s "checking whether $am_make supports nested variables... " >&6; }
3199if test ${am_cv_make_support_nested_variables+y}
3200then :
3201 printf %s "(cached) " >&6
3202else case e in #(
3203 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3204BAR0=false
3205BAR1=true
3206V=1
3207am__doit:
3208 @$(TRUE)
3209.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3210 am_cv_make_support_nested_variables=yes
3211else
3212 am_cv_make_support_nested_variables=no
3213fi ;;
3214esac
3215fi
3216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3217printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3218if test $am_cv_make_support_nested_variables = yes; then
3219 AM_V='$(V)'
3220 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3221else
3222 AM_V=$AM_DEFAULT_VERBOSITY
3223 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3224fi
3225AM_BACKSLASH='\'
3226
3227if test "`cd $srcdir && pwd`" != "`pwd`"; then
3228 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3229 # is not polluted with repeated "-I."
3230 am__isrc=' -I$(srcdir)'
3231 # test to see if srcdir already configured
3232 if test -f $srcdir/config.status; then
3233 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3234 fi
3235fi
3236
3237# test whether we have cygpath
3238if test -z "$CYGPATH_W"; then
3239 if (cygpath --version) >/dev/null 2>/dev/null; then
3240 CYGPATH_W='cygpath -w'
3241 else
3242 CYGPATH_W=echo
3243 fi
3244fi
3245
3246
3247# Define the identity of the package.
3248 PACKAGE='libpng'
3249 VERSION='1.6.42'
3250
3251
3252printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3253
3254
3255printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3256
3257# Some tools Automake needs.
3258
3259ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3260
3261
3262AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3263
3264
3265AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3266
3267
3268AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3269
3270
3271MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3272
3273# For better backward compatibility. To be removed once Automake 1.9.x
3274# dies out for good. For more background, see:
3275# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3276# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3277mkdir_p='$(MKDIR_P)'
3278
3279# We need awk for the "check" target (and possibly the TAP driver). The
3280# system "awk" is bad on some platforms.
3281# Always define AMTAR for backward compatibility. Yes, it's still used
3282# in the wild :-( We should find a proper way to deprecate it ...
3283AMTAR='$${TAR-tar}'
3284
3285
3286# We'll loop over all known methods to create a tar archive until one works.
3287_am_tools='gnutar pax cpio none'
3288
3289am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3290
3291
3292
3293
3294
3295# Variables for tags utilities; see am/tags.am
3296if test -z "$CTAGS"; then
3297 CTAGS=ctags
3298fi
3299
3300if test -z "$ETAGS"; then
3301 ETAGS=etags
3302fi
3303
3304if test -z "$CSCOPE"; then
3305 CSCOPE=cscope
3306fi
3307
3308
3309
3310# POSIX will say in a future version that running "rm -f" with no argument
3311# is OK; and we want to be able to make that assumption in our Makefile
3312# recipes. So use an aggressive probe to check that the usage we want is
3313# actually supported "in the wild" to an acceptable degree.
3314# See automake bug#10828.
3315# To make any issue more visible, cause the running configure to be aborted
3316# by default if the 'rm' program in use doesn't match our expectations; the
3317# user can still override this though.
3318if rm -f && rm -fr && rm -rf; then : OK; else
3319 cat >&2 <<'END'
3320Oops!
3321
3322Your 'rm' program seems unable to run without file operands specified
3323on the command line, even when the '-f' option is present. This is contrary
3324to the behaviour of most rm programs out there, and not conforming with
3325the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3326
3327Please tell bug-automake@gnu.org about your system, including the value
3328of your $PATH and any error possibly output before this message. This
3329can help us improve future automake versions.
3330
3331END
3332 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3333 echo 'Configuration will proceed anyway, since you have set the' >&2
3334 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3335 echo >&2
3336 else
3337 cat >&2 <<'END'
3338Aborting the configuration process, to ensure you take notice of the issue.
3339
3340You can download and install GNU coreutils to get an 'rm' implementation
3341that behaves properly: <https://www.gnu.org/software/coreutils/>.
3342
3343If you want to complete the configuration process using your problematic
3344'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3345to "yes", and re-run configure.
3346
3347END
3348 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3349 fi
3350fi
3351
3352# The following line causes --disable-maintainer-mode to be the default to
3353# configure. This is necessary because libpng distributions cannot rely on the
3354# time stamps of the autotools generated files being correct
3355
3356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3357printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3358 # Check whether --enable-maintainer-mode was given.
3359if test ${enable_maintainer_mode+y}
3360then :
3361 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3362else case e in #(
3363 e) USE_MAINTAINER_MODE=no ;;
3364esac
3365fi
3366
3367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3368printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3369 if test $USE_MAINTAINER_MODE = yes; then
3370 MAINTAINER_MODE_TRUE=
3371 MAINTAINER_MODE_FALSE='#'
3372else
3373 MAINTAINER_MODE_TRUE='#'
3374 MAINTAINER_MODE_FALSE=
3375fi
3376
3377 MAINT=$MAINTAINER_MODE_TRUE
3378
3379
3380
3381
3382PNGLIB_VERSION=1.6.42
3383PNGLIB_MAJOR=1
3384PNGLIB_MINOR=6
3385PNGLIB_RELEASE=41
3386
3387
3388
3389ac_config_headers="$ac_config_headers config.h"
3390
3391
3392# Checks for programs.
3393ac_ext=c
3394ac_cpp='$CPP $CPPFLAGS'
3395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3397ac_compiler_gnu=$ac_cv_c_compiler_gnu
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408ac_ext=c
3409ac_cpp='$CPP $CPPFLAGS'
3410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3412ac_compiler_gnu=$ac_cv_c_compiler_gnu
3413if test -n "$ac_tool_prefix"; then
3414 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3415set dummy ${ac_tool_prefix}gcc; ac_word=$2
3416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3417printf %s "checking for $ac_word... " >&6; }
3418if test ${ac_cv_prog_CC+y}
3419then :
3420 printf %s "(cached) " >&6
3421else case e in #(
3422 e) if test -n "$CC"; then
3423 ac_cv_prog_CC="$CC" # Let the user override the test.
3424else
3425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426for as_dir in $PATH
3427do
3428 IFS=$as_save_IFS
3429 case $as_dir in #(((
3430 '') as_dir=./ ;;
3431 */) ;;
3432 *) as_dir=$as_dir/ ;;
3433 esac
3434 for ac_exec_ext in '' $ac_executable_extensions; do
3435 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3436 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3438 break 2
3439 fi
3440done
3441 done
3442IFS=$as_save_IFS
3443
3444fi ;;
3445esac
3446fi
3447CC=$ac_cv_prog_CC
3448if test -n "$CC"; then
3449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3450printf "%s\n" "$CC" >&6; }
3451else
3452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453printf "%s\n" "no" >&6; }
3454fi
3455
3456
3457fi
3458if test -z "$ac_cv_prog_CC"; then
3459 ac_ct_CC=$CC
3460 # Extract the first word of "gcc", so it can be a program name with args.
3461set dummy gcc; ac_word=$2
3462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463printf %s "checking for $ac_word... " >&6; }
3464if test ${ac_cv_prog_ac_ct_CC+y}
3465then :
3466 printf %s "(cached) " >&6
3467else case e in #(
3468 e) if test -n "$ac_ct_CC"; then
3469 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3470else
3471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472for as_dir in $PATH
3473do
3474 IFS=$as_save_IFS
3475 case $as_dir in #(((
3476 '') as_dir=./ ;;
3477 */) ;;
3478 *) as_dir=$as_dir/ ;;
3479 esac
3480 for ac_exec_ext in '' $ac_executable_extensions; do
3481 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3482 ac_cv_prog_ac_ct_CC="gcc"
3483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3484 break 2
3485 fi
3486done
3487 done
3488IFS=$as_save_IFS
3489
3490fi ;;
3491esac
3492fi
3493ac_ct_CC=$ac_cv_prog_ac_ct_CC
3494if test -n "$ac_ct_CC"; then
3495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3496printf "%s\n" "$ac_ct_CC" >&6; }
3497else
3498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3499printf "%s\n" "no" >&6; }
3500fi
3501
3502 if test "x$ac_ct_CC" = x; then
3503 CC=""
3504 else
3505 case $cross_compiling:$ac_tool_warned in
3506yes:)
3507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3508printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3509ac_tool_warned=yes ;;
3510esac
3511 CC=$ac_ct_CC
3512 fi
3513else
3514 CC="$ac_cv_prog_CC"
3515fi
3516
3517if test -z "$CC"; then
3518 if test -n "$ac_tool_prefix"; then
3519 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3520set dummy ${ac_tool_prefix}cc; ac_word=$2
3521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3522printf %s "checking for $ac_word... " >&6; }
3523if test ${ac_cv_prog_CC+y}
3524then :
3525 printf %s "(cached) " >&6
3526else case e in #(
3527 e) if test -n "$CC"; then
3528 ac_cv_prog_CC="$CC" # Let the user override the test.
3529else
3530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531for as_dir in $PATH
3532do
3533 IFS=$as_save_IFS
3534 case $as_dir in #(((
3535 '') as_dir=./ ;;
3536 */) ;;
3537 *) as_dir=$as_dir/ ;;
3538 esac
3539 for ac_exec_ext in '' $ac_executable_extensions; do
3540 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3541 ac_cv_prog_CC="${ac_tool_prefix}cc"
3542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3543 break 2
3544 fi
3545done
3546 done
3547IFS=$as_save_IFS
3548
3549fi ;;
3550esac
3551fi
3552CC=$ac_cv_prog_CC
3553if test -n "$CC"; then
3554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3555printf "%s\n" "$CC" >&6; }
3556else
3557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3558printf "%s\n" "no" >&6; }
3559fi
3560
3561
3562 fi
3563fi
3564if test -z "$CC"; then
3565 # Extract the first word of "cc", so it can be a program name with args.
3566set dummy cc; ac_word=$2
3567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3568printf %s "checking for $ac_word... " >&6; }
3569if test ${ac_cv_prog_CC+y}
3570then :
3571 printf %s "(cached) " >&6
3572else case e in #(
3573 e) if test -n "$CC"; then
3574 ac_cv_prog_CC="$CC" # Let the user override the test.
3575else
3576 ac_prog_rejected=no
3577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578for as_dir in $PATH
3579do
3580 IFS=$as_save_IFS
3581 case $as_dir in #(((
3582 '') as_dir=./ ;;
3583 */) ;;
3584 *) as_dir=$as_dir/ ;;
3585 esac
3586 for ac_exec_ext in '' $ac_executable_extensions; do
3587 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3588 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3589 ac_prog_rejected=yes
3590 continue
3591 fi
3592 ac_cv_prog_CC="cc"
3593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3594 break 2
3595 fi
3596done
3597 done
3598IFS=$as_save_IFS
3599
3600if test $ac_prog_rejected = yes; then
3601 # We found a bogon in the path, so make sure we never use it.
3602 set dummy $ac_cv_prog_CC
3603 shift
3604 if test $# != 0; then
3605 # We chose a different compiler from the bogus one.
3606 # However, it has the same basename, so the bogon will be chosen
3607 # first if we set CC to just the basename; use the full file name.
3608 shift
3609 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3610 fi
3611fi
3612fi ;;
3613esac
3614fi
3615CC=$ac_cv_prog_CC
3616if test -n "$CC"; then
3617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3618printf "%s\n" "$CC" >&6; }
3619else
3620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621printf "%s\n" "no" >&6; }
3622fi
3623
3624
3625fi
3626if test -z "$CC"; then
3627 if test -n "$ac_tool_prefix"; then
3628 for ac_prog in cl.exe
3629 do
3630 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3631set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3633printf %s "checking for $ac_word... " >&6; }
3634if test ${ac_cv_prog_CC+y}
3635then :
3636 printf %s "(cached) " >&6
3637else case e in #(
3638 e) if test -n "$CC"; then
3639 ac_cv_prog_CC="$CC" # Let the user override the test.
3640else
3641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642for as_dir in $PATH
3643do
3644 IFS=$as_save_IFS
3645 case $as_dir in #(((
3646 '') as_dir=./ ;;
3647 */) ;;
3648 *) as_dir=$as_dir/ ;;
3649 esac
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3652 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3654 break 2
3655 fi
3656done
3657 done
3658IFS=$as_save_IFS
3659
3660fi ;;
3661esac
3662fi
3663CC=$ac_cv_prog_CC
3664if test -n "$CC"; then
3665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3666printf "%s\n" "$CC" >&6; }
3667else
3668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3669printf "%s\n" "no" >&6; }
3670fi
3671
3672
3673 test -n "$CC" && break
3674 done
3675fi
3676if test -z "$CC"; then
3677 ac_ct_CC=$CC
3678 for ac_prog in cl.exe
3679do
3680 # Extract the first word of "$ac_prog", so it can be a program name with args.
3681set dummy $ac_prog; ac_word=$2
3682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3683printf %s "checking for $ac_word... " >&6; }
3684if test ${ac_cv_prog_ac_ct_CC+y}
3685then :
3686 printf %s "(cached) " >&6
3687else case e in #(
3688 e) if test -n "$ac_ct_CC"; then
3689 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3690else
3691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692for as_dir in $PATH
3693do
3694 IFS=$as_save_IFS
3695 case $as_dir in #(((
3696 '') as_dir=./ ;;
3697 */) ;;
3698 *) as_dir=$as_dir/ ;;
3699 esac
3700 for ac_exec_ext in '' $ac_executable_extensions; do
3701 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3702 ac_cv_prog_ac_ct_CC="$ac_prog"
3703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3704 break 2
3705 fi
3706done
3707 done
3708IFS=$as_save_IFS
3709
3710fi ;;
3711esac
3712fi
3713ac_ct_CC=$ac_cv_prog_ac_ct_CC
3714if test -n "$ac_ct_CC"; then
3715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3716printf "%s\n" "$ac_ct_CC" >&6; }
3717else
3718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3719printf "%s\n" "no" >&6; }
3720fi
3721
3722
3723 test -n "$ac_ct_CC" && break
3724done
3725
3726 if test "x$ac_ct_CC" = x; then
3727 CC=""
3728 else
3729 case $cross_compiling:$ac_tool_warned in
3730yes:)
3731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3732printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3733ac_tool_warned=yes ;;
3734esac
3735 CC=$ac_ct_CC
3736 fi
3737fi
3738
3739fi
3740if test -z "$CC"; then
3741 if test -n "$ac_tool_prefix"; then
3742 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3743set dummy ${ac_tool_prefix}clang; ac_word=$2
3744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3745printf %s "checking for $ac_word... " >&6; }
3746if test ${ac_cv_prog_CC+y}
3747then :
3748 printf %s "(cached) " >&6
3749else case e in #(
3750 e) if test -n "$CC"; then
3751 ac_cv_prog_CC="$CC" # Let the user override the test.
3752else
3753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754for as_dir in $PATH
3755do
3756 IFS=$as_save_IFS
3757 case $as_dir in #(((
3758 '') as_dir=./ ;;
3759 */) ;;
3760 *) as_dir=$as_dir/ ;;
3761 esac
3762 for ac_exec_ext in '' $ac_executable_extensions; do
3763 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3764 ac_cv_prog_CC="${ac_tool_prefix}clang"
3765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3766 break 2
3767 fi
3768done
3769 done
3770IFS=$as_save_IFS
3771
3772fi ;;
3773esac
3774fi
3775CC=$ac_cv_prog_CC
3776if test -n "$CC"; then
3777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3778printf "%s\n" "$CC" >&6; }
3779else
3780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3781printf "%s\n" "no" >&6; }
3782fi
3783
3784
3785fi
3786if test -z "$ac_cv_prog_CC"; then
3787 ac_ct_CC=$CC
3788 # Extract the first word of "clang", so it can be a program name with args.
3789set dummy clang; ac_word=$2
3790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3791printf %s "checking for $ac_word... " >&6; }
3792if test ${ac_cv_prog_ac_ct_CC+y}
3793then :
3794 printf %s "(cached) " >&6
3795else case e in #(
3796 e) if test -n "$ac_ct_CC"; then
3797 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3798else
3799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800for as_dir in $PATH
3801do
3802 IFS=$as_save_IFS
3803 case $as_dir in #(((
3804 '') as_dir=./ ;;
3805 */) ;;
3806 *) as_dir=$as_dir/ ;;
3807 esac
3808 for ac_exec_ext in '' $ac_executable_extensions; do
3809 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3810 ac_cv_prog_ac_ct_CC="clang"
3811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3812 break 2
3813 fi
3814done
3815 done
3816IFS=$as_save_IFS
3817
3818fi ;;
3819esac
3820fi
3821ac_ct_CC=$ac_cv_prog_ac_ct_CC
3822if test -n "$ac_ct_CC"; then
3823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3824printf "%s\n" "$ac_ct_CC" >&6; }
3825else
3826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827printf "%s\n" "no" >&6; }
3828fi
3829
3830 if test "x$ac_ct_CC" = x; then
3831 CC=""
3832 else
3833 case $cross_compiling:$ac_tool_warned in
3834yes:)
3835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3836printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3837ac_tool_warned=yes ;;
3838esac
3839 CC=$ac_ct_CC
3840 fi
3841else
3842 CC="$ac_cv_prog_CC"
3843fi
3844
3845fi
3846
3847
3848test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3849printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3850as_fn_error $? "no acceptable C compiler found in \$PATH
3851See 'config.log' for more details" "$LINENO" 5; }
3852
3853# Provide some information about the compiler.
3854printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3855set X $ac_compile
3856ac_compiler=$2
3857for ac_option in --version -v -V -qversion -version; do
3858 { { ac_try="$ac_compiler $ac_option >&5"
3859case "(($ac_try" in
3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;;
3862esac
3863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3864printf "%s\n" "$ac_try_echo"; } >&5
3865 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3866 ac_status=$?
3867 if test -s conftest.err; then
3868 sed '10a\
3869... rest of stderr output deleted ...
3870 10q' conftest.err >conftest.er1
3871 cat conftest.er1 >&5
3872 fi
3873 rm -f conftest.er1 conftest.err
3874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3875 test $ac_status = 0; }
3876done
3877
3878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879/* end confdefs.h. */
3880
3881int
3882main (void)
3883{
3884
3885 ;
3886 return 0;
3887}
3888_ACEOF
3889ac_clean_files_save=$ac_clean_files
3890ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3891# Try to create an executable without -o first, disregard a.out.
3892# It will help us diagnose broken compilers, and finding out an intuition
3893# of exeext.
3894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3895printf %s "checking whether the C compiler works... " >&6; }
3896ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3897
3898# The possible output files:
3899ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3900
3901ac_rmfiles=
3902for ac_file in $ac_files
3903do
3904 case $ac_file in
3905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3906 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3907 esac
3908done
3909rm -f $ac_rmfiles
3910
3911if { { ac_try="$ac_link_default"
3912case "(($ac_try" in
3913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914 *) ac_try_echo=$ac_try;;
3915esac
3916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3917printf "%s\n" "$ac_try_echo"; } >&5
3918 (eval "$ac_link_default") 2>&5
3919 ac_status=$?
3920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3921 test $ac_status = 0; }
3922then :
3923 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3924# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3925# in a Makefile. We should not override ac_cv_exeext if it was cached,
3926# so that the user can short-circuit this test for compilers unknown to
3927# Autoconf.
3928for ac_file in $ac_files ''
3929do
3930 test -f "$ac_file" || continue
3931 case $ac_file in
3932 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3933 ;;
3934 [ab].out )
3935 # We found the default executable, but exeext='' is most
3936 # certainly right.
3937 break;;
3938 *.* )
3939 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3940 then :; else
3941 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3942 fi
3943 # We set ac_cv_exeext here because the later test for it is not
3944 # safe: cross compilers may not add the suffix if given an '-o'
3945 # argument, so we may need to know it at that point already.
3946 # Even if this section looks crufty: it has the advantage of
3947 # actually working.
3948 break;;
3949 * )
3950 break;;
3951 esac
3952done
3953test "$ac_cv_exeext" = no && ac_cv_exeext=
3954
3955else case e in #(
3956 e) ac_file='' ;;
3957esac
3958fi
3959if test -z "$ac_file"
3960then :
3961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962printf "%s\n" "no" >&6; }
3963printf "%s\n" "$as_me: failed program was:" >&5
3964sed 's/^/| /' conftest.$ac_ext >&5
3965
3966{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3967printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3968as_fn_error 77 "C compiler cannot create executables
3969See 'config.log' for more details" "$LINENO" 5; }
3970else case e in #(
3971 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3972printf "%s\n" "yes" >&6; } ;;
3973esac
3974fi
3975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3976printf %s "checking for C compiler default output file name... " >&6; }
3977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3978printf "%s\n" "$ac_file" >&6; }
3979ac_exeext=$ac_cv_exeext
3980
3981rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3982ac_clean_files=$ac_clean_files_save
3983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3984printf %s "checking for suffix of executables... " >&6; }
3985if { { ac_try="$ac_link"
3986case "(($ac_try" in
3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3989esac
3990eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3991printf "%s\n" "$ac_try_echo"; } >&5
3992 (eval "$ac_link") 2>&5
3993 ac_status=$?
3994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3995 test $ac_status = 0; }
3996then :
3997 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3998# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3999# work properly (i.e., refer to 'conftest.exe'), while it won't with
4000# 'rm'.
4001for ac_file in conftest.exe conftest conftest.*; do
4002 test -f "$ac_file" || continue
4003 case $ac_file in
4004 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4005 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4006 break;;
4007 * ) break;;
4008 esac
4009done
4010else case e in #(
4011 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4012printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4013as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4014See 'config.log' for more details" "$LINENO" 5; } ;;
4015esac
4016fi
4017rm -f conftest conftest$ac_cv_exeext
4018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4019printf "%s\n" "$ac_cv_exeext" >&6; }
4020
4021rm -f conftest.$ac_ext
4022EXEEXT=$ac_cv_exeext
4023ac_exeext=$EXEEXT
4024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025/* end confdefs.h. */
4026#include <stdio.h>
4027int
4028main (void)
4029{
4030FILE *f = fopen ("conftest.out", "w");
4031 if (!f)
4032 return 1;
4033 return ferror (f) || fclose (f) != 0;
4034
4035 ;
4036 return 0;
4037}
4038_ACEOF
4039ac_clean_files="$ac_clean_files conftest.out"
4040# Check that the compiler produces executables we can run. If not, either
4041# the compiler is broken, or we cross compile.
4042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4043printf %s "checking whether we are cross compiling... " >&6; }
4044if test "$cross_compiling" != yes; then
4045 { { ac_try="$ac_link"
4046case "(($ac_try" in
4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4049esac
4050eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4051printf "%s\n" "$ac_try_echo"; } >&5
4052 (eval "$ac_link") 2>&5
4053 ac_status=$?
4054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4055 test $ac_status = 0; }
4056 if { ac_try='./conftest$ac_cv_exeext'
4057 { { case "(($ac_try" in
4058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059 *) ac_try_echo=$ac_try;;
4060esac
4061eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4062printf "%s\n" "$ac_try_echo"; } >&5
4063 (eval "$ac_try") 2>&5
4064 ac_status=$?
4065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4066 test $ac_status = 0; }; }; then
4067 cross_compiling=no
4068 else
4069 if test "$cross_compiling" = maybe; then
4070 cross_compiling=yes
4071 else
4072 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4073printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4074as_fn_error 77 "cannot run C compiled programs.
4075If you meant to cross compile, use '--host'.
4076See 'config.log' for more details" "$LINENO" 5; }
4077 fi
4078 fi
4079fi
4080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4081printf "%s\n" "$cross_compiling" >&6; }
4082
4083rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4084 conftest.o conftest.obj conftest.out
4085ac_clean_files=$ac_clean_files_save
4086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4087printf %s "checking for suffix of object files... " >&6; }
4088if test ${ac_cv_objext+y}
4089then :
4090 printf %s "(cached) " >&6
4091else case e in #(
4092 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093/* end confdefs.h. */
4094
4095int
4096main (void)
4097{
4098
4099 ;
4100 return 0;
4101}
4102_ACEOF
4103rm -f conftest.o conftest.obj
4104if { { ac_try="$ac_compile"
4105case "(($ac_try" in
4106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107 *) ac_try_echo=$ac_try;;
4108esac
4109eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4110printf "%s\n" "$ac_try_echo"; } >&5
4111 (eval "$ac_compile") 2>&5
4112 ac_status=$?
4113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4114 test $ac_status = 0; }
4115then :
4116 for ac_file in conftest.o conftest.obj conftest.*; do
4117 test -f "$ac_file" || continue;
4118 case $ac_file in
4119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4120 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4121 break;;
4122 esac
4123done
4124else case e in #(
4125 e) printf "%s\n" "$as_me: failed program was:" >&5
4126sed 's/^/| /' conftest.$ac_ext >&5
4127
4128{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4129printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4130as_fn_error $? "cannot compute suffix of object files: cannot compile
4131See 'config.log' for more details" "$LINENO" 5; } ;;
4132esac
4133fi
4134rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4135esac
4136fi
4137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4138printf "%s\n" "$ac_cv_objext" >&6; }
4139OBJEXT=$ac_cv_objext
4140ac_objext=$OBJEXT
4141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4142printf %s "checking whether the compiler supports GNU C... " >&6; }
4143if test ${ac_cv_c_compiler_gnu+y}
4144then :
4145 printf %s "(cached) " >&6
4146else case e in #(
4147 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148/* end confdefs.h. */
4149
4150int
4151main (void)
4152{
4153#ifndef __GNUC__
4154 choke me
4155#endif
4156
4157 ;
4158 return 0;
4159}
4160_ACEOF
4161if ac_fn_c_try_compile "$LINENO"
4162then :
4163 ac_compiler_gnu=yes
4164else case e in #(
4165 e) ac_compiler_gnu=no ;;
4166esac
4167fi
4168rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4169ac_cv_c_compiler_gnu=$ac_compiler_gnu
4170 ;;
4171esac
4172fi
4173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4174printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4175ac_compiler_gnu=$ac_cv_c_compiler_gnu
4176
4177if test $ac_compiler_gnu = yes; then
4178 GCC=yes
4179else
4180 GCC=
4181fi
4182ac_test_CFLAGS=${CFLAGS+y}
4183ac_save_CFLAGS=$CFLAGS
4184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4185printf %s "checking whether $CC accepts -g... " >&6; }
4186if test ${ac_cv_prog_cc_g+y}
4187then :
4188 printf %s "(cached) " >&6
4189else case e in #(
4190 e) ac_save_c_werror_flag=$ac_c_werror_flag
4191 ac_c_werror_flag=yes
4192 ac_cv_prog_cc_g=no
4193 CFLAGS="-g"
4194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195/* end confdefs.h. */
4196
4197int
4198main (void)
4199{
4200
4201 ;
4202 return 0;
4203}
4204_ACEOF
4205if ac_fn_c_try_compile "$LINENO"
4206then :
4207 ac_cv_prog_cc_g=yes
4208else case e in #(
4209 e) CFLAGS=""
4210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211/* end confdefs.h. */
4212
4213int
4214main (void)
4215{
4216
4217 ;
4218 return 0;
4219}
4220_ACEOF
4221if ac_fn_c_try_compile "$LINENO"
4222then :
4223
4224else case e in #(
4225 e) ac_c_werror_flag=$ac_save_c_werror_flag
4226 CFLAGS="-g"
4227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4228/* end confdefs.h. */
4229
4230int
4231main (void)
4232{
4233
4234 ;
4235 return 0;
4236}
4237_ACEOF
4238if ac_fn_c_try_compile "$LINENO"
4239then :
4240 ac_cv_prog_cc_g=yes
4241fi
4242rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4243esac
4244fi
4245rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4246esac
4247fi
4248rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4249 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4250esac
4251fi
4252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4253printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4254if test $ac_test_CFLAGS; then
4255 CFLAGS=$ac_save_CFLAGS
4256elif test $ac_cv_prog_cc_g = yes; then
4257 if test "$GCC" = yes; then
4258 CFLAGS="-g -O2"
4259 else
4260 CFLAGS="-g"
4261 fi
4262else
4263 if test "$GCC" = yes; then
4264 CFLAGS="-O2"
4265 else
4266 CFLAGS=
4267 fi
4268fi
4269ac_prog_cc_stdc=no
4270if test x$ac_prog_cc_stdc = xno
4271then :
4272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4273printf %s "checking for $CC option to enable C11 features... " >&6; }
4274if test ${ac_cv_prog_cc_c11+y}
4275then :
4276 printf %s "(cached) " >&6
4277else case e in #(
4278 e) ac_cv_prog_cc_c11=no
4279ac_save_CC=$CC
4280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281/* end confdefs.h. */
4282$ac_c_conftest_c11_program
4283_ACEOF
4284for ac_arg in '' -std=gnu11
4285do
4286 CC="$ac_save_CC $ac_arg"
4287 if ac_fn_c_try_compile "$LINENO"
4288then :
4289 ac_cv_prog_cc_c11=$ac_arg
4290fi
4291rm -f core conftest.err conftest.$ac_objext conftest.beam
4292 test "x$ac_cv_prog_cc_c11" != "xno" && break
4293done
4294rm -f conftest.$ac_ext
4295CC=$ac_save_CC ;;
4296esac
4297fi
4298
4299if test "x$ac_cv_prog_cc_c11" = xno
4300then :
4301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4302printf "%s\n" "unsupported" >&6; }
4303else case e in #(
4304 e) if test "x$ac_cv_prog_cc_c11" = x
4305then :
4306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4307printf "%s\n" "none needed" >&6; }
4308else case e in #(
4309 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4310printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4311 CC="$CC $ac_cv_prog_cc_c11" ;;
4312esac
4313fi
4314 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4315 ac_prog_cc_stdc=c11 ;;
4316esac
4317fi
4318fi
4319if test x$ac_prog_cc_stdc = xno
4320then :
4321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4322printf %s "checking for $CC option to enable C99 features... " >&6; }
4323if test ${ac_cv_prog_cc_c99+y}
4324then :
4325 printf %s "(cached) " >&6
4326else case e in #(
4327 e) ac_cv_prog_cc_c99=no
4328ac_save_CC=$CC
4329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4330/* end confdefs.h. */
4331$ac_c_conftest_c99_program
4332_ACEOF
4333for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4334do
4335 CC="$ac_save_CC $ac_arg"
4336 if ac_fn_c_try_compile "$LINENO"
4337then :
4338 ac_cv_prog_cc_c99=$ac_arg
4339fi
4340rm -f core conftest.err conftest.$ac_objext conftest.beam
4341 test "x$ac_cv_prog_cc_c99" != "xno" && break
4342done
4343rm -f conftest.$ac_ext
4344CC=$ac_save_CC ;;
4345esac
4346fi
4347
4348if test "x$ac_cv_prog_cc_c99" = xno
4349then :
4350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4351printf "%s\n" "unsupported" >&6; }
4352else case e in #(
4353 e) if test "x$ac_cv_prog_cc_c99" = x
4354then :
4355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4356printf "%s\n" "none needed" >&6; }
4357else case e in #(
4358 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4359printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4360 CC="$CC $ac_cv_prog_cc_c99" ;;
4361esac
4362fi
4363 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4364 ac_prog_cc_stdc=c99 ;;
4365esac
4366fi
4367fi
4368if test x$ac_prog_cc_stdc = xno
4369then :
4370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4371printf %s "checking for $CC option to enable C89 features... " >&6; }
4372if test ${ac_cv_prog_cc_c89+y}
4373then :
4374 printf %s "(cached) " >&6
4375else case e in #(
4376 e) ac_cv_prog_cc_c89=no
4377ac_save_CC=$CC
4378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379/* end confdefs.h. */
4380$ac_c_conftest_c89_program
4381_ACEOF
4382for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4383do
4384 CC="$ac_save_CC $ac_arg"
4385 if ac_fn_c_try_compile "$LINENO"
4386then :
4387 ac_cv_prog_cc_c89=$ac_arg
4388fi
4389rm -f core conftest.err conftest.$ac_objext conftest.beam
4390 test "x$ac_cv_prog_cc_c89" != "xno" && break
4391done
4392rm -f conftest.$ac_ext
4393CC=$ac_save_CC ;;
4394esac
4395fi
4396
4397if test "x$ac_cv_prog_cc_c89" = xno
4398then :
4399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4400printf "%s\n" "unsupported" >&6; }
4401else case e in #(
4402 e) if test "x$ac_cv_prog_cc_c89" = x
4403then :
4404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4405printf "%s\n" "none needed" >&6; }
4406else case e in #(
4407 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4408printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4409 CC="$CC $ac_cv_prog_cc_c89" ;;
4410esac
4411fi
4412 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4413 ac_prog_cc_stdc=c89 ;;
4414esac
4415fi
4416fi
4417
4418ac_ext=c
4419ac_cpp='$CPP $CPPFLAGS'
4420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4422ac_compiler_gnu=$ac_cv_c_compiler_gnu
4423
4424
4425 ac_ext=c
4426ac_cpp='$CPP $CPPFLAGS'
4427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4429ac_compiler_gnu=$ac_cv_c_compiler_gnu
4430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4431printf %s "checking whether $CC understands -c and -o together... " >&6; }
4432if test ${am_cv_prog_cc_c_o+y}
4433then :
4434 printf %s "(cached) " >&6
4435else case e in #(
4436 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437/* end confdefs.h. */
4438
4439int
4440main (void)
4441{
4442
4443 ;
4444 return 0;
4445}
4446_ACEOF
4447 # Make sure it works both with $CC and with simple cc.
4448 # Following AC_PROG_CC_C_O, we do the test twice because some
4449 # compilers refuse to overwrite an existing .o file with -o,
4450 # though they will create one.
4451 am_cv_prog_cc_c_o=yes
4452 for am_i in 1 2; do
4453 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4454 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4455 ac_status=$?
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); } \
4458 && test -f conftest2.$ac_objext; then
4459 : OK
4460 else
4461 am_cv_prog_cc_c_o=no
4462 break
4463 fi
4464 done
4465 rm -f core conftest*
4466 unset am_i ;;
4467esac
4468fi
4469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4470printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4471if test "$am_cv_prog_cc_c_o" != yes; then
4472 # Losing compiler, so override with the script.
4473 # FIXME: It is wrong to rewrite CC.
4474 # But if we don't then we get into trouble of one sort or another.
4475 # A longer-term fix would be to have automake use am__CC in this case,
4476 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4477 CC="$am_aux_dir/compile $CC"
4478fi
4479ac_ext=c
4480ac_cpp='$CPP $CPPFLAGS'
4481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4483ac_compiler_gnu=$ac_cv_c_compiler_gnu
4484
4485DEPDIR="${am__leading_dot}deps"
4486
4487ac_config_commands="$ac_config_commands depfiles"
4488
4489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4490printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4491cat > confinc.mk << 'END'
4492am__doit:
4493 @echo this is the am__doit target >confinc.out
4494.PHONY: am__doit
4495END
4496am__include="#"
4497am__quote=
4498# BSD make does it like this.
4499echo '.include "confinc.mk" # ignored' > confmf.BSD
4500# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4501echo 'include confinc.mk # ignored' > confmf.GNU
4502_am_result=no
4503for s in GNU BSD; do
4504 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4505 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4506 ac_status=$?
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); }
4509 case $?:`cat confinc.out 2>/dev/null` in #(
4510 '0:this is the am__doit target') :
4511 case $s in #(
4512 BSD) :
4513 am__include='.include' am__quote='"' ;; #(
4514 *) :
4515 am__include='include' am__quote='' ;;
4516esac ;; #(
4517 *) :
4518 ;;
4519esac
4520 if test "$am__include" != "#"; then
4521 _am_result="yes ($s style)"
4522 break
4523 fi
4524done
4525rm -f confinc.* confmf.*
4526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4527printf "%s\n" "${_am_result}" >&6; }
4528
4529# Check whether --enable-dependency-tracking was given.
4530if test ${enable_dependency_tracking+y}
4531then :
4532 enableval=$enable_dependency_tracking;
4533fi
4534
4535if test "x$enable_dependency_tracking" != xno; then
4536 am_depcomp="$ac_aux_dir/depcomp"
4537 AMDEPBACKSLASH='\'
4538 am__nodep='_no'
4539fi
4540 if test "x$enable_dependency_tracking" != xno; then
4541 AMDEP_TRUE=
4542 AMDEP_FALSE='#'
4543else
4544 AMDEP_TRUE='#'
4545 AMDEP_FALSE=
4546fi
4547
4548
4549
4550depcc="$CC" am_compiler_list=
4551
4552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4553printf %s "checking dependency style of $depcc... " >&6; }
4554if test ${am_cv_CC_dependencies_compiler_type+y}
4555then :
4556 printf %s "(cached) " >&6
4557else case e in #(
4558 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4559 # We make a subdir and do the tests there. Otherwise we can end up
4560 # making bogus files that we don't know about and never remove. For
4561 # instance it was reported that on HP-UX the gcc test will end up
4562 # making a dummy file named 'D' -- because '-MD' means "put the output
4563 # in D".
4564 rm -rf conftest.dir
4565 mkdir conftest.dir
4566 # Copy depcomp to subdir because otherwise we won't find it if we're
4567 # using a relative directory.
4568 cp "$am_depcomp" conftest.dir
4569 cd conftest.dir
4570 # We will build objects and dependencies in a subdirectory because
4571 # it helps to detect inapplicable dependency modes. For instance
4572 # both Tru64's cc and ICC support -MD to output dependencies as a
4573 # side effect of compilation, but ICC will put the dependencies in
4574 # the current directory while Tru64 will put them in the object
4575 # directory.
4576 mkdir sub
4577
4578 am_cv_CC_dependencies_compiler_type=none
4579 if test "$am_compiler_list" = ""; then
4580 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4581 fi
4582 am__universal=false
4583 case " $depcc " in #(
4584 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4585 esac
4586
4587 for depmode in $am_compiler_list; do
4588 # Setup a source with many dependencies, because some compilers
4589 # like to wrap large dependency lists on column 80 (with \), and
4590 # we should not choose a depcomp mode which is confused by this.
4591 #
4592 # We need to recreate these files for each test, as the compiler may
4593 # overwrite some of them when testing with obscure command lines.
4594 # This happens at least with the AIX C compiler.
4595 : > sub/conftest.c
4596 for i in 1 2 3 4 5 6; do
4597 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4598 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4599 # Solaris 10 /bin/sh.
4600 echo '/* dummy */' > sub/conftst$i.h
4601 done
4602 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4603
4604 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4605 # mode. It turns out that the SunPro C++ compiler does not properly
4606 # handle '-M -o', and we need to detect this. Also, some Intel
4607 # versions had trouble with output in subdirs.
4608 am__obj=sub/conftest.${OBJEXT-o}
4609 am__minus_obj="-o $am__obj"
4610 case $depmode in
4611 gcc)
4612 # This depmode causes a compiler race in universal mode.
4613 test "$am__universal" = false || continue
4614 ;;
4615 nosideeffect)
4616 # After this tag, mechanisms are not by side-effect, so they'll
4617 # only be used when explicitly requested.
4618 if test "x$enable_dependency_tracking" = xyes; then
4619 continue
4620 else
4621 break
4622 fi
4623 ;;
4624 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4625 # This compiler won't grok '-c -o', but also, the minuso test has
4626 # not run yet. These depmodes are late enough in the game, and
4627 # so weak that their functioning should not be impacted.
4628 am__obj=conftest.${OBJEXT-o}
4629 am__minus_obj=
4630 ;;
4631 none) break ;;
4632 esac
4633 if depmode=$depmode \
4634 source=sub/conftest.c object=$am__obj \
4635 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4636 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4637 >/dev/null 2>conftest.err &&
4638 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4639 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4640 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4641 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4642 # icc doesn't choke on unknown options, it will just issue warnings
4643 # or remarks (even with -Werror). So we grep stderr for any message
4644 # that says an option was ignored or not supported.
4645 # When given -MP, icc 7.0 and 7.1 complain thusly:
4646 # icc: Command line warning: ignoring option '-M'; no argument required
4647 # The diagnosis changed in icc 8.0:
4648 # icc: Command line remark: option '-MP' not supported
4649 if (grep 'ignoring option' conftest.err ||
4650 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4651 am_cv_CC_dependencies_compiler_type=$depmode
4652 break
4653 fi
4654 fi
4655 done
4656
4657 cd ..
4658 rm -rf conftest.dir
4659else
4660 am_cv_CC_dependencies_compiler_type=none
4661fi
4662 ;;
4663esac
4664fi
4665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4666printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4667CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4668
4669 if
4670 test "x$enable_dependency_tracking" != xno \
4671 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4672 am__fastdepCC_TRUE=
4673 am__fastdepCC_FALSE='#'
4674else
4675 am__fastdepCC_TRUE='#'
4676 am__fastdepCC_FALSE=
4677fi
4678
4679
4680# By default we simply use the C compiler to build assembly code.
4681
4682test "${CCAS+set}" = set || CCAS=$CC
4683test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4684
4685
4686
4687depcc="$CCAS" am_compiler_list=
4688
4689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4690printf %s "checking dependency style of $depcc... " >&6; }
4691if test ${am_cv_CCAS_dependencies_compiler_type+y}
4692then :
4693 printf %s "(cached) " >&6
4694else case e in #(
4695 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4696 # We make a subdir and do the tests there. Otherwise we can end up
4697 # making bogus files that we don't know about and never remove. For
4698 # instance it was reported that on HP-UX the gcc test will end up
4699 # making a dummy file named 'D' -- because '-MD' means "put the output
4700 # in D".
4701 rm -rf conftest.dir
4702 mkdir conftest.dir
4703 # Copy depcomp to subdir because otherwise we won't find it if we're
4704 # using a relative directory.
4705 cp "$am_depcomp" conftest.dir
4706 cd conftest.dir
4707 # We will build objects and dependencies in a subdirectory because
4708 # it helps to detect inapplicable dependency modes. For instance
4709 # both Tru64's cc and ICC support -MD to output dependencies as a
4710 # side effect of compilation, but ICC will put the dependencies in
4711 # the current directory while Tru64 will put them in the object
4712 # directory.
4713 mkdir sub
4714
4715 am_cv_CCAS_dependencies_compiler_type=none
4716 if test "$am_compiler_list" = ""; then
4717 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4718 fi
4719 am__universal=false
4720
4721
4722 for depmode in $am_compiler_list; do
4723 # Setup a source with many dependencies, because some compilers
4724 # like to wrap large dependency lists on column 80 (with \), and
4725 # we should not choose a depcomp mode which is confused by this.
4726 #
4727 # We need to recreate these files for each test, as the compiler may
4728 # overwrite some of them when testing with obscure command lines.
4729 # This happens at least with the AIX C compiler.
4730 : > sub/conftest.c
4731 for i in 1 2 3 4 5 6; do
4732 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4733 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4734 # Solaris 10 /bin/sh.
4735 echo '/* dummy */' > sub/conftst$i.h
4736 done
4737 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4738
4739 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4740 # mode. It turns out that the SunPro C++ compiler does not properly
4741 # handle '-M -o', and we need to detect this. Also, some Intel
4742 # versions had trouble with output in subdirs.
4743 am__obj=sub/conftest.${OBJEXT-o}
4744 am__minus_obj="-o $am__obj"
4745 case $depmode in
4746 gcc)
4747 # This depmode causes a compiler race in universal mode.
4748 test "$am__universal" = false || continue
4749 ;;
4750 nosideeffect)
4751 # After this tag, mechanisms are not by side-effect, so they'll
4752 # only be used when explicitly requested.
4753 if test "x$enable_dependency_tracking" = xyes; then
4754 continue
4755 else
4756 break
4757 fi
4758 ;;
4759 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4760 # This compiler won't grok '-c -o', but also, the minuso test has
4761 # not run yet. These depmodes are late enough in the game, and
4762 # so weak that their functioning should not be impacted.
4763 am__obj=conftest.${OBJEXT-o}
4764 am__minus_obj=
4765 ;;
4766 none) break ;;
4767 esac
4768 if depmode=$depmode \
4769 source=sub/conftest.c object=$am__obj \
4770 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4771 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4772 >/dev/null 2>conftest.err &&
4773 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4774 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4775 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4776 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4777 # icc doesn't choke on unknown options, it will just issue warnings
4778 # or remarks (even with -Werror). So we grep stderr for any message
4779 # that says an option was ignored or not supported.
4780 # When given -MP, icc 7.0 and 7.1 complain thusly:
4781 # icc: Command line warning: ignoring option '-M'; no argument required
4782 # The diagnosis changed in icc 8.0:
4783 # icc: Command line remark: option '-MP' not supported
4784 if (grep 'ignoring option' conftest.err ||
4785 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4786 am_cv_CCAS_dependencies_compiler_type=$depmode
4787 break
4788 fi
4789 fi
4790 done
4791
4792 cd ..
4793 rm -rf conftest.dir
4794else
4795 am_cv_CCAS_dependencies_compiler_type=none
4796fi
4797 ;;
4798esac
4799fi
4800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4801printf "%s\n" "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4802CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4803
4804 if
4805 test "x$enable_dependency_tracking" != xno \
4806 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4807 am__fastdepCCAS_TRUE=
4808 am__fastdepCCAS_FALSE='#'
4809else
4810 am__fastdepCCAS_TRUE='#'
4811 am__fastdepCCAS_FALSE=
4812fi
4813
4814
4815
4816
4817 # Make sure we can run config.sub.
4818$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4819 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4820
4821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4822printf %s "checking build system type... " >&6; }
4823if test ${ac_cv_build+y}
4824then :
4825 printf %s "(cached) " >&6
4826else case e in #(
4827 e) ac_build_alias=$build_alias
4828test "x$ac_build_alias" = x &&
4829 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4830test "x$ac_build_alias" = x &&
4831 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4832ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4833 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4834 ;;
4835esac
4836fi
4837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4838printf "%s\n" "$ac_cv_build" >&6; }
4839case $ac_cv_build in
4840*-*-*) ;;
4841*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4842esac
4843build=$ac_cv_build
4844ac_save_IFS=$IFS; IFS='-'
4845set x $ac_cv_build
4846shift
4847build_cpu=$1
4848build_vendor=$2
4849shift; shift
4850# Remember, the first character of IFS is used to create $*,
4851# except with old shells:
4852build_os=$*
4853IFS=$ac_save_IFS
4854case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4855
4856
4857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4858printf %s "checking host system type... " >&6; }
4859if test ${ac_cv_host+y}
4860then :
4861 printf %s "(cached) " >&6
4862else case e in #(
4863 e) if test "x$host_alias" = x; then
4864 ac_cv_host=$ac_cv_build
4865else
4866 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4867 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4868fi
4869 ;;
4870esac
4871fi
4872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4873printf "%s\n" "$ac_cv_host" >&6; }
4874case $ac_cv_host in
4875*-*-*) ;;
4876*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4877esac
4878host=$ac_cv_host
4879ac_save_IFS=$IFS; IFS='-'
4880set x $ac_cv_host
4881shift
4882host_cpu=$1
4883host_vendor=$2
4884shift; shift
4885# Remember, the first character of IFS is used to create $*,
4886# except with old shells:
4887host_os=$*
4888IFS=$ac_save_IFS
4889case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4890
4891
4892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4893printf %s "checking for a sed that does not truncate output... " >&6; }
4894if test ${ac_cv_path_SED+y}
4895then :
4896 printf %s "(cached) " >&6
4897else case e in #(
4898 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4899 for ac_i in 1 2 3 4 5 6 7; do
4900 ac_script="$ac_script$as_nl$ac_script"
4901 done
4902 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4903 { ac_script=; unset ac_script;}
4904 if test -z "$SED"; then
4905 ac_path_SED_found=false
4906 # Loop through the user's path and test for each of PROGNAME-LIST
4907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908for as_dir in $PATH
4909do
4910 IFS=$as_save_IFS
4911 case $as_dir in #(((
4912 '') as_dir=./ ;;
4913 */) ;;
4914 *) as_dir=$as_dir/ ;;
4915 esac
4916 for ac_prog in sed gsed
4917 do
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4920 as_fn_executable_p "$ac_path_SED" || continue
4921# Check for GNU ac_path_SED and select it if it is found.
4922 # Check for GNU $ac_path_SED
4923case `"$ac_path_SED" --version 2>&1` in #(
4924*GNU*)
4925 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4926#(
4927*)
4928 ac_count=0
4929 printf %s 0123456789 >"conftest.in"
4930 while :
4931 do
4932 cat "conftest.in" "conftest.in" >"conftest.tmp"
4933 mv "conftest.tmp" "conftest.in"
4934 cp "conftest.in" "conftest.nl"
4935 printf "%s\n" '' >> "conftest.nl"
4936 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4937 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4938 as_fn_arith $ac_count + 1 && ac_count=$as_val
4939 if test $ac_count -gt ${ac_path_SED_max-0}; then
4940 # Best one so far, save it but keep looking for a better one
4941 ac_cv_path_SED="$ac_path_SED"
4942 ac_path_SED_max=$ac_count
4943 fi
4944 # 10*(2^10) chars as input seems more than enough
4945 test $ac_count -gt 10 && break
4946 done
4947 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4948esac
4949
4950 $ac_path_SED_found && break 3
4951 done
4952 done
4953 done
4954IFS=$as_save_IFS
4955 if test -z "$ac_cv_path_SED"; then
4956 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4957 fi
4958else
4959 ac_cv_path_SED=$SED
4960fi
4961 ;;
4962esac
4963fi
4964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4965printf "%s\n" "$ac_cv_path_SED" >&6; }
4966 SED="$ac_cv_path_SED"
4967 rm -f conftest.sed
4968
4969test -z "$SED" && SED=sed
4970Xsed="$SED -e 1s/^X//"
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4983printf %s "checking for grep that handles long lines and -e... " >&6; }
4984if test ${ac_cv_path_GREP+y}
4985then :
4986 printf %s "(cached) " >&6
4987else case e in #(
4988 e) if test -z "$GREP"; then
4989 ac_path_GREP_found=false
4990 # Loop through the user's path and test for each of PROGNAME-LIST
4991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4993do
4994 IFS=$as_save_IFS
4995 case $as_dir in #(((
4996 '') as_dir=./ ;;
4997 */) ;;
4998 *) as_dir=$as_dir/ ;;
4999 esac
5000 for ac_prog in grep ggrep
5001 do
5002 for ac_exec_ext in '' $ac_executable_extensions; do
5003 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5004 as_fn_executable_p "$ac_path_GREP" || continue
5005# Check for GNU ac_path_GREP and select it if it is found.
5006 # Check for GNU $ac_path_GREP
5007case `"$ac_path_GREP" --version 2>&1` in #(
5008*GNU*)
5009 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5010#(
5011*)
5012 ac_count=0
5013 printf %s 0123456789 >"conftest.in"
5014 while :
5015 do
5016 cat "conftest.in" "conftest.in" >"conftest.tmp"
5017 mv "conftest.tmp" "conftest.in"
5018 cp "conftest.in" "conftest.nl"
5019 printf "%s\n" 'GREP' >> "conftest.nl"
5020 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5021 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5022 as_fn_arith $ac_count + 1 && ac_count=$as_val
5023 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5024 # Best one so far, save it but keep looking for a better one
5025 ac_cv_path_GREP="$ac_path_GREP"
5026 ac_path_GREP_max=$ac_count
5027 fi
5028 # 10*(2^10) chars as input seems more than enough
5029 test $ac_count -gt 10 && break
5030 done
5031 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5032esac
5033
5034 $ac_path_GREP_found && break 3
5035 done
5036 done
5037 done
5038IFS=$as_save_IFS
5039 if test -z "$ac_cv_path_GREP"; then
5040 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5041 fi
5042else
5043 ac_cv_path_GREP=$GREP
5044fi
5045 ;;
5046esac
5047fi
5048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5049printf "%s\n" "$ac_cv_path_GREP" >&6; }
5050 GREP="$ac_cv_path_GREP"
5051
5052
5053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5054printf %s "checking for egrep... " >&6; }
5055if test ${ac_cv_path_EGREP+y}
5056then :
5057 printf %s "(cached) " >&6
5058else case e in #(
5059 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5060 then ac_cv_path_EGREP="$GREP -E"
5061 else
5062 if test -z "$EGREP"; then
5063 ac_path_EGREP_found=false
5064 # Loop through the user's path and test for each of PROGNAME-LIST
5065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5067do
5068 IFS=$as_save_IFS
5069 case $as_dir in #(((
5070 '') as_dir=./ ;;
5071 */) ;;
5072 *) as_dir=$as_dir/ ;;
5073 esac
5074 for ac_prog in egrep
5075 do
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5078 as_fn_executable_p "$ac_path_EGREP" || continue
5079# Check for GNU ac_path_EGREP and select it if it is found.
5080 # Check for GNU $ac_path_EGREP
5081case `"$ac_path_EGREP" --version 2>&1` in #(
5082*GNU*)
5083 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5084#(
5085*)
5086 ac_count=0
5087 printf %s 0123456789 >"conftest.in"
5088 while :
5089 do
5090 cat "conftest.in" "conftest.in" >"conftest.tmp"
5091 mv "conftest.tmp" "conftest.in"
5092 cp "conftest.in" "conftest.nl"
5093 printf "%s\n" 'EGREP' >> "conftest.nl"
5094 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5095 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5096 as_fn_arith $ac_count + 1 && ac_count=$as_val
5097 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5098 # Best one so far, save it but keep looking for a better one
5099 ac_cv_path_EGREP="$ac_path_EGREP"
5100 ac_path_EGREP_max=$ac_count
5101 fi
5102 # 10*(2^10) chars as input seems more than enough
5103 test $ac_count -gt 10 && break
5104 done
5105 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5106esac
5107
5108 $ac_path_EGREP_found && break 3
5109 done
5110 done
5111 done
5112IFS=$as_save_IFS
5113 if test -z "$ac_cv_path_EGREP"; then
5114 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5115 fi
5116else
5117 ac_cv_path_EGREP=$EGREP
5118fi
5119
5120 fi ;;
5121esac
5122fi
5123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5124printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5125 EGREP="$ac_cv_path_EGREP"
5126
5127 EGREP_TRADITIONAL=$EGREP
5128 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5129
5130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5131printf %s "checking for fgrep... " >&6; }
5132if test ${ac_cv_path_FGREP+y}
5133then :
5134 printf %s "(cached) " >&6
5135else case e in #(
5136 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5137 then ac_cv_path_FGREP="$GREP -F"
5138 else
5139 if test -z "$FGREP"; then
5140 ac_path_FGREP_found=false
5141 # Loop through the user's path and test for each of PROGNAME-LIST
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5144do
5145 IFS=$as_save_IFS
5146 case $as_dir in #(((
5147 '') as_dir=./ ;;
5148 */) ;;
5149 *) as_dir=$as_dir/ ;;
5150 esac
5151 for ac_prog in fgrep
5152 do
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5155 as_fn_executable_p "$ac_path_FGREP" || continue
5156# Check for GNU ac_path_FGREP and select it if it is found.
5157 # Check for GNU $ac_path_FGREP
5158case `"$ac_path_FGREP" --version 2>&1` in #(
5159*GNU*)
5160 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5161#(
5162*)
5163 ac_count=0
5164 printf %s 0123456789 >"conftest.in"
5165 while :
5166 do
5167 cat "conftest.in" "conftest.in" >"conftest.tmp"
5168 mv "conftest.tmp" "conftest.in"
5169 cp "conftest.in" "conftest.nl"
5170 printf "%s\n" 'FGREP' >> "conftest.nl"
5171 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5172 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5173 as_fn_arith $ac_count + 1 && ac_count=$as_val
5174 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5175 # Best one so far, save it but keep looking for a better one
5176 ac_cv_path_FGREP="$ac_path_FGREP"
5177 ac_path_FGREP_max=$ac_count
5178 fi
5179 # 10*(2^10) chars as input seems more than enough
5180 test $ac_count -gt 10 && break
5181 done
5182 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5183esac
5184
5185 $ac_path_FGREP_found && break 3
5186 done
5187 done
5188 done
5189IFS=$as_save_IFS
5190 if test -z "$ac_cv_path_FGREP"; then
5191 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5192 fi
5193else
5194 ac_cv_path_FGREP=$FGREP
5195fi
5196
5197 fi ;;
5198esac
5199fi
5200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5201printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5202 FGREP="$ac_cv_path_FGREP"
5203
5204
5205test -z "$GREP" && GREP=grep
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5224ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5225ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5226
5227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5228printf %s "checking how to print strings... " >&6; }
5229# Test print first, because it will be a builtin if present.
5230if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5231 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5232 ECHO='print -r --'
5233elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5234 ECHO='printf %s\n'
5235else
5236 # Use this function as a fallback that always works.
5237 func_fallback_echo ()
5238 {
5239 eval 'cat <<_LTECHO_EOF
5240$1
5241_LTECHO_EOF'
5242 }
5243 ECHO='func_fallback_echo'
5244fi
5245
5246# func_echo_all arg...
5247# Invoke $ECHO with all args, space-separated.
5248func_echo_all ()
5249{
5250 $ECHO ""
5251}
5252
5253case $ECHO in
5254 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5255printf "%s\n" "printf" >&6; } ;;
5256 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5257printf "%s\n" "print -r" >&6; } ;;
5258 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5259printf "%s\n" "cat" >&6; } ;;
5260esac
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277# Check whether --with-gnu-ld was given.
5278if test ${with_gnu_ld+y}
5279then :
5280 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5281else case e in #(
5282 e) with_gnu_ld=no ;;
5283esac
5284fi
5285
5286ac_prog=ld
5287if test yes = "$GCC"; then
5288 # Check if gcc -print-prog-name=ld gives a path.
5289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5290printf %s "checking for ld used by $CC... " >&6; }
5291 case $host in
5292 *-*-mingw*)
5293 # gcc leaves a trailing carriage return, which upsets mingw
5294 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5295 *)
5296 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5297 esac
5298 case $ac_prog in
5299 # Accept absolute paths.
5300 [\\/]* | ?:[\\/]*)
5301 re_direlt='/[^/][^/]*/\.\./'
5302 # Canonicalize the pathname of ld
5303 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5304 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5305 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5306 done
5307 test -z "$LD" && LD=$ac_prog
5308 ;;
5309 "")
5310 # If it fails, then pretend we aren't using GCC.
5311 ac_prog=ld
5312 ;;
5313 *)
5314 # If it is relative, then search for the first ld in PATH.
5315 with_gnu_ld=unknown
5316 ;;
5317 esac
5318elif test yes = "$with_gnu_ld"; then
5319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5320printf %s "checking for GNU ld... " >&6; }
5321else
5322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5323printf %s "checking for non-GNU ld... " >&6; }
5324fi
5325if test ${lt_cv_path_LD+y}
5326then :
5327 printf %s "(cached) " >&6
5328else case e in #(
5329 e) if test -z "$LD"; then
5330 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5331 for ac_dir in $PATH; do
5332 IFS=$lt_save_ifs
5333 test -z "$ac_dir" && ac_dir=.
5334 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5335 lt_cv_path_LD=$ac_dir/$ac_prog
5336 # Check to see if the program is GNU ld. I'd rather use --version,
5337 # but apparently some variants of GNU ld only accept -v.
5338 # Break only if it was the GNU/non-GNU ld that we prefer.
5339 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5340 *GNU* | *'with BFD'*)
5341 test no != "$with_gnu_ld" && break
5342 ;;
5343 *)
5344 test yes != "$with_gnu_ld" && break
5345 ;;
5346 esac
5347 fi
5348 done
5349 IFS=$lt_save_ifs
5350else
5351 lt_cv_path_LD=$LD # Let the user override the test with a path.
5352fi ;;
5353esac
5354fi
5355
5356LD=$lt_cv_path_LD
5357if test -n "$LD"; then
5358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5359printf "%s\n" "$LD" >&6; }
5360else
5361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5362printf "%s\n" "no" >&6; }
5363fi
5364test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5366printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5367if test ${lt_cv_prog_gnu_ld+y}
5368then :
5369 printf %s "(cached) " >&6
5370else case e in #(
5371 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5372case `$LD -v 2>&1 </dev/null` in
5373*GNU* | *'with BFD'*)
5374 lt_cv_prog_gnu_ld=yes
5375 ;;
5376*)
5377 lt_cv_prog_gnu_ld=no
5378 ;;
5379esac ;;
5380esac
5381fi
5382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5383printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5384with_gnu_ld=$lt_cv_prog_gnu_ld
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394ac_ext=c
5395ac_cpp='$CPP $CPPFLAGS'
5396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5398ac_compiler_gnu=$ac_cv_c_compiler_gnu
5399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5400printf %s "checking how to run the C preprocessor... " >&6; }
5401# On Suns, sometimes $CPP names a directory.
5402if test -n "$CPP" && test -d "$CPP"; then
5403 CPP=
5404fi
5405if test -z "$CPP"; then
5406 if test ${ac_cv_prog_CPP+y}
5407then :
5408 printf %s "(cached) " >&6
5409else case e in #(
5410 e) # Double quotes because $CC needs to be expanded
5411 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5412 do
5413 ac_preproc_ok=false
5414for ac_c_preproc_warn_flag in '' yes
5415do
5416 # Use a header file that comes with gcc, so configuring glibc
5417 # with a fresh cross-compiler works.
5418 # On the NeXT, cc -E runs the code through the compiler's parser,
5419 # not just through cpp. "Syntax error" is here to catch this case.
5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421/* end confdefs.h. */
5422#include <limits.h>
5423 Syntax error
5424_ACEOF
5425if ac_fn_c_try_cpp "$LINENO"
5426then :
5427
5428else case e in #(
5429 e) # Broken: fails on valid input.
5430continue ;;
5431esac
5432fi
5433rm -f conftest.err conftest.i conftest.$ac_ext
5434
5435 # OK, works on sane cases. Now check whether nonexistent headers
5436 # can be detected and how.
5437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438/* end confdefs.h. */
5439#include <ac_nonexistent.h>
5440_ACEOF
5441if ac_fn_c_try_cpp "$LINENO"
5442then :
5443 # Broken: success on invalid input.
5444continue
5445else case e in #(
5446 e) # Passes both tests.
5447ac_preproc_ok=:
5448break ;;
5449esac
5450fi
5451rm -f conftest.err conftest.i conftest.$ac_ext
5452
5453done
5454# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5455rm -f conftest.i conftest.err conftest.$ac_ext
5456if $ac_preproc_ok
5457then :
5458 break
5459fi
5460
5461 done
5462 ac_cv_prog_CPP=$CPP
5463 ;;
5464esac
5465fi
5466 CPP=$ac_cv_prog_CPP
5467else
5468 ac_cv_prog_CPP=$CPP
5469fi
5470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5471printf "%s\n" "$CPP" >&6; }
5472ac_preproc_ok=false
5473for ac_c_preproc_warn_flag in '' yes
5474do
5475 # Use a header file that comes with gcc, so configuring glibc
5476 # with a fresh cross-compiler works.
5477 # On the NeXT, cc -E runs the code through the compiler's parser,
5478 # not just through cpp. "Syntax error" is here to catch this case.
5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480/* end confdefs.h. */
5481#include <limits.h>
5482 Syntax error
5483_ACEOF
5484if ac_fn_c_try_cpp "$LINENO"
5485then :
5486
5487else case e in #(
5488 e) # Broken: fails on valid input.
5489continue ;;
5490esac
5491fi
5492rm -f conftest.err conftest.i conftest.$ac_ext
5493
5494 # OK, works on sane cases. Now check whether nonexistent headers
5495 # can be detected and how.
5496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5497/* end confdefs.h. */
5498#include <ac_nonexistent.h>
5499_ACEOF
5500if ac_fn_c_try_cpp "$LINENO"
5501then :
5502 # Broken: success on invalid input.
5503continue
5504else case e in #(
5505 e) # Passes both tests.
5506ac_preproc_ok=:
5507break ;;
5508esac
5509fi
5510rm -f conftest.err conftest.i conftest.$ac_ext
5511
5512done
5513# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5514rm -f conftest.i conftest.err conftest.$ac_ext
5515if $ac_preproc_ok
5516then :
5517
5518else case e in #(
5519 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5520printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5521as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5522See 'config.log' for more details" "$LINENO" 5; } ;;
5523esac
5524fi
5525
5526ac_ext=c
5527ac_cpp='$CPP $CPPFLAGS'
5528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5530ac_compiler_gnu=$ac_cv_c_compiler_gnu
5531
5532for ac_prog in gawk mawk nawk awk
5533do
5534 # Extract the first word of "$ac_prog", so it can be a program name with args.
5535set dummy $ac_prog; ac_word=$2
5536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5537printf %s "checking for $ac_word... " >&6; }
5538if test ${ac_cv_prog_AWK+y}
5539then :
5540 printf %s "(cached) " >&6
5541else case e in #(
5542 e) if test -n "$AWK"; then
5543 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5544else
5545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546for as_dir in $PATH
5547do
5548 IFS=$as_save_IFS
5549 case $as_dir in #(((
5550 '') as_dir=./ ;;
5551 */) ;;
5552 *) as_dir=$as_dir/ ;;
5553 esac
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5556 ac_cv_prog_AWK="$ac_prog"
5557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5558 break 2
5559 fi
5560done
5561 done
5562IFS=$as_save_IFS
5563
5564fi ;;
5565esac
5566fi
5567AWK=$ac_cv_prog_AWK
5568if test -n "$AWK"; then
5569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5570printf "%s\n" "$AWK" >&6; }
5571else
5572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5573printf "%s\n" "no" >&6; }
5574fi
5575
5576
5577 test -n "$AWK" && break
5578done
5579
5580
5581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5582printf %s "checking whether ln -s works... " >&6; }
5583LN_S=$as_ln_s
5584if test "$LN_S" = "ln -s"; then
5585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5586printf "%s\n" "yes" >&6; }
5587else
5588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5589printf "%s\n" "no, using $LN_S" >&6; }
5590fi
5591
5592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5593printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5594set x ${MAKE-make}
5595ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5596if eval test \${ac_cv_prog_make_${ac_make}_set+y}
5597then :
5598 printf %s "(cached) " >&6
5599else case e in #(
5600 e) cat >conftest.make <<\_ACEOF
5601SHELL = /bin/sh
5602all:
5603 @echo '@@@%%%=$(MAKE)=@@@%%%'
5604_ACEOF
5605# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5606case `${MAKE-make} -f conftest.make 2>/dev/null` in
5607 *@@@%%%=?*=@@@%%%*)
5608 eval ac_cv_prog_make_${ac_make}_set=yes;;
5609 *)
5610 eval ac_cv_prog_make_${ac_make}_set=no;;
5611esac
5612rm -f conftest.make ;;
5613esac
5614fi
5615if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5617printf "%s\n" "yes" >&6; }
5618 SET_MAKE=
5619else
5620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5621printf "%s\n" "no" >&6; }
5622 SET_MAKE="MAKE=${MAKE-make}"
5623fi
5624
5625
5626case `pwd` in
5627 *\ * | *\ *)
5628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5629printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5630esac
5631
5632
5633
5634macro_version='2.4.7'
5635macro_revision='2.4.7'
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650ltmain=$ac_aux_dir/ltmain.sh
5651
5652# Backslashify metacharacters that are still active within
5653# double-quoted strings.
5654sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5655
5656# Same as above, but do not quote variable references.
5657double_quote_subst='s/\(["`\\]\)/\\\1/g'
5658
5659# Sed substitution to delay expansion of an escaped shell variable in a
5660# double_quote_subst'ed string.
5661delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5662
5663# Sed substitution to delay expansion of an escaped single quote.
5664delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5665
5666# Sed substitution to avoid accidental globbing in evaled expressions
5667no_glob_subst='s/\*/\\\*/g'
5668
5669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5670printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5671if test ${lt_cv_path_NM+y}
5672then :
5673 printf %s "(cached) " >&6
5674else case e in #(
5675 e) if test -n "$NM"; then
5676 # Let the user override the test.
5677 lt_cv_path_NM=$NM
5678else
5679 lt_nm_to_check=${ac_tool_prefix}nm
5680 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5681 lt_nm_to_check="$lt_nm_to_check nm"
5682 fi
5683 for lt_tmp_nm in $lt_nm_to_check; do
5684 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5685 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5686 IFS=$lt_save_ifs
5687 test -z "$ac_dir" && ac_dir=.
5688 tmp_nm=$ac_dir/$lt_tmp_nm
5689 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5690 # Check to see if the nm accepts a BSD-compat flag.
5691 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5692 # nm: unknown option "B" ignored
5693 # Tru64's nm complains that /dev/null is an invalid object file
5694 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5695 case $build_os in
5696 mingw*) lt_bad_file=conftest.nm/nofile ;;
5697 *) lt_bad_file=/dev/null ;;
5698 esac
5699 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5700 *$lt_bad_file* | *'Invalid file or object type'*)
5701 lt_cv_path_NM="$tmp_nm -B"
5702 break 2
5703 ;;
5704 *)
5705 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5706 */dev/null*)
5707 lt_cv_path_NM="$tmp_nm -p"
5708 break 2
5709 ;;
5710 *)
5711 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5712 continue # so that we can try to find one that supports BSD flags
5713 ;;
5714 esac
5715 ;;
5716 esac
5717 fi
5718 done
5719 IFS=$lt_save_ifs
5720 done
5721 : ${lt_cv_path_NM=no}
5722fi ;;
5723esac
5724fi
5725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5726printf "%s\n" "$lt_cv_path_NM" >&6; }
5727if test no != "$lt_cv_path_NM"; then
5728 NM=$lt_cv_path_NM
5729else
5730 # Didn't find any BSD compatible name lister, look for dumpbin.
5731 if test -n "$DUMPBIN"; then :
5732 # Let the user override the test.
5733 else
5734 if test -n "$ac_tool_prefix"; then
5735 for ac_prog in dumpbin "link -dump"
5736 do
5737 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5738set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5740printf %s "checking for $ac_word... " >&6; }
5741if test ${ac_cv_prog_DUMPBIN+y}
5742then :
5743 printf %s "(cached) " >&6
5744else case e in #(
5745 e) if test -n "$DUMPBIN"; then
5746 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5747else
5748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749for as_dir in $PATH
5750do
5751 IFS=$as_save_IFS
5752 case $as_dir in #(((
5753 '') as_dir=./ ;;
5754 */) ;;
5755 *) as_dir=$as_dir/ ;;
5756 esac
5757 for ac_exec_ext in '' $ac_executable_extensions; do
5758 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5759 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5761 break 2
5762 fi
5763done
5764 done
5765IFS=$as_save_IFS
5766
5767fi ;;
5768esac
5769fi
5770DUMPBIN=$ac_cv_prog_DUMPBIN
5771if test -n "$DUMPBIN"; then
5772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5773printf "%s\n" "$DUMPBIN" >&6; }
5774else
5775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5776printf "%s\n" "no" >&6; }
5777fi
5778
5779
5780 test -n "$DUMPBIN" && break
5781 done
5782fi
5783if test -z "$DUMPBIN"; then
5784 ac_ct_DUMPBIN=$DUMPBIN
5785 for ac_prog in dumpbin "link -dump"
5786do
5787 # Extract the first word of "$ac_prog", so it can be a program name with args.
5788set dummy $ac_prog; ac_word=$2
5789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5790printf %s "checking for $ac_word... " >&6; }
5791if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5792then :
5793 printf %s "(cached) " >&6
5794else case e in #(
5795 e) if test -n "$ac_ct_DUMPBIN"; then
5796 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5797else
5798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5799for as_dir in $PATH
5800do
5801 IFS=$as_save_IFS
5802 case $as_dir in #(((
5803 '') as_dir=./ ;;
5804 */) ;;
5805 *) as_dir=$as_dir/ ;;
5806 esac
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5809 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5811 break 2
5812 fi
5813done
5814 done
5815IFS=$as_save_IFS
5816
5817fi ;;
5818esac
5819fi
5820ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5821if test -n "$ac_ct_DUMPBIN"; then
5822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5823printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5824else
5825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826printf "%s\n" "no" >&6; }
5827fi
5828
5829
5830 test -n "$ac_ct_DUMPBIN" && break
5831done
5832
5833 if test "x$ac_ct_DUMPBIN" = x; then
5834 DUMPBIN=":"
5835 else
5836 case $cross_compiling:$ac_tool_warned in
5837yes:)
5838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5839printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5840ac_tool_warned=yes ;;
5841esac
5842 DUMPBIN=$ac_ct_DUMPBIN
5843 fi
5844fi
5845
5846 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5847 *COFF*)
5848 DUMPBIN="$DUMPBIN -symbols -headers"
5849 ;;
5850 *)
5851 DUMPBIN=:
5852 ;;
5853 esac
5854 fi
5855
5856 if test : != "$DUMPBIN"; then
5857 NM=$DUMPBIN
5858 fi
5859fi
5860test -z "$NM" && NM=nm
5861
5862
5863
5864
5865
5866
5867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5868printf %s "checking the name lister ($NM) interface... " >&6; }
5869if test ${lt_cv_nm_interface+y}
5870then :
5871 printf %s "(cached) " >&6
5872else case e in #(
5873 e) lt_cv_nm_interface="BSD nm"
5874 echo "int some_variable = 0;" > conftest.$ac_ext
5875 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5876 (eval "$ac_compile" 2>conftest.err)
5877 cat conftest.err >&5
5878 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5879 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5880 cat conftest.err >&5
5881 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5882 cat conftest.out >&5
5883 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5884 lt_cv_nm_interface="MS dumpbin"
5885 fi
5886 rm -f conftest* ;;
5887esac
5888fi
5889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5890printf "%s\n" "$lt_cv_nm_interface" >&6; }
5891
5892# find the maximum length of command line arguments
5893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5894printf %s "checking the maximum length of command line arguments... " >&6; }
5895if test ${lt_cv_sys_max_cmd_len+y}
5896then :
5897 printf %s "(cached) " >&6
5898else case e in #(
5899 e) i=0
5900 teststring=ABCD
5901
5902 case $build_os in
5903 msdosdjgpp*)
5904 # On DJGPP, this test can blow up pretty badly due to problems in libc
5905 # (any single argument exceeding 2000 bytes causes a buffer overrun
5906 # during glob expansion). Even if it were fixed, the result of this
5907 # check would be larger than it should be.
5908 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5909 ;;
5910
5911 gnu*)
5912 # Under GNU Hurd, this test is not required because there is
5913 # no limit to the length of command line arguments.
5914 # Libtool will interpret -1 as no limit whatsoever
5915 lt_cv_sys_max_cmd_len=-1;
5916 ;;
5917
5918 cygwin* | mingw* | cegcc*)
5919 # On Win9x/ME, this test blows up -- it succeeds, but takes
5920 # about 5 minutes as the teststring grows exponentially.
5921 # Worse, since 9x/ME are not pre-emptively multitasking,
5922 # you end up with a "frozen" computer, even though with patience
5923 # the test eventually succeeds (with a max line length of 256k).
5924 # Instead, let's just punt: use the minimum linelength reported by
5925 # all of the supported platforms: 8192 (on NT/2K/XP).
5926 lt_cv_sys_max_cmd_len=8192;
5927 ;;
5928
5929 mint*)
5930 # On MiNT this can take a long time and run out of memory.
5931 lt_cv_sys_max_cmd_len=8192;
5932 ;;
5933
5934 amigaos*)
5935 # On AmigaOS with pdksh, this test takes hours, literally.
5936 # So we just punt and use a minimum line length of 8192.
5937 lt_cv_sys_max_cmd_len=8192;
5938 ;;
5939
5940 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5941 # This has been around since 386BSD, at least. Likely further.
5942 if test -x /sbin/sysctl; then
5943 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5944 elif test -x /usr/sbin/sysctl; then
5945 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5946 else
5947 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5948 fi
5949 # And add a safety zone
5950 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5951 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5952 ;;
5953
5954 interix*)
5955 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5956 lt_cv_sys_max_cmd_len=196608
5957 ;;
5958
5959 os2*)
5960 # The test takes a long time on OS/2.
5961 lt_cv_sys_max_cmd_len=8192
5962 ;;
5963
5964 osf*)
5965 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5966 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5967 # nice to cause kernel panics so lets avoid the loop below.
5968 # First set a reasonable default.
5969 lt_cv_sys_max_cmd_len=16384
5970 #
5971 if test -x /sbin/sysconfig; then
5972 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5973 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5974 esac
5975 fi
5976 ;;
5977 sco3.2v5*)
5978 lt_cv_sys_max_cmd_len=102400
5979 ;;
5980 sysv5* | sco5v6* | sysv4.2uw2*)
5981 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5982 if test -n "$kargmax"; then
5983 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5984 else
5985 lt_cv_sys_max_cmd_len=32768
5986 fi
5987 ;;
5988 *)
5989 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5990 if test -n "$lt_cv_sys_max_cmd_len" && \
5991 test undefined != "$lt_cv_sys_max_cmd_len"; then
5992 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5993 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5994 else
5995 # Make teststring a little bigger before we do anything with it.
5996 # a 1K string should be a reasonable start.
5997 for i in 1 2 3 4 5 6 7 8; do
5998 teststring=$teststring$teststring
5999 done
6000 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6001 # If test is not a shell built-in, we'll probably end up computing a
6002 # maximum length that is only half of the actual maximum length, but
6003 # we can't tell.
6004 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6005 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6006 test 17 != "$i" # 1/2 MB should be enough
6007 do
6008 i=`expr $i + 1`
6009 teststring=$teststring$teststring
6010 done
6011 # Only check the string length outside the loop.
6012 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6013 teststring=
6014 # Add a significant safety factor because C++ compilers can tack on
6015 # massive amounts of additional arguments before passing them to the
6016 # linker. It appears as though 1/2 is a usable value.
6017 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6018 fi
6019 ;;
6020 esac
6021 ;;
6022esac
6023fi
6024
6025if test -n "$lt_cv_sys_max_cmd_len"; then
6026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6027printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6028else
6029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6030printf "%s\n" "none" >&6; }
6031fi
6032max_cmd_len=$lt_cv_sys_max_cmd_len
6033
6034
6035
6036
6037
6038
6039: ${CP="cp -f"}
6040: ${MV="mv -f"}
6041: ${RM="rm -f"}
6042
6043if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6044 lt_unset=unset
6045else
6046 lt_unset=false
6047fi
6048
6049
6050
6051
6052
6053# test EBCDIC or ASCII
6054case `echo X|tr X '\101'` in
6055 A) # ASCII based system
6056 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6057 lt_SP2NL='tr \040 \012'
6058 lt_NL2SP='tr \015\012 \040\040'
6059 ;;
6060 *) # EBCDIC based system
6061 lt_SP2NL='tr \100 \n'
6062 lt_NL2SP='tr \r\n \100\100'
6063 ;;
6064esac
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6075printf %s "checking how to convert $build file names to $host format... " >&6; }
6076if test ${lt_cv_to_host_file_cmd+y}
6077then :
6078 printf %s "(cached) " >&6
6079else case e in #(
6080 e) case $host in
6081 *-*-mingw* )
6082 case $build in
6083 *-*-mingw* ) # actually msys
6084 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6085 ;;
6086 *-*-cygwin* )
6087 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6088 ;;
6089 * ) # otherwise, assume *nix
6090 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6091 ;;
6092 esac
6093 ;;
6094 *-*-cygwin* )
6095 case $build in
6096 *-*-mingw* ) # actually msys
6097 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6098 ;;
6099 *-*-cygwin* )
6100 lt_cv_to_host_file_cmd=func_convert_file_noop
6101 ;;
6102 * ) # otherwise, assume *nix
6103 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6104 ;;
6105 esac
6106 ;;
6107 * ) # unhandled hosts (and "normal" native builds)
6108 lt_cv_to_host_file_cmd=func_convert_file_noop
6109 ;;
6110esac
6111 ;;
6112esac
6113fi
6114
6115to_host_file_cmd=$lt_cv_to_host_file_cmd
6116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6117printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6118
6119
6120
6121
6122
6123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6124printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6125if test ${lt_cv_to_tool_file_cmd+y}
6126then :
6127 printf %s "(cached) " >&6
6128else case e in #(
6129 e) #assume ordinary cross tools, or native build.
6130lt_cv_to_tool_file_cmd=func_convert_file_noop
6131case $host in
6132 *-*-mingw* )
6133 case $build in
6134 *-*-mingw* ) # actually msys
6135 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6136 ;;
6137 esac
6138 ;;
6139esac
6140 ;;
6141esac
6142fi
6143
6144to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6146printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6147
6148
6149
6150
6151
6152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6153printf %s "checking for $LD option to reload object files... " >&6; }
6154if test ${lt_cv_ld_reload_flag+y}
6155then :
6156 printf %s "(cached) " >&6
6157else case e in #(
6158 e) lt_cv_ld_reload_flag='-r' ;;
6159esac
6160fi
6161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6162printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6163reload_flag=$lt_cv_ld_reload_flag
6164case $reload_flag in
6165"" | " "*) ;;
6166*) reload_flag=" $reload_flag" ;;
6167esac
6168reload_cmds='$LD$reload_flag -o $output$reload_objs'
6169case $host_os in
6170 cygwin* | mingw* | pw32* | cegcc*)
6171 if test yes != "$GCC"; then
6172 reload_cmds=false
6173 fi
6174 ;;
6175 darwin*)
6176 if test yes = "$GCC"; then
6177 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6178 else
6179 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6180 fi
6181 ;;
6182esac
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192if test -n "$ac_tool_prefix"; then
6193 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6194set dummy ${ac_tool_prefix}file; ac_word=$2
6195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6196printf %s "checking for $ac_word... " >&6; }
6197if test ${ac_cv_prog_FILECMD+y}
6198then :
6199 printf %s "(cached) " >&6
6200else case e in #(
6201 e) if test -n "$FILECMD"; then
6202 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6203else
6204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205for as_dir in $PATH
6206do
6207 IFS=$as_save_IFS
6208 case $as_dir in #(((
6209 '') as_dir=./ ;;
6210 */) ;;
6211 *) as_dir=$as_dir/ ;;
6212 esac
6213 for ac_exec_ext in '' $ac_executable_extensions; do
6214 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6215 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6216 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6217 break 2
6218 fi
6219done
6220 done
6221IFS=$as_save_IFS
6222
6223fi ;;
6224esac
6225fi
6226FILECMD=$ac_cv_prog_FILECMD
6227if test -n "$FILECMD"; then
6228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6229printf "%s\n" "$FILECMD" >&6; }
6230else
6231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6232printf "%s\n" "no" >&6; }
6233fi
6234
6235
6236fi
6237if test -z "$ac_cv_prog_FILECMD"; then
6238 ac_ct_FILECMD=$FILECMD
6239 # Extract the first word of "file", so it can be a program name with args.
6240set dummy file; ac_word=$2
6241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6242printf %s "checking for $ac_word... " >&6; }
6243if test ${ac_cv_prog_ac_ct_FILECMD+y}
6244then :
6245 printf %s "(cached) " >&6
6246else case e in #(
6247 e) if test -n "$ac_ct_FILECMD"; then
6248 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6249else
6250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251for as_dir in $PATH
6252do
6253 IFS=$as_save_IFS
6254 case $as_dir in #(((
6255 '') as_dir=./ ;;
6256 */) ;;
6257 *) as_dir=$as_dir/ ;;
6258 esac
6259 for ac_exec_ext in '' $ac_executable_extensions; do
6260 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6261 ac_cv_prog_ac_ct_FILECMD="file"
6262 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6263 break 2
6264 fi
6265done
6266 done
6267IFS=$as_save_IFS
6268
6269fi ;;
6270esac
6271fi
6272ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6273if test -n "$ac_ct_FILECMD"; then
6274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6275printf "%s\n" "$ac_ct_FILECMD" >&6; }
6276else
6277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6278printf "%s\n" "no" >&6; }
6279fi
6280
6281 if test "x$ac_ct_FILECMD" = x; then
6282 FILECMD=":"
6283 else
6284 case $cross_compiling:$ac_tool_warned in
6285yes:)
6286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6287printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6288ac_tool_warned=yes ;;
6289esac
6290 FILECMD=$ac_ct_FILECMD
6291 fi
6292else
6293 FILECMD="$ac_cv_prog_FILECMD"
6294fi
6295
6296
6297
6298
6299
6300
6301
6302if test -n "$ac_tool_prefix"; then
6303 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6304set dummy ${ac_tool_prefix}objdump; ac_word=$2
6305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6306printf %s "checking for $ac_word... " >&6; }
6307if test ${ac_cv_prog_OBJDUMP+y}
6308then :
6309 printf %s "(cached) " >&6
6310else case e in #(
6311 e) if test -n "$OBJDUMP"; then
6312 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6313else
6314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315for as_dir in $PATH
6316do
6317 IFS=$as_save_IFS
6318 case $as_dir in #(((
6319 '') as_dir=./ ;;
6320 */) ;;
6321 *) as_dir=$as_dir/ ;;
6322 esac
6323 for ac_exec_ext in '' $ac_executable_extensions; do
6324 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6325 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6327 break 2
6328 fi
6329done
6330 done
6331IFS=$as_save_IFS
6332
6333fi ;;
6334esac
6335fi
6336OBJDUMP=$ac_cv_prog_OBJDUMP
6337if test -n "$OBJDUMP"; then
6338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6339printf "%s\n" "$OBJDUMP" >&6; }
6340else
6341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6342printf "%s\n" "no" >&6; }
6343fi
6344
6345
6346fi
6347if test -z "$ac_cv_prog_OBJDUMP"; then
6348 ac_ct_OBJDUMP=$OBJDUMP
6349 # Extract the first word of "objdump", so it can be a program name with args.
6350set dummy objdump; ac_word=$2
6351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6352printf %s "checking for $ac_word... " >&6; }
6353if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6354then :
6355 printf %s "(cached) " >&6
6356else case e in #(
6357 e) if test -n "$ac_ct_OBJDUMP"; then
6358 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6359else
6360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361for as_dir in $PATH
6362do
6363 IFS=$as_save_IFS
6364 case $as_dir in #(((
6365 '') as_dir=./ ;;
6366 */) ;;
6367 *) as_dir=$as_dir/ ;;
6368 esac
6369 for ac_exec_ext in '' $ac_executable_extensions; do
6370 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6371 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6373 break 2
6374 fi
6375done
6376 done
6377IFS=$as_save_IFS
6378
6379fi ;;
6380esac
6381fi
6382ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6383if test -n "$ac_ct_OBJDUMP"; then
6384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6385printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6386else
6387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6388printf "%s\n" "no" >&6; }
6389fi
6390
6391 if test "x$ac_ct_OBJDUMP" = x; then
6392 OBJDUMP="false"
6393 else
6394 case $cross_compiling:$ac_tool_warned in
6395yes:)
6396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6397printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6398ac_tool_warned=yes ;;
6399esac
6400 OBJDUMP=$ac_ct_OBJDUMP
6401 fi
6402else
6403 OBJDUMP="$ac_cv_prog_OBJDUMP"
6404fi
6405
6406test -z "$OBJDUMP" && OBJDUMP=objdump
6407
6408
6409
6410
6411
6412
6413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6414printf %s "checking how to recognize dependent libraries... " >&6; }
6415if test ${lt_cv_deplibs_check_method+y}
6416then :
6417 printf %s "(cached) " >&6
6418else case e in #(
6419 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6420lt_cv_file_magic_test_file=
6421lt_cv_deplibs_check_method='unknown'
6422# Need to set the preceding variable on all platforms that support
6423# interlibrary dependencies.
6424# 'none' -- dependencies not supported.
6425# 'unknown' -- same as none, but documents that we really don't know.
6426# 'pass_all' -- all dependencies passed with no checks.
6427# 'test_compile' -- check by making test program.
6428# 'file_magic [[regex]]' -- check by looking for files in library path
6429# that responds to the $file_magic_cmd with a given extended regex.
6430# If you have 'file' or equivalent on your system and you're not sure
6431# whether 'pass_all' will *always* work, you probably want this one.
6432
6433case $host_os in
6434aix[4-9]*)
6435 lt_cv_deplibs_check_method=pass_all
6436 ;;
6437
6438beos*)
6439 lt_cv_deplibs_check_method=pass_all
6440 ;;
6441
6442bsdi[45]*)
6443 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6444 lt_cv_file_magic_cmd='$FILECMD -L'
6445 lt_cv_file_magic_test_file=/shlib/libc.so
6446 ;;
6447
6448cygwin*)
6449 # func_win32_libid is a shell function defined in ltmain.sh
6450 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6451 lt_cv_file_magic_cmd='func_win32_libid'
6452 ;;
6453
6454mingw* | pw32*)
6455 # Base MSYS/MinGW do not provide the 'file' command needed by
6456 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6457 # unless we find 'file', for example because we are cross-compiling.
6458 if ( file / ) >/dev/null 2>&1; then
6459 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6460 lt_cv_file_magic_cmd='func_win32_libid'
6461 else
6462 # Keep this pattern in sync with the one in func_win32_libid.
6463 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6464 lt_cv_file_magic_cmd='$OBJDUMP -f'
6465 fi
6466 ;;
6467
6468cegcc*)
6469 # use the weaker test based on 'objdump'. See mingw*.
6470 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6471 lt_cv_file_magic_cmd='$OBJDUMP -f'
6472 ;;
6473
6474darwin* | rhapsody*)
6475 lt_cv_deplibs_check_method=pass_all
6476 ;;
6477
6478freebsd* | dragonfly* | midnightbsd*)
6479 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6480 case $host_cpu in
6481 i*86 )
6482 # Not sure whether the presence of OpenBSD here was a mistake.
6483 # Let's accept both of them until this is cleared up.
6484 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6485 lt_cv_file_magic_cmd=$FILECMD
6486 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6487 ;;
6488 esac
6489 else
6490 lt_cv_deplibs_check_method=pass_all
6491 fi
6492 ;;
6493
6494haiku*)
6495 lt_cv_deplibs_check_method=pass_all
6496 ;;
6497
6498hpux10.20* | hpux11*)
6499 lt_cv_file_magic_cmd=$FILECMD
6500 case $host_cpu in
6501 ia64*)
6502 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6503 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6504 ;;
6505 hppa*64*)
6506 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]'
6507 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6508 ;;
6509 *)
6510 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6511 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6512 ;;
6513 esac
6514 ;;
6515
6516interix[3-9]*)
6517 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6518 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6519 ;;
6520
6521irix5* | irix6* | nonstopux*)
6522 case $LD in
6523 *-32|*"-32 ") libmagic=32-bit;;
6524 *-n32|*"-n32 ") libmagic=N32;;
6525 *-64|*"-64 ") libmagic=64-bit;;
6526 *) libmagic=never-match;;
6527 esac
6528 lt_cv_deplibs_check_method=pass_all
6529 ;;
6530
6531# This must be glibc/ELF.
6532linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6533 lt_cv_deplibs_check_method=pass_all
6534 ;;
6535
6536netbsd*)
6537 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6538 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6539 else
6540 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6541 fi
6542 ;;
6543
6544newos6*)
6545 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6546 lt_cv_file_magic_cmd=$FILECMD
6547 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6548 ;;
6549
6550*nto* | *qnx*)
6551 lt_cv_deplibs_check_method=pass_all
6552 ;;
6553
6554openbsd* | bitrig*)
6555 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6556 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6557 else
6558 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6559 fi
6560 ;;
6561
6562osf3* | osf4* | osf5*)
6563 lt_cv_deplibs_check_method=pass_all
6564 ;;
6565
6566rdos*)
6567 lt_cv_deplibs_check_method=pass_all
6568 ;;
6569
6570solaris*)
6571 lt_cv_deplibs_check_method=pass_all
6572 ;;
6573
6574sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6575 lt_cv_deplibs_check_method=pass_all
6576 ;;
6577
6578sysv4 | sysv4.3*)
6579 case $host_vendor in
6580 motorola)
6581 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]'
6582 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6583 ;;
6584 ncr)
6585 lt_cv_deplibs_check_method=pass_all
6586 ;;
6587 sequent)
6588 lt_cv_file_magic_cmd='/bin/file'
6589 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6590 ;;
6591 sni)
6592 lt_cv_file_magic_cmd='/bin/file'
6593 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6594 lt_cv_file_magic_test_file=/lib/libc.so
6595 ;;
6596 siemens)
6597 lt_cv_deplibs_check_method=pass_all
6598 ;;
6599 pc)
6600 lt_cv_deplibs_check_method=pass_all
6601 ;;
6602 esac
6603 ;;
6604
6605tpf*)
6606 lt_cv_deplibs_check_method=pass_all
6607 ;;
6608os2*)
6609 lt_cv_deplibs_check_method=pass_all
6610 ;;
6611esac
6612 ;;
6613esac
6614fi
6615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6616printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6617
6618file_magic_glob=
6619want_nocaseglob=no
6620if test "$build" = "$host"; then
6621 case $host_os in
6622 mingw* | pw32*)
6623 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6624 want_nocaseglob=yes
6625 else
6626 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6627 fi
6628 ;;
6629 esac
6630fi
6631
6632file_magic_cmd=$lt_cv_file_magic_cmd
6633deplibs_check_method=$lt_cv_deplibs_check_method
6634test -z "$deplibs_check_method" && deplibs_check_method=unknown
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657if test -n "$ac_tool_prefix"; then
6658 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6659set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6661printf %s "checking for $ac_word... " >&6; }
6662if test ${ac_cv_prog_DLLTOOL+y}
6663then :
6664 printf %s "(cached) " >&6
6665else case e in #(
6666 e) if test -n "$DLLTOOL"; then
6667 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6668else
6669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670for as_dir in $PATH
6671do
6672 IFS=$as_save_IFS
6673 case $as_dir in #(((
6674 '') as_dir=./ ;;
6675 */) ;;
6676 *) as_dir=$as_dir/ ;;
6677 esac
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6680 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6682 break 2
6683 fi
6684done
6685 done
6686IFS=$as_save_IFS
6687
6688fi ;;
6689esac
6690fi
6691DLLTOOL=$ac_cv_prog_DLLTOOL
6692if test -n "$DLLTOOL"; then
6693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6694printf "%s\n" "$DLLTOOL" >&6; }
6695else
6696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697printf "%s\n" "no" >&6; }
6698fi
6699
6700
6701fi
6702if test -z "$ac_cv_prog_DLLTOOL"; then
6703 ac_ct_DLLTOOL=$DLLTOOL
6704 # Extract the first word of "dlltool", so it can be a program name with args.
6705set dummy dlltool; ac_word=$2
6706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6707printf %s "checking for $ac_word... " >&6; }
6708if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6709then :
6710 printf %s "(cached) " >&6
6711else case e in #(
6712 e) if test -n "$ac_ct_DLLTOOL"; then
6713 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6714else
6715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716for as_dir in $PATH
6717do
6718 IFS=$as_save_IFS
6719 case $as_dir in #(((
6720 '') as_dir=./ ;;
6721 */) ;;
6722 *) as_dir=$as_dir/ ;;
6723 esac
6724 for ac_exec_ext in '' $ac_executable_extensions; do
6725 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6726 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6728 break 2
6729 fi
6730done
6731 done
6732IFS=$as_save_IFS
6733
6734fi ;;
6735esac
6736fi
6737ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6738if test -n "$ac_ct_DLLTOOL"; then
6739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6740printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6741else
6742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6743printf "%s\n" "no" >&6; }
6744fi
6745
6746 if test "x$ac_ct_DLLTOOL" = x; then
6747 DLLTOOL="false"
6748 else
6749 case $cross_compiling:$ac_tool_warned in
6750yes:)
6751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6752printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6753ac_tool_warned=yes ;;
6754esac
6755 DLLTOOL=$ac_ct_DLLTOOL
6756 fi
6757else
6758 DLLTOOL="$ac_cv_prog_DLLTOOL"
6759fi
6760
6761test -z "$DLLTOOL" && DLLTOOL=dlltool
6762
6763
6764
6765
6766
6767
6768
6769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6770printf %s "checking how to associate runtime and link libraries... " >&6; }
6771if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6772then :
6773 printf %s "(cached) " >&6
6774else case e in #(
6775 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6776
6777case $host_os in
6778cygwin* | mingw* | pw32* | cegcc*)
6779 # two different shell functions defined in ltmain.sh;
6780 # decide which one to use based on capabilities of $DLLTOOL
6781 case `$DLLTOOL --help 2>&1` in
6782 *--identify-strict*)
6783 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6784 ;;
6785 *)
6786 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6787 ;;
6788 esac
6789 ;;
6790*)
6791 # fallback: assume linklib IS sharedlib
6792 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6793 ;;
6794esac
6795 ;;
6796esac
6797fi
6798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6799printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6800sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6801test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6802
6803
6804
6805
6806
6807
6808
6809
6810if test -n "$ac_tool_prefix"; then
6811 for ac_prog in ar
6812 do
6813 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6814set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6816printf %s "checking for $ac_word... " >&6; }
6817if test ${ac_cv_prog_AR+y}
6818then :
6819 printf %s "(cached) " >&6
6820else case e in #(
6821 e) if test -n "$AR"; then
6822 ac_cv_prog_AR="$AR" # Let the user override the test.
6823else
6824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825for as_dir in $PATH
6826do
6827 IFS=$as_save_IFS
6828 case $as_dir in #(((
6829 '') as_dir=./ ;;
6830 */) ;;
6831 *) as_dir=$as_dir/ ;;
6832 esac
6833 for ac_exec_ext in '' $ac_executable_extensions; do
6834 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6835 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6837 break 2
6838 fi
6839done
6840 done
6841IFS=$as_save_IFS
6842
6843fi ;;
6844esac
6845fi
6846AR=$ac_cv_prog_AR
6847if test -n "$AR"; then
6848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6849printf "%s\n" "$AR" >&6; }
6850else
6851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852printf "%s\n" "no" >&6; }
6853fi
6854
6855
6856 test -n "$AR" && break
6857 done
6858fi
6859if test -z "$AR"; then
6860 ac_ct_AR=$AR
6861 for ac_prog in ar
6862do
6863 # Extract the first word of "$ac_prog", so it can be a program name with args.
6864set dummy $ac_prog; ac_word=$2
6865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6866printf %s "checking for $ac_word... " >&6; }
6867if test ${ac_cv_prog_ac_ct_AR+y}
6868then :
6869 printf %s "(cached) " >&6
6870else case e in #(
6871 e) if test -n "$ac_ct_AR"; then
6872 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6873else
6874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875for as_dir in $PATH
6876do
6877 IFS=$as_save_IFS
6878 case $as_dir in #(((
6879 '') as_dir=./ ;;
6880 */) ;;
6881 *) as_dir=$as_dir/ ;;
6882 esac
6883 for ac_exec_ext in '' $ac_executable_extensions; do
6884 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6885 ac_cv_prog_ac_ct_AR="$ac_prog"
6886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6887 break 2
6888 fi
6889done
6890 done
6891IFS=$as_save_IFS
6892
6893fi ;;
6894esac
6895fi
6896ac_ct_AR=$ac_cv_prog_ac_ct_AR
6897if test -n "$ac_ct_AR"; then
6898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6899printf "%s\n" "$ac_ct_AR" >&6; }
6900else
6901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6902printf "%s\n" "no" >&6; }
6903fi
6904
6905
6906 test -n "$ac_ct_AR" && break
6907done
6908
6909 if test "x$ac_ct_AR" = x; then
6910 AR="false"
6911 else
6912 case $cross_compiling:$ac_tool_warned in
6913yes:)
6914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6915printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6916ac_tool_warned=yes ;;
6917esac
6918 AR=$ac_ct_AR
6919 fi
6920fi
6921
6922: ${AR=ar}
6923
6924
6925
6926
6927
6928
6929# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6930# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6931# higher priority because thats what people were doing historically (setting
6932# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6933# variable obsoleted/removed.
6934
6935test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6936lt_ar_flags=$AR_FLAGS
6937
6938
6939
6940
6941
6942
6943# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6944# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6945
6946
6947
6948
6949
6950
6951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6952printf %s "checking for archiver @FILE support... " >&6; }
6953if test ${lt_cv_ar_at_file+y}
6954then :
6955 printf %s "(cached) " >&6
6956else case e in #(
6957 e) lt_cv_ar_at_file=no
6958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6959/* end confdefs.h. */
6960
6961int
6962main (void)
6963{
6964
6965 ;
6966 return 0;
6967}
6968_ACEOF
6969if ac_fn_c_try_compile "$LINENO"
6970then :
6971 echo conftest.$ac_objext > conftest.lst
6972 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6974 (eval $lt_ar_try) 2>&5
6975 ac_status=$?
6976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6977 test $ac_status = 0; }
6978 if test 0 -eq "$ac_status"; then
6979 # Ensure the archiver fails upon bogus file names.
6980 rm -f conftest.$ac_objext libconftest.a
6981 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6982 (eval $lt_ar_try) 2>&5
6983 ac_status=$?
6984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6985 test $ac_status = 0; }
6986 if test 0 -ne "$ac_status"; then
6987 lt_cv_ar_at_file=@
6988 fi
6989 fi
6990 rm -f conftest.* libconftest.a
6991
6992fi
6993rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6994 ;;
6995esac
6996fi
6997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6998printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6999
7000if test no = "$lt_cv_ar_at_file"; then
7001 archiver_list_spec=
7002else
7003 archiver_list_spec=$lt_cv_ar_at_file
7004fi
7005
7006
7007
7008
7009
7010
7011
7012if test -n "$ac_tool_prefix"; then
7013 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7014set dummy ${ac_tool_prefix}strip; 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_STRIP+y}
7018then :
7019 printf %s "(cached) " >&6
7020else case e in #(
7021 e) if test -n "$STRIP"; then
7022 ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ac_tool_prefix}strip"
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
7046STRIP=$ac_cv_prog_STRIP
7047if test -n "$STRIP"; then
7048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7049printf "%s\n" "$STRIP" >&6; }
7050else
7051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052printf "%s\n" "no" >&6; }
7053fi
7054
7055
7056fi
7057if test -z "$ac_cv_prog_STRIP"; then
7058 ac_ct_STRIP=$STRIP
7059 # Extract the first word of "strip", so it can be a program name with args.
7060set dummy strip; ac_word=$2
7061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7062printf %s "checking for $ac_word... " >&6; }
7063if test ${ac_cv_prog_ac_ct_STRIP+y}
7064then :
7065 printf %s "(cached) " >&6
7066else case e in #(
7067 e) if test -n "$ac_ct_STRIP"; then
7068 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7069else
7070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071for as_dir in $PATH
7072do
7073 IFS=$as_save_IFS
7074 case $as_dir in #(((
7075 '') as_dir=./ ;;
7076 */) ;;
7077 *) as_dir=$as_dir/ ;;
7078 esac
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7081 ac_cv_prog_ac_ct_STRIP="strip"
7082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7083 break 2
7084 fi
7085done
7086 done
7087IFS=$as_save_IFS
7088
7089fi ;;
7090esac
7091fi
7092ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7093if test -n "$ac_ct_STRIP"; then
7094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7095printf "%s\n" "$ac_ct_STRIP" >&6; }
7096else
7097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7098printf "%s\n" "no" >&6; }
7099fi
7100
7101 if test "x$ac_ct_STRIP" = x; then
7102 STRIP=":"
7103 else
7104 case $cross_compiling:$ac_tool_warned in
7105yes:)
7106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7107printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7108ac_tool_warned=yes ;;
7109esac
7110 STRIP=$ac_ct_STRIP
7111 fi
7112else
7113 STRIP="$ac_cv_prog_STRIP"
7114fi
7115
7116test -z "$STRIP" && STRIP=:
7117
7118
7119
7120
7121
7122
7123if test -n "$ac_tool_prefix"; then
7124 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7125set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7127printf %s "checking for $ac_word... " >&6; }
7128if test ${ac_cv_prog_RANLIB+y}
7129then :
7130 printf %s "(cached) " >&6
7131else case e in #(
7132 e) if test -n "$RANLIB"; then
7133 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7134else
7135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136for as_dir in $PATH
7137do
7138 IFS=$as_save_IFS
7139 case $as_dir in #(((
7140 '') as_dir=./ ;;
7141 */) ;;
7142 *) as_dir=$as_dir/ ;;
7143 esac
7144 for ac_exec_ext in '' $ac_executable_extensions; do
7145 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7146 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7148 break 2
7149 fi
7150done
7151 done
7152IFS=$as_save_IFS
7153
7154fi ;;
7155esac
7156fi
7157RANLIB=$ac_cv_prog_RANLIB
7158if test -n "$RANLIB"; then
7159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7160printf "%s\n" "$RANLIB" >&6; }
7161else
7162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7163printf "%s\n" "no" >&6; }
7164fi
7165
7166
7167fi
7168if test -z "$ac_cv_prog_RANLIB"; then
7169 ac_ct_RANLIB=$RANLIB
7170 # Extract the first word of "ranlib", so it can be a program name with args.
7171set dummy ranlib; ac_word=$2
7172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7173printf %s "checking for $ac_word... " >&6; }
7174if test ${ac_cv_prog_ac_ct_RANLIB+y}
7175then :
7176 printf %s "(cached) " >&6
7177else case e in #(
7178 e) if test -n "$ac_ct_RANLIB"; then
7179 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7180else
7181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182for as_dir in $PATH
7183do
7184 IFS=$as_save_IFS
7185 case $as_dir in #(((
7186 '') as_dir=./ ;;
7187 */) ;;
7188 *) as_dir=$as_dir/ ;;
7189 esac
7190 for ac_exec_ext in '' $ac_executable_extensions; do
7191 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7192 ac_cv_prog_ac_ct_RANLIB="ranlib"
7193 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7194 break 2
7195 fi
7196done
7197 done
7198IFS=$as_save_IFS
7199
7200fi ;;
7201esac
7202fi
7203ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7204if test -n "$ac_ct_RANLIB"; then
7205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7206printf "%s\n" "$ac_ct_RANLIB" >&6; }
7207else
7208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7209printf "%s\n" "no" >&6; }
7210fi
7211
7212 if test "x$ac_ct_RANLIB" = x; then
7213 RANLIB=":"
7214 else
7215 case $cross_compiling:$ac_tool_warned in
7216yes:)
7217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7218printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7219ac_tool_warned=yes ;;
7220esac
7221 RANLIB=$ac_ct_RANLIB
7222 fi
7223else
7224 RANLIB="$ac_cv_prog_RANLIB"
7225fi
7226
7227test -z "$RANLIB" && RANLIB=:
7228
7229
7230
7231
7232
7233
7234# Determine commands to create old-style static archives.
7235old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7236old_postinstall_cmds='chmod 644 $oldlib'
7237old_postuninstall_cmds=
7238
7239if test -n "$RANLIB"; then
7240 case $host_os in
7241 bitrig* | openbsd*)
7242 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7243 ;;
7244 *)
7245 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7246 ;;
7247 esac
7248 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7249fi
7250
7251case $host_os in
7252 darwin*)
7253 lock_old_archive_extraction=yes ;;
7254 *)
7255 lock_old_archive_extraction=no ;;
7256esac
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296# If no C compiler was specified, use CC.
7297LTCC=${LTCC-"$CC"}
7298
7299# If no C compiler flags were specified, use CFLAGS.
7300LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7301
7302# Allow CC to be a program name with arguments.
7303compiler=$CC
7304
7305
7306# Check for command to grab the raw symbol name followed by C symbol from nm.
7307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7308printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7309if test ${lt_cv_sys_global_symbol_pipe+y}
7310then :
7311 printf %s "(cached) " >&6
7312else case e in #(
7313 e)
7314# These are sane defaults that work on at least a few old systems.
7315# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7316
7317# Character class describing NM global symbol codes.
7318symcode='[BCDEGRST]'
7319
7320# Regexp to match symbols that can be accessed directly from C.
7321sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7322
7323# Define system-specific variables.
7324case $host_os in
7325aix*)
7326 symcode='[BCDT]'
7327 ;;
7328cygwin* | mingw* | pw32* | cegcc*)
7329 symcode='[ABCDGISTW]'
7330 ;;
7331hpux*)
7332 if test ia64 = "$host_cpu"; then
7333 symcode='[ABCDEGRST]'
7334 fi
7335 ;;
7336irix* | nonstopux*)
7337 symcode='[BCDEGRST]'
7338 ;;
7339osf*)
7340 symcode='[BCDEGQRST]'
7341 ;;
7342solaris*)
7343 symcode='[BDRT]'
7344 ;;
7345sco3.2v5*)
7346 symcode='[DT]'
7347 ;;
7348sysv4.2uw2*)
7349 symcode='[DT]'
7350 ;;
7351sysv5* | sco5v6* | unixware* | OpenUNIX*)
7352 symcode='[ABDT]'
7353 ;;
7354sysv4)
7355 symcode='[DFNSTU]'
7356 ;;
7357esac
7358
7359# If we're using GNU nm, then use its standard symbol codes.
7360case `$NM -V 2>&1` in
7361*GNU* | *'with BFD'*)
7362 symcode='[ABCDGIRSTW]' ;;
7363esac
7364
7365if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7366 # Gets list of data symbols to import.
7367 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7368 # Adjust the below global symbol transforms to fixup imported variables.
7369 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7370 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7371 lt_c_name_lib_hook="\
7372 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7373 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7374else
7375 # Disable hooks by default.
7376 lt_cv_sys_global_symbol_to_import=
7377 lt_cdecl_hook=
7378 lt_c_name_hook=
7379 lt_c_name_lib_hook=
7380fi
7381
7382# Transform an extracted symbol line into a proper C declaration.
7383# Some systems (esp. on ia64) link data and code symbols differently,
7384# so use this general approach.
7385lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7386$lt_cdecl_hook\
7387" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7388" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7389
7390# Transform an extracted symbol line into symbol name and symbol address
7391lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7392$lt_c_name_hook\
7393" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7394" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7395
7396# Transform an extracted symbol line into symbol name with lib prefix and
7397# symbol address.
7398lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7399$lt_c_name_lib_hook\
7400" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7401" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7402" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7403
7404# Handle CRLF in mingw tool chain
7405opt_cr=
7406case $build_os in
7407mingw*)
7408 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7409 ;;
7410esac
7411
7412# Try without a prefix underscore, then with it.
7413for ac_symprfx in "" "_"; do
7414
7415 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7416 symxfrm="\\1 $ac_symprfx\\2 \\2"
7417
7418 # Write the raw and C identifiers.
7419 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7420 # Fake it for dumpbin and say T for any non-static function,
7421 # D for any global variable and I for any imported variable.
7422 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7423 # which start with @ or ?.
7424 lt_cv_sys_global_symbol_pipe="$AWK '"\
7425" {last_section=section; section=\$ 3};"\
7426" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7427" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7428" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7429" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7430" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7431" \$ 0!~/External *\|/{next};"\
7432" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7433" {if(hide[section]) next};"\
7434" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7435" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7436" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7437" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7438" ' prfx=^$ac_symprfx"
7439 else
7440 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7441 fi
7442 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7443
7444 # Check to see that the pipe works correctly.
7445 pipe_works=no
7446
7447 rm -f conftest*
7448 cat > conftest.$ac_ext <<_LT_EOF
7449#ifdef __cplusplus
7450extern "C" {
7451#endif
7452char nm_test_var;
7453void nm_test_func(void);
7454void nm_test_func(void){}
7455#ifdef __cplusplus
7456}
7457#endif
7458int main(){nm_test_var='a';nm_test_func();return(0);}
7459_LT_EOF
7460
7461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7462 (eval $ac_compile) 2>&5
7463 ac_status=$?
7464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7465 test $ac_status = 0; }; then
7466 # Now try to grab the symbols.
7467 nlist=conftest.nm
7468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7469 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7470 ac_status=$?
7471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7472 test $ac_status = 0; } && test -s "$nlist"; then
7473 # Try sorting and uniquifying the output.
7474 if sort "$nlist" | uniq > "$nlist"T; then
7475 mv -f "$nlist"T "$nlist"
7476 else
7477 rm -f "$nlist"T
7478 fi
7479
7480 # Make sure that we snagged all the symbols we need.
7481 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7482 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7483 cat <<_LT_EOF > conftest.$ac_ext
7484/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7485#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7486/* DATA imports from DLLs on WIN32 can't be const, because runtime
7487 relocations are performed -- see ld's documentation on pseudo-relocs. */
7488# define LT_DLSYM_CONST
7489#elif defined __osf__
7490/* This system does not cope well with relocations in const data. */
7491# define LT_DLSYM_CONST
7492#else
7493# define LT_DLSYM_CONST const
7494#endif
7495
7496#ifdef __cplusplus
7497extern "C" {
7498#endif
7499
7500_LT_EOF
7501 # Now generate the symbol file.
7502 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7503
7504 cat <<_LT_EOF >> conftest.$ac_ext
7505
7506/* The mapping between symbol names and symbols. */
7507LT_DLSYM_CONST struct {
7508 const char *name;
7509 void *address;
7510}
7511lt__PROGRAM__LTX_preloaded_symbols[] =
7512{
7513 { "@PROGRAM@", (void *) 0 },
7514_LT_EOF
7515 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7516 cat <<\_LT_EOF >> conftest.$ac_ext
7517 {0, (void *) 0}
7518};
7519
7520/* This works around a problem in FreeBSD linker */
7521#ifdef FREEBSD_WORKAROUND
7522static const void *lt_preloaded_setup() {
7523 return lt__PROGRAM__LTX_preloaded_symbols;
7524}
7525#endif
7526
7527#ifdef __cplusplus
7528}
7529#endif
7530_LT_EOF
7531 # Now try linking the two files.
7532 mv conftest.$ac_objext conftstm.$ac_objext
7533 lt_globsym_save_LIBS=$LIBS
7534 lt_globsym_save_CFLAGS=$CFLAGS
7535 LIBS=conftstm.$ac_objext
7536 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7538 (eval $ac_link) 2>&5
7539 ac_status=$?
7540 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7541 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7542 pipe_works=yes
7543 fi
7544 LIBS=$lt_globsym_save_LIBS
7545 CFLAGS=$lt_globsym_save_CFLAGS
7546 else
7547 echo "cannot find nm_test_func in $nlist" >&5
7548 fi
7549 else
7550 echo "cannot find nm_test_var in $nlist" >&5
7551 fi
7552 else
7553 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7554 fi
7555 else
7556 echo "$progname: failed program was:" >&5
7557 cat conftest.$ac_ext >&5
7558 fi
7559 rm -rf conftest* conftst*
7560
7561 # Do not use the global_symbol_pipe unless it works.
7562 if test yes = "$pipe_works"; then
7563 break
7564 else
7565 lt_cv_sys_global_symbol_pipe=
7566 fi
7567done
7568 ;;
7569esac
7570fi
7571
7572if test -z "$lt_cv_sys_global_symbol_pipe"; then
7573 lt_cv_sys_global_symbol_to_cdecl=
7574fi
7575if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7577printf "%s\n" "failed" >&6; }
7578else
7579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7580printf "%s\n" "ok" >&6; }
7581fi
7582
7583# Response file support.
7584if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7585 nm_file_list_spec='@'
7586elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7587 nm_file_list_spec='@'
7588fi
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7627printf %s "checking for sysroot... " >&6; }
7628
7629# Check whether --with-sysroot was given.
7630if test ${with_sysroot+y}
7631then :
7632 withval=$with_sysroot;
7633else case e in #(
7634 e) with_sysroot=no ;;
7635esac
7636fi
7637
7638
7639lt_sysroot=
7640case $with_sysroot in #(
7641 yes)
7642 if test yes = "$GCC"; then
7643 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7644 fi
7645 ;; #(
7646 /*)
7647 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7648 ;; #(
7649 no|'')
7650 ;; #(
7651 *)
7652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7653printf "%s\n" "$with_sysroot" >&6; }
7654 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7655 ;;
7656esac
7657
7658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7659printf "%s\n" "${lt_sysroot:-no}" >&6; }
7660
7661
7662
7663
7664
7665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7666printf %s "checking for a working dd... " >&6; }
7667if test ${ac_cv_path_lt_DD+y}
7668then :
7669 printf %s "(cached) " >&6
7670else case e in #(
7671 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7672cat conftest.i conftest.i >conftest2.i
7673: ${lt_DD:=$DD}
7674if test -z "$lt_DD"; then
7675 ac_path_lt_DD_found=false
7676 # Loop through the user's path and test for each of PROGNAME-LIST
7677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678for as_dir in $PATH
7679do
7680 IFS=$as_save_IFS
7681 case $as_dir in #(((
7682 '') as_dir=./ ;;
7683 */) ;;
7684 *) as_dir=$as_dir/ ;;
7685 esac
7686 for ac_prog in dd
7687 do
7688 for ac_exec_ext in '' $ac_executable_extensions; do
7689 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7690 as_fn_executable_p "$ac_path_lt_DD" || continue
7691if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7692 cmp -s conftest.i conftest.out \
7693 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7694fi
7695 $ac_path_lt_DD_found && break 3
7696 done
7697 done
7698 done
7699IFS=$as_save_IFS
7700 if test -z "$ac_cv_path_lt_DD"; then
7701 :
7702 fi
7703else
7704 ac_cv_path_lt_DD=$lt_DD
7705fi
7706
7707rm -f conftest.i conftest2.i conftest.out ;;
7708esac
7709fi
7710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7711printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7712
7713
7714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7715printf %s "checking how to truncate binary pipes... " >&6; }
7716if test ${lt_cv_truncate_bin+y}
7717then :
7718 printf %s "(cached) " >&6
7719else case e in #(
7720 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7721cat conftest.i conftest.i >conftest2.i
7722lt_cv_truncate_bin=
7723if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7724 cmp -s conftest.i conftest.out \
7725 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7726fi
7727rm -f conftest.i conftest2.i conftest.out
7728test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7729esac
7730fi
7731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7732printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7733
7734
7735
7736
7737
7738
7739
7740# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7741func_cc_basename ()
7742{
7743 for cc_temp in $*""; do
7744 case $cc_temp in
7745 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7746 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7747 \-*) ;;
7748 *) break;;
7749 esac
7750 done
7751 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7752}
7753
7754# Check whether --enable-libtool-lock was given.
7755if test ${enable_libtool_lock+y}
7756then :
7757 enableval=$enable_libtool_lock;
7758fi
7759
7760test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7761
7762# Some flags need to be propagated to the compiler or linker for good
7763# libtool support.
7764case $host in
7765ia64-*-hpux*)
7766 # Find out what ABI is being produced by ac_compile, and set mode
7767 # options accordingly.
7768 echo 'int i;' > conftest.$ac_ext
7769 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7770 (eval $ac_compile) 2>&5
7771 ac_status=$?
7772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7773 test $ac_status = 0; }; then
7774 case `$FILECMD conftest.$ac_objext` in
7775 *ELF-32*)
7776 HPUX_IA64_MODE=32
7777 ;;
7778 *ELF-64*)
7779 HPUX_IA64_MODE=64
7780 ;;
7781 esac
7782 fi
7783 rm -rf conftest*
7784 ;;
7785*-*-irix6*)
7786 # Find out what ABI is being produced by ac_compile, and set linker
7787 # options accordingly.
7788 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7789 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7790 (eval $ac_compile) 2>&5
7791 ac_status=$?
7792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7793 test $ac_status = 0; }; then
7794 if test yes = "$lt_cv_prog_gnu_ld"; then
7795 case `$FILECMD conftest.$ac_objext` in
7796 *32-bit*)
7797 LD="${LD-ld} -melf32bsmip"
7798 ;;
7799 *N32*)
7800 LD="${LD-ld} -melf32bmipn32"
7801 ;;
7802 *64-bit*)
7803 LD="${LD-ld} -melf64bmip"
7804 ;;
7805 esac
7806 else
7807 case `$FILECMD conftest.$ac_objext` in
7808 *32-bit*)
7809 LD="${LD-ld} -32"
7810 ;;
7811 *N32*)
7812 LD="${LD-ld} -n32"
7813 ;;
7814 *64-bit*)
7815 LD="${LD-ld} -64"
7816 ;;
7817 esac
7818 fi
7819 fi
7820 rm -rf conftest*
7821 ;;
7822
7823mips64*-*linux*)
7824 # Find out what ABI is being produced by ac_compile, and set linker
7825 # options accordingly.
7826 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7828 (eval $ac_compile) 2>&5
7829 ac_status=$?
7830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7831 test $ac_status = 0; }; then
7832 emul=elf
7833 case `$FILECMD conftest.$ac_objext` in
7834 *32-bit*)
7835 emul="${emul}32"
7836 ;;
7837 *64-bit*)
7838 emul="${emul}64"
7839 ;;
7840 esac
7841 case `$FILECMD conftest.$ac_objext` in
7842 *MSB*)
7843 emul="${emul}btsmip"
7844 ;;
7845 *LSB*)
7846 emul="${emul}ltsmip"
7847 ;;
7848 esac
7849 case `$FILECMD conftest.$ac_objext` in
7850 *N32*)
7851 emul="${emul}n32"
7852 ;;
7853 esac
7854 LD="${LD-ld} -m $emul"
7855 fi
7856 rm -rf conftest*
7857 ;;
7858
7859x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7860s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7861 # Find out what ABI is being produced by ac_compile, and set linker
7862 # options accordingly. Note that the listed cases only cover the
7863 # situations where additional linker options are needed (such as when
7864 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7865 # vice versa); the common cases where no linker options are needed do
7866 # not appear in the list.
7867 echo 'int i;' > conftest.$ac_ext
7868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7869 (eval $ac_compile) 2>&5
7870 ac_status=$?
7871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7872 test $ac_status = 0; }; then
7873 case `$FILECMD conftest.o` in
7874 *32-bit*)
7875 case $host in
7876 x86_64-*kfreebsd*-gnu)
7877 LD="${LD-ld} -m elf_i386_fbsd"
7878 ;;
7879 x86_64-*linux*)
7880 case `$FILECMD conftest.o` in
7881 *x86-64*)
7882 LD="${LD-ld} -m elf32_x86_64"
7883 ;;
7884 *)
7885 LD="${LD-ld} -m elf_i386"
7886 ;;
7887 esac
7888 ;;
7889 powerpc64le-*linux*)
7890 LD="${LD-ld} -m elf32lppclinux"
7891 ;;
7892 powerpc64-*linux*)
7893 LD="${LD-ld} -m elf32ppclinux"
7894 ;;
7895 s390x-*linux*)
7896 LD="${LD-ld} -m elf_s390"
7897 ;;
7898 sparc64-*linux*)
7899 LD="${LD-ld} -m elf32_sparc"
7900 ;;
7901 esac
7902 ;;
7903 *64-bit*)
7904 case $host in
7905 x86_64-*kfreebsd*-gnu)
7906 LD="${LD-ld} -m elf_x86_64_fbsd"
7907 ;;
7908 x86_64-*linux*)
7909 LD="${LD-ld} -m elf_x86_64"
7910 ;;
7911 powerpcle-*linux*)
7912 LD="${LD-ld} -m elf64lppc"
7913 ;;
7914 powerpc-*linux*)
7915 LD="${LD-ld} -m elf64ppc"
7916 ;;
7917 s390*-*linux*|s390*-*tpf*)
7918 LD="${LD-ld} -m elf64_s390"
7919 ;;
7920 sparc*-*linux*)
7921 LD="${LD-ld} -m elf64_sparc"
7922 ;;
7923 esac
7924 ;;
7925 esac
7926 fi
7927 rm -rf conftest*
7928 ;;
7929
7930*-*-sco3.2v5*)
7931 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7932 SAVE_CFLAGS=$CFLAGS
7933 CFLAGS="$CFLAGS -belf"
7934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7935printf %s "checking whether the C compiler needs -belf... " >&6; }
7936if test ${lt_cv_cc_needs_belf+y}
7937then :
7938 printf %s "(cached) " >&6
7939else case e in #(
7940 e) ac_ext=c
7941ac_cpp='$CPP $CPPFLAGS'
7942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7944ac_compiler_gnu=$ac_cv_c_compiler_gnu
7945
7946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7947/* end confdefs.h. */
7948
7949int
7950main (void)
7951{
7952
7953 ;
7954 return 0;
7955}
7956_ACEOF
7957if ac_fn_c_try_link "$LINENO"
7958then :
7959 lt_cv_cc_needs_belf=yes
7960else case e in #(
7961 e) lt_cv_cc_needs_belf=no ;;
7962esac
7963fi
7964rm -f core conftest.err conftest.$ac_objext conftest.beam \
7965 conftest$ac_exeext conftest.$ac_ext
7966 ac_ext=c
7967ac_cpp='$CPP $CPPFLAGS'
7968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7970ac_compiler_gnu=$ac_cv_c_compiler_gnu
7971 ;;
7972esac
7973fi
7974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7975printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7976 if test yes != "$lt_cv_cc_needs_belf"; then
7977 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7978 CFLAGS=$SAVE_CFLAGS
7979 fi
7980 ;;
7981*-*solaris*)
7982 # Find out what ABI is being produced by ac_compile, and set linker
7983 # options accordingly.
7984 echo 'int i;' > conftest.$ac_ext
7985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7986 (eval $ac_compile) 2>&5
7987 ac_status=$?
7988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7989 test $ac_status = 0; }; then
7990 case `$FILECMD conftest.o` in
7991 *64-bit*)
7992 case $lt_cv_prog_gnu_ld in
7993 yes*)
7994 case $host in
7995 i?86-*-solaris*|x86_64-*-solaris*)
7996 LD="${LD-ld} -m elf_x86_64"
7997 ;;
7998 sparc*-*-solaris*)
7999 LD="${LD-ld} -m elf64_sparc"
8000 ;;
8001 esac
8002 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8003 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8004 LD=${LD-ld}_sol2
8005 fi
8006 ;;
8007 *)
8008 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8009 LD="${LD-ld} -64"
8010 fi
8011 ;;
8012 esac
8013 ;;
8014 esac
8015 fi
8016 rm -rf conftest*
8017 ;;
8018esac
8019
8020need_locks=$enable_libtool_lock
8021
8022if test -n "$ac_tool_prefix"; then
8023 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8024set dummy ${ac_tool_prefix}mt; ac_word=$2
8025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8026printf %s "checking for $ac_word... " >&6; }
8027if test ${ac_cv_prog_MANIFEST_TOOL+y}
8028then :
8029 printf %s "(cached) " >&6
8030else case e in #(
8031 e) if test -n "$MANIFEST_TOOL"; then
8032 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8033else
8034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8035for as_dir in $PATH
8036do
8037 IFS=$as_save_IFS
8038 case $as_dir in #(((
8039 '') as_dir=./ ;;
8040 */) ;;
8041 *) as_dir=$as_dir/ ;;
8042 esac
8043 for ac_exec_ext in '' $ac_executable_extensions; do
8044 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8045 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8047 break 2
8048 fi
8049done
8050 done
8051IFS=$as_save_IFS
8052
8053fi ;;
8054esac
8055fi
8056MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8057if test -n "$MANIFEST_TOOL"; then
8058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8059printf "%s\n" "$MANIFEST_TOOL" >&6; }
8060else
8061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062printf "%s\n" "no" >&6; }
8063fi
8064
8065
8066fi
8067if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8068 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8069 # Extract the first word of "mt", so it can be a program name with args.
8070set dummy mt; ac_word=$2
8071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8072printf %s "checking for $ac_word... " >&6; }
8073if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8074then :
8075 printf %s "(cached) " >&6
8076else case e in #(
8077 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8078 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8079else
8080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8081for as_dir in $PATH
8082do
8083 IFS=$as_save_IFS
8084 case $as_dir in #(((
8085 '') as_dir=./ ;;
8086 */) ;;
8087 *) as_dir=$as_dir/ ;;
8088 esac
8089 for ac_exec_ext in '' $ac_executable_extensions; do
8090 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8091 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8093 break 2
8094 fi
8095done
8096 done
8097IFS=$as_save_IFS
8098
8099fi ;;
8100esac
8101fi
8102ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8103if test -n "$ac_ct_MANIFEST_TOOL"; then
8104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8105printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8106else
8107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108printf "%s\n" "no" >&6; }
8109fi
8110
8111 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8112 MANIFEST_TOOL=":"
8113 else
8114 case $cross_compiling:$ac_tool_warned in
8115yes:)
8116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8117printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8118ac_tool_warned=yes ;;
8119esac
8120 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8121 fi
8122else
8123 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8124fi
8125
8126test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8128printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8129if test ${lt_cv_path_mainfest_tool+y}
8130then :
8131 printf %s "(cached) " >&6
8132else case e in #(
8133 e) lt_cv_path_mainfest_tool=no
8134 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8135 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8136 cat conftest.err >&5
8137 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8138 lt_cv_path_mainfest_tool=yes
8139 fi
8140 rm -f conftest* ;;
8141esac
8142fi
8143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8144printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8145if test yes != "$lt_cv_path_mainfest_tool"; then
8146 MANIFEST_TOOL=:
8147fi
8148
8149
8150
8151
8152
8153
8154 case $host_os in
8155 rhapsody* | darwin*)
8156 if test -n "$ac_tool_prefix"; then
8157 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8158set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8160printf %s "checking for $ac_word... " >&6; }
8161if test ${ac_cv_prog_DSYMUTIL+y}
8162then :
8163 printf %s "(cached) " >&6
8164else case e in #(
8165 e) if test -n "$DSYMUTIL"; then
8166 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8167else
8168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8169for as_dir in $PATH
8170do
8171 IFS=$as_save_IFS
8172 case $as_dir in #(((
8173 '') as_dir=./ ;;
8174 */) ;;
8175 *) as_dir=$as_dir/ ;;
8176 esac
8177 for ac_exec_ext in '' $ac_executable_extensions; do
8178 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8179 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8181 break 2
8182 fi
8183done
8184 done
8185IFS=$as_save_IFS
8186
8187fi ;;
8188esac
8189fi
8190DSYMUTIL=$ac_cv_prog_DSYMUTIL
8191if test -n "$DSYMUTIL"; then
8192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8193printf "%s\n" "$DSYMUTIL" >&6; }
8194else
8195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196printf "%s\n" "no" >&6; }
8197fi
8198
8199
8200fi
8201if test -z "$ac_cv_prog_DSYMUTIL"; then
8202 ac_ct_DSYMUTIL=$DSYMUTIL
8203 # Extract the first word of "dsymutil", so it can be a program name with args.
8204set dummy dsymutil; ac_word=$2
8205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8206printf %s "checking for $ac_word... " >&6; }
8207if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8208then :
8209 printf %s "(cached) " >&6
8210else case e in #(
8211 e) if test -n "$ac_ct_DSYMUTIL"; then
8212 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8213else
8214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8215for as_dir in $PATH
8216do
8217 IFS=$as_save_IFS
8218 case $as_dir in #(((
8219 '') as_dir=./ ;;
8220 */) ;;
8221 *) as_dir=$as_dir/ ;;
8222 esac
8223 for ac_exec_ext in '' $ac_executable_extensions; do
8224 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8225 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8227 break 2
8228 fi
8229done
8230 done
8231IFS=$as_save_IFS
8232
8233fi ;;
8234esac
8235fi
8236ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8237if test -n "$ac_ct_DSYMUTIL"; then
8238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8239printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8240else
8241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8242printf "%s\n" "no" >&6; }
8243fi
8244
8245 if test "x$ac_ct_DSYMUTIL" = x; then
8246 DSYMUTIL=":"
8247 else
8248 case $cross_compiling:$ac_tool_warned in
8249yes:)
8250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8251printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8252ac_tool_warned=yes ;;
8253esac
8254 DSYMUTIL=$ac_ct_DSYMUTIL
8255 fi
8256else
8257 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8258fi
8259
8260 if test -n "$ac_tool_prefix"; then
8261 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8262set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8264printf %s "checking for $ac_word... " >&6; }
8265if test ${ac_cv_prog_NMEDIT+y}
8266then :
8267 printf %s "(cached) " >&6
8268else case e in #(
8269 e) if test -n "$NMEDIT"; then
8270 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8271else
8272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8273for as_dir in $PATH
8274do
8275 IFS=$as_save_IFS
8276 case $as_dir in #(((
8277 '') as_dir=./ ;;
8278 */) ;;
8279 *) as_dir=$as_dir/ ;;
8280 esac
8281 for ac_exec_ext in '' $ac_executable_extensions; do
8282 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8283 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8285 break 2
8286 fi
8287done
8288 done
8289IFS=$as_save_IFS
8290
8291fi ;;
8292esac
8293fi
8294NMEDIT=$ac_cv_prog_NMEDIT
8295if test -n "$NMEDIT"; then
8296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8297printf "%s\n" "$NMEDIT" >&6; }
8298else
8299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8300printf "%s\n" "no" >&6; }
8301fi
8302
8303
8304fi
8305if test -z "$ac_cv_prog_NMEDIT"; then
8306 ac_ct_NMEDIT=$NMEDIT
8307 # Extract the first word of "nmedit", so it can be a program name with args.
8308set dummy nmedit; ac_word=$2
8309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8310printf %s "checking for $ac_word... " >&6; }
8311if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8312then :
8313 printf %s "(cached) " >&6
8314else case e in #(
8315 e) if test -n "$ac_ct_NMEDIT"; then
8316 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8317else
8318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8319for as_dir in $PATH
8320do
8321 IFS=$as_save_IFS
8322 case $as_dir in #(((
8323 '') as_dir=./ ;;
8324 */) ;;
8325 *) as_dir=$as_dir/ ;;
8326 esac
8327 for ac_exec_ext in '' $ac_executable_extensions; do
8328 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8329 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8331 break 2
8332 fi
8333done
8334 done
8335IFS=$as_save_IFS
8336
8337fi ;;
8338esac
8339fi
8340ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8341if test -n "$ac_ct_NMEDIT"; then
8342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8343printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8344else
8345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8346printf "%s\n" "no" >&6; }
8347fi
8348
8349 if test "x$ac_ct_NMEDIT" = x; then
8350 NMEDIT=":"
8351 else
8352 case $cross_compiling:$ac_tool_warned in
8353yes:)
8354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8355printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8356ac_tool_warned=yes ;;
8357esac
8358 NMEDIT=$ac_ct_NMEDIT
8359 fi
8360else
8361 NMEDIT="$ac_cv_prog_NMEDIT"
8362fi
8363
8364 if test -n "$ac_tool_prefix"; then
8365 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8366set dummy ${ac_tool_prefix}lipo; ac_word=$2
8367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8368printf %s "checking for $ac_word... " >&6; }
8369if test ${ac_cv_prog_LIPO+y}
8370then :
8371 printf %s "(cached) " >&6
8372else case e in #(
8373 e) if test -n "$LIPO"; then
8374 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8375else
8376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8377for as_dir in $PATH
8378do
8379 IFS=$as_save_IFS
8380 case $as_dir in #(((
8381 '') as_dir=./ ;;
8382 */) ;;
8383 *) as_dir=$as_dir/ ;;
8384 esac
8385 for ac_exec_ext in '' $ac_executable_extensions; do
8386 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8387 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8389 break 2
8390 fi
8391done
8392 done
8393IFS=$as_save_IFS
8394
8395fi ;;
8396esac
8397fi
8398LIPO=$ac_cv_prog_LIPO
8399if test -n "$LIPO"; then
8400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8401printf "%s\n" "$LIPO" >&6; }
8402else
8403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8404printf "%s\n" "no" >&6; }
8405fi
8406
8407
8408fi
8409if test -z "$ac_cv_prog_LIPO"; then
8410 ac_ct_LIPO=$LIPO
8411 # Extract the first word of "lipo", so it can be a program name with args.
8412set dummy lipo; ac_word=$2
8413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8414printf %s "checking for $ac_word... " >&6; }
8415if test ${ac_cv_prog_ac_ct_LIPO+y}
8416then :
8417 printf %s "(cached) " >&6
8418else case e in #(
8419 e) if test -n "$ac_ct_LIPO"; then
8420 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8421else
8422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8423for as_dir in $PATH
8424do
8425 IFS=$as_save_IFS
8426 case $as_dir in #(((
8427 '') as_dir=./ ;;
8428 */) ;;
8429 *) as_dir=$as_dir/ ;;
8430 esac
8431 for ac_exec_ext in '' $ac_executable_extensions; do
8432 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8433 ac_cv_prog_ac_ct_LIPO="lipo"
8434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8435 break 2
8436 fi
8437done
8438 done
8439IFS=$as_save_IFS
8440
8441fi ;;
8442esac
8443fi
8444ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8445if test -n "$ac_ct_LIPO"; then
8446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8447printf "%s\n" "$ac_ct_LIPO" >&6; }
8448else
8449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8450printf "%s\n" "no" >&6; }
8451fi
8452
8453 if test "x$ac_ct_LIPO" = x; then
8454 LIPO=":"
8455 else
8456 case $cross_compiling:$ac_tool_warned in
8457yes:)
8458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8459printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8460ac_tool_warned=yes ;;
8461esac
8462 LIPO=$ac_ct_LIPO
8463 fi
8464else
8465 LIPO="$ac_cv_prog_LIPO"
8466fi
8467
8468 if test -n "$ac_tool_prefix"; then
8469 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8470set dummy ${ac_tool_prefix}otool; ac_word=$2
8471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8472printf %s "checking for $ac_word... " >&6; }
8473if test ${ac_cv_prog_OTOOL+y}
8474then :
8475 printf %s "(cached) " >&6
8476else case e in #(
8477 e) if test -n "$OTOOL"; then
8478 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8479else
8480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8481for as_dir in $PATH
8482do
8483 IFS=$as_save_IFS
8484 case $as_dir in #(((
8485 '') as_dir=./ ;;
8486 */) ;;
8487 *) as_dir=$as_dir/ ;;
8488 esac
8489 for ac_exec_ext in '' $ac_executable_extensions; do
8490 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8491 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8493 break 2
8494 fi
8495done
8496 done
8497IFS=$as_save_IFS
8498
8499fi ;;
8500esac
8501fi
8502OTOOL=$ac_cv_prog_OTOOL
8503if test -n "$OTOOL"; then
8504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8505printf "%s\n" "$OTOOL" >&6; }
8506else
8507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8508printf "%s\n" "no" >&6; }
8509fi
8510
8511
8512fi
8513if test -z "$ac_cv_prog_OTOOL"; then
8514 ac_ct_OTOOL=$OTOOL
8515 # Extract the first word of "otool", so it can be a program name with args.
8516set dummy otool; ac_word=$2
8517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8518printf %s "checking for $ac_word... " >&6; }
8519if test ${ac_cv_prog_ac_ct_OTOOL+y}
8520then :
8521 printf %s "(cached) " >&6
8522else case e in #(
8523 e) if test -n "$ac_ct_OTOOL"; then
8524 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8525else
8526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8527for as_dir in $PATH
8528do
8529 IFS=$as_save_IFS
8530 case $as_dir in #(((
8531 '') as_dir=./ ;;
8532 */) ;;
8533 *) as_dir=$as_dir/ ;;
8534 esac
8535 for ac_exec_ext in '' $ac_executable_extensions; do
8536 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8537 ac_cv_prog_ac_ct_OTOOL="otool"
8538 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8539 break 2
8540 fi
8541done
8542 done
8543IFS=$as_save_IFS
8544
8545fi ;;
8546esac
8547fi
8548ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8549if test -n "$ac_ct_OTOOL"; then
8550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8551printf "%s\n" "$ac_ct_OTOOL" >&6; }
8552else
8553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8554printf "%s\n" "no" >&6; }
8555fi
8556
8557 if test "x$ac_ct_OTOOL" = x; then
8558 OTOOL=":"
8559 else
8560 case $cross_compiling:$ac_tool_warned in
8561yes:)
8562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8563printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8564ac_tool_warned=yes ;;
8565esac
8566 OTOOL=$ac_ct_OTOOL
8567 fi
8568else
8569 OTOOL="$ac_cv_prog_OTOOL"
8570fi
8571
8572 if test -n "$ac_tool_prefix"; then
8573 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8574set dummy ${ac_tool_prefix}otool64; ac_word=$2
8575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8576printf %s "checking for $ac_word... " >&6; }
8577if test ${ac_cv_prog_OTOOL64+y}
8578then :
8579 printf %s "(cached) " >&6
8580else case e in #(
8581 e) if test -n "$OTOOL64"; then
8582 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8583else
8584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8585for as_dir in $PATH
8586do
8587 IFS=$as_save_IFS
8588 case $as_dir in #(((
8589 '') as_dir=./ ;;
8590 */) ;;
8591 *) as_dir=$as_dir/ ;;
8592 esac
8593 for ac_exec_ext in '' $ac_executable_extensions; do
8594 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8595 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8597 break 2
8598 fi
8599done
8600 done
8601IFS=$as_save_IFS
8602
8603fi ;;
8604esac
8605fi
8606OTOOL64=$ac_cv_prog_OTOOL64
8607if test -n "$OTOOL64"; then
8608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8609printf "%s\n" "$OTOOL64" >&6; }
8610else
8611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8612printf "%s\n" "no" >&6; }
8613fi
8614
8615
8616fi
8617if test -z "$ac_cv_prog_OTOOL64"; then
8618 ac_ct_OTOOL64=$OTOOL64
8619 # Extract the first word of "otool64", so it can be a program name with args.
8620set dummy otool64; ac_word=$2
8621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8622printf %s "checking for $ac_word... " >&6; }
8623if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8624then :
8625 printf %s "(cached) " >&6
8626else case e in #(
8627 e) if test -n "$ac_ct_OTOOL64"; then
8628 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8629else
8630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8631for as_dir in $PATH
8632do
8633 IFS=$as_save_IFS
8634 case $as_dir in #(((
8635 '') as_dir=./ ;;
8636 */) ;;
8637 *) as_dir=$as_dir/ ;;
8638 esac
8639 for ac_exec_ext in '' $ac_executable_extensions; do
8640 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8641 ac_cv_prog_ac_ct_OTOOL64="otool64"
8642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8643 break 2
8644 fi
8645done
8646 done
8647IFS=$as_save_IFS
8648
8649fi ;;
8650esac
8651fi
8652ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8653if test -n "$ac_ct_OTOOL64"; then
8654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8655printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8656else
8657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8658printf "%s\n" "no" >&6; }
8659fi
8660
8661 if test "x$ac_ct_OTOOL64" = x; then
8662 OTOOL64=":"
8663 else
8664 case $cross_compiling:$ac_tool_warned in
8665yes:)
8666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8667printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8668ac_tool_warned=yes ;;
8669esac
8670 OTOOL64=$ac_ct_OTOOL64
8671 fi
8672else
8673 OTOOL64="$ac_cv_prog_OTOOL64"
8674fi
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8703printf %s "checking for -single_module linker flag... " >&6; }
8704if test ${lt_cv_apple_cc_single_mod+y}
8705then :
8706 printf %s "(cached) " >&6
8707else case e in #(
8708 e) lt_cv_apple_cc_single_mod=no
8709 if test -z "$LT_MULTI_MODULE"; then
8710 # By default we will add the -single_module flag. You can override
8711 # by either setting the environment variable LT_MULTI_MODULE
8712 # non-empty at configure time, or by adding -multi_module to the
8713 # link flags.
8714 rm -rf libconftest.dylib*
8715 echo "int foo(void){return 1;}" > conftest.c
8716 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8717-dynamiclib -Wl,-single_module conftest.c" >&5
8718 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8719 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8720 _lt_result=$?
8721 # If there is a non-empty error log, and "single_module"
8722 # appears in it, assume the flag caused a linker warning
8723 if test -s conftest.err && $GREP single_module conftest.err; then
8724 cat conftest.err >&5
8725 # Otherwise, if the output was created with a 0 exit code from
8726 # the compiler, it worked.
8727 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8728 lt_cv_apple_cc_single_mod=yes
8729 else
8730 cat conftest.err >&5
8731 fi
8732 rm -rf libconftest.dylib*
8733 rm -f conftest.*
8734 fi ;;
8735esac
8736fi
8737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8738printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8739
8740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8741printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8742if test ${lt_cv_ld_exported_symbols_list+y}
8743then :
8744 printf %s "(cached) " >&6
8745else case e in #(
8746 e) lt_cv_ld_exported_symbols_list=no
8747 save_LDFLAGS=$LDFLAGS
8748 echo "_main" > conftest.sym
8749 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8751/* end confdefs.h. */
8752
8753int
8754main (void)
8755{
8756
8757 ;
8758 return 0;
8759}
8760_ACEOF
8761if ac_fn_c_try_link "$LINENO"
8762then :
8763 lt_cv_ld_exported_symbols_list=yes
8764else case e in #(
8765 e) lt_cv_ld_exported_symbols_list=no ;;
8766esac
8767fi
8768rm -f core conftest.err conftest.$ac_objext conftest.beam \
8769 conftest$ac_exeext conftest.$ac_ext
8770 LDFLAGS=$save_LDFLAGS
8771 ;;
8772esac
8773fi
8774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8775printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8776
8777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8778printf %s "checking for -force_load linker flag... " >&6; }
8779if test ${lt_cv_ld_force_load+y}
8780then :
8781 printf %s "(cached) " >&6
8782else case e in #(
8783 e) lt_cv_ld_force_load=no
8784 cat > conftest.c << _LT_EOF
8785int forced_loaded() { return 2;}
8786_LT_EOF
8787 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8788 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8789 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8790 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8791 echo "$RANLIB libconftest.a" >&5
8792 $RANLIB libconftest.a 2>&5
8793 cat > conftest.c << _LT_EOF
8794int main() { return 0;}
8795_LT_EOF
8796 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8797 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8798 _lt_result=$?
8799 if test -s conftest.err && $GREP force_load conftest.err; then
8800 cat conftest.err >&5
8801 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8802 lt_cv_ld_force_load=yes
8803 else
8804 cat conftest.err >&5
8805 fi
8806 rm -f conftest.err libconftest.a conftest conftest.c
8807 rm -rf conftest.dSYM
8808 ;;
8809esac
8810fi
8811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8812printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8813 case $host_os in
8814 rhapsody* | darwin1.[012])
8815 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8816 darwin1.*)
8817 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8818 darwin*)
8819 case $MACOSX_DEPLOYMENT_TARGET,$host in
8820 10.[012],*|,*powerpc*-darwin[5-8]*)
8821 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8822 *)
8823 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8824 esac
8825 ;;
8826 esac
8827 if test yes = "$lt_cv_apple_cc_single_mod"; then
8828 _lt_dar_single_mod='$single_module'
8829 fi
8830 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8831 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8832 else
8833 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8834 fi
8835 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8836 _lt_dsymutil='~$DSYMUTIL $lib || :'
8837 else
8838 _lt_dsymutil=
8839 fi
8840 ;;
8841 esac
8842
8843# func_munge_path_list VARIABLE PATH
8844# -----------------------------------
8845# VARIABLE is name of variable containing _space_ separated list of
8846# directories to be munged by the contents of PATH, which is string
8847# having a format:
8848# "DIR[:DIR]:"
8849# string "DIR[ DIR]" will be prepended to VARIABLE
8850# ":DIR[:DIR]"
8851# string "DIR[ DIR]" will be appended to VARIABLE
8852# "DIRP[:DIRP]::[DIRA:]DIRA"
8853# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8854# "DIRA[ DIRA]" will be appended to VARIABLE
8855# "DIR[:DIR]"
8856# VARIABLE will be replaced by "DIR[ DIR]"
8857func_munge_path_list ()
8858{
8859 case x$2 in
8860 x)
8861 ;;
8862 *:)
8863 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8864 ;;
8865 x:*)
8866 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8867 ;;
8868 *::*)
8869 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8870 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8871 ;;
8872 *)
8873 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8874 ;;
8875 esac
8876}
8877
8878ac_header= ac_cache=
8879for ac_item in $ac_header_c_list
8880do
8881 if test $ac_cache; then
8882 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8883 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8884 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8885 fi
8886 ac_header= ac_cache=
8887 elif test $ac_header; then
8888 ac_cache=$ac_item
8889 else
8890 ac_header=$ac_item
8891 fi
8892done
8893
8894
8895
8896
8897
8898
8899
8900
8901if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8902then :
8903
8904printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8905
8906fi
8907ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8908"
8909if test "x$ac_cv_header_dlfcn_h" = xyes
8910then :
8911 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8912
8913fi
8914
8915
8916
8917
8918
8919# Set options
8920enable_win32_dll=yes
8921
8922case $host in
8923*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8924 if test -n "$ac_tool_prefix"; then
8925 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8926set dummy ${ac_tool_prefix}as; ac_word=$2
8927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8928printf %s "checking for $ac_word... " >&6; }
8929if test ${ac_cv_prog_AS+y}
8930then :
8931 printf %s "(cached) " >&6
8932else case e in #(
8933 e) if test -n "$AS"; then
8934 ac_cv_prog_AS="$AS" # Let the user override the test.
8935else
8936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8937for as_dir in $PATH
8938do
8939 IFS=$as_save_IFS
8940 case $as_dir in #(((
8941 '') as_dir=./ ;;
8942 */) ;;
8943 *) as_dir=$as_dir/ ;;
8944 esac
8945 for ac_exec_ext in '' $ac_executable_extensions; do
8946 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8947 ac_cv_prog_AS="${ac_tool_prefix}as"
8948 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8949 break 2
8950 fi
8951done
8952 done
8953IFS=$as_save_IFS
8954
8955fi ;;
8956esac
8957fi
8958AS=$ac_cv_prog_AS
8959if test -n "$AS"; then
8960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8961printf "%s\n" "$AS" >&6; }
8962else
8963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8964printf "%s\n" "no" >&6; }
8965fi
8966
8967
8968fi
8969if test -z "$ac_cv_prog_AS"; then
8970 ac_ct_AS=$AS
8971 # Extract the first word of "as", so it can be a program name with args.
8972set dummy as; ac_word=$2
8973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8974printf %s "checking for $ac_word... " >&6; }
8975if test ${ac_cv_prog_ac_ct_AS+y}
8976then :
8977 printf %s "(cached) " >&6
8978else case e in #(
8979 e) if test -n "$ac_ct_AS"; then
8980 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8981else
8982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8983for as_dir in $PATH
8984do
8985 IFS=$as_save_IFS
8986 case $as_dir in #(((
8987 '') as_dir=./ ;;
8988 */) ;;
8989 *) as_dir=$as_dir/ ;;
8990 esac
8991 for ac_exec_ext in '' $ac_executable_extensions; do
8992 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8993 ac_cv_prog_ac_ct_AS="as"
8994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8995 break 2
8996 fi
8997done
8998 done
8999IFS=$as_save_IFS
9000
9001fi ;;
9002esac
9003fi
9004ac_ct_AS=$ac_cv_prog_ac_ct_AS
9005if test -n "$ac_ct_AS"; then
9006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9007printf "%s\n" "$ac_ct_AS" >&6; }
9008else
9009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9010printf "%s\n" "no" >&6; }
9011fi
9012
9013 if test "x$ac_ct_AS" = x; then
9014 AS="false"
9015 else
9016 case $cross_compiling:$ac_tool_warned in
9017yes:)
9018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9019printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9020ac_tool_warned=yes ;;
9021esac
9022 AS=$ac_ct_AS
9023 fi
9024else
9025 AS="$ac_cv_prog_AS"
9026fi
9027
9028 if test -n "$ac_tool_prefix"; then
9029 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9030set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9032printf %s "checking for $ac_word... " >&6; }
9033if test ${ac_cv_prog_DLLTOOL+y}
9034then :
9035 printf %s "(cached) " >&6
9036else case e in #(
9037 e) if test -n "$DLLTOOL"; then
9038 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9039else
9040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9041for as_dir in $PATH
9042do
9043 IFS=$as_save_IFS
9044 case $as_dir in #(((
9045 '') as_dir=./ ;;
9046 */) ;;
9047 *) as_dir=$as_dir/ ;;
9048 esac
9049 for ac_exec_ext in '' $ac_executable_extensions; do
9050 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9051 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9052 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9053 break 2
9054 fi
9055done
9056 done
9057IFS=$as_save_IFS
9058
9059fi ;;
9060esac
9061fi
9062DLLTOOL=$ac_cv_prog_DLLTOOL
9063if test -n "$DLLTOOL"; then
9064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9065printf "%s\n" "$DLLTOOL" >&6; }
9066else
9067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9068printf "%s\n" "no" >&6; }
9069fi
9070
9071
9072fi
9073if test -z "$ac_cv_prog_DLLTOOL"; then
9074 ac_ct_DLLTOOL=$DLLTOOL
9075 # Extract the first word of "dlltool", so it can be a program name with args.
9076set dummy dlltool; ac_word=$2
9077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9078printf %s "checking for $ac_word... " >&6; }
9079if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9080then :
9081 printf %s "(cached) " >&6
9082else case e in #(
9083 e) if test -n "$ac_ct_DLLTOOL"; then
9084 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9085else
9086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9087for as_dir in $PATH
9088do
9089 IFS=$as_save_IFS
9090 case $as_dir in #(((
9091 '') as_dir=./ ;;
9092 */) ;;
9093 *) as_dir=$as_dir/ ;;
9094 esac
9095 for ac_exec_ext in '' $ac_executable_extensions; do
9096 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9097 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9099 break 2
9100 fi
9101done
9102 done
9103IFS=$as_save_IFS
9104
9105fi ;;
9106esac
9107fi
9108ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9109if test -n "$ac_ct_DLLTOOL"; then
9110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9111printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9112else
9113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9114printf "%s\n" "no" >&6; }
9115fi
9116
9117 if test "x$ac_ct_DLLTOOL" = x; then
9118 DLLTOOL="false"
9119 else
9120 case $cross_compiling:$ac_tool_warned in
9121yes:)
9122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9123printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9124ac_tool_warned=yes ;;
9125esac
9126 DLLTOOL=$ac_ct_DLLTOOL
9127 fi
9128else
9129 DLLTOOL="$ac_cv_prog_DLLTOOL"
9130fi
9131
9132 if test -n "$ac_tool_prefix"; then
9133 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9134set dummy ${ac_tool_prefix}objdump; ac_word=$2
9135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9136printf %s "checking for $ac_word... " >&6; }
9137if test ${ac_cv_prog_OBJDUMP+y}
9138then :
9139 printf %s "(cached) " >&6
9140else case e in #(
9141 e) if test -n "$OBJDUMP"; then
9142 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9143else
9144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9145for as_dir in $PATH
9146do
9147 IFS=$as_save_IFS
9148 case $as_dir in #(((
9149 '') as_dir=./ ;;
9150 */) ;;
9151 *) as_dir=$as_dir/ ;;
9152 esac
9153 for ac_exec_ext in '' $ac_executable_extensions; do
9154 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9155 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9156 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9157 break 2
9158 fi
9159done
9160 done
9161IFS=$as_save_IFS
9162
9163fi ;;
9164esac
9165fi
9166OBJDUMP=$ac_cv_prog_OBJDUMP
9167if test -n "$OBJDUMP"; then
9168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9169printf "%s\n" "$OBJDUMP" >&6; }
9170else
9171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9172printf "%s\n" "no" >&6; }
9173fi
9174
9175
9176fi
9177if test -z "$ac_cv_prog_OBJDUMP"; then
9178 ac_ct_OBJDUMP=$OBJDUMP
9179 # Extract the first word of "objdump", so it can be a program name with args.
9180set dummy objdump; ac_word=$2
9181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9182printf %s "checking for $ac_word... " >&6; }
9183if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9184then :
9185 printf %s "(cached) " >&6
9186else case e in #(
9187 e) if test -n "$ac_ct_OBJDUMP"; then
9188 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9189else
9190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9191for as_dir in $PATH
9192do
9193 IFS=$as_save_IFS
9194 case $as_dir in #(((
9195 '') as_dir=./ ;;
9196 */) ;;
9197 *) as_dir=$as_dir/ ;;
9198 esac
9199 for ac_exec_ext in '' $ac_executable_extensions; do
9200 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9201 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9202 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9203 break 2
9204 fi
9205done
9206 done
9207IFS=$as_save_IFS
9208
9209fi ;;
9210esac
9211fi
9212ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9213if test -n "$ac_ct_OBJDUMP"; then
9214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9215printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9216else
9217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9218printf "%s\n" "no" >&6; }
9219fi
9220
9221 if test "x$ac_ct_OBJDUMP" = x; then
9222 OBJDUMP="false"
9223 else
9224 case $cross_compiling:$ac_tool_warned in
9225yes:)
9226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9227printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9228ac_tool_warned=yes ;;
9229esac
9230 OBJDUMP=$ac_ct_OBJDUMP
9231 fi
9232else
9233 OBJDUMP="$ac_cv_prog_OBJDUMP"
9234fi
9235
9236 ;;
9237esac
9238
9239test -z "$AS" && AS=as
9240
9241
9242
9243
9244
9245test -z "$DLLTOOL" && DLLTOOL=dlltool
9246
9247
9248
9249
9250
9251test -z "$OBJDUMP" && OBJDUMP=objdump
9252
9253
9254
9255
9256
9257
9258
9259 enable_dlopen=no
9260
9261
9262
9263 # Check whether --enable-shared was given.
9264if test ${enable_shared+y}
9265then :
9266 enableval=$enable_shared; p=${PACKAGE-default}
9267 case $enableval in
9268 yes) enable_shared=yes ;;
9269 no) enable_shared=no ;;
9270 *)
9271 enable_shared=no
9272 # Look at the argument we got. We use all the common list separators.
9273 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9274 for pkg in $enableval; do
9275 IFS=$lt_save_ifs
9276 if test "X$pkg" = "X$p"; then
9277 enable_shared=yes
9278 fi
9279 done
9280 IFS=$lt_save_ifs
9281 ;;
9282 esac
9283else case e in #(
9284 e) enable_shared=yes ;;
9285esac
9286fi
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296 # Check whether --enable-static was given.
9297if test ${enable_static+y}
9298then :
9299 enableval=$enable_static; p=${PACKAGE-default}
9300 case $enableval in
9301 yes) enable_static=yes ;;
9302 no) enable_static=no ;;
9303 *)
9304 enable_static=no
9305 # Look at the argument we got. We use all the common list separators.
9306 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9307 for pkg in $enableval; do
9308 IFS=$lt_save_ifs
9309 if test "X$pkg" = "X$p"; then
9310 enable_static=yes
9311 fi
9312 done
9313 IFS=$lt_save_ifs
9314 ;;
9315 esac
9316else case e in #(
9317 e) enable_static=yes ;;
9318esac
9319fi
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330# Check whether --with-pic was given.
9331if test ${with_pic+y}
9332then :
9333 withval=$with_pic; lt_p=${PACKAGE-default}
9334 case $withval in
9335 yes|no) pic_mode=$withval ;;
9336 *)
9337 pic_mode=default
9338 # Look at the argument we got. We use all the common list separators.
9339 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9340 for lt_pkg in $withval; do
9341 IFS=$lt_save_ifs
9342 if test "X$lt_pkg" = "X$lt_p"; then
9343 pic_mode=yes
9344 fi
9345 done
9346 IFS=$lt_save_ifs
9347 ;;
9348 esac
9349else case e in #(
9350 e) pic_mode=default ;;
9351esac
9352fi
9353
9354
9355
9356
9357
9358
9359
9360
9361 # Check whether --enable-fast-install was given.
9362if test ${enable_fast_install+y}
9363then :
9364 enableval=$enable_fast_install; p=${PACKAGE-default}
9365 case $enableval in
9366 yes) enable_fast_install=yes ;;
9367 no) enable_fast_install=no ;;
9368 *)
9369 enable_fast_install=no
9370 # Look at the argument we got. We use all the common list separators.
9371 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9372 for pkg in $enableval; do
9373 IFS=$lt_save_ifs
9374 if test "X$pkg" = "X$p"; then
9375 enable_fast_install=yes
9376 fi
9377 done
9378 IFS=$lt_save_ifs
9379 ;;
9380 esac
9381else case e in #(
9382 e) enable_fast_install=yes ;;
9383esac
9384fi
9385
9386
9387
9388
9389
9390
9391
9392
9393 shared_archive_member_spec=
9394case $host,$enable_shared in
9395power*-*-aix[5-9]*,yes)
9396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9397printf %s "checking which variant of shared library versioning to provide... " >&6; }
9398
9399# Check whether --with-aix-soname was given.
9400if test ${with_aix_soname+y}
9401then :
9402 withval=$with_aix_soname; case $withval in
9403 aix|svr4|both)
9404 ;;
9405 *)
9406 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9407 ;;
9408 esac
9409 lt_cv_with_aix_soname=$with_aix_soname
9410else case e in #(
9411 e) if test ${lt_cv_with_aix_soname+y}
9412then :
9413 printf %s "(cached) " >&6
9414else case e in #(
9415 e) lt_cv_with_aix_soname=aix ;;
9416esac
9417fi
9418
9419 with_aix_soname=$lt_cv_with_aix_soname ;;
9420esac
9421fi
9422
9423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9424printf "%s\n" "$with_aix_soname" >&6; }
9425 if test aix != "$with_aix_soname"; then
9426 # For the AIX way of multilib, we name the shared archive member
9427 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9428 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9429 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9430 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9431 if test 64 = "${OBJECT_MODE-32}"; then
9432 shared_archive_member_spec=shr_64
9433 else
9434 shared_archive_member_spec=shr
9435 fi
9436 fi
9437 ;;
9438*)
9439 with_aix_soname=aix
9440 ;;
9441esac
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452# This can be used to rebuild libtool when needed
9453LIBTOOL_DEPS=$ltmain
9454
9455# Always use our own libtool.
9456LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487test -z "$LN_S" && LN_S="ln -s"
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502if test -n "${ZSH_VERSION+set}"; then
9503 setopt NO_GLOB_SUBST
9504fi
9505
9506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9507printf %s "checking for objdir... " >&6; }
9508if test ${lt_cv_objdir+y}
9509then :
9510 printf %s "(cached) " >&6
9511else case e in #(
9512 e) rm -f .libs 2>/dev/null
9513mkdir .libs 2>/dev/null
9514if test -d .libs; then
9515 lt_cv_objdir=.libs
9516else
9517 # MS-DOS does not allow filenames that begin with a dot.
9518 lt_cv_objdir=_libs
9519fi
9520rmdir .libs 2>/dev/null ;;
9521esac
9522fi
9523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9524printf "%s\n" "$lt_cv_objdir" >&6; }
9525objdir=$lt_cv_objdir
9526
9527
9528
9529
9530
9531printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9532
9533
9534
9535
9536case $host_os in
9537aix3*)
9538 # AIX sometimes has problems with the GCC collect2 program. For some
9539 # reason, if we set the COLLECT_NAMES environment variable, the problems
9540 # vanish in a puff of smoke.
9541 if test set != "${COLLECT_NAMES+set}"; then
9542 COLLECT_NAMES=
9543 export COLLECT_NAMES
9544 fi
9545 ;;
9546esac
9547
9548# Global variables:
9549ofile=libtool
9550can_build_shared=yes
9551
9552# All known linkers require a '.a' archive for static linking (except MSVC and
9553# ICC, which need '.lib').
9554libext=a
9555
9556with_gnu_ld=$lt_cv_prog_gnu_ld
9557
9558old_CC=$CC
9559old_CFLAGS=$CFLAGS
9560
9561# Set sane defaults for various variables
9562test -z "$CC" && CC=cc
9563test -z "$LTCC" && LTCC=$CC
9564test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9565test -z "$LD" && LD=ld
9566test -z "$ac_objext" && ac_objext=o
9567
9568func_cc_basename $compiler
9569cc_basename=$func_cc_basename_result
9570
9571
9572# Only perform the check for file, if the check method requires it
9573test -z "$MAGIC_CMD" && MAGIC_CMD=file
9574case $deplibs_check_method in
9575file_magic*)
9576 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9578printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9579if test ${lt_cv_path_MAGIC_CMD+y}
9580then :
9581 printf %s "(cached) " >&6
9582else case e in #(
9583 e) case $MAGIC_CMD in
9584[\\/*] | ?:[\\/]*)
9585 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9586 ;;
9587*)
9588 lt_save_MAGIC_CMD=$MAGIC_CMD
9589 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9590 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9591 for ac_dir in $ac_dummy; do
9592 IFS=$lt_save_ifs
9593 test -z "$ac_dir" && ac_dir=.
9594 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9595 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9596 if test -n "$file_magic_test_file"; then
9597 case $deplibs_check_method in
9598 "file_magic "*)
9599 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9600 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9601 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9602 $EGREP "$file_magic_regex" > /dev/null; then
9603 :
9604 else
9605 cat <<_LT_EOF 1>&2
9606
9607*** Warning: the command libtool uses to detect shared libraries,
9608*** $file_magic_cmd, produces output that libtool cannot recognize.
9609*** The result is that libtool may fail to recognize shared libraries
9610*** as such. This will affect the creation of libtool libraries that
9611*** depend on shared libraries, but programs linked with such libtool
9612*** libraries will work regardless of this problem. Nevertheless, you
9613*** may want to report the problem to your system manager and/or to
9614*** bug-libtool@gnu.org
9615
9616_LT_EOF
9617 fi ;;
9618 esac
9619 fi
9620 break
9621 fi
9622 done
9623 IFS=$lt_save_ifs
9624 MAGIC_CMD=$lt_save_MAGIC_CMD
9625 ;;
9626esac ;;
9627esac
9628fi
9629
9630MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9631if test -n "$MAGIC_CMD"; then
9632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9633printf "%s\n" "$MAGIC_CMD" >&6; }
9634else
9635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9636printf "%s\n" "no" >&6; }
9637fi
9638
9639
9640
9641
9642
9643if test -z "$lt_cv_path_MAGIC_CMD"; then
9644 if test -n "$ac_tool_prefix"; then
9645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9646printf %s "checking for file... " >&6; }
9647if test ${lt_cv_path_MAGIC_CMD+y}
9648then :
9649 printf %s "(cached) " >&6
9650else case e in #(
9651 e) case $MAGIC_CMD in
9652[\\/*] | ?:[\\/]*)
9653 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9654 ;;
9655*)
9656 lt_save_MAGIC_CMD=$MAGIC_CMD
9657 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9658 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9659 for ac_dir in $ac_dummy; do
9660 IFS=$lt_save_ifs
9661 test -z "$ac_dir" && ac_dir=.
9662 if test -f "$ac_dir/file"; then
9663 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9664 if test -n "$file_magic_test_file"; then
9665 case $deplibs_check_method in
9666 "file_magic "*)
9667 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9668 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9669 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9670 $EGREP "$file_magic_regex" > /dev/null; then
9671 :
9672 else
9673 cat <<_LT_EOF 1>&2
9674
9675*** Warning: the command libtool uses to detect shared libraries,
9676*** $file_magic_cmd, produces output that libtool cannot recognize.
9677*** The result is that libtool may fail to recognize shared libraries
9678*** as such. This will affect the creation of libtool libraries that
9679*** depend on shared libraries, but programs linked with such libtool
9680*** libraries will work regardless of this problem. Nevertheless, you
9681*** may want to report the problem to your system manager and/or to
9682*** bug-libtool@gnu.org
9683
9684_LT_EOF
9685 fi ;;
9686 esac
9687 fi
9688 break
9689 fi
9690 done
9691 IFS=$lt_save_ifs
9692 MAGIC_CMD=$lt_save_MAGIC_CMD
9693 ;;
9694esac ;;
9695esac
9696fi
9697
9698MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9699if test -n "$MAGIC_CMD"; then
9700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9701printf "%s\n" "$MAGIC_CMD" >&6; }
9702else
9703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9704printf "%s\n" "no" >&6; }
9705fi
9706
9707
9708 else
9709 MAGIC_CMD=:
9710 fi
9711fi
9712
9713 fi
9714 ;;
9715esac
9716
9717# Use C for the default configuration in the libtool script
9718
9719lt_save_CC=$CC
9720ac_ext=c
9721ac_cpp='$CPP $CPPFLAGS'
9722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9724ac_compiler_gnu=$ac_cv_c_compiler_gnu
9725
9726
9727# Source file extension for C test sources.
9728ac_ext=c
9729
9730# Object file extension for compiled C test sources.
9731objext=o
9732objext=$objext
9733
9734# Code to be used in simple compile tests
9735lt_simple_compile_test_code="int some_variable = 0;"
9736
9737# Code to be used in simple link tests
9738lt_simple_link_test_code='int main(){return(0);}'
9739
9740
9741
9742
9743
9744
9745
9746# If no C compiler was specified, use CC.
9747LTCC=${LTCC-"$CC"}
9748
9749# If no C compiler flags were specified, use CFLAGS.
9750LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9751
9752# Allow CC to be a program name with arguments.
9753compiler=$CC
9754
9755# Save the default compiler, since it gets overwritten when the other
9756# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9757compiler_DEFAULT=$CC
9758
9759# save warnings/boilerplate of simple test code
9760ac_outfile=conftest.$ac_objext
9761echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9762eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9763_lt_compiler_boilerplate=`cat conftest.err`
9764$RM conftest*
9765
9766ac_outfile=conftest.$ac_objext
9767echo "$lt_simple_link_test_code" >conftest.$ac_ext
9768eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9769_lt_linker_boilerplate=`cat conftest.err`
9770$RM -r conftest*
9771
9772
9773## CAVEAT EMPTOR:
9774## There is no encapsulation within the following macros, do not change
9775## the running order or otherwise move them around unless you know exactly
9776## what you are doing...
9777if test -n "$compiler"; then
9778
9779lt_prog_compiler_no_builtin_flag=
9780
9781if test yes = "$GCC"; then
9782 case $cc_basename in
9783 nvcc*)
9784 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9785 *)
9786 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9787 esac
9788
9789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9790printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9791if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9792then :
9793 printf %s "(cached) " >&6
9794else case e in #(
9795 e) lt_cv_prog_compiler_rtti_exceptions=no
9796 ac_outfile=conftest.$ac_objext
9797 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9798 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9799 # Insert the option either (1) after the last *FLAGS variable, or
9800 # (2) before a word containing "conftest.", or (3) at the end.
9801 # Note that $ac_compile itself does not contain backslashes and begins
9802 # with a dollar sign (not a hyphen), so the echo should work correctly.
9803 # The option is referenced via a variable to avoid confusing sed.
9804 lt_compile=`echo "$ac_compile" | $SED \
9805 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9806 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9807 -e 's:$: $lt_compiler_flag:'`
9808 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9809 (eval "$lt_compile" 2>conftest.err)
9810 ac_status=$?
9811 cat conftest.err >&5
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 if (exit $ac_status) && test -s "$ac_outfile"; then
9814 # The compiler can only warn and ignore the option if not recognized
9815 # So say no if there are warnings other than the usual output.
9816 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9817 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9818 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9819 lt_cv_prog_compiler_rtti_exceptions=yes
9820 fi
9821 fi
9822 $RM conftest*
9823 ;;
9824esac
9825fi
9826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9827printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9828
9829if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9830 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9831else
9832 :
9833fi
9834
9835fi
9836
9837
9838
9839
9840
9841
9842 lt_prog_compiler_wl=
9843lt_prog_compiler_pic=
9844lt_prog_compiler_static=
9845
9846
9847 if test yes = "$GCC"; then
9848 lt_prog_compiler_wl='-Wl,'
9849 lt_prog_compiler_static='-static'
9850
9851 case $host_os in
9852 aix*)
9853 # All AIX code is PIC.
9854 if test ia64 = "$host_cpu"; then
9855 # AIX 5 now supports IA64 processor
9856 lt_prog_compiler_static='-Bstatic'
9857 fi
9858 lt_prog_compiler_pic='-fPIC'
9859 ;;
9860
9861 amigaos*)
9862 case $host_cpu in
9863 powerpc)
9864 # see comment about AmigaOS4 .so support
9865 lt_prog_compiler_pic='-fPIC'
9866 ;;
9867 m68k)
9868 # FIXME: we need at least 68020 code to build shared libraries, but
9869 # adding the '-m68020' flag to GCC prevents building anything better,
9870 # like '-m68040'.
9871 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9872 ;;
9873 esac
9874 ;;
9875
9876 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9877 # PIC is the default for these OSes.
9878 ;;
9879
9880 mingw* | cygwin* | pw32* | os2* | cegcc*)
9881 # This hack is so that the source file can tell whether it is being
9882 # built for inclusion in a dll (and should export symbols for example).
9883 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9884 # (--disable-auto-import) libraries
9885 lt_prog_compiler_pic='-DDLL_EXPORT'
9886 case $host_os in
9887 os2*)
9888 lt_prog_compiler_static='$wl-static'
9889 ;;
9890 esac
9891 ;;
9892
9893 darwin* | rhapsody*)
9894 # PIC is the default on this platform
9895 # Common symbols not allowed in MH_DYLIB files
9896 lt_prog_compiler_pic='-fno-common'
9897 ;;
9898
9899 haiku*)
9900 # PIC is the default for Haiku.
9901 # The "-static" flag exists, but is broken.
9902 lt_prog_compiler_static=
9903 ;;
9904
9905 hpux*)
9906 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9907 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9908 # sets the default TLS model and affects inlining.
9909 case $host_cpu in
9910 hppa*64*)
9911 # +Z the default
9912 ;;
9913 *)
9914 lt_prog_compiler_pic='-fPIC'
9915 ;;
9916 esac
9917 ;;
9918
9919 interix[3-9]*)
9920 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9921 # Instead, we relocate shared libraries at runtime.
9922 ;;
9923
9924 msdosdjgpp*)
9925 # Just because we use GCC doesn't mean we suddenly get shared libraries
9926 # on systems that don't support them.
9927 lt_prog_compiler_can_build_shared=no
9928 enable_shared=no
9929 ;;
9930
9931 *nto* | *qnx*)
9932 # QNX uses GNU C++, but need to define -shared option too, otherwise
9933 # it will coredump.
9934 lt_prog_compiler_pic='-fPIC -shared'
9935 ;;
9936
9937 sysv4*MP*)
9938 if test -d /usr/nec; then
9939 lt_prog_compiler_pic=-Kconform_pic
9940 fi
9941 ;;
9942
9943 *)
9944 lt_prog_compiler_pic='-fPIC'
9945 ;;
9946 esac
9947
9948 case $cc_basename in
9949 nvcc*) # Cuda Compiler Driver 2.2
9950 lt_prog_compiler_wl='-Xlinker '
9951 if test -n "$lt_prog_compiler_pic"; then
9952 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9953 fi
9954 ;;
9955 esac
9956 else
9957 # PORTME Check for flag to pass linker flags through the system compiler.
9958 case $host_os in
9959 aix*)
9960 lt_prog_compiler_wl='-Wl,'
9961 if test ia64 = "$host_cpu"; then
9962 # AIX 5 now supports IA64 processor
9963 lt_prog_compiler_static='-Bstatic'
9964 else
9965 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9966 fi
9967 ;;
9968
9969 darwin* | rhapsody*)
9970 # PIC is the default on this platform
9971 # Common symbols not allowed in MH_DYLIB files
9972 lt_prog_compiler_pic='-fno-common'
9973 case $cc_basename in
9974 nagfor*)
9975 # NAG Fortran compiler
9976 lt_prog_compiler_wl='-Wl,-Wl,,'
9977 lt_prog_compiler_pic='-PIC'
9978 lt_prog_compiler_static='-Bstatic'
9979 ;;
9980 esac
9981 ;;
9982
9983 mingw* | cygwin* | pw32* | os2* | cegcc*)
9984 # This hack is so that the source file can tell whether it is being
9985 # built for inclusion in a dll (and should export symbols for example).
9986 lt_prog_compiler_pic='-DDLL_EXPORT'
9987 case $host_os in
9988 os2*)
9989 lt_prog_compiler_static='$wl-static'
9990 ;;
9991 esac
9992 ;;
9993
9994 hpux9* | hpux10* | hpux11*)
9995 lt_prog_compiler_wl='-Wl,'
9996 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9997 # not for PA HP-UX.
9998 case $host_cpu in
9999 hppa*64*|ia64*)
10000 # +Z the default
10001 ;;
10002 *)
10003 lt_prog_compiler_pic='+Z'
10004 ;;
10005 esac
10006 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10007 lt_prog_compiler_static='$wl-a ${wl}archive'
10008 ;;
10009
10010 irix5* | irix6* | nonstopux*)
10011 lt_prog_compiler_wl='-Wl,'
10012 # PIC (with -KPIC) is the default.
10013 lt_prog_compiler_static='-non_shared'
10014 ;;
10015
10016 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10017 case $cc_basename in
10018 # old Intel for x86_64, which still supported -KPIC.
10019 ecc*)
10020 lt_prog_compiler_wl='-Wl,'
10021 lt_prog_compiler_pic='-KPIC'
10022 lt_prog_compiler_static='-static'
10023 ;;
10024 # icc used to be incompatible with GCC.
10025 # ICC 10 doesn't accept -KPIC any more.
10026 icc* | ifort*)
10027 lt_prog_compiler_wl='-Wl,'
10028 lt_prog_compiler_pic='-fPIC'
10029 lt_prog_compiler_static='-static'
10030 ;;
10031 # Lahey Fortran 8.1.
10032 lf95*)
10033 lt_prog_compiler_wl='-Wl,'
10034 lt_prog_compiler_pic='--shared'
10035 lt_prog_compiler_static='--static'
10036 ;;
10037 nagfor*)
10038 # NAG Fortran compiler
10039 lt_prog_compiler_wl='-Wl,-Wl,,'
10040 lt_prog_compiler_pic='-PIC'
10041 lt_prog_compiler_static='-Bstatic'
10042 ;;
10043 tcc*)
10044 # Fabrice Bellard et al's Tiny C Compiler
10045 lt_prog_compiler_wl='-Wl,'
10046 lt_prog_compiler_pic='-fPIC'
10047 lt_prog_compiler_static='-static'
10048 ;;
10049 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10050 # Portland Group compilers (*not* the Pentium gcc compiler,
10051 # which looks to be a dead project)
10052 lt_prog_compiler_wl='-Wl,'
10053 lt_prog_compiler_pic='-fpic'
10054 lt_prog_compiler_static='-Bstatic'
10055 ;;
10056 ccc*)
10057 lt_prog_compiler_wl='-Wl,'
10058 # All Alpha code is PIC.
10059 lt_prog_compiler_static='-non_shared'
10060 ;;
10061 xl* | bgxl* | bgf* | mpixl*)
10062 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10063 lt_prog_compiler_wl='-Wl,'
10064 lt_prog_compiler_pic='-qpic'
10065 lt_prog_compiler_static='-qstaticlink'
10066 ;;
10067 *)
10068 case `$CC -V 2>&1 | $SED 5q` in
10069 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10070 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10071 lt_prog_compiler_pic='-KPIC'
10072 lt_prog_compiler_static='-Bstatic'
10073 lt_prog_compiler_wl=''
10074 ;;
10075 *Sun\ F* | *Sun*Fortran*)
10076 lt_prog_compiler_pic='-KPIC'
10077 lt_prog_compiler_static='-Bstatic'
10078 lt_prog_compiler_wl='-Qoption ld '
10079 ;;
10080 *Sun\ C*)
10081 # Sun C 5.9
10082 lt_prog_compiler_pic='-KPIC'
10083 lt_prog_compiler_static='-Bstatic'
10084 lt_prog_compiler_wl='-Wl,'
10085 ;;
10086 *Intel*\ [CF]*Compiler*)
10087 lt_prog_compiler_wl='-Wl,'
10088 lt_prog_compiler_pic='-fPIC'
10089 lt_prog_compiler_static='-static'
10090 ;;
10091 *Portland\ Group*)
10092 lt_prog_compiler_wl='-Wl,'
10093 lt_prog_compiler_pic='-fpic'
10094 lt_prog_compiler_static='-Bstatic'
10095 ;;
10096 esac
10097 ;;
10098 esac
10099 ;;
10100
10101 newsos6)
10102 lt_prog_compiler_pic='-KPIC'
10103 lt_prog_compiler_static='-Bstatic'
10104 ;;
10105
10106 *nto* | *qnx*)
10107 # QNX uses GNU C++, but need to define -shared option too, otherwise
10108 # it will coredump.
10109 lt_prog_compiler_pic='-fPIC -shared'
10110 ;;
10111
10112 osf3* | osf4* | osf5*)
10113 lt_prog_compiler_wl='-Wl,'
10114 # All OSF/1 code is PIC.
10115 lt_prog_compiler_static='-non_shared'
10116 ;;
10117
10118 rdos*)
10119 lt_prog_compiler_static='-non_shared'
10120 ;;
10121
10122 solaris*)
10123 lt_prog_compiler_pic='-KPIC'
10124 lt_prog_compiler_static='-Bstatic'
10125 case $cc_basename in
10126 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10127 lt_prog_compiler_wl='-Qoption ld ';;
10128 *)
10129 lt_prog_compiler_wl='-Wl,';;
10130 esac
10131 ;;
10132
10133 sunos4*)
10134 lt_prog_compiler_wl='-Qoption ld '
10135 lt_prog_compiler_pic='-PIC'
10136 lt_prog_compiler_static='-Bstatic'
10137 ;;
10138
10139 sysv4 | sysv4.2uw2* | sysv4.3*)
10140 lt_prog_compiler_wl='-Wl,'
10141 lt_prog_compiler_pic='-KPIC'
10142 lt_prog_compiler_static='-Bstatic'
10143 ;;
10144
10145 sysv4*MP*)
10146 if test -d /usr/nec; then
10147 lt_prog_compiler_pic='-Kconform_pic'
10148 lt_prog_compiler_static='-Bstatic'
10149 fi
10150 ;;
10151
10152 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10153 lt_prog_compiler_wl='-Wl,'
10154 lt_prog_compiler_pic='-KPIC'
10155 lt_prog_compiler_static='-Bstatic'
10156 ;;
10157
10158 unicos*)
10159 lt_prog_compiler_wl='-Wl,'
10160 lt_prog_compiler_can_build_shared=no
10161 ;;
10162
10163 uts4*)
10164 lt_prog_compiler_pic='-pic'
10165 lt_prog_compiler_static='-Bstatic'
10166 ;;
10167
10168 *)
10169 lt_prog_compiler_can_build_shared=no
10170 ;;
10171 esac
10172 fi
10173
10174case $host_os in
10175 # For platforms that do not support PIC, -DPIC is meaningless:
10176 *djgpp*)
10177 lt_prog_compiler_pic=
10178 ;;
10179 *)
10180 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10181 ;;
10182esac
10183
10184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10185printf %s "checking for $compiler option to produce PIC... " >&6; }
10186if test ${lt_cv_prog_compiler_pic+y}
10187then :
10188 printf %s "(cached) " >&6
10189else case e in #(
10190 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
10191esac
10192fi
10193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10194printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10195lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10196
10197#
10198# Check to make sure the PIC flag actually works.
10199#
10200if test -n "$lt_prog_compiler_pic"; then
10201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10202printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10203if test ${lt_cv_prog_compiler_pic_works+y}
10204then :
10205 printf %s "(cached) " >&6
10206else case e in #(
10207 e) lt_cv_prog_compiler_pic_works=no
10208 ac_outfile=conftest.$ac_objext
10209 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10210 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10211 # Insert the option either (1) after the last *FLAGS variable, or
10212 # (2) before a word containing "conftest.", or (3) at the end.
10213 # Note that $ac_compile itself does not contain backslashes and begins
10214 # with a dollar sign (not a hyphen), so the echo should work correctly.
10215 # The option is referenced via a variable to avoid confusing sed.
10216 lt_compile=`echo "$ac_compile" | $SED \
10217 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10218 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10219 -e 's:$: $lt_compiler_flag:'`
10220 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10221 (eval "$lt_compile" 2>conftest.err)
10222 ac_status=$?
10223 cat conftest.err >&5
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 if (exit $ac_status) && test -s "$ac_outfile"; then
10226 # The compiler can only warn and ignore the option if not recognized
10227 # So say no if there are warnings other than the usual output.
10228 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10229 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10230 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10231 lt_cv_prog_compiler_pic_works=yes
10232 fi
10233 fi
10234 $RM conftest*
10235 ;;
10236esac
10237fi
10238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10239printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10240
10241if test yes = "$lt_cv_prog_compiler_pic_works"; then
10242 case $lt_prog_compiler_pic in
10243 "" | " "*) ;;
10244 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10245 esac
10246else
10247 lt_prog_compiler_pic=
10248 lt_prog_compiler_can_build_shared=no
10249fi
10250
10251fi
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263#
10264# Check to make sure the static flag actually works.
10265#
10266wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10268printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10269if test ${lt_cv_prog_compiler_static_works+y}
10270then :
10271 printf %s "(cached) " >&6
10272else case e in #(
10273 e) lt_cv_prog_compiler_static_works=no
10274 save_LDFLAGS=$LDFLAGS
10275 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10276 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10277 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10278 # The linker can only warn and ignore the option if not recognized
10279 # So say no if there are warnings
10280 if test -s conftest.err; then
10281 # Append any errors to the config.log.
10282 cat conftest.err 1>&5
10283 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10284 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10285 if diff conftest.exp conftest.er2 >/dev/null; then
10286 lt_cv_prog_compiler_static_works=yes
10287 fi
10288 else
10289 lt_cv_prog_compiler_static_works=yes
10290 fi
10291 fi
10292 $RM -r conftest*
10293 LDFLAGS=$save_LDFLAGS
10294 ;;
10295esac
10296fi
10297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10298printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10299
10300if test yes = "$lt_cv_prog_compiler_static_works"; then
10301 :
10302else
10303 lt_prog_compiler_static=
10304fi
10305
10306
10307
10308
10309
10310
10311
10312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10313printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10314if test ${lt_cv_prog_compiler_c_o+y}
10315then :
10316 printf %s "(cached) " >&6
10317else case e in #(
10318 e) lt_cv_prog_compiler_c_o=no
10319 $RM -r conftest 2>/dev/null
10320 mkdir conftest
10321 cd conftest
10322 mkdir out
10323 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10324
10325 lt_compiler_flag="-o out/conftest2.$ac_objext"
10326 # Insert the option either (1) after the last *FLAGS variable, or
10327 # (2) before a word containing "conftest.", or (3) at the end.
10328 # Note that $ac_compile itself does not contain backslashes and begins
10329 # with a dollar sign (not a hyphen), so the echo should work correctly.
10330 lt_compile=`echo "$ac_compile" | $SED \
10331 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10332 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10333 -e 's:$: $lt_compiler_flag:'`
10334 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10335 (eval "$lt_compile" 2>out/conftest.err)
10336 ac_status=$?
10337 cat out/conftest.err >&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10340 then
10341 # The compiler can only warn and ignore the option if not recognized
10342 # So say no if there are warnings
10343 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10344 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10345 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10346 lt_cv_prog_compiler_c_o=yes
10347 fi
10348 fi
10349 chmod u+w . 2>&5
10350 $RM conftest*
10351 # SGI C++ compiler will create directory out/ii_files/ for
10352 # template instantiation
10353 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10354 $RM out/* && rmdir out
10355 cd ..
10356 $RM -r conftest
10357 $RM conftest*
10358 ;;
10359esac
10360fi
10361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10362printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10363
10364
10365
10366
10367
10368
10369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10370printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10371if test ${lt_cv_prog_compiler_c_o+y}
10372then :
10373 printf %s "(cached) " >&6
10374else case e in #(
10375 e) lt_cv_prog_compiler_c_o=no
10376 $RM -r conftest 2>/dev/null
10377 mkdir conftest
10378 cd conftest
10379 mkdir out
10380 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10381
10382 lt_compiler_flag="-o out/conftest2.$ac_objext"
10383 # Insert the option either (1) after the last *FLAGS variable, or
10384 # (2) before a word containing "conftest.", or (3) at the end.
10385 # Note that $ac_compile itself does not contain backslashes and begins
10386 # with a dollar sign (not a hyphen), so the echo should work correctly.
10387 lt_compile=`echo "$ac_compile" | $SED \
10388 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10389 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10390 -e 's:$: $lt_compiler_flag:'`
10391 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10392 (eval "$lt_compile" 2>out/conftest.err)
10393 ac_status=$?
10394 cat out/conftest.err >&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10397 then
10398 # The compiler can only warn and ignore the option if not recognized
10399 # So say no if there are warnings
10400 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10401 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10402 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10403 lt_cv_prog_compiler_c_o=yes
10404 fi
10405 fi
10406 chmod u+w . 2>&5
10407 $RM conftest*
10408 # SGI C++ compiler will create directory out/ii_files/ for
10409 # template instantiation
10410 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10411 $RM out/* && rmdir out
10412 cd ..
10413 $RM -r conftest
10414 $RM conftest*
10415 ;;
10416esac
10417fi
10418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10419printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10420
10421
10422
10423
10424hard_links=nottested
10425if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10426 # do not overwrite the value of need_locks provided by the user
10427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10428printf %s "checking if we can lock with hard links... " >&6; }
10429 hard_links=yes
10430 $RM conftest*
10431 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10432 touch conftest.a
10433 ln conftest.a conftest.b 2>&5 || hard_links=no
10434 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10436printf "%s\n" "$hard_links" >&6; }
10437 if test no = "$hard_links"; then
10438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10439printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10440 need_locks=warn
10441 fi
10442else
10443 need_locks=no
10444fi
10445
10446
10447
10448
10449
10450
10451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10452printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10453
10454 runpath_var=
10455 allow_undefined_flag=
10456 always_export_symbols=no
10457 archive_cmds=
10458 archive_expsym_cmds=
10459 compiler_needs_object=no
10460 enable_shared_with_static_runtimes=no
10461 export_dynamic_flag_spec=
10462 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10463 hardcode_automatic=no
10464 hardcode_direct=no
10465 hardcode_direct_absolute=no
10466 hardcode_libdir_flag_spec=
10467 hardcode_libdir_separator=
10468 hardcode_minus_L=no
10469 hardcode_shlibpath_var=unsupported
10470 inherit_rpath=no
10471 link_all_deplibs=unknown
10472 module_cmds=
10473 module_expsym_cmds=
10474 old_archive_from_new_cmds=
10475 old_archive_from_expsyms_cmds=
10476 thread_safe_flag_spec=
10477 whole_archive_flag_spec=
10478 # include_expsyms should be a list of space-separated symbols to be *always*
10479 # included in the symbol list
10480 include_expsyms=
10481 # exclude_expsyms can be an extended regexp of symbols to exclude
10482 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10483 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10484 # as well as any symbol that contains 'd'.
10485 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10486 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10487 # platforms (ab)use it in PIC code, but their linkers get confused if
10488 # the symbol is explicitly referenced. Since portable code cannot
10489 # rely on this symbol name, it's probably fine to never include it in
10490 # preloaded symbol tables.
10491 # Exclude shared library initialization/finalization symbols.
10492 extract_expsyms_cmds=
10493
10494 case $host_os in
10495 cygwin* | mingw* | pw32* | cegcc*)
10496 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10497 # When not using gcc, we currently assume that we are using
10498 # Microsoft Visual C++ or Intel C++ Compiler.
10499 if test yes != "$GCC"; then
10500 with_gnu_ld=no
10501 fi
10502 ;;
10503 interix*)
10504 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10505 with_gnu_ld=yes
10506 ;;
10507 openbsd* | bitrig*)
10508 with_gnu_ld=no
10509 ;;
10510 esac
10511
10512 ld_shlibs=yes
10513
10514 # On some targets, GNU ld is compatible enough with the native linker
10515 # that we're better off using the native interface for both.
10516 lt_use_gnu_ld_interface=no
10517 if test yes = "$with_gnu_ld"; then
10518 case $host_os in
10519 aix*)
10520 # The AIX port of GNU ld has always aspired to compatibility
10521 # with the native linker. However, as the warning in the GNU ld
10522 # block says, versions before 2.19.5* couldn't really create working
10523 # shared libraries, regardless of the interface used.
10524 case `$LD -v 2>&1` in
10525 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10526 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10527 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10528 *)
10529 lt_use_gnu_ld_interface=yes
10530 ;;
10531 esac
10532 ;;
10533 *)
10534 lt_use_gnu_ld_interface=yes
10535 ;;
10536 esac
10537 fi
10538
10539 if test yes = "$lt_use_gnu_ld_interface"; then
10540 # If archive_cmds runs LD, not CC, wlarc should be empty
10541 wlarc='$wl'
10542
10543 # Set some defaults for GNU ld with shared library support. These
10544 # are reset later if shared libraries are not supported. Putting them
10545 # here allows them to be overridden if necessary.
10546 runpath_var=LD_RUN_PATH
10547 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10548 export_dynamic_flag_spec='$wl--export-dynamic'
10549 # ancient GNU ld didn't support --whole-archive et. al.
10550 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10551 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10552 else
10553 whole_archive_flag_spec=
10554 fi
10555 supports_anon_versioning=no
10556 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10557 *GNU\ gold*) supports_anon_versioning=yes ;;
10558 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10559 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10560 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10561 *\ 2.11.*) ;; # other 2.11 versions
10562 *) supports_anon_versioning=yes ;;
10563 esac
10564
10565 # See if GNU ld supports shared libraries.
10566 case $host_os in
10567 aix[3-9]*)
10568 # On AIX/PPC, the GNU linker is very broken
10569 if test ia64 != "$host_cpu"; then
10570 ld_shlibs=no
10571 cat <<_LT_EOF 1>&2
10572
10573*** Warning: the GNU linker, at least up to release 2.19, is reported
10574*** to be unable to reliably create shared libraries on AIX.
10575*** Therefore, libtool is disabling shared libraries support. If you
10576*** really care for shared libraries, you may want to install binutils
10577*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10578*** You will then need to restart the configuration process.
10579
10580_LT_EOF
10581 fi
10582 ;;
10583
10584 amigaos*)
10585 case $host_cpu in
10586 powerpc)
10587 # see comment about AmigaOS4 .so support
10588 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10589 archive_expsym_cmds=''
10590 ;;
10591 m68k)
10592 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)'
10593 hardcode_libdir_flag_spec='-L$libdir'
10594 hardcode_minus_L=yes
10595 ;;
10596 esac
10597 ;;
10598
10599 beos*)
10600 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10601 allow_undefined_flag=unsupported
10602 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10603 # support --undefined. This deserves some investigation. FIXME
10604 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10605 else
10606 ld_shlibs=no
10607 fi
10608 ;;
10609
10610 cygwin* | mingw* | pw32* | cegcc*)
10611 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10612 # as there is no search path for DLLs.
10613 hardcode_libdir_flag_spec='-L$libdir'
10614 export_dynamic_flag_spec='$wl--export-all-symbols'
10615 allow_undefined_flag=unsupported
10616 always_export_symbols=no
10617 enable_shared_with_static_runtimes=yes
10618 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'
10619 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10620
10621 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10622 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10623 # If the export-symbols file already is a .def file, use it as
10624 # is; otherwise, prepend EXPORTS...
10625 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10626 cp $export_symbols $output_objdir/$soname.def;
10627 else
10628 echo EXPORTS > $output_objdir/$soname.def;
10629 cat $export_symbols >> $output_objdir/$soname.def;
10630 fi~
10631 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10632 else
10633 ld_shlibs=no
10634 fi
10635 ;;
10636
10637 haiku*)
10638 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10639 link_all_deplibs=yes
10640 ;;
10641
10642 os2*)
10643 hardcode_libdir_flag_spec='-L$libdir'
10644 hardcode_minus_L=yes
10645 allow_undefined_flag=unsupported
10646 shrext_cmds=.dll
10647 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10648 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10649 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10650 $ECHO EXPORTS >> $output_objdir/$libname.def~
10651 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10652 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10653 emximp -o $lib $output_objdir/$libname.def'
10654 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10655 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10656 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10657 $ECHO EXPORTS >> $output_objdir/$libname.def~
10658 prefix_cmds="$SED"~
10659 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10660 prefix_cmds="$prefix_cmds -e 1d";
10661 fi~
10662 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10663 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10664 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10665 emximp -o $lib $output_objdir/$libname.def'
10666 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10667 enable_shared_with_static_runtimes=yes
10668 file_list_spec='@'
10669 ;;
10670
10671 interix[3-9]*)
10672 hardcode_direct=no
10673 hardcode_shlibpath_var=no
10674 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10675 export_dynamic_flag_spec='$wl-E'
10676 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10677 # Instead, shared libraries are loaded at an image base (0x10000000 by
10678 # default) and relocated if they conflict, which is a slow very memory
10679 # consuming and fragmenting process. To avoid this, we pick a random,
10680 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10681 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10682 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10683 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'
10684 ;;
10685
10686 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10687 tmp_diet=no
10688 if test linux-dietlibc = "$host_os"; then
10689 case $cc_basename in
10690 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10691 esac
10692 fi
10693 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10694 && test no = "$tmp_diet"
10695 then
10696 tmp_addflag=' $pic_flag'
10697 tmp_sharedflag='-shared'
10698 case $cc_basename,$host_cpu in
10699 pgcc*) # Portland Group C compiler
10700 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'
10701 tmp_addflag=' $pic_flag'
10702 ;;
10703 pgf77* | pgf90* | pgf95* | pgfortran*)
10704 # Portland Group f77 and f90 compilers
10705 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'
10706 tmp_addflag=' $pic_flag -Mnomain' ;;
10707 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10708 tmp_addflag=' -i_dynamic' ;;
10709 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10710 tmp_addflag=' -i_dynamic -nofor_main' ;;
10711 ifc* | ifort*) # Intel Fortran compiler
10712 tmp_addflag=' -nofor_main' ;;
10713 lf95*) # Lahey Fortran 8.1
10714 whole_archive_flag_spec=
10715 tmp_sharedflag='--shared' ;;
10716 nagfor*) # NAGFOR 5.3
10717 tmp_sharedflag='-Wl,-shared' ;;
10718 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10719 tmp_sharedflag='-qmkshrobj'
10720 tmp_addflag= ;;
10721 nvcc*) # Cuda Compiler Driver 2.2
10722 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'
10723 compiler_needs_object=yes
10724 ;;
10725 esac
10726 case `$CC -V 2>&1 | $SED 5q` in
10727 *Sun\ C*) # Sun C 5.9
10728 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'
10729 compiler_needs_object=yes
10730 tmp_sharedflag='-G' ;;
10731 *Sun\ F*) # Sun Fortran 8.3
10732 tmp_sharedflag='-G' ;;
10733 esac
10734 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10735
10736 if test yes = "$supports_anon_versioning"; then
10737 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10738 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10739 echo "local: *; };" >> $output_objdir/$libname.ver~
10740 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10741 fi
10742
10743 case $cc_basename in
10744 tcc*)
10745 export_dynamic_flag_spec='-rdynamic'
10746 ;;
10747 xlf* | bgf* | bgxlf* | mpixlf*)
10748 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10749 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10750 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10751 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10752 if test yes = "$supports_anon_versioning"; then
10753 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10754 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10755 echo "local: *; };" >> $output_objdir/$libname.ver~
10756 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10757 fi
10758 ;;
10759 esac
10760 else
10761 ld_shlibs=no
10762 fi
10763 ;;
10764
10765 netbsd*)
10766 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10767 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10768 wlarc=
10769 else
10770 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10771 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10772 fi
10773 ;;
10774
10775 solaris*)
10776 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10777 ld_shlibs=no
10778 cat <<_LT_EOF 1>&2
10779
10780*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10781*** create shared libraries on Solaris systems. Therefore, libtool
10782*** is disabling shared libraries support. We urge you to upgrade GNU
10783*** binutils to release 2.9.1 or newer. Another option is to modify
10784*** your PATH or compiler configuration so that the native linker is
10785*** used, and then restart.
10786
10787_LT_EOF
10788 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10789 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10790 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10791 else
10792 ld_shlibs=no
10793 fi
10794 ;;
10795
10796 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10797 case `$LD -v 2>&1` in
10798 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10799 ld_shlibs=no
10800 cat <<_LT_EOF 1>&2
10801
10802*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10803*** reliably create shared libraries on SCO systems. Therefore, libtool
10804*** is disabling shared libraries support. We urge you to upgrade GNU
10805*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10806*** your PATH or compiler configuration so that the native linker is
10807*** used, and then restart.
10808
10809_LT_EOF
10810 ;;
10811 *)
10812 # For security reasons, it is highly recommended that you always
10813 # use absolute paths for naming shared libraries, and exclude the
10814 # DT_RUNPATH tag from executables and libraries. But doing so
10815 # requires that you compile everything twice, which is a pain.
10816 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10817 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10818 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10819 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10820 else
10821 ld_shlibs=no
10822 fi
10823 ;;
10824 esac
10825 ;;
10826
10827 sunos4*)
10828 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10829 wlarc=
10830 hardcode_direct=yes
10831 hardcode_shlibpath_var=no
10832 ;;
10833
10834 *)
10835 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10836 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10837 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10838 else
10839 ld_shlibs=no
10840 fi
10841 ;;
10842 esac
10843
10844 if test no = "$ld_shlibs"; then
10845 runpath_var=
10846 hardcode_libdir_flag_spec=
10847 export_dynamic_flag_spec=
10848 whole_archive_flag_spec=
10849 fi
10850 else
10851 # PORTME fill in a description of your system's linker (not GNU ld)
10852 case $host_os in
10853 aix3*)
10854 allow_undefined_flag=unsupported
10855 always_export_symbols=yes
10856 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'
10857 # Note: this linker hardcodes the directories in LIBPATH if there
10858 # are no directories specified by -L.
10859 hardcode_minus_L=yes
10860 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10861 # Neither direct hardcoding nor static linking is supported with a
10862 # broken collect2.
10863 hardcode_direct=unsupported
10864 fi
10865 ;;
10866
10867 aix[4-9]*)
10868 if test ia64 = "$host_cpu"; then
10869 # On IA64, the linker does run time linking by default, so we don't
10870 # have to do anything special.
10871 aix_use_runtimelinking=no
10872 exp_sym_flag='-Bexport'
10873 no_entry_flag=
10874 else
10875 # If we're using GNU nm, then we don't want the "-C" option.
10876 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10877 # Without the "-l" option, or with the "-B" option, AIX nm treats
10878 # weak defined symbols like other global defined symbols, whereas
10879 # GNU nm marks them as "W".
10880 # While the 'weak' keyword is ignored in the Export File, we need
10881 # it in the Import File for the 'aix-soname' feature, so we have
10882 # to replace the "-B" option with "-P" for AIX nm.
10883 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10884 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'
10885 else
10886 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'
10887 fi
10888 aix_use_runtimelinking=no
10889
10890 # Test if we are trying to use run time linking or normal
10891 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10892 # have runtime linking enabled, and use it for executables.
10893 # For shared libraries, we enable/disable runtime linking
10894 # depending on the kind of the shared library created -
10895 # when "with_aix_soname,aix_use_runtimelinking" is:
10896 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10897 # "aix,yes" lib.so shared, rtl:yes, for executables
10898 # lib.a static archive
10899 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10900 # lib.a(lib.so.V) shared, rtl:no, for executables
10901 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10902 # lib.a(lib.so.V) shared, rtl:no
10903 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10904 # lib.a static archive
10905 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10906 for ld_flag in $LDFLAGS; do
10907 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10908 aix_use_runtimelinking=yes
10909 break
10910 fi
10911 done
10912 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10913 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10914 # so we don't have lib.a shared libs to link our executables.
10915 # We have to force runtime linking in this case.
10916 aix_use_runtimelinking=yes
10917 LDFLAGS="$LDFLAGS -Wl,-brtl"
10918 fi
10919 ;;
10920 esac
10921
10922 exp_sym_flag='-bexport'
10923 no_entry_flag='-bnoentry'
10924 fi
10925
10926 # When large executables or shared objects are built, AIX ld can
10927 # have problems creating the table of contents. If linking a library
10928 # or program results in "error TOC overflow" add -mminimal-toc to
10929 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10930 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10931
10932 archive_cmds=''
10933 hardcode_direct=yes
10934 hardcode_direct_absolute=yes
10935 hardcode_libdir_separator=':'
10936 link_all_deplibs=yes
10937 file_list_spec='$wl-f,'
10938 case $with_aix_soname,$aix_use_runtimelinking in
10939 aix,*) ;; # traditional, no import file
10940 svr4,* | *,yes) # use import file
10941 # The Import File defines what to hardcode.
10942 hardcode_direct=no
10943 hardcode_direct_absolute=no
10944 ;;
10945 esac
10946
10947 if test yes = "$GCC"; then
10948 case $host_os in aix4.[012]|aix4.[012].*)
10949 # We only want to do this on AIX 4.2 and lower, the check
10950 # below for broken collect2 doesn't work under 4.3+
10951 collect2name=`$CC -print-prog-name=collect2`
10952 if test -f "$collect2name" &&
10953 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10954 then
10955 # We have reworked collect2
10956 :
10957 else
10958 # We have old collect2
10959 hardcode_direct=unsupported
10960 # It fails to find uninstalled libraries when the uninstalled
10961 # path is not listed in the libpath. Setting hardcode_minus_L
10962 # to unsupported forces relinking
10963 hardcode_minus_L=yes
10964 hardcode_libdir_flag_spec='-L$libdir'
10965 hardcode_libdir_separator=
10966 fi
10967 ;;
10968 esac
10969 shared_flag='-shared'
10970 if test yes = "$aix_use_runtimelinking"; then
10971 shared_flag="$shared_flag "'$wl-G'
10972 fi
10973 # Need to ensure runtime linking is disabled for the traditional
10974 # shared library, or the linker may eventually find shared libraries
10975 # /with/ Import File - we do not want to mix them.
10976 shared_flag_aix='-shared'
10977 shared_flag_svr4='-shared $wl-G'
10978 else
10979 # not using gcc
10980 if test ia64 = "$host_cpu"; then
10981 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10982 # chokes on -Wl,-G. The following line is correct:
10983 shared_flag='-G'
10984 else
10985 if test yes = "$aix_use_runtimelinking"; then
10986 shared_flag='$wl-G'
10987 else
10988 shared_flag='$wl-bM:SRE'
10989 fi
10990 shared_flag_aix='$wl-bM:SRE'
10991 shared_flag_svr4='$wl-G'
10992 fi
10993 fi
10994
10995 export_dynamic_flag_spec='$wl-bexpall'
10996 # It seems that -bexpall does not export symbols beginning with
10997 # underscore (_), so it is better to generate a list of symbols to export.
10998 always_export_symbols=yes
10999 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11000 # Warning - without using the other runtime loading flags (-brtl),
11001 # -berok will link without error, but may produce a broken library.
11002 allow_undefined_flag='-berok'
11003 # Determine the default libpath from the value encoded in an
11004 # empty executable.
11005 if test set = "${lt_cv_aix_libpath+set}"; then
11006 aix_libpath=$lt_cv_aix_libpath
11007else
11008 if test ${lt_cv_aix_libpath_+y}
11009then :
11010 printf %s "(cached) " >&6
11011else case e in #(
11012 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11013/* end confdefs.h. */
11014
11015int
11016main (void)
11017{
11018
11019 ;
11020 return 0;
11021}
11022_ACEOF
11023if ac_fn_c_try_link "$LINENO"
11024then :
11025
11026 lt_aix_libpath_sed='
11027 /Import File Strings/,/^$/ {
11028 /^0/ {
11029 s/^0 *\([^ ]*\) *$/\1/
11030 p
11031 }
11032 }'
11033 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11034 # Check for a 64-bit object if we didn't find anything.
11035 if test -z "$lt_cv_aix_libpath_"; then
11036 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11037 fi
11038fi
11039rm -f core conftest.err conftest.$ac_objext conftest.beam \
11040 conftest$ac_exeext conftest.$ac_ext
11041 if test -z "$lt_cv_aix_libpath_"; then
11042 lt_cv_aix_libpath_=/usr/lib:/lib
11043 fi
11044 ;;
11045esac
11046fi
11047
11048 aix_libpath=$lt_cv_aix_libpath_
11049fi
11050
11051 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11052 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
11053 else
11054 if test ia64 = "$host_cpu"; then
11055 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11056 allow_undefined_flag="-z nodefs"
11057 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"
11058 else
11059 # Determine the default libpath from the value encoded in an
11060 # empty executable.
11061 if test set = "${lt_cv_aix_libpath+set}"; then
11062 aix_libpath=$lt_cv_aix_libpath
11063else
11064 if test ${lt_cv_aix_libpath_+y}
11065then :
11066 printf %s "(cached) " >&6
11067else case e in #(
11068 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11069/* end confdefs.h. */
11070
11071int
11072main (void)
11073{
11074
11075 ;
11076 return 0;
11077}
11078_ACEOF
11079if ac_fn_c_try_link "$LINENO"
11080then :
11081
11082 lt_aix_libpath_sed='
11083 /Import File Strings/,/^$/ {
11084 /^0/ {
11085 s/^0 *\([^ ]*\) *$/\1/
11086 p
11087 }
11088 }'
11089 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11090 # Check for a 64-bit object if we didn't find anything.
11091 if test -z "$lt_cv_aix_libpath_"; then
11092 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11093 fi
11094fi
11095rm -f core conftest.err conftest.$ac_objext conftest.beam \
11096 conftest$ac_exeext conftest.$ac_ext
11097 if test -z "$lt_cv_aix_libpath_"; then
11098 lt_cv_aix_libpath_=/usr/lib:/lib
11099 fi
11100 ;;
11101esac
11102fi
11103
11104 aix_libpath=$lt_cv_aix_libpath_
11105fi
11106
11107 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11108 # Warning - without using the other run time loading flags,
11109 # -berok will link without error, but may produce a broken library.
11110 no_undefined_flag=' $wl-bernotok'
11111 allow_undefined_flag=' $wl-berok'
11112 if test yes = "$with_gnu_ld"; then
11113 # We only use this code for GNU lds that support --whole-archive.
11114 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11115 else
11116 # Exported symbols can be pulled into shared objects from archives
11117 whole_archive_flag_spec='$convenience'
11118 fi
11119 archive_cmds_need_lc=yes
11120 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11121 # -brtl affects multiple linker settings, -berok does not and is overridden later
11122 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11123 if test svr4 != "$with_aix_soname"; then
11124 # This is similar to how AIX traditionally builds its shared libraries.
11125 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'
11126 fi
11127 if test aix != "$with_aix_soname"; then
11128 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'
11129 else
11130 # used by -dlpreopen to get the symbols
11131 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11132 fi
11133 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11134 fi
11135 fi
11136 ;;
11137
11138 amigaos*)
11139 case $host_cpu in
11140 powerpc)
11141 # see comment about AmigaOS4 .so support
11142 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11143 archive_expsym_cmds=''
11144 ;;
11145 m68k)
11146 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)'
11147 hardcode_libdir_flag_spec='-L$libdir'
11148 hardcode_minus_L=yes
11149 ;;
11150 esac
11151 ;;
11152
11153 bsdi[45]*)
11154 export_dynamic_flag_spec=-rdynamic
11155 ;;
11156
11157 cygwin* | mingw* | pw32* | cegcc*)
11158 # When not using gcc, we currently assume that we are using
11159 # Microsoft Visual C++ or Intel C++ Compiler.
11160 # hardcode_libdir_flag_spec is actually meaningless, as there is
11161 # no search path for DLLs.
11162 case $cc_basename in
11163 cl* | icl*)
11164 # Native MSVC or ICC
11165 hardcode_libdir_flag_spec=' '
11166 allow_undefined_flag=unsupported
11167 always_export_symbols=yes
11168 file_list_spec='@'
11169 # Tell ltmain to make .lib files, not .a files.
11170 libext=lib
11171 # Tell ltmain to make .dll files, not .so files.
11172 shrext_cmds=.dll
11173 # FIXME: Setting linknames here is a bad hack.
11174 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11175 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11176 cp "$export_symbols" "$output_objdir/$soname.def";
11177 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11178 else
11179 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11180 fi~
11181 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11182 linknames='
11183 # The linker will not automatically build a static lib if we build a DLL.
11184 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11185 enable_shared_with_static_runtimes=yes
11186 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11187 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11188 # Don't use ranlib
11189 old_postinstall_cmds='chmod 644 $oldlib'
11190 postlink_cmds='lt_outputfile="@OUTPUT@"~
11191 lt_tool_outputfile="@TOOL_OUTPUT@"~
11192 case $lt_outputfile in
11193 *.exe|*.EXE) ;;
11194 *)
11195 lt_outputfile=$lt_outputfile.exe
11196 lt_tool_outputfile=$lt_tool_outputfile.exe
11197 ;;
11198 esac~
11199 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11200 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11201 $RM "$lt_outputfile.manifest";
11202 fi'
11203 ;;
11204 *)
11205 # Assume MSVC and ICC wrapper
11206 hardcode_libdir_flag_spec=' '
11207 allow_undefined_flag=unsupported
11208 # Tell ltmain to make .lib files, not .a files.
11209 libext=lib
11210 # Tell ltmain to make .dll files, not .so files.
11211 shrext_cmds=.dll
11212 # FIXME: Setting linknames here is a bad hack.
11213 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11214 # The linker will automatically build a .lib file if we build a DLL.
11215 old_archive_from_new_cmds='true'
11216 # FIXME: Should let the user specify the lib program.
11217 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11218 enable_shared_with_static_runtimes=yes
11219 ;;
11220 esac
11221 ;;
11222
11223 darwin* | rhapsody*)
11224
11225
11226 archive_cmds_need_lc=no
11227 hardcode_direct=no
11228 hardcode_automatic=yes
11229 hardcode_shlibpath_var=unsupported
11230 if test yes = "$lt_cv_ld_force_load"; then
11231 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\"`'
11232
11233 else
11234 whole_archive_flag_spec=''
11235 fi
11236 link_all_deplibs=yes
11237 allow_undefined_flag=$_lt_dar_allow_undefined
11238 case $cc_basename in
11239 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11240 *) _lt_dar_can_shared=$GCC ;;
11241 esac
11242 if test yes = "$_lt_dar_can_shared"; then
11243 output_verbose_link_cmd=func_echo_all
11244 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11245 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11246 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"
11247 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"
11248
11249 else
11250 ld_shlibs=no
11251 fi
11252
11253 ;;
11254
11255 dgux*)
11256 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11257 hardcode_libdir_flag_spec='-L$libdir'
11258 hardcode_shlibpath_var=no
11259 ;;
11260
11261 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11262 # support. Future versions do this automatically, but an explicit c++rt0.o
11263 # does not break anything, and helps significantly (at the cost of a little
11264 # extra space).
11265 freebsd2.2*)
11266 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11267 hardcode_libdir_flag_spec='-R$libdir'
11268 hardcode_direct=yes
11269 hardcode_shlibpath_var=no
11270 ;;
11271
11272 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11273 freebsd2.*)
11274 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11275 hardcode_direct=yes
11276 hardcode_minus_L=yes
11277 hardcode_shlibpath_var=no
11278 ;;
11279
11280 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11281 freebsd* | dragonfly* | midnightbsd*)
11282 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11283 hardcode_libdir_flag_spec='-R$libdir'
11284 hardcode_direct=yes
11285 hardcode_shlibpath_var=no
11286 ;;
11287
11288 hpux9*)
11289 if test yes = "$GCC"; then
11290 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'
11291 else
11292 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'
11293 fi
11294 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11295 hardcode_libdir_separator=:
11296 hardcode_direct=yes
11297
11298 # hardcode_minus_L: Not really in the search PATH,
11299 # but as the default location of the library.
11300 hardcode_minus_L=yes
11301 export_dynamic_flag_spec='$wl-E'
11302 ;;
11303
11304 hpux10*)
11305 if test yes,no = "$GCC,$with_gnu_ld"; then
11306 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11307 else
11308 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11309 fi
11310 if test no = "$with_gnu_ld"; then
11311 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11312 hardcode_libdir_separator=:
11313 hardcode_direct=yes
11314 hardcode_direct_absolute=yes
11315 export_dynamic_flag_spec='$wl-E'
11316 # hardcode_minus_L: Not really in the search PATH,
11317 # but as the default location of the library.
11318 hardcode_minus_L=yes
11319 fi
11320 ;;
11321
11322 hpux11*)
11323 if test yes,no = "$GCC,$with_gnu_ld"; then
11324 case $host_cpu in
11325 hppa*64*)
11326 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11327 ;;
11328 ia64*)
11329 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11330 ;;
11331 *)
11332 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11333 ;;
11334 esac
11335 else
11336 case $host_cpu in
11337 hppa*64*)
11338 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11339 ;;
11340 ia64*)
11341 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11342 ;;
11343 *)
11344
11345 # Older versions of the 11.00 compiler do not understand -b yet
11346 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11348printf %s "checking if $CC understands -b... " >&6; }
11349if test ${lt_cv_prog_compiler__b+y}
11350then :
11351 printf %s "(cached) " >&6
11352else case e in #(
11353 e) lt_cv_prog_compiler__b=no
11354 save_LDFLAGS=$LDFLAGS
11355 LDFLAGS="$LDFLAGS -b"
11356 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11357 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11358 # The linker can only warn and ignore the option if not recognized
11359 # So say no if there are warnings
11360 if test -s conftest.err; then
11361 # Append any errors to the config.log.
11362 cat conftest.err 1>&5
11363 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11364 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11365 if diff conftest.exp conftest.er2 >/dev/null; then
11366 lt_cv_prog_compiler__b=yes
11367 fi
11368 else
11369 lt_cv_prog_compiler__b=yes
11370 fi
11371 fi
11372 $RM -r conftest*
11373 LDFLAGS=$save_LDFLAGS
11374 ;;
11375esac
11376fi
11377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11378printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11379
11380if test yes = "$lt_cv_prog_compiler__b"; then
11381 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11382else
11383 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11384fi
11385
11386 ;;
11387 esac
11388 fi
11389 if test no = "$with_gnu_ld"; then
11390 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11391 hardcode_libdir_separator=:
11392
11393 case $host_cpu in
11394 hppa*64*|ia64*)
11395 hardcode_direct=no
11396 hardcode_shlibpath_var=no
11397 ;;
11398 *)
11399 hardcode_direct=yes
11400 hardcode_direct_absolute=yes
11401 export_dynamic_flag_spec='$wl-E'
11402
11403 # hardcode_minus_L: Not really in the search PATH,
11404 # but as the default location of the library.
11405 hardcode_minus_L=yes
11406 ;;
11407 esac
11408 fi
11409 ;;
11410
11411 irix5* | irix6* | nonstopux*)
11412 if test yes = "$GCC"; then
11413 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'
11414 # Try to use the -exported_symbol ld option, if it does not
11415 # work, assume that -exports_file does not work either and
11416 # implicitly export all symbols.
11417 # This should be the same for all languages, so no per-tag cache variable.
11418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11419printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11420if test ${lt_cv_irix_exported_symbol+y}
11421then :
11422 printf %s "(cached) " >&6
11423else case e in #(
11424 e) save_LDFLAGS=$LDFLAGS
11425 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11427/* end confdefs.h. */
11428int foo (void) { return 0; }
11429_ACEOF
11430if ac_fn_c_try_link "$LINENO"
11431then :
11432 lt_cv_irix_exported_symbol=yes
11433else case e in #(
11434 e) lt_cv_irix_exported_symbol=no ;;
11435esac
11436fi
11437rm -f core conftest.err conftest.$ac_objext conftest.beam \
11438 conftest$ac_exeext conftest.$ac_ext
11439 LDFLAGS=$save_LDFLAGS ;;
11440esac
11441fi
11442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11443printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11444 if test yes = "$lt_cv_irix_exported_symbol"; then
11445 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'
11446 fi
11447 else
11448 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'
11449 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'
11450 fi
11451 archive_cmds_need_lc='no'
11452 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11453 hardcode_libdir_separator=:
11454 inherit_rpath=yes
11455 link_all_deplibs=yes
11456 ;;
11457
11458 linux*)
11459 case $cc_basename in
11460 tcc*)
11461 # Fabrice Bellard et al's Tiny C Compiler
11462 ld_shlibs=yes
11463 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11464 ;;
11465 esac
11466 ;;
11467
11468 netbsd*)
11469 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11470 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11471 else
11472 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11473 fi
11474 hardcode_libdir_flag_spec='-R$libdir'
11475 hardcode_direct=yes
11476 hardcode_shlibpath_var=no
11477 ;;
11478
11479 newsos6)
11480 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11481 hardcode_direct=yes
11482 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11483 hardcode_libdir_separator=:
11484 hardcode_shlibpath_var=no
11485 ;;
11486
11487 *nto* | *qnx*)
11488 ;;
11489
11490 openbsd* | bitrig*)
11491 if test -f /usr/libexec/ld.so; then
11492 hardcode_direct=yes
11493 hardcode_shlibpath_var=no
11494 hardcode_direct_absolute=yes
11495 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11496 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11497 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11498 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11499 export_dynamic_flag_spec='$wl-E'
11500 else
11501 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11502 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11503 fi
11504 else
11505 ld_shlibs=no
11506 fi
11507 ;;
11508
11509 os2*)
11510 hardcode_libdir_flag_spec='-L$libdir'
11511 hardcode_minus_L=yes
11512 allow_undefined_flag=unsupported
11513 shrext_cmds=.dll
11514 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11515 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11516 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11517 $ECHO EXPORTS >> $output_objdir/$libname.def~
11518 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11519 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11520 emximp -o $lib $output_objdir/$libname.def'
11521 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11522 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11523 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11524 $ECHO EXPORTS >> $output_objdir/$libname.def~
11525 prefix_cmds="$SED"~
11526 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11527 prefix_cmds="$prefix_cmds -e 1d";
11528 fi~
11529 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11530 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11531 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11532 emximp -o $lib $output_objdir/$libname.def'
11533 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11534 enable_shared_with_static_runtimes=yes
11535 file_list_spec='@'
11536 ;;
11537
11538 osf3*)
11539 if test yes = "$GCC"; then
11540 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11541 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'
11542 else
11543 allow_undefined_flag=' -expect_unresolved \*'
11544 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'
11545 fi
11546 archive_cmds_need_lc='no'
11547 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11548 hardcode_libdir_separator=:
11549 ;;
11550
11551 osf4* | osf5*) # as osf3* with the addition of -msym flag
11552 if test yes = "$GCC"; then
11553 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11554 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'
11555 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11556 else
11557 allow_undefined_flag=' -expect_unresolved \*'
11558 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'
11559 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~
11560 $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'
11561
11562 # Both c and cxx compiler support -rpath directly
11563 hardcode_libdir_flag_spec='-rpath $libdir'
11564 fi
11565 archive_cmds_need_lc='no'
11566 hardcode_libdir_separator=:
11567 ;;
11568
11569 solaris*)
11570 no_undefined_flag=' -z defs'
11571 if test yes = "$GCC"; then
11572 wlarc='$wl'
11573 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11574 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11575 $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'
11576 else
11577 case `$CC -V 2>&1` in
11578 *"Compilers 5.0"*)
11579 wlarc=''
11580 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11581 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11582 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11583 ;;
11584 *)
11585 wlarc='$wl'
11586 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11587 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11588 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11589 ;;
11590 esac
11591 fi
11592 hardcode_libdir_flag_spec='-R$libdir'
11593 hardcode_shlibpath_var=no
11594 case $host_os in
11595 solaris2.[0-5] | solaris2.[0-5].*) ;;
11596 *)
11597 # The compiler driver will combine and reorder linker options,
11598 # but understands '-z linker_flag'. GCC discards it without '$wl',
11599 # but is careful enough not to reorder.
11600 # Supported since Solaris 2.6 (maybe 2.5.1?)
11601 if test yes = "$GCC"; then
11602 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11603 else
11604 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11605 fi
11606 ;;
11607 esac
11608 link_all_deplibs=yes
11609 ;;
11610
11611 sunos4*)
11612 if test sequent = "$host_vendor"; then
11613 # Use $CC to link under sequent, because it throws in some extra .o
11614 # files that make .init and .fini sections work.
11615 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11616 else
11617 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11618 fi
11619 hardcode_libdir_flag_spec='-L$libdir'
11620 hardcode_direct=yes
11621 hardcode_minus_L=yes
11622 hardcode_shlibpath_var=no
11623 ;;
11624
11625 sysv4)
11626 case $host_vendor in
11627 sni)
11628 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11629 hardcode_direct=yes # is this really true???
11630 ;;
11631 siemens)
11632 ## LD is ld it makes a PLAMLIB
11633 ## CC just makes a GrossModule.
11634 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11635 reload_cmds='$CC -r -o $output$reload_objs'
11636 hardcode_direct=no
11637 ;;
11638 motorola)
11639 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11640 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11641 ;;
11642 esac
11643 runpath_var='LD_RUN_PATH'
11644 hardcode_shlibpath_var=no
11645 ;;
11646
11647 sysv4.3*)
11648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11649 hardcode_shlibpath_var=no
11650 export_dynamic_flag_spec='-Bexport'
11651 ;;
11652
11653 sysv4*MP*)
11654 if test -d /usr/nec; then
11655 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11656 hardcode_shlibpath_var=no
11657 runpath_var=LD_RUN_PATH
11658 hardcode_runpath_var=yes
11659 ld_shlibs=yes
11660 fi
11661 ;;
11662
11663 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11664 no_undefined_flag='$wl-z,text'
11665 archive_cmds_need_lc=no
11666 hardcode_shlibpath_var=no
11667 runpath_var='LD_RUN_PATH'
11668
11669 if test yes = "$GCC"; then
11670 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11671 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11672 else
11673 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11674 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11675 fi
11676 ;;
11677
11678 sysv5* | sco3.2v5* | sco5v6*)
11679 # Note: We CANNOT use -z defs as we might desire, because we do not
11680 # link with -lc, and that would cause any symbols used from libc to
11681 # always be unresolved, which means just about no library would
11682 # ever link correctly. If we're not using GNU ld we use -z text
11683 # though, which does catch some bad symbols but isn't as heavy-handed
11684 # as -z defs.
11685 no_undefined_flag='$wl-z,text'
11686 allow_undefined_flag='$wl-z,nodefs'
11687 archive_cmds_need_lc=no
11688 hardcode_shlibpath_var=no
11689 hardcode_libdir_flag_spec='$wl-R,$libdir'
11690 hardcode_libdir_separator=':'
11691 link_all_deplibs=yes
11692 export_dynamic_flag_spec='$wl-Bexport'
11693 runpath_var='LD_RUN_PATH'
11694
11695 if test yes = "$GCC"; then
11696 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11697 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11698 else
11699 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11700 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11701 fi
11702 ;;
11703
11704 uts4*)
11705 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11706 hardcode_libdir_flag_spec='-L$libdir'
11707 hardcode_shlibpath_var=no
11708 ;;
11709
11710 *)
11711 ld_shlibs=no
11712 ;;
11713 esac
11714
11715 if test sni = "$host_vendor"; then
11716 case $host in
11717 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11718 export_dynamic_flag_spec='$wl-Blargedynsym'
11719 ;;
11720 esac
11721 fi
11722 fi
11723
11724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11725printf "%s\n" "$ld_shlibs" >&6; }
11726test no = "$ld_shlibs" && can_build_shared=no
11727
11728with_gnu_ld=$with_gnu_ld
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744#
11745# Do we need to explicitly link libc?
11746#
11747case "x$archive_cmds_need_lc" in
11748x|xyes)
11749 # Assume -lc should be added
11750 archive_cmds_need_lc=yes
11751
11752 if test yes,yes = "$GCC,$enable_shared"; then
11753 case $archive_cmds in
11754 *'~'*)
11755 # FIXME: we may have to deal with multi-command sequences.
11756 ;;
11757 '$CC '*)
11758 # Test whether the compiler implicitly links with -lc since on some
11759 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11760 # to ld, don't add -lc before -lgcc.
11761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11762printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11763if test ${lt_cv_archive_cmds_need_lc+y}
11764then :
11765 printf %s "(cached) " >&6
11766else case e in #(
11767 e) $RM conftest*
11768 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11769
11770 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11771 (eval $ac_compile) 2>&5
11772 ac_status=$?
11773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11774 test $ac_status = 0; } 2>conftest.err; then
11775 soname=conftest
11776 lib=conftest
11777 libobjs=conftest.$ac_objext
11778 deplibs=
11779 wl=$lt_prog_compiler_wl
11780 pic_flag=$lt_prog_compiler_pic
11781 compiler_flags=-v
11782 linker_flags=-v
11783 verstring=
11784 output_objdir=.
11785 libname=conftest
11786 lt_save_allow_undefined_flag=$allow_undefined_flag
11787 allow_undefined_flag=
11788 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11789 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11790 ac_status=$?
11791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11792 test $ac_status = 0; }
11793 then
11794 lt_cv_archive_cmds_need_lc=no
11795 else
11796 lt_cv_archive_cmds_need_lc=yes
11797 fi
11798 allow_undefined_flag=$lt_save_allow_undefined_flag
11799 else
11800 cat conftest.err 1>&5
11801 fi
11802 $RM conftest*
11803 ;;
11804esac
11805fi
11806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11807printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11808 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11809 ;;
11810 esac
11811 fi
11812 ;;
11813esac
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11967printf %s "checking dynamic linker characteristics... " >&6; }
11968
11969if test yes = "$GCC"; then
11970 case $host_os in
11971 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11972 *) lt_awk_arg='/^libraries:/' ;;
11973 esac
11974 case $host_os in
11975 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11976 *) lt_sed_strip_eq='s|=/|/|g' ;;
11977 esac
11978 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11979 case $lt_search_path_spec in
11980 *\;*)
11981 # if the path contains ";" then we assume it to be the separator
11982 # otherwise default to the standard path separator (i.e. ":") - it is
11983 # assumed that no part of a normal pathname contains ";" but that should
11984 # okay in the real world where ";" in dirpaths is itself problematic.
11985 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11986 ;;
11987 *)
11988 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11989 ;;
11990 esac
11991 # Ok, now we have the path, separated by spaces, we can step through it
11992 # and add multilib dir if necessary...
11993 lt_tmp_lt_search_path_spec=
11994 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11995 # ...but if some path component already ends with the multilib dir we assume
11996 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11997 case "$lt_multi_os_dir; $lt_search_path_spec " in
11998 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11999 lt_multi_os_dir=
12000 ;;
12001 esac
12002 for lt_sys_path in $lt_search_path_spec; do
12003 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12004 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12005 elif test -n "$lt_multi_os_dir"; then
12006 test -d "$lt_sys_path" && \
12007 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12008 fi
12009 done
12010 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12011BEGIN {RS = " "; FS = "/|\n";} {
12012 lt_foo = "";
12013 lt_count = 0;
12014 for (lt_i = NF; lt_i > 0; lt_i--) {
12015 if ($lt_i != "" && $lt_i != ".") {
12016 if ($lt_i == "..") {
12017 lt_count++;
12018 } else {
12019 if (lt_count == 0) {
12020 lt_foo = "/" $lt_i lt_foo;
12021 } else {
12022 lt_count--;
12023 }
12024 }
12025 }
12026 }
12027 if (lt_foo != "") { lt_freq[lt_foo]++; }
12028 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12029}'`
12030 # AWK program above erroneously prepends '/' to C:/dos/paths
12031 # for these hosts.
12032 case $host_os in
12033 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12034 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12035 esac
12036 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12037else
12038 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12039fi
12040library_names_spec=
12041libname_spec='lib$name'
12042soname_spec=
12043shrext_cmds=.so
12044postinstall_cmds=
12045postuninstall_cmds=
12046finish_cmds=
12047finish_eval=
12048shlibpath_var=
12049shlibpath_overrides_runpath=unknown
12050version_type=none
12051dynamic_linker="$host_os ld.so"
12052sys_lib_dlsearch_path_spec="/lib /usr/lib"
12053need_lib_prefix=unknown
12054hardcode_into_libs=no
12055
12056# when you set need_version to no, make sure it does not cause -set_version
12057# flags to be left without arguments
12058need_version=unknown
12059
12060
12061
12062case $host_os in
12063aix3*)
12064 version_type=linux # correct to gnu/linux during the next big refactor
12065 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12066 shlibpath_var=LIBPATH
12067
12068 # AIX 3 has no versioning support, so we append a major version to the name.
12069 soname_spec='$libname$release$shared_ext$major'
12070 ;;
12071
12072aix[4-9]*)
12073 version_type=linux # correct to gnu/linux during the next big refactor
12074 need_lib_prefix=no
12075 need_version=no
12076 hardcode_into_libs=yes
12077 if test ia64 = "$host_cpu"; then
12078 # AIX 5 supports IA64
12079 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12080 shlibpath_var=LD_LIBRARY_PATH
12081 else
12082 # With GCC up to 2.95.x, collect2 would create an import file
12083 # for dependence libraries. The import file would start with
12084 # the line '#! .'. This would cause the generated library to
12085 # depend on '.', always an invalid library. This was fixed in
12086 # development snapshots of GCC prior to 3.0.
12087 case $host_os in
12088 aix4 | aix4.[01] | aix4.[01].*)
12089 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12090 echo ' yes '
12091 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12092 :
12093 else
12094 can_build_shared=no
12095 fi
12096 ;;
12097 esac
12098 # Using Import Files as archive members, it is possible to support
12099 # filename-based versioning of shared library archives on AIX. While
12100 # this would work for both with and without runtime linking, it will
12101 # prevent static linking of such archives. So we do filename-based
12102 # shared library versioning with .so extension only, which is used
12103 # when both runtime linking and shared linking is enabled.
12104 # Unfortunately, runtime linking may impact performance, so we do
12105 # not want this to be the default eventually. Also, we use the
12106 # versioned .so libs for executables only if there is the -brtl
12107 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12108 # To allow for filename-based versioning support, we need to create
12109 # libNAME.so.V as an archive file, containing:
12110 # *) an Import File, referring to the versioned filename of the
12111 # archive as well as the shared archive member, telling the
12112 # bitwidth (32 or 64) of that shared object, and providing the
12113 # list of exported symbols of that shared object, eventually
12114 # decorated with the 'weak' keyword
12115 # *) the shared object with the F_LOADONLY flag set, to really avoid
12116 # it being seen by the linker.
12117 # At run time we better use the real file rather than another symlink,
12118 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12119
12120 case $with_aix_soname,$aix_use_runtimelinking in
12121 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12122 # soname into executable. Probably we can add versioning support to
12123 # collect2, so additional links can be useful in future.
12124 aix,yes) # traditional libtool
12125 dynamic_linker='AIX unversionable lib.so'
12126 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12127 # instead of lib<name>.a to let people know that these are not
12128 # typical AIX shared libraries.
12129 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12130 ;;
12131 aix,no) # traditional AIX only
12132 dynamic_linker='AIX lib.a(lib.so.V)'
12133 # We preserve .a as extension for shared libraries through AIX4.2
12134 # and later when we are not doing run time linking.
12135 library_names_spec='$libname$release.a $libname.a'
12136 soname_spec='$libname$release$shared_ext$major'
12137 ;;
12138 svr4,*) # full svr4 only
12139 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12140 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12141 # We do not specify a path in Import Files, so LIBPATH fires.
12142 shlibpath_overrides_runpath=yes
12143 ;;
12144 *,yes) # both, prefer svr4
12145 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12146 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12147 # unpreferred sharedlib libNAME.a needs extra handling
12148 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"'
12149 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"'
12150 # We do not specify a path in Import Files, so LIBPATH fires.
12151 shlibpath_overrides_runpath=yes
12152 ;;
12153 *,no) # both, prefer aix
12154 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12155 library_names_spec='$libname$release.a $libname.a'
12156 soname_spec='$libname$release$shared_ext$major'
12157 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12158 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)'
12159 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"'
12160 ;;
12161 esac
12162 shlibpath_var=LIBPATH
12163 fi
12164 ;;
12165
12166amigaos*)
12167 case $host_cpu in
12168 powerpc)
12169 # Since July 2007 AmigaOS4 officially supports .so libraries.
12170 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12171 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12172 ;;
12173 m68k)
12174 library_names_spec='$libname.ixlibrary $libname.a'
12175 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12176 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'
12177 ;;
12178 esac
12179 ;;
12180
12181beos*)
12182 library_names_spec='$libname$shared_ext'
12183 dynamic_linker="$host_os ld.so"
12184 shlibpath_var=LIBRARY_PATH
12185 ;;
12186
12187bsdi[45]*)
12188 version_type=linux # correct to gnu/linux during the next big refactor
12189 need_version=no
12190 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12191 soname_spec='$libname$release$shared_ext$major'
12192 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12193 shlibpath_var=LD_LIBRARY_PATH
12194 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12195 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12196 # the default ld.so.conf also contains /usr/contrib/lib and
12197 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12198 # libtool to hard-code these into programs
12199 ;;
12200
12201cygwin* | mingw* | pw32* | cegcc*)
12202 version_type=windows
12203 shrext_cmds=.dll
12204 need_version=no
12205 need_lib_prefix=no
12206
12207 case $GCC,$cc_basename in
12208 yes,*)
12209 # gcc
12210 library_names_spec='$libname.dll.a'
12211 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12212 postinstall_cmds='base_file=`basename \$file`~
12213 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12214 dldir=$destdir/`dirname \$dlpath`~
12215 test -d \$dldir || mkdir -p \$dldir~
12216 $install_prog $dir/$dlname \$dldir/$dlname~
12217 chmod a+x \$dldir/$dlname~
12218 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12219 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12220 fi'
12221 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12222 dlpath=$dir/\$dldll~
12223 $RM \$dlpath'
12224 shlibpath_overrides_runpath=yes
12225
12226 case $host_os in
12227 cygwin*)
12228 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12229 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12230
12231 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12232 ;;
12233 mingw* | cegcc*)
12234 # MinGW DLLs use traditional 'lib' prefix
12235 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12236 ;;
12237 pw32*)
12238 # pw32 DLLs use 'pw' prefix rather than 'lib'
12239 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12240 ;;
12241 esac
12242 dynamic_linker='Win32 ld.exe'
12243 ;;
12244
12245 *,cl* | *,icl*)
12246 # Native MSVC or ICC
12247 libname_spec='$name'
12248 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12249 library_names_spec='$libname.dll.lib'
12250
12251 case $build_os in
12252 mingw*)
12253 sys_lib_search_path_spec=
12254 lt_save_ifs=$IFS
12255 IFS=';'
12256 for lt_path in $LIB
12257 do
12258 IFS=$lt_save_ifs
12259 # Let DOS variable expansion print the short 8.3 style file name.
12260 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12261 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12262 done
12263 IFS=$lt_save_ifs
12264 # Convert to MSYS style.
12265 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12266 ;;
12267 cygwin*)
12268 # Convert to unix form, then to dos form, then back to unix form
12269 # but this time dos style (no spaces!) so that the unix form looks
12270 # like /cygdrive/c/PROGRA~1:/cygdr...
12271 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12272 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12273 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12274 ;;
12275 *)
12276 sys_lib_search_path_spec=$LIB
12277 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12278 # It is most probably a Windows format PATH.
12279 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12280 else
12281 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12282 fi
12283 # FIXME: find the short name or the path components, as spaces are
12284 # common. (e.g. "Program Files" -> "PROGRA~1")
12285 ;;
12286 esac
12287
12288 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12289 postinstall_cmds='base_file=`basename \$file`~
12290 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12291 dldir=$destdir/`dirname \$dlpath`~
12292 test -d \$dldir || mkdir -p \$dldir~
12293 $install_prog $dir/$dlname \$dldir/$dlname'
12294 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12295 dlpath=$dir/\$dldll~
12296 $RM \$dlpath'
12297 shlibpath_overrides_runpath=yes
12298 dynamic_linker='Win32 link.exe'
12299 ;;
12300
12301 *)
12302 # Assume MSVC and ICC wrapper
12303 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12304 dynamic_linker='Win32 ld.exe'
12305 ;;
12306 esac
12307 # FIXME: first we should search . and the directory the executable is in
12308 shlibpath_var=PATH
12309 ;;
12310
12311darwin* | rhapsody*)
12312 dynamic_linker="$host_os dyld"
12313 version_type=darwin
12314 need_lib_prefix=no
12315 need_version=no
12316 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12317 soname_spec='$libname$release$major$shared_ext'
12318 shlibpath_overrides_runpath=yes
12319 shlibpath_var=DYLD_LIBRARY_PATH
12320 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12321
12322 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12323 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12324 ;;
12325
12326dgux*)
12327 version_type=linux # correct to gnu/linux during the next big refactor
12328 need_lib_prefix=no
12329 need_version=no
12330 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12331 soname_spec='$libname$release$shared_ext$major'
12332 shlibpath_var=LD_LIBRARY_PATH
12333 ;;
12334
12335freebsd* | dragonfly* | midnightbsd*)
12336 # DragonFly does not have aout. When/if they implement a new
12337 # versioning mechanism, adjust this.
12338 if test -x /usr/bin/objformat; then
12339 objformat=`/usr/bin/objformat`
12340 else
12341 case $host_os in
12342 freebsd[23].*) objformat=aout ;;
12343 *) objformat=elf ;;
12344 esac
12345 fi
12346 version_type=freebsd-$objformat
12347 case $version_type in
12348 freebsd-elf*)
12349 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12350 soname_spec='$libname$release$shared_ext$major'
12351 need_version=no
12352 need_lib_prefix=no
12353 ;;
12354 freebsd-*)
12355 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12356 need_version=yes
12357 ;;
12358 esac
12359 shlibpath_var=LD_LIBRARY_PATH
12360 case $host_os in
12361 freebsd2.*)
12362 shlibpath_overrides_runpath=yes
12363 ;;
12364 freebsd3.[01]* | freebsdelf3.[01]*)
12365 shlibpath_overrides_runpath=yes
12366 hardcode_into_libs=yes
12367 ;;
12368 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12369 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12370 shlibpath_overrides_runpath=no
12371 hardcode_into_libs=yes
12372 ;;
12373 *) # from 4.6 on, and DragonFly
12374 shlibpath_overrides_runpath=yes
12375 hardcode_into_libs=yes
12376 ;;
12377 esac
12378 ;;
12379
12380haiku*)
12381 version_type=linux # correct to gnu/linux during the next big refactor
12382 need_lib_prefix=no
12383 need_version=no
12384 dynamic_linker="$host_os runtime_loader"
12385 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12386 soname_spec='$libname$release$shared_ext$major'
12387 shlibpath_var=LIBRARY_PATH
12388 shlibpath_overrides_runpath=no
12389 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12390 hardcode_into_libs=yes
12391 ;;
12392
12393hpux9* | hpux10* | hpux11*)
12394 # Give a soname corresponding to the major version so that dld.sl refuses to
12395 # link against other versions.
12396 version_type=sunos
12397 need_lib_prefix=no
12398 need_version=no
12399 case $host_cpu in
12400 ia64*)
12401 shrext_cmds='.so'
12402 hardcode_into_libs=yes
12403 dynamic_linker="$host_os dld.so"
12404 shlibpath_var=LD_LIBRARY_PATH
12405 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12406 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12407 soname_spec='$libname$release$shared_ext$major'
12408 if test 32 = "$HPUX_IA64_MODE"; then
12409 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12410 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12411 else
12412 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12413 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12414 fi
12415 ;;
12416 hppa*64*)
12417 shrext_cmds='.sl'
12418 hardcode_into_libs=yes
12419 dynamic_linker="$host_os dld.sl"
12420 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12421 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12422 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12423 soname_spec='$libname$release$shared_ext$major'
12424 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12425 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12426 ;;
12427 *)
12428 shrext_cmds='.sl'
12429 dynamic_linker="$host_os dld.sl"
12430 shlibpath_var=SHLIB_PATH
12431 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12432 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12433 soname_spec='$libname$release$shared_ext$major'
12434 ;;
12435 esac
12436 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12437 postinstall_cmds='chmod 555 $lib'
12438 # or fails outright, so override atomically:
12439 install_override_mode=555
12440 ;;
12441
12442interix[3-9]*)
12443 version_type=linux # correct to gnu/linux during the next big refactor
12444 need_lib_prefix=no
12445 need_version=no
12446 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12447 soname_spec='$libname$release$shared_ext$major'
12448 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12449 shlibpath_var=LD_LIBRARY_PATH
12450 shlibpath_overrides_runpath=no
12451 hardcode_into_libs=yes
12452 ;;
12453
12454irix5* | irix6* | nonstopux*)
12455 case $host_os in
12456 nonstopux*) version_type=nonstopux ;;
12457 *)
12458 if test yes = "$lt_cv_prog_gnu_ld"; then
12459 version_type=linux # correct to gnu/linux during the next big refactor
12460 else
12461 version_type=irix
12462 fi ;;
12463 esac
12464 need_lib_prefix=no
12465 need_version=no
12466 soname_spec='$libname$release$shared_ext$major'
12467 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12468 case $host_os in
12469 irix5* | nonstopux*)
12470 libsuff= shlibsuff=
12471 ;;
12472 *)
12473 case $LD in # libtool.m4 will add one of these switches to LD
12474 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12475 libsuff= shlibsuff= libmagic=32-bit;;
12476 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12477 libsuff=32 shlibsuff=N32 libmagic=N32;;
12478 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12479 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12480 *) libsuff= shlibsuff= libmagic=never-match;;
12481 esac
12482 ;;
12483 esac
12484 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12485 shlibpath_overrides_runpath=no
12486 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12487 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12488 hardcode_into_libs=yes
12489 ;;
12490
12491# No shared lib support for Linux oldld, aout, or coff.
12492linux*oldld* | linux*aout* | linux*coff*)
12493 dynamic_linker=no
12494 ;;
12495
12496linux*android*)
12497 version_type=none # Android doesn't support versioned libraries.
12498 need_lib_prefix=no
12499 need_version=no
12500 library_names_spec='$libname$release$shared_ext'
12501 soname_spec='$libname$release$shared_ext'
12502 finish_cmds=
12503 shlibpath_var=LD_LIBRARY_PATH
12504 shlibpath_overrides_runpath=yes
12505
12506 # This implies no fast_install, which is unacceptable.
12507 # Some rework will be needed to allow for fast_install
12508 # before this can be enabled.
12509 hardcode_into_libs=yes
12510
12511 dynamic_linker='Android linker'
12512 # Don't embed -rpath directories since the linker doesn't support them.
12513 hardcode_libdir_flag_spec='-L$libdir'
12514 ;;
12515
12516# This must be glibc/ELF.
12517linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12518 version_type=linux # correct to gnu/linux during the next big refactor
12519 need_lib_prefix=no
12520 need_version=no
12521 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12522 soname_spec='$libname$release$shared_ext$major'
12523 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12524 shlibpath_var=LD_LIBRARY_PATH
12525 shlibpath_overrides_runpath=no
12526
12527 # Some binutils ld are patched to set DT_RUNPATH
12528 if test ${lt_cv_shlibpath_overrides_runpath+y}
12529then :
12530 printf %s "(cached) " >&6
12531else case e in #(
12532 e) lt_cv_shlibpath_overrides_runpath=no
12533 save_LDFLAGS=$LDFLAGS
12534 save_libdir=$libdir
12535 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12536 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12538/* end confdefs.h. */
12539
12540int
12541main (void)
12542{
12543
12544 ;
12545 return 0;
12546}
12547_ACEOF
12548if ac_fn_c_try_link "$LINENO"
12549then :
12550 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12551then :
12552 lt_cv_shlibpath_overrides_runpath=yes
12553fi
12554fi
12555rm -f core conftest.err conftest.$ac_objext conftest.beam \
12556 conftest$ac_exeext conftest.$ac_ext
12557 LDFLAGS=$save_LDFLAGS
12558 libdir=$save_libdir
12559 ;;
12560esac
12561fi
12562
12563 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12564
12565 # This implies no fast_install, which is unacceptable.
12566 # Some rework will be needed to allow for fast_install
12567 # before this can be enabled.
12568 hardcode_into_libs=yes
12569
12570 # Ideally, we could use ldconfig to report *all* directores which are
12571 # searched for libraries, however this is still not possible. Aside from not
12572 # being certain /sbin/ldconfig is available, command
12573 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12574 # even though it is searched at run-time. Try to do the best guess by
12575 # appending ld.so.conf contents (and includes) to the search path.
12576 if test -f /etc/ld.so.conf; then
12577 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' ' '`
12578 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12579 fi
12580
12581 # We used to test for /lib/ld.so.1 and disable shared libraries on
12582 # powerpc, because MkLinux only supported shared libraries with the
12583 # GNU dynamic linker. Since this was broken with cross compilers,
12584 # most powerpc-linux boxes support dynamic linking these days and
12585 # people can always --disable-shared, the test was removed, and we
12586 # assume the GNU/Linux dynamic linker is in use.
12587 dynamic_linker='GNU/Linux ld.so'
12588 ;;
12589
12590netbsd*)
12591 version_type=sunos
12592 need_lib_prefix=no
12593 need_version=no
12594 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12595 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12596 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12597 dynamic_linker='NetBSD (a.out) ld.so'
12598 else
12599 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12600 soname_spec='$libname$release$shared_ext$major'
12601 dynamic_linker='NetBSD ld.elf_so'
12602 fi
12603 shlibpath_var=LD_LIBRARY_PATH
12604 shlibpath_overrides_runpath=yes
12605 hardcode_into_libs=yes
12606 ;;
12607
12608newsos6)
12609 version_type=linux # correct to gnu/linux during the next big refactor
12610 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12611 shlibpath_var=LD_LIBRARY_PATH
12612 shlibpath_overrides_runpath=yes
12613 ;;
12614
12615*nto* | *qnx*)
12616 version_type=qnx
12617 need_lib_prefix=no
12618 need_version=no
12619 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12620 soname_spec='$libname$release$shared_ext$major'
12621 shlibpath_var=LD_LIBRARY_PATH
12622 shlibpath_overrides_runpath=no
12623 hardcode_into_libs=yes
12624 dynamic_linker='ldqnx.so'
12625 ;;
12626
12627openbsd* | bitrig*)
12628 version_type=sunos
12629 sys_lib_dlsearch_path_spec=/usr/lib
12630 need_lib_prefix=no
12631 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12632 need_version=no
12633 else
12634 need_version=yes
12635 fi
12636 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12637 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12638 shlibpath_var=LD_LIBRARY_PATH
12639 shlibpath_overrides_runpath=yes
12640 ;;
12641
12642os2*)
12643 libname_spec='$name'
12644 version_type=windows
12645 shrext_cmds=.dll
12646 need_version=no
12647 need_lib_prefix=no
12648 # OS/2 can only load a DLL with a base name of 8 characters or less.
12649 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12650 v=$($ECHO $release$versuffix | tr -d .-);
12651 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12652 $ECHO $n$v`$shared_ext'
12653 library_names_spec='${libname}_dll.$libext'
12654 dynamic_linker='OS/2 ld.exe'
12655 shlibpath_var=BEGINLIBPATH
12656 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12657 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12658 postinstall_cmds='base_file=`basename \$file`~
12659 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12660 dldir=$destdir/`dirname \$dlpath`~
12661 test -d \$dldir || mkdir -p \$dldir~
12662 $install_prog $dir/$dlname \$dldir/$dlname~
12663 chmod a+x \$dldir/$dlname~
12664 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12665 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12666 fi'
12667 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12668 dlpath=$dir/\$dldll~
12669 $RM \$dlpath'
12670 ;;
12671
12672osf3* | osf4* | osf5*)
12673 version_type=osf
12674 need_lib_prefix=no
12675 need_version=no
12676 soname_spec='$libname$release$shared_ext$major'
12677 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12678 shlibpath_var=LD_LIBRARY_PATH
12679 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12680 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12681 ;;
12682
12683rdos*)
12684 dynamic_linker=no
12685 ;;
12686
12687solaris*)
12688 version_type=linux # correct to gnu/linux during the next big refactor
12689 need_lib_prefix=no
12690 need_version=no
12691 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12692 soname_spec='$libname$release$shared_ext$major'
12693 shlibpath_var=LD_LIBRARY_PATH
12694 shlibpath_overrides_runpath=yes
12695 hardcode_into_libs=yes
12696 # ldd complains unless libraries are executable
12697 postinstall_cmds='chmod +x $lib'
12698 ;;
12699
12700sunos4*)
12701 version_type=sunos
12702 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12703 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12704 shlibpath_var=LD_LIBRARY_PATH
12705 shlibpath_overrides_runpath=yes
12706 if test yes = "$with_gnu_ld"; then
12707 need_lib_prefix=no
12708 fi
12709 need_version=yes
12710 ;;
12711
12712sysv4 | sysv4.3*)
12713 version_type=linux # correct to gnu/linux during the next big refactor
12714 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12715 soname_spec='$libname$release$shared_ext$major'
12716 shlibpath_var=LD_LIBRARY_PATH
12717 case $host_vendor in
12718 sni)
12719 shlibpath_overrides_runpath=no
12720 need_lib_prefix=no
12721 runpath_var=LD_RUN_PATH
12722 ;;
12723 siemens)
12724 need_lib_prefix=no
12725 ;;
12726 motorola)
12727 need_lib_prefix=no
12728 need_version=no
12729 shlibpath_overrides_runpath=no
12730 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12731 ;;
12732 esac
12733 ;;
12734
12735sysv4*MP*)
12736 if test -d /usr/nec; then
12737 version_type=linux # correct to gnu/linux during the next big refactor
12738 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12739 soname_spec='$libname$shared_ext.$major'
12740 shlibpath_var=LD_LIBRARY_PATH
12741 fi
12742 ;;
12743
12744sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12745 version_type=sco
12746 need_lib_prefix=no
12747 need_version=no
12748 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12749 soname_spec='$libname$release$shared_ext$major'
12750 shlibpath_var=LD_LIBRARY_PATH
12751 shlibpath_overrides_runpath=yes
12752 hardcode_into_libs=yes
12753 if test yes = "$with_gnu_ld"; then
12754 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12755 else
12756 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12757 case $host_os in
12758 sco3.2v5*)
12759 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12760 ;;
12761 esac
12762 fi
12763 sys_lib_dlsearch_path_spec='/usr/lib'
12764 ;;
12765
12766tpf*)
12767 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12768 version_type=linux # correct to gnu/linux during the next big refactor
12769 need_lib_prefix=no
12770 need_version=no
12771 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12772 shlibpath_var=LD_LIBRARY_PATH
12773 shlibpath_overrides_runpath=no
12774 hardcode_into_libs=yes
12775 ;;
12776
12777uts4*)
12778 version_type=linux # correct to gnu/linux during the next big refactor
12779 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12780 soname_spec='$libname$release$shared_ext$major'
12781 shlibpath_var=LD_LIBRARY_PATH
12782 ;;
12783
12784*)
12785 dynamic_linker=no
12786 ;;
12787esac
12788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12789printf "%s\n" "$dynamic_linker" >&6; }
12790test no = "$dynamic_linker" && can_build_shared=no
12791
12792variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12793if test yes = "$GCC"; then
12794 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12795fi
12796
12797if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12798 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12799fi
12800
12801if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12802 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12803fi
12804
12805# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12806configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12807
12808# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12809func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12810
12811# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12812configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12911printf %s "checking how to hardcode library paths into programs... " >&6; }
12912hardcode_action=
12913if test -n "$hardcode_libdir_flag_spec" ||
12914 test -n "$runpath_var" ||
12915 test yes = "$hardcode_automatic"; then
12916
12917 # We can hardcode non-existent directories.
12918 if test no != "$hardcode_direct" &&
12919 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12920 # have to relink, otherwise we might link with an installed library
12921 # when we should be linking with a yet-to-be-installed one
12922 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12923 test no != "$hardcode_minus_L"; then
12924 # Linking always hardcodes the temporary library directory.
12925 hardcode_action=relink
12926 else
12927 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12928 hardcode_action=immediate
12929 fi
12930else
12931 # We cannot hardcode anything, or else we can only hardcode existing
12932 # directories.
12933 hardcode_action=unsupported
12934fi
12935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12936printf "%s\n" "$hardcode_action" >&6; }
12937
12938if test relink = "$hardcode_action" ||
12939 test yes = "$inherit_rpath"; then
12940 # Fast installation is not supported
12941 enable_fast_install=no
12942elif test yes = "$shlibpath_overrides_runpath" ||
12943 test no = "$enable_shared"; then
12944 # Fast installation is not necessary
12945 enable_fast_install=needless
12946fi
12947
12948
12949
12950
12951
12952
12953 if test yes != "$enable_dlopen"; then
12954 enable_dlopen=unknown
12955 enable_dlopen_self=unknown
12956 enable_dlopen_self_static=unknown
12957else
12958 lt_cv_dlopen=no
12959 lt_cv_dlopen_libs=
12960
12961 case $host_os in
12962 beos*)
12963 lt_cv_dlopen=load_add_on
12964 lt_cv_dlopen_libs=
12965 lt_cv_dlopen_self=yes
12966 ;;
12967
12968 mingw* | pw32* | cegcc*)
12969 lt_cv_dlopen=LoadLibrary
12970 lt_cv_dlopen_libs=
12971 ;;
12972
12973 cygwin*)
12974 lt_cv_dlopen=dlopen
12975 lt_cv_dlopen_libs=
12976 ;;
12977
12978 darwin*)
12979 # if libdl is installed we need to link against it
12980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12981printf %s "checking for dlopen in -ldl... " >&6; }
12982if test ${ac_cv_lib_dl_dlopen+y}
12983then :
12984 printf %s "(cached) " >&6
12985else case e in #(
12986 e) ac_check_lib_save_LIBS=$LIBS
12987LIBS="-ldl $LIBS"
12988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12989/* end confdefs.h. */
12990
12991/* Override any GCC internal prototype to avoid an error.
12992 Use char because int might match the return type of a GCC
12993 builtin and then its argument prototype would still apply.
12994 The 'extern "C"' is for builds by C++ compilers;
12995 although this is not generally supported in C code supporting it here
12996 has little cost and some practical benefit (sr 110532). */
12997#ifdef __cplusplus
12998extern "C"
12999#endif
13000char dlopen (void);
13001int
13002main (void)
13003{
13004return dlopen ();
13005 ;
13006 return 0;
13007}
13008_ACEOF
13009if ac_fn_c_try_link "$LINENO"
13010then :
13011 ac_cv_lib_dl_dlopen=yes
13012else case e in #(
13013 e) ac_cv_lib_dl_dlopen=no ;;
13014esac
13015fi
13016rm -f core conftest.err conftest.$ac_objext conftest.beam \
13017 conftest$ac_exeext conftest.$ac_ext
13018LIBS=$ac_check_lib_save_LIBS ;;
13019esac
13020fi
13021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13022printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13023if test "x$ac_cv_lib_dl_dlopen" = xyes
13024then :
13025 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13026else case e in #(
13027 e)
13028 lt_cv_dlopen=dyld
13029 lt_cv_dlopen_libs=
13030 lt_cv_dlopen_self=yes
13031 ;;
13032esac
13033fi
13034
13035 ;;
13036
13037 tpf*)
13038 # Don't try to run any link tests for TPF. We know it's impossible
13039 # because TPF is a cross-compiler, and we know how we open DSOs.
13040 lt_cv_dlopen=dlopen
13041 lt_cv_dlopen_libs=
13042 lt_cv_dlopen_self=no
13043 ;;
13044
13045 *)
13046 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13047if test "x$ac_cv_func_shl_load" = xyes
13048then :
13049 lt_cv_dlopen=shl_load
13050else case e in #(
13051 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13052printf %s "checking for shl_load in -ldld... " >&6; }
13053if test ${ac_cv_lib_dld_shl_load+y}
13054then :
13055 printf %s "(cached) " >&6
13056else case e in #(
13057 e) ac_check_lib_save_LIBS=$LIBS
13058LIBS="-ldld $LIBS"
13059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13060/* end confdefs.h. */
13061
13062/* Override any GCC internal prototype to avoid an error.
13063 Use char because int might match the return type of a GCC
13064 builtin and then its argument prototype would still apply.
13065 The 'extern "C"' is for builds by C++ compilers;
13066 although this is not generally supported in C code supporting it here
13067 has little cost and some practical benefit (sr 110532). */
13068#ifdef __cplusplus
13069extern "C"
13070#endif
13071char shl_load (void);
13072int
13073main (void)
13074{
13075return shl_load ();
13076 ;
13077 return 0;
13078}
13079_ACEOF
13080if ac_fn_c_try_link "$LINENO"
13081then :
13082 ac_cv_lib_dld_shl_load=yes
13083else case e in #(
13084 e) ac_cv_lib_dld_shl_load=no ;;
13085esac
13086fi
13087rm -f core conftest.err conftest.$ac_objext conftest.beam \
13088 conftest$ac_exeext conftest.$ac_ext
13089LIBS=$ac_check_lib_save_LIBS ;;
13090esac
13091fi
13092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13093printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13094if test "x$ac_cv_lib_dld_shl_load" = xyes
13095then :
13096 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13097else case e in #(
13098 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13099if test "x$ac_cv_func_dlopen" = xyes
13100then :
13101 lt_cv_dlopen=dlopen
13102else case e in #(
13103 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13104printf %s "checking for dlopen in -ldl... " >&6; }
13105if test ${ac_cv_lib_dl_dlopen+y}
13106then :
13107 printf %s "(cached) " >&6
13108else case e in #(
13109 e) ac_check_lib_save_LIBS=$LIBS
13110LIBS="-ldl $LIBS"
13111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13112/* end confdefs.h. */
13113
13114/* Override any GCC internal prototype to avoid an error.
13115 Use char because int might match the return type of a GCC
13116 builtin and then its argument prototype would still apply.
13117 The 'extern "C"' is for builds by C++ compilers;
13118 although this is not generally supported in C code supporting it here
13119 has little cost and some practical benefit (sr 110532). */
13120#ifdef __cplusplus
13121extern "C"
13122#endif
13123char dlopen (void);
13124int
13125main (void)
13126{
13127return dlopen ();
13128 ;
13129 return 0;
13130}
13131_ACEOF
13132if ac_fn_c_try_link "$LINENO"
13133then :
13134 ac_cv_lib_dl_dlopen=yes
13135else case e in #(
13136 e) ac_cv_lib_dl_dlopen=no ;;
13137esac
13138fi
13139rm -f core conftest.err conftest.$ac_objext conftest.beam \
13140 conftest$ac_exeext conftest.$ac_ext
13141LIBS=$ac_check_lib_save_LIBS ;;
13142esac
13143fi
13144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13145printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13146if test "x$ac_cv_lib_dl_dlopen" = xyes
13147then :
13148 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13149else case e in #(
13150 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13151printf %s "checking for dlopen in -lsvld... " >&6; }
13152if test ${ac_cv_lib_svld_dlopen+y}
13153then :
13154 printf %s "(cached) " >&6
13155else case e in #(
13156 e) ac_check_lib_save_LIBS=$LIBS
13157LIBS="-lsvld $LIBS"
13158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13159/* end confdefs.h. */
13160
13161/* Override any GCC internal prototype to avoid an error.
13162 Use char because int might match the return type of a GCC
13163 builtin and then its argument prototype would still apply.
13164 The 'extern "C"' is for builds by C++ compilers;
13165 although this is not generally supported in C code supporting it here
13166 has little cost and some practical benefit (sr 110532). */
13167#ifdef __cplusplus
13168extern "C"
13169#endif
13170char dlopen (void);
13171int
13172main (void)
13173{
13174return dlopen ();
13175 ;
13176 return 0;
13177}
13178_ACEOF
13179if ac_fn_c_try_link "$LINENO"
13180then :
13181 ac_cv_lib_svld_dlopen=yes
13182else case e in #(
13183 e) ac_cv_lib_svld_dlopen=no ;;
13184esac
13185fi
13186rm -f core conftest.err conftest.$ac_objext conftest.beam \
13187 conftest$ac_exeext conftest.$ac_ext
13188LIBS=$ac_check_lib_save_LIBS ;;
13189esac
13190fi
13191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13192printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13193if test "x$ac_cv_lib_svld_dlopen" = xyes
13194then :
13195 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13196else case e in #(
13197 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13198printf %s "checking for dld_link in -ldld... " >&6; }
13199if test ${ac_cv_lib_dld_dld_link+y}
13200then :
13201 printf %s "(cached) " >&6
13202else case e in #(
13203 e) ac_check_lib_save_LIBS=$LIBS
13204LIBS="-ldld $LIBS"
13205cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13206/* end confdefs.h. */
13207
13208/* Override any GCC internal prototype to avoid an error.
13209 Use char because int might match the return type of a GCC
13210 builtin and then its argument prototype would still apply.
13211 The 'extern "C"' is for builds by C++ compilers;
13212 although this is not generally supported in C code supporting it here
13213 has little cost and some practical benefit (sr 110532). */
13214#ifdef __cplusplus
13215extern "C"
13216#endif
13217char dld_link (void);
13218int
13219main (void)
13220{
13221return dld_link ();
13222 ;
13223 return 0;
13224}
13225_ACEOF
13226if ac_fn_c_try_link "$LINENO"
13227then :
13228 ac_cv_lib_dld_dld_link=yes
13229else case e in #(
13230 e) ac_cv_lib_dld_dld_link=no ;;
13231esac
13232fi
13233rm -f core conftest.err conftest.$ac_objext conftest.beam \
13234 conftest$ac_exeext conftest.$ac_ext
13235LIBS=$ac_check_lib_save_LIBS ;;
13236esac
13237fi
13238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13239printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13240if test "x$ac_cv_lib_dld_dld_link" = xyes
13241then :
13242 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13243fi
13244
13245 ;;
13246esac
13247fi
13248
13249 ;;
13250esac
13251fi
13252
13253 ;;
13254esac
13255fi
13256
13257 ;;
13258esac
13259fi
13260
13261 ;;
13262esac
13263fi
13264
13265 ;;
13266 esac
13267
13268 if test no = "$lt_cv_dlopen"; then
13269 enable_dlopen=no
13270 else
13271 enable_dlopen=yes
13272 fi
13273
13274 case $lt_cv_dlopen in
13275 dlopen)
13276 save_CPPFLAGS=$CPPFLAGS
13277 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13278
13279 save_LDFLAGS=$LDFLAGS
13280 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13281
13282 save_LIBS=$LIBS
13283 LIBS="$lt_cv_dlopen_libs $LIBS"
13284
13285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13286printf %s "checking whether a program can dlopen itself... " >&6; }
13287if test ${lt_cv_dlopen_self+y}
13288then :
13289 printf %s "(cached) " >&6
13290else case e in #(
13291 e) if test yes = "$cross_compiling"; then :
13292 lt_cv_dlopen_self=cross
13293else
13294 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13295 lt_status=$lt_dlunknown
13296 cat > conftest.$ac_ext <<_LT_EOF
13297#line $LINENO "configure"
13298#include "confdefs.h"
13299
13300#if HAVE_DLFCN_H
13301#include <dlfcn.h>
13302#endif
13303
13304#include <stdio.h>
13305
13306#ifdef RTLD_GLOBAL
13307# define LT_DLGLOBAL RTLD_GLOBAL
13308#else
13309# ifdef DL_GLOBAL
13310# define LT_DLGLOBAL DL_GLOBAL
13311# else
13312# define LT_DLGLOBAL 0
13313# endif
13314#endif
13315
13316/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13317 find out it does not work in some platform. */
13318#ifndef LT_DLLAZY_OR_NOW
13319# ifdef RTLD_LAZY
13320# define LT_DLLAZY_OR_NOW RTLD_LAZY
13321# else
13322# ifdef DL_LAZY
13323# define LT_DLLAZY_OR_NOW DL_LAZY
13324# else
13325# ifdef RTLD_NOW
13326# define LT_DLLAZY_OR_NOW RTLD_NOW
13327# else
13328# ifdef DL_NOW
13329# define LT_DLLAZY_OR_NOW DL_NOW
13330# else
13331# define LT_DLLAZY_OR_NOW 0
13332# endif
13333# endif
13334# endif
13335# endif
13336#endif
13337
13338/* When -fvisibility=hidden is used, assume the code has been annotated
13339 correspondingly for the symbols needed. */
13340#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13341int fnord () __attribute__((visibility("default")));
13342#endif
13343
13344int fnord () { return 42; }
13345int main ()
13346{
13347 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13348 int status = $lt_dlunknown;
13349
13350 if (self)
13351 {
13352 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13353 else
13354 {
13355 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13356 else puts (dlerror ());
13357 }
13358 /* dlclose (self); */
13359 }
13360 else
13361 puts (dlerror ());
13362
13363 return status;
13364}
13365_LT_EOF
13366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13367 (eval $ac_link) 2>&5
13368 ac_status=$?
13369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13370 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13371 (./conftest; exit; ) >&5 2>/dev/null
13372 lt_status=$?
13373 case x$lt_status in
13374 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13375 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13376 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13377 esac
13378 else :
13379 # compilation failed
13380 lt_cv_dlopen_self=no
13381 fi
13382fi
13383rm -fr conftest*
13384
13385 ;;
13386esac
13387fi
13388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13389printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13390
13391 if test yes = "$lt_cv_dlopen_self"; then
13392 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13394printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13395if test ${lt_cv_dlopen_self_static+y}
13396then :
13397 printf %s "(cached) " >&6
13398else case e in #(
13399 e) if test yes = "$cross_compiling"; then :
13400 lt_cv_dlopen_self_static=cross
13401else
13402 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13403 lt_status=$lt_dlunknown
13404 cat > conftest.$ac_ext <<_LT_EOF
13405#line $LINENO "configure"
13406#include "confdefs.h"
13407
13408#if HAVE_DLFCN_H
13409#include <dlfcn.h>
13410#endif
13411
13412#include <stdio.h>
13413
13414#ifdef RTLD_GLOBAL
13415# define LT_DLGLOBAL RTLD_GLOBAL
13416#else
13417# ifdef DL_GLOBAL
13418# define LT_DLGLOBAL DL_GLOBAL
13419# else
13420# define LT_DLGLOBAL 0
13421# endif
13422#endif
13423
13424/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13425 find out it does not work in some platform. */
13426#ifndef LT_DLLAZY_OR_NOW
13427# ifdef RTLD_LAZY
13428# define LT_DLLAZY_OR_NOW RTLD_LAZY
13429# else
13430# ifdef DL_LAZY
13431# define LT_DLLAZY_OR_NOW DL_LAZY
13432# else
13433# ifdef RTLD_NOW
13434# define LT_DLLAZY_OR_NOW RTLD_NOW
13435# else
13436# ifdef DL_NOW
13437# define LT_DLLAZY_OR_NOW DL_NOW
13438# else
13439# define LT_DLLAZY_OR_NOW 0
13440# endif
13441# endif
13442# endif
13443# endif
13444#endif
13445
13446/* When -fvisibility=hidden is used, assume the code has been annotated
13447 correspondingly for the symbols needed. */
13448#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13449int fnord () __attribute__((visibility("default")));
13450#endif
13451
13452int fnord () { return 42; }
13453int main ()
13454{
13455 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13456 int status = $lt_dlunknown;
13457
13458 if (self)
13459 {
13460 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13461 else
13462 {
13463 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13464 else puts (dlerror ());
13465 }
13466 /* dlclose (self); */
13467 }
13468 else
13469 puts (dlerror ());
13470
13471 return status;
13472}
13473_LT_EOF
13474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13475 (eval $ac_link) 2>&5
13476 ac_status=$?
13477 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13478 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13479 (./conftest; exit; ) >&5 2>/dev/null
13480 lt_status=$?
13481 case x$lt_status in
13482 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13483 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13484 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13485 esac
13486 else :
13487 # compilation failed
13488 lt_cv_dlopen_self_static=no
13489 fi
13490fi
13491rm -fr conftest*
13492
13493 ;;
13494esac
13495fi
13496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13497printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13498 fi
13499
13500 CPPFLAGS=$save_CPPFLAGS
13501 LDFLAGS=$save_LDFLAGS
13502 LIBS=$save_LIBS
13503 ;;
13504 esac
13505
13506 case $lt_cv_dlopen_self in
13507 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13508 *) enable_dlopen_self=unknown ;;
13509 esac
13510
13511 case $lt_cv_dlopen_self_static in
13512 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13513 *) enable_dlopen_self_static=unknown ;;
13514 esac
13515fi
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533striplib=
13534old_striplib=
13535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13536printf %s "checking whether stripping libraries is possible... " >&6; }
13537if test -z "$STRIP"; then
13538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13539printf "%s\n" "no" >&6; }
13540else
13541 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13542 old_striplib="$STRIP --strip-debug"
13543 striplib="$STRIP --strip-unneeded"
13544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13545printf "%s\n" "yes" >&6; }
13546 else
13547 case $host_os in
13548 darwin*)
13549 # FIXME - insert some real tests, host_os isn't really good enough
13550 striplib="$STRIP -x"
13551 old_striplib="$STRIP -S"
13552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13553printf "%s\n" "yes" >&6; }
13554 ;;
13555 freebsd*)
13556 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13557 old_striplib="$STRIP --strip-debug"
13558 striplib="$STRIP --strip-unneeded"
13559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13560printf "%s\n" "yes" >&6; }
13561 else
13562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13563printf "%s\n" "no" >&6; }
13564 fi
13565 ;;
13566 *)
13567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13568printf "%s\n" "no" >&6; }
13569 ;;
13570 esac
13571 fi
13572fi
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585 # Report what library types will actually be built
13586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13587printf %s "checking if libtool supports shared libraries... " >&6; }
13588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13589printf "%s\n" "$can_build_shared" >&6; }
13590
13591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13592printf %s "checking whether to build shared libraries... " >&6; }
13593 test no = "$can_build_shared" && enable_shared=no
13594
13595 # On AIX, shared libraries and static libraries use the same namespace, and
13596 # are all built from PIC.
13597 case $host_os in
13598 aix3*)
13599 test yes = "$enable_shared" && enable_static=no
13600 if test -n "$RANLIB"; then
13601 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13602 postinstall_cmds='$RANLIB $lib'
13603 fi
13604 ;;
13605
13606 aix[4-9]*)
13607 if test ia64 != "$host_cpu"; then
13608 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13609 yes,aix,yes) ;; # shared object as lib.so file only
13610 yes,svr4,*) ;; # shared object as lib.so archive member only
13611 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13612 esac
13613 fi
13614 ;;
13615 esac
13616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13617printf "%s\n" "$enable_shared" >&6; }
13618
13619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13620printf %s "checking whether to build static libraries... " >&6; }
13621 # Make sure either enable_shared or enable_static is yes.
13622 test yes = "$enable_shared" || enable_static=yes
13623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13624printf "%s\n" "$enable_static" >&6; }
13625
13626
13627
13628
13629fi
13630ac_ext=c
13631ac_cpp='$CPP $CPPFLAGS'
13632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13634ac_compiler_gnu=$ac_cv_c_compiler_gnu
13635
13636CC=$lt_save_CC
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652 ac_config_commands="$ac_config_commands libtool"
13653
13654
13655
13656
13657# Only expand once:
13658
13659
13660
13661
13662# Some awks crash when confronted with pnglibconf.dfa, do a test run now
13663# to make sure this doesn't happen
13664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that AWK works" >&5
13665printf %s "checking that AWK works... " >&6; }
13666if ${AWK} -f ${srcdir}/scripts/options.awk out="/dev/null" version=search\
13667 ${srcdir}/pngconf.h ${srcdir}/scripts/pnglibconf.dfa\
13668 ${srcdir}/pngusr.dfa 1>&2
13669then
13670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13671printf "%s\n" "ok" >&6; }
13672else
13673 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13674printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13675as_fn_error 1 "failed
13676See 'config.log' for more details" "$LINENO" 5; }
13677fi
13678
13679# This is a remnant of the old cc -E validation, where it may have been
13680# necessary to use a different preprocessor for .dfn files
13681DFNCPP="$CPP"
13682
13683
13684# Check whether --enable-tests was given.
13685if test ${enable_tests+y}
13686then :
13687 enableval=$enable_tests; enable_tests="$enableval"
13688else case e in #(
13689 e) enable_tests=yes ;;
13690esac
13691fi
13692
13693
13694 if test "$enable_tests" != "no"; then
13695 ENABLE_TESTS_TRUE=
13696 ENABLE_TESTS_FALSE='#'
13697else
13698 ENABLE_TESTS_TRUE='#'
13699 ENABLE_TESTS_FALSE=
13700fi
13701
13702
13703# Check whether --enable-tools was given.
13704if test ${enable_tools+y}
13705then :
13706 enableval=$enable_tools; enable_tools="$enableval"
13707else case e in #(
13708 e) enable_tools=yes ;;
13709esac
13710fi
13711
13712
13713 if test "$enable_tools" != "no"; then
13714 ENABLE_TOOLS_TRUE=
13715 ENABLE_TOOLS_FALSE='#'
13716else
13717 ENABLE_TOOLS_TRUE='#'
13718 ENABLE_TOOLS_FALSE=
13719fi
13720
13721
13722# -Werror cannot be passed to GCC in CFLAGS because configure will fail
13723# (it checks the compiler with a program that generates a warning).
13724# Add the following option to deal with this:
13725
13726# Check whether --enable-werror was given.
13727if test ${enable_werror+y}
13728then :
13729 enableval=$enable_werror; test "$enable_werror" = "yes" && enable_werror="-Werror"
13730 if test "$enable_werror" != "no"; then
13731 sav_CFLAGS="$CFLAGS"
13732 CFLAGS="$enable_werror $CFLAGS"
13733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler allows $enable_werror" >&5
13734printf %s "checking if the compiler allows $enable_werror... " >&6; }
13735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13736/* end confdefs.h. */
13737
13738 int main(int argc, char **argv){
13739 return argv[argc-1][0];
13740 }
13741_ACEOF
13742if ac_fn_c_try_compile "$LINENO"
13743then :
13744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13745printf "%s\n" "yes" >&6; }
13746 PNG_COPTS="$PNG_COPTS $enable_werror"
13747else case e in #(
13748 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13749printf "%s\n" "no" >&6; } ;;
13750esac
13751fi
13752rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13753 CFLAGS="$sav_CFLAGS"
13754 fi
13755fi
13756
13757
13758# For GCC 5 the default mode for C is -std=gnu11 instead of -std=gnu89.
13759# In pngpriv.h we request just the POSIX 1003.1 and C89 APIs by defining
13760# _POSIX_SOURCE to 1. This is incompatible with the new default mode, so
13761# we test for that and force the "-std=c89" compiler option:
13762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we need to force back C standard to C89" >&5
13763printf %s "checking if we need to force back C standard to C89... " >&6; }
13764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13765/* end confdefs.h. */
13766
13767 #define _POSIX_SOURCE 1
13768 #include <stdio.h>
13769
13770int
13771main (void)
13772{
13773
13774 ;
13775 return 0;
13776}
13777_ACEOF
13778if ac_fn_c_try_compile "$LINENO"
13779then :
13780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13781printf "%s\n" "no" >&6; }
13782else case e in #(
13783 e)
13784 if test "x$GCC" != "xyes"; then
13785 as_fn_error $? "Forcing back to C89 is required but the flags are only known for GCC" "$LINENO" 5
13786 fi
13787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13788printf "%s\n" "yes" >&6; }
13789 CFLAGS="$CFLAGS -std=c89"
13790 ;;
13791esac
13792fi
13793rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13794
13795# Checks for structures and compiler characteristics.
13796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
13797printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
13798if test ${ac_cv_struct_tm+y}
13799then :
13800 printf %s "(cached) " >&6
13801else case e in #(
13802 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13803/* end confdefs.h. */
13804#include <sys/types.h>
13805#include <time.h>
13806
13807int
13808main (void)
13809{
13810struct tm tm;
13811 int *p = &tm.tm_sec;
13812 return !p;
13813 ;
13814 return 0;
13815}
13816_ACEOF
13817if ac_fn_c_try_compile "$LINENO"
13818then :
13819 ac_cv_struct_tm=time.h
13820else case e in #(
13821 e) ac_cv_struct_tm=sys/time.h ;;
13822esac
13823fi
13824rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13825esac
13826fi
13827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
13828printf "%s\n" "$ac_cv_struct_tm" >&6; }
13829if test $ac_cv_struct_tm = sys/time.h; then
13830
13831printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
13832
13833fi
13834
13835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
13836printf %s "checking for C/C++ restrict keyword... " >&6; }
13837if test ${ac_cv_c_restrict+y}
13838then :
13839 printf %s "(cached) " >&6
13840else case e in #(
13841 e) ac_cv_c_restrict=no
13842 # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
13843 # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
13844 # Put 'restrict' last, because C++ lacks it.
13845 for ac_kw in __restrict__ __restrict _Restrict restrict; do
13846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13847/* end confdefs.h. */
13848typedef int *int_ptr;
13849 int foo (int_ptr $ac_kw ip) { return ip[0]; }
13850 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
13851 int bar (int ip[$ac_kw]) { return ip[0]; }
13852
13853int
13854main (void)
13855{
13856int s[1];
13857 int *$ac_kw t = s;
13858 t[0] = 0;
13859 return foo (t) + bar (t);
13860
13861 ;
13862 return 0;
13863}
13864_ACEOF
13865if ac_fn_c_try_compile "$LINENO"
13866then :
13867 ac_cv_c_restrict=$ac_kw
13868fi
13869rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13870 test "$ac_cv_c_restrict" != no && break
13871 done
13872 ;;
13873esac
13874fi
13875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
13876printf "%s\n" "$ac_cv_c_restrict" >&6; }
13877
13878 case $ac_cv_c_restrict in
13879 restrict) ;;
13880 no) printf "%s\n" "#define restrict /**/" >>confdefs.h
13881 ;;
13882 *) printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h
13883 ;;
13884 esac
13885
13886
13887# Checks for library functions.
13888
13889 for ac_func in pow
13890do :
13891 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
13892if test "x$ac_cv_func_pow" = xyes
13893then :
13894 printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
13895
13896else case e in #(
13897 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
13898printf %s "checking for pow in -lm... " >&6; }
13899if test ${ac_cv_lib_m_pow+y}
13900then :
13901 printf %s "(cached) " >&6
13902else case e in #(
13903 e) ac_check_lib_save_LIBS=$LIBS
13904LIBS="-lm $LIBS"
13905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13906/* end confdefs.h. */
13907
13908/* Override any GCC internal prototype to avoid an error.
13909 Use char because int might match the return type of a GCC
13910 builtin and then its argument prototype would still apply.
13911 The 'extern "C"' is for builds by C++ compilers;
13912 although this is not generally supported in C code supporting it here
13913 has little cost and some practical benefit (sr 110532). */
13914#ifdef __cplusplus
13915extern "C"
13916#endif
13917char pow (void);
13918int
13919main (void)
13920{
13921return pow ();
13922 ;
13923 return 0;
13924}
13925_ACEOF
13926if ac_fn_c_try_link "$LINENO"
13927then :
13928 ac_cv_lib_m_pow=yes
13929else case e in #(
13930 e) ac_cv_lib_m_pow=no ;;
13931esac
13932fi
13933rm -f core conftest.err conftest.$ac_objext conftest.beam \
13934 conftest$ac_exeext conftest.$ac_ext
13935LIBS=$ac_check_lib_save_LIBS ;;
13936esac
13937fi
13938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
13939printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
13940if test "x$ac_cv_lib_m_pow" = xyes
13941then :
13942 printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
13943
13944 LIBS="-lm $LIBS"
13945
13946else case e in #(
13947 e) as_fn_error $? "cannot find pow" "$LINENO" 5 ;;
13948esac
13949fi
13950 ;;
13951esac
13952fi
13953
13954done
13955
13956# Some later POSIX 1003.1 functions are required for test programs, failure
13957# here is soft (the corresponding test program is not built).
13958ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
13959if test "x$ac_cv_func_clock_gettime" = xyes
13960then :
13961
13962else case e in #(
13963 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: not building timepng" >&5
13964printf "%s\n" "$as_me: WARNING: not building timepng" >&2;} ;;
13965esac
13966fi
13967
13968 if test "$ac_cv_func_clock_gettime" = "yes"; then
13969 HAVE_CLOCK_GETTIME_TRUE=
13970 HAVE_CLOCK_GETTIME_FALSE='#'
13971else
13972 HAVE_CLOCK_GETTIME_TRUE='#'
13973 HAVE_CLOCK_GETTIME_FALSE=
13974fi
13975
13976
13977
13978# Check whether --with-zlib-prefix was given.
13979if test ${with_zlib_prefix+y}
13980then :
13981 withval=$with_zlib_prefix; ZPREFIX=${withval}
13982else case e in #(
13983 e) ZPREFIX='z_' ;;
13984esac
13985fi
13986
13987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
13988printf %s "checking for zlibVersion in -lz... " >&6; }
13989if test ${ac_cv_lib_z_zlibVersion+y}
13990then :
13991 printf %s "(cached) " >&6
13992else case e in #(
13993 e) ac_check_lib_save_LIBS=$LIBS
13994LIBS="-lz $LIBS"
13995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13996/* end confdefs.h. */
13997
13998/* Override any GCC internal prototype to avoid an error.
13999 Use char because int might match the return type of a GCC
14000 builtin and then its argument prototype would still apply.
14001 The 'extern "C"' is for builds by C++ compilers;
14002 although this is not generally supported in C code supporting it here
14003 has little cost and some practical benefit (sr 110532). */
14004#ifdef __cplusplus
14005extern "C"
14006#endif
14007char zlibVersion (void);
14008int
14009main (void)
14010{
14011return zlibVersion ();
14012 ;
14013 return 0;
14014}
14015_ACEOF
14016if ac_fn_c_try_link "$LINENO"
14017then :
14018 ac_cv_lib_z_zlibVersion=yes
14019else case e in #(
14020 e) ac_cv_lib_z_zlibVersion=no ;;
14021esac
14022fi
14023rm -f core conftest.err conftest.$ac_objext conftest.beam \
14024 conftest$ac_exeext conftest.$ac_ext
14025LIBS=$ac_check_lib_save_LIBS ;;
14026esac
14027fi
14028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
14029printf "%s\n" "$ac_cv_lib_z_zlibVersion" >&6; }
14030if test "x$ac_cv_lib_z_zlibVersion" = xyes
14031then :
14032 printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
14033
14034 LIBS="-lz $LIBS"
14035
14036else case e in #(
14037 e) as_ac_Lib=`printf "%s\n" "ac_cv_lib_z_${ZPREFIX}zlibVersion" | sed "$as_sed_sh"`
14038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ZPREFIX}zlibVersion in -lz" >&5
14039printf %s "checking for ${ZPREFIX}zlibVersion in -lz... " >&6; }
14040if eval test \${$as_ac_Lib+y}
14041then :
14042 printf %s "(cached) " >&6
14043else case e in #(
14044 e) ac_check_lib_save_LIBS=$LIBS
14045LIBS="-lz $LIBS"
14046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14047/* end confdefs.h. */
14048
14049/* Override any GCC internal prototype to avoid an error.
14050 Use char because int might match the return type of a GCC
14051 builtin and then its argument prototype would still apply.
14052 The 'extern "C"' is for builds by C++ compilers;
14053 although this is not generally supported in C code supporting it here
14054 has little cost and some practical benefit (sr 110532). */
14055#ifdef __cplusplus
14056extern "C"
14057#endif
14058char ${ZPREFIX}zlibVersion (void);
14059int
14060main (void)
14061{
14062return ${ZPREFIX}zlibVersion ();
14063 ;
14064 return 0;
14065}
14066_ACEOF
14067if ac_fn_c_try_link "$LINENO"
14068then :
14069 eval "$as_ac_Lib=yes"
14070else case e in #(
14071 e) eval "$as_ac_Lib=no" ;;
14072esac
14073fi
14074rm -f core conftest.err conftest.$ac_objext conftest.beam \
14075 conftest$ac_exeext conftest.$ac_ext
14076LIBS=$ac_check_lib_save_LIBS ;;
14077esac
14078fi
14079eval ac_res=\$$as_ac_Lib
14080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14081printf "%s\n" "$ac_res" >&6; }
14082if eval test \"x\$"$as_ac_Lib"\" = x"yes"
14083then :
14084 printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
14085
14086 LIBS="-lz $LIBS"
14087
14088else case e in #(
14089 e) as_fn_error $? "zlib not installed" "$LINENO" 5 ;;
14090esac
14091fi
14092 ;;
14093esac
14094fi
14095
14096
14097# The following is for pngvalid, to ensure it catches FP errors even on
14098# platforms that don't enable FP exceptions, the function appears in the math
14099# library (typically), it's not an error if it is not found.
14100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
14101printf %s "checking for feenableexcept in -lm... " >&6; }
14102if test ${ac_cv_lib_m_feenableexcept+y}
14103then :
14104 printf %s "(cached) " >&6
14105else case e in #(
14106 e) ac_check_lib_save_LIBS=$LIBS
14107LIBS="-lm $LIBS"
14108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14109/* end confdefs.h. */
14110
14111/* Override any GCC internal prototype to avoid an error.
14112 Use char because int might match the return type of a GCC
14113 builtin and then its argument prototype would still apply.
14114 The 'extern "C"' is for builds by C++ compilers;
14115 although this is not generally supported in C code supporting it here
14116 has little cost and some practical benefit (sr 110532). */
14117#ifdef __cplusplus
14118extern "C"
14119#endif
14120char feenableexcept (void);
14121int
14122main (void)
14123{
14124return feenableexcept ();
14125 ;
14126 return 0;
14127}
14128_ACEOF
14129if ac_fn_c_try_link "$LINENO"
14130then :
14131 ac_cv_lib_m_feenableexcept=yes
14132else case e in #(
14133 e) ac_cv_lib_m_feenableexcept=no ;;
14134esac
14135fi
14136rm -f core conftest.err conftest.$ac_objext conftest.beam \
14137 conftest$ac_exeext conftest.$ac_ext
14138LIBS=$ac_check_lib_save_LIBS ;;
14139esac
14140fi
14141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
14142printf "%s\n" "$ac_cv_lib_m_feenableexcept" >&6; }
14143if test "x$ac_cv_lib_m_feenableexcept" = xyes
14144then :
14145 printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
14146
14147 LIBS="-lm $LIBS"
14148
14149fi
14150
14151ac_fn_c_check_func "$LINENO" "feenableexcept" "ac_cv_func_feenableexcept"
14152if test "x$ac_cv_func_feenableexcept" = xyes
14153then :
14154 printf "%s\n" "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
14155
14156fi
14157
14158
14159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if using Solaris linker" >&5
14160printf %s "checking if using Solaris linker... " >&6; }
14161SLD=`$LD --version 2>&1 | grep Solaris`
14162if test "$SLD"; then
14163 have_solaris_ld=yes
14164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14165printf "%s\n" "yes" >&6; }
14166else
14167 have_solaris_ld=no
14168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14169printf "%s\n" "no" >&6; }
14170fi
14171 if test "$have_solaris_ld" = "yes"; then
14172 HAVE_SOLARIS_LD_TRUE=
14173 HAVE_SOLARIS_LD_FALSE='#'
14174else
14175 HAVE_SOLARIS_LD_TRUE='#'
14176 HAVE_SOLARIS_LD_FALSE=
14177fi
14178
14179
14180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
14181printf %s "checking if libraries can be versioned... " >&6; }
14182# Special case for PE/COFF platforms: ld reports
14183# support for version-script, but doesn't actually
14184# DO anything with it.
14185case $host in
14186*cygwin* | *mingw32* | *interix* )
14187 have_ld_version_script=no
14188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14189printf "%s\n" "no" >&6; }
14190;;
14191* )
14192
14193if test "$have_solaris_ld" = "yes"; then
14194 GLD=`$LD --help < /dev/null 2>&1 | grep 'M mapfile'`
14195else
14196 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
14197fi
14198
14199if test "$GLD"; then
14200 have_ld_version_script=yes
14201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14202printf "%s\n" "yes" >&6; }
14203else
14204 have_ld_version_script=no
14205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14206printf "%s\n" "no" >&6; }
14207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** You have not enabled versioned symbols." >&5
14208printf "%s\n" "$as_me: WARNING: *** You have not enabled versioned symbols." >&2;}
14209fi
14210;;
14211esac
14212
14213 if test "$have_ld_version_script" = "yes"; then
14214 HAVE_LD_VERSION_SCRIPT_TRUE=
14215 HAVE_LD_VERSION_SCRIPT_FALSE='#'
14216else
14217 HAVE_LD_VERSION_SCRIPT_TRUE='#'
14218 HAVE_LD_VERSION_SCRIPT_FALSE=
14219fi
14220
14221
14222if test "$have_ld_version_script" = "yes"; then
14223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for symbol prefix" >&5
14224printf %s "checking for symbol prefix... " >&6; }
14225 SYMBOL_PREFIX=`echo "PREFIX=__USER_LABEL_PREFIX__" \
14226 | ${CPP-${CC-gcc} -E} - 2>&1 \
14227 | ${EGREP-grep} "^PREFIX=" \
14228 | ${SED-sed} -e "s:^PREFIX=::" -e "s:__USER_LABEL_PREFIX__::"`
14229
14230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYMBOL_PREFIX" >&5
14231printf "%s\n" "$SYMBOL_PREFIX" >&6; }
14232fi
14233
14234# Substitutions for .in files
14235
14236
14237
14238
14239
14240# Additional arguments (and substitutions)
14241# Allow the pkg-config directory to be set
14242
14243# Check whether --with-pkgconfigdir was given.
14244if test ${with_pkgconfigdir+y}
14245then :
14246 withval=$with_pkgconfigdir; pkgconfigdir=${withval}
14247else case e in #(
14248 e) pkgconfigdir='${libdir}/pkgconfig' ;;
14249esac
14250fi
14251
14252
14253
14254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkgconfig directory is ${pkgconfigdir}" >&5
14255printf "%s\n" "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;}
14256
14257# Make the *-config binary config scripts optional
14258
14259# Check whether --with-binconfigs was given.
14260if test ${with_binconfigs+y}
14261then :
14262 withval=$with_binconfigs; if test "${withval}" = no; then
14263 binconfigs=
14264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libpng-config scripts will not be built" >&5
14265printf "%s\n" "$as_me: libpng-config scripts will not be built" >&6;}
14266 else
14267 binconfigs='${binconfigs}'
14268 fi
14269else case e in #(
14270 e) binconfigs='${binconfigs}' ;;
14271esac
14272fi
14273
14274
14275
14276# Support for prefixes to the API function names; this will generate defines
14277# at the start of the build to rename exported library functions
14278
14279# Check whether --with-libpng-prefix was given.
14280if test ${with_libpng_prefix+y}
14281then :
14282 withval=$with_libpng_prefix; if test "${withval:-no}" != "no"; then
14283 PNG_PREFIX=${withval}
14284
14285 fi
14286fi
14287
14288 if test "${with_libpng_prefix:-no}" != "no"; then
14289 DO_PNG_PREFIX_TRUE=
14290 DO_PNG_PREFIX_FALSE='#'
14291else
14292 DO_PNG_PREFIX_TRUE='#'
14293 DO_PNG_PREFIX_FALSE=
14294fi
14295
14296
14297# Control over what links are made for installed files. Versioned files are
14298# always installed, when the following options are turned on corresponding
14299# unversioned links are also created (normally as symbolic links):
14300# Check whether --enable-unversioned-links was given.
14301if test ${enable_unversioned_links+y}
14302then :
14303 enableval=$enable_unversioned_links;
14304fi
14305
14306
14307# The AM_CONDITIONAL test is written so that the default is enabled;
14308# --disable-unversioned-links must be given to turn the option off.
14309 if test "$enable_unversioned_links" != "no"; then
14310 DO_INSTALL_LINKS_TRUE=
14311 DO_INSTALL_LINKS_FALSE='#'
14312else
14313 DO_INSTALL_LINKS_TRUE='#'
14314 DO_INSTALL_LINKS_FALSE=
14315fi
14316
14317
14318# Check whether --enable-unversioned-libpng-pc was given.
14319if test ${enable_unversioned_libpng_pc+y}
14320then :
14321 enableval=$enable_unversioned_libpng_pc;
14322fi
14323
14324 if test "$enable_unversioned_libpng_pc" != "no"; then
14325 DO_INSTALL_LIBPNG_PC_TRUE=
14326 DO_INSTALL_LIBPNG_PC_FALSE='#'
14327else
14328 DO_INSTALL_LIBPNG_PC_TRUE='#'
14329 DO_INSTALL_LIBPNG_PC_FALSE=
14330fi
14331
14332
14333# Check whether --enable-unversioned-libpng-config was given.
14334if test ${enable_unversioned_libpng_config+y}
14335then :
14336 enableval=$enable_unversioned_libpng_config;
14337fi
14338
14339 if test "$enable_unversioned_libpng_config" != "no"; then
14340 DO_INSTALL_LIBPNG_CONFIG_TRUE=
14341 DO_INSTALL_LIBPNG_CONFIG_FALSE='#'
14342else
14343 DO_INSTALL_LIBPNG_CONFIG_TRUE='#'
14344 DO_INSTALL_LIBPNG_CONFIG_FALSE=
14345fi
14346
14347
14348# HOST-SPECIFIC OPTIONS
14349# =====================
14350#
14351# DEFAULT
14352# =======
14353#
14354# Check whether --enable-hardware-optimizations was given.
14355if test ${enable_hardware_optimizations+y}
14356then :
14357 enableval=$enable_hardware_optimizations; case "$enableval" in
14358 no|off)
14359 # disable hardware optimization on all systems:
14360 enable_arm_neon=no
14361
14362printf "%s\n" "#define PNG_ARM_NEON_OPT 0" >>confdefs.h
14363
14364 enable_mips_msa=no
14365
14366printf "%s\n" "#define PNG_MIPS_MSA_OPT 0" >>confdefs.h
14367
14368 enable_mips_mmi=no
14369
14370printf "%s\n" "#define PNG_MIPS_MMI_OPT 0" >>confdefs.h
14371
14372 enable_powerpc_vsx=no
14373
14374printf "%s\n" "#define PNG_POWERPC_VSX_OPT 0" >>confdefs.h
14375
14376 enable_intel_sse=no
14377
14378printf "%s\n" "#define PNG_INTEL_SSE_OPT 0" >>confdefs.h
14379
14380 enable_loongarch_lsx=no
14381
14382printf "%s\n" "#define PNG_LOONGARCH_LSX_OPT 0" >>confdefs.h
14383
14384 ;;
14385 *)
14386 # allow enabling hardware optimization on any system:
14387 case "$host_cpu" in
14388 arm*|aarch64*)
14389 enable_arm_neon=yes
14390
14391printf "%s\n" "#define PNG_ARM_NEON_OPT 2" >>confdefs.h
14392
14393 ;;
14394 mipsel*|mips64el*)
14395 enable_mips_mmi=yes
14396 enable_mips_msa=yes
14397
14398printf "%s\n" "#define PNG_MIPS_MMI_OPT 1" >>confdefs.h
14399
14400
14401printf "%s\n" "#define PNG_MIPS_MSA_OPT 2" >>confdefs.h
14402
14403 ;;
14404 i?86|x86_64)
14405 enable_intel_sse=yes
14406
14407printf "%s\n" "#define PNG_INTEL_SSE_OPT 1" >>confdefs.h
14408
14409 ;;
14410 powerpc*|ppc64*)
14411 enable_powerpc_vsx=yes
14412
14413printf "%s\n" "#define PNG_POWERPC_VSX_OPT 2" >>confdefs.h
14414
14415 ;;
14416 loongarch*)
14417 enable_loongarch_lsx=yes
14418
14419printf "%s\n" "#define PNG_LOONGARCH_LSX_OPT 1" >>confdefs.h
14420
14421 ;;
14422 esac
14423 ;;
14424 esac
14425fi
14426
14427
14428# ARM
14429# ===
14430#
14431# ARM NEON (SIMD) support.
14432
14433# Check whether --enable-arm-neon was given.
14434if test ${enable_arm_neon+y}
14435then :
14436 enableval=$enable_arm_neon; case "$enableval" in
14437 no|off)
14438 # disable the default enabling on __ARM_NEON__ systems:
14439
14440printf "%s\n" "#define PNG_ARM_NEON_OPT 0" >>confdefs.h
14441
14442 # Prevent inclusion of the assembler files below:
14443 enable_arm_neon=no ;;
14444 check)
14445
14446printf "%s\n" "#define PNG_ARM_NEON_CHECK_SUPPORTED /**/" >>confdefs.h
14447;;
14448 api)
14449
14450printf "%s\n" "#define PNG_ARM_NEON_API_SUPPORTED /**/" >>confdefs.h
14451;;
14452 yes|on)
14453
14454printf "%s\n" "#define PNG_ARM_NEON_OPT 2" >>confdefs.h
14455
14456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-arm-neon: please specify 'check' or 'api', if
14457 you want the optimizations unconditionally pass -mfpu=neon
14458 to the compiler." >&5
14459printf "%s\n" "$as_me: WARNING: --enable-arm-neon: please specify 'check' or 'api', if
14460 you want the optimizations unconditionally pass -mfpu=neon
14461 to the compiler." >&2;};;
14462 *)
14463 as_fn_error $? "--enable-arm-neon=${enable_arm_neon}: invalid value" "$LINENO" 5
14464 esac
14465fi
14466
14467
14468# Add ARM-specific files to all builds where $host_cpu is arm ('arm*') or
14469# where ARM optimizations were explicitly requested (this allows a fallback
14470# if a future host CPU does not match 'arm*')
14471
14472 if test "$enable_arm_neon" != 'no' &&
14473 case "$host_cpu" in
14474 arm*|aarch64*) : ;;
14475 *) test "$enable_arm_neon" != '' ;;
14476 esac; then
14477 PNG_ARM_NEON_TRUE=
14478 PNG_ARM_NEON_FALSE='#'
14479else
14480 PNG_ARM_NEON_TRUE='#'
14481 PNG_ARM_NEON_FALSE=
14482fi
14483
14484
14485# MIPS
14486# ====
14487#
14488# MIPS MSA (SIMD) support.
14489
14490# Check whether --enable-mips-msa was given.
14491if test ${enable_mips_msa+y}
14492then :
14493 enableval=$enable_mips_msa; case "$enableval" in
14494 no|off)
14495 # disable the default enabling on __mips_msa systems:
14496
14497printf "%s\n" "#define PNG_MIPS_MSA_OPT 0" >>confdefs.h
14498
14499 # Prevent inclusion of the assembler files below:
14500 enable_mips_msa=no ;;
14501 check)
14502
14503printf "%s\n" "#define PNG_MIPS_MSA_CHECK_SUPPORTED /**/" >>confdefs.h
14504;;
14505 api)
14506
14507printf "%s\n" "#define PNG_MIPS_MSA_API_SUPPORTED /**/" >>confdefs.h
14508;;
14509 yes|on)
14510
14511printf "%s\n" "#define PNG_MIPS_MSA_OPT 2" >>confdefs.h
14512
14513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-mips-msa: please specify 'check' or 'api', if
14514 you want the optimizations unconditionally pass '-mmsa -mfp64'
14515 to the compiler." >&5
14516printf "%s\n" "$as_me: WARNING: --enable-mips-msa: please specify 'check' or 'api', if
14517 you want the optimizations unconditionally pass '-mmsa -mfp64'
14518 to the compiler." >&2;};;
14519 *)
14520 as_fn_error $? "--enable-mips-msa=${enable_mips_msa}: invalid value" "$LINENO" 5
14521 esac
14522fi
14523
14524
14525# Add MIPS-specific files to all builds where $host_cpu is mips ('mips*') or
14526# where MIPS optimizations were explicitly requested (this allows a fallback
14527# if a future host CPU does not match 'mips*')
14528
14529 if test "$enable_mips_msa" != 'no' &&
14530 case "$host_cpu" in
14531 mipsel*|mips64el*) : ;;
14532 esac; then
14533 PNG_MIPS_MSA_TRUE=
14534 PNG_MIPS_MSA_FALSE='#'
14535else
14536 PNG_MIPS_MSA_TRUE='#'
14537 PNG_MIPS_MSA_FALSE=
14538fi
14539
14540
14541# MIPS
14542# ===
14543#
14544# MIPS MMI (SIMD) support.
14545
14546# Check whether --enable-mips-mmi was given.
14547if test ${enable_mips_mmi+y}
14548then :
14549 enableval=$enable_mips_mmi; case "$enableval" in
14550 no|off)
14551 # disable the default enabling on __mips_mmi systems:
14552
14553printf "%s\n" "#define PNG_MIPS_MMI_OPT 0" >>confdefs.h
14554
14555 # Prevent inclusion of the assembler files below:
14556 enable_mips_mmi=no;;
14557 check)
14558
14559printf "%s\n" "#define PNG_MIPS_MMI_CHECK_SUPPORTED /**/" >>confdefs.h
14560;;
14561 api)
14562
14563printf "%s\n" "#define PNG_MIPS_MMI_API_SUPPORTED /**/" >>confdefs.h
14564;;
14565 yes|on)
14566
14567printf "%s\n" "#define PNG_MIPS_MMI_OPT 1" >>confdefs.h
14568
14569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-mips-mmi: please specify 'check' or 'api', if
14570 you want the optimizations unconditionally pass '-mloongson-mmi -march=loongson3a'
14571 to the compiler." >&5
14572printf "%s\n" "$as_me: WARNING: --enable-mips-mmi: please specify 'check' or 'api', if
14573 you want the optimizations unconditionally pass '-mloongson-mmi -march=loongson3a'
14574 to the compiler." >&2;};;
14575 *)
14576 as_fn_error $? "--enable-mips-mmi=${enable_mips_mmi}: invalid value" "$LINENO" 5
14577 esac
14578fi
14579
14580
14581# Add MIPS specific files to all builds where the host_cpu is mips ('mips*') or
14582# where MIPS optimizations were explicitly requested (this allows a fallback if a
14583# future host CPU does not match 'mips*')
14584
14585 if test "$enable_mips_mmi" != 'no' &&
14586 case "$host_cpu" in
14587 mipsel*|mips64el*) :;;
14588 esac; then
14589 PNG_MIPS_MMI_TRUE=
14590 PNG_MIPS_MMI_FALSE='#'
14591else
14592 PNG_MIPS_MMI_TRUE='#'
14593 PNG_MIPS_MMI_FALSE=
14594fi
14595
14596
14597# INTEL
14598# =====
14599#
14600# INTEL SSE (SIMD) support.
14601
14602# Check whether --enable-intel-sse was given.
14603if test ${enable_intel_sse+y}
14604then :
14605 enableval=$enable_intel_sse; case "$enableval" in
14606 no|off)
14607 # disable the default enabling:
14608
14609printf "%s\n" "#define PNG_INTEL_SSE_OPT 0" >>confdefs.h
14610
14611 # Prevent inclusion of the assembler files below:
14612 enable_intel_sse=no ;;
14613 yes|on)
14614
14615printf "%s\n" "#define PNG_INTEL_SSE_OPT 1" >>confdefs.h
14616;;
14617 *)
14618 as_fn_error $? "--enable-intel-sse=${enable_intel_sse}: invalid value" "$LINENO" 5
14619 esac
14620fi
14621
14622
14623# Add Intel-specific files to all builds where $host_cpu is Intel ('x86*') or
14624# where Intel optimizations were explicitly requested (this allows a fallback
14625# if a future host CPU does not match 'x86*')
14626 if test "$enable_intel_sse" != 'no' &&
14627 case "$host_cpu" in
14628 i?86|x86_64) : ;;
14629 *) test "$enable_intel_sse" != '' ;;
14630 esac; then
14631 PNG_INTEL_SSE_TRUE=
14632 PNG_INTEL_SSE_FALSE='#'
14633else
14634 PNG_INTEL_SSE_TRUE='#'
14635 PNG_INTEL_SSE_FALSE=
14636fi
14637
14638
14639# PowerPC
14640# =======
14641#
14642# PowerPC VSX (SIMD) support.
14643
14644# Check whether --enable-powerpc-vsx was given.
14645if test ${enable_powerpc_vsx+y}
14646then :
14647 enableval=$enable_powerpc_vsx; case "$enableval" in
14648 no|off)
14649 # disable the default enabling on __ppc64__ systems:
14650
14651printf "%s\n" "#define PNG_POWERPC_VSX_OPT 0" >>confdefs.h
14652
14653 # Prevent inclusion of the platform-specific files below:
14654 enable_powerpc_vsx=no ;;
14655 check)
14656
14657printf "%s\n" "#define PNG_POWERPC_VSX_CHECK_SUPPORTED /**/" >>confdefs.h
14658
14659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-powerpc-vsx Please check contrib/powerpc/README file
14660 for the list of supported OSes." >&5
14661printf "%s\n" "$as_me: WARNING: --enable-powerpc-vsx Please check contrib/powerpc/README file
14662 for the list of supported OSes." >&2;};;
14663 api)
14664
14665printf "%s\n" "#define PNG_POWERPC_VSX_API_SUPPORTED /**/" >>confdefs.h
14666;;
14667 yes|on)
14668
14669printf "%s\n" "#define PNG_POWERPC_VSX_OPT 2" >>confdefs.h
14670
14671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-powerpc-vsx: please specify 'check' or 'api', if
14672 you want the optimizations unconditionally pass '-maltivec -mvsx'
14673 or '-mcpu=power8' to the compiler." >&5
14674printf "%s\n" "$as_me: WARNING: --enable-powerpc-vsx: please specify 'check' or 'api', if
14675 you want the optimizations unconditionally pass '-maltivec -mvsx'
14676 or '-mcpu=power8' to the compiler." >&2;};;
14677 *)
14678 as_fn_error $? "--enable-powerpc-vsx=${enable_powerpc_vsx}: invalid value" "$LINENO" 5
14679 esac
14680fi
14681
14682
14683# Add PowerPC-specific files to all builds where $host_cpu is powerpc('powerpc*')
14684# or where PowerPC optimizations were explicitly requested (this allows a fallback
14685# if a future host CPU does not match 'powerpc*')
14686
14687 if test "$enable_powerpc_vsx" != 'no' &&
14688 case "$host_cpu" in
14689 powerpc*|ppc64*) : ;;
14690 esac; then
14691 PNG_POWERPC_VSX_TRUE=
14692 PNG_POWERPC_VSX_FALSE='#'
14693else
14694 PNG_POWERPC_VSX_TRUE='#'
14695 PNG_POWERPC_VSX_FALSE=
14696fi
14697
14698
14699# LOONGARCH
14700# ===
14701#
14702# LOONGARCH LSX (SIMD) support
14703
14704if test "$LSX_CFLAGS" = ''; then
14705 LSX_CFLAGS="-mlsx"
14706fi
14707
14708compiler_support_loongarch_lsx=no
14709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use loongarch LSX intrinsics" >&5
14710printf %s "checking whether to use loongarch LSX intrinsics... " >&6; }
14711save_CFLAGS=$CFLAGS
14712CFLAGS="$CFLAGS $LSX_CFLAGS"
14713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14714/* end confdefs.h. */
14715
14716#include<lsxintrin.h>
14717int main(){
14718 __m128i a, b, c;
14719 a = __lsx_vadd_w(b, c);
14720 return 0;
14721}
14722_ACEOF
14723if ac_fn_c_try_compile "$LINENO"
14724then :
14725 compiler_support_loongarch_lsx=yes
14726fi
14727rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14728CFLAGS=$save_CFLAGS
14729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $compiler_support_loongarch_lsx" >&5
14730printf "%s\n" "$compiler_support_loongarch_lsx" >&6; }
14731
14732# Check whether --enable-loongarch-lsx was given.
14733if test ${enable_loongarch_lsx+y}
14734then :
14735 enableval=$enable_loongarch_lsx; case "$enableval" in
14736 no|off)
14737 # disable the default enabling on __loongarch_simd systems:
14738
14739printf "%s\n" "#define PNG_LOONGARCH_LSX_OPT 0" >>confdefs.h
14740
14741 # Prevent inclusion of the assembler files below:
14742 enable_loongarch_lsx=no;;
14743 yes|on)
14744
14745printf "%s\n" "#define PNG_LOONGARCH_LSX_OPT 1" >>confdefs.h
14746
14747 ;;
14748 *)
14749 as_fn_error $? "--enable-loongarch-lsx=${enable_loongarch_lsx}: invalid value" "$LINENO" 5
14750 esac
14751fi
14752
14753
14754if test "$enable_loongarch_lsx" != 'no'; then
14755 if test $compiler_support_loongarch_lsx = yes; then
14756
14757printf "%s\n" "#define PNG_LOONGARCH_LSX_OPT 1" >>confdefs.h
14758
14759 else
14760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support loongarch LSX." >&5
14761printf "%s\n" "$as_me: WARNING: Compiler does not support loongarch LSX." >&2;}
14762 fi
14763fi
14764
14765# Add LOONGARCH specific files to all builds where the host_cpu is loongarch ('loongarch*') or
14766# where LOONGARCH optimizations were explicitly requested (this allows a fallback if a
14767# future host CPU does not match 'loongarch*')
14768
14769 if test "$enable_loongarch_lsx" != 'no' && test $compiler_support_loongarch_lsx = yes &&
14770 case "$host_cpu" in
14771 loongarch*) :;;
14772 *) test "$enable_loongarch_lsx" != '';;
14773 esac; then
14774 PNG_LOONGARCH_LSX_TRUE=
14775 PNG_LOONGARCH_LSX_FALSE='#'
14776else
14777 PNG_LOONGARCH_LSX_TRUE='#'
14778 PNG_LOONGARCH_LSX_FALSE=
14779fi
14780
14781
14782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Extra options for compiler: $PNG_COPTS" >&5
14783printf "%s\n" "$as_me: Extra options for compiler: $PNG_COPTS" >&6;}
14784
14785# Config files, substituting as above
14786ac_config_files="$ac_config_files Makefile libpng.pc:libpng.pc.in"
14787
14788ac_config_files="$ac_config_files libpng-config:libpng-config.in"
14789
14790
14791cat >confcache <<\_ACEOF
14792# This file is a shell script that caches the results of configure
14793# tests run on this system so they can be shared between configure
14794# scripts and configure runs, see configure's option --config-cache.
14795# It is not useful on other systems. If it contains results you don't
14796# want to keep, you may remove or edit it.
14797#
14798# config.status only pays attention to the cache file if you give it
14799# the --recheck option to rerun configure.
14800#
14801# 'ac_cv_env_foo' variables (set or unset) will be overridden when
14802# loading this file, other *unset* 'ac_cv_foo' will be assigned the
14803# following values.
14804
14805_ACEOF
14806
14807# The following way of writing the cache mishandles newlines in values,
14808# but we know of no workaround that is simple, portable, and efficient.
14809# So, we kill variables containing newlines.
14810# Ultrix sh set writes to stderr and can't be redirected directly,
14811# and sets the high bit in the cache file unless we assign to the vars.
14812(
14813 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14814 eval ac_val=\$$ac_var
14815 case $ac_val in #(
14816 *${as_nl}*)
14817 case $ac_var in #(
14818 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14819printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14820 esac
14821 case $ac_var in #(
14822 _ | IFS | as_nl) ;; #(
14823 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14824 *) { eval $ac_var=; unset $ac_var;} ;;
14825 esac ;;
14826 esac
14827 done
14828
14829 (set) 2>&1 |
14830 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14831 *${as_nl}ac_space=\ *)
14832 # 'set' does not quote correctly, so add quotes: double-quote
14833 # substitution turns \\\\ into \\, and sed turns \\ into \.
14834 sed -n \
14835 "s/'/'\\\\''/g;
14836 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14837 ;; #(
14838 *)
14839 # 'set' quotes correctly as required by POSIX, so do not add quotes.
14840 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14841 ;;
14842 esac |
14843 sort
14844) |
14845 sed '
14846 /^ac_cv_env_/b end
14847 t clear
14848 :clear
14849 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
14850 t end
14851 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14852 :end' >>confcache
14853if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14854 if test -w "$cache_file"; then
14855 if test "x$cache_file" != "x/dev/null"; then
14856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14857printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
14858 if test ! -f "$cache_file" || test -h "$cache_file"; then
14859 cat confcache >"$cache_file"
14860 else
14861 case $cache_file in #(
14862 */* | ?:*)
14863 mv -f confcache "$cache_file"$$ &&
14864 mv -f "$cache_file"$$ "$cache_file" ;; #(
14865 *)
14866 mv -f confcache "$cache_file" ;;
14867 esac
14868 fi
14869 fi
14870 else
14871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14872printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
14873 fi
14874fi
14875rm -f confcache
14876
14877test "x$prefix" = xNONE && prefix=$ac_default_prefix
14878# Let make expand exec_prefix.
14879test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14880
14881DEFS=-DHAVE_CONFIG_H
14882
14883ac_libobjs=
14884ac_ltlibobjs=
14885U=
14886for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14887 # 1. Remove the extension, and $U if already installed.
14888 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14889 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
14890 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14891 # will be set to the directory where LIBOBJS objects are built.
14892 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14893 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14894done
14895LIBOBJS=$ac_libobjs
14896
14897LTLIBOBJS=$ac_ltlibobjs
14898
14899
14900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14901printf %s "checking that generated files are newer than configure... " >&6; }
14902 if test -n "$am_sleep_pid"; then
14903 # Hide warnings about reused PIDs.
14904 wait $am_sleep_pid 2>/dev/null
14905 fi
14906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
14907printf "%s\n" "done" >&6; }
14908 if test -n "$EXEEXT"; then
14909 am__EXEEXT_TRUE=
14910 am__EXEEXT_FALSE='#'
14911else
14912 am__EXEEXT_TRUE='#'
14913 am__EXEEXT_FALSE=
14914fi
14915
14916if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14917 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14918Usually this means the macro was only invoked conditionally." "$LINENO" 5
14919fi
14920if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14921 as_fn_error $? "conditional \"AMDEP\" was never defined.
14922Usually this means the macro was only invoked conditionally." "$LINENO" 5
14923fi
14924if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14925 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14926Usually this means the macro was only invoked conditionally." "$LINENO" 5
14927fi
14928if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
14929 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
14930Usually this means the macro was only invoked conditionally." "$LINENO" 5
14931fi
14932if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then
14933 as_fn_error $? "conditional \"ENABLE_TESTS\" was never defined.
14934Usually this means the macro was only invoked conditionally." "$LINENO" 5
14935fi
14936if test -z "${ENABLE_TOOLS_TRUE}" && test -z "${ENABLE_TOOLS_FALSE}"; then
14937 as_fn_error $? "conditional \"ENABLE_TOOLS\" was never defined.
14938Usually this means the macro was only invoked conditionally." "$LINENO" 5
14939fi
14940if test -z "${HAVE_CLOCK_GETTIME_TRUE}" && test -z "${HAVE_CLOCK_GETTIME_FALSE}"; then
14941 as_fn_error $? "conditional \"HAVE_CLOCK_GETTIME\" was never defined.
14942Usually this means the macro was only invoked conditionally." "$LINENO" 5
14943fi
14944if test -z "${HAVE_SOLARIS_LD_TRUE}" && test -z "${HAVE_SOLARIS_LD_FALSE}"; then
14945 as_fn_error $? "conditional \"HAVE_SOLARIS_LD\" was never defined.
14946Usually this means the macro was only invoked conditionally." "$LINENO" 5
14947fi
14948if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
14949 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
14950Usually this means the macro was only invoked conditionally." "$LINENO" 5
14951fi
14952if test -z "${DO_PNG_PREFIX_TRUE}" && test -z "${DO_PNG_PREFIX_FALSE}"; then
14953 as_fn_error $? "conditional \"DO_PNG_PREFIX\" was never defined.
14954Usually this means the macro was only invoked conditionally." "$LINENO" 5
14955fi
14956if test -z "${DO_INSTALL_LINKS_TRUE}" && test -z "${DO_INSTALL_LINKS_FALSE}"; then
14957 as_fn_error $? "conditional \"DO_INSTALL_LINKS\" was never defined.
14958Usually this means the macro was only invoked conditionally." "$LINENO" 5
14959fi
14960if test -z "${DO_INSTALL_LIBPNG_PC_TRUE}" && test -z "${DO_INSTALL_LIBPNG_PC_FALSE}"; then
14961 as_fn_error $? "conditional \"DO_INSTALL_LIBPNG_PC\" was never defined.
14962Usually this means the macro was only invoked conditionally." "$LINENO" 5
14963fi
14964if test -z "${DO_INSTALL_LIBPNG_CONFIG_TRUE}" && test -z "${DO_INSTALL_LIBPNG_CONFIG_FALSE}"; then
14965 as_fn_error $? "conditional \"DO_INSTALL_LIBPNG_CONFIG\" was never defined.
14966Usually this means the macro was only invoked conditionally." "$LINENO" 5
14967fi
14968if test -z "${PNG_ARM_NEON_TRUE}" && test -z "${PNG_ARM_NEON_FALSE}"; then
14969 as_fn_error $? "conditional \"PNG_ARM_NEON\" was never defined.
14970Usually this means the macro was only invoked conditionally." "$LINENO" 5
14971fi
14972if test -z "${PNG_MIPS_MSA_TRUE}" && test -z "${PNG_MIPS_MSA_FALSE}"; then
14973 as_fn_error $? "conditional \"PNG_MIPS_MSA\" was never defined.
14974Usually this means the macro was only invoked conditionally." "$LINENO" 5
14975fi
14976if test -z "${PNG_MIPS_MMI_TRUE}" && test -z "${PNG_MIPS_MMI_FALSE}"; then
14977 as_fn_error $? "conditional \"PNG_MIPS_MMI\" was never defined.
14978Usually this means the macro was only invoked conditionally." "$LINENO" 5
14979fi
14980if test -z "${PNG_INTEL_SSE_TRUE}" && test -z "${PNG_INTEL_SSE_FALSE}"; then
14981 as_fn_error $? "conditional \"PNG_INTEL_SSE\" was never defined.
14982Usually this means the macro was only invoked conditionally." "$LINENO" 5
14983fi
14984if test -z "${PNG_POWERPC_VSX_TRUE}" && test -z "${PNG_POWERPC_VSX_FALSE}"; then
14985 as_fn_error $? "conditional \"PNG_POWERPC_VSX\" was never defined.
14986Usually this means the macro was only invoked conditionally." "$LINENO" 5
14987fi
14988if test -z "${PNG_LOONGARCH_LSX_TRUE}" && test -z "${PNG_LOONGARCH_LSX_FALSE}"; then
14989 as_fn_error $? "conditional \"PNG_LOONGARCH_LSX\" was never defined.
14990Usually this means the macro was only invoked conditionally." "$LINENO" 5
14991fi
14992
14993: "${CONFIG_STATUS=./config.status}"
14994ac_write_fail=0
14995ac_clean_files_save=$ac_clean_files
14996ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14998printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
14999as_write_fail=0
15000cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15001#! $SHELL
15002# Generated by $as_me.
15003# Run this file to recreate the current configuration.
15004# Compiler output produced by configure, useful for debugging
15005# configure, is in config.log if it exists.
15006
15007debug=false
15008ac_cs_recheck=false
15009ac_cs_silent=false
15010
15011SHELL=\${CONFIG_SHELL-$SHELL}
15012export SHELL
15013_ASEOF
15014cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15015## -------------------- ##
15016## M4sh Initialization. ##
15017## -------------------- ##
15018
15019# Be more Bourne compatible
15020DUALCASE=1; export DUALCASE # for MKS sh
15021if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15022then :
15023 emulate sh
15024 NULLCMD=:
15025 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15026 # is contrary to our usage. Disable this feature.
15027 alias -g '${1+"$@"}'='"$@"'
15028 setopt NO_GLOB_SUBST
15029else case e in #(
15030 e) case `(set -o) 2>/dev/null` in #(
15031 *posix*) :
15032 set -o posix ;; #(
15033 *) :
15034 ;;
15035esac ;;
15036esac
15037fi
15038
15039
15040
15041# Reset variables that may have inherited troublesome values from
15042# the environment.
15043
15044# IFS needs to be set, to space, tab, and newline, in precisely that order.
15045# (If _AS_PATH_WALK were called with IFS unset, it would have the
15046# side effect of setting IFS to empty, thus disabling word splitting.)
15047# Quoting is to prevent editors from complaining about space-tab.
15048as_nl='
15049'
15050export as_nl
15051IFS=" "" $as_nl"
15052
15053PS1='$ '
15054PS2='> '
15055PS4='+ '
15056
15057# Ensure predictable behavior from utilities with locale-dependent output.
15058LC_ALL=C
15059export LC_ALL
15060LANGUAGE=C
15061export LANGUAGE
15062
15063# We cannot yet rely on "unset" to work, but we need these variables
15064# to be unset--not just set to an empty or harmless value--now, to
15065# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
15066# also avoids known problems related to "unset" and subshell syntax
15067# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15068for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15069do eval test \${$as_var+y} \
15070 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15071done
15072
15073# Ensure that fds 0, 1, and 2 are open.
15074if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15075if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15076if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
15077
15078# The user is always right.
15079if ${PATH_SEPARATOR+false} :; then
15080 PATH_SEPARATOR=:
15081 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15082 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15083 PATH_SEPARATOR=';'
15084 }
15085fi
15086
15087
15088# Find who we are. Look in the path if we contain no directory separator.
15089as_myself=
15090case $0 in #((
15091 *[\\/]* ) as_myself=$0 ;;
15092 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15093for as_dir in $PATH
15094do
15095 IFS=$as_save_IFS
15096 case $as_dir in #(((
15097 '') as_dir=./ ;;
15098 */) ;;
15099 *) as_dir=$as_dir/ ;;
15100 esac
15101 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15102 done
15103IFS=$as_save_IFS
15104
15105 ;;
15106esac
15107# We did not find ourselves, most probably we were run as 'sh COMMAND'
15108# in which case we are not to be found in the path.
15109if test "x$as_myself" = x; then
15110 as_myself=$0
15111fi
15112if test ! -f "$as_myself"; then
15113 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15114 exit 1
15115fi
15116
15117
15118
15119# as_fn_error STATUS ERROR [LINENO LOG_FD]
15120# ----------------------------------------
15121# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15122# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15123# script with STATUS, using 1 if that was 0.
15124as_fn_error ()
15125{
15126 as_status=$1; test $as_status -eq 0 && as_status=1
15127 if test "$4"; then
15128 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15129 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15130 fi
15131 printf "%s\n" "$as_me: error: $2" >&2
15132 as_fn_exit $as_status
15133} # as_fn_error
15134
15135
15136# as_fn_set_status STATUS
15137# -----------------------
15138# Set $? to STATUS, without forking.
15139as_fn_set_status ()
15140{
15141 return $1
15142} # as_fn_set_status
15143
15144# as_fn_exit STATUS
15145# -----------------
15146# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15147as_fn_exit ()
15148{
15149 set +e
15150 as_fn_set_status $1
15151 exit $1
15152} # as_fn_exit
15153
15154# as_fn_unset VAR
15155# ---------------
15156# Portably unset VAR.
15157as_fn_unset ()
15158{
15159 { eval $1=; unset $1;}
15160}
15161as_unset=as_fn_unset
15162
15163# as_fn_append VAR VALUE
15164# ----------------------
15165# Append the text in VALUE to the end of the definition contained in VAR. Take
15166# advantage of any shell optimizations that allow amortized linear growth over
15167# repeated appends, instead of the typical quadratic growth present in naive
15168# implementations.
15169if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15170then :
15171 eval 'as_fn_append ()
15172 {
15173 eval $1+=\$2
15174 }'
15175else case e in #(
15176 e) as_fn_append ()
15177 {
15178 eval $1=\$$1\$2
15179 } ;;
15180esac
15181fi # as_fn_append
15182
15183# as_fn_arith ARG...
15184# ------------------
15185# Perform arithmetic evaluation on the ARGs, and store the result in the
15186# global $as_val. Take advantage of shells that can avoid forks. The arguments
15187# must be portable across $(()) and expr.
15188if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15189then :
15190 eval 'as_fn_arith ()
15191 {
15192 as_val=$(( $* ))
15193 }'
15194else case e in #(
15195 e) as_fn_arith ()
15196 {
15197 as_val=`expr "$@" || test $? -eq 1`
15198 } ;;
15199esac
15200fi # as_fn_arith
15201
15202
15203if expr a : '\(a\)' >/dev/null 2>&1 &&
15204 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15205 as_expr=expr
15206else
15207 as_expr=false
15208fi
15209
15210if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15211 as_basename=basename
15212else
15213 as_basename=false
15214fi
15215
15216if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15217 as_dirname=dirname
15218else
15219 as_dirname=false
15220fi
15221
15222as_me=`$as_basename -- "$0" ||
15223$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15224 X"$0" : 'X\(//\)$' \| \
15225 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15226printf "%s\n" X/"$0" |
15227 sed '/^.*\/\([^/][^/]*\)\/*$/{
15228 s//\1/
15229 q
15230 }
15231 /^X\/\(\/\/\)$/{
15232 s//\1/
15233 q
15234 }
15235 /^X\/\(\/\).*/{
15236 s//\1/
15237 q
15238 }
15239 s/.*/./; q'`
15240
15241# Avoid depending upon Character Ranges.
15242as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15243as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15244as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15245as_cr_digits='0123456789'
15246as_cr_alnum=$as_cr_Letters$as_cr_digits
15247
15248
15249# Determine whether it's possible to make 'echo' print without a newline.
15250# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15251# for compatibility with existing Makefiles.
15252ECHO_C= ECHO_N= ECHO_T=
15253case `echo -n x` in #(((((
15254-n*)
15255 case `echo 'xy\c'` in
15256 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15257 xy) ECHO_C='\c';;
15258 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15259 ECHO_T=' ';;
15260 esac;;
15261*)
15262 ECHO_N='-n';;
15263esac
15264
15265# For backward compatibility with old third-party macros, we provide
15266# the shell variables $as_echo and $as_echo_n. New code should use
15267# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
15268as_echo='printf %s\n'
15269as_echo_n='printf %s'
15270
15271rm -f conf$$ conf$$.exe conf$$.file
15272if test -d conf$$.dir; then
15273 rm -f conf$$.dir/conf$$.file
15274else
15275 rm -f conf$$.dir
15276 mkdir conf$$.dir 2>/dev/null
15277fi
15278if (echo >conf$$.file) 2>/dev/null; then
15279 if ln -s conf$$.file conf$$ 2>/dev/null; then
15280 as_ln_s='ln -s'
15281 # ... but there are two gotchas:
15282 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
15283 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
15284 # In both cases, we have to default to 'cp -pR'.
15285 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15286 as_ln_s='cp -pR'
15287 elif ln conf$$.file conf$$ 2>/dev/null; then
15288 as_ln_s=ln
15289 else
15290 as_ln_s='cp -pR'
15291 fi
15292else
15293 as_ln_s='cp -pR'
15294fi
15295rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15296rmdir conf$$.dir 2>/dev/null
15297
15298
15299# as_fn_mkdir_p
15300# -------------
15301# Create "$as_dir" as a directory, including parents if necessary.
15302as_fn_mkdir_p ()
15303{
15304
15305 case $as_dir in #(
15306 -*) as_dir=./$as_dir;;
15307 esac
15308 test -d "$as_dir" || eval $as_mkdir_p || {
15309 as_dirs=
15310 while :; do
15311 case $as_dir in #(
15312 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15313 *) as_qdir=$as_dir;;
15314 esac
15315 as_dirs="'$as_qdir' $as_dirs"
15316 as_dir=`$as_dirname -- "$as_dir" ||
15317$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15318 X"$as_dir" : 'X\(//\)[^/]' \| \
15319 X"$as_dir" : 'X\(//\)$' \| \
15320 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15321printf "%s\n" X"$as_dir" |
15322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15323 s//\1/
15324 q
15325 }
15326 /^X\(\/\/\)[^/].*/{
15327 s//\1/
15328 q
15329 }
15330 /^X\(\/\/\)$/{
15331 s//\1/
15332 q
15333 }
15334 /^X\(\/\).*/{
15335 s//\1/
15336 q
15337 }
15338 s/.*/./; q'`
15339 test -d "$as_dir" && break
15340 done
15341 test -z "$as_dirs" || eval "mkdir $as_dirs"
15342 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15343
15344
15345} # as_fn_mkdir_p
15346if mkdir -p . 2>/dev/null; then
15347 as_mkdir_p='mkdir -p "$as_dir"'
15348else
15349 test -d ./-p && rmdir ./-p
15350 as_mkdir_p=false
15351fi
15352
15353
15354# as_fn_executable_p FILE
15355# -----------------------
15356# Test if FILE is an executable regular file.
15357as_fn_executable_p ()
15358{
15359 test -f "$1" && test -x "$1"
15360} # as_fn_executable_p
15361as_test_x='test -x'
15362as_executable_p=as_fn_executable_p
15363
15364# Sed expression to map a string onto a valid CPP name.
15365as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15366as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
15367
15368# Sed expression to map a string onto a valid variable name.
15369as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15370as_tr_sh="eval sed '$as_sed_sh'" # deprecated
15371
15372
15373exec 6>&1
15374## ----------------------------------- ##
15375## Main body of $CONFIG_STATUS script. ##
15376## ----------------------------------- ##
15377_ASEOF
15378test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15379
15380cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15381# Save the log message, to keep $0 and so on meaningful, and to
15382# report actual input values of CONFIG_FILES etc. instead of their
15383# values after options handling.
15384ac_log="
15385This file was extended by libpng $as_me 1.6.42, which was
15386generated by GNU Autoconf 2.72. Invocation command line was
15387
15388 CONFIG_FILES = $CONFIG_FILES
15389 CONFIG_HEADERS = $CONFIG_HEADERS
15390 CONFIG_LINKS = $CONFIG_LINKS
15391 CONFIG_COMMANDS = $CONFIG_COMMANDS
15392 $ $0 $@
15393
15394on `(hostname || uname -n) 2>/dev/null | sed 1q`
15395"
15396
15397_ACEOF
15398
15399case $ac_config_files in *"
15400"*) set x $ac_config_files; shift; ac_config_files=$*;;
15401esac
15402
15403case $ac_config_headers in *"
15404"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15405esac
15406
15407
15408cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15409# Files that config.status was made for.
15410config_files="$ac_config_files"
15411config_headers="$ac_config_headers"
15412config_commands="$ac_config_commands"
15413
15414_ACEOF
15415
15416cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15417ac_cs_usage="\
15418'$as_me' instantiates files and other configuration actions
15419from templates according to the current configuration. Unless the files
15420and actions are specified as TAGs, all are instantiated by default.
15421
15422Usage: $0 [OPTION]... [TAG]...
15423
15424 -h, --help print this help, then exit
15425 -V, --version print version number and configuration settings, then exit
15426 --config print configuration, then exit
15427 -q, --quiet, --silent
15428 do not print progress messages
15429 -d, --debug don't remove temporary files
15430 --recheck update $as_me by reconfiguring in the same conditions
15431 --file=FILE[:TEMPLATE]
15432 instantiate the configuration file FILE
15433 --header=FILE[:TEMPLATE]
15434 instantiate the configuration header FILE
15435
15436Configuration files:
15437$config_files
15438
15439Configuration headers:
15440$config_headers
15441
15442Configuration commands:
15443$config_commands
15444
15445Report bugs to <png-mng-implement@lists.sourceforge.net>."
15446
15447_ACEOF
15448ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
15449ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
15450cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15451ac_cs_config='$ac_cs_config_escaped'
15452ac_cs_version="\\
15453libpng config.status 1.6.42
15454configured by $0, generated by GNU Autoconf 2.72,
15455 with options \\"\$ac_cs_config\\"
15456
15457Copyright (C) 2023 Free Software Foundation, Inc.
15458This config.status script is free software; the Free Software Foundation
15459gives unlimited permission to copy, distribute and modify it."
15460
15461ac_pwd='$ac_pwd'
15462srcdir='$srcdir'
15463INSTALL='$INSTALL'
15464MKDIR_P='$MKDIR_P'
15465AWK='$AWK'
15466test -n "\$AWK" || AWK=awk
15467_ACEOF
15468
15469cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15470# The default lists apply if the user does not specify any file.
15471ac_need_defaults=:
15472while test $# != 0
15473do
15474 case $1 in
15475 --*=?*)
15476 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15477 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15478 ac_shift=:
15479 ;;
15480 --*=)
15481 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15482 ac_optarg=
15483 ac_shift=:
15484 ;;
15485 *)
15486 ac_option=$1
15487 ac_optarg=$2
15488 ac_shift=shift
15489 ;;
15490 esac
15491
15492 case $ac_option in
15493 # Handling of the options.
15494 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15495 ac_cs_recheck=: ;;
15496 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15497 printf "%s\n" "$ac_cs_version"; exit ;;
15498 --config | --confi | --conf | --con | --co | --c )
15499 printf "%s\n" "$ac_cs_config"; exit ;;
15500 --debug | --debu | --deb | --de | --d | -d )
15501 debug=: ;;
15502 --file | --fil | --fi | --f )
15503 $ac_shift
15504 case $ac_optarg in
15505 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15506 '') as_fn_error $? "missing file argument" ;;
15507 esac
15508 as_fn_append CONFIG_FILES " '$ac_optarg'"
15509 ac_need_defaults=false;;
15510 --header | --heade | --head | --hea )
15511 $ac_shift
15512 case $ac_optarg in
15513 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15514 esac
15515 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15516 ac_need_defaults=false;;
15517 --he | --h)
15518 # Conflict between --help and --header
15519 as_fn_error $? "ambiguous option: '$1'
15520Try '$0 --help' for more information.";;
15521 --help | --hel | -h )
15522 printf "%s\n" "$ac_cs_usage"; exit ;;
15523 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15524 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15525 ac_cs_silent=: ;;
15526
15527 # This is an error.
15528 -*) as_fn_error $? "unrecognized option: '$1'
15529Try '$0 --help' for more information." ;;
15530
15531 *) as_fn_append ac_config_targets " $1"
15532 ac_need_defaults=false ;;
15533
15534 esac
15535 shift
15536done
15537
15538ac_configure_extra_args=
15539
15540if $ac_cs_silent; then
15541 exec 6>/dev/null
15542 ac_configure_extra_args="$ac_configure_extra_args --silent"
15543fi
15544
15545_ACEOF
15546cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15547if \$ac_cs_recheck; then
15548 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15549 shift
15550 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
15551 CONFIG_SHELL='$SHELL'
15552 export CONFIG_SHELL
15553 exec "\$@"
15554fi
15555
15556_ACEOF
15557cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15558exec 5>>config.log
15559{
15560 echo
15561 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15562## Running $as_me. ##
15563_ASBOX
15564 printf "%s\n" "$ac_log"
15565} >&5
15566
15567_ACEOF
15568cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15569#
15570# INIT-COMMANDS
15571#
15572AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15573
15574
15575# The HP-UX ksh and POSIX shell print the target directory to stdout
15576# if CDPATH is set.
15577(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15578
15579sed_quote_subst='$sed_quote_subst'
15580double_quote_subst='$double_quote_subst'
15581delay_variable_subst='$delay_variable_subst'
15582SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15583Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15584GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15585EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15586FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15587SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15588ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15589LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15590macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15591macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15592AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
15593DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15594OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15595enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15596enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15597pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15598enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15599shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15600PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15601host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15602host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15603host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15604build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15605build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15606build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15607NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15608LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15609max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15610ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15611exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15612lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15613lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15614lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15615lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15616lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15617reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15618reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15619FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
15620deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15621file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15622file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15623want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15624sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15625AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15626lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
15627AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15628archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15629STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15630RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15631old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15632old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15633old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15634lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15635CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15636CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15637compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15638GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15639lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15640lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15641lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15642lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15643lt_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"`'
15644lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15645nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15646lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15647lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15648objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15649MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15650lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15651lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15652lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15653lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15654lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15655need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15656MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15657DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15658NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15659LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15660OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15661OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15662libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15663shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15664extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15665archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15666enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15667export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15668whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15669compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15670old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15671old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15672archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15673archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15674module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15675module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15676with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15677allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15678no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15679hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15680hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15681hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15682hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15683hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15684hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15685hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15686inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15687link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15688always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15689export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15690exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15691include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15692prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15693postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15694file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15695variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15696need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15697need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15698version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15699runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15700shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15701shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15702libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15703library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15704soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15705install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15706postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15707postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15708finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15709finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15710hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15711sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15712configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15713configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15714hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15715enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15716enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15717enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15718old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15719striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15720
15721LTCC='$LTCC'
15722LTCFLAGS='$LTCFLAGS'
15723compiler='$compiler_DEFAULT'
15724
15725# A function that is used when there is no print builtin or printf.
15726func_fallback_echo ()
15727{
15728 eval 'cat <<_LTECHO_EOF
15729\$1
15730_LTECHO_EOF'
15731}
15732
15733# Quote evaled strings.
15734for var in SED \
15735GREP \
15736EGREP \
15737FGREP \
15738SHELL \
15739ECHO \
15740LD \
15741AS \
15742DLLTOOL \
15743OBJDUMP \
15744PATH_SEPARATOR \
15745NM \
15746LN_S \
15747lt_SP2NL \
15748lt_NL2SP \
15749reload_flag \
15750FILECMD \
15751deplibs_check_method \
15752file_magic_cmd \
15753file_magic_glob \
15754want_nocaseglob \
15755sharedlib_from_linklib_cmd \
15756AR \
15757archiver_list_spec \
15758STRIP \
15759RANLIB \
15760CC \
15761CFLAGS \
15762compiler \
15763lt_cv_sys_global_symbol_pipe \
15764lt_cv_sys_global_symbol_to_cdecl \
15765lt_cv_sys_global_symbol_to_import \
15766lt_cv_sys_global_symbol_to_c_name_address \
15767lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15768lt_cv_nm_interface \
15769nm_file_list_spec \
15770lt_cv_truncate_bin \
15771lt_prog_compiler_no_builtin_flag \
15772lt_prog_compiler_pic \
15773lt_prog_compiler_wl \
15774lt_prog_compiler_static \
15775lt_cv_prog_compiler_c_o \
15776need_locks \
15777MANIFEST_TOOL \
15778DSYMUTIL \
15779NMEDIT \
15780LIPO \
15781OTOOL \
15782OTOOL64 \
15783shrext_cmds \
15784export_dynamic_flag_spec \
15785whole_archive_flag_spec \
15786compiler_needs_object \
15787with_gnu_ld \
15788allow_undefined_flag \
15789no_undefined_flag \
15790hardcode_libdir_flag_spec \
15791hardcode_libdir_separator \
15792exclude_expsyms \
15793include_expsyms \
15794file_list_spec \
15795variables_saved_for_relink \
15796libname_spec \
15797library_names_spec \
15798soname_spec \
15799install_override_mode \
15800finish_eval \
15801old_striplib \
15802striplib; do
15803 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15804 *[\\\\\\\`\\"\\\$]*)
15805 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15806 ;;
15807 *)
15808 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15809 ;;
15810 esac
15811done
15812
15813# Double-quote double-evaled strings.
15814for var in reload_cmds \
15815old_postinstall_cmds \
15816old_postuninstall_cmds \
15817old_archive_cmds \
15818extract_expsyms_cmds \
15819old_archive_from_new_cmds \
15820old_archive_from_expsyms_cmds \
15821archive_cmds \
15822archive_expsym_cmds \
15823module_cmds \
15824module_expsym_cmds \
15825export_symbols_cmds \
15826prelink_cmds \
15827postlink_cmds \
15828postinstall_cmds \
15829postuninstall_cmds \
15830finish_cmds \
15831sys_lib_search_path_spec \
15832configure_time_dlsearch_path \
15833configure_time_lt_sys_library_path; do
15834 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15835 *[\\\\\\\`\\"\\\$]*)
15836 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15837 ;;
15838 *)
15839 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15840 ;;
15841 esac
15842done
15843
15844ac_aux_dir='$ac_aux_dir'
15845
15846# See if we are running on zsh, and set the options that allow our
15847# commands through without removal of \ escapes INIT.
15848if test -n "\${ZSH_VERSION+set}"; then
15849 setopt NO_GLOB_SUBST
15850fi
15851
15852
15853 PACKAGE='$PACKAGE'
15854 VERSION='$VERSION'
15855 RM='$RM'
15856 ofile='$ofile'
15857
15858
15859
15860
15861_ACEOF
15862
15863cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15864
15865# Handling of arguments.
15866for ac_config_target in $ac_config_targets
15867do
15868 case $ac_config_target in
15869 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15870 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15871 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15872 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15873 "libpng.pc") CONFIG_FILES="$CONFIG_FILES libpng.pc:libpng.pc.in" ;;
15874 "libpng-config") CONFIG_FILES="$CONFIG_FILES libpng-config:libpng-config.in" ;;
15875
15876 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
15877 esac
15878done
15879
15880
15881# If the user did not use the arguments to specify the items to instantiate,
15882# then the envvar interface is used. Set only those that are not.
15883# We use the long form for the default assignment because of an extremely
15884# bizarre bug on SunOS 4.1.3.
15885if $ac_need_defaults; then
15886 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
15887 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
15888 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
15889fi
15890
15891# Have a temporary directory for convenience. Make it in the build tree
15892# simply because there is no reason against having it here, and in addition,
15893# creating and moving files from /tmp can sometimes cause problems.
15894# Hook for its removal unless debugging.
15895# Note that there is a small window in which the directory will not be cleaned:
15896# after its creation but before its name has been assigned to '$tmp'.
15897$debug ||
15898{
15899 tmp= ac_tmp=
15900 trap 'exit_status=$?
15901 : "${ac_tmp:=$tmp}"
15902 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15903' 0
15904 trap 'as_fn_exit 1' 1 2 13 15
15905}
15906# Create a (secure) tmp directory for tmp files.
15907
15908{
15909 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15910 test -d "$tmp"
15911} ||
15912{
15913 tmp=./conf$$-$RANDOM
15914 (umask 077 && mkdir "$tmp")
15915} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15916ac_tmp=$tmp
15917
15918# Set up the scripts for CONFIG_FILES section.
15919# No need to generate them if there are no CONFIG_FILES.
15920# This happens for instance with './config.status config.h'.
15921if test -n "$CONFIG_FILES"; then
15922
15923
15924ac_cr=`echo X | tr X '\015'`
15925# On cygwin, bash can eat \r inside `` if the user requested igncr.
15926# But we know of no other shell where ac_cr would be empty at this
15927# point, so we can use a bashism as a fallback.
15928if test "x$ac_cr" = x; then
15929 eval ac_cr=\$\'\\r\'
15930fi
15931ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15932if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15933 ac_cs_awk_cr='\\r'
15934else
15935 ac_cs_awk_cr=$ac_cr
15936fi
15937
15938echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15939_ACEOF
15940
15941
15942{
15943 echo "cat >conf$$subs.awk <<_ACEOF" &&
15944 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15945 echo "_ACEOF"
15946} >conf$$subs.sh ||
15947 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15948ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15949ac_delim='%!_!# '
15950for ac_last_try in false false false false false :; do
15951 . ./conf$$subs.sh ||
15952 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15953
15954 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15955 if test $ac_delim_n = $ac_delim_num; then
15956 break
15957 elif $ac_last_try; then
15958 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15959 else
15960 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15961 fi
15962done
15963rm -f conf$$subs.sh
15964
15965cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15966cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15967_ACEOF
15968sed -n '
15969h
15970s/^/S["/; s/!.*/"]=/
15971p
15972g
15973s/^[^!]*!//
15974:repl
15975t repl
15976s/'"$ac_delim"'$//
15977t delim
15978:nl
15979h
15980s/\(.\{148\}\)..*/\1/
15981t more1
15982s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15983p
15984n
15985b repl
15986:more1
15987s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15988p
15989g
15990s/.\{148\}//
15991t nl
15992:delim
15993h
15994s/\(.\{148\}\)..*/\1/
15995t more2
15996s/["\\]/\\&/g; s/^/"/; s/$/"/
15997p
15998b
15999:more2
16000s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16001p
16002g
16003s/.\{148\}//
16004t delim
16005' <conf$$subs.awk | sed '
16006/^[^""]/{
16007 N
16008 s/\n//
16009}
16010' >>$CONFIG_STATUS || ac_write_fail=1
16011rm -f conf$$subs.awk
16012cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16013_ACAWK
16014cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16015 for (key in S) S_is_set[key] = 1
16016 FS = ""
16017
16018}
16019{
16020 line = $ 0
16021 nfields = split(line, field, "@")
16022 substed = 0
16023 len = length(field[1])
16024 for (i = 2; i < nfields; i++) {
16025 key = field[i]
16026 keylen = length(key)
16027 if (S_is_set[key]) {
16028 value = S[key]
16029 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16030 len += length(value) + length(field[++i])
16031 substed = 1
16032 } else
16033 len += 1 + keylen
16034 }
16035
16036 print line
16037}
16038
16039_ACAWK
16040_ACEOF
16041cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16042if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16043 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16044else
16045 cat
16046fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16047 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16048_ACEOF
16049
16050# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16051# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16052# trailing colons and then remove the whole line if VPATH becomes empty
16053# (actually we leave an empty line to preserve line numbers).
16054if test "x$srcdir" = x.; then
16055 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16056h
16057s///
16058s/^/:/
16059s/[ ]*$/:/
16060s/:\$(srcdir):/:/g
16061s/:\${srcdir}:/:/g
16062s/:@srcdir@:/:/g
16063s/^:*//
16064s/:*$//
16065x
16066s/\(=[ ]*\).*/\1/
16067G
16068s/\n//
16069s/^[^=]*=[ ]*$//
16070}'
16071fi
16072
16073cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16074fi # test -n "$CONFIG_FILES"
16075
16076# Set up the scripts for CONFIG_HEADERS section.
16077# No need to generate them if there are no CONFIG_HEADERS.
16078# This happens for instance with './config.status Makefile'.
16079if test -n "$CONFIG_HEADERS"; then
16080cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16081BEGIN {
16082_ACEOF
16083
16084# Transform confdefs.h into an awk script 'defines.awk', embedded as
16085# here-document in config.status, that substitutes the proper values into
16086# config.h.in to produce config.h.
16087
16088# Create a delimiter string that does not exist in confdefs.h, to ease
16089# handling of long lines.
16090ac_delim='%!_!# '
16091for ac_last_try in false false :; do
16092 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16093 if test -z "$ac_tt"; then
16094 break
16095 elif $ac_last_try; then
16096 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16097 else
16098 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16099 fi
16100done
16101
16102# For the awk script, D is an array of macro values keyed by name,
16103# likewise P contains macro parameters if any. Preserve backslash
16104# newline sequences.
16105
16106ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16107sed -n '
16108s/.\{148\}/&'"$ac_delim"'/g
16109t rset
16110:rset
16111s/^[ ]*#[ ]*define[ ][ ]*/ /
16112t def
16113d
16114:def
16115s/\\$//
16116t bsnl
16117s/["\\]/\\&/g
16118s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16119D["\1"]=" \3"/p
16120s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16121d
16122:bsnl
16123s/["\\]/\\&/g
16124s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16125D["\1"]=" \3\\\\\\n"\\/p
16126t cont
16127s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16128t cont
16129d
16130:cont
16131n
16132s/.\{148\}/&'"$ac_delim"'/g
16133t clear
16134:clear
16135s/\\$//
16136t bsnlc
16137s/["\\]/\\&/g; s/^/"/; s/$/"/p
16138d
16139:bsnlc
16140s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16141b cont
16142' <confdefs.h | sed '
16143s/'"$ac_delim"'/"\\\
16144"/g' >>$CONFIG_STATUS || ac_write_fail=1
16145
16146cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16147 for (key in D) D_is_set[key] = 1
16148 FS = ""
16149}
16150/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16151 line = \$ 0
16152 split(line, arg, " ")
16153 if (arg[1] == "#") {
16154 defundef = arg[2]
16155 mac1 = arg[3]
16156 } else {
16157 defundef = substr(arg[1], 2)
16158 mac1 = arg[2]
16159 }
16160 split(mac1, mac2, "(") #)
16161 macro = mac2[1]
16162 prefix = substr(line, 1, index(line, defundef) - 1)
16163 if (D_is_set[macro]) {
16164 # Preserve the white space surrounding the "#".
16165 print prefix "define", macro P[macro] D[macro]
16166 next
16167 } else {
16168 # Replace #undef with comments. This is necessary, for example,
16169 # in the case of _POSIX_SOURCE, which is predefined and required
16170 # on some systems where configure will not decide to define it.
16171 if (defundef == "undef") {
16172 print "/*", prefix defundef, macro, "*/"
16173 next
16174 }
16175 }
16176}
16177{ print }
16178_ACAWK
16179_ACEOF
16180cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16181 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16182fi # test -n "$CONFIG_HEADERS"
16183
16184
16185eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16186shift
16187for ac_tag
16188do
16189 case $ac_tag in
16190 :[FHLC]) ac_mode=$ac_tag; continue;;
16191 esac
16192 case $ac_mode$ac_tag in
16193 :[FHL]*:*);;
16194 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
16195 :[FH]-) ac_tag=-:-;;
16196 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16197 esac
16198 ac_save_IFS=$IFS
16199 IFS=:
16200 set x $ac_tag
16201 IFS=$ac_save_IFS
16202 shift
16203 ac_file=$1
16204 shift
16205
16206 case $ac_mode in
16207 :L) ac_source=$1;;
16208 :[FH])
16209 ac_file_inputs=
16210 for ac_f
16211 do
16212 case $ac_f in
16213 -) ac_f="$ac_tmp/stdin";;
16214 *) # Look for the file first in the build tree, then in the source tree
16215 # (if the path is not absolute). The absolute path cannot be DOS-style,
16216 # because $ac_f cannot contain ':'.
16217 test -f "$ac_f" ||
16218 case $ac_f in
16219 [\\/$]*) false;;
16220 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16221 esac ||
16222 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
16223 esac
16224 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16225 as_fn_append ac_file_inputs " '$ac_f'"
16226 done
16227
16228 # Let's still pretend it is 'configure' which instantiates (i.e., don't
16229 # use $as_me), people would be surprised to read:
16230 # /* config.h. Generated by config.status. */
16231 configure_input='Generated from '`
16232 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16233 `' by configure.'
16234 if test x"$ac_file" != x-; then
16235 configure_input="$ac_file. $configure_input"
16236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16237printf "%s\n" "$as_me: creating $ac_file" >&6;}
16238 fi
16239 # Neutralize special characters interpreted by sed in replacement strings.
16240 case $configure_input in #(
16241 *\&* | *\|* | *\\* )
16242 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
16243 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16244 *) ac_sed_conf_input=$configure_input;;
16245 esac
16246
16247 case $ac_tag in
16248 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16249 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16250 esac
16251 ;;
16252 esac
16253
16254 ac_dir=`$as_dirname -- "$ac_file" ||
16255$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16256 X"$ac_file" : 'X\(//\)[^/]' \| \
16257 X"$ac_file" : 'X\(//\)$' \| \
16258 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16259printf "%s\n" X"$ac_file" |
16260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16261 s//\1/
16262 q
16263 }
16264 /^X\(\/\/\)[^/].*/{
16265 s//\1/
16266 q
16267 }
16268 /^X\(\/\/\)$/{
16269 s//\1/
16270 q
16271 }
16272 /^X\(\/\).*/{
16273 s//\1/
16274 q
16275 }
16276 s/.*/./; q'`
16277 as_dir="$ac_dir"; as_fn_mkdir_p
16278 ac_builddir=.
16279
16280case "$ac_dir" in
16281.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16282*)
16283 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
16284 # A ".." for each directory in $ac_dir_suffix.
16285 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16286 case $ac_top_builddir_sub in
16287 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16288 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16289 esac ;;
16290esac
16291ac_abs_top_builddir=$ac_pwd
16292ac_abs_builddir=$ac_pwd$ac_dir_suffix
16293# for backward compatibility:
16294ac_top_builddir=$ac_top_build_prefix
16295
16296case $srcdir in
16297 .) # We are building in place.
16298 ac_srcdir=.
16299 ac_top_srcdir=$ac_top_builddir_sub
16300 ac_abs_top_srcdir=$ac_pwd ;;
16301 [\\/]* | ?:[\\/]* ) # Absolute name.
16302 ac_srcdir=$srcdir$ac_dir_suffix;
16303 ac_top_srcdir=$srcdir
16304 ac_abs_top_srcdir=$srcdir ;;
16305 *) # Relative name.
16306 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16307 ac_top_srcdir=$ac_top_build_prefix$srcdir
16308 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16309esac
16310ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16311
16312
16313 case $ac_mode in
16314 :F)
16315 #
16316 # CONFIG_FILE
16317 #
16318
16319 case $INSTALL in
16320 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16321 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16322 esac
16323 ac_MKDIR_P=$MKDIR_P
16324 case $MKDIR_P in
16325 [\\/$]* | ?:[\\/]* ) ;;
16326 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16327 esac
16328_ACEOF
16329
16330cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16331# If the template does not know about datarootdir, expand it.
16332# FIXME: This hack should be removed a few years after 2.60.
16333ac_datarootdir_hack=; ac_datarootdir_seen=
16334ac_sed_dataroot='
16335/datarootdir/ {
16336 p
16337 q
16338}
16339/@datadir@/p
16340/@docdir@/p
16341/@infodir@/p
16342/@localedir@/p
16343/@mandir@/p'
16344case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16345*datarootdir*) ac_datarootdir_seen=yes;;
16346*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16348printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16349_ACEOF
16350cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16351 ac_datarootdir_hack='
16352 s&@datadir@&$datadir&g
16353 s&@docdir@&$docdir&g
16354 s&@infodir@&$infodir&g
16355 s&@localedir@&$localedir&g
16356 s&@mandir@&$mandir&g
16357 s&\\\${datarootdir}&$datarootdir&g' ;;
16358esac
16359_ACEOF
16360
16361# Neutralize VPATH when '$srcdir' = '.'.
16362# Shell code in configure.ac might set extrasub.
16363# FIXME: do we really want to maintain this feature?
16364cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16365ac_sed_extra="$ac_vpsub
16366$extrasub
16367_ACEOF
16368cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16369:t
16370/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16371s|@configure_input@|$ac_sed_conf_input|;t t
16372s&@top_builddir@&$ac_top_builddir_sub&;t t
16373s&@top_build_prefix@&$ac_top_build_prefix&;t t
16374s&@srcdir@&$ac_srcdir&;t t
16375s&@abs_srcdir@&$ac_abs_srcdir&;t t
16376s&@top_srcdir@&$ac_top_srcdir&;t t
16377s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16378s&@builddir@&$ac_builddir&;t t
16379s&@abs_builddir@&$ac_abs_builddir&;t t
16380s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16381s&@INSTALL@&$ac_INSTALL&;t t
16382s&@MKDIR_P@&$ac_MKDIR_P&;t t
16383$ac_datarootdir_hack
16384"
16385eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16386 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16387
16388test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16389 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16390 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16391 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
16393which seems to be undefined. Please make sure it is defined" >&5
16394printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
16395which seems to be undefined. Please make sure it is defined" >&2;}
16396
16397 rm -f "$ac_tmp/stdin"
16398 case $ac_file in
16399 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16400 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16401 esac \
16402 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16403 ;;
16404 :H)
16405 #
16406 # CONFIG_HEADER
16407 #
16408 if test x"$ac_file" != x-; then
16409 {
16410 printf "%s\n" "/* $configure_input */" >&1 \
16411 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16412 } >"$ac_tmp/config.h" \
16413 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16414 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16416printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
16417 else
16418 rm -f "$ac_file"
16419 mv "$ac_tmp/config.h" "$ac_file" \
16420 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16421 fi
16422 else
16423 printf "%s\n" "/* $configure_input */" >&1 \
16424 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16425 || as_fn_error $? "could not create -" "$LINENO" 5
16426 fi
16427# Compute "$ac_file"'s index in $config_headers.
16428_am_arg="$ac_file"
16429_am_stamp_count=1
16430for _am_header in $config_headers :; do
16431 case $_am_header in
16432 $_am_arg | $_am_arg:* )
16433 break ;;
16434 * )
16435 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16436 esac
16437done
16438echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16439$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16440 X"$_am_arg" : 'X\(//\)[^/]' \| \
16441 X"$_am_arg" : 'X\(//\)$' \| \
16442 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16443printf "%s\n" X"$_am_arg" |
16444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16445 s//\1/
16446 q
16447 }
16448 /^X\(\/\/\)[^/].*/{
16449 s//\1/
16450 q
16451 }
16452 /^X\(\/\/\)$/{
16453 s//\1/
16454 q
16455 }
16456 /^X\(\/\).*/{
16457 s//\1/
16458 q
16459 }
16460 s/.*/./; q'`/stamp-h$_am_stamp_count
16461 ;;
16462
16463 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16464printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
16465 ;;
16466 esac
16467
16468
16469 case $ac_file$ac_mode in
16470 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16471 # Older Autoconf quotes --file arguments for eval, but not when files
16472 # are listed without --file. Let's play safe and only enable the eval
16473 # if we detect the quoting.
16474 # TODO: see whether this extra hack can be removed once we start
16475 # requiring Autoconf 2.70 or later.
16476 case $CONFIG_FILES in #(
16477 *\'*) :
16478 eval set x "$CONFIG_FILES" ;; #(
16479 *) :
16480 set x $CONFIG_FILES ;; #(
16481 *) :
16482 ;;
16483esac
16484 shift
16485 # Used to flag and report bootstrapping failures.
16486 am_rc=0
16487 for am_mf
16488 do
16489 # Strip MF so we end up with the name of the file.
16490 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
16491 # Check whether this is an Automake generated Makefile which includes
16492 # dependency-tracking related rules and includes.
16493 # Grep'ing the whole file directly is not great: AIX grep has a line
16494 # limit of 2048, but all sed's we know have understand at least 4000.
16495 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16496 || continue
16497 am_dirpart=`$as_dirname -- "$am_mf" ||
16498$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16499 X"$am_mf" : 'X\(//\)[^/]' \| \
16500 X"$am_mf" : 'X\(//\)$' \| \
16501 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16502printf "%s\n" X"$am_mf" |
16503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16504 s//\1/
16505 q
16506 }
16507 /^X\(\/\/\)[^/].*/{
16508 s//\1/
16509 q
16510 }
16511 /^X\(\/\/\)$/{
16512 s//\1/
16513 q
16514 }
16515 /^X\(\/\).*/{
16516 s//\1/
16517 q
16518 }
16519 s/.*/./; q'`
16520 am_filepart=`$as_basename -- "$am_mf" ||
16521$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16522 X"$am_mf" : 'X\(//\)$' \| \
16523 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16524printf "%s\n" X/"$am_mf" |
16525 sed '/^.*\/\([^/][^/]*\)\/*$/{
16526 s//\1/
16527 q
16528 }
16529 /^X\/\(\/\/\)$/{
16530 s//\1/
16531 q
16532 }
16533 /^X\/\(\/\).*/{
16534 s//\1/
16535 q
16536 }
16537 s/.*/./; q'`
16538 { echo "$as_me:$LINENO: cd "$am_dirpart" \
16539 && sed -e '/# am--include-marker/d' "$am_filepart" \
16540 | $MAKE -f - am--depfiles" >&5
16541 (cd "$am_dirpart" \
16542 && sed -e '/# am--include-marker/d' "$am_filepart" \
16543 | $MAKE -f - am--depfiles) >&5 2>&5
16544 ac_status=$?
16545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546 (exit $ac_status); } || am_rc=$?
16547 done
16548 if test $am_rc -ne 0; then
16549 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16550printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16551as_fn_error $? "Something went wrong bootstrapping makefile fragments
16552 for automatic dependency tracking. If GNU make was not used, consider
16553 re-running the configure script with MAKE=\"gmake\" (or whatever is
16554 necessary). You can also try re-running configure with the
16555 '--disable-dependency-tracking' option to at least be able to build
16556 the package (albeit without support for automatic dependency tracking).
16557See 'config.log' for more details" "$LINENO" 5; }
16558 fi
16559 { am_dirpart=; unset am_dirpart;}
16560 { am_filepart=; unset am_filepart;}
16561 { am_mf=; unset am_mf;}
16562 { am_rc=; unset am_rc;}
16563 rm -f conftest-deps.mk
16564}
16565 ;;
16566 "libtool":C)
16567
16568 # See if we are running on zsh, and set the options that allow our
16569 # commands through without removal of \ escapes.
16570 if test -n "${ZSH_VERSION+set}"; then
16571 setopt NO_GLOB_SUBST
16572 fi
16573
16574 cfgfile=${ofile}T
16575 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16576 $RM "$cfgfile"
16577
16578 cat <<_LT_EOF >> "$cfgfile"
16579#! $SHELL
16580# Generated automatically by $as_me ($PACKAGE) $VERSION
16581# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16582# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16583
16584# Provide generalized library-building support services.
16585# Written by Gordon Matzigkeit, 1996
16586
16587# Copyright (C) 2014 Free Software Foundation, Inc.
16588# This is free software; see the source for copying conditions. There is NO
16589# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16590
16591# GNU Libtool is free software; you can redistribute it and/or modify
16592# it under the terms of the GNU General Public License as published by
16593# the Free Software Foundation; either version 2 of of the License, or
16594# (at your option) any later version.
16595#
16596# As a special exception to the GNU General Public License, if you
16597# distribute this file as part of a program or library that is built
16598# using GNU Libtool, you may include this file under the same
16599# distribution terms that you use for the rest of that program.
16600#
16601# GNU Libtool is distributed in the hope that it will be useful, but
16602# WITHOUT ANY WARRANTY; without even the implied warranty of
16603# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16604# GNU General Public License for more details.
16605#
16606# You should have received a copy of the GNU General Public License
16607# along with this program. If not, see <http://www.gnu.org/licenses/>.
16608
16609
16610# The names of the tagged configurations supported by this script.
16611available_tags=''
16612
16613# Configured defaults for sys_lib_dlsearch_path munging.
16614: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16615
16616# ### BEGIN LIBTOOL CONFIG
16617
16618# A sed program that does not truncate output.
16619SED=$lt_SED
16620
16621# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16622Xsed="\$SED -e 1s/^X//"
16623
16624# A grep program that handles long lines.
16625GREP=$lt_GREP
16626
16627# An ERE matcher.
16628EGREP=$lt_EGREP
16629
16630# A literal string matcher.
16631FGREP=$lt_FGREP
16632
16633# Shell to use when invoking shell scripts.
16634SHELL=$lt_SHELL
16635
16636# An echo program that protects backslashes.
16637ECHO=$lt_ECHO
16638
16639# Which release of libtool.m4 was used?
16640macro_version=$macro_version
16641macro_revision=$macro_revision
16642
16643# Assembler program.
16644AS=$lt_AS
16645
16646# DLL creation program.
16647DLLTOOL=$lt_DLLTOOL
16648
16649# Object dumper program.
16650OBJDUMP=$lt_OBJDUMP
16651
16652# Whether or not to build shared libraries.
16653build_libtool_libs=$enable_shared
16654
16655# Whether or not to build static libraries.
16656build_old_libs=$enable_static
16657
16658# What type of objects to build.
16659pic_mode=$pic_mode
16660
16661# Whether or not to optimize for fast installation.
16662fast_install=$enable_fast_install
16663
16664# Shared archive member basename,for filename based shared library versioning on AIX.
16665shared_archive_member_spec=$shared_archive_member_spec
16666
16667# The PATH separator for the build system.
16668PATH_SEPARATOR=$lt_PATH_SEPARATOR
16669
16670# The host system.
16671host_alias=$host_alias
16672host=$host
16673host_os=$host_os
16674
16675# The build system.
16676build_alias=$build_alias
16677build=$build
16678build_os=$build_os
16679
16680# A BSD- or MS-compatible name lister.
16681NM=$lt_NM
16682
16683# Whether we need soft or hard links.
16684LN_S=$lt_LN_S
16685
16686# What is the maximum length of a command?
16687max_cmd_len=$max_cmd_len
16688
16689# Object file suffix (normally "o").
16690objext=$ac_objext
16691
16692# Executable file suffix (normally "").
16693exeext=$exeext
16694
16695# whether the shell understands "unset".
16696lt_unset=$lt_unset
16697
16698# turn spaces into newlines.
16699SP2NL=$lt_lt_SP2NL
16700
16701# turn newlines into spaces.
16702NL2SP=$lt_lt_NL2SP
16703
16704# convert \$build file names to \$host format.
16705to_host_file_cmd=$lt_cv_to_host_file_cmd
16706
16707# convert \$build files to toolchain format.
16708to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16709
16710# A file(cmd) program that detects file types.
16711FILECMD=$lt_FILECMD
16712
16713# Method to check whether dependent libraries are shared objects.
16714deplibs_check_method=$lt_deplibs_check_method
16715
16716# Command to use when deplibs_check_method = "file_magic".
16717file_magic_cmd=$lt_file_magic_cmd
16718
16719# How to find potential files when deplibs_check_method = "file_magic".
16720file_magic_glob=$lt_file_magic_glob
16721
16722# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16723want_nocaseglob=$lt_want_nocaseglob
16724
16725# Command to associate shared and link libraries.
16726sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16727
16728# The archiver.
16729AR=$lt_AR
16730
16731# Flags to create an archive (by configure).
16732lt_ar_flags=$lt_ar_flags
16733
16734# Flags to create an archive.
16735AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
16736
16737# How to feed a file listing to the archiver.
16738archiver_list_spec=$lt_archiver_list_spec
16739
16740# A symbol stripping program.
16741STRIP=$lt_STRIP
16742
16743# Commands used to install an old-style archive.
16744RANLIB=$lt_RANLIB
16745old_postinstall_cmds=$lt_old_postinstall_cmds
16746old_postuninstall_cmds=$lt_old_postuninstall_cmds
16747
16748# Whether to use a lock for old archive extraction.
16749lock_old_archive_extraction=$lock_old_archive_extraction
16750
16751# A C compiler.
16752LTCC=$lt_CC
16753
16754# LTCC compiler flags.
16755LTCFLAGS=$lt_CFLAGS
16756
16757# Take the output of nm and produce a listing of raw symbols and C names.
16758global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16759
16760# Transform the output of nm in a proper C declaration.
16761global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16762
16763# Transform the output of nm into a list of symbols to manually relocate.
16764global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16765
16766# Transform the output of nm in a C name address pair.
16767global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16768
16769# Transform the output of nm in a C name address pair when lib prefix is needed.
16770global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16771
16772# The name lister interface.
16773nm_interface=$lt_lt_cv_nm_interface
16774
16775# Specify filename containing input files for \$NM.
16776nm_file_list_spec=$lt_nm_file_list_spec
16777
16778# The root where to search for dependent libraries,and where our libraries should be installed.
16779lt_sysroot=$lt_sysroot
16780
16781# Command to truncate a binary pipe.
16782lt_truncate_bin=$lt_lt_cv_truncate_bin
16783
16784# The name of the directory that contains temporary libtool files.
16785objdir=$objdir
16786
16787# Used to examine libraries when file_magic_cmd begins with "file".
16788MAGIC_CMD=$MAGIC_CMD
16789
16790# Must we lock files when doing compilation?
16791need_locks=$lt_need_locks
16792
16793# Manifest tool.
16794MANIFEST_TOOL=$lt_MANIFEST_TOOL
16795
16796# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16797DSYMUTIL=$lt_DSYMUTIL
16798
16799# Tool to change global to local symbols on Mac OS X.
16800NMEDIT=$lt_NMEDIT
16801
16802# Tool to manipulate fat objects and archives on Mac OS X.
16803LIPO=$lt_LIPO
16804
16805# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16806OTOOL=$lt_OTOOL
16807
16808# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16809OTOOL64=$lt_OTOOL64
16810
16811# Old archive suffix (normally "a").
16812libext=$libext
16813
16814# Shared library suffix (normally ".so").
16815shrext_cmds=$lt_shrext_cmds
16816
16817# The commands to extract the exported symbol list from a shared archive.
16818extract_expsyms_cmds=$lt_extract_expsyms_cmds
16819
16820# Variables whose values should be saved in libtool wrapper scripts and
16821# restored at link time.
16822variables_saved_for_relink=$lt_variables_saved_for_relink
16823
16824# Do we need the "lib" prefix for modules?
16825need_lib_prefix=$need_lib_prefix
16826
16827# Do we need a version for libraries?
16828need_version=$need_version
16829
16830# Library versioning type.
16831version_type=$version_type
16832
16833# Shared library runtime path variable.
16834runpath_var=$runpath_var
16835
16836# Shared library path variable.
16837shlibpath_var=$shlibpath_var
16838
16839# Is shlibpath searched before the hard-coded library search path?
16840shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16841
16842# Format of library name prefix.
16843libname_spec=$lt_libname_spec
16844
16845# List of archive names. First name is the real one, the rest are links.
16846# The last name is the one that the linker finds with -lNAME
16847library_names_spec=$lt_library_names_spec
16848
16849# The coded name of the library, if different from the real name.
16850soname_spec=$lt_soname_spec
16851
16852# Permission mode override for installation of shared libraries.
16853install_override_mode=$lt_install_override_mode
16854
16855# Command to use after installation of a shared archive.
16856postinstall_cmds=$lt_postinstall_cmds
16857
16858# Command to use after uninstallation of a shared archive.
16859postuninstall_cmds=$lt_postuninstall_cmds
16860
16861# Commands used to finish a libtool library installation in a directory.
16862finish_cmds=$lt_finish_cmds
16863
16864# As "finish_cmds", except a single script fragment to be evaled but
16865# not shown.
16866finish_eval=$lt_finish_eval
16867
16868# Whether we should hardcode library paths into libraries.
16869hardcode_into_libs=$hardcode_into_libs
16870
16871# Compile-time system search path for libraries.
16872sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16873
16874# Detected run-time system search path for libraries.
16875sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16876
16877# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16878configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16879
16880# Whether dlopen is supported.
16881dlopen_support=$enable_dlopen
16882
16883# Whether dlopen of programs is supported.
16884dlopen_self=$enable_dlopen_self
16885
16886# Whether dlopen of statically linked programs is supported.
16887dlopen_self_static=$enable_dlopen_self_static
16888
16889# Commands to strip libraries.
16890old_striplib=$lt_old_striplib
16891striplib=$lt_striplib
16892
16893
16894# The linker used to build libraries.
16895LD=$lt_LD
16896
16897# How to create reloadable object files.
16898reload_flag=$lt_reload_flag
16899reload_cmds=$lt_reload_cmds
16900
16901# Commands used to build an old-style archive.
16902old_archive_cmds=$lt_old_archive_cmds
16903
16904# A language specific compiler.
16905CC=$lt_compiler
16906
16907# Is the compiler the GNU compiler?
16908with_gcc=$GCC
16909
16910# Compiler flag to turn off builtin functions.
16911no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16912
16913# Additional compiler flags for building library objects.
16914pic_flag=$lt_lt_prog_compiler_pic
16915
16916# How to pass a linker flag through the compiler.
16917wl=$lt_lt_prog_compiler_wl
16918
16919# Compiler flag to prevent dynamic linking.
16920link_static_flag=$lt_lt_prog_compiler_static
16921
16922# Does compiler simultaneously support -c and -o options?
16923compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16924
16925# Whether or not to add -lc for building shared libraries.
16926build_libtool_need_lc=$archive_cmds_need_lc
16927
16928# Whether or not to disallow shared libs when runtime libs are static.
16929allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16930
16931# Compiler flag to allow reflexive dlopens.
16932export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16933
16934# Compiler flag to generate shared objects directly from archives.
16935whole_archive_flag_spec=$lt_whole_archive_flag_spec
16936
16937# Whether the compiler copes with passing no objects directly.
16938compiler_needs_object=$lt_compiler_needs_object
16939
16940# Create an old-style archive from a shared archive.
16941old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16942
16943# Create a temporary old-style archive to link instead of a shared archive.
16944old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16945
16946# Commands used to build a shared archive.
16947archive_cmds=$lt_archive_cmds
16948archive_expsym_cmds=$lt_archive_expsym_cmds
16949
16950# Commands used to build a loadable module if different from building
16951# a shared archive.
16952module_cmds=$lt_module_cmds
16953module_expsym_cmds=$lt_module_expsym_cmds
16954
16955# Whether we are building with GNU ld or not.
16956with_gnu_ld=$lt_with_gnu_ld
16957
16958# Flag that allows shared libraries with undefined symbols to be built.
16959allow_undefined_flag=$lt_allow_undefined_flag
16960
16961# Flag that enforces no undefined symbols.
16962no_undefined_flag=$lt_no_undefined_flag
16963
16964# Flag to hardcode \$libdir into a binary during linking.
16965# This must work even if \$libdir does not exist
16966hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16967
16968# Whether we need a single "-rpath" flag with a separated argument.
16969hardcode_libdir_separator=$lt_hardcode_libdir_separator
16970
16971# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16972# DIR into the resulting binary.
16973hardcode_direct=$hardcode_direct
16974
16975# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16976# DIR into the resulting binary and the resulting library dependency is
16977# "absolute",i.e impossible to change by setting \$shlibpath_var if the
16978# library is relocated.
16979hardcode_direct_absolute=$hardcode_direct_absolute
16980
16981# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16982# into the resulting binary.
16983hardcode_minus_L=$hardcode_minus_L
16984
16985# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16986# into the resulting binary.
16987hardcode_shlibpath_var=$hardcode_shlibpath_var
16988
16989# Set to "yes" if building a shared library automatically hardcodes DIR
16990# into the library and all subsequent libraries and executables linked
16991# against it.
16992hardcode_automatic=$hardcode_automatic
16993
16994# Set to yes if linker adds runtime paths of dependent libraries
16995# to runtime path list.
16996inherit_rpath=$inherit_rpath
16997
16998# Whether libtool must link a program against all its dependency libraries.
16999link_all_deplibs=$link_all_deplibs
17000
17001# Set to "yes" if exported symbols are required.
17002always_export_symbols=$always_export_symbols
17003
17004# The commands to list exported symbols.
17005export_symbols_cmds=$lt_export_symbols_cmds
17006
17007# Symbols that should not be listed in the preloaded symbols.
17008exclude_expsyms=$lt_exclude_expsyms
17009
17010# Symbols that must always be exported.
17011include_expsyms=$lt_include_expsyms
17012
17013# Commands necessary for linking programs (against libraries) with templates.
17014prelink_cmds=$lt_prelink_cmds
17015
17016# Commands necessary for finishing linking programs.
17017postlink_cmds=$lt_postlink_cmds
17018
17019# Specify filename containing input files.
17020file_list_spec=$lt_file_list_spec
17021
17022# How to hardcode a shared library path into an executable.
17023hardcode_action=$hardcode_action
17024
17025# ### END LIBTOOL CONFIG
17026
17027_LT_EOF
17028
17029 cat <<'_LT_EOF' >> "$cfgfile"
17030
17031# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17032
17033# func_munge_path_list VARIABLE PATH
17034# -----------------------------------
17035# VARIABLE is name of variable containing _space_ separated list of
17036# directories to be munged by the contents of PATH, which is string
17037# having a format:
17038# "DIR[:DIR]:"
17039# string "DIR[ DIR]" will be prepended to VARIABLE
17040# ":DIR[:DIR]"
17041# string "DIR[ DIR]" will be appended to VARIABLE
17042# "DIRP[:DIRP]::[DIRA:]DIRA"
17043# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17044# "DIRA[ DIRA]" will be appended to VARIABLE
17045# "DIR[:DIR]"
17046# VARIABLE will be replaced by "DIR[ DIR]"
17047func_munge_path_list ()
17048{
17049 case x$2 in
17050 x)
17051 ;;
17052 *:)
17053 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17054 ;;
17055 x:*)
17056 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17057 ;;
17058 *::*)
17059 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17060 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17061 ;;
17062 *)
17063 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17064 ;;
17065 esac
17066}
17067
17068
17069# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17070func_cc_basename ()
17071{
17072 for cc_temp in $*""; do
17073 case $cc_temp in
17074 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17075 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17076 \-*) ;;
17077 *) break;;
17078 esac
17079 done
17080 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17081}
17082
17083
17084# ### END FUNCTIONS SHARED WITH CONFIGURE
17085
17086_LT_EOF
17087
17088 case $host_os in
17089 aix3*)
17090 cat <<\_LT_EOF >> "$cfgfile"
17091# AIX sometimes has problems with the GCC collect2 program. For some
17092# reason, if we set the COLLECT_NAMES environment variable, the problems
17093# vanish in a puff of smoke.
17094if test set != "${COLLECT_NAMES+set}"; then
17095 COLLECT_NAMES=
17096 export COLLECT_NAMES
17097fi
17098_LT_EOF
17099 ;;
17100 esac
17101
17102
17103
17104ltmain=$ac_aux_dir/ltmain.sh
17105
17106
17107 # We use sed instead of cat because bash on DJGPP gets confused if
17108 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17109 # text mode, it properly converts lines to CR/LF. This bash problem
17110 # is reportedly fixed, but why not run on old versions too?
17111 $SED '$q' "$ltmain" >> "$cfgfile" \
17112 || (rm -f "$cfgfile"; exit 1)
17113
17114 mv -f "$cfgfile" "$ofile" ||
17115 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17116 chmod +x "$ofile"
17117
17118 ;;
17119 "libpng-config":F) chmod +x libpng-config ;;
17120
17121 esac
17122done # for ac_tag
17123
17124
17125as_fn_exit 0
17126_ACEOF
17127ac_clean_files=$ac_clean_files_save
17128
17129test $ac_write_fail = 0 ||
17130 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17131
17132
17133# configure is writing to config.log, and then calls config.status.
17134# config.status does its own redirection, appending to config.log.
17135# Unfortunately, on DOS this fails, as config.log is still kept open
17136# by configure, so config.status won't be able to write to it; its
17137# output is simply discarded. So we exec the FD to /dev/null,
17138# effectively closing config.log, so it can be properly (re)opened and
17139# appended to by config.status. When coming back to configure, we
17140# need to make the FD available again.
17141if test "$no_create" != yes; then
17142 ac_cs_success=:
17143 ac_config_status_args=
17144 test "$silent" = yes &&
17145 ac_config_status_args="$ac_config_status_args --quiet"
17146 exec 5>/dev/null
17147 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17148 exec 5>>config.log
17149 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17150 # would make configure fail if this is the last instruction.
17151 $ac_cs_success || as_fn_exit 1
17152fi
17153if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17155printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17156fi
17157
17158
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