]> git.saurik.com Git - wxWidgets.git/blame - src/png/configure
merged libpng 1.5.7 to trunk
[wxWidgets.git] / src / png / configure
CommitLineData
72281370
DS
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for libpng 1.5.7.
4#
5# Report bugs to <png-mng-implement@lists.sourceforge.net>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
0272a10d 18
72281370
DS
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
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
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34esac
35fi
970f6abe
VZ
36
37
72281370
DS
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
970f6abe 75
72281370
DS
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104IFS=$as_save_IFS
105
106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153esac
154fi
155"
156 as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170 exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1
178
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188else
189 as_have_required=no
190fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211fi
212fi
213 done;;
214 esac
215 as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: png-mng-implement@lists.sourceforge.net about your
251$0: system, including any error possibly output before this
252$0: message. Then install a modern shell, or manually run
253$0: the script under such a shell if you do have one."
254 fi
255 exit 1
256fi
257fi
258fi
259SHELL=${CONFIG_SHELL-/bin/sh}
260export SHELL
261# Unset more variables known to interfere with behavior of common tools.
262CLICOLOR_FORCE= GREP_OPTIONS=
263unset CLICOLOR_FORCE GREP_OPTIONS
264
265## --------------------- ##
266## M4sh Shell Functions. ##
267## --------------------- ##
268# as_fn_unset VAR
269# ---------------
270# Portably unset VAR.
271as_fn_unset ()
272{
273 { eval $1=; unset $1;}
274}
275as_unset=as_fn_unset
276
277# as_fn_set_status STATUS
278# -----------------------
279# Set $? to STATUS, without forking.
280as_fn_set_status ()
281{
282 return $1
283} # as_fn_set_status
284
285# as_fn_exit STATUS
286# -----------------
287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288as_fn_exit ()
289{
290 set +e
291 as_fn_set_status $1
292 exit $1
293} # as_fn_exit
294
295# as_fn_mkdir_p
296# -------------
297# Create "$as_dir" as a directory, including parents if necessary.
298as_fn_mkdir_p ()
299{
300
301 case $as_dir in #(
302 -*) as_dir=./$as_dir;;
303 esac
304 test -d "$as_dir" || eval $as_mkdir_p || {
305 as_dirs=
306 while :; do
307 case $as_dir in #(
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309 *) as_qdir=$as_dir;;
310 esac
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317$as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\/\)[^/].*/{
323 s//\1/
324 q
325 }
326 /^X\(\/\/\)$/{
327 s//\1/
328 q
329 }
330 /^X\(\/\).*/{
331 s//\1/
332 q
333 }
334 s/.*/./; q'`
335 test -d "$as_dir" && break
336 done
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341} # as_fn_mkdir_p
342# as_fn_append VAR VALUE
343# ----------------------
344# Append the text in VALUE to the end of the definition contained in VAR. Take
345# advantage of any shell optimizations that allow amortized linear growth over
346# repeated appends, instead of the typical quadratic growth present in naive
347# implementations.
348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
350 {
351 eval $1+=\$2
352 }'
353else
354 as_fn_append ()
355 {
356 eval $1=\$$1\$2
357 }
358fi # as_fn_append
359
360# as_fn_arith ARG...
361# ------------------
362# Perform arithmetic evaluation on the ARGs, and store the result in the
363# global $as_val. Take advantage of shells that can avoid forks. The arguments
364# must be portable across $(()) and expr.
365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 eval 'as_fn_arith ()
367 {
368 as_val=$(( $* ))
369 }'
370else
371 as_fn_arith ()
372 {
373 as_val=`expr "$@" || test $? -eq 1`
374 }
375fi # as_fn_arith
376
377
378# as_fn_error STATUS ERROR [LINENO LOG_FD]
379# ----------------------------------------
380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382# script with STATUS, using 1 if that was 0.
383as_fn_error ()
384{
385 as_status=$1; test $as_status -eq 0 && as_status=1
386 if test "$4"; then
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389 fi
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
392} # as_fn_error
393
394if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 as_expr=expr
397else
398 as_expr=false
399fi
400
401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 as_basename=basename
403else
404 as_basename=false
405fi
406
407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_dirname=dirname
409else
410 as_dirname=false
411fi
412
413as_me=`$as_basename -- "$0" ||
414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417$as_echo X/"$0" |
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 s//\1/
420 q
421 }
422 /^X\/\(\/\/\)$/{
423 s//\1/
424 q
425 }
426 /^X\/\(\/\).*/{
427 s//\1/
428 q
429 }
430 s/.*/./; q'`
431
432# Avoid depending upon Character Ranges.
433as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436as_cr_digits='0123456789'
437as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 sed -n '
446 p
447 /[$]LINENO/=
448 ' <$as_myself |
449 sed '
450 s/[$]LINENO.*/&-/
451 t lineno
452 b
453 :lineno
454 N
455 :loop
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 t loop
458 s/-\n.*//
459 ' >$as_me.lineno &&
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
466 . "./$as_me.lineno"
467 # Exit status is that of the last command.
468 exit
469}
470
471ECHO_C= ECHO_N= ECHO_T=
472case `echo -n x` in #(((((
473-n*)
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
476 xy) ECHO_C='\c';;
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478 ECHO_T=' ';;
479 esac;;
480*)
481 ECHO_N='-n';;
482esac
483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487else
488 rm -f conf$$.dir
489 mkdir conf$$.dir 2>/dev/null
490fi
491if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
504 fi
505else
506 as_ln_s='cp -p'
507fi
508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509rmdir conf$$.dir 2>/dev/null
510
511if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
513else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516fi
517
518if test -x / >/dev/null 2>&1; then
519 as_test_x='test -x'
520else
521 if ls -dL / >/dev/null 2>&1; then
522 as_ls_L_option=L
523 else
524 as_ls_L_option=
525 fi
526 as_test_x='
527 eval sh -c '\''
528 if test -d "$1"; then
529 test -d "$1/.";
530 else
531 case $1 in #(
532 -*)set "./$1";;
533 esac;
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
536 '\'' sh
537 '
538fi
539as_executable_p=$as_test_x
540
541# Sed expression to map a string onto a valid CPP name.
542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544# Sed expression to map a string onto a valid variable name.
545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550test -n "$DJDIR" || exec 7<&0 </dev/null
551exec 6>&1
552
553# Name of the host.
554# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555# so uname gets run too.
556ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558#
559# Initializations.
560#
561ac_default_prefix=/usr/local
562ac_clean_files=
563ac_config_libobj_dir=.
564LIBOBJS=
565cross_compiling=no
566subdirs=
567MFLAGS=
568MAKEFLAGS=
569
570# Identity of this package.
571PACKAGE_NAME='libpng'
572PACKAGE_TARNAME='libpng'
573PACKAGE_VERSION='1.5.7'
574PACKAGE_STRING='libpng 1.5.7'
575PACKAGE_BUGREPORT='png-mng-implement@lists.sourceforge.net'
576PACKAGE_URL=''
577
578ac_unique_file="pngget.c"
579# Factoring default headers for most tests.
580ac_includes_default="\
581#include <stdio.h>
582#ifdef HAVE_SYS_TYPES_H
583# include <sys/types.h>
584#endif
585#ifdef HAVE_SYS_STAT_H
586# include <sys/stat.h>
587#endif
588#ifdef STDC_HEADERS
589# include <stdlib.h>
590# include <stddef.h>
591#else
592# ifdef HAVE_STDLIB_H
593# include <stdlib.h>
594# endif
595#endif
596#ifdef HAVE_STRING_H
597# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598# include <memory.h>
599# endif
600# include <string.h>
601#endif
602#ifdef HAVE_STRINGS_H
603# include <strings.h>
604#endif
605#ifdef HAVE_INTTYPES_H
606# include <inttypes.h>
607#endif
608#ifdef HAVE_STDINT_H
609# include <stdint.h>
610#endif
611#ifdef HAVE_UNISTD_H
612# include <unistd.h>
613#endif"
614
615ac_subst_vars='am__EXEEXT_FALSE
616am__EXEEXT_TRUE
617LTLIBOBJS
618PNG_ARM_NEON_FALSE
619PNG_ARM_NEON_TRUE
620AM_CCASFLAGS
621binconfigs
622pkgconfigdir
623PNGLIB_RELEASE
624PNGLIB_MINOR
625PNGLIB_MAJOR
626PNGLIB_VERSION
627SYMBOL_PREFIX
628HAVE_LD_VERSION_SCRIPT_FALSE
629HAVE_LD_VERSION_SCRIPT_TRUE
630HAVE_SOLARIS_LD_FALSE
631HAVE_SOLARIS_LD_TRUE
632LIBPNG_DEFINES
633LIBOBJS
634POW_LIB
635DFNCPP
636OTOOL64
637OTOOL
638LIPO
639NMEDIT
640DSYMUTIL
641MANIFEST_TOOL
642RANLIB
643ac_ct_AR
644AR
645NM
646ac_ct_DUMPBIN
647DUMPBIN
648LIBTOOL
649OBJDUMP
650DLLTOOL
651AS
652LN_S
653CPP
654LD
655FGREP
656EGREP
657GREP
658SED
659host_os
660host_vendor
661host_cpu
662host
663build_os
664build_vendor
665build_cpu
666build
667am__fastdepCCAS_FALSE
668am__fastdepCCAS_TRUE
669CCASDEPMODE
670CCASFLAGS
671CCAS
672am__fastdepCC_FALSE
673am__fastdepCC_TRUE
674CCDEPMODE
675AMDEPBACKSLASH
676AMDEP_FALSE
677AMDEP_TRUE
678am__quote
679am__include
680DEPDIR
681OBJEXT
682EXEEXT
683ac_ct_CC
684CPPFLAGS
685LDFLAGS
686CFLAGS
687CC
688MAINT
689MAINTAINER_MODE_FALSE
690MAINTAINER_MODE_TRUE
691am__untar
692am__tar
693AMTAR
694am__leading_dot
695SET_MAKE
696AWK
697mkdir_p
698MKDIR_P
699INSTALL_STRIP_PROGRAM
700STRIP
701install_sh
702MAKEINFO
703AUTOHEADER
704AUTOMAKE
705AUTOCONF
706ACLOCAL
707VERSION
708PACKAGE
709CYGPATH_W
710am__isrc
711INSTALL_DATA
712INSTALL_SCRIPT
713INSTALL_PROGRAM
714target_alias
715host_alias
716build_alias
717LIBS
718ECHO_T
719ECHO_N
720ECHO_C
721DEFS
722mandir
723localedir
724libdir
725psdir
726pdfdir
727dvidir
728htmldir
729infodir
730docdir
731oldincludedir
732includedir
733localstatedir
734sharedstatedir
735sysconfdir
736datadir
737datarootdir
738libexecdir
739sbindir
740bindir
741program_transform_name
742prefix
743exec_prefix
744PACKAGE_URL
745PACKAGE_BUGREPORT
746PACKAGE_STRING
747PACKAGE_VERSION
748PACKAGE_TARNAME
749PACKAGE_NAME
750PATH_SEPARATOR
751SHELL'
752ac_subst_files=''
753ac_user_opts='
754enable_option_checking
755enable_maintainer_mode
756enable_dependency_tracking
757with_gnu_ld
758enable_shared
759enable_static
760with_pic
761enable_fast_install
762with_sysroot
763enable_libtool_lock
764with_zlib_prefix
765with_pkgconfigdir
766with_binconfigs
767enable_arm_neon
768'
769 ac_precious_vars='build_alias
770host_alias
771target_alias
772CC
773CFLAGS
774LDFLAGS
775LIBS
776CPPFLAGS
777CCAS
778CCASFLAGS
779CPP
780CPPFLAGS'
781
782
783# Initialize some variables set by options.
784ac_init_help=
785ac_init_version=false
786ac_unrecognized_opts=
787ac_unrecognized_sep=
788# The variables have the same names as the options, with
789# dashes changed to underlines.
790cache_file=/dev/null
791exec_prefix=NONE
792no_create=
793no_recursion=
794prefix=NONE
795program_prefix=NONE
796program_suffix=NONE
797program_transform_name=s,x,x,
798silent=
799site=
800srcdir=
801verbose=
802x_includes=NONE
803x_libraries=NONE
804
805# Installation directory options.
806# These are left unexpanded so users can "make install exec_prefix=/foo"
807# and all the variables that are supposed to be based on exec_prefix
808# by default will actually change.
809# Use braces instead of parens because sh, perl, etc. also accept them.
810# (The list follows the same order as the GNU Coding Standards.)
811bindir='${exec_prefix}/bin'
812sbindir='${exec_prefix}/sbin'
813libexecdir='${exec_prefix}/libexec'
814datarootdir='${prefix}/share'
815datadir='${datarootdir}'
816sysconfdir='${prefix}/etc'
817sharedstatedir='${prefix}/com'
818localstatedir='${prefix}/var'
819includedir='${prefix}/include'
820oldincludedir='/usr/include'
821docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
822infodir='${datarootdir}/info'
823htmldir='${docdir}'
824dvidir='${docdir}'
825pdfdir='${docdir}'
826psdir='${docdir}'
827libdir='${exec_prefix}/lib'
828localedir='${datarootdir}/locale'
829mandir='${datarootdir}/man'
830
831ac_prev=
832ac_dashdash=
833for ac_option
834do
835 # If the previous option needs an argument, assign it.
836 if test -n "$ac_prev"; then
837 eval $ac_prev=\$ac_option
838 ac_prev=
839 continue
840 fi
841
842 case $ac_option in
843 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
844 *=) ac_optarg= ;;
845 *) ac_optarg=yes ;;
846 esac
847
848 # Accept the important Cygnus configure options, so we can diagnose typos.
849
850 case $ac_dashdash$ac_option in
851 --)
852 ac_dashdash=yes ;;
853
854 -bindir | --bindir | --bindi | --bind | --bin | --bi)
855 ac_prev=bindir ;;
856 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
857 bindir=$ac_optarg ;;
858
859 -build | --build | --buil | --bui | --bu)
860 ac_prev=build_alias ;;
861 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
862 build_alias=$ac_optarg ;;
863
864 -cache-file | --cache-file | --cache-fil | --cache-fi \
865 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
866 ac_prev=cache_file ;;
867 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
868 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
869 cache_file=$ac_optarg ;;
870
871 --config-cache | -C)
872 cache_file=config.cache ;;
873
874 -datadir | --datadir | --datadi | --datad)
875 ac_prev=datadir ;;
876 -datadir=* | --datadir=* | --datadi=* | --datad=*)
877 datadir=$ac_optarg ;;
878
879 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
880 | --dataroo | --dataro | --datar)
881 ac_prev=datarootdir ;;
882 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
883 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
884 datarootdir=$ac_optarg ;;
885
886 -disable-* | --disable-*)
887 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
888 # Reject names that are not valid shell variable names.
889 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890 as_fn_error $? "invalid feature name: $ac_useropt"
891 ac_useropt_orig=$ac_useropt
892 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893 case $ac_user_opts in
894 *"
895"enable_$ac_useropt"
896"*) ;;
897 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
898 ac_unrecognized_sep=', ';;
899 esac
900 eval enable_$ac_useropt=no ;;
901
902 -docdir | --docdir | --docdi | --doc | --do)
903 ac_prev=docdir ;;
904 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
905 docdir=$ac_optarg ;;
906
907 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
908 ac_prev=dvidir ;;
909 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
910 dvidir=$ac_optarg ;;
911
912 -enable-* | --enable-*)
913 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
914 # Reject names that are not valid shell variable names.
915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916 as_fn_error $? "invalid feature name: $ac_useropt"
917 ac_useropt_orig=$ac_useropt
918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
920 *"
921"enable_$ac_useropt"
922"*) ;;
923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
924 ac_unrecognized_sep=', ';;
925 esac
926 eval enable_$ac_useropt=\$ac_optarg ;;
927
928 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
929 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
930 | --exec | --exe | --ex)
931 ac_prev=exec_prefix ;;
932 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
933 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
934 | --exec=* | --exe=* | --ex=*)
935 exec_prefix=$ac_optarg ;;
936
937 -gas | --gas | --ga | --g)
938 # Obsolete; use --with-gas.
939 with_gas=yes ;;
940
941 -help | --help | --hel | --he | -h)
942 ac_init_help=long ;;
943 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
944 ac_init_help=recursive ;;
945 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
946 ac_init_help=short ;;
947
948 -host | --host | --hos | --ho)
949 ac_prev=host_alias ;;
950 -host=* | --host=* | --hos=* | --ho=*)
951 host_alias=$ac_optarg ;;
952
953 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
954 ac_prev=htmldir ;;
955 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
956 | --ht=*)
957 htmldir=$ac_optarg ;;
958
959 -includedir | --includedir | --includedi | --included | --include \
960 | --includ | --inclu | --incl | --inc)
961 ac_prev=includedir ;;
962 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
963 | --includ=* | --inclu=* | --incl=* | --inc=*)
964 includedir=$ac_optarg ;;
965
966 -infodir | --infodir | --infodi | --infod | --info | --inf)
967 ac_prev=infodir ;;
968 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
969 infodir=$ac_optarg ;;
970
971 -libdir | --libdir | --libdi | --libd)
972 ac_prev=libdir ;;
973 -libdir=* | --libdir=* | --libdi=* | --libd=*)
974 libdir=$ac_optarg ;;
975
976 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
977 | --libexe | --libex | --libe)
978 ac_prev=libexecdir ;;
979 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
980 | --libexe=* | --libex=* | --libe=*)
981 libexecdir=$ac_optarg ;;
982
983 -localedir | --localedir | --localedi | --localed | --locale)
984 ac_prev=localedir ;;
985 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
986 localedir=$ac_optarg ;;
987
988 -localstatedir | --localstatedir | --localstatedi | --localstated \
989 | --localstate | --localstat | --localsta | --localst | --locals)
990 ac_prev=localstatedir ;;
991 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
992 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
993 localstatedir=$ac_optarg ;;
994
995 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
996 ac_prev=mandir ;;
997 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
998 mandir=$ac_optarg ;;
999
1000 -nfp | --nfp | --nf)
1001 # Obsolete; use --without-fp.
1002 with_fp=no ;;
1003
1004 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1005 | --no-cr | --no-c | -n)
1006 no_create=yes ;;
1007
1008 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1009 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1010 no_recursion=yes ;;
1011
1012 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1013 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1014 | --oldin | --oldi | --old | --ol | --o)
1015 ac_prev=oldincludedir ;;
1016 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1017 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1018 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1019 oldincludedir=$ac_optarg ;;
1020
1021 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1022 ac_prev=prefix ;;
1023 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1024 prefix=$ac_optarg ;;
1025
1026 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1027 | --program-pre | --program-pr | --program-p)
1028 ac_prev=program_prefix ;;
1029 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1030 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1031 program_prefix=$ac_optarg ;;
1032
1033 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1034 | --program-suf | --program-su | --program-s)
1035 ac_prev=program_suffix ;;
1036 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1037 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1038 program_suffix=$ac_optarg ;;
1039
1040 -program-transform-name | --program-transform-name \
1041 | --program-transform-nam | --program-transform-na \
1042 | --program-transform-n | --program-transform- \
1043 | --program-transform | --program-transfor \
1044 | --program-transfo | --program-transf \
1045 | --program-trans | --program-tran \
1046 | --progr-tra | --program-tr | --program-t)
1047 ac_prev=program_transform_name ;;
1048 -program-transform-name=* | --program-transform-name=* \
1049 | --program-transform-nam=* | --program-transform-na=* \
1050 | --program-transform-n=* | --program-transform-=* \
1051 | --program-transform=* | --program-transfor=* \
1052 | --program-transfo=* | --program-transf=* \
1053 | --program-trans=* | --program-tran=* \
1054 | --progr-tra=* | --program-tr=* | --program-t=*)
1055 program_transform_name=$ac_optarg ;;
1056
1057 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1058 ac_prev=pdfdir ;;
1059 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1060 pdfdir=$ac_optarg ;;
1061
1062 -psdir | --psdir | --psdi | --psd | --ps)
1063 ac_prev=psdir ;;
1064 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1065 psdir=$ac_optarg ;;
1066
1067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068 | -silent | --silent | --silen | --sile | --sil)
1069 silent=yes ;;
1070
1071 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1072 ac_prev=sbindir ;;
1073 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1074 | --sbi=* | --sb=*)
1075 sbindir=$ac_optarg ;;
1076
1077 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1078 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1079 | --sharedst | --shareds | --shared | --share | --shar \
1080 | --sha | --sh)
1081 ac_prev=sharedstatedir ;;
1082 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1083 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1084 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1085 | --sha=* | --sh=*)
1086 sharedstatedir=$ac_optarg ;;
1087
1088 -site | --site | --sit)
1089 ac_prev=site ;;
1090 -site=* | --site=* | --sit=*)
1091 site=$ac_optarg ;;
1092
1093 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1094 ac_prev=srcdir ;;
1095 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1096 srcdir=$ac_optarg ;;
1097
1098 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1099 | --syscon | --sysco | --sysc | --sys | --sy)
1100 ac_prev=sysconfdir ;;
1101 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1102 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1103 sysconfdir=$ac_optarg ;;
1104
1105 -target | --target | --targe | --targ | --tar | --ta | --t)
1106 ac_prev=target_alias ;;
1107 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1108 target_alias=$ac_optarg ;;
1109
1110 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1111 verbose=yes ;;
1112
1113 -version | --version | --versio | --versi | --vers | -V)
1114 ac_init_version=: ;;
1115
1116 -with-* | --with-*)
1117 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120 as_fn_error $? "invalid package name: $ac_useropt"
1121 ac_useropt_orig=$ac_useropt
1122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1124 *"
1125"with_$ac_useropt"
1126"*) ;;
1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1128 ac_unrecognized_sep=', ';;
1129 esac
1130 eval with_$ac_useropt=\$ac_optarg ;;
1131
1132 -without-* | --without-*)
1133 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136 as_fn_error $? "invalid package name: $ac_useropt"
1137 ac_useropt_orig=$ac_useropt
1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1140 *"
1141"with_$ac_useropt"
1142"*) ;;
1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
1145 esac
1146 eval with_$ac_useropt=no ;;
1147
1148 --x)
1149 # Obsolete; use --with-x.
1150 with_x=yes ;;
1151
1152 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1153 | --x-incl | --x-inc | --x-in | --x-i)
1154 ac_prev=x_includes ;;
1155 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1156 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1157 x_includes=$ac_optarg ;;
1158
1159 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1160 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1161 ac_prev=x_libraries ;;
1162 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1163 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1164 x_libraries=$ac_optarg ;;
1165
1166 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1167Try \`$0 --help' for more information"
1168 ;;
1169
1170 *=*)
1171 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1172 # Reject names that are not valid shell variable names.
1173 case $ac_envvar in #(
1174 '' | [0-9]* | *[!_$as_cr_alnum]* )
1175 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1176 esac
1177 eval $ac_envvar=\$ac_optarg
1178 export $ac_envvar ;;
1179
1180 *)
1181 # FIXME: should be removed in autoconf 3.0.
1182 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1183 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1184 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1185 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1186 ;;
1187
1188 esac
1189done
1190
1191if test -n "$ac_prev"; then
1192 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1193 as_fn_error $? "missing argument to $ac_option"
1194fi
1195
1196if test -n "$ac_unrecognized_opts"; then
1197 case $enable_option_checking in
1198 no) ;;
1199 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1200 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1201 esac
1202fi
1203
1204# Check all directory arguments for consistency.
1205for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
1209do
1210 eval ac_val=\$$ac_var
1211 # Remove trailing slashes.
1212 case $ac_val in
1213 */ )
1214 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1215 eval $ac_var=\$ac_val;;
1216 esac
1217 # Be sure to have absolute directory names.
1218 case $ac_val in
1219 [\\/$]* | ?:[\\/]* ) continue;;
1220 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1221 esac
1222 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1223done
1224
1225# There might be people who depend on the old broken behavior: `$host'
1226# used to hold the argument of --host etc.
1227# FIXME: To remove some day.
1228build=$build_alias
1229host=$host_alias
1230target=$target_alias
1231
1232# FIXME: To remove some day.
1233if test "x$host_alias" != x; then
1234 if test "x$build_alias" = x; then
1235 cross_compiling=maybe
1236 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1237 If a cross compiler is detected then cross compile mode will be used" >&2
1238 elif test "x$build_alias" != "x$host_alias"; then
1239 cross_compiling=yes
1240 fi
1241fi
1242
1243ac_tool_prefix=
1244test -n "$host_alias" && ac_tool_prefix=$host_alias-
1245
1246test "$silent" = yes && exec 6>/dev/null
1247
1248
1249ac_pwd=`pwd` && test -n "$ac_pwd" &&
1250ac_ls_di=`ls -di .` &&
1251ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1252 as_fn_error $? "working directory cannot be determined"
1253test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1254 as_fn_error $? "pwd does not report name of working directory"
1255
1256
1257# Find the source files, if location was not specified.
1258if test -z "$srcdir"; then
1259 ac_srcdir_defaulted=yes
1260 # Try the directory containing this script, then the parent directory.
1261 ac_confdir=`$as_dirname -- "$as_myself" ||
1262$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263 X"$as_myself" : 'X\(//\)[^/]' \| \
1264 X"$as_myself" : 'X\(//\)$' \| \
1265 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1266$as_echo X"$as_myself" |
1267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\/\)[^/].*/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)$/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\).*/{
1280 s//\1/
1281 q
1282 }
1283 s/.*/./; q'`
1284 srcdir=$ac_confdir
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 srcdir=..
1287 fi
1288else
1289 ac_srcdir_defaulted=no
1290fi
1291if test ! -r "$srcdir/$ac_unique_file"; then
1292 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1293 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1294fi
1295ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1296ac_abs_confdir=`(
1297 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1298 pwd)`
1299# When building in place, set srcdir=.
1300if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 srcdir=.
1302fi
1303# Remove unnecessary trailing slashes from srcdir.
1304# Double slashes in file names in object file debugging info
1305# mess up M-x gdb in Emacs.
1306case $srcdir in
1307*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308esac
1309for ac_var in $ac_precious_vars; do
1310 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_env_${ac_var}_value=\$${ac_var}
1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314done
1315
1316#
1317# Report the --help message.
1318#
1319if test "$ac_init_help" = "long"; then
1320 # Omit some internal or obsolete options to make the list less imposing.
1321 # This message is too long to be a string in the A/UX 3.1 sh.
1322 cat <<_ACEOF
1323\`configure' configures libpng 1.5.7 to adapt to many kinds of systems.
1324
1325Usage: $0 [OPTION]... [VAR=VALUE]...
1326
1327To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328VAR=VALUE. See below for descriptions of some of the useful variables.
1329
1330Defaults for the options are specified in brackets.
1331
1332Configuration:
1333 -h, --help display this help and exit
1334 --help=short display options specific to this package
1335 --help=recursive display the short help of all the included packages
1336 -V, --version display version information and exit
1337 -q, --quiet, --silent do not print \`checking ...' messages
1338 --cache-file=FILE cache test results in FILE [disabled]
1339 -C, --config-cache alias for \`--cache-file=config.cache'
1340 -n, --no-create do not create output files
1341 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1342
1343Installation directories:
1344 --prefix=PREFIX install architecture-independent files in PREFIX
1345 [$ac_default_prefix]
1346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1347 [PREFIX]
1348
1349By default, \`make install' will install all the files in
1350\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352for instance \`--prefix=\$HOME'.
1353
1354For better control, use the options below.
1355
1356Fine tuning of the installation directories:
1357 --bindir=DIR user executables [EPREFIX/bin]
1358 --sbindir=DIR system admin executables [EPREFIX/sbin]
1359 --libexecdir=DIR program executables [EPREFIX/libexec]
1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363 --libdir=DIR object code libraries [EPREFIX/lib]
1364 --includedir=DIR C header files [PREFIX/include]
1365 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368 --infodir=DIR info documentation [DATAROOTDIR/info]
1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370 --mandir=DIR man documentation [DATAROOTDIR/man]
1371 --docdir=DIR documentation root [DATAROOTDIR/doc/libpng]
1372 --htmldir=DIR html documentation [DOCDIR]
1373 --dvidir=DIR dvi documentation [DOCDIR]
1374 --pdfdir=DIR pdf documentation [DOCDIR]
1375 --psdir=DIR ps documentation [DOCDIR]
1376_ACEOF
1377
1378 cat <<\_ACEOF
1379
1380Program names:
1381 --program-prefix=PREFIX prepend PREFIX to installed program names
1382 --program-suffix=SUFFIX append SUFFIX to installed program names
1383 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1384
1385System types:
1386 --build=BUILD configure for building on BUILD [guessed]
1387 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1388_ACEOF
1389fi
1390
1391if test -n "$ac_init_help"; then
1392 case $ac_init_help in
1393 short | recursive ) echo "Configuration of libpng 1.5.7:";;
1394 esac
1395 cat <<\_ACEOF
1396
1397Optional Features:
1398 --disable-option-checking ignore unrecognized --enable/--with options
1399 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1400 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1401 --enable-maintainer-mode enable make rules and dependencies not useful
1402 (and sometimes confusing) to the casual installer
1403 --disable-dependency-tracking speeds up one-time build
1404 --enable-dependency-tracking do not reject slow dependency extractors
1405 --enable-shared[=PKGS] build shared libraries [default=yes]
1406 --enable-static[=PKGS] build static libraries [default=yes]
1407 --enable-fast-install[=PKGS]
1408 optimize for fast installation [default=yes]
1409 --disable-libtool-lock avoid locking (might break parallel builds)
1410 --enable-arm-neon Enable ARM NEON optimizations
1411
1412Optional Packages:
1413 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1414 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1415 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1416 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1417 both]
1418 --with-sysroot=DIR Search for dependent libraries within DIR
1419 (or the compiler's sysroot if not specified).
1420 --with-zlib-prefix prefix that may have been used in installed zlib
1421 --with-pkgconfigdir Use the specified pkgconfig dir (default is
1422 libdir/pkgconfig)
1423 --with-binconfigs Generate shell libpng-config scripts as well as
1424 pkg-config data [default=yes]
1425
1426Some influential environment variables:
1427 CC C compiler command
1428 CFLAGS C compiler flags
1429 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1430 nonstandard directory <lib dir>
1431 LIBS libraries to pass to the linker, e.g. -l<library>
1432 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1433 you have headers in a nonstandard directory <include dir>
1434 CCAS assembler compiler command (defaults to CC)
1435 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1436 CPP C preprocessor
1437
1438Use these variables to override the choices made by `configure' or to help
1439it to find libraries and programs with nonstandard names/locations.
1440
1441Report bugs to <png-mng-implement@lists.sourceforge.net>.
1442_ACEOF
1443ac_status=$?
1444fi
1445
1446if test "$ac_init_help" = "recursive"; then
1447 # If there are subdirs, report their specific --help.
1448 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1449 test -d "$ac_dir" ||
1450 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1451 continue
1452 ac_builddir=.
1453
1454case "$ac_dir" in
1455.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456*)
1457 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1458 # A ".." for each directory in $ac_dir_suffix.
1459 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1460 case $ac_top_builddir_sub in
1461 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1463 esac ;;
1464esac
1465ac_abs_top_builddir=$ac_pwd
1466ac_abs_builddir=$ac_pwd$ac_dir_suffix
1467# for backward compatibility:
1468ac_top_builddir=$ac_top_build_prefix
1469
1470case $srcdir in
1471 .) # We are building in place.
1472 ac_srcdir=.
1473 ac_top_srcdir=$ac_top_builddir_sub
1474 ac_abs_top_srcdir=$ac_pwd ;;
1475 [\\/]* | ?:[\\/]* ) # Absolute name.
1476 ac_srcdir=$srcdir$ac_dir_suffix;
1477 ac_top_srcdir=$srcdir
1478 ac_abs_top_srcdir=$srcdir ;;
1479 *) # Relative name.
1480 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1481 ac_top_srcdir=$ac_top_build_prefix$srcdir
1482 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1483esac
1484ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1485
1486 cd "$ac_dir" || { ac_status=$?; continue; }
1487 # Check for guested configure.
1488 if test -f "$ac_srcdir/configure.gnu"; then
1489 echo &&
1490 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1491 elif test -f "$ac_srcdir/configure"; then
1492 echo &&
1493 $SHELL "$ac_srcdir/configure" --help=recursive
1494 else
1495 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1496 fi || ac_status=$?
1497 cd "$ac_pwd" || { ac_status=$?; break; }
1498 done
1499fi
1500
1501test -n "$ac_init_help" && exit $ac_status
1502if $ac_init_version; then
1503 cat <<\_ACEOF
1504libpng configure 1.5.7
1505generated by GNU Autoconf 2.68
1506
1507Copyright (C) 2010 Free Software Foundation, Inc.
1508This configure script is free software; the Free Software Foundation
1509gives unlimited permission to copy, distribute and modify it.
1510_ACEOF
1511 exit
1512fi
1513
1514## ------------------------ ##
1515## Autoconf initialization. ##
1516## ------------------------ ##
1517
1518# ac_fn_c_try_compile LINENO
1519# --------------------------
1520# Try to compile conftest.$ac_ext, and return whether this succeeded.
1521ac_fn_c_try_compile ()
1522{
1523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1524 rm -f conftest.$ac_objext
1525 if { { ac_try="$ac_compile"
1526case "(($ac_try" in
1527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1528 *) ac_try_echo=$ac_try;;
1529esac
1530eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1531$as_echo "$ac_try_echo"; } >&5
1532 (eval "$ac_compile") 2>conftest.err
1533 ac_status=$?
1534 if test -s conftest.err; then
1535 grep -v '^ *+' conftest.err >conftest.er1
1536 cat conftest.er1 >&5
1537 mv -f conftest.er1 conftest.err
1538 fi
1539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1540 test $ac_status = 0; } && {
1541 test -z "$ac_c_werror_flag" ||
1542 test ! -s conftest.err
1543 } && test -s conftest.$ac_objext; then :
1544 ac_retval=0
1545else
1546 $as_echo "$as_me: failed program was:" >&5
1547sed 's/^/| /' conftest.$ac_ext >&5
1548
1549 ac_retval=1
1550fi
1551 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1552 as_fn_set_status $ac_retval
1553
1554} # ac_fn_c_try_compile
1555
1556# ac_fn_c_try_cpp LINENO
1557# ----------------------
1558# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1559ac_fn_c_try_cpp ()
1560{
1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562 if { { ac_try="$ac_cpp conftest.$ac_ext"
1563case "(($ac_try" in
1564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565 *) ac_try_echo=$ac_try;;
1566esac
1567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568$as_echo "$ac_try_echo"; } >&5
1569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1570 ac_status=$?
1571 if test -s conftest.err; then
1572 grep -v '^ *+' conftest.err >conftest.er1
1573 cat conftest.er1 >&5
1574 mv -f conftest.er1 conftest.err
1575 fi
1576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577 test $ac_status = 0; } > conftest.i && {
1578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1579 test ! -s conftest.err
1580 }; then :
1581 ac_retval=0
1582else
1583 $as_echo "$as_me: failed program was:" >&5
1584sed 's/^/| /' conftest.$ac_ext >&5
1585
1586 ac_retval=1
1587fi
1588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1589 as_fn_set_status $ac_retval
1590
1591} # ac_fn_c_try_cpp
1592
1593# ac_fn_c_try_link LINENO
1594# -----------------------
1595# Try to link conftest.$ac_ext, and return whether this succeeded.
1596ac_fn_c_try_link ()
1597{
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 rm -f conftest.$ac_objext conftest$ac_exeext
1600 if { { ac_try="$ac_link"
1601case "(($ac_try" in
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1604esac
1605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606$as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_link") 2>conftest.err
1608 ac_status=$?
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1613 fi
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } && {
1616 test -z "$ac_c_werror_flag" ||
1617 test ! -s conftest.err
1618 } && test -s conftest$ac_exeext && {
1619 test "$cross_compiling" = yes ||
1620 $as_test_x conftest$ac_exeext
1621 }; then :
1622 ac_retval=0
1623else
1624 $as_echo "$as_me: failed program was:" >&5
1625sed 's/^/| /' conftest.$ac_ext >&5
1626
1627 ac_retval=1
1628fi
1629 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1630 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1631 # interfere with the next link command; also delete a directory that is
1632 # left behind by Apple's compiler. We do this before executing the actions.
1633 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635 as_fn_set_status $ac_retval
1636
1637} # ac_fn_c_try_link
1638
1639# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1640# -------------------------------------------------------
1641# Tests whether HEADER exists and can be compiled using the include files in
1642# INCLUDES, setting the cache variable VAR accordingly.
1643ac_fn_c_check_header_compile ()
1644{
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1647$as_echo_n "checking for $2... " >&6; }
1648if eval \${$3+:} false; then :
1649 $as_echo_n "(cached) " >&6
1650else
1651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1652/* end confdefs.h. */
1653$4
1654#include <$2>
1655_ACEOF
1656if ac_fn_c_try_compile "$LINENO"; then :
1657 eval "$3=yes"
1658else
1659 eval "$3=no"
1660fi
1661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1662fi
1663eval ac_res=\$$3
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1665$as_echo "$ac_res" >&6; }
1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667
1668} # ac_fn_c_check_header_compile
1669
1670# ac_fn_c_try_run LINENO
1671# ----------------------
1672# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1673# that executables *can* be run.
1674ac_fn_c_try_run ()
1675{
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 if { { ac_try="$ac_link"
1678case "(($ac_try" in
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1681esac
1682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683$as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_link") 2>&5
1685 ac_status=$?
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1688 { { case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691esac
1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693$as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_try") 2>&5
1695 ac_status=$?
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; }; }; then :
1698 ac_retval=0
1699else
1700 $as_echo "$as_me: program exited with status $ac_status" >&5
1701 $as_echo "$as_me: failed program was:" >&5
1702sed 's/^/| /' conftest.$ac_ext >&5
1703
1704 ac_retval=$ac_status
1705fi
1706 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708 as_fn_set_status $ac_retval
1709
1710} # ac_fn_c_try_run
1711
1712# ac_fn_c_check_func LINENO FUNC VAR
1713# ----------------------------------
1714# Tests whether FUNC exists, setting the cache variable VAR accordingly
1715ac_fn_c_check_func ()
1716{
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1719$as_echo_n "checking for $2... " >&6; }
1720if eval \${$3+:} false; then :
1721 $as_echo_n "(cached) " >&6
1722else
1723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724/* end confdefs.h. */
1725/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1727#define $2 innocuous_$2
1728
1729/* System header to define __stub macros and hopefully few prototypes,
1730 which can conflict with char $2 (); below.
1731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1732 <limits.h> exists even on freestanding compilers. */
1733
1734#ifdef __STDC__
1735# include <limits.h>
1736#else
1737# include <assert.h>
1738#endif
1739
1740#undef $2
1741
1742/* Override any GCC internal prototype to avoid an error.
1743 Use char because int might match the return type of a GCC
1744 builtin and then its argument prototype would still apply. */
1745#ifdef __cplusplus
1746extern "C"
1747#endif
1748char $2 ();
1749/* The GNU C library defines this for functions which it implements
1750 to always fail with ENOSYS. Some functions are actually named
1751 something starting with __ and the normal name is an alias. */
1752#if defined __stub_$2 || defined __stub___$2
1753choke me
1754#endif
1755
1756int
1757main ()
1758{
1759return $2 ();
1760 ;
1761 return 0;
1762}
1763_ACEOF
1764if ac_fn_c_try_link "$LINENO"; then :
1765 eval "$3=yes"
1766else
1767 eval "$3=no"
1768fi
1769rm -f core conftest.err conftest.$ac_objext \
1770 conftest$ac_exeext conftest.$ac_ext
1771fi
1772eval ac_res=\$$3
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774$as_echo "$ac_res" >&6; }
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776
1777} # ac_fn_c_check_func
1778
1779# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1780# -------------------------------------------------------
1781# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1782# the include files in INCLUDES and setting the cache variable VAR
1783# accordingly.
1784ac_fn_c_check_header_mongrel ()
1785{
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 if eval \${$3+:} false; then :
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1789$as_echo_n "checking for $2... " >&6; }
1790if eval \${$3+:} false; then :
1791 $as_echo_n "(cached) " >&6
1792fi
1793eval ac_res=\$$3
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795$as_echo "$ac_res" >&6; }
1796else
1797 # Is the header compilable?
1798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1799$as_echo_n "checking $2 usability... " >&6; }
1800cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801/* end confdefs.h. */
1802$4
1803#include <$2>
1804_ACEOF
1805if ac_fn_c_try_compile "$LINENO"; then :
1806 ac_header_compiler=yes
1807else
1808 ac_header_compiler=no
1809fi
1810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1812$as_echo "$ac_header_compiler" >&6; }
1813
1814# Is the header present?
1815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1816$as_echo_n "checking $2 presence... " >&6; }
1817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818/* end confdefs.h. */
1819#include <$2>
1820_ACEOF
1821if ac_fn_c_try_cpp "$LINENO"; then :
1822 ac_header_preproc=yes
1823else
1824 ac_header_preproc=no
1825fi
1826rm -f conftest.err conftest.i conftest.$ac_ext
1827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1828$as_echo "$ac_header_preproc" >&6; }
1829
1830# So? What about this header?
1831case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1832 yes:no: )
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1834$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1836$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1837 ;;
1838 no:yes:* )
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1840$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1842$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1844$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1846$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1848$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1849( $as_echo "## ------------------------------------------------------ ##
1850## Report this to png-mng-implement@lists.sourceforge.net ##
1851## ------------------------------------------------------ ##"
1852 ) | sed "s/^/$as_me: WARNING: /" >&2
1853 ;;
1854esac
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1856$as_echo_n "checking for $2... " >&6; }
1857if eval \${$3+:} false; then :
1858 $as_echo_n "(cached) " >&6
1859else
1860 eval "$3=\$ac_header_compiler"
1861fi
1862eval ac_res=\$$3
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1864$as_echo "$ac_res" >&6; }
1865fi
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867
1868} # ac_fn_c_check_header_mongrel
1869
1870# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1871# -------------------------------------------
1872# Tests whether TYPE exists after having included INCLUDES, setting cache
1873# variable VAR accordingly.
1874ac_fn_c_check_type ()
1875{
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878$as_echo_n "checking for $2... " >&6; }
1879if eval \${$3+:} false; then :
1880 $as_echo_n "(cached) " >&6
1881else
1882 eval "$3=no"
1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884/* end confdefs.h. */
1885$4
1886int
1887main ()
1888{
1889if (sizeof ($2))
1890 return 0;
1891 ;
1892 return 0;
1893}
1894_ACEOF
1895if ac_fn_c_try_compile "$LINENO"; then :
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897/* end confdefs.h. */
1898$4
1899int
1900main ()
1901{
1902if (sizeof (($2)))
1903 return 0;
1904 ;
1905 return 0;
1906}
1907_ACEOF
1908if ac_fn_c_try_compile "$LINENO"; then :
1909
1910else
1911 eval "$3=yes"
1912fi
1913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1914fi
1915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1916fi
1917eval ac_res=\$$3
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919$as_echo "$ac_res" >&6; }
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921
1922} # ac_fn_c_check_type
1923cat >config.log <<_ACEOF
1924This file contains any messages produced by compilers while
1925running configure, to aid debugging if configure makes a mistake.
1926
1927It was created by libpng $as_me 1.5.7, which was
1928generated by GNU Autoconf 2.68. Invocation command line was
1929
1930 $ $0 $@
1931
1932_ACEOF
1933exec 5>>config.log
1934{
1935cat <<_ASUNAME
1936## --------- ##
1937## Platform. ##
1938## --------- ##
1939
1940hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1941uname -m = `(uname -m) 2>/dev/null || echo unknown`
1942uname -r = `(uname -r) 2>/dev/null || echo unknown`
1943uname -s = `(uname -s) 2>/dev/null || echo unknown`
1944uname -v = `(uname -v) 2>/dev/null || echo unknown`
1945
1946/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1947/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1948
1949/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1950/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1951/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1952/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1953/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1954/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1955/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1956
1957_ASUNAME
1958
1959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1960for as_dir in $PATH
1961do
1962 IFS=$as_save_IFS
1963 test -z "$as_dir" && as_dir=.
1964 $as_echo "PATH: $as_dir"
1965 done
1966IFS=$as_save_IFS
1967
1968} >&5
1969
1970cat >&5 <<_ACEOF
1971
1972
1973## ----------- ##
1974## Core tests. ##
1975## ----------- ##
1976
1977_ACEOF
1978
1979
1980# Keep a trace of the command line.
1981# Strip out --no-create and --no-recursion so they do not pile up.
1982# Strip out --silent because we don't want to record it for future runs.
1983# Also quote any args containing shell meta-characters.
1984# Make two passes to allow for proper duplicate-argument suppression.
1985ac_configure_args=
1986ac_configure_args0=
1987ac_configure_args1=
1988ac_must_keep_next=false
1989for ac_pass in 1 2
1990do
1991 for ac_arg
1992 do
1993 case $ac_arg in
1994 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1995 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1996 | -silent | --silent | --silen | --sile | --sil)
1997 continue ;;
1998 *\'*)
1999 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2000 esac
2001 case $ac_pass in
2002 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2003 2)
2004 as_fn_append ac_configure_args1 " '$ac_arg'"
2005 if test $ac_must_keep_next = true; then
2006 ac_must_keep_next=false # Got value, back to normal.
2007 else
2008 case $ac_arg in
2009 *=* | --config-cache | -C | -disable-* | --disable-* \
2010 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2011 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2012 | -with-* | --with-* | -without-* | --without-* | --x)
2013 case "$ac_configure_args0 " in
2014 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2015 esac
2016 ;;
2017 -* ) ac_must_keep_next=true ;;
2018 esac
2019 fi
2020 as_fn_append ac_configure_args " '$ac_arg'"
2021 ;;
2022 esac
2023 done
2024done
2025{ ac_configure_args0=; unset ac_configure_args0;}
2026{ ac_configure_args1=; unset ac_configure_args1;}
2027
2028# When interrupted or exit'd, cleanup temporary files, and complete
2029# config.log. We remove comments because anyway the quotes in there
2030# would cause problems or look ugly.
2031# WARNING: Use '\'' to represent an apostrophe within the trap.
2032# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2033trap 'exit_status=$?
2034 # Save into config.log some information that might help in debugging.
2035 {
2036 echo
2037
2038 $as_echo "## ---------------- ##
2039## Cache variables. ##
2040## ---------------- ##"
2041 echo
2042 # The following way of writing the cache mishandles newlines in values,
2043(
2044 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2045 eval ac_val=\$$ac_var
2046 case $ac_val in #(
2047 *${as_nl}*)
2048 case $ac_var in #(
2049 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2050$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2051 esac
2052 case $ac_var in #(
2053 _ | IFS | as_nl) ;; #(
2054 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2055 *) { eval $ac_var=; unset $ac_var;} ;;
2056 esac ;;
2057 esac
2058 done
2059 (set) 2>&1 |
2060 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2061 *${as_nl}ac_space=\ *)
2062 sed -n \
2063 "s/'\''/'\''\\\\'\'''\''/g;
2064 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2065 ;; #(
2066 *)
2067 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2068 ;;
2069 esac |
2070 sort
2071)
2072 echo
2073
2074 $as_echo "## ----------------- ##
2075## Output variables. ##
2076## ----------------- ##"
2077 echo
2078 for ac_var in $ac_subst_vars
2079 do
2080 eval ac_val=\$$ac_var
2081 case $ac_val in
2082 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2083 esac
2084 $as_echo "$ac_var='\''$ac_val'\''"
2085 done | sort
2086 echo
2087
2088 if test -n "$ac_subst_files"; then
2089 $as_echo "## ------------------- ##
2090## File substitutions. ##
2091## ------------------- ##"
2092 echo
2093 for ac_var in $ac_subst_files
2094 do
2095 eval ac_val=\$$ac_var
2096 case $ac_val in
2097 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2098 esac
2099 $as_echo "$ac_var='\''$ac_val'\''"
2100 done | sort
2101 echo
2102 fi
2103
2104 if test -s confdefs.h; then
2105 $as_echo "## ----------- ##
2106## confdefs.h. ##
2107## ----------- ##"
2108 echo
2109 cat confdefs.h
2110 echo
2111 fi
2112 test "$ac_signal" != 0 &&
2113 $as_echo "$as_me: caught signal $ac_signal"
2114 $as_echo "$as_me: exit $exit_status"
2115 } >&5
2116 rm -f core *.core core.conftest.* &&
2117 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2118 exit $exit_status
2119' 0
2120for ac_signal in 1 2 13 15; do
2121 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2122done
2123ac_signal=0
2124
2125# confdefs.h avoids OS command line length limits that DEFS can exceed.
2126rm -f -r conftest* confdefs.h
2127
2128$as_echo "/* confdefs.h */" > confdefs.h
2129
2130# Predefined preprocessor variables.
2131
2132cat >>confdefs.h <<_ACEOF
2133#define PACKAGE_NAME "$PACKAGE_NAME"
2134_ACEOF
2135
2136cat >>confdefs.h <<_ACEOF
2137#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2138_ACEOF
2139
2140cat >>confdefs.h <<_ACEOF
2141#define PACKAGE_VERSION "$PACKAGE_VERSION"
2142_ACEOF
2143
2144cat >>confdefs.h <<_ACEOF
2145#define PACKAGE_STRING "$PACKAGE_STRING"
2146_ACEOF
2147
2148cat >>confdefs.h <<_ACEOF
2149#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2150_ACEOF
2151
2152cat >>confdefs.h <<_ACEOF
2153#define PACKAGE_URL "$PACKAGE_URL"
2154_ACEOF
2155
2156
2157# Let the site file select an alternate cache file if it wants to.
2158# Prefer an explicitly selected file to automatically selected ones.
2159ac_site_file1=NONE
2160ac_site_file2=NONE
2161if test -n "$CONFIG_SITE"; then
2162 # We do not want a PATH search for config.site.
2163 case $CONFIG_SITE in #((
2164 -*) ac_site_file1=./$CONFIG_SITE;;
2165 */*) ac_site_file1=$CONFIG_SITE;;
2166 *) ac_site_file1=./$CONFIG_SITE;;
2167 esac
2168elif test "x$prefix" != xNONE; then
2169 ac_site_file1=$prefix/share/config.site
2170 ac_site_file2=$prefix/etc/config.site
2171else
2172 ac_site_file1=$ac_default_prefix/share/config.site
2173 ac_site_file2=$ac_default_prefix/etc/config.site
2174fi
2175for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2176do
2177 test "x$ac_site_file" = xNONE && continue
2178 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2180$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2181 sed 's/^/| /' "$ac_site_file" >&5
2182 . "$ac_site_file" \
2183 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2185as_fn_error $? "failed to load site script $ac_site_file
2186See \`config.log' for more details" "$LINENO" 5; }
2187 fi
2188done
2189
2190if test -r "$cache_file"; then
2191 # Some versions of bash will fail to source /dev/null (special files
2192 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2193 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2195$as_echo "$as_me: loading cache $cache_file" >&6;}
2196 case $cache_file in
2197 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2198 *) . "./$cache_file";;
2199 esac
2200 fi
2201else
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2203$as_echo "$as_me: creating cache $cache_file" >&6;}
2204 >$cache_file
2205fi
2206
2207# Check that the precious variables saved in the cache have kept the same
2208# value.
2209ac_cache_corrupted=false
2210for ac_var in $ac_precious_vars; do
2211 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2212 eval ac_new_set=\$ac_env_${ac_var}_set
2213 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2214 eval ac_new_val=\$ac_env_${ac_var}_value
2215 case $ac_old_set,$ac_new_set in
2216 set,)
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2218$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2219 ac_cache_corrupted=: ;;
2220 ,set)
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2222$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2223 ac_cache_corrupted=: ;;
2224 ,);;
2225 *)
2226 if test "x$ac_old_val" != "x$ac_new_val"; then
2227 # differences in whitespace do not lead to failure.
2228 ac_old_val_w=`echo x $ac_old_val`
2229 ac_new_val_w=`echo x $ac_new_val`
2230 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2232$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2233 ac_cache_corrupted=:
2234 else
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2236$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2237 eval $ac_var=\$ac_old_val
2238 fi
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2240$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2242$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2243 fi;;
2244 esac
2245 # Pass precious variables to config.status.
2246 if test "$ac_new_set" = set; then
2247 case $ac_new_val in
2248 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2249 *) ac_arg=$ac_var=$ac_new_val ;;
2250 esac
2251 case " $ac_configure_args " in
2252 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2253 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2254 esac
2255 fi
2256done
2257if $ac_cache_corrupted; then
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2259$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2261$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2262 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2263fi
2264## -------------------- ##
2265## Main body of script. ##
2266## -------------------- ##
2267
2268ac_ext=c
2269ac_cpp='$CPP $CPPFLAGS'
2270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2272ac_compiler_gnu=$ac_cv_c_compiler_gnu
2273
2274
2275am__api_version='1.11'
2276
2277ac_aux_dir=
2278for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2279 if test -f "$ac_dir/install-sh"; then
2280 ac_aux_dir=$ac_dir
2281 ac_install_sh="$ac_aux_dir/install-sh -c"
2282 break
2283 elif test -f "$ac_dir/install.sh"; then
2284 ac_aux_dir=$ac_dir
2285 ac_install_sh="$ac_aux_dir/install.sh -c"
2286 break
2287 elif test -f "$ac_dir/shtool"; then
2288 ac_aux_dir=$ac_dir
2289 ac_install_sh="$ac_aux_dir/shtool install -c"
2290 break
2291 fi
2292done
2293if test -z "$ac_aux_dir"; then
2294 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2295fi
2296
2297# These three variables are undocumented and unsupported,
2298# and are intended to be withdrawn in a future Autoconf release.
2299# They can cause serious problems if a builder's source tree is in a directory
2300# whose full name contains unusual characters.
2301ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2302ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2303ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2304
2305
2306# Find a good install program. We prefer a C program (faster),
2307# so one script is as good as another. But avoid the broken or
2308# incompatible versions:
2309# SysV /etc/install, /usr/sbin/install
2310# SunOS /usr/etc/install
2311# IRIX /sbin/install
2312# AIX /bin/install
2313# AmigaOS /C/install, which installs bootblocks on floppy discs
2314# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2315# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2316# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2317# OS/2's system install, which has a completely different semantic
2318# ./install, which can be erroneously created by make from ./install.sh.
2319# Reject install programs that cannot install multiple files.
2320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2321$as_echo_n "checking for a BSD-compatible install... " >&6; }
2322if test -z "$INSTALL"; then
2323if ${ac_cv_path_install+:} false; then :
2324 $as_echo_n "(cached) " >&6
2325else
2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327for as_dir in $PATH
2328do
2329 IFS=$as_save_IFS
2330 test -z "$as_dir" && as_dir=.
2331 # Account for people who put trailing slashes in PATH elements.
2332case $as_dir/ in #((
2333 ./ | .// | /[cC]/* | \
2334 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2335 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2336 /usr/ucb/* ) ;;
2337 *)
2338 # OSF1 and SCO ODT 3.0 have their own names for install.
2339 # Don't use installbsd from OSF since it installs stuff as root
2340 # by default.
2341 for ac_prog in ginstall scoinst install; do
2342 for ac_exec_ext in '' $ac_executable_extensions; do
2343 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2344 if test $ac_prog = install &&
2345 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2346 # AIX install. It has an incompatible calling convention.
2347 :
2348 elif test $ac_prog = install &&
2349 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2350 # program-specific install script used by HP pwplus--don't use.
2351 :
2352 else
2353 rm -rf conftest.one conftest.two conftest.dir
2354 echo one > conftest.one
2355 echo two > conftest.two
2356 mkdir conftest.dir
2357 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2358 test -s conftest.one && test -s conftest.two &&
2359 test -s conftest.dir/conftest.one &&
2360 test -s conftest.dir/conftest.two
2361 then
2362 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2363 break 3
2364 fi
2365 fi
2366 fi
2367 done
2368 done
2369 ;;
2370esac
2371
2372 done
2373IFS=$as_save_IFS
2374
2375rm -rf conftest.one conftest.two conftest.dir
2376
2377fi
2378 if test "${ac_cv_path_install+set}" = set; then
2379 INSTALL=$ac_cv_path_install
2380 else
2381 # As a last resort, use the slow shell script. Don't cache a
2382 # value for INSTALL within a source directory, because that will
2383 # break other packages using the cache if that directory is
2384 # removed, or if the value is a relative name.
2385 INSTALL=$ac_install_sh
2386 fi
2387fi
2388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2389$as_echo "$INSTALL" >&6; }
2390
2391# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2392# It thinks the first close brace ends the variable substitution.
2393test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2394
2395test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2396
2397test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2398
2399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2400$as_echo_n "checking whether build environment is sane... " >&6; }
2401# Just in case
2402sleep 1
2403echo timestamp > conftest.file
2404# Reject unsafe characters in $srcdir or the absolute working directory
2405# name. Accept space and tab only in the latter.
2406am_lf='
2407'
2408case `pwd` in
2409 *[\\\"\#\$\&\'\`$am_lf]*)
2410 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2411esac
2412case $srcdir in
2413 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2414 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2415esac
2416
2417# Do `set' in a subshell so we don't clobber the current shell's
2418# arguments. Must try -L first in case configure is actually a
2419# symlink; some systems play weird games with the mod time of symlinks
2420# (eg FreeBSD returns the mod time of the symlink's containing
2421# directory).
2422if (
2423 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2424 if test "$*" = "X"; then
2425 # -L didn't work.
2426 set X `ls -t "$srcdir/configure" conftest.file`
2427 fi
2428 rm -f conftest.file
2429 if test "$*" != "X $srcdir/configure conftest.file" \
2430 && test "$*" != "X conftest.file $srcdir/configure"; then
2431
2432 # If neither matched, then we have a broken ls. This can happen
2433 # if, for instance, CONFIG_SHELL is bash and it inherits a
2434 # broken ls alias from the environment. This has actually
2435 # happened. Such a system could not be considered "sane".
2436 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2437alias in your environment" "$LINENO" 5
2438 fi
2439
2440 test "$2" = conftest.file
2441 )
2442then
2443 # Ok.
2444 :
2445else
2446 as_fn_error $? "newly created file is older than distributed files!
2447Check your system clock" "$LINENO" 5
2448fi
2449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2450$as_echo "yes" >&6; }
2451test "$program_prefix" != NONE &&
2452 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2453# Use a double $ so make ignores it.
2454test "$program_suffix" != NONE &&
2455 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2456# Double any \ or $.
2457# By default was `s,x,x', remove it if useless.
2458ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2459program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2460
2461# expand $ac_aux_dir to an absolute path
2462am_aux_dir=`cd $ac_aux_dir && pwd`
2463
2464if test x"${MISSING+set}" != xset; then
2465 case $am_aux_dir in
2466 *\ * | *\ *)
2467 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2468 *)
2469 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2470 esac
2471fi
2472# Use eval to expand $SHELL
2473if eval "$MISSING --run true"; then
2474 am_missing_run="$MISSING --run "
2475else
2476 am_missing_run=
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2478$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2479fi
2480
2481if test x"${install_sh}" != xset; then
2482 case $am_aux_dir in
2483 *\ * | *\ *)
2484 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2485 *)
2486 install_sh="\${SHELL} $am_aux_dir/install-sh"
2487 esac
2488fi
2489
2490# Installed binaries are usually stripped using `strip' when the user
2491# run `make install-strip'. However `strip' might not be the right
2492# tool to use in cross-compilation environments, therefore Automake
2493# will honor the `STRIP' environment variable to overrule this program.
2494if test "$cross_compiling" != no; then
2495 if test -n "$ac_tool_prefix"; then
2496 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2497set dummy ${ac_tool_prefix}strip; ac_word=$2
2498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2499$as_echo_n "checking for $ac_word... " >&6; }
2500if ${ac_cv_prog_STRIP+:} false; then :
2501 $as_echo_n "(cached) " >&6
2502else
2503 if test -n "$STRIP"; then
2504 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2505else
2506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507for as_dir in $PATH
2508do
2509 IFS=$as_save_IFS
2510 test -z "$as_dir" && as_dir=.
2511 for ac_exec_ext in '' $ac_executable_extensions; do
2512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2513 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2515 break 2
2516 fi
2517done
2518 done
2519IFS=$as_save_IFS
2520
2521fi
2522fi
2523STRIP=$ac_cv_prog_STRIP
2524if test -n "$STRIP"; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2526$as_echo "$STRIP" >&6; }
2527else
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2529$as_echo "no" >&6; }
2530fi
2531
2532
2533fi
2534if test -z "$ac_cv_prog_STRIP"; then
2535 ac_ct_STRIP=$STRIP
2536 # Extract the first word of "strip", so it can be a program name with args.
2537set dummy strip; ac_word=$2
2538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2539$as_echo_n "checking for $ac_word... " >&6; }
2540if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2541 $as_echo_n "(cached) " >&6
2542else
2543 if test -n "$ac_ct_STRIP"; then
2544 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2545else
2546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547for as_dir in $PATH
2548do
2549 IFS=$as_save_IFS
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2553 ac_cv_prog_ac_ct_STRIP="strip"
2554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2555 break 2
2556 fi
2557done
2558 done
2559IFS=$as_save_IFS
2560
2561fi
2562fi
2563ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2564if test -n "$ac_ct_STRIP"; then
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2566$as_echo "$ac_ct_STRIP" >&6; }
2567else
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2569$as_echo "no" >&6; }
2570fi
2571
2572 if test "x$ac_ct_STRIP" = x; then
2573 STRIP=":"
2574 else
2575 case $cross_compiling:$ac_tool_warned in
2576yes:)
2577{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2578$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2579ac_tool_warned=yes ;;
2580esac
2581 STRIP=$ac_ct_STRIP
2582 fi
2583else
2584 STRIP="$ac_cv_prog_STRIP"
2585fi
2586
2587fi
2588INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2589
2590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2591$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2592if test -z "$MKDIR_P"; then
2593 if ${ac_cv_path_mkdir+:} false; then :
2594 $as_echo_n "(cached) " >&6
2595else
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2598do
2599 IFS=$as_save_IFS
2600 test -z "$as_dir" && as_dir=.
2601 for ac_prog in mkdir gmkdir; do
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2604 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2605 'mkdir (GNU coreutils) '* | \
2606 'mkdir (coreutils) '* | \
2607 'mkdir (fileutils) '4.1*)
2608 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2609 break 3;;
2610 esac
2611 done
2612 done
2613 done
2614IFS=$as_save_IFS
2615
2616fi
2617
2618 test -d ./--version && rmdir ./--version
2619 if test "${ac_cv_path_mkdir+set}" = set; then
2620 MKDIR_P="$ac_cv_path_mkdir -p"
2621 else
2622 # As a last resort, use the slow shell script. Don't cache a
2623 # value for MKDIR_P within a source directory, because that will
2624 # break other packages using the cache if that directory is
2625 # removed, or if the value is a relative name.
2626 MKDIR_P="$ac_install_sh -d"
2627 fi
2628fi
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2630$as_echo "$MKDIR_P" >&6; }
2631
2632mkdir_p="$MKDIR_P"
2633case $mkdir_p in
2634 [\\/$]* | ?:[\\/]*) ;;
2635 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2636esac
2637
2638for ac_prog in gawk mawk nawk awk
2639do
2640 # Extract the first word of "$ac_prog", so it can be a program name with args.
2641set dummy $ac_prog; ac_word=$2
2642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2643$as_echo_n "checking for $ac_word... " >&6; }
2644if ${ac_cv_prog_AWK+:} false; then :
2645 $as_echo_n "(cached) " >&6
2646else
2647 if test -n "$AWK"; then
2648 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2649else
2650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651for as_dir in $PATH
2652do
2653 IFS=$as_save_IFS
2654 test -z "$as_dir" && as_dir=.
2655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2657 ac_cv_prog_AWK="$ac_prog"
2658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2659 break 2
2660 fi
2661done
2662 done
2663IFS=$as_save_IFS
2664
2665fi
2666fi
2667AWK=$ac_cv_prog_AWK
2668if test -n "$AWK"; then
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2670$as_echo "$AWK" >&6; }
2671else
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2673$as_echo "no" >&6; }
2674fi
2675
2676
2677 test -n "$AWK" && break
2678done
2679
2680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2681$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2682set x ${MAKE-make}
2683ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2684if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2685 $as_echo_n "(cached) " >&6
2686else
2687 cat >conftest.make <<\_ACEOF
2688SHELL = /bin/sh
2689all:
2690 @echo '@@@%%%=$(MAKE)=@@@%%%'
2691_ACEOF
2692# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2693case `${MAKE-make} -f conftest.make 2>/dev/null` in
2694 *@@@%%%=?*=@@@%%%*)
2695 eval ac_cv_prog_make_${ac_make}_set=yes;;
2696 *)
2697 eval ac_cv_prog_make_${ac_make}_set=no;;
2698esac
2699rm -f conftest.make
2700fi
2701if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2703$as_echo "yes" >&6; }
2704 SET_MAKE=
2705else
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707$as_echo "no" >&6; }
2708 SET_MAKE="MAKE=${MAKE-make}"
2709fi
2710
2711rm -rf .tst 2>/dev/null
2712mkdir .tst 2>/dev/null
2713if test -d .tst; then
2714 am__leading_dot=.
2715else
2716 am__leading_dot=_
2717fi
2718rmdir .tst 2>/dev/null
2719
2720if test "`cd $srcdir && pwd`" != "`pwd`"; then
2721 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2722 # is not polluted with repeated "-I."
2723 am__isrc=' -I$(srcdir)'
2724 # test to see if srcdir already configured
2725 if test -f $srcdir/config.status; then
2726 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2727 fi
2728fi
2729
2730# test whether we have cygpath
2731if test -z "$CYGPATH_W"; then
2732 if (cygpath --version) >/dev/null 2>/dev/null; then
2733 CYGPATH_W='cygpath -w'
2734 else
2735 CYGPATH_W=echo
2736 fi
2737fi
2738
2739
2740# Define the identity of the package.
2741 PACKAGE='libpng'
2742 VERSION='1.5.7'
2743
2744
2745cat >>confdefs.h <<_ACEOF
2746#define PACKAGE "$PACKAGE"
2747_ACEOF
2748
2749
2750cat >>confdefs.h <<_ACEOF
2751#define VERSION "$VERSION"
2752_ACEOF
2753
2754# Some tools Automake needs.
2755
2756ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2757
2758
2759AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2760
2761
2762AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2763
2764
2765AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2766
2767
2768MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2769
2770# We need awk for the "check" target. The system "awk" is bad on
2771# some platforms.
2772# Always define AMTAR for backward compatibility.
2773
2774AMTAR=${AMTAR-"${am_missing_run}tar"}
2775
2776am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2777
2778
2779
2780
2781
2782
2783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2784$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2785 # Check whether --enable-maintainer-mode was given.
2786if test "${enable_maintainer_mode+set}" = set; then :
2787 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2788else
2789 USE_MAINTAINER_MODE=no
2790fi
2791
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2793$as_echo "$USE_MAINTAINER_MODE" >&6; }
2794 if test $USE_MAINTAINER_MODE = yes; then
2795 MAINTAINER_MODE_TRUE=
2796 MAINTAINER_MODE_FALSE='#'
2797else
2798 MAINTAINER_MODE_TRUE='#'
2799 MAINTAINER_MODE_FALSE=
2800fi
2801
2802 MAINT=$MAINTAINER_MODE_TRUE
2803
2804
2805
2806PNGLIB_VERSION=1.5.7
2807PNGLIB_MAJOR=1
2808PNGLIB_MINOR=5
2809PNGLIB_RELEASE=7
2810
2811
2812
2813ac_config_headers="$ac_config_headers config.h"
2814
2815
2816# Checks for programs.
2817ac_ext=c
2818ac_cpp='$CPP $CPPFLAGS'
2819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2821ac_compiler_gnu=$ac_cv_c_compiler_gnu
2822
2823ac_ext=c
2824ac_cpp='$CPP $CPPFLAGS'
2825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2827ac_compiler_gnu=$ac_cv_c_compiler_gnu
2828if test -n "$ac_tool_prefix"; then
2829 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2830set dummy ${ac_tool_prefix}gcc; ac_word=$2
2831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832$as_echo_n "checking for $ac_word... " >&6; }
2833if ${ac_cv_prog_CC+:} false; then :
2834 $as_echo_n "(cached) " >&6
2835else
2836 if test -n "$CC"; then
2837 ac_cv_prog_CC="$CC" # Let the user override the test.
2838else
2839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840for as_dir in $PATH
2841do
2842 IFS=$as_save_IFS
2843 test -z "$as_dir" && as_dir=.
2844 for ac_exec_ext in '' $ac_executable_extensions; do
2845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2846 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2848 break 2
2849 fi
2850done
2851 done
2852IFS=$as_save_IFS
2853
2854fi
2855fi
2856CC=$ac_cv_prog_CC
2857if test -n "$CC"; then
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2859$as_echo "$CC" >&6; }
2860else
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862$as_echo "no" >&6; }
2863fi
2864
2865
2866fi
2867if test -z "$ac_cv_prog_CC"; then
2868 ac_ct_CC=$CC
2869 # Extract the first word of "gcc", so it can be a program name with args.
2870set dummy gcc; ac_word=$2
2871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872$as_echo_n "checking for $ac_word... " >&6; }
2873if ${ac_cv_prog_ac_ct_CC+:} false; then :
2874 $as_echo_n "(cached) " >&6
2875else
2876 if test -n "$ac_ct_CC"; then
2877 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2878else
2879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880for as_dir in $PATH
2881do
2882 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2886 ac_cv_prog_ac_ct_CC="gcc"
2887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 break 2
2889 fi
2890done
2891 done
2892IFS=$as_save_IFS
2893
2894fi
2895fi
2896ac_ct_CC=$ac_cv_prog_ac_ct_CC
2897if test -n "$ac_ct_CC"; then
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2899$as_echo "$ac_ct_CC" >&6; }
2900else
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902$as_echo "no" >&6; }
2903fi
2904
2905 if test "x$ac_ct_CC" = x; then
2906 CC=""
2907 else
2908 case $cross_compiling:$ac_tool_warned in
2909yes:)
2910{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2911$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2912ac_tool_warned=yes ;;
2913esac
2914 CC=$ac_ct_CC
2915 fi
2916else
2917 CC="$ac_cv_prog_CC"
2918fi
2919
2920if test -z "$CC"; then
2921 if test -n "$ac_tool_prefix"; then
2922 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2923set dummy ${ac_tool_prefix}cc; ac_word=$2
2924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2925$as_echo_n "checking for $ac_word... " >&6; }
2926if ${ac_cv_prog_CC+:} false; then :
2927 $as_echo_n "(cached) " >&6
2928else
2929 if test -n "$CC"; then
2930 ac_cv_prog_CC="$CC" # Let the user override the test.
2931else
2932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933for as_dir in $PATH
2934do
2935 IFS=$as_save_IFS
2936 test -z "$as_dir" && as_dir=.
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2939 ac_cv_prog_CC="${ac_tool_prefix}cc"
2940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2941 break 2
2942 fi
2943done
2944 done
2945IFS=$as_save_IFS
2946
2947fi
2948fi
2949CC=$ac_cv_prog_CC
2950if test -n "$CC"; then
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2952$as_echo "$CC" >&6; }
2953else
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955$as_echo "no" >&6; }
2956fi
2957
2958
2959 fi
2960fi
2961if test -z "$CC"; then
2962 # Extract the first word of "cc", so it can be a program name with args.
2963set dummy cc; ac_word=$2
2964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965$as_echo_n "checking for $ac_word... " >&6; }
2966if ${ac_cv_prog_CC+:} false; then :
2967 $as_echo_n "(cached) " >&6
2968else
2969 if test -n "$CC"; then
2970 ac_cv_prog_CC="$CC" # Let the user override the test.
2971else
2972 ac_prog_rejected=no
2973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974for as_dir in $PATH
2975do
2976 IFS=$as_save_IFS
2977 test -z "$as_dir" && as_dir=.
2978 for ac_exec_ext in '' $ac_executable_extensions; do
2979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2980 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2981 ac_prog_rejected=yes
2982 continue
2983 fi
2984 ac_cv_prog_CC="cc"
2985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986 break 2
2987 fi
2988done
2989 done
2990IFS=$as_save_IFS
2991
2992if test $ac_prog_rejected = yes; then
2993 # We found a bogon in the path, so make sure we never use it.
2994 set dummy $ac_cv_prog_CC
2995 shift
2996 if test $# != 0; then
2997 # We chose a different compiler from the bogus one.
2998 # However, it has the same basename, so the bogon will be chosen
2999 # first if we set CC to just the basename; use the full file name.
3000 shift
3001 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3002 fi
3003fi
3004fi
3005fi
3006CC=$ac_cv_prog_CC
3007if test -n "$CC"; then
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3009$as_echo "$CC" >&6; }
3010else
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012$as_echo "no" >&6; }
3013fi
3014
3015
3016fi
3017if test -z "$CC"; then
3018 if test -n "$ac_tool_prefix"; then
3019 for ac_prog in cl.exe
3020 do
3021 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3022set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3024$as_echo_n "checking for $ac_word... " >&6; }
3025if ${ac_cv_prog_CC+:} false; then :
3026 $as_echo_n "(cached) " >&6
3027else
3028 if test -n "$CC"; then
3029 ac_cv_prog_CC="$CC" # Let the user override the test.
3030else
3031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032for as_dir in $PATH
3033do
3034 IFS=$as_save_IFS
3035 test -z "$as_dir" && as_dir=.
3036 for ac_exec_ext in '' $ac_executable_extensions; do
3037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3038 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3040 break 2
3041 fi
3042done
3043 done
3044IFS=$as_save_IFS
3045
3046fi
3047fi
3048CC=$ac_cv_prog_CC
3049if test -n "$CC"; then
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3051$as_echo "$CC" >&6; }
3052else
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054$as_echo "no" >&6; }
3055fi
3056
3057
3058 test -n "$CC" && break
3059 done
3060fi
3061if test -z "$CC"; then
3062 ac_ct_CC=$CC
3063 for ac_prog in cl.exe
3064do
3065 # Extract the first word of "$ac_prog", so it can be a program name with args.
3066set dummy $ac_prog; ac_word=$2
3067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3068$as_echo_n "checking for $ac_word... " >&6; }
3069if ${ac_cv_prog_ac_ct_CC+:} false; then :
3070 $as_echo_n "(cached) " >&6
3071else
3072 if test -n "$ac_ct_CC"; then
3073 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3074else
3075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076for as_dir in $PATH
3077do
3078 IFS=$as_save_IFS
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082 ac_cv_prog_ac_ct_CC="$ac_prog"
3083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 break 2
3085 fi
3086done
3087 done
3088IFS=$as_save_IFS
3089
3090fi
3091fi
3092ac_ct_CC=$ac_cv_prog_ac_ct_CC
3093if test -n "$ac_ct_CC"; then
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3095$as_echo "$ac_ct_CC" >&6; }
3096else
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3098$as_echo "no" >&6; }
3099fi
3100
3101
3102 test -n "$ac_ct_CC" && break
3103done
3104
3105 if test "x$ac_ct_CC" = x; then
3106 CC=""
3107 else
3108 case $cross_compiling:$ac_tool_warned in
3109yes:)
3110{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3111$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3112ac_tool_warned=yes ;;
3113esac
3114 CC=$ac_ct_CC
3115 fi
3116fi
3117
3118fi
3119
3120
3121test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3122$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3123as_fn_error $? "no acceptable C compiler found in \$PATH
3124See \`config.log' for more details" "$LINENO" 5; }
3125
3126# Provide some information about the compiler.
3127$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3128set X $ac_compile
3129ac_compiler=$2
3130for ac_option in --version -v -V -qversion; do
3131 { { ac_try="$ac_compiler $ac_option >&5"
3132case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135esac
3136eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3137$as_echo "$ac_try_echo"; } >&5
3138 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3139 ac_status=$?
3140 if test -s conftest.err; then
3141 sed '10a\
3142... rest of stderr output deleted ...
3143 10q' conftest.err >conftest.er1
3144 cat conftest.er1 >&5
3145 fi
3146 rm -f conftest.er1 conftest.err
3147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3148 test $ac_status = 0; }
3149done
3150
3151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3152/* end confdefs.h. */
3153
3154int
3155main ()
3156{
3157
3158 ;
3159 return 0;
3160}
3161_ACEOF
3162ac_clean_files_save=$ac_clean_files
3163ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3164# Try to create an executable without -o first, disregard a.out.
3165# It will help us diagnose broken compilers, and finding out an intuition
3166# of exeext.
3167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3168$as_echo_n "checking whether the C compiler works... " >&6; }
3169ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3170
3171# The possible output files:
3172ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3173
3174ac_rmfiles=
3175for ac_file in $ac_files
3176do
3177 case $ac_file in
3178 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3179 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3180 esac
3181done
3182rm -f $ac_rmfiles
3183
3184if { { ac_try="$ac_link_default"
3185case "(($ac_try" in
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3188esac
3189eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3190$as_echo "$ac_try_echo"; } >&5
3191 (eval "$ac_link_default") 2>&5
3192 ac_status=$?
3193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3194 test $ac_status = 0; }; then :
3195 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3196# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3197# in a Makefile. We should not override ac_cv_exeext if it was cached,
3198# so that the user can short-circuit this test for compilers unknown to
3199# Autoconf.
3200for ac_file in $ac_files ''
3201do
3202 test -f "$ac_file" || continue
3203 case $ac_file in
3204 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3205 ;;
3206 [ab].out )
3207 # We found the default executable, but exeext='' is most
3208 # certainly right.
3209 break;;
3210 *.* )
3211 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3212 then :; else
3213 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3214 fi
3215 # We set ac_cv_exeext here because the later test for it is not
3216 # safe: cross compilers may not add the suffix if given an `-o'
3217 # argument, so we may need to know it at that point already.
3218 # Even if this section looks crufty: it has the advantage of
3219 # actually working.
3220 break;;
3221 * )
3222 break;;
3223 esac
3224done
3225test "$ac_cv_exeext" = no && ac_cv_exeext=
3226
3227else
3228 ac_file=''
3229fi
3230if test -z "$ac_file"; then :
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232$as_echo "no" >&6; }
3233$as_echo "$as_me: failed program was:" >&5
3234sed 's/^/| /' conftest.$ac_ext >&5
3235
3236{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3238as_fn_error 77 "C compiler cannot create executables
3239See \`config.log' for more details" "$LINENO" 5; }
3240else
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3242$as_echo "yes" >&6; }
3243fi
3244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3245$as_echo_n "checking for C compiler default output file name... " >&6; }
3246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3247$as_echo "$ac_file" >&6; }
3248ac_exeext=$ac_cv_exeext
3249
3250rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3251ac_clean_files=$ac_clean_files_save
3252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3253$as_echo_n "checking for suffix of executables... " >&6; }
3254if { { ac_try="$ac_link"
3255case "(($ac_try" in
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3258esac
3259eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3260$as_echo "$ac_try_echo"; } >&5
3261 (eval "$ac_link") 2>&5
3262 ac_status=$?
3263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3264 test $ac_status = 0; }; then :
3265 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3266# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3267# work properly (i.e., refer to `conftest.exe'), while it won't with
3268# `rm'.
3269for ac_file in conftest.exe conftest conftest.*; do
3270 test -f "$ac_file" || continue
3271 case $ac_file in
3272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3273 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3274 break;;
3275 * ) break;;
3276 esac
3277done
3278else
3279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3280$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3281as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3282See \`config.log' for more details" "$LINENO" 5; }
3283fi
3284rm -f conftest conftest$ac_cv_exeext
3285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3286$as_echo "$ac_cv_exeext" >&6; }
3287
3288rm -f conftest.$ac_ext
3289EXEEXT=$ac_cv_exeext
3290ac_exeext=$EXEEXT
3291cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3292/* end confdefs.h. */
3293#include <stdio.h>
3294int
3295main ()
3296{
3297FILE *f = fopen ("conftest.out", "w");
3298 return ferror (f) || fclose (f) != 0;
3299
3300 ;
3301 return 0;
3302}
3303_ACEOF
3304ac_clean_files="$ac_clean_files conftest.out"
3305# Check that the compiler produces executables we can run. If not, either
3306# the compiler is broken, or we cross compile.
3307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3308$as_echo_n "checking whether we are cross compiling... " >&6; }
3309if test "$cross_compiling" != yes; then
3310 { { ac_try="$ac_link"
3311case "(($ac_try" in
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3314esac
3315eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3316$as_echo "$ac_try_echo"; } >&5
3317 (eval "$ac_link") 2>&5
3318 ac_status=$?
3319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3320 test $ac_status = 0; }
3321 if { ac_try='./conftest$ac_cv_exeext'
3322 { { case "(($ac_try" in
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3325esac
3326eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3327$as_echo "$ac_try_echo"; } >&5
3328 (eval "$ac_try") 2>&5
3329 ac_status=$?
3330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3331 test $ac_status = 0; }; }; then
3332 cross_compiling=no
3333 else
3334 if test "$cross_compiling" = maybe; then
3335 cross_compiling=yes
3336 else
3337 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3338$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3339as_fn_error $? "cannot run C compiled programs.
3340If you meant to cross compile, use \`--host'.
3341See \`config.log' for more details" "$LINENO" 5; }
3342 fi
3343 fi
3344fi
3345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3346$as_echo "$cross_compiling" >&6; }
3347
3348rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3349ac_clean_files=$ac_clean_files_save
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3351$as_echo_n "checking for suffix of object files... " >&6; }
3352if ${ac_cv_objext+:} false; then :
3353 $as_echo_n "(cached) " >&6
3354else
3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356/* end confdefs.h. */
3357
3358int
3359main ()
3360{
3361
3362 ;
3363 return 0;
3364}
3365_ACEOF
3366rm -f conftest.o conftest.obj
3367if { { ac_try="$ac_compile"
3368case "(($ac_try" in
3369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370 *) ac_try_echo=$ac_try;;
3371esac
3372eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3373$as_echo "$ac_try_echo"; } >&5
3374 (eval "$ac_compile") 2>&5
3375 ac_status=$?
3376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3377 test $ac_status = 0; }; then :
3378 for ac_file in conftest.o conftest.obj conftest.*; do
3379 test -f "$ac_file" || continue;
3380 case $ac_file in
3381 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3382 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3383 break;;
3384 esac
3385done
3386else
3387 $as_echo "$as_me: failed program was:" >&5
3388sed 's/^/| /' conftest.$ac_ext >&5
3389
3390{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3392as_fn_error $? "cannot compute suffix of object files: cannot compile
3393See \`config.log' for more details" "$LINENO" 5; }
3394fi
3395rm -f conftest.$ac_cv_objext conftest.$ac_ext
3396fi
3397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3398$as_echo "$ac_cv_objext" >&6; }
3399OBJEXT=$ac_cv_objext
3400ac_objext=$OBJEXT
3401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3402$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3403if ${ac_cv_c_compiler_gnu+:} false; then :
3404 $as_echo_n "(cached) " >&6
3405else
3406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3407/* end confdefs.h. */
3408
3409int
3410main ()
3411{
3412#ifndef __GNUC__
3413 choke me
3414#endif
3415
3416 ;
3417 return 0;
3418}
3419_ACEOF
3420if ac_fn_c_try_compile "$LINENO"; then :
3421 ac_compiler_gnu=yes
3422else
3423 ac_compiler_gnu=no
3424fi
3425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3426ac_cv_c_compiler_gnu=$ac_compiler_gnu
3427
3428fi
3429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3430$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3431if test $ac_compiler_gnu = yes; then
3432 GCC=yes
3433else
3434 GCC=
3435fi
3436ac_test_CFLAGS=${CFLAGS+set}
3437ac_save_CFLAGS=$CFLAGS
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3439$as_echo_n "checking whether $CC accepts -g... " >&6; }
3440if ${ac_cv_prog_cc_g+:} false; then :
3441 $as_echo_n "(cached) " >&6
3442else
3443 ac_save_c_werror_flag=$ac_c_werror_flag
3444 ac_c_werror_flag=yes
3445 ac_cv_prog_cc_g=no
3446 CFLAGS="-g"
3447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3448/* end confdefs.h. */
3449
3450int
3451main ()
3452{
3453
3454 ;
3455 return 0;
3456}
3457_ACEOF
3458if ac_fn_c_try_compile "$LINENO"; then :
3459 ac_cv_prog_cc_g=yes
3460else
3461 CFLAGS=""
3462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463/* end confdefs.h. */
3464
3465int
3466main ()
3467{
3468
3469 ;
3470 return 0;
3471}
3472_ACEOF
3473if ac_fn_c_try_compile "$LINENO"; then :
3474
3475else
3476 ac_c_werror_flag=$ac_save_c_werror_flag
3477 CFLAGS="-g"
3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479/* end confdefs.h. */
3480
3481int
3482main ()
3483{
3484
3485 ;
3486 return 0;
3487}
3488_ACEOF
3489if ac_fn_c_try_compile "$LINENO"; then :
3490 ac_cv_prog_cc_g=yes
3491fi
3492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3493fi
3494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3495fi
3496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3497 ac_c_werror_flag=$ac_save_c_werror_flag
3498fi
3499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3500$as_echo "$ac_cv_prog_cc_g" >&6; }
3501if test "$ac_test_CFLAGS" = set; then
3502 CFLAGS=$ac_save_CFLAGS
3503elif test $ac_cv_prog_cc_g = yes; then
3504 if test "$GCC" = yes; then
3505 CFLAGS="-g -O2"
3506 else
3507 CFLAGS="-g"
3508 fi
3509else
3510 if test "$GCC" = yes; then
3511 CFLAGS="-O2"
3512 else
3513 CFLAGS=
3514 fi
3515fi
3516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3517$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3518if ${ac_cv_prog_cc_c89+:} false; then :
3519 $as_echo_n "(cached) " >&6
3520else
3521 ac_cv_prog_cc_c89=no
3522ac_save_CC=$CC
3523cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524/* end confdefs.h. */
3525#include <stdarg.h>
3526#include <stdio.h>
3527#include <sys/types.h>
3528#include <sys/stat.h>
3529/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3530struct buf { int x; };
3531FILE * (*rcsopen) (struct buf *, struct stat *, int);
3532static char *e (p, i)
3533 char **p;
3534 int i;
3535{
3536 return p[i];
3537}
3538static char *f (char * (*g) (char **, int), char **p, ...)
3539{
3540 char *s;
3541 va_list v;
3542 va_start (v,p);
3543 s = g (p, va_arg (v,int));
3544 va_end (v);
3545 return s;
3546}
3547
3548/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3549 function prototypes and stuff, but not '\xHH' hex character constants.
3550 These don't provoke an error unfortunately, instead are silently treated
3551 as 'x'. The following induces an error, until -std is added to get
3552 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3553 array size at least. It's necessary to write '\x00'==0 to get something
3554 that's true only with -std. */
3555int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3556
3557/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3558 inside strings and character constants. */
3559#define FOO(x) 'x'
3560int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3561
3562int test (int i, double x);
3563struct s1 {int (*f) (int a);};
3564struct s2 {int (*f) (double a);};
3565int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3566int argc;
3567char **argv;
3568int
3569main ()
3570{
3571return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3572 ;
3573 return 0;
3574}
3575_ACEOF
3576for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3577 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3578do
3579 CC="$ac_save_CC $ac_arg"
3580 if ac_fn_c_try_compile "$LINENO"; then :
3581 ac_cv_prog_cc_c89=$ac_arg
3582fi
3583rm -f core conftest.err conftest.$ac_objext
3584 test "x$ac_cv_prog_cc_c89" != "xno" && break
3585done
3586rm -f conftest.$ac_ext
3587CC=$ac_save_CC
3588
3589fi
3590# AC_CACHE_VAL
3591case "x$ac_cv_prog_cc_c89" in
3592 x)
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3594$as_echo "none needed" >&6; } ;;
3595 xno)
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3597$as_echo "unsupported" >&6; } ;;
3598 *)
3599 CC="$CC $ac_cv_prog_cc_c89"
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3601$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3602esac
3603if test "x$ac_cv_prog_cc_c89" != xno; then :
3604
3605fi
3606
3607ac_ext=c
3608ac_cpp='$CPP $CPPFLAGS'
3609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3611ac_compiler_gnu=$ac_cv_c_compiler_gnu
3612DEPDIR="${am__leading_dot}deps"
3613
3614ac_config_commands="$ac_config_commands depfiles"
3615
3616
3617am_make=${MAKE-make}
3618cat > confinc << 'END'
3619am__doit:
3620 @echo this is the am__doit target
3621.PHONY: am__doit
3622END
3623# If we don't find an include directive, just comment out the code.
3624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3625$as_echo_n "checking for style of include used by $am_make... " >&6; }
3626am__include="#"
3627am__quote=
3628_am_result=none
3629# First try GNU make style include.
3630echo "include confinc" > confmf
3631# Ignore all kinds of additional output from `make'.
3632case `$am_make -s -f confmf 2> /dev/null` in #(
3633*the\ am__doit\ target*)
3634 am__include=include
3635 am__quote=
3636 _am_result=GNU
3637 ;;
3638esac
3639# Now try BSD make style include.
3640if test "$am__include" = "#"; then
3641 echo '.include "confinc"' > confmf
3642 case `$am_make -s -f confmf 2> /dev/null` in #(
3643 *the\ am__doit\ target*)
3644 am__include=.include
3645 am__quote="\""
3646 _am_result=BSD
3647 ;;
3648 esac
3649fi
3650
3651
3652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3653$as_echo "$_am_result" >&6; }
3654rm -f confinc confmf
3655
3656# Check whether --enable-dependency-tracking was given.
3657if test "${enable_dependency_tracking+set}" = set; then :
3658 enableval=$enable_dependency_tracking;
3659fi
3660
3661if test "x$enable_dependency_tracking" != xno; then
3662 am_depcomp="$ac_aux_dir/depcomp"
3663 AMDEPBACKSLASH='\'
3664fi
3665 if test "x$enable_dependency_tracking" != xno; then
3666 AMDEP_TRUE=
3667 AMDEP_FALSE='#'
3668else
3669 AMDEP_TRUE='#'
3670 AMDEP_FALSE=
3671fi
3672
3673
3674
3675depcc="$CC" am_compiler_list=
3676
3677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3678$as_echo_n "checking dependency style of $depcc... " >&6; }
3679if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3680 $as_echo_n "(cached) " >&6
3681else
3682 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3683 # We make a subdir and do the tests there. Otherwise we can end up
3684 # making bogus files that we don't know about and never remove. For
3685 # instance it was reported that on HP-UX the gcc test will end up
3686 # making a dummy file named `D' -- because `-MD' means `put the output
3687 # in D'.
3688 mkdir conftest.dir
3689 # Copy depcomp to subdir because otherwise we won't find it if we're
3690 # using a relative directory.
3691 cp "$am_depcomp" conftest.dir
3692 cd conftest.dir
3693 # We will build objects and dependencies in a subdirectory because
3694 # it helps to detect inapplicable dependency modes. For instance
3695 # both Tru64's cc and ICC support -MD to output dependencies as a
3696 # side effect of compilation, but ICC will put the dependencies in
3697 # the current directory while Tru64 will put them in the object
3698 # directory.
3699 mkdir sub
3700
3701 am_cv_CC_dependencies_compiler_type=none
3702 if test "$am_compiler_list" = ""; then
3703 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3704 fi
3705 am__universal=false
3706 case " $depcc " in #(
3707 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3708 esac
3709
3710 for depmode in $am_compiler_list; do
3711 # Setup a source with many dependencies, because some compilers
3712 # like to wrap large dependency lists on column 80 (with \), and
3713 # we should not choose a depcomp mode which is confused by this.
3714 #
3715 # We need to recreate these files for each test, as the compiler may
3716 # overwrite some of them when testing with obscure command lines.
3717 # This happens at least with the AIX C compiler.
3718 : > sub/conftest.c
3719 for i in 1 2 3 4 5 6; do
3720 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3721 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3722 # Solaris 8's {/usr,}/bin/sh.
3723 touch sub/conftst$i.h
3724 done
3725 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3726
3727 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3728 # mode. It turns out that the SunPro C++ compiler does not properly
3729 # handle `-M -o', and we need to detect this. Also, some Intel
3730 # versions had trouble with output in subdirs
3731 am__obj=sub/conftest.${OBJEXT-o}
3732 am__minus_obj="-o $am__obj"
3733 case $depmode in
3734 gcc)
3735 # This depmode causes a compiler race in universal mode.
3736 test "$am__universal" = false || continue
3737 ;;
3738 nosideeffect)
3739 # after this tag, mechanisms are not by side-effect, so they'll
3740 # only be used when explicitly requested
3741 if test "x$enable_dependency_tracking" = xyes; then
3742 continue
3743 else
3744 break
3745 fi
3746 ;;
3747 msvisualcpp | msvcmsys)
3748 # This compiler won't grok `-c -o', but also, the minuso test has
3749 # not run yet. These depmodes are late enough in the game, and
3750 # so weak that their functioning should not be impacted.
3751 am__obj=conftest.${OBJEXT-o}
3752 am__minus_obj=
3753 ;;
3754 none) break ;;
3755 esac
3756 if depmode=$depmode \
3757 source=sub/conftest.c object=$am__obj \
3758 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3759 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3760 >/dev/null 2>conftest.err &&
3761 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3762 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3763 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3764 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3765 # icc doesn't choke on unknown options, it will just issue warnings
3766 # or remarks (even with -Werror). So we grep stderr for any message
3767 # that says an option was ignored or not supported.
3768 # When given -MP, icc 7.0 and 7.1 complain thusly:
3769 # icc: Command line warning: ignoring option '-M'; no argument required
3770 # The diagnosis changed in icc 8.0:
3771 # icc: Command line remark: option '-MP' not supported
3772 if (grep 'ignoring option' conftest.err ||
3773 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3774 am_cv_CC_dependencies_compiler_type=$depmode
3775 break
3776 fi
3777 fi
3778 done
3779
3780 cd ..
3781 rm -rf conftest.dir
3782else
3783 am_cv_CC_dependencies_compiler_type=none
3784fi
3785
3786fi
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3788$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3789CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3790
3791 if
3792 test "x$enable_dependency_tracking" != xno \
3793 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3794 am__fastdepCC_TRUE=
3795 am__fastdepCC_FALSE='#'
3796else
3797 am__fastdepCC_TRUE='#'
3798 am__fastdepCC_FALSE=
3799fi
3800
3801
3802# By default we simply use the C compiler to build assembly code.
3803
3804test "${CCAS+set}" = set || CCAS=$CC
3805test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3806
3807
3808
3809depcc="$CCAS" am_compiler_list=
3810
3811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3812$as_echo_n "checking dependency style of $depcc... " >&6; }
3813if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
3814 $as_echo_n "(cached) " >&6
3815else
3816 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3817 # We make a subdir and do the tests there. Otherwise we can end up
3818 # making bogus files that we don't know about and never remove. For
3819 # instance it was reported that on HP-UX the gcc test will end up
3820 # making a dummy file named `D' -- because `-MD' means `put the output
3821 # in D'.
3822 mkdir conftest.dir
3823 # Copy depcomp to subdir because otherwise we won't find it if we're
3824 # using a relative directory.
3825 cp "$am_depcomp" conftest.dir
3826 cd conftest.dir
3827 # We will build objects and dependencies in a subdirectory because
3828 # it helps to detect inapplicable dependency modes. For instance
3829 # both Tru64's cc and ICC support -MD to output dependencies as a
3830 # side effect of compilation, but ICC will put the dependencies in
3831 # the current directory while Tru64 will put them in the object
3832 # directory.
3833 mkdir sub
3834
3835 am_cv_CCAS_dependencies_compiler_type=none
3836 if test "$am_compiler_list" = ""; then
3837 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3838 fi
3839 am__universal=false
3840
3841
3842 for depmode in $am_compiler_list; do
3843 # Setup a source with many dependencies, because some compilers
3844 # like to wrap large dependency lists on column 80 (with \), and
3845 # we should not choose a depcomp mode which is confused by this.
3846 #
3847 # We need to recreate these files for each test, as the compiler may
3848 # overwrite some of them when testing with obscure command lines.
3849 # This happens at least with the AIX C compiler.
3850 : > sub/conftest.c
3851 for i in 1 2 3 4 5 6; do
3852 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3853 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3854 # Solaris 8's {/usr,}/bin/sh.
3855 touch sub/conftst$i.h
3856 done
3857 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3858
3859 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3860 # mode. It turns out that the SunPro C++ compiler does not properly
3861 # handle `-M -o', and we need to detect this. Also, some Intel
3862 # versions had trouble with output in subdirs
3863 am__obj=sub/conftest.${OBJEXT-o}
3864 am__minus_obj="-o $am__obj"
3865 case $depmode in
3866 gcc)
3867 # This depmode causes a compiler race in universal mode.
3868 test "$am__universal" = false || continue
3869 ;;
3870 nosideeffect)
3871 # after this tag, mechanisms are not by side-effect, so they'll
3872 # only be used when explicitly requested
3873 if test "x$enable_dependency_tracking" = xyes; then
3874 continue
3875 else
3876 break
3877 fi
3878 ;;
3879 msvisualcpp | msvcmsys)
3880 # This compiler won't grok `-c -o', but also, the minuso test has
3881 # not run yet. These depmodes are late enough in the game, and
3882 # so weak that their functioning should not be impacted.
3883 am__obj=conftest.${OBJEXT-o}
3884 am__minus_obj=
3885 ;;
3886 none) break ;;
3887 esac
3888 if depmode=$depmode \
3889 source=sub/conftest.c object=$am__obj \
3890 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3891 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3892 >/dev/null 2>conftest.err &&
3893 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3894 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3895 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3896 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3897 # icc doesn't choke on unknown options, it will just issue warnings
3898 # or remarks (even with -Werror). So we grep stderr for any message
3899 # that says an option was ignored or not supported.
3900 # When given -MP, icc 7.0 and 7.1 complain thusly:
3901 # icc: Command line warning: ignoring option '-M'; no argument required
3902 # The diagnosis changed in icc 8.0:
3903 # icc: Command line remark: option '-MP' not supported
3904 if (grep 'ignoring option' conftest.err ||
3905 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3906 am_cv_CCAS_dependencies_compiler_type=$depmode
3907 break
3908 fi
3909 fi
3910 done
3911
3912 cd ..
3913 rm -rf conftest.dir
3914else
3915 am_cv_CCAS_dependencies_compiler_type=none
3916fi
3917
3918fi
3919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
3920$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
3921CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
3922
3923 if
3924 test "x$enable_dependency_tracking" != xno \
3925 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
3926 am__fastdepCCAS_TRUE=
3927 am__fastdepCCAS_FALSE='#'
3928else
3929 am__fastdepCCAS_TRUE='#'
3930 am__fastdepCCAS_FALSE=
3931fi
3932
3933
3934# Make sure we can run config.sub.
3935$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3936 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3937
3938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3939$as_echo_n "checking build system type... " >&6; }
3940if ${ac_cv_build+:} false; then :
3941 $as_echo_n "(cached) " >&6
3942else
3943 ac_build_alias=$build_alias
3944test "x$ac_build_alias" = x &&
3945 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3946test "x$ac_build_alias" = x &&
3947 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3948ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3949 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3950
3951fi
3952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3953$as_echo "$ac_cv_build" >&6; }
3954case $ac_cv_build in
3955*-*-*) ;;
3956*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3957esac
3958build=$ac_cv_build
3959ac_save_IFS=$IFS; IFS='-'
3960set x $ac_cv_build
3961shift
3962build_cpu=$1
3963build_vendor=$2
3964shift; shift
3965# Remember, the first character of IFS is used to create $*,
3966# except with old shells:
3967build_os=$*
3968IFS=$ac_save_IFS
3969case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3970
3971
3972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3973$as_echo_n "checking host system type... " >&6; }
3974if ${ac_cv_host+:} false; then :
3975 $as_echo_n "(cached) " >&6
3976else
3977 if test "x$host_alias" = x; then
3978 ac_cv_host=$ac_cv_build
3979else
3980 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3981 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3982fi
3983
3984fi
3985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3986$as_echo "$ac_cv_host" >&6; }
3987case $ac_cv_host in
3988*-*-*) ;;
3989*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3990esac
3991host=$ac_cv_host
3992ac_save_IFS=$IFS; IFS='-'
3993set x $ac_cv_host
3994shift
3995host_cpu=$1
3996host_vendor=$2
3997shift; shift
3998# Remember, the first character of IFS is used to create $*,
3999# except with old shells:
4000host_os=$*
4001IFS=$ac_save_IFS
4002case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4003
4004
4005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4006$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4007if ${ac_cv_path_SED+:} false; then :
4008 $as_echo_n "(cached) " >&6
4009else
4010 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4011 for ac_i in 1 2 3 4 5 6 7; do
4012 ac_script="$ac_script$as_nl$ac_script"
4013 done
4014 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4015 { ac_script=; unset ac_script;}
4016 if test -z "$SED"; then
4017 ac_path_SED_found=false
4018 # Loop through the user's path and test for each of PROGNAME-LIST
4019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020for as_dir in $PATH
4021do
4022 IFS=$as_save_IFS
4023 test -z "$as_dir" && as_dir=.
4024 for ac_prog in sed gsed; do
4025 for ac_exec_ext in '' $ac_executable_extensions; do
4026 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4027 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4028# Check for GNU ac_path_SED and select it if it is found.
4029 # Check for GNU $ac_path_SED
4030case `"$ac_path_SED" --version 2>&1` in
4031*GNU*)
4032 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4033*)
4034 ac_count=0
4035 $as_echo_n 0123456789 >"conftest.in"
4036 while :
4037 do
4038 cat "conftest.in" "conftest.in" >"conftest.tmp"
4039 mv "conftest.tmp" "conftest.in"
4040 cp "conftest.in" "conftest.nl"
4041 $as_echo '' >> "conftest.nl"
4042 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4043 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4044 as_fn_arith $ac_count + 1 && ac_count=$as_val
4045 if test $ac_count -gt ${ac_path_SED_max-0}; then
4046 # Best one so far, save it but keep looking for a better one
4047 ac_cv_path_SED="$ac_path_SED"
4048 ac_path_SED_max=$ac_count
4049 fi
4050 # 10*(2^10) chars as input seems more than enough
4051 test $ac_count -gt 10 && break
4052 done
4053 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4054esac
4055
4056 $ac_path_SED_found && break 3
4057 done
4058 done
4059 done
4060IFS=$as_save_IFS
4061 if test -z "$ac_cv_path_SED"; then
4062 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4063 fi
4064else
4065 ac_cv_path_SED=$SED
4066fi
4067
4068fi
4069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4070$as_echo "$ac_cv_path_SED" >&6; }
4071 SED="$ac_cv_path_SED"
4072 rm -f conftest.sed
4073
4074test -z "$SED" && SED=sed
4075Xsed="$SED -e 1s/^X//"
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4088$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4089if ${ac_cv_path_GREP+:} false; then :
4090 $as_echo_n "(cached) " >&6
4091else
4092 if test -z "$GREP"; then
4093 ac_path_GREP_found=false
4094 # Loop through the user's path and test for each of PROGNAME-LIST
4095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4097do
4098 IFS=$as_save_IFS
4099 test -z "$as_dir" && as_dir=.
4100 for ac_prog in grep ggrep; do
4101 for ac_exec_ext in '' $ac_executable_extensions; do
4102 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4103 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4104# Check for GNU ac_path_GREP and select it if it is found.
4105 # Check for GNU $ac_path_GREP
4106case `"$ac_path_GREP" --version 2>&1` in
4107*GNU*)
4108 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4109*)
4110 ac_count=0
4111 $as_echo_n 0123456789 >"conftest.in"
4112 while :
4113 do
4114 cat "conftest.in" "conftest.in" >"conftest.tmp"
4115 mv "conftest.tmp" "conftest.in"
4116 cp "conftest.in" "conftest.nl"
4117 $as_echo 'GREP' >> "conftest.nl"
4118 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4119 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4120 as_fn_arith $ac_count + 1 && ac_count=$as_val
4121 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4122 # Best one so far, save it but keep looking for a better one
4123 ac_cv_path_GREP="$ac_path_GREP"
4124 ac_path_GREP_max=$ac_count
4125 fi
4126 # 10*(2^10) chars as input seems more than enough
4127 test $ac_count -gt 10 && break
4128 done
4129 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4130esac
4131
4132 $ac_path_GREP_found && break 3
4133 done
4134 done
4135 done
4136IFS=$as_save_IFS
4137 if test -z "$ac_cv_path_GREP"; then
4138 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4139 fi
4140else
4141 ac_cv_path_GREP=$GREP
4142fi
4143
4144fi
4145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4146$as_echo "$ac_cv_path_GREP" >&6; }
4147 GREP="$ac_cv_path_GREP"
4148
4149
4150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4151$as_echo_n "checking for egrep... " >&6; }
4152if ${ac_cv_path_EGREP+:} false; then :
4153 $as_echo_n "(cached) " >&6
4154else
4155 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4156 then ac_cv_path_EGREP="$GREP -E"
4157 else
4158 if test -z "$EGREP"; then
4159 ac_path_EGREP_found=false
4160 # Loop through the user's path and test for each of PROGNAME-LIST
4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4163do
4164 IFS=$as_save_IFS
4165 test -z "$as_dir" && as_dir=.
4166 for ac_prog in egrep; do
4167 for ac_exec_ext in '' $ac_executable_extensions; do
4168 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4169 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4170# Check for GNU ac_path_EGREP and select it if it is found.
4171 # Check for GNU $ac_path_EGREP
4172case `"$ac_path_EGREP" --version 2>&1` in
4173*GNU*)
4174 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4175*)
4176 ac_count=0
4177 $as_echo_n 0123456789 >"conftest.in"
4178 while :
4179 do
4180 cat "conftest.in" "conftest.in" >"conftest.tmp"
4181 mv "conftest.tmp" "conftest.in"
4182 cp "conftest.in" "conftest.nl"
4183 $as_echo 'EGREP' >> "conftest.nl"
4184 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4185 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4186 as_fn_arith $ac_count + 1 && ac_count=$as_val
4187 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4188 # Best one so far, save it but keep looking for a better one
4189 ac_cv_path_EGREP="$ac_path_EGREP"
4190 ac_path_EGREP_max=$ac_count
4191 fi
4192 # 10*(2^10) chars as input seems more than enough
4193 test $ac_count -gt 10 && break
4194 done
4195 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4196esac
4197
4198 $ac_path_EGREP_found && break 3
4199 done
4200 done
4201 done
4202IFS=$as_save_IFS
4203 if test -z "$ac_cv_path_EGREP"; then
4204 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4205 fi
4206else
4207 ac_cv_path_EGREP=$EGREP
4208fi
4209
4210 fi
4211fi
4212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4213$as_echo "$ac_cv_path_EGREP" >&6; }
4214 EGREP="$ac_cv_path_EGREP"
4215
4216
4217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4218$as_echo_n "checking for fgrep... " >&6; }
4219if ${ac_cv_path_FGREP+:} false; then :
4220 $as_echo_n "(cached) " >&6
4221else
4222 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4223 then ac_cv_path_FGREP="$GREP -F"
4224 else
4225 if test -z "$FGREP"; then
4226 ac_path_FGREP_found=false
4227 # Loop through the user's path and test for each of PROGNAME-LIST
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4230do
4231 IFS=$as_save_IFS
4232 test -z "$as_dir" && as_dir=.
4233 for ac_prog in fgrep; do
4234 for ac_exec_ext in '' $ac_executable_extensions; do
4235 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4236 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4237# Check for GNU ac_path_FGREP and select it if it is found.
4238 # Check for GNU $ac_path_FGREP
4239case `"$ac_path_FGREP" --version 2>&1` in
4240*GNU*)
4241 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4242*)
4243 ac_count=0
4244 $as_echo_n 0123456789 >"conftest.in"
4245 while :
4246 do
4247 cat "conftest.in" "conftest.in" >"conftest.tmp"
4248 mv "conftest.tmp" "conftest.in"
4249 cp "conftest.in" "conftest.nl"
4250 $as_echo 'FGREP' >> "conftest.nl"
4251 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4252 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4253 as_fn_arith $ac_count + 1 && ac_count=$as_val
4254 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4255 # Best one so far, save it but keep looking for a better one
4256 ac_cv_path_FGREP="$ac_path_FGREP"
4257 ac_path_FGREP_max=$ac_count
4258 fi
4259 # 10*(2^10) chars as input seems more than enough
4260 test $ac_count -gt 10 && break
4261 done
4262 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4263esac
4264
4265 $ac_path_FGREP_found && break 3
4266 done
4267 done
4268 done
4269IFS=$as_save_IFS
4270 if test -z "$ac_cv_path_FGREP"; then
4271 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4272 fi
4273else
4274 ac_cv_path_FGREP=$FGREP
4275fi
4276
4277 fi
4278fi
4279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4280$as_echo "$ac_cv_path_FGREP" >&6; }
4281 FGREP="$ac_cv_path_FGREP"
4282
4283
4284test -z "$GREP" && GREP=grep
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4303ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4304ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4305
4306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4307$as_echo_n "checking how to print strings... " >&6; }
4308# Test print first, because it will be a builtin if present.
4309if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4310 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4311 ECHO='print -r --'
4312elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4313 ECHO='printf %s\n'
4314else
4315 # Use this function as a fallback that always works.
4316 func_fallback_echo ()
4317 {
4318 eval 'cat <<_LTECHO_EOF
4319$1
4320_LTECHO_EOF'
4321 }
4322 ECHO='func_fallback_echo'
4323fi
4324
4325# func_echo_all arg...
4326# Invoke $ECHO with all args, space-separated.
4327func_echo_all ()
4328{
4329 $ECHO ""
4330}
4331
4332case "$ECHO" in
4333 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4334$as_echo "printf" >&6; } ;;
4335 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4336$as_echo "print -r" >&6; } ;;
4337 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4338$as_echo "cat" >&6; } ;;
4339esac
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356# Check whether --with-gnu-ld was given.
4357if test "${with_gnu_ld+set}" = set; then :
4358 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4359else
4360 with_gnu_ld=no
4361fi
4362
4363ac_prog=ld
4364if test "$GCC" = yes; then
4365 # Check if gcc -print-prog-name=ld gives a path.
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4367$as_echo_n "checking for ld used by $CC... " >&6; }
4368 case $host in
4369 *-*-mingw*)
4370 # gcc leaves a trailing carriage return which upsets mingw
4371 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4372 *)
4373 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4374 esac
4375 case $ac_prog in
4376 # Accept absolute paths.
4377 [\\/]* | ?:[\\/]*)
4378 re_direlt='/[^/][^/]*/\.\./'
4379 # Canonicalize the pathname of ld
4380 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4381 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4382 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4383 done
4384 test -z "$LD" && LD="$ac_prog"
4385 ;;
4386 "")
4387 # If it fails, then pretend we aren't using GCC.
4388 ac_prog=ld
4389 ;;
4390 *)
4391 # If it is relative, then search for the first ld in PATH.
4392 with_gnu_ld=unknown
4393 ;;
4394 esac
4395elif test "$with_gnu_ld" = yes; then
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4397$as_echo_n "checking for GNU ld... " >&6; }
4398else
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4400$as_echo_n "checking for non-GNU ld... " >&6; }
4401fi
4402if ${lt_cv_path_LD+:} false; then :
4403 $as_echo_n "(cached) " >&6
4404else
4405 if test -z "$LD"; then
4406 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4407 for ac_dir in $PATH; do
4408 IFS="$lt_save_ifs"
4409 test -z "$ac_dir" && ac_dir=.
4410 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4411 lt_cv_path_LD="$ac_dir/$ac_prog"
4412 # Check to see if the program is GNU ld. I'd rather use --version,
4413 # but apparently some variants of GNU ld only accept -v.
4414 # Break only if it was the GNU/non-GNU ld that we prefer.
4415 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4416 *GNU* | *'with BFD'*)
4417 test "$with_gnu_ld" != no && break
4418 ;;
4419 *)
4420 test "$with_gnu_ld" != yes && break
4421 ;;
4422 esac
4423 fi
4424 done
4425 IFS="$lt_save_ifs"
4426else
4427 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4428fi
4429fi
4430
4431LD="$lt_cv_path_LD"
4432if test -n "$LD"; then
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4434$as_echo "$LD" >&6; }
4435else
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4437$as_echo "no" >&6; }
4438fi
4439test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4441$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4442if ${lt_cv_prog_gnu_ld+:} false; then :
4443 $as_echo_n "(cached) " >&6
4444else
4445 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4446case `$LD -v 2>&1 </dev/null` in
4447*GNU* | *'with BFD'*)
4448 lt_cv_prog_gnu_ld=yes
4449 ;;
4450*)
4451 lt_cv_prog_gnu_ld=no
4452 ;;
4453esac
4454fi
4455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4456$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4457with_gnu_ld=$lt_cv_prog_gnu_ld
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467ac_ext=c
4468ac_cpp='$CPP $CPPFLAGS'
4469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4471ac_compiler_gnu=$ac_cv_c_compiler_gnu
4472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4473$as_echo_n "checking how to run the C preprocessor... " >&6; }
4474# On Suns, sometimes $CPP names a directory.
4475if test -n "$CPP" && test -d "$CPP"; then
4476 CPP=
4477fi
4478if test -z "$CPP"; then
4479 if ${ac_cv_prog_CPP+:} false; then :
4480 $as_echo_n "(cached) " >&6
4481else
4482 # Double quotes because CPP needs to be expanded
4483 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4484 do
4485 ac_preproc_ok=false
4486for ac_c_preproc_warn_flag in '' yes
4487do
4488 # Use a header file that comes with gcc, so configuring glibc
4489 # with a fresh cross-compiler works.
4490 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4491 # <limits.h> exists even on freestanding compilers.
4492 # On the NeXT, cc -E runs the code through the compiler's parser,
4493 # not just through cpp. "Syntax error" is here to catch this case.
4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495/* end confdefs.h. */
4496#ifdef __STDC__
4497# include <limits.h>
4498#else
4499# include <assert.h>
4500#endif
4501 Syntax error
4502_ACEOF
4503if ac_fn_c_try_cpp "$LINENO"; then :
4504
4505else
4506 # Broken: fails on valid input.
4507continue
4508fi
4509rm -f conftest.err conftest.i conftest.$ac_ext
4510
4511 # OK, works on sane cases. Now check whether nonexistent headers
4512 # can be detected and how.
4513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4514/* end confdefs.h. */
4515#include <ac_nonexistent.h>
4516_ACEOF
4517if ac_fn_c_try_cpp "$LINENO"; then :
4518 # Broken: success on invalid input.
4519continue
4520else
4521 # Passes both tests.
4522ac_preproc_ok=:
4523break
4524fi
4525rm -f conftest.err conftest.i conftest.$ac_ext
4526
4527done
4528# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4529rm -f conftest.i conftest.err conftest.$ac_ext
4530if $ac_preproc_ok; then :
4531 break
4532fi
4533
4534 done
4535 ac_cv_prog_CPP=$CPP
4536
4537fi
4538 CPP=$ac_cv_prog_CPP
4539else
4540 ac_cv_prog_CPP=$CPP
4541fi
4542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4543$as_echo "$CPP" >&6; }
4544ac_preproc_ok=false
4545for ac_c_preproc_warn_flag in '' yes
4546do
4547 # Use a header file that comes with gcc, so configuring glibc
4548 # with a fresh cross-compiler works.
4549 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4550 # <limits.h> exists even on freestanding compilers.
4551 # On the NeXT, cc -E runs the code through the compiler's parser,
4552 # not just through cpp. "Syntax error" is here to catch this case.
4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554/* end confdefs.h. */
4555#ifdef __STDC__
4556# include <limits.h>
4557#else
4558# include <assert.h>
4559#endif
4560 Syntax error
4561_ACEOF
4562if ac_fn_c_try_cpp "$LINENO"; then :
4563
4564else
4565 # Broken: fails on valid input.
4566continue
4567fi
4568rm -f conftest.err conftest.i conftest.$ac_ext
4569
4570 # OK, works on sane cases. Now check whether nonexistent headers
4571 # can be detected and how.
4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573/* end confdefs.h. */
4574#include <ac_nonexistent.h>
4575_ACEOF
4576if ac_fn_c_try_cpp "$LINENO"; then :
4577 # Broken: success on invalid input.
4578continue
4579else
4580 # Passes both tests.
4581ac_preproc_ok=:
4582break
4583fi
4584rm -f conftest.err conftest.i conftest.$ac_ext
4585
4586done
4587# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4588rm -f conftest.i conftest.err conftest.$ac_ext
4589if $ac_preproc_ok; then :
4590
4591else
4592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4593$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4594as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4595See \`config.log' for more details" "$LINENO" 5; }
4596fi
4597
4598ac_ext=c
4599ac_cpp='$CPP $CPPFLAGS'
4600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4602ac_compiler_gnu=$ac_cv_c_compiler_gnu
4603
4604if test -n "$ac_tool_prefix"; then
4605 # Extract the first word of "${ac_tool_prefix}sed", so it can be a program name with args.
4606set dummy ${ac_tool_prefix}sed; ac_word=$2
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4608$as_echo_n "checking for $ac_word... " >&6; }
4609if ${ac_cv_prog_SED+:} false; then :
4610 $as_echo_n "(cached) " >&6
4611else
4612 if test -n "$SED"; then
4613 ac_cv_prog_SED="$SED" # Let the user override the test.
4614else
4615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616for as_dir in $PATH
4617do
4618 IFS=$as_save_IFS
4619 test -z "$as_dir" && as_dir=.
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4622 ac_cv_prog_SED="${ac_tool_prefix}sed"
4623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4624 break 2
4625 fi
4626done
4627 done
4628IFS=$as_save_IFS
4629
4630fi
4631fi
4632SED=$ac_cv_prog_SED
4633if test -n "$SED"; then
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4635$as_echo "$SED" >&6; }
4636else
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4638$as_echo "no" >&6; }
4639fi
4640
4641
4642fi
4643if test -z "$ac_cv_prog_SED"; then
4644 ac_ct_SED=$SED
4645 # Extract the first word of "sed", so it can be a program name with args.
4646set dummy sed; ac_word=$2
4647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4648$as_echo_n "checking for $ac_word... " >&6; }
4649if ${ac_cv_prog_ac_ct_SED+:} false; then :
4650 $as_echo_n "(cached) " >&6
4651else
4652 if test -n "$ac_ct_SED"; then
4653 ac_cv_prog_ac_ct_SED="$ac_ct_SED" # Let the user override the test.
4654else
4655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656for as_dir in $PATH
4657do
4658 IFS=$as_save_IFS
4659 test -z "$as_dir" && as_dir=.
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4662 ac_cv_prog_ac_ct_SED="sed"
4663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 break 2
4665 fi
4666done
4667 done
4668IFS=$as_save_IFS
4669
4670fi
4671fi
4672ac_ct_SED=$ac_cv_prog_ac_ct_SED
4673if test -n "$ac_ct_SED"; then
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_SED" >&5
4675$as_echo "$ac_ct_SED" >&6; }
4676else
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4678$as_echo "no" >&6; }
4679fi
4680
4681 if test "x$ac_ct_SED" = x; then
4682 SED=":"
4683 else
4684 case $cross_compiling:$ac_tool_warned in
4685yes:)
4686{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4687$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4688ac_tool_warned=yes ;;
4689esac
4690 SED=$ac_ct_SED
4691 fi
4692else
4693 SED="$ac_cv_prog_SED"
4694fi
4695
4696if test -n "$ac_tool_prefix"; then
4697 # Extract the first word of "${ac_tool_prefix}awk", so it can be a program name with args.
4698set dummy ${ac_tool_prefix}awk; ac_word=$2
4699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4700$as_echo_n "checking for $ac_word... " >&6; }
4701if ${ac_cv_prog_AWK+:} false; then :
4702 $as_echo_n "(cached) " >&6
4703else
4704 if test -n "$AWK"; then
4705 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4706else
4707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708for as_dir in $PATH
4709do
4710 IFS=$as_save_IFS
4711 test -z "$as_dir" && as_dir=.
4712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4714 ac_cv_prog_AWK="${ac_tool_prefix}awk"
4715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4716 break 2
4717 fi
4718done
4719 done
4720IFS=$as_save_IFS
4721
4722fi
4723fi
4724AWK=$ac_cv_prog_AWK
4725if test -n "$AWK"; then
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4727$as_echo "$AWK" >&6; }
4728else
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4730$as_echo "no" >&6; }
4731fi
4732
4733
4734fi
4735if test -z "$ac_cv_prog_AWK"; then
4736 ac_ct_AWK=$AWK
4737 # Extract the first word of "awk", so it can be a program name with args.
4738set dummy awk; ac_word=$2
4739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4740$as_echo_n "checking for $ac_word... " >&6; }
4741if ${ac_cv_prog_ac_ct_AWK+:} false; then :
4742 $as_echo_n "(cached) " >&6
4743else
4744 if test -n "$ac_ct_AWK"; then
4745 ac_cv_prog_ac_ct_AWK="$ac_ct_AWK" # Let the user override the test.
4746else
4747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748for as_dir in $PATH
4749do
4750 IFS=$as_save_IFS
4751 test -z "$as_dir" && as_dir=.
4752 for ac_exec_ext in '' $ac_executable_extensions; do
4753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4754 ac_cv_prog_ac_ct_AWK="awk"
4755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4756 break 2
4757 fi
4758done
4759 done
4760IFS=$as_save_IFS
4761
4762fi
4763fi
4764ac_ct_AWK=$ac_cv_prog_ac_ct_AWK
4765if test -n "$ac_ct_AWK"; then
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AWK" >&5
4767$as_echo "$ac_ct_AWK" >&6; }
4768else
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4770$as_echo "no" >&6; }
4771fi
4772
4773 if test "x$ac_ct_AWK" = x; then
4774 AWK=":"
4775 else
4776 case $cross_compiling:$ac_tool_warned in
4777yes:)
4778{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4779$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4780ac_tool_warned=yes ;;
4781esac
4782 AWK=$ac_ct_AWK
4783 fi
4784else
4785 AWK="$ac_cv_prog_AWK"
4786fi
4787
4788
4789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4790$as_echo_n "checking whether ln -s works... " >&6; }
4791LN_S=$as_ln_s
4792if test "$LN_S" = "ln -s"; then
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4794$as_echo "yes" >&6; }
4795else
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4797$as_echo "no, using $LN_S" >&6; }
4798fi
4799
4800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4801$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4802set x ${MAKE-make}
4803ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4804if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4805 $as_echo_n "(cached) " >&6
4806else
4807 cat >conftest.make <<\_ACEOF
4808SHELL = /bin/sh
4809all:
4810 @echo '@@@%%%=$(MAKE)=@@@%%%'
4811_ACEOF
4812# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4813case `${MAKE-make} -f conftest.make 2>/dev/null` in
4814 *@@@%%%=?*=@@@%%%*)
4815 eval ac_cv_prog_make_${ac_make}_set=yes;;
4816 *)
4817 eval ac_cv_prog_make_${ac_make}_set=no;;
4818esac
4819rm -f conftest.make
4820fi
4821if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4823$as_echo "yes" >&6; }
4824 SET_MAKE=
4825else
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4827$as_echo "no" >&6; }
4828 SET_MAKE="MAKE=${MAKE-make}"
4829fi
4830
4831case `pwd` in
4832 *\ * | *\ *)
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4834$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4835esac
4836
4837
4838
4839macro_version='2.4.2'
4840macro_revision='1.3337'
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854ltmain="$ac_aux_dir/ltmain.sh"
4855
4856# Backslashify metacharacters that are still active within
4857# double-quoted strings.
4858sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4859
4860# Same as above, but do not quote variable references.
4861double_quote_subst='s/\(["`\\]\)/\\\1/g'
4862
4863# Sed substitution to delay expansion of an escaped shell variable in a
4864# double_quote_subst'ed string.
4865delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4866
4867# Sed substitution to delay expansion of an escaped single quote.
4868delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4869
4870# Sed substitution to avoid accidental globbing in evaled expressions
4871no_glob_subst='s/\*/\\\*/g'
4872
4873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4874$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4875if ${lt_cv_path_NM+:} false; then :
4876 $as_echo_n "(cached) " >&6
4877else
4878 if test -n "$NM"; then
4879 # Let the user override the test.
4880 lt_cv_path_NM="$NM"
4881else
4882 lt_nm_to_check="${ac_tool_prefix}nm"
4883 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4884 lt_nm_to_check="$lt_nm_to_check nm"
4885 fi
4886 for lt_tmp_nm in $lt_nm_to_check; do
4887 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4888 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4889 IFS="$lt_save_ifs"
4890 test -z "$ac_dir" && ac_dir=.
4891 tmp_nm="$ac_dir/$lt_tmp_nm"
4892 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4893 # Check to see if the nm accepts a BSD-compat flag.
4894 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4895 # nm: unknown option "B" ignored
4896 # Tru64's nm complains that /dev/null is an invalid object file
4897 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4898 */dev/null* | *'Invalid file or object type'*)
4899 lt_cv_path_NM="$tmp_nm -B"
4900 break
4901 ;;
4902 *)
4903 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4904 */dev/null*)
4905 lt_cv_path_NM="$tmp_nm -p"
4906 break
4907 ;;
4908 *)
4909 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4910 continue # so that we can try to find one that supports BSD flags
4911 ;;
4912 esac
4913 ;;
4914 esac
4915 fi
4916 done
4917 IFS="$lt_save_ifs"
4918 done
4919 : ${lt_cv_path_NM=no}
4920fi
4921fi
4922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4923$as_echo "$lt_cv_path_NM" >&6; }
4924if test "$lt_cv_path_NM" != "no"; then
4925 NM="$lt_cv_path_NM"
4926else
4927 # Didn't find any BSD compatible name lister, look for dumpbin.
4928 if test -n "$DUMPBIN"; then :
4929 # Let the user override the test.
4930 else
4931 if test -n "$ac_tool_prefix"; then
4932 for ac_prog in dumpbin "link -dump"
4933 do
4934 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4935set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4937$as_echo_n "checking for $ac_word... " >&6; }
4938if ${ac_cv_prog_DUMPBIN+:} false; then :
4939 $as_echo_n "(cached) " >&6
4940else
4941 if test -n "$DUMPBIN"; then
4942 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4943else
4944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945for as_dir in $PATH
4946do
4947 IFS=$as_save_IFS
4948 test -z "$as_dir" && as_dir=.
4949 for ac_exec_ext in '' $ac_executable_extensions; do
4950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4951 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4953 break 2
4954 fi
4955done
4956 done
4957IFS=$as_save_IFS
4958
4959fi
4960fi
4961DUMPBIN=$ac_cv_prog_DUMPBIN
4962if test -n "$DUMPBIN"; then
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4964$as_echo "$DUMPBIN" >&6; }
4965else
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4967$as_echo "no" >&6; }
4968fi
4969
4970
4971 test -n "$DUMPBIN" && break
4972 done
4973fi
4974if test -z "$DUMPBIN"; then
4975 ac_ct_DUMPBIN=$DUMPBIN
4976 for ac_prog in dumpbin "link -dump"
4977do
4978 # Extract the first word of "$ac_prog", so it can be a program name with args.
4979set dummy $ac_prog; ac_word=$2
4980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4981$as_echo_n "checking for $ac_word... " >&6; }
4982if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4983 $as_echo_n "(cached) " >&6
4984else
4985 if test -n "$ac_ct_DUMPBIN"; then
4986 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4987else
4988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989for as_dir in $PATH
4990do
4991 IFS=$as_save_IFS
4992 test -z "$as_dir" && as_dir=.
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4995 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4997 break 2
4998 fi
4999done
5000 done
5001IFS=$as_save_IFS
5002
5003fi
5004fi
5005ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5006if test -n "$ac_ct_DUMPBIN"; then
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5008$as_echo "$ac_ct_DUMPBIN" >&6; }
5009else
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5011$as_echo "no" >&6; }
5012fi
5013
5014
5015 test -n "$ac_ct_DUMPBIN" && break
5016done
5017
5018 if test "x$ac_ct_DUMPBIN" = x; then
5019 DUMPBIN=":"
5020 else
5021 case $cross_compiling:$ac_tool_warned in
5022yes:)
5023{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5024$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5025ac_tool_warned=yes ;;
5026esac
5027 DUMPBIN=$ac_ct_DUMPBIN
5028 fi
5029fi
5030
5031 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5032 *COFF*)
5033 DUMPBIN="$DUMPBIN -symbols"
5034 ;;
5035 *)
5036 DUMPBIN=:
5037 ;;
5038 esac
5039 fi
5040
5041 if test "$DUMPBIN" != ":"; then
5042 NM="$DUMPBIN"
5043 fi
5044fi
5045test -z "$NM" && NM=nm
5046
5047
5048
5049
5050
5051
5052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5053$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5054if ${lt_cv_nm_interface+:} false; then :
5055 $as_echo_n "(cached) " >&6
5056else
5057 lt_cv_nm_interface="BSD nm"
5058 echo "int some_variable = 0;" > conftest.$ac_ext
5059 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5060 (eval "$ac_compile" 2>conftest.err)
5061 cat conftest.err >&5
5062 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5063 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5064 cat conftest.err >&5
5065 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5066 cat conftest.out >&5
5067 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5068 lt_cv_nm_interface="MS dumpbin"
5069 fi
5070 rm -f conftest*
5071fi
5072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5073$as_echo "$lt_cv_nm_interface" >&6; }
5074
5075# find the maximum length of command line arguments
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5077$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5078if ${lt_cv_sys_max_cmd_len+:} false; then :
5079 $as_echo_n "(cached) " >&6
5080else
5081 i=0
5082 teststring="ABCD"
5083
5084 case $build_os in
5085 msdosdjgpp*)
5086 # On DJGPP, this test can blow up pretty badly due to problems in libc
5087 # (any single argument exceeding 2000 bytes causes a buffer overrun
5088 # during glob expansion). Even if it were fixed, the result of this
5089 # check would be larger than it should be.
5090 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5091 ;;
5092
5093 gnu*)
5094 # Under GNU Hurd, this test is not required because there is
5095 # no limit to the length of command line arguments.
5096 # Libtool will interpret -1 as no limit whatsoever
5097 lt_cv_sys_max_cmd_len=-1;
5098 ;;
5099
5100 cygwin* | mingw* | cegcc*)
5101 # On Win9x/ME, this test blows up -- it succeeds, but takes
5102 # about 5 minutes as the teststring grows exponentially.
5103 # Worse, since 9x/ME are not pre-emptively multitasking,
5104 # you end up with a "frozen" computer, even though with patience
5105 # the test eventually succeeds (with a max line length of 256k).
5106 # Instead, let's just punt: use the minimum linelength reported by
5107 # all of the supported platforms: 8192 (on NT/2K/XP).
5108 lt_cv_sys_max_cmd_len=8192;
5109 ;;
5110
5111 mint*)
5112 # On MiNT this can take a long time and run out of memory.
5113 lt_cv_sys_max_cmd_len=8192;
5114 ;;
5115
5116 amigaos*)
5117 # On AmigaOS with pdksh, this test takes hours, literally.
5118 # So we just punt and use a minimum line length of 8192.
5119 lt_cv_sys_max_cmd_len=8192;
5120 ;;
5121
5122 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5123 # This has been around since 386BSD, at least. Likely further.
5124 if test -x /sbin/sysctl; then
5125 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5126 elif test -x /usr/sbin/sysctl; then
5127 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5128 else
5129 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5130 fi
5131 # And add a safety zone
5132 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5133 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5134 ;;
5135
5136 interix*)
5137 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5138 lt_cv_sys_max_cmd_len=196608
5139 ;;
5140
5141 os2*)
5142 # The test takes a long time on OS/2.
5143 lt_cv_sys_max_cmd_len=8192
5144 ;;
5145
5146 osf*)
5147 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5148 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5149 # nice to cause kernel panics so lets avoid the loop below.
5150 # First set a reasonable default.
5151 lt_cv_sys_max_cmd_len=16384
5152 #
5153 if test -x /sbin/sysconfig; then
5154 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5155 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5156 esac
5157 fi
5158 ;;
5159 sco3.2v5*)
5160 lt_cv_sys_max_cmd_len=102400
5161 ;;
5162 sysv5* | sco5v6* | sysv4.2uw2*)
5163 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5164 if test -n "$kargmax"; then
5165 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5166 else
5167 lt_cv_sys_max_cmd_len=32768
5168 fi
5169 ;;
5170 *)
5171 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5172 if test -n "$lt_cv_sys_max_cmd_len"; then
5173 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5174 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5175 else
5176 # Make teststring a little bigger before we do anything with it.
5177 # a 1K string should be a reasonable start.
5178 for i in 1 2 3 4 5 6 7 8 ; do
5179 teststring=$teststring$teststring
5180 done
5181 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5182 # If test is not a shell built-in, we'll probably end up computing a
5183 # maximum length that is only half of the actual maximum length, but
5184 # we can't tell.
5185 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5186 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5187 test $i != 17 # 1/2 MB should be enough
5188 do
5189 i=`expr $i + 1`
5190 teststring=$teststring$teststring
5191 done
5192 # Only check the string length outside the loop.
5193 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5194 teststring=
5195 # Add a significant safety factor because C++ compilers can tack on
5196 # massive amounts of additional arguments before passing them to the
5197 # linker. It appears as though 1/2 is a usable value.
5198 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5199 fi
5200 ;;
5201 esac
5202
5203fi
5204
5205if test -n $lt_cv_sys_max_cmd_len ; then
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5207$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5208else
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5210$as_echo "none" >&6; }
5211fi
5212max_cmd_len=$lt_cv_sys_max_cmd_len
5213
5214
5215
5216
5217
5218
5219: ${CP="cp -f"}
5220: ${MV="mv -f"}
5221: ${RM="rm -f"}
5222
5223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5224$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5225# Try some XSI features
5226xsi_shell=no
5227( _lt_dummy="a/b/c"
5228 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5229 = c,a/b,b/c, \
5230 && eval 'test $(( 1 + 1 )) -eq 2 \
5231 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5232 && xsi_shell=yes
5233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5234$as_echo "$xsi_shell" >&6; }
5235
5236
5237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5238$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5239lt_shell_append=no
5240( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5241 >/dev/null 2>&1 \
5242 && lt_shell_append=yes
5243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5244$as_echo "$lt_shell_append" >&6; }
5245
5246
5247if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5248 lt_unset=unset
5249else
5250 lt_unset=false
5251fi
5252
5253
5254
5255
5256
5257# test EBCDIC or ASCII
5258case `echo X|tr X '\101'` in
5259 A) # ASCII based system
5260 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5261 lt_SP2NL='tr \040 \012'
5262 lt_NL2SP='tr \015\012 \040\040'
5263 ;;
5264 *) # EBCDIC based system
5265 lt_SP2NL='tr \100 \n'
5266 lt_NL2SP='tr \r\n \100\100'
5267 ;;
5268esac
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5279$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5280if ${lt_cv_to_host_file_cmd+:} false; then :
5281 $as_echo_n "(cached) " >&6
5282else
5283 case $host in
5284 *-*-mingw* )
5285 case $build in
5286 *-*-mingw* ) # actually msys
5287 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5288 ;;
5289 *-*-cygwin* )
5290 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5291 ;;
5292 * ) # otherwise, assume *nix
5293 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5294 ;;
5295 esac
5296 ;;
5297 *-*-cygwin* )
5298 case $build in
5299 *-*-mingw* ) # actually msys
5300 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5301 ;;
5302 *-*-cygwin* )
5303 lt_cv_to_host_file_cmd=func_convert_file_noop
5304 ;;
5305 * ) # otherwise, assume *nix
5306 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5307 ;;
5308 esac
5309 ;;
5310 * ) # unhandled hosts (and "normal" native builds)
5311 lt_cv_to_host_file_cmd=func_convert_file_noop
5312 ;;
5313esac
5314
5315fi
5316
5317to_host_file_cmd=$lt_cv_to_host_file_cmd
5318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5319$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5320
5321
5322
5323
5324
5325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5326$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5327if ${lt_cv_to_tool_file_cmd+:} false; then :
5328 $as_echo_n "(cached) " >&6
5329else
5330 #assume ordinary cross tools, or native build.
5331lt_cv_to_tool_file_cmd=func_convert_file_noop
5332case $host in
5333 *-*-mingw* )
5334 case $build in
5335 *-*-mingw* ) # actually msys
5336 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5337 ;;
5338 esac
5339 ;;
5340esac
5341
5342fi
5343
5344to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5346$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5347
5348
5349
5350
5351
5352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5353$as_echo_n "checking for $LD option to reload object files... " >&6; }
5354if ${lt_cv_ld_reload_flag+:} false; then :
5355 $as_echo_n "(cached) " >&6
5356else
5357 lt_cv_ld_reload_flag='-r'
5358fi
5359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5360$as_echo "$lt_cv_ld_reload_flag" >&6; }
5361reload_flag=$lt_cv_ld_reload_flag
5362case $reload_flag in
5363"" | " "*) ;;
5364*) reload_flag=" $reload_flag" ;;
5365esac
5366reload_cmds='$LD$reload_flag -o $output$reload_objs'
5367case $host_os in
5368 cygwin* | mingw* | pw32* | cegcc*)
5369 if test "$GCC" != yes; then
5370 reload_cmds=false
5371 fi
5372 ;;
5373 darwin*)
5374 if test "$GCC" = yes; then
5375 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5376 else
5377 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5378 fi
5379 ;;
5380esac
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390if test -n "$ac_tool_prefix"; then
5391 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5392set dummy ${ac_tool_prefix}objdump; ac_word=$2
5393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5394$as_echo_n "checking for $ac_word... " >&6; }
5395if ${ac_cv_prog_OBJDUMP+:} false; then :
5396 $as_echo_n "(cached) " >&6
5397else
5398 if test -n "$OBJDUMP"; then
5399 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5400else
5401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402for as_dir in $PATH
5403do
5404 IFS=$as_save_IFS
5405 test -z "$as_dir" && as_dir=.
5406 for ac_exec_ext in '' $ac_executable_extensions; do
5407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5408 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5410 break 2
5411 fi
5412done
5413 done
5414IFS=$as_save_IFS
5415
5416fi
5417fi
5418OBJDUMP=$ac_cv_prog_OBJDUMP
5419if test -n "$OBJDUMP"; then
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5421$as_echo "$OBJDUMP" >&6; }
5422else
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5424$as_echo "no" >&6; }
5425fi
5426
5427
5428fi
5429if test -z "$ac_cv_prog_OBJDUMP"; then
5430 ac_ct_OBJDUMP=$OBJDUMP
5431 # Extract the first word of "objdump", so it can be a program name with args.
5432set dummy objdump; ac_word=$2
5433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5434$as_echo_n "checking for $ac_word... " >&6; }
5435if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5436 $as_echo_n "(cached) " >&6
5437else
5438 if test -n "$ac_ct_OBJDUMP"; then
5439 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5440else
5441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442for as_dir in $PATH
5443do
5444 IFS=$as_save_IFS
5445 test -z "$as_dir" && as_dir=.
5446 for ac_exec_ext in '' $ac_executable_extensions; do
5447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5448 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5450 break 2
5451 fi
5452done
5453 done
5454IFS=$as_save_IFS
5455
5456fi
5457fi
5458ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5459if test -n "$ac_ct_OBJDUMP"; then
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5461$as_echo "$ac_ct_OBJDUMP" >&6; }
5462else
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5464$as_echo "no" >&6; }
5465fi
5466
5467 if test "x$ac_ct_OBJDUMP" = x; then
5468 OBJDUMP="false"
5469 else
5470 case $cross_compiling:$ac_tool_warned in
5471yes:)
5472{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5473$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5474ac_tool_warned=yes ;;
5475esac
5476 OBJDUMP=$ac_ct_OBJDUMP
5477 fi
5478else
5479 OBJDUMP="$ac_cv_prog_OBJDUMP"
5480fi
5481
5482test -z "$OBJDUMP" && OBJDUMP=objdump
5483
5484
5485
5486
5487
5488
5489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5490$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5491if ${lt_cv_deplibs_check_method+:} false; then :
5492 $as_echo_n "(cached) " >&6
5493else
5494 lt_cv_file_magic_cmd='$MAGIC_CMD'
5495lt_cv_file_magic_test_file=
5496lt_cv_deplibs_check_method='unknown'
5497# Need to set the preceding variable on all platforms that support
5498# interlibrary dependencies.
5499# 'none' -- dependencies not supported.
5500# `unknown' -- same as none, but documents that we really don't know.
5501# 'pass_all' -- all dependencies passed with no checks.
5502# 'test_compile' -- check by making test program.
5503# 'file_magic [[regex]]' -- check by looking for files in library path
5504# which responds to the $file_magic_cmd with a given extended regex.
5505# If you have `file' or equivalent on your system and you're not sure
5506# whether `pass_all' will *always* work, you probably want this one.
5507
5508case $host_os in
5509aix[4-9]*)
5510 lt_cv_deplibs_check_method=pass_all
5511 ;;
5512
5513beos*)
5514 lt_cv_deplibs_check_method=pass_all
5515 ;;
5516
5517bsdi[45]*)
5518 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5519 lt_cv_file_magic_cmd='/usr/bin/file -L'
5520 lt_cv_file_magic_test_file=/shlib/libc.so
5521 ;;
5522
5523cygwin*)
5524 # func_win32_libid is a shell function defined in ltmain.sh
5525 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5526 lt_cv_file_magic_cmd='func_win32_libid'
5527 ;;
5528
5529mingw* | pw32*)
5530 # Base MSYS/MinGW do not provide the 'file' command needed by
5531 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5532 # unless we find 'file', for example because we are cross-compiling.
5533 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5534 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5535 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5536 lt_cv_file_magic_cmd='func_win32_libid'
5537 else
5538 # Keep this pattern in sync with the one in func_win32_libid.
5539 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5540 lt_cv_file_magic_cmd='$OBJDUMP -f'
5541 fi
5542 ;;
5543
5544cegcc*)
5545 # use the weaker test based on 'objdump'. See mingw*.
5546 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5547 lt_cv_file_magic_cmd='$OBJDUMP -f'
5548 ;;
5549
5550darwin* | rhapsody*)
5551 lt_cv_deplibs_check_method=pass_all
5552 ;;
5553
5554freebsd* | dragonfly*)
5555 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5556 case $host_cpu in
5557 i*86 )
5558 # Not sure whether the presence of OpenBSD here was a mistake.
5559 # Let's accept both of them until this is cleared up.
5560 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5561 lt_cv_file_magic_cmd=/usr/bin/file
5562 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5563 ;;
5564 esac
5565 else
5566 lt_cv_deplibs_check_method=pass_all
5567 fi
5568 ;;
5569
5570gnu*)
5571 lt_cv_deplibs_check_method=pass_all
5572 ;;
5573
5574haiku*)
5575 lt_cv_deplibs_check_method=pass_all
5576 ;;
5577
5578hpux10.20* | hpux11*)
5579 lt_cv_file_magic_cmd=/usr/bin/file
5580 case $host_cpu in
5581 ia64*)
5582 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5583 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5584 ;;
5585 hppa*64*)
5586 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]'
5587 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5588 ;;
5589 *)
5590 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5591 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5592 ;;
5593 esac
5594 ;;
5595
5596interix[3-9]*)
5597 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5598 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5599 ;;
5600
5601irix5* | irix6* | nonstopux*)
5602 case $LD in
5603 *-32|*"-32 ") libmagic=32-bit;;
5604 *-n32|*"-n32 ") libmagic=N32;;
5605 *-64|*"-64 ") libmagic=64-bit;;
5606 *) libmagic=never-match;;
5607 esac
5608 lt_cv_deplibs_check_method=pass_all
5609 ;;
5610
5611# This must be glibc/ELF.
5612linux* | k*bsd*-gnu | kopensolaris*-gnu)
5613 lt_cv_deplibs_check_method=pass_all
5614 ;;
5615
5616netbsd*)
5617 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5618 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5619 else
5620 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5621 fi
5622 ;;
5623
5624newos6*)
5625 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5626 lt_cv_file_magic_cmd=/usr/bin/file
5627 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5628 ;;
5629
5630*nto* | *qnx*)
5631 lt_cv_deplibs_check_method=pass_all
5632 ;;
5633
5634openbsd*)
5635 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5636 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5637 else
5638 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5639 fi
5640 ;;
5641
5642osf3* | osf4* | osf5*)
5643 lt_cv_deplibs_check_method=pass_all
5644 ;;
5645
5646rdos*)
5647 lt_cv_deplibs_check_method=pass_all
5648 ;;
5649
5650solaris*)
5651 lt_cv_deplibs_check_method=pass_all
5652 ;;
5653
5654sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5655 lt_cv_deplibs_check_method=pass_all
5656 ;;
5657
5658sysv4 | sysv4.3*)
5659 case $host_vendor in
5660 motorola)
5661 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]'
5662 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5663 ;;
5664 ncr)
5665 lt_cv_deplibs_check_method=pass_all
5666 ;;
5667 sequent)
5668 lt_cv_file_magic_cmd='/bin/file'
5669 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5670 ;;
5671 sni)
5672 lt_cv_file_magic_cmd='/bin/file'
5673 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5674 lt_cv_file_magic_test_file=/lib/libc.so
5675 ;;
5676 siemens)
5677 lt_cv_deplibs_check_method=pass_all
5678 ;;
5679 pc)
5680 lt_cv_deplibs_check_method=pass_all
5681 ;;
5682 esac
5683 ;;
5684
5685tpf*)
5686 lt_cv_deplibs_check_method=pass_all
5687 ;;
5688esac
5689
5690fi
5691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5692$as_echo "$lt_cv_deplibs_check_method" >&6; }
5693
5694file_magic_glob=
5695want_nocaseglob=no
5696if test "$build" = "$host"; then
5697 case $host_os in
5698 mingw* | pw32*)
5699 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5700 want_nocaseglob=yes
5701 else
5702 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5703 fi
5704 ;;
5705 esac
5706fi
5707
5708file_magic_cmd=$lt_cv_file_magic_cmd
5709deplibs_check_method=$lt_cv_deplibs_check_method
5710test -z "$deplibs_check_method" && deplibs_check_method=unknown
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733if test -n "$ac_tool_prefix"; then
5734 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5735set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5737$as_echo_n "checking for $ac_word... " >&6; }
5738if ${ac_cv_prog_DLLTOOL+:} false; then :
5739 $as_echo_n "(cached) " >&6
5740else
5741 if test -n "$DLLTOOL"; then
5742 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5743else
5744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745for as_dir in $PATH
5746do
5747 IFS=$as_save_IFS
5748 test -z "$as_dir" && as_dir=.
5749 for ac_exec_ext in '' $ac_executable_extensions; do
5750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5751 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5753 break 2
5754 fi
5755done
5756 done
5757IFS=$as_save_IFS
5758
5759fi
5760fi
5761DLLTOOL=$ac_cv_prog_DLLTOOL
5762if test -n "$DLLTOOL"; then
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5764$as_echo "$DLLTOOL" >&6; }
5765else
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5767$as_echo "no" >&6; }
5768fi
5769
5770
5771fi
5772if test -z "$ac_cv_prog_DLLTOOL"; then
5773 ac_ct_DLLTOOL=$DLLTOOL
5774 # Extract the first word of "dlltool", so it can be a program name with args.
5775set dummy dlltool; ac_word=$2
5776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5777$as_echo_n "checking for $ac_word... " >&6; }
5778if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5779 $as_echo_n "(cached) " >&6
5780else
5781 if test -n "$ac_ct_DLLTOOL"; then
5782 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5783else
5784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785for as_dir in $PATH
5786do
5787 IFS=$as_save_IFS
5788 test -z "$as_dir" && as_dir=.
5789 for ac_exec_ext in '' $ac_executable_extensions; do
5790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5791 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5793 break 2
5794 fi
5795done
5796 done
5797IFS=$as_save_IFS
5798
5799fi
5800fi
5801ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5802if test -n "$ac_ct_DLLTOOL"; then
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5804$as_echo "$ac_ct_DLLTOOL" >&6; }
5805else
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807$as_echo "no" >&6; }
5808fi
5809
5810 if test "x$ac_ct_DLLTOOL" = x; then
5811 DLLTOOL="false"
5812 else
5813 case $cross_compiling:$ac_tool_warned in
5814yes:)
5815{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5816$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5817ac_tool_warned=yes ;;
5818esac
5819 DLLTOOL=$ac_ct_DLLTOOL
5820 fi
5821else
5822 DLLTOOL="$ac_cv_prog_DLLTOOL"
5823fi
5824
5825test -z "$DLLTOOL" && DLLTOOL=dlltool
5826
5827
5828
5829
5830
5831
5832
5833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5834$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5835if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5836 $as_echo_n "(cached) " >&6
5837else
5838 lt_cv_sharedlib_from_linklib_cmd='unknown'
5839
5840case $host_os in
5841cygwin* | mingw* | pw32* | cegcc*)
5842 # two different shell functions defined in ltmain.sh
5843 # decide which to use based on capabilities of $DLLTOOL
5844 case `$DLLTOOL --help 2>&1` in
5845 *--identify-strict*)
5846 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5847 ;;
5848 *)
5849 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5850 ;;
5851 esac
5852 ;;
5853*)
5854 # fallback: assume linklib IS sharedlib
5855 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5856 ;;
5857esac
5858
5859fi
5860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5861$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5862sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5863test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5864
5865
5866
5867
5868
5869
5870
5871
5872if test -n "$ac_tool_prefix"; then
5873 for ac_prog in ar
5874 do
5875 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5876set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5878$as_echo_n "checking for $ac_word... " >&6; }
5879if ${ac_cv_prog_AR+:} false; then :
5880 $as_echo_n "(cached) " >&6
5881else
5882 if test -n "$AR"; then
5883 ac_cv_prog_AR="$AR" # Let the user override the test.
5884else
5885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886for as_dir in $PATH
5887do
5888 IFS=$as_save_IFS
5889 test -z "$as_dir" && as_dir=.
5890 for ac_exec_ext in '' $ac_executable_extensions; do
5891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5892 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5894 break 2
5895 fi
5896done
5897 done
5898IFS=$as_save_IFS
5899
5900fi
5901fi
5902AR=$ac_cv_prog_AR
5903if test -n "$AR"; then
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5905$as_echo "$AR" >&6; }
5906else
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5908$as_echo "no" >&6; }
5909fi
5910
5911
5912 test -n "$AR" && break
5913 done
5914fi
5915if test -z "$AR"; then
5916 ac_ct_AR=$AR
5917 for ac_prog in ar
5918do
5919 # Extract the first word of "$ac_prog", so it can be a program name with args.
5920set dummy $ac_prog; ac_word=$2
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5922$as_echo_n "checking for $ac_word... " >&6; }
5923if ${ac_cv_prog_ac_ct_AR+:} false; then :
5924 $as_echo_n "(cached) " >&6
5925else
5926 if test -n "$ac_ct_AR"; then
5927 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5928else
5929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930for as_dir in $PATH
5931do
5932 IFS=$as_save_IFS
5933 test -z "$as_dir" && as_dir=.
5934 for ac_exec_ext in '' $ac_executable_extensions; do
5935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5936 ac_cv_prog_ac_ct_AR="$ac_prog"
5937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5938 break 2
5939 fi
5940done
5941 done
5942IFS=$as_save_IFS
5943
5944fi
5945fi
5946ac_ct_AR=$ac_cv_prog_ac_ct_AR
5947if test -n "$ac_ct_AR"; then
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5949$as_echo "$ac_ct_AR" >&6; }
5950else
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5952$as_echo "no" >&6; }
5953fi
5954
5955
5956 test -n "$ac_ct_AR" && break
5957done
5958
5959 if test "x$ac_ct_AR" = x; then
5960 AR="false"
5961 else
5962 case $cross_compiling:$ac_tool_warned in
5963yes:)
5964{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5965$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5966ac_tool_warned=yes ;;
5967esac
5968 AR=$ac_ct_AR
5969 fi
5970fi
5971
5972: ${AR=ar}
5973: ${AR_FLAGS=cru}
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5986$as_echo_n "checking for archiver @FILE support... " >&6; }
5987if ${lt_cv_ar_at_file+:} false; then :
5988 $as_echo_n "(cached) " >&6
5989else
5990 lt_cv_ar_at_file=no
5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992/* end confdefs.h. */
5993
5994int
5995main ()
5996{
5997
5998 ;
5999 return 0;
6000}
6001_ACEOF
6002if ac_fn_c_try_compile "$LINENO"; then :
6003 echo conftest.$ac_objext > conftest.lst
6004 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6005 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6006 (eval $lt_ar_try) 2>&5
6007 ac_status=$?
6008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6009 test $ac_status = 0; }
6010 if test "$ac_status" -eq 0; then
6011 # Ensure the archiver fails upon bogus file names.
6012 rm -f conftest.$ac_objext libconftest.a
6013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6014 (eval $lt_ar_try) 2>&5
6015 ac_status=$?
6016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6017 test $ac_status = 0; }
6018 if test "$ac_status" -ne 0; then
6019 lt_cv_ar_at_file=@
6020 fi
6021 fi
6022 rm -f conftest.* libconftest.a
6023
6024fi
6025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6026
6027fi
6028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6029$as_echo "$lt_cv_ar_at_file" >&6; }
6030
6031if test "x$lt_cv_ar_at_file" = xno; then
6032 archiver_list_spec=
6033else
6034 archiver_list_spec=$lt_cv_ar_at_file
6035fi
6036
6037
6038
6039
6040
6041
6042
6043if test -n "$ac_tool_prefix"; then
6044 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6045set dummy ${ac_tool_prefix}strip; ac_word=$2
6046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6047$as_echo_n "checking for $ac_word... " >&6; }
6048if ${ac_cv_prog_STRIP+:} false; then :
6049 $as_echo_n "(cached) " >&6
6050else
6051 if test -n "$STRIP"; then
6052 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6053else
6054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055for as_dir in $PATH
6056do
6057 IFS=$as_save_IFS
6058 test -z "$as_dir" && as_dir=.
6059 for ac_exec_ext in '' $ac_executable_extensions; do
6060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6061 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6063 break 2
6064 fi
6065done
6066 done
6067IFS=$as_save_IFS
6068
6069fi
6070fi
6071STRIP=$ac_cv_prog_STRIP
6072if test -n "$STRIP"; then
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6074$as_echo "$STRIP" >&6; }
6075else
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6077$as_echo "no" >&6; }
6078fi
6079
6080
6081fi
6082if test -z "$ac_cv_prog_STRIP"; then
6083 ac_ct_STRIP=$STRIP
6084 # Extract the first word of "strip", so it can be a program name with args.
6085set dummy strip; ac_word=$2
6086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6087$as_echo_n "checking for $ac_word... " >&6; }
6088if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6089 $as_echo_n "(cached) " >&6
6090else
6091 if test -n "$ac_ct_STRIP"; then
6092 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6093else
6094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095for as_dir in $PATH
6096do
6097 IFS=$as_save_IFS
6098 test -z "$as_dir" && as_dir=.
6099 for ac_exec_ext in '' $ac_executable_extensions; do
6100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6101 ac_cv_prog_ac_ct_STRIP="strip"
6102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6103 break 2
6104 fi
6105done
6106 done
6107IFS=$as_save_IFS
6108
6109fi
6110fi
6111ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6112if test -n "$ac_ct_STRIP"; then
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6114$as_echo "$ac_ct_STRIP" >&6; }
6115else
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6117$as_echo "no" >&6; }
6118fi
6119
6120 if test "x$ac_ct_STRIP" = x; then
6121 STRIP=":"
6122 else
6123 case $cross_compiling:$ac_tool_warned in
6124yes:)
6125{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6126$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6127ac_tool_warned=yes ;;
6128esac
6129 STRIP=$ac_ct_STRIP
6130 fi
6131else
6132 STRIP="$ac_cv_prog_STRIP"
6133fi
6134
6135test -z "$STRIP" && STRIP=:
6136
6137
6138
6139
6140
6141
6142if test -n "$ac_tool_prefix"; then
6143 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6144set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6146$as_echo_n "checking for $ac_word... " >&6; }
6147if ${ac_cv_prog_RANLIB+:} false; then :
6148 $as_echo_n "(cached) " >&6
6149else
6150 if test -n "$RANLIB"; then
6151 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6152else
6153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154for as_dir in $PATH
6155do
6156 IFS=$as_save_IFS
6157 test -z "$as_dir" && as_dir=.
6158 for ac_exec_ext in '' $ac_executable_extensions; do
6159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6160 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6162 break 2
6163 fi
6164done
6165 done
6166IFS=$as_save_IFS
6167
6168fi
6169fi
6170RANLIB=$ac_cv_prog_RANLIB
6171if test -n "$RANLIB"; then
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6173$as_echo "$RANLIB" >&6; }
6174else
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6176$as_echo "no" >&6; }
6177fi
6178
6179
6180fi
6181if test -z "$ac_cv_prog_RANLIB"; then
6182 ac_ct_RANLIB=$RANLIB
6183 # Extract the first word of "ranlib", so it can be a program name with args.
6184set dummy ranlib; ac_word=$2
6185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6186$as_echo_n "checking for $ac_word... " >&6; }
6187if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6188 $as_echo_n "(cached) " >&6
6189else
6190 if test -n "$ac_ct_RANLIB"; then
6191 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6192else
6193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194for as_dir in $PATH
6195do
6196 IFS=$as_save_IFS
6197 test -z "$as_dir" && as_dir=.
6198 for ac_exec_ext in '' $ac_executable_extensions; do
6199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6200 ac_cv_prog_ac_ct_RANLIB="ranlib"
6201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6202 break 2
6203 fi
6204done
6205 done
6206IFS=$as_save_IFS
6207
6208fi
6209fi
6210ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6211if test -n "$ac_ct_RANLIB"; then
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6213$as_echo "$ac_ct_RANLIB" >&6; }
6214else
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6216$as_echo "no" >&6; }
6217fi
6218
6219 if test "x$ac_ct_RANLIB" = x; then
6220 RANLIB=":"
6221 else
6222 case $cross_compiling:$ac_tool_warned in
6223yes:)
6224{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6225$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6226ac_tool_warned=yes ;;
6227esac
6228 RANLIB=$ac_ct_RANLIB
6229 fi
6230else
6231 RANLIB="$ac_cv_prog_RANLIB"
6232fi
6233
6234test -z "$RANLIB" && RANLIB=:
6235
6236
6237
6238
6239
6240
6241# Determine commands to create old-style static archives.
6242old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6243old_postinstall_cmds='chmod 644 $oldlib'
6244old_postuninstall_cmds=
6245
6246if test -n "$RANLIB"; then
6247 case $host_os in
6248 openbsd*)
6249 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6250 ;;
6251 *)
6252 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6253 ;;
6254 esac
6255 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6256fi
6257
6258case $host_os in
6259 darwin*)
6260 lock_old_archive_extraction=yes ;;
6261 *)
6262 lock_old_archive_extraction=no ;;
6263esac
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303# If no C compiler was specified, use CC.
6304LTCC=${LTCC-"$CC"}
6305
6306# If no C compiler flags were specified, use CFLAGS.
6307LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6308
6309# Allow CC to be a program name with arguments.
6310compiler=$CC
6311
6312
6313# Check for command to grab the raw symbol name followed by C symbol from nm.
6314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6315$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6316if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6317 $as_echo_n "(cached) " >&6
6318else
6319
6320# These are sane defaults that work on at least a few old systems.
6321# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6322
6323# Character class describing NM global symbol codes.
6324symcode='[BCDEGRST]'
6325
6326# Regexp to match symbols that can be accessed directly from C.
6327sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6328
6329# Define system-specific variables.
6330case $host_os in
6331aix*)
6332 symcode='[BCDT]'
6333 ;;
6334cygwin* | mingw* | pw32* | cegcc*)
6335 symcode='[ABCDGISTW]'
6336 ;;
6337hpux*)
6338 if test "$host_cpu" = ia64; then
6339 symcode='[ABCDEGRST]'
6340 fi
6341 ;;
6342irix* | nonstopux*)
6343 symcode='[BCDEGRST]'
6344 ;;
6345osf*)
6346 symcode='[BCDEGQRST]'
6347 ;;
6348solaris*)
6349 symcode='[BDRT]'
6350 ;;
6351sco3.2v5*)
6352 symcode='[DT]'
6353 ;;
6354sysv4.2uw2*)
6355 symcode='[DT]'
6356 ;;
6357sysv5* | sco5v6* | unixware* | OpenUNIX*)
6358 symcode='[ABDT]'
6359 ;;
6360sysv4)
6361 symcode='[DFNSTU]'
6362 ;;
6363esac
6364
6365# If we're using GNU nm, then use its standard symbol codes.
6366case `$NM -V 2>&1` in
6367*GNU* | *'with BFD'*)
6368 symcode='[ABCDGIRSTW]' ;;
6369esac
6370
6371# Transform an extracted symbol line into a proper C declaration.
6372# Some systems (esp. on ia64) link data and code symbols differently,
6373# so use this general approach.
6374lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6375
6376# Transform an extracted symbol line into symbol name and symbol address
6377lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6378lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6379
6380# Handle CRLF in mingw tool chain
6381opt_cr=
6382case $build_os in
6383mingw*)
6384 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6385 ;;
6386esac
6387
6388# Try without a prefix underscore, then with it.
6389for ac_symprfx in "" "_"; do
6390
6391 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6392 symxfrm="\\1 $ac_symprfx\\2 \\2"
6393
6394 # Write the raw and C identifiers.
6395 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6396 # Fake it for dumpbin and say T for any non-static function
6397 # and D for any global variable.
6398 # Also find C++ and __fastcall symbols from MSVC++,
6399 # which start with @ or ?.
6400 lt_cv_sys_global_symbol_pipe="$AWK '"\
6401" {last_section=section; section=\$ 3};"\
6402" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6403" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6404" \$ 0!~/External *\|/{next};"\
6405" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6406" {if(hide[section]) next};"\
6407" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6408" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6409" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6410" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6411" ' prfx=^$ac_symprfx"
6412 else
6413 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6414 fi
6415 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6416
6417 # Check to see that the pipe works correctly.
6418 pipe_works=no
6419
6420 rm -f conftest*
6421 cat > conftest.$ac_ext <<_LT_EOF
6422#ifdef __cplusplus
6423extern "C" {
6424#endif
6425char nm_test_var;
6426void nm_test_func(void);
6427void nm_test_func(void){}
6428#ifdef __cplusplus
6429}
6430#endif
6431int main(){nm_test_var='a';nm_test_func();return(0);}
6432_LT_EOF
6433
6434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6435 (eval $ac_compile) 2>&5
6436 ac_status=$?
6437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6438 test $ac_status = 0; }; then
6439 # Now try to grab the symbols.
6440 nlist=conftest.nm
6441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6442 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6443 ac_status=$?
6444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6445 test $ac_status = 0; } && test -s "$nlist"; then
6446 # Try sorting and uniquifying the output.
6447 if sort "$nlist" | uniq > "$nlist"T; then
6448 mv -f "$nlist"T "$nlist"
6449 else
6450 rm -f "$nlist"T
6451 fi
6452
6453 # Make sure that we snagged all the symbols we need.
6454 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6455 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6456 cat <<_LT_EOF > conftest.$ac_ext
6457/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6458#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6459/* DATA imports from DLLs on WIN32 con't be const, because runtime
6460 relocations are performed -- see ld's documentation on pseudo-relocs. */
6461# define LT_DLSYM_CONST
6462#elif defined(__osf__)
6463/* This system does not cope well with relocations in const data. */
6464# define LT_DLSYM_CONST
6465#else
6466# define LT_DLSYM_CONST const
6467#endif
6468
6469#ifdef __cplusplus
6470extern "C" {
6471#endif
6472
6473_LT_EOF
6474 # Now generate the symbol file.
6475 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6476
6477 cat <<_LT_EOF >> conftest.$ac_ext
6478
6479/* The mapping between symbol names and symbols. */
6480LT_DLSYM_CONST struct {
6481 const char *name;
6482 void *address;
6483}
6484lt__PROGRAM__LTX_preloaded_symbols[] =
6485{
6486 { "@PROGRAM@", (void *) 0 },
6487_LT_EOF
6488 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6489 cat <<\_LT_EOF >> conftest.$ac_ext
6490 {0, (void *) 0}
6491};
6492
6493/* This works around a problem in FreeBSD linker */
6494#ifdef FREEBSD_WORKAROUND
6495static const void *lt_preloaded_setup() {
6496 return lt__PROGRAM__LTX_preloaded_symbols;
6497}
6498#endif
6499
6500#ifdef __cplusplus
6501}
6502#endif
6503_LT_EOF
6504 # Now try linking the two files.
6505 mv conftest.$ac_objext conftstm.$ac_objext
6506 lt_globsym_save_LIBS=$LIBS
6507 lt_globsym_save_CFLAGS=$CFLAGS
6508 LIBS="conftstm.$ac_objext"
6509 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6511 (eval $ac_link) 2>&5
6512 ac_status=$?
6513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6514 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6515 pipe_works=yes
6516 fi
6517 LIBS=$lt_globsym_save_LIBS
6518 CFLAGS=$lt_globsym_save_CFLAGS
6519 else
6520 echo "cannot find nm_test_func in $nlist" >&5
6521 fi
6522 else
6523 echo "cannot find nm_test_var in $nlist" >&5
6524 fi
6525 else
6526 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6527 fi
6528 else
6529 echo "$progname: failed program was:" >&5
6530 cat conftest.$ac_ext >&5
6531 fi
6532 rm -rf conftest* conftst*
6533
6534 # Do not use the global_symbol_pipe unless it works.
6535 if test "$pipe_works" = yes; then
6536 break
6537 else
6538 lt_cv_sys_global_symbol_pipe=
6539 fi
6540done
6541
6542fi
6543
6544if test -z "$lt_cv_sys_global_symbol_pipe"; then
6545 lt_cv_sys_global_symbol_to_cdecl=
6546fi
6547if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6549$as_echo "failed" >&6; }
6550else
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6552$as_echo "ok" >&6; }
6553fi
6554
6555# Response file support.
6556if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6557 nm_file_list_spec='@'
6558elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6559 nm_file_list_spec='@'
6560fi
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6589$as_echo_n "checking for sysroot... " >&6; }
6590
6591# Check whether --with-sysroot was given.
6592if test "${with_sysroot+set}" = set; then :
6593 withval=$with_sysroot;
6594else
6595 with_sysroot=no
6596fi
6597
6598
6599lt_sysroot=
6600case ${with_sysroot} in #(
6601 yes)
6602 if test "$GCC" = yes; then
6603 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6604 fi
6605 ;; #(
6606 /*)
6607 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6608 ;; #(
6609 no|'')
6610 ;; #(
6611 *)
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6613$as_echo "${with_sysroot}" >&6; }
6614 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6615 ;;
6616esac
6617
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6619$as_echo "${lt_sysroot:-no}" >&6; }
6620
6621
6622
6623
6624
6625# Check whether --enable-libtool-lock was given.
6626if test "${enable_libtool_lock+set}" = set; then :
6627 enableval=$enable_libtool_lock;
6628fi
6629
6630test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6631
6632# Some flags need to be propagated to the compiler or linker for good
6633# libtool support.
6634case $host in
6635ia64-*-hpux*)
6636 # Find out which ABI we are using.
6637 echo 'int i;' > conftest.$ac_ext
6638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6639 (eval $ac_compile) 2>&5
6640 ac_status=$?
6641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6642 test $ac_status = 0; }; then
6643 case `/usr/bin/file conftest.$ac_objext` in
6644 *ELF-32*)
6645 HPUX_IA64_MODE="32"
6646 ;;
6647 *ELF-64*)
6648 HPUX_IA64_MODE="64"
6649 ;;
6650 esac
6651 fi
6652 rm -rf conftest*
6653 ;;
6654*-*-irix6*)
6655 # Find out which ABI we are using.
6656 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6657 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6658 (eval $ac_compile) 2>&5
6659 ac_status=$?
6660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6661 test $ac_status = 0; }; then
6662 if test "$lt_cv_prog_gnu_ld" = yes; then
6663 case `/usr/bin/file conftest.$ac_objext` in
6664 *32-bit*)
6665 LD="${LD-ld} -melf32bsmip"
6666 ;;
6667 *N32*)
6668 LD="${LD-ld} -melf32bmipn32"
6669 ;;
6670 *64-bit*)
6671 LD="${LD-ld} -melf64bmip"
6672 ;;
6673 esac
6674 else
6675 case `/usr/bin/file conftest.$ac_objext` in
6676 *32-bit*)
6677 LD="${LD-ld} -32"
6678 ;;
6679 *N32*)
6680 LD="${LD-ld} -n32"
6681 ;;
6682 *64-bit*)
6683 LD="${LD-ld} -64"
6684 ;;
6685 esac
6686 fi
6687 fi
6688 rm -rf conftest*
6689 ;;
6690
6691x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6692s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6693 # Find out which ABI we are using.
6694 echo 'int i;' > conftest.$ac_ext
6695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6696 (eval $ac_compile) 2>&5
6697 ac_status=$?
6698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6699 test $ac_status = 0; }; then
6700 case `/usr/bin/file conftest.o` in
6701 *32-bit*)
6702 case $host in
6703 x86_64-*kfreebsd*-gnu)
6704 LD="${LD-ld} -m elf_i386_fbsd"
6705 ;;
6706 x86_64-*linux*)
6707 LD="${LD-ld} -m elf_i386"
6708 ;;
6709 ppc64-*linux*|powerpc64-*linux*)
6710 LD="${LD-ld} -m elf32ppclinux"
6711 ;;
6712 s390x-*linux*)
6713 LD="${LD-ld} -m elf_s390"
6714 ;;
6715 sparc64-*linux*)
6716 LD="${LD-ld} -m elf32_sparc"
6717 ;;
6718 esac
6719 ;;
6720 *64-bit*)
6721 case $host in
6722 x86_64-*kfreebsd*-gnu)
6723 LD="${LD-ld} -m elf_x86_64_fbsd"
6724 ;;
6725 x86_64-*linux*)
6726 LD="${LD-ld} -m elf_x86_64"
6727 ;;
6728 ppc*-*linux*|powerpc*-*linux*)
6729 LD="${LD-ld} -m elf64ppc"
6730 ;;
6731 s390*-*linux*|s390*-*tpf*)
6732 LD="${LD-ld} -m elf64_s390"
6733 ;;
6734 sparc*-*linux*)
6735 LD="${LD-ld} -m elf64_sparc"
6736 ;;
6737 esac
6738 ;;
6739 esac
6740 fi
6741 rm -rf conftest*
6742 ;;
6743
6744*-*-sco3.2v5*)
6745 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6746 SAVE_CFLAGS="$CFLAGS"
6747 CFLAGS="$CFLAGS -belf"
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6749$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6750if ${lt_cv_cc_needs_belf+:} false; then :
6751 $as_echo_n "(cached) " >&6
6752else
6753 ac_ext=c
6754ac_cpp='$CPP $CPPFLAGS'
6755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6757ac_compiler_gnu=$ac_cv_c_compiler_gnu
6758
6759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6760/* end confdefs.h. */
6761
6762int
6763main ()
6764{
6765
6766 ;
6767 return 0;
6768}
6769_ACEOF
6770if ac_fn_c_try_link "$LINENO"; then :
6771 lt_cv_cc_needs_belf=yes
6772else
6773 lt_cv_cc_needs_belf=no
6774fi
6775rm -f core conftest.err conftest.$ac_objext \
6776 conftest$ac_exeext conftest.$ac_ext
6777 ac_ext=c
6778ac_cpp='$CPP $CPPFLAGS'
6779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6781ac_compiler_gnu=$ac_cv_c_compiler_gnu
6782
6783fi
6784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6785$as_echo "$lt_cv_cc_needs_belf" >&6; }
6786 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6787 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6788 CFLAGS="$SAVE_CFLAGS"
6789 fi
6790 ;;
6791*-*solaris*)
6792 # Find out which ABI we are using.
6793 echo 'int i;' > conftest.$ac_ext
6794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6795 (eval $ac_compile) 2>&5
6796 ac_status=$?
6797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6798 test $ac_status = 0; }; then
6799 case `/usr/bin/file conftest.o` in
6800 *64-bit*)
6801 case $lt_cv_prog_gnu_ld in
6802 yes*)
6803 case $host in
6804 i?86-*-solaris*)
6805 LD="${LD-ld} -m elf_x86_64"
6806 ;;
6807 sparc*-*-solaris*)
6808 LD="${LD-ld} -m elf64_sparc"
6809 ;;
6810 esac
6811 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6812 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6813 LD="${LD-ld}_sol2"
6814 fi
6815 ;;
6816 *)
6817 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6818 LD="${LD-ld} -64"
6819 fi
6820 ;;
6821 esac
6822 ;;
6823 esac
6824 fi
6825 rm -rf conftest*
6826 ;;
6827esac
6828
6829need_locks="$enable_libtool_lock"
6830
6831if test -n "$ac_tool_prefix"; then
6832 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6833set dummy ${ac_tool_prefix}mt; ac_word=$2
6834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6835$as_echo_n "checking for $ac_word... " >&6; }
6836if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6837 $as_echo_n "(cached) " >&6
6838else
6839 if test -n "$MANIFEST_TOOL"; then
6840 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6841else
6842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843for as_dir in $PATH
6844do
6845 IFS=$as_save_IFS
6846 test -z "$as_dir" && as_dir=.
6847 for ac_exec_ext in '' $ac_executable_extensions; do
6848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6849 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6851 break 2
6852 fi
6853done
6854 done
6855IFS=$as_save_IFS
6856
6857fi
6858fi
6859MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6860if test -n "$MANIFEST_TOOL"; then
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6862$as_echo "$MANIFEST_TOOL" >&6; }
6863else
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6865$as_echo "no" >&6; }
6866fi
6867
6868
6869fi
6870if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6871 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6872 # Extract the first word of "mt", so it can be a program name with args.
6873set dummy mt; ac_word=$2
6874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6875$as_echo_n "checking for $ac_word... " >&6; }
6876if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6877 $as_echo_n "(cached) " >&6
6878else
6879 if test -n "$ac_ct_MANIFEST_TOOL"; then
6880 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6881else
6882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883for as_dir in $PATH
6884do
6885 IFS=$as_save_IFS
6886 test -z "$as_dir" && as_dir=.
6887 for ac_exec_ext in '' $ac_executable_extensions; do
6888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6889 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6891 break 2
6892 fi
6893done
6894 done
6895IFS=$as_save_IFS
6896
6897fi
6898fi
6899ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6900if test -n "$ac_ct_MANIFEST_TOOL"; then
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6902$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6903else
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6905$as_echo "no" >&6; }
6906fi
6907
6908 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6909 MANIFEST_TOOL=":"
6910 else
6911 case $cross_compiling:$ac_tool_warned in
6912yes:)
6913{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6914$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6915ac_tool_warned=yes ;;
6916esac
6917 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6918 fi
6919else
6920 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6921fi
6922
6923test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6925$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6926if ${lt_cv_path_mainfest_tool+:} false; then :
6927 $as_echo_n "(cached) " >&6
6928else
6929 lt_cv_path_mainfest_tool=no
6930 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6931 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6932 cat conftest.err >&5
6933 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6934 lt_cv_path_mainfest_tool=yes
6935 fi
6936 rm -f conftest*
6937fi
6938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6939$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6940if test "x$lt_cv_path_mainfest_tool" != xyes; then
6941 MANIFEST_TOOL=:
6942fi
6943
6944
6945
6946
6947
6948
6949 case $host_os in
6950 rhapsody* | darwin*)
6951 if test -n "$ac_tool_prefix"; then
6952 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6953set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6955$as_echo_n "checking for $ac_word... " >&6; }
6956if ${ac_cv_prog_DSYMUTIL+:} false; then :
6957 $as_echo_n "(cached) " >&6
6958else
6959 if test -n "$DSYMUTIL"; then
6960 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6961else
6962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963for as_dir in $PATH
6964do
6965 IFS=$as_save_IFS
6966 test -z "$as_dir" && as_dir=.
6967 for ac_exec_ext in '' $ac_executable_extensions; do
6968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6969 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6971 break 2
6972 fi
6973done
6974 done
6975IFS=$as_save_IFS
6976
6977fi
6978fi
6979DSYMUTIL=$ac_cv_prog_DSYMUTIL
6980if test -n "$DSYMUTIL"; then
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6982$as_echo "$DSYMUTIL" >&6; }
6983else
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6985$as_echo "no" >&6; }
6986fi
6987
6988
6989fi
6990if test -z "$ac_cv_prog_DSYMUTIL"; then
6991 ac_ct_DSYMUTIL=$DSYMUTIL
6992 # Extract the first word of "dsymutil", so it can be a program name with args.
6993set dummy dsymutil; ac_word=$2
6994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6995$as_echo_n "checking for $ac_word... " >&6; }
6996if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6997 $as_echo_n "(cached) " >&6
6998else
6999 if test -n "$ac_ct_DSYMUTIL"; then
7000 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7001else
7002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003for as_dir in $PATH
7004do
7005 IFS=$as_save_IFS
7006 test -z "$as_dir" && as_dir=.
7007 for ac_exec_ext in '' $ac_executable_extensions; do
7008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7009 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7011 break 2
7012 fi
7013done
7014 done
7015IFS=$as_save_IFS
7016
7017fi
7018fi
7019ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7020if test -n "$ac_ct_DSYMUTIL"; then
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7022$as_echo "$ac_ct_DSYMUTIL" >&6; }
7023else
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7025$as_echo "no" >&6; }
7026fi
7027
7028 if test "x$ac_ct_DSYMUTIL" = x; then
7029 DSYMUTIL=":"
7030 else
7031 case $cross_compiling:$ac_tool_warned in
7032yes:)
7033{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7034$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7035ac_tool_warned=yes ;;
7036esac
7037 DSYMUTIL=$ac_ct_DSYMUTIL
7038 fi
7039else
7040 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7041fi
7042
7043 if test -n "$ac_tool_prefix"; then
7044 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7045set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7047$as_echo_n "checking for $ac_word... " >&6; }
7048if ${ac_cv_prog_NMEDIT+:} false; then :
7049 $as_echo_n "(cached) " >&6
7050else
7051 if test -n "$NMEDIT"; then
7052 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7053else
7054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055for as_dir in $PATH
7056do
7057 IFS=$as_save_IFS
7058 test -z "$as_dir" && as_dir=.
7059 for ac_exec_ext in '' $ac_executable_extensions; do
7060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7061 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7063 break 2
7064 fi
7065done
7066 done
7067IFS=$as_save_IFS
7068
7069fi
7070fi
7071NMEDIT=$ac_cv_prog_NMEDIT
7072if test -n "$NMEDIT"; then
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7074$as_echo "$NMEDIT" >&6; }
7075else
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7077$as_echo "no" >&6; }
7078fi
7079
7080
7081fi
7082if test -z "$ac_cv_prog_NMEDIT"; then
7083 ac_ct_NMEDIT=$NMEDIT
7084 # Extract the first word of "nmedit", so it can be a program name with args.
7085set dummy nmedit; ac_word=$2
7086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7087$as_echo_n "checking for $ac_word... " >&6; }
7088if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7089 $as_echo_n "(cached) " >&6
7090else
7091 if test -n "$ac_ct_NMEDIT"; then
7092 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7093else
7094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095for as_dir in $PATH
7096do
7097 IFS=$as_save_IFS
7098 test -z "$as_dir" && as_dir=.
7099 for ac_exec_ext in '' $ac_executable_extensions; do
7100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7101 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7103 break 2
7104 fi
7105done
7106 done
7107IFS=$as_save_IFS
7108
7109fi
7110fi
7111ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7112if test -n "$ac_ct_NMEDIT"; then
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7114$as_echo "$ac_ct_NMEDIT" >&6; }
7115else
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7117$as_echo "no" >&6; }
7118fi
7119
7120 if test "x$ac_ct_NMEDIT" = x; then
7121 NMEDIT=":"
7122 else
7123 case $cross_compiling:$ac_tool_warned in
7124yes:)
7125{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7126$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7127ac_tool_warned=yes ;;
7128esac
7129 NMEDIT=$ac_ct_NMEDIT
7130 fi
7131else
7132 NMEDIT="$ac_cv_prog_NMEDIT"
7133fi
7134
7135 if test -n "$ac_tool_prefix"; then
7136 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7137set dummy ${ac_tool_prefix}lipo; ac_word=$2
7138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7139$as_echo_n "checking for $ac_word... " >&6; }
7140if ${ac_cv_prog_LIPO+:} false; then :
7141 $as_echo_n "(cached) " >&6
7142else
7143 if test -n "$LIPO"; then
7144 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7145else
7146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147for as_dir in $PATH
7148do
7149 IFS=$as_save_IFS
7150 test -z "$as_dir" && as_dir=.
7151 for ac_exec_ext in '' $ac_executable_extensions; do
7152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7153 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7155 break 2
7156 fi
7157done
7158 done
7159IFS=$as_save_IFS
7160
7161fi
7162fi
7163LIPO=$ac_cv_prog_LIPO
7164if test -n "$LIPO"; then
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7166$as_echo "$LIPO" >&6; }
7167else
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7169$as_echo "no" >&6; }
7170fi
7171
7172
7173fi
7174if test -z "$ac_cv_prog_LIPO"; then
7175 ac_ct_LIPO=$LIPO
7176 # Extract the first word of "lipo", so it can be a program name with args.
7177set dummy lipo; ac_word=$2
7178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7179$as_echo_n "checking for $ac_word... " >&6; }
7180if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7181 $as_echo_n "(cached) " >&6
7182else
7183 if test -n "$ac_ct_LIPO"; then
7184 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7185else
7186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187for as_dir in $PATH
7188do
7189 IFS=$as_save_IFS
7190 test -z "$as_dir" && as_dir=.
7191 for ac_exec_ext in '' $ac_executable_extensions; do
7192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7193 ac_cv_prog_ac_ct_LIPO="lipo"
7194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7195 break 2
7196 fi
7197done
7198 done
7199IFS=$as_save_IFS
7200
7201fi
7202fi
7203ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7204if test -n "$ac_ct_LIPO"; then
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7206$as_echo "$ac_ct_LIPO" >&6; }
7207else
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7209$as_echo "no" >&6; }
7210fi
7211
7212 if test "x$ac_ct_LIPO" = x; then
7213 LIPO=":"
7214 else
7215 case $cross_compiling:$ac_tool_warned in
7216yes:)
7217{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7218$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7219ac_tool_warned=yes ;;
7220esac
7221 LIPO=$ac_ct_LIPO
7222 fi
7223else
7224 LIPO="$ac_cv_prog_LIPO"
7225fi
7226
7227 if test -n "$ac_tool_prefix"; then
7228 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7229set dummy ${ac_tool_prefix}otool; ac_word=$2
7230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7231$as_echo_n "checking for $ac_word... " >&6; }
7232if ${ac_cv_prog_OTOOL+:} false; then :
7233 $as_echo_n "(cached) " >&6
7234else
7235 if test -n "$OTOOL"; then
7236 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7237else
7238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239for as_dir in $PATH
7240do
7241 IFS=$as_save_IFS
7242 test -z "$as_dir" && as_dir=.
7243 for ac_exec_ext in '' $ac_executable_extensions; do
7244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7245 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 break 2
7248 fi
7249done
7250 done
7251IFS=$as_save_IFS
7252
7253fi
7254fi
7255OTOOL=$ac_cv_prog_OTOOL
7256if test -n "$OTOOL"; then
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7258$as_echo "$OTOOL" >&6; }
7259else
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261$as_echo "no" >&6; }
7262fi
7263
7264
7265fi
7266if test -z "$ac_cv_prog_OTOOL"; then
7267 ac_ct_OTOOL=$OTOOL
7268 # Extract the first word of "otool", so it can be a program name with args.
7269set dummy otool; ac_word=$2
7270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7271$as_echo_n "checking for $ac_word... " >&6; }
7272if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7273 $as_echo_n "(cached) " >&6
7274else
7275 if test -n "$ac_ct_OTOOL"; then
7276 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7277else
7278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279for as_dir in $PATH
7280do
7281 IFS=$as_save_IFS
7282 test -z "$as_dir" && as_dir=.
7283 for ac_exec_ext in '' $ac_executable_extensions; do
7284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7285 ac_cv_prog_ac_ct_OTOOL="otool"
7286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7287 break 2
7288 fi
7289done
7290 done
7291IFS=$as_save_IFS
7292
7293fi
7294fi
7295ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7296if test -n "$ac_ct_OTOOL"; then
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7298$as_echo "$ac_ct_OTOOL" >&6; }
7299else
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7301$as_echo "no" >&6; }
7302fi
7303
7304 if test "x$ac_ct_OTOOL" = x; then
7305 OTOOL=":"
7306 else
7307 case $cross_compiling:$ac_tool_warned in
7308yes:)
7309{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7311ac_tool_warned=yes ;;
7312esac
7313 OTOOL=$ac_ct_OTOOL
7314 fi
7315else
7316 OTOOL="$ac_cv_prog_OTOOL"
7317fi
7318
7319 if test -n "$ac_tool_prefix"; then
7320 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7321set dummy ${ac_tool_prefix}otool64; ac_word=$2
7322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7323$as_echo_n "checking for $ac_word... " >&6; }
7324if ${ac_cv_prog_OTOOL64+:} false; then :
7325 $as_echo_n "(cached) " >&6
7326else
7327 if test -n "$OTOOL64"; then
7328 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7329else
7330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331for as_dir in $PATH
7332do
7333 IFS=$as_save_IFS
7334 test -z "$as_dir" && as_dir=.
7335 for ac_exec_ext in '' $ac_executable_extensions; do
7336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7337 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 break 2
7340 fi
7341done
7342 done
7343IFS=$as_save_IFS
7344
7345fi
7346fi
7347OTOOL64=$ac_cv_prog_OTOOL64
7348if test -n "$OTOOL64"; then
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7350$as_echo "$OTOOL64" >&6; }
7351else
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7353$as_echo "no" >&6; }
7354fi
7355
7356
7357fi
7358if test -z "$ac_cv_prog_OTOOL64"; then
7359 ac_ct_OTOOL64=$OTOOL64
7360 # Extract the first word of "otool64", so it can be a program name with args.
7361set dummy otool64; ac_word=$2
7362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7363$as_echo_n "checking for $ac_word... " >&6; }
7364if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7365 $as_echo_n "(cached) " >&6
7366else
7367 if test -n "$ac_ct_OTOOL64"; then
7368 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7369else
7370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371for as_dir in $PATH
7372do
7373 IFS=$as_save_IFS
7374 test -z "$as_dir" && as_dir=.
7375 for ac_exec_ext in '' $ac_executable_extensions; do
7376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7377 ac_cv_prog_ac_ct_OTOOL64="otool64"
7378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 break 2
7380 fi
7381done
7382 done
7383IFS=$as_save_IFS
7384
7385fi
7386fi
7387ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7388if test -n "$ac_ct_OTOOL64"; then
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7390$as_echo "$ac_ct_OTOOL64" >&6; }
7391else
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7393$as_echo "no" >&6; }
7394fi
7395
7396 if test "x$ac_ct_OTOOL64" = x; then
7397 OTOOL64=":"
7398 else
7399 case $cross_compiling:$ac_tool_warned in
7400yes:)
7401{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7402$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7403ac_tool_warned=yes ;;
7404esac
7405 OTOOL64=$ac_ct_OTOOL64
7406 fi
7407else
7408 OTOOL64="$ac_cv_prog_OTOOL64"
7409fi
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7438$as_echo_n "checking for -single_module linker flag... " >&6; }
7439if ${lt_cv_apple_cc_single_mod+:} false; then :
7440 $as_echo_n "(cached) " >&6
7441else
7442 lt_cv_apple_cc_single_mod=no
7443 if test -z "${LT_MULTI_MODULE}"; then
7444 # By default we will add the -single_module flag. You can override
7445 # by either setting the environment variable LT_MULTI_MODULE
7446 # non-empty at configure time, or by adding -multi_module to the
7447 # link flags.
7448 rm -rf libconftest.dylib*
7449 echo "int foo(void){return 1;}" > conftest.c
7450 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7451-dynamiclib -Wl,-single_module conftest.c" >&5
7452 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7453 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7454 _lt_result=$?
7455 # If there is a non-empty error log, and "single_module"
7456 # appears in it, assume the flag caused a linker warning
7457 if test -s conftest.err && $GREP single_module conftest.err; then
7458 cat conftest.err >&5
7459 # Otherwise, if the output was created with a 0 exit code from
7460 # the compiler, it worked.
7461 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7462 lt_cv_apple_cc_single_mod=yes
7463 else
7464 cat conftest.err >&5
7465 fi
7466 rm -rf libconftest.dylib*
7467 rm -f conftest.*
7468 fi
7469fi
7470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7471$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7472
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7474$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7475if ${lt_cv_ld_exported_symbols_list+:} false; then :
7476 $as_echo_n "(cached) " >&6
7477else
7478 lt_cv_ld_exported_symbols_list=no
7479 save_LDFLAGS=$LDFLAGS
7480 echo "_main" > conftest.sym
7481 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7483/* end confdefs.h. */
7484
7485int
7486main ()
7487{
7488
7489 ;
7490 return 0;
7491}
7492_ACEOF
7493if ac_fn_c_try_link "$LINENO"; then :
7494 lt_cv_ld_exported_symbols_list=yes
7495else
7496 lt_cv_ld_exported_symbols_list=no
7497fi
7498rm -f core conftest.err conftest.$ac_objext \
7499 conftest$ac_exeext conftest.$ac_ext
7500 LDFLAGS="$save_LDFLAGS"
7501
7502fi
7503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7504$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7505
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7507$as_echo_n "checking for -force_load linker flag... " >&6; }
7508if ${lt_cv_ld_force_load+:} false; then :
7509 $as_echo_n "(cached) " >&6
7510else
7511 lt_cv_ld_force_load=no
7512 cat > conftest.c << _LT_EOF
7513int forced_loaded() { return 2;}
7514_LT_EOF
7515 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7516 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7517 echo "$AR cru libconftest.a conftest.o" >&5
7518 $AR cru libconftest.a conftest.o 2>&5
7519 echo "$RANLIB libconftest.a" >&5
7520 $RANLIB libconftest.a 2>&5
7521 cat > conftest.c << _LT_EOF
7522int main() { return 0;}
7523_LT_EOF
7524 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7525 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7526 _lt_result=$?
7527 if test -s conftest.err && $GREP force_load conftest.err; then
7528 cat conftest.err >&5
7529 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7530 lt_cv_ld_force_load=yes
7531 else
7532 cat conftest.err >&5
7533 fi
7534 rm -f conftest.err libconftest.a conftest conftest.c
7535 rm -rf conftest.dSYM
7536
7537fi
7538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7539$as_echo "$lt_cv_ld_force_load" >&6; }
7540 case $host_os in
7541 rhapsody* | darwin1.[012])
7542 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7543 darwin1.*)
7544 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7545 darwin*) # darwin 5.x on
7546 # if running on 10.5 or later, the deployment target defaults
7547 # to the OS version, if on x86, and 10.4, the deployment
7548 # target defaults to 10.4. Don't you love it?
7549 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7550 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7551 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7552 10.[012]*)
7553 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7554 10.*)
7555 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7556 esac
7557 ;;
7558 esac
7559 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7560 _lt_dar_single_mod='$single_module'
7561 fi
7562 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7563 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7564 else
7565 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7566 fi
7567 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7568 _lt_dsymutil='~$DSYMUTIL $lib || :'
7569 else
7570 _lt_dsymutil=
7571 fi
7572 ;;
7573 esac
7574
7575
7576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7577$as_echo_n "checking for ANSI C header files... " >&6; }
7578if ${ac_cv_header_stdc+:} false; then :
7579 $as_echo_n "(cached) " >&6
7580else
7581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7582/* end confdefs.h. */
7583#include <stdlib.h>
7584#include <stdarg.h>
7585#include <string.h>
7586#include <float.h>
7587
7588int
7589main ()
7590{
7591
7592 ;
7593 return 0;
7594}
7595_ACEOF
7596if ac_fn_c_try_compile "$LINENO"; then :
7597 ac_cv_header_stdc=yes
7598else
7599 ac_cv_header_stdc=no
7600fi
7601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7602
7603if test $ac_cv_header_stdc = yes; then
7604 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7606/* end confdefs.h. */
7607#include <string.h>
7608
7609_ACEOF
7610if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7611 $EGREP "memchr" >/dev/null 2>&1; then :
7612
7613else
7614 ac_cv_header_stdc=no
7615fi
7616rm -f conftest*
7617
7618fi
7619
7620if test $ac_cv_header_stdc = yes; then
7621 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7623/* end confdefs.h. */
7624#include <stdlib.h>
7625
7626_ACEOF
7627if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7628 $EGREP "free" >/dev/null 2>&1; then :
7629
7630else
7631 ac_cv_header_stdc=no
7632fi
7633rm -f conftest*
7634
7635fi
7636
7637if test $ac_cv_header_stdc = yes; then
7638 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7639 if test "$cross_compiling" = yes; then :
7640 :
7641else
7642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7643/* end confdefs.h. */
7644#include <ctype.h>
7645#include <stdlib.h>
7646#if ((' ' & 0x0FF) == 0x020)
7647# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7648# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7649#else
7650# define ISLOWER(c) \
7651 (('a' <= (c) && (c) <= 'i') \
7652 || ('j' <= (c) && (c) <= 'r') \
7653 || ('s' <= (c) && (c) <= 'z'))
7654# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7655#endif
7656
7657#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7658int
7659main ()
7660{
7661 int i;
7662 for (i = 0; i < 256; i++)
7663 if (XOR (islower (i), ISLOWER (i))
7664 || toupper (i) != TOUPPER (i))
7665 return 2;
7666 return 0;
7667}
7668_ACEOF
7669if ac_fn_c_try_run "$LINENO"; then :
7670
7671else
7672 ac_cv_header_stdc=no
7673fi
7674rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7675 conftest.$ac_objext conftest.beam conftest.$ac_ext
7676fi
7677
7678fi
7679fi
7680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7681$as_echo "$ac_cv_header_stdc" >&6; }
7682if test $ac_cv_header_stdc = yes; then
7683
7684$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7685
7686fi
7687
7688# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7689for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7690 inttypes.h stdint.h unistd.h
7691do :
7692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7693ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7694"
7695if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7696 cat >>confdefs.h <<_ACEOF
7697#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7698_ACEOF
7699
7700fi
7701
7702done
7703
7704
7705for ac_header in dlfcn.h
7706do :
7707 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7708"
7709if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7710 cat >>confdefs.h <<_ACEOF
7711#define HAVE_DLFCN_H 1
7712_ACEOF
7713
7714fi
7715
7716done
7717
7718
7719
7720
7721
7722# Set options
7723enable_win32_dll=yes
7724
7725case $host in
7726*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7727 if test -n "$ac_tool_prefix"; then
7728 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7729set dummy ${ac_tool_prefix}as; ac_word=$2
7730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7731$as_echo_n "checking for $ac_word... " >&6; }
7732if ${ac_cv_prog_AS+:} false; then :
7733 $as_echo_n "(cached) " >&6
7734else
7735 if test -n "$AS"; then
7736 ac_cv_prog_AS="$AS" # Let the user override the test.
7737else
7738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739for as_dir in $PATH
7740do
7741 IFS=$as_save_IFS
7742 test -z "$as_dir" && as_dir=.
7743 for ac_exec_ext in '' $ac_executable_extensions; do
7744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7745 ac_cv_prog_AS="${ac_tool_prefix}as"
7746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7747 break 2
7748 fi
7749done
7750 done
7751IFS=$as_save_IFS
7752
7753fi
7754fi
7755AS=$ac_cv_prog_AS
7756if test -n "$AS"; then
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7758$as_echo "$AS" >&6; }
7759else
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7761$as_echo "no" >&6; }
7762fi
7763
7764
7765fi
7766if test -z "$ac_cv_prog_AS"; then
7767 ac_ct_AS=$AS
7768 # Extract the first word of "as", so it can be a program name with args.
7769set dummy as; ac_word=$2
7770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7771$as_echo_n "checking for $ac_word... " >&6; }
7772if ${ac_cv_prog_ac_ct_AS+:} false; then :
7773 $as_echo_n "(cached) " >&6
7774else
7775 if test -n "$ac_ct_AS"; then
7776 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7777else
7778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779for as_dir in $PATH
7780do
7781 IFS=$as_save_IFS
7782 test -z "$as_dir" && as_dir=.
7783 for ac_exec_ext in '' $ac_executable_extensions; do
7784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7785 ac_cv_prog_ac_ct_AS="as"
7786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7787 break 2
7788 fi
7789done
7790 done
7791IFS=$as_save_IFS
7792
7793fi
7794fi
7795ac_ct_AS=$ac_cv_prog_ac_ct_AS
7796if test -n "$ac_ct_AS"; then
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7798$as_echo "$ac_ct_AS" >&6; }
7799else
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801$as_echo "no" >&6; }
7802fi
7803
7804 if test "x$ac_ct_AS" = x; then
7805 AS="false"
7806 else
7807 case $cross_compiling:$ac_tool_warned in
7808yes:)
7809{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7810$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7811ac_tool_warned=yes ;;
7812esac
7813 AS=$ac_ct_AS
7814 fi
7815else
7816 AS="$ac_cv_prog_AS"
7817fi
7818
7819 if test -n "$ac_tool_prefix"; then
7820 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7821set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7823$as_echo_n "checking for $ac_word... " >&6; }
7824if ${ac_cv_prog_DLLTOOL+:} false; then :
7825 $as_echo_n "(cached) " >&6
7826else
7827 if test -n "$DLLTOOL"; then
7828 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7829else
7830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831for as_dir in $PATH
7832do
7833 IFS=$as_save_IFS
7834 test -z "$as_dir" && as_dir=.
7835 for ac_exec_ext in '' $ac_executable_extensions; do
7836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7837 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7839 break 2
7840 fi
7841done
7842 done
7843IFS=$as_save_IFS
7844
7845fi
7846fi
7847DLLTOOL=$ac_cv_prog_DLLTOOL
7848if test -n "$DLLTOOL"; then
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7850$as_echo "$DLLTOOL" >&6; }
7851else
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853$as_echo "no" >&6; }
7854fi
7855
7856
7857fi
7858if test -z "$ac_cv_prog_DLLTOOL"; then
7859 ac_ct_DLLTOOL=$DLLTOOL
7860 # Extract the first word of "dlltool", so it can be a program name with args.
7861set dummy dlltool; ac_word=$2
7862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7863$as_echo_n "checking for $ac_word... " >&6; }
7864if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7865 $as_echo_n "(cached) " >&6
7866else
7867 if test -n "$ac_ct_DLLTOOL"; then
7868 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7869else
7870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871for as_dir in $PATH
7872do
7873 IFS=$as_save_IFS
7874 test -z "$as_dir" && as_dir=.
7875 for ac_exec_ext in '' $ac_executable_extensions; do
7876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7877 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7879 break 2
7880 fi
7881done
7882 done
7883IFS=$as_save_IFS
7884
7885fi
7886fi
7887ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7888if test -n "$ac_ct_DLLTOOL"; then
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7890$as_echo "$ac_ct_DLLTOOL" >&6; }
7891else
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7893$as_echo "no" >&6; }
7894fi
7895
7896 if test "x$ac_ct_DLLTOOL" = x; then
7897 DLLTOOL="false"
7898 else
7899 case $cross_compiling:$ac_tool_warned in
7900yes:)
7901{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7902$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7903ac_tool_warned=yes ;;
7904esac
7905 DLLTOOL=$ac_ct_DLLTOOL
7906 fi
7907else
7908 DLLTOOL="$ac_cv_prog_DLLTOOL"
7909fi
7910
7911 if test -n "$ac_tool_prefix"; then
7912 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7913set dummy ${ac_tool_prefix}objdump; ac_word=$2
7914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7915$as_echo_n "checking for $ac_word... " >&6; }
7916if ${ac_cv_prog_OBJDUMP+:} false; then :
7917 $as_echo_n "(cached) " >&6
7918else
7919 if test -n "$OBJDUMP"; then
7920 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7921else
7922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923for as_dir in $PATH
7924do
7925 IFS=$as_save_IFS
7926 test -z "$as_dir" && as_dir=.
7927 for ac_exec_ext in '' $ac_executable_extensions; do
7928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7929 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7931 break 2
7932 fi
7933done
7934 done
7935IFS=$as_save_IFS
7936
7937fi
7938fi
7939OBJDUMP=$ac_cv_prog_OBJDUMP
7940if test -n "$OBJDUMP"; then
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7942$as_echo "$OBJDUMP" >&6; }
7943else
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945$as_echo "no" >&6; }
7946fi
7947
7948
7949fi
7950if test -z "$ac_cv_prog_OBJDUMP"; then
7951 ac_ct_OBJDUMP=$OBJDUMP
7952 # Extract the first word of "objdump", so it can be a program name with args.
7953set dummy objdump; ac_word=$2
7954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7955$as_echo_n "checking for $ac_word... " >&6; }
7956if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7957 $as_echo_n "(cached) " >&6
7958else
7959 if test -n "$ac_ct_OBJDUMP"; then
7960 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7961else
7962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963for as_dir in $PATH
7964do
7965 IFS=$as_save_IFS
7966 test -z "$as_dir" && as_dir=.
7967 for ac_exec_ext in '' $ac_executable_extensions; do
7968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7969 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7971 break 2
7972 fi
7973done
7974 done
7975IFS=$as_save_IFS
7976
7977fi
7978fi
7979ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7980if test -n "$ac_ct_OBJDUMP"; then
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7982$as_echo "$ac_ct_OBJDUMP" >&6; }
7983else
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7985$as_echo "no" >&6; }
7986fi
7987
7988 if test "x$ac_ct_OBJDUMP" = x; then
7989 OBJDUMP="false"
7990 else
7991 case $cross_compiling:$ac_tool_warned in
7992yes:)
7993{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7994$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7995ac_tool_warned=yes ;;
7996esac
7997 OBJDUMP=$ac_ct_OBJDUMP
7998 fi
7999else
8000 OBJDUMP="$ac_cv_prog_OBJDUMP"
8001fi
8002
8003 ;;
8004esac
8005
8006test -z "$AS" && AS=as
8007
8008
8009
8010
8011
8012test -z "$DLLTOOL" && DLLTOOL=dlltool
8013
8014
8015
8016
8017
8018test -z "$OBJDUMP" && OBJDUMP=objdump
8019
8020
8021
8022
8023
8024
8025
8026 enable_dlopen=no
8027
8028
8029
8030 # Check whether --enable-shared was given.
8031if test "${enable_shared+set}" = set; then :
8032 enableval=$enable_shared; p=${PACKAGE-default}
8033 case $enableval in
8034 yes) enable_shared=yes ;;
8035 no) enable_shared=no ;;
8036 *)
8037 enable_shared=no
8038 # Look at the argument we got. We use all the common list separators.
8039 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8040 for pkg in $enableval; do
8041 IFS="$lt_save_ifs"
8042 if test "X$pkg" = "X$p"; then
8043 enable_shared=yes
8044 fi
8045 done
8046 IFS="$lt_save_ifs"
8047 ;;
8048 esac
8049else
8050 enable_shared=yes
8051fi
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061 # Check whether --enable-static was given.
8062if test "${enable_static+set}" = set; then :
8063 enableval=$enable_static; p=${PACKAGE-default}
8064 case $enableval in
8065 yes) enable_static=yes ;;
8066 no) enable_static=no ;;
8067 *)
8068 enable_static=no
8069 # Look at the argument we got. We use all the common list separators.
8070 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8071 for pkg in $enableval; do
8072 IFS="$lt_save_ifs"
8073 if test "X$pkg" = "X$p"; then
8074 enable_static=yes
8075 fi
8076 done
8077 IFS="$lt_save_ifs"
8078 ;;
8079 esac
8080else
8081 enable_static=yes
8082fi
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093# Check whether --with-pic was given.
8094if test "${with_pic+set}" = set; then :
8095 withval=$with_pic; lt_p=${PACKAGE-default}
8096 case $withval in
8097 yes|no) pic_mode=$withval ;;
8098 *)
8099 pic_mode=default
8100 # Look at the argument we got. We use all the common list separators.
8101 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8102 for lt_pkg in $withval; do
8103 IFS="$lt_save_ifs"
8104 if test "X$lt_pkg" = "X$lt_p"; then
8105 pic_mode=yes
8106 fi
8107 done
8108 IFS="$lt_save_ifs"
8109 ;;
8110 esac
8111else
8112 pic_mode=default
8113fi
8114
8115
8116test -z "$pic_mode" && pic_mode=default
8117
8118
8119
8120
8121
8122
8123
8124 # Check whether --enable-fast-install was given.
8125if test "${enable_fast_install+set}" = set; then :
8126 enableval=$enable_fast_install; p=${PACKAGE-default}
8127 case $enableval in
8128 yes) enable_fast_install=yes ;;
8129 no) enable_fast_install=no ;;
8130 *)
8131 enable_fast_install=no
8132 # Look at the argument we got. We use all the common list separators.
8133 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8134 for pkg in $enableval; do
8135 IFS="$lt_save_ifs"
8136 if test "X$pkg" = "X$p"; then
8137 enable_fast_install=yes
8138 fi
8139 done
8140 IFS="$lt_save_ifs"
8141 ;;
8142 esac
8143else
8144 enable_fast_install=yes
8145fi
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157# This can be used to rebuild libtool when needed
8158LIBTOOL_DEPS="$ltmain"
8159
8160# Always use our own libtool.
8161LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192test -z "$LN_S" && LN_S="ln -s"
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207if test -n "${ZSH_VERSION+set}" ; then
8208 setopt NO_GLOB_SUBST
8209fi
8210
8211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8212$as_echo_n "checking for objdir... " >&6; }
8213if ${lt_cv_objdir+:} false; then :
8214 $as_echo_n "(cached) " >&6
8215else
8216 rm -f .libs 2>/dev/null
8217mkdir .libs 2>/dev/null
8218if test -d .libs; then
8219 lt_cv_objdir=.libs
8220else
8221 # MS-DOS does not allow filenames that begin with a dot.
8222 lt_cv_objdir=_libs
8223fi
8224rmdir .libs 2>/dev/null
8225fi
8226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8227$as_echo "$lt_cv_objdir" >&6; }
8228objdir=$lt_cv_objdir
8229
8230
8231
8232
8233
8234cat >>confdefs.h <<_ACEOF
8235#define LT_OBJDIR "$lt_cv_objdir/"
8236_ACEOF
8237
8238
8239
8240
8241case $host_os in
8242aix3*)
8243 # AIX sometimes has problems with the GCC collect2 program. For some
8244 # reason, if we set the COLLECT_NAMES environment variable, the problems
8245 # vanish in a puff of smoke.
8246 if test "X${COLLECT_NAMES+set}" != Xset; then
8247 COLLECT_NAMES=
8248 export COLLECT_NAMES
8249 fi
8250 ;;
8251esac
8252
8253# Global variables:
8254ofile=libtool
8255can_build_shared=yes
8256
8257# All known linkers require a `.a' archive for static linking (except MSVC,
8258# which needs '.lib').
8259libext=a
8260
8261with_gnu_ld="$lt_cv_prog_gnu_ld"
8262
8263old_CC="$CC"
8264old_CFLAGS="$CFLAGS"
8265
8266# Set sane defaults for various variables
8267test -z "$CC" && CC=cc
8268test -z "$LTCC" && LTCC=$CC
8269test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8270test -z "$LD" && LD=ld
8271test -z "$ac_objext" && ac_objext=o
8272
8273for cc_temp in $compiler""; do
8274 case $cc_temp in
8275 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8276 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8277 \-*) ;;
8278 *) break;;
8279 esac
8280done
8281cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8282
8283
8284# Only perform the check for file, if the check method requires it
8285test -z "$MAGIC_CMD" && MAGIC_CMD=file
8286case $deplibs_check_method in
8287file_magic*)
8288 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8290$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8291if ${lt_cv_path_MAGIC_CMD+:} false; then :
8292 $as_echo_n "(cached) " >&6
8293else
8294 case $MAGIC_CMD in
8295[\\/*] | ?:[\\/]*)
8296 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8297 ;;
8298*)
8299 lt_save_MAGIC_CMD="$MAGIC_CMD"
8300 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8301 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8302 for ac_dir in $ac_dummy; do
8303 IFS="$lt_save_ifs"
8304 test -z "$ac_dir" && ac_dir=.
8305 if test -f $ac_dir/${ac_tool_prefix}file; then
8306 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8307 if test -n "$file_magic_test_file"; then
8308 case $deplibs_check_method in
8309 "file_magic "*)
8310 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8311 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8312 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8313 $EGREP "$file_magic_regex" > /dev/null; then
8314 :
8315 else
8316 cat <<_LT_EOF 1>&2
8317
8318*** Warning: the command libtool uses to detect shared libraries,
8319*** $file_magic_cmd, produces output that libtool cannot recognize.
8320*** The result is that libtool may fail to recognize shared libraries
8321*** as such. This will affect the creation of libtool libraries that
8322*** depend on shared libraries, but programs linked with such libtool
8323*** libraries will work regardless of this problem. Nevertheless, you
8324*** may want to report the problem to your system manager and/or to
8325*** bug-libtool@gnu.org
8326
8327_LT_EOF
8328 fi ;;
8329 esac
8330 fi
8331 break
8332 fi
8333 done
8334 IFS="$lt_save_ifs"
8335 MAGIC_CMD="$lt_save_MAGIC_CMD"
8336 ;;
8337esac
8338fi
8339
8340MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8341if test -n "$MAGIC_CMD"; then
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8343$as_echo "$MAGIC_CMD" >&6; }
8344else
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8346$as_echo "no" >&6; }
8347fi
8348
8349
8350
8351
8352
8353if test -z "$lt_cv_path_MAGIC_CMD"; then
8354 if test -n "$ac_tool_prefix"; then
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8356$as_echo_n "checking for file... " >&6; }
8357if ${lt_cv_path_MAGIC_CMD+:} false; then :
8358 $as_echo_n "(cached) " >&6
8359else
8360 case $MAGIC_CMD in
8361[\\/*] | ?:[\\/]*)
8362 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8363 ;;
8364*)
8365 lt_save_MAGIC_CMD="$MAGIC_CMD"
8366 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8367 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8368 for ac_dir in $ac_dummy; do
8369 IFS="$lt_save_ifs"
8370 test -z "$ac_dir" && ac_dir=.
8371 if test -f $ac_dir/file; then
8372 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8373 if test -n "$file_magic_test_file"; then
8374 case $deplibs_check_method in
8375 "file_magic "*)
8376 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8377 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8378 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8379 $EGREP "$file_magic_regex" > /dev/null; then
8380 :
8381 else
8382 cat <<_LT_EOF 1>&2
8383
8384*** Warning: the command libtool uses to detect shared libraries,
8385*** $file_magic_cmd, produces output that libtool cannot recognize.
8386*** The result is that libtool may fail to recognize shared libraries
8387*** as such. This will affect the creation of libtool libraries that
8388*** depend on shared libraries, but programs linked with such libtool
8389*** libraries will work regardless of this problem. Nevertheless, you
8390*** may want to report the problem to your system manager and/or to
8391*** bug-libtool@gnu.org
8392
8393_LT_EOF
8394 fi ;;
8395 esac
8396 fi
8397 break
8398 fi
8399 done
8400 IFS="$lt_save_ifs"
8401 MAGIC_CMD="$lt_save_MAGIC_CMD"
8402 ;;
8403esac
8404fi
8405
8406MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8407if test -n "$MAGIC_CMD"; then
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8409$as_echo "$MAGIC_CMD" >&6; }
8410else
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8412$as_echo "no" >&6; }
8413fi
8414
8415
8416 else
8417 MAGIC_CMD=:
8418 fi
8419fi
8420
8421 fi
8422 ;;
8423esac
8424
8425# Use C for the default configuration in the libtool script
8426
8427lt_save_CC="$CC"
8428ac_ext=c
8429ac_cpp='$CPP $CPPFLAGS'
8430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8432ac_compiler_gnu=$ac_cv_c_compiler_gnu
8433
8434
8435# Source file extension for C test sources.
8436ac_ext=c
8437
8438# Object file extension for compiled C test sources.
8439objext=o
8440objext=$objext
8441
8442# Code to be used in simple compile tests
8443lt_simple_compile_test_code="int some_variable = 0;"
8444
8445# Code to be used in simple link tests
8446lt_simple_link_test_code='int main(){return(0);}'
8447
8448
8449
8450
8451
8452
8453
8454# If no C compiler was specified, use CC.
8455LTCC=${LTCC-"$CC"}
8456
8457# If no C compiler flags were specified, use CFLAGS.
8458LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8459
8460# Allow CC to be a program name with arguments.
8461compiler=$CC
8462
8463# Save the default compiler, since it gets overwritten when the other
8464# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8465compiler_DEFAULT=$CC
8466
8467# save warnings/boilerplate of simple test code
8468ac_outfile=conftest.$ac_objext
8469echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8470eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8471_lt_compiler_boilerplate=`cat conftest.err`
8472$RM conftest*
8473
8474ac_outfile=conftest.$ac_objext
8475echo "$lt_simple_link_test_code" >conftest.$ac_ext
8476eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8477_lt_linker_boilerplate=`cat conftest.err`
8478$RM -r conftest*
8479
8480
8481if test -n "$compiler"; then
8482
8483lt_prog_compiler_no_builtin_flag=
8484
8485if test "$GCC" = yes; then
8486 case $cc_basename in
8487 nvcc*)
8488 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8489 *)
8490 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8491 esac
8492
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8494$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8495if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8496 $as_echo_n "(cached) " >&6
8497else
8498 lt_cv_prog_compiler_rtti_exceptions=no
8499 ac_outfile=conftest.$ac_objext
8500 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8501 lt_compiler_flag="-fno-rtti -fno-exceptions"
8502 # Insert the option either (1) after the last *FLAGS variable, or
8503 # (2) before a word containing "conftest.", or (3) at the end.
8504 # Note that $ac_compile itself does not contain backslashes and begins
8505 # with a dollar sign (not a hyphen), so the echo should work correctly.
8506 # The option is referenced via a variable to avoid confusing sed.
8507 lt_compile=`echo "$ac_compile" | $SED \
8508 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8509 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8510 -e 's:$: $lt_compiler_flag:'`
8511 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8512 (eval "$lt_compile" 2>conftest.err)
8513 ac_status=$?
8514 cat conftest.err >&5
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 if (exit $ac_status) && test -s "$ac_outfile"; then
8517 # The compiler can only warn and ignore the option if not recognized
8518 # So say no if there are warnings other than the usual output.
8519 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8520 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8521 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8522 lt_cv_prog_compiler_rtti_exceptions=yes
8523 fi
8524 fi
8525 $RM conftest*
8526
8527fi
8528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8529$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8530
8531if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8532 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8533else
8534 :
8535fi
8536
8537fi
8538
8539
8540
8541
8542
8543
8544 lt_prog_compiler_wl=
8545lt_prog_compiler_pic=
8546lt_prog_compiler_static=
8547
8548
8549 if test "$GCC" = yes; then
8550 lt_prog_compiler_wl='-Wl,'
8551 lt_prog_compiler_static='-static'
8552
8553 case $host_os in
8554 aix*)
8555 # All AIX code is PIC.
8556 if test "$host_cpu" = ia64; then
8557 # AIX 5 now supports IA64 processor
8558 lt_prog_compiler_static='-Bstatic'
8559 fi
8560 ;;
8561
8562 amigaos*)
8563 case $host_cpu in
8564 powerpc)
8565 # see comment about AmigaOS4 .so support
8566 lt_prog_compiler_pic='-fPIC'
8567 ;;
8568 m68k)
8569 # FIXME: we need at least 68020 code to build shared libraries, but
8570 # adding the `-m68020' flag to GCC prevents building anything better,
8571 # like `-m68040'.
8572 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8573 ;;
8574 esac
8575 ;;
8576
8577 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8578 # PIC is the default for these OSes.
8579 ;;
8580
8581 mingw* | cygwin* | pw32* | os2* | cegcc*)
8582 # This hack is so that the source file can tell whether it is being
8583 # built for inclusion in a dll (and should export symbols for example).
8584 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8585 # (--disable-auto-import) libraries
8586 lt_prog_compiler_pic='-DDLL_EXPORT'
8587 ;;
8588
8589 darwin* | rhapsody*)
8590 # PIC is the default on this platform
8591 # Common symbols not allowed in MH_DYLIB files
8592 lt_prog_compiler_pic='-fno-common'
8593 ;;
8594
8595 haiku*)
8596 # PIC is the default for Haiku.
8597 # The "-static" flag exists, but is broken.
8598 lt_prog_compiler_static=
8599 ;;
8600
8601 hpux*)
8602 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8603 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8604 # sets the default TLS model and affects inlining.
8605 case $host_cpu in
8606 hppa*64*)
8607 # +Z the default
8608 ;;
8609 *)
8610 lt_prog_compiler_pic='-fPIC'
8611 ;;
8612 esac
8613 ;;
8614
8615 interix[3-9]*)
8616 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8617 # Instead, we relocate shared libraries at runtime.
8618 ;;
8619
8620 msdosdjgpp*)
8621 # Just because we use GCC doesn't mean we suddenly get shared libraries
8622 # on systems that don't support them.
8623 lt_prog_compiler_can_build_shared=no
8624 enable_shared=no
8625 ;;
8626
8627 *nto* | *qnx*)
8628 # QNX uses GNU C++, but need to define -shared option too, otherwise
8629 # it will coredump.
8630 lt_prog_compiler_pic='-fPIC -shared'
8631 ;;
8632
8633 sysv4*MP*)
8634 if test -d /usr/nec; then
8635 lt_prog_compiler_pic=-Kconform_pic
8636 fi
8637 ;;
8638
8639 *)
8640 lt_prog_compiler_pic='-fPIC'
8641 ;;
8642 esac
8643
8644 case $cc_basename in
8645 nvcc*) # Cuda Compiler Driver 2.2
8646 lt_prog_compiler_wl='-Xlinker '
8647 if test -n "$lt_prog_compiler_pic"; then
8648 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8649 fi
8650 ;;
8651 esac
8652 else
8653 # PORTME Check for flag to pass linker flags through the system compiler.
8654 case $host_os in
8655 aix*)
8656 lt_prog_compiler_wl='-Wl,'
8657 if test "$host_cpu" = ia64; then
8658 # AIX 5 now supports IA64 processor
8659 lt_prog_compiler_static='-Bstatic'
8660 else
8661 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8662 fi
8663 ;;
8664
8665 mingw* | cygwin* | pw32* | os2* | cegcc*)
8666 # This hack is so that the source file can tell whether it is being
8667 # built for inclusion in a dll (and should export symbols for example).
8668 lt_prog_compiler_pic='-DDLL_EXPORT'
8669 ;;
8670
8671 hpux9* | hpux10* | hpux11*)
8672 lt_prog_compiler_wl='-Wl,'
8673 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8674 # not for PA HP-UX.
8675 case $host_cpu in
8676 hppa*64*|ia64*)
8677 # +Z the default
8678 ;;
8679 *)
8680 lt_prog_compiler_pic='+Z'
8681 ;;
8682 esac
8683 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8684 lt_prog_compiler_static='${wl}-a ${wl}archive'
8685 ;;
8686
8687 irix5* | irix6* | nonstopux*)
8688 lt_prog_compiler_wl='-Wl,'
8689 # PIC (with -KPIC) is the default.
8690 lt_prog_compiler_static='-non_shared'
8691 ;;
8692
8693 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8694 case $cc_basename in
8695 # old Intel for x86_64 which still supported -KPIC.
8696 ecc*)
8697 lt_prog_compiler_wl='-Wl,'
8698 lt_prog_compiler_pic='-KPIC'
8699 lt_prog_compiler_static='-static'
8700 ;;
8701 # icc used to be incompatible with GCC.
8702 # ICC 10 doesn't accept -KPIC any more.
8703 icc* | ifort*)
8704 lt_prog_compiler_wl='-Wl,'
8705 lt_prog_compiler_pic='-fPIC'
8706 lt_prog_compiler_static='-static'
8707 ;;
8708 # Lahey Fortran 8.1.
8709 lf95*)
8710 lt_prog_compiler_wl='-Wl,'
8711 lt_prog_compiler_pic='--shared'
8712 lt_prog_compiler_static='--static'
8713 ;;
8714 nagfor*)
8715 # NAG Fortran compiler
8716 lt_prog_compiler_wl='-Wl,-Wl,,'
8717 lt_prog_compiler_pic='-PIC'
8718 lt_prog_compiler_static='-Bstatic'
8719 ;;
8720 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8721 # Portland Group compilers (*not* the Pentium gcc compiler,
8722 # which looks to be a dead project)
8723 lt_prog_compiler_wl='-Wl,'
8724 lt_prog_compiler_pic='-fpic'
8725 lt_prog_compiler_static='-Bstatic'
8726 ;;
8727 ccc*)
8728 lt_prog_compiler_wl='-Wl,'
8729 # All Alpha code is PIC.
8730 lt_prog_compiler_static='-non_shared'
8731 ;;
8732 xl* | bgxl* | bgf* | mpixl*)
8733 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8734 lt_prog_compiler_wl='-Wl,'
8735 lt_prog_compiler_pic='-qpic'
8736 lt_prog_compiler_static='-qstaticlink'
8737 ;;
8738 *)
8739 case `$CC -V 2>&1 | sed 5q` in
8740 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8741 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8742 lt_prog_compiler_pic='-KPIC'
8743 lt_prog_compiler_static='-Bstatic'
8744 lt_prog_compiler_wl=''
8745 ;;
8746 *Sun\ F* | *Sun*Fortran*)
8747 lt_prog_compiler_pic='-KPIC'
8748 lt_prog_compiler_static='-Bstatic'
8749 lt_prog_compiler_wl='-Qoption ld '
8750 ;;
8751 *Sun\ C*)
8752 # Sun C 5.9
8753 lt_prog_compiler_pic='-KPIC'
8754 lt_prog_compiler_static='-Bstatic'
8755 lt_prog_compiler_wl='-Wl,'
8756 ;;
8757 *Intel*\ [CF]*Compiler*)
8758 lt_prog_compiler_wl='-Wl,'
8759 lt_prog_compiler_pic='-fPIC'
8760 lt_prog_compiler_static='-static'
8761 ;;
8762 *Portland\ Group*)
8763 lt_prog_compiler_wl='-Wl,'
8764 lt_prog_compiler_pic='-fpic'
8765 lt_prog_compiler_static='-Bstatic'
8766 ;;
8767 esac
8768 ;;
8769 esac
8770 ;;
8771
8772 newsos6)
8773 lt_prog_compiler_pic='-KPIC'
8774 lt_prog_compiler_static='-Bstatic'
8775 ;;
8776
8777 *nto* | *qnx*)
8778 # QNX uses GNU C++, but need to define -shared option too, otherwise
8779 # it will coredump.
8780 lt_prog_compiler_pic='-fPIC -shared'
8781 ;;
8782
8783 osf3* | osf4* | osf5*)
8784 lt_prog_compiler_wl='-Wl,'
8785 # All OSF/1 code is PIC.
8786 lt_prog_compiler_static='-non_shared'
8787 ;;
8788
8789 rdos*)
8790 lt_prog_compiler_static='-non_shared'
8791 ;;
8792
8793 solaris*)
8794 lt_prog_compiler_pic='-KPIC'
8795 lt_prog_compiler_static='-Bstatic'
8796 case $cc_basename in
8797 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8798 lt_prog_compiler_wl='-Qoption ld ';;
8799 *)
8800 lt_prog_compiler_wl='-Wl,';;
8801 esac
8802 ;;
8803
8804 sunos4*)
8805 lt_prog_compiler_wl='-Qoption ld '
8806 lt_prog_compiler_pic='-PIC'
8807 lt_prog_compiler_static='-Bstatic'
8808 ;;
8809
8810 sysv4 | sysv4.2uw2* | sysv4.3*)
8811 lt_prog_compiler_wl='-Wl,'
8812 lt_prog_compiler_pic='-KPIC'
8813 lt_prog_compiler_static='-Bstatic'
8814 ;;
8815
8816 sysv4*MP*)
8817 if test -d /usr/nec ;then
8818 lt_prog_compiler_pic='-Kconform_pic'
8819 lt_prog_compiler_static='-Bstatic'
8820 fi
8821 ;;
8822
8823 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8824 lt_prog_compiler_wl='-Wl,'
8825 lt_prog_compiler_pic='-KPIC'
8826 lt_prog_compiler_static='-Bstatic'
8827 ;;
8828
8829 unicos*)
8830 lt_prog_compiler_wl='-Wl,'
8831 lt_prog_compiler_can_build_shared=no
8832 ;;
8833
8834 uts4*)
8835 lt_prog_compiler_pic='-pic'
8836 lt_prog_compiler_static='-Bstatic'
8837 ;;
8838
8839 *)
8840 lt_prog_compiler_can_build_shared=no
8841 ;;
8842 esac
8843 fi
8844
8845case $host_os in
8846 # For platforms which do not support PIC, -DPIC is meaningless:
8847 *djgpp*)
8848 lt_prog_compiler_pic=
8849 ;;
8850 *)
8851 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8852 ;;
8853esac
8854
8855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8856$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8857if ${lt_cv_prog_compiler_pic+:} false; then :
8858 $as_echo_n "(cached) " >&6
8859else
8860 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8861fi
8862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8863$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8864lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8865
8866#
8867# Check to make sure the PIC flag actually works.
8868#
8869if test -n "$lt_prog_compiler_pic"; then
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8871$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8872if ${lt_cv_prog_compiler_pic_works+:} false; then :
8873 $as_echo_n "(cached) " >&6
8874else
8875 lt_cv_prog_compiler_pic_works=no
8876 ac_outfile=conftest.$ac_objext
8877 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8878 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8879 # Insert the option either (1) after the last *FLAGS variable, or
8880 # (2) before a word containing "conftest.", or (3) at the end.
8881 # Note that $ac_compile itself does not contain backslashes and begins
8882 # with a dollar sign (not a hyphen), so the echo should work correctly.
8883 # The option is referenced via a variable to avoid confusing sed.
8884 lt_compile=`echo "$ac_compile" | $SED \
8885 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8886 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8887 -e 's:$: $lt_compiler_flag:'`
8888 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8889 (eval "$lt_compile" 2>conftest.err)
8890 ac_status=$?
8891 cat conftest.err >&5
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 if (exit $ac_status) && test -s "$ac_outfile"; then
8894 # The compiler can only warn and ignore the option if not recognized
8895 # So say no if there are warnings other than the usual output.
8896 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8897 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8898 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8899 lt_cv_prog_compiler_pic_works=yes
8900 fi
8901 fi
8902 $RM conftest*
8903
8904fi
8905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8906$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8907
8908if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8909 case $lt_prog_compiler_pic in
8910 "" | " "*) ;;
8911 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8912 esac
8913else
8914 lt_prog_compiler_pic=
8915 lt_prog_compiler_can_build_shared=no
8916fi
8917
8918fi
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930#
8931# Check to make sure the static flag actually works.
8932#
8933wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8935$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8936if ${lt_cv_prog_compiler_static_works+:} false; then :
8937 $as_echo_n "(cached) " >&6
8938else
8939 lt_cv_prog_compiler_static_works=no
8940 save_LDFLAGS="$LDFLAGS"
8941 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8942 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8943 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8944 # The linker can only warn and ignore the option if not recognized
8945 # So say no if there are warnings
8946 if test -s conftest.err; then
8947 # Append any errors to the config.log.
8948 cat conftest.err 1>&5
8949 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8950 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8951 if diff conftest.exp conftest.er2 >/dev/null; then
8952 lt_cv_prog_compiler_static_works=yes
8953 fi
8954 else
8955 lt_cv_prog_compiler_static_works=yes
8956 fi
8957 fi
8958 $RM -r conftest*
8959 LDFLAGS="$save_LDFLAGS"
8960
8961fi
8962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8963$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8964
8965if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8966 :
8967else
8968 lt_prog_compiler_static=
8969fi
8970
8971
8972
8973
8974
8975
8976
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8978$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8979if ${lt_cv_prog_compiler_c_o+:} false; then :
8980 $as_echo_n "(cached) " >&6
8981else
8982 lt_cv_prog_compiler_c_o=no
8983 $RM -r conftest 2>/dev/null
8984 mkdir conftest
8985 cd conftest
8986 mkdir out
8987 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8988
8989 lt_compiler_flag="-o out/conftest2.$ac_objext"
8990 # Insert the option either (1) after the last *FLAGS variable, or
8991 # (2) before a word containing "conftest.", or (3) at the end.
8992 # Note that $ac_compile itself does not contain backslashes and begins
8993 # with a dollar sign (not a hyphen), so the echo should work correctly.
8994 lt_compile=`echo "$ac_compile" | $SED \
8995 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8996 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8997 -e 's:$: $lt_compiler_flag:'`
8998 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8999 (eval "$lt_compile" 2>out/conftest.err)
9000 ac_status=$?
9001 cat out/conftest.err >&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9004 then
9005 # The compiler can only warn and ignore the option if not recognized
9006 # So say no if there are warnings
9007 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9008 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9009 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9010 lt_cv_prog_compiler_c_o=yes
9011 fi
9012 fi
9013 chmod u+w . 2>&5
9014 $RM conftest*
9015 # SGI C++ compiler will create directory out/ii_files/ for
9016 # template instantiation
9017 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9018 $RM out/* && rmdir out
9019 cd ..
9020 $RM -r conftest
9021 $RM conftest*
9022
9023fi
9024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9025$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9026
9027
9028
9029
9030
9031
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9033$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9034if ${lt_cv_prog_compiler_c_o+:} false; then :
9035 $as_echo_n "(cached) " >&6
9036else
9037 lt_cv_prog_compiler_c_o=no
9038 $RM -r conftest 2>/dev/null
9039 mkdir conftest
9040 cd conftest
9041 mkdir out
9042 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9043
9044 lt_compiler_flag="-o out/conftest2.$ac_objext"
9045 # Insert the option either (1) after the last *FLAGS variable, or
9046 # (2) before a word containing "conftest.", or (3) at the end.
9047 # Note that $ac_compile itself does not contain backslashes and begins
9048 # with a dollar sign (not a hyphen), so the echo should work correctly.
9049 lt_compile=`echo "$ac_compile" | $SED \
9050 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9051 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9052 -e 's:$: $lt_compiler_flag:'`
9053 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9054 (eval "$lt_compile" 2>out/conftest.err)
9055 ac_status=$?
9056 cat out/conftest.err >&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9059 then
9060 # The compiler can only warn and ignore the option if not recognized
9061 # So say no if there are warnings
9062 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9063 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9064 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9065 lt_cv_prog_compiler_c_o=yes
9066 fi
9067 fi
9068 chmod u+w . 2>&5
9069 $RM conftest*
9070 # SGI C++ compiler will create directory out/ii_files/ for
9071 # template instantiation
9072 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9073 $RM out/* && rmdir out
9074 cd ..
9075 $RM -r conftest
9076 $RM conftest*
9077
9078fi
9079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9080$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9081
9082
9083
9084
9085hard_links="nottested"
9086if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9087 # do not overwrite the value of need_locks provided by the user
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9089$as_echo_n "checking if we can lock with hard links... " >&6; }
9090 hard_links=yes
9091 $RM conftest*
9092 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9093 touch conftest.a
9094 ln conftest.a conftest.b 2>&5 || hard_links=no
9095 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9097$as_echo "$hard_links" >&6; }
9098 if test "$hard_links" = no; then
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9100$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9101 need_locks=warn
9102 fi
9103else
9104 need_locks=no
9105fi
9106
9107
9108
9109
9110
9111
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9113$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9114
9115 runpath_var=
9116 allow_undefined_flag=
9117 always_export_symbols=no
9118 archive_cmds=
9119 archive_expsym_cmds=
9120 compiler_needs_object=no
9121 enable_shared_with_static_runtimes=no
9122 export_dynamic_flag_spec=
9123 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9124 hardcode_automatic=no
9125 hardcode_direct=no
9126 hardcode_direct_absolute=no
9127 hardcode_libdir_flag_spec=
9128 hardcode_libdir_separator=
9129 hardcode_minus_L=no
9130 hardcode_shlibpath_var=unsupported
9131 inherit_rpath=no
9132 link_all_deplibs=unknown
9133 module_cmds=
9134 module_expsym_cmds=
9135 old_archive_from_new_cmds=
9136 old_archive_from_expsyms_cmds=
9137 thread_safe_flag_spec=
9138 whole_archive_flag_spec=
9139 # include_expsyms should be a list of space-separated symbols to be *always*
9140 # included in the symbol list
9141 include_expsyms=
9142 # exclude_expsyms can be an extended regexp of symbols to exclude
9143 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9144 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9145 # as well as any symbol that contains `d'.
9146 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9147 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9148 # platforms (ab)use it in PIC code, but their linkers get confused if
9149 # the symbol is explicitly referenced. Since portable code cannot
9150 # rely on this symbol name, it's probably fine to never include it in
9151 # preloaded symbol tables.
9152 # Exclude shared library initialization/finalization symbols.
9153 extract_expsyms_cmds=
9154
9155 case $host_os in
9156 cygwin* | mingw* | pw32* | cegcc*)
9157 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9158 # When not using gcc, we currently assume that we are using
9159 # Microsoft Visual C++.
9160 if test "$GCC" != yes; then
9161 with_gnu_ld=no
9162 fi
9163 ;;
9164 interix*)
9165 # we just hope/assume this is gcc and not c89 (= MSVC++)
9166 with_gnu_ld=yes
9167 ;;
9168 openbsd*)
9169 with_gnu_ld=no
9170 ;;
9171 esac
9172
9173 ld_shlibs=yes
9174
9175 # On some targets, GNU ld is compatible enough with the native linker
9176 # that we're better off using the native interface for both.
9177 lt_use_gnu_ld_interface=no
9178 if test "$with_gnu_ld" = yes; then
9179 case $host_os in
9180 aix*)
9181 # The AIX port of GNU ld has always aspired to compatibility
9182 # with the native linker. However, as the warning in the GNU ld
9183 # block says, versions before 2.19.5* couldn't really create working
9184 # shared libraries, regardless of the interface used.
9185 case `$LD -v 2>&1` in
9186 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9187 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9188 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9189 *)
9190 lt_use_gnu_ld_interface=yes
9191 ;;
9192 esac
9193 ;;
9194 *)
9195 lt_use_gnu_ld_interface=yes
9196 ;;
9197 esac
9198 fi
9199
9200 if test "$lt_use_gnu_ld_interface" = yes; then
9201 # If archive_cmds runs LD, not CC, wlarc should be empty
9202 wlarc='${wl}'
9203
9204 # Set some defaults for GNU ld with shared library support. These
9205 # are reset later if shared libraries are not supported. Putting them
9206 # here allows them to be overridden if necessary.
9207 runpath_var=LD_RUN_PATH
9208 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9209 export_dynamic_flag_spec='${wl}--export-dynamic'
9210 # ancient GNU ld didn't support --whole-archive et. al.
9211 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9212 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9213 else
9214 whole_archive_flag_spec=
9215 fi
9216 supports_anon_versioning=no
9217 case `$LD -v 2>&1` in
9218 *GNU\ gold*) supports_anon_versioning=yes ;;
9219 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9220 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9221 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9222 *\ 2.11.*) ;; # other 2.11 versions
9223 *) supports_anon_versioning=yes ;;
9224 esac
9225
9226 # See if GNU ld supports shared libraries.
9227 case $host_os in
9228 aix[3-9]*)
9229 # On AIX/PPC, the GNU linker is very broken
9230 if test "$host_cpu" != ia64; then
9231 ld_shlibs=no
9232 cat <<_LT_EOF 1>&2
9233
9234*** Warning: the GNU linker, at least up to release 2.19, is reported
9235*** to be unable to reliably create shared libraries on AIX.
9236*** Therefore, libtool is disabling shared libraries support. If you
9237*** really care for shared libraries, you may want to install binutils
9238*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9239*** You will then need to restart the configuration process.
9240
9241_LT_EOF
9242 fi
9243 ;;
9244
9245 amigaos*)
9246 case $host_cpu in
9247 powerpc)
9248 # see comment about AmigaOS4 .so support
9249 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9250 archive_expsym_cmds=''
9251 ;;
9252 m68k)
9253 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)'
9254 hardcode_libdir_flag_spec='-L$libdir'
9255 hardcode_minus_L=yes
9256 ;;
9257 esac
9258 ;;
9259
9260 beos*)
9261 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9262 allow_undefined_flag=unsupported
9263 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9264 # support --undefined. This deserves some investigation. FIXME
9265 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9266 else
9267 ld_shlibs=no
9268 fi
9269 ;;
9270
9271 cygwin* | mingw* | pw32* | cegcc*)
9272 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9273 # as there is no search path for DLLs.
9274 hardcode_libdir_flag_spec='-L$libdir'
9275 export_dynamic_flag_spec='${wl}--export-all-symbols'
9276 allow_undefined_flag=unsupported
9277 always_export_symbols=no
9278 enable_shared_with_static_runtimes=yes
9279 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'
9280 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9281
9282 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9283 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9284 # If the export-symbols file already is a .def file (1st line
9285 # is EXPORTS), use it as is; otherwise, prepend...
9286 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9287 cp $export_symbols $output_objdir/$soname.def;
9288 else
9289 echo EXPORTS > $output_objdir/$soname.def;
9290 cat $export_symbols >> $output_objdir/$soname.def;
9291 fi~
9292 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9293 else
9294 ld_shlibs=no
9295 fi
9296 ;;
9297
9298 haiku*)
9299 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9300 link_all_deplibs=yes
9301 ;;
9302
9303 interix[3-9]*)
9304 hardcode_direct=no
9305 hardcode_shlibpath_var=no
9306 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9307 export_dynamic_flag_spec='${wl}-E'
9308 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9309 # Instead, shared libraries are loaded at an image base (0x10000000 by
9310 # default) and relocated if they conflict, which is a slow very memory
9311 # consuming and fragmenting process. To avoid this, we pick a random,
9312 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9313 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9314 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9315 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'
9316 ;;
9317
9318 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9319 tmp_diet=no
9320 if test "$host_os" = linux-dietlibc; then
9321 case $cc_basename in
9322 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9323 esac
9324 fi
9325 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9326 && test "$tmp_diet" = no
9327 then
9328 tmp_addflag=' $pic_flag'
9329 tmp_sharedflag='-shared'
9330 case $cc_basename,$host_cpu in
9331 pgcc*) # Portland Group C compiler
9332 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'
9333 tmp_addflag=' $pic_flag'
9334 ;;
9335 pgf77* | pgf90* | pgf95* | pgfortran*)
9336 # Portland Group f77 and f90 compilers
9337 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'
9338 tmp_addflag=' $pic_flag -Mnomain' ;;
9339 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9340 tmp_addflag=' -i_dynamic' ;;
9341 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9342 tmp_addflag=' -i_dynamic -nofor_main' ;;
9343 ifc* | ifort*) # Intel Fortran compiler
9344 tmp_addflag=' -nofor_main' ;;
9345 lf95*) # Lahey Fortran 8.1
9346 whole_archive_flag_spec=
9347 tmp_sharedflag='--shared' ;;
9348 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9349 tmp_sharedflag='-qmkshrobj'
9350 tmp_addflag= ;;
9351 nvcc*) # Cuda Compiler Driver 2.2
9352 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'
9353 compiler_needs_object=yes
9354 ;;
9355 esac
9356 case `$CC -V 2>&1 | sed 5q` in
9357 *Sun\ C*) # Sun C 5.9
9358 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'
9359 compiler_needs_object=yes
9360 tmp_sharedflag='-G' ;;
9361 *Sun\ F*) # Sun Fortran 8.3
9362 tmp_sharedflag='-G' ;;
9363 esac
9364 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9365
9366 if test "x$supports_anon_versioning" = xyes; then
9367 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9368 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9369 echo "local: *; };" >> $output_objdir/$libname.ver~
9370 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9371 fi
9372
9373 case $cc_basename in
9374 xlf* | bgf* | bgxlf* | mpixlf*)
9375 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9376 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9377 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9378 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9379 if test "x$supports_anon_versioning" = xyes; then
9380 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9381 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9382 echo "local: *; };" >> $output_objdir/$libname.ver~
9383 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9384 fi
9385 ;;
9386 esac
9387 else
9388 ld_shlibs=no
9389 fi
9390 ;;
9391
9392 netbsd*)
9393 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9394 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9395 wlarc=
9396 else
9397 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9398 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9399 fi
9400 ;;
9401
9402 solaris*)
9403 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9404 ld_shlibs=no
9405 cat <<_LT_EOF 1>&2
9406
9407*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9408*** create shared libraries on Solaris systems. Therefore, libtool
9409*** is disabling shared libraries support. We urge you to upgrade GNU
9410*** binutils to release 2.9.1 or newer. Another option is to modify
9411*** your PATH or compiler configuration so that the native linker is
9412*** used, and then restart.
9413
9414_LT_EOF
9415 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9416 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9417 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9418 else
9419 ld_shlibs=no
9420 fi
9421 ;;
9422
9423 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9424 case `$LD -v 2>&1` in
9425 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9426 ld_shlibs=no
9427 cat <<_LT_EOF 1>&2
9428
9429*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9430*** reliably create shared libraries on SCO systems. Therefore, libtool
9431*** is disabling shared libraries support. We urge you to upgrade GNU
9432*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9433*** your PATH or compiler configuration so that the native linker is
9434*** used, and then restart.
9435
9436_LT_EOF
9437 ;;
9438 *)
9439 # For security reasons, it is highly recommended that you always
9440 # use absolute paths for naming shared libraries, and exclude the
9441 # DT_RUNPATH tag from executables and libraries. But doing so
9442 # requires that you compile everything twice, which is a pain.
9443 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9444 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9445 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9446 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9447 else
9448 ld_shlibs=no
9449 fi
9450 ;;
9451 esac
9452 ;;
9453
9454 sunos4*)
9455 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9456 wlarc=
9457 hardcode_direct=yes
9458 hardcode_shlibpath_var=no
9459 ;;
9460
9461 *)
9462 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9463 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9464 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9465 else
9466 ld_shlibs=no
9467 fi
9468 ;;
9469 esac
9470
9471 if test "$ld_shlibs" = no; then
9472 runpath_var=
9473 hardcode_libdir_flag_spec=
9474 export_dynamic_flag_spec=
9475 whole_archive_flag_spec=
9476 fi
9477 else
9478 # PORTME fill in a description of your system's linker (not GNU ld)
9479 case $host_os in
9480 aix3*)
9481 allow_undefined_flag=unsupported
9482 always_export_symbols=yes
9483 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'
9484 # Note: this linker hardcodes the directories in LIBPATH if there
9485 # are no directories specified by -L.
9486 hardcode_minus_L=yes
9487 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9488 # Neither direct hardcoding nor static linking is supported with a
9489 # broken collect2.
9490 hardcode_direct=unsupported
9491 fi
9492 ;;
9493
9494 aix[4-9]*)
9495 if test "$host_cpu" = ia64; then
9496 # On IA64, the linker does run time linking by default, so we don't
9497 # have to do anything special.
9498 aix_use_runtimelinking=no
9499 exp_sym_flag='-Bexport'
9500 no_entry_flag=""
9501 else
9502 # If we're using GNU nm, then we don't want the "-C" option.
9503 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9504 # Also, AIX nm treats weak defined symbols like other global
9505 # defined symbols, whereas GNU nm marks them as "W".
9506 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9507 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9508 else
9509 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9510 fi
9511 aix_use_runtimelinking=no
9512
9513 # Test if we are trying to use run time linking or normal
9514 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9515 # need to do runtime linking.
9516 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9517 for ld_flag in $LDFLAGS; do
9518 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9519 aix_use_runtimelinking=yes
9520 break
9521 fi
9522 done
9523 ;;
9524 esac
9525
9526 exp_sym_flag='-bexport'
9527 no_entry_flag='-bnoentry'
9528 fi
9529
9530 # When large executables or shared objects are built, AIX ld can
9531 # have problems creating the table of contents. If linking a library
9532 # or program results in "error TOC overflow" add -mminimal-toc to
9533 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9534 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9535
9536 archive_cmds=''
9537 hardcode_direct=yes
9538 hardcode_direct_absolute=yes
9539 hardcode_libdir_separator=':'
9540 link_all_deplibs=yes
9541 file_list_spec='${wl}-f,'
9542
9543 if test "$GCC" = yes; then
9544 case $host_os in aix4.[012]|aix4.[012].*)
9545 # We only want to do this on AIX 4.2 and lower, the check
9546 # below for broken collect2 doesn't work under 4.3+
9547 collect2name=`${CC} -print-prog-name=collect2`
9548 if test -f "$collect2name" &&
9549 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9550 then
9551 # We have reworked collect2
9552 :
9553 else
9554 # We have old collect2
9555 hardcode_direct=unsupported
9556 # It fails to find uninstalled libraries when the uninstalled
9557 # path is not listed in the libpath. Setting hardcode_minus_L
9558 # to unsupported forces relinking
9559 hardcode_minus_L=yes
9560 hardcode_libdir_flag_spec='-L$libdir'
9561 hardcode_libdir_separator=
9562 fi
9563 ;;
9564 esac
9565 shared_flag='-shared'
9566 if test "$aix_use_runtimelinking" = yes; then
9567 shared_flag="$shared_flag "'${wl}-G'
9568 fi
9569 else
9570 # not using gcc
9571 if test "$host_cpu" = ia64; then
9572 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9573 # chokes on -Wl,-G. The following line is correct:
9574 shared_flag='-G'
9575 else
9576 if test "$aix_use_runtimelinking" = yes; then
9577 shared_flag='${wl}-G'
9578 else
9579 shared_flag='${wl}-bM:SRE'
9580 fi
9581 fi
9582 fi
9583
9584 export_dynamic_flag_spec='${wl}-bexpall'
9585 # It seems that -bexpall does not export symbols beginning with
9586 # underscore (_), so it is better to generate a list of symbols to export.
9587 always_export_symbols=yes
9588 if test "$aix_use_runtimelinking" = yes; then
9589 # Warning - without using the other runtime loading flags (-brtl),
9590 # -berok will link without error, but may produce a broken library.
9591 allow_undefined_flag='-berok'
9592 # Determine the default libpath from the value encoded in an
9593 # empty executable.
9594 if test "${lt_cv_aix_libpath+set}" = set; then
9595 aix_libpath=$lt_cv_aix_libpath
9596else
9597 if ${lt_cv_aix_libpath_+:} false; then :
9598 $as_echo_n "(cached) " >&6
9599else
9600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9601/* end confdefs.h. */
9602
9603int
9604main ()
9605{
9606
9607 ;
9608 return 0;
9609}
9610_ACEOF
9611if ac_fn_c_try_link "$LINENO"; then :
9612
9613 lt_aix_libpath_sed='
9614 /Import File Strings/,/^$/ {
9615 /^0/ {
9616 s/^0 *\([^ ]*\) *$/\1/
9617 p
9618 }
9619 }'
9620 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9621 # Check for a 64-bit object if we didn't find anything.
9622 if test -z "$lt_cv_aix_libpath_"; then
9623 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9624 fi
9625fi
9626rm -f core conftest.err conftest.$ac_objext \
9627 conftest$ac_exeext conftest.$ac_ext
9628 if test -z "$lt_cv_aix_libpath_"; then
9629 lt_cv_aix_libpath_="/usr/lib:/lib"
9630 fi
9631
9632fi
9633
9634 aix_libpath=$lt_cv_aix_libpath_
9635fi
9636
9637 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9638 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9639 else
9640 if test "$host_cpu" = ia64; then
9641 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9642 allow_undefined_flag="-z nodefs"
9643 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"
9644 else
9645 # Determine the default libpath from the value encoded in an
9646 # empty executable.
9647 if test "${lt_cv_aix_libpath+set}" = set; then
9648 aix_libpath=$lt_cv_aix_libpath
9649else
9650 if ${lt_cv_aix_libpath_+:} false; then :
9651 $as_echo_n "(cached) " >&6
9652else
9653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9654/* end confdefs.h. */
9655
9656int
9657main ()
9658{
9659
9660 ;
9661 return 0;
9662}
9663_ACEOF
9664if ac_fn_c_try_link "$LINENO"; then :
9665
9666 lt_aix_libpath_sed='
9667 /Import File Strings/,/^$/ {
9668 /^0/ {
9669 s/^0 *\([^ ]*\) *$/\1/
9670 p
9671 }
9672 }'
9673 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9674 # Check for a 64-bit object if we didn't find anything.
9675 if test -z "$lt_cv_aix_libpath_"; then
9676 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9677 fi
9678fi
9679rm -f core conftest.err conftest.$ac_objext \
9680 conftest$ac_exeext conftest.$ac_ext
9681 if test -z "$lt_cv_aix_libpath_"; then
9682 lt_cv_aix_libpath_="/usr/lib:/lib"
9683 fi
9684
9685fi
9686
9687 aix_libpath=$lt_cv_aix_libpath_
9688fi
9689
9690 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9691 # Warning - without using the other run time loading flags,
9692 # -berok will link without error, but may produce a broken library.
9693 no_undefined_flag=' ${wl}-bernotok'
9694 allow_undefined_flag=' ${wl}-berok'
9695 if test "$with_gnu_ld" = yes; then
9696 # We only use this code for GNU lds that support --whole-archive.
9697 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9698 else
9699 # Exported symbols can be pulled into shared objects from archives
9700 whole_archive_flag_spec='$convenience'
9701 fi
9702 archive_cmds_need_lc=yes
9703 # This is similar to how AIX traditionally builds its shared libraries.
9704 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9705 fi
9706 fi
9707 ;;
9708
9709 amigaos*)
9710 case $host_cpu in
9711 powerpc)
9712 # see comment about AmigaOS4 .so support
9713 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9714 archive_expsym_cmds=''
9715 ;;
9716 m68k)
9717 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)'
9718 hardcode_libdir_flag_spec='-L$libdir'
9719 hardcode_minus_L=yes
9720 ;;
9721 esac
9722 ;;
9723
9724 bsdi[45]*)
9725 export_dynamic_flag_spec=-rdynamic
9726 ;;
9727
9728 cygwin* | mingw* | pw32* | cegcc*)
9729 # When not using gcc, we currently assume that we are using
9730 # Microsoft Visual C++.
9731 # hardcode_libdir_flag_spec is actually meaningless, as there is
9732 # no search path for DLLs.
9733 case $cc_basename in
9734 cl*)
9735 # Native MSVC
9736 hardcode_libdir_flag_spec=' '
9737 allow_undefined_flag=unsupported
9738 always_export_symbols=yes
9739 file_list_spec='@'
9740 # Tell ltmain to make .lib files, not .a files.
9741 libext=lib
9742 # Tell ltmain to make .dll files, not .so files.
9743 shrext_cmds=".dll"
9744 # FIXME: Setting linknames here is a bad hack.
9745 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9746 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9747 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9748 else
9749 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9750 fi~
9751 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9752 linknames='
9753 # The linker will not automatically build a static lib if we build a DLL.
9754 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9755 enable_shared_with_static_runtimes=yes
9756 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9757 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9758 # Don't use ranlib
9759 old_postinstall_cmds='chmod 644 $oldlib'
9760 postlink_cmds='lt_outputfile="@OUTPUT@"~
9761 lt_tool_outputfile="@TOOL_OUTPUT@"~
9762 case $lt_outputfile in
9763 *.exe|*.EXE) ;;
9764 *)
9765 lt_outputfile="$lt_outputfile.exe"
9766 lt_tool_outputfile="$lt_tool_outputfile.exe"
9767 ;;
9768 esac~
9769 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9770 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9771 $RM "$lt_outputfile.manifest";
9772 fi'
9773 ;;
9774 *)
9775 # Assume MSVC wrapper
9776 hardcode_libdir_flag_spec=' '
9777 allow_undefined_flag=unsupported
9778 # Tell ltmain to make .lib files, not .a files.
9779 libext=lib
9780 # Tell ltmain to make .dll files, not .so files.
9781 shrext_cmds=".dll"
9782 # FIXME: Setting linknames here is a bad hack.
9783 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9784 # The linker will automatically build a .lib file if we build a DLL.
9785 old_archive_from_new_cmds='true'
9786 # FIXME: Should let the user specify the lib program.
9787 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9788 enable_shared_with_static_runtimes=yes
9789 ;;
9790 esac
9791 ;;
9792
9793 darwin* | rhapsody*)
9794
9795
9796 archive_cmds_need_lc=no
9797 hardcode_direct=no
9798 hardcode_automatic=yes
9799 hardcode_shlibpath_var=unsupported
9800 if test "$lt_cv_ld_force_load" = "yes"; then
9801 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\"`'
9802
9803 else
9804 whole_archive_flag_spec=''
9805 fi
9806 link_all_deplibs=yes
9807 allow_undefined_flag="$_lt_dar_allow_undefined"
9808 case $cc_basename in
9809 ifort*) _lt_dar_can_shared=yes ;;
9810 *) _lt_dar_can_shared=$GCC ;;
9811 esac
9812 if test "$_lt_dar_can_shared" = "yes"; then
9813 output_verbose_link_cmd=func_echo_all
9814 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9815 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9816 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}"
9817 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}"
9818
9819 else
9820 ld_shlibs=no
9821 fi
9822
9823 ;;
9824
9825 dgux*)
9826 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9827 hardcode_libdir_flag_spec='-L$libdir'
9828 hardcode_shlibpath_var=no
9829 ;;
9830
9831 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9832 # support. Future versions do this automatically, but an explicit c++rt0.o
9833 # does not break anything, and helps significantly (at the cost of a little
9834 # extra space).
9835 freebsd2.2*)
9836 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9837 hardcode_libdir_flag_spec='-R$libdir'
9838 hardcode_direct=yes
9839 hardcode_shlibpath_var=no
9840 ;;
9841
9842 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9843 freebsd2.*)
9844 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9845 hardcode_direct=yes
9846 hardcode_minus_L=yes
9847 hardcode_shlibpath_var=no
9848 ;;
9849
9850 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9851 freebsd* | dragonfly*)
9852 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9853 hardcode_libdir_flag_spec='-R$libdir'
9854 hardcode_direct=yes
9855 hardcode_shlibpath_var=no
9856 ;;
9857
9858 hpux9*)
9859 if test "$GCC" = yes; then
9860 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9861 else
9862 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9863 fi
9864 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9865 hardcode_libdir_separator=:
9866 hardcode_direct=yes
9867
9868 # hardcode_minus_L: Not really in the search PATH,
9869 # but as the default location of the library.
9870 hardcode_minus_L=yes
9871 export_dynamic_flag_spec='${wl}-E'
9872 ;;
9873
9874 hpux10*)
9875 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9876 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9877 else
9878 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9879 fi
9880 if test "$with_gnu_ld" = no; then
9881 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9882 hardcode_libdir_separator=:
9883 hardcode_direct=yes
9884 hardcode_direct_absolute=yes
9885 export_dynamic_flag_spec='${wl}-E'
9886 # hardcode_minus_L: Not really in the search PATH,
9887 # but as the default location of the library.
9888 hardcode_minus_L=yes
9889 fi
9890 ;;
9891
9892 hpux11*)
9893 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9894 case $host_cpu in
9895 hppa*64*)
9896 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9897 ;;
9898 ia64*)
9899 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9900 ;;
9901 *)
9902 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9903 ;;
9904 esac
9905 else
9906 case $host_cpu in
9907 hppa*64*)
9908 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9909 ;;
9910 ia64*)
9911 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9912 ;;
9913 *)
9914
9915 # Older versions of the 11.00 compiler do not understand -b yet
9916 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9918$as_echo_n "checking if $CC understands -b... " >&6; }
9919if ${lt_cv_prog_compiler__b+:} false; then :
9920 $as_echo_n "(cached) " >&6
9921else
9922 lt_cv_prog_compiler__b=no
9923 save_LDFLAGS="$LDFLAGS"
9924 LDFLAGS="$LDFLAGS -b"
9925 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9926 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9927 # The linker can only warn and ignore the option if not recognized
9928 # So say no if there are warnings
9929 if test -s conftest.err; then
9930 # Append any errors to the config.log.
9931 cat conftest.err 1>&5
9932 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9933 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9934 if diff conftest.exp conftest.er2 >/dev/null; then
9935 lt_cv_prog_compiler__b=yes
9936 fi
9937 else
9938 lt_cv_prog_compiler__b=yes
9939 fi
9940 fi
9941 $RM -r conftest*
9942 LDFLAGS="$save_LDFLAGS"
9943
9944fi
9945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9946$as_echo "$lt_cv_prog_compiler__b" >&6; }
9947
9948if test x"$lt_cv_prog_compiler__b" = xyes; then
9949 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9950else
9951 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9952fi
9953
9954 ;;
9955 esac
9956 fi
9957 if test "$with_gnu_ld" = no; then
9958 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9959 hardcode_libdir_separator=:
9960
9961 case $host_cpu in
9962 hppa*64*|ia64*)
9963 hardcode_direct=no
9964 hardcode_shlibpath_var=no
9965 ;;
9966 *)
9967 hardcode_direct=yes
9968 hardcode_direct_absolute=yes
9969 export_dynamic_flag_spec='${wl}-E'
9970
9971 # hardcode_minus_L: Not really in the search PATH,
9972 # but as the default location of the library.
9973 hardcode_minus_L=yes
9974 ;;
9975 esac
9976 fi
9977 ;;
9978
9979 irix5* | irix6* | nonstopux*)
9980 if test "$GCC" = yes; then
9981 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'
9982 # Try to use the -exported_symbol ld option, if it does not
9983 # work, assume that -exports_file does not work either and
9984 # implicitly export all symbols.
9985 # This should be the same for all languages, so no per-tag cache variable.
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9987$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9988if ${lt_cv_irix_exported_symbol+:} false; then :
9989 $as_echo_n "(cached) " >&6
9990else
9991 save_LDFLAGS="$LDFLAGS"
9992 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9994/* end confdefs.h. */
9995int foo (void) { return 0; }
9996_ACEOF
9997if ac_fn_c_try_link "$LINENO"; then :
9998 lt_cv_irix_exported_symbol=yes
9999else
10000 lt_cv_irix_exported_symbol=no
10001fi
10002rm -f core conftest.err conftest.$ac_objext \
10003 conftest$ac_exeext conftest.$ac_ext
10004 LDFLAGS="$save_LDFLAGS"
10005fi
10006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10007$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10008 if test "$lt_cv_irix_exported_symbol" = yes; then
10009 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'
10010 fi
10011 else
10012 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'
10013 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'
10014 fi
10015 archive_cmds_need_lc='no'
10016 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10017 hardcode_libdir_separator=:
10018 inherit_rpath=yes
10019 link_all_deplibs=yes
10020 ;;
10021
10022 netbsd*)
10023 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10024 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10025 else
10026 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10027 fi
10028 hardcode_libdir_flag_spec='-R$libdir'
10029 hardcode_direct=yes
10030 hardcode_shlibpath_var=no
10031 ;;
10032
10033 newsos6)
10034 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10035 hardcode_direct=yes
10036 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10037 hardcode_libdir_separator=:
10038 hardcode_shlibpath_var=no
10039 ;;
10040
10041 *nto* | *qnx*)
10042 ;;
10043
10044 openbsd*)
10045 if test -f /usr/libexec/ld.so; then
10046 hardcode_direct=yes
10047 hardcode_shlibpath_var=no
10048 hardcode_direct_absolute=yes
10049 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10050 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10051 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10052 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10053 export_dynamic_flag_spec='${wl}-E'
10054 else
10055 case $host_os in
10056 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10057 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10058 hardcode_libdir_flag_spec='-R$libdir'
10059 ;;
10060 *)
10061 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10062 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10063 ;;
10064 esac
10065 fi
10066 else
10067 ld_shlibs=no
10068 fi
10069 ;;
10070
10071 os2*)
10072 hardcode_libdir_flag_spec='-L$libdir'
10073 hardcode_minus_L=yes
10074 allow_undefined_flag=unsupported
10075 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10076 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10077 ;;
10078
10079 osf3*)
10080 if test "$GCC" = yes; then
10081 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10082 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'
10083 else
10084 allow_undefined_flag=' -expect_unresolved \*'
10085 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'
10086 fi
10087 archive_cmds_need_lc='no'
10088 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10089 hardcode_libdir_separator=:
10090 ;;
10091
10092 osf4* | osf5*) # as osf3* with the addition of -msym flag
10093 if test "$GCC" = yes; then
10094 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10095 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'
10096 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10097 else
10098 allow_undefined_flag=' -expect_unresolved \*'
10099 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'
10100 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~
10101 $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'
10102
10103 # Both c and cxx compiler support -rpath directly
10104 hardcode_libdir_flag_spec='-rpath $libdir'
10105 fi
10106 archive_cmds_need_lc='no'
10107 hardcode_libdir_separator=:
10108 ;;
10109
10110 solaris*)
10111 no_undefined_flag=' -z defs'
10112 if test "$GCC" = yes; then
10113 wlarc='${wl}'
10114 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10115 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10116 $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'
10117 else
10118 case `$CC -V 2>&1` in
10119 *"Compilers 5.0"*)
10120 wlarc=''
10121 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10122 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10123 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10124 ;;
10125 *)
10126 wlarc='${wl}'
10127 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10128 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10129 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10130 ;;
10131 esac
10132 fi
10133 hardcode_libdir_flag_spec='-R$libdir'
10134 hardcode_shlibpath_var=no
10135 case $host_os in
10136 solaris2.[0-5] | solaris2.[0-5].*) ;;
10137 *)
10138 # The compiler driver will combine and reorder linker options,
10139 # but understands `-z linker_flag'. GCC discards it without `$wl',
10140 # but is careful enough not to reorder.
10141 # Supported since Solaris 2.6 (maybe 2.5.1?)
10142 if test "$GCC" = yes; then
10143 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10144 else
10145 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10146 fi
10147 ;;
10148 esac
10149 link_all_deplibs=yes
10150 ;;
10151
10152 sunos4*)
10153 if test "x$host_vendor" = xsequent; then
10154 # Use $CC to link under sequent, because it throws in some extra .o
10155 # files that make .init and .fini sections work.
10156 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10157 else
10158 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10159 fi
10160 hardcode_libdir_flag_spec='-L$libdir'
10161 hardcode_direct=yes
10162 hardcode_minus_L=yes
10163 hardcode_shlibpath_var=no
10164 ;;
10165
10166 sysv4)
10167 case $host_vendor in
10168 sni)
10169 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10170 hardcode_direct=yes # is this really true???
10171 ;;
10172 siemens)
10173 ## LD is ld it makes a PLAMLIB
10174 ## CC just makes a GrossModule.
10175 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10176 reload_cmds='$CC -r -o $output$reload_objs'
10177 hardcode_direct=no
10178 ;;
10179 motorola)
10180 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10181 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10182 ;;
10183 esac
10184 runpath_var='LD_RUN_PATH'
10185 hardcode_shlibpath_var=no
10186 ;;
10187
10188 sysv4.3*)
10189 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10190 hardcode_shlibpath_var=no
10191 export_dynamic_flag_spec='-Bexport'
10192 ;;
10193
10194 sysv4*MP*)
10195 if test -d /usr/nec; then
10196 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10197 hardcode_shlibpath_var=no
10198 runpath_var=LD_RUN_PATH
10199 hardcode_runpath_var=yes
10200 ld_shlibs=yes
10201 fi
10202 ;;
10203
10204 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10205 no_undefined_flag='${wl}-z,text'
10206 archive_cmds_need_lc=no
10207 hardcode_shlibpath_var=no
10208 runpath_var='LD_RUN_PATH'
10209
10210 if test "$GCC" = yes; then
10211 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10212 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10213 else
10214 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10215 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10216 fi
10217 ;;
10218
10219 sysv5* | sco3.2v5* | sco5v6*)
10220 # Note: We can NOT use -z defs as we might desire, because we do not
10221 # link with -lc, and that would cause any symbols used from libc to
10222 # always be unresolved, which means just about no library would
10223 # ever link correctly. If we're not using GNU ld we use -z text
10224 # though, which does catch some bad symbols but isn't as heavy-handed
10225 # as -z defs.
10226 no_undefined_flag='${wl}-z,text'
10227 allow_undefined_flag='${wl}-z,nodefs'
10228 archive_cmds_need_lc=no
10229 hardcode_shlibpath_var=no
10230 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10231 hardcode_libdir_separator=':'
10232 link_all_deplibs=yes
10233 export_dynamic_flag_spec='${wl}-Bexport'
10234 runpath_var='LD_RUN_PATH'
10235
10236 if test "$GCC" = yes; then
10237 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10238 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10239 else
10240 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10241 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10242 fi
10243 ;;
10244
10245 uts4*)
10246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10247 hardcode_libdir_flag_spec='-L$libdir'
10248 hardcode_shlibpath_var=no
10249 ;;
10250
10251 *)
10252 ld_shlibs=no
10253 ;;
10254 esac
10255
10256 if test x$host_vendor = xsni; then
10257 case $host in
10258 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10259 export_dynamic_flag_spec='${wl}-Blargedynsym'
10260 ;;
10261 esac
10262 fi
10263 fi
10264
10265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10266$as_echo "$ld_shlibs" >&6; }
10267test "$ld_shlibs" = no && can_build_shared=no
10268
10269with_gnu_ld=$with_gnu_ld
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285#
10286# Do we need to explicitly link libc?
10287#
10288case "x$archive_cmds_need_lc" in
10289x|xyes)
10290 # Assume -lc should be added
10291 archive_cmds_need_lc=yes
10292
10293 if test "$enable_shared" = yes && test "$GCC" = yes; then
10294 case $archive_cmds in
10295 *'~'*)
10296 # FIXME: we may have to deal with multi-command sequences.
10297 ;;
10298 '$CC '*)
10299 # Test whether the compiler implicitly links with -lc since on some
10300 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10301 # to ld, don't add -lc before -lgcc.
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10303$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10304if ${lt_cv_archive_cmds_need_lc+:} false; then :
10305 $as_echo_n "(cached) " >&6
10306else
10307 $RM conftest*
10308 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10309
10310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10311 (eval $ac_compile) 2>&5
10312 ac_status=$?
10313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10314 test $ac_status = 0; } 2>conftest.err; then
10315 soname=conftest
10316 lib=conftest
10317 libobjs=conftest.$ac_objext
10318 deplibs=
10319 wl=$lt_prog_compiler_wl
10320 pic_flag=$lt_prog_compiler_pic
10321 compiler_flags=-v
10322 linker_flags=-v
10323 verstring=
10324 output_objdir=.
10325 libname=conftest
10326 lt_save_allow_undefined_flag=$allow_undefined_flag
10327 allow_undefined_flag=
10328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10329 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10330 ac_status=$?
10331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10332 test $ac_status = 0; }
10333 then
10334 lt_cv_archive_cmds_need_lc=no
10335 else
10336 lt_cv_archive_cmds_need_lc=yes
10337 fi
10338 allow_undefined_flag=$lt_save_allow_undefined_flag
10339 else
10340 cat conftest.err 1>&5
10341 fi
10342 $RM conftest*
10343
10344fi
10345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10346$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10347 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10348 ;;
10349 esac
10350 fi
10351 ;;
10352esac
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10506$as_echo_n "checking dynamic linker characteristics... " >&6; }
10507
10508if test "$GCC" = yes; then
10509 case $host_os in
10510 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10511 *) lt_awk_arg="/^libraries:/" ;;
10512 esac
10513 case $host_os in
10514 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10515 *) lt_sed_strip_eq="s,=/,/,g" ;;
10516 esac
10517 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10518 case $lt_search_path_spec in
10519 *\;*)
10520 # if the path contains ";" then we assume it to be the separator
10521 # otherwise default to the standard path separator (i.e. ":") - it is
10522 # assumed that no part of a normal pathname contains ";" but that should
10523 # okay in the real world where ";" in dirpaths is itself problematic.
10524 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10525 ;;
10526 *)
10527 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10528 ;;
10529 esac
10530 # Ok, now we have the path, separated by spaces, we can step through it
10531 # and add multilib dir if necessary.
10532 lt_tmp_lt_search_path_spec=
10533 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10534 for lt_sys_path in $lt_search_path_spec; do
10535 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10536 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10537 else
10538 test -d "$lt_sys_path" && \
10539 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10540 fi
10541 done
10542 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10543BEGIN {RS=" "; FS="/|\n";} {
10544 lt_foo="";
10545 lt_count=0;
10546 for (lt_i = NF; lt_i > 0; lt_i--) {
10547 if ($lt_i != "" && $lt_i != ".") {
10548 if ($lt_i == "..") {
10549 lt_count++;
10550 } else {
10551 if (lt_count == 0) {
10552 lt_foo="/" $lt_i lt_foo;
10553 } else {
10554 lt_count--;
10555 }
10556 }
10557 }
10558 }
10559 if (lt_foo != "") { lt_freq[lt_foo]++; }
10560 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10561}'`
10562 # AWK program above erroneously prepends '/' to C:/dos/paths
10563 # for these hosts.
10564 case $host_os in
10565 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10566 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10567 esac
10568 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10569else
10570 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10571fi
10572library_names_spec=
10573libname_spec='lib$name'
10574soname_spec=
10575shrext_cmds=".so"
10576postinstall_cmds=
10577postuninstall_cmds=
10578finish_cmds=
10579finish_eval=
10580shlibpath_var=
10581shlibpath_overrides_runpath=unknown
10582version_type=none
10583dynamic_linker="$host_os ld.so"
10584sys_lib_dlsearch_path_spec="/lib /usr/lib"
10585need_lib_prefix=unknown
10586hardcode_into_libs=no
10587
10588# when you set need_version to no, make sure it does not cause -set_version
10589# flags to be left without arguments
10590need_version=unknown
10591
10592case $host_os in
10593aix3*)
10594 version_type=linux # correct to gnu/linux during the next big refactor
10595 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10596 shlibpath_var=LIBPATH
10597
10598 # AIX 3 has no versioning support, so we append a major version to the name.
10599 soname_spec='${libname}${release}${shared_ext}$major'
10600 ;;
10601
10602aix[4-9]*)
10603 version_type=linux # correct to gnu/linux during the next big refactor
10604 need_lib_prefix=no
10605 need_version=no
10606 hardcode_into_libs=yes
10607 if test "$host_cpu" = ia64; then
10608 # AIX 5 supports IA64
10609 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10610 shlibpath_var=LD_LIBRARY_PATH
10611 else
10612 # With GCC up to 2.95.x, collect2 would create an import file
10613 # for dependence libraries. The import file would start with
10614 # the line `#! .'. This would cause the generated library to
10615 # depend on `.', always an invalid library. This was fixed in
10616 # development snapshots of GCC prior to 3.0.
10617 case $host_os in
10618 aix4 | aix4.[01] | aix4.[01].*)
10619 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10620 echo ' yes '
10621 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10622 :
10623 else
10624 can_build_shared=no
10625 fi
10626 ;;
10627 esac
10628 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10629 # soname into executable. Probably we can add versioning support to
10630 # collect2, so additional links can be useful in future.
10631 if test "$aix_use_runtimelinking" = yes; then
10632 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10633 # instead of lib<name>.a to let people know that these are not
10634 # typical AIX shared libraries.
10635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10636 else
10637 # We preserve .a as extension for shared libraries through AIX4.2
10638 # and later when we are not doing run time linking.
10639 library_names_spec='${libname}${release}.a $libname.a'
10640 soname_spec='${libname}${release}${shared_ext}$major'
10641 fi
10642 shlibpath_var=LIBPATH
10643 fi
10644 ;;
10645
10646amigaos*)
10647 case $host_cpu in
10648 powerpc)
10649 # Since July 2007 AmigaOS4 officially supports .so libraries.
10650 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10652 ;;
10653 m68k)
10654 library_names_spec='$libname.ixlibrary $libname.a'
10655 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10656 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10657 ;;
10658 esac
10659 ;;
10660
10661beos*)
10662 library_names_spec='${libname}${shared_ext}'
10663 dynamic_linker="$host_os ld.so"
10664 shlibpath_var=LIBRARY_PATH
10665 ;;
10666
10667bsdi[45]*)
10668 version_type=linux # correct to gnu/linux during the next big refactor
10669 need_version=no
10670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10671 soname_spec='${libname}${release}${shared_ext}$major'
10672 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10673 shlibpath_var=LD_LIBRARY_PATH
10674 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10675 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10676 # the default ld.so.conf also contains /usr/contrib/lib and
10677 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10678 # libtool to hard-code these into programs
10679 ;;
10680
10681cygwin* | mingw* | pw32* | cegcc*)
10682 version_type=windows
10683 shrext_cmds=".dll"
10684 need_version=no
10685 need_lib_prefix=no
10686
10687 case $GCC,$cc_basename in
10688 yes,*)
10689 # gcc
10690 library_names_spec='$libname.dll.a'
10691 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10692 postinstall_cmds='base_file=`basename \${file}`~
10693 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10694 dldir=$destdir/`dirname \$dlpath`~
10695 test -d \$dldir || mkdir -p \$dldir~
10696 $install_prog $dir/$dlname \$dldir/$dlname~
10697 chmod a+x \$dldir/$dlname~
10698 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10699 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10700 fi'
10701 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10702 dlpath=$dir/\$dldll~
10703 $RM \$dlpath'
10704 shlibpath_overrides_runpath=yes
10705
10706 case $host_os in
10707 cygwin*)
10708 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10709 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10710
10711 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10712 ;;
10713 mingw* | cegcc*)
10714 # MinGW DLLs use traditional 'lib' prefix
10715 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10716 ;;
10717 pw32*)
10718 # pw32 DLLs use 'pw' prefix rather than 'lib'
10719 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10720 ;;
10721 esac
10722 dynamic_linker='Win32 ld.exe'
10723 ;;
10724
10725 *,cl*)
10726 # Native MSVC
10727 libname_spec='$name'
10728 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10729 library_names_spec='${libname}.dll.lib'
10730
10731 case $build_os in
10732 mingw*)
10733 sys_lib_search_path_spec=
10734 lt_save_ifs=$IFS
10735 IFS=';'
10736 for lt_path in $LIB
10737 do
10738 IFS=$lt_save_ifs
10739 # Let DOS variable expansion print the short 8.3 style file name.
10740 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10741 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10742 done
10743 IFS=$lt_save_ifs
10744 # Convert to MSYS style.
10745 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10746 ;;
10747 cygwin*)
10748 # Convert to unix form, then to dos form, then back to unix form
10749 # but this time dos style (no spaces!) so that the unix form looks
10750 # like /cygdrive/c/PROGRA~1:/cygdr...
10751 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10752 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10753 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10754 ;;
10755 *)
10756 sys_lib_search_path_spec="$LIB"
10757 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10758 # It is most probably a Windows format PATH.
10759 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10760 else
10761 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10762 fi
10763 # FIXME: find the short name or the path components, as spaces are
10764 # common. (e.g. "Program Files" -> "PROGRA~1")
10765 ;;
10766 esac
10767
10768 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10769 postinstall_cmds='base_file=`basename \${file}`~
10770 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10771 dldir=$destdir/`dirname \$dlpath`~
10772 test -d \$dldir || mkdir -p \$dldir~
10773 $install_prog $dir/$dlname \$dldir/$dlname'
10774 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10775 dlpath=$dir/\$dldll~
10776 $RM \$dlpath'
10777 shlibpath_overrides_runpath=yes
10778 dynamic_linker='Win32 link.exe'
10779 ;;
10780
10781 *)
10782 # Assume MSVC wrapper
10783 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10784 dynamic_linker='Win32 ld.exe'
10785 ;;
10786 esac
10787 # FIXME: first we should search . and the directory the executable is in
10788 shlibpath_var=PATH
10789 ;;
10790
10791darwin* | rhapsody*)
10792 dynamic_linker="$host_os dyld"
10793 version_type=darwin
10794 need_lib_prefix=no
10795 need_version=no
10796 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10797 soname_spec='${libname}${release}${major}$shared_ext'
10798 shlibpath_overrides_runpath=yes
10799 shlibpath_var=DYLD_LIBRARY_PATH
10800 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10801
10802 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10803 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10804 ;;
10805
10806dgux*)
10807 version_type=linux # correct to gnu/linux during the next big refactor
10808 need_lib_prefix=no
10809 need_version=no
10810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10811 soname_spec='${libname}${release}${shared_ext}$major'
10812 shlibpath_var=LD_LIBRARY_PATH
10813 ;;
10814
10815freebsd* | dragonfly*)
10816 # DragonFly does not have aout. When/if they implement a new
10817 # versioning mechanism, adjust this.
10818 if test -x /usr/bin/objformat; then
10819 objformat=`/usr/bin/objformat`
10820 else
10821 case $host_os in
10822 freebsd[23].*) objformat=aout ;;
10823 *) objformat=elf ;;
10824 esac
10825 fi
10826 version_type=freebsd-$objformat
10827 case $version_type in
10828 freebsd-elf*)
10829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10830 need_version=no
10831 need_lib_prefix=no
10832 ;;
10833 freebsd-*)
10834 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10835 need_version=yes
10836 ;;
10837 esac
10838 shlibpath_var=LD_LIBRARY_PATH
10839 case $host_os in
10840 freebsd2.*)
10841 shlibpath_overrides_runpath=yes
10842 ;;
10843 freebsd3.[01]* | freebsdelf3.[01]*)
10844 shlibpath_overrides_runpath=yes
10845 hardcode_into_libs=yes
10846 ;;
10847 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10848 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10849 shlibpath_overrides_runpath=no
10850 hardcode_into_libs=yes
10851 ;;
10852 *) # from 4.6 on, and DragonFly
10853 shlibpath_overrides_runpath=yes
10854 hardcode_into_libs=yes
10855 ;;
10856 esac
10857 ;;
10858
10859gnu*)
10860 version_type=linux # correct to gnu/linux during the next big refactor
10861 need_lib_prefix=no
10862 need_version=no
10863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10864 soname_spec='${libname}${release}${shared_ext}$major'
10865 shlibpath_var=LD_LIBRARY_PATH
10866 shlibpath_overrides_runpath=no
10867 hardcode_into_libs=yes
10868 ;;
10869
10870haiku*)
10871 version_type=linux # correct to gnu/linux during the next big refactor
10872 need_lib_prefix=no
10873 need_version=no
10874 dynamic_linker="$host_os runtime_loader"
10875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10876 soname_spec='${libname}${release}${shared_ext}$major'
10877 shlibpath_var=LIBRARY_PATH
10878 shlibpath_overrides_runpath=yes
10879 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10880 hardcode_into_libs=yes
10881 ;;
10882
10883hpux9* | hpux10* | hpux11*)
10884 # Give a soname corresponding to the major version so that dld.sl refuses to
10885 # link against other versions.
10886 version_type=sunos
10887 need_lib_prefix=no
10888 need_version=no
10889 case $host_cpu in
10890 ia64*)
10891 shrext_cmds='.so'
10892 hardcode_into_libs=yes
10893 dynamic_linker="$host_os dld.so"
10894 shlibpath_var=LD_LIBRARY_PATH
10895 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10897 soname_spec='${libname}${release}${shared_ext}$major'
10898 if test "X$HPUX_IA64_MODE" = X32; then
10899 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10900 else
10901 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10902 fi
10903 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10904 ;;
10905 hppa*64*)
10906 shrext_cmds='.sl'
10907 hardcode_into_libs=yes
10908 dynamic_linker="$host_os dld.sl"
10909 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10910 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10912 soname_spec='${libname}${release}${shared_ext}$major'
10913 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10914 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10915 ;;
10916 *)
10917 shrext_cmds='.sl'
10918 dynamic_linker="$host_os dld.sl"
10919 shlibpath_var=SHLIB_PATH
10920 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10922 soname_spec='${libname}${release}${shared_ext}$major'
10923 ;;
10924 esac
10925 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10926 postinstall_cmds='chmod 555 $lib'
10927 # or fails outright, so override atomically:
10928 install_override_mode=555
10929 ;;
10930
10931interix[3-9]*)
10932 version_type=linux # correct to gnu/linux during the next big refactor
10933 need_lib_prefix=no
10934 need_version=no
10935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10936 soname_spec='${libname}${release}${shared_ext}$major'
10937 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10938 shlibpath_var=LD_LIBRARY_PATH
10939 shlibpath_overrides_runpath=no
10940 hardcode_into_libs=yes
10941 ;;
10942
10943irix5* | irix6* | nonstopux*)
10944 case $host_os in
10945 nonstopux*) version_type=nonstopux ;;
10946 *)
10947 if test "$lt_cv_prog_gnu_ld" = yes; then
10948 version_type=linux # correct to gnu/linux during the next big refactor
10949 else
10950 version_type=irix
10951 fi ;;
10952 esac
10953 need_lib_prefix=no
10954 need_version=no
10955 soname_spec='${libname}${release}${shared_ext}$major'
10956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10957 case $host_os in
10958 irix5* | nonstopux*)
10959 libsuff= shlibsuff=
10960 ;;
10961 *)
10962 case $LD in # libtool.m4 will add one of these switches to LD
10963 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10964 libsuff= shlibsuff= libmagic=32-bit;;
10965 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10966 libsuff=32 shlibsuff=N32 libmagic=N32;;
10967 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10968 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10969 *) libsuff= shlibsuff= libmagic=never-match;;
10970 esac
10971 ;;
10972 esac
10973 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10974 shlibpath_overrides_runpath=no
10975 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10976 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10977 hardcode_into_libs=yes
10978 ;;
10979
10980# No shared lib support for Linux oldld, aout, or coff.
10981linux*oldld* | linux*aout* | linux*coff*)
10982 dynamic_linker=no
10983 ;;
10984
10985# This must be glibc/ELF.
10986linux* | k*bsd*-gnu | kopensolaris*-gnu)
10987 version_type=linux # correct to gnu/linux during the next big refactor
10988 need_lib_prefix=no
10989 need_version=no
10990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10991 soname_spec='${libname}${release}${shared_ext}$major'
10992 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10993 shlibpath_var=LD_LIBRARY_PATH
10994 shlibpath_overrides_runpath=no
10995
10996 # Some binutils ld are patched to set DT_RUNPATH
10997 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10998 $as_echo_n "(cached) " >&6
10999else
11000 lt_cv_shlibpath_overrides_runpath=no
11001 save_LDFLAGS=$LDFLAGS
11002 save_libdir=$libdir
11003 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11004 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11006/* end confdefs.h. */
11007
11008int
11009main ()
11010{
11011
11012 ;
11013 return 0;
11014}
11015_ACEOF
11016if ac_fn_c_try_link "$LINENO"; then :
11017 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11018 lt_cv_shlibpath_overrides_runpath=yes
11019fi
11020fi
11021rm -f core conftest.err conftest.$ac_objext \
11022 conftest$ac_exeext conftest.$ac_ext
11023 LDFLAGS=$save_LDFLAGS
11024 libdir=$save_libdir
11025
11026fi
11027
11028 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11029
11030 # This implies no fast_install, which is unacceptable.
11031 # Some rework will be needed to allow for fast_install
11032 # before this can be enabled.
11033 hardcode_into_libs=yes
11034
11035 # Append ld.so.conf contents to the search path
11036 if test -f /etc/ld.so.conf; then
11037 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' ' '`
11038 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11039 fi
11040
11041 # We used to test for /lib/ld.so.1 and disable shared libraries on
11042 # powerpc, because MkLinux only supported shared libraries with the
11043 # GNU dynamic linker. Since this was broken with cross compilers,
11044 # most powerpc-linux boxes support dynamic linking these days and
11045 # people can always --disable-shared, the test was removed, and we
11046 # assume the GNU/Linux dynamic linker is in use.
11047 dynamic_linker='GNU/Linux ld.so'
11048 ;;
11049
11050netbsd*)
11051 version_type=sunos
11052 need_lib_prefix=no
11053 need_version=no
11054 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11056 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11057 dynamic_linker='NetBSD (a.out) ld.so'
11058 else
11059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11060 soname_spec='${libname}${release}${shared_ext}$major'
11061 dynamic_linker='NetBSD ld.elf_so'
11062 fi
11063 shlibpath_var=LD_LIBRARY_PATH
11064 shlibpath_overrides_runpath=yes
11065 hardcode_into_libs=yes
11066 ;;
11067
11068newsos6)
11069 version_type=linux # correct to gnu/linux during the next big refactor
11070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11071 shlibpath_var=LD_LIBRARY_PATH
11072 shlibpath_overrides_runpath=yes
11073 ;;
11074
11075*nto* | *qnx*)
11076 version_type=qnx
11077 need_lib_prefix=no
11078 need_version=no
11079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11080 soname_spec='${libname}${release}${shared_ext}$major'
11081 shlibpath_var=LD_LIBRARY_PATH
11082 shlibpath_overrides_runpath=no
11083 hardcode_into_libs=yes
11084 dynamic_linker='ldqnx.so'
11085 ;;
11086
11087openbsd*)
11088 version_type=sunos
11089 sys_lib_dlsearch_path_spec="/usr/lib"
11090 need_lib_prefix=no
11091 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11092 case $host_os in
11093 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11094 *) need_version=no ;;
11095 esac
11096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11097 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11098 shlibpath_var=LD_LIBRARY_PATH
11099 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11100 case $host_os in
11101 openbsd2.[89] | openbsd2.[89].*)
11102 shlibpath_overrides_runpath=no
11103 ;;
11104 *)
11105 shlibpath_overrides_runpath=yes
11106 ;;
11107 esac
11108 else
11109 shlibpath_overrides_runpath=yes
11110 fi
11111 ;;
11112
11113os2*)
11114 libname_spec='$name'
11115 shrext_cmds=".dll"
11116 need_lib_prefix=no
11117 library_names_spec='$libname${shared_ext} $libname.a'
11118 dynamic_linker='OS/2 ld.exe'
11119 shlibpath_var=LIBPATH
11120 ;;
11121
11122osf3* | osf4* | osf5*)
11123 version_type=osf
11124 need_lib_prefix=no
11125 need_version=no
11126 soname_spec='${libname}${release}${shared_ext}$major'
11127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11128 shlibpath_var=LD_LIBRARY_PATH
11129 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11130 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11131 ;;
11132
11133rdos*)
11134 dynamic_linker=no
11135 ;;
11136
11137solaris*)
11138 version_type=linux # correct to gnu/linux during the next big refactor
11139 need_lib_prefix=no
11140 need_version=no
11141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11142 soname_spec='${libname}${release}${shared_ext}$major'
11143 shlibpath_var=LD_LIBRARY_PATH
11144 shlibpath_overrides_runpath=yes
11145 hardcode_into_libs=yes
11146 # ldd complains unless libraries are executable
11147 postinstall_cmds='chmod +x $lib'
11148 ;;
11149
11150sunos4*)
11151 version_type=sunos
11152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11153 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11154 shlibpath_var=LD_LIBRARY_PATH
11155 shlibpath_overrides_runpath=yes
11156 if test "$with_gnu_ld" = yes; then
11157 need_lib_prefix=no
11158 fi
11159 need_version=yes
11160 ;;
11161
11162sysv4 | sysv4.3*)
11163 version_type=linux # correct to gnu/linux during the next big refactor
11164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11165 soname_spec='${libname}${release}${shared_ext}$major'
11166 shlibpath_var=LD_LIBRARY_PATH
11167 case $host_vendor in
11168 sni)
11169 shlibpath_overrides_runpath=no
11170 need_lib_prefix=no
11171 runpath_var=LD_RUN_PATH
11172 ;;
11173 siemens)
11174 need_lib_prefix=no
11175 ;;
11176 motorola)
11177 need_lib_prefix=no
11178 need_version=no
11179 shlibpath_overrides_runpath=no
11180 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11181 ;;
11182 esac
11183 ;;
11184
11185sysv4*MP*)
11186 if test -d /usr/nec ;then
11187 version_type=linux # correct to gnu/linux during the next big refactor
11188 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11189 soname_spec='$libname${shared_ext}.$major'
11190 shlibpath_var=LD_LIBRARY_PATH
11191 fi
11192 ;;
11193
11194sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11195 version_type=freebsd-elf
11196 need_lib_prefix=no
11197 need_version=no
11198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11199 soname_spec='${libname}${release}${shared_ext}$major'
11200 shlibpath_var=LD_LIBRARY_PATH
11201 shlibpath_overrides_runpath=yes
11202 hardcode_into_libs=yes
11203 if test "$with_gnu_ld" = yes; then
11204 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11205 else
11206 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11207 case $host_os in
11208 sco3.2v5*)
11209 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11210 ;;
11211 esac
11212 fi
11213 sys_lib_dlsearch_path_spec='/usr/lib'
11214 ;;
11215
11216tpf*)
11217 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11218 version_type=linux # correct to gnu/linux during the next big refactor
11219 need_lib_prefix=no
11220 need_version=no
11221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11222 shlibpath_var=LD_LIBRARY_PATH
11223 shlibpath_overrides_runpath=no
11224 hardcode_into_libs=yes
11225 ;;
11226
11227uts4*)
11228 version_type=linux # correct to gnu/linux during the next big refactor
11229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11230 soname_spec='${libname}${release}${shared_ext}$major'
11231 shlibpath_var=LD_LIBRARY_PATH
11232 ;;
11233
11234*)
11235 dynamic_linker=no
11236 ;;
11237esac
11238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11239$as_echo "$dynamic_linker" >&6; }
11240test "$dynamic_linker" = no && can_build_shared=no
11241
11242variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11243if test "$GCC" = yes; then
11244 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11245fi
11246
11247if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11248 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11249fi
11250if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11251 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11252fi
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11346$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11347hardcode_action=
11348if test -n "$hardcode_libdir_flag_spec" ||
11349 test -n "$runpath_var" ||
11350 test "X$hardcode_automatic" = "Xyes" ; then
11351
11352 # We can hardcode non-existent directories.
11353 if test "$hardcode_direct" != no &&
11354 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11355 # have to relink, otherwise we might link with an installed library
11356 # when we should be linking with a yet-to-be-installed one
11357 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11358 test "$hardcode_minus_L" != no; then
11359 # Linking always hardcodes the temporary library directory.
11360 hardcode_action=relink
11361 else
11362 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11363 hardcode_action=immediate
11364 fi
11365else
11366 # We cannot hardcode anything, or else we can only hardcode existing
11367 # directories.
11368 hardcode_action=unsupported
11369fi
11370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11371$as_echo "$hardcode_action" >&6; }
11372
11373if test "$hardcode_action" = relink ||
11374 test "$inherit_rpath" = yes; then
11375 # Fast installation is not supported
11376 enable_fast_install=no
11377elif test "$shlibpath_overrides_runpath" = yes ||
11378 test "$enable_shared" = no; then
11379 # Fast installation is not necessary
11380 enable_fast_install=needless
11381fi
11382
11383
11384
11385
11386
11387
11388 if test "x$enable_dlopen" != xyes; then
11389 enable_dlopen=unknown
11390 enable_dlopen_self=unknown
11391 enable_dlopen_self_static=unknown
11392else
11393 lt_cv_dlopen=no
11394 lt_cv_dlopen_libs=
11395
11396 case $host_os in
11397 beos*)
11398 lt_cv_dlopen="load_add_on"
11399 lt_cv_dlopen_libs=
11400 lt_cv_dlopen_self=yes
11401 ;;
11402
11403 mingw* | pw32* | cegcc*)
11404 lt_cv_dlopen="LoadLibrary"
11405 lt_cv_dlopen_libs=
11406 ;;
11407
11408 cygwin*)
11409 lt_cv_dlopen="dlopen"
11410 lt_cv_dlopen_libs=
11411 ;;
11412
11413 darwin*)
11414 # if libdl is installed we need to link against it
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11416$as_echo_n "checking for dlopen in -ldl... " >&6; }
11417if ${ac_cv_lib_dl_dlopen+:} false; then :
11418 $as_echo_n "(cached) " >&6
11419else
11420 ac_check_lib_save_LIBS=$LIBS
11421LIBS="-ldl $LIBS"
11422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11423/* end confdefs.h. */
11424
11425/* Override any GCC internal prototype to avoid an error.
11426 Use char because int might match the return type of a GCC
11427 builtin and then its argument prototype would still apply. */
11428#ifdef __cplusplus
11429extern "C"
11430#endif
11431char dlopen ();
11432int
11433main ()
11434{
11435return dlopen ();
11436 ;
11437 return 0;
11438}
11439_ACEOF
11440if ac_fn_c_try_link "$LINENO"; then :
11441 ac_cv_lib_dl_dlopen=yes
11442else
11443 ac_cv_lib_dl_dlopen=no
11444fi
11445rm -f core conftest.err conftest.$ac_objext \
11446 conftest$ac_exeext conftest.$ac_ext
11447LIBS=$ac_check_lib_save_LIBS
11448fi
11449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11450$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11451if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11452 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11453else
11454
11455 lt_cv_dlopen="dyld"
11456 lt_cv_dlopen_libs=
11457 lt_cv_dlopen_self=yes
11458
11459fi
11460
11461 ;;
11462
11463 *)
11464 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11465if test "x$ac_cv_func_shl_load" = xyes; then :
11466 lt_cv_dlopen="shl_load"
11467else
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11469$as_echo_n "checking for shl_load in -ldld... " >&6; }
11470if ${ac_cv_lib_dld_shl_load+:} false; then :
11471 $as_echo_n "(cached) " >&6
11472else
11473 ac_check_lib_save_LIBS=$LIBS
11474LIBS="-ldld $LIBS"
11475cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11476/* end confdefs.h. */
11477
11478/* Override any GCC internal prototype to avoid an error.
11479 Use char because int might match the return type of a GCC
11480 builtin and then its argument prototype would still apply. */
11481#ifdef __cplusplus
11482extern "C"
11483#endif
11484char shl_load ();
11485int
11486main ()
11487{
11488return shl_load ();
11489 ;
11490 return 0;
11491}
11492_ACEOF
11493if ac_fn_c_try_link "$LINENO"; then :
11494 ac_cv_lib_dld_shl_load=yes
11495else
11496 ac_cv_lib_dld_shl_load=no
11497fi
11498rm -f core conftest.err conftest.$ac_objext \
11499 conftest$ac_exeext conftest.$ac_ext
11500LIBS=$ac_check_lib_save_LIBS
11501fi
11502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11503$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11504if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11505 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11506else
11507 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11508if test "x$ac_cv_func_dlopen" = xyes; then :
11509 lt_cv_dlopen="dlopen"
11510else
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11512$as_echo_n "checking for dlopen in -ldl... " >&6; }
11513if ${ac_cv_lib_dl_dlopen+:} false; then :
11514 $as_echo_n "(cached) " >&6
11515else
11516 ac_check_lib_save_LIBS=$LIBS
11517LIBS="-ldl $LIBS"
11518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11519/* end confdefs.h. */
11520
11521/* Override any GCC internal prototype to avoid an error.
11522 Use char because int might match the return type of a GCC
11523 builtin and then its argument prototype would still apply. */
11524#ifdef __cplusplus
11525extern "C"
11526#endif
11527char dlopen ();
11528int
11529main ()
11530{
11531return dlopen ();
11532 ;
11533 return 0;
11534}
11535_ACEOF
11536if ac_fn_c_try_link "$LINENO"; then :
11537 ac_cv_lib_dl_dlopen=yes
11538else
11539 ac_cv_lib_dl_dlopen=no
11540fi
11541rm -f core conftest.err conftest.$ac_objext \
11542 conftest$ac_exeext conftest.$ac_ext
11543LIBS=$ac_check_lib_save_LIBS
11544fi
11545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11546$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11547if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11548 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11549else
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11551$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11552if ${ac_cv_lib_svld_dlopen+:} false; then :
11553 $as_echo_n "(cached) " >&6
11554else
11555 ac_check_lib_save_LIBS=$LIBS
11556LIBS="-lsvld $LIBS"
11557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11558/* end confdefs.h. */
11559
11560/* Override any GCC internal prototype to avoid an error.
11561 Use char because int might match the return type of a GCC
11562 builtin and then its argument prototype would still apply. */
11563#ifdef __cplusplus
11564extern "C"
11565#endif
11566char dlopen ();
11567int
11568main ()
11569{
11570return dlopen ();
11571 ;
11572 return 0;
11573}
11574_ACEOF
11575if ac_fn_c_try_link "$LINENO"; then :
11576 ac_cv_lib_svld_dlopen=yes
11577else
11578 ac_cv_lib_svld_dlopen=no
11579fi
11580rm -f core conftest.err conftest.$ac_objext \
11581 conftest$ac_exeext conftest.$ac_ext
11582LIBS=$ac_check_lib_save_LIBS
11583fi
11584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11585$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11586if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11587 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11588else
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11590$as_echo_n "checking for dld_link in -ldld... " >&6; }
11591if ${ac_cv_lib_dld_dld_link+:} false; then :
11592 $as_echo_n "(cached) " >&6
11593else
11594 ac_check_lib_save_LIBS=$LIBS
11595LIBS="-ldld $LIBS"
11596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11597/* end confdefs.h. */
11598
11599/* Override any GCC internal prototype to avoid an error.
11600 Use char because int might match the return type of a GCC
11601 builtin and then its argument prototype would still apply. */
11602#ifdef __cplusplus
11603extern "C"
11604#endif
11605char dld_link ();
11606int
11607main ()
11608{
11609return dld_link ();
11610 ;
11611 return 0;
11612}
11613_ACEOF
11614if ac_fn_c_try_link "$LINENO"; then :
11615 ac_cv_lib_dld_dld_link=yes
11616else
11617 ac_cv_lib_dld_dld_link=no
11618fi
11619rm -f core conftest.err conftest.$ac_objext \
11620 conftest$ac_exeext conftest.$ac_ext
11621LIBS=$ac_check_lib_save_LIBS
11622fi
11623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11624$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11625if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11626 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11627fi
11628
11629
11630fi
11631
11632
11633fi
11634
11635
11636fi
11637
11638
11639fi
11640
11641
11642fi
11643
11644 ;;
11645 esac
11646
11647 if test "x$lt_cv_dlopen" != xno; then
11648 enable_dlopen=yes
11649 else
11650 enable_dlopen=no
11651 fi
11652
11653 case $lt_cv_dlopen in
11654 dlopen)
11655 save_CPPFLAGS="$CPPFLAGS"
11656 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11657
11658 save_LDFLAGS="$LDFLAGS"
11659 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11660
11661 save_LIBS="$LIBS"
11662 LIBS="$lt_cv_dlopen_libs $LIBS"
11663
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11665$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11666if ${lt_cv_dlopen_self+:} false; then :
11667 $as_echo_n "(cached) " >&6
11668else
11669 if test "$cross_compiling" = yes; then :
11670 lt_cv_dlopen_self=cross
11671else
11672 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11673 lt_status=$lt_dlunknown
11674 cat > conftest.$ac_ext <<_LT_EOF
11675#line $LINENO "configure"
11676#include "confdefs.h"
11677
11678#if HAVE_DLFCN_H
11679#include <dlfcn.h>
11680#endif
11681
11682#include <stdio.h>
11683
11684#ifdef RTLD_GLOBAL
11685# define LT_DLGLOBAL RTLD_GLOBAL
11686#else
11687# ifdef DL_GLOBAL
11688# define LT_DLGLOBAL DL_GLOBAL
11689# else
11690# define LT_DLGLOBAL 0
11691# endif
11692#endif
11693
11694/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11695 find out it does not work in some platform. */
11696#ifndef LT_DLLAZY_OR_NOW
11697# ifdef RTLD_LAZY
11698# define LT_DLLAZY_OR_NOW RTLD_LAZY
11699# else
11700# ifdef DL_LAZY
11701# define LT_DLLAZY_OR_NOW DL_LAZY
11702# else
11703# ifdef RTLD_NOW
11704# define LT_DLLAZY_OR_NOW RTLD_NOW
11705# else
11706# ifdef DL_NOW
11707# define LT_DLLAZY_OR_NOW DL_NOW
11708# else
11709# define LT_DLLAZY_OR_NOW 0
11710# endif
11711# endif
11712# endif
11713# endif
11714#endif
11715
11716/* When -fvisbility=hidden is used, assume the code has been annotated
11717 correspondingly for the symbols needed. */
11718#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11719int fnord () __attribute__((visibility("default")));
11720#endif
11721
11722int fnord () { return 42; }
11723int main ()
11724{
11725 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11726 int status = $lt_dlunknown;
11727
11728 if (self)
11729 {
11730 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11731 else
11732 {
11733 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11734 else puts (dlerror ());
11735 }
11736 /* dlclose (self); */
11737 }
11738 else
11739 puts (dlerror ());
11740
11741 return status;
11742}
11743_LT_EOF
11744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11745 (eval $ac_link) 2>&5
11746 ac_status=$?
11747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11748 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11749 (./conftest; exit; ) >&5 2>/dev/null
11750 lt_status=$?
11751 case x$lt_status in
11752 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11753 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11754 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11755 esac
11756 else :
11757 # compilation failed
11758 lt_cv_dlopen_self=no
11759 fi
11760fi
11761rm -fr conftest*
11762
11763
11764fi
11765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11766$as_echo "$lt_cv_dlopen_self" >&6; }
11767
11768 if test "x$lt_cv_dlopen_self" = xyes; then
11769 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11771$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11772if ${lt_cv_dlopen_self_static+:} false; then :
11773 $as_echo_n "(cached) " >&6
11774else
11775 if test "$cross_compiling" = yes; then :
11776 lt_cv_dlopen_self_static=cross
11777else
11778 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11779 lt_status=$lt_dlunknown
11780 cat > conftest.$ac_ext <<_LT_EOF
11781#line $LINENO "configure"
11782#include "confdefs.h"
11783
11784#if HAVE_DLFCN_H
11785#include <dlfcn.h>
11786#endif
11787
11788#include <stdio.h>
11789
11790#ifdef RTLD_GLOBAL
11791# define LT_DLGLOBAL RTLD_GLOBAL
11792#else
11793# ifdef DL_GLOBAL
11794# define LT_DLGLOBAL DL_GLOBAL
11795# else
11796# define LT_DLGLOBAL 0
11797# endif
11798#endif
11799
11800/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11801 find out it does not work in some platform. */
11802#ifndef LT_DLLAZY_OR_NOW
11803# ifdef RTLD_LAZY
11804# define LT_DLLAZY_OR_NOW RTLD_LAZY
11805# else
11806# ifdef DL_LAZY
11807# define LT_DLLAZY_OR_NOW DL_LAZY
11808# else
11809# ifdef RTLD_NOW
11810# define LT_DLLAZY_OR_NOW RTLD_NOW
11811# else
11812# ifdef DL_NOW
11813# define LT_DLLAZY_OR_NOW DL_NOW
11814# else
11815# define LT_DLLAZY_OR_NOW 0
11816# endif
11817# endif
11818# endif
11819# endif
11820#endif
11821
11822/* When -fvisbility=hidden is used, assume the code has been annotated
11823 correspondingly for the symbols needed. */
11824#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11825int fnord () __attribute__((visibility("default")));
11826#endif
11827
11828int fnord () { return 42; }
11829int main ()
11830{
11831 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11832 int status = $lt_dlunknown;
11833
11834 if (self)
11835 {
11836 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11837 else
11838 {
11839 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11840 else puts (dlerror ());
11841 }
11842 /* dlclose (self); */
11843 }
11844 else
11845 puts (dlerror ());
11846
11847 return status;
11848}
11849_LT_EOF
11850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11851 (eval $ac_link) 2>&5
11852 ac_status=$?
11853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11854 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11855 (./conftest; exit; ) >&5 2>/dev/null
11856 lt_status=$?
11857 case x$lt_status in
11858 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11859 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11860 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11861 esac
11862 else :
11863 # compilation failed
11864 lt_cv_dlopen_self_static=no
11865 fi
11866fi
11867rm -fr conftest*
11868
11869
11870fi
11871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11872$as_echo "$lt_cv_dlopen_self_static" >&6; }
11873 fi
11874
11875 CPPFLAGS="$save_CPPFLAGS"
11876 LDFLAGS="$save_LDFLAGS"
11877 LIBS="$save_LIBS"
11878 ;;
11879 esac
11880
11881 case $lt_cv_dlopen_self in
11882 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11883 *) enable_dlopen_self=unknown ;;
11884 esac
11885
11886 case $lt_cv_dlopen_self_static in
11887 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11888 *) enable_dlopen_self_static=unknown ;;
11889 esac
11890fi
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908striplib=
11909old_striplib=
11910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11911$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11912if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11913 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11914 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11916$as_echo "yes" >&6; }
11917else
11918# FIXME - insert some real tests, host_os isn't really good enough
11919 case $host_os in
11920 darwin*)
11921 if test -n "$STRIP" ; then
11922 striplib="$STRIP -x"
11923 old_striplib="$STRIP -S"
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11925$as_echo "yes" >&6; }
11926 else
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11928$as_echo "no" >&6; }
11929 fi
11930 ;;
11931 *)
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11933$as_echo "no" >&6; }
11934 ;;
11935 esac
11936fi
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949 # Report which library types will actually be built
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11951$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11953$as_echo "$can_build_shared" >&6; }
11954
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11956$as_echo_n "checking whether to build shared libraries... " >&6; }
11957 test "$can_build_shared" = "no" && enable_shared=no
11958
11959 # On AIX, shared libraries and static libraries use the same namespace, and
11960 # are all built from PIC.
11961 case $host_os in
11962 aix3*)
11963 test "$enable_shared" = yes && enable_static=no
11964 if test -n "$RANLIB"; then
11965 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11966 postinstall_cmds='$RANLIB $lib'
11967 fi
11968 ;;
11969
11970 aix[4-9]*)
11971 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11972 test "$enable_shared" = yes && enable_static=no
11973 fi
11974 ;;
11975 esac
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11977$as_echo "$enable_shared" >&6; }
11978
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11980$as_echo_n "checking whether to build static libraries... " >&6; }
11981 # Make sure either enable_shared or enable_static is yes.
11982 test "$enable_shared" = yes || enable_static=yes
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11984$as_echo "$enable_static" >&6; }
11985
11986
11987
11988
11989fi
11990ac_ext=c
11991ac_cpp='$CPP $CPPFLAGS'
11992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11994ac_compiler_gnu=$ac_cv_c_compiler_gnu
11995
11996CC="$lt_save_CC"
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012 ac_config_commands="$ac_config_commands libtool"
12013
12014
12015
12016
12017# Only expand once:
12018
12019
12020
12021# On Solaris 10 and 12 CPP gets set to cc -E, however this still
12022# does some input parsing. We need strict ANSI-C style tokenization,
12023# check this:
12024
12025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a C preprocessor that does not parse its input" >&5
12026$as_echo_n "checking for a C preprocessor that does not parse its input... " >&6; }
12027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12028/* end confdefs.h. */
120291.5.0 16BIT
12030_ACEOF
12031if ac_fn_c_try_cpp "$LINENO"; then :
12032 DFNCPP="$CPP"
12033else
12034 DFNCPP=""
12035 sav_CPP="$CPP"
12036 for CPP in "${CC-cc} -E" "${CC-cc} -E -traditional-cpp" "/lib/cpp" "cpp"; do
12037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12038/* end confdefs.h. */
120391.5.0 16BIT
12040_ACEOF
12041if ac_fn_c_try_cpp "$LINENO"; then :
12042 DFNCPP="$CPP"
12043 break
12044fi
12045rm -f conftest.err conftest.i conftest.$ac_ext
12046 done
12047 CPP="$sav_CPP"
12048fi
12049rm -f conftest.err conftest.i conftest.$ac_ext
12050if test -n "$DFNCPP"; then
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DFNCPP" >&5
12052$as_echo "$DFNCPP" >&6; }
12053
12054else
12055 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12056$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12057as_fn_error 1 "not found
12058See \`config.log' for more details" "$LINENO" 5; }
12059fi
12060
12061# Checks for header files.
12062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12063$as_echo_n "checking for ANSI C header files... " >&6; }
12064if ${ac_cv_header_stdc+:} false; then :
12065 $as_echo_n "(cached) " >&6
12066else
12067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12068/* end confdefs.h. */
12069#include <stdlib.h>
12070#include <stdarg.h>
12071#include <string.h>
12072#include <float.h>
12073
12074int
12075main ()
12076{
12077
12078 ;
12079 return 0;
12080}
12081_ACEOF
12082if ac_fn_c_try_compile "$LINENO"; then :
12083 ac_cv_header_stdc=yes
12084else
12085 ac_cv_header_stdc=no
12086fi
12087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12088
12089if test $ac_cv_header_stdc = yes; then
12090 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12092/* end confdefs.h. */
12093#include <string.h>
12094
12095_ACEOF
12096if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12097 $EGREP "memchr" >/dev/null 2>&1; then :
12098
12099else
12100 ac_cv_header_stdc=no
12101fi
12102rm -f conftest*
12103
12104fi
12105
12106if test $ac_cv_header_stdc = yes; then
12107 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12109/* end confdefs.h. */
12110#include <stdlib.h>
12111
12112_ACEOF
12113if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12114 $EGREP "free" >/dev/null 2>&1; then :
12115
12116else
12117 ac_cv_header_stdc=no
12118fi
12119rm -f conftest*
12120
12121fi
12122
12123if test $ac_cv_header_stdc = yes; then
12124 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12125 if test "$cross_compiling" = yes; then :
12126 :
12127else
12128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12129/* end confdefs.h. */
12130#include <ctype.h>
12131#include <stdlib.h>
12132#if ((' ' & 0x0FF) == 0x020)
12133# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12134# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12135#else
12136# define ISLOWER(c) \
12137 (('a' <= (c) && (c) <= 'i') \
12138 || ('j' <= (c) && (c) <= 'r') \
12139 || ('s' <= (c) && (c) <= 'z'))
12140# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12141#endif
12142
12143#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12144int
12145main ()
12146{
12147 int i;
12148 for (i = 0; i < 256; i++)
12149 if (XOR (islower (i), ISLOWER (i))
12150 || toupper (i) != TOUPPER (i))
12151 return 2;
12152 return 0;
12153}
12154_ACEOF
12155if ac_fn_c_try_run "$LINENO"; then :
12156
12157else
12158 ac_cv_header_stdc=no
12159fi
12160rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12161 conftest.$ac_objext conftest.beam conftest.$ac_ext
12162fi
12163
12164fi
12165fi
12166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12167$as_echo "$ac_cv_header_stdc" >&6; }
12168if test $ac_cv_header_stdc = yes; then
12169
12170$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12171
12172fi
12173
12174for ac_header in malloc.h stdlib.h string.h strings.h
12175do :
12176 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12177ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12178if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12179 cat >>confdefs.h <<_ACEOF
12180#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12181_ACEOF
12182
12183fi
12184
12185done
12186
12187
12188# Checks for typedefs, structures, and compiler characteristics.
12189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12190$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12191if ${ac_cv_c_const+:} false; then :
12192 $as_echo_n "(cached) " >&6
12193else
12194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12195/* end confdefs.h. */
12196
12197int
12198main ()
12199{
12200/* FIXME: Include the comments suggested by Paul. */
12201#ifndef __cplusplus
12202 /* Ultrix mips cc rejects this. */
12203 typedef int charset[2];
12204 const charset cs;
12205 /* SunOS 4.1.1 cc rejects this. */
12206 char const *const *pcpcc;
12207 char **ppc;
12208 /* NEC SVR4.0.2 mips cc rejects this. */
12209 struct point {int x, y;};
12210 static struct point const zero = {0,0};
12211 /* AIX XL C 1.02.0.0 rejects this.
12212 It does not let you subtract one const X* pointer from another in
12213 an arm of an if-expression whose if-part is not a constant
12214 expression */
12215 const char *g = "string";
12216 pcpcc = &g + (g ? g-g : 0);
12217 /* HPUX 7.0 cc rejects these. */
12218 ++pcpcc;
12219 ppc = (char**) pcpcc;
12220 pcpcc = (char const *const *) ppc;
12221 { /* SCO 3.2v4 cc rejects this. */
12222 char *t;
12223 char const *s = 0 ? (char *) 0 : (char const *) 0;
12224
12225 *t++ = 0;
12226 if (s) return 0;
12227 }
12228 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12229 int x[] = {25, 17};
12230 const int *foo = &x[0];
12231 ++foo;
12232 }
12233 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12234 typedef const int *iptr;
12235 iptr p = 0;
12236 ++p;
12237 }
12238 { /* AIX XL C 1.02.0.0 rejects this saying
12239 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12240 struct s { int j; const int *ap[3]; };
12241 struct s *b; b->j = 5;
12242 }
12243 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12244 const int foo = 10;
12245 if (!foo) return 0;
12246 }
12247 return !cs[0] && !zero.x;
12248#endif
12249
12250 ;
12251 return 0;
12252}
12253_ACEOF
12254if ac_fn_c_try_compile "$LINENO"; then :
12255 ac_cv_c_const=yes
12256else
12257 ac_cv_c_const=no
12258fi
12259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12260fi
12261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12262$as_echo "$ac_cv_c_const" >&6; }
12263if test $ac_cv_c_const = no; then
12264
12265$as_echo "#define const /**/" >>confdefs.h
12266
12267fi
12268
12269ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12270if test "x$ac_cv_type_size_t" = xyes; then :
12271
12272else
12273
12274cat >>confdefs.h <<_ACEOF
12275#define size_t unsigned int
12276_ACEOF
12277
12278fi
12279
12280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12281$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12282if ${ac_cv_struct_tm+:} false; then :
12283 $as_echo_n "(cached) " >&6
12284else
12285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12286/* end confdefs.h. */
12287#include <sys/types.h>
12288#include <time.h>
12289
12290int
12291main ()
12292{
12293struct tm tm;
12294 int *p = &tm.tm_sec;
12295 return !p;
12296 ;
12297 return 0;
12298}
12299_ACEOF
12300if ac_fn_c_try_compile "$LINENO"; then :
12301 ac_cv_struct_tm=time.h
12302else
12303 ac_cv_struct_tm=sys/time.h
12304fi
12305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12306fi
12307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12308$as_echo "$ac_cv_struct_tm" >&6; }
12309if test $ac_cv_struct_tm = sys/time.h; then
12310
12311$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12312
12313fi
12314
12315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
12316$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
12317if ${ac_cv_c_restrict+:} false; then :
12318 $as_echo_n "(cached) " >&6
12319else
12320 ac_cv_c_restrict=no
12321 # The order here caters to the fact that C++ does not require restrict.
12322 for ac_kw in __restrict __restrict__ _Restrict restrict; do
12323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12324/* end confdefs.h. */
12325typedef int * int_ptr;
12326 int foo (int_ptr $ac_kw ip) {
12327 return ip[0];
12328 }
12329int
12330main ()
12331{
12332int s[1];
12333 int * $ac_kw t = s;
12334 t[0] = 0;
12335 return foo(t)
12336 ;
12337 return 0;
12338}
12339_ACEOF
12340if ac_fn_c_try_compile "$LINENO"; then :
12341 ac_cv_c_restrict=$ac_kw
12342fi
12343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12344 test "$ac_cv_c_restrict" != no && break
12345 done
12346
12347fi
12348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
12349$as_echo "$ac_cv_c_restrict" >&6; }
12350
12351 case $ac_cv_c_restrict in
12352 restrict) ;;
12353 no) $as_echo "#define restrict /**/" >>confdefs.h
12354 ;;
12355 *) cat >>confdefs.h <<_ACEOF
12356#define restrict $ac_cv_c_restrict
12357_ACEOF
12358 ;;
12359 esac
12360
12361
12362# Checks for library functions.
12363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
12364$as_echo_n "checking for working strtod... " >&6; }
12365if ${ac_cv_func_strtod+:} false; then :
12366 $as_echo_n "(cached) " >&6
12367else
12368 if test "$cross_compiling" = yes; then :
12369 ac_cv_func_strtod=no
12370else
12371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12372/* end confdefs.h. */
12373
12374$ac_includes_default
12375#ifndef strtod
12376double strtod ();
12377#endif
12378int
12379main()
12380{
12381 {
12382 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
12383 char *string = " +69";
12384 char *term;
12385 double value;
12386 value = strtod (string, &term);
12387 if (value != 69 || term != (string + 4))
12388 return 1;
12389 }
12390
12391 {
12392 /* Under Solaris 2.4, strtod returns the wrong value for the
12393 terminating character under some conditions. */
12394 char *string = "NaN";
12395 char *term;
12396 strtod (string, &term);
12397 if (term != string && *(term - 1) == 0)
12398 return 1;
12399 }
12400 return 0;
12401}
12402
12403_ACEOF
12404if ac_fn_c_try_run "$LINENO"; then :
12405 ac_cv_func_strtod=yes
12406else
12407 ac_cv_func_strtod=no
12408fi
12409rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12410 conftest.$ac_objext conftest.beam conftest.$ac_ext
12411fi
12412
12413fi
12414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
12415$as_echo "$ac_cv_func_strtod" >&6; }
12416if test $ac_cv_func_strtod = no; then
12417 case " $LIBOBJS " in
12418 *" strtod.$ac_objext "* ) ;;
12419 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
12420 ;;
12421esac
12422
12423ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12424if test "x$ac_cv_func_pow" = xyes; then :
12425
12426fi
12427
12428if test $ac_cv_func_pow = no; then
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12430$as_echo_n "checking for pow in -lm... " >&6; }
12431if ${ac_cv_lib_m_pow+:} false; then :
12432 $as_echo_n "(cached) " >&6
12433else
12434 ac_check_lib_save_LIBS=$LIBS
12435LIBS="-lm $LIBS"
12436cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12437/* end confdefs.h. */
12438
12439/* Override any GCC internal prototype to avoid an error.
12440 Use char because int might match the return type of a GCC
12441 builtin and then its argument prototype would still apply. */
12442#ifdef __cplusplus
12443extern "C"
12444#endif
12445char pow ();
12446int
12447main ()
12448{
12449return pow ();
12450 ;
12451 return 0;
12452}
12453_ACEOF
12454if ac_fn_c_try_link "$LINENO"; then :
12455 ac_cv_lib_m_pow=yes
12456else
12457 ac_cv_lib_m_pow=no
12458fi
12459rm -f core conftest.err conftest.$ac_objext \
12460 conftest$ac_exeext conftest.$ac_ext
12461LIBS=$ac_check_lib_save_LIBS
12462fi
12463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12464$as_echo "$ac_cv_lib_m_pow" >&6; }
12465if test "x$ac_cv_lib_m_pow" = xyes; then :
12466 POW_LIB=-lm
12467else
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
12469$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12470fi
12471
12472fi
12473
12474fi
12475
12476for ac_func in memset
12477do :
12478 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
12479if test "x$ac_cv_func_memset" = xyes; then :
12480 cat >>confdefs.h <<_ACEOF
12481#define HAVE_MEMSET 1
12482_ACEOF
12483
12484else
12485 as_fn_error $? "memset not found in libc" "$LINENO" 5
12486fi
12487done
12488
12489for ac_func in pow
12490do :
12491 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12492if test "x$ac_cv_func_pow" = xyes; then :
12493 cat >>confdefs.h <<_ACEOF
12494#define HAVE_POW 1
12495_ACEOF
12496
12497else
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12499$as_echo_n "checking for pow in -lm... " >&6; }
12500if ${ac_cv_lib_m_pow+:} false; then :
12501 $as_echo_n "(cached) " >&6
12502else
12503 ac_check_lib_save_LIBS=$LIBS
12504LIBS="-lm $LIBS"
12505cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12506/* end confdefs.h. */
12507
12508/* Override any GCC internal prototype to avoid an error.
12509 Use char because int might match the return type of a GCC
12510 builtin and then its argument prototype would still apply. */
12511#ifdef __cplusplus
12512extern "C"
12513#endif
12514char pow ();
12515int
12516main ()
12517{
12518return pow ();
12519 ;
12520 return 0;
12521}
12522_ACEOF
12523if ac_fn_c_try_link "$LINENO"; then :
12524 ac_cv_lib_m_pow=yes
12525else
12526 ac_cv_lib_m_pow=no
12527fi
12528rm -f core conftest.err conftest.$ac_objext \
12529 conftest$ac_exeext conftest.$ac_ext
12530LIBS=$ac_check_lib_save_LIBS
12531fi
12532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12533$as_echo "$ac_cv_lib_m_pow" >&6; }
12534if test "x$ac_cv_lib_m_pow" = xyes; then :
12535 cat >>confdefs.h <<_ACEOF
12536#define HAVE_LIBM 1
12537_ACEOF
12538
12539 LIBS="-lm $LIBS"
12540
12541else
12542 as_fn_error $? "cannot find pow" "$LINENO" 5
12543fi
12544
12545fi
12546done
12547
12548
12549# Check whether --with-zlib-prefix was given.
12550if test "${with_zlib_prefix+set}" = set; then :
12551 withval=$with_zlib_prefix; ZPREFIX=${withval}
12552else
12553 ZPREFIX='z_'
12554fi
12555
12556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
12557$as_echo_n "checking for zlibVersion in -lz... " >&6; }
12558if ${ac_cv_lib_z_zlibVersion+:} false; then :
12559 $as_echo_n "(cached) " >&6
12560else
12561 ac_check_lib_save_LIBS=$LIBS
12562LIBS="-lz $LIBS"
12563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12564/* end confdefs.h. */
12565
12566/* Override any GCC internal prototype to avoid an error.
12567 Use char because int might match the return type of a GCC
12568 builtin and then its argument prototype would still apply. */
12569#ifdef __cplusplus
12570extern "C"
12571#endif
12572char zlibVersion ();
12573int
12574main ()
12575{
12576return zlibVersion ();
12577 ;
12578 return 0;
12579}
12580_ACEOF
12581if ac_fn_c_try_link "$LINENO"; then :
12582 ac_cv_lib_z_zlibVersion=yes
12583else
12584 ac_cv_lib_z_zlibVersion=no
12585fi
12586rm -f core conftest.err conftest.$ac_objext \
12587 conftest$ac_exeext conftest.$ac_ext
12588LIBS=$ac_check_lib_save_LIBS
12589fi
12590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
12591$as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
12592if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
12593 cat >>confdefs.h <<_ACEOF
12594#define HAVE_LIBZ 1
12595_ACEOF
12596
12597 LIBS="-lz $LIBS"
12598
12599else
12600 as_ac_Lib=`$as_echo "ac_cv_lib_z_${ZPREFIX}zlibVersion" | $as_tr_sh`
12601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ZPREFIX}zlibVersion in -lz" >&5
12602$as_echo_n "checking for ${ZPREFIX}zlibVersion in -lz... " >&6; }
12603if eval \${$as_ac_Lib+:} false; then :
12604 $as_echo_n "(cached) " >&6
12605else
12606 ac_check_lib_save_LIBS=$LIBS
12607LIBS="-lz $LIBS"
12608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12609/* end confdefs.h. */
12610
12611/* Override any GCC internal prototype to avoid an error.
12612 Use char because int might match the return type of a GCC
12613 builtin and then its argument prototype would still apply. */
12614#ifdef __cplusplus
12615extern "C"
12616#endif
12617char ${ZPREFIX}zlibVersion ();
12618int
12619main ()
12620{
12621return ${ZPREFIX}zlibVersion ();
12622 ;
12623 return 0;
12624}
12625_ACEOF
12626if ac_fn_c_try_link "$LINENO"; then :
12627 eval "$as_ac_Lib=yes"
12628else
12629 eval "$as_ac_Lib=no"
12630fi
12631rm -f core conftest.err conftest.$ac_objext \
12632 conftest$ac_exeext conftest.$ac_ext
12633LIBS=$ac_check_lib_save_LIBS
12634fi
12635eval ac_res=\$$as_ac_Lib
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12637$as_echo "$ac_res" >&6; }
12638if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12639 cat >>confdefs.h <<_ACEOF
12640#define HAVE_LIBZ 1
12641_ACEOF
12642
12643 LIBS="-lz $LIBS"
12644
12645else
12646 as_fn_error $? "zlib not installed" "$LINENO" 5
12647fi
12648
12649fi
12650
12651
12652# The following is for pngvalid, to ensure it catches FP errors even on
12653# platforms that don't enable FP exceptions, the function appears in the math
12654# library (typically), it's not an error if it is not found.
12655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
12656$as_echo_n "checking for feenableexcept in -lm... " >&6; }
12657if ${ac_cv_lib_m_feenableexcept+:} false; then :
12658 $as_echo_n "(cached) " >&6
12659else
12660 ac_check_lib_save_LIBS=$LIBS
12661LIBS="-lm $LIBS"
12662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12663/* end confdefs.h. */
12664
12665/* Override any GCC internal prototype to avoid an error.
12666 Use char because int might match the return type of a GCC
12667 builtin and then its argument prototype would still apply. */
12668#ifdef __cplusplus
12669extern "C"
12670#endif
12671char feenableexcept ();
12672int
12673main ()
12674{
12675return feenableexcept ();
12676 ;
12677 return 0;
12678}
12679_ACEOF
12680if ac_fn_c_try_link "$LINENO"; then :
12681 ac_cv_lib_m_feenableexcept=yes
12682else
12683 ac_cv_lib_m_feenableexcept=no
12684fi
12685rm -f core conftest.err conftest.$ac_objext \
12686 conftest$ac_exeext conftest.$ac_ext
12687LIBS=$ac_check_lib_save_LIBS
12688fi
12689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
12690$as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
12691if test "x$ac_cv_lib_m_feenableexcept" = xyes; then :
12692 cat >>confdefs.h <<_ACEOF
12693#define HAVE_LIBM 1
12694_ACEOF
12695
12696 LIBS="-lm $LIBS"
12697
12698fi
12699
12700for ac_func in feenableexcept
12701do :
12702 ac_fn_c_check_func "$LINENO" "feenableexcept" "ac_cv_func_feenableexcept"
12703if test "x$ac_cv_func_feenableexcept" = xyes; then :
12704 cat >>confdefs.h <<_ACEOF
12705#define HAVE_FEENABLEEXCEPT 1
12706_ACEOF
12707
12708fi
12709done
12710
12711
12712LIBPNG_DEFINES=-DPNG_CONFIGURE_LIBPNG
12713LIBPNG_DEFINES=$LIBPNG_DEFINES
12714
12715
12716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
12717$as_echo_n "checking if libraries can be versioned... " >&6; }
12718
12719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if using Solaris linker" >&5
12720$as_echo_n "checking if using Solaris linker... " >&6; }
12721SLD=`$LD --version 2>&1 | grep Solaris`
12722if test "$SLD"; then
12723 have_solaris_ld=yes
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12725$as_echo "yes" >&6; }
12726else
12727 have_solaris_ld=no
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12729$as_echo "no" >&6; }
12730fi
12731 if test "$have_solaris_ld" = "yes"; then
12732 HAVE_SOLARIS_LD_TRUE=
12733 HAVE_SOLARIS_LD_FALSE='#'
12734else
12735 HAVE_SOLARIS_LD_TRUE='#'
12736 HAVE_SOLARIS_LD_FALSE=
12737fi
12738
12739
12740# Special case for PE/COFF platforms: ld reports
12741# support for version-script, but doesn't actually
12742# DO anything with it.
12743case $host in
12744*cygwin* | *mingw32* | *interix* )
12745 have_ld_version_script=no
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12747$as_echo "no" >&6; }
12748;;
12749* )
12750
12751if test "$have_solaris_ld" = "yes"; then
12752 GLD=`$LD --help < /dev/null 2>&1 | grep 'M mapfile'`
12753else
12754 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
12755fi
12756
12757if test "$GLD"; then
12758 have_ld_version_script=yes
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12760$as_echo "yes" >&6; }
12761else
12762 have_ld_version_script=no
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12764$as_echo "no" >&6; }
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** You have not enabled versioned symbols." >&5
12766$as_echo "$as_me: WARNING: *** You have not enabled versioned symbols." >&2;}
12767fi
12768;;
12769esac
12770
12771 if test "$have_ld_version_script" = "yes"; then
12772 HAVE_LD_VERSION_SCRIPT_TRUE=
12773 HAVE_LD_VERSION_SCRIPT_FALSE='#'
12774else
12775 HAVE_LD_VERSION_SCRIPT_TRUE='#'
12776 HAVE_LD_VERSION_SCRIPT_FALSE=
12777fi
12778
12779
12780if test "$have_ld_version_script" = "yes"; then
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbol prefix" >&5
12782$as_echo_n "checking for symbol prefix... " >&6; }
12783 SYMBOL_PREFIX=`echo "PREFIX=__USER_LABEL_PREFIX__" \
12784 | ${CPP-${CC-gcc} -E} - 2>&1 \
12785 | ${EGREP-grep} "^PREFIX=" \
12786 | ${SED-sed} "s:^PREFIX=::"`
12787
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMBOL_PREFIX" >&5
12789$as_echo "$SYMBOL_PREFIX" >&6; }
12790fi
12791
12792# Substitutions for .in files
12793
12794
12795
12796
12797
12798# Additional arguments (and substitutions)
12799# Allow the pkg-config directory to be set
12800
12801# Check whether --with-pkgconfigdir was given.
12802if test "${with_pkgconfigdir+set}" = set; then :
12803 withval=$with_pkgconfigdir; pkgconfigdir=${withval}
12804else
12805 pkgconfigdir='${libdir}/pkgconfig'
12806fi
12807
12808
12809
12810{ $as_echo "$as_me:${as_lineno-$LINENO}: pkgconfig directory is ${pkgconfigdir}" >&5
12811$as_echo "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;}
12812
12813# Make the *-config binary config scripts optional
12814
12815# Check whether --with-binconfigs was given.
12816if test "${with_binconfigs+set}" = set; then :
12817 withval=$with_binconfigs; if test "${withval}" = no; then
12818 binconfigs=
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: libpng-config scripts will not be built" >&5
12820$as_echo "$as_me: libpng-config scripts will not be built" >&6;}
12821 else
12822 binconfigs='${binconfigs}'
12823 fi
12824else
12825 binconfigs='${binconfigs}'
12826fi
12827
12828
12829
12830# Because GCC by default assembles code with an executable stack, even though it
12831# compiles C code with a non-executable stack, it is necessary to do a fixup
12832# here (this may by GCC specific)
12833AM_CCASFLAGS=-Wa,--noexecstack
12834
12835
12836# Check whether --enable-arm-neon was given.
12837if test "${enable_arm_neon+set}" = set; then :
12838 enableval=$enable_arm_neon; if test "${enableval}" = yes; then
12839
12840$as_echo "#define PNG_ARM_NEON 1" >>confdefs.h
12841
12842
12843$as_echo "#define PNG_ALIGNED_MEMORY_SUPPORTED 1" >>confdefs.h
12844
12845 fi
12846fi
12847
12848 if test "${enable_arm_neon:-no}" = yes; then
12849 PNG_ARM_NEON_TRUE=
12850 PNG_ARM_NEON_FALSE='#'
12851else
12852 PNG_ARM_NEON_TRUE='#'
12853 PNG_ARM_NEON_FALSE=
12854fi
12855
12856
12857# Config files, substituting as above
12858ac_config_files="$ac_config_files Makefile libpng.pc:libpng.pc.in"
12859
12860ac_config_files="$ac_config_files libpng-config:libpng-config.in"
12861
12862
12863cat >confcache <<\_ACEOF
12864# This file is a shell script that caches the results of configure
12865# tests run on this system so they can be shared between configure
12866# scripts and configure runs, see configure's option --config-cache.
12867# It is not useful on other systems. If it contains results you don't
12868# want to keep, you may remove or edit it.
12869#
12870# config.status only pays attention to the cache file if you give it
12871# the --recheck option to rerun configure.
12872#
12873# `ac_cv_env_foo' variables (set or unset) will be overridden when
12874# loading this file, other *unset* `ac_cv_foo' will be assigned the
12875# following values.
12876
12877_ACEOF
12878
12879# The following way of writing the cache mishandles newlines in values,
12880# but we know of no workaround that is simple, portable, and efficient.
12881# So, we kill variables containing newlines.
12882# Ultrix sh set writes to stderr and can't be redirected directly,
12883# and sets the high bit in the cache file unless we assign to the vars.
12884(
12885 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12886 eval ac_val=\$$ac_var
12887 case $ac_val in #(
12888 *${as_nl}*)
12889 case $ac_var in #(
12890 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12891$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12892 esac
12893 case $ac_var in #(
12894 _ | IFS | as_nl) ;; #(
12895 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12896 *) { eval $ac_var=; unset $ac_var;} ;;
12897 esac ;;
12898 esac
12899 done
12900
12901 (set) 2>&1 |
12902 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12903 *${as_nl}ac_space=\ *)
12904 # `set' does not quote correctly, so add quotes: double-quote
12905 # substitution turns \\\\ into \\, and sed turns \\ into \.
12906 sed -n \
12907 "s/'/'\\\\''/g;
12908 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12909 ;; #(
12910 *)
12911 # `set' quotes correctly as required by POSIX, so do not add quotes.
12912 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12913 ;;
12914 esac |
12915 sort
12916) |
12917 sed '
12918 /^ac_cv_env_/b end
12919 t clear
12920 :clear
12921 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12922 t end
12923 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12924 :end' >>confcache
12925if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12926 if test -w "$cache_file"; then
12927 if test "x$cache_file" != "x/dev/null"; then
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12929$as_echo "$as_me: updating cache $cache_file" >&6;}
12930 if test ! -f "$cache_file" || test -h "$cache_file"; then
12931 cat confcache >"$cache_file"
12932 else
12933 case $cache_file in #(
12934 */* | ?:*)
12935 mv -f confcache "$cache_file"$$ &&
12936 mv -f "$cache_file"$$ "$cache_file" ;; #(
12937 *)
12938 mv -f confcache "$cache_file" ;;
12939 esac
12940 fi
12941 fi
12942 else
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12944$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12945 fi
12946fi
12947rm -f confcache
12948
12949test "x$prefix" = xNONE && prefix=$ac_default_prefix
12950# Let make expand exec_prefix.
12951test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12952
12953DEFS=-DHAVE_CONFIG_H
12954
12955ac_libobjs=
12956ac_ltlibobjs=
12957U=
12958for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12959 # 1. Remove the extension, and $U if already installed.
12960 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12961 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12962 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12963 # will be set to the directory where LIBOBJS objects are built.
12964 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12965 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12966done
12967LIBOBJS=$ac_libobjs
12968
12969LTLIBOBJS=$ac_ltlibobjs
12970
12971
12972 if test -n "$EXEEXT"; then
12973 am__EXEEXT_TRUE=
12974 am__EXEEXT_FALSE='#'
12975else
12976 am__EXEEXT_TRUE='#'
12977 am__EXEEXT_FALSE=
12978fi
12979
12980if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12981 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12982Usually this means the macro was only invoked conditionally." "$LINENO" 5
12983fi
12984if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12985 as_fn_error $? "conditional \"AMDEP\" was never defined.
12986Usually this means the macro was only invoked conditionally." "$LINENO" 5
12987fi
12988if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12989 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12990Usually this means the macro was only invoked conditionally." "$LINENO" 5
12991fi
12992if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
12993 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
12994Usually this means the macro was only invoked conditionally." "$LINENO" 5
12995fi
12996if test -z "${HAVE_SOLARIS_LD_TRUE}" && test -z "${HAVE_SOLARIS_LD_FALSE}"; then
12997 as_fn_error $? "conditional \"HAVE_SOLARIS_LD\" was never defined.
12998Usually this means the macro was only invoked conditionally." "$LINENO" 5
12999fi
13000if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
13001 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
13002Usually this means the macro was only invoked conditionally." "$LINENO" 5
13003fi
13004if test -z "${PNG_ARM_NEON_TRUE}" && test -z "${PNG_ARM_NEON_FALSE}"; then
13005 as_fn_error $? "conditional \"PNG_ARM_NEON\" was never defined.
13006Usually this means the macro was only invoked conditionally." "$LINENO" 5
13007fi
13008
13009: "${CONFIG_STATUS=./config.status}"
13010ac_write_fail=0
13011ac_clean_files_save=$ac_clean_files
13012ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13013{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13014$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13015as_write_fail=0
13016cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13017#! $SHELL
13018# Generated by $as_me.
13019# Run this file to recreate the current configuration.
13020# Compiler output produced by configure, useful for debugging
13021# configure, is in config.log if it exists.
13022
13023debug=false
13024ac_cs_recheck=false
13025ac_cs_silent=false
13026
13027SHELL=\${CONFIG_SHELL-$SHELL}
13028export SHELL
13029_ASEOF
13030cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13031## -------------------- ##
13032## M4sh Initialization. ##
13033## -------------------- ##
13034
13035# Be more Bourne compatible
13036DUALCASE=1; export DUALCASE # for MKS sh
13037if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13038 emulate sh
13039 NULLCMD=:
13040 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13041 # is contrary to our usage. Disable this feature.
13042 alias -g '${1+"$@"}'='"$@"'
13043 setopt NO_GLOB_SUBST
13044else
13045 case `(set -o) 2>/dev/null` in #(
13046 *posix*) :
13047 set -o posix ;; #(
13048 *) :
13049 ;;
13050esac
13051fi
13052
13053
13054as_nl='
13055'
13056export as_nl
13057# Printing a long string crashes Solaris 7 /usr/bin/printf.
13058as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13059as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13060as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13061# Prefer a ksh shell builtin over an external printf program on Solaris,
13062# but without wasting forks for bash or zsh.
13063if test -z "$BASH_VERSION$ZSH_VERSION" \
13064 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13065 as_echo='print -r --'
13066 as_echo_n='print -rn --'
13067elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13068 as_echo='printf %s\n'
13069 as_echo_n='printf %s'
13070else
13071 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13072 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13073 as_echo_n='/usr/ucb/echo -n'
13074 else
13075 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13076 as_echo_n_body='eval
13077 arg=$1;
13078 case $arg in #(
13079 *"$as_nl"*)
13080 expr "X$arg" : "X\\(.*\\)$as_nl";
13081 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13082 esac;
13083 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13084 '
13085 export as_echo_n_body
13086 as_echo_n='sh -c $as_echo_n_body as_echo'
13087 fi
13088 export as_echo_body
13089 as_echo='sh -c $as_echo_body as_echo'
13090fi
13091
13092# The user is always right.
13093if test "${PATH_SEPARATOR+set}" != set; then
13094 PATH_SEPARATOR=:
13095 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13096 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13097 PATH_SEPARATOR=';'
13098 }
13099fi
13100
13101
13102# IFS
13103# We need space, tab and new line, in precisely that order. Quoting is
13104# there to prevent editors from complaining about space-tab.
13105# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13106# splitting by setting IFS to empty value.)
13107IFS=" "" $as_nl"
13108
13109# Find who we are. Look in the path if we contain no directory separator.
13110as_myself=
13111case $0 in #((
13112 *[\\/]* ) as_myself=$0 ;;
13113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13114for as_dir in $PATH
13115do
13116 IFS=$as_save_IFS
13117 test -z "$as_dir" && as_dir=.
13118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13119 done
13120IFS=$as_save_IFS
13121
13122 ;;
13123esac
13124# We did not find ourselves, most probably we were run as `sh COMMAND'
13125# in which case we are not to be found in the path.
13126if test "x$as_myself" = x; then
13127 as_myself=$0
13128fi
13129if test ! -f "$as_myself"; then
13130 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13131 exit 1
13132fi
13133
13134# Unset variables that we do not need and which cause bugs (e.g. in
13135# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13136# suppresses any "Segmentation fault" message there. '((' could
13137# trigger a bug in pdksh 5.2.14.
13138for as_var in BASH_ENV ENV MAIL MAILPATH
13139do eval test x\${$as_var+set} = xset \
13140 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13141done
13142PS1='$ '
13143PS2='> '
13144PS4='+ '
13145
13146# NLS nuisances.
13147LC_ALL=C
13148export LC_ALL
13149LANGUAGE=C
13150export LANGUAGE
13151
13152# CDPATH.
13153(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13154
13155
13156# as_fn_error STATUS ERROR [LINENO LOG_FD]
13157# ----------------------------------------
13158# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13159# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13160# script with STATUS, using 1 if that was 0.
13161as_fn_error ()
13162{
13163 as_status=$1; test $as_status -eq 0 && as_status=1
13164 if test "$4"; then
13165 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13166 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13167 fi
13168 $as_echo "$as_me: error: $2" >&2
13169 as_fn_exit $as_status
13170} # as_fn_error
13171
13172
13173# as_fn_set_status STATUS
13174# -----------------------
13175# Set $? to STATUS, without forking.
13176as_fn_set_status ()
13177{
13178 return $1
13179} # as_fn_set_status
13180
13181# as_fn_exit STATUS
13182# -----------------
13183# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13184as_fn_exit ()
13185{
13186 set +e
13187 as_fn_set_status $1
13188 exit $1
13189} # as_fn_exit
13190
13191# as_fn_unset VAR
13192# ---------------
13193# Portably unset VAR.
13194as_fn_unset ()
13195{
13196 { eval $1=; unset $1;}
13197}
13198as_unset=as_fn_unset
13199# as_fn_append VAR VALUE
13200# ----------------------
13201# Append the text in VALUE to the end of the definition contained in VAR. Take
13202# advantage of any shell optimizations that allow amortized linear growth over
13203# repeated appends, instead of the typical quadratic growth present in naive
13204# implementations.
13205if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13206 eval 'as_fn_append ()
13207 {
13208 eval $1+=\$2
13209 }'
13210else
13211 as_fn_append ()
13212 {
13213 eval $1=\$$1\$2
13214 }
13215fi # as_fn_append
13216
13217# as_fn_arith ARG...
13218# ------------------
13219# Perform arithmetic evaluation on the ARGs, and store the result in the
13220# global $as_val. Take advantage of shells that can avoid forks. The arguments
13221# must be portable across $(()) and expr.
13222if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13223 eval 'as_fn_arith ()
13224 {
13225 as_val=$(( $* ))
13226 }'
13227else
13228 as_fn_arith ()
13229 {
13230 as_val=`expr "$@" || test $? -eq 1`
13231 }
13232fi # as_fn_arith
13233
13234
13235if expr a : '\(a\)' >/dev/null 2>&1 &&
13236 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13237 as_expr=expr
13238else
13239 as_expr=false
13240fi
13241
13242if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13243 as_basename=basename
13244else
13245 as_basename=false
13246fi
13247
13248if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13249 as_dirname=dirname
13250else
13251 as_dirname=false
13252fi
13253
13254as_me=`$as_basename -- "$0" ||
13255$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13256 X"$0" : 'X\(//\)$' \| \
13257 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13258$as_echo X/"$0" |
13259 sed '/^.*\/\([^/][^/]*\)\/*$/{
13260 s//\1/
13261 q
13262 }
13263 /^X\/\(\/\/\)$/{
13264 s//\1/
13265 q
13266 }
13267 /^X\/\(\/\).*/{
13268 s//\1/
13269 q
13270 }
13271 s/.*/./; q'`
13272
13273# Avoid depending upon Character Ranges.
13274as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13275as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13276as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13277as_cr_digits='0123456789'
13278as_cr_alnum=$as_cr_Letters$as_cr_digits
13279
13280ECHO_C= ECHO_N= ECHO_T=
13281case `echo -n x` in #(((((
13282-n*)
13283 case `echo 'xy\c'` in
13284 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13285 xy) ECHO_C='\c';;
13286 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13287 ECHO_T=' ';;
13288 esac;;
13289*)
13290 ECHO_N='-n';;
13291esac
13292
13293rm -f conf$$ conf$$.exe conf$$.file
13294if test -d conf$$.dir; then
13295 rm -f conf$$.dir/conf$$.file
13296else
13297 rm -f conf$$.dir
13298 mkdir conf$$.dir 2>/dev/null
13299fi
13300if (echo >conf$$.file) 2>/dev/null; then
13301 if ln -s conf$$.file conf$$ 2>/dev/null; then
13302 as_ln_s='ln -s'
13303 # ... but there are two gotchas:
13304 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13305 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13306 # In both cases, we have to default to `cp -p'.
13307 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13308 as_ln_s='cp -p'
13309 elif ln conf$$.file conf$$ 2>/dev/null; then
13310 as_ln_s=ln
13311 else
13312 as_ln_s='cp -p'
13313 fi
13314else
13315 as_ln_s='cp -p'
13316fi
13317rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13318rmdir conf$$.dir 2>/dev/null
13319
13320
13321# as_fn_mkdir_p
13322# -------------
13323# Create "$as_dir" as a directory, including parents if necessary.
13324as_fn_mkdir_p ()
13325{
13326
13327 case $as_dir in #(
13328 -*) as_dir=./$as_dir;;
13329 esac
13330 test -d "$as_dir" || eval $as_mkdir_p || {
13331 as_dirs=
13332 while :; do
13333 case $as_dir in #(
13334 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13335 *) as_qdir=$as_dir;;
13336 esac
13337 as_dirs="'$as_qdir' $as_dirs"
13338 as_dir=`$as_dirname -- "$as_dir" ||
13339$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13340 X"$as_dir" : 'X\(//\)[^/]' \| \
13341 X"$as_dir" : 'X\(//\)$' \| \
13342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13343$as_echo X"$as_dir" |
13344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13345 s//\1/
13346 q
13347 }
13348 /^X\(\/\/\)[^/].*/{
13349 s//\1/
13350 q
13351 }
13352 /^X\(\/\/\)$/{
13353 s//\1/
13354 q
13355 }
13356 /^X\(\/\).*/{
13357 s//\1/
13358 q
13359 }
13360 s/.*/./; q'`
13361 test -d "$as_dir" && break
13362 done
13363 test -z "$as_dirs" || eval "mkdir $as_dirs"
13364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13365
13366
13367} # as_fn_mkdir_p
13368if mkdir -p . 2>/dev/null; then
13369 as_mkdir_p='mkdir -p "$as_dir"'
13370else
13371 test -d ./-p && rmdir ./-p
13372 as_mkdir_p=false
13373fi
13374
13375if test -x / >/dev/null 2>&1; then
13376 as_test_x='test -x'
13377else
13378 if ls -dL / >/dev/null 2>&1; then
13379 as_ls_L_option=L
13380 else
13381 as_ls_L_option=
13382 fi
13383 as_test_x='
13384 eval sh -c '\''
13385 if test -d "$1"; then
13386 test -d "$1/.";
13387 else
13388 case $1 in #(
13389 -*)set "./$1";;
13390 esac;
13391 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13392 ???[sx]*):;;*)false;;esac;fi
13393 '\'' sh
13394 '
13395fi
13396as_executable_p=$as_test_x
13397
13398# Sed expression to map a string onto a valid CPP name.
13399as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13400
13401# Sed expression to map a string onto a valid variable name.
13402as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13403
13404
13405exec 6>&1
13406## ----------------------------------- ##
13407## Main body of $CONFIG_STATUS script. ##
13408## ----------------------------------- ##
13409_ASEOF
13410test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13411
13412cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13413# Save the log message, to keep $0 and so on meaningful, and to
13414# report actual input values of CONFIG_FILES etc. instead of their
13415# values after options handling.
13416ac_log="
13417This file was extended by libpng $as_me 1.5.7, which was
13418generated by GNU Autoconf 2.68. Invocation command line was
13419
13420 CONFIG_FILES = $CONFIG_FILES
13421 CONFIG_HEADERS = $CONFIG_HEADERS
13422 CONFIG_LINKS = $CONFIG_LINKS
13423 CONFIG_COMMANDS = $CONFIG_COMMANDS
13424 $ $0 $@
13425
13426on `(hostname || uname -n) 2>/dev/null | sed 1q`
0272a10d
VZ
13427"
13428
72281370
DS
13429_ACEOF
13430
13431case $ac_config_files in *"
13432"*) set x $ac_config_files; shift; ac_config_files=$*;;
13433esac
13434
13435case $ac_config_headers in *"
13436"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13437esac
13438
13439
13440cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13441# Files that config.status was made for.
13442config_files="$ac_config_files"
13443config_headers="$ac_config_headers"
13444config_commands="$ac_config_commands"
13445
13446_ACEOF
13447
13448cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13449ac_cs_usage="\
13450\`$as_me' instantiates files and other configuration actions
13451from templates according to the current configuration. Unless the files
13452and actions are specified as TAGs, all are instantiated by default.
13453
13454Usage: $0 [OPTION]... [TAG]...
13455
13456 -h, --help print this help, then exit
13457 -V, --version print version number and configuration settings, then exit
13458 --config print configuration, then exit
13459 -q, --quiet, --silent
13460 do not print progress messages
13461 -d, --debug don't remove temporary files
13462 --recheck update $as_me by reconfiguring in the same conditions
13463 --file=FILE[:TEMPLATE]
13464 instantiate the configuration file FILE
13465 --header=FILE[:TEMPLATE]
13466 instantiate the configuration header FILE
13467
13468Configuration files:
13469$config_files
13470
13471Configuration headers:
13472$config_headers
13473
13474Configuration commands:
13475$config_commands
13476
13477Report bugs to <png-mng-implement@lists.sourceforge.net>."
13478
13479_ACEOF
13480cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13481ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13482ac_cs_version="\\
13483libpng config.status 1.5.7
13484configured by $0, generated by GNU Autoconf 2.68,
13485 with options \\"\$ac_cs_config\\"
13486
13487Copyright (C) 2010 Free Software Foundation, Inc.
13488This config.status script is free software; the Free Software Foundation
13489gives unlimited permission to copy, distribute and modify it."
13490
13491ac_pwd='$ac_pwd'
13492srcdir='$srcdir'
13493INSTALL='$INSTALL'
13494MKDIR_P='$MKDIR_P'
13495AWK='$AWK'
13496test -n "\$AWK" || AWK=awk
13497_ACEOF
13498
13499cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13500# The default lists apply if the user does not specify any file.
13501ac_need_defaults=:
13502while test $# != 0
13503do
13504 case $1 in
13505 --*=?*)
13506 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13507 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13508 ac_shift=:
13509 ;;
13510 --*=)
13511 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13512 ac_optarg=
13513 ac_shift=:
13514 ;;
13515 *)
13516 ac_option=$1
13517 ac_optarg=$2
13518 ac_shift=shift
13519 ;;
13520 esac
13521
13522 case $ac_option in
13523 # Handling of the options.
13524 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13525 ac_cs_recheck=: ;;
13526 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13527 $as_echo "$ac_cs_version"; exit ;;
13528 --config | --confi | --conf | --con | --co | --c )
13529 $as_echo "$ac_cs_config"; exit ;;
13530 --debug | --debu | --deb | --de | --d | -d )
13531 debug=: ;;
13532 --file | --fil | --fi | --f )
13533 $ac_shift
13534 case $ac_optarg in
13535 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13536 '') as_fn_error $? "missing file argument" ;;
13537 esac
13538 as_fn_append CONFIG_FILES " '$ac_optarg'"
13539 ac_need_defaults=false;;
13540 --header | --heade | --head | --hea )
13541 $ac_shift
13542 case $ac_optarg in
13543 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13544 esac
13545 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13546 ac_need_defaults=false;;
13547 --he | --h)
13548 # Conflict between --help and --header
13549 as_fn_error $? "ambiguous option: \`$1'
13550Try \`$0 --help' for more information.";;
13551 --help | --hel | -h )
13552 $as_echo "$ac_cs_usage"; exit ;;
13553 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13554 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13555 ac_cs_silent=: ;;
13556
13557 # This is an error.
13558 -*) as_fn_error $? "unrecognized option: \`$1'
13559Try \`$0 --help' for more information." ;;
13560
13561 *) as_fn_append ac_config_targets " $1"
13562 ac_need_defaults=false ;;
13563
13564 esac
13565 shift
13566done
13567
13568ac_configure_extra_args=
13569
13570if $ac_cs_silent; then
13571 exec 6>/dev/null
13572 ac_configure_extra_args="$ac_configure_extra_args --silent"
13573fi
13574
13575_ACEOF
13576cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13577if \$ac_cs_recheck; then
13578 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13579 shift
13580 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13581 CONFIG_SHELL='$SHELL'
13582 export CONFIG_SHELL
13583 exec "\$@"
13584fi
13585
13586_ACEOF
13587cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13588exec 5>>config.log
13589{
13590 echo
13591 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13592## Running $as_me. ##
13593_ASBOX
13594 $as_echo "$ac_log"
13595} >&5
13596
13597_ACEOF
13598cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13599#
13600# INIT-COMMANDS
13601#
13602AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13603
13604
13605# The HP-UX ksh and POSIX shell print the target directory to stdout
13606# if CDPATH is set.
13607(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13608
13609sed_quote_subst='$sed_quote_subst'
13610double_quote_subst='$double_quote_subst'
13611delay_variable_subst='$delay_variable_subst'
13612SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13613Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13614GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13615EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13616FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13617SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13618ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13619LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13620macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13621macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13622AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13623DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13624OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13625enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13626enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13627pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13628enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13629PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13630host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13631host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13632host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13633build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13634build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13635build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13636NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13637LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13638max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13639ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13640exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13641lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13642lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13643lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13644lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13645lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13646reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13647reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13648deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13649file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13650file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13651want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13652sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13653AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13654AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13655archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13656STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13657RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13658old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13659old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13660old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13661lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13662CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13663CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13664compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13665GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13666lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13667lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13668lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13669lt_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"`'
13670nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13671lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13672objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13673MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13674lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13675lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13676lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13677lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13678lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13679need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13680MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13681DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13682NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13683LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13684OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13685OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13686libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13687shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13688extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13689archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13690enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13691export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13692whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13693compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13694old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13695old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13696archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13697archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13698module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13699module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13700with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13701allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13702no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13703hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13704hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13705hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13706hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13707hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13708hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13709hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13710inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13711link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13712always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13713export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13714exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13715include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13716prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13717postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13718file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13719variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13720need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13721need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13722version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13723runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13724shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13725shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13726libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13727library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13728soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13729install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13730postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13731postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13732finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13733finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13734hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13735sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13736sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13737hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13738enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13739enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13740enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13741old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13742striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13743
13744LTCC='$LTCC'
13745LTCFLAGS='$LTCFLAGS'
13746compiler='$compiler_DEFAULT'
13747
13748# A function that is used when there is no print builtin or printf.
13749func_fallback_echo ()
13750{
13751 eval 'cat <<_LTECHO_EOF
13752\$1
13753_LTECHO_EOF'
13754}
13755
13756# Quote evaled strings.
13757for var in SED \
13758GREP \
13759EGREP \
13760FGREP \
13761SHELL \
13762ECHO \
13763LD \
13764AS \
13765DLLTOOL \
13766OBJDUMP \
13767PATH_SEPARATOR \
13768NM \
13769LN_S \
13770lt_SP2NL \
13771lt_NL2SP \
13772reload_flag \
13773deplibs_check_method \
13774file_magic_cmd \
13775file_magic_glob \
13776want_nocaseglob \
13777sharedlib_from_linklib_cmd \
13778AR \
13779AR_FLAGS \
13780archiver_list_spec \
13781STRIP \
13782RANLIB \
13783CC \
13784CFLAGS \
13785compiler \
13786lt_cv_sys_global_symbol_pipe \
13787lt_cv_sys_global_symbol_to_cdecl \
13788lt_cv_sys_global_symbol_to_c_name_address \
13789lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13790nm_file_list_spec \
13791lt_prog_compiler_no_builtin_flag \
13792lt_prog_compiler_pic \
13793lt_prog_compiler_wl \
13794lt_prog_compiler_static \
13795lt_cv_prog_compiler_c_o \
13796need_locks \
13797MANIFEST_TOOL \
13798DSYMUTIL \
13799NMEDIT \
13800LIPO \
13801OTOOL \
13802OTOOL64 \
13803shrext_cmds \
13804export_dynamic_flag_spec \
13805whole_archive_flag_spec \
13806compiler_needs_object \
13807with_gnu_ld \
13808allow_undefined_flag \
13809no_undefined_flag \
13810hardcode_libdir_flag_spec \
13811hardcode_libdir_separator \
13812exclude_expsyms \
13813include_expsyms \
13814file_list_spec \
13815variables_saved_for_relink \
13816libname_spec \
13817library_names_spec \
13818soname_spec \
13819install_override_mode \
13820finish_eval \
13821old_striplib \
13822striplib; do
13823 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13824 *[\\\\\\\`\\"\\\$]*)
13825 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13826 ;;
13827 *)
13828 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13829 ;;
13830 esac
13831done
13832
13833# Double-quote double-evaled strings.
13834for var in reload_cmds \
13835old_postinstall_cmds \
13836old_postuninstall_cmds \
13837old_archive_cmds \
13838extract_expsyms_cmds \
13839old_archive_from_new_cmds \
13840old_archive_from_expsyms_cmds \
13841archive_cmds \
13842archive_expsym_cmds \
13843module_cmds \
13844module_expsym_cmds \
13845export_symbols_cmds \
13846prelink_cmds \
13847postlink_cmds \
13848postinstall_cmds \
13849postuninstall_cmds \
13850finish_cmds \
13851sys_lib_search_path_spec \
13852sys_lib_dlsearch_path_spec; do
13853 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13854 *[\\\\\\\`\\"\\\$]*)
13855 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13856 ;;
13857 *)
13858 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13859 ;;
13860 esac
13861done
13862
13863ac_aux_dir='$ac_aux_dir'
13864xsi_shell='$xsi_shell'
13865lt_shell_append='$lt_shell_append'
13866
13867# See if we are running on zsh, and set the options which allow our
13868# commands through without removal of \ escapes INIT.
13869if test -n "\${ZSH_VERSION+set}" ; then
13870 setopt NO_GLOB_SUBST
13871fi
13872
13873
13874 PACKAGE='$PACKAGE'
13875 VERSION='$VERSION'
13876 TIMESTAMP='$TIMESTAMP'
13877 RM='$RM'
13878 ofile='$ofile'
13879
13880
13881
13882
13883_ACEOF
13884
13885cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13886
13887# Handling of arguments.
13888for ac_config_target in $ac_config_targets
13889do
13890 case $ac_config_target in
13891 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13892 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13893 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13894 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13895 "libpng.pc") CONFIG_FILES="$CONFIG_FILES libpng.pc:libpng.pc.in" ;;
13896 "libpng-config") CONFIG_FILES="$CONFIG_FILES libpng-config:libpng-config.in" ;;
13897
13898 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13899 esac
13900done
13901
13902
13903# If the user did not use the arguments to specify the items to instantiate,
13904# then the envvar interface is used. Set only those that are not.
13905# We use the long form for the default assignment because of an extremely
13906# bizarre bug on SunOS 4.1.3.
13907if $ac_need_defaults; then
13908 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13909 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13910 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13911fi
13912
13913# Have a temporary directory for convenience. Make it in the build tree
13914# simply because there is no reason against having it here, and in addition,
13915# creating and moving files from /tmp can sometimes cause problems.
13916# Hook for its removal unless debugging.
13917# Note that there is a small window in which the directory will not be cleaned:
13918# after its creation but before its name has been assigned to `$tmp'.
13919$debug ||
13920{
13921 tmp= ac_tmp=
13922 trap 'exit_status=$?
13923 : "${ac_tmp:=$tmp}"
13924 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13925' 0
13926 trap 'as_fn_exit 1' 1 2 13 15
13927}
13928# Create a (secure) tmp directory for tmp files.
13929
13930{
13931 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13932 test -d "$tmp"
13933} ||
13934{
13935 tmp=./conf$$-$RANDOM
13936 (umask 077 && mkdir "$tmp")
13937} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13938ac_tmp=$tmp
13939
13940# Set up the scripts for CONFIG_FILES section.
13941# No need to generate them if there are no CONFIG_FILES.
13942# This happens for instance with `./config.status config.h'.
13943if test -n "$CONFIG_FILES"; then
13944
13945
13946ac_cr=`echo X | tr X '\015'`
13947# On cygwin, bash can eat \r inside `` if the user requested igncr.
13948# But we know of no other shell where ac_cr would be empty at this
13949# point, so we can use a bashism as a fallback.
13950if test "x$ac_cr" = x; then
13951 eval ac_cr=\$\'\\r\'
13952fi
13953ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13954if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13955 ac_cs_awk_cr='\\r'
13956else
13957 ac_cs_awk_cr=$ac_cr
13958fi
13959
13960echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13961_ACEOF
13962
13963
13964{
13965 echo "cat >conf$$subs.awk <<_ACEOF" &&
13966 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13967 echo "_ACEOF"
13968} >conf$$subs.sh ||
13969 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13970ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13971ac_delim='%!_!# '
13972for ac_last_try in false false false false false :; do
13973 . ./conf$$subs.sh ||
13974 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13975
13976 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13977 if test $ac_delim_n = $ac_delim_num; then
13978 break
13979 elif $ac_last_try; then
13980 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13981 else
13982 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13983 fi
13984done
13985rm -f conf$$subs.sh
13986
13987cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13988cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13989_ACEOF
13990sed -n '
13991h
13992s/^/S["/; s/!.*/"]=/
13993p
13994g
13995s/^[^!]*!//
13996:repl
13997t repl
13998s/'"$ac_delim"'$//
13999t delim
14000:nl
14001h
14002s/\(.\{148\}\)..*/\1/
14003t more1
14004s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14005p
14006n
14007b repl
14008:more1
14009s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14010p
14011g
14012s/.\{148\}//
14013t nl
14014:delim
14015h
14016s/\(.\{148\}\)..*/\1/
14017t more2
14018s/["\\]/\\&/g; s/^/"/; s/$/"/
14019p
14020b
14021:more2
14022s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14023p
14024g
14025s/.\{148\}//
14026t delim
14027' <conf$$subs.awk | sed '
14028/^[^""]/{
14029 N
14030 s/\n//
14031}
14032' >>$CONFIG_STATUS || ac_write_fail=1
14033rm -f conf$$subs.awk
14034cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14035_ACAWK
14036cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14037 for (key in S) S_is_set[key] = 1
14038 FS = "\a"
14039
14040}
14041{
14042 line = $ 0
14043 nfields = split(line, field, "@")
14044 substed = 0
14045 len = length(field[1])
14046 for (i = 2; i < nfields; i++) {
14047 key = field[i]
14048 keylen = length(key)
14049 if (S_is_set[key]) {
14050 value = S[key]
14051 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14052 len += length(value) + length(field[++i])
14053 substed = 1
14054 } else
14055 len += 1 + keylen
14056 }
14057
14058 print line
14059}
14060
14061_ACAWK
14062_ACEOF
14063cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14064if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14065 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14066else
14067 cat
14068fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14069 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14070_ACEOF
14071
14072# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14073# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14074# trailing colons and then remove the whole line if VPATH becomes empty
14075# (actually we leave an empty line to preserve line numbers).
14076if test "x$srcdir" = x.; then
14077 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14078h
14079s///
14080s/^/:/
14081s/[ ]*$/:/
14082s/:\$(srcdir):/:/g
14083s/:\${srcdir}:/:/g
14084s/:@srcdir@:/:/g
14085s/^:*//
14086s/:*$//
14087x
14088s/\(=[ ]*\).*/\1/
14089G
14090s/\n//
14091s/^[^=]*=[ ]*$//
14092}'
14093fi
14094
14095cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14096fi # test -n "$CONFIG_FILES"
14097
14098# Set up the scripts for CONFIG_HEADERS section.
14099# No need to generate them if there are no CONFIG_HEADERS.
14100# This happens for instance with `./config.status Makefile'.
14101if test -n "$CONFIG_HEADERS"; then
14102cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14103BEGIN {
14104_ACEOF
14105
14106# Transform confdefs.h into an awk script `defines.awk', embedded as
14107# here-document in config.status, that substitutes the proper values into
14108# config.h.in to produce config.h.
14109
14110# Create a delimiter string that does not exist in confdefs.h, to ease
14111# handling of long lines.
14112ac_delim='%!_!# '
14113for ac_last_try in false false :; do
14114 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14115 if test -z "$ac_tt"; then
14116 break
14117 elif $ac_last_try; then
14118 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14119 else
14120 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14121 fi
14122done
14123
14124# For the awk script, D is an array of macro values keyed by name,
14125# likewise P contains macro parameters if any. Preserve backslash
14126# newline sequences.
14127
14128ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14129sed -n '
14130s/.\{148\}/&'"$ac_delim"'/g
14131t rset
14132:rset
14133s/^[ ]*#[ ]*define[ ][ ]*/ /
14134t def
14135d
14136:def
14137s/\\$//
14138t bsnl
14139s/["\\]/\\&/g
14140s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14141D["\1"]=" \3"/p
14142s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14143d
14144:bsnl
14145s/["\\]/\\&/g
14146s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14147D["\1"]=" \3\\\\\\n"\\/p
14148t cont
14149s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14150t cont
14151d
14152:cont
14153n
14154s/.\{148\}/&'"$ac_delim"'/g
14155t clear
14156:clear
14157s/\\$//
14158t bsnlc
14159s/["\\]/\\&/g; s/^/"/; s/$/"/p
14160d
14161:bsnlc
14162s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14163b cont
14164' <confdefs.h | sed '
14165s/'"$ac_delim"'/"\\\
14166"/g' >>$CONFIG_STATUS || ac_write_fail=1
14167
14168cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14169 for (key in D) D_is_set[key] = 1
14170 FS = "\a"
14171}
14172/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14173 line = \$ 0
14174 split(line, arg, " ")
14175 if (arg[1] == "#") {
14176 defundef = arg[2]
14177 mac1 = arg[3]
14178 } else {
14179 defundef = substr(arg[1], 2)
14180 mac1 = arg[2]
14181 }
14182 split(mac1, mac2, "(") #)
14183 macro = mac2[1]
14184 prefix = substr(line, 1, index(line, defundef) - 1)
14185 if (D_is_set[macro]) {
14186 # Preserve the white space surrounding the "#".
14187 print prefix "define", macro P[macro] D[macro]
14188 next
14189 } else {
14190 # Replace #undef with comments. This is necessary, for example,
14191 # in the case of _POSIX_SOURCE, which is predefined and required
14192 # on some systems where configure will not decide to define it.
14193 if (defundef == "undef") {
14194 print "/*", prefix defundef, macro, "*/"
14195 next
14196 }
14197 }
14198}
14199{ print }
14200_ACAWK
14201_ACEOF
14202cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14203 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14204fi # test -n "$CONFIG_HEADERS"
14205
14206
14207eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14208shift
14209for ac_tag
14210do
14211 case $ac_tag in
14212 :[FHLC]) ac_mode=$ac_tag; continue;;
14213 esac
14214 case $ac_mode$ac_tag in
14215 :[FHL]*:*);;
14216 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14217 :[FH]-) ac_tag=-:-;;
14218 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14219 esac
14220 ac_save_IFS=$IFS
14221 IFS=:
14222 set x $ac_tag
14223 IFS=$ac_save_IFS
14224 shift
14225 ac_file=$1
14226 shift
14227
14228 case $ac_mode in
14229 :L) ac_source=$1;;
14230 :[FH])
14231 ac_file_inputs=
14232 for ac_f
14233 do
14234 case $ac_f in
14235 -) ac_f="$ac_tmp/stdin";;
14236 *) # Look for the file first in the build tree, then in the source tree
14237 # (if the path is not absolute). The absolute path cannot be DOS-style,
14238 # because $ac_f cannot contain `:'.
14239 test -f "$ac_f" ||
14240 case $ac_f in
14241 [\\/$]*) false;;
14242 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14243 esac ||
14244 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14245 esac
14246 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14247 as_fn_append ac_file_inputs " '$ac_f'"
14248 done
14249
14250 # Let's still pretend it is `configure' which instantiates (i.e., don't
14251 # use $as_me), people would be surprised to read:
14252 # /* config.h. Generated by config.status. */
14253 configure_input='Generated from '`
14254 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14255 `' by configure.'
14256 if test x"$ac_file" != x-; then
14257 configure_input="$ac_file. $configure_input"
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14259$as_echo "$as_me: creating $ac_file" >&6;}
14260 fi
14261 # Neutralize special characters interpreted by sed in replacement strings.
14262 case $configure_input in #(
14263 *\&* | *\|* | *\\* )
14264 ac_sed_conf_input=`$as_echo "$configure_input" |
14265 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14266 *) ac_sed_conf_input=$configure_input;;
14267 esac
14268
14269 case $ac_tag in
14270 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14271 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14272 esac
14273 ;;
14274 esac
14275
14276 ac_dir=`$as_dirname -- "$ac_file" ||
14277$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14278 X"$ac_file" : 'X\(//\)[^/]' \| \
14279 X"$ac_file" : 'X\(//\)$' \| \
14280 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14281$as_echo X"$ac_file" |
14282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14283 s//\1/
14284 q
14285 }
14286 /^X\(\/\/\)[^/].*/{
14287 s//\1/
14288 q
14289 }
14290 /^X\(\/\/\)$/{
14291 s//\1/
14292 q
14293 }
14294 /^X\(\/\).*/{
14295 s//\1/
14296 q
14297 }
14298 s/.*/./; q'`
14299 as_dir="$ac_dir"; as_fn_mkdir_p
14300 ac_builddir=.
14301
14302case "$ac_dir" in
14303.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14304*)
14305 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14306 # A ".." for each directory in $ac_dir_suffix.
14307 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14308 case $ac_top_builddir_sub in
14309 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14310 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14311 esac ;;
14312esac
14313ac_abs_top_builddir=$ac_pwd
14314ac_abs_builddir=$ac_pwd$ac_dir_suffix
14315# for backward compatibility:
14316ac_top_builddir=$ac_top_build_prefix
14317
14318case $srcdir in
14319 .) # We are building in place.
14320 ac_srcdir=.
14321 ac_top_srcdir=$ac_top_builddir_sub
14322 ac_abs_top_srcdir=$ac_pwd ;;
14323 [\\/]* | ?:[\\/]* ) # Absolute name.
14324 ac_srcdir=$srcdir$ac_dir_suffix;
14325 ac_top_srcdir=$srcdir
14326 ac_abs_top_srcdir=$srcdir ;;
14327 *) # Relative name.
14328 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14329 ac_top_srcdir=$ac_top_build_prefix$srcdir
14330 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14331esac
14332ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14333
14334
14335 case $ac_mode in
14336 :F)
14337 #
14338 # CONFIG_FILE
14339 #
14340
14341 case $INSTALL in
14342 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14343 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14344 esac
14345 ac_MKDIR_P=$MKDIR_P
14346 case $MKDIR_P in
14347 [\\/$]* | ?:[\\/]* ) ;;
14348 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14349 esac
14350_ACEOF
14351
14352cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14353# If the template does not know about datarootdir, expand it.
14354# FIXME: This hack should be removed a few years after 2.60.
14355ac_datarootdir_hack=; ac_datarootdir_seen=
14356ac_sed_dataroot='
14357/datarootdir/ {
14358 p
14359 q
14360}
14361/@datadir@/p
14362/@docdir@/p
14363/@infodir@/p
14364/@localedir@/p
14365/@mandir@/p'
14366case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14367*datarootdir*) ac_datarootdir_seen=yes;;
14368*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14370$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14371_ACEOF
14372cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14373 ac_datarootdir_hack='
14374 s&@datadir@&$datadir&g
14375 s&@docdir@&$docdir&g
14376 s&@infodir@&$infodir&g
14377 s&@localedir@&$localedir&g
14378 s&@mandir@&$mandir&g
14379 s&\\\${datarootdir}&$datarootdir&g' ;;
14380esac
14381_ACEOF
14382
14383# Neutralize VPATH when `$srcdir' = `.'.
14384# Shell code in configure.ac might set extrasub.
14385# FIXME: do we really want to maintain this feature?
14386cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14387ac_sed_extra="$ac_vpsub
14388$extrasub
14389_ACEOF
14390cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14391:t
14392/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14393s|@configure_input@|$ac_sed_conf_input|;t t
14394s&@top_builddir@&$ac_top_builddir_sub&;t t
14395s&@top_build_prefix@&$ac_top_build_prefix&;t t
14396s&@srcdir@&$ac_srcdir&;t t
14397s&@abs_srcdir@&$ac_abs_srcdir&;t t
14398s&@top_srcdir@&$ac_top_srcdir&;t t
14399s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14400s&@builddir@&$ac_builddir&;t t
14401s&@abs_builddir@&$ac_abs_builddir&;t t
14402s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14403s&@INSTALL@&$ac_INSTALL&;t t
14404s&@MKDIR_P@&$ac_MKDIR_P&;t t
14405$ac_datarootdir_hack
14406"
14407eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14408 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14409
14410test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14411 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14412 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14413 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14415which seems to be undefined. Please make sure it is defined" >&5
14416$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14417which seems to be undefined. Please make sure it is defined" >&2;}
14418
14419 rm -f "$ac_tmp/stdin"
14420 case $ac_file in
14421 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14422 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14423 esac \
14424 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14425 ;;
14426 :H)
14427 #
14428 # CONFIG_HEADER
14429 #
14430 if test x"$ac_file" != x-; then
14431 {
14432 $as_echo "/* $configure_input */" \
14433 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14434 } >"$ac_tmp/config.h" \
14435 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14436 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14438$as_echo "$as_me: $ac_file is unchanged" >&6;}
14439 else
14440 rm -f "$ac_file"
14441 mv "$ac_tmp/config.h" "$ac_file" \
14442 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14443 fi
14444 else
14445 $as_echo "/* $configure_input */" \
14446 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14447 || as_fn_error $? "could not create -" "$LINENO" 5
14448 fi
14449# Compute "$ac_file"'s index in $config_headers.
14450_am_arg="$ac_file"
14451_am_stamp_count=1
14452for _am_header in $config_headers :; do
14453 case $_am_header in
14454 $_am_arg | $_am_arg:* )
14455 break ;;
14456 * )
14457 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14458 esac
14459done
14460echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14461$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14462 X"$_am_arg" : 'X\(//\)[^/]' \| \
14463 X"$_am_arg" : 'X\(//\)$' \| \
14464 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14465$as_echo X"$_am_arg" |
14466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14467 s//\1/
14468 q
14469 }
14470 /^X\(\/\/\)[^/].*/{
14471 s//\1/
14472 q
14473 }
14474 /^X\(\/\/\)$/{
14475 s//\1/
14476 q
14477 }
14478 /^X\(\/\).*/{
14479 s//\1/
14480 q
14481 }
14482 s/.*/./; q'`/stamp-h$_am_stamp_count
14483 ;;
14484
14485 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14486$as_echo "$as_me: executing $ac_file commands" >&6;}
14487 ;;
14488 esac
14489
14490
14491 case $ac_file$ac_mode in
14492 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14493 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14494 # are listed without --file. Let's play safe and only enable the eval
14495 # if we detect the quoting.
14496 case $CONFIG_FILES in
14497 *\'*) eval set x "$CONFIG_FILES" ;;
14498 *) set x $CONFIG_FILES ;;
14499 esac
14500 shift
14501 for mf
14502 do
14503 # Strip MF so we end up with the name of the file.
14504 mf=`echo "$mf" | sed -e 's/:.*$//'`
14505 # Check whether this is an Automake generated Makefile or not.
14506 # We used to match only the files named `Makefile.in', but
14507 # some people rename them; so instead we look at the file content.
14508 # Grep'ing the first line is not enough: some people post-process
14509 # each Makefile.in and add a new line on top of each file to say so.
14510 # Grep'ing the whole file is not good either: AIX grep has a line
14511 # limit of 2048, but all sed's we know have understand at least 4000.
14512 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14513 dirpart=`$as_dirname -- "$mf" ||
14514$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14515 X"$mf" : 'X\(//\)[^/]' \| \
14516 X"$mf" : 'X\(//\)$' \| \
14517 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14518$as_echo X"$mf" |
14519 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14520 s//\1/
14521 q
14522 }
14523 /^X\(\/\/\)[^/].*/{
14524 s//\1/
14525 q
14526 }
14527 /^X\(\/\/\)$/{
14528 s//\1/
14529 q
14530 }
14531 /^X\(\/\).*/{
14532 s//\1/
14533 q
14534 }
14535 s/.*/./; q'`
14536 else
14537 continue
14538 fi
14539 # Extract the definition of DEPDIR, am__include, and am__quote
14540 # from the Makefile without running `make'.
14541 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14542 test -z "$DEPDIR" && continue
14543 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14544 test -z "am__include" && continue
14545 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14546 # When using ansi2knr, U may be empty or an underscore; expand it
14547 U=`sed -n 's/^U = //p' < "$mf"`
14548 # Find all dependency output files, they are included files with
14549 # $(DEPDIR) in their names. We invoke sed twice because it is the
14550 # simplest approach to changing $(DEPDIR) to its actual value in the
14551 # expansion.
14552 for file in `sed -n "
14553 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14554 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14555 # Make sure the directory exists.
14556 test -f "$dirpart/$file" && continue
14557 fdir=`$as_dirname -- "$file" ||
14558$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14559 X"$file" : 'X\(//\)[^/]' \| \
14560 X"$file" : 'X\(//\)$' \| \
14561 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14562$as_echo X"$file" |
14563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14564 s//\1/
14565 q
14566 }
14567 /^X\(\/\/\)[^/].*/{
14568 s//\1/
14569 q
14570 }
14571 /^X\(\/\/\)$/{
14572 s//\1/
14573 q
14574 }
14575 /^X\(\/\).*/{
14576 s//\1/
14577 q
14578 }
14579 s/.*/./; q'`
14580 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14581 # echo "creating $dirpart/$file"
14582 echo '# dummy' > "$dirpart/$file"
14583 done
14584 done
14585}
14586 ;;
14587 "libtool":C)
14588
14589 # See if we are running on zsh, and set the options which allow our
14590 # commands through without removal of \ escapes.
14591 if test -n "${ZSH_VERSION+set}" ; then
14592 setopt NO_GLOB_SUBST
14593 fi
14594
14595 cfgfile="${ofile}T"
14596 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14597 $RM "$cfgfile"
14598
14599 cat <<_LT_EOF >> "$cfgfile"
14600#! $SHELL
14601
14602# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14603# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14604# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14605# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14606#
14607# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14608# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14609# Foundation, Inc.
14610# Written by Gordon Matzigkeit, 1996
14611#
14612# This file is part of GNU Libtool.
14613#
14614# GNU Libtool is free software; you can redistribute it and/or
14615# modify it under the terms of the GNU General Public License as
14616# published by the Free Software Foundation; either version 2 of
14617# the License, or (at your option) any later version.
14618#
14619# As a special exception to the GNU General Public License,
14620# if you distribute this file as part of a program or library that
14621# is built using GNU Libtool, you may include this file under the
14622# same distribution terms that you use for the rest of that program.
14623#
14624# GNU Libtool is distributed in the hope that it will be useful,
14625# but WITHOUT ANY WARRANTY; without even the implied warranty of
14626# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14627# GNU General Public License for more details.
14628#
14629# You should have received a copy of the GNU General Public License
14630# along with GNU Libtool; see the file COPYING. If not, a copy
14631# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14632# obtained by writing to the Free Software Foundation, Inc.,
14633# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14634
14635
14636# The names of the tagged configurations supported by this script.
14637available_tags=""
14638
14639# ### BEGIN LIBTOOL CONFIG
14640
14641# A sed program that does not truncate output.
14642SED=$lt_SED
14643
14644# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14645Xsed="\$SED -e 1s/^X//"
14646
14647# A grep program that handles long lines.
14648GREP=$lt_GREP
14649
14650# An ERE matcher.
14651EGREP=$lt_EGREP
14652
14653# A literal string matcher.
14654FGREP=$lt_FGREP
14655
14656# Shell to use when invoking shell scripts.
14657SHELL=$lt_SHELL
14658
14659# An echo program that protects backslashes.
14660ECHO=$lt_ECHO
14661
14662# Which release of libtool.m4 was used?
14663macro_version=$macro_version
14664macro_revision=$macro_revision
14665
14666# Assembler program.
14667AS=$lt_AS
14668
14669# DLL creation program.
14670DLLTOOL=$lt_DLLTOOL
14671
14672# Object dumper program.
14673OBJDUMP=$lt_OBJDUMP
14674
14675# Whether or not to build shared libraries.
14676build_libtool_libs=$enable_shared
14677
14678# Whether or not to build static libraries.
14679build_old_libs=$enable_static
14680
14681# What type of objects to build.
14682pic_mode=$pic_mode
14683
14684# Whether or not to optimize for fast installation.
14685fast_install=$enable_fast_install
14686
14687# The PATH separator for the build system.
14688PATH_SEPARATOR=$lt_PATH_SEPARATOR
14689
14690# The host system.
14691host_alias=$host_alias
14692host=$host
14693host_os=$host_os
14694
14695# The build system.
14696build_alias=$build_alias
14697build=$build
14698build_os=$build_os
14699
14700# A BSD- or MS-compatible name lister.
14701NM=$lt_NM
14702
14703# Whether we need soft or hard links.
14704LN_S=$lt_LN_S
14705
14706# What is the maximum length of a command?
14707max_cmd_len=$max_cmd_len
14708
14709# Object file suffix (normally "o").
14710objext=$ac_objext
14711
14712# Executable file suffix (normally "").
14713exeext=$exeext
14714
14715# whether the shell understands "unset".
14716lt_unset=$lt_unset
14717
14718# turn spaces into newlines.
14719SP2NL=$lt_lt_SP2NL
14720
14721# turn newlines into spaces.
14722NL2SP=$lt_lt_NL2SP
14723
14724# convert \$build file names to \$host format.
14725to_host_file_cmd=$lt_cv_to_host_file_cmd
14726
14727# convert \$build files to toolchain format.
14728to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14729
14730# Method to check whether dependent libraries are shared objects.
14731deplibs_check_method=$lt_deplibs_check_method
14732
14733# Command to use when deplibs_check_method = "file_magic".
14734file_magic_cmd=$lt_file_magic_cmd
14735
14736# How to find potential files when deplibs_check_method = "file_magic".
14737file_magic_glob=$lt_file_magic_glob
14738
14739# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14740want_nocaseglob=$lt_want_nocaseglob
14741
14742# Command to associate shared and link libraries.
14743sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14744
14745# The archiver.
14746AR=$lt_AR
14747
14748# Flags to create an archive.
14749AR_FLAGS=$lt_AR_FLAGS
14750
14751# How to feed a file listing to the archiver.
14752archiver_list_spec=$lt_archiver_list_spec
14753
14754# A symbol stripping program.
14755STRIP=$lt_STRIP
14756
14757# Commands used to install an old-style archive.
14758RANLIB=$lt_RANLIB
14759old_postinstall_cmds=$lt_old_postinstall_cmds
14760old_postuninstall_cmds=$lt_old_postuninstall_cmds
14761
14762# Whether to use a lock for old archive extraction.
14763lock_old_archive_extraction=$lock_old_archive_extraction
14764
14765# A C compiler.
14766LTCC=$lt_CC
14767
14768# LTCC compiler flags.
14769LTCFLAGS=$lt_CFLAGS
14770
14771# Take the output of nm and produce a listing of raw symbols and C names.
14772global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14773
14774# Transform the output of nm in a proper C declaration.
14775global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14776
14777# Transform the output of nm in a C name address pair.
14778global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14779
14780# Transform the output of nm in a C name address pair when lib prefix is needed.
14781global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14782
14783# Specify filename containing input files for \$NM.
14784nm_file_list_spec=$lt_nm_file_list_spec
14785
14786# The root where to search for dependent libraries,and in which our libraries should be installed.
14787lt_sysroot=$lt_sysroot
14788
14789# The name of the directory that contains temporary libtool files.
14790objdir=$objdir
14791
14792# Used to examine libraries when file_magic_cmd begins with "file".
14793MAGIC_CMD=$MAGIC_CMD
14794
14795# Must we lock files when doing compilation?
14796need_locks=$lt_need_locks
14797
14798# Manifest tool.
14799MANIFEST_TOOL=$lt_MANIFEST_TOOL
14800
14801# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14802DSYMUTIL=$lt_DSYMUTIL
14803
14804# Tool to change global to local symbols on Mac OS X.
14805NMEDIT=$lt_NMEDIT
14806
14807# Tool to manipulate fat objects and archives on Mac OS X.
14808LIPO=$lt_LIPO
14809
14810# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14811OTOOL=$lt_OTOOL
14812
14813# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14814OTOOL64=$lt_OTOOL64
14815
14816# Old archive suffix (normally "a").
14817libext=$libext
14818
14819# Shared library suffix (normally ".so").
14820shrext_cmds=$lt_shrext_cmds
14821
14822# The commands to extract the exported symbol list from a shared archive.
14823extract_expsyms_cmds=$lt_extract_expsyms_cmds
14824
14825# Variables whose values should be saved in libtool wrapper scripts and
14826# restored at link time.
14827variables_saved_for_relink=$lt_variables_saved_for_relink
14828
14829# Do we need the "lib" prefix for modules?
14830need_lib_prefix=$need_lib_prefix
14831
14832# Do we need a version for libraries?
14833need_version=$need_version
14834
14835# Library versioning type.
14836version_type=$version_type
14837
14838# Shared library runtime path variable.
14839runpath_var=$runpath_var
14840
14841# Shared library path variable.
14842shlibpath_var=$shlibpath_var
14843
14844# Is shlibpath searched before the hard-coded library search path?
14845shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14846
14847# Format of library name prefix.
14848libname_spec=$lt_libname_spec
14849
14850# List of archive names. First name is the real one, the rest are links.
14851# The last name is the one that the linker finds with -lNAME
14852library_names_spec=$lt_library_names_spec
14853
14854# The coded name of the library, if different from the real name.
14855soname_spec=$lt_soname_spec
14856
14857# Permission mode override for installation of shared libraries.
14858install_override_mode=$lt_install_override_mode
14859
14860# Command to use after installation of a shared archive.
14861postinstall_cmds=$lt_postinstall_cmds
14862
14863# Command to use after uninstallation of a shared archive.
14864postuninstall_cmds=$lt_postuninstall_cmds
14865
14866# Commands used to finish a libtool library installation in a directory.
14867finish_cmds=$lt_finish_cmds
14868
14869# As "finish_cmds", except a single script fragment to be evaled but
14870# not shown.
14871finish_eval=$lt_finish_eval
14872
14873# Whether we should hardcode library paths into libraries.
14874hardcode_into_libs=$hardcode_into_libs
14875
14876# Compile-time system search path for libraries.
14877sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14878
14879# Run-time system search path for libraries.
14880sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14881
14882# Whether dlopen is supported.
14883dlopen_support=$enable_dlopen
14884
14885# Whether dlopen of programs is supported.
14886dlopen_self=$enable_dlopen_self
14887
14888# Whether dlopen of statically linked programs is supported.
14889dlopen_self_static=$enable_dlopen_self_static
14890
14891# Commands to strip libraries.
14892old_striplib=$lt_old_striplib
14893striplib=$lt_striplib
14894
14895
14896# The linker used to build libraries.
14897LD=$lt_LD
14898
14899# How to create reloadable object files.
14900reload_flag=$lt_reload_flag
14901reload_cmds=$lt_reload_cmds
14902
14903# Commands used to build an old-style archive.
14904old_archive_cmds=$lt_old_archive_cmds
14905
14906# A language specific compiler.
14907CC=$lt_compiler
14908
14909# Is the compiler the GNU compiler?
14910with_gcc=$GCC
14911
14912# Compiler flag to turn off builtin functions.
14913no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14914
14915# Additional compiler flags for building library objects.
14916pic_flag=$lt_lt_prog_compiler_pic
14917
14918# How to pass a linker flag through the compiler.
14919wl=$lt_lt_prog_compiler_wl
14920
14921# Compiler flag to prevent dynamic linking.
14922link_static_flag=$lt_lt_prog_compiler_static
14923
14924# Does compiler simultaneously support -c and -o options?
14925compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14926
14927# Whether or not to add -lc for building shared libraries.
14928build_libtool_need_lc=$archive_cmds_need_lc
14929
14930# Whether or not to disallow shared libs when runtime libs are static.
14931allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14932
14933# Compiler flag to allow reflexive dlopens.
14934export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14935
14936# Compiler flag to generate shared objects directly from archives.
14937whole_archive_flag_spec=$lt_whole_archive_flag_spec
14938
14939# Whether the compiler copes with passing no objects directly.
14940compiler_needs_object=$lt_compiler_needs_object
14941
14942# Create an old-style archive from a shared archive.
14943old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14944
14945# Create a temporary old-style archive to link instead of a shared archive.
14946old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14947
14948# Commands used to build a shared archive.
14949archive_cmds=$lt_archive_cmds
14950archive_expsym_cmds=$lt_archive_expsym_cmds
14951
14952# Commands used to build a loadable module if different from building
14953# a shared archive.
14954module_cmds=$lt_module_cmds
14955module_expsym_cmds=$lt_module_expsym_cmds
14956
14957# Whether we are building with GNU ld or not.
14958with_gnu_ld=$lt_with_gnu_ld
14959
14960# Flag that allows shared libraries with undefined symbols to be built.
14961allow_undefined_flag=$lt_allow_undefined_flag
14962
14963# Flag that enforces no undefined symbols.
14964no_undefined_flag=$lt_no_undefined_flag
14965
14966# Flag to hardcode \$libdir into a binary during linking.
14967# This must work even if \$libdir does not exist
14968hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14969
14970# Whether we need a single "-rpath" flag with a separated argument.
14971hardcode_libdir_separator=$lt_hardcode_libdir_separator
14972
14973# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14974# DIR into the resulting binary.
14975hardcode_direct=$hardcode_direct
14976
14977# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14978# DIR into the resulting binary and the resulting library dependency is
14979# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14980# library is relocated.
14981hardcode_direct_absolute=$hardcode_direct_absolute
14982
14983# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14984# into the resulting binary.
14985hardcode_minus_L=$hardcode_minus_L
14986
14987# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14988# into the resulting binary.
14989hardcode_shlibpath_var=$hardcode_shlibpath_var
14990
14991# Set to "yes" if building a shared library automatically hardcodes DIR
14992# into the library and all subsequent libraries and executables linked
14993# against it.
14994hardcode_automatic=$hardcode_automatic
14995
14996# Set to yes if linker adds runtime paths of dependent libraries
14997# to runtime path list.
14998inherit_rpath=$inherit_rpath
14999
15000# Whether libtool must link a program against all its dependency libraries.
15001link_all_deplibs=$link_all_deplibs
15002
15003# Set to "yes" if exported symbols are required.
15004always_export_symbols=$always_export_symbols
15005
15006# The commands to list exported symbols.
15007export_symbols_cmds=$lt_export_symbols_cmds
15008
15009# Symbols that should not be listed in the preloaded symbols.
15010exclude_expsyms=$lt_exclude_expsyms
15011
15012# Symbols that must always be exported.
15013include_expsyms=$lt_include_expsyms
15014
15015# Commands necessary for linking programs (against libraries) with templates.
15016prelink_cmds=$lt_prelink_cmds
15017
15018# Commands necessary for finishing linking programs.
15019postlink_cmds=$lt_postlink_cmds
15020
15021# Specify filename containing input files.
15022file_list_spec=$lt_file_list_spec
15023
15024# How to hardcode a shared library path into an executable.
15025hardcode_action=$hardcode_action
15026
15027# ### END LIBTOOL CONFIG
15028
15029_LT_EOF
15030
15031 case $host_os in
15032 aix3*)
15033 cat <<\_LT_EOF >> "$cfgfile"
15034# AIX sometimes has problems with the GCC collect2 program. For some
15035# reason, if we set the COLLECT_NAMES environment variable, the problems
15036# vanish in a puff of smoke.
15037if test "X${COLLECT_NAMES+set}" != Xset; then
15038 COLLECT_NAMES=
15039 export COLLECT_NAMES
15040fi
15041_LT_EOF
15042 ;;
15043 esac
15044
15045
15046ltmain="$ac_aux_dir/ltmain.sh"
15047
15048
15049 # We use sed instead of cat because bash on DJGPP gets confused if
15050 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15051 # text mode, it properly converts lines to CR/LF. This bash problem
15052 # is reportedly fixed, but why not run on old versions too?
15053 sed '$q' "$ltmain" >> "$cfgfile" \
15054 || (rm -f "$cfgfile"; exit 1)
15055
15056 if test x"$xsi_shell" = xyes; then
15057 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15058func_dirname ()\
15059{\
15060\ case ${1} in\
15061\ */*) func_dirname_result="${1%/*}${2}" ;;\
15062\ * ) func_dirname_result="${3}" ;;\
15063\ esac\
15064} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15065 && mv -f "$cfgfile.tmp" "$cfgfile" \
15066 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15067test 0 -eq $? || _lt_function_replace_fail=:
15068
15069
15070 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15071func_basename ()\
15072{\
15073\ func_basename_result="${1##*/}"\
15074} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15075 && mv -f "$cfgfile.tmp" "$cfgfile" \
15076 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15077test 0 -eq $? || _lt_function_replace_fail=:
15078
15079
15080 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15081func_dirname_and_basename ()\
15082{\
15083\ case ${1} in\
15084\ */*) func_dirname_result="${1%/*}${2}" ;;\
15085\ * ) func_dirname_result="${3}" ;;\
15086\ esac\
15087\ func_basename_result="${1##*/}"\
15088} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15089 && mv -f "$cfgfile.tmp" "$cfgfile" \
15090 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15091test 0 -eq $? || _lt_function_replace_fail=:
15092
15093
15094 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15095func_stripname ()\
15096{\
15097\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15098\ # positional parameters, so assign one to ordinary parameter first.\
15099\ func_stripname_result=${3}\
15100\ func_stripname_result=${func_stripname_result#"${1}"}\
15101\ func_stripname_result=${func_stripname_result%"${2}"}\
15102} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15103 && mv -f "$cfgfile.tmp" "$cfgfile" \
15104 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15105test 0 -eq $? || _lt_function_replace_fail=:
15106
15107
15108 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15109func_split_long_opt ()\
15110{\
15111\ func_split_long_opt_name=${1%%=*}\
15112\ func_split_long_opt_arg=${1#*=}\
15113} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15114 && mv -f "$cfgfile.tmp" "$cfgfile" \
15115 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15116test 0 -eq $? || _lt_function_replace_fail=:
15117
15118
15119 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15120func_split_short_opt ()\
15121{\
15122\ func_split_short_opt_arg=${1#??}\
15123\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15124} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15125 && mv -f "$cfgfile.tmp" "$cfgfile" \
15126 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15127test 0 -eq $? || _lt_function_replace_fail=:
15128
15129
15130 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15131func_lo2o ()\
15132{\
15133\ case ${1} in\
15134\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15135\ *) func_lo2o_result=${1} ;;\
15136\ esac\
15137} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15138 && mv -f "$cfgfile.tmp" "$cfgfile" \
15139 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15140test 0 -eq $? || _lt_function_replace_fail=:
15141
15142
15143 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15144func_xform ()\
15145{\
15146 func_xform_result=${1%.*}.lo\
15147} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15148 && mv -f "$cfgfile.tmp" "$cfgfile" \
15149 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15150test 0 -eq $? || _lt_function_replace_fail=:
15151
15152
15153 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15154func_arith ()\
15155{\
15156 func_arith_result=$(( $* ))\
15157} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15158 && mv -f "$cfgfile.tmp" "$cfgfile" \
15159 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15160test 0 -eq $? || _lt_function_replace_fail=:
15161
15162
15163 sed -e '/^func_len ()$/,/^} # func_len /c\
15164func_len ()\
15165{\
15166 func_len_result=${#1}\
15167} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15168 && mv -f "$cfgfile.tmp" "$cfgfile" \
15169 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15170test 0 -eq $? || _lt_function_replace_fail=:
15171
15172fi
15173
15174if test x"$lt_shell_append" = xyes; then
15175 sed -e '/^func_append ()$/,/^} # func_append /c\
15176func_append ()\
15177{\
15178 eval "${1}+=\\${2}"\
15179} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15180 && mv -f "$cfgfile.tmp" "$cfgfile" \
15181 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15182test 0 -eq $? || _lt_function_replace_fail=:
15183
15184
15185 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15186func_append_quoted ()\
15187{\
15188\ func_quote_for_eval "${2}"\
15189\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15190} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15191 && mv -f "$cfgfile.tmp" "$cfgfile" \
15192 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15193test 0 -eq $? || _lt_function_replace_fail=:
15194
15195
15196 # Save a `func_append' function call where possible by direct use of '+='
15197 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15198 && mv -f "$cfgfile.tmp" "$cfgfile" \
15199 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15200 test 0 -eq $? || _lt_function_replace_fail=:
15201else
15202 # Save a `func_append' function call even when '+=' is not available
15203 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15204 && mv -f "$cfgfile.tmp" "$cfgfile" \
15205 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15206 test 0 -eq $? || _lt_function_replace_fail=:
15207fi
15208
15209if test x"$_lt_function_replace_fail" = x":"; then
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15211$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15212fi
15213
15214
15215 mv -f "$cfgfile" "$ofile" ||
15216 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15217 chmod +x "$ofile"
15218
15219 ;;
15220 "libpng-config":F) chmod +x libpng-config ;;
15221
15222 esac
15223done # for ac_tag
15224
15225
15226as_fn_exit 0
15227_ACEOF
15228ac_clean_files=$ac_clean_files_save
15229
15230test $ac_write_fail = 0 ||
15231 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15232
15233
15234# configure is writing to config.log, and then calls config.status.
15235# config.status does its own redirection, appending to config.log.
15236# Unfortunately, on DOS this fails, as config.log is still kept open
15237# by configure, so config.status won't be able to write to it; its
15238# output is simply discarded. So we exec the FD to /dev/null,
15239# effectively closing config.log, so it can be properly (re)opened and
15240# appended to by config.status. When coming back to configure, we
15241# need to make the FD available again.
15242if test "$no_create" != yes; then
15243 ac_cs_success=:
15244 ac_config_status_args=
15245 test "$silent" = yes &&
15246 ac_config_status_args="$ac_config_status_args --quiet"
15247 exec 5>/dev/null
15248 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15249 exec 5>>config.log
15250 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15251 # would make configure fail if this is the last instruction.
15252 $ac_cs_success || as_fn_exit 1
15253fi
15254if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15256$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15257fi
15258