VirtualBox

source: vbox/trunk/src/libs/libpng-1.2.54/configure@ 62891

Last change on this file since 62891 was 58796, checked in by vboxsync, 9 years ago

libpng 1.2.54 unmodified

  • Property svn:eol-style set to LF
  • Property svn:executable set to *
File size: 447.8 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libpng 1.2.54.
4#
5# Report bugs to <png-mng-implement@lists.sourceforge.net>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: png-mng-implement@lists.sourceforge.net about your
279$0: system, including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520*)
521 ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545else
546 as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='libpng'
592PACKAGE_TARNAME='libpng'
593PACKAGE_VERSION='1.2.54'
594PACKAGE_STRING='libpng 1.2.54'
595PACKAGE_BUGREPORT='png-mng-implement@lists.sourceforge.net'
596PACKAGE_URL=''
597
598ac_unique_file="pngget.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613# include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618# include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638compatlib
639binconfigs
640pkgconfigdir
641PNGLIB_RELEASE
642PNGLIB_MINOR
643PNGLIB_MAJOR
644PNGLIB_VERSION
645SYMBOL_PREFIX
646HAVE_LD_VERSION_SCRIPT_FALSE
647HAVE_LD_VERSION_SCRIPT_TRUE
648LIBPNG_NO_MMX
649LIBPNG_DEFINES
650LIBOBJS
651POW_LIB
652LT_SYS_LIBRARY_PATH
653OTOOL64
654OTOOL
655LIPO
656NMEDIT
657DSYMUTIL
658MANIFEST_TOOL
659RANLIB
660ac_ct_AR
661AR
662NM
663ac_ct_DUMPBIN
664DUMPBIN
665LIBTOOL
666LN_S
667OBJDUMP
668DLLTOOL
669AS
670CPP
671LD
672FGREP
673EGREP
674GREP
675SED
676host_os
677host_vendor
678host_cpu
679host
680build_os
681build_vendor
682build_cpu
683build
684am__fastdepCC_FALSE
685am__fastdepCC_TRUE
686CCDEPMODE
687am__nodep
688AMDEPBACKSLASH
689AMDEP_FALSE
690AMDEP_TRUE
691am__quote
692am__include
693DEPDIR
694OBJEXT
695EXEEXT
696ac_ct_CC
697CPPFLAGS
698LDFLAGS
699CFLAGS
700CC
701MAINT
702MAINTAINER_MODE_FALSE
703MAINTAINER_MODE_TRUE
704AM_BACKSLASH
705AM_DEFAULT_VERBOSITY
706AM_DEFAULT_V
707AM_V
708am__untar
709am__tar
710AMTAR
711am__leading_dot
712SET_MAKE
713AWK
714mkdir_p
715MKDIR_P
716INSTALL_STRIP_PROGRAM
717STRIP
718install_sh
719MAKEINFO
720AUTOHEADER
721AUTOMAKE
722AUTOCONF
723ACLOCAL
724VERSION
725PACKAGE
726CYGPATH_W
727am__isrc
728INSTALL_DATA
729INSTALL_SCRIPT
730INSTALL_PROGRAM
731target_alias
732host_alias
733build_alias
734LIBS
735ECHO_T
736ECHO_N
737ECHO_C
738DEFS
739mandir
740localedir
741libdir
742psdir
743pdfdir
744dvidir
745htmldir
746infodir
747docdir
748oldincludedir
749includedir
750localstatedir
751sharedstatedir
752sysconfdir
753datadir
754datarootdir
755libexecdir
756sbindir
757bindir
758program_transform_name
759prefix
760exec_prefix
761PACKAGE_URL
762PACKAGE_BUGREPORT
763PACKAGE_STRING
764PACKAGE_VERSION
765PACKAGE_TARNAME
766PACKAGE_NAME
767PATH_SEPARATOR
768SHELL'
769ac_subst_files=''
770ac_user_opts='
771enable_option_checking
772enable_silent_rules
773enable_maintainer_mode
774enable_dependency_tracking
775with_gnu_ld
776enable_shared
777enable_static
778with_pic
779enable_fast_install
780with_aix_soname
781with_sysroot
782enable_libtool_lock
783with_pkgconfigdir
784with_binconfigs
785with_libpng_compat
786'
787 ac_precious_vars='build_alias
788host_alias
789target_alias
790CC
791CFLAGS
792LDFLAGS
793LIBS
794CPPFLAGS
795CPP
796LT_SYS_LIBRARY_PATH'
797
798
799# Initialize some variables set by options.
800ac_init_help=
801ac_init_version=false
802ac_unrecognized_opts=
803ac_unrecognized_sep=
804# The variables have the same names as the options, with
805# dashes changed to underlines.
806cache_file=/dev/null
807exec_prefix=NONE
808no_create=
809no_recursion=
810prefix=NONE
811program_prefix=NONE
812program_suffix=NONE
813program_transform_name=s,x,x,
814silent=
815site=
816srcdir=
817verbose=
818x_includes=NONE
819x_libraries=NONE
820
821# Installation directory options.
822# These are left unexpanded so users can "make install exec_prefix=/foo"
823# and all the variables that are supposed to be based on exec_prefix
824# by default will actually change.
825# Use braces instead of parens because sh, perl, etc. also accept them.
826# (The list follows the same order as the GNU Coding Standards.)
827bindir='${exec_prefix}/bin'
828sbindir='${exec_prefix}/sbin'
829libexecdir='${exec_prefix}/libexec'
830datarootdir='${prefix}/share'
831datadir='${datarootdir}'
832sysconfdir='${prefix}/etc'
833sharedstatedir='${prefix}/com'
834localstatedir='${prefix}/var'
835includedir='${prefix}/include'
836oldincludedir='/usr/include'
837docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
838infodir='${datarootdir}/info'
839htmldir='${docdir}'
840dvidir='${docdir}'
841pdfdir='${docdir}'
842psdir='${docdir}'
843libdir='${exec_prefix}/lib'
844localedir='${datarootdir}/locale'
845mandir='${datarootdir}/man'
846
847ac_prev=
848ac_dashdash=
849for ac_option
850do
851 # If the previous option needs an argument, assign it.
852 if test -n "$ac_prev"; then
853 eval $ac_prev=\$ac_option
854 ac_prev=
855 continue
856 fi
857
858 case $ac_option in
859 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
860 *=) ac_optarg= ;;
861 *) ac_optarg=yes ;;
862 esac
863
864 # Accept the important Cygnus configure options, so we can diagnose typos.
865
866 case $ac_dashdash$ac_option in
867 --)
868 ac_dashdash=yes ;;
869
870 -bindir | --bindir | --bindi | --bind | --bin | --bi)
871 ac_prev=bindir ;;
872 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
873 bindir=$ac_optarg ;;
874
875 -build | --build | --buil | --bui | --bu)
876 ac_prev=build_alias ;;
877 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
878 build_alias=$ac_optarg ;;
879
880 -cache-file | --cache-file | --cache-fil | --cache-fi \
881 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
882 ac_prev=cache_file ;;
883 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
884 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
885 cache_file=$ac_optarg ;;
886
887 --config-cache | -C)
888 cache_file=config.cache ;;
889
890 -datadir | --datadir | --datadi | --datad)
891 ac_prev=datadir ;;
892 -datadir=* | --datadir=* | --datadi=* | --datad=*)
893 datadir=$ac_optarg ;;
894
895 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
896 | --dataroo | --dataro | --datar)
897 ac_prev=datarootdir ;;
898 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
899 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
900 datarootdir=$ac_optarg ;;
901
902 -disable-* | --disable-*)
903 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
904 # Reject names that are not valid shell variable names.
905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906 as_fn_error $? "invalid feature name: $ac_useropt"
907 ac_useropt_orig=$ac_useropt
908 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909 case $ac_user_opts in
910 *"
911"enable_$ac_useropt"
912"*) ;;
913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
914 ac_unrecognized_sep=', ';;
915 esac
916 eval enable_$ac_useropt=no ;;
917
918 -docdir | --docdir | --docdi | --doc | --do)
919 ac_prev=docdir ;;
920 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
921 docdir=$ac_optarg ;;
922
923 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
924 ac_prev=dvidir ;;
925 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
926 dvidir=$ac_optarg ;;
927
928 -enable-* | --enable-*)
929 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
930 # Reject names that are not valid shell variable names.
931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932 as_fn_error $? "invalid feature name: $ac_useropt"
933 ac_useropt_orig=$ac_useropt
934 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935 case $ac_user_opts in
936 *"
937"enable_$ac_useropt"
938"*) ;;
939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
940 ac_unrecognized_sep=', ';;
941 esac
942 eval enable_$ac_useropt=\$ac_optarg ;;
943
944 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
945 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
946 | --exec | --exe | --ex)
947 ac_prev=exec_prefix ;;
948 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
949 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
950 | --exec=* | --exe=* | --ex=*)
951 exec_prefix=$ac_optarg ;;
952
953 -gas | --gas | --ga | --g)
954 # Obsolete; use --with-gas.
955 with_gas=yes ;;
956
957 -help | --help | --hel | --he | -h)
958 ac_init_help=long ;;
959 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
960 ac_init_help=recursive ;;
961 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
962 ac_init_help=short ;;
963
964 -host | --host | --hos | --ho)
965 ac_prev=host_alias ;;
966 -host=* | --host=* | --hos=* | --ho=*)
967 host_alias=$ac_optarg ;;
968
969 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
970 ac_prev=htmldir ;;
971 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
972 | --ht=*)
973 htmldir=$ac_optarg ;;
974
975 -includedir | --includedir | --includedi | --included | --include \
976 | --includ | --inclu | --incl | --inc)
977 ac_prev=includedir ;;
978 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
979 | --includ=* | --inclu=* | --incl=* | --inc=*)
980 includedir=$ac_optarg ;;
981
982 -infodir | --infodir | --infodi | --infod | --info | --inf)
983 ac_prev=infodir ;;
984 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
985 infodir=$ac_optarg ;;
986
987 -libdir | --libdir | --libdi | --libd)
988 ac_prev=libdir ;;
989 -libdir=* | --libdir=* | --libdi=* | --libd=*)
990 libdir=$ac_optarg ;;
991
992 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
993 | --libexe | --libex | --libe)
994 ac_prev=libexecdir ;;
995 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
996 | --libexe=* | --libex=* | --libe=*)
997 libexecdir=$ac_optarg ;;
998
999 -localedir | --localedir | --localedi | --localed | --locale)
1000 ac_prev=localedir ;;
1001 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1002 localedir=$ac_optarg ;;
1003
1004 -localstatedir | --localstatedir | --localstatedi | --localstated \
1005 | --localstate | --localstat | --localsta | --localst | --locals)
1006 ac_prev=localstatedir ;;
1007 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1008 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1009 localstatedir=$ac_optarg ;;
1010
1011 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1012 ac_prev=mandir ;;
1013 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1014 mandir=$ac_optarg ;;
1015
1016 -nfp | --nfp | --nf)
1017 # Obsolete; use --without-fp.
1018 with_fp=no ;;
1019
1020 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1021 | --no-cr | --no-c | -n)
1022 no_create=yes ;;
1023
1024 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1025 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1026 no_recursion=yes ;;
1027
1028 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1029 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1030 | --oldin | --oldi | --old | --ol | --o)
1031 ac_prev=oldincludedir ;;
1032 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1033 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1034 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1035 oldincludedir=$ac_optarg ;;
1036
1037 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1038 ac_prev=prefix ;;
1039 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1040 prefix=$ac_optarg ;;
1041
1042 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1043 | --program-pre | --program-pr | --program-p)
1044 ac_prev=program_prefix ;;
1045 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1046 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1047 program_prefix=$ac_optarg ;;
1048
1049 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1050 | --program-suf | --program-su | --program-s)
1051 ac_prev=program_suffix ;;
1052 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1053 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1054 program_suffix=$ac_optarg ;;
1055
1056 -program-transform-name | --program-transform-name \
1057 | --program-transform-nam | --program-transform-na \
1058 | --program-transform-n | --program-transform- \
1059 | --program-transform | --program-transfor \
1060 | --program-transfo | --program-transf \
1061 | --program-trans | --program-tran \
1062 | --progr-tra | --program-tr | --program-t)
1063 ac_prev=program_transform_name ;;
1064 -program-transform-name=* | --program-transform-name=* \
1065 | --program-transform-nam=* | --program-transform-na=* \
1066 | --program-transform-n=* | --program-transform-=* \
1067 | --program-transform=* | --program-transfor=* \
1068 | --program-transfo=* | --program-transf=* \
1069 | --program-trans=* | --program-tran=* \
1070 | --progr-tra=* | --program-tr=* | --program-t=*)
1071 program_transform_name=$ac_optarg ;;
1072
1073 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1074 ac_prev=pdfdir ;;
1075 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1076 pdfdir=$ac_optarg ;;
1077
1078 -psdir | --psdir | --psdi | --psd | --ps)
1079 ac_prev=psdir ;;
1080 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1081 psdir=$ac_optarg ;;
1082
1083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1084 | -silent | --silent | --silen | --sile | --sil)
1085 silent=yes ;;
1086
1087 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1088 ac_prev=sbindir ;;
1089 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1090 | --sbi=* | --sb=*)
1091 sbindir=$ac_optarg ;;
1092
1093 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1094 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1095 | --sharedst | --shareds | --shared | --share | --shar \
1096 | --sha | --sh)
1097 ac_prev=sharedstatedir ;;
1098 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1099 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1100 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1101 | --sha=* | --sh=*)
1102 sharedstatedir=$ac_optarg ;;
1103
1104 -site | --site | --sit)
1105 ac_prev=site ;;
1106 -site=* | --site=* | --sit=*)
1107 site=$ac_optarg ;;
1108
1109 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1110 ac_prev=srcdir ;;
1111 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1112 srcdir=$ac_optarg ;;
1113
1114 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1115 | --syscon | --sysco | --sysc | --sys | --sy)
1116 ac_prev=sysconfdir ;;
1117 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1118 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1119 sysconfdir=$ac_optarg ;;
1120
1121 -target | --target | --targe | --targ | --tar | --ta | --t)
1122 ac_prev=target_alias ;;
1123 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1124 target_alias=$ac_optarg ;;
1125
1126 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1127 verbose=yes ;;
1128
1129 -version | --version | --versio | --versi | --vers | -V)
1130 ac_init_version=: ;;
1131
1132 -with-* | --with-*)
1133 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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--with-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
1145 esac
1146 eval with_$ac_useropt=\$ac_optarg ;;
1147
1148 -without-* | --without-*)
1149 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152 as_fn_error $? "invalid package name: $ac_useropt"
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1156 *"
1157"with_$ac_useropt"
1158"*) ;;
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
1161 esac
1162 eval with_$ac_useropt=no ;;
1163
1164 --x)
1165 # Obsolete; use --with-x.
1166 with_x=yes ;;
1167
1168 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1169 | --x-incl | --x-inc | --x-in | --x-i)
1170 ac_prev=x_includes ;;
1171 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1172 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1173 x_includes=$ac_optarg ;;
1174
1175 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1176 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1177 ac_prev=x_libraries ;;
1178 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1179 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1180 x_libraries=$ac_optarg ;;
1181
1182 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1183Try \`$0 --help' for more information"
1184 ;;
1185
1186 *=*)
1187 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1188 # Reject names that are not valid shell variable names.
1189 case $ac_envvar in #(
1190 '' | [0-9]* | *[!_$as_cr_alnum]* )
1191 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1192 esac
1193 eval $ac_envvar=\$ac_optarg
1194 export $ac_envvar ;;
1195
1196 *)
1197 # FIXME: should be removed in autoconf 3.0.
1198 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1199 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1200 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1201 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1202 ;;
1203
1204 esac
1205done
1206
1207if test -n "$ac_prev"; then
1208 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1209 as_fn_error $? "missing argument to $ac_option"
1210fi
1211
1212if test -n "$ac_unrecognized_opts"; then
1213 case $enable_option_checking in
1214 no) ;;
1215 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1216 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1217 esac
1218fi
1219
1220# Check all directory arguments for consistency.
1221for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1222 datadir sysconfdir sharedstatedir localstatedir includedir \
1223 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1224 libdir localedir mandir
1225do
1226 eval ac_val=\$$ac_var
1227 # Remove trailing slashes.
1228 case $ac_val in
1229 */ )
1230 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1231 eval $ac_var=\$ac_val;;
1232 esac
1233 # Be sure to have absolute directory names.
1234 case $ac_val in
1235 [\\/$]* | ?:[\\/]* ) continue;;
1236 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1237 esac
1238 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1239done
1240
1241# There might be people who depend on the old broken behavior: `$host'
1242# used to hold the argument of --host etc.
1243# FIXME: To remove some day.
1244build=$build_alias
1245host=$host_alias
1246target=$target_alias
1247
1248# FIXME: To remove some day.
1249if test "x$host_alias" != x; then
1250 if test "x$build_alias" = x; then
1251 cross_compiling=maybe
1252 elif test "x$build_alias" != "x$host_alias"; then
1253 cross_compiling=yes
1254 fi
1255fi
1256
1257ac_tool_prefix=
1258test -n "$host_alias" && ac_tool_prefix=$host_alias-
1259
1260test "$silent" = yes && exec 6>/dev/null
1261
1262
1263ac_pwd=`pwd` && test -n "$ac_pwd" &&
1264ac_ls_di=`ls -di .` &&
1265ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1266 as_fn_error $? "working directory cannot be determined"
1267test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1268 as_fn_error $? "pwd does not report name of working directory"
1269
1270
1271# Find the source files, if location was not specified.
1272if test -z "$srcdir"; then
1273 ac_srcdir_defaulted=yes
1274 # Try the directory containing this script, then the parent directory.
1275 ac_confdir=`$as_dirname -- "$as_myself" ||
1276$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1277 X"$as_myself" : 'X\(//\)[^/]' \| \
1278 X"$as_myself" : 'X\(//\)$' \| \
1279 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1280$as_echo X"$as_myself" |
1281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1282 s//\1/
1283 q
1284 }
1285 /^X\(\/\/\)[^/].*/{
1286 s//\1/
1287 q
1288 }
1289 /^X\(\/\/\)$/{
1290 s//\1/
1291 q
1292 }
1293 /^X\(\/\).*/{
1294 s//\1/
1295 q
1296 }
1297 s/.*/./; q'`
1298 srcdir=$ac_confdir
1299 if test ! -r "$srcdir/$ac_unique_file"; then
1300 srcdir=..
1301 fi
1302else
1303 ac_srcdir_defaulted=no
1304fi
1305if test ! -r "$srcdir/$ac_unique_file"; then
1306 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1307 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1308fi
1309ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1310ac_abs_confdir=`(
1311 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1312 pwd)`
1313# When building in place, set srcdir=.
1314if test "$ac_abs_confdir" = "$ac_pwd"; then
1315 srcdir=.
1316fi
1317# Remove unnecessary trailing slashes from srcdir.
1318# Double slashes in file names in object file debugging info
1319# mess up M-x gdb in Emacs.
1320case $srcdir in
1321*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1322esac
1323for ac_var in $ac_precious_vars; do
1324 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1325 eval ac_env_${ac_var}_value=\$${ac_var}
1326 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1327 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1328done
1329
1330#
1331# Report the --help message.
1332#
1333if test "$ac_init_help" = "long"; then
1334 # Omit some internal or obsolete options to make the list less imposing.
1335 # This message is too long to be a string in the A/UX 3.1 sh.
1336 cat <<_ACEOF
1337\`configure' configures libpng 1.2.54 to adapt to many kinds of systems.
1338
1339Usage: $0 [OPTION]... [VAR=VALUE]...
1340
1341To assign environment variables (e.g., CC, CFLAGS...), specify them as
1342VAR=VALUE. See below for descriptions of some of the useful variables.
1343
1344Defaults for the options are specified in brackets.
1345
1346Configuration:
1347 -h, --help display this help and exit
1348 --help=short display options specific to this package
1349 --help=recursive display the short help of all the included packages
1350 -V, --version display version information and exit
1351 -q, --quiet, --silent do not print \`checking ...' messages
1352 --cache-file=FILE cache test results in FILE [disabled]
1353 -C, --config-cache alias for \`--cache-file=config.cache'
1354 -n, --no-create do not create output files
1355 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1356
1357Installation directories:
1358 --prefix=PREFIX install architecture-independent files in PREFIX
1359 [$ac_default_prefix]
1360 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1361 [PREFIX]
1362
1363By default, \`make install' will install all the files in
1364\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1365an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1366for instance \`--prefix=\$HOME'.
1367
1368For better control, use the options below.
1369
1370Fine tuning of the installation directories:
1371 --bindir=DIR user executables [EPREFIX/bin]
1372 --sbindir=DIR system admin executables [EPREFIX/sbin]
1373 --libexecdir=DIR program executables [EPREFIX/libexec]
1374 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1375 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1376 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1377 --libdir=DIR object code libraries [EPREFIX/lib]
1378 --includedir=DIR C header files [PREFIX/include]
1379 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1380 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1381 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1382 --infodir=DIR info documentation [DATAROOTDIR/info]
1383 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1384 --mandir=DIR man documentation [DATAROOTDIR/man]
1385 --docdir=DIR documentation root [DATAROOTDIR/doc/libpng]
1386 --htmldir=DIR html documentation [DOCDIR]
1387 --dvidir=DIR dvi documentation [DOCDIR]
1388 --pdfdir=DIR pdf documentation [DOCDIR]
1389 --psdir=DIR ps documentation [DOCDIR]
1390_ACEOF
1391
1392 cat <<\_ACEOF
1393
1394Program names:
1395 --program-prefix=PREFIX prepend PREFIX to installed program names
1396 --program-suffix=SUFFIX append SUFFIX to installed program names
1397 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1398
1399System types:
1400 --build=BUILD configure for building on BUILD [guessed]
1401 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1402_ACEOF
1403fi
1404
1405if test -n "$ac_init_help"; then
1406 case $ac_init_help in
1407 short | recursive ) echo "Configuration of libpng 1.2.54:";;
1408 esac
1409 cat <<\_ACEOF
1410
1411Optional Features:
1412 --disable-option-checking ignore unrecognized --enable/--with options
1413 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1414 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1415 --enable-silent-rules less verbose build output (undo: "make V=1")
1416 --disable-silent-rules verbose build output (undo: "make V=0")
1417 --enable-maintainer-mode
1418 enable make rules and dependencies not useful (and
1419 sometimes confusing) to the casual installer
1420 --enable-dependency-tracking
1421 do not reject slow dependency extractors
1422 --disable-dependency-tracking
1423 speeds up one-time build
1424 --enable-shared[=PKGS] build shared libraries [default=yes]
1425 --enable-static[=PKGS] build static libraries [default=yes]
1426 --enable-fast-install[=PKGS]
1427 optimize for fast installation [default=yes]
1428 --disable-libtool-lock avoid locking (might break parallel builds)
1429
1430Optional Packages:
1431 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1432 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1433 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1434 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1435 both]
1436 --with-aix-soname=aix|svr4|both
1437 shared library versioning (aka "SONAME") variant to
1438 provide on AIX, [default=aix].
1439 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1440 compiler's sysroot if not specified).
1441 --with-pkgconfigdir Use the specified pkgconfig dir (default is
1442 libdir/pkgconfig)
1443 --with-binconfigs Generate shell libpng-config scripts as well as
1444 pkg-config data [default=yes]
1445 --with-libpng-compat Generate the obsolete libpng.so library
1446 [default=yes]
1447
1448Some influential environment variables:
1449 CC C compiler command
1450 CFLAGS C compiler flags
1451 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1452 nonstandard directory <lib dir>
1453 LIBS libraries to pass to the linker, e.g. -l<library>
1454 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1455 you have headers in a nonstandard directory <include dir>
1456 CPP C preprocessor
1457 LT_SYS_LIBRARY_PATH
1458 User-defined run-time library search path.
1459
1460Use these variables to override the choices made by `configure' or to help
1461it to find libraries and programs with nonstandard names/locations.
1462
1463Report bugs to <png-mng-implement@lists.sourceforge.net>.
1464_ACEOF
1465ac_status=$?
1466fi
1467
1468if test "$ac_init_help" = "recursive"; then
1469 # If there are subdirs, report their specific --help.
1470 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1471 test -d "$ac_dir" ||
1472 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1473 continue
1474 ac_builddir=.
1475
1476case "$ac_dir" in
1477.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478*)
1479 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1480 # A ".." for each directory in $ac_dir_suffix.
1481 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1482 case $ac_top_builddir_sub in
1483 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1485 esac ;;
1486esac
1487ac_abs_top_builddir=$ac_pwd
1488ac_abs_builddir=$ac_pwd$ac_dir_suffix
1489# for backward compatibility:
1490ac_top_builddir=$ac_top_build_prefix
1491
1492case $srcdir in
1493 .) # We are building in place.
1494 ac_srcdir=.
1495 ac_top_srcdir=$ac_top_builddir_sub
1496 ac_abs_top_srcdir=$ac_pwd ;;
1497 [\\/]* | ?:[\\/]* ) # Absolute name.
1498 ac_srcdir=$srcdir$ac_dir_suffix;
1499 ac_top_srcdir=$srcdir
1500 ac_abs_top_srcdir=$srcdir ;;
1501 *) # Relative name.
1502 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1503 ac_top_srcdir=$ac_top_build_prefix$srcdir
1504 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1505esac
1506ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1507
1508 cd "$ac_dir" || { ac_status=$?; continue; }
1509 # Check for guested configure.
1510 if test -f "$ac_srcdir/configure.gnu"; then
1511 echo &&
1512 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1513 elif test -f "$ac_srcdir/configure"; then
1514 echo &&
1515 $SHELL "$ac_srcdir/configure" --help=recursive
1516 else
1517 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1518 fi || ac_status=$?
1519 cd "$ac_pwd" || { ac_status=$?; break; }
1520 done
1521fi
1522
1523test -n "$ac_init_help" && exit $ac_status
1524if $ac_init_version; then
1525 cat <<\_ACEOF
1526libpng configure 1.2.54
1527generated by GNU Autoconf 2.69
1528
1529Copyright (C) 2012 Free Software Foundation, Inc.
1530This configure script is free software; the Free Software Foundation
1531gives unlimited permission to copy, distribute and modify it.
1532_ACEOF
1533 exit
1534fi
1535
1536## ------------------------ ##
1537## Autoconf initialization. ##
1538## ------------------------ ##
1539
1540# ac_fn_c_try_compile LINENO
1541# --------------------------
1542# Try to compile conftest.$ac_ext, and return whether this succeeded.
1543ac_fn_c_try_compile ()
1544{
1545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546 rm -f conftest.$ac_objext
1547 if { { ac_try="$ac_compile"
1548case "(($ac_try" in
1549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1550 *) ac_try_echo=$ac_try;;
1551esac
1552eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1553$as_echo "$ac_try_echo"; } >&5
1554 (eval "$ac_compile") 2>conftest.err
1555 ac_status=$?
1556 if test -s conftest.err; then
1557 grep -v '^ *+' conftest.err >conftest.er1
1558 cat conftest.er1 >&5
1559 mv -f conftest.er1 conftest.err
1560 fi
1561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1562 test $ac_status = 0; } && {
1563 test -z "$ac_c_werror_flag" ||
1564 test ! -s conftest.err
1565 } && test -s conftest.$ac_objext; then :
1566 ac_retval=0
1567else
1568 $as_echo "$as_me: failed program was:" >&5
1569sed 's/^/| /' conftest.$ac_ext >&5
1570
1571 ac_retval=1
1572fi
1573 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1574 as_fn_set_status $ac_retval
1575
1576} # ac_fn_c_try_compile
1577
1578# ac_fn_c_try_cpp LINENO
1579# ----------------------
1580# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1581ac_fn_c_try_cpp ()
1582{
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 if { { ac_try="$ac_cpp conftest.$ac_ext"
1585case "(($ac_try" in
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1588esac
1589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590$as_echo "$ac_try_echo"; } >&5
1591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1592 ac_status=$?
1593 if test -s conftest.err; then
1594 grep -v '^ *+' conftest.err >conftest.er1
1595 cat conftest.er1 >&5
1596 mv -f conftest.er1 conftest.err
1597 fi
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } > conftest.i && {
1600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1601 test ! -s conftest.err
1602 }; then :
1603 ac_retval=0
1604else
1605 $as_echo "$as_me: failed program was:" >&5
1606sed 's/^/| /' conftest.$ac_ext >&5
1607
1608 ac_retval=1
1609fi
1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611 as_fn_set_status $ac_retval
1612
1613} # ac_fn_c_try_cpp
1614
1615# ac_fn_c_try_link LINENO
1616# -----------------------
1617# Try to link conftest.$ac_ext, and return whether this succeeded.
1618ac_fn_c_try_link ()
1619{
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 rm -f conftest.$ac_objext conftest$ac_exeext
1622 if { { ac_try="$ac_link"
1623case "(($ac_try" in
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1626esac
1627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628$as_echo "$ac_try_echo"; } >&5
1629 (eval "$ac_link") 2>conftest.err
1630 ac_status=$?
1631 if test -s conftest.err; then
1632 grep -v '^ *+' conftest.err >conftest.er1
1633 cat conftest.er1 >&5
1634 mv -f conftest.er1 conftest.err
1635 fi
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; } && {
1638 test -z "$ac_c_werror_flag" ||
1639 test ! -s conftest.err
1640 } && test -s conftest$ac_exeext && {
1641 test "$cross_compiling" = yes ||
1642 test -x conftest$ac_exeext
1643 }; then :
1644 ac_retval=0
1645else
1646 $as_echo "$as_me: failed program was:" >&5
1647sed 's/^/| /' conftest.$ac_ext >&5
1648
1649 ac_retval=1
1650fi
1651 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1652 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1653 # interfere with the next link command; also delete a directory that is
1654 # left behind by Apple's compiler. We do this before executing the actions.
1655 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657 as_fn_set_status $ac_retval
1658
1659} # ac_fn_c_try_link
1660
1661# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1662# -------------------------------------------------------
1663# Tests whether HEADER exists and can be compiled using the include files in
1664# INCLUDES, setting the cache variable VAR accordingly.
1665ac_fn_c_check_header_compile ()
1666{
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1669$as_echo_n "checking for $2... " >&6; }
1670if eval \${$3+:} false; then :
1671 $as_echo_n "(cached) " >&6
1672else
1673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1674/* end confdefs.h. */
1675$4
1676#include <$2>
1677_ACEOF
1678if ac_fn_c_try_compile "$LINENO"; then :
1679 eval "$3=yes"
1680else
1681 eval "$3=no"
1682fi
1683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1684fi
1685eval ac_res=\$$3
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1687$as_echo "$ac_res" >&6; }
1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689
1690} # ac_fn_c_check_header_compile
1691
1692# ac_fn_c_try_run LINENO
1693# ----------------------
1694# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1695# that executables *can* be run.
1696ac_fn_c_try_run ()
1697{
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 if { { ac_try="$ac_link"
1700case "(($ac_try" in
1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702 *) ac_try_echo=$ac_try;;
1703esac
1704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705$as_echo "$ac_try_echo"; } >&5
1706 (eval "$ac_link") 2>&5
1707 ac_status=$?
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1710 { { case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713esac
1714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715$as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_try") 2>&5
1717 ac_status=$?
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; }; }; then :
1720 ac_retval=0
1721else
1722 $as_echo "$as_me: program exited with status $ac_status" >&5
1723 $as_echo "$as_me: failed program was:" >&5
1724sed 's/^/| /' conftest.$ac_ext >&5
1725
1726 ac_retval=$ac_status
1727fi
1728 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730 as_fn_set_status $ac_retval
1731
1732} # ac_fn_c_try_run
1733
1734# ac_fn_c_check_func LINENO FUNC VAR
1735# ----------------------------------
1736# Tests whether FUNC exists, setting the cache variable VAR accordingly
1737ac_fn_c_check_func ()
1738{
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741$as_echo_n "checking for $2... " >&6; }
1742if eval \${$3+:} false; then :
1743 $as_echo_n "(cached) " >&6
1744else
1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746/* end confdefs.h. */
1747/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1749#define $2 innocuous_$2
1750
1751/* System header to define __stub macros and hopefully few prototypes,
1752 which can conflict with char $2 (); below.
1753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1754 <limits.h> exists even on freestanding compilers. */
1755
1756#ifdef __STDC__
1757# include <limits.h>
1758#else
1759# include <assert.h>
1760#endif
1761
1762#undef $2
1763
1764/* Override any GCC internal prototype to avoid an error.
1765 Use char because int might match the return type of a GCC
1766 builtin and then its argument prototype would still apply. */
1767#ifdef __cplusplus
1768extern "C"
1769#endif
1770char $2 ();
1771/* The GNU C library defines this for functions which it implements
1772 to always fail with ENOSYS. Some functions are actually named
1773 something starting with __ and the normal name is an alias. */
1774#if defined __stub_$2 || defined __stub___$2
1775choke me
1776#endif
1777
1778int
1779main ()
1780{
1781return $2 ();
1782 ;
1783 return 0;
1784}
1785_ACEOF
1786if ac_fn_c_try_link "$LINENO"; then :
1787 eval "$3=yes"
1788else
1789 eval "$3=no"
1790fi
1791rm -f core conftest.err conftest.$ac_objext \
1792 conftest$ac_exeext conftest.$ac_ext
1793fi
1794eval ac_res=\$$3
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1796$as_echo "$ac_res" >&6; }
1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798
1799} # ac_fn_c_check_func
1800
1801# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1802# -------------------------------------------------------
1803# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1804# the include files in INCLUDES and setting the cache variable VAR
1805# accordingly.
1806ac_fn_c_check_header_mongrel ()
1807{
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 if eval \${$3+:} false; then :
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811$as_echo_n "checking for $2... " >&6; }
1812if eval \${$3+:} false; then :
1813 $as_echo_n "(cached) " >&6
1814fi
1815eval ac_res=\$$3
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817$as_echo "$ac_res" >&6; }
1818else
1819 # Is the header compilable?
1820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1821$as_echo_n "checking $2 usability... " >&6; }
1822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823/* end confdefs.h. */
1824$4
1825#include <$2>
1826_ACEOF
1827if ac_fn_c_try_compile "$LINENO"; then :
1828 ac_header_compiler=yes
1829else
1830 ac_header_compiler=no
1831fi
1832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1834$as_echo "$ac_header_compiler" >&6; }
1835
1836# Is the header present?
1837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1838$as_echo_n "checking $2 presence... " >&6; }
1839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840/* end confdefs.h. */
1841#include <$2>
1842_ACEOF
1843if ac_fn_c_try_cpp "$LINENO"; then :
1844 ac_header_preproc=yes
1845else
1846 ac_header_preproc=no
1847fi
1848rm -f conftest.err conftest.i conftest.$ac_ext
1849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1850$as_echo "$ac_header_preproc" >&6; }
1851
1852# So? What about this header?
1853case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1854 yes:no: )
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1856$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1858$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1859 ;;
1860 no:yes:* )
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1862$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1864$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1866$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1868$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1870$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1871( $as_echo "## ------------------------------------------------------ ##
1872## Report this to png-mng-implement@lists.sourceforge.net ##
1873## ------------------------------------------------------ ##"
1874 ) | sed "s/^/$as_me: WARNING: /" >&2
1875 ;;
1876esac
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=\$ac_header_compiler"
1883fi
1884eval ac_res=\$$3
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886$as_echo "$ac_res" >&6; }
1887fi
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889
1890} # ac_fn_c_check_header_mongrel
1891
1892# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1893# -------------------------------------------
1894# Tests whether TYPE exists after having included INCLUDES, setting cache
1895# variable VAR accordingly.
1896ac_fn_c_check_type ()
1897{
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900$as_echo_n "checking for $2... " >&6; }
1901if eval \${$3+:} false; then :
1902 $as_echo_n "(cached) " >&6
1903else
1904 eval "$3=no"
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906/* end confdefs.h. */
1907$4
1908int
1909main ()
1910{
1911if (sizeof ($2))
1912 return 0;
1913 ;
1914 return 0;
1915}
1916_ACEOF
1917if ac_fn_c_try_compile "$LINENO"; then :
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919/* end confdefs.h. */
1920$4
1921int
1922main ()
1923{
1924if (sizeof (($2)))
1925 return 0;
1926 ;
1927 return 0;
1928}
1929_ACEOF
1930if ac_fn_c_try_compile "$LINENO"; then :
1931
1932else
1933 eval "$3=yes"
1934fi
1935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936fi
1937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938fi
1939eval ac_res=\$$3
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941$as_echo "$ac_res" >&6; }
1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943
1944} # ac_fn_c_check_type
1945cat >config.log <<_ACEOF
1946This file contains any messages produced by compilers while
1947running configure, to aid debugging if configure makes a mistake.
1948
1949It was created by libpng $as_me 1.2.54, which was
1950generated by GNU Autoconf 2.69. Invocation command line was
1951
1952 $ $0 $@
1953
1954_ACEOF
1955exec 5>>config.log
1956{
1957cat <<_ASUNAME
1958## --------- ##
1959## Platform. ##
1960## --------- ##
1961
1962hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1963uname -m = `(uname -m) 2>/dev/null || echo unknown`
1964uname -r = `(uname -r) 2>/dev/null || echo unknown`
1965uname -s = `(uname -s) 2>/dev/null || echo unknown`
1966uname -v = `(uname -v) 2>/dev/null || echo unknown`
1967
1968/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1969/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1970
1971/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1972/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1973/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1974/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1975/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1976/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1977/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1978
1979_ASUNAME
1980
1981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982for as_dir in $PATH
1983do
1984 IFS=$as_save_IFS
1985 test -z "$as_dir" && as_dir=.
1986 $as_echo "PATH: $as_dir"
1987 done
1988IFS=$as_save_IFS
1989
1990} >&5
1991
1992cat >&5 <<_ACEOF
1993
1994
1995## ----------- ##
1996## Core tests. ##
1997## ----------- ##
1998
1999_ACEOF
2000
2001
2002# Keep a trace of the command line.
2003# Strip out --no-create and --no-recursion so they do not pile up.
2004# Strip out --silent because we don't want to record it for future runs.
2005# Also quote any args containing shell meta-characters.
2006# Make two passes to allow for proper duplicate-argument suppression.
2007ac_configure_args=
2008ac_configure_args0=
2009ac_configure_args1=
2010ac_must_keep_next=false
2011for ac_pass in 1 2
2012do
2013 for ac_arg
2014 do
2015 case $ac_arg in
2016 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2017 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2018 | -silent | --silent | --silen | --sile | --sil)
2019 continue ;;
2020 *\'*)
2021 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2022 esac
2023 case $ac_pass in
2024 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2025 2)
2026 as_fn_append ac_configure_args1 " '$ac_arg'"
2027 if test $ac_must_keep_next = true; then
2028 ac_must_keep_next=false # Got value, back to normal.
2029 else
2030 case $ac_arg in
2031 *=* | --config-cache | -C | -disable-* | --disable-* \
2032 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2033 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2034 | -with-* | --with-* | -without-* | --without-* | --x)
2035 case "$ac_configure_args0 " in
2036 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2037 esac
2038 ;;
2039 -* ) ac_must_keep_next=true ;;
2040 esac
2041 fi
2042 as_fn_append ac_configure_args " '$ac_arg'"
2043 ;;
2044 esac
2045 done
2046done
2047{ ac_configure_args0=; unset ac_configure_args0;}
2048{ ac_configure_args1=; unset ac_configure_args1;}
2049
2050# When interrupted or exit'd, cleanup temporary files, and complete
2051# config.log. We remove comments because anyway the quotes in there
2052# would cause problems or look ugly.
2053# WARNING: Use '\'' to represent an apostrophe within the trap.
2054# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2055trap 'exit_status=$?
2056 # Save into config.log some information that might help in debugging.
2057 {
2058 echo
2059
2060 $as_echo "## ---------------- ##
2061## Cache variables. ##
2062## ---------------- ##"
2063 echo
2064 # The following way of writing the cache mishandles newlines in values,
2065(
2066 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2067 eval ac_val=\$$ac_var
2068 case $ac_val in #(
2069 *${as_nl}*)
2070 case $ac_var in #(
2071 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2072$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2073 esac
2074 case $ac_var in #(
2075 _ | IFS | as_nl) ;; #(
2076 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2077 *) { eval $ac_var=; unset $ac_var;} ;;
2078 esac ;;
2079 esac
2080 done
2081 (set) 2>&1 |
2082 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2083 *${as_nl}ac_space=\ *)
2084 sed -n \
2085 "s/'\''/'\''\\\\'\'''\''/g;
2086 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2087 ;; #(
2088 *)
2089 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2090 ;;
2091 esac |
2092 sort
2093)
2094 echo
2095
2096 $as_echo "## ----------------- ##
2097## Output variables. ##
2098## ----------------- ##"
2099 echo
2100 for ac_var in $ac_subst_vars
2101 do
2102 eval ac_val=\$$ac_var
2103 case $ac_val in
2104 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2105 esac
2106 $as_echo "$ac_var='\''$ac_val'\''"
2107 done | sort
2108 echo
2109
2110 if test -n "$ac_subst_files"; then
2111 $as_echo "## ------------------- ##
2112## File substitutions. ##
2113## ------------------- ##"
2114 echo
2115 for ac_var in $ac_subst_files
2116 do
2117 eval ac_val=\$$ac_var
2118 case $ac_val in
2119 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2120 esac
2121 $as_echo "$ac_var='\''$ac_val'\''"
2122 done | sort
2123 echo
2124 fi
2125
2126 if test -s confdefs.h; then
2127 $as_echo "## ----------- ##
2128## confdefs.h. ##
2129## ----------- ##"
2130 echo
2131 cat confdefs.h
2132 echo
2133 fi
2134 test "$ac_signal" != 0 &&
2135 $as_echo "$as_me: caught signal $ac_signal"
2136 $as_echo "$as_me: exit $exit_status"
2137 } >&5
2138 rm -f core *.core core.conftest.* &&
2139 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2140 exit $exit_status
2141' 0
2142for ac_signal in 1 2 13 15; do
2143 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2144done
2145ac_signal=0
2146
2147# confdefs.h avoids OS command line length limits that DEFS can exceed.
2148rm -f -r conftest* confdefs.h
2149
2150$as_echo "/* confdefs.h */" > confdefs.h
2151
2152# Predefined preprocessor variables.
2153
2154cat >>confdefs.h <<_ACEOF
2155#define PACKAGE_NAME "$PACKAGE_NAME"
2156_ACEOF
2157
2158cat >>confdefs.h <<_ACEOF
2159#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2160_ACEOF
2161
2162cat >>confdefs.h <<_ACEOF
2163#define PACKAGE_VERSION "$PACKAGE_VERSION"
2164_ACEOF
2165
2166cat >>confdefs.h <<_ACEOF
2167#define PACKAGE_STRING "$PACKAGE_STRING"
2168_ACEOF
2169
2170cat >>confdefs.h <<_ACEOF
2171#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2172_ACEOF
2173
2174cat >>confdefs.h <<_ACEOF
2175#define PACKAGE_URL "$PACKAGE_URL"
2176_ACEOF
2177
2178
2179# Let the site file select an alternate cache file if it wants to.
2180# Prefer an explicitly selected file to automatically selected ones.
2181ac_site_file1=NONE
2182ac_site_file2=NONE
2183if test -n "$CONFIG_SITE"; then
2184 # We do not want a PATH search for config.site.
2185 case $CONFIG_SITE in #((
2186 -*) ac_site_file1=./$CONFIG_SITE;;
2187 */*) ac_site_file1=$CONFIG_SITE;;
2188 *) ac_site_file1=./$CONFIG_SITE;;
2189 esac
2190elif test "x$prefix" != xNONE; then
2191 ac_site_file1=$prefix/share/config.site
2192 ac_site_file2=$prefix/etc/config.site
2193else
2194 ac_site_file1=$ac_default_prefix/share/config.site
2195 ac_site_file2=$ac_default_prefix/etc/config.site
2196fi
2197for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2198do
2199 test "x$ac_site_file" = xNONE && continue
2200 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2202$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2203 sed 's/^/| /' "$ac_site_file" >&5
2204 . "$ac_site_file" \
2205 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2206$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2207as_fn_error $? "failed to load site script $ac_site_file
2208See \`config.log' for more details" "$LINENO" 5; }
2209 fi
2210done
2211
2212if test -r "$cache_file"; then
2213 # Some versions of bash will fail to source /dev/null (special files
2214 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2215 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2217$as_echo "$as_me: loading cache $cache_file" >&6;}
2218 case $cache_file in
2219 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2220 *) . "./$cache_file";;
2221 esac
2222 fi
2223else
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2225$as_echo "$as_me: creating cache $cache_file" >&6;}
2226 >$cache_file
2227fi
2228
2229# Check that the precious variables saved in the cache have kept the same
2230# value.
2231ac_cache_corrupted=false
2232for ac_var in $ac_precious_vars; do
2233 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2234 eval ac_new_set=\$ac_env_${ac_var}_set
2235 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2236 eval ac_new_val=\$ac_env_${ac_var}_value
2237 case $ac_old_set,$ac_new_set in
2238 set,)
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2240$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2241 ac_cache_corrupted=: ;;
2242 ,set)
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2244$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2245 ac_cache_corrupted=: ;;
2246 ,);;
2247 *)
2248 if test "x$ac_old_val" != "x$ac_new_val"; then
2249 # differences in whitespace do not lead to failure.
2250 ac_old_val_w=`echo x $ac_old_val`
2251 ac_new_val_w=`echo x $ac_new_val`
2252 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2254$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2255 ac_cache_corrupted=:
2256 else
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2258$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2259 eval $ac_var=\$ac_old_val
2260 fi
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2262$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2264$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2265 fi;;
2266 esac
2267 # Pass precious variables to config.status.
2268 if test "$ac_new_set" = set; then
2269 case $ac_new_val in
2270 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2271 *) ac_arg=$ac_var=$ac_new_val ;;
2272 esac
2273 case " $ac_configure_args " in
2274 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2275 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2276 esac
2277 fi
2278done
2279if $ac_cache_corrupted; then
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2281$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2283$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2284 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2285fi
2286## -------------------- ##
2287## Main body of script. ##
2288## -------------------- ##
2289
2290ac_ext=c
2291ac_cpp='$CPP $CPPFLAGS'
2292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2294ac_compiler_gnu=$ac_cv_c_compiler_gnu
2295
2296
2297am__api_version='1.15'
2298
2299ac_aux_dir=
2300for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2301 if test -f "$ac_dir/install-sh"; then
2302 ac_aux_dir=$ac_dir
2303 ac_install_sh="$ac_aux_dir/install-sh -c"
2304 break
2305 elif test -f "$ac_dir/install.sh"; then
2306 ac_aux_dir=$ac_dir
2307 ac_install_sh="$ac_aux_dir/install.sh -c"
2308 break
2309 elif test -f "$ac_dir/shtool"; then
2310 ac_aux_dir=$ac_dir
2311 ac_install_sh="$ac_aux_dir/shtool install -c"
2312 break
2313 fi
2314done
2315if test -z "$ac_aux_dir"; then
2316 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2317fi
2318
2319# These three variables are undocumented and unsupported,
2320# and are intended to be withdrawn in a future Autoconf release.
2321# They can cause serious problems if a builder's source tree is in a directory
2322# whose full name contains unusual characters.
2323ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2324ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2325ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2326
2327
2328# Find a good install program. We prefer a C program (faster),
2329# so one script is as good as another. But avoid the broken or
2330# incompatible versions:
2331# SysV /etc/install, /usr/sbin/install
2332# SunOS /usr/etc/install
2333# IRIX /sbin/install
2334# AIX /bin/install
2335# AmigaOS /C/install, which installs bootblocks on floppy discs
2336# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2337# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2338# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2339# OS/2's system install, which has a completely different semantic
2340# ./install, which can be erroneously created by make from ./install.sh.
2341# Reject install programs that cannot install multiple files.
2342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2343$as_echo_n "checking for a BSD-compatible install... " >&6; }
2344if test -z "$INSTALL"; then
2345if ${ac_cv_path_install+:} false; then :
2346 $as_echo_n "(cached) " >&6
2347else
2348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349for as_dir in $PATH
2350do
2351 IFS=$as_save_IFS
2352 test -z "$as_dir" && as_dir=.
2353 # Account for people who put trailing slashes in PATH elements.
2354case $as_dir/ in #((
2355 ./ | .// | /[cC]/* | \
2356 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2357 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2358 /usr/ucb/* ) ;;
2359 *)
2360 # OSF1 and SCO ODT 3.0 have their own names for install.
2361 # Don't use installbsd from OSF since it installs stuff as root
2362 # by default.
2363 for ac_prog in ginstall scoinst install; do
2364 for ac_exec_ext in '' $ac_executable_extensions; do
2365 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2366 if test $ac_prog = install &&
2367 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2368 # AIX install. It has an incompatible calling convention.
2369 :
2370 elif test $ac_prog = install &&
2371 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2372 # program-specific install script used by HP pwplus--don't use.
2373 :
2374 else
2375 rm -rf conftest.one conftest.two conftest.dir
2376 echo one > conftest.one
2377 echo two > conftest.two
2378 mkdir conftest.dir
2379 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2380 test -s conftest.one && test -s conftest.two &&
2381 test -s conftest.dir/conftest.one &&
2382 test -s conftest.dir/conftest.two
2383 then
2384 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2385 break 3
2386 fi
2387 fi
2388 fi
2389 done
2390 done
2391 ;;
2392esac
2393
2394 done
2395IFS=$as_save_IFS
2396
2397rm -rf conftest.one conftest.two conftest.dir
2398
2399fi
2400 if test "${ac_cv_path_install+set}" = set; then
2401 INSTALL=$ac_cv_path_install
2402 else
2403 # As a last resort, use the slow shell script. Don't cache a
2404 # value for INSTALL within a source directory, because that will
2405 # break other packages using the cache if that directory is
2406 # removed, or if the value is a relative name.
2407 INSTALL=$ac_install_sh
2408 fi
2409fi
2410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2411$as_echo "$INSTALL" >&6; }
2412
2413# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2414# It thinks the first close brace ends the variable substitution.
2415test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2416
2417test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2418
2419test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2420
2421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2422$as_echo_n "checking whether build environment is sane... " >&6; }
2423# Reject unsafe characters in $srcdir or the absolute working directory
2424# name. Accept space and tab only in the latter.
2425am_lf='
2426'
2427case `pwd` in
2428 *[\\\"\#\$\&\'\`$am_lf]*)
2429 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2430esac
2431case $srcdir in
2432 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2433 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2434esac
2435
2436# Do 'set' in a subshell so we don't clobber the current shell's
2437# arguments. Must try -L first in case configure is actually a
2438# symlink; some systems play weird games with the mod time of symlinks
2439# (eg FreeBSD returns the mod time of the symlink's containing
2440# directory).
2441if (
2442 am_has_slept=no
2443 for am_try in 1 2; do
2444 echo "timestamp, slept: $am_has_slept" > conftest.file
2445 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2446 if test "$*" = "X"; then
2447 # -L didn't work.
2448 set X `ls -t "$srcdir/configure" conftest.file`
2449 fi
2450 if test "$*" != "X $srcdir/configure conftest.file" \
2451 && test "$*" != "X conftest.file $srcdir/configure"; then
2452
2453 # If neither matched, then we have a broken ls. This can happen
2454 # if, for instance, CONFIG_SHELL is bash and it inherits a
2455 # broken ls alias from the environment. This has actually
2456 # happened. Such a system could not be considered "sane".
2457 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2458 alias in your environment" "$LINENO" 5
2459 fi
2460 if test "$2" = conftest.file || test $am_try -eq 2; then
2461 break
2462 fi
2463 # Just in case.
2464 sleep 1
2465 am_has_slept=yes
2466 done
2467 test "$2" = conftest.file
2468 )
2469then
2470 # Ok.
2471 :
2472else
2473 as_fn_error $? "newly created file is older than distributed files!
2474Check your system clock" "$LINENO" 5
2475fi
2476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2477$as_echo "yes" >&6; }
2478# If we didn't sleep, we still need to ensure time stamps of config.status and
2479# generated files are strictly newer.
2480am_sleep_pid=
2481if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2482 ( sleep 1 ) &
2483 am_sleep_pid=$!
2484fi
2485
2486rm -f conftest.file
2487
2488test "$program_prefix" != NONE &&
2489 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2490# Use a double $ so make ignores it.
2491test "$program_suffix" != NONE &&
2492 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2493# Double any \ or $.
2494# By default was `s,x,x', remove it if useless.
2495ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2496program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2497
2498# Expand $ac_aux_dir to an absolute path.
2499am_aux_dir=`cd "$ac_aux_dir" && pwd`
2500
2501if test x"${MISSING+set}" != xset; then
2502 case $am_aux_dir in
2503 *\ * | *\ *)
2504 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2505 *)
2506 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2507 esac
2508fi
2509# Use eval to expand $SHELL
2510if eval "$MISSING --is-lightweight"; then
2511 am_missing_run="$MISSING "
2512else
2513 am_missing_run=
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2515$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2516fi
2517
2518if test x"${install_sh+set}" != xset; then
2519 case $am_aux_dir in
2520 *\ * | *\ *)
2521 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2522 *)
2523 install_sh="\${SHELL} $am_aux_dir/install-sh"
2524 esac
2525fi
2526
2527# Installed binaries are usually stripped using 'strip' when the user
2528# run "make install-strip". However 'strip' might not be the right
2529# tool to use in cross-compilation environments, therefore Automake
2530# will honor the 'STRIP' environment variable to overrule this program.
2531if test "$cross_compiling" != no; then
2532 if test -n "$ac_tool_prefix"; then
2533 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2534set dummy ${ac_tool_prefix}strip; ac_word=$2
2535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2536$as_echo_n "checking for $ac_word... " >&6; }
2537if ${ac_cv_prog_STRIP+:} false; then :
2538 $as_echo_n "(cached) " >&6
2539else
2540 if test -n "$STRIP"; then
2541 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2542else
2543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544for as_dir in $PATH
2545do
2546 IFS=$as_save_IFS
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2550 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2552 break 2
2553 fi
2554done
2555 done
2556IFS=$as_save_IFS
2557
2558fi
2559fi
2560STRIP=$ac_cv_prog_STRIP
2561if test -n "$STRIP"; then
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2563$as_echo "$STRIP" >&6; }
2564else
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2566$as_echo "no" >&6; }
2567fi
2568
2569
2570fi
2571if test -z "$ac_cv_prog_STRIP"; then
2572 ac_ct_STRIP=$STRIP
2573 # Extract the first word of "strip", so it can be a program name with args.
2574set dummy strip; ac_word=$2
2575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2576$as_echo_n "checking for $ac_word... " >&6; }
2577if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2578 $as_echo_n "(cached) " >&6
2579else
2580 if test -n "$ac_ct_STRIP"; then
2581 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2582else
2583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584for as_dir in $PATH
2585do
2586 IFS=$as_save_IFS
2587 test -z "$as_dir" && as_dir=.
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2590 ac_cv_prog_ac_ct_STRIP="strip"
2591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2592 break 2
2593 fi
2594done
2595 done
2596IFS=$as_save_IFS
2597
2598fi
2599fi
2600ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2601if test -n "$ac_ct_STRIP"; then
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2603$as_echo "$ac_ct_STRIP" >&6; }
2604else
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2606$as_echo "no" >&6; }
2607fi
2608
2609 if test "x$ac_ct_STRIP" = x; then
2610 STRIP=":"
2611 else
2612 case $cross_compiling:$ac_tool_warned in
2613yes:)
2614{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2615$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2616ac_tool_warned=yes ;;
2617esac
2618 STRIP=$ac_ct_STRIP
2619 fi
2620else
2621 STRIP="$ac_cv_prog_STRIP"
2622fi
2623
2624fi
2625INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2626
2627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2628$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2629if test -z "$MKDIR_P"; then
2630 if ${ac_cv_path_mkdir+:} false; then :
2631 $as_echo_n "(cached) " >&6
2632else
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2635do
2636 IFS=$as_save_IFS
2637 test -z "$as_dir" && as_dir=.
2638 for ac_prog in mkdir gmkdir; do
2639 for ac_exec_ext in '' $ac_executable_extensions; do
2640 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2641 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2642 'mkdir (GNU coreutils) '* | \
2643 'mkdir (coreutils) '* | \
2644 'mkdir (fileutils) '4.1*)
2645 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2646 break 3;;
2647 esac
2648 done
2649 done
2650 done
2651IFS=$as_save_IFS
2652
2653fi
2654
2655 test -d ./--version && rmdir ./--version
2656 if test "${ac_cv_path_mkdir+set}" = set; then
2657 MKDIR_P="$ac_cv_path_mkdir -p"
2658 else
2659 # As a last resort, use the slow shell script. Don't cache a
2660 # value for MKDIR_P within a source directory, because that will
2661 # break other packages using the cache if that directory is
2662 # removed, or if the value is a relative name.
2663 MKDIR_P="$ac_install_sh -d"
2664 fi
2665fi
2666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2667$as_echo "$MKDIR_P" >&6; }
2668
2669for ac_prog in gawk mawk nawk awk
2670do
2671 # Extract the first word of "$ac_prog", so it can be a program name with args.
2672set dummy $ac_prog; ac_word=$2
2673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674$as_echo_n "checking for $ac_word... " >&6; }
2675if ${ac_cv_prog_AWK+:} false; then :
2676 $as_echo_n "(cached) " >&6
2677else
2678 if test -n "$AWK"; then
2679 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2680else
2681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682for as_dir in $PATH
2683do
2684 IFS=$as_save_IFS
2685 test -z "$as_dir" && as_dir=.
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2688 ac_cv_prog_AWK="$ac_prog"
2689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 break 2
2691 fi
2692done
2693 done
2694IFS=$as_save_IFS
2695
2696fi
2697fi
2698AWK=$ac_cv_prog_AWK
2699if test -n "$AWK"; then
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2701$as_echo "$AWK" >&6; }
2702else
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2704$as_echo "no" >&6; }
2705fi
2706
2707
2708 test -n "$AWK" && break
2709done
2710
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2712$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2713set x ${MAKE-make}
2714ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2715if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2716 $as_echo_n "(cached) " >&6
2717else
2718 cat >conftest.make <<\_ACEOF
2719SHELL = /bin/sh
2720all:
2721 @echo '@@@%%%=$(MAKE)=@@@%%%'
2722_ACEOF
2723# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2724case `${MAKE-make} -f conftest.make 2>/dev/null` in
2725 *@@@%%%=?*=@@@%%%*)
2726 eval ac_cv_prog_make_${ac_make}_set=yes;;
2727 *)
2728 eval ac_cv_prog_make_${ac_make}_set=no;;
2729esac
2730rm -f conftest.make
2731fi
2732if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2734$as_echo "yes" >&6; }
2735 SET_MAKE=
2736else
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738$as_echo "no" >&6; }
2739 SET_MAKE="MAKE=${MAKE-make}"
2740fi
2741
2742rm -rf .tst 2>/dev/null
2743mkdir .tst 2>/dev/null
2744if test -d .tst; then
2745 am__leading_dot=.
2746else
2747 am__leading_dot=_
2748fi
2749rmdir .tst 2>/dev/null
2750
2751# Check whether --enable-silent-rules was given.
2752if test "${enable_silent_rules+set}" = set; then :
2753 enableval=$enable_silent_rules;
2754fi
2755
2756case $enable_silent_rules in # (((
2757 yes) AM_DEFAULT_VERBOSITY=0;;
2758 no) AM_DEFAULT_VERBOSITY=1;;
2759 *) AM_DEFAULT_VERBOSITY=1;;
2760esac
2761am_make=${MAKE-make}
2762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2763$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2764if ${am_cv_make_support_nested_variables+:} false; then :
2765 $as_echo_n "(cached) " >&6
2766else
2767 if $as_echo 'TRUE=$(BAR$(V))
2768BAR0=false
2769BAR1=true
2770V=1
2771am__doit:
2772 @$(TRUE)
2773.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2774 am_cv_make_support_nested_variables=yes
2775else
2776 am_cv_make_support_nested_variables=no
2777fi
2778fi
2779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2780$as_echo "$am_cv_make_support_nested_variables" >&6; }
2781if test $am_cv_make_support_nested_variables = yes; then
2782 AM_V='$(V)'
2783 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2784else
2785 AM_V=$AM_DEFAULT_VERBOSITY
2786 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2787fi
2788AM_BACKSLASH='\'
2789
2790if test "`cd $srcdir && pwd`" != "`pwd`"; then
2791 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2792 # is not polluted with repeated "-I."
2793 am__isrc=' -I$(srcdir)'
2794 # test to see if srcdir already configured
2795 if test -f $srcdir/config.status; then
2796 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2797 fi
2798fi
2799
2800# test whether we have cygpath
2801if test -z "$CYGPATH_W"; then
2802 if (cygpath --version) >/dev/null 2>/dev/null; then
2803 CYGPATH_W='cygpath -w'
2804 else
2805 CYGPATH_W=echo
2806 fi
2807fi
2808
2809
2810# Define the identity of the package.
2811 PACKAGE='libpng'
2812 VERSION='1.2.54'
2813
2814
2815cat >>confdefs.h <<_ACEOF
2816#define PACKAGE "$PACKAGE"
2817_ACEOF
2818
2819
2820cat >>confdefs.h <<_ACEOF
2821#define VERSION "$VERSION"
2822_ACEOF
2823
2824# Some tools Automake needs.
2825
2826ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2827
2828
2829AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2830
2831
2832AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2833
2834
2835AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2836
2837
2838MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2839
2840# For better backward compatibility. To be removed once Automake 1.9.x
2841# dies out for good. For more background, see:
2842# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2843# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2844mkdir_p='$(MKDIR_P)'
2845
2846# We need awk for the "check" target (and possibly the TAP driver). The
2847# system "awk" is bad on some platforms.
2848# Always define AMTAR for backward compatibility. Yes, it's still used
2849# in the wild :-( We should find a proper way to deprecate it ...
2850AMTAR='$${TAR-tar}'
2851
2852
2853# We'll loop over all known methods to create a tar archive until one works.
2854_am_tools='gnutar pax cpio none'
2855
2856am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2857
2858
2859
2860
2861
2862
2863# POSIX will say in a future version that running "rm -f" with no argument
2864# is OK; and we want to be able to make that assumption in our Makefile
2865# recipes. So use an aggressive probe to check that the usage we want is
2866# actually supported "in the wild" to an acceptable degree.
2867# See automake bug#10828.
2868# To make any issue more visible, cause the running configure to be aborted
2869# by default if the 'rm' program in use doesn't match our expectations; the
2870# user can still override this though.
2871if rm -f && rm -fr && rm -rf; then : OK; else
2872 cat >&2 <<'END'
2873Oops!
2874
2875Your 'rm' program seems unable to run without file operands specified
2876on the command line, even when the '-f' option is present. This is contrary
2877to the behaviour of most rm programs out there, and not conforming with
2878the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2879
2880Please tell bug-automake@gnu.org about your system, including the value
2881of your $PATH and any error possibly output before this message. This
2882can help us improve future automake versions.
2883
2884END
2885 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2886 echo 'Configuration will proceed anyway, since you have set the' >&2
2887 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2888 echo >&2
2889 else
2890 cat >&2 <<'END'
2891Aborting the configuration process, to ensure you take notice of the issue.
2892
2893You can download and install GNU coreutils to get an 'rm' implementation
2894that behaves properly: <http://www.gnu.org/software/coreutils/>.
2895
2896If you want to complete the configuration process using your problematic
2897'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2898to "yes", and re-run configure.
2899
2900END
2901 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2902 fi
2903fi
2904
2905
2906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2907$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2908 # Check whether --enable-maintainer-mode was given.
2909if test "${enable_maintainer_mode+set}" = set; then :
2910 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2911else
2912 USE_MAINTAINER_MODE=no
2913fi
2914
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2916$as_echo "$USE_MAINTAINER_MODE" >&6; }
2917 if test $USE_MAINTAINER_MODE = yes; then
2918 MAINTAINER_MODE_TRUE=
2919 MAINTAINER_MODE_FALSE='#'
2920else
2921 MAINTAINER_MODE_TRUE='#'
2922 MAINTAINER_MODE_FALSE=
2923fi
2924
2925 MAINT=$MAINTAINER_MODE_TRUE
2926
2927
2928
2929PNGLIB_VERSION=1.2.54
2930PNGLIB_MAJOR=1
2931PNGLIB_MINOR=2
2932PNGLIB_RELEASE=54
2933
2934
2935
2936ac_config_headers="$ac_config_headers config.h"
2937
2938
2939# Checks for programs.
2940ac_ext=c
2941ac_cpp='$CPP $CPPFLAGS'
2942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2944ac_compiler_gnu=$ac_cv_c_compiler_gnu
2945if test -n "$ac_tool_prefix"; then
2946 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2947set dummy ${ac_tool_prefix}gcc; ac_word=$2
2948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2949$as_echo_n "checking for $ac_word... " >&6; }
2950if ${ac_cv_prog_CC+:} false; then :
2951 $as_echo_n "(cached) " >&6
2952else
2953 if test -n "$CC"; then
2954 ac_cv_prog_CC="$CC" # Let the user override the test.
2955else
2956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957for as_dir in $PATH
2958do
2959 IFS=$as_save_IFS
2960 test -z "$as_dir" && as_dir=.
2961 for ac_exec_ext in '' $ac_executable_extensions; do
2962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2963 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2965 break 2
2966 fi
2967done
2968 done
2969IFS=$as_save_IFS
2970
2971fi
2972fi
2973CC=$ac_cv_prog_CC
2974if test -n "$CC"; then
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2976$as_echo "$CC" >&6; }
2977else
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979$as_echo "no" >&6; }
2980fi
2981
2982
2983fi
2984if test -z "$ac_cv_prog_CC"; then
2985 ac_ct_CC=$CC
2986 # Extract the first word of "gcc", so it can be a program name with args.
2987set dummy gcc; ac_word=$2
2988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989$as_echo_n "checking for $ac_word... " >&6; }
2990if ${ac_cv_prog_ac_ct_CC+:} false; then :
2991 $as_echo_n "(cached) " >&6
2992else
2993 if test -n "$ac_ct_CC"; then
2994 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2995else
2996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997for as_dir in $PATH
2998do
2999 IFS=$as_save_IFS
3000 test -z "$as_dir" && as_dir=.
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3003 ac_cv_prog_ac_ct_CC="gcc"
3004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005 break 2
3006 fi
3007done
3008 done
3009IFS=$as_save_IFS
3010
3011fi
3012fi
3013ac_ct_CC=$ac_cv_prog_ac_ct_CC
3014if test -n "$ac_ct_CC"; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3016$as_echo "$ac_ct_CC" >&6; }
3017else
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019$as_echo "no" >&6; }
3020fi
3021
3022 if test "x$ac_ct_CC" = x; then
3023 CC=""
3024 else
3025 case $cross_compiling:$ac_tool_warned in
3026yes:)
3027{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3028$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3029ac_tool_warned=yes ;;
3030esac
3031 CC=$ac_ct_CC
3032 fi
3033else
3034 CC="$ac_cv_prog_CC"
3035fi
3036
3037if test -z "$CC"; then
3038 if test -n "$ac_tool_prefix"; then
3039 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3040set dummy ${ac_tool_prefix}cc; ac_word=$2
3041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3042$as_echo_n "checking for $ac_word... " >&6; }
3043if ${ac_cv_prog_CC+:} false; then :
3044 $as_echo_n "(cached) " >&6
3045else
3046 if test -n "$CC"; then
3047 ac_cv_prog_CC="$CC" # Let the user override the test.
3048else
3049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050for as_dir in $PATH
3051do
3052 IFS=$as_save_IFS
3053 test -z "$as_dir" && as_dir=.
3054 for ac_exec_ext in '' $ac_executable_extensions; do
3055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3056 ac_cv_prog_CC="${ac_tool_prefix}cc"
3057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3058 break 2
3059 fi
3060done
3061 done
3062IFS=$as_save_IFS
3063
3064fi
3065fi
3066CC=$ac_cv_prog_CC
3067if test -n "$CC"; then
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3069$as_echo "$CC" >&6; }
3070else
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072$as_echo "no" >&6; }
3073fi
3074
3075
3076 fi
3077fi
3078if test -z "$CC"; then
3079 # Extract the first word of "cc", so it can be a program name with args.
3080set dummy cc; ac_word=$2
3081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3082$as_echo_n "checking for $ac_word... " >&6; }
3083if ${ac_cv_prog_CC+:} false; then :
3084 $as_echo_n "(cached) " >&6
3085else
3086 if test -n "$CC"; then
3087 ac_cv_prog_CC="$CC" # Let the user override the test.
3088else
3089 ac_prog_rejected=no
3090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091for as_dir in $PATH
3092do
3093 IFS=$as_save_IFS
3094 test -z "$as_dir" && as_dir=.
3095 for ac_exec_ext in '' $ac_executable_extensions; do
3096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3097 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3098 ac_prog_rejected=yes
3099 continue
3100 fi
3101 ac_cv_prog_CC="cc"
3102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103 break 2
3104 fi
3105done
3106 done
3107IFS=$as_save_IFS
3108
3109if test $ac_prog_rejected = yes; then
3110 # We found a bogon in the path, so make sure we never use it.
3111 set dummy $ac_cv_prog_CC
3112 shift
3113 if test $# != 0; then
3114 # We chose a different compiler from the bogus one.
3115 # However, it has the same basename, so the bogon will be chosen
3116 # first if we set CC to just the basename; use the full file name.
3117 shift
3118 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3119 fi
3120fi
3121fi
3122fi
3123CC=$ac_cv_prog_CC
3124if test -n "$CC"; then
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3126$as_echo "$CC" >&6; }
3127else
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3129$as_echo "no" >&6; }
3130fi
3131
3132
3133fi
3134if test -z "$CC"; then
3135 if test -n "$ac_tool_prefix"; then
3136 for ac_prog in cl.exe
3137 do
3138 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3139set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141$as_echo_n "checking for $ac_word... " >&6; }
3142if ${ac_cv_prog_CC+:} false; then :
3143 $as_echo_n "(cached) " >&6
3144else
3145 if test -n "$CC"; then
3146 ac_cv_prog_CC="$CC" # Let the user override the test.
3147else
3148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149for as_dir in $PATH
3150do
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3155 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 break 2
3158 fi
3159done
3160 done
3161IFS=$as_save_IFS
3162
3163fi
3164fi
3165CC=$ac_cv_prog_CC
3166if test -n "$CC"; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3168$as_echo "$CC" >&6; }
3169else
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171$as_echo "no" >&6; }
3172fi
3173
3174
3175 test -n "$CC" && break
3176 done
3177fi
3178if test -z "$CC"; then
3179 ac_ct_CC=$CC
3180 for ac_prog in cl.exe
3181do
3182 # Extract the first word of "$ac_prog", so it can be a program name with args.
3183set dummy $ac_prog; ac_word=$2
3184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3185$as_echo_n "checking for $ac_word... " >&6; }
3186if ${ac_cv_prog_ac_ct_CC+:} false; then :
3187 $as_echo_n "(cached) " >&6
3188else
3189 if test -n "$ac_ct_CC"; then
3190 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3191else
3192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193for as_dir in $PATH
3194do
3195 IFS=$as_save_IFS
3196 test -z "$as_dir" && as_dir=.
3197 for ac_exec_ext in '' $ac_executable_extensions; do
3198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3199 ac_cv_prog_ac_ct_CC="$ac_prog"
3200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3201 break 2
3202 fi
3203done
3204 done
3205IFS=$as_save_IFS
3206
3207fi
3208fi
3209ac_ct_CC=$ac_cv_prog_ac_ct_CC
3210if test -n "$ac_ct_CC"; then
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3212$as_echo "$ac_ct_CC" >&6; }
3213else
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215$as_echo "no" >&6; }
3216fi
3217
3218
3219 test -n "$ac_ct_CC" && break
3220done
3221
3222 if test "x$ac_ct_CC" = x; then
3223 CC=""
3224 else
3225 case $cross_compiling:$ac_tool_warned in
3226yes:)
3227{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3228$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3229ac_tool_warned=yes ;;
3230esac
3231 CC=$ac_ct_CC
3232 fi
3233fi
3234
3235fi
3236
3237
3238test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3239$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3240as_fn_error $? "no acceptable C compiler found in \$PATH
3241See \`config.log' for more details" "$LINENO" 5; }
3242
3243# Provide some information about the compiler.
3244$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3245set X $ac_compile
3246ac_compiler=$2
3247for ac_option in --version -v -V -qversion; do
3248 { { ac_try="$ac_compiler $ac_option >&5"
3249case "(($ac_try" in
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3252esac
3253eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3254$as_echo "$ac_try_echo"; } >&5
3255 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3256 ac_status=$?
3257 if test -s conftest.err; then
3258 sed '10a\
3259... rest of stderr output deleted ...
3260 10q' conftest.err >conftest.er1
3261 cat conftest.er1 >&5
3262 fi
3263 rm -f conftest.er1 conftest.err
3264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3265 test $ac_status = 0; }
3266done
3267
3268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269/* end confdefs.h. */
3270
3271int
3272main ()
3273{
3274
3275 ;
3276 return 0;
3277}
3278_ACEOF
3279ac_clean_files_save=$ac_clean_files
3280ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3281# Try to create an executable without -o first, disregard a.out.
3282# It will help us diagnose broken compilers, and finding out an intuition
3283# of exeext.
3284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3285$as_echo_n "checking whether the C compiler works... " >&6; }
3286ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3287
3288# The possible output files:
3289ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3290
3291ac_rmfiles=
3292for ac_file in $ac_files
3293do
3294 case $ac_file in
3295 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3296 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3297 esac
3298done
3299rm -f $ac_rmfiles
3300
3301if { { ac_try="$ac_link_default"
3302case "(($ac_try" in
3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304 *) ac_try_echo=$ac_try;;
3305esac
3306eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3307$as_echo "$ac_try_echo"; } >&5
3308 (eval "$ac_link_default") 2>&5
3309 ac_status=$?
3310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3311 test $ac_status = 0; }; then :
3312 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3313# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3314# in a Makefile. We should not override ac_cv_exeext if it was cached,
3315# so that the user can short-circuit this test for compilers unknown to
3316# Autoconf.
3317for ac_file in $ac_files ''
3318do
3319 test -f "$ac_file" || continue
3320 case $ac_file in
3321 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3322 ;;
3323 [ab].out )
3324 # We found the default executable, but exeext='' is most
3325 # certainly right.
3326 break;;
3327 *.* )
3328 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3329 then :; else
3330 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3331 fi
3332 # We set ac_cv_exeext here because the later test for it is not
3333 # safe: cross compilers may not add the suffix if given an `-o'
3334 # argument, so we may need to know it at that point already.
3335 # Even if this section looks crufty: it has the advantage of
3336 # actually working.
3337 break;;
3338 * )
3339 break;;
3340 esac
3341done
3342test "$ac_cv_exeext" = no && ac_cv_exeext=
3343
3344else
3345 ac_file=''
3346fi
3347if test -z "$ac_file"; then :
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3349$as_echo "no" >&6; }
3350$as_echo "$as_me: failed program was:" >&5
3351sed 's/^/| /' conftest.$ac_ext >&5
3352
3353{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3354$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3355as_fn_error 77 "C compiler cannot create executables
3356See \`config.log' for more details" "$LINENO" 5; }
3357else
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3359$as_echo "yes" >&6; }
3360fi
3361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3362$as_echo_n "checking for C compiler default output file name... " >&6; }
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3364$as_echo "$ac_file" >&6; }
3365ac_exeext=$ac_cv_exeext
3366
3367rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3368ac_clean_files=$ac_clean_files_save
3369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3370$as_echo_n "checking for suffix of executables... " >&6; }
3371if { { ac_try="$ac_link"
3372case "(($ac_try" in
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3375esac
3376eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3377$as_echo "$ac_try_echo"; } >&5
3378 (eval "$ac_link") 2>&5
3379 ac_status=$?
3380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3381 test $ac_status = 0; }; then :
3382 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3383# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3384# work properly (i.e., refer to `conftest.exe'), while it won't with
3385# `rm'.
3386for ac_file in conftest.exe conftest conftest.*; do
3387 test -f "$ac_file" || continue
3388 case $ac_file in
3389 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3390 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3391 break;;
3392 * ) break;;
3393 esac
3394done
3395else
3396 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3397$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3398as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3399See \`config.log' for more details" "$LINENO" 5; }
3400fi
3401rm -f conftest conftest$ac_cv_exeext
3402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3403$as_echo "$ac_cv_exeext" >&6; }
3404
3405rm -f conftest.$ac_ext
3406EXEEXT=$ac_cv_exeext
3407ac_exeext=$EXEEXT
3408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3409/* end confdefs.h. */
3410#include <stdio.h>
3411int
3412main ()
3413{
3414FILE *f = fopen ("conftest.out", "w");
3415 return ferror (f) || fclose (f) != 0;
3416
3417 ;
3418 return 0;
3419}
3420_ACEOF
3421ac_clean_files="$ac_clean_files conftest.out"
3422# Check that the compiler produces executables we can run. If not, either
3423# the compiler is broken, or we cross compile.
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3425$as_echo_n "checking whether we are cross compiling... " >&6; }
3426if test "$cross_compiling" != yes; then
3427 { { ac_try="$ac_link"
3428case "(($ac_try" in
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3431esac
3432eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3433$as_echo "$ac_try_echo"; } >&5
3434 (eval "$ac_link") 2>&5
3435 ac_status=$?
3436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3437 test $ac_status = 0; }
3438 if { ac_try='./conftest$ac_cv_exeext'
3439 { { case "(($ac_try" in
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3442esac
3443eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3444$as_echo "$ac_try_echo"; } >&5
3445 (eval "$ac_try") 2>&5
3446 ac_status=$?
3447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3448 test $ac_status = 0; }; }; then
3449 cross_compiling=no
3450 else
3451 if test "$cross_compiling" = maybe; then
3452 cross_compiling=yes
3453 else
3454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3455$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3456as_fn_error $? "cannot run C compiled programs.
3457If you meant to cross compile, use \`--host'.
3458See \`config.log' for more details" "$LINENO" 5; }
3459 fi
3460 fi
3461fi
3462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3463$as_echo "$cross_compiling" >&6; }
3464
3465rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3466ac_clean_files=$ac_clean_files_save
3467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3468$as_echo_n "checking for suffix of object files... " >&6; }
3469if ${ac_cv_objext+:} false; then :
3470 $as_echo_n "(cached) " >&6
3471else
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473/* end confdefs.h. */
3474
3475int
3476main ()
3477{
3478
3479 ;
3480 return 0;
3481}
3482_ACEOF
3483rm -f conftest.o conftest.obj
3484if { { ac_try="$ac_compile"
3485case "(($ac_try" in
3486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3487 *) ac_try_echo=$ac_try;;
3488esac
3489eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3490$as_echo "$ac_try_echo"; } >&5
3491 (eval "$ac_compile") 2>&5
3492 ac_status=$?
3493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3494 test $ac_status = 0; }; then :
3495 for ac_file in conftest.o conftest.obj conftest.*; do
3496 test -f "$ac_file" || continue;
3497 case $ac_file in
3498 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3499 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3500 break;;
3501 esac
3502done
3503else
3504 $as_echo "$as_me: failed program was:" >&5
3505sed 's/^/| /' conftest.$ac_ext >&5
3506
3507{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3508$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3509as_fn_error $? "cannot compute suffix of object files: cannot compile
3510See \`config.log' for more details" "$LINENO" 5; }
3511fi
3512rm -f conftest.$ac_cv_objext conftest.$ac_ext
3513fi
3514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3515$as_echo "$ac_cv_objext" >&6; }
3516OBJEXT=$ac_cv_objext
3517ac_objext=$OBJEXT
3518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3519$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3520if ${ac_cv_c_compiler_gnu+:} false; then :
3521 $as_echo_n "(cached) " >&6
3522else
3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524/* end confdefs.h. */
3525
3526int
3527main ()
3528{
3529#ifndef __GNUC__
3530 choke me
3531#endif
3532
3533 ;
3534 return 0;
3535}
3536_ACEOF
3537if ac_fn_c_try_compile "$LINENO"; then :
3538 ac_compiler_gnu=yes
3539else
3540 ac_compiler_gnu=no
3541fi
3542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3543ac_cv_c_compiler_gnu=$ac_compiler_gnu
3544
3545fi
3546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3547$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3548if test $ac_compiler_gnu = yes; then
3549 GCC=yes
3550else
3551 GCC=
3552fi
3553ac_test_CFLAGS=${CFLAGS+set}
3554ac_save_CFLAGS=$CFLAGS
3555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3556$as_echo_n "checking whether $CC accepts -g... " >&6; }
3557if ${ac_cv_prog_cc_g+:} false; then :
3558 $as_echo_n "(cached) " >&6
3559else
3560 ac_save_c_werror_flag=$ac_c_werror_flag
3561 ac_c_werror_flag=yes
3562 ac_cv_prog_cc_g=no
3563 CFLAGS="-g"
3564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565/* end confdefs.h. */
3566
3567int
3568main ()
3569{
3570
3571 ;
3572 return 0;
3573}
3574_ACEOF
3575if ac_fn_c_try_compile "$LINENO"; then :
3576 ac_cv_prog_cc_g=yes
3577else
3578 CFLAGS=""
3579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580/* end confdefs.h. */
3581
3582int
3583main ()
3584{
3585
3586 ;
3587 return 0;
3588}
3589_ACEOF
3590if ac_fn_c_try_compile "$LINENO"; then :
3591
3592else
3593 ac_c_werror_flag=$ac_save_c_werror_flag
3594 CFLAGS="-g"
3595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596/* end confdefs.h. */
3597
3598int
3599main ()
3600{
3601
3602 ;
3603 return 0;
3604}
3605_ACEOF
3606if ac_fn_c_try_compile "$LINENO"; then :
3607 ac_cv_prog_cc_g=yes
3608fi
3609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3610fi
3611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3612fi
3613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3614 ac_c_werror_flag=$ac_save_c_werror_flag
3615fi
3616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3617$as_echo "$ac_cv_prog_cc_g" >&6; }
3618if test "$ac_test_CFLAGS" = set; then
3619 CFLAGS=$ac_save_CFLAGS
3620elif test $ac_cv_prog_cc_g = yes; then
3621 if test "$GCC" = yes; then
3622 CFLAGS="-g -O2"
3623 else
3624 CFLAGS="-g"
3625 fi
3626else
3627 if test "$GCC" = yes; then
3628 CFLAGS="-O2"
3629 else
3630 CFLAGS=
3631 fi
3632fi
3633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3634$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3635if ${ac_cv_prog_cc_c89+:} false; then :
3636 $as_echo_n "(cached) " >&6
3637else
3638 ac_cv_prog_cc_c89=no
3639ac_save_CC=$CC
3640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641/* end confdefs.h. */
3642#include <stdarg.h>
3643#include <stdio.h>
3644struct stat;
3645/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3646struct buf { int x; };
3647FILE * (*rcsopen) (struct buf *, struct stat *, int);
3648static char *e (p, i)
3649 char **p;
3650 int i;
3651{
3652 return p[i];
3653}
3654static char *f (char * (*g) (char **, int), char **p, ...)
3655{
3656 char *s;
3657 va_list v;
3658 va_start (v,p);
3659 s = g (p, va_arg (v,int));
3660 va_end (v);
3661 return s;
3662}
3663
3664/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3665 function prototypes and stuff, but not '\xHH' hex character constants.
3666 These don't provoke an error unfortunately, instead are silently treated
3667 as 'x'. The following induces an error, until -std is added to get
3668 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3669 array size at least. It's necessary to write '\x00'==0 to get something
3670 that's true only with -std. */
3671int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3672
3673/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3674 inside strings and character constants. */
3675#define FOO(x) 'x'
3676int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3677
3678int test (int i, double x);
3679struct s1 {int (*f) (int a);};
3680struct s2 {int (*f) (double a);};
3681int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3682int argc;
3683char **argv;
3684int
3685main ()
3686{
3687return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3688 ;
3689 return 0;
3690}
3691_ACEOF
3692for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3693 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3694do
3695 CC="$ac_save_CC $ac_arg"
3696 if ac_fn_c_try_compile "$LINENO"; then :
3697 ac_cv_prog_cc_c89=$ac_arg
3698fi
3699rm -f core conftest.err conftest.$ac_objext
3700 test "x$ac_cv_prog_cc_c89" != "xno" && break
3701done
3702rm -f conftest.$ac_ext
3703CC=$ac_save_CC
3704
3705fi
3706# AC_CACHE_VAL
3707case "x$ac_cv_prog_cc_c89" in
3708 x)
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3710$as_echo "none needed" >&6; } ;;
3711 xno)
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3713$as_echo "unsupported" >&6; } ;;
3714 *)
3715 CC="$CC $ac_cv_prog_cc_c89"
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3717$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3718esac
3719if test "x$ac_cv_prog_cc_c89" != xno; then :
3720
3721fi
3722
3723ac_ext=c
3724ac_cpp='$CPP $CPPFLAGS'
3725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3727ac_compiler_gnu=$ac_cv_c_compiler_gnu
3728
3729ac_ext=c
3730ac_cpp='$CPP $CPPFLAGS'
3731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3733ac_compiler_gnu=$ac_cv_c_compiler_gnu
3734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3735$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3736if ${am_cv_prog_cc_c_o+:} false; then :
3737 $as_echo_n "(cached) " >&6
3738else
3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740/* end confdefs.h. */
3741
3742int
3743main ()
3744{
3745
3746 ;
3747 return 0;
3748}
3749_ACEOF
3750 # Make sure it works both with $CC and with simple cc.
3751 # Following AC_PROG_CC_C_O, we do the test twice because some
3752 # compilers refuse to overwrite an existing .o file with -o,
3753 # though they will create one.
3754 am_cv_prog_cc_c_o=yes
3755 for am_i in 1 2; do
3756 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3757 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3758 ac_status=$?
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); } \
3761 && test -f conftest2.$ac_objext; then
3762 : OK
3763 else
3764 am_cv_prog_cc_c_o=no
3765 break
3766 fi
3767 done
3768 rm -f core conftest*
3769 unset am_i
3770fi
3771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3772$as_echo "$am_cv_prog_cc_c_o" >&6; }
3773if test "$am_cv_prog_cc_c_o" != yes; then
3774 # Losing compiler, so override with the script.
3775 # FIXME: It is wrong to rewrite CC.
3776 # But if we don't then we get into trouble of one sort or another.
3777 # A longer-term fix would be to have automake use am__CC in this case,
3778 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3779 CC="$am_aux_dir/compile $CC"
3780fi
3781ac_ext=c
3782ac_cpp='$CPP $CPPFLAGS'
3783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3785ac_compiler_gnu=$ac_cv_c_compiler_gnu
3786
3787DEPDIR="${am__leading_dot}deps"
3788
3789ac_config_commands="$ac_config_commands depfiles"
3790
3791
3792am_make=${MAKE-make}
3793cat > confinc << 'END'
3794am__doit:
3795 @echo this is the am__doit target
3796.PHONY: am__doit
3797END
3798# If we don't find an include directive, just comment out the code.
3799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3800$as_echo_n "checking for style of include used by $am_make... " >&6; }
3801am__include="#"
3802am__quote=
3803_am_result=none
3804# First try GNU make style include.
3805echo "include confinc" > confmf
3806# Ignore all kinds of additional output from 'make'.
3807case `$am_make -s -f confmf 2> /dev/null` in #(
3808*the\ am__doit\ target*)
3809 am__include=include
3810 am__quote=
3811 _am_result=GNU
3812 ;;
3813esac
3814# Now try BSD make style include.
3815if test "$am__include" = "#"; then
3816 echo '.include "confinc"' > confmf
3817 case `$am_make -s -f confmf 2> /dev/null` in #(
3818 *the\ am__doit\ target*)
3819 am__include=.include
3820 am__quote="\""
3821 _am_result=BSD
3822 ;;
3823 esac
3824fi
3825
3826
3827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3828$as_echo "$_am_result" >&6; }
3829rm -f confinc confmf
3830
3831# Check whether --enable-dependency-tracking was given.
3832if test "${enable_dependency_tracking+set}" = set; then :
3833 enableval=$enable_dependency_tracking;
3834fi
3835
3836if test "x$enable_dependency_tracking" != xno; then
3837 am_depcomp="$ac_aux_dir/depcomp"
3838 AMDEPBACKSLASH='\'
3839 am__nodep='_no'
3840fi
3841 if test "x$enable_dependency_tracking" != xno; then
3842 AMDEP_TRUE=
3843 AMDEP_FALSE='#'
3844else
3845 AMDEP_TRUE='#'
3846 AMDEP_FALSE=
3847fi
3848
3849
3850
3851depcc="$CC" am_compiler_list=
3852
3853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3854$as_echo_n "checking dependency style of $depcc... " >&6; }
3855if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3856 $as_echo_n "(cached) " >&6
3857else
3858 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3859 # We make a subdir and do the tests there. Otherwise we can end up
3860 # making bogus files that we don't know about and never remove. For
3861 # instance it was reported that on HP-UX the gcc test will end up
3862 # making a dummy file named 'D' -- because '-MD' means "put the output
3863 # in D".
3864 rm -rf conftest.dir
3865 mkdir conftest.dir
3866 # Copy depcomp to subdir because otherwise we won't find it if we're
3867 # using a relative directory.
3868 cp "$am_depcomp" conftest.dir
3869 cd conftest.dir
3870 # We will build objects and dependencies in a subdirectory because
3871 # it helps to detect inapplicable dependency modes. For instance
3872 # both Tru64's cc and ICC support -MD to output dependencies as a
3873 # side effect of compilation, but ICC will put the dependencies in
3874 # the current directory while Tru64 will put them in the object
3875 # directory.
3876 mkdir sub
3877
3878 am_cv_CC_dependencies_compiler_type=none
3879 if test "$am_compiler_list" = ""; then
3880 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3881 fi
3882 am__universal=false
3883 case " $depcc " in #(
3884 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3885 esac
3886
3887 for depmode in $am_compiler_list; do
3888 # Setup a source with many dependencies, because some compilers
3889 # like to wrap large dependency lists on column 80 (with \), and
3890 # we should not choose a depcomp mode which is confused by this.
3891 #
3892 # We need to recreate these files for each test, as the compiler may
3893 # overwrite some of them when testing with obscure command lines.
3894 # This happens at least with the AIX C compiler.
3895 : > sub/conftest.c
3896 for i in 1 2 3 4 5 6; do
3897 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3898 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3899 # Solaris 10 /bin/sh.
3900 echo '/* dummy */' > sub/conftst$i.h
3901 done
3902 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3903
3904 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3905 # mode. It turns out that the SunPro C++ compiler does not properly
3906 # handle '-M -o', and we need to detect this. Also, some Intel
3907 # versions had trouble with output in subdirs.
3908 am__obj=sub/conftest.${OBJEXT-o}
3909 am__minus_obj="-o $am__obj"
3910 case $depmode in
3911 gcc)
3912 # This depmode causes a compiler race in universal mode.
3913 test "$am__universal" = false || continue
3914 ;;
3915 nosideeffect)
3916 # After this tag, mechanisms are not by side-effect, so they'll
3917 # only be used when explicitly requested.
3918 if test "x$enable_dependency_tracking" = xyes; then
3919 continue
3920 else
3921 break
3922 fi
3923 ;;
3924 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3925 # This compiler won't grok '-c -o', but also, the minuso test has
3926 # not run yet. These depmodes are late enough in the game, and
3927 # so weak that their functioning should not be impacted.
3928 am__obj=conftest.${OBJEXT-o}
3929 am__minus_obj=
3930 ;;
3931 none) break ;;
3932 esac
3933 if depmode=$depmode \
3934 source=sub/conftest.c object=$am__obj \
3935 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3936 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3937 >/dev/null 2>conftest.err &&
3938 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3939 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3940 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3941 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3942 # icc doesn't choke on unknown options, it will just issue warnings
3943 # or remarks (even with -Werror). So we grep stderr for any message
3944 # that says an option was ignored or not supported.
3945 # When given -MP, icc 7.0 and 7.1 complain thusly:
3946 # icc: Command line warning: ignoring option '-M'; no argument required
3947 # The diagnosis changed in icc 8.0:
3948 # icc: Command line remark: option '-MP' not supported
3949 if (grep 'ignoring option' conftest.err ||
3950 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3951 am_cv_CC_dependencies_compiler_type=$depmode
3952 break
3953 fi
3954 fi
3955 done
3956
3957 cd ..
3958 rm -rf conftest.dir
3959else
3960 am_cv_CC_dependencies_compiler_type=none
3961fi
3962
3963fi
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3965$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3966CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3967
3968 if
3969 test "x$enable_dependency_tracking" != xno \
3970 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3971 am__fastdepCC_TRUE=
3972 am__fastdepCC_FALSE='#'
3973else
3974 am__fastdepCC_TRUE='#'
3975 am__fastdepCC_FALSE=
3976fi
3977
3978
3979# Make sure we can run config.sub.
3980$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3981 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3982
3983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3984$as_echo_n "checking build system type... " >&6; }
3985if ${ac_cv_build+:} false; then :
3986 $as_echo_n "(cached) " >&6
3987else
3988 ac_build_alias=$build_alias
3989test "x$ac_build_alias" = x &&
3990 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3991test "x$ac_build_alias" = x &&
3992 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3993ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3994 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3995
3996fi
3997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3998$as_echo "$ac_cv_build" >&6; }
3999case $ac_cv_build in
4000*-*-*) ;;
4001*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4002esac
4003build=$ac_cv_build
4004ac_save_IFS=$IFS; IFS='-'
4005set x $ac_cv_build
4006shift
4007build_cpu=$1
4008build_vendor=$2
4009shift; shift
4010# Remember, the first character of IFS is used to create $*,
4011# except with old shells:
4012build_os=$*
4013IFS=$ac_save_IFS
4014case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4015
4016
4017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4018$as_echo_n "checking host system type... " >&6; }
4019if ${ac_cv_host+:} false; then :
4020 $as_echo_n "(cached) " >&6
4021else
4022 if test "x$host_alias" = x; then
4023 ac_cv_host=$ac_cv_build
4024else
4025 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4026 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4027fi
4028
4029fi
4030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4031$as_echo "$ac_cv_host" >&6; }
4032case $ac_cv_host in
4033*-*-*) ;;
4034*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4035esac
4036host=$ac_cv_host
4037ac_save_IFS=$IFS; IFS='-'
4038set x $ac_cv_host
4039shift
4040host_cpu=$1
4041host_vendor=$2
4042shift; shift
4043# Remember, the first character of IFS is used to create $*,
4044# except with old shells:
4045host_os=$*
4046IFS=$ac_save_IFS
4047case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4048
4049
4050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4051$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4052if ${ac_cv_path_SED+:} false; then :
4053 $as_echo_n "(cached) " >&6
4054else
4055 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4056 for ac_i in 1 2 3 4 5 6 7; do
4057 ac_script="$ac_script$as_nl$ac_script"
4058 done
4059 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4060 { ac_script=; unset ac_script;}
4061 if test -z "$SED"; then
4062 ac_path_SED_found=false
4063 # Loop through the user's path and test for each of PROGNAME-LIST
4064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4065for as_dir in $PATH
4066do
4067 IFS=$as_save_IFS
4068 test -z "$as_dir" && as_dir=.
4069 for ac_prog in sed gsed; do
4070 for ac_exec_ext in '' $ac_executable_extensions; do
4071 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4072 as_fn_executable_p "$ac_path_SED" || continue
4073# Check for GNU ac_path_SED and select it if it is found.
4074 # Check for GNU $ac_path_SED
4075case `"$ac_path_SED" --version 2>&1` in
4076*GNU*)
4077 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4078*)
4079 ac_count=0
4080 $as_echo_n 0123456789 >"conftest.in"
4081 while :
4082 do
4083 cat "conftest.in" "conftest.in" >"conftest.tmp"
4084 mv "conftest.tmp" "conftest.in"
4085 cp "conftest.in" "conftest.nl"
4086 $as_echo '' >> "conftest.nl"
4087 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4088 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4089 as_fn_arith $ac_count + 1 && ac_count=$as_val
4090 if test $ac_count -gt ${ac_path_SED_max-0}; then
4091 # Best one so far, save it but keep looking for a better one
4092 ac_cv_path_SED="$ac_path_SED"
4093 ac_path_SED_max=$ac_count
4094 fi
4095 # 10*(2^10) chars as input seems more than enough
4096 test $ac_count -gt 10 && break
4097 done
4098 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4099esac
4100
4101 $ac_path_SED_found && break 3
4102 done
4103 done
4104 done
4105IFS=$as_save_IFS
4106 if test -z "$ac_cv_path_SED"; then
4107 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4108 fi
4109else
4110 ac_cv_path_SED=$SED
4111fi
4112
4113fi
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4115$as_echo "$ac_cv_path_SED" >&6; }
4116 SED="$ac_cv_path_SED"
4117 rm -f conftest.sed
4118
4119test -z "$SED" && SED=sed
4120Xsed="$SED -e 1s/^X//"
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4133$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4134if ${ac_cv_path_GREP+:} false; then :
4135 $as_echo_n "(cached) " >&6
4136else
4137 if test -z "$GREP"; then
4138 ac_path_GREP_found=false
4139 # Loop through the user's path and test for each of PROGNAME-LIST
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4142do
4143 IFS=$as_save_IFS
4144 test -z "$as_dir" && as_dir=.
4145 for ac_prog in grep ggrep; do
4146 for ac_exec_ext in '' $ac_executable_extensions; do
4147 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4148 as_fn_executable_p "$ac_path_GREP" || continue
4149# Check for GNU ac_path_GREP and select it if it is found.
4150 # Check for GNU $ac_path_GREP
4151case `"$ac_path_GREP" --version 2>&1` in
4152*GNU*)
4153 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4154*)
4155 ac_count=0
4156 $as_echo_n 0123456789 >"conftest.in"
4157 while :
4158 do
4159 cat "conftest.in" "conftest.in" >"conftest.tmp"
4160 mv "conftest.tmp" "conftest.in"
4161 cp "conftest.in" "conftest.nl"
4162 $as_echo 'GREP' >> "conftest.nl"
4163 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4164 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4165 as_fn_arith $ac_count + 1 && ac_count=$as_val
4166 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4167 # Best one so far, save it but keep looking for a better one
4168 ac_cv_path_GREP="$ac_path_GREP"
4169 ac_path_GREP_max=$ac_count
4170 fi
4171 # 10*(2^10) chars as input seems more than enough
4172 test $ac_count -gt 10 && break
4173 done
4174 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4175esac
4176
4177 $ac_path_GREP_found && break 3
4178 done
4179 done
4180 done
4181IFS=$as_save_IFS
4182 if test -z "$ac_cv_path_GREP"; then
4183 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4184 fi
4185else
4186 ac_cv_path_GREP=$GREP
4187fi
4188
4189fi
4190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4191$as_echo "$ac_cv_path_GREP" >&6; }
4192 GREP="$ac_cv_path_GREP"
4193
4194
4195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4196$as_echo_n "checking for egrep... " >&6; }
4197if ${ac_cv_path_EGREP+:} false; then :
4198 $as_echo_n "(cached) " >&6
4199else
4200 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4201 then ac_cv_path_EGREP="$GREP -E"
4202 else
4203 if test -z "$EGREP"; then
4204 ac_path_EGREP_found=false
4205 # Loop through the user's path and test for each of PROGNAME-LIST
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4208do
4209 IFS=$as_save_IFS
4210 test -z "$as_dir" && as_dir=.
4211 for ac_prog in egrep; do
4212 for ac_exec_ext in '' $ac_executable_extensions; do
4213 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4214 as_fn_executable_p "$ac_path_EGREP" || continue
4215# Check for GNU ac_path_EGREP and select it if it is found.
4216 # Check for GNU $ac_path_EGREP
4217case `"$ac_path_EGREP" --version 2>&1` in
4218*GNU*)
4219 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4220*)
4221 ac_count=0
4222 $as_echo_n 0123456789 >"conftest.in"
4223 while :
4224 do
4225 cat "conftest.in" "conftest.in" >"conftest.tmp"
4226 mv "conftest.tmp" "conftest.in"
4227 cp "conftest.in" "conftest.nl"
4228 $as_echo 'EGREP' >> "conftest.nl"
4229 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4230 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4231 as_fn_arith $ac_count + 1 && ac_count=$as_val
4232 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4233 # Best one so far, save it but keep looking for a better one
4234 ac_cv_path_EGREP="$ac_path_EGREP"
4235 ac_path_EGREP_max=$ac_count
4236 fi
4237 # 10*(2^10) chars as input seems more than enough
4238 test $ac_count -gt 10 && break
4239 done
4240 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4241esac
4242
4243 $ac_path_EGREP_found && break 3
4244 done
4245 done
4246 done
4247IFS=$as_save_IFS
4248 if test -z "$ac_cv_path_EGREP"; then
4249 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4250 fi
4251else
4252 ac_cv_path_EGREP=$EGREP
4253fi
4254
4255 fi
4256fi
4257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4258$as_echo "$ac_cv_path_EGREP" >&6; }
4259 EGREP="$ac_cv_path_EGREP"
4260
4261
4262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4263$as_echo_n "checking for fgrep... " >&6; }
4264if ${ac_cv_path_FGREP+:} false; then :
4265 $as_echo_n "(cached) " >&6
4266else
4267 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4268 then ac_cv_path_FGREP="$GREP -F"
4269 else
4270 if test -z "$FGREP"; then
4271 ac_path_FGREP_found=false
4272 # Loop through the user's path and test for each of PROGNAME-LIST
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4275do
4276 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
4278 for ac_prog in fgrep; do
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4281 as_fn_executable_p "$ac_path_FGREP" || continue
4282# Check for GNU ac_path_FGREP and select it if it is found.
4283 # Check for GNU $ac_path_FGREP
4284case `"$ac_path_FGREP" --version 2>&1` in
4285*GNU*)
4286 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4287*)
4288 ac_count=0
4289 $as_echo_n 0123456789 >"conftest.in"
4290 while :
4291 do
4292 cat "conftest.in" "conftest.in" >"conftest.tmp"
4293 mv "conftest.tmp" "conftest.in"
4294 cp "conftest.in" "conftest.nl"
4295 $as_echo 'FGREP' >> "conftest.nl"
4296 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4297 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4298 as_fn_arith $ac_count + 1 && ac_count=$as_val
4299 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4300 # Best one so far, save it but keep looking for a better one
4301 ac_cv_path_FGREP="$ac_path_FGREP"
4302 ac_path_FGREP_max=$ac_count
4303 fi
4304 # 10*(2^10) chars as input seems more than enough
4305 test $ac_count -gt 10 && break
4306 done
4307 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4308esac
4309
4310 $ac_path_FGREP_found && break 3
4311 done
4312 done
4313 done
4314IFS=$as_save_IFS
4315 if test -z "$ac_cv_path_FGREP"; then
4316 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4317 fi
4318else
4319 ac_cv_path_FGREP=$FGREP
4320fi
4321
4322 fi
4323fi
4324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4325$as_echo "$ac_cv_path_FGREP" >&6; }
4326 FGREP="$ac_cv_path_FGREP"
4327
4328
4329test -z "$GREP" && GREP=grep
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4348ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4349ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4350
4351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4352$as_echo_n "checking how to print strings... " >&6; }
4353# Test print first, because it will be a builtin if present.
4354if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4355 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4356 ECHO='print -r --'
4357elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4358 ECHO='printf %s\n'
4359else
4360 # Use this function as a fallback that always works.
4361 func_fallback_echo ()
4362 {
4363 eval 'cat <<_LTECHO_EOF
4364$1
4365_LTECHO_EOF'
4366 }
4367 ECHO='func_fallback_echo'
4368fi
4369
4370# func_echo_all arg...
4371# Invoke $ECHO with all args, space-separated.
4372func_echo_all ()
4373{
4374 $ECHO ""
4375}
4376
4377case $ECHO in
4378 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4379$as_echo "printf" >&6; } ;;
4380 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4381$as_echo "print -r" >&6; } ;;
4382 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4383$as_echo "cat" >&6; } ;;
4384esac
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401# Check whether --with-gnu-ld was given.
4402if test "${with_gnu_ld+set}" = set; then :
4403 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4404else
4405 with_gnu_ld=no
4406fi
4407
4408ac_prog=ld
4409if test yes = "$GCC"; then
4410 # Check if gcc -print-prog-name=ld gives a path.
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4412$as_echo_n "checking for ld used by $CC... " >&6; }
4413 case $host in
4414 *-*-mingw*)
4415 # gcc leaves a trailing carriage return, which upsets mingw
4416 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4417 *)
4418 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4419 esac
4420 case $ac_prog in
4421 # Accept absolute paths.
4422 [\\/]* | ?:[\\/]*)
4423 re_direlt='/[^/][^/]*/\.\./'
4424 # Canonicalize the pathname of ld
4425 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4426 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4427 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4428 done
4429 test -z "$LD" && LD=$ac_prog
4430 ;;
4431 "")
4432 # If it fails, then pretend we aren't using GCC.
4433 ac_prog=ld
4434 ;;
4435 *)
4436 # If it is relative, then search for the first ld in PATH.
4437 with_gnu_ld=unknown
4438 ;;
4439 esac
4440elif test yes = "$with_gnu_ld"; then
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4442$as_echo_n "checking for GNU ld... " >&6; }
4443else
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4445$as_echo_n "checking for non-GNU ld... " >&6; }
4446fi
4447if ${lt_cv_path_LD+:} false; then :
4448 $as_echo_n "(cached) " >&6
4449else
4450 if test -z "$LD"; then
4451 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4452 for ac_dir in $PATH; do
4453 IFS=$lt_save_ifs
4454 test -z "$ac_dir" && ac_dir=.
4455 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4456 lt_cv_path_LD=$ac_dir/$ac_prog
4457 # Check to see if the program is GNU ld. I'd rather use --version,
4458 # but apparently some variants of GNU ld only accept -v.
4459 # Break only if it was the GNU/non-GNU ld that we prefer.
4460 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4461 *GNU* | *'with BFD'*)
4462 test no != "$with_gnu_ld" && break
4463 ;;
4464 *)
4465 test yes != "$with_gnu_ld" && break
4466 ;;
4467 esac
4468 fi
4469 done
4470 IFS=$lt_save_ifs
4471else
4472 lt_cv_path_LD=$LD # Let the user override the test with a path.
4473fi
4474fi
4475
4476LD=$lt_cv_path_LD
4477if test -n "$LD"; then
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4479$as_echo "$LD" >&6; }
4480else
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4482$as_echo "no" >&6; }
4483fi
4484test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4486$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4487if ${lt_cv_prog_gnu_ld+:} false; then :
4488 $as_echo_n "(cached) " >&6
4489else
4490 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4491case `$LD -v 2>&1 </dev/null` in
4492*GNU* | *'with BFD'*)
4493 lt_cv_prog_gnu_ld=yes
4494 ;;
4495*)
4496 lt_cv_prog_gnu_ld=no
4497 ;;
4498esac
4499fi
4500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4501$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4502with_gnu_ld=$lt_cv_prog_gnu_ld
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512ac_ext=c
4513ac_cpp='$CPP $CPPFLAGS'
4514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4516ac_compiler_gnu=$ac_cv_c_compiler_gnu
4517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4518$as_echo_n "checking how to run the C preprocessor... " >&6; }
4519# On Suns, sometimes $CPP names a directory.
4520if test -n "$CPP" && test -d "$CPP"; then
4521 CPP=
4522fi
4523if test -z "$CPP"; then
4524 if ${ac_cv_prog_CPP+:} false; then :
4525 $as_echo_n "(cached) " >&6
4526else
4527 # Double quotes because CPP needs to be expanded
4528 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4529 do
4530 ac_preproc_ok=false
4531for ac_c_preproc_warn_flag in '' yes
4532do
4533 # Use a header file that comes with gcc, so configuring glibc
4534 # with a fresh cross-compiler works.
4535 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4536 # <limits.h> exists even on freestanding compilers.
4537 # On the NeXT, cc -E runs the code through the compiler's parser,
4538 # not just through cpp. "Syntax error" is here to catch this case.
4539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4540/* end confdefs.h. */
4541#ifdef __STDC__
4542# include <limits.h>
4543#else
4544# include <assert.h>
4545#endif
4546 Syntax error
4547_ACEOF
4548if ac_fn_c_try_cpp "$LINENO"; then :
4549
4550else
4551 # Broken: fails on valid input.
4552continue
4553fi
4554rm -f conftest.err conftest.i conftest.$ac_ext
4555
4556 # OK, works on sane cases. Now check whether nonexistent headers
4557 # can be detected and how.
4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559/* end confdefs.h. */
4560#include <ac_nonexistent.h>
4561_ACEOF
4562if ac_fn_c_try_cpp "$LINENO"; then :
4563 # Broken: success on invalid input.
4564continue
4565else
4566 # Passes both tests.
4567ac_preproc_ok=:
4568break
4569fi
4570rm -f conftest.err conftest.i conftest.$ac_ext
4571
4572done
4573# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4574rm -f conftest.i conftest.err conftest.$ac_ext
4575if $ac_preproc_ok; then :
4576 break
4577fi
4578
4579 done
4580 ac_cv_prog_CPP=$CPP
4581
4582fi
4583 CPP=$ac_cv_prog_CPP
4584else
4585 ac_cv_prog_CPP=$CPP
4586fi
4587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4588$as_echo "$CPP" >&6; }
4589ac_preproc_ok=false
4590for ac_c_preproc_warn_flag in '' yes
4591do
4592 # Use a header file that comes with gcc, so configuring glibc
4593 # with a fresh cross-compiler works.
4594 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4595 # <limits.h> exists even on freestanding compilers.
4596 # On the NeXT, cc -E runs the code through the compiler's parser,
4597 # not just through cpp. "Syntax error" is here to catch this case.
4598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4599/* end confdefs.h. */
4600#ifdef __STDC__
4601# include <limits.h>
4602#else
4603# include <assert.h>
4604#endif
4605 Syntax error
4606_ACEOF
4607if ac_fn_c_try_cpp "$LINENO"; then :
4608
4609else
4610 # Broken: fails on valid input.
4611continue
4612fi
4613rm -f conftest.err conftest.i conftest.$ac_ext
4614
4615 # OK, works on sane cases. Now check whether nonexistent headers
4616 # can be detected and how.
4617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618/* end confdefs.h. */
4619#include <ac_nonexistent.h>
4620_ACEOF
4621if ac_fn_c_try_cpp "$LINENO"; then :
4622 # Broken: success on invalid input.
4623continue
4624else
4625 # Passes both tests.
4626ac_preproc_ok=:
4627break
4628fi
4629rm -f conftest.err conftest.i conftest.$ac_ext
4630
4631done
4632# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4633rm -f conftest.i conftest.err conftest.$ac_ext
4634if $ac_preproc_ok; then :
4635
4636else
4637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4638$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4639as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4640See \`config.log' for more details" "$LINENO" 5; }
4641fi
4642
4643ac_ext=c
4644ac_cpp='$CPP $CPPFLAGS'
4645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4647ac_compiler_gnu=$ac_cv_c_compiler_gnu
4648
4649if test -n "$ac_tool_prefix"; then
4650 # Extract the first word of "${ac_tool_prefix}sed", so it can be a program name with args.
4651set dummy ${ac_tool_prefix}sed; ac_word=$2
4652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4653$as_echo_n "checking for $ac_word... " >&6; }
4654if ${ac_cv_prog_SED+:} false; then :
4655 $as_echo_n "(cached) " >&6
4656else
4657 if test -n "$SED"; then
4658 ac_cv_prog_SED="$SED" # Let the user override the test.
4659else
4660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661for as_dir in $PATH
4662do
4663 IFS=$as_save_IFS
4664 test -z "$as_dir" && as_dir=.
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4667 ac_cv_prog_SED="${ac_tool_prefix}sed"
4668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4669 break 2
4670 fi
4671done
4672 done
4673IFS=$as_save_IFS
4674
4675fi
4676fi
4677SED=$ac_cv_prog_SED
4678if test -n "$SED"; then
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4680$as_echo "$SED" >&6; }
4681else
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4683$as_echo "no" >&6; }
4684fi
4685
4686
4687fi
4688if test -z "$ac_cv_prog_SED"; then
4689 ac_ct_SED=$SED
4690 # Extract the first word of "sed", so it can be a program name with args.
4691set dummy sed; ac_word=$2
4692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4693$as_echo_n "checking for $ac_word... " >&6; }
4694if ${ac_cv_prog_ac_ct_SED+:} false; then :
4695 $as_echo_n "(cached) " >&6
4696else
4697 if test -n "$ac_ct_SED"; then
4698 ac_cv_prog_ac_ct_SED="$ac_ct_SED" # Let the user override the test.
4699else
4700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701for as_dir in $PATH
4702do
4703 IFS=$as_save_IFS
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4707 ac_cv_prog_ac_ct_SED="sed"
4708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4709 break 2
4710 fi
4711done
4712 done
4713IFS=$as_save_IFS
4714
4715fi
4716fi
4717ac_ct_SED=$ac_cv_prog_ac_ct_SED
4718if test -n "$ac_ct_SED"; then
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_SED" >&5
4720$as_echo "$ac_ct_SED" >&6; }
4721else
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4723$as_echo "no" >&6; }
4724fi
4725
4726 if test "x$ac_ct_SED" = x; then
4727 SED=":"
4728 else
4729 case $cross_compiling:$ac_tool_warned in
4730yes:)
4731{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4732$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4733ac_tool_warned=yes ;;
4734esac
4735 SED=$ac_ct_SED
4736 fi
4737else
4738 SED="$ac_cv_prog_SED"
4739fi
4740
4741enable_win32_dll=yes
4742
4743case $host in
4744*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4745 if test -n "$ac_tool_prefix"; then
4746 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4747set dummy ${ac_tool_prefix}as; ac_word=$2
4748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4749$as_echo_n "checking for $ac_word... " >&6; }
4750if ${ac_cv_prog_AS+:} false; then :
4751 $as_echo_n "(cached) " >&6
4752else
4753 if test -n "$AS"; then
4754 ac_cv_prog_AS="$AS" # Let the user override the test.
4755else
4756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757for as_dir in $PATH
4758do
4759 IFS=$as_save_IFS
4760 test -z "$as_dir" && as_dir=.
4761 for ac_exec_ext in '' $ac_executable_extensions; do
4762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4763 ac_cv_prog_AS="${ac_tool_prefix}as"
4764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4765 break 2
4766 fi
4767done
4768 done
4769IFS=$as_save_IFS
4770
4771fi
4772fi
4773AS=$ac_cv_prog_AS
4774if test -n "$AS"; then
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4776$as_echo "$AS" >&6; }
4777else
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4779$as_echo "no" >&6; }
4780fi
4781
4782
4783fi
4784if test -z "$ac_cv_prog_AS"; then
4785 ac_ct_AS=$AS
4786 # Extract the first word of "as", so it can be a program name with args.
4787set dummy as; ac_word=$2
4788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4789$as_echo_n "checking for $ac_word... " >&6; }
4790if ${ac_cv_prog_ac_ct_AS+:} false; then :
4791 $as_echo_n "(cached) " >&6
4792else
4793 if test -n "$ac_ct_AS"; then
4794 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4795else
4796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797for as_dir in $PATH
4798do
4799 IFS=$as_save_IFS
4800 test -z "$as_dir" && as_dir=.
4801 for ac_exec_ext in '' $ac_executable_extensions; do
4802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4803 ac_cv_prog_ac_ct_AS="as"
4804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4805 break 2
4806 fi
4807done
4808 done
4809IFS=$as_save_IFS
4810
4811fi
4812fi
4813ac_ct_AS=$ac_cv_prog_ac_ct_AS
4814if test -n "$ac_ct_AS"; then
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4816$as_echo "$ac_ct_AS" >&6; }
4817else
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4819$as_echo "no" >&6; }
4820fi
4821
4822 if test "x$ac_ct_AS" = x; then
4823 AS="false"
4824 else
4825 case $cross_compiling:$ac_tool_warned in
4826yes:)
4827{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4828$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4829ac_tool_warned=yes ;;
4830esac
4831 AS=$ac_ct_AS
4832 fi
4833else
4834 AS="$ac_cv_prog_AS"
4835fi
4836
4837 if test -n "$ac_tool_prefix"; then
4838 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4839set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4841$as_echo_n "checking for $ac_word... " >&6; }
4842if ${ac_cv_prog_DLLTOOL+:} false; then :
4843 $as_echo_n "(cached) " >&6
4844else
4845 if test -n "$DLLTOOL"; then
4846 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4847else
4848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4849for as_dir in $PATH
4850do
4851 IFS=$as_save_IFS
4852 test -z "$as_dir" && as_dir=.
4853 for ac_exec_ext in '' $ac_executable_extensions; do
4854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4855 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4857 break 2
4858 fi
4859done
4860 done
4861IFS=$as_save_IFS
4862
4863fi
4864fi
4865DLLTOOL=$ac_cv_prog_DLLTOOL
4866if test -n "$DLLTOOL"; then
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4868$as_echo "$DLLTOOL" >&6; }
4869else
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4871$as_echo "no" >&6; }
4872fi
4873
4874
4875fi
4876if test -z "$ac_cv_prog_DLLTOOL"; then
4877 ac_ct_DLLTOOL=$DLLTOOL
4878 # Extract the first word of "dlltool", so it can be a program name with args.
4879set dummy dlltool; ac_word=$2
4880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4881$as_echo_n "checking for $ac_word... " >&6; }
4882if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4883 $as_echo_n "(cached) " >&6
4884else
4885 if test -n "$ac_ct_DLLTOOL"; then
4886 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4887else
4888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889for as_dir in $PATH
4890do
4891 IFS=$as_save_IFS
4892 test -z "$as_dir" && as_dir=.
4893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4895 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4897 break 2
4898 fi
4899done
4900 done
4901IFS=$as_save_IFS
4902
4903fi
4904fi
4905ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4906if test -n "$ac_ct_DLLTOOL"; then
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4908$as_echo "$ac_ct_DLLTOOL" >&6; }
4909else
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4911$as_echo "no" >&6; }
4912fi
4913
4914 if test "x$ac_ct_DLLTOOL" = x; then
4915 DLLTOOL="false"
4916 else
4917 case $cross_compiling:$ac_tool_warned in
4918yes:)
4919{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4920$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4921ac_tool_warned=yes ;;
4922esac
4923 DLLTOOL=$ac_ct_DLLTOOL
4924 fi
4925else
4926 DLLTOOL="$ac_cv_prog_DLLTOOL"
4927fi
4928
4929 if test -n "$ac_tool_prefix"; then
4930 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4931set dummy ${ac_tool_prefix}objdump; ac_word=$2
4932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4933$as_echo_n "checking for $ac_word... " >&6; }
4934if ${ac_cv_prog_OBJDUMP+:} false; then :
4935 $as_echo_n "(cached) " >&6
4936else
4937 if test -n "$OBJDUMP"; then
4938 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4939else
4940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941for as_dir in $PATH
4942do
4943 IFS=$as_save_IFS
4944 test -z "$as_dir" && as_dir=.
4945 for ac_exec_ext in '' $ac_executable_extensions; do
4946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4947 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4949 break 2
4950 fi
4951done
4952 done
4953IFS=$as_save_IFS
4954
4955fi
4956fi
4957OBJDUMP=$ac_cv_prog_OBJDUMP
4958if test -n "$OBJDUMP"; then
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4960$as_echo "$OBJDUMP" >&6; }
4961else
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4963$as_echo "no" >&6; }
4964fi
4965
4966
4967fi
4968if test -z "$ac_cv_prog_OBJDUMP"; then
4969 ac_ct_OBJDUMP=$OBJDUMP
4970 # Extract the first word of "objdump", so it can be a program name with args.
4971set dummy objdump; ac_word=$2
4972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4973$as_echo_n "checking for $ac_word... " >&6; }
4974if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4975 $as_echo_n "(cached) " >&6
4976else
4977 if test -n "$ac_ct_OBJDUMP"; then
4978 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4979else
4980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981for as_dir in $PATH
4982do
4983 IFS=$as_save_IFS
4984 test -z "$as_dir" && as_dir=.
4985 for ac_exec_ext in '' $ac_executable_extensions; do
4986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4987 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4989 break 2
4990 fi
4991done
4992 done
4993IFS=$as_save_IFS
4994
4995fi
4996fi
4997ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4998if test -n "$ac_ct_OBJDUMP"; then
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5000$as_echo "$ac_ct_OBJDUMP" >&6; }
5001else
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5003$as_echo "no" >&6; }
5004fi
5005
5006 if test "x$ac_ct_OBJDUMP" = x; then
5007 OBJDUMP="false"
5008 else
5009 case $cross_compiling:$ac_tool_warned in
5010yes:)
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5012$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5013ac_tool_warned=yes ;;
5014esac
5015 OBJDUMP=$ac_ct_OBJDUMP
5016 fi
5017else
5018 OBJDUMP="$ac_cv_prog_OBJDUMP"
5019fi
5020
5021 ;;
5022esac
5023
5024test -z "$AS" && AS=as
5025
5026
5027
5028
5029
5030test -z "$DLLTOOL" && DLLTOOL=dlltool
5031
5032
5033
5034
5035
5036test -z "$OBJDUMP" && OBJDUMP=objdump
5037
5038
5039
5040
5041
5042
5043
5044
5045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5046$as_echo_n "checking whether ln -s works... " >&6; }
5047LN_S=$as_ln_s
5048if test "$LN_S" = "ln -s"; then
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5050$as_echo "yes" >&6; }
5051else
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5053$as_echo "no, using $LN_S" >&6; }
5054fi
5055
5056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5057$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5058set x ${MAKE-make}
5059ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5060if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5061 $as_echo_n "(cached) " >&6
5062else
5063 cat >conftest.make <<\_ACEOF
5064SHELL = /bin/sh
5065all:
5066 @echo '@@@%%%=$(MAKE)=@@@%%%'
5067_ACEOF
5068# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5069case `${MAKE-make} -f conftest.make 2>/dev/null` in
5070 *@@@%%%=?*=@@@%%%*)
5071 eval ac_cv_prog_make_${ac_make}_set=yes;;
5072 *)
5073 eval ac_cv_prog_make_${ac_make}_set=no;;
5074esac
5075rm -f conftest.make
5076fi
5077if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5079$as_echo "yes" >&6; }
5080 SET_MAKE=
5081else
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5083$as_echo "no" >&6; }
5084 SET_MAKE="MAKE=${MAKE-make}"
5085fi
5086
5087case `pwd` in
5088 *\ * | *\ *)
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5090$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5091esac
5092
5093
5094
5095macro_version='2.4.6'
5096macro_revision='2.4.6'
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110ltmain=$ac_aux_dir/ltmain.sh
5111
5112# Backslashify metacharacters that are still active within
5113# double-quoted strings.
5114sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5115
5116# Same as above, but do not quote variable references.
5117double_quote_subst='s/\(["`\\]\)/\\\1/g'
5118
5119# Sed substitution to delay expansion of an escaped shell variable in a
5120# double_quote_subst'ed string.
5121delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5122
5123# Sed substitution to delay expansion of an escaped single quote.
5124delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5125
5126# Sed substitution to avoid accidental globbing in evaled expressions
5127no_glob_subst='s/\*/\\\*/g'
5128
5129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5130$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5131if ${lt_cv_path_NM+:} false; then :
5132 $as_echo_n "(cached) " >&6
5133else
5134 if test -n "$NM"; then
5135 # Let the user override the test.
5136 lt_cv_path_NM=$NM
5137else
5138 lt_nm_to_check=${ac_tool_prefix}nm
5139 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5140 lt_nm_to_check="$lt_nm_to_check nm"
5141 fi
5142 for lt_tmp_nm in $lt_nm_to_check; do
5143 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5144 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5145 IFS=$lt_save_ifs
5146 test -z "$ac_dir" && ac_dir=.
5147 tmp_nm=$ac_dir/$lt_tmp_nm
5148 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5149 # Check to see if the nm accepts a BSD-compat flag.
5150 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5151 # nm: unknown option "B" ignored
5152 # Tru64's nm complains that /dev/null is an invalid object file
5153 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5154 case $build_os in
5155 mingw*) lt_bad_file=conftest.nm/nofile ;;
5156 *) lt_bad_file=/dev/null ;;
5157 esac
5158 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5159 *$lt_bad_file* | *'Invalid file or object type'*)
5160 lt_cv_path_NM="$tmp_nm -B"
5161 break 2
5162 ;;
5163 *)
5164 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5165 */dev/null*)
5166 lt_cv_path_NM="$tmp_nm -p"
5167 break 2
5168 ;;
5169 *)
5170 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5171 continue # so that we can try to find one that supports BSD flags
5172 ;;
5173 esac
5174 ;;
5175 esac
5176 fi
5177 done
5178 IFS=$lt_save_ifs
5179 done
5180 : ${lt_cv_path_NM=no}
5181fi
5182fi
5183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5184$as_echo "$lt_cv_path_NM" >&6; }
5185if test no != "$lt_cv_path_NM"; then
5186 NM=$lt_cv_path_NM
5187else
5188 # Didn't find any BSD compatible name lister, look for dumpbin.
5189 if test -n "$DUMPBIN"; then :
5190 # Let the user override the test.
5191 else
5192 if test -n "$ac_tool_prefix"; then
5193 for ac_prog in dumpbin "link -dump"
5194 do
5195 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5196set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5198$as_echo_n "checking for $ac_word... " >&6; }
5199if ${ac_cv_prog_DUMPBIN+:} false; then :
5200 $as_echo_n "(cached) " >&6
5201else
5202 if test -n "$DUMPBIN"; then
5203 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5204else
5205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206for as_dir in $PATH
5207do
5208 IFS=$as_save_IFS
5209 test -z "$as_dir" && as_dir=.
5210 for ac_exec_ext in '' $ac_executable_extensions; do
5211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5212 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5214 break 2
5215 fi
5216done
5217 done
5218IFS=$as_save_IFS
5219
5220fi
5221fi
5222DUMPBIN=$ac_cv_prog_DUMPBIN
5223if test -n "$DUMPBIN"; then
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5225$as_echo "$DUMPBIN" >&6; }
5226else
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228$as_echo "no" >&6; }
5229fi
5230
5231
5232 test -n "$DUMPBIN" && break
5233 done
5234fi
5235if test -z "$DUMPBIN"; then
5236 ac_ct_DUMPBIN=$DUMPBIN
5237 for ac_prog in dumpbin "link -dump"
5238do
5239 # Extract the first word of "$ac_prog", so it can be a program name with args.
5240set dummy $ac_prog; ac_word=$2
5241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5242$as_echo_n "checking for $ac_word... " >&6; }
5243if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5244 $as_echo_n "(cached) " >&6
5245else
5246 if test -n "$ac_ct_DUMPBIN"; then
5247 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5248else
5249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250for as_dir in $PATH
5251do
5252 IFS=$as_save_IFS
5253 test -z "$as_dir" && as_dir=.
5254 for ac_exec_ext in '' $ac_executable_extensions; do
5255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5256 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5258 break 2
5259 fi
5260done
5261 done
5262IFS=$as_save_IFS
5263
5264fi
5265fi
5266ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5267if test -n "$ac_ct_DUMPBIN"; then
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5269$as_echo "$ac_ct_DUMPBIN" >&6; }
5270else
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5272$as_echo "no" >&6; }
5273fi
5274
5275
5276 test -n "$ac_ct_DUMPBIN" && break
5277done
5278
5279 if test "x$ac_ct_DUMPBIN" = x; then
5280 DUMPBIN=":"
5281 else
5282 case $cross_compiling:$ac_tool_warned in
5283yes:)
5284{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5285$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5286ac_tool_warned=yes ;;
5287esac
5288 DUMPBIN=$ac_ct_DUMPBIN
5289 fi
5290fi
5291
5292 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5293 *COFF*)
5294 DUMPBIN="$DUMPBIN -symbols -headers"
5295 ;;
5296 *)
5297 DUMPBIN=:
5298 ;;
5299 esac
5300 fi
5301
5302 if test : != "$DUMPBIN"; then
5303 NM=$DUMPBIN
5304 fi
5305fi
5306test -z "$NM" && NM=nm
5307
5308
5309
5310
5311
5312
5313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5314$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5315if ${lt_cv_nm_interface+:} false; then :
5316 $as_echo_n "(cached) " >&6
5317else
5318 lt_cv_nm_interface="BSD nm"
5319 echo "int some_variable = 0;" > conftest.$ac_ext
5320 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5321 (eval "$ac_compile" 2>conftest.err)
5322 cat conftest.err >&5
5323 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5324 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5325 cat conftest.err >&5
5326 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5327 cat conftest.out >&5
5328 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5329 lt_cv_nm_interface="MS dumpbin"
5330 fi
5331 rm -f conftest*
5332fi
5333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5334$as_echo "$lt_cv_nm_interface" >&6; }
5335
5336# find the maximum length of command line arguments
5337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5338$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5339if ${lt_cv_sys_max_cmd_len+:} false; then :
5340 $as_echo_n "(cached) " >&6
5341else
5342 i=0
5343 teststring=ABCD
5344
5345 case $build_os in
5346 msdosdjgpp*)
5347 # On DJGPP, this test can blow up pretty badly due to problems in libc
5348 # (any single argument exceeding 2000 bytes causes a buffer overrun
5349 # during glob expansion). Even if it were fixed, the result of this
5350 # check would be larger than it should be.
5351 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5352 ;;
5353
5354 gnu*)
5355 # Under GNU Hurd, this test is not required because there is
5356 # no limit to the length of command line arguments.
5357 # Libtool will interpret -1 as no limit whatsoever
5358 lt_cv_sys_max_cmd_len=-1;
5359 ;;
5360
5361 cygwin* | mingw* | cegcc*)
5362 # On Win9x/ME, this test blows up -- it succeeds, but takes
5363 # about 5 minutes as the teststring grows exponentially.
5364 # Worse, since 9x/ME are not pre-emptively multitasking,
5365 # you end up with a "frozen" computer, even though with patience
5366 # the test eventually succeeds (with a max line length of 256k).
5367 # Instead, let's just punt: use the minimum linelength reported by
5368 # all of the supported platforms: 8192 (on NT/2K/XP).
5369 lt_cv_sys_max_cmd_len=8192;
5370 ;;
5371
5372 mint*)
5373 # On MiNT this can take a long time and run out of memory.
5374 lt_cv_sys_max_cmd_len=8192;
5375 ;;
5376
5377 amigaos*)
5378 # On AmigaOS with pdksh, this test takes hours, literally.
5379 # So we just punt and use a minimum line length of 8192.
5380 lt_cv_sys_max_cmd_len=8192;
5381 ;;
5382
5383 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5384 # This has been around since 386BSD, at least. Likely further.
5385 if test -x /sbin/sysctl; then
5386 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5387 elif test -x /usr/sbin/sysctl; then
5388 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5389 else
5390 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5391 fi
5392 # And add a safety zone
5393 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5394 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5395 ;;
5396
5397 interix*)
5398 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5399 lt_cv_sys_max_cmd_len=196608
5400 ;;
5401
5402 os2*)
5403 # The test takes a long time on OS/2.
5404 lt_cv_sys_max_cmd_len=8192
5405 ;;
5406
5407 osf*)
5408 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5409 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5410 # nice to cause kernel panics so lets avoid the loop below.
5411 # First set a reasonable default.
5412 lt_cv_sys_max_cmd_len=16384
5413 #
5414 if test -x /sbin/sysconfig; then
5415 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5416 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5417 esac
5418 fi
5419 ;;
5420 sco3.2v5*)
5421 lt_cv_sys_max_cmd_len=102400
5422 ;;
5423 sysv5* | sco5v6* | sysv4.2uw2*)
5424 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5425 if test -n "$kargmax"; then
5426 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5427 else
5428 lt_cv_sys_max_cmd_len=32768
5429 fi
5430 ;;
5431 *)
5432 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5433 if test -n "$lt_cv_sys_max_cmd_len" && \
5434 test undefined != "$lt_cv_sys_max_cmd_len"; then
5435 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5436 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5437 else
5438 # Make teststring a little bigger before we do anything with it.
5439 # a 1K string should be a reasonable start.
5440 for i in 1 2 3 4 5 6 7 8; do
5441 teststring=$teststring$teststring
5442 done
5443 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5444 # If test is not a shell built-in, we'll probably end up computing a
5445 # maximum length that is only half of the actual maximum length, but
5446 # we can't tell.
5447 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5448 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5449 test 17 != "$i" # 1/2 MB should be enough
5450 do
5451 i=`expr $i + 1`
5452 teststring=$teststring$teststring
5453 done
5454 # Only check the string length outside the loop.
5455 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5456 teststring=
5457 # Add a significant safety factor because C++ compilers can tack on
5458 # massive amounts of additional arguments before passing them to the
5459 # linker. It appears as though 1/2 is a usable value.
5460 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5461 fi
5462 ;;
5463 esac
5464
5465fi
5466
5467if test -n "$lt_cv_sys_max_cmd_len"; then
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5469$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5470else
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5472$as_echo "none" >&6; }
5473fi
5474max_cmd_len=$lt_cv_sys_max_cmd_len
5475
5476
5477
5478
5479
5480
5481: ${CP="cp -f"}
5482: ${MV="mv -f"}
5483: ${RM="rm -f"}
5484
5485if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5486 lt_unset=unset
5487else
5488 lt_unset=false
5489fi
5490
5491
5492
5493
5494
5495# test EBCDIC or ASCII
5496case `echo X|tr X '\101'` in
5497 A) # ASCII based system
5498 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5499 lt_SP2NL='tr \040 \012'
5500 lt_NL2SP='tr \015\012 \040\040'
5501 ;;
5502 *) # EBCDIC based system
5503 lt_SP2NL='tr \100 \n'
5504 lt_NL2SP='tr \r\n \100\100'
5505 ;;
5506esac
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5517$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5518if ${lt_cv_to_host_file_cmd+:} false; then :
5519 $as_echo_n "(cached) " >&6
5520else
5521 case $host in
5522 *-*-mingw* )
5523 case $build in
5524 *-*-mingw* ) # actually msys
5525 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5526 ;;
5527 *-*-cygwin* )
5528 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5529 ;;
5530 * ) # otherwise, assume *nix
5531 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5532 ;;
5533 esac
5534 ;;
5535 *-*-cygwin* )
5536 case $build in
5537 *-*-mingw* ) # actually msys
5538 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5539 ;;
5540 *-*-cygwin* )
5541 lt_cv_to_host_file_cmd=func_convert_file_noop
5542 ;;
5543 * ) # otherwise, assume *nix
5544 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5545 ;;
5546 esac
5547 ;;
5548 * ) # unhandled hosts (and "normal" native builds)
5549 lt_cv_to_host_file_cmd=func_convert_file_noop
5550 ;;
5551esac
5552
5553fi
5554
5555to_host_file_cmd=$lt_cv_to_host_file_cmd
5556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5557$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5558
5559
5560
5561
5562
5563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5564$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5565if ${lt_cv_to_tool_file_cmd+:} false; then :
5566 $as_echo_n "(cached) " >&6
5567else
5568 #assume ordinary cross tools, or native build.
5569lt_cv_to_tool_file_cmd=func_convert_file_noop
5570case $host in
5571 *-*-mingw* )
5572 case $build in
5573 *-*-mingw* ) # actually msys
5574 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5575 ;;
5576 esac
5577 ;;
5578esac
5579
5580fi
5581
5582to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5584$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5585
5586
5587
5588
5589
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5591$as_echo_n "checking for $LD option to reload object files... " >&6; }
5592if ${lt_cv_ld_reload_flag+:} false; then :
5593 $as_echo_n "(cached) " >&6
5594else
5595 lt_cv_ld_reload_flag='-r'
5596fi
5597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5598$as_echo "$lt_cv_ld_reload_flag" >&6; }
5599reload_flag=$lt_cv_ld_reload_flag
5600case $reload_flag in
5601"" | " "*) ;;
5602*) reload_flag=" $reload_flag" ;;
5603esac
5604reload_cmds='$LD$reload_flag -o $output$reload_objs'
5605case $host_os in
5606 cygwin* | mingw* | pw32* | cegcc*)
5607 if test yes != "$GCC"; then
5608 reload_cmds=false
5609 fi
5610 ;;
5611 darwin*)
5612 if test yes = "$GCC"; then
5613 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5614 else
5615 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5616 fi
5617 ;;
5618esac
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628if test -n "$ac_tool_prefix"; then
5629 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5630set dummy ${ac_tool_prefix}objdump; ac_word=$2
5631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5632$as_echo_n "checking for $ac_word... " >&6; }
5633if ${ac_cv_prog_OBJDUMP+:} false; then :
5634 $as_echo_n "(cached) " >&6
5635else
5636 if test -n "$OBJDUMP"; then
5637 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5638else
5639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640for as_dir in $PATH
5641do
5642 IFS=$as_save_IFS
5643 test -z "$as_dir" && as_dir=.
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5646 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5648 break 2
5649 fi
5650done
5651 done
5652IFS=$as_save_IFS
5653
5654fi
5655fi
5656OBJDUMP=$ac_cv_prog_OBJDUMP
5657if test -n "$OBJDUMP"; then
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5659$as_echo "$OBJDUMP" >&6; }
5660else
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662$as_echo "no" >&6; }
5663fi
5664
5665
5666fi
5667if test -z "$ac_cv_prog_OBJDUMP"; then
5668 ac_ct_OBJDUMP=$OBJDUMP
5669 # Extract the first word of "objdump", so it can be a program name with args.
5670set dummy objdump; ac_word=$2
5671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5672$as_echo_n "checking for $ac_word... " >&6; }
5673if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5674 $as_echo_n "(cached) " >&6
5675else
5676 if test -n "$ac_ct_OBJDUMP"; then
5677 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5678else
5679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680for as_dir in $PATH
5681do
5682 IFS=$as_save_IFS
5683 test -z "$as_dir" && as_dir=.
5684 for ac_exec_ext in '' $ac_executable_extensions; do
5685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5686 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5688 break 2
5689 fi
5690done
5691 done
5692IFS=$as_save_IFS
5693
5694fi
5695fi
5696ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5697if test -n "$ac_ct_OBJDUMP"; then
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5699$as_echo "$ac_ct_OBJDUMP" >&6; }
5700else
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702$as_echo "no" >&6; }
5703fi
5704
5705 if test "x$ac_ct_OBJDUMP" = x; then
5706 OBJDUMP="false"
5707 else
5708 case $cross_compiling:$ac_tool_warned in
5709yes:)
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5711$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5712ac_tool_warned=yes ;;
5713esac
5714 OBJDUMP=$ac_ct_OBJDUMP
5715 fi
5716else
5717 OBJDUMP="$ac_cv_prog_OBJDUMP"
5718fi
5719
5720test -z "$OBJDUMP" && OBJDUMP=objdump
5721
5722
5723
5724
5725
5726
5727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5728$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5729if ${lt_cv_deplibs_check_method+:} false; then :
5730 $as_echo_n "(cached) " >&6
5731else
5732 lt_cv_file_magic_cmd='$MAGIC_CMD'
5733lt_cv_file_magic_test_file=
5734lt_cv_deplibs_check_method='unknown'
5735# Need to set the preceding variable on all platforms that support
5736# interlibrary dependencies.
5737# 'none' -- dependencies not supported.
5738# 'unknown' -- same as none, but documents that we really don't know.
5739# 'pass_all' -- all dependencies passed with no checks.
5740# 'test_compile' -- check by making test program.
5741# 'file_magic [[regex]]' -- check by looking for files in library path
5742# that responds to the $file_magic_cmd with a given extended regex.
5743# If you have 'file' or equivalent on your system and you're not sure
5744# whether 'pass_all' will *always* work, you probably want this one.
5745
5746case $host_os in
5747aix[4-9]*)
5748 lt_cv_deplibs_check_method=pass_all
5749 ;;
5750
5751beos*)
5752 lt_cv_deplibs_check_method=pass_all
5753 ;;
5754
5755bsdi[45]*)
5756 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5757 lt_cv_file_magic_cmd='/usr/bin/file -L'
5758 lt_cv_file_magic_test_file=/shlib/libc.so
5759 ;;
5760
5761cygwin*)
5762 # func_win32_libid is a shell function defined in ltmain.sh
5763 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5764 lt_cv_file_magic_cmd='func_win32_libid'
5765 ;;
5766
5767mingw* | pw32*)
5768 # Base MSYS/MinGW do not provide the 'file' command needed by
5769 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5770 # unless we find 'file', for example because we are cross-compiling.
5771 if ( file / ) >/dev/null 2>&1; then
5772 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5773 lt_cv_file_magic_cmd='func_win32_libid'
5774 else
5775 # Keep this pattern in sync with the one in func_win32_libid.
5776 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5777 lt_cv_file_magic_cmd='$OBJDUMP -f'
5778 fi
5779 ;;
5780
5781cegcc*)
5782 # use the weaker test based on 'objdump'. See mingw*.
5783 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5784 lt_cv_file_magic_cmd='$OBJDUMP -f'
5785 ;;
5786
5787darwin* | rhapsody*)
5788 lt_cv_deplibs_check_method=pass_all
5789 ;;
5790
5791freebsd* | dragonfly*)
5792 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5793 case $host_cpu in
5794 i*86 )
5795 # Not sure whether the presence of OpenBSD here was a mistake.
5796 # Let's accept both of them until this is cleared up.
5797 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5798 lt_cv_file_magic_cmd=/usr/bin/file
5799 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5800 ;;
5801 esac
5802 else
5803 lt_cv_deplibs_check_method=pass_all
5804 fi
5805 ;;
5806
5807haiku*)
5808 lt_cv_deplibs_check_method=pass_all
5809 ;;
5810
5811hpux10.20* | hpux11*)
5812 lt_cv_file_magic_cmd=/usr/bin/file
5813 case $host_cpu in
5814 ia64*)
5815 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5816 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5817 ;;
5818 hppa*64*)
5819 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]'
5820 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5821 ;;
5822 *)
5823 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5824 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5825 ;;
5826 esac
5827 ;;
5828
5829interix[3-9]*)
5830 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5831 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5832 ;;
5833
5834irix5* | irix6* | nonstopux*)
5835 case $LD in
5836 *-32|*"-32 ") libmagic=32-bit;;
5837 *-n32|*"-n32 ") libmagic=N32;;
5838 *-64|*"-64 ") libmagic=64-bit;;
5839 *) libmagic=never-match;;
5840 esac
5841 lt_cv_deplibs_check_method=pass_all
5842 ;;
5843
5844# This must be glibc/ELF.
5845linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5846 lt_cv_deplibs_check_method=pass_all
5847 ;;
5848
5849netbsd*)
5850 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5851 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5852 else
5853 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5854 fi
5855 ;;
5856
5857newos6*)
5858 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5859 lt_cv_file_magic_cmd=/usr/bin/file
5860 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5861 ;;
5862
5863*nto* | *qnx*)
5864 lt_cv_deplibs_check_method=pass_all
5865 ;;
5866
5867openbsd* | bitrig*)
5868 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5869 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5870 else
5871 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5872 fi
5873 ;;
5874
5875osf3* | osf4* | osf5*)
5876 lt_cv_deplibs_check_method=pass_all
5877 ;;
5878
5879rdos*)
5880 lt_cv_deplibs_check_method=pass_all
5881 ;;
5882
5883solaris*)
5884 lt_cv_deplibs_check_method=pass_all
5885 ;;
5886
5887sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5888 lt_cv_deplibs_check_method=pass_all
5889 ;;
5890
5891sysv4 | sysv4.3*)
5892 case $host_vendor in
5893 motorola)
5894 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]'
5895 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5896 ;;
5897 ncr)
5898 lt_cv_deplibs_check_method=pass_all
5899 ;;
5900 sequent)
5901 lt_cv_file_magic_cmd='/bin/file'
5902 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5903 ;;
5904 sni)
5905 lt_cv_file_magic_cmd='/bin/file'
5906 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5907 lt_cv_file_magic_test_file=/lib/libc.so
5908 ;;
5909 siemens)
5910 lt_cv_deplibs_check_method=pass_all
5911 ;;
5912 pc)
5913 lt_cv_deplibs_check_method=pass_all
5914 ;;
5915 esac
5916 ;;
5917
5918tpf*)
5919 lt_cv_deplibs_check_method=pass_all
5920 ;;
5921os2*)
5922 lt_cv_deplibs_check_method=pass_all
5923 ;;
5924esac
5925
5926fi
5927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5928$as_echo "$lt_cv_deplibs_check_method" >&6; }
5929
5930file_magic_glob=
5931want_nocaseglob=no
5932if test "$build" = "$host"; then
5933 case $host_os in
5934 mingw* | pw32*)
5935 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5936 want_nocaseglob=yes
5937 else
5938 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5939 fi
5940 ;;
5941 esac
5942fi
5943
5944file_magic_cmd=$lt_cv_file_magic_cmd
5945deplibs_check_method=$lt_cv_deplibs_check_method
5946test -z "$deplibs_check_method" && deplibs_check_method=unknown
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969if test -n "$ac_tool_prefix"; then
5970 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5971set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5973$as_echo_n "checking for $ac_word... " >&6; }
5974if ${ac_cv_prog_DLLTOOL+:} false; then :
5975 $as_echo_n "(cached) " >&6
5976else
5977 if test -n "$DLLTOOL"; then
5978 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5979else
5980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981for as_dir in $PATH
5982do
5983 IFS=$as_save_IFS
5984 test -z "$as_dir" && as_dir=.
5985 for ac_exec_ext in '' $ac_executable_extensions; do
5986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5987 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5989 break 2
5990 fi
5991done
5992 done
5993IFS=$as_save_IFS
5994
5995fi
5996fi
5997DLLTOOL=$ac_cv_prog_DLLTOOL
5998if test -n "$DLLTOOL"; then
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6000$as_echo "$DLLTOOL" >&6; }
6001else
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6003$as_echo "no" >&6; }
6004fi
6005
6006
6007fi
6008if test -z "$ac_cv_prog_DLLTOOL"; then
6009 ac_ct_DLLTOOL=$DLLTOOL
6010 # Extract the first word of "dlltool", so it can be a program name with args.
6011set dummy dlltool; ac_word=$2
6012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6013$as_echo_n "checking for $ac_word... " >&6; }
6014if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6015 $as_echo_n "(cached) " >&6
6016else
6017 if test -n "$ac_ct_DLLTOOL"; then
6018 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6019else
6020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021for as_dir in $PATH
6022do
6023 IFS=$as_save_IFS
6024 test -z "$as_dir" && as_dir=.
6025 for ac_exec_ext in '' $ac_executable_extensions; do
6026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6027 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6029 break 2
6030 fi
6031done
6032 done
6033IFS=$as_save_IFS
6034
6035fi
6036fi
6037ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6038if test -n "$ac_ct_DLLTOOL"; then
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6040$as_echo "$ac_ct_DLLTOOL" >&6; }
6041else
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6043$as_echo "no" >&6; }
6044fi
6045
6046 if test "x$ac_ct_DLLTOOL" = x; then
6047 DLLTOOL="false"
6048 else
6049 case $cross_compiling:$ac_tool_warned in
6050yes:)
6051{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6052$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6053ac_tool_warned=yes ;;
6054esac
6055 DLLTOOL=$ac_ct_DLLTOOL
6056 fi
6057else
6058 DLLTOOL="$ac_cv_prog_DLLTOOL"
6059fi
6060
6061test -z "$DLLTOOL" && DLLTOOL=dlltool
6062
6063
6064
6065
6066
6067
6068
6069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6070$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6071if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6072 $as_echo_n "(cached) " >&6
6073else
6074 lt_cv_sharedlib_from_linklib_cmd='unknown'
6075
6076case $host_os in
6077cygwin* | mingw* | pw32* | cegcc*)
6078 # two different shell functions defined in ltmain.sh;
6079 # decide which one to use based on capabilities of $DLLTOOL
6080 case `$DLLTOOL --help 2>&1` in
6081 *--identify-strict*)
6082 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6083 ;;
6084 *)
6085 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6086 ;;
6087 esac
6088 ;;
6089*)
6090 # fallback: assume linklib IS sharedlib
6091 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6092 ;;
6093esac
6094
6095fi
6096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6097$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6098sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6099test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6100
6101
6102
6103
6104
6105
6106
6107
6108if test -n "$ac_tool_prefix"; then
6109 for ac_prog in ar
6110 do
6111 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6112set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6114$as_echo_n "checking for $ac_word... " >&6; }
6115if ${ac_cv_prog_AR+:} false; then :
6116 $as_echo_n "(cached) " >&6
6117else
6118 if test -n "$AR"; then
6119 ac_cv_prog_AR="$AR" # Let the user override the test.
6120else
6121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122for as_dir in $PATH
6123do
6124 IFS=$as_save_IFS
6125 test -z "$as_dir" && as_dir=.
6126 for ac_exec_ext in '' $ac_executable_extensions; do
6127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6128 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6130 break 2
6131 fi
6132done
6133 done
6134IFS=$as_save_IFS
6135
6136fi
6137fi
6138AR=$ac_cv_prog_AR
6139if test -n "$AR"; then
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6141$as_echo "$AR" >&6; }
6142else
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6144$as_echo "no" >&6; }
6145fi
6146
6147
6148 test -n "$AR" && break
6149 done
6150fi
6151if test -z "$AR"; then
6152 ac_ct_AR=$AR
6153 for ac_prog in ar
6154do
6155 # Extract the first word of "$ac_prog", so it can be a program name with args.
6156set dummy $ac_prog; ac_word=$2
6157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6158$as_echo_n "checking for $ac_word... " >&6; }
6159if ${ac_cv_prog_ac_ct_AR+:} false; then :
6160 $as_echo_n "(cached) " >&6
6161else
6162 if test -n "$ac_ct_AR"; then
6163 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6164else
6165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166for as_dir in $PATH
6167do
6168 IFS=$as_save_IFS
6169 test -z "$as_dir" && as_dir=.
6170 for ac_exec_ext in '' $ac_executable_extensions; do
6171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6172 ac_cv_prog_ac_ct_AR="$ac_prog"
6173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6174 break 2
6175 fi
6176done
6177 done
6178IFS=$as_save_IFS
6179
6180fi
6181fi
6182ac_ct_AR=$ac_cv_prog_ac_ct_AR
6183if test -n "$ac_ct_AR"; then
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6185$as_echo "$ac_ct_AR" >&6; }
6186else
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6188$as_echo "no" >&6; }
6189fi
6190
6191
6192 test -n "$ac_ct_AR" && break
6193done
6194
6195 if test "x$ac_ct_AR" = x; then
6196 AR="false"
6197 else
6198 case $cross_compiling:$ac_tool_warned in
6199yes:)
6200{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6201$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6202ac_tool_warned=yes ;;
6203esac
6204 AR=$ac_ct_AR
6205 fi
6206fi
6207
6208: ${AR=ar}
6209: ${AR_FLAGS=cru}
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6222$as_echo_n "checking for archiver @FILE support... " >&6; }
6223if ${lt_cv_ar_at_file+:} false; then :
6224 $as_echo_n "(cached) " >&6
6225else
6226 lt_cv_ar_at_file=no
6227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6228/* end confdefs.h. */
6229
6230int
6231main ()
6232{
6233
6234 ;
6235 return 0;
6236}
6237_ACEOF
6238if ac_fn_c_try_compile "$LINENO"; then :
6239 echo conftest.$ac_objext > conftest.lst
6240 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6242 (eval $lt_ar_try) 2>&5
6243 ac_status=$?
6244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6245 test $ac_status = 0; }
6246 if test 0 -eq "$ac_status"; then
6247 # Ensure the archiver fails upon bogus file names.
6248 rm -f conftest.$ac_objext libconftest.a
6249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6250 (eval $lt_ar_try) 2>&5
6251 ac_status=$?
6252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6253 test $ac_status = 0; }
6254 if test 0 -ne "$ac_status"; then
6255 lt_cv_ar_at_file=@
6256 fi
6257 fi
6258 rm -f conftest.* libconftest.a
6259
6260fi
6261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6262
6263fi
6264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6265$as_echo "$lt_cv_ar_at_file" >&6; }
6266
6267if test no = "$lt_cv_ar_at_file"; then
6268 archiver_list_spec=
6269else
6270 archiver_list_spec=$lt_cv_ar_at_file
6271fi
6272
6273
6274
6275
6276
6277
6278
6279if test -n "$ac_tool_prefix"; then
6280 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6281set dummy ${ac_tool_prefix}strip; ac_word=$2
6282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6283$as_echo_n "checking for $ac_word... " >&6; }
6284if ${ac_cv_prog_STRIP+:} false; then :
6285 $as_echo_n "(cached) " >&6
6286else
6287 if test -n "$STRIP"; then
6288 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6289else
6290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291for as_dir in $PATH
6292do
6293 IFS=$as_save_IFS
6294 test -z "$as_dir" && as_dir=.
6295 for ac_exec_ext in '' $ac_executable_extensions; do
6296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6297 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6299 break 2
6300 fi
6301done
6302 done
6303IFS=$as_save_IFS
6304
6305fi
6306fi
6307STRIP=$ac_cv_prog_STRIP
6308if test -n "$STRIP"; then
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6310$as_echo "$STRIP" >&6; }
6311else
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6313$as_echo "no" >&6; }
6314fi
6315
6316
6317fi
6318if test -z "$ac_cv_prog_STRIP"; then
6319 ac_ct_STRIP=$STRIP
6320 # Extract the first word of "strip", so it can be a program name with args.
6321set dummy strip; ac_word=$2
6322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6323$as_echo_n "checking for $ac_word... " >&6; }
6324if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6325 $as_echo_n "(cached) " >&6
6326else
6327 if test -n "$ac_ct_STRIP"; then
6328 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6329else
6330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331for as_dir in $PATH
6332do
6333 IFS=$as_save_IFS
6334 test -z "$as_dir" && as_dir=.
6335 for ac_exec_ext in '' $ac_executable_extensions; do
6336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6337 ac_cv_prog_ac_ct_STRIP="strip"
6338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6339 break 2
6340 fi
6341done
6342 done
6343IFS=$as_save_IFS
6344
6345fi
6346fi
6347ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6348if test -n "$ac_ct_STRIP"; then
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6350$as_echo "$ac_ct_STRIP" >&6; }
6351else
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6353$as_echo "no" >&6; }
6354fi
6355
6356 if test "x$ac_ct_STRIP" = x; then
6357 STRIP=":"
6358 else
6359 case $cross_compiling:$ac_tool_warned in
6360yes:)
6361{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6362$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6363ac_tool_warned=yes ;;
6364esac
6365 STRIP=$ac_ct_STRIP
6366 fi
6367else
6368 STRIP="$ac_cv_prog_STRIP"
6369fi
6370
6371test -z "$STRIP" && STRIP=:
6372
6373
6374
6375
6376
6377
6378if test -n "$ac_tool_prefix"; then
6379 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6380set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6382$as_echo_n "checking for $ac_word... " >&6; }
6383if ${ac_cv_prog_RANLIB+:} false; then :
6384 $as_echo_n "(cached) " >&6
6385else
6386 if test -n "$RANLIB"; then
6387 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6388else
6389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390for as_dir in $PATH
6391do
6392 IFS=$as_save_IFS
6393 test -z "$as_dir" && as_dir=.
6394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6396 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6398 break 2
6399 fi
6400done
6401 done
6402IFS=$as_save_IFS
6403
6404fi
6405fi
6406RANLIB=$ac_cv_prog_RANLIB
6407if test -n "$RANLIB"; then
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6409$as_echo "$RANLIB" >&6; }
6410else
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412$as_echo "no" >&6; }
6413fi
6414
6415
6416fi
6417if test -z "$ac_cv_prog_RANLIB"; then
6418 ac_ct_RANLIB=$RANLIB
6419 # Extract the first word of "ranlib", so it can be a program name with args.
6420set dummy ranlib; ac_word=$2
6421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6422$as_echo_n "checking for $ac_word... " >&6; }
6423if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6424 $as_echo_n "(cached) " >&6
6425else
6426 if test -n "$ac_ct_RANLIB"; then
6427 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6428else
6429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430for as_dir in $PATH
6431do
6432 IFS=$as_save_IFS
6433 test -z "$as_dir" && as_dir=.
6434 for ac_exec_ext in '' $ac_executable_extensions; do
6435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6436 ac_cv_prog_ac_ct_RANLIB="ranlib"
6437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6438 break 2
6439 fi
6440done
6441 done
6442IFS=$as_save_IFS
6443
6444fi
6445fi
6446ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6447if test -n "$ac_ct_RANLIB"; then
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6449$as_echo "$ac_ct_RANLIB" >&6; }
6450else
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452$as_echo "no" >&6; }
6453fi
6454
6455 if test "x$ac_ct_RANLIB" = x; then
6456 RANLIB=":"
6457 else
6458 case $cross_compiling:$ac_tool_warned in
6459yes:)
6460{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6461$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6462ac_tool_warned=yes ;;
6463esac
6464 RANLIB=$ac_ct_RANLIB
6465 fi
6466else
6467 RANLIB="$ac_cv_prog_RANLIB"
6468fi
6469
6470test -z "$RANLIB" && RANLIB=:
6471
6472
6473
6474
6475
6476
6477# Determine commands to create old-style static archives.
6478old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6479old_postinstall_cmds='chmod 644 $oldlib'
6480old_postuninstall_cmds=
6481
6482if test -n "$RANLIB"; then
6483 case $host_os in
6484 bitrig* | openbsd*)
6485 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6486 ;;
6487 *)
6488 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6489 ;;
6490 esac
6491 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6492fi
6493
6494case $host_os in
6495 darwin*)
6496 lock_old_archive_extraction=yes ;;
6497 *)
6498 lock_old_archive_extraction=no ;;
6499esac
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539# If no C compiler was specified, use CC.
6540LTCC=${LTCC-"$CC"}
6541
6542# If no C compiler flags were specified, use CFLAGS.
6543LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6544
6545# Allow CC to be a program name with arguments.
6546compiler=$CC
6547
6548
6549# Check for command to grab the raw symbol name followed by C symbol from nm.
6550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6551$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6552if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6553 $as_echo_n "(cached) " >&6
6554else
6555
6556# These are sane defaults that work on at least a few old systems.
6557# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6558
6559# Character class describing NM global symbol codes.
6560symcode='[BCDEGRST]'
6561
6562# Regexp to match symbols that can be accessed directly from C.
6563sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6564
6565# Define system-specific variables.
6566case $host_os in
6567aix*)
6568 symcode='[BCDT]'
6569 ;;
6570cygwin* | mingw* | pw32* | cegcc*)
6571 symcode='[ABCDGISTW]'
6572 ;;
6573hpux*)
6574 if test ia64 = "$host_cpu"; then
6575 symcode='[ABCDEGRST]'
6576 fi
6577 ;;
6578irix* | nonstopux*)
6579 symcode='[BCDEGRST]'
6580 ;;
6581osf*)
6582 symcode='[BCDEGQRST]'
6583 ;;
6584solaris*)
6585 symcode='[BDRT]'
6586 ;;
6587sco3.2v5*)
6588 symcode='[DT]'
6589 ;;
6590sysv4.2uw2*)
6591 symcode='[DT]'
6592 ;;
6593sysv5* | sco5v6* | unixware* | OpenUNIX*)
6594 symcode='[ABDT]'
6595 ;;
6596sysv4)
6597 symcode='[DFNSTU]'
6598 ;;
6599esac
6600
6601# If we're using GNU nm, then use its standard symbol codes.
6602case `$NM -V 2>&1` in
6603*GNU* | *'with BFD'*)
6604 symcode='[ABCDGIRSTW]' ;;
6605esac
6606
6607if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6608 # Gets list of data symbols to import.
6609 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6610 # Adjust the below global symbol transforms to fixup imported variables.
6611 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6612 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6613 lt_c_name_lib_hook="\
6614 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6615 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6616else
6617 # Disable hooks by default.
6618 lt_cv_sys_global_symbol_to_import=
6619 lt_cdecl_hook=
6620 lt_c_name_hook=
6621 lt_c_name_lib_hook=
6622fi
6623
6624# Transform an extracted symbol line into a proper C declaration.
6625# Some systems (esp. on ia64) link data and code symbols differently,
6626# so use this general approach.
6627lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6628$lt_cdecl_hook\
6629" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6630" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6631
6632# Transform an extracted symbol line into symbol name and symbol address
6633lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6634$lt_c_name_hook\
6635" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6636" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6637
6638# Transform an extracted symbol line into symbol name with lib prefix and
6639# symbol address.
6640lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6641$lt_c_name_lib_hook\
6642" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6643" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6644" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6645
6646# Handle CRLF in mingw tool chain
6647opt_cr=
6648case $build_os in
6649mingw*)
6650 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6651 ;;
6652esac
6653
6654# Try without a prefix underscore, then with it.
6655for ac_symprfx in "" "_"; do
6656
6657 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6658 symxfrm="\\1 $ac_symprfx\\2 \\2"
6659
6660 # Write the raw and C identifiers.
6661 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6662 # Fake it for dumpbin and say T for any non-static function,
6663 # D for any global variable and I for any imported variable.
6664 # Also find C++ and __fastcall symbols from MSVC++,
6665 # which start with @ or ?.
6666 lt_cv_sys_global_symbol_pipe="$AWK '"\
6667" {last_section=section; section=\$ 3};"\
6668" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6669" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6670" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6671" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6672" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6673" \$ 0!~/External *\|/{next};"\
6674" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6675" {if(hide[section]) next};"\
6676" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6677" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6678" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6679" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6680" ' prfx=^$ac_symprfx"
6681 else
6682 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6683 fi
6684 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6685
6686 # Check to see that the pipe works correctly.
6687 pipe_works=no
6688
6689 rm -f conftest*
6690 cat > conftest.$ac_ext <<_LT_EOF
6691#ifdef __cplusplus
6692extern "C" {
6693#endif
6694char nm_test_var;
6695void nm_test_func(void);
6696void nm_test_func(void){}
6697#ifdef __cplusplus
6698}
6699#endif
6700int main(){nm_test_var='a';nm_test_func();return(0);}
6701_LT_EOF
6702
6703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6704 (eval $ac_compile) 2>&5
6705 ac_status=$?
6706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6707 test $ac_status = 0; }; then
6708 # Now try to grab the symbols.
6709 nlist=conftest.nm
6710 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6711 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6712 ac_status=$?
6713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6714 test $ac_status = 0; } && test -s "$nlist"; then
6715 # Try sorting and uniquifying the output.
6716 if sort "$nlist" | uniq > "$nlist"T; then
6717 mv -f "$nlist"T "$nlist"
6718 else
6719 rm -f "$nlist"T
6720 fi
6721
6722 # Make sure that we snagged all the symbols we need.
6723 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6724 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6725 cat <<_LT_EOF > conftest.$ac_ext
6726/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6727#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6728/* DATA imports from DLLs on WIN32 can't be const, because runtime
6729 relocations are performed -- see ld's documentation on pseudo-relocs. */
6730# define LT_DLSYM_CONST
6731#elif defined __osf__
6732/* This system does not cope well with relocations in const data. */
6733# define LT_DLSYM_CONST
6734#else
6735# define LT_DLSYM_CONST const
6736#endif
6737
6738#ifdef __cplusplus
6739extern "C" {
6740#endif
6741
6742_LT_EOF
6743 # Now generate the symbol file.
6744 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6745
6746 cat <<_LT_EOF >> conftest.$ac_ext
6747
6748/* The mapping between symbol names and symbols. */
6749LT_DLSYM_CONST struct {
6750 const char *name;
6751 void *address;
6752}
6753lt__PROGRAM__LTX_preloaded_symbols[] =
6754{
6755 { "@PROGRAM@", (void *) 0 },
6756_LT_EOF
6757 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6758 cat <<\_LT_EOF >> conftest.$ac_ext
6759 {0, (void *) 0}
6760};
6761
6762/* This works around a problem in FreeBSD linker */
6763#ifdef FREEBSD_WORKAROUND
6764static const void *lt_preloaded_setup() {
6765 return lt__PROGRAM__LTX_preloaded_symbols;
6766}
6767#endif
6768
6769#ifdef __cplusplus
6770}
6771#endif
6772_LT_EOF
6773 # Now try linking the two files.
6774 mv conftest.$ac_objext conftstm.$ac_objext
6775 lt_globsym_save_LIBS=$LIBS
6776 lt_globsym_save_CFLAGS=$CFLAGS
6777 LIBS=conftstm.$ac_objext
6778 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6779 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6780 (eval $ac_link) 2>&5
6781 ac_status=$?
6782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6783 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6784 pipe_works=yes
6785 fi
6786 LIBS=$lt_globsym_save_LIBS
6787 CFLAGS=$lt_globsym_save_CFLAGS
6788 else
6789 echo "cannot find nm_test_func in $nlist" >&5
6790 fi
6791 else
6792 echo "cannot find nm_test_var in $nlist" >&5
6793 fi
6794 else
6795 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6796 fi
6797 else
6798 echo "$progname: failed program was:" >&5
6799 cat conftest.$ac_ext >&5
6800 fi
6801 rm -rf conftest* conftst*
6802
6803 # Do not use the global_symbol_pipe unless it works.
6804 if test yes = "$pipe_works"; then
6805 break
6806 else
6807 lt_cv_sys_global_symbol_pipe=
6808 fi
6809done
6810
6811fi
6812
6813if test -z "$lt_cv_sys_global_symbol_pipe"; then
6814 lt_cv_sys_global_symbol_to_cdecl=
6815fi
6816if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6818$as_echo "failed" >&6; }
6819else
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6821$as_echo "ok" >&6; }
6822fi
6823
6824# Response file support.
6825if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6826 nm_file_list_spec='@'
6827elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6828 nm_file_list_spec='@'
6829fi
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6868$as_echo_n "checking for sysroot... " >&6; }
6869
6870# Check whether --with-sysroot was given.
6871if test "${with_sysroot+set}" = set; then :
6872 withval=$with_sysroot;
6873else
6874 with_sysroot=no
6875fi
6876
6877
6878lt_sysroot=
6879case $with_sysroot in #(
6880 yes)
6881 if test yes = "$GCC"; then
6882 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6883 fi
6884 ;; #(
6885 /*)
6886 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6887 ;; #(
6888 no|'')
6889 ;; #(
6890 *)
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6892$as_echo "$with_sysroot" >&6; }
6893 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6894 ;;
6895esac
6896
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6898$as_echo "${lt_sysroot:-no}" >&6; }
6899
6900
6901
6902
6903
6904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6905$as_echo_n "checking for a working dd... " >&6; }
6906if ${ac_cv_path_lt_DD+:} false; then :
6907 $as_echo_n "(cached) " >&6
6908else
6909 printf 0123456789abcdef0123456789abcdef >conftest.i
6910cat conftest.i conftest.i >conftest2.i
6911: ${lt_DD:=$DD}
6912if test -z "$lt_DD"; then
6913 ac_path_lt_DD_found=false
6914 # Loop through the user's path and test for each of PROGNAME-LIST
6915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916for as_dir in $PATH
6917do
6918 IFS=$as_save_IFS
6919 test -z "$as_dir" && as_dir=.
6920 for ac_prog in dd; do
6921 for ac_exec_ext in '' $ac_executable_extensions; do
6922 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6923 as_fn_executable_p "$ac_path_lt_DD" || continue
6924if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6925 cmp -s conftest.i conftest.out \
6926 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6927fi
6928 $ac_path_lt_DD_found && break 3
6929 done
6930 done
6931 done
6932IFS=$as_save_IFS
6933 if test -z "$ac_cv_path_lt_DD"; then
6934 :
6935 fi
6936else
6937 ac_cv_path_lt_DD=$lt_DD
6938fi
6939
6940rm -f conftest.i conftest2.i conftest.out
6941fi
6942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6943$as_echo "$ac_cv_path_lt_DD" >&6; }
6944
6945
6946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6947$as_echo_n "checking how to truncate binary pipes... " >&6; }
6948if ${lt_cv_truncate_bin+:} false; then :
6949 $as_echo_n "(cached) " >&6
6950else
6951 printf 0123456789abcdef0123456789abcdef >conftest.i
6952cat conftest.i conftest.i >conftest2.i
6953lt_cv_truncate_bin=
6954if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6955 cmp -s conftest.i conftest.out \
6956 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6957fi
6958rm -f conftest.i conftest2.i conftest.out
6959test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6960fi
6961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6962$as_echo "$lt_cv_truncate_bin" >&6; }
6963
6964
6965
6966
6967
6968
6969
6970# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6971func_cc_basename ()
6972{
6973 for cc_temp in $*""; do
6974 case $cc_temp in
6975 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6976 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6977 \-*) ;;
6978 *) break;;
6979 esac
6980 done
6981 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6982}
6983
6984# Check whether --enable-libtool-lock was given.
6985if test "${enable_libtool_lock+set}" = set; then :
6986 enableval=$enable_libtool_lock;
6987fi
6988
6989test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6990
6991# Some flags need to be propagated to the compiler or linker for good
6992# libtool support.
6993case $host in
6994ia64-*-hpux*)
6995 # Find out what ABI is being produced by ac_compile, and set mode
6996 # options accordingly.
6997 echo 'int i;' > conftest.$ac_ext
6998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6999 (eval $ac_compile) 2>&5
7000 ac_status=$?
7001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7002 test $ac_status = 0; }; then
7003 case `/usr/bin/file conftest.$ac_objext` in
7004 *ELF-32*)
7005 HPUX_IA64_MODE=32
7006 ;;
7007 *ELF-64*)
7008 HPUX_IA64_MODE=64
7009 ;;
7010 esac
7011 fi
7012 rm -rf conftest*
7013 ;;
7014*-*-irix6*)
7015 # Find out what ABI is being produced by ac_compile, and set linker
7016 # options accordingly.
7017 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7018 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7019 (eval $ac_compile) 2>&5
7020 ac_status=$?
7021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7022 test $ac_status = 0; }; then
7023 if test yes = "$lt_cv_prog_gnu_ld"; then
7024 case `/usr/bin/file conftest.$ac_objext` in
7025 *32-bit*)
7026 LD="${LD-ld} -melf32bsmip"
7027 ;;
7028 *N32*)
7029 LD="${LD-ld} -melf32bmipn32"
7030 ;;
7031 *64-bit*)
7032 LD="${LD-ld} -melf64bmip"
7033 ;;
7034 esac
7035 else
7036 case `/usr/bin/file conftest.$ac_objext` in
7037 *32-bit*)
7038 LD="${LD-ld} -32"
7039 ;;
7040 *N32*)
7041 LD="${LD-ld} -n32"
7042 ;;
7043 *64-bit*)
7044 LD="${LD-ld} -64"
7045 ;;
7046 esac
7047 fi
7048 fi
7049 rm -rf conftest*
7050 ;;
7051
7052mips64*-*linux*)
7053 # Find out what ABI is being produced by ac_compile, and set linker
7054 # options accordingly.
7055 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7057 (eval $ac_compile) 2>&5
7058 ac_status=$?
7059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7060 test $ac_status = 0; }; then
7061 emul=elf
7062 case `/usr/bin/file conftest.$ac_objext` in
7063 *32-bit*)
7064 emul="${emul}32"
7065 ;;
7066 *64-bit*)
7067 emul="${emul}64"
7068 ;;
7069 esac
7070 case `/usr/bin/file conftest.$ac_objext` in
7071 *MSB*)
7072 emul="${emul}btsmip"
7073 ;;
7074 *LSB*)
7075 emul="${emul}ltsmip"
7076 ;;
7077 esac
7078 case `/usr/bin/file conftest.$ac_objext` in
7079 *N32*)
7080 emul="${emul}n32"
7081 ;;
7082 esac
7083 LD="${LD-ld} -m $emul"
7084 fi
7085 rm -rf conftest*
7086 ;;
7087
7088x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7089s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7090 # Find out what ABI is being produced by ac_compile, and set linker
7091 # options accordingly. Note that the listed cases only cover the
7092 # situations where additional linker options are needed (such as when
7093 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7094 # vice versa); the common cases where no linker options are needed do
7095 # not appear in the list.
7096 echo 'int i;' > conftest.$ac_ext
7097 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7098 (eval $ac_compile) 2>&5
7099 ac_status=$?
7100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7101 test $ac_status = 0; }; then
7102 case `/usr/bin/file conftest.o` in
7103 *32-bit*)
7104 case $host in
7105 x86_64-*kfreebsd*-gnu)
7106 LD="${LD-ld} -m elf_i386_fbsd"
7107 ;;
7108 x86_64-*linux*)
7109 case `/usr/bin/file conftest.o` in
7110 *x86-64*)
7111 LD="${LD-ld} -m elf32_x86_64"
7112 ;;
7113 *)
7114 LD="${LD-ld} -m elf_i386"
7115 ;;
7116 esac
7117 ;;
7118 powerpc64le-*linux*)
7119 LD="${LD-ld} -m elf32lppclinux"
7120 ;;
7121 powerpc64-*linux*)
7122 LD="${LD-ld} -m elf32ppclinux"
7123 ;;
7124 s390x-*linux*)
7125 LD="${LD-ld} -m elf_s390"
7126 ;;
7127 sparc64-*linux*)
7128 LD="${LD-ld} -m elf32_sparc"
7129 ;;
7130 esac
7131 ;;
7132 *64-bit*)
7133 case $host in
7134 x86_64-*kfreebsd*-gnu)
7135 LD="${LD-ld} -m elf_x86_64_fbsd"
7136 ;;
7137 x86_64-*linux*)
7138 LD="${LD-ld} -m elf_x86_64"
7139 ;;
7140 powerpcle-*linux*)
7141 LD="${LD-ld} -m elf64lppc"
7142 ;;
7143 powerpc-*linux*)
7144 LD="${LD-ld} -m elf64ppc"
7145 ;;
7146 s390*-*linux*|s390*-*tpf*)
7147 LD="${LD-ld} -m elf64_s390"
7148 ;;
7149 sparc*-*linux*)
7150 LD="${LD-ld} -m elf64_sparc"
7151 ;;
7152 esac
7153 ;;
7154 esac
7155 fi
7156 rm -rf conftest*
7157 ;;
7158
7159*-*-sco3.2v5*)
7160 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7161 SAVE_CFLAGS=$CFLAGS
7162 CFLAGS="$CFLAGS -belf"
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7164$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7165if ${lt_cv_cc_needs_belf+:} false; then :
7166 $as_echo_n "(cached) " >&6
7167else
7168 ac_ext=c
7169ac_cpp='$CPP $CPPFLAGS'
7170ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7171ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7172ac_compiler_gnu=$ac_cv_c_compiler_gnu
7173
7174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7175/* end confdefs.h. */
7176
7177int
7178main ()
7179{
7180
7181 ;
7182 return 0;
7183}
7184_ACEOF
7185if ac_fn_c_try_link "$LINENO"; then :
7186 lt_cv_cc_needs_belf=yes
7187else
7188 lt_cv_cc_needs_belf=no
7189fi
7190rm -f core conftest.err conftest.$ac_objext \
7191 conftest$ac_exeext conftest.$ac_ext
7192 ac_ext=c
7193ac_cpp='$CPP $CPPFLAGS'
7194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7196ac_compiler_gnu=$ac_cv_c_compiler_gnu
7197
7198fi
7199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7200$as_echo "$lt_cv_cc_needs_belf" >&6; }
7201 if test yes != "$lt_cv_cc_needs_belf"; then
7202 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7203 CFLAGS=$SAVE_CFLAGS
7204 fi
7205 ;;
7206*-*solaris*)
7207 # Find out what ABI is being produced by ac_compile, and set linker
7208 # options accordingly.
7209 echo 'int i;' > conftest.$ac_ext
7210 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7211 (eval $ac_compile) 2>&5
7212 ac_status=$?
7213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7214 test $ac_status = 0; }; then
7215 case `/usr/bin/file conftest.o` in
7216 *64-bit*)
7217 case $lt_cv_prog_gnu_ld in
7218 yes*)
7219 case $host in
7220 i?86-*-solaris*|x86_64-*-solaris*)
7221 LD="${LD-ld} -m elf_x86_64"
7222 ;;
7223 sparc*-*-solaris*)
7224 LD="${LD-ld} -m elf64_sparc"
7225 ;;
7226 esac
7227 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7228 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7229 LD=${LD-ld}_sol2
7230 fi
7231 ;;
7232 *)
7233 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7234 LD="${LD-ld} -64"
7235 fi
7236 ;;
7237 esac
7238 ;;
7239 esac
7240 fi
7241 rm -rf conftest*
7242 ;;
7243esac
7244
7245need_locks=$enable_libtool_lock
7246
7247if test -n "$ac_tool_prefix"; then
7248 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7249set dummy ${ac_tool_prefix}mt; ac_word=$2
7250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7251$as_echo_n "checking for $ac_word... " >&6; }
7252if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7253 $as_echo_n "(cached) " >&6
7254else
7255 if test -n "$MANIFEST_TOOL"; then
7256 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7257else
7258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259for as_dir in $PATH
7260do
7261 IFS=$as_save_IFS
7262 test -z "$as_dir" && as_dir=.
7263 for ac_exec_ext in '' $ac_executable_extensions; do
7264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7265 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7267 break 2
7268 fi
7269done
7270 done
7271IFS=$as_save_IFS
7272
7273fi
7274fi
7275MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7276if test -n "$MANIFEST_TOOL"; then
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7278$as_echo "$MANIFEST_TOOL" >&6; }
7279else
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281$as_echo "no" >&6; }
7282fi
7283
7284
7285fi
7286if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7287 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7288 # Extract the first word of "mt", so it can be a program name with args.
7289set dummy mt; ac_word=$2
7290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7291$as_echo_n "checking for $ac_word... " >&6; }
7292if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7293 $as_echo_n "(cached) " >&6
7294else
7295 if test -n "$ac_ct_MANIFEST_TOOL"; then
7296 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7297else
7298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299for as_dir in $PATH
7300do
7301 IFS=$as_save_IFS
7302 test -z "$as_dir" && as_dir=.
7303 for ac_exec_ext in '' $ac_executable_extensions; do
7304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7305 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7307 break 2
7308 fi
7309done
7310 done
7311IFS=$as_save_IFS
7312
7313fi
7314fi
7315ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7316if test -n "$ac_ct_MANIFEST_TOOL"; then
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7318$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7319else
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7321$as_echo "no" >&6; }
7322fi
7323
7324 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7325 MANIFEST_TOOL=":"
7326 else
7327 case $cross_compiling:$ac_tool_warned in
7328yes:)
7329{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7330$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7331ac_tool_warned=yes ;;
7332esac
7333 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7334 fi
7335else
7336 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7337fi
7338
7339test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7341$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7342if ${lt_cv_path_mainfest_tool+:} false; then :
7343 $as_echo_n "(cached) " >&6
7344else
7345 lt_cv_path_mainfest_tool=no
7346 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7347 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7348 cat conftest.err >&5
7349 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7350 lt_cv_path_mainfest_tool=yes
7351 fi
7352 rm -f conftest*
7353fi
7354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7355$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7356if test yes != "$lt_cv_path_mainfest_tool"; then
7357 MANIFEST_TOOL=:
7358fi
7359
7360
7361
7362
7363
7364
7365 case $host_os in
7366 rhapsody* | darwin*)
7367 if test -n "$ac_tool_prefix"; then
7368 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7369set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7371$as_echo_n "checking for $ac_word... " >&6; }
7372if ${ac_cv_prog_DSYMUTIL+:} false; then :
7373 $as_echo_n "(cached) " >&6
7374else
7375 if test -n "$DSYMUTIL"; then
7376 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7377else
7378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379for as_dir in $PATH
7380do
7381 IFS=$as_save_IFS
7382 test -z "$as_dir" && as_dir=.
7383 for ac_exec_ext in '' $ac_executable_extensions; do
7384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7385 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7387 break 2
7388 fi
7389done
7390 done
7391IFS=$as_save_IFS
7392
7393fi
7394fi
7395DSYMUTIL=$ac_cv_prog_DSYMUTIL
7396if test -n "$DSYMUTIL"; then
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7398$as_echo "$DSYMUTIL" >&6; }
7399else
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401$as_echo "no" >&6; }
7402fi
7403
7404
7405fi
7406if test -z "$ac_cv_prog_DSYMUTIL"; then
7407 ac_ct_DSYMUTIL=$DSYMUTIL
7408 # Extract the first word of "dsymutil", so it can be a program name with args.
7409set dummy dsymutil; ac_word=$2
7410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7411$as_echo_n "checking for $ac_word... " >&6; }
7412if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7413 $as_echo_n "(cached) " >&6
7414else
7415 if test -n "$ac_ct_DSYMUTIL"; then
7416 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7417else
7418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419for as_dir in $PATH
7420do
7421 IFS=$as_save_IFS
7422 test -z "$as_dir" && as_dir=.
7423 for ac_exec_ext in '' $ac_executable_extensions; do
7424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7425 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7427 break 2
7428 fi
7429done
7430 done
7431IFS=$as_save_IFS
7432
7433fi
7434fi
7435ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7436if test -n "$ac_ct_DSYMUTIL"; then
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7438$as_echo "$ac_ct_DSYMUTIL" >&6; }
7439else
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7441$as_echo "no" >&6; }
7442fi
7443
7444 if test "x$ac_ct_DSYMUTIL" = x; then
7445 DSYMUTIL=":"
7446 else
7447 case $cross_compiling:$ac_tool_warned in
7448yes:)
7449{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7450$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7451ac_tool_warned=yes ;;
7452esac
7453 DSYMUTIL=$ac_ct_DSYMUTIL
7454 fi
7455else
7456 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7457fi
7458
7459 if test -n "$ac_tool_prefix"; then
7460 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7461set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7463$as_echo_n "checking for $ac_word... " >&6; }
7464if ${ac_cv_prog_NMEDIT+:} false; then :
7465 $as_echo_n "(cached) " >&6
7466else
7467 if test -n "$NMEDIT"; then
7468 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7469else
7470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471for as_dir in $PATH
7472do
7473 IFS=$as_save_IFS
7474 test -z "$as_dir" && as_dir=.
7475 for ac_exec_ext in '' $ac_executable_extensions; do
7476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7477 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7479 break 2
7480 fi
7481done
7482 done
7483IFS=$as_save_IFS
7484
7485fi
7486fi
7487NMEDIT=$ac_cv_prog_NMEDIT
7488if test -n "$NMEDIT"; then
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7490$as_echo "$NMEDIT" >&6; }
7491else
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493$as_echo "no" >&6; }
7494fi
7495
7496
7497fi
7498if test -z "$ac_cv_prog_NMEDIT"; then
7499 ac_ct_NMEDIT=$NMEDIT
7500 # Extract the first word of "nmedit", so it can be a program name with args.
7501set dummy nmedit; ac_word=$2
7502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7503$as_echo_n "checking for $ac_word... " >&6; }
7504if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7505 $as_echo_n "(cached) " >&6
7506else
7507 if test -n "$ac_ct_NMEDIT"; then
7508 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7509else
7510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511for as_dir in $PATH
7512do
7513 IFS=$as_save_IFS
7514 test -z "$as_dir" && as_dir=.
7515 for ac_exec_ext in '' $ac_executable_extensions; do
7516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7517 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7519 break 2
7520 fi
7521done
7522 done
7523IFS=$as_save_IFS
7524
7525fi
7526fi
7527ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7528if test -n "$ac_ct_NMEDIT"; then
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7530$as_echo "$ac_ct_NMEDIT" >&6; }
7531else
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7533$as_echo "no" >&6; }
7534fi
7535
7536 if test "x$ac_ct_NMEDIT" = x; then
7537 NMEDIT=":"
7538 else
7539 case $cross_compiling:$ac_tool_warned in
7540yes:)
7541{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7542$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7543ac_tool_warned=yes ;;
7544esac
7545 NMEDIT=$ac_ct_NMEDIT
7546 fi
7547else
7548 NMEDIT="$ac_cv_prog_NMEDIT"
7549fi
7550
7551 if test -n "$ac_tool_prefix"; then
7552 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7553set dummy ${ac_tool_prefix}lipo; ac_word=$2
7554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7555$as_echo_n "checking for $ac_word... " >&6; }
7556if ${ac_cv_prog_LIPO+:} false; then :
7557 $as_echo_n "(cached) " >&6
7558else
7559 if test -n "$LIPO"; then
7560 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7561else
7562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563for as_dir in $PATH
7564do
7565 IFS=$as_save_IFS
7566 test -z "$as_dir" && as_dir=.
7567 for ac_exec_ext in '' $ac_executable_extensions; do
7568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7569 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7571 break 2
7572 fi
7573done
7574 done
7575IFS=$as_save_IFS
7576
7577fi
7578fi
7579LIPO=$ac_cv_prog_LIPO
7580if test -n "$LIPO"; then
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7582$as_echo "$LIPO" >&6; }
7583else
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585$as_echo "no" >&6; }
7586fi
7587
7588
7589fi
7590if test -z "$ac_cv_prog_LIPO"; then
7591 ac_ct_LIPO=$LIPO
7592 # Extract the first word of "lipo", so it can be a program name with args.
7593set dummy lipo; ac_word=$2
7594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7595$as_echo_n "checking for $ac_word... " >&6; }
7596if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7597 $as_echo_n "(cached) " >&6
7598else
7599 if test -n "$ac_ct_LIPO"; then
7600 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7601else
7602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7603for as_dir in $PATH
7604do
7605 IFS=$as_save_IFS
7606 test -z "$as_dir" && as_dir=.
7607 for ac_exec_ext in '' $ac_executable_extensions; do
7608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7609 ac_cv_prog_ac_ct_LIPO="lipo"
7610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7611 break 2
7612 fi
7613done
7614 done
7615IFS=$as_save_IFS
7616
7617fi
7618fi
7619ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7620if test -n "$ac_ct_LIPO"; then
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7622$as_echo "$ac_ct_LIPO" >&6; }
7623else
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7625$as_echo "no" >&6; }
7626fi
7627
7628 if test "x$ac_ct_LIPO" = x; then
7629 LIPO=":"
7630 else
7631 case $cross_compiling:$ac_tool_warned in
7632yes:)
7633{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7634$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7635ac_tool_warned=yes ;;
7636esac
7637 LIPO=$ac_ct_LIPO
7638 fi
7639else
7640 LIPO="$ac_cv_prog_LIPO"
7641fi
7642
7643 if test -n "$ac_tool_prefix"; then
7644 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7645set dummy ${ac_tool_prefix}otool; ac_word=$2
7646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7647$as_echo_n "checking for $ac_word... " >&6; }
7648if ${ac_cv_prog_OTOOL+:} false; then :
7649 $as_echo_n "(cached) " >&6
7650else
7651 if test -n "$OTOOL"; then
7652 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7653else
7654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655for as_dir in $PATH
7656do
7657 IFS=$as_save_IFS
7658 test -z "$as_dir" && as_dir=.
7659 for ac_exec_ext in '' $ac_executable_extensions; do
7660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7661 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7663 break 2
7664 fi
7665done
7666 done
7667IFS=$as_save_IFS
7668
7669fi
7670fi
7671OTOOL=$ac_cv_prog_OTOOL
7672if test -n "$OTOOL"; then
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7674$as_echo "$OTOOL" >&6; }
7675else
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7677$as_echo "no" >&6; }
7678fi
7679
7680
7681fi
7682if test -z "$ac_cv_prog_OTOOL"; then
7683 ac_ct_OTOOL=$OTOOL
7684 # Extract the first word of "otool", so it can be a program name with args.
7685set dummy otool; ac_word=$2
7686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7687$as_echo_n "checking for $ac_word... " >&6; }
7688if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7689 $as_echo_n "(cached) " >&6
7690else
7691 if test -n "$ac_ct_OTOOL"; then
7692 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7693else
7694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7695for as_dir in $PATH
7696do
7697 IFS=$as_save_IFS
7698 test -z "$as_dir" && as_dir=.
7699 for ac_exec_ext in '' $ac_executable_extensions; do
7700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7701 ac_cv_prog_ac_ct_OTOOL="otool"
7702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7703 break 2
7704 fi
7705done
7706 done
7707IFS=$as_save_IFS
7708
7709fi
7710fi
7711ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7712if test -n "$ac_ct_OTOOL"; then
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7714$as_echo "$ac_ct_OTOOL" >&6; }
7715else
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7717$as_echo "no" >&6; }
7718fi
7719
7720 if test "x$ac_ct_OTOOL" = x; then
7721 OTOOL=":"
7722 else
7723 case $cross_compiling:$ac_tool_warned in
7724yes:)
7725{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7726$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7727ac_tool_warned=yes ;;
7728esac
7729 OTOOL=$ac_ct_OTOOL
7730 fi
7731else
7732 OTOOL="$ac_cv_prog_OTOOL"
7733fi
7734
7735 if test -n "$ac_tool_prefix"; then
7736 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7737set dummy ${ac_tool_prefix}otool64; ac_word=$2
7738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7739$as_echo_n "checking for $ac_word... " >&6; }
7740if ${ac_cv_prog_OTOOL64+:} false; then :
7741 $as_echo_n "(cached) " >&6
7742else
7743 if test -n "$OTOOL64"; then
7744 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7745else
7746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747for as_dir in $PATH
7748do
7749 IFS=$as_save_IFS
7750 test -z "$as_dir" && as_dir=.
7751 for ac_exec_ext in '' $ac_executable_extensions; do
7752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7753 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7755 break 2
7756 fi
7757done
7758 done
7759IFS=$as_save_IFS
7760
7761fi
7762fi
7763OTOOL64=$ac_cv_prog_OTOOL64
7764if test -n "$OTOOL64"; then
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7766$as_echo "$OTOOL64" >&6; }
7767else
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7769$as_echo "no" >&6; }
7770fi
7771
7772
7773fi
7774if test -z "$ac_cv_prog_OTOOL64"; then
7775 ac_ct_OTOOL64=$OTOOL64
7776 # Extract the first word of "otool64", so it can be a program name with args.
7777set dummy otool64; ac_word=$2
7778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7779$as_echo_n "checking for $ac_word... " >&6; }
7780if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7781 $as_echo_n "(cached) " >&6
7782else
7783 if test -n "$ac_ct_OTOOL64"; then
7784 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7785else
7786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7787for as_dir in $PATH
7788do
7789 IFS=$as_save_IFS
7790 test -z "$as_dir" && as_dir=.
7791 for ac_exec_ext in '' $ac_executable_extensions; do
7792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7793 ac_cv_prog_ac_ct_OTOOL64="otool64"
7794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7795 break 2
7796 fi
7797done
7798 done
7799IFS=$as_save_IFS
7800
7801fi
7802fi
7803ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7804if test -n "$ac_ct_OTOOL64"; then
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7806$as_echo "$ac_ct_OTOOL64" >&6; }
7807else
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7809$as_echo "no" >&6; }
7810fi
7811
7812 if test "x$ac_ct_OTOOL64" = x; then
7813 OTOOL64=":"
7814 else
7815 case $cross_compiling:$ac_tool_warned in
7816yes:)
7817{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7818$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7819ac_tool_warned=yes ;;
7820esac
7821 OTOOL64=$ac_ct_OTOOL64
7822 fi
7823else
7824 OTOOL64="$ac_cv_prog_OTOOL64"
7825fi
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7854$as_echo_n "checking for -single_module linker flag... " >&6; }
7855if ${lt_cv_apple_cc_single_mod+:} false; then :
7856 $as_echo_n "(cached) " >&6
7857else
7858 lt_cv_apple_cc_single_mod=no
7859 if test -z "$LT_MULTI_MODULE"; then
7860 # By default we will add the -single_module flag. You can override
7861 # by either setting the environment variable LT_MULTI_MODULE
7862 # non-empty at configure time, or by adding -multi_module to the
7863 # link flags.
7864 rm -rf libconftest.dylib*
7865 echo "int foo(void){return 1;}" > conftest.c
7866 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7867-dynamiclib -Wl,-single_module conftest.c" >&5
7868 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7869 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7870 _lt_result=$?
7871 # If there is a non-empty error log, and "single_module"
7872 # appears in it, assume the flag caused a linker warning
7873 if test -s conftest.err && $GREP single_module conftest.err; then
7874 cat conftest.err >&5
7875 # Otherwise, if the output was created with a 0 exit code from
7876 # the compiler, it worked.
7877 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7878 lt_cv_apple_cc_single_mod=yes
7879 else
7880 cat conftest.err >&5
7881 fi
7882 rm -rf libconftest.dylib*
7883 rm -f conftest.*
7884 fi
7885fi
7886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7887$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7888
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7890$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7891if ${lt_cv_ld_exported_symbols_list+:} false; then :
7892 $as_echo_n "(cached) " >&6
7893else
7894 lt_cv_ld_exported_symbols_list=no
7895 save_LDFLAGS=$LDFLAGS
7896 echo "_main" > conftest.sym
7897 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899/* end confdefs.h. */
7900
7901int
7902main ()
7903{
7904
7905 ;
7906 return 0;
7907}
7908_ACEOF
7909if ac_fn_c_try_link "$LINENO"; then :
7910 lt_cv_ld_exported_symbols_list=yes
7911else
7912 lt_cv_ld_exported_symbols_list=no
7913fi
7914rm -f core conftest.err conftest.$ac_objext \
7915 conftest$ac_exeext conftest.$ac_ext
7916 LDFLAGS=$save_LDFLAGS
7917
7918fi
7919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7920$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7921
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7923$as_echo_n "checking for -force_load linker flag... " >&6; }
7924if ${lt_cv_ld_force_load+:} false; then :
7925 $as_echo_n "(cached) " >&6
7926else
7927 lt_cv_ld_force_load=no
7928 cat > conftest.c << _LT_EOF
7929int forced_loaded() { return 2;}
7930_LT_EOF
7931 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7932 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7933 echo "$AR cru libconftest.a conftest.o" >&5
7934 $AR cru libconftest.a conftest.o 2>&5
7935 echo "$RANLIB libconftest.a" >&5
7936 $RANLIB libconftest.a 2>&5
7937 cat > conftest.c << _LT_EOF
7938int main() { return 0;}
7939_LT_EOF
7940 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7941 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7942 _lt_result=$?
7943 if test -s conftest.err && $GREP force_load conftest.err; then
7944 cat conftest.err >&5
7945 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7946 lt_cv_ld_force_load=yes
7947 else
7948 cat conftest.err >&5
7949 fi
7950 rm -f conftest.err libconftest.a conftest conftest.c
7951 rm -rf conftest.dSYM
7952
7953fi
7954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7955$as_echo "$lt_cv_ld_force_load" >&6; }
7956 case $host_os in
7957 rhapsody* | darwin1.[012])
7958 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7959 darwin1.*)
7960 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7961 darwin*) # darwin 5.x on
7962 # if running on 10.5 or later, the deployment target defaults
7963 # to the OS version, if on x86, and 10.4, the deployment
7964 # target defaults to 10.4. Don't you love it?
7965 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7966 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7967 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7968 10.[012][,.]*)
7969 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7970 10.*)
7971 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7972 esac
7973 ;;
7974 esac
7975 if test yes = "$lt_cv_apple_cc_single_mod"; then
7976 _lt_dar_single_mod='$single_module'
7977 fi
7978 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7979 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7980 else
7981 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7982 fi
7983 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7984 _lt_dsymutil='~$DSYMUTIL $lib || :'
7985 else
7986 _lt_dsymutil=
7987 fi
7988 ;;
7989 esac
7990
7991# func_munge_path_list VARIABLE PATH
7992# -----------------------------------
7993# VARIABLE is name of variable containing _space_ separated list of
7994# directories to be munged by the contents of PATH, which is string
7995# having a format:
7996# "DIR[:DIR]:"
7997# string "DIR[ DIR]" will be prepended to VARIABLE
7998# ":DIR[:DIR]"
7999# string "DIR[ DIR]" will be appended to VARIABLE
8000# "DIRP[:DIRP]::[DIRA:]DIRA"
8001# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8002# "DIRA[ DIRA]" will be appended to VARIABLE
8003# "DIR[:DIR]"
8004# VARIABLE will be replaced by "DIR[ DIR]"
8005func_munge_path_list ()
8006{
8007 case x$2 in
8008 x)
8009 ;;
8010 *:)
8011 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8012 ;;
8013 x:*)
8014 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8015 ;;
8016 *::*)
8017 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8018 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8019 ;;
8020 *)
8021 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8022 ;;
8023 esac
8024}
8025
8026
8027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8028$as_echo_n "checking for ANSI C header files... " >&6; }
8029if ${ac_cv_header_stdc+:} false; then :
8030 $as_echo_n "(cached) " >&6
8031else
8032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8033/* end confdefs.h. */
8034#include <stdlib.h>
8035#include <stdarg.h>
8036#include <string.h>
8037#include <float.h>
8038
8039int
8040main ()
8041{
8042
8043 ;
8044 return 0;
8045}
8046_ACEOF
8047if ac_fn_c_try_compile "$LINENO"; then :
8048 ac_cv_header_stdc=yes
8049else
8050 ac_cv_header_stdc=no
8051fi
8052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8053
8054if test $ac_cv_header_stdc = yes; then
8055 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057/* end confdefs.h. */
8058#include <string.h>
8059
8060_ACEOF
8061if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8062 $EGREP "memchr" >/dev/null 2>&1; then :
8063
8064else
8065 ac_cv_header_stdc=no
8066fi
8067rm -f conftest*
8068
8069fi
8070
8071if test $ac_cv_header_stdc = yes; then
8072 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8074/* end confdefs.h. */
8075#include <stdlib.h>
8076
8077_ACEOF
8078if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8079 $EGREP "free" >/dev/null 2>&1; then :
8080
8081else
8082 ac_cv_header_stdc=no
8083fi
8084rm -f conftest*
8085
8086fi
8087
8088if test $ac_cv_header_stdc = yes; then
8089 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8090 if test "$cross_compiling" = yes; then :
8091 :
8092else
8093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8094/* end confdefs.h. */
8095#include <ctype.h>
8096#include <stdlib.h>
8097#if ((' ' & 0x0FF) == 0x020)
8098# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8099# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8100#else
8101# define ISLOWER(c) \
8102 (('a' <= (c) && (c) <= 'i') \
8103 || ('j' <= (c) && (c) <= 'r') \
8104 || ('s' <= (c) && (c) <= 'z'))
8105# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8106#endif
8107
8108#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8109int
8110main ()
8111{
8112 int i;
8113 for (i = 0; i < 256; i++)
8114 if (XOR (islower (i), ISLOWER (i))
8115 || toupper (i) != TOUPPER (i))
8116 return 2;
8117 return 0;
8118}
8119_ACEOF
8120if ac_fn_c_try_run "$LINENO"; then :
8121
8122else
8123 ac_cv_header_stdc=no
8124fi
8125rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8126 conftest.$ac_objext conftest.beam conftest.$ac_ext
8127fi
8128
8129fi
8130fi
8131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8132$as_echo "$ac_cv_header_stdc" >&6; }
8133if test $ac_cv_header_stdc = yes; then
8134
8135$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8136
8137fi
8138
8139# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8140for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8141 inttypes.h stdint.h unistd.h
8142do :
8143 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8144ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8145"
8146if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8147 cat >>confdefs.h <<_ACEOF
8148#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8149_ACEOF
8150
8151fi
8152
8153done
8154
8155
8156for ac_header in dlfcn.h
8157do :
8158 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8159"
8160if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8161 cat >>confdefs.h <<_ACEOF
8162#define HAVE_DLFCN_H 1
8163_ACEOF
8164
8165fi
8166
8167done
8168
8169
8170
8171
8172
8173# Set options
8174
8175
8176
8177 enable_dlopen=no
8178
8179
8180
8181 # Check whether --enable-shared was given.
8182if test "${enable_shared+set}" = set; then :
8183 enableval=$enable_shared; p=${PACKAGE-default}
8184 case $enableval in
8185 yes) enable_shared=yes ;;
8186 no) enable_shared=no ;;
8187 *)
8188 enable_shared=no
8189 # Look at the argument we got. We use all the common list separators.
8190 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8191 for pkg in $enableval; do
8192 IFS=$lt_save_ifs
8193 if test "X$pkg" = "X$p"; then
8194 enable_shared=yes
8195 fi
8196 done
8197 IFS=$lt_save_ifs
8198 ;;
8199 esac
8200else
8201 enable_shared=yes
8202fi
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212 # Check whether --enable-static was given.
8213if test "${enable_static+set}" = set; then :
8214 enableval=$enable_static; p=${PACKAGE-default}
8215 case $enableval in
8216 yes) enable_static=yes ;;
8217 no) enable_static=no ;;
8218 *)
8219 enable_static=no
8220 # Look at the argument we got. We use all the common list separators.
8221 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8222 for pkg in $enableval; do
8223 IFS=$lt_save_ifs
8224 if test "X$pkg" = "X$p"; then
8225 enable_static=yes
8226 fi
8227 done
8228 IFS=$lt_save_ifs
8229 ;;
8230 esac
8231else
8232 enable_static=yes
8233fi
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244# Check whether --with-pic was given.
8245if test "${with_pic+set}" = set; then :
8246 withval=$with_pic; lt_p=${PACKAGE-default}
8247 case $withval in
8248 yes|no) pic_mode=$withval ;;
8249 *)
8250 pic_mode=default
8251 # Look at the argument we got. We use all the common list separators.
8252 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8253 for lt_pkg in $withval; do
8254 IFS=$lt_save_ifs
8255 if test "X$lt_pkg" = "X$lt_p"; then
8256 pic_mode=yes
8257 fi
8258 done
8259 IFS=$lt_save_ifs
8260 ;;
8261 esac
8262else
8263 pic_mode=default
8264fi
8265
8266
8267
8268
8269
8270
8271
8272
8273 # Check whether --enable-fast-install was given.
8274if test "${enable_fast_install+set}" = set; then :
8275 enableval=$enable_fast_install; p=${PACKAGE-default}
8276 case $enableval in
8277 yes) enable_fast_install=yes ;;
8278 no) enable_fast_install=no ;;
8279 *)
8280 enable_fast_install=no
8281 # Look at the argument we got. We use all the common list separators.
8282 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8283 for pkg in $enableval; do
8284 IFS=$lt_save_ifs
8285 if test "X$pkg" = "X$p"; then
8286 enable_fast_install=yes
8287 fi
8288 done
8289 IFS=$lt_save_ifs
8290 ;;
8291 esac
8292else
8293 enable_fast_install=yes
8294fi
8295
8296
8297
8298
8299
8300
8301
8302
8303 shared_archive_member_spec=
8304case $host,$enable_shared in
8305power*-*-aix[5-9]*,yes)
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8307$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8308
8309# Check whether --with-aix-soname was given.
8310if test "${with_aix_soname+set}" = set; then :
8311 withval=$with_aix_soname; case $withval in
8312 aix|svr4|both)
8313 ;;
8314 *)
8315 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8316 ;;
8317 esac
8318 lt_cv_with_aix_soname=$with_aix_soname
8319else
8320 if ${lt_cv_with_aix_soname+:} false; then :
8321 $as_echo_n "(cached) " >&6
8322else
8323 lt_cv_with_aix_soname=aix
8324fi
8325
8326 with_aix_soname=$lt_cv_with_aix_soname
8327fi
8328
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8330$as_echo "$with_aix_soname" >&6; }
8331 if test aix != "$with_aix_soname"; then
8332 # For the AIX way of multilib, we name the shared archive member
8333 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8334 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8335 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8336 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8337 if test 64 = "${OBJECT_MODE-32}"; then
8338 shared_archive_member_spec=shr_64
8339 else
8340 shared_archive_member_spec=shr
8341 fi
8342 fi
8343 ;;
8344*)
8345 with_aix_soname=aix
8346 ;;
8347esac
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358# This can be used to rebuild libtool when needed
8359LIBTOOL_DEPS=$ltmain
8360
8361# Always use our own libtool.
8362LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393test -z "$LN_S" && LN_S="ln -s"
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408if test -n "${ZSH_VERSION+set}"; then
8409 setopt NO_GLOB_SUBST
8410fi
8411
8412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8413$as_echo_n "checking for objdir... " >&6; }
8414if ${lt_cv_objdir+:} false; then :
8415 $as_echo_n "(cached) " >&6
8416else
8417 rm -f .libs 2>/dev/null
8418mkdir .libs 2>/dev/null
8419if test -d .libs; then
8420 lt_cv_objdir=.libs
8421else
8422 # MS-DOS does not allow filenames that begin with a dot.
8423 lt_cv_objdir=_libs
8424fi
8425rmdir .libs 2>/dev/null
8426fi
8427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8428$as_echo "$lt_cv_objdir" >&6; }
8429objdir=$lt_cv_objdir
8430
8431
8432
8433
8434
8435cat >>confdefs.h <<_ACEOF
8436#define LT_OBJDIR "$lt_cv_objdir/"
8437_ACEOF
8438
8439
8440
8441
8442case $host_os in
8443aix3*)
8444 # AIX sometimes has problems with the GCC collect2 program. For some
8445 # reason, if we set the COLLECT_NAMES environment variable, the problems
8446 # vanish in a puff of smoke.
8447 if test set != "${COLLECT_NAMES+set}"; then
8448 COLLECT_NAMES=
8449 export COLLECT_NAMES
8450 fi
8451 ;;
8452esac
8453
8454# Global variables:
8455ofile=libtool
8456can_build_shared=yes
8457
8458# All known linkers require a '.a' archive for static linking (except MSVC,
8459# which needs '.lib').
8460libext=a
8461
8462with_gnu_ld=$lt_cv_prog_gnu_ld
8463
8464old_CC=$CC
8465old_CFLAGS=$CFLAGS
8466
8467# Set sane defaults for various variables
8468test -z "$CC" && CC=cc
8469test -z "$LTCC" && LTCC=$CC
8470test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8471test -z "$LD" && LD=ld
8472test -z "$ac_objext" && ac_objext=o
8473
8474func_cc_basename $compiler
8475cc_basename=$func_cc_basename_result
8476
8477
8478# Only perform the check for file, if the check method requires it
8479test -z "$MAGIC_CMD" && MAGIC_CMD=file
8480case $deplibs_check_method in
8481file_magic*)
8482 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8484$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8485if ${lt_cv_path_MAGIC_CMD+:} false; then :
8486 $as_echo_n "(cached) " >&6
8487else
8488 case $MAGIC_CMD in
8489[\\/*] | ?:[\\/]*)
8490 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8491 ;;
8492*)
8493 lt_save_MAGIC_CMD=$MAGIC_CMD
8494 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8495 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8496 for ac_dir in $ac_dummy; do
8497 IFS=$lt_save_ifs
8498 test -z "$ac_dir" && ac_dir=.
8499 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8500 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8501 if test -n "$file_magic_test_file"; then
8502 case $deplibs_check_method in
8503 "file_magic "*)
8504 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8505 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8506 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8507 $EGREP "$file_magic_regex" > /dev/null; then
8508 :
8509 else
8510 cat <<_LT_EOF 1>&2
8511
8512*** Warning: the command libtool uses to detect shared libraries,
8513*** $file_magic_cmd, produces output that libtool cannot recognize.
8514*** The result is that libtool may fail to recognize shared libraries
8515*** as such. This will affect the creation of libtool libraries that
8516*** depend on shared libraries, but programs linked with such libtool
8517*** libraries will work regardless of this problem. Nevertheless, you
8518*** may want to report the problem to your system manager and/or to
8519*** bug-libtool@gnu.org
8520
8521_LT_EOF
8522 fi ;;
8523 esac
8524 fi
8525 break
8526 fi
8527 done
8528 IFS=$lt_save_ifs
8529 MAGIC_CMD=$lt_save_MAGIC_CMD
8530 ;;
8531esac
8532fi
8533
8534MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8535if test -n "$MAGIC_CMD"; then
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8537$as_echo "$MAGIC_CMD" >&6; }
8538else
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8540$as_echo "no" >&6; }
8541fi
8542
8543
8544
8545
8546
8547if test -z "$lt_cv_path_MAGIC_CMD"; then
8548 if test -n "$ac_tool_prefix"; then
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8550$as_echo_n "checking for file... " >&6; }
8551if ${lt_cv_path_MAGIC_CMD+:} false; then :
8552 $as_echo_n "(cached) " >&6
8553else
8554 case $MAGIC_CMD in
8555[\\/*] | ?:[\\/]*)
8556 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8557 ;;
8558*)
8559 lt_save_MAGIC_CMD=$MAGIC_CMD
8560 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8561 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8562 for ac_dir in $ac_dummy; do
8563 IFS=$lt_save_ifs
8564 test -z "$ac_dir" && ac_dir=.
8565 if test -f "$ac_dir/file"; then
8566 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8567 if test -n "$file_magic_test_file"; then
8568 case $deplibs_check_method in
8569 "file_magic "*)
8570 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8571 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8572 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8573 $EGREP "$file_magic_regex" > /dev/null; then
8574 :
8575 else
8576 cat <<_LT_EOF 1>&2
8577
8578*** Warning: the command libtool uses to detect shared libraries,
8579*** $file_magic_cmd, produces output that libtool cannot recognize.
8580*** The result is that libtool may fail to recognize shared libraries
8581*** as such. This will affect the creation of libtool libraries that
8582*** depend on shared libraries, but programs linked with such libtool
8583*** libraries will work regardless of this problem. Nevertheless, you
8584*** may want to report the problem to your system manager and/or to
8585*** bug-libtool@gnu.org
8586
8587_LT_EOF
8588 fi ;;
8589 esac
8590 fi
8591 break
8592 fi
8593 done
8594 IFS=$lt_save_ifs
8595 MAGIC_CMD=$lt_save_MAGIC_CMD
8596 ;;
8597esac
8598fi
8599
8600MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8601if test -n "$MAGIC_CMD"; then
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8603$as_echo "$MAGIC_CMD" >&6; }
8604else
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8606$as_echo "no" >&6; }
8607fi
8608
8609
8610 else
8611 MAGIC_CMD=:
8612 fi
8613fi
8614
8615 fi
8616 ;;
8617esac
8618
8619# Use C for the default configuration in the libtool script
8620
8621lt_save_CC=$CC
8622ac_ext=c
8623ac_cpp='$CPP $CPPFLAGS'
8624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8626ac_compiler_gnu=$ac_cv_c_compiler_gnu
8627
8628
8629# Source file extension for C test sources.
8630ac_ext=c
8631
8632# Object file extension for compiled C test sources.
8633objext=o
8634objext=$objext
8635
8636# Code to be used in simple compile tests
8637lt_simple_compile_test_code="int some_variable = 0;"
8638
8639# Code to be used in simple link tests
8640lt_simple_link_test_code='int main(){return(0);}'
8641
8642
8643
8644
8645
8646
8647
8648# If no C compiler was specified, use CC.
8649LTCC=${LTCC-"$CC"}
8650
8651# If no C compiler flags were specified, use CFLAGS.
8652LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8653
8654# Allow CC to be a program name with arguments.
8655compiler=$CC
8656
8657# Save the default compiler, since it gets overwritten when the other
8658# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8659compiler_DEFAULT=$CC
8660
8661# save warnings/boilerplate of simple test code
8662ac_outfile=conftest.$ac_objext
8663echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8664eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8665_lt_compiler_boilerplate=`cat conftest.err`
8666$RM conftest*
8667
8668ac_outfile=conftest.$ac_objext
8669echo "$lt_simple_link_test_code" >conftest.$ac_ext
8670eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8671_lt_linker_boilerplate=`cat conftest.err`
8672$RM -r conftest*
8673
8674
8675if test -n "$compiler"; then
8676
8677lt_prog_compiler_no_builtin_flag=
8678
8679if test yes = "$GCC"; then
8680 case $cc_basename in
8681 nvcc*)
8682 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8683 *)
8684 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8685 esac
8686
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8688$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8689if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8690 $as_echo_n "(cached) " >&6
8691else
8692 lt_cv_prog_compiler_rtti_exceptions=no
8693 ac_outfile=conftest.$ac_objext
8694 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8695 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8696 # Insert the option either (1) after the last *FLAGS variable, or
8697 # (2) before a word containing "conftest.", or (3) at the end.
8698 # Note that $ac_compile itself does not contain backslashes and begins
8699 # with a dollar sign (not a hyphen), so the echo should work correctly.
8700 # The option is referenced via a variable to avoid confusing sed.
8701 lt_compile=`echo "$ac_compile" | $SED \
8702 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8703 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8704 -e 's:$: $lt_compiler_flag:'`
8705 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8706 (eval "$lt_compile" 2>conftest.err)
8707 ac_status=$?
8708 cat conftest.err >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 if (exit $ac_status) && test -s "$ac_outfile"; then
8711 # The compiler can only warn and ignore the option if not recognized
8712 # So say no if there are warnings other than the usual output.
8713 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8714 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8715 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8716 lt_cv_prog_compiler_rtti_exceptions=yes
8717 fi
8718 fi
8719 $RM conftest*
8720
8721fi
8722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8723$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8724
8725if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8726 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8727else
8728 :
8729fi
8730
8731fi
8732
8733
8734
8735
8736
8737
8738 lt_prog_compiler_wl=
8739lt_prog_compiler_pic=
8740lt_prog_compiler_static=
8741
8742
8743 if test yes = "$GCC"; then
8744 lt_prog_compiler_wl='-Wl,'
8745 lt_prog_compiler_static='-static'
8746
8747 case $host_os in
8748 aix*)
8749 # All AIX code is PIC.
8750 if test ia64 = "$host_cpu"; then
8751 # AIX 5 now supports IA64 processor
8752 lt_prog_compiler_static='-Bstatic'
8753 fi
8754 lt_prog_compiler_pic='-fPIC'
8755 ;;
8756
8757 amigaos*)
8758 case $host_cpu in
8759 powerpc)
8760 # see comment about AmigaOS4 .so support
8761 lt_prog_compiler_pic='-fPIC'
8762 ;;
8763 m68k)
8764 # FIXME: we need at least 68020 code to build shared libraries, but
8765 # adding the '-m68020' flag to GCC prevents building anything better,
8766 # like '-m68040'.
8767 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8768 ;;
8769 esac
8770 ;;
8771
8772 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8773 # PIC is the default for these OSes.
8774 ;;
8775
8776 mingw* | cygwin* | pw32* | os2* | cegcc*)
8777 # This hack is so that the source file can tell whether it is being
8778 # built for inclusion in a dll (and should export symbols for example).
8779 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8780 # (--disable-auto-import) libraries
8781 lt_prog_compiler_pic='-DDLL_EXPORT'
8782 case $host_os in
8783 os2*)
8784 lt_prog_compiler_static='$wl-static'
8785 ;;
8786 esac
8787 ;;
8788
8789 darwin* | rhapsody*)
8790 # PIC is the default on this platform
8791 # Common symbols not allowed in MH_DYLIB files
8792 lt_prog_compiler_pic='-fno-common'
8793 ;;
8794
8795 haiku*)
8796 # PIC is the default for Haiku.
8797 # The "-static" flag exists, but is broken.
8798 lt_prog_compiler_static=
8799 ;;
8800
8801 hpux*)
8802 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8803 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8804 # sets the default TLS model and affects inlining.
8805 case $host_cpu in
8806 hppa*64*)
8807 # +Z the default
8808 ;;
8809 *)
8810 lt_prog_compiler_pic='-fPIC'
8811 ;;
8812 esac
8813 ;;
8814
8815 interix[3-9]*)
8816 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8817 # Instead, we relocate shared libraries at runtime.
8818 ;;
8819
8820 msdosdjgpp*)
8821 # Just because we use GCC doesn't mean we suddenly get shared libraries
8822 # on systems that don't support them.
8823 lt_prog_compiler_can_build_shared=no
8824 enable_shared=no
8825 ;;
8826
8827 *nto* | *qnx*)
8828 # QNX uses GNU C++, but need to define -shared option too, otherwise
8829 # it will coredump.
8830 lt_prog_compiler_pic='-fPIC -shared'
8831 ;;
8832
8833 sysv4*MP*)
8834 if test -d /usr/nec; then
8835 lt_prog_compiler_pic=-Kconform_pic
8836 fi
8837 ;;
8838
8839 *)
8840 lt_prog_compiler_pic='-fPIC'
8841 ;;
8842 esac
8843
8844 case $cc_basename in
8845 nvcc*) # Cuda Compiler Driver 2.2
8846 lt_prog_compiler_wl='-Xlinker '
8847 if test -n "$lt_prog_compiler_pic"; then
8848 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8849 fi
8850 ;;
8851 esac
8852 else
8853 # PORTME Check for flag to pass linker flags through the system compiler.
8854 case $host_os in
8855 aix*)
8856 lt_prog_compiler_wl='-Wl,'
8857 if test ia64 = "$host_cpu"; then
8858 # AIX 5 now supports IA64 processor
8859 lt_prog_compiler_static='-Bstatic'
8860 else
8861 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8862 fi
8863 ;;
8864
8865 darwin* | rhapsody*)
8866 # PIC is the default on this platform
8867 # Common symbols not allowed in MH_DYLIB files
8868 lt_prog_compiler_pic='-fno-common'
8869 case $cc_basename in
8870 nagfor*)
8871 # NAG Fortran compiler
8872 lt_prog_compiler_wl='-Wl,-Wl,,'
8873 lt_prog_compiler_pic='-PIC'
8874 lt_prog_compiler_static='-Bstatic'
8875 ;;
8876 esac
8877 ;;
8878
8879 mingw* | cygwin* | pw32* | os2* | cegcc*)
8880 # This hack is so that the source file can tell whether it is being
8881 # built for inclusion in a dll (and should export symbols for example).
8882 lt_prog_compiler_pic='-DDLL_EXPORT'
8883 case $host_os in
8884 os2*)
8885 lt_prog_compiler_static='$wl-static'
8886 ;;
8887 esac
8888 ;;
8889
8890 hpux9* | hpux10* | hpux11*)
8891 lt_prog_compiler_wl='-Wl,'
8892 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8893 # not for PA HP-UX.
8894 case $host_cpu in
8895 hppa*64*|ia64*)
8896 # +Z the default
8897 ;;
8898 *)
8899 lt_prog_compiler_pic='+Z'
8900 ;;
8901 esac
8902 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8903 lt_prog_compiler_static='$wl-a ${wl}archive'
8904 ;;
8905
8906 irix5* | irix6* | nonstopux*)
8907 lt_prog_compiler_wl='-Wl,'
8908 # PIC (with -KPIC) is the default.
8909 lt_prog_compiler_static='-non_shared'
8910 ;;
8911
8912 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8913 case $cc_basename in
8914 # old Intel for x86_64, which still supported -KPIC.
8915 ecc*)
8916 lt_prog_compiler_wl='-Wl,'
8917 lt_prog_compiler_pic='-KPIC'
8918 lt_prog_compiler_static='-static'
8919 ;;
8920 # icc used to be incompatible with GCC.
8921 # ICC 10 doesn't accept -KPIC any more.
8922 icc* | ifort*)
8923 lt_prog_compiler_wl='-Wl,'
8924 lt_prog_compiler_pic='-fPIC'
8925 lt_prog_compiler_static='-static'
8926 ;;
8927 # Lahey Fortran 8.1.
8928 lf95*)
8929 lt_prog_compiler_wl='-Wl,'
8930 lt_prog_compiler_pic='--shared'
8931 lt_prog_compiler_static='--static'
8932 ;;
8933 nagfor*)
8934 # NAG Fortran compiler
8935 lt_prog_compiler_wl='-Wl,-Wl,,'
8936 lt_prog_compiler_pic='-PIC'
8937 lt_prog_compiler_static='-Bstatic'
8938 ;;
8939 tcc*)
8940 # Fabrice Bellard et al's Tiny C Compiler
8941 lt_prog_compiler_wl='-Wl,'
8942 lt_prog_compiler_pic='-fPIC'
8943 lt_prog_compiler_static='-static'
8944 ;;
8945 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8946 # Portland Group compilers (*not* the Pentium gcc compiler,
8947 # which looks to be a dead project)
8948 lt_prog_compiler_wl='-Wl,'
8949 lt_prog_compiler_pic='-fpic'
8950 lt_prog_compiler_static='-Bstatic'
8951 ;;
8952 ccc*)
8953 lt_prog_compiler_wl='-Wl,'
8954 # All Alpha code is PIC.
8955 lt_prog_compiler_static='-non_shared'
8956 ;;
8957 xl* | bgxl* | bgf* | mpixl*)
8958 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8959 lt_prog_compiler_wl='-Wl,'
8960 lt_prog_compiler_pic='-qpic'
8961 lt_prog_compiler_static='-qstaticlink'
8962 ;;
8963 *)
8964 case `$CC -V 2>&1 | sed 5q` in
8965 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8966 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8967 lt_prog_compiler_pic='-KPIC'
8968 lt_prog_compiler_static='-Bstatic'
8969 lt_prog_compiler_wl=''
8970 ;;
8971 *Sun\ F* | *Sun*Fortran*)
8972 lt_prog_compiler_pic='-KPIC'
8973 lt_prog_compiler_static='-Bstatic'
8974 lt_prog_compiler_wl='-Qoption ld '
8975 ;;
8976 *Sun\ C*)
8977 # Sun C 5.9
8978 lt_prog_compiler_pic='-KPIC'
8979 lt_prog_compiler_static='-Bstatic'
8980 lt_prog_compiler_wl='-Wl,'
8981 ;;
8982 *Intel*\ [CF]*Compiler*)
8983 lt_prog_compiler_wl='-Wl,'
8984 lt_prog_compiler_pic='-fPIC'
8985 lt_prog_compiler_static='-static'
8986 ;;
8987 *Portland\ Group*)
8988 lt_prog_compiler_wl='-Wl,'
8989 lt_prog_compiler_pic='-fpic'
8990 lt_prog_compiler_static='-Bstatic'
8991 ;;
8992 esac
8993 ;;
8994 esac
8995 ;;
8996
8997 newsos6)
8998 lt_prog_compiler_pic='-KPIC'
8999 lt_prog_compiler_static='-Bstatic'
9000 ;;
9001
9002 *nto* | *qnx*)
9003 # QNX uses GNU C++, but need to define -shared option too, otherwise
9004 # it will coredump.
9005 lt_prog_compiler_pic='-fPIC -shared'
9006 ;;
9007
9008 osf3* | osf4* | osf5*)
9009 lt_prog_compiler_wl='-Wl,'
9010 # All OSF/1 code is PIC.
9011 lt_prog_compiler_static='-non_shared'
9012 ;;
9013
9014 rdos*)
9015 lt_prog_compiler_static='-non_shared'
9016 ;;
9017
9018 solaris*)
9019 lt_prog_compiler_pic='-KPIC'
9020 lt_prog_compiler_static='-Bstatic'
9021 case $cc_basename in
9022 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9023 lt_prog_compiler_wl='-Qoption ld ';;
9024 *)
9025 lt_prog_compiler_wl='-Wl,';;
9026 esac
9027 ;;
9028
9029 sunos4*)
9030 lt_prog_compiler_wl='-Qoption ld '
9031 lt_prog_compiler_pic='-PIC'
9032 lt_prog_compiler_static='-Bstatic'
9033 ;;
9034
9035 sysv4 | sysv4.2uw2* | sysv4.3*)
9036 lt_prog_compiler_wl='-Wl,'
9037 lt_prog_compiler_pic='-KPIC'
9038 lt_prog_compiler_static='-Bstatic'
9039 ;;
9040
9041 sysv4*MP*)
9042 if test -d /usr/nec; then
9043 lt_prog_compiler_pic='-Kconform_pic'
9044 lt_prog_compiler_static='-Bstatic'
9045 fi
9046 ;;
9047
9048 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9049 lt_prog_compiler_wl='-Wl,'
9050 lt_prog_compiler_pic='-KPIC'
9051 lt_prog_compiler_static='-Bstatic'
9052 ;;
9053
9054 unicos*)
9055 lt_prog_compiler_wl='-Wl,'
9056 lt_prog_compiler_can_build_shared=no
9057 ;;
9058
9059 uts4*)
9060 lt_prog_compiler_pic='-pic'
9061 lt_prog_compiler_static='-Bstatic'
9062 ;;
9063
9064 *)
9065 lt_prog_compiler_can_build_shared=no
9066 ;;
9067 esac
9068 fi
9069
9070case $host_os in
9071 # For platforms that do not support PIC, -DPIC is meaningless:
9072 *djgpp*)
9073 lt_prog_compiler_pic=
9074 ;;
9075 *)
9076 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9077 ;;
9078esac
9079
9080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9081$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9082if ${lt_cv_prog_compiler_pic+:} false; then :
9083 $as_echo_n "(cached) " >&6
9084else
9085 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9086fi
9087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9088$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9089lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9090
9091#
9092# Check to make sure the PIC flag actually works.
9093#
9094if test -n "$lt_prog_compiler_pic"; then
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9096$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9097if ${lt_cv_prog_compiler_pic_works+:} false; then :
9098 $as_echo_n "(cached) " >&6
9099else
9100 lt_cv_prog_compiler_pic_works=no
9101 ac_outfile=conftest.$ac_objext
9102 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9103 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9104 # Insert the option either (1) after the last *FLAGS variable, or
9105 # (2) before a word containing "conftest.", or (3) at the end.
9106 # Note that $ac_compile itself does not contain backslashes and begins
9107 # with a dollar sign (not a hyphen), so the echo should work correctly.
9108 # The option is referenced via a variable to avoid confusing sed.
9109 lt_compile=`echo "$ac_compile" | $SED \
9110 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9111 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9112 -e 's:$: $lt_compiler_flag:'`
9113 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9114 (eval "$lt_compile" 2>conftest.err)
9115 ac_status=$?
9116 cat conftest.err >&5
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 if (exit $ac_status) && test -s "$ac_outfile"; then
9119 # The compiler can only warn and ignore the option if not recognized
9120 # So say no if there are warnings other than the usual output.
9121 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9122 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9123 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9124 lt_cv_prog_compiler_pic_works=yes
9125 fi
9126 fi
9127 $RM conftest*
9128
9129fi
9130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9131$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9132
9133if test yes = "$lt_cv_prog_compiler_pic_works"; then
9134 case $lt_prog_compiler_pic in
9135 "" | " "*) ;;
9136 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9137 esac
9138else
9139 lt_prog_compiler_pic=
9140 lt_prog_compiler_can_build_shared=no
9141fi
9142
9143fi
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155#
9156# Check to make sure the static flag actually works.
9157#
9158wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9160$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9161if ${lt_cv_prog_compiler_static_works+:} false; then :
9162 $as_echo_n "(cached) " >&6
9163else
9164 lt_cv_prog_compiler_static_works=no
9165 save_LDFLAGS=$LDFLAGS
9166 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9167 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9168 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9169 # The linker can only warn and ignore the option if not recognized
9170 # So say no if there are warnings
9171 if test -s conftest.err; then
9172 # Append any errors to the config.log.
9173 cat conftest.err 1>&5
9174 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9175 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9176 if diff conftest.exp conftest.er2 >/dev/null; then
9177 lt_cv_prog_compiler_static_works=yes
9178 fi
9179 else
9180 lt_cv_prog_compiler_static_works=yes
9181 fi
9182 fi
9183 $RM -r conftest*
9184 LDFLAGS=$save_LDFLAGS
9185
9186fi
9187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9188$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9189
9190if test yes = "$lt_cv_prog_compiler_static_works"; then
9191 :
9192else
9193 lt_prog_compiler_static=
9194fi
9195
9196
9197
9198
9199
9200
9201
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9203$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9204if ${lt_cv_prog_compiler_c_o+:} false; then :
9205 $as_echo_n "(cached) " >&6
9206else
9207 lt_cv_prog_compiler_c_o=no
9208 $RM -r conftest 2>/dev/null
9209 mkdir conftest
9210 cd conftest
9211 mkdir out
9212 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9213
9214 lt_compiler_flag="-o out/conftest2.$ac_objext"
9215 # Insert the option either (1) after the last *FLAGS variable, or
9216 # (2) before a word containing "conftest.", or (3) at the end.
9217 # Note that $ac_compile itself does not contain backslashes and begins
9218 # with a dollar sign (not a hyphen), so the echo should work correctly.
9219 lt_compile=`echo "$ac_compile" | $SED \
9220 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9221 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9222 -e 's:$: $lt_compiler_flag:'`
9223 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9224 (eval "$lt_compile" 2>out/conftest.err)
9225 ac_status=$?
9226 cat out/conftest.err >&5
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9229 then
9230 # The compiler can only warn and ignore the option if not recognized
9231 # So say no if there are warnings
9232 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9233 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9234 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9235 lt_cv_prog_compiler_c_o=yes
9236 fi
9237 fi
9238 chmod u+w . 2>&5
9239 $RM conftest*
9240 # SGI C++ compiler will create directory out/ii_files/ for
9241 # template instantiation
9242 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9243 $RM out/* && rmdir out
9244 cd ..
9245 $RM -r conftest
9246 $RM conftest*
9247
9248fi
9249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9250$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9251
9252
9253
9254
9255
9256
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9258$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9259if ${lt_cv_prog_compiler_c_o+:} false; then :
9260 $as_echo_n "(cached) " >&6
9261else
9262 lt_cv_prog_compiler_c_o=no
9263 $RM -r conftest 2>/dev/null
9264 mkdir conftest
9265 cd conftest
9266 mkdir out
9267 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9268
9269 lt_compiler_flag="-o out/conftest2.$ac_objext"
9270 # Insert the option either (1) after the last *FLAGS variable, or
9271 # (2) before a word containing "conftest.", or (3) at the end.
9272 # Note that $ac_compile itself does not contain backslashes and begins
9273 # with a dollar sign (not a hyphen), so the echo should work correctly.
9274 lt_compile=`echo "$ac_compile" | $SED \
9275 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9276 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9277 -e 's:$: $lt_compiler_flag:'`
9278 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9279 (eval "$lt_compile" 2>out/conftest.err)
9280 ac_status=$?
9281 cat out/conftest.err >&5
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9284 then
9285 # The compiler can only warn and ignore the option if not recognized
9286 # So say no if there are warnings
9287 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9288 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9289 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9290 lt_cv_prog_compiler_c_o=yes
9291 fi
9292 fi
9293 chmod u+w . 2>&5
9294 $RM conftest*
9295 # SGI C++ compiler will create directory out/ii_files/ for
9296 # template instantiation
9297 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9298 $RM out/* && rmdir out
9299 cd ..
9300 $RM -r conftest
9301 $RM conftest*
9302
9303fi
9304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9305$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9306
9307
9308
9309
9310hard_links=nottested
9311if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9312 # do not overwrite the value of need_locks provided by the user
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9314$as_echo_n "checking if we can lock with hard links... " >&6; }
9315 hard_links=yes
9316 $RM conftest*
9317 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9318 touch conftest.a
9319 ln conftest.a conftest.b 2>&5 || hard_links=no
9320 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9322$as_echo "$hard_links" >&6; }
9323 if test no = "$hard_links"; then
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9325$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9326 need_locks=warn
9327 fi
9328else
9329 need_locks=no
9330fi
9331
9332
9333
9334
9335
9336
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9338$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9339
9340 runpath_var=
9341 allow_undefined_flag=
9342 always_export_symbols=no
9343 archive_cmds=
9344 archive_expsym_cmds=
9345 compiler_needs_object=no
9346 enable_shared_with_static_runtimes=no
9347 export_dynamic_flag_spec=
9348 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9349 hardcode_automatic=no
9350 hardcode_direct=no
9351 hardcode_direct_absolute=no
9352 hardcode_libdir_flag_spec=
9353 hardcode_libdir_separator=
9354 hardcode_minus_L=no
9355 hardcode_shlibpath_var=unsupported
9356 inherit_rpath=no
9357 link_all_deplibs=unknown
9358 module_cmds=
9359 module_expsym_cmds=
9360 old_archive_from_new_cmds=
9361 old_archive_from_expsyms_cmds=
9362 thread_safe_flag_spec=
9363 whole_archive_flag_spec=
9364 # include_expsyms should be a list of space-separated symbols to be *always*
9365 # included in the symbol list
9366 include_expsyms=
9367 # exclude_expsyms can be an extended regexp of symbols to exclude
9368 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9369 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9370 # as well as any symbol that contains 'd'.
9371 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9372 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9373 # platforms (ab)use it in PIC code, but their linkers get confused if
9374 # the symbol is explicitly referenced. Since portable code cannot
9375 # rely on this symbol name, it's probably fine to never include it in
9376 # preloaded symbol tables.
9377 # Exclude shared library initialization/finalization symbols.
9378 extract_expsyms_cmds=
9379
9380 case $host_os in
9381 cygwin* | mingw* | pw32* | cegcc*)
9382 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9383 # When not using gcc, we currently assume that we are using
9384 # Microsoft Visual C++.
9385 if test yes != "$GCC"; then
9386 with_gnu_ld=no
9387 fi
9388 ;;
9389 interix*)
9390 # we just hope/assume this is gcc and not c89 (= MSVC++)
9391 with_gnu_ld=yes
9392 ;;
9393 openbsd* | bitrig*)
9394 with_gnu_ld=no
9395 ;;
9396 esac
9397
9398 ld_shlibs=yes
9399
9400 # On some targets, GNU ld is compatible enough with the native linker
9401 # that we're better off using the native interface for both.
9402 lt_use_gnu_ld_interface=no
9403 if test yes = "$with_gnu_ld"; then
9404 case $host_os in
9405 aix*)
9406 # The AIX port of GNU ld has always aspired to compatibility
9407 # with the native linker. However, as the warning in the GNU ld
9408 # block says, versions before 2.19.5* couldn't really create working
9409 # shared libraries, regardless of the interface used.
9410 case `$LD -v 2>&1` in
9411 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9412 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9413 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9414 *)
9415 lt_use_gnu_ld_interface=yes
9416 ;;
9417 esac
9418 ;;
9419 *)
9420 lt_use_gnu_ld_interface=yes
9421 ;;
9422 esac
9423 fi
9424
9425 if test yes = "$lt_use_gnu_ld_interface"; then
9426 # If archive_cmds runs LD, not CC, wlarc should be empty
9427 wlarc='$wl'
9428
9429 # Set some defaults for GNU ld with shared library support. These
9430 # are reset later if shared libraries are not supported. Putting them
9431 # here allows them to be overridden if necessary.
9432 runpath_var=LD_RUN_PATH
9433 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9434 export_dynamic_flag_spec='$wl--export-dynamic'
9435 # ancient GNU ld didn't support --whole-archive et. al.
9436 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9437 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9438 else
9439 whole_archive_flag_spec=
9440 fi
9441 supports_anon_versioning=no
9442 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9443 *GNU\ gold*) supports_anon_versioning=yes ;;
9444 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9445 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9446 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9447 *\ 2.11.*) ;; # other 2.11 versions
9448 *) supports_anon_versioning=yes ;;
9449 esac
9450
9451 # See if GNU ld supports shared libraries.
9452 case $host_os in
9453 aix[3-9]*)
9454 # On AIX/PPC, the GNU linker is very broken
9455 if test ia64 != "$host_cpu"; then
9456 ld_shlibs=no
9457 cat <<_LT_EOF 1>&2
9458
9459*** Warning: the GNU linker, at least up to release 2.19, is reported
9460*** to be unable to reliably create shared libraries on AIX.
9461*** Therefore, libtool is disabling shared libraries support. If you
9462*** really care for shared libraries, you may want to install binutils
9463*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9464*** You will then need to restart the configuration process.
9465
9466_LT_EOF
9467 fi
9468 ;;
9469
9470 amigaos*)
9471 case $host_cpu in
9472 powerpc)
9473 # see comment about AmigaOS4 .so support
9474 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9475 archive_expsym_cmds=''
9476 ;;
9477 m68k)
9478 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)'
9479 hardcode_libdir_flag_spec='-L$libdir'
9480 hardcode_minus_L=yes
9481 ;;
9482 esac
9483 ;;
9484
9485 beos*)
9486 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9487 allow_undefined_flag=unsupported
9488 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9489 # support --undefined. This deserves some investigation. FIXME
9490 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9491 else
9492 ld_shlibs=no
9493 fi
9494 ;;
9495
9496 cygwin* | mingw* | pw32* | cegcc*)
9497 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9498 # as there is no search path for DLLs.
9499 hardcode_libdir_flag_spec='-L$libdir'
9500 export_dynamic_flag_spec='$wl--export-all-symbols'
9501 allow_undefined_flag=unsupported
9502 always_export_symbols=no
9503 enable_shared_with_static_runtimes=yes
9504 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'
9505 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9506
9507 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9508 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9509 # If the export-symbols file already is a .def file, use it as
9510 # is; otherwise, prepend EXPORTS...
9511 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9512 cp $export_symbols $output_objdir/$soname.def;
9513 else
9514 echo EXPORTS > $output_objdir/$soname.def;
9515 cat $export_symbols >> $output_objdir/$soname.def;
9516 fi~
9517 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9518 else
9519 ld_shlibs=no
9520 fi
9521 ;;
9522
9523 haiku*)
9524 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9525 link_all_deplibs=yes
9526 ;;
9527
9528 os2*)
9529 hardcode_libdir_flag_spec='-L$libdir'
9530 hardcode_minus_L=yes
9531 allow_undefined_flag=unsupported
9532 shrext_cmds=.dll
9533 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9534 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9535 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9536 $ECHO EXPORTS >> $output_objdir/$libname.def~
9537 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9538 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9539 emximp -o $lib $output_objdir/$libname.def'
9540 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9541 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9542 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9543 $ECHO EXPORTS >> $output_objdir/$libname.def~
9544 prefix_cmds="$SED"~
9545 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9546 prefix_cmds="$prefix_cmds -e 1d";
9547 fi~
9548 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9549 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9550 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9551 emximp -o $lib $output_objdir/$libname.def'
9552 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9553 enable_shared_with_static_runtimes=yes
9554 ;;
9555
9556 interix[3-9]*)
9557 hardcode_direct=no
9558 hardcode_shlibpath_var=no
9559 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9560 export_dynamic_flag_spec='$wl-E'
9561 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9562 # Instead, shared libraries are loaded at an image base (0x10000000 by
9563 # default) and relocated if they conflict, which is a slow very memory
9564 # consuming and fragmenting process. To avoid this, we pick a random,
9565 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9566 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9567 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9568 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'
9569 ;;
9570
9571 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9572 tmp_diet=no
9573 if test linux-dietlibc = "$host_os"; then
9574 case $cc_basename in
9575 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9576 esac
9577 fi
9578 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9579 && test no = "$tmp_diet"
9580 then
9581 tmp_addflag=' $pic_flag'
9582 tmp_sharedflag='-shared'
9583 case $cc_basename,$host_cpu in
9584 pgcc*) # Portland Group C compiler
9585 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'
9586 tmp_addflag=' $pic_flag'
9587 ;;
9588 pgf77* | pgf90* | pgf95* | pgfortran*)
9589 # Portland Group f77 and f90 compilers
9590 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'
9591 tmp_addflag=' $pic_flag -Mnomain' ;;
9592 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9593 tmp_addflag=' -i_dynamic' ;;
9594 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9595 tmp_addflag=' -i_dynamic -nofor_main' ;;
9596 ifc* | ifort*) # Intel Fortran compiler
9597 tmp_addflag=' -nofor_main' ;;
9598 lf95*) # Lahey Fortran 8.1
9599 whole_archive_flag_spec=
9600 tmp_sharedflag='--shared' ;;
9601 nagfor*) # NAGFOR 5.3
9602 tmp_sharedflag='-Wl,-shared' ;;
9603 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9604 tmp_sharedflag='-qmkshrobj'
9605 tmp_addflag= ;;
9606 nvcc*) # Cuda Compiler Driver 2.2
9607 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'
9608 compiler_needs_object=yes
9609 ;;
9610 esac
9611 case `$CC -V 2>&1 | sed 5q` in
9612 *Sun\ C*) # Sun C 5.9
9613 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'
9614 compiler_needs_object=yes
9615 tmp_sharedflag='-G' ;;
9616 *Sun\ F*) # Sun Fortran 8.3
9617 tmp_sharedflag='-G' ;;
9618 esac
9619 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9620
9621 if test yes = "$supports_anon_versioning"; then
9622 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9623 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9624 echo "local: *; };" >> $output_objdir/$libname.ver~
9625 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9626 fi
9627
9628 case $cc_basename in
9629 tcc*)
9630 export_dynamic_flag_spec='-rdynamic'
9631 ;;
9632 xlf* | bgf* | bgxlf* | mpixlf*)
9633 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9634 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9635 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9636 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9637 if test yes = "$supports_anon_versioning"; then
9638 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9639 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9640 echo "local: *; };" >> $output_objdir/$libname.ver~
9641 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9642 fi
9643 ;;
9644 esac
9645 else
9646 ld_shlibs=no
9647 fi
9648 ;;
9649
9650 netbsd*)
9651 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9652 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9653 wlarc=
9654 else
9655 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9656 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9657 fi
9658 ;;
9659
9660 solaris*)
9661 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9662 ld_shlibs=no
9663 cat <<_LT_EOF 1>&2
9664
9665*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9666*** create shared libraries on Solaris systems. Therefore, libtool
9667*** is disabling shared libraries support. We urge you to upgrade GNU
9668*** binutils to release 2.9.1 or newer. Another option is to modify
9669*** your PATH or compiler configuration so that the native linker is
9670*** used, and then restart.
9671
9672_LT_EOF
9673 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9674 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9675 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9676 else
9677 ld_shlibs=no
9678 fi
9679 ;;
9680
9681 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9682 case `$LD -v 2>&1` in
9683 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9684 ld_shlibs=no
9685 cat <<_LT_EOF 1>&2
9686
9687*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9688*** reliably create shared libraries on SCO systems. Therefore, libtool
9689*** is disabling shared libraries support. We urge you to upgrade GNU
9690*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9691*** your PATH or compiler configuration so that the native linker is
9692*** used, and then restart.
9693
9694_LT_EOF
9695 ;;
9696 *)
9697 # For security reasons, it is highly recommended that you always
9698 # use absolute paths for naming shared libraries, and exclude the
9699 # DT_RUNPATH tag from executables and libraries. But doing so
9700 # requires that you compile everything twice, which is a pain.
9701 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9702 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9703 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9704 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9705 else
9706 ld_shlibs=no
9707 fi
9708 ;;
9709 esac
9710 ;;
9711
9712 sunos4*)
9713 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9714 wlarc=
9715 hardcode_direct=yes
9716 hardcode_shlibpath_var=no
9717 ;;
9718
9719 *)
9720 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9721 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9722 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9723 else
9724 ld_shlibs=no
9725 fi
9726 ;;
9727 esac
9728
9729 if test no = "$ld_shlibs"; then
9730 runpath_var=
9731 hardcode_libdir_flag_spec=
9732 export_dynamic_flag_spec=
9733 whole_archive_flag_spec=
9734 fi
9735 else
9736 # PORTME fill in a description of your system's linker (not GNU ld)
9737 case $host_os in
9738 aix3*)
9739 allow_undefined_flag=unsupported
9740 always_export_symbols=yes
9741 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'
9742 # Note: this linker hardcodes the directories in LIBPATH if there
9743 # are no directories specified by -L.
9744 hardcode_minus_L=yes
9745 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9746 # Neither direct hardcoding nor static linking is supported with a
9747 # broken collect2.
9748 hardcode_direct=unsupported
9749 fi
9750 ;;
9751
9752 aix[4-9]*)
9753 if test ia64 = "$host_cpu"; then
9754 # On IA64, the linker does run time linking by default, so we don't
9755 # have to do anything special.
9756 aix_use_runtimelinking=no
9757 exp_sym_flag='-Bexport'
9758 no_entry_flag=
9759 else
9760 # If we're using GNU nm, then we don't want the "-C" option.
9761 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9762 # Without the "-l" option, or with the "-B" option, AIX nm treats
9763 # weak defined symbols like other global defined symbols, whereas
9764 # GNU nm marks them as "W".
9765 # While the 'weak' keyword is ignored in the Export File, we need
9766 # it in the Import File for the 'aix-soname' feature, so we have
9767 # to replace the "-B" option with "-P" for AIX nm.
9768 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9769 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9770 else
9771 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9772 fi
9773 aix_use_runtimelinking=no
9774
9775 # Test if we are trying to use run time linking or normal
9776 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9777 # have runtime linking enabled, and use it for executables.
9778 # For shared libraries, we enable/disable runtime linking
9779 # depending on the kind of the shared library created -
9780 # when "with_aix_soname,aix_use_runtimelinking" is:
9781 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9782 # "aix,yes" lib.so shared, rtl:yes, for executables
9783 # lib.a static archive
9784 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9785 # lib.a(lib.so.V) shared, rtl:no, for executables
9786 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9787 # lib.a(lib.so.V) shared, rtl:no
9788 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9789 # lib.a static archive
9790 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9791 for ld_flag in $LDFLAGS; do
9792 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9793 aix_use_runtimelinking=yes
9794 break
9795 fi
9796 done
9797 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9798 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9799 # so we don't have lib.a shared libs to link our executables.
9800 # We have to force runtime linking in this case.
9801 aix_use_runtimelinking=yes
9802 LDFLAGS="$LDFLAGS -Wl,-brtl"
9803 fi
9804 ;;
9805 esac
9806
9807 exp_sym_flag='-bexport'
9808 no_entry_flag='-bnoentry'
9809 fi
9810
9811 # When large executables or shared objects are built, AIX ld can
9812 # have problems creating the table of contents. If linking a library
9813 # or program results in "error TOC overflow" add -mminimal-toc to
9814 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9815 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9816
9817 archive_cmds=''
9818 hardcode_direct=yes
9819 hardcode_direct_absolute=yes
9820 hardcode_libdir_separator=':'
9821 link_all_deplibs=yes
9822 file_list_spec='$wl-f,'
9823 case $with_aix_soname,$aix_use_runtimelinking in
9824 aix,*) ;; # traditional, no import file
9825 svr4,* | *,yes) # use import file
9826 # The Import File defines what to hardcode.
9827 hardcode_direct=no
9828 hardcode_direct_absolute=no
9829 ;;
9830 esac
9831
9832 if test yes = "$GCC"; then
9833 case $host_os in aix4.[012]|aix4.[012].*)
9834 # We only want to do this on AIX 4.2 and lower, the check
9835 # below for broken collect2 doesn't work under 4.3+
9836 collect2name=`$CC -print-prog-name=collect2`
9837 if test -f "$collect2name" &&
9838 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9839 then
9840 # We have reworked collect2
9841 :
9842 else
9843 # We have old collect2
9844 hardcode_direct=unsupported
9845 # It fails to find uninstalled libraries when the uninstalled
9846 # path is not listed in the libpath. Setting hardcode_minus_L
9847 # to unsupported forces relinking
9848 hardcode_minus_L=yes
9849 hardcode_libdir_flag_spec='-L$libdir'
9850 hardcode_libdir_separator=
9851 fi
9852 ;;
9853 esac
9854 shared_flag='-shared'
9855 if test yes = "$aix_use_runtimelinking"; then
9856 shared_flag="$shared_flag "'$wl-G'
9857 fi
9858 # Need to ensure runtime linking is disabled for the traditional
9859 # shared library, or the linker may eventually find shared libraries
9860 # /with/ Import File - we do not want to mix them.
9861 shared_flag_aix='-shared'
9862 shared_flag_svr4='-shared $wl-G'
9863 else
9864 # not using gcc
9865 if test ia64 = "$host_cpu"; then
9866 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9867 # chokes on -Wl,-G. The following line is correct:
9868 shared_flag='-G'
9869 else
9870 if test yes = "$aix_use_runtimelinking"; then
9871 shared_flag='$wl-G'
9872 else
9873 shared_flag='$wl-bM:SRE'
9874 fi
9875 shared_flag_aix='$wl-bM:SRE'
9876 shared_flag_svr4='$wl-G'
9877 fi
9878 fi
9879
9880 export_dynamic_flag_spec='$wl-bexpall'
9881 # It seems that -bexpall does not export symbols beginning with
9882 # underscore (_), so it is better to generate a list of symbols to export.
9883 always_export_symbols=yes
9884 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9885 # Warning - without using the other runtime loading flags (-brtl),
9886 # -berok will link without error, but may produce a broken library.
9887 allow_undefined_flag='-berok'
9888 # Determine the default libpath from the value encoded in an
9889 # empty executable.
9890 if test set = "${lt_cv_aix_libpath+set}"; then
9891 aix_libpath=$lt_cv_aix_libpath
9892else
9893 if ${lt_cv_aix_libpath_+:} false; then :
9894 $as_echo_n "(cached) " >&6
9895else
9896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9897/* end confdefs.h. */
9898
9899int
9900main ()
9901{
9902
9903 ;
9904 return 0;
9905}
9906_ACEOF
9907if ac_fn_c_try_link "$LINENO"; then :
9908
9909 lt_aix_libpath_sed='
9910 /Import File Strings/,/^$/ {
9911 /^0/ {
9912 s/^0 *\([^ ]*\) *$/\1/
9913 p
9914 }
9915 }'
9916 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9917 # Check for a 64-bit object if we didn't find anything.
9918 if test -z "$lt_cv_aix_libpath_"; then
9919 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9920 fi
9921fi
9922rm -f core conftest.err conftest.$ac_objext \
9923 conftest$ac_exeext conftest.$ac_ext
9924 if test -z "$lt_cv_aix_libpath_"; then
9925 lt_cv_aix_libpath_=/usr/lib:/lib
9926 fi
9927
9928fi
9929
9930 aix_libpath=$lt_cv_aix_libpath_
9931fi
9932
9933 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9934 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9935 else
9936 if test ia64 = "$host_cpu"; then
9937 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9938 allow_undefined_flag="-z nodefs"
9939 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"
9940 else
9941 # Determine the default libpath from the value encoded in an
9942 # empty executable.
9943 if test set = "${lt_cv_aix_libpath+set}"; then
9944 aix_libpath=$lt_cv_aix_libpath
9945else
9946 if ${lt_cv_aix_libpath_+:} false; then :
9947 $as_echo_n "(cached) " >&6
9948else
9949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9950/* end confdefs.h. */
9951
9952int
9953main ()
9954{
9955
9956 ;
9957 return 0;
9958}
9959_ACEOF
9960if ac_fn_c_try_link "$LINENO"; then :
9961
9962 lt_aix_libpath_sed='
9963 /Import File Strings/,/^$/ {
9964 /^0/ {
9965 s/^0 *\([^ ]*\) *$/\1/
9966 p
9967 }
9968 }'
9969 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9970 # Check for a 64-bit object if we didn't find anything.
9971 if test -z "$lt_cv_aix_libpath_"; then
9972 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9973 fi
9974fi
9975rm -f core conftest.err conftest.$ac_objext \
9976 conftest$ac_exeext conftest.$ac_ext
9977 if test -z "$lt_cv_aix_libpath_"; then
9978 lt_cv_aix_libpath_=/usr/lib:/lib
9979 fi
9980
9981fi
9982
9983 aix_libpath=$lt_cv_aix_libpath_
9984fi
9985
9986 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9987 # Warning - without using the other run time loading flags,
9988 # -berok will link without error, but may produce a broken library.
9989 no_undefined_flag=' $wl-bernotok'
9990 allow_undefined_flag=' $wl-berok'
9991 if test yes = "$with_gnu_ld"; then
9992 # We only use this code for GNU lds that support --whole-archive.
9993 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9994 else
9995 # Exported symbols can be pulled into shared objects from archives
9996 whole_archive_flag_spec='$convenience'
9997 fi
9998 archive_cmds_need_lc=yes
9999 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10000 # -brtl affects multiple linker settings, -berok does not and is overridden later
10001 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10002 if test svr4 != "$with_aix_soname"; then
10003 # This is similar to how AIX traditionally builds its shared libraries.
10004 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10005 fi
10006 if test aix != "$with_aix_soname"; then
10007 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10008 else
10009 # used by -dlpreopen to get the symbols
10010 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10011 fi
10012 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10013 fi
10014 fi
10015 ;;
10016
10017 amigaos*)
10018 case $host_cpu in
10019 powerpc)
10020 # see comment about AmigaOS4 .so support
10021 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10022 archive_expsym_cmds=''
10023 ;;
10024 m68k)
10025 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)'
10026 hardcode_libdir_flag_spec='-L$libdir'
10027 hardcode_minus_L=yes
10028 ;;
10029 esac
10030 ;;
10031
10032 bsdi[45]*)
10033 export_dynamic_flag_spec=-rdynamic
10034 ;;
10035
10036 cygwin* | mingw* | pw32* | cegcc*)
10037 # When not using gcc, we currently assume that we are using
10038 # Microsoft Visual C++.
10039 # hardcode_libdir_flag_spec is actually meaningless, as there is
10040 # no search path for DLLs.
10041 case $cc_basename in
10042 cl*)
10043 # Native MSVC
10044 hardcode_libdir_flag_spec=' '
10045 allow_undefined_flag=unsupported
10046 always_export_symbols=yes
10047 file_list_spec='@'
10048 # Tell ltmain to make .lib files, not .a files.
10049 libext=lib
10050 # Tell ltmain to make .dll files, not .so files.
10051 shrext_cmds=.dll
10052 # FIXME: Setting linknames here is a bad hack.
10053 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10054 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10055 cp "$export_symbols" "$output_objdir/$soname.def";
10056 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10057 else
10058 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10059 fi~
10060 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10061 linknames='
10062 # The linker will not automatically build a static lib if we build a DLL.
10063 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10064 enable_shared_with_static_runtimes=yes
10065 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10066 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10067 # Don't use ranlib
10068 old_postinstall_cmds='chmod 644 $oldlib'
10069 postlink_cmds='lt_outputfile="@OUTPUT@"~
10070 lt_tool_outputfile="@TOOL_OUTPUT@"~
10071 case $lt_outputfile in
10072 *.exe|*.EXE) ;;
10073 *)
10074 lt_outputfile=$lt_outputfile.exe
10075 lt_tool_outputfile=$lt_tool_outputfile.exe
10076 ;;
10077 esac~
10078 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10079 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10080 $RM "$lt_outputfile.manifest";
10081 fi'
10082 ;;
10083 *)
10084 # Assume MSVC wrapper
10085 hardcode_libdir_flag_spec=' '
10086 allow_undefined_flag=unsupported
10087 # Tell ltmain to make .lib files, not .a files.
10088 libext=lib
10089 # Tell ltmain to make .dll files, not .so files.
10090 shrext_cmds=.dll
10091 # FIXME: Setting linknames here is a bad hack.
10092 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10093 # The linker will automatically build a .lib file if we build a DLL.
10094 old_archive_from_new_cmds='true'
10095 # FIXME: Should let the user specify the lib program.
10096 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10097 enable_shared_with_static_runtimes=yes
10098 ;;
10099 esac
10100 ;;
10101
10102 darwin* | rhapsody*)
10103
10104
10105 archive_cmds_need_lc=no
10106 hardcode_direct=no
10107 hardcode_automatic=yes
10108 hardcode_shlibpath_var=unsupported
10109 if test yes = "$lt_cv_ld_force_load"; then
10110 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\"`'
10111
10112 else
10113 whole_archive_flag_spec=''
10114 fi
10115 link_all_deplibs=yes
10116 allow_undefined_flag=$_lt_dar_allow_undefined
10117 case $cc_basename in
10118 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10119 *) _lt_dar_can_shared=$GCC ;;
10120 esac
10121 if test yes = "$_lt_dar_can_shared"; then
10122 output_verbose_link_cmd=func_echo_all
10123 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10124 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10125 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"
10126 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"
10127
10128 else
10129 ld_shlibs=no
10130 fi
10131
10132 ;;
10133
10134 dgux*)
10135 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10136 hardcode_libdir_flag_spec='-L$libdir'
10137 hardcode_shlibpath_var=no
10138 ;;
10139
10140 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10141 # support. Future versions do this automatically, but an explicit c++rt0.o
10142 # does not break anything, and helps significantly (at the cost of a little
10143 # extra space).
10144 freebsd2.2*)
10145 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10146 hardcode_libdir_flag_spec='-R$libdir'
10147 hardcode_direct=yes
10148 hardcode_shlibpath_var=no
10149 ;;
10150
10151 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10152 freebsd2.*)
10153 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10154 hardcode_direct=yes
10155 hardcode_minus_L=yes
10156 hardcode_shlibpath_var=no
10157 ;;
10158
10159 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10160 freebsd* | dragonfly*)
10161 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10162 hardcode_libdir_flag_spec='-R$libdir'
10163 hardcode_direct=yes
10164 hardcode_shlibpath_var=no
10165 ;;
10166
10167 hpux9*)
10168 if test yes = "$GCC"; then
10169 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10170 else
10171 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10172 fi
10173 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10174 hardcode_libdir_separator=:
10175 hardcode_direct=yes
10176
10177 # hardcode_minus_L: Not really in the search PATH,
10178 # but as the default location of the library.
10179 hardcode_minus_L=yes
10180 export_dynamic_flag_spec='$wl-E'
10181 ;;
10182
10183 hpux10*)
10184 if test yes,no = "$GCC,$with_gnu_ld"; then
10185 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10186 else
10187 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10188 fi
10189 if test no = "$with_gnu_ld"; then
10190 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10191 hardcode_libdir_separator=:
10192 hardcode_direct=yes
10193 hardcode_direct_absolute=yes
10194 export_dynamic_flag_spec='$wl-E'
10195 # hardcode_minus_L: Not really in the search PATH,
10196 # but as the default location of the library.
10197 hardcode_minus_L=yes
10198 fi
10199 ;;
10200
10201 hpux11*)
10202 if test yes,no = "$GCC,$with_gnu_ld"; then
10203 case $host_cpu in
10204 hppa*64*)
10205 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10206 ;;
10207 ia64*)
10208 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10209 ;;
10210 *)
10211 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10212 ;;
10213 esac
10214 else
10215 case $host_cpu in
10216 hppa*64*)
10217 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10218 ;;
10219 ia64*)
10220 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10221 ;;
10222 *)
10223
10224 # Older versions of the 11.00 compiler do not understand -b yet
10225 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10227$as_echo_n "checking if $CC understands -b... " >&6; }
10228if ${lt_cv_prog_compiler__b+:} false; then :
10229 $as_echo_n "(cached) " >&6
10230else
10231 lt_cv_prog_compiler__b=no
10232 save_LDFLAGS=$LDFLAGS
10233 LDFLAGS="$LDFLAGS -b"
10234 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10235 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10236 # The linker can only warn and ignore the option if not recognized
10237 # So say no if there are warnings
10238 if test -s conftest.err; then
10239 # Append any errors to the config.log.
10240 cat conftest.err 1>&5
10241 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10242 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10243 if diff conftest.exp conftest.er2 >/dev/null; then
10244 lt_cv_prog_compiler__b=yes
10245 fi
10246 else
10247 lt_cv_prog_compiler__b=yes
10248 fi
10249 fi
10250 $RM -r conftest*
10251 LDFLAGS=$save_LDFLAGS
10252
10253fi
10254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10255$as_echo "$lt_cv_prog_compiler__b" >&6; }
10256
10257if test yes = "$lt_cv_prog_compiler__b"; then
10258 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10259else
10260 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10261fi
10262
10263 ;;
10264 esac
10265 fi
10266 if test no = "$with_gnu_ld"; then
10267 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10268 hardcode_libdir_separator=:
10269
10270 case $host_cpu in
10271 hppa*64*|ia64*)
10272 hardcode_direct=no
10273 hardcode_shlibpath_var=no
10274 ;;
10275 *)
10276 hardcode_direct=yes
10277 hardcode_direct_absolute=yes
10278 export_dynamic_flag_spec='$wl-E'
10279
10280 # hardcode_minus_L: Not really in the search PATH,
10281 # but as the default location of the library.
10282 hardcode_minus_L=yes
10283 ;;
10284 esac
10285 fi
10286 ;;
10287
10288 irix5* | irix6* | nonstopux*)
10289 if test yes = "$GCC"; then
10290 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'
10291 # Try to use the -exported_symbol ld option, if it does not
10292 # work, assume that -exports_file does not work either and
10293 # implicitly export all symbols.
10294 # This should be the same for all languages, so no per-tag cache variable.
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10296$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10297if ${lt_cv_irix_exported_symbol+:} false; then :
10298 $as_echo_n "(cached) " >&6
10299else
10300 save_LDFLAGS=$LDFLAGS
10301 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10303/* end confdefs.h. */
10304int foo (void) { return 0; }
10305_ACEOF
10306if ac_fn_c_try_link "$LINENO"; then :
10307 lt_cv_irix_exported_symbol=yes
10308else
10309 lt_cv_irix_exported_symbol=no
10310fi
10311rm -f core conftest.err conftest.$ac_objext \
10312 conftest$ac_exeext conftest.$ac_ext
10313 LDFLAGS=$save_LDFLAGS
10314fi
10315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10316$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10317 if test yes = "$lt_cv_irix_exported_symbol"; then
10318 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'
10319 fi
10320 else
10321 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'
10322 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'
10323 fi
10324 archive_cmds_need_lc='no'
10325 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10326 hardcode_libdir_separator=:
10327 inherit_rpath=yes
10328 link_all_deplibs=yes
10329 ;;
10330
10331 linux*)
10332 case $cc_basename in
10333 tcc*)
10334 # Fabrice Bellard et al's Tiny C Compiler
10335 ld_shlibs=yes
10336 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10337 ;;
10338 esac
10339 ;;
10340
10341 netbsd*)
10342 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10343 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10344 else
10345 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10346 fi
10347 hardcode_libdir_flag_spec='-R$libdir'
10348 hardcode_direct=yes
10349 hardcode_shlibpath_var=no
10350 ;;
10351
10352 newsos6)
10353 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10354 hardcode_direct=yes
10355 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10356 hardcode_libdir_separator=:
10357 hardcode_shlibpath_var=no
10358 ;;
10359
10360 *nto* | *qnx*)
10361 ;;
10362
10363 openbsd* | bitrig*)
10364 if test -f /usr/libexec/ld.so; then
10365 hardcode_direct=yes
10366 hardcode_shlibpath_var=no
10367 hardcode_direct_absolute=yes
10368 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10369 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10370 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10371 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10372 export_dynamic_flag_spec='$wl-E'
10373 else
10374 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10375 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10376 fi
10377 else
10378 ld_shlibs=no
10379 fi
10380 ;;
10381
10382 os2*)
10383 hardcode_libdir_flag_spec='-L$libdir'
10384 hardcode_minus_L=yes
10385 allow_undefined_flag=unsupported
10386 shrext_cmds=.dll
10387 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10388 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10389 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10390 $ECHO EXPORTS >> $output_objdir/$libname.def~
10391 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10392 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10393 emximp -o $lib $output_objdir/$libname.def'
10394 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10395 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10396 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10397 $ECHO EXPORTS >> $output_objdir/$libname.def~
10398 prefix_cmds="$SED"~
10399 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10400 prefix_cmds="$prefix_cmds -e 1d";
10401 fi~
10402 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10403 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10404 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10405 emximp -o $lib $output_objdir/$libname.def'
10406 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10407 enable_shared_with_static_runtimes=yes
10408 ;;
10409
10410 osf3*)
10411 if test yes = "$GCC"; then
10412 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10413 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'
10414 else
10415 allow_undefined_flag=' -expect_unresolved \*'
10416 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'
10417 fi
10418 archive_cmds_need_lc='no'
10419 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10420 hardcode_libdir_separator=:
10421 ;;
10422
10423 osf4* | osf5*) # as osf3* with the addition of -msym flag
10424 if test yes = "$GCC"; then
10425 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10426 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'
10427 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10428 else
10429 allow_undefined_flag=' -expect_unresolved \*'
10430 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'
10431 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~
10432 $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'
10433
10434 # Both c and cxx compiler support -rpath directly
10435 hardcode_libdir_flag_spec='-rpath $libdir'
10436 fi
10437 archive_cmds_need_lc='no'
10438 hardcode_libdir_separator=:
10439 ;;
10440
10441 solaris*)
10442 no_undefined_flag=' -z defs'
10443 if test yes = "$GCC"; then
10444 wlarc='$wl'
10445 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10446 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10447 $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'
10448 else
10449 case `$CC -V 2>&1` in
10450 *"Compilers 5.0"*)
10451 wlarc=''
10452 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10453 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10454 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10455 ;;
10456 *)
10457 wlarc='$wl'
10458 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10459 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10460 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10461 ;;
10462 esac
10463 fi
10464 hardcode_libdir_flag_spec='-R$libdir'
10465 hardcode_shlibpath_var=no
10466 case $host_os in
10467 solaris2.[0-5] | solaris2.[0-5].*) ;;
10468 *)
10469 # The compiler driver will combine and reorder linker options,
10470 # but understands '-z linker_flag'. GCC discards it without '$wl',
10471 # but is careful enough not to reorder.
10472 # Supported since Solaris 2.6 (maybe 2.5.1?)
10473 if test yes = "$GCC"; then
10474 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10475 else
10476 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10477 fi
10478 ;;
10479 esac
10480 link_all_deplibs=yes
10481 ;;
10482
10483 sunos4*)
10484 if test sequent = "$host_vendor"; then
10485 # Use $CC to link under sequent, because it throws in some extra .o
10486 # files that make .init and .fini sections work.
10487 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10488 else
10489 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10490 fi
10491 hardcode_libdir_flag_spec='-L$libdir'
10492 hardcode_direct=yes
10493 hardcode_minus_L=yes
10494 hardcode_shlibpath_var=no
10495 ;;
10496
10497 sysv4)
10498 case $host_vendor in
10499 sni)
10500 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10501 hardcode_direct=yes # is this really true???
10502 ;;
10503 siemens)
10504 ## LD is ld it makes a PLAMLIB
10505 ## CC just makes a GrossModule.
10506 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10507 reload_cmds='$CC -r -o $output$reload_objs'
10508 hardcode_direct=no
10509 ;;
10510 motorola)
10511 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10512 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10513 ;;
10514 esac
10515 runpath_var='LD_RUN_PATH'
10516 hardcode_shlibpath_var=no
10517 ;;
10518
10519 sysv4.3*)
10520 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10521 hardcode_shlibpath_var=no
10522 export_dynamic_flag_spec='-Bexport'
10523 ;;
10524
10525 sysv4*MP*)
10526 if test -d /usr/nec; then
10527 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10528 hardcode_shlibpath_var=no
10529 runpath_var=LD_RUN_PATH
10530 hardcode_runpath_var=yes
10531 ld_shlibs=yes
10532 fi
10533 ;;
10534
10535 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10536 no_undefined_flag='$wl-z,text'
10537 archive_cmds_need_lc=no
10538 hardcode_shlibpath_var=no
10539 runpath_var='LD_RUN_PATH'
10540
10541 if test yes = "$GCC"; then
10542 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10543 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10544 else
10545 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10546 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10547 fi
10548 ;;
10549
10550 sysv5* | sco3.2v5* | sco5v6*)
10551 # Note: We CANNOT use -z defs as we might desire, because we do not
10552 # link with -lc, and that would cause any symbols used from libc to
10553 # always be unresolved, which means just about no library would
10554 # ever link correctly. If we're not using GNU ld we use -z text
10555 # though, which does catch some bad symbols but isn't as heavy-handed
10556 # as -z defs.
10557 no_undefined_flag='$wl-z,text'
10558 allow_undefined_flag='$wl-z,nodefs'
10559 archive_cmds_need_lc=no
10560 hardcode_shlibpath_var=no
10561 hardcode_libdir_flag_spec='$wl-R,$libdir'
10562 hardcode_libdir_separator=':'
10563 link_all_deplibs=yes
10564 export_dynamic_flag_spec='$wl-Bexport'
10565 runpath_var='LD_RUN_PATH'
10566
10567 if test yes = "$GCC"; then
10568 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10569 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10570 else
10571 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10572 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10573 fi
10574 ;;
10575
10576 uts4*)
10577 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10578 hardcode_libdir_flag_spec='-L$libdir'
10579 hardcode_shlibpath_var=no
10580 ;;
10581
10582 *)
10583 ld_shlibs=no
10584 ;;
10585 esac
10586
10587 if test sni = "$host_vendor"; then
10588 case $host in
10589 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10590 export_dynamic_flag_spec='$wl-Blargedynsym'
10591 ;;
10592 esac
10593 fi
10594 fi
10595
10596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10597$as_echo "$ld_shlibs" >&6; }
10598test no = "$ld_shlibs" && can_build_shared=no
10599
10600with_gnu_ld=$with_gnu_ld
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616#
10617# Do we need to explicitly link libc?
10618#
10619case "x$archive_cmds_need_lc" in
10620x|xyes)
10621 # Assume -lc should be added
10622 archive_cmds_need_lc=yes
10623
10624 if test yes,yes = "$GCC,$enable_shared"; then
10625 case $archive_cmds in
10626 *'~'*)
10627 # FIXME: we may have to deal with multi-command sequences.
10628 ;;
10629 '$CC '*)
10630 # Test whether the compiler implicitly links with -lc since on some
10631 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10632 # to ld, don't add -lc before -lgcc.
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10634$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10635if ${lt_cv_archive_cmds_need_lc+:} false; then :
10636 $as_echo_n "(cached) " >&6
10637else
10638 $RM conftest*
10639 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10640
10641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10642 (eval $ac_compile) 2>&5
10643 ac_status=$?
10644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10645 test $ac_status = 0; } 2>conftest.err; then
10646 soname=conftest
10647 lib=conftest
10648 libobjs=conftest.$ac_objext
10649 deplibs=
10650 wl=$lt_prog_compiler_wl
10651 pic_flag=$lt_prog_compiler_pic
10652 compiler_flags=-v
10653 linker_flags=-v
10654 verstring=
10655 output_objdir=.
10656 libname=conftest
10657 lt_save_allow_undefined_flag=$allow_undefined_flag
10658 allow_undefined_flag=
10659 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10660 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10661 ac_status=$?
10662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10663 test $ac_status = 0; }
10664 then
10665 lt_cv_archive_cmds_need_lc=no
10666 else
10667 lt_cv_archive_cmds_need_lc=yes
10668 fi
10669 allow_undefined_flag=$lt_save_allow_undefined_flag
10670 else
10671 cat conftest.err 1>&5
10672 fi
10673 $RM conftest*
10674
10675fi
10676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10677$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10678 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10679 ;;
10680 esac
10681 fi
10682 ;;
10683esac
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10837$as_echo_n "checking dynamic linker characteristics... " >&6; }
10838
10839if test yes = "$GCC"; then
10840 case $host_os in
10841 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10842 *) lt_awk_arg='/^libraries:/' ;;
10843 esac
10844 case $host_os in
10845 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10846 *) lt_sed_strip_eq='s|=/|/|g' ;;
10847 esac
10848 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10849 case $lt_search_path_spec in
10850 *\;*)
10851 # if the path contains ";" then we assume it to be the separator
10852 # otherwise default to the standard path separator (i.e. ":") - it is
10853 # assumed that no part of a normal pathname contains ";" but that should
10854 # okay in the real world where ";" in dirpaths is itself problematic.
10855 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10856 ;;
10857 *)
10858 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10859 ;;
10860 esac
10861 # Ok, now we have the path, separated by spaces, we can step through it
10862 # and add multilib dir if necessary...
10863 lt_tmp_lt_search_path_spec=
10864 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10865 # ...but if some path component already ends with the multilib dir we assume
10866 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10867 case "$lt_multi_os_dir; $lt_search_path_spec " in
10868 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10869 lt_multi_os_dir=
10870 ;;
10871 esac
10872 for lt_sys_path in $lt_search_path_spec; do
10873 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10874 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10875 elif test -n "$lt_multi_os_dir"; then
10876 test -d "$lt_sys_path" && \
10877 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10878 fi
10879 done
10880 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10881BEGIN {RS = " "; FS = "/|\n";} {
10882 lt_foo = "";
10883 lt_count = 0;
10884 for (lt_i = NF; lt_i > 0; lt_i--) {
10885 if ($lt_i != "" && $lt_i != ".") {
10886 if ($lt_i == "..") {
10887 lt_count++;
10888 } else {
10889 if (lt_count == 0) {
10890 lt_foo = "/" $lt_i lt_foo;
10891 } else {
10892 lt_count--;
10893 }
10894 }
10895 }
10896 }
10897 if (lt_foo != "") { lt_freq[lt_foo]++; }
10898 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10899}'`
10900 # AWK program above erroneously prepends '/' to C:/dos/paths
10901 # for these hosts.
10902 case $host_os in
10903 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10904 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10905 esac
10906 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10907else
10908 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10909fi
10910library_names_spec=
10911libname_spec='lib$name'
10912soname_spec=
10913shrext_cmds=.so
10914postinstall_cmds=
10915postuninstall_cmds=
10916finish_cmds=
10917finish_eval=
10918shlibpath_var=
10919shlibpath_overrides_runpath=unknown
10920version_type=none
10921dynamic_linker="$host_os ld.so"
10922sys_lib_dlsearch_path_spec="/lib /usr/lib"
10923need_lib_prefix=unknown
10924hardcode_into_libs=no
10925
10926# when you set need_version to no, make sure it does not cause -set_version
10927# flags to be left without arguments
10928need_version=unknown
10929
10930
10931
10932case $host_os in
10933aix3*)
10934 version_type=linux # correct to gnu/linux during the next big refactor
10935 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10936 shlibpath_var=LIBPATH
10937
10938 # AIX 3 has no versioning support, so we append a major version to the name.
10939 soname_spec='$libname$release$shared_ext$major'
10940 ;;
10941
10942aix[4-9]*)
10943 version_type=linux # correct to gnu/linux during the next big refactor
10944 need_lib_prefix=no
10945 need_version=no
10946 hardcode_into_libs=yes
10947 if test ia64 = "$host_cpu"; then
10948 # AIX 5 supports IA64
10949 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10950 shlibpath_var=LD_LIBRARY_PATH
10951 else
10952 # With GCC up to 2.95.x, collect2 would create an import file
10953 # for dependence libraries. The import file would start with
10954 # the line '#! .'. This would cause the generated library to
10955 # depend on '.', always an invalid library. This was fixed in
10956 # development snapshots of GCC prior to 3.0.
10957 case $host_os in
10958 aix4 | aix4.[01] | aix4.[01].*)
10959 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10960 echo ' yes '
10961 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10962 :
10963 else
10964 can_build_shared=no
10965 fi
10966 ;;
10967 esac
10968 # Using Import Files as archive members, it is possible to support
10969 # filename-based versioning of shared library archives on AIX. While
10970 # this would work for both with and without runtime linking, it will
10971 # prevent static linking of such archives. So we do filename-based
10972 # shared library versioning with .so extension only, which is used
10973 # when both runtime linking and shared linking is enabled.
10974 # Unfortunately, runtime linking may impact performance, so we do
10975 # not want this to be the default eventually. Also, we use the
10976 # versioned .so libs for executables only if there is the -brtl
10977 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10978 # To allow for filename-based versioning support, we need to create
10979 # libNAME.so.V as an archive file, containing:
10980 # *) an Import File, referring to the versioned filename of the
10981 # archive as well as the shared archive member, telling the
10982 # bitwidth (32 or 64) of that shared object, and providing the
10983 # list of exported symbols of that shared object, eventually
10984 # decorated with the 'weak' keyword
10985 # *) the shared object with the F_LOADONLY flag set, to really avoid
10986 # it being seen by the linker.
10987 # At run time we better use the real file rather than another symlink,
10988 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10989
10990 case $with_aix_soname,$aix_use_runtimelinking in
10991 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10992 # soname into executable. Probably we can add versioning support to
10993 # collect2, so additional links can be useful in future.
10994 aix,yes) # traditional libtool
10995 dynamic_linker='AIX unversionable lib.so'
10996 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10997 # instead of lib<name>.a to let people know that these are not
10998 # typical AIX shared libraries.
10999 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11000 ;;
11001 aix,no) # traditional AIX only
11002 dynamic_linker='AIX lib.a(lib.so.V)'
11003 # We preserve .a as extension for shared libraries through AIX4.2
11004 # and later when we are not doing run time linking.
11005 library_names_spec='$libname$release.a $libname.a'
11006 soname_spec='$libname$release$shared_ext$major'
11007 ;;
11008 svr4,*) # full svr4 only
11009 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11010 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11011 # We do not specify a path in Import Files, so LIBPATH fires.
11012 shlibpath_overrides_runpath=yes
11013 ;;
11014 *,yes) # both, prefer svr4
11015 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11016 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11017 # unpreferred sharedlib libNAME.a needs extra handling
11018 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11019 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11020 # We do not specify a path in Import Files, so LIBPATH fires.
11021 shlibpath_overrides_runpath=yes
11022 ;;
11023 *,no) # both, prefer aix
11024 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11025 library_names_spec='$libname$release.a $libname.a'
11026 soname_spec='$libname$release$shared_ext$major'
11027 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11028 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11029 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11030 ;;
11031 esac
11032 shlibpath_var=LIBPATH
11033 fi
11034 ;;
11035
11036amigaos*)
11037 case $host_cpu in
11038 powerpc)
11039 # Since July 2007 AmigaOS4 officially supports .so libraries.
11040 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11041 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11042 ;;
11043 m68k)
11044 library_names_spec='$libname.ixlibrary $libname.a'
11045 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11046 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11047 ;;
11048 esac
11049 ;;
11050
11051beos*)
11052 library_names_spec='$libname$shared_ext'
11053 dynamic_linker="$host_os ld.so"
11054 shlibpath_var=LIBRARY_PATH
11055 ;;
11056
11057bsdi[45]*)
11058 version_type=linux # correct to gnu/linux during the next big refactor
11059 need_version=no
11060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11061 soname_spec='$libname$release$shared_ext$major'
11062 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11063 shlibpath_var=LD_LIBRARY_PATH
11064 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11065 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11066 # the default ld.so.conf also contains /usr/contrib/lib and
11067 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11068 # libtool to hard-code these into programs
11069 ;;
11070
11071cygwin* | mingw* | pw32* | cegcc*)
11072 version_type=windows
11073 shrext_cmds=.dll
11074 need_version=no
11075 need_lib_prefix=no
11076
11077 case $GCC,$cc_basename in
11078 yes,*)
11079 # gcc
11080 library_names_spec='$libname.dll.a'
11081 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11082 postinstall_cmds='base_file=`basename \$file`~
11083 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11084 dldir=$destdir/`dirname \$dlpath`~
11085 test -d \$dldir || mkdir -p \$dldir~
11086 $install_prog $dir/$dlname \$dldir/$dlname~
11087 chmod a+x \$dldir/$dlname~
11088 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11089 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11090 fi'
11091 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11092 dlpath=$dir/\$dldll~
11093 $RM \$dlpath'
11094 shlibpath_overrides_runpath=yes
11095
11096 case $host_os in
11097 cygwin*)
11098 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11099 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11100
11101 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11102 ;;
11103 mingw* | cegcc*)
11104 # MinGW DLLs use traditional 'lib' prefix
11105 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11106 ;;
11107 pw32*)
11108 # pw32 DLLs use 'pw' prefix rather than 'lib'
11109 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11110 ;;
11111 esac
11112 dynamic_linker='Win32 ld.exe'
11113 ;;
11114
11115 *,cl*)
11116 # Native MSVC
11117 libname_spec='$name'
11118 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11119 library_names_spec='$libname.dll.lib'
11120
11121 case $build_os in
11122 mingw*)
11123 sys_lib_search_path_spec=
11124 lt_save_ifs=$IFS
11125 IFS=';'
11126 for lt_path in $LIB
11127 do
11128 IFS=$lt_save_ifs
11129 # Let DOS variable expansion print the short 8.3 style file name.
11130 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11131 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11132 done
11133 IFS=$lt_save_ifs
11134 # Convert to MSYS style.
11135 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11136 ;;
11137 cygwin*)
11138 # Convert to unix form, then to dos form, then back to unix form
11139 # but this time dos style (no spaces!) so that the unix form looks
11140 # like /cygdrive/c/PROGRA~1:/cygdr...
11141 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11142 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11143 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11144 ;;
11145 *)
11146 sys_lib_search_path_spec=$LIB
11147 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11148 # It is most probably a Windows format PATH.
11149 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11150 else
11151 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11152 fi
11153 # FIXME: find the short name or the path components, as spaces are
11154 # common. (e.g. "Program Files" -> "PROGRA~1")
11155 ;;
11156 esac
11157
11158 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11159 postinstall_cmds='base_file=`basename \$file`~
11160 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11161 dldir=$destdir/`dirname \$dlpath`~
11162 test -d \$dldir || mkdir -p \$dldir~
11163 $install_prog $dir/$dlname \$dldir/$dlname'
11164 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11165 dlpath=$dir/\$dldll~
11166 $RM \$dlpath'
11167 shlibpath_overrides_runpath=yes
11168 dynamic_linker='Win32 link.exe'
11169 ;;
11170
11171 *)
11172 # Assume MSVC wrapper
11173 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11174 dynamic_linker='Win32 ld.exe'
11175 ;;
11176 esac
11177 # FIXME: first we should search . and the directory the executable is in
11178 shlibpath_var=PATH
11179 ;;
11180
11181darwin* | rhapsody*)
11182 dynamic_linker="$host_os dyld"
11183 version_type=darwin
11184 need_lib_prefix=no
11185 need_version=no
11186 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11187 soname_spec='$libname$release$major$shared_ext'
11188 shlibpath_overrides_runpath=yes
11189 shlibpath_var=DYLD_LIBRARY_PATH
11190 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11191
11192 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11193 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11194 ;;
11195
11196dgux*)
11197 version_type=linux # correct to gnu/linux during the next big refactor
11198 need_lib_prefix=no
11199 need_version=no
11200 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11201 soname_spec='$libname$release$shared_ext$major'
11202 shlibpath_var=LD_LIBRARY_PATH
11203 ;;
11204
11205freebsd* | dragonfly*)
11206 # DragonFly does not have aout. When/if they implement a new
11207 # versioning mechanism, adjust this.
11208 if test -x /usr/bin/objformat; then
11209 objformat=`/usr/bin/objformat`
11210 else
11211 case $host_os in
11212 freebsd[23].*) objformat=aout ;;
11213 *) objformat=elf ;;
11214 esac
11215 fi
11216 version_type=freebsd-$objformat
11217 case $version_type in
11218 freebsd-elf*)
11219 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11220 soname_spec='$libname$release$shared_ext$major'
11221 need_version=no
11222 need_lib_prefix=no
11223 ;;
11224 freebsd-*)
11225 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11226 need_version=yes
11227 ;;
11228 esac
11229 shlibpath_var=LD_LIBRARY_PATH
11230 case $host_os in
11231 freebsd2.*)
11232 shlibpath_overrides_runpath=yes
11233 ;;
11234 freebsd3.[01]* | freebsdelf3.[01]*)
11235 shlibpath_overrides_runpath=yes
11236 hardcode_into_libs=yes
11237 ;;
11238 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11239 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11240 shlibpath_overrides_runpath=no
11241 hardcode_into_libs=yes
11242 ;;
11243 *) # from 4.6 on, and DragonFly
11244 shlibpath_overrides_runpath=yes
11245 hardcode_into_libs=yes
11246 ;;
11247 esac
11248 ;;
11249
11250haiku*)
11251 version_type=linux # correct to gnu/linux during the next big refactor
11252 need_lib_prefix=no
11253 need_version=no
11254 dynamic_linker="$host_os runtime_loader"
11255 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11256 soname_spec='$libname$release$shared_ext$major'
11257 shlibpath_var=LIBRARY_PATH
11258 shlibpath_overrides_runpath=no
11259 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11260 hardcode_into_libs=yes
11261 ;;
11262
11263hpux9* | hpux10* | hpux11*)
11264 # Give a soname corresponding to the major version so that dld.sl refuses to
11265 # link against other versions.
11266 version_type=sunos
11267 need_lib_prefix=no
11268 need_version=no
11269 case $host_cpu in
11270 ia64*)
11271 shrext_cmds='.so'
11272 hardcode_into_libs=yes
11273 dynamic_linker="$host_os dld.so"
11274 shlibpath_var=LD_LIBRARY_PATH
11275 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11276 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11277 soname_spec='$libname$release$shared_ext$major'
11278 if test 32 = "$HPUX_IA64_MODE"; then
11279 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11280 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11281 else
11282 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11283 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11284 fi
11285 ;;
11286 hppa*64*)
11287 shrext_cmds='.sl'
11288 hardcode_into_libs=yes
11289 dynamic_linker="$host_os dld.sl"
11290 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11291 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11292 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11293 soname_spec='$libname$release$shared_ext$major'
11294 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11295 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11296 ;;
11297 *)
11298 shrext_cmds='.sl'
11299 dynamic_linker="$host_os dld.sl"
11300 shlibpath_var=SHLIB_PATH
11301 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11302 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11303 soname_spec='$libname$release$shared_ext$major'
11304 ;;
11305 esac
11306 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11307 postinstall_cmds='chmod 555 $lib'
11308 # or fails outright, so override atomically:
11309 install_override_mode=555
11310 ;;
11311
11312interix[3-9]*)
11313 version_type=linux # correct to gnu/linux during the next big refactor
11314 need_lib_prefix=no
11315 need_version=no
11316 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11317 soname_spec='$libname$release$shared_ext$major'
11318 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11319 shlibpath_var=LD_LIBRARY_PATH
11320 shlibpath_overrides_runpath=no
11321 hardcode_into_libs=yes
11322 ;;
11323
11324irix5* | irix6* | nonstopux*)
11325 case $host_os in
11326 nonstopux*) version_type=nonstopux ;;
11327 *)
11328 if test yes = "$lt_cv_prog_gnu_ld"; then
11329 version_type=linux # correct to gnu/linux during the next big refactor
11330 else
11331 version_type=irix
11332 fi ;;
11333 esac
11334 need_lib_prefix=no
11335 need_version=no
11336 soname_spec='$libname$release$shared_ext$major'
11337 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11338 case $host_os in
11339 irix5* | nonstopux*)
11340 libsuff= shlibsuff=
11341 ;;
11342 *)
11343 case $LD in # libtool.m4 will add one of these switches to LD
11344 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11345 libsuff= shlibsuff= libmagic=32-bit;;
11346 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11347 libsuff=32 shlibsuff=N32 libmagic=N32;;
11348 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11349 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11350 *) libsuff= shlibsuff= libmagic=never-match;;
11351 esac
11352 ;;
11353 esac
11354 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11355 shlibpath_overrides_runpath=no
11356 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11357 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11358 hardcode_into_libs=yes
11359 ;;
11360
11361# No shared lib support for Linux oldld, aout, or coff.
11362linux*oldld* | linux*aout* | linux*coff*)
11363 dynamic_linker=no
11364 ;;
11365
11366linux*android*)
11367 version_type=none # Android doesn't support versioned libraries.
11368 need_lib_prefix=no
11369 need_version=no
11370 library_names_spec='$libname$release$shared_ext'
11371 soname_spec='$libname$release$shared_ext'
11372 finish_cmds=
11373 shlibpath_var=LD_LIBRARY_PATH
11374 shlibpath_overrides_runpath=yes
11375
11376 # This implies no fast_install, which is unacceptable.
11377 # Some rework will be needed to allow for fast_install
11378 # before this can be enabled.
11379 hardcode_into_libs=yes
11380
11381 dynamic_linker='Android linker'
11382 # Don't embed -rpath directories since the linker doesn't support them.
11383 hardcode_libdir_flag_spec='-L$libdir'
11384 ;;
11385
11386# This must be glibc/ELF.
11387linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11388 version_type=linux # correct to gnu/linux during the next big refactor
11389 need_lib_prefix=no
11390 need_version=no
11391 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11392 soname_spec='$libname$release$shared_ext$major'
11393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11394 shlibpath_var=LD_LIBRARY_PATH
11395 shlibpath_overrides_runpath=no
11396
11397 # Some binutils ld are patched to set DT_RUNPATH
11398 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11399 $as_echo_n "(cached) " >&6
11400else
11401 lt_cv_shlibpath_overrides_runpath=no
11402 save_LDFLAGS=$LDFLAGS
11403 save_libdir=$libdir
11404 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11405 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11407/* end confdefs.h. */
11408
11409int
11410main ()
11411{
11412
11413 ;
11414 return 0;
11415}
11416_ACEOF
11417if ac_fn_c_try_link "$LINENO"; then :
11418 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11419 lt_cv_shlibpath_overrides_runpath=yes
11420fi
11421fi
11422rm -f core conftest.err conftest.$ac_objext \
11423 conftest$ac_exeext conftest.$ac_ext
11424 LDFLAGS=$save_LDFLAGS
11425 libdir=$save_libdir
11426
11427fi
11428
11429 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11430
11431 # This implies no fast_install, which is unacceptable.
11432 # Some rework will be needed to allow for fast_install
11433 # before this can be enabled.
11434 hardcode_into_libs=yes
11435
11436 # Ideally, we could use ldconfig to report *all* directores which are
11437 # searched for libraries, however this is still not possible. Aside from not
11438 # being certain /sbin/ldconfig is available, command
11439 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11440 # even though it is searched at run-time. Try to do the best guess by
11441 # appending ld.so.conf contents (and includes) to the search path.
11442 if test -f /etc/ld.so.conf; then
11443 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' ' '`
11444 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11445 fi
11446
11447 # We used to test for /lib/ld.so.1 and disable shared libraries on
11448 # powerpc, because MkLinux only supported shared libraries with the
11449 # GNU dynamic linker. Since this was broken with cross compilers,
11450 # most powerpc-linux boxes support dynamic linking these days and
11451 # people can always --disable-shared, the test was removed, and we
11452 # assume the GNU/Linux dynamic linker is in use.
11453 dynamic_linker='GNU/Linux ld.so'
11454 ;;
11455
11456netbsd*)
11457 version_type=sunos
11458 need_lib_prefix=no
11459 need_version=no
11460 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11461 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11463 dynamic_linker='NetBSD (a.out) ld.so'
11464 else
11465 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11466 soname_spec='$libname$release$shared_ext$major'
11467 dynamic_linker='NetBSD ld.elf_so'
11468 fi
11469 shlibpath_var=LD_LIBRARY_PATH
11470 shlibpath_overrides_runpath=yes
11471 hardcode_into_libs=yes
11472 ;;
11473
11474newsos6)
11475 version_type=linux # correct to gnu/linux during the next big refactor
11476 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11477 shlibpath_var=LD_LIBRARY_PATH
11478 shlibpath_overrides_runpath=yes
11479 ;;
11480
11481*nto* | *qnx*)
11482 version_type=qnx
11483 need_lib_prefix=no
11484 need_version=no
11485 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11486 soname_spec='$libname$release$shared_ext$major'
11487 shlibpath_var=LD_LIBRARY_PATH
11488 shlibpath_overrides_runpath=no
11489 hardcode_into_libs=yes
11490 dynamic_linker='ldqnx.so'
11491 ;;
11492
11493openbsd* | bitrig*)
11494 version_type=sunos
11495 sys_lib_dlsearch_path_spec=/usr/lib
11496 need_lib_prefix=no
11497 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11498 need_version=no
11499 else
11500 need_version=yes
11501 fi
11502 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11503 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11504 shlibpath_var=LD_LIBRARY_PATH
11505 shlibpath_overrides_runpath=yes
11506 ;;
11507
11508os2*)
11509 libname_spec='$name'
11510 version_type=windows
11511 shrext_cmds=.dll
11512 need_version=no
11513 need_lib_prefix=no
11514 # OS/2 can only load a DLL with a base name of 8 characters or less.
11515 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11516 v=$($ECHO $release$versuffix | tr -d .-);
11517 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11518 $ECHO $n$v`$shared_ext'
11519 library_names_spec='${libname}_dll.$libext'
11520 dynamic_linker='OS/2 ld.exe'
11521 shlibpath_var=BEGINLIBPATH
11522 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11523 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11524 postinstall_cmds='base_file=`basename \$file`~
11525 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11526 dldir=$destdir/`dirname \$dlpath`~
11527 test -d \$dldir || mkdir -p \$dldir~
11528 $install_prog $dir/$dlname \$dldir/$dlname~
11529 chmod a+x \$dldir/$dlname~
11530 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11531 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11532 fi'
11533 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11534 dlpath=$dir/\$dldll~
11535 $RM \$dlpath'
11536 ;;
11537
11538osf3* | osf4* | osf5*)
11539 version_type=osf
11540 need_lib_prefix=no
11541 need_version=no
11542 soname_spec='$libname$release$shared_ext$major'
11543 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11544 shlibpath_var=LD_LIBRARY_PATH
11545 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11546 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11547 ;;
11548
11549rdos*)
11550 dynamic_linker=no
11551 ;;
11552
11553solaris*)
11554 version_type=linux # correct to gnu/linux during the next big refactor
11555 need_lib_prefix=no
11556 need_version=no
11557 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11558 soname_spec='$libname$release$shared_ext$major'
11559 shlibpath_var=LD_LIBRARY_PATH
11560 shlibpath_overrides_runpath=yes
11561 hardcode_into_libs=yes
11562 # ldd complains unless libraries are executable
11563 postinstall_cmds='chmod +x $lib'
11564 ;;
11565
11566sunos4*)
11567 version_type=sunos
11568 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11569 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11570 shlibpath_var=LD_LIBRARY_PATH
11571 shlibpath_overrides_runpath=yes
11572 if test yes = "$with_gnu_ld"; then
11573 need_lib_prefix=no
11574 fi
11575 need_version=yes
11576 ;;
11577
11578sysv4 | sysv4.3*)
11579 version_type=linux # correct to gnu/linux during the next big refactor
11580 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11581 soname_spec='$libname$release$shared_ext$major'
11582 shlibpath_var=LD_LIBRARY_PATH
11583 case $host_vendor in
11584 sni)
11585 shlibpath_overrides_runpath=no
11586 need_lib_prefix=no
11587 runpath_var=LD_RUN_PATH
11588 ;;
11589 siemens)
11590 need_lib_prefix=no
11591 ;;
11592 motorola)
11593 need_lib_prefix=no
11594 need_version=no
11595 shlibpath_overrides_runpath=no
11596 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11597 ;;
11598 esac
11599 ;;
11600
11601sysv4*MP*)
11602 if test -d /usr/nec; then
11603 version_type=linux # correct to gnu/linux during the next big refactor
11604 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11605 soname_spec='$libname$shared_ext.$major'
11606 shlibpath_var=LD_LIBRARY_PATH
11607 fi
11608 ;;
11609
11610sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11611 version_type=sco
11612 need_lib_prefix=no
11613 need_version=no
11614 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11615 soname_spec='$libname$release$shared_ext$major'
11616 shlibpath_var=LD_LIBRARY_PATH
11617 shlibpath_overrides_runpath=yes
11618 hardcode_into_libs=yes
11619 if test yes = "$with_gnu_ld"; then
11620 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11621 else
11622 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11623 case $host_os in
11624 sco3.2v5*)
11625 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11626 ;;
11627 esac
11628 fi
11629 sys_lib_dlsearch_path_spec='/usr/lib'
11630 ;;
11631
11632tpf*)
11633 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11634 version_type=linux # correct to gnu/linux during the next big refactor
11635 need_lib_prefix=no
11636 need_version=no
11637 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11638 shlibpath_var=LD_LIBRARY_PATH
11639 shlibpath_overrides_runpath=no
11640 hardcode_into_libs=yes
11641 ;;
11642
11643uts4*)
11644 version_type=linux # correct to gnu/linux during the next big refactor
11645 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11646 soname_spec='$libname$release$shared_ext$major'
11647 shlibpath_var=LD_LIBRARY_PATH
11648 ;;
11649
11650*)
11651 dynamic_linker=no
11652 ;;
11653esac
11654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11655$as_echo "$dynamic_linker" >&6; }
11656test no = "$dynamic_linker" && can_build_shared=no
11657
11658variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11659if test yes = "$GCC"; then
11660 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11661fi
11662
11663if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11664 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11665fi
11666
11667if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11668 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11669fi
11670
11671# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11672configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11673
11674# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11675func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11676
11677# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11678configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11777$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11778hardcode_action=
11779if test -n "$hardcode_libdir_flag_spec" ||
11780 test -n "$runpath_var" ||
11781 test yes = "$hardcode_automatic"; then
11782
11783 # We can hardcode non-existent directories.
11784 if test no != "$hardcode_direct" &&
11785 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11786 # have to relink, otherwise we might link with an installed library
11787 # when we should be linking with a yet-to-be-installed one
11788 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11789 test no != "$hardcode_minus_L"; then
11790 # Linking always hardcodes the temporary library directory.
11791 hardcode_action=relink
11792 else
11793 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11794 hardcode_action=immediate
11795 fi
11796else
11797 # We cannot hardcode anything, or else we can only hardcode existing
11798 # directories.
11799 hardcode_action=unsupported
11800fi
11801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11802$as_echo "$hardcode_action" >&6; }
11803
11804if test relink = "$hardcode_action" ||
11805 test yes = "$inherit_rpath"; then
11806 # Fast installation is not supported
11807 enable_fast_install=no
11808elif test yes = "$shlibpath_overrides_runpath" ||
11809 test no = "$enable_shared"; then
11810 # Fast installation is not necessary
11811 enable_fast_install=needless
11812fi
11813
11814
11815
11816
11817
11818
11819 if test yes != "$enable_dlopen"; then
11820 enable_dlopen=unknown
11821 enable_dlopen_self=unknown
11822 enable_dlopen_self_static=unknown
11823else
11824 lt_cv_dlopen=no
11825 lt_cv_dlopen_libs=
11826
11827 case $host_os in
11828 beos*)
11829 lt_cv_dlopen=load_add_on
11830 lt_cv_dlopen_libs=
11831 lt_cv_dlopen_self=yes
11832 ;;
11833
11834 mingw* | pw32* | cegcc*)
11835 lt_cv_dlopen=LoadLibrary
11836 lt_cv_dlopen_libs=
11837 ;;
11838
11839 cygwin*)
11840 lt_cv_dlopen=dlopen
11841 lt_cv_dlopen_libs=
11842 ;;
11843
11844 darwin*)
11845 # if libdl is installed we need to link against it
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11847$as_echo_n "checking for dlopen in -ldl... " >&6; }
11848if ${ac_cv_lib_dl_dlopen+:} false; then :
11849 $as_echo_n "(cached) " >&6
11850else
11851 ac_check_lib_save_LIBS=$LIBS
11852LIBS="-ldl $LIBS"
11853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11854/* end confdefs.h. */
11855
11856/* Override any GCC internal prototype to avoid an error.
11857 Use char because int might match the return type of a GCC
11858 builtin and then its argument prototype would still apply. */
11859#ifdef __cplusplus
11860extern "C"
11861#endif
11862char dlopen ();
11863int
11864main ()
11865{
11866return dlopen ();
11867 ;
11868 return 0;
11869}
11870_ACEOF
11871if ac_fn_c_try_link "$LINENO"; then :
11872 ac_cv_lib_dl_dlopen=yes
11873else
11874 ac_cv_lib_dl_dlopen=no
11875fi
11876rm -f core conftest.err conftest.$ac_objext \
11877 conftest$ac_exeext conftest.$ac_ext
11878LIBS=$ac_check_lib_save_LIBS
11879fi
11880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11881$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11882if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11883 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11884else
11885
11886 lt_cv_dlopen=dyld
11887 lt_cv_dlopen_libs=
11888 lt_cv_dlopen_self=yes
11889
11890fi
11891
11892 ;;
11893
11894 tpf*)
11895 # Don't try to run any link tests for TPF. We know it's impossible
11896 # because TPF is a cross-compiler, and we know how we open DSOs.
11897 lt_cv_dlopen=dlopen
11898 lt_cv_dlopen_libs=
11899 lt_cv_dlopen_self=no
11900 ;;
11901
11902 *)
11903 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11904if test "x$ac_cv_func_shl_load" = xyes; then :
11905 lt_cv_dlopen=shl_load
11906else
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11908$as_echo_n "checking for shl_load in -ldld... " >&6; }
11909if ${ac_cv_lib_dld_shl_load+:} false; then :
11910 $as_echo_n "(cached) " >&6
11911else
11912 ac_check_lib_save_LIBS=$LIBS
11913LIBS="-ldld $LIBS"
11914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11915/* end confdefs.h. */
11916
11917/* Override any GCC internal prototype to avoid an error.
11918 Use char because int might match the return type of a GCC
11919 builtin and then its argument prototype would still apply. */
11920#ifdef __cplusplus
11921extern "C"
11922#endif
11923char shl_load ();
11924int
11925main ()
11926{
11927return shl_load ();
11928 ;
11929 return 0;
11930}
11931_ACEOF
11932if ac_fn_c_try_link "$LINENO"; then :
11933 ac_cv_lib_dld_shl_load=yes
11934else
11935 ac_cv_lib_dld_shl_load=no
11936fi
11937rm -f core conftest.err conftest.$ac_objext \
11938 conftest$ac_exeext conftest.$ac_ext
11939LIBS=$ac_check_lib_save_LIBS
11940fi
11941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11942$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11943if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11944 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11945else
11946 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11947if test "x$ac_cv_func_dlopen" = xyes; then :
11948 lt_cv_dlopen=dlopen
11949else
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11951$as_echo_n "checking for dlopen in -ldl... " >&6; }
11952if ${ac_cv_lib_dl_dlopen+:} false; then :
11953 $as_echo_n "(cached) " >&6
11954else
11955 ac_check_lib_save_LIBS=$LIBS
11956LIBS="-ldl $LIBS"
11957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11958/* end confdefs.h. */
11959
11960/* Override any GCC internal prototype to avoid an error.
11961 Use char because int might match the return type of a GCC
11962 builtin and then its argument prototype would still apply. */
11963#ifdef __cplusplus
11964extern "C"
11965#endif
11966char dlopen ();
11967int
11968main ()
11969{
11970return dlopen ();
11971 ;
11972 return 0;
11973}
11974_ACEOF
11975if ac_fn_c_try_link "$LINENO"; then :
11976 ac_cv_lib_dl_dlopen=yes
11977else
11978 ac_cv_lib_dl_dlopen=no
11979fi
11980rm -f core conftest.err conftest.$ac_objext \
11981 conftest$ac_exeext conftest.$ac_ext
11982LIBS=$ac_check_lib_save_LIBS
11983fi
11984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11985$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11986if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11987 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11988else
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11990$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11991if ${ac_cv_lib_svld_dlopen+:} false; then :
11992 $as_echo_n "(cached) " >&6
11993else
11994 ac_check_lib_save_LIBS=$LIBS
11995LIBS="-lsvld $LIBS"
11996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11997/* end confdefs.h. */
11998
11999/* Override any GCC internal prototype to avoid an error.
12000 Use char because int might match the return type of a GCC
12001 builtin and then its argument prototype would still apply. */
12002#ifdef __cplusplus
12003extern "C"
12004#endif
12005char dlopen ();
12006int
12007main ()
12008{
12009return dlopen ();
12010 ;
12011 return 0;
12012}
12013_ACEOF
12014if ac_fn_c_try_link "$LINENO"; then :
12015 ac_cv_lib_svld_dlopen=yes
12016else
12017 ac_cv_lib_svld_dlopen=no
12018fi
12019rm -f core conftest.err conftest.$ac_objext \
12020 conftest$ac_exeext conftest.$ac_ext
12021LIBS=$ac_check_lib_save_LIBS
12022fi
12023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12024$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12025if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12026 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12027else
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12029$as_echo_n "checking for dld_link in -ldld... " >&6; }
12030if ${ac_cv_lib_dld_dld_link+:} false; then :
12031 $as_echo_n "(cached) " >&6
12032else
12033 ac_check_lib_save_LIBS=$LIBS
12034LIBS="-ldld $LIBS"
12035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12036/* end confdefs.h. */
12037
12038/* Override any GCC internal prototype to avoid an error.
12039 Use char because int might match the return type of a GCC
12040 builtin and then its argument prototype would still apply. */
12041#ifdef __cplusplus
12042extern "C"
12043#endif
12044char dld_link ();
12045int
12046main ()
12047{
12048return dld_link ();
12049 ;
12050 return 0;
12051}
12052_ACEOF
12053if ac_fn_c_try_link "$LINENO"; then :
12054 ac_cv_lib_dld_dld_link=yes
12055else
12056 ac_cv_lib_dld_dld_link=no
12057fi
12058rm -f core conftest.err conftest.$ac_objext \
12059 conftest$ac_exeext conftest.$ac_ext
12060LIBS=$ac_check_lib_save_LIBS
12061fi
12062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12063$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12064if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12065 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12066fi
12067
12068
12069fi
12070
12071
12072fi
12073
12074
12075fi
12076
12077
12078fi
12079
12080
12081fi
12082
12083 ;;
12084 esac
12085
12086 if test no = "$lt_cv_dlopen"; then
12087 enable_dlopen=no
12088 else
12089 enable_dlopen=yes
12090 fi
12091
12092 case $lt_cv_dlopen in
12093 dlopen)
12094 save_CPPFLAGS=$CPPFLAGS
12095 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12096
12097 save_LDFLAGS=$LDFLAGS
12098 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12099
12100 save_LIBS=$LIBS
12101 LIBS="$lt_cv_dlopen_libs $LIBS"
12102
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12104$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12105if ${lt_cv_dlopen_self+:} false; then :
12106 $as_echo_n "(cached) " >&6
12107else
12108 if test yes = "$cross_compiling"; then :
12109 lt_cv_dlopen_self=cross
12110else
12111 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12112 lt_status=$lt_dlunknown
12113 cat > conftest.$ac_ext <<_LT_EOF
12114#line $LINENO "configure"
12115#include "confdefs.h"
12116
12117#if HAVE_DLFCN_H
12118#include <dlfcn.h>
12119#endif
12120
12121#include <stdio.h>
12122
12123#ifdef RTLD_GLOBAL
12124# define LT_DLGLOBAL RTLD_GLOBAL
12125#else
12126# ifdef DL_GLOBAL
12127# define LT_DLGLOBAL DL_GLOBAL
12128# else
12129# define LT_DLGLOBAL 0
12130# endif
12131#endif
12132
12133/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12134 find out it does not work in some platform. */
12135#ifndef LT_DLLAZY_OR_NOW
12136# ifdef RTLD_LAZY
12137# define LT_DLLAZY_OR_NOW RTLD_LAZY
12138# else
12139# ifdef DL_LAZY
12140# define LT_DLLAZY_OR_NOW DL_LAZY
12141# else
12142# ifdef RTLD_NOW
12143# define LT_DLLAZY_OR_NOW RTLD_NOW
12144# else
12145# ifdef DL_NOW
12146# define LT_DLLAZY_OR_NOW DL_NOW
12147# else
12148# define LT_DLLAZY_OR_NOW 0
12149# endif
12150# endif
12151# endif
12152# endif
12153#endif
12154
12155/* When -fvisibility=hidden is used, assume the code has been annotated
12156 correspondingly for the symbols needed. */
12157#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12158int fnord () __attribute__((visibility("default")));
12159#endif
12160
12161int fnord () { return 42; }
12162int main ()
12163{
12164 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12165 int status = $lt_dlunknown;
12166
12167 if (self)
12168 {
12169 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12170 else
12171 {
12172 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12173 else puts (dlerror ());
12174 }
12175 /* dlclose (self); */
12176 }
12177 else
12178 puts (dlerror ());
12179
12180 return status;
12181}
12182_LT_EOF
12183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12184 (eval $ac_link) 2>&5
12185 ac_status=$?
12186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12187 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12188 (./conftest; exit; ) >&5 2>/dev/null
12189 lt_status=$?
12190 case x$lt_status in
12191 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12192 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12193 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12194 esac
12195 else :
12196 # compilation failed
12197 lt_cv_dlopen_self=no
12198 fi
12199fi
12200rm -fr conftest*
12201
12202
12203fi
12204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12205$as_echo "$lt_cv_dlopen_self" >&6; }
12206
12207 if test yes = "$lt_cv_dlopen_self"; then
12208 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12210$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12211if ${lt_cv_dlopen_self_static+:} false; then :
12212 $as_echo_n "(cached) " >&6
12213else
12214 if test yes = "$cross_compiling"; then :
12215 lt_cv_dlopen_self_static=cross
12216else
12217 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12218 lt_status=$lt_dlunknown
12219 cat > conftest.$ac_ext <<_LT_EOF
12220#line $LINENO "configure"
12221#include "confdefs.h"
12222
12223#if HAVE_DLFCN_H
12224#include <dlfcn.h>
12225#endif
12226
12227#include <stdio.h>
12228
12229#ifdef RTLD_GLOBAL
12230# define LT_DLGLOBAL RTLD_GLOBAL
12231#else
12232# ifdef DL_GLOBAL
12233# define LT_DLGLOBAL DL_GLOBAL
12234# else
12235# define LT_DLGLOBAL 0
12236# endif
12237#endif
12238
12239/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12240 find out it does not work in some platform. */
12241#ifndef LT_DLLAZY_OR_NOW
12242# ifdef RTLD_LAZY
12243# define LT_DLLAZY_OR_NOW RTLD_LAZY
12244# else
12245# ifdef DL_LAZY
12246# define LT_DLLAZY_OR_NOW DL_LAZY
12247# else
12248# ifdef RTLD_NOW
12249# define LT_DLLAZY_OR_NOW RTLD_NOW
12250# else
12251# ifdef DL_NOW
12252# define LT_DLLAZY_OR_NOW DL_NOW
12253# else
12254# define LT_DLLAZY_OR_NOW 0
12255# endif
12256# endif
12257# endif
12258# endif
12259#endif
12260
12261/* When -fvisibility=hidden is used, assume the code has been annotated
12262 correspondingly for the symbols needed. */
12263#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12264int fnord () __attribute__((visibility("default")));
12265#endif
12266
12267int fnord () { return 42; }
12268int main ()
12269{
12270 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12271 int status = $lt_dlunknown;
12272
12273 if (self)
12274 {
12275 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12276 else
12277 {
12278 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12279 else puts (dlerror ());
12280 }
12281 /* dlclose (self); */
12282 }
12283 else
12284 puts (dlerror ());
12285
12286 return status;
12287}
12288_LT_EOF
12289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12290 (eval $ac_link) 2>&5
12291 ac_status=$?
12292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12293 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12294 (./conftest; exit; ) >&5 2>/dev/null
12295 lt_status=$?
12296 case x$lt_status in
12297 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12298 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12299 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12300 esac
12301 else :
12302 # compilation failed
12303 lt_cv_dlopen_self_static=no
12304 fi
12305fi
12306rm -fr conftest*
12307
12308
12309fi
12310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12311$as_echo "$lt_cv_dlopen_self_static" >&6; }
12312 fi
12313
12314 CPPFLAGS=$save_CPPFLAGS
12315 LDFLAGS=$save_LDFLAGS
12316 LIBS=$save_LIBS
12317 ;;
12318 esac
12319
12320 case $lt_cv_dlopen_self in
12321 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12322 *) enable_dlopen_self=unknown ;;
12323 esac
12324
12325 case $lt_cv_dlopen_self_static in
12326 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12327 *) enable_dlopen_self_static=unknown ;;
12328 esac
12329fi
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347striplib=
12348old_striplib=
12349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12350$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12351if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12352 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12353 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12355$as_echo "yes" >&6; }
12356else
12357# FIXME - insert some real tests, host_os isn't really good enough
12358 case $host_os in
12359 darwin*)
12360 if test -n "$STRIP"; then
12361 striplib="$STRIP -x"
12362 old_striplib="$STRIP -S"
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12364$as_echo "yes" >&6; }
12365 else
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12367$as_echo "no" >&6; }
12368 fi
12369 ;;
12370 *)
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12372$as_echo "no" >&6; }
12373 ;;
12374 esac
12375fi
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388 # Report what library types will actually be built
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12390$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12392$as_echo "$can_build_shared" >&6; }
12393
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12395$as_echo_n "checking whether to build shared libraries... " >&6; }
12396 test no = "$can_build_shared" && enable_shared=no
12397
12398 # On AIX, shared libraries and static libraries use the same namespace, and
12399 # are all built from PIC.
12400 case $host_os in
12401 aix3*)
12402 test yes = "$enable_shared" && enable_static=no
12403 if test -n "$RANLIB"; then
12404 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12405 postinstall_cmds='$RANLIB $lib'
12406 fi
12407 ;;
12408
12409 aix[4-9]*)
12410 if test ia64 != "$host_cpu"; then
12411 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12412 yes,aix,yes) ;; # shared object as lib.so file only
12413 yes,svr4,*) ;; # shared object as lib.so archive member only
12414 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12415 esac
12416 fi
12417 ;;
12418 esac
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12420$as_echo "$enable_shared" >&6; }
12421
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12423$as_echo_n "checking whether to build static libraries... " >&6; }
12424 # Make sure either enable_shared or enable_static is yes.
12425 test yes = "$enable_shared" || enable_static=yes
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12427$as_echo "$enable_static" >&6; }
12428
12429
12430
12431
12432fi
12433ac_ext=c
12434ac_cpp='$CPP $CPPFLAGS'
12435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12437ac_compiler_gnu=$ac_cv_c_compiler_gnu
12438
12439CC=$lt_save_CC
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455 ac_config_commands="$ac_config_commands libtool"
12456
12457
12458
12459
12460# Only expand once:
12461
12462
12463
12464# Checks for header files.
12465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12466$as_echo_n "checking for ANSI C header files... " >&6; }
12467if ${ac_cv_header_stdc+:} false; then :
12468 $as_echo_n "(cached) " >&6
12469else
12470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12471/* end confdefs.h. */
12472#include <stdlib.h>
12473#include <stdarg.h>
12474#include <string.h>
12475#include <float.h>
12476
12477int
12478main ()
12479{
12480
12481 ;
12482 return 0;
12483}
12484_ACEOF
12485if ac_fn_c_try_compile "$LINENO"; then :
12486 ac_cv_header_stdc=yes
12487else
12488 ac_cv_header_stdc=no
12489fi
12490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12491
12492if test $ac_cv_header_stdc = yes; then
12493 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12495/* end confdefs.h. */
12496#include <string.h>
12497
12498_ACEOF
12499if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12500 $EGREP "memchr" >/dev/null 2>&1; then :
12501
12502else
12503 ac_cv_header_stdc=no
12504fi
12505rm -f conftest*
12506
12507fi
12508
12509if test $ac_cv_header_stdc = yes; then
12510 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12512/* end confdefs.h. */
12513#include <stdlib.h>
12514
12515_ACEOF
12516if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12517 $EGREP "free" >/dev/null 2>&1; then :
12518
12519else
12520 ac_cv_header_stdc=no
12521fi
12522rm -f conftest*
12523
12524fi
12525
12526if test $ac_cv_header_stdc = yes; then
12527 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12528 if test "$cross_compiling" = yes; then :
12529 :
12530else
12531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12532/* end confdefs.h. */
12533#include <ctype.h>
12534#include <stdlib.h>
12535#if ((' ' & 0x0FF) == 0x020)
12536# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12537# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12538#else
12539# define ISLOWER(c) \
12540 (('a' <= (c) && (c) <= 'i') \
12541 || ('j' <= (c) && (c) <= 'r') \
12542 || ('s' <= (c) && (c) <= 'z'))
12543# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12544#endif
12545
12546#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12547int
12548main ()
12549{
12550 int i;
12551 for (i = 0; i < 256; i++)
12552 if (XOR (islower (i), ISLOWER (i))
12553 || toupper (i) != TOUPPER (i))
12554 return 2;
12555 return 0;
12556}
12557_ACEOF
12558if ac_fn_c_try_run "$LINENO"; then :
12559
12560else
12561 ac_cv_header_stdc=no
12562fi
12563rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12564 conftest.$ac_objext conftest.beam conftest.$ac_ext
12565fi
12566
12567fi
12568fi
12569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12570$as_echo "$ac_cv_header_stdc" >&6; }
12571if test $ac_cv_header_stdc = yes; then
12572
12573$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12574
12575fi
12576
12577for ac_header in malloc.h stdlib.h string.h strings.h
12578do :
12579 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12580ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12581if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12582 cat >>confdefs.h <<_ACEOF
12583#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12584_ACEOF
12585
12586fi
12587
12588done
12589
12590
12591# Checks for typedefs, structures, and compiler characteristics.
12592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12593$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12594if ${ac_cv_c_const+:} false; then :
12595 $as_echo_n "(cached) " >&6
12596else
12597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12598/* end confdefs.h. */
12599
12600int
12601main ()
12602{
12603
12604#ifndef __cplusplus
12605 /* Ultrix mips cc rejects this sort of thing. */
12606 typedef int charset[2];
12607 const charset cs = { 0, 0 };
12608 /* SunOS 4.1.1 cc rejects this. */
12609 char const *const *pcpcc;
12610 char **ppc;
12611 /* NEC SVR4.0.2 mips cc rejects this. */
12612 struct point {int x, y;};
12613 static struct point const zero = {0,0};
12614 /* AIX XL C 1.02.0.0 rejects this.
12615 It does not let you subtract one const X* pointer from another in
12616 an arm of an if-expression whose if-part is not a constant
12617 expression */
12618 const char *g = "string";
12619 pcpcc = &g + (g ? g-g : 0);
12620 /* HPUX 7.0 cc rejects these. */
12621 ++pcpcc;
12622 ppc = (char**) pcpcc;
12623 pcpcc = (char const *const *) ppc;
12624 { /* SCO 3.2v4 cc rejects this sort of thing. */
12625 char tx;
12626 char *t = &tx;
12627 char const *s = 0 ? (char *) 0 : (char const *) 0;
12628
12629 *t++ = 0;
12630 if (s) return 0;
12631 }
12632 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12633 int x[] = {25, 17};
12634 const int *foo = &x[0];
12635 ++foo;
12636 }
12637 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12638 typedef const int *iptr;
12639 iptr p = 0;
12640 ++p;
12641 }
12642 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12643 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12644 struct s { int j; const int *ap[3]; } bx;
12645 struct s *b = &bx; b->j = 5;
12646 }
12647 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12648 const int foo = 10;
12649 if (!foo) return 0;
12650 }
12651 return !cs[0] && !zero.x;
12652#endif
12653
12654 ;
12655 return 0;
12656}
12657_ACEOF
12658if ac_fn_c_try_compile "$LINENO"; then :
12659 ac_cv_c_const=yes
12660else
12661 ac_cv_c_const=no
12662fi
12663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12664fi
12665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12666$as_echo "$ac_cv_c_const" >&6; }
12667if test $ac_cv_c_const = no; then
12668
12669$as_echo "#define const /**/" >>confdefs.h
12670
12671fi
12672
12673ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12674if test "x$ac_cv_type_size_t" = xyes; then :
12675
12676else
12677
12678cat >>confdefs.h <<_ACEOF
12679#define size_t unsigned int
12680_ACEOF
12681
12682fi
12683
12684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12685$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12686if ${ac_cv_struct_tm+:} false; then :
12687 $as_echo_n "(cached) " >&6
12688else
12689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12690/* end confdefs.h. */
12691#include <sys/types.h>
12692#include <time.h>
12693
12694int
12695main ()
12696{
12697struct tm tm;
12698 int *p = &tm.tm_sec;
12699 return !p;
12700 ;
12701 return 0;
12702}
12703_ACEOF
12704if ac_fn_c_try_compile "$LINENO"; then :
12705 ac_cv_struct_tm=time.h
12706else
12707 ac_cv_struct_tm=sys/time.h
12708fi
12709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12710fi
12711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12712$as_echo "$ac_cv_struct_tm" >&6; }
12713if test $ac_cv_struct_tm = sys/time.h; then
12714
12715$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12716
12717fi
12718
12719
12720# Checks for library functions.
12721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
12722$as_echo_n "checking for working strtod... " >&6; }
12723if ${ac_cv_func_strtod+:} false; then :
12724 $as_echo_n "(cached) " >&6
12725else
12726 if test "$cross_compiling" = yes; then :
12727 ac_cv_func_strtod=no
12728else
12729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12730/* end confdefs.h. */
12731
12732$ac_includes_default
12733#ifndef strtod
12734double strtod ();
12735#endif
12736int
12737main()
12738{
12739 {
12740 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
12741 char *string = " +69";
12742 char *term;
12743 double value;
12744 value = strtod (string, &term);
12745 if (value != 69 || term != (string + 4))
12746 return 1;
12747 }
12748
12749 {
12750 /* Under Solaris 2.4, strtod returns the wrong value for the
12751 terminating character under some conditions. */
12752 char *string = "NaN";
12753 char *term;
12754 strtod (string, &term);
12755 if (term != string && *(term - 1) == 0)
12756 return 1;
12757 }
12758 return 0;
12759}
12760
12761_ACEOF
12762if ac_fn_c_try_run "$LINENO"; then :
12763 ac_cv_func_strtod=yes
12764else
12765 ac_cv_func_strtod=no
12766fi
12767rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12768 conftest.$ac_objext conftest.beam conftest.$ac_ext
12769fi
12770
12771fi
12772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
12773$as_echo "$ac_cv_func_strtod" >&6; }
12774if test $ac_cv_func_strtod = no; then
12775 case " $LIBOBJS " in
12776 *" strtod.$ac_objext "* ) ;;
12777 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
12778 ;;
12779esac
12780
12781ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12782if test "x$ac_cv_func_pow" = xyes; then :
12783
12784fi
12785
12786if test $ac_cv_func_pow = no; then
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12788$as_echo_n "checking for pow in -lm... " >&6; }
12789if ${ac_cv_lib_m_pow+:} false; then :
12790 $as_echo_n "(cached) " >&6
12791else
12792 ac_check_lib_save_LIBS=$LIBS
12793LIBS="-lm $LIBS"
12794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12795/* end confdefs.h. */
12796
12797/* Override any GCC internal prototype to avoid an error.
12798 Use char because int might match the return type of a GCC
12799 builtin and then its argument prototype would still apply. */
12800#ifdef __cplusplus
12801extern "C"
12802#endif
12803char pow ();
12804int
12805main ()
12806{
12807return pow ();
12808 ;
12809 return 0;
12810}
12811_ACEOF
12812if ac_fn_c_try_link "$LINENO"; then :
12813 ac_cv_lib_m_pow=yes
12814else
12815 ac_cv_lib_m_pow=no
12816fi
12817rm -f core conftest.err conftest.$ac_objext \
12818 conftest$ac_exeext conftest.$ac_ext
12819LIBS=$ac_check_lib_save_LIBS
12820fi
12821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12822$as_echo "$ac_cv_lib_m_pow" >&6; }
12823if test "x$ac_cv_lib_m_pow" = xyes; then :
12824 POW_LIB=-lm
12825else
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
12827$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12828fi
12829
12830fi
12831
12832fi
12833
12834for ac_func in memset
12835do :
12836 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
12837if test "x$ac_cv_func_memset" = xyes; then :
12838 cat >>confdefs.h <<_ACEOF
12839#define HAVE_MEMSET 1
12840_ACEOF
12841
12842else
12843 as_fn_error $? "memset not found in libc" "$LINENO" 5
12844fi
12845done
12846
12847for ac_func in pow
12848do :
12849 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12850if test "x$ac_cv_func_pow" = xyes; then :
12851 cat >>confdefs.h <<_ACEOF
12852#define HAVE_POW 1
12853_ACEOF
12854
12855else
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12857$as_echo_n "checking for pow in -lm... " >&6; }
12858if ${ac_cv_lib_m_pow+:} false; then :
12859 $as_echo_n "(cached) " >&6
12860else
12861 ac_check_lib_save_LIBS=$LIBS
12862LIBS="-lm $LIBS"
12863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12864/* end confdefs.h. */
12865
12866/* Override any GCC internal prototype to avoid an error.
12867 Use char because int might match the return type of a GCC
12868 builtin and then its argument prototype would still apply. */
12869#ifdef __cplusplus
12870extern "C"
12871#endif
12872char pow ();
12873int
12874main ()
12875{
12876return pow ();
12877 ;
12878 return 0;
12879}
12880_ACEOF
12881if ac_fn_c_try_link "$LINENO"; then :
12882 ac_cv_lib_m_pow=yes
12883else
12884 ac_cv_lib_m_pow=no
12885fi
12886rm -f core conftest.err conftest.$ac_objext \
12887 conftest$ac_exeext conftest.$ac_ext
12888LIBS=$ac_check_lib_save_LIBS
12889fi
12890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12891$as_echo "$ac_cv_lib_m_pow" >&6; }
12892if test "x$ac_cv_lib_m_pow" = xyes; then :
12893 cat >>confdefs.h <<_ACEOF
12894#define HAVE_LIBM 1
12895_ACEOF
12896
12897 LIBS="-lm $LIBS"
12898
12899else
12900 as_fn_error $? "cannot find pow" "$LINENO" 5
12901fi
12902
12903fi
12904done
12905
12906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
12907$as_echo_n "checking for zlibVersion in -lz... " >&6; }
12908if ${ac_cv_lib_z_zlibVersion+:} false; then :
12909 $as_echo_n "(cached) " >&6
12910else
12911 ac_check_lib_save_LIBS=$LIBS
12912LIBS="-lz $LIBS"
12913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12914/* end confdefs.h. */
12915
12916/* Override any GCC internal prototype to avoid an error.
12917 Use char because int might match the return type of a GCC
12918 builtin and then its argument prototype would still apply. */
12919#ifdef __cplusplus
12920extern "C"
12921#endif
12922char zlibVersion ();
12923int
12924main ()
12925{
12926return zlibVersion ();
12927 ;
12928 return 0;
12929}
12930_ACEOF
12931if ac_fn_c_try_link "$LINENO"; then :
12932 ac_cv_lib_z_zlibVersion=yes
12933else
12934 ac_cv_lib_z_zlibVersion=no
12935fi
12936rm -f core conftest.err conftest.$ac_objext \
12937 conftest$ac_exeext conftest.$ac_ext
12938LIBS=$ac_check_lib_save_LIBS
12939fi
12940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
12941$as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
12942if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
12943 cat >>confdefs.h <<_ACEOF
12944#define HAVE_LIBZ 1
12945_ACEOF
12946
12947 LIBS="-lz $LIBS"
12948
12949else
12950 as_fn_error $? "zlib not installed" "$LINENO" 5
12951fi
12952
12953
12954case $host_os in
12955 aix*)
12956 LIBPNG_DEFINES=-DPNG_CONFIGURE_LIBPNG -D_ALL_SOURCE;;
12957 *)
12958 LIBPNG_DEFINES=-DPNG_CONFIGURE_LIBPNG;;
12959esac
12960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler code in pnggccrd.c can be compiled without PNG_NO_MMX_CODE" >&5
12961$as_echo_n "checking if assembler code in pnggccrd.c can be compiled without PNG_NO_MMX_CODE... " >&6; }
12962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12963/* end confdefs.h. */
12964#include "$srcdir/pnggccrd.c"
12965int
12966main ()
12967{
12968return 0;
12969 ;
12970 return 0;
12971}
12972_ACEOF
12973if ac_fn_c_try_compile "$LINENO"; then :
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12975$as_echo "yes" >&6; }
12976 LIBPNG_NO_MMX=""
12977else
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12979$as_echo "no" >&6; }
12980 LIBPNG_NO_MMX=-DPNG_NO_MMX_CODE
12981fi
12982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12983LIBPNG_DEFINES=$LIBPNG_DEFINES\ $LIBPNG_NO_MMX
12984
12985
12986
12987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
12988$as_echo_n "checking if libraries can be versioned... " >&6; }
12989GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
12990if test "$GLD"; then
12991 have_ld_version_script=yes
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12993$as_echo "yes" >&6; }
12994else
12995 have_ld_version_script=no
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12997$as_echo "no" >&6; }
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** You have not enabled versioned symbols." >&5
12999$as_echo "$as_me: WARNING: *** You have not enabled versioned symbols." >&2;}
13000fi
13001 if test "$have_ld_version_script" = "yes"; then
13002 HAVE_LD_VERSION_SCRIPT_TRUE=
13003 HAVE_LD_VERSION_SCRIPT_FALSE='#'
13004else
13005 HAVE_LD_VERSION_SCRIPT_TRUE='#'
13006 HAVE_LD_VERSION_SCRIPT_FALSE=
13007fi
13008
13009
13010if test "$have_ld_version_script" = "yes"; then
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbol prefix" >&5
13012$as_echo_n "checking for symbol prefix... " >&6; }
13013 SYMBOL_PREFIX=`echo "PREFIX=__USER_LABEL_PREFIX__" \
13014 | ${CPP-${CC-gcc} -E} - 2>&1 \
13015 | ${EGREP-grep} "^PREFIX=" \
13016 | ${SED-sed} "s:^PREFIX=::"`
13017
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMBOL_PREFIX" >&5
13019$as_echo "$SYMBOL_PREFIX" >&6; }
13020fi
13021
13022# Substitutions for .in files
13023
13024
13025
13026
13027
13028# Additional arguments (and substitutions)
13029# Allow the pkg-config directory to be set
13030
13031# Check whether --with-pkgconfigdir was given.
13032if test "${with_pkgconfigdir+set}" = set; then :
13033 withval=$with_pkgconfigdir; pkgconfigdir=${withval}
13034else
13035 pkgconfigdir='${libdir}/pkgconfig'
13036fi
13037
13038
13039
13040{ $as_echo "$as_me:${as_lineno-$LINENO}: pkgconfig directory is ${pkgconfigdir}" >&5
13041$as_echo "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;}
13042
13043# Make the *-config binary config scripts optional
13044
13045# Check whether --with-binconfigs was given.
13046if test "${with_binconfigs+set}" = set; then :
13047 withval=$with_binconfigs; if test "${withval}" = no; then
13048 binconfigs=
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: libpng-config scripts will not be built" >&5
13050$as_echo "$as_me: libpng-config scripts will not be built" >&6;}
13051 else
13052 binconfigs='${binconfigs}'
13053 fi
13054else
13055 binconfigs='${binconfigs}'
13056fi
13057
13058
13059
13060# Allow the old version number library, libpng.so, to be removed from
13061# the build
13062
13063# Check whether --with-libpng-compat was given.
13064if test "${with_libpng_compat+set}" = set; then :
13065 withval=$with_libpng_compat; if test "${withval}" = no; then
13066 compatlib=
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: libpng.so will not be built" >&5
13068$as_echo "$as_me: libpng.so will not be built" >&6;}
13069 else
13070 compatlib=libpng.la
13071 fi
13072else
13073 compatlib=libpng.la
13074fi
13075
13076
13077
13078# Config files, substituting as above
13079ac_config_files="$ac_config_files Makefile libpng.pc:scripts/libpng.pc-configure.in"
13080
13081ac_config_files="$ac_config_files libpng-config:scripts/libpng-config.in"
13082
13083
13084cat >confcache <<\_ACEOF
13085# This file is a shell script that caches the results of configure
13086# tests run on this system so they can be shared between configure
13087# scripts and configure runs, see configure's option --config-cache.
13088# It is not useful on other systems. If it contains results you don't
13089# want to keep, you may remove or edit it.
13090#
13091# config.status only pays attention to the cache file if you give it
13092# the --recheck option to rerun configure.
13093#
13094# `ac_cv_env_foo' variables (set or unset) will be overridden when
13095# loading this file, other *unset* `ac_cv_foo' will be assigned the
13096# following values.
13097
13098_ACEOF
13099
13100# The following way of writing the cache mishandles newlines in values,
13101# but we know of no workaround that is simple, portable, and efficient.
13102# So, we kill variables containing newlines.
13103# Ultrix sh set writes to stderr and can't be redirected directly,
13104# and sets the high bit in the cache file unless we assign to the vars.
13105(
13106 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13107 eval ac_val=\$$ac_var
13108 case $ac_val in #(
13109 *${as_nl}*)
13110 case $ac_var in #(
13111 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13112$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13113 esac
13114 case $ac_var in #(
13115 _ | IFS | as_nl) ;; #(
13116 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13117 *) { eval $ac_var=; unset $ac_var;} ;;
13118 esac ;;
13119 esac
13120 done
13121
13122 (set) 2>&1 |
13123 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13124 *${as_nl}ac_space=\ *)
13125 # `set' does not quote correctly, so add quotes: double-quote
13126 # substitution turns \\\\ into \\, and sed turns \\ into \.
13127 sed -n \
13128 "s/'/'\\\\''/g;
13129 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13130 ;; #(
13131 *)
13132 # `set' quotes correctly as required by POSIX, so do not add quotes.
13133 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13134 ;;
13135 esac |
13136 sort
13137) |
13138 sed '
13139 /^ac_cv_env_/b end
13140 t clear
13141 :clear
13142 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13143 t end
13144 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13145 :end' >>confcache
13146if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13147 if test -w "$cache_file"; then
13148 if test "x$cache_file" != "x/dev/null"; then
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13150$as_echo "$as_me: updating cache $cache_file" >&6;}
13151 if test ! -f "$cache_file" || test -h "$cache_file"; then
13152 cat confcache >"$cache_file"
13153 else
13154 case $cache_file in #(
13155 */* | ?:*)
13156 mv -f confcache "$cache_file"$$ &&
13157 mv -f "$cache_file"$$ "$cache_file" ;; #(
13158 *)
13159 mv -f confcache "$cache_file" ;;
13160 esac
13161 fi
13162 fi
13163 else
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13165$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13166 fi
13167fi
13168rm -f confcache
13169
13170test "x$prefix" = xNONE && prefix=$ac_default_prefix
13171# Let make expand exec_prefix.
13172test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13173
13174DEFS=-DHAVE_CONFIG_H
13175
13176ac_libobjs=
13177ac_ltlibobjs=
13178U=
13179for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13180 # 1. Remove the extension, and $U if already installed.
13181 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13182 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13183 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13184 # will be set to the directory where LIBOBJS objects are built.
13185 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13186 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13187done
13188LIBOBJS=$ac_libobjs
13189
13190LTLIBOBJS=$ac_ltlibobjs
13191
13192
13193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13194$as_echo_n "checking that generated files are newer than configure... " >&6; }
13195 if test -n "$am_sleep_pid"; then
13196 # Hide warnings about reused PIDs.
13197 wait $am_sleep_pid 2>/dev/null
13198 fi
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13200$as_echo "done" >&6; }
13201 if test -n "$EXEEXT"; then
13202 am__EXEEXT_TRUE=
13203 am__EXEEXT_FALSE='#'
13204else
13205 am__EXEEXT_TRUE='#'
13206 am__EXEEXT_FALSE=
13207fi
13208
13209if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13210 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13211Usually this means the macro was only invoked conditionally." "$LINENO" 5
13212fi
13213if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13214 as_fn_error $? "conditional \"AMDEP\" was never defined.
13215Usually this means the macro was only invoked conditionally." "$LINENO" 5
13216fi
13217if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13218 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13219Usually this means the macro was only invoked conditionally." "$LINENO" 5
13220fi
13221if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
13222 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
13223Usually this means the macro was only invoked conditionally." "$LINENO" 5
13224fi
13225
13226: "${CONFIG_STATUS=./config.status}"
13227ac_write_fail=0
13228ac_clean_files_save=$ac_clean_files
13229ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13230{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13231$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13232as_write_fail=0
13233cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13234#! $SHELL
13235# Generated by $as_me.
13236# Run this file to recreate the current configuration.
13237# Compiler output produced by configure, useful for debugging
13238# configure, is in config.log if it exists.
13239
13240debug=false
13241ac_cs_recheck=false
13242ac_cs_silent=false
13243
13244SHELL=\${CONFIG_SHELL-$SHELL}
13245export SHELL
13246_ASEOF
13247cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13248## -------------------- ##
13249## M4sh Initialization. ##
13250## -------------------- ##
13251
13252# Be more Bourne compatible
13253DUALCASE=1; export DUALCASE # for MKS sh
13254if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13255 emulate sh
13256 NULLCMD=:
13257 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13258 # is contrary to our usage. Disable this feature.
13259 alias -g '${1+"$@"}'='"$@"'
13260 setopt NO_GLOB_SUBST
13261else
13262 case `(set -o) 2>/dev/null` in #(
13263 *posix*) :
13264 set -o posix ;; #(
13265 *) :
13266 ;;
13267esac
13268fi
13269
13270
13271as_nl='
13272'
13273export as_nl
13274# Printing a long string crashes Solaris 7 /usr/bin/printf.
13275as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13276as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13277as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13278# Prefer a ksh shell builtin over an external printf program on Solaris,
13279# but without wasting forks for bash or zsh.
13280if test -z "$BASH_VERSION$ZSH_VERSION" \
13281 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13282 as_echo='print -r --'
13283 as_echo_n='print -rn --'
13284elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13285 as_echo='printf %s\n'
13286 as_echo_n='printf %s'
13287else
13288 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13289 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13290 as_echo_n='/usr/ucb/echo -n'
13291 else
13292 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13293 as_echo_n_body='eval
13294 arg=$1;
13295 case $arg in #(
13296 *"$as_nl"*)
13297 expr "X$arg" : "X\\(.*\\)$as_nl";
13298 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13299 esac;
13300 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13301 '
13302 export as_echo_n_body
13303 as_echo_n='sh -c $as_echo_n_body as_echo'
13304 fi
13305 export as_echo_body
13306 as_echo='sh -c $as_echo_body as_echo'
13307fi
13308
13309# The user is always right.
13310if test "${PATH_SEPARATOR+set}" != set; then
13311 PATH_SEPARATOR=:
13312 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13313 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13314 PATH_SEPARATOR=';'
13315 }
13316fi
13317
13318
13319# IFS
13320# We need space, tab and new line, in precisely that order. Quoting is
13321# there to prevent editors from complaining about space-tab.
13322# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13323# splitting by setting IFS to empty value.)
13324IFS=" "" $as_nl"
13325
13326# Find who we are. Look in the path if we contain no directory separator.
13327as_myself=
13328case $0 in #((
13329 *[\\/]* ) as_myself=$0 ;;
13330 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13331for as_dir in $PATH
13332do
13333 IFS=$as_save_IFS
13334 test -z "$as_dir" && as_dir=.
13335 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13336 done
13337IFS=$as_save_IFS
13338
13339 ;;
13340esac
13341# We did not find ourselves, most probably we were run as `sh COMMAND'
13342# in which case we are not to be found in the path.
13343if test "x$as_myself" = x; then
13344 as_myself=$0
13345fi
13346if test ! -f "$as_myself"; then
13347 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13348 exit 1
13349fi
13350
13351# Unset variables that we do not need and which cause bugs (e.g. in
13352# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13353# suppresses any "Segmentation fault" message there. '((' could
13354# trigger a bug in pdksh 5.2.14.
13355for as_var in BASH_ENV ENV MAIL MAILPATH
13356do eval test x\${$as_var+set} = xset \
13357 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13358done
13359PS1='$ '
13360PS2='> '
13361PS4='+ '
13362
13363# NLS nuisances.
13364LC_ALL=C
13365export LC_ALL
13366LANGUAGE=C
13367export LANGUAGE
13368
13369# CDPATH.
13370(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13371
13372
13373# as_fn_error STATUS ERROR [LINENO LOG_FD]
13374# ----------------------------------------
13375# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13376# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13377# script with STATUS, using 1 if that was 0.
13378as_fn_error ()
13379{
13380 as_status=$1; test $as_status -eq 0 && as_status=1
13381 if test "$4"; then
13382 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13383 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13384 fi
13385 $as_echo "$as_me: error: $2" >&2
13386 as_fn_exit $as_status
13387} # as_fn_error
13388
13389
13390# as_fn_set_status STATUS
13391# -----------------------
13392# Set $? to STATUS, without forking.
13393as_fn_set_status ()
13394{
13395 return $1
13396} # as_fn_set_status
13397
13398# as_fn_exit STATUS
13399# -----------------
13400# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13401as_fn_exit ()
13402{
13403 set +e
13404 as_fn_set_status $1
13405 exit $1
13406} # as_fn_exit
13407
13408# as_fn_unset VAR
13409# ---------------
13410# Portably unset VAR.
13411as_fn_unset ()
13412{
13413 { eval $1=; unset $1;}
13414}
13415as_unset=as_fn_unset
13416# as_fn_append VAR VALUE
13417# ----------------------
13418# Append the text in VALUE to the end of the definition contained in VAR. Take
13419# advantage of any shell optimizations that allow amortized linear growth over
13420# repeated appends, instead of the typical quadratic growth present in naive
13421# implementations.
13422if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13423 eval 'as_fn_append ()
13424 {
13425 eval $1+=\$2
13426 }'
13427else
13428 as_fn_append ()
13429 {
13430 eval $1=\$$1\$2
13431 }
13432fi # as_fn_append
13433
13434# as_fn_arith ARG...
13435# ------------------
13436# Perform arithmetic evaluation on the ARGs, and store the result in the
13437# global $as_val. Take advantage of shells that can avoid forks. The arguments
13438# must be portable across $(()) and expr.
13439if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13440 eval 'as_fn_arith ()
13441 {
13442 as_val=$(( $* ))
13443 }'
13444else
13445 as_fn_arith ()
13446 {
13447 as_val=`expr "$@" || test $? -eq 1`
13448 }
13449fi # as_fn_arith
13450
13451
13452if expr a : '\(a\)' >/dev/null 2>&1 &&
13453 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13454 as_expr=expr
13455else
13456 as_expr=false
13457fi
13458
13459if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13460 as_basename=basename
13461else
13462 as_basename=false
13463fi
13464
13465if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13466 as_dirname=dirname
13467else
13468 as_dirname=false
13469fi
13470
13471as_me=`$as_basename -- "$0" ||
13472$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13473 X"$0" : 'X\(//\)$' \| \
13474 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13475$as_echo X/"$0" |
13476 sed '/^.*\/\([^/][^/]*\)\/*$/{
13477 s//\1/
13478 q
13479 }
13480 /^X\/\(\/\/\)$/{
13481 s//\1/
13482 q
13483 }
13484 /^X\/\(\/\).*/{
13485 s//\1/
13486 q
13487 }
13488 s/.*/./; q'`
13489
13490# Avoid depending upon Character Ranges.
13491as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13492as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13493as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13494as_cr_digits='0123456789'
13495as_cr_alnum=$as_cr_Letters$as_cr_digits
13496
13497ECHO_C= ECHO_N= ECHO_T=
13498case `echo -n x` in #(((((
13499-n*)
13500 case `echo 'xy\c'` in
13501 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13502 xy) ECHO_C='\c';;
13503 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13504 ECHO_T=' ';;
13505 esac;;
13506*)
13507 ECHO_N='-n';;
13508esac
13509
13510rm -f conf$$ conf$$.exe conf$$.file
13511if test -d conf$$.dir; then
13512 rm -f conf$$.dir/conf$$.file
13513else
13514 rm -f conf$$.dir
13515 mkdir conf$$.dir 2>/dev/null
13516fi
13517if (echo >conf$$.file) 2>/dev/null; then
13518 if ln -s conf$$.file conf$$ 2>/dev/null; then
13519 as_ln_s='ln -s'
13520 # ... but there are two gotchas:
13521 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13522 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13523 # In both cases, we have to default to `cp -pR'.
13524 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13525 as_ln_s='cp -pR'
13526 elif ln conf$$.file conf$$ 2>/dev/null; then
13527 as_ln_s=ln
13528 else
13529 as_ln_s='cp -pR'
13530 fi
13531else
13532 as_ln_s='cp -pR'
13533fi
13534rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13535rmdir conf$$.dir 2>/dev/null
13536
13537
13538# as_fn_mkdir_p
13539# -------------
13540# Create "$as_dir" as a directory, including parents if necessary.
13541as_fn_mkdir_p ()
13542{
13543
13544 case $as_dir in #(
13545 -*) as_dir=./$as_dir;;
13546 esac
13547 test -d "$as_dir" || eval $as_mkdir_p || {
13548 as_dirs=
13549 while :; do
13550 case $as_dir in #(
13551 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13552 *) as_qdir=$as_dir;;
13553 esac
13554 as_dirs="'$as_qdir' $as_dirs"
13555 as_dir=`$as_dirname -- "$as_dir" ||
13556$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13557 X"$as_dir" : 'X\(//\)[^/]' \| \
13558 X"$as_dir" : 'X\(//\)$' \| \
13559 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13560$as_echo X"$as_dir" |
13561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13562 s//\1/
13563 q
13564 }
13565 /^X\(\/\/\)[^/].*/{
13566 s//\1/
13567 q
13568 }
13569 /^X\(\/\/\)$/{
13570 s//\1/
13571 q
13572 }
13573 /^X\(\/\).*/{
13574 s//\1/
13575 q
13576 }
13577 s/.*/./; q'`
13578 test -d "$as_dir" && break
13579 done
13580 test -z "$as_dirs" || eval "mkdir $as_dirs"
13581 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13582
13583
13584} # as_fn_mkdir_p
13585if mkdir -p . 2>/dev/null; then
13586 as_mkdir_p='mkdir -p "$as_dir"'
13587else
13588 test -d ./-p && rmdir ./-p
13589 as_mkdir_p=false
13590fi
13591
13592
13593# as_fn_executable_p FILE
13594# -----------------------
13595# Test if FILE is an executable regular file.
13596as_fn_executable_p ()
13597{
13598 test -f "$1" && test -x "$1"
13599} # as_fn_executable_p
13600as_test_x='test -x'
13601as_executable_p=as_fn_executable_p
13602
13603# Sed expression to map a string onto a valid CPP name.
13604as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13605
13606# Sed expression to map a string onto a valid variable name.
13607as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13608
13609
13610exec 6>&1
13611## ----------------------------------- ##
13612## Main body of $CONFIG_STATUS script. ##
13613## ----------------------------------- ##
13614_ASEOF
13615test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13616
13617cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13618# Save the log message, to keep $0 and so on meaningful, and to
13619# report actual input values of CONFIG_FILES etc. instead of their
13620# values after options handling.
13621ac_log="
13622This file was extended by libpng $as_me 1.2.54, which was
13623generated by GNU Autoconf 2.69. Invocation command line was
13624
13625 CONFIG_FILES = $CONFIG_FILES
13626 CONFIG_HEADERS = $CONFIG_HEADERS
13627 CONFIG_LINKS = $CONFIG_LINKS
13628 CONFIG_COMMANDS = $CONFIG_COMMANDS
13629 $ $0 $@
13630
13631on `(hostname || uname -n) 2>/dev/null | sed 1q`
13632"
13633
13634_ACEOF
13635
13636case $ac_config_files in *"
13637"*) set x $ac_config_files; shift; ac_config_files=$*;;
13638esac
13639
13640case $ac_config_headers in *"
13641"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13642esac
13643
13644
13645cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13646# Files that config.status was made for.
13647config_files="$ac_config_files"
13648config_headers="$ac_config_headers"
13649config_commands="$ac_config_commands"
13650
13651_ACEOF
13652
13653cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13654ac_cs_usage="\
13655\`$as_me' instantiates files and other configuration actions
13656from templates according to the current configuration. Unless the files
13657and actions are specified as TAGs, all are instantiated by default.
13658
13659Usage: $0 [OPTION]... [TAG]...
13660
13661 -h, --help print this help, then exit
13662 -V, --version print version number and configuration settings, then exit
13663 --config print configuration, then exit
13664 -q, --quiet, --silent
13665 do not print progress messages
13666 -d, --debug don't remove temporary files
13667 --recheck update $as_me by reconfiguring in the same conditions
13668 --file=FILE[:TEMPLATE]
13669 instantiate the configuration file FILE
13670 --header=FILE[:TEMPLATE]
13671 instantiate the configuration header FILE
13672
13673Configuration files:
13674$config_files
13675
13676Configuration headers:
13677$config_headers
13678
13679Configuration commands:
13680$config_commands
13681
13682Report bugs to <png-mng-implement@lists.sourceforge.net>."
13683
13684_ACEOF
13685cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13686ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13687ac_cs_version="\\
13688libpng config.status 1.2.54
13689configured by $0, generated by GNU Autoconf 2.69,
13690 with options \\"\$ac_cs_config\\"
13691
13692Copyright (C) 2012 Free Software Foundation, Inc.
13693This config.status script is free software; the Free Software Foundation
13694gives unlimited permission to copy, distribute and modify it."
13695
13696ac_pwd='$ac_pwd'
13697srcdir='$srcdir'
13698INSTALL='$INSTALL'
13699MKDIR_P='$MKDIR_P'
13700AWK='$AWK'
13701test -n "\$AWK" || AWK=awk
13702_ACEOF
13703
13704cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13705# The default lists apply if the user does not specify any file.
13706ac_need_defaults=:
13707while test $# != 0
13708do
13709 case $1 in
13710 --*=?*)
13711 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13712 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13713 ac_shift=:
13714 ;;
13715 --*=)
13716 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13717 ac_optarg=
13718 ac_shift=:
13719 ;;
13720 *)
13721 ac_option=$1
13722 ac_optarg=$2
13723 ac_shift=shift
13724 ;;
13725 esac
13726
13727 case $ac_option in
13728 # Handling of the options.
13729 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13730 ac_cs_recheck=: ;;
13731 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13732 $as_echo "$ac_cs_version"; exit ;;
13733 --config | --confi | --conf | --con | --co | --c )
13734 $as_echo "$ac_cs_config"; exit ;;
13735 --debug | --debu | --deb | --de | --d | -d )
13736 debug=: ;;
13737 --file | --fil | --fi | --f )
13738 $ac_shift
13739 case $ac_optarg in
13740 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13741 '') as_fn_error $? "missing file argument" ;;
13742 esac
13743 as_fn_append CONFIG_FILES " '$ac_optarg'"
13744 ac_need_defaults=false;;
13745 --header | --heade | --head | --hea )
13746 $ac_shift
13747 case $ac_optarg in
13748 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13749 esac
13750 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13751 ac_need_defaults=false;;
13752 --he | --h)
13753 # Conflict between --help and --header
13754 as_fn_error $? "ambiguous option: \`$1'
13755Try \`$0 --help' for more information.";;
13756 --help | --hel | -h )
13757 $as_echo "$ac_cs_usage"; exit ;;
13758 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13759 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13760 ac_cs_silent=: ;;
13761
13762 # This is an error.
13763 -*) as_fn_error $? "unrecognized option: \`$1'
13764Try \`$0 --help' for more information." ;;
13765
13766 *) as_fn_append ac_config_targets " $1"
13767 ac_need_defaults=false ;;
13768
13769 esac
13770 shift
13771done
13772
13773ac_configure_extra_args=
13774
13775if $ac_cs_silent; then
13776 exec 6>/dev/null
13777 ac_configure_extra_args="$ac_configure_extra_args --silent"
13778fi
13779
13780_ACEOF
13781cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13782if \$ac_cs_recheck; then
13783 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13784 shift
13785 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13786 CONFIG_SHELL='$SHELL'
13787 export CONFIG_SHELL
13788 exec "\$@"
13789fi
13790
13791_ACEOF
13792cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13793exec 5>>config.log
13794{
13795 echo
13796 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13797## Running $as_me. ##
13798_ASBOX
13799 $as_echo "$ac_log"
13800} >&5
13801
13802_ACEOF
13803cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13804#
13805# INIT-COMMANDS
13806#
13807AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13808
13809
13810# The HP-UX ksh and POSIX shell print the target directory to stdout
13811# if CDPATH is set.
13812(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13813
13814sed_quote_subst='$sed_quote_subst'
13815double_quote_subst='$double_quote_subst'
13816delay_variable_subst='$delay_variable_subst'
13817SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13818Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13819GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13820EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13821FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13822SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13823ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13824LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13825AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13826DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13827OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13828macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13829macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13830enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13831enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13832pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13833enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13834shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13835PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13836host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13837host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13838host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13839build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13840build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13841build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13842NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13843LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13844max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13845ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13846exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13847lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13848lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13849lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13850lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13851lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13852reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13853reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13854deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13855file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13856file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13857want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13858sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13859AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13860AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13861archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13862STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13863RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13864old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13865old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13866old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13867lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13868CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13869CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13870compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13871GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13872lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13873lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13874lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13875lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13876lt_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"`'
13877lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13878nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13879lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13880lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13881objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13882MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13883lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13884lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13885lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13886lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13887lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13888need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13889MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13890DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13891NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13892LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13893OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13894OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13895libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13896shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13897extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13898archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13899enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13900export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13901whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13902compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13903old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13904old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13905archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13906archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13907module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13908module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13909with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13910allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13911no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13912hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13913hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13914hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13915hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13916hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13917hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13918hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13919inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13920link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13921always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13922export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13923exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13924include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13925prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13926postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13927file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13928variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13929need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13930need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13931version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13932runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13933shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13934shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13935libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13936library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13937soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13938install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13939postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13940postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13941finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13942finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13943hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13944sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13945configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13946configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13947hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13948enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13949enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13950enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13951old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13952striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13953
13954LTCC='$LTCC'
13955LTCFLAGS='$LTCFLAGS'
13956compiler='$compiler_DEFAULT'
13957
13958# A function that is used when there is no print builtin or printf.
13959func_fallback_echo ()
13960{
13961 eval 'cat <<_LTECHO_EOF
13962\$1
13963_LTECHO_EOF'
13964}
13965
13966# Quote evaled strings.
13967for var in SED \
13968GREP \
13969EGREP \
13970FGREP \
13971SHELL \
13972ECHO \
13973LD \
13974AS \
13975DLLTOOL \
13976OBJDUMP \
13977PATH_SEPARATOR \
13978NM \
13979LN_S \
13980lt_SP2NL \
13981lt_NL2SP \
13982reload_flag \
13983deplibs_check_method \
13984file_magic_cmd \
13985file_magic_glob \
13986want_nocaseglob \
13987sharedlib_from_linklib_cmd \
13988AR \
13989AR_FLAGS \
13990archiver_list_spec \
13991STRIP \
13992RANLIB \
13993CC \
13994CFLAGS \
13995compiler \
13996lt_cv_sys_global_symbol_pipe \
13997lt_cv_sys_global_symbol_to_cdecl \
13998lt_cv_sys_global_symbol_to_import \
13999lt_cv_sys_global_symbol_to_c_name_address \
14000lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14001lt_cv_nm_interface \
14002nm_file_list_spec \
14003lt_cv_truncate_bin \
14004lt_prog_compiler_no_builtin_flag \
14005lt_prog_compiler_pic \
14006lt_prog_compiler_wl \
14007lt_prog_compiler_static \
14008lt_cv_prog_compiler_c_o \
14009need_locks \
14010MANIFEST_TOOL \
14011DSYMUTIL \
14012NMEDIT \
14013LIPO \
14014OTOOL \
14015OTOOL64 \
14016shrext_cmds \
14017export_dynamic_flag_spec \
14018whole_archive_flag_spec \
14019compiler_needs_object \
14020with_gnu_ld \
14021allow_undefined_flag \
14022no_undefined_flag \
14023hardcode_libdir_flag_spec \
14024hardcode_libdir_separator \
14025exclude_expsyms \
14026include_expsyms \
14027file_list_spec \
14028variables_saved_for_relink \
14029libname_spec \
14030library_names_spec \
14031soname_spec \
14032install_override_mode \
14033finish_eval \
14034old_striplib \
14035striplib; do
14036 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14037 *[\\\\\\\`\\"\\\$]*)
14038 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14039 ;;
14040 *)
14041 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14042 ;;
14043 esac
14044done
14045
14046# Double-quote double-evaled strings.
14047for var in reload_cmds \
14048old_postinstall_cmds \
14049old_postuninstall_cmds \
14050old_archive_cmds \
14051extract_expsyms_cmds \
14052old_archive_from_new_cmds \
14053old_archive_from_expsyms_cmds \
14054archive_cmds \
14055archive_expsym_cmds \
14056module_cmds \
14057module_expsym_cmds \
14058export_symbols_cmds \
14059prelink_cmds \
14060postlink_cmds \
14061postinstall_cmds \
14062postuninstall_cmds \
14063finish_cmds \
14064sys_lib_search_path_spec \
14065configure_time_dlsearch_path \
14066configure_time_lt_sys_library_path; do
14067 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14068 *[\\\\\\\`\\"\\\$]*)
14069 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14070 ;;
14071 *)
14072 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14073 ;;
14074 esac
14075done
14076
14077ac_aux_dir='$ac_aux_dir'
14078
14079# See if we are running on zsh, and set the options that allow our
14080# commands through without removal of \ escapes INIT.
14081if test -n "\${ZSH_VERSION+set}"; then
14082 setopt NO_GLOB_SUBST
14083fi
14084
14085
14086 PACKAGE='$PACKAGE'
14087 VERSION='$VERSION'
14088 RM='$RM'
14089 ofile='$ofile'
14090
14091
14092
14093
14094_ACEOF
14095
14096cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14097
14098# Handling of arguments.
14099for ac_config_target in $ac_config_targets
14100do
14101 case $ac_config_target in
14102 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14103 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14104 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14105 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14106 "libpng.pc") CONFIG_FILES="$CONFIG_FILES libpng.pc:scripts/libpng.pc-configure.in" ;;
14107 "libpng-config") CONFIG_FILES="$CONFIG_FILES libpng-config:scripts/libpng-config.in" ;;
14108
14109 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14110 esac
14111done
14112
14113
14114# If the user did not use the arguments to specify the items to instantiate,
14115# then the envvar interface is used. Set only those that are not.
14116# We use the long form for the default assignment because of an extremely
14117# bizarre bug on SunOS 4.1.3.
14118if $ac_need_defaults; then
14119 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14120 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14121 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14122fi
14123
14124# Have a temporary directory for convenience. Make it in the build tree
14125# simply because there is no reason against having it here, and in addition,
14126# creating and moving files from /tmp can sometimes cause problems.
14127# Hook for its removal unless debugging.
14128# Note that there is a small window in which the directory will not be cleaned:
14129# after its creation but before its name has been assigned to `$tmp'.
14130$debug ||
14131{
14132 tmp= ac_tmp=
14133 trap 'exit_status=$?
14134 : "${ac_tmp:=$tmp}"
14135 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14136' 0
14137 trap 'as_fn_exit 1' 1 2 13 15
14138}
14139# Create a (secure) tmp directory for tmp files.
14140
14141{
14142 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14143 test -d "$tmp"
14144} ||
14145{
14146 tmp=./conf$$-$RANDOM
14147 (umask 077 && mkdir "$tmp")
14148} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14149ac_tmp=$tmp
14150
14151# Set up the scripts for CONFIG_FILES section.
14152# No need to generate them if there are no CONFIG_FILES.
14153# This happens for instance with `./config.status config.h'.
14154if test -n "$CONFIG_FILES"; then
14155
14156
14157ac_cr=`echo X | tr X '\015'`
14158# On cygwin, bash can eat \r inside `` if the user requested igncr.
14159# But we know of no other shell where ac_cr would be empty at this
14160# point, so we can use a bashism as a fallback.
14161if test "x$ac_cr" = x; then
14162 eval ac_cr=\$\'\\r\'
14163fi
14164ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14165if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14166 ac_cs_awk_cr='\\r'
14167else
14168 ac_cs_awk_cr=$ac_cr
14169fi
14170
14171echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14172_ACEOF
14173
14174
14175{
14176 echo "cat >conf$$subs.awk <<_ACEOF" &&
14177 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14178 echo "_ACEOF"
14179} >conf$$subs.sh ||
14180 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14181ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14182ac_delim='%!_!# '
14183for ac_last_try in false false false false false :; do
14184 . ./conf$$subs.sh ||
14185 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14186
14187 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14188 if test $ac_delim_n = $ac_delim_num; then
14189 break
14190 elif $ac_last_try; then
14191 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14192 else
14193 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14194 fi
14195done
14196rm -f conf$$subs.sh
14197
14198cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14199cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14200_ACEOF
14201sed -n '
14202h
14203s/^/S["/; s/!.*/"]=/
14204p
14205g
14206s/^[^!]*!//
14207:repl
14208t repl
14209s/'"$ac_delim"'$//
14210t delim
14211:nl
14212h
14213s/\(.\{148\}\)..*/\1/
14214t more1
14215s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14216p
14217n
14218b repl
14219:more1
14220s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14221p
14222g
14223s/.\{148\}//
14224t nl
14225:delim
14226h
14227s/\(.\{148\}\)..*/\1/
14228t more2
14229s/["\\]/\\&/g; s/^/"/; s/$/"/
14230p
14231b
14232:more2
14233s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14234p
14235g
14236s/.\{148\}//
14237t delim
14238' <conf$$subs.awk | sed '
14239/^[^""]/{
14240 N
14241 s/\n//
14242}
14243' >>$CONFIG_STATUS || ac_write_fail=1
14244rm -f conf$$subs.awk
14245cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14246_ACAWK
14247cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14248 for (key in S) S_is_set[key] = 1
14249 FS = ""
14250
14251}
14252{
14253 line = $ 0
14254 nfields = split(line, field, "@")
14255 substed = 0
14256 len = length(field[1])
14257 for (i = 2; i < nfields; i++) {
14258 key = field[i]
14259 keylen = length(key)
14260 if (S_is_set[key]) {
14261 value = S[key]
14262 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14263 len += length(value) + length(field[++i])
14264 substed = 1
14265 } else
14266 len += 1 + keylen
14267 }
14268
14269 print line
14270}
14271
14272_ACAWK
14273_ACEOF
14274cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14275if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14276 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14277else
14278 cat
14279fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14280 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14281_ACEOF
14282
14283# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14284# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14285# trailing colons and then remove the whole line if VPATH becomes empty
14286# (actually we leave an empty line to preserve line numbers).
14287if test "x$srcdir" = x.; then
14288 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14289h
14290s///
14291s/^/:/
14292s/[ ]*$/:/
14293s/:\$(srcdir):/:/g
14294s/:\${srcdir}:/:/g
14295s/:@srcdir@:/:/g
14296s/^:*//
14297s/:*$//
14298x
14299s/\(=[ ]*\).*/\1/
14300G
14301s/\n//
14302s/^[^=]*=[ ]*$//
14303}'
14304fi
14305
14306cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14307fi # test -n "$CONFIG_FILES"
14308
14309# Set up the scripts for CONFIG_HEADERS section.
14310# No need to generate them if there are no CONFIG_HEADERS.
14311# This happens for instance with `./config.status Makefile'.
14312if test -n "$CONFIG_HEADERS"; then
14313cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14314BEGIN {
14315_ACEOF
14316
14317# Transform confdefs.h into an awk script `defines.awk', embedded as
14318# here-document in config.status, that substitutes the proper values into
14319# config.h.in to produce config.h.
14320
14321# Create a delimiter string that does not exist in confdefs.h, to ease
14322# handling of long lines.
14323ac_delim='%!_!# '
14324for ac_last_try in false false :; do
14325 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14326 if test -z "$ac_tt"; then
14327 break
14328 elif $ac_last_try; then
14329 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14330 else
14331 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14332 fi
14333done
14334
14335# For the awk script, D is an array of macro values keyed by name,
14336# likewise P contains macro parameters if any. Preserve backslash
14337# newline sequences.
14338
14339ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14340sed -n '
14341s/.\{148\}/&'"$ac_delim"'/g
14342t rset
14343:rset
14344s/^[ ]*#[ ]*define[ ][ ]*/ /
14345t def
14346d
14347:def
14348s/\\$//
14349t bsnl
14350s/["\\]/\\&/g
14351s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14352D["\1"]=" \3"/p
14353s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14354d
14355:bsnl
14356s/["\\]/\\&/g
14357s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14358D["\1"]=" \3\\\\\\n"\\/p
14359t cont
14360s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14361t cont
14362d
14363:cont
14364n
14365s/.\{148\}/&'"$ac_delim"'/g
14366t clear
14367:clear
14368s/\\$//
14369t bsnlc
14370s/["\\]/\\&/g; s/^/"/; s/$/"/p
14371d
14372:bsnlc
14373s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14374b cont
14375' <confdefs.h | sed '
14376s/'"$ac_delim"'/"\\\
14377"/g' >>$CONFIG_STATUS || ac_write_fail=1
14378
14379cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14380 for (key in D) D_is_set[key] = 1
14381 FS = ""
14382}
14383/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14384 line = \$ 0
14385 split(line, arg, " ")
14386 if (arg[1] == "#") {
14387 defundef = arg[2]
14388 mac1 = arg[3]
14389 } else {
14390 defundef = substr(arg[1], 2)
14391 mac1 = arg[2]
14392 }
14393 split(mac1, mac2, "(") #)
14394 macro = mac2[1]
14395 prefix = substr(line, 1, index(line, defundef) - 1)
14396 if (D_is_set[macro]) {
14397 # Preserve the white space surrounding the "#".
14398 print prefix "define", macro P[macro] D[macro]
14399 next
14400 } else {
14401 # Replace #undef with comments. This is necessary, for example,
14402 # in the case of _POSIX_SOURCE, which is predefined and required
14403 # on some systems where configure will not decide to define it.
14404 if (defundef == "undef") {
14405 print "/*", prefix defundef, macro, "*/"
14406 next
14407 }
14408 }
14409}
14410{ print }
14411_ACAWK
14412_ACEOF
14413cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14414 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14415fi # test -n "$CONFIG_HEADERS"
14416
14417
14418eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14419shift
14420for ac_tag
14421do
14422 case $ac_tag in
14423 :[FHLC]) ac_mode=$ac_tag; continue;;
14424 esac
14425 case $ac_mode$ac_tag in
14426 :[FHL]*:*);;
14427 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14428 :[FH]-) ac_tag=-:-;;
14429 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14430 esac
14431 ac_save_IFS=$IFS
14432 IFS=:
14433 set x $ac_tag
14434 IFS=$ac_save_IFS
14435 shift
14436 ac_file=$1
14437 shift
14438
14439 case $ac_mode in
14440 :L) ac_source=$1;;
14441 :[FH])
14442 ac_file_inputs=
14443 for ac_f
14444 do
14445 case $ac_f in
14446 -) ac_f="$ac_tmp/stdin";;
14447 *) # Look for the file first in the build tree, then in the source tree
14448 # (if the path is not absolute). The absolute path cannot be DOS-style,
14449 # because $ac_f cannot contain `:'.
14450 test -f "$ac_f" ||
14451 case $ac_f in
14452 [\\/$]*) false;;
14453 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14454 esac ||
14455 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14456 esac
14457 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14458 as_fn_append ac_file_inputs " '$ac_f'"
14459 done
14460
14461 # Let's still pretend it is `configure' which instantiates (i.e., don't
14462 # use $as_me), people would be surprised to read:
14463 # /* config.h. Generated by config.status. */
14464 configure_input='Generated from '`
14465 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14466 `' by configure.'
14467 if test x"$ac_file" != x-; then
14468 configure_input="$ac_file. $configure_input"
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14470$as_echo "$as_me: creating $ac_file" >&6;}
14471 fi
14472 # Neutralize special characters interpreted by sed in replacement strings.
14473 case $configure_input in #(
14474 *\&* | *\|* | *\\* )
14475 ac_sed_conf_input=`$as_echo "$configure_input" |
14476 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14477 *) ac_sed_conf_input=$configure_input;;
14478 esac
14479
14480 case $ac_tag in
14481 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14482 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14483 esac
14484 ;;
14485 esac
14486
14487 ac_dir=`$as_dirname -- "$ac_file" ||
14488$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14489 X"$ac_file" : 'X\(//\)[^/]' \| \
14490 X"$ac_file" : 'X\(//\)$' \| \
14491 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14492$as_echo X"$ac_file" |
14493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14494 s//\1/
14495 q
14496 }
14497 /^X\(\/\/\)[^/].*/{
14498 s//\1/
14499 q
14500 }
14501 /^X\(\/\/\)$/{
14502 s//\1/
14503 q
14504 }
14505 /^X\(\/\).*/{
14506 s//\1/
14507 q
14508 }
14509 s/.*/./; q'`
14510 as_dir="$ac_dir"; as_fn_mkdir_p
14511 ac_builddir=.
14512
14513case "$ac_dir" in
14514.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14515*)
14516 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14517 # A ".." for each directory in $ac_dir_suffix.
14518 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14519 case $ac_top_builddir_sub in
14520 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14521 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14522 esac ;;
14523esac
14524ac_abs_top_builddir=$ac_pwd
14525ac_abs_builddir=$ac_pwd$ac_dir_suffix
14526# for backward compatibility:
14527ac_top_builddir=$ac_top_build_prefix
14528
14529case $srcdir in
14530 .) # We are building in place.
14531 ac_srcdir=.
14532 ac_top_srcdir=$ac_top_builddir_sub
14533 ac_abs_top_srcdir=$ac_pwd ;;
14534 [\\/]* | ?:[\\/]* ) # Absolute name.
14535 ac_srcdir=$srcdir$ac_dir_suffix;
14536 ac_top_srcdir=$srcdir
14537 ac_abs_top_srcdir=$srcdir ;;
14538 *) # Relative name.
14539 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14540 ac_top_srcdir=$ac_top_build_prefix$srcdir
14541 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14542esac
14543ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14544
14545
14546 case $ac_mode in
14547 :F)
14548 #
14549 # CONFIG_FILE
14550 #
14551
14552 case $INSTALL in
14553 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14554 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14555 esac
14556 ac_MKDIR_P=$MKDIR_P
14557 case $MKDIR_P in
14558 [\\/$]* | ?:[\\/]* ) ;;
14559 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14560 esac
14561_ACEOF
14562
14563cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14564# If the template does not know about datarootdir, expand it.
14565# FIXME: This hack should be removed a few years after 2.60.
14566ac_datarootdir_hack=; ac_datarootdir_seen=
14567ac_sed_dataroot='
14568/datarootdir/ {
14569 p
14570 q
14571}
14572/@datadir@/p
14573/@docdir@/p
14574/@infodir@/p
14575/@localedir@/p
14576/@mandir@/p'
14577case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14578*datarootdir*) ac_datarootdir_seen=yes;;
14579*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14581$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14582_ACEOF
14583cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14584 ac_datarootdir_hack='
14585 s&@datadir@&$datadir&g
14586 s&@docdir@&$docdir&g
14587 s&@infodir@&$infodir&g
14588 s&@localedir@&$localedir&g
14589 s&@mandir@&$mandir&g
14590 s&\\\${datarootdir}&$datarootdir&g' ;;
14591esac
14592_ACEOF
14593
14594# Neutralize VPATH when `$srcdir' = `.'.
14595# Shell code in configure.ac might set extrasub.
14596# FIXME: do we really want to maintain this feature?
14597cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14598ac_sed_extra="$ac_vpsub
14599$extrasub
14600_ACEOF
14601cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14602:t
14603/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14604s|@configure_input@|$ac_sed_conf_input|;t t
14605s&@top_builddir@&$ac_top_builddir_sub&;t t
14606s&@top_build_prefix@&$ac_top_build_prefix&;t t
14607s&@srcdir@&$ac_srcdir&;t t
14608s&@abs_srcdir@&$ac_abs_srcdir&;t t
14609s&@top_srcdir@&$ac_top_srcdir&;t t
14610s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14611s&@builddir@&$ac_builddir&;t t
14612s&@abs_builddir@&$ac_abs_builddir&;t t
14613s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14614s&@INSTALL@&$ac_INSTALL&;t t
14615s&@MKDIR_P@&$ac_MKDIR_P&;t t
14616$ac_datarootdir_hack
14617"
14618eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14619 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14620
14621test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14622 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14623 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14624 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14626which seems to be undefined. Please make sure it is defined" >&5
14627$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14628which seems to be undefined. Please make sure it is defined" >&2;}
14629
14630 rm -f "$ac_tmp/stdin"
14631 case $ac_file in
14632 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14633 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14634 esac \
14635 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14636 ;;
14637 :H)
14638 #
14639 # CONFIG_HEADER
14640 #
14641 if test x"$ac_file" != x-; then
14642 {
14643 $as_echo "/* $configure_input */" \
14644 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14645 } >"$ac_tmp/config.h" \
14646 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14647 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14649$as_echo "$as_me: $ac_file is unchanged" >&6;}
14650 else
14651 rm -f "$ac_file"
14652 mv "$ac_tmp/config.h" "$ac_file" \
14653 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14654 fi
14655 else
14656 $as_echo "/* $configure_input */" \
14657 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14658 || as_fn_error $? "could not create -" "$LINENO" 5
14659 fi
14660# Compute "$ac_file"'s index in $config_headers.
14661_am_arg="$ac_file"
14662_am_stamp_count=1
14663for _am_header in $config_headers :; do
14664 case $_am_header in
14665 $_am_arg | $_am_arg:* )
14666 break ;;
14667 * )
14668 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14669 esac
14670done
14671echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14672$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14673 X"$_am_arg" : 'X\(//\)[^/]' \| \
14674 X"$_am_arg" : 'X\(//\)$' \| \
14675 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14676$as_echo X"$_am_arg" |
14677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14678 s//\1/
14679 q
14680 }
14681 /^X\(\/\/\)[^/].*/{
14682 s//\1/
14683 q
14684 }
14685 /^X\(\/\/\)$/{
14686 s//\1/
14687 q
14688 }
14689 /^X\(\/\).*/{
14690 s//\1/
14691 q
14692 }
14693 s/.*/./; q'`/stamp-h$_am_stamp_count
14694 ;;
14695
14696 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14697$as_echo "$as_me: executing $ac_file commands" >&6;}
14698 ;;
14699 esac
14700
14701
14702 case $ac_file$ac_mode in
14703 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14704 # Older Autoconf quotes --file arguments for eval, but not when files
14705 # are listed without --file. Let's play safe and only enable the eval
14706 # if we detect the quoting.
14707 case $CONFIG_FILES in
14708 *\'*) eval set x "$CONFIG_FILES" ;;
14709 *) set x $CONFIG_FILES ;;
14710 esac
14711 shift
14712 for mf
14713 do
14714 # Strip MF so we end up with the name of the file.
14715 mf=`echo "$mf" | sed -e 's/:.*$//'`
14716 # Check whether this is an Automake generated Makefile or not.
14717 # We used to match only the files named 'Makefile.in', but
14718 # some people rename them; so instead we look at the file content.
14719 # Grep'ing the first line is not enough: some people post-process
14720 # each Makefile.in and add a new line on top of each file to say so.
14721 # Grep'ing the whole file is not good either: AIX grep has a line
14722 # limit of 2048, but all sed's we know have understand at least 4000.
14723 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14724 dirpart=`$as_dirname -- "$mf" ||
14725$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14726 X"$mf" : 'X\(//\)[^/]' \| \
14727 X"$mf" : 'X\(//\)$' \| \
14728 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14729$as_echo X"$mf" |
14730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14731 s//\1/
14732 q
14733 }
14734 /^X\(\/\/\)[^/].*/{
14735 s//\1/
14736 q
14737 }
14738 /^X\(\/\/\)$/{
14739 s//\1/
14740 q
14741 }
14742 /^X\(\/\).*/{
14743 s//\1/
14744 q
14745 }
14746 s/.*/./; q'`
14747 else
14748 continue
14749 fi
14750 # Extract the definition of DEPDIR, am__include, and am__quote
14751 # from the Makefile without running 'make'.
14752 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14753 test -z "$DEPDIR" && continue
14754 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14755 test -z "$am__include" && continue
14756 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14757 # Find all dependency output files, they are included files with
14758 # $(DEPDIR) in their names. We invoke sed twice because it is the
14759 # simplest approach to changing $(DEPDIR) to its actual value in the
14760 # expansion.
14761 for file in `sed -n "
14762 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14763 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14764 # Make sure the directory exists.
14765 test -f "$dirpart/$file" && continue
14766 fdir=`$as_dirname -- "$file" ||
14767$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14768 X"$file" : 'X\(//\)[^/]' \| \
14769 X"$file" : 'X\(//\)$' \| \
14770 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14771$as_echo X"$file" |
14772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14773 s//\1/
14774 q
14775 }
14776 /^X\(\/\/\)[^/].*/{
14777 s//\1/
14778 q
14779 }
14780 /^X\(\/\/\)$/{
14781 s//\1/
14782 q
14783 }
14784 /^X\(\/\).*/{
14785 s//\1/
14786 q
14787 }
14788 s/.*/./; q'`
14789 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14790 # echo "creating $dirpart/$file"
14791 echo '# dummy' > "$dirpart/$file"
14792 done
14793 done
14794}
14795 ;;
14796 "libtool":C)
14797
14798 # See if we are running on zsh, and set the options that allow our
14799 # commands through without removal of \ escapes.
14800 if test -n "${ZSH_VERSION+set}"; then
14801 setopt NO_GLOB_SUBST
14802 fi
14803
14804 cfgfile=${ofile}T
14805 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14806 $RM "$cfgfile"
14807
14808 cat <<_LT_EOF >> "$cfgfile"
14809#! $SHELL
14810# Generated automatically by $as_me ($PACKAGE) $VERSION
14811# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14812# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14813
14814# Provide generalized library-building support services.
14815# Written by Gordon Matzigkeit, 1996
14816
14817# Copyright (C) 2014 Free Software Foundation, Inc.
14818# This is free software; see the source for copying conditions. There is NO
14819# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14820
14821# GNU Libtool is free software; you can redistribute it and/or modify
14822# it under the terms of the GNU General Public License as published by
14823# the Free Software Foundation; either version 2 of of the License, or
14824# (at your option) any later version.
14825#
14826# As a special exception to the GNU General Public License, if you
14827# distribute this file as part of a program or library that is built
14828# using GNU Libtool, you may include this file under the same
14829# distribution terms that you use for the rest of that program.
14830#
14831# GNU Libtool is distributed in the hope that it will be useful, but
14832# WITHOUT ANY WARRANTY; without even the implied warranty of
14833# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14834# GNU General Public License for more details.
14835#
14836# You should have received a copy of the GNU General Public License
14837# along with this program. If not, see <http://www.gnu.org/licenses/>.
14838
14839
14840# The names of the tagged configurations supported by this script.
14841available_tags=''
14842
14843# Configured defaults for sys_lib_dlsearch_path munging.
14844: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14845
14846# ### BEGIN LIBTOOL CONFIG
14847
14848# A sed program that does not truncate output.
14849SED=$lt_SED
14850
14851# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14852Xsed="\$SED -e 1s/^X//"
14853
14854# A grep program that handles long lines.
14855GREP=$lt_GREP
14856
14857# An ERE matcher.
14858EGREP=$lt_EGREP
14859
14860# A literal string matcher.
14861FGREP=$lt_FGREP
14862
14863# Shell to use when invoking shell scripts.
14864SHELL=$lt_SHELL
14865
14866# An echo program that protects backslashes.
14867ECHO=$lt_ECHO
14868
14869# Assembler program.
14870AS=$lt_AS
14871
14872# DLL creation program.
14873DLLTOOL=$lt_DLLTOOL
14874
14875# Object dumper program.
14876OBJDUMP=$lt_OBJDUMP
14877
14878# Which release of libtool.m4 was used?
14879macro_version=$macro_version
14880macro_revision=$macro_revision
14881
14882# Whether or not to build shared libraries.
14883build_libtool_libs=$enable_shared
14884
14885# Whether or not to build static libraries.
14886build_old_libs=$enable_static
14887
14888# What type of objects to build.
14889pic_mode=$pic_mode
14890
14891# Whether or not to optimize for fast installation.
14892fast_install=$enable_fast_install
14893
14894# Shared archive member basename,for filename based shared library versioning on AIX.
14895shared_archive_member_spec=$shared_archive_member_spec
14896
14897# The PATH separator for the build system.
14898PATH_SEPARATOR=$lt_PATH_SEPARATOR
14899
14900# The host system.
14901host_alias=$host_alias
14902host=$host
14903host_os=$host_os
14904
14905# The build system.
14906build_alias=$build_alias
14907build=$build
14908build_os=$build_os
14909
14910# A BSD- or MS-compatible name lister.
14911NM=$lt_NM
14912
14913# Whether we need soft or hard links.
14914LN_S=$lt_LN_S
14915
14916# What is the maximum length of a command?
14917max_cmd_len=$max_cmd_len
14918
14919# Object file suffix (normally "o").
14920objext=$ac_objext
14921
14922# Executable file suffix (normally "").
14923exeext=$exeext
14924
14925# whether the shell understands "unset".
14926lt_unset=$lt_unset
14927
14928# turn spaces into newlines.
14929SP2NL=$lt_lt_SP2NL
14930
14931# turn newlines into spaces.
14932NL2SP=$lt_lt_NL2SP
14933
14934# convert \$build file names to \$host format.
14935to_host_file_cmd=$lt_cv_to_host_file_cmd
14936
14937# convert \$build files to toolchain format.
14938to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14939
14940# Method to check whether dependent libraries are shared objects.
14941deplibs_check_method=$lt_deplibs_check_method
14942
14943# Command to use when deplibs_check_method = "file_magic".
14944file_magic_cmd=$lt_file_magic_cmd
14945
14946# How to find potential files when deplibs_check_method = "file_magic".
14947file_magic_glob=$lt_file_magic_glob
14948
14949# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14950want_nocaseglob=$lt_want_nocaseglob
14951
14952# Command to associate shared and link libraries.
14953sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14954
14955# The archiver.
14956AR=$lt_AR
14957
14958# Flags to create an archive.
14959AR_FLAGS=$lt_AR_FLAGS
14960
14961# How to feed a file listing to the archiver.
14962archiver_list_spec=$lt_archiver_list_spec
14963
14964# A symbol stripping program.
14965STRIP=$lt_STRIP
14966
14967# Commands used to install an old-style archive.
14968RANLIB=$lt_RANLIB
14969old_postinstall_cmds=$lt_old_postinstall_cmds
14970old_postuninstall_cmds=$lt_old_postuninstall_cmds
14971
14972# Whether to use a lock for old archive extraction.
14973lock_old_archive_extraction=$lock_old_archive_extraction
14974
14975# A C compiler.
14976LTCC=$lt_CC
14977
14978# LTCC compiler flags.
14979LTCFLAGS=$lt_CFLAGS
14980
14981# Take the output of nm and produce a listing of raw symbols and C names.
14982global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14983
14984# Transform the output of nm in a proper C declaration.
14985global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14986
14987# Transform the output of nm into a list of symbols to manually relocate.
14988global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14989
14990# Transform the output of nm in a C name address pair.
14991global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14992
14993# Transform the output of nm in a C name address pair when lib prefix is needed.
14994global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14995
14996# The name lister interface.
14997nm_interface=$lt_lt_cv_nm_interface
14998
14999# Specify filename containing input files for \$NM.
15000nm_file_list_spec=$lt_nm_file_list_spec
15001
15002# The root where to search for dependent libraries,and where our libraries should be installed.
15003lt_sysroot=$lt_sysroot
15004
15005# Command to truncate a binary pipe.
15006lt_truncate_bin=$lt_lt_cv_truncate_bin
15007
15008# The name of the directory that contains temporary libtool files.
15009objdir=$objdir
15010
15011# Used to examine libraries when file_magic_cmd begins with "file".
15012MAGIC_CMD=$MAGIC_CMD
15013
15014# Must we lock files when doing compilation?
15015need_locks=$lt_need_locks
15016
15017# Manifest tool.
15018MANIFEST_TOOL=$lt_MANIFEST_TOOL
15019
15020# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15021DSYMUTIL=$lt_DSYMUTIL
15022
15023# Tool to change global to local symbols on Mac OS X.
15024NMEDIT=$lt_NMEDIT
15025
15026# Tool to manipulate fat objects and archives on Mac OS X.
15027LIPO=$lt_LIPO
15028
15029# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15030OTOOL=$lt_OTOOL
15031
15032# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15033OTOOL64=$lt_OTOOL64
15034
15035# Old archive suffix (normally "a").
15036libext=$libext
15037
15038# Shared library suffix (normally ".so").
15039shrext_cmds=$lt_shrext_cmds
15040
15041# The commands to extract the exported symbol list from a shared archive.
15042extract_expsyms_cmds=$lt_extract_expsyms_cmds
15043
15044# Variables whose values should be saved in libtool wrapper scripts and
15045# restored at link time.
15046variables_saved_for_relink=$lt_variables_saved_for_relink
15047
15048# Do we need the "lib" prefix for modules?
15049need_lib_prefix=$need_lib_prefix
15050
15051# Do we need a version for libraries?
15052need_version=$need_version
15053
15054# Library versioning type.
15055version_type=$version_type
15056
15057# Shared library runtime path variable.
15058runpath_var=$runpath_var
15059
15060# Shared library path variable.
15061shlibpath_var=$shlibpath_var
15062
15063# Is shlibpath searched before the hard-coded library search path?
15064shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15065
15066# Format of library name prefix.
15067libname_spec=$lt_libname_spec
15068
15069# List of archive names. First name is the real one, the rest are links.
15070# The last name is the one that the linker finds with -lNAME
15071library_names_spec=$lt_library_names_spec
15072
15073# The coded name of the library, if different from the real name.
15074soname_spec=$lt_soname_spec
15075
15076# Permission mode override for installation of shared libraries.
15077install_override_mode=$lt_install_override_mode
15078
15079# Command to use after installation of a shared archive.
15080postinstall_cmds=$lt_postinstall_cmds
15081
15082# Command to use after uninstallation of a shared archive.
15083postuninstall_cmds=$lt_postuninstall_cmds
15084
15085# Commands used to finish a libtool library installation in a directory.
15086finish_cmds=$lt_finish_cmds
15087
15088# As "finish_cmds", except a single script fragment to be evaled but
15089# not shown.
15090finish_eval=$lt_finish_eval
15091
15092# Whether we should hardcode library paths into libraries.
15093hardcode_into_libs=$hardcode_into_libs
15094
15095# Compile-time system search path for libraries.
15096sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15097
15098# Detected run-time system search path for libraries.
15099sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15100
15101# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15102configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15103
15104# Whether dlopen is supported.
15105dlopen_support=$enable_dlopen
15106
15107# Whether dlopen of programs is supported.
15108dlopen_self=$enable_dlopen_self
15109
15110# Whether dlopen of statically linked programs is supported.
15111dlopen_self_static=$enable_dlopen_self_static
15112
15113# Commands to strip libraries.
15114old_striplib=$lt_old_striplib
15115striplib=$lt_striplib
15116
15117
15118# The linker used to build libraries.
15119LD=$lt_LD
15120
15121# How to create reloadable object files.
15122reload_flag=$lt_reload_flag
15123reload_cmds=$lt_reload_cmds
15124
15125# Commands used to build an old-style archive.
15126old_archive_cmds=$lt_old_archive_cmds
15127
15128# A language specific compiler.
15129CC=$lt_compiler
15130
15131# Is the compiler the GNU compiler?
15132with_gcc=$GCC
15133
15134# Compiler flag to turn off builtin functions.
15135no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15136
15137# Additional compiler flags for building library objects.
15138pic_flag=$lt_lt_prog_compiler_pic
15139
15140# How to pass a linker flag through the compiler.
15141wl=$lt_lt_prog_compiler_wl
15142
15143# Compiler flag to prevent dynamic linking.
15144link_static_flag=$lt_lt_prog_compiler_static
15145
15146# Does compiler simultaneously support -c and -o options?
15147compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15148
15149# Whether or not to add -lc for building shared libraries.
15150build_libtool_need_lc=$archive_cmds_need_lc
15151
15152# Whether or not to disallow shared libs when runtime libs are static.
15153allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15154
15155# Compiler flag to allow reflexive dlopens.
15156export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15157
15158# Compiler flag to generate shared objects directly from archives.
15159whole_archive_flag_spec=$lt_whole_archive_flag_spec
15160
15161# Whether the compiler copes with passing no objects directly.
15162compiler_needs_object=$lt_compiler_needs_object
15163
15164# Create an old-style archive from a shared archive.
15165old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15166
15167# Create a temporary old-style archive to link instead of a shared archive.
15168old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15169
15170# Commands used to build a shared archive.
15171archive_cmds=$lt_archive_cmds
15172archive_expsym_cmds=$lt_archive_expsym_cmds
15173
15174# Commands used to build a loadable module if different from building
15175# a shared archive.
15176module_cmds=$lt_module_cmds
15177module_expsym_cmds=$lt_module_expsym_cmds
15178
15179# Whether we are building with GNU ld or not.
15180with_gnu_ld=$lt_with_gnu_ld
15181
15182# Flag that allows shared libraries with undefined symbols to be built.
15183allow_undefined_flag=$lt_allow_undefined_flag
15184
15185# Flag that enforces no undefined symbols.
15186no_undefined_flag=$lt_no_undefined_flag
15187
15188# Flag to hardcode \$libdir into a binary during linking.
15189# This must work even if \$libdir does not exist
15190hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15191
15192# Whether we need a single "-rpath" flag with a separated argument.
15193hardcode_libdir_separator=$lt_hardcode_libdir_separator
15194
15195# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15196# DIR into the resulting binary.
15197hardcode_direct=$hardcode_direct
15198
15199# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15200# DIR into the resulting binary and the resulting library dependency is
15201# "absolute",i.e impossible to change by setting \$shlibpath_var if the
15202# library is relocated.
15203hardcode_direct_absolute=$hardcode_direct_absolute
15204
15205# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15206# into the resulting binary.
15207hardcode_minus_L=$hardcode_minus_L
15208
15209# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15210# into the resulting binary.
15211hardcode_shlibpath_var=$hardcode_shlibpath_var
15212
15213# Set to "yes" if building a shared library automatically hardcodes DIR
15214# into the library and all subsequent libraries and executables linked
15215# against it.
15216hardcode_automatic=$hardcode_automatic
15217
15218# Set to yes if linker adds runtime paths of dependent libraries
15219# to runtime path list.
15220inherit_rpath=$inherit_rpath
15221
15222# Whether libtool must link a program against all its dependency libraries.
15223link_all_deplibs=$link_all_deplibs
15224
15225# Set to "yes" if exported symbols are required.
15226always_export_symbols=$always_export_symbols
15227
15228# The commands to list exported symbols.
15229export_symbols_cmds=$lt_export_symbols_cmds
15230
15231# Symbols that should not be listed in the preloaded symbols.
15232exclude_expsyms=$lt_exclude_expsyms
15233
15234# Symbols that must always be exported.
15235include_expsyms=$lt_include_expsyms
15236
15237# Commands necessary for linking programs (against libraries) with templates.
15238prelink_cmds=$lt_prelink_cmds
15239
15240# Commands necessary for finishing linking programs.
15241postlink_cmds=$lt_postlink_cmds
15242
15243# Specify filename containing input files.
15244file_list_spec=$lt_file_list_spec
15245
15246# How to hardcode a shared library path into an executable.
15247hardcode_action=$hardcode_action
15248
15249# ### END LIBTOOL CONFIG
15250
15251_LT_EOF
15252
15253 cat <<'_LT_EOF' >> "$cfgfile"
15254
15255# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15256
15257# func_munge_path_list VARIABLE PATH
15258# -----------------------------------
15259# VARIABLE is name of variable containing _space_ separated list of
15260# directories to be munged by the contents of PATH, which is string
15261# having a format:
15262# "DIR[:DIR]:"
15263# string "DIR[ DIR]" will be prepended to VARIABLE
15264# ":DIR[:DIR]"
15265# string "DIR[ DIR]" will be appended to VARIABLE
15266# "DIRP[:DIRP]::[DIRA:]DIRA"
15267# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15268# "DIRA[ DIRA]" will be appended to VARIABLE
15269# "DIR[:DIR]"
15270# VARIABLE will be replaced by "DIR[ DIR]"
15271func_munge_path_list ()
15272{
15273 case x$2 in
15274 x)
15275 ;;
15276 *:)
15277 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15278 ;;
15279 x:*)
15280 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15281 ;;
15282 *::*)
15283 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15284 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15285 ;;
15286 *)
15287 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15288 ;;
15289 esac
15290}
15291
15292
15293# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15294func_cc_basename ()
15295{
15296 for cc_temp in $*""; do
15297 case $cc_temp in
15298 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15299 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15300 \-*) ;;
15301 *) break;;
15302 esac
15303 done
15304 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15305}
15306
15307
15308# ### END FUNCTIONS SHARED WITH CONFIGURE
15309
15310_LT_EOF
15311
15312 case $host_os in
15313 aix3*)
15314 cat <<\_LT_EOF >> "$cfgfile"
15315# AIX sometimes has problems with the GCC collect2 program. For some
15316# reason, if we set the COLLECT_NAMES environment variable, the problems
15317# vanish in a puff of smoke.
15318if test set != "${COLLECT_NAMES+set}"; then
15319 COLLECT_NAMES=
15320 export COLLECT_NAMES
15321fi
15322_LT_EOF
15323 ;;
15324 esac
15325
15326
15327ltmain=$ac_aux_dir/ltmain.sh
15328
15329
15330 # We use sed instead of cat because bash on DJGPP gets confused if
15331 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15332 # text mode, it properly converts lines to CR/LF. This bash problem
15333 # is reportedly fixed, but why not run on old versions too?
15334 sed '$q' "$ltmain" >> "$cfgfile" \
15335 || (rm -f "$cfgfile"; exit 1)
15336
15337 mv -f "$cfgfile" "$ofile" ||
15338 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15339 chmod +x "$ofile"
15340
15341 ;;
15342 "libpng-config":F) chmod +x libpng-config ;;
15343
15344 esac
15345done # for ac_tag
15346
15347
15348as_fn_exit 0
15349_ACEOF
15350ac_clean_files=$ac_clean_files_save
15351
15352test $ac_write_fail = 0 ||
15353 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15354
15355
15356# configure is writing to config.log, and then calls config.status.
15357# config.status does its own redirection, appending to config.log.
15358# Unfortunately, on DOS this fails, as config.log is still kept open
15359# by configure, so config.status won't be able to write to it; its
15360# output is simply discarded. So we exec the FD to /dev/null,
15361# effectively closing config.log, so it can be properly (re)opened and
15362# appended to by config.status. When coming back to configure, we
15363# need to make the FD available again.
15364if test "$no_create" != yes; then
15365 ac_cs_success=:
15366 ac_config_status_args=
15367 test "$silent" = yes &&
15368 ac_config_status_args="$ac_config_status_args --quiet"
15369 exec 5>/dev/null
15370 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15371 exec 5>>config.log
15372 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15373 # would make configure fail if this is the last instruction.
15374 $ac_cs_success || as_fn_exit 1
15375fi
15376if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15378$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15379fi
15380
Note: See TracBrowser for help on using the repository browser.

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