blob: 725ea46df451350b9e05f0edd3625d99d63c4b3a [file] [log] [blame]
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Glenn Randers-Pehrson glennrp@comcast.net92d95342009-05-02 15:12:50 -05003# Generated by GNU Autoconf 2.62 for libpng 1.4.0beta57.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004#
Glenn Randers-Pehrson7b34df32006-02-24 06:30:16 -06005# Report bugs to <png-mng-implement@lists.sourceforge.net>.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006#
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05008# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
Glenn Randers-Pehrson5b5dcf82004-07-17 22:45:44 -050014
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050015# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060017if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050020 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060021 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060023 setopt NO_GLOB_SUBST
24else
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050025 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060029fi
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050030
31
Glenn Randers-Pehrson5b5dcf82004-07-17 22:45:44 -050032
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060033
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060034# PATH needs CR
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060035# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050042as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (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
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060074# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050076 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 }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060081fi
82
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060083# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86else
87 as_unset=false
88fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060089
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060090
91# IFS
92# We need space, tab and new line, in precisely that order. Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060096IFS=" "" $as_nl"
97
98# Find who we are. Look in the path if we contain no directory separator.
99case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600102for as_dir in $PATH
103do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600108IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600109
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600110 ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115 as_myself=$0
116fi
117if test ! -f "$as_myself"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600119 { (exit 1); exit 1; }
120fi
121
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600135
136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140else
141 as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146else
147 as_basename=false
148fi
149
150
151# Name of the executable.
152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500156$as_echo X/"$0" |
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
170
171# CDPATH.
172$as_unset CDPATH
173
174
175if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178else
179 as_have_required=no
180fi
181
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500182 if test $as_have_required = yes && (eval ":
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600183(as_func_return () {
184 (exit \$1)
185}
186as_func_success () {
187 as_func_return 0
188}
189as_func_failure () {
190 as_func_return 1
191}
192as_func_ret_success () {
193 return 0
194}
195as_func_ret_failure () {
196 return 1
197}
198
199exitcode=0
200if as_func_success; then
201 :
202else
203 exitcode=1
204 echo as_func_success failed.
205fi
206
207if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213 :
214else
215 exitcode=1
216 echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226else
227 exitcode=1
228 echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239 :
240else
241 as_candidate_shells=
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -0500243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600244do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600247 case $as_dir in
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600248 /*)
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253done
254IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -0500269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600273fi
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -0500274
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600275
276:
277_ASEOF
278}; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289else
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -0500290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292esac
293
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600294fi
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -0500295
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600296
297:
298(as_func_return () {
299 (exit $1)
300}
301as_func_success () {
302 as_func_return 0
303}
304as_func_failure () {
305 as_func_return 1
306}
307as_func_ret_success () {
308 return 0
309}
310as_func_ret_failure () {
311 return 1
312}
313
314exitcode=0
315if as_func_success; then
316 :
317else
318 exitcode=1
319 echo as_func_success failed.
320fi
321
322if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328 :
329else
330 exitcode=1
331 echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341else
342 exitcode=1
343 echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600351 test "x$as_lineno_1" != "x$as_lineno_2" &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356 break
357fi
358
359fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600369fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388 (exit \$1)
389}
390as_func_success () {
391 as_func_return 0
392}
393as_func_failure () {
394 as_func_return 1
395}
396as_func_ret_success () {
397 return 0
398}
399as_func_ret_failure () {
400 return 1
401}
402
403exitcode=0
404if as_func_success; then
405 :
406else
407 exitcode=1
408 echo as_func_success failed.
409fi
410
411if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417 :
418else
419 exitcode=1
420 echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430else
431 exitcode=1
432 echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600441}
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600464 sed '
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600469 N
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600472 t loop
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600473 s/-\n.*//
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600474 ' >$as_me.lineno &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600475 chmod +x "$as_me.lineno" ||
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600483 # Exit status is that of the last command.
484 exit
485}
486
487
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490else
491 as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501*)
502 ECHO_N='-n';;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600503esac
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600504if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600506 as_expr=expr
507else
508 as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600512if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514else
515 rm -f conf$$.dir
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500516 mkdir conf$$.dir 2>/dev/null
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600517fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500518if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600530 as_ln_s='cp -p'
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500531 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600532else
533 as_ln_s='cp -p'
534fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600537
538if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600541 test -d ./-p && rmdir ./-p
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600542 as_mkdir_p=false
543fi
544
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -0500545if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600547else
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -0500548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500556 test -d "$1/.";
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -0500557 else
558 case $1 in
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500559 -*)set "./$1";;
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -0500560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600565fi
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -0500566as_executable_p=$as_test_x
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600567
568# Sed expression to map a string onto a valid CPP name.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600570
571# Sed expression to map a string onto a valid variable name.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600573
574
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600575
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600576
577# Check that we are running under the correct shell.
578SHELL=${CONFIG_SHELL-/bin/sh}
579
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500580case X$lt_ECHO in
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600581X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600584 ;;
585esac
586
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500587ECHO=${lt_ECHO-echo}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600588if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
593 :
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500594elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600596 :
597else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
600fi
601
602if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500605 cat <<_LT_EOF
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600606$*
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500607_LT_EOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600608 exit 0
609fi
610
611# The HP-UX ksh and POSIX shell print the target directory to stdout
612# if CDPATH is set.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600614
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500615if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622 then
623 break
624 fi
625 done
626 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600627
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
631 :
632 else
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
636 #
637 # So, first we look for a working echo in the user's PATH.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600638
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
641 IFS="$lt_save_ifs"
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
646 ECHO="$dir/echo"
647 break
648 fi
649 done
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600650 IFS="$lt_save_ifs"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600651
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
658 ECHO='print -r'
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
665 export CONFIG_SHELL
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600667 else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500668 # Try using printf.
669 ECHO='printf %s\n'
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 # Cool, printf works
674 :
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680 export CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
682 export SHELL
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
689 else
690 # maybe with a smaller string...
691 prev=:
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600692
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695 then
696 break
697 fi
698 prev="$cmd"
699 done
700
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705 else
706 # Oops. We lost completely, so just stick with echo.
707 ECHO=echo
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600708 fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500709 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600710 fi
711 fi
712 fi
713fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600714
715# Copy echo and quote the copy suitably for passing to libtool from
716# the Makefile, instead of quoting the original, which is used later.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500717lt_ECHO=$ECHO
718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600720fi
721
722
723
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -0600724
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600725exec 7<&0 </dev/null 6>&1
726
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600727# Name of the host.
728# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729# so uname gets run too.
730ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600732#
733# Initializations.
734#
735ac_default_prefix=/usr/local
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600736ac_clean_files=
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600737ac_config_libobj_dir=.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600738LIBOBJS=
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600739cross_compiling=no
740subdirs=
741MFLAGS=
742MAKEFLAGS=
743SHELL=${CONFIG_SHELL-/bin/sh}
744
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600745# Identity of this package.
746PACKAGE_NAME='libpng'
747PACKAGE_TARNAME='libpng'
Glenn Randers-Pehrson glennrp@comcast.net92d95342009-05-02 15:12:50 -0500748PACKAGE_VERSION='1.4.0beta57'
749PACKAGE_STRING='libpng 1.4.0beta57'
Glenn Randers-Pehrson7b34df32006-02-24 06:30:16 -0600750PACKAGE_BUGREPORT='png-mng-implement@lists.sourceforge.net'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600751
752ac_unique_file="pngget.c"
753# Factoring default headers for most tests.
754ac_includes_default="\
755#include <stdio.h>
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -0500756#ifdef HAVE_SYS_TYPES_H
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600757# include <sys/types.h>
758#endif
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -0500759#ifdef HAVE_SYS_STAT_H
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600760# include <sys/stat.h>
761#endif
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -0500762#ifdef STDC_HEADERS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600763# include <stdlib.h>
764# include <stddef.h>
765#else
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -0500766# ifdef HAVE_STDLIB_H
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600767# include <stdlib.h>
768# endif
769#endif
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -0500770#ifdef HAVE_STRING_H
771# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600772# include <memory.h>
773# endif
774# include <string.h>
775#endif
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -0500776#ifdef HAVE_STRINGS_H
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600777# include <strings.h>
778#endif
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -0500779#ifdef HAVE_INTTYPES_H
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600780# include <inttypes.h>
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600781#endif
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -0500782#ifdef HAVE_STDINT_H
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600783# include <stdint.h>
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600784#endif
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -0500785#ifdef HAVE_UNISTD_H
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600786# include <unistd.h>
787#endif"
788
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600789ac_subst_vars='SHELL
790PATH_SEPARATOR
791PACKAGE_NAME
792PACKAGE_TARNAME
793PACKAGE_VERSION
794PACKAGE_STRING
795PACKAGE_BUGREPORT
796exec_prefix
797prefix
798program_transform_name
799bindir
800sbindir
801libexecdir
802datarootdir
803datadir
804sysconfdir
805sharedstatedir
806localstatedir
807includedir
808oldincludedir
809docdir
810infodir
811htmldir
812dvidir
813pdfdir
814psdir
815libdir
816localedir
817mandir
818DEFS
819ECHO_C
820ECHO_N
821ECHO_T
822LIBS
823build_alias
824host_alias
825target_alias
826INSTALL_PROGRAM
827INSTALL_SCRIPT
828INSTALL_DATA
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500829am__isrc
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600830CYGPATH_W
831PACKAGE
832VERSION
833ACLOCAL
834AUTOCONF
835AUTOMAKE
836AUTOHEADER
837MAKEINFO
838install_sh
839STRIP
840INSTALL_STRIP_PROGRAM
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500841MKDIR_P
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600842mkdir_p
843AWK
844SET_MAKE
845am__leading_dot
846AMTAR
847am__tar
848am__untar
849MAINTAINER_MODE_TRUE
850MAINTAINER_MODE_FALSE
851MAINT
852CC
853CFLAGS
854LDFLAGS
855CPPFLAGS
856ac_ct_CC
857EXEEXT
858OBJEXT
859DEPDIR
860am__include
861am__quote
862AMDEP_TRUE
863AMDEP_FALSE
864AMDEPBACKSLASH
865CCDEPMODE
866am__fastdepCC_TRUE
867am__fastdepCC_FALSE
868build
869build_cpu
870build_vendor
871build_os
872host
873host_cpu
874host_vendor
875host_os
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500876SED
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600877GREP
878EGREP
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500879FGREP
880LD
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600881CPP
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500882AS
883DLLTOOL
884OBJDUMP
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600885LN_S
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500886LIBTOOL
887DUMPBIN
888ac_ct_DUMPBIN
889NM
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600890AR
891RANLIB
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500892lt_ECHO
893DSYMUTIL
894NMEDIT
895LIPO
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600896POW_LIB
897LIBOBJS
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600898LIBPNG_DEFINES
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500899LIBPNG_NO_MMX
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600900HAVE_LD_VERSION_SCRIPT_TRUE
901HAVE_LD_VERSION_SCRIPT_FALSE
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500902SYMBOL_PREFIX
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600903PNGLIB_VERSION
904PNGLIB_MAJOR
905PNGLIB_MINOR
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500906PNGLIB_RELEASE
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600907pkgconfigdir
908binconfigs
909compatlib
910LTLIBOBJS'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600911ac_subst_files=''
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500912ac_user_opts='
913enable_option_checking
914enable_maintainer_mode
915enable_dependency_tracking
916with_gnu_ld
917enable_shared
918enable_static
919with_pic
920enable_fast_install
921enable_libtool_lock
922with_pkgconfigdir
923with_binconfigs
924with_libpng_compat
925'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600926 ac_precious_vars='build_alias
927host_alias
928target_alias
929CC
930CFLAGS
931LDFLAGS
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -0500932LIBS
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600933CPPFLAGS
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500934CPP'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600935
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600936
937# Initialize some variables set by options.
938ac_init_help=
939ac_init_version=false
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -0500940ac_unrecognized_opts=
941ac_unrecognized_sep=
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600942# The variables have the same names as the options, with
943# dashes changed to underlines.
944cache_file=/dev/null
945exec_prefix=NONE
946no_create=
947no_recursion=
948prefix=NONE
949program_prefix=NONE
950program_suffix=NONE
951program_transform_name=s,x,x,
952silent=
953site=
954srcdir=
955verbose=
956x_includes=NONE
957x_libraries=NONE
958
959# Installation directory options.
960# These are left unexpanded so users can "make install exec_prefix=/foo"
961# and all the variables that are supposed to be based on exec_prefix
962# by default will actually change.
963# Use braces instead of parens because sh, perl, etc. also accept them.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600964# (The list follows the same order as the GNU Coding Standards.)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600965bindir='${exec_prefix}/bin'
966sbindir='${exec_prefix}/sbin'
967libexecdir='${exec_prefix}/libexec'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600968datarootdir='${prefix}/share'
969datadir='${datarootdir}'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600970sysconfdir='${prefix}/etc'
971sharedstatedir='${prefix}/com'
972localstatedir='${prefix}/var'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600973includedir='${prefix}/include'
974oldincludedir='/usr/include'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600975docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
976infodir='${datarootdir}/info'
977htmldir='${docdir}'
978dvidir='${docdir}'
979pdfdir='${docdir}'
980psdir='${docdir}'
981libdir='${exec_prefix}/lib'
982localedir='${datarootdir}/locale'
983mandir='${datarootdir}/man'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600984
985ac_prev=
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600986ac_dashdash=
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600987for ac_option
988do
989 # If the previous option needs an argument, assign it.
990 if test -n "$ac_prev"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600991 eval $ac_prev=\$ac_option
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -0600992 ac_prev=
993 continue
994 fi
995
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -0600996 case $ac_option in
997 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
998 *) ac_optarg=yes ;;
999 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001000
1001 # Accept the important Cygnus configure options, so we can diagnose typos.
1002
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001003 case $ac_dashdash$ac_option in
1004 --)
1005 ac_dashdash=yes ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001006
1007 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1008 ac_prev=bindir ;;
1009 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1010 bindir=$ac_optarg ;;
1011
1012 -build | --build | --buil | --bui | --bu)
1013 ac_prev=build_alias ;;
1014 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1015 build_alias=$ac_optarg ;;
1016
1017 -cache-file | --cache-file | --cache-fil | --cache-fi \
1018 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1019 ac_prev=cache_file ;;
1020 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1021 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1022 cache_file=$ac_optarg ;;
1023
1024 --config-cache | -C)
1025 cache_file=config.cache ;;
1026
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001027 -datadir | --datadir | --datadi | --datad)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001028 ac_prev=datadir ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001029 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001030 datadir=$ac_optarg ;;
1031
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001032 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1033 | --dataroo | --dataro | --datar)
1034 ac_prev=datarootdir ;;
1035 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1036 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1037 datarootdir=$ac_optarg ;;
1038
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001039 -disable-* | --disable-*)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001040 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001041 # Reject names that are not valid shell variable names.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001044 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001045 ac_useropt_orig=$ac_useropt
1046 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047 case $ac_user_opts in
1048 *"
1049"enable_$ac_useropt"
1050"*) ;;
1051 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1052 ac_unrecognized_sep=', ';;
1053 esac
1054 eval enable_$ac_useropt=no ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001055
1056 -docdir | --docdir | --docdi | --doc | --do)
1057 ac_prev=docdir ;;
1058 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1059 docdir=$ac_optarg ;;
1060
1061 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1062 ac_prev=dvidir ;;
1063 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1064 dvidir=$ac_optarg ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001065
1066 -enable-* | --enable-*)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001067 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001068 # Reject names that are not valid shell variable names.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001069 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1070 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001071 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001072 ac_useropt_orig=$ac_useropt
1073 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1075 *"
1076"enable_$ac_useropt"
1077"*) ;;
1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1079 ac_unrecognized_sep=', ';;
1080 esac
1081 eval enable_$ac_useropt=\$ac_optarg ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001082
1083 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1084 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1085 | --exec | --exe | --ex)
1086 ac_prev=exec_prefix ;;
1087 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1088 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1089 | --exec=* | --exe=* | --ex=*)
1090 exec_prefix=$ac_optarg ;;
1091
1092 -gas | --gas | --ga | --g)
1093 # Obsolete; use --with-gas.
1094 with_gas=yes ;;
1095
1096 -help | --help | --hel | --he | -h)
1097 ac_init_help=long ;;
1098 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1099 ac_init_help=recursive ;;
1100 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1101 ac_init_help=short ;;
1102
1103 -host | --host | --hos | --ho)
1104 ac_prev=host_alias ;;
1105 -host=* | --host=* | --hos=* | --ho=*)
1106 host_alias=$ac_optarg ;;
1107
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001108 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1109 ac_prev=htmldir ;;
1110 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1111 | --ht=*)
1112 htmldir=$ac_optarg ;;
1113
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001114 -includedir | --includedir | --includedi | --included | --include \
1115 | --includ | --inclu | --incl | --inc)
1116 ac_prev=includedir ;;
1117 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1118 | --includ=* | --inclu=* | --incl=* | --inc=*)
1119 includedir=$ac_optarg ;;
1120
1121 -infodir | --infodir | --infodi | --infod | --info | --inf)
1122 ac_prev=infodir ;;
1123 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1124 infodir=$ac_optarg ;;
1125
1126 -libdir | --libdir | --libdi | --libd)
1127 ac_prev=libdir ;;
1128 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1129 libdir=$ac_optarg ;;
1130
1131 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1132 | --libexe | --libex | --libe)
1133 ac_prev=libexecdir ;;
1134 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1135 | --libexe=* | --libex=* | --libe=*)
1136 libexecdir=$ac_optarg ;;
1137
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001138 -localedir | --localedir | --localedi | --localed | --locale)
1139 ac_prev=localedir ;;
1140 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1141 localedir=$ac_optarg ;;
1142
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001143 -localstatedir | --localstatedir | --localstatedi | --localstated \
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001144 | --localstate | --localstat | --localsta | --localst | --locals)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001145 ac_prev=localstatedir ;;
1146 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001147 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001148 localstatedir=$ac_optarg ;;
1149
1150 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1151 ac_prev=mandir ;;
1152 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1153 mandir=$ac_optarg ;;
1154
1155 -nfp | --nfp | --nf)
1156 # Obsolete; use --without-fp.
1157 with_fp=no ;;
1158
1159 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1160 | --no-cr | --no-c | -n)
1161 no_create=yes ;;
1162
1163 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1164 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1165 no_recursion=yes ;;
1166
1167 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1168 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1169 | --oldin | --oldi | --old | --ol | --o)
1170 ac_prev=oldincludedir ;;
1171 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1172 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1173 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1174 oldincludedir=$ac_optarg ;;
1175
1176 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1177 ac_prev=prefix ;;
1178 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1179 prefix=$ac_optarg ;;
1180
1181 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1182 | --program-pre | --program-pr | --program-p)
1183 ac_prev=program_prefix ;;
1184 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1185 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1186 program_prefix=$ac_optarg ;;
1187
1188 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1189 | --program-suf | --program-su | --program-s)
1190 ac_prev=program_suffix ;;
1191 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1192 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1193 program_suffix=$ac_optarg ;;
1194
1195 -program-transform-name | --program-transform-name \
1196 | --program-transform-nam | --program-transform-na \
1197 | --program-transform-n | --program-transform- \
1198 | --program-transform | --program-transfor \
1199 | --program-transfo | --program-transf \
1200 | --program-trans | --program-tran \
1201 | --progr-tra | --program-tr | --program-t)
1202 ac_prev=program_transform_name ;;
1203 -program-transform-name=* | --program-transform-name=* \
1204 | --program-transform-nam=* | --program-transform-na=* \
1205 | --program-transform-n=* | --program-transform-=* \
1206 | --program-transform=* | --program-transfor=* \
1207 | --program-transfo=* | --program-transf=* \
1208 | --program-trans=* | --program-tran=* \
1209 | --progr-tra=* | --program-tr=* | --program-t=*)
1210 program_transform_name=$ac_optarg ;;
1211
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001212 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1213 ac_prev=pdfdir ;;
1214 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1215 pdfdir=$ac_optarg ;;
1216
1217 -psdir | --psdir | --psdi | --psd | --ps)
1218 ac_prev=psdir ;;
1219 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1220 psdir=$ac_optarg ;;
1221
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223 | -silent | --silent | --silen | --sile | --sil)
1224 silent=yes ;;
1225
1226 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1227 ac_prev=sbindir ;;
1228 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1229 | --sbi=* | --sb=*)
1230 sbindir=$ac_optarg ;;
1231
1232 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1233 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1234 | --sharedst | --shareds | --shared | --share | --shar \
1235 | --sha | --sh)
1236 ac_prev=sharedstatedir ;;
1237 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1238 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1239 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1240 | --sha=* | --sh=*)
1241 sharedstatedir=$ac_optarg ;;
1242
1243 -site | --site | --sit)
1244 ac_prev=site ;;
1245 -site=* | --site=* | --sit=*)
1246 site=$ac_optarg ;;
1247
1248 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1249 ac_prev=srcdir ;;
1250 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1251 srcdir=$ac_optarg ;;
1252
1253 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1254 | --syscon | --sysco | --sysc | --sys | --sy)
1255 ac_prev=sysconfdir ;;
1256 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1257 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1258 sysconfdir=$ac_optarg ;;
1259
1260 -target | --target | --targe | --targ | --tar | --ta | --t)
1261 ac_prev=target_alias ;;
1262 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1263 target_alias=$ac_optarg ;;
1264
1265 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1266 verbose=yes ;;
1267
1268 -version | --version | --versio | --versi | --vers | -V)
1269 ac_init_version=: ;;
1270
1271 -with-* | --with-*)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001272 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001273 # Reject names that are not valid shell variable names.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001274 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1275 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001276 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001277 ac_useropt_orig=$ac_useropt
1278 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279 case $ac_user_opts in
1280 *"
1281"with_$ac_useropt"
1282"*) ;;
1283 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1284 ac_unrecognized_sep=', ';;
1285 esac
1286 eval with_$ac_useropt=\$ac_optarg ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001287
1288 -without-* | --without-*)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001289 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001290 # Reject names that are not valid shell variable names.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001291 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1292 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001293 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001294 ac_useropt_orig=$ac_useropt
1295 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296 case $ac_user_opts in
1297 *"
1298"with_$ac_useropt"
1299"*) ;;
1300 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1301 ac_unrecognized_sep=', ';;
1302 esac
1303 eval with_$ac_useropt=no ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001304
1305 --x)
1306 # Obsolete; use --with-x.
1307 with_x=yes ;;
1308
1309 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1310 | --x-incl | --x-inc | --x-in | --x-i)
1311 ac_prev=x_includes ;;
1312 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1313 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1314 x_includes=$ac_optarg ;;
1315
1316 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1317 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1318 ac_prev=x_libraries ;;
1319 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1320 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1321 x_libraries=$ac_optarg ;;
1322
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001323 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001324Try \`$0 --help' for more information." >&2
1325 { (exit 1); exit 1; }; }
1326 ;;
1327
1328 *=*)
1329 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1330 # Reject names that are not valid shell variable names.
1331 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001332 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001333 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001334 eval $ac_envvar=\$ac_optarg
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001335 export $ac_envvar ;;
1336
1337 *)
1338 # FIXME: should be removed in autoconf 3.0.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001339 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001340 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001341 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001342 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1343 ;;
1344
1345 esac
1346done
1347
1348if test -n "$ac_prev"; then
1349 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001350 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001351 { (exit 1); exit 1; }; }
1352fi
1353
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001354if test -n "$ac_unrecognized_opts"; then
1355 case $enable_option_checking in
1356 no) ;;
1357 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1358 { (exit 1); exit 1; }; } ;;
1359 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1360 esac
1361fi
1362
1363# Check all directory arguments for consistency.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001364for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1365 datadir sysconfdir sharedstatedir localstatedir includedir \
1366 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1367 libdir localedir mandir
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001368do
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001369 eval ac_val=\$$ac_var
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001370 # Remove trailing slashes.
1371 case $ac_val in
1372 */ )
1373 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1374 eval $ac_var=\$ac_val;;
1375 esac
1376 # Be sure to have absolute directory names.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001377 case $ac_val in
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001378 [\\/$]* | ?:[\\/]* ) continue;;
1379 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001380 esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001381 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001382 { (exit 1); exit 1; }; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001383done
1384
1385# There might be people who depend on the old broken behavior: `$host'
1386# used to hold the argument of --host etc.
1387# FIXME: To remove some day.
1388build=$build_alias
1389host=$host_alias
1390target=$target_alias
1391
1392# FIXME: To remove some day.
1393if test "x$host_alias" != x; then
1394 if test "x$build_alias" = x; then
1395 cross_compiling=maybe
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001396 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001397 If a cross compiler is detected then cross compile mode will be used." >&2
1398 elif test "x$build_alias" != "x$host_alias"; then
1399 cross_compiling=yes
1400 fi
1401fi
1402
1403ac_tool_prefix=
1404test -n "$host_alias" && ac_tool_prefix=$host_alias-
1405
1406test "$silent" = yes && exec 6>/dev/null
1407
1408
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001409ac_pwd=`pwd` && test -n "$ac_pwd" &&
1410ac_ls_di=`ls -di .` &&
1411ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001412 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001413 { (exit 1); exit 1; }; }
1414test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001415 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001416 { (exit 1); exit 1; }; }
1417
1418
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001419# Find the source files, if location was not specified.
1420if test -z "$srcdir"; then
1421 ac_srcdir_defaulted=yes
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001422 # Try the directory containing this script, then the parent directory.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001423 ac_confdir=`$as_dirname -- "$as_myself" ||
1424$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1425 X"$as_myself" : 'X\(//\)[^/]' \| \
1426 X"$as_myself" : 'X\(//\)$' \| \
1427 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1428$as_echo X"$as_myself" |
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1430 s//\1/
1431 q
1432 }
1433 /^X\(\/\/\)[^/].*/{
1434 s//\1/
1435 q
1436 }
1437 /^X\(\/\/\)$/{
1438 s//\1/
1439 q
1440 }
1441 /^X\(\/\).*/{
1442 s//\1/
1443 q
1444 }
1445 s/.*/./; q'`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001446 srcdir=$ac_confdir
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001447 if test ! -r "$srcdir/$ac_unique_file"; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001448 srcdir=..
1449 fi
1450else
1451 ac_srcdir_defaulted=no
1452fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001453if test ! -r "$srcdir/$ac_unique_file"; then
1454 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001455 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001456 { (exit 1); exit 1; }; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001457fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001458ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1459ac_abs_confdir=`(
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001460 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001461 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001462 pwd)`
1463# When building in place, set srcdir=.
1464if test "$ac_abs_confdir" = "$ac_pwd"; then
1465 srcdir=.
1466fi
1467# Remove unnecessary trailing slashes from srcdir.
1468# Double slashes in file names in object file debugging info
1469# mess up M-x gdb in Emacs.
1470case $srcdir in
1471*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1472esac
1473for ac_var in $ac_precious_vars; do
1474 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1475 eval ac_env_${ac_var}_value=\$${ac_var}
1476 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1477 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1478done
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001479
1480#
1481# Report the --help message.
1482#
1483if test "$ac_init_help" = "long"; then
1484 # Omit some internal or obsolete options to make the list less imposing.
1485 # This message is too long to be a string in the A/UX 3.1 sh.
1486 cat <<_ACEOF
Glenn Randers-Pehrson glennrp@comcast.net92d95342009-05-02 15:12:50 -05001487\`configure' configures libpng 1.4.0beta57 to adapt to many kinds of systems.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001488
1489Usage: $0 [OPTION]... [VAR=VALUE]...
1490
1491To assign environment variables (e.g., CC, CFLAGS...), specify them as
1492VAR=VALUE. See below for descriptions of some of the useful variables.
1493
1494Defaults for the options are specified in brackets.
1495
1496Configuration:
1497 -h, --help display this help and exit
1498 --help=short display options specific to this package
1499 --help=recursive display the short help of all the included packages
1500 -V, --version display version information and exit
1501 -q, --quiet, --silent do not print \`checking...' messages
1502 --cache-file=FILE cache test results in FILE [disabled]
1503 -C, --config-cache alias for \`--cache-file=config.cache'
1504 -n, --no-create do not create output files
1505 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1506
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001507Installation directories:
1508 --prefix=PREFIX install architecture-independent files in PREFIX
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001509 [$ac_default_prefix]
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001510 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001511 [PREFIX]
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001512
1513By default, \`make install' will install all the files in
1514\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1515an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1516for instance \`--prefix=\$HOME'.
1517
1518For better control, use the options below.
1519
1520Fine tuning of the installation directories:
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001521 --bindir=DIR user executables [EPREFIX/bin]
1522 --sbindir=DIR system admin executables [EPREFIX/sbin]
1523 --libexecdir=DIR program executables [EPREFIX/libexec]
1524 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1525 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1526 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1527 --libdir=DIR object code libraries [EPREFIX/lib]
1528 --includedir=DIR C header files [PREFIX/include]
1529 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1530 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1531 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1532 --infodir=DIR info documentation [DATAROOTDIR/info]
1533 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1534 --mandir=DIR man documentation [DATAROOTDIR/man]
1535 --docdir=DIR documentation root [DATAROOTDIR/doc/libpng]
1536 --htmldir=DIR html documentation [DOCDIR]
1537 --dvidir=DIR dvi documentation [DOCDIR]
1538 --pdfdir=DIR pdf documentation [DOCDIR]
1539 --psdir=DIR ps documentation [DOCDIR]
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001540_ACEOF
1541
1542 cat <<\_ACEOF
1543
1544Program names:
1545 --program-prefix=PREFIX prepend PREFIX to installed program names
1546 --program-suffix=SUFFIX append SUFFIX to installed program names
1547 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1548
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001549System types:
1550 --build=BUILD configure for building on BUILD [guessed]
1551 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1552_ACEOF
1553fi
1554
1555if test -n "$ac_init_help"; then
1556 case $ac_init_help in
Glenn Randers-Pehrson glennrp@comcast.net92d95342009-05-02 15:12:50 -05001557 short | recursive ) echo "Configuration of libpng 1.4.0beta57:";;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001558 esac
1559 cat <<\_ACEOF
1560
1561Optional Features:
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001562 --disable-option-checking ignore unrecognized --enable/--with options
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001563 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1564 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001565 --enable-maintainer-mode enable make rules and dependencies not useful
1566 (and sometimes confusing) to the casual installer
1567 --disable-dependency-tracking speeds up one-time build
1568 --enable-dependency-tracking do not reject slow dependency extractors
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001569 --enable-shared[=PKGS] build shared libraries [default=yes]
1570 --enable-static[=PKGS] build static libraries [default=yes]
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001571 --enable-fast-install[=PKGS]
1572 optimize for fast installation [default=yes]
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001573 --disable-libtool-lock avoid locking (might break parallel builds)
1574
1575Optional Packages:
1576 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1577 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001578 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1579 --with-pic try to use only PIC/non-PIC objects [default=use
1580 both]
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001581 --with-pkgconfigdir Use the specified pkgconfig dir (default is
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001582 libdir/pkgconfig)
1583 --with-binconfigs Generate shell libpng-config scripts as well as
1584 pkg-config data [default=yes]
1585 --with-libpng-compat Generate the obsolete libpng.so library
1586 [default=yes]
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001587
1588Some influential environment variables:
1589 CC C compiler command
1590 CFLAGS C compiler flags
1591 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1592 nonstandard directory <lib dir>
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05001593 LIBS libraries to pass to the linker, e.g. -l<library>
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001594 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1595 you have headers in a nonstandard directory <include dir>
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001596 CPP C preprocessor
1597
1598Use these variables to override the choices made by `configure' or to help
1599it to find libraries and programs with nonstandard names/locations.
1600
Glenn Randers-Pehrson7b34df32006-02-24 06:30:16 -06001601Report bugs to <png-mng-implement@lists.sourceforge.net>.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001602_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001603ac_status=$?
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001604fi
1605
1606if test "$ac_init_help" = "recursive"; then
1607 # If there are subdirs, report their specific --help.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001608 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001609 test -d "$ac_dir" ||
1610 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1611 continue
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001612 ac_builddir=.
1613
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001614case "$ac_dir" in
1615.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616*)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001617 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001618 # A ".." for each directory in $ac_dir_suffix.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001619 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001620 case $ac_top_builddir_sub in
1621 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1622 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1623 esac ;;
1624esac
1625ac_abs_top_builddir=$ac_pwd
1626ac_abs_builddir=$ac_pwd$ac_dir_suffix
1627# for backward compatibility:
1628ac_top_builddir=$ac_top_build_prefix
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001629
1630case $srcdir in
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001631 .) # We are building in place.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001632 ac_srcdir=.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001633 ac_top_srcdir=$ac_top_builddir_sub
1634 ac_abs_top_srcdir=$ac_pwd ;;
1635 [\\/]* | ?:[\\/]* ) # Absolute name.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001636 ac_srcdir=$srcdir$ac_dir_suffix;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001637 ac_top_srcdir=$srcdir
1638 ac_abs_top_srcdir=$srcdir ;;
1639 *) # Relative name.
1640 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1641 ac_top_srcdir=$ac_top_build_prefix$srcdir
1642 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001643esac
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001644ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001645
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001646 cd "$ac_dir" || { ac_status=$?; continue; }
1647 # Check for guested configure.
1648 if test -f "$ac_srcdir/configure.gnu"; then
1649 echo &&
1650 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1651 elif test -f "$ac_srcdir/configure"; then
1652 echo &&
1653 $SHELL "$ac_srcdir/configure" --help=recursive
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001654 else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001655 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001656 fi || ac_status=$?
1657 cd "$ac_pwd" || { ac_status=$?; break; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001658 done
1659fi
1660
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001661test -n "$ac_init_help" && exit $ac_status
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001662if $ac_init_version; then
1663 cat <<\_ACEOF
Glenn Randers-Pehrson glennrp@comcast.net92d95342009-05-02 15:12:50 -05001664libpng configure 1.4.0beta57
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001665generated by GNU Autoconf 2.62
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001666
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001667Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050016682002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001669This configure script is free software; the Free Software Foundation
1670gives unlimited permission to copy, distribute and modify it.
1671_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001672 exit
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001673fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001674cat >config.log <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001675This file contains any messages produced by compilers while
1676running configure, to aid debugging if configure makes a mistake.
1677
Glenn Randers-Pehrson glennrp@comcast.net92d95342009-05-02 15:12:50 -05001678It was created by libpng $as_me 1.4.0beta57, which was
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001679generated by GNU Autoconf 2.62. Invocation command line was
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001680
1681 $ $0 $@
1682
1683_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001684exec 5>>config.log
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001685{
1686cat <<_ASUNAME
1687## --------- ##
1688## Platform. ##
1689## --------- ##
1690
1691hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1692uname -m = `(uname -m) 2>/dev/null || echo unknown`
1693uname -r = `(uname -r) 2>/dev/null || echo unknown`
1694uname -s = `(uname -s) 2>/dev/null || echo unknown`
1695uname -v = `(uname -v) 2>/dev/null || echo unknown`
1696
1697/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1698/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1699
1700/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1701/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1702/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001703/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001704/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1705/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1706/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1707
1708_ASUNAME
1709
1710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711for as_dir in $PATH
1712do
1713 IFS=$as_save_IFS
1714 test -z "$as_dir" && as_dir=.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001715 $as_echo "PATH: $as_dir"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001716done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001717IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001718
1719} >&5
1720
1721cat >&5 <<_ACEOF
1722
1723
1724## ----------- ##
1725## Core tests. ##
1726## ----------- ##
1727
1728_ACEOF
1729
1730
1731# Keep a trace of the command line.
1732# Strip out --no-create and --no-recursion so they do not pile up.
1733# Strip out --silent because we don't want to record it for future runs.
1734# Also quote any args containing shell meta-characters.
1735# Make two passes to allow for proper duplicate-argument suppression.
1736ac_configure_args=
1737ac_configure_args0=
1738ac_configure_args1=
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001739ac_must_keep_next=false
1740for ac_pass in 1 2
1741do
1742 for ac_arg
1743 do
1744 case $ac_arg in
1745 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1747 | -silent | --silent | --silen | --sile | --sil)
1748 continue ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001749 *\'*)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001750 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001751 esac
1752 case $ac_pass in
1753 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1754 2)
1755 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1756 if test $ac_must_keep_next = true; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001757 ac_must_keep_next=false # Got value, back to normal.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001758 else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06001759 case $ac_arg in
1760 *=* | --config-cache | -C | -disable-* | --disable-* \
1761 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1762 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1763 | -with-* | --with-* | -without-* | --without-* | --x)
1764 case "$ac_configure_args0 " in
1765 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1766 esac
1767 ;;
1768 -* ) ac_must_keep_next=true ;;
1769 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001770 fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001771 ac_configure_args="$ac_configure_args '$ac_arg'"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001772 ;;
1773 esac
1774 done
1775done
1776$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1777$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1778
1779# When interrupted or exit'd, cleanup temporary files, and complete
1780# config.log. We remove comments because anyway the quotes in there
1781# would cause problems or look ugly.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001782# WARNING: Use '\'' to represent an apostrophe within the trap.
1783# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001784trap 'exit_status=$?
1785 # Save into config.log some information that might help in debugging.
1786 {
1787 echo
1788
1789 cat <<\_ASBOX
1790## ---------------- ##
1791## Cache variables. ##
1792## ---------------- ##
1793_ASBOX
1794 echo
1795 # The following way of writing the cache mishandles newlines in values,
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001796(
1797 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1798 eval ac_val=\$$ac_var
1799 case $ac_val in #(
1800 *${as_nl}*)
1801 case $ac_var in #(
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001802 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1803$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001804 esac
1805 case $ac_var in #(
1806 _ | IFS | as_nl) ;; #(
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001807 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001808 *) $as_unset $ac_var ;;
1809 esac ;;
1810 esac
1811 done
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001812 (set) 2>&1 |
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001813 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1814 *${as_nl}ac_space=\ *)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001815 sed -n \
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001816 "s/'\''/'\''\\\\'\'''\''/g;
1817 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1818 ;; #(
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001819 *)
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001820 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001821 ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001822 esac |
1823 sort
1824)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001825 echo
1826
1827 cat <<\_ASBOX
1828## ----------------- ##
1829## Output variables. ##
1830## ----------------- ##
1831_ASBOX
1832 echo
1833 for ac_var in $ac_subst_vars
1834 do
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001835 eval ac_val=\$$ac_var
1836 case $ac_val in
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001837 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001838 esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001839 $as_echo "$ac_var='\''$ac_val'\''"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001840 done | sort
1841 echo
1842
1843 if test -n "$ac_subst_files"; then
1844 cat <<\_ASBOX
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001845## ------------------- ##
1846## File substitutions. ##
1847## ------------------- ##
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001848_ASBOX
1849 echo
1850 for ac_var in $ac_subst_files
1851 do
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001852 eval ac_val=\$$ac_var
1853 case $ac_val in
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001854 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001855 esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001856 $as_echo "$ac_var='\''$ac_val'\''"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001857 done | sort
1858 echo
1859 fi
1860
1861 if test -s confdefs.h; then
1862 cat <<\_ASBOX
1863## ----------- ##
1864## confdefs.h. ##
1865## ----------- ##
1866_ASBOX
1867 echo
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001868 cat confdefs.h
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001869 echo
1870 fi
1871 test "$ac_signal" != 0 &&
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001872 $as_echo "$as_me: caught signal $ac_signal"
1873 $as_echo "$as_me: exit $exit_status"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001874 } >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001875 rm -f core *.core core.conftest.* &&
1876 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001877 exit $exit_status
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001878' 0
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001879for ac_signal in 1 2 13 15; do
1880 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1881done
1882ac_signal=0
1883
1884# confdefs.h avoids OS command line length limits that DEFS can exceed.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001885rm -f -r conftest* confdefs.h
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001886
1887# Predefined preprocessor variables.
1888
1889cat >>confdefs.h <<_ACEOF
1890#define PACKAGE_NAME "$PACKAGE_NAME"
1891_ACEOF
1892
1893
1894cat >>confdefs.h <<_ACEOF
1895#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1896_ACEOF
1897
1898
1899cat >>confdefs.h <<_ACEOF
1900#define PACKAGE_VERSION "$PACKAGE_VERSION"
1901_ACEOF
1902
1903
1904cat >>confdefs.h <<_ACEOF
1905#define PACKAGE_STRING "$PACKAGE_STRING"
1906_ACEOF
1907
1908
1909cat >>confdefs.h <<_ACEOF
1910#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1911_ACEOF
1912
1913
1914# Let the site file select an alternate cache file if it wants to.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001915# Prefer an explicitly selected file to automatically selected ones.
1916ac_site_file1=NONE
1917ac_site_file2=NONE
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001918if test -n "$CONFIG_SITE"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001919 ac_site_file1=$CONFIG_SITE
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001920elif test "x$prefix" != xNONE; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001921 ac_site_file1=$prefix/share/config.site
1922 ac_site_file2=$prefix/etc/config.site
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001923else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001924 ac_site_file1=$ac_default_prefix/share/config.site
1925 ac_site_file2=$ac_default_prefix/etc/config.site
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001926fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001927for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001928do
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001929 test "x$ac_site_file" = xNONE && continue
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001930 if test -r "$ac_site_file"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001931 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1932$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001933 sed 's/^/| /' "$ac_site_file" >&5
1934 . "$ac_site_file"
1935 fi
1936done
1937
1938if test -r "$cache_file"; then
1939 # Some versions of bash will fail to source /dev/null (special
1940 # files actually), so we avoid doing that.
1941 if test -f "$cache_file"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001942 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1943$as_echo "$as_me: loading cache $cache_file" >&6;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001944 case $cache_file in
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001945 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1946 *) . "./$cache_file";;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001947 esac
1948 fi
1949else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001950 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1951$as_echo "$as_me: creating cache $cache_file" >&6;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001952 >$cache_file
1953fi
1954
1955# Check that the precious variables saved in the cache have kept the same
1956# value.
1957ac_cache_corrupted=false
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001958for ac_var in $ac_precious_vars; do
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001959 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1960 eval ac_new_set=\$ac_env_${ac_var}_set
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06001961 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1962 eval ac_new_val=\$ac_env_${ac_var}_value
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001963 case $ac_old_set,$ac_new_set in
1964 set,)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001965 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1966$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001967 ac_cache_corrupted=: ;;
1968 ,set)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001969 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1970$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001971 ac_cache_corrupted=: ;;
1972 ,);;
1973 *)
1974 if test "x$ac_old_val" != "x$ac_new_val"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001975 # differences in whitespace do not lead to failure.
1976 ac_old_val_w=`echo x $ac_old_val`
1977 ac_new_val_w=`echo x $ac_new_val`
1978 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1979 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1980$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1981 ac_cache_corrupted=:
1982 else
1983 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1984$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1985 eval $ac_var=\$ac_old_val
1986 fi
1987 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1988$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1989 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1990$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001991 fi;;
1992 esac
1993 # Pass precious variables to config.status.
1994 if test "$ac_new_set" = set; then
1995 case $ac_new_val in
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05001996 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06001997 *) ac_arg=$ac_var=$ac_new_val ;;
1998 esac
1999 case " $ac_configure_args " in
2000 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2001 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2002 esac
2003 fi
2004done
2005if $ac_cache_corrupted; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002006 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2007$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2008 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2009$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002010 { (exit 1); exit 1; }; }
2011fi
2012
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002037ac_ext=c
2038ac_cpp='$CPP $CPPFLAGS'
2039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2041ac_compiler_gnu=$ac_cv_c_compiler_gnu
2042
2043
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002044am__api_version='1.10'
2045
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002046ac_aux_dir=
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002047for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2048 if test -f "$ac_dir/install-sh"; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002049 ac_aux_dir=$ac_dir
2050 ac_install_sh="$ac_aux_dir/install-sh -c"
2051 break
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002052 elif test -f "$ac_dir/install.sh"; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002053 ac_aux_dir=$ac_dir
2054 ac_install_sh="$ac_aux_dir/install.sh -c"
2055 break
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002056 elif test -f "$ac_dir/shtool"; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002057 ac_aux_dir=$ac_dir
2058 ac_install_sh="$ac_aux_dir/shtool install -c"
2059 break
2060 fi
2061done
2062if test -z "$ac_aux_dir"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002063 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2064$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002065 { (exit 1); exit 1; }; }
2066fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002067
2068# These three variables are undocumented and unsupported,
2069# and are intended to be withdrawn in a future Autoconf release.
2070# They can cause serious problems if a builder's source tree is in a directory
2071# whose full name contains unusual characters.
2072ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2073ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2074ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2075
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002076
2077# Find a good install program. We prefer a C program (faster),
2078# so one script is as good as another. But avoid the broken or
2079# incompatible versions:
2080# SysV /etc/install, /usr/sbin/install
2081# SunOS /usr/etc/install
2082# IRIX /sbin/install
2083# AIX /bin/install
2084# AmigaOS /C/install, which installs bootblocks on floppy discs
2085# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2086# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2087# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002088# OS/2's system install, which has a completely different semantic
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002089# ./install, which can be erroneously created by make from ./install.sh.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002090# Reject install programs that cannot install multiple files.
2091{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2092$as_echo_n "checking for a BSD-compatible install... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002093if test -z "$INSTALL"; then
2094if test "${ac_cv_path_install+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002095 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002096else
2097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098for as_dir in $PATH
2099do
2100 IFS=$as_save_IFS
2101 test -z "$as_dir" && as_dir=.
2102 # Account for people who put trailing slashes in PATH elements.
2103case $as_dir/ in
2104 ./ | .// | /cC/* | \
2105 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002106 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002107 /usr/ucb/* ) ;;
2108 *)
2109 # OSF1 and SCO ODT 3.0 have their own names for install.
2110 # Don't use installbsd from OSF since it installs stuff as root
2111 # by default.
2112 for ac_prog in ginstall scoinst install; do
2113 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05002114 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002115 if test $ac_prog = install &&
2116 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2117 # AIX install. It has an incompatible calling convention.
2118 :
2119 elif test $ac_prog = install &&
2120 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2121 # program-specific install script used by HP pwplus--don't use.
2122 :
2123 else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002124 rm -rf conftest.one conftest.two conftest.dir
2125 echo one > conftest.one
2126 echo two > conftest.two
2127 mkdir conftest.dir
2128 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2129 test -s conftest.one && test -s conftest.two &&
2130 test -s conftest.dir/conftest.one &&
2131 test -s conftest.dir/conftest.two
2132 then
2133 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2134 break 3
2135 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002136 fi
2137 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002138 done
2139 done
2140 ;;
2141esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002142
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002143done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002144IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002145
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002146rm -rf conftest.one conftest.two conftest.dir
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002147
2148fi
2149 if test "${ac_cv_path_install+set}" = set; then
2150 INSTALL=$ac_cv_path_install
2151 else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002152 # As a last resort, use the slow shell script. Don't cache a
2153 # value for INSTALL within a source directory, because that will
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002154 # break other packages using the cache if that directory is
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002155 # removed, or if the value is a relative name.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002156 INSTALL=$ac_install_sh
2157 fi
2158fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002159{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2160$as_echo "$INSTALL" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002161
2162# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2163# It thinks the first close brace ends the variable substitution.
2164test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2165
2166test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2167
2168test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2169
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002170{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2171$as_echo_n "checking whether build environment is sane... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002172# Just in case
2173sleep 1
2174echo timestamp > conftest.file
2175# Do `set' in a subshell so we don't clobber the current shell's
2176# arguments. Must try -L first in case configure is actually a
2177# symlink; some systems play weird games with the mod time of symlinks
2178# (eg FreeBSD returns the mod time of the symlink's containing
2179# directory).
2180if (
2181 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2182 if test "$*" = "X"; then
2183 # -L didn't work.
2184 set X `ls -t $srcdir/configure conftest.file`
2185 fi
2186 rm -f conftest.file
2187 if test "$*" != "X $srcdir/configure conftest.file" \
2188 && test "$*" != "X conftest.file $srcdir/configure"; then
2189
2190 # If neither matched, then we have a broken ls. This can happen
2191 # if, for instance, CONFIG_SHELL is bash and it inherits a
2192 # broken ls alias from the environment. This has actually
2193 # happened. Such a system could not be considered "sane".
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002194 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002195alias in your environment" >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002196$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002197alias in your environment" >&2;}
2198 { (exit 1); exit 1; }; }
2199 fi
2200
2201 test "$2" = conftest.file
2202 )
2203then
2204 # Ok.
2205 :
2206else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002207 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002208Check your system clock" >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002209$as_echo "$as_me: error: newly created file is older than distributed files!
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002210Check your system clock" >&2;}
2211 { (exit 1); exit 1; }; }
2212fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002213{ $as_echo "$as_me:$LINENO: result: yes" >&5
2214$as_echo "yes" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002215test "$program_prefix" != NONE &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002216 program_transform_name="s&^&$program_prefix&;$program_transform_name"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002217# Use a double $ so make ignores it.
2218test "$program_suffix" != NONE &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002219 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002220# Double any \ or $.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002221# By default was `s,x,x', remove it if useless.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002222ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2223program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002224
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002225# expand $ac_aux_dir to an absolute path
2226am_aux_dir=`cd $ac_aux_dir && pwd`
2227
2228test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2229# Use eval to expand $SHELL
2230if eval "$MISSING --run true"; then
2231 am_missing_run="$MISSING --run "
2232else
2233 am_missing_run=
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002234 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2235$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002236fi
2237
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002238{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2239$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2240if test -z "$MKDIR_P"; then
2241 if test "${ac_cv_path_mkdir+set}" = set; then
2242 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002243else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2246do
2247 IFS=$as_save_IFS
2248 test -z "$as_dir" && as_dir=.
2249 for ac_prog in mkdir gmkdir; do
2250 for ac_exec_ext in '' $ac_executable_extensions; do
2251 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2252 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2253 'mkdir (GNU coreutils) '* | \
2254 'mkdir (coreutils) '* | \
2255 'mkdir (fileutils) '4.1*)
2256 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2257 break 3;;
2258 esac
2259 done
2260 done
2261done
2262IFS=$as_save_IFS
2263
2264fi
2265
2266 if test "${ac_cv_path_mkdir+set}" = set; then
2267 MKDIR_P="$ac_cv_path_mkdir -p"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002268 else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002269 # As a last resort, use the slow shell script. Don't cache a
2270 # value for MKDIR_P within a source directory, because that will
2271 # break other packages using the cache if that directory is
2272 # removed, or if the value is a relative name.
2273 test -d ./--version && rmdir ./--version
2274 MKDIR_P="$ac_install_sh -d"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002275 fi
2276fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002277{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2278$as_echo "$MKDIR_P" >&6; }
2279
2280mkdir_p="$MKDIR_P"
2281case $mkdir_p in
2282 [\\/$]* | ?:[\\/]*) ;;
2283 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2284esac
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002285
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002286for ac_prog in gawk mawk nawk awk
2287do
2288 # Extract the first word of "$ac_prog", so it can be a program name with args.
2289set dummy $ac_prog; ac_word=$2
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002290{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2291$as_echo_n "checking for $ac_word... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002292if test "${ac_cv_prog_AWK+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002293 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002294else
2295 if test -n "$AWK"; then
2296 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2297else
2298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299for as_dir in $PATH
2300do
2301 IFS=$as_save_IFS
2302 test -z "$as_dir" && as_dir=.
2303 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05002304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002305 ac_cv_prog_AWK="$ac_prog"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002306 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002307 break 2
2308 fi
2309done
2310done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002311IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002312
2313fi
2314fi
2315AWK=$ac_cv_prog_AWK
2316if test -n "$AWK"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002317 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2318$as_echo "$AWK" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002319else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002320 { $as_echo "$as_me:$LINENO: result: no" >&5
2321$as_echo "no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002322fi
2323
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002324
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002325 test -n "$AWK" && break
2326done
2327
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002328{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2329$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2330set x ${MAKE-make}
2331ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002332if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002333 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002334else
2335 cat >conftest.make <<\_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002336SHELL = /bin/sh
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002337all:
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002338 @echo '@@@%%%=$(MAKE)=@@@%%%'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002339_ACEOF
2340# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002341case `${MAKE-make} -f conftest.make 2>/dev/null` in
2342 *@@@%%%=?*=@@@%%%*)
2343 eval ac_cv_prog_make_${ac_make}_set=yes;;
2344 *)
2345 eval ac_cv_prog_make_${ac_make}_set=no;;
2346esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002347rm -f conftest.make
2348fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002349if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002350 { $as_echo "$as_me:$LINENO: result: yes" >&5
2351$as_echo "yes" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002352 SET_MAKE=
2353else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002354 { $as_echo "$as_me:$LINENO: result: no" >&5
2355$as_echo "no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002356 SET_MAKE="MAKE=${MAKE-make}"
2357fi
2358
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002359rm -rf .tst 2>/dev/null
2360mkdir .tst 2>/dev/null
2361if test -d .tst; then
2362 am__leading_dot=.
2363else
2364 am__leading_dot=_
2365fi
2366rmdir .tst 2>/dev/null
2367
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002368if test "`cd $srcdir && pwd`" != "`pwd`"; then
2369 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2370 # is not polluted with repeated "-I."
2371 am__isrc=' -I$(srcdir)'
2372 # test to see if srcdir already configured
2373 if test -f $srcdir/config.status; then
2374 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2375$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002376 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002377 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002378fi
2379
2380# test whether we have cygpath
2381if test -z "$CYGPATH_W"; then
2382 if (cygpath --version) >/dev/null 2>/dev/null; then
2383 CYGPATH_W='cygpath -w'
2384 else
2385 CYGPATH_W=echo
2386 fi
2387fi
2388
2389
2390# Define the identity of the package.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002391 PACKAGE='libpng'
Glenn Randers-Pehrson glennrp@comcast.net92d95342009-05-02 15:12:50 -05002392 VERSION='1.4.0beta57'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002393
2394
2395cat >>confdefs.h <<_ACEOF
2396#define PACKAGE "$PACKAGE"
2397_ACEOF
2398
2399
2400cat >>confdefs.h <<_ACEOF
2401#define VERSION "$VERSION"
2402_ACEOF
2403
2404# Some tools Automake needs.
2405
2406ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2407
2408
2409AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2410
2411
2412AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2413
2414
2415AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2416
2417
2418MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2419
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002420install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002421
2422# Installed binaries are usually stripped using `strip' when the user
2423# run `make install-strip'. However `strip' might not be the right
2424# tool to use in cross-compilation environments, therefore Automake
2425# will honor the `STRIP' environment variable to overrule this program.
2426if test "$cross_compiling" != no; then
2427 if test -n "$ac_tool_prefix"; then
2428 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2429set dummy ${ac_tool_prefix}strip; ac_word=$2
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002430{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2431$as_echo_n "checking for $ac_word... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002432if test "${ac_cv_prog_STRIP+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002433 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002434else
2435 if test -n "$STRIP"; then
2436 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2437else
2438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439for as_dir in $PATH
2440do
2441 IFS=$as_save_IFS
2442 test -z "$as_dir" && as_dir=.
2443 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05002444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002445 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002446 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002447 break 2
2448 fi
2449done
2450done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002451IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002452
2453fi
2454fi
2455STRIP=$ac_cv_prog_STRIP
2456if test -n "$STRIP"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002457 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2458$as_echo "$STRIP" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002459else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002460 { $as_echo "$as_me:$LINENO: result: no" >&5
2461$as_echo "no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002462fi
2463
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002464
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002465fi
2466if test -z "$ac_cv_prog_STRIP"; then
2467 ac_ct_STRIP=$STRIP
2468 # Extract the first word of "strip", so it can be a program name with args.
2469set dummy strip; ac_word=$2
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002470{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2471$as_echo_n "checking for $ac_word... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002472if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002473 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002474else
2475 if test -n "$ac_ct_STRIP"; then
2476 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2477else
2478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479for as_dir in $PATH
2480do
2481 IFS=$as_save_IFS
2482 test -z "$as_dir" && as_dir=.
2483 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05002484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002485 ac_cv_prog_ac_ct_STRIP="strip"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002486 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002487 break 2
2488 fi
2489done
2490done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002491IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002492
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002493fi
2494fi
2495ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2496if test -n "$ac_ct_STRIP"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002497 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2498$as_echo "$ac_ct_STRIP" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002499else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002500 { $as_echo "$as_me:$LINENO: result: no" >&5
2501$as_echo "no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002502fi
2503
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002504 if test "x$ac_ct_STRIP" = x; then
2505 STRIP=":"
2506 else
2507 case $cross_compiling:$ac_tool_warned in
2508yes:)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002509{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002510whose name does not start with the host triplet. If you think this
2511configuration is useful to you, please write to autoconf@gnu.org." >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002512$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002513whose name does not start with the host triplet. If you think this
2514configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2515ac_tool_warned=yes ;;
2516esac
2517 STRIP=$ac_ct_STRIP
2518 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002519else
2520 STRIP="$ac_cv_prog_STRIP"
2521fi
2522
2523fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002524INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002525
2526# We need awk for the "check" target. The system "awk" is bad on
2527# some platforms.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002528# Always define AMTAR for backward compatibility.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002529
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002530AMTAR=${AMTAR-"${am_missing_run}tar"}
2531
2532am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2533
2534
2535
2536
2537
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002538{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2539$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002540 # Check whether --enable-maintainer-mode was given.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002541if test "${enable_maintainer_mode+set}" = set; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002542 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002543else
2544 USE_MAINTAINER_MODE=no
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002545fi
2546
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002547 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2548$as_echo "$USE_MAINTAINER_MODE" >&6; }
2549 if test $USE_MAINTAINER_MODE = yes; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002550 MAINTAINER_MODE_TRUE=
2551 MAINTAINER_MODE_FALSE='#'
2552else
2553 MAINTAINER_MODE_TRUE='#'
2554 MAINTAINER_MODE_FALSE=
2555fi
2556
2557 MAINT=$MAINTAINER_MODE_TRUE
2558
2559
2560
Glenn Randers-Pehrson glennrp@comcast.net92d95342009-05-02 15:12:50 -05002561PNGLIB_VERSION=1.4.0beta57
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002562PNGLIB_MAJOR=1
2563PNGLIB_MINOR=4
2564PNGLIB_RELEASE=0
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002565
2566
2567
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002568ac_config_headers="$ac_config_headers config.h"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002569
2570
2571# Checks for programs.
2572ac_ext=c
2573ac_cpp='$CPP $CPPFLAGS'
2574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2576ac_compiler_gnu=$ac_cv_c_compiler_gnu
2577if test -n "$ac_tool_prefix"; then
2578 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2579set dummy ${ac_tool_prefix}gcc; ac_word=$2
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002580{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2581$as_echo_n "checking for $ac_word... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002582if test "${ac_cv_prog_CC+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002583 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002584else
2585 if test -n "$CC"; then
2586 ac_cv_prog_CC="$CC" # Let the user override the test.
2587else
2588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589for as_dir in $PATH
2590do
2591 IFS=$as_save_IFS
2592 test -z "$as_dir" && as_dir=.
2593 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05002594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002595 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002596 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002597 break 2
2598 fi
2599done
2600done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002601IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002602
2603fi
2604fi
2605CC=$ac_cv_prog_CC
2606if test -n "$CC"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002607 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2608$as_echo "$CC" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002609else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002610 { $as_echo "$as_me:$LINENO: result: no" >&5
2611$as_echo "no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002612fi
2613
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002614
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002615fi
2616if test -z "$ac_cv_prog_CC"; then
2617 ac_ct_CC=$CC
2618 # Extract the first word of "gcc", so it can be a program name with args.
2619set dummy gcc; ac_word=$2
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002620{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2621$as_echo_n "checking for $ac_word... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002622if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002623 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002624else
2625 if test -n "$ac_ct_CC"; then
2626 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2627else
2628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629for as_dir in $PATH
2630do
2631 IFS=$as_save_IFS
2632 test -z "$as_dir" && as_dir=.
2633 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05002634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002635 ac_cv_prog_ac_ct_CC="gcc"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002636 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002637 break 2
2638 fi
2639done
2640done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002641IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002642
2643fi
2644fi
2645ac_ct_CC=$ac_cv_prog_ac_ct_CC
2646if test -n "$ac_ct_CC"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002647 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2648$as_echo "$ac_ct_CC" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002649else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002650 { $as_echo "$as_me:$LINENO: result: no" >&5
2651$as_echo "no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002652fi
2653
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002654 if test "x$ac_ct_CC" = x; then
2655 CC=""
2656 else
2657 case $cross_compiling:$ac_tool_warned in
2658yes:)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002659{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002660whose name does not start with the host triplet. If you think this
2661configuration is useful to you, please write to autoconf@gnu.org." >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002662$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002663whose name does not start with the host triplet. If you think this
2664configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2665ac_tool_warned=yes ;;
2666esac
2667 CC=$ac_ct_CC
2668 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002669else
2670 CC="$ac_cv_prog_CC"
2671fi
2672
2673if test -z "$CC"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002674 if test -n "$ac_tool_prefix"; then
2675 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002676set dummy ${ac_tool_prefix}cc; ac_word=$2
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002677{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2678$as_echo_n "checking for $ac_word... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002679if test "${ac_cv_prog_CC+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002680 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002681else
2682 if test -n "$CC"; then
2683 ac_cv_prog_CC="$CC" # Let the user override the test.
2684else
2685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686for as_dir in $PATH
2687do
2688 IFS=$as_save_IFS
2689 test -z "$as_dir" && as_dir=.
2690 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05002691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002692 ac_cv_prog_CC="${ac_tool_prefix}cc"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002693 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002694 break 2
2695 fi
2696done
2697done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002698IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002699
2700fi
2701fi
2702CC=$ac_cv_prog_CC
2703if test -n "$CC"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002704 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2705$as_echo "$CC" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002706else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002707 { $as_echo "$as_me:$LINENO: result: no" >&5
2708$as_echo "no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002709fi
2710
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002711
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002712 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002713fi
2714if test -z "$CC"; then
2715 # Extract the first word of "cc", so it can be a program name with args.
2716set dummy cc; ac_word=$2
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002717{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2718$as_echo_n "checking for $ac_word... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002719if test "${ac_cv_prog_CC+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002720 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002721else
2722 if test -n "$CC"; then
2723 ac_cv_prog_CC="$CC" # Let the user override the test.
2724else
2725 ac_prog_rejected=no
2726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727for as_dir in $PATH
2728do
2729 IFS=$as_save_IFS
2730 test -z "$as_dir" && as_dir=.
2731 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05002732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002733 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2734 ac_prog_rejected=yes
2735 continue
2736 fi
2737 ac_cv_prog_CC="cc"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002738 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002739 break 2
2740 fi
2741done
2742done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002743IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002744
2745if test $ac_prog_rejected = yes; then
2746 # We found a bogon in the path, so make sure we never use it.
2747 set dummy $ac_cv_prog_CC
2748 shift
2749 if test $# != 0; then
2750 # We chose a different compiler from the bogus one.
2751 # However, it has the same basename, so the bogon will be chosen
2752 # first if we set CC to just the basename; use the full file name.
2753 shift
2754 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2755 fi
2756fi
2757fi
2758fi
2759CC=$ac_cv_prog_CC
2760if test -n "$CC"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002761 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2762$as_echo "$CC" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002763else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002764 { $as_echo "$as_me:$LINENO: result: no" >&5
2765$as_echo "no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002766fi
2767
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002768
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002769fi
2770if test -z "$CC"; then
2771 if test -n "$ac_tool_prefix"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002772 for ac_prog in cl.exe
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002773 do
2774 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2775set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002776{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2777$as_echo_n "checking for $ac_word... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002778if test "${ac_cv_prog_CC+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002779 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002780else
2781 if test -n "$CC"; then
2782 ac_cv_prog_CC="$CC" # Let the user override the test.
2783else
2784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785for as_dir in $PATH
2786do
2787 IFS=$as_save_IFS
2788 test -z "$as_dir" && as_dir=.
2789 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05002790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002791 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002792 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002793 break 2
2794 fi
2795done
2796done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002797IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002798
2799fi
2800fi
2801CC=$ac_cv_prog_CC
2802if test -n "$CC"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002803 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2804$as_echo "$CC" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002805else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002806 { $as_echo "$as_me:$LINENO: result: no" >&5
2807$as_echo "no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002808fi
2809
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002810
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002811 test -n "$CC" && break
2812 done
2813fi
2814if test -z "$CC"; then
2815 ac_ct_CC=$CC
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002816 for ac_prog in cl.exe
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002817do
2818 # Extract the first word of "$ac_prog", so it can be a program name with args.
2819set dummy $ac_prog; ac_word=$2
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002820{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2821$as_echo_n "checking for $ac_word... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002822if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002823 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002824else
2825 if test -n "$ac_ct_CC"; then
2826 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2827else
2828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829for as_dir in $PATH
2830do
2831 IFS=$as_save_IFS
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05002834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002835 ac_cv_prog_ac_ct_CC="$ac_prog"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002836 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002837 break 2
2838 fi
2839done
2840done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002841IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002842
2843fi
2844fi
2845ac_ct_CC=$ac_cv_prog_ac_ct_CC
2846if test -n "$ac_ct_CC"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002847 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2848$as_echo "$ac_ct_CC" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002849else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002850 { $as_echo "$as_me:$LINENO: result: no" >&5
2851$as_echo "no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002852fi
2853
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002854
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002855 test -n "$ac_ct_CC" && break
2856done
2857
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002858 if test "x$ac_ct_CC" = x; then
2859 CC=""
2860 else
2861 case $cross_compiling:$ac_tool_warned in
2862yes:)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002863{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002864whose name does not start with the host triplet. If you think this
2865configuration is useful to you, please write to autoconf@gnu.org." >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002866$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002867whose name does not start with the host triplet. If you think this
2868configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2869ac_tool_warned=yes ;;
2870esac
2871 CC=$ac_ct_CC
2872 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002873fi
2874
2875fi
2876
2877
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002878test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002879See \`config.log' for more details." >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002880$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002881See \`config.log' for more details." >&2;}
2882 { (exit 1); exit 1; }; }
2883
2884# Provide some information about the compiler.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002885$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2886set X $ac_compile
2887ac_compiler=$2
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002888{ (ac_try="$ac_compiler --version >&5"
2889case "(($ac_try" in
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2892esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002893eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2894$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002895 (eval "$ac_compiler --version >&5") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002896 ac_status=$?
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002898 (exit $ac_status); }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002899{ (ac_try="$ac_compiler -v >&5"
2900case "(($ac_try" in
2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902 *) ac_try_echo=$ac_try;;
2903esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002904eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2905$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002906 (eval "$ac_compiler -v >&5") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002907 ac_status=$?
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002909 (exit $ac_status); }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002910{ (ac_try="$ac_compiler -V >&5"
2911case "(($ac_try" in
2912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913 *) ac_try_echo=$ac_try;;
2914esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002915eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2916$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002917 (eval "$ac_compiler -V >&5") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002918 ac_status=$?
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002920 (exit $ac_status); }
2921
2922cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002923/* confdefs.h. */
2924_ACEOF
2925cat confdefs.h >>conftest.$ac_ext
2926cat >>conftest.$ac_ext <<_ACEOF
2927/* end confdefs.h. */
2928
2929int
2930main ()
2931{
2932
2933 ;
2934 return 0;
2935}
2936_ACEOF
2937ac_clean_files_save=$ac_clean_files
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002938ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002939# Try to create an executable without -o first, disregard a.out.
2940# It will help us diagnose broken compilers, and finding out an intuition
2941# of exeext.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002942{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2943$as_echo_n "checking for C compiler default output file name... " >&6; }
2944ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2945
2946# The possible output files:
2947ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2948
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002949ac_rmfiles=
2950for ac_file in $ac_files
2951do
2952 case $ac_file in
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002953 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002954 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2955 esac
2956done
2957rm -f $ac_rmfiles
2958
2959if { (ac_try="$ac_link_default"
2960case "(($ac_try" in
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2963esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2965$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002966 (eval "$ac_link_default") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002967 ac_status=$?
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002969 (exit $ac_status); }; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002970 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2971# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2972# in a Makefile. We should not override ac_cv_exeext if it was cached,
2973# so that the user can short-circuit this test for compilers unknown to
2974# Autoconf.
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05002975for ac_file in $ac_files ''
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002976do
2977 test -f "$ac_file" || continue
2978 case $ac_file in
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05002979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002980 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002981 [ab].out )
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002982 # We found the default executable, but exeext='' is most
2983 # certainly right.
2984 break;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002985 *.* )
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06002986 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2987 then :; else
2988 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2989 fi
2990 # We set ac_cv_exeext here because the later test for it is not
2991 # safe: cross compilers may not add the suffix if given an `-o'
2992 # argument, so we may need to know it at that point already.
2993 # Even if this section looks crufty: it has the advantage of
2994 # actually working.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002995 break;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002996 * )
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06002997 break;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06002998 esac
2999done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003000test "$ac_cv_exeext" = no && ac_cv_exeext=
3001
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003002else
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05003003 ac_file=''
3004fi
3005
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003006{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3007$as_echo "$ac_file" >&6; }
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05003008if test -z "$ac_file"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003009 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003010sed 's/^/| /' conftest.$ac_ext >&5
3011
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003012{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003013See \`config.log' for more details." >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003014$as_echo "$as_me: error: C compiler cannot create executables
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003015See \`config.log' for more details." >&2;}
3016 { (exit 77); exit 77; }; }
3017fi
3018
3019ac_exeext=$ac_cv_exeext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003020
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003021# Check that the compiler produces executables we can run. If not, either
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003022# the compiler is broken, or we cross compile.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003023{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3024$as_echo_n "checking whether the C compiler works... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003025# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3026# If not cross compiling, check that we can run a simple program.
3027if test "$cross_compiling" != yes; then
3028 if { ac_try='./$ac_file'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003029 { (case "(($ac_try" in
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3032esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003033eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3034$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003035 (eval "$ac_try") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003036 ac_status=$?
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003038 (exit $ac_status); }; }; then
3039 cross_compiling=no
3040 else
3041 if test "$cross_compiling" = maybe; then
3042 cross_compiling=yes
3043 else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003044 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003045If you meant to cross compile, use \`--host'.
3046See \`config.log' for more details." >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003047$as_echo "$as_me: error: cannot run C compiled programs.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003048If you meant to cross compile, use \`--host'.
3049See \`config.log' for more details." >&2;}
3050 { (exit 1); exit 1; }; }
3051 fi
3052 fi
3053fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003054{ $as_echo "$as_me:$LINENO: result: yes" >&5
3055$as_echo "yes" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003056
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003057rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003058ac_clean_files=$ac_clean_files_save
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003059# Check that the compiler produces executables we can run. If not, either
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003060# the compiler is broken, or we cross compile.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003061{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3062$as_echo_n "checking whether we are cross compiling... " >&6; }
3063{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3064$as_echo "$cross_compiling" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003065
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003066{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3067$as_echo_n "checking for suffix of executables... " >&6; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003068if { (ac_try="$ac_link"
3069case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3072esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003073eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3074$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003075 (eval "$ac_link") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003076 ac_status=$?
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003078 (exit $ac_status); }; then
3079 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3080# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3081# work properly (i.e., refer to `conftest.exe'), while it won't with
3082# `rm'.
3083for ac_file in conftest.exe conftest conftest.*; do
3084 test -f "$ac_file" || continue
3085 case $ac_file in
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003086 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003087 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003088 break;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003089 * ) break;;
3090 esac
3091done
3092else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003093 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003094See \`config.log' for more details." >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003095$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003096See \`config.log' for more details." >&2;}
3097 { (exit 1); exit 1; }; }
3098fi
3099
3100rm -f conftest$ac_cv_exeext
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003101{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3102$as_echo "$ac_cv_exeext" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003103
3104rm -f conftest.$ac_ext
3105EXEEXT=$ac_cv_exeext
3106ac_exeext=$EXEEXT
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003107{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3108$as_echo_n "checking for suffix of object files... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003109if test "${ac_cv_objext+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003110 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003111else
3112 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003113/* confdefs.h. */
3114_ACEOF
3115cat confdefs.h >>conftest.$ac_ext
3116cat >>conftest.$ac_ext <<_ACEOF
3117/* end confdefs.h. */
3118
3119int
3120main ()
3121{
3122
3123 ;
3124 return 0;
3125}
3126_ACEOF
3127rm -f conftest.o conftest.obj
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003128if { (ac_try="$ac_compile"
3129case "(($ac_try" in
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3132esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003133eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3134$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003135 (eval "$ac_compile") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003136 ac_status=$?
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003138 (exit $ac_status); }; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003139 for ac_file in conftest.o conftest.obj conftest.*; do
3140 test -f "$ac_file" || continue;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003141 case $ac_file in
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003143 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3144 break;;
3145 esac
3146done
3147else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003148 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003149sed 's/^/| /' conftest.$ac_ext >&5
3150
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003151{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003152See \`config.log' for more details." >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003153$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003154See \`config.log' for more details." >&2;}
3155 { (exit 1); exit 1; }; }
3156fi
3157
3158rm -f conftest.$ac_cv_objext conftest.$ac_ext
3159fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003160{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3161$as_echo "$ac_cv_objext" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003162OBJEXT=$ac_cv_objext
3163ac_objext=$OBJEXT
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003164{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3165$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003166if test "${ac_cv_c_compiler_gnu+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003167 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003168else
3169 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003170/* confdefs.h. */
3171_ACEOF
3172cat confdefs.h >>conftest.$ac_ext
3173cat >>conftest.$ac_ext <<_ACEOF
3174/* end confdefs.h. */
3175
3176int
3177main ()
3178{
3179#ifndef __GNUC__
3180 choke me
3181#endif
3182
3183 ;
3184 return 0;
3185}
3186_ACEOF
3187rm -f conftest.$ac_objext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003188if { (ac_try="$ac_compile"
3189case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3192esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003193eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3194$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003195 (eval "$ac_compile") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003196 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003197 grep -v '^ *+' conftest.er1 >conftest.err
3198 rm -f conftest.er1
3199 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05003201 (exit $ac_status); } && {
3202 test -z "$ac_c_werror_flag" ||
3203 test ! -s conftest.err
3204 } && test -s conftest.$ac_objext; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003205 ac_compiler_gnu=yes
3206else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003207 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003208sed 's/^/| /' conftest.$ac_ext >&5
3209
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003210 ac_compiler_gnu=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003211fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003212
3213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003214ac_cv_c_compiler_gnu=$ac_compiler_gnu
3215
3216fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003217{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3218$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3219if test $ac_compiler_gnu = yes; then
3220 GCC=yes
3221else
3222 GCC=
3223fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003224ac_test_CFLAGS=${CFLAGS+set}
3225ac_save_CFLAGS=$CFLAGS
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003226{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3227$as_echo_n "checking whether $CC accepts -g... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003228if test "${ac_cv_prog_cc_g+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003229 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003230else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003231 ac_save_c_werror_flag=$ac_c_werror_flag
3232 ac_c_werror_flag=yes
3233 ac_cv_prog_cc_g=no
3234 CFLAGS="-g"
3235 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003236/* confdefs.h. */
3237_ACEOF
3238cat confdefs.h >>conftest.$ac_ext
3239cat >>conftest.$ac_ext <<_ACEOF
3240/* end confdefs.h. */
3241
3242int
3243main ()
3244{
3245
3246 ;
3247 return 0;
3248}
3249_ACEOF
3250rm -f conftest.$ac_objext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003251if { (ac_try="$ac_compile"
3252case "(($ac_try" in
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;;
3255esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003256eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3257$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003258 (eval "$ac_compile") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003259 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003260 grep -v '^ *+' conftest.er1 >conftest.err
3261 rm -f conftest.er1
3262 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05003264 (exit $ac_status); } && {
3265 test -z "$ac_c_werror_flag" ||
3266 test ! -s conftest.err
3267 } && test -s conftest.$ac_objext; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003268 ac_cv_prog_cc_g=yes
3269else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003270 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003271sed 's/^/| /' conftest.$ac_ext >&5
3272
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003273 CFLAGS=""
3274 cat >conftest.$ac_ext <<_ACEOF
3275/* confdefs.h. */
3276_ACEOF
3277cat confdefs.h >>conftest.$ac_ext
3278cat >>conftest.$ac_ext <<_ACEOF
3279/* end confdefs.h. */
3280
3281int
3282main ()
3283{
3284
3285 ;
3286 return 0;
3287}
3288_ACEOF
3289rm -f conftest.$ac_objext
3290if { (ac_try="$ac_compile"
3291case "(($ac_try" in
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3294esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003295eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3296$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003297 (eval "$ac_compile") 2>conftest.er1
3298 ac_status=$?
3299 grep -v '^ *+' conftest.er1 >conftest.err
3300 rm -f conftest.er1
3301 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05003303 (exit $ac_status); } && {
3304 test -z "$ac_c_werror_flag" ||
3305 test ! -s conftest.err
3306 } && test -s conftest.$ac_objext; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003307 :
3308else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003309 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003310sed 's/^/| /' conftest.$ac_ext >&5
3311
3312 ac_c_werror_flag=$ac_save_c_werror_flag
3313 CFLAGS="-g"
3314 cat >conftest.$ac_ext <<_ACEOF
3315/* confdefs.h. */
3316_ACEOF
3317cat confdefs.h >>conftest.$ac_ext
3318cat >>conftest.$ac_ext <<_ACEOF
3319/* end confdefs.h. */
3320
3321int
3322main ()
3323{
3324
3325 ;
3326 return 0;
3327}
3328_ACEOF
3329rm -f conftest.$ac_objext
3330if { (ac_try="$ac_compile"
3331case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3334esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003335eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3336$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003337 (eval "$ac_compile") 2>conftest.er1
3338 ac_status=$?
3339 grep -v '^ *+' conftest.er1 >conftest.err
3340 rm -f conftest.er1
3341 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05003343 (exit $ac_status); } && {
3344 test -z "$ac_c_werror_flag" ||
3345 test ! -s conftest.err
3346 } && test -s conftest.$ac_objext; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003347 ac_cv_prog_cc_g=yes
3348else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003349 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003350sed 's/^/| /' conftest.$ac_ext >&5
3351
3352
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003353fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003354
3355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003356fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003357
3358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3359fi
3360
3361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3362 ac_c_werror_flag=$ac_save_c_werror_flag
3363fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003364{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3365$as_echo "$ac_cv_prog_cc_g" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003366if test "$ac_test_CFLAGS" = set; then
3367 CFLAGS=$ac_save_CFLAGS
3368elif test $ac_cv_prog_cc_g = yes; then
3369 if test "$GCC" = yes; then
3370 CFLAGS="-g -O2"
3371 else
3372 CFLAGS="-g"
3373 fi
3374else
3375 if test "$GCC" = yes; then
3376 CFLAGS="-O2"
3377 else
3378 CFLAGS=
3379 fi
3380fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003381{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3382$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003383if test "${ac_cv_prog_cc_c89+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003384 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003385else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003386 ac_cv_prog_cc_c89=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003387ac_save_CC=$CC
3388cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003389/* confdefs.h. */
3390_ACEOF
3391cat confdefs.h >>conftest.$ac_ext
3392cat >>conftest.$ac_ext <<_ACEOF
3393/* end confdefs.h. */
3394#include <stdarg.h>
3395#include <stdio.h>
3396#include <sys/types.h>
3397#include <sys/stat.h>
3398/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3399struct buf { int x; };
3400FILE * (*rcsopen) (struct buf *, struct stat *, int);
3401static char *e (p, i)
3402 char **p;
3403 int i;
3404{
3405 return p[i];
3406}
3407static char *f (char * (*g) (char **, int), char **p, ...)
3408{
3409 char *s;
3410 va_list v;
3411 va_start (v,p);
3412 s = g (p, va_arg (v,int));
3413 va_end (v);
3414 return s;
3415}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003416
3417/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3418 function prototypes and stuff, but not '\xHH' hex character constants.
3419 These don't provoke an error unfortunately, instead are silently treated
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003420 as 'x'. The following induces an error, until -std is added to get
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003421 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3422 array size at least. It's necessary to write '\x00'==0 to get something
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003423 that's true only with -std. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003424int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3425
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003426/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3427 inside strings and character constants. */
3428#define FOO(x) 'x'
3429int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3430
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003431int test (int i, double x);
3432struct s1 {int (*f) (int a);};
3433struct s2 {int (*f) (double a);};
3434int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3435int argc;
3436char **argv;
3437int
3438main ()
3439{
3440return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3441 ;
3442 return 0;
3443}
3444_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003445for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3446 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003447do
3448 CC="$ac_save_CC $ac_arg"
3449 rm -f conftest.$ac_objext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003450if { (ac_try="$ac_compile"
3451case "(($ac_try" in
3452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453 *) ac_try_echo=$ac_try;;
3454esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003455eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3456$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003457 (eval "$ac_compile") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003458 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003459 grep -v '^ *+' conftest.er1 >conftest.err
3460 rm -f conftest.er1
3461 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05003463 (exit $ac_status); } && {
3464 test -z "$ac_c_werror_flag" ||
3465 test ! -s conftest.err
3466 } && test -s conftest.$ac_objext; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003467 ac_cv_prog_cc_c89=$ac_arg
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003468else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003469 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003470sed 's/^/| /' conftest.$ac_ext >&5
3471
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003472
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003473fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003474
3475rm -f core conftest.err conftest.$ac_objext
3476 test "x$ac_cv_prog_cc_c89" != "xno" && break
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003477done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003478rm -f conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003479CC=$ac_save_CC
3480
3481fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003482# AC_CACHE_VAL
3483case "x$ac_cv_prog_cc_c89" in
3484 x)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003485 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3486$as_echo "none needed" >&6; } ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003487 xno)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003488 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3489$as_echo "unsupported" >&6; } ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003490 *)
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003491 CC="$CC $ac_cv_prog_cc_c89"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003492 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3493$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003494esac
3495
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003496
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003497ac_ext=c
3498ac_cpp='$CPP $CPPFLAGS'
3499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501ac_compiler_gnu=$ac_cv_c_compiler_gnu
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003502DEPDIR="${am__leading_dot}deps"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003503
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003504ac_config_commands="$ac_config_commands depfiles"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003505
3506
3507am_make=${MAKE-make}
3508cat > confinc << 'END'
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003509am__doit:
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003510 @echo done
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003511.PHONY: am__doit
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003512END
3513# If we don't find an include directive, just comment out the code.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003514{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3515$as_echo_n "checking for style of include used by $am_make... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003516am__include="#"
3517am__quote=
3518_am_result=none
3519# First try GNU make style include.
3520echo "include confinc" > confmf
3521# We grep out `Entering directory' and `Leaving directory'
3522# messages which can occur if `w' ends up in MAKEFLAGS.
3523# In particular we don't look at `^make:' because GNU make might
3524# be invoked under some other name (usually "gmake"), in which
3525# case it prints its new name instead of `make'.
3526if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3527 am__include=include
3528 am__quote=
3529 _am_result=GNU
3530fi
3531# Now try BSD make style include.
3532if test "$am__include" = "#"; then
3533 echo '.include "confinc"' > confmf
3534 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3535 am__include=.include
3536 am__quote="\""
3537 _am_result=BSD
3538 fi
3539fi
3540
3541
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003542{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3543$as_echo "$_am_result" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003544rm -f confinc confmf
3545
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003546# Check whether --enable-dependency-tracking was given.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003547if test "${enable_dependency_tracking+set}" = set; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003548 enableval=$enable_dependency_tracking;
3549fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003550
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003551if test "x$enable_dependency_tracking" != xno; then
3552 am_depcomp="$ac_aux_dir/depcomp"
3553 AMDEPBACKSLASH='\'
3554fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003555 if test "x$enable_dependency_tracking" != xno; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003556 AMDEP_TRUE=
3557 AMDEP_FALSE='#'
3558else
3559 AMDEP_TRUE='#'
3560 AMDEP_FALSE=
3561fi
3562
3563
3564
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003565depcc="$CC" am_compiler_list=
3566
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003567{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3568$as_echo_n "checking dependency style of $depcc... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003569if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003570 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003571else
3572 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3573 # We make a subdir and do the tests there. Otherwise we can end up
3574 # making bogus files that we don't know about and never remove. For
3575 # instance it was reported that on HP-UX the gcc test will end up
3576 # making a dummy file named `D' -- because `-MD' means `put the output
3577 # in D'.
3578 mkdir conftest.dir
3579 # Copy depcomp to subdir because otherwise we won't find it if we're
3580 # using a relative directory.
3581 cp "$am_depcomp" conftest.dir
3582 cd conftest.dir
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003583 # We will build objects and dependencies in a subdirectory because
3584 # it helps to detect inapplicable dependency modes. For instance
3585 # both Tru64's cc and ICC support -MD to output dependencies as a
3586 # side effect of compilation, but ICC will put the dependencies in
3587 # the current directory while Tru64 will put them in the object
3588 # directory.
3589 mkdir sub
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003590
3591 am_cv_CC_dependencies_compiler_type=none
3592 if test "$am_compiler_list" = ""; then
3593 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3594 fi
3595 for depmode in $am_compiler_list; do
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003596 # Setup a source with many dependencies, because some compilers
3597 # like to wrap large dependency lists on column 80 (with \), and
3598 # we should not choose a depcomp mode which is confused by this.
3599 #
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003600 # We need to recreate these files for each test, as the compiler may
3601 # overwrite some of them when testing with obscure command lines.
3602 # This happens at least with the AIX C compiler.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003603 : > sub/conftest.c
3604 for i in 1 2 3 4 5 6; do
3605 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3606 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3607 # Solaris 8's {/usr,}/bin/sh.
3608 touch sub/conftst$i.h
3609 done
3610 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003611
3612 case $depmode in
3613 nosideeffect)
3614 # after this tag, mechanisms are not by side-effect, so they'll
3615 # only be used when explicitly requested
3616 if test "x$enable_dependency_tracking" = xyes; then
3617 continue
3618 else
3619 break
3620 fi
3621 ;;
3622 none) break ;;
3623 esac
3624 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3625 # mode. It turns out that the SunPro C++ compiler does not properly
3626 # handle `-M -o', and we need to detect this.
3627 if depmode=$depmode \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003628 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3629 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3630 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3631 >/dev/null 2>conftest.err &&
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003632 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003633 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3634 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003635 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06003636 # icc doesn't choke on unknown options, it will just issue warnings
3637 # or remarks (even with -Werror). So we grep stderr for any message
3638 # that says an option was ignored or not supported.
3639 # When given -MP, icc 7.0 and 7.1 complain thusly:
3640 # icc: Command line warning: ignoring option '-M'; no argument required
3641 # The diagnosis changed in icc 8.0:
3642 # icc: Command line remark: option '-MP' not supported
3643 if (grep 'ignoring option' conftest.err ||
3644 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3645 am_cv_CC_dependencies_compiler_type=$depmode
3646 break
3647 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003648 fi
3649 done
3650
3651 cd ..
3652 rm -rf conftest.dir
3653else
3654 am_cv_CC_dependencies_compiler_type=none
3655fi
3656
3657fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003658{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3659$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003660CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3661
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003662 if
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06003663 test "x$enable_dependency_tracking" != xno \
3664 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3665 am__fastdepCC_TRUE=
3666 am__fastdepCC_FALSE='#'
3667else
3668 am__fastdepCC_TRUE='#'
3669 am__fastdepCC_FALSE=
3670fi
3671
3672
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003673# Make sure we can run config.sub.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003674$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003675 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3676$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003677 { (exit 1); exit 1; }; }
3678
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003679{ $as_echo "$as_me:$LINENO: checking build system type" >&5
3680$as_echo_n "checking build system type... " >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003681if test "${ac_cv_build+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003682 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003683else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003684 ac_build_alias=$build_alias
3685test "x$ac_build_alias" = x &&
3686 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3687test "x$ac_build_alias" = x &&
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003688 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3689$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003690 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003691ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003692 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3693$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003694 { (exit 1); exit 1; }; }
3695
3696fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003697{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3698$as_echo "$ac_cv_build" >&6; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003699case $ac_cv_build in
3700*-*-*) ;;
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003701*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3702$as_echo "$as_me: error: invalid value of canonical build" >&2;}
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003703 { (exit 1); exit 1; }; };;
3704esac
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003705build=$ac_cv_build
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003706ac_save_IFS=$IFS; IFS='-'
3707set x $ac_cv_build
3708shift
3709build_cpu=$1
3710build_vendor=$2
3711shift; shift
3712# Remember, the first character of IFS is used to create $*,
3713# except with old shells:
3714build_os=$*
3715IFS=$ac_save_IFS
3716case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003717
3718
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003719{ $as_echo "$as_me:$LINENO: checking host system type" >&5
3720$as_echo_n "checking host system type... " >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003721if test "${ac_cv_host+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003722 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003723else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003724 if test "x$host_alias" = x; then
3725 ac_cv_host=$ac_cv_build
3726else
3727 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003728 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3729$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003730 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003731fi
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003732
3733fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003734{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3735$as_echo "$ac_cv_host" >&6; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003736case $ac_cv_host in
3737*-*-*) ;;
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003738*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3739$as_echo "$as_me: error: invalid value of canonical host" >&2;}
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003740 { (exit 1); exit 1; }; };;
3741esac
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003742host=$ac_cv_host
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003743ac_save_IFS=$IFS; IFS='-'
3744set x $ac_cv_host
3745shift
3746host_cpu=$1
3747host_vendor=$2
3748shift; shift
3749# Remember, the first character of IFS is used to create $*,
3750# except with old shells:
3751host_os=$*
3752IFS=$ac_save_IFS
3753case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003754
3755
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003756{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3757$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3758if test "${ac_cv_path_SED+set}" = set; then
3759 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003760else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003761 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3762 for ac_i in 1 2 3 4 5 6 7; do
3763 ac_script="$ac_script$as_nl$ac_script"
3764 done
3765 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3766 $as_unset ac_script || ac_script=
3767 if test -z "$SED"; then
3768 ac_path_SED_found=false
3769 # Loop through the user's path and test for each of PROGNAME-LIST
3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771for as_dir in $PATH
3772do
3773 IFS=$as_save_IFS
3774 test -z "$as_dir" && as_dir=.
3775 for ac_prog in sed gsed; do
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3778 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3779# Check for GNU ac_path_SED and select it if it is found.
3780 # Check for GNU $ac_path_SED
3781case `"$ac_path_SED" --version 2>&1` in
3782*GNU*)
3783 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3784*)
3785 ac_count=0
3786 $as_echo_n 0123456789 >"conftest.in"
3787 while :
3788 do
3789 cat "conftest.in" "conftest.in" >"conftest.tmp"
3790 mv "conftest.tmp" "conftest.in"
3791 cp "conftest.in" "conftest.nl"
3792 $as_echo '' >> "conftest.nl"
3793 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3794 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3795 ac_count=`expr $ac_count + 1`
3796 if test $ac_count -gt ${ac_path_SED_max-0}; then
3797 # Best one so far, save it but keep looking for a better one
3798 ac_cv_path_SED="$ac_path_SED"
3799 ac_path_SED_max=$ac_count
3800 fi
3801 # 10*(2^10) chars as input seems more than enough
3802 test $ac_count -gt 10 && break
3803 done
3804 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3805esac
3806
3807 $ac_path_SED_found && break 3
3808 done
3809 done
3810done
3811IFS=$as_save_IFS
3812 if test -z "$ac_cv_path_SED"; then
3813 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3814$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3815 { (exit 1); exit 1; }; }
3816 fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003817else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003818 ac_cv_path_SED=$SED
3819fi
3820
3821fi
3822{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3823$as_echo "$ac_cv_path_SED" >&6; }
3824 SED="$ac_cv_path_SED"
3825 rm -f conftest.sed
3826
3827test -z "$SED" && SED=sed
3828Xsed="$SED -e 1s/^X//"
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3841$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3842if test "${ac_cv_path_GREP+set}" = set; then
3843 $as_echo_n "(cached) " >&6
3844else
3845 if test -z "$GREP"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003846 ac_path_GREP_found=false
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003847 # Loop through the user's path and test for each of PROGNAME-LIST
3848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003849for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3850do
3851 IFS=$as_save_IFS
3852 test -z "$as_dir" && as_dir=.
3853 for ac_prog in grep ggrep; do
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003854 for ac_exec_ext in '' $ac_executable_extensions; do
3855 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3856 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3857# Check for GNU ac_path_GREP and select it if it is found.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003858 # Check for GNU $ac_path_GREP
3859case `"$ac_path_GREP" --version 2>&1` in
3860*GNU*)
3861 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3862*)
3863 ac_count=0
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003864 $as_echo_n 0123456789 >"conftest.in"
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003865 while :
3866 do
3867 cat "conftest.in" "conftest.in" >"conftest.tmp"
3868 mv "conftest.tmp" "conftest.in"
3869 cp "conftest.in" "conftest.nl"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003870 $as_echo 'GREP' >> "conftest.nl"
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003871 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3872 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3873 ac_count=`expr $ac_count + 1`
3874 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3875 # Best one so far, save it but keep looking for a better one
3876 ac_cv_path_GREP="$ac_path_GREP"
3877 ac_path_GREP_max=$ac_count
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06003878 fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003879 # 10*(2^10) chars as input seems more than enough
3880 test $ac_count -gt 10 && break
3881 done
3882 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3883esac
3884
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003885 $ac_path_GREP_found && break 3
3886 done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003887 done
3888done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003889IFS=$as_save_IFS
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003890 if test -z "$ac_cv_path_GREP"; then
3891 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3892$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003893 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003894 fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003895else
3896 ac_cv_path_GREP=$GREP
3897fi
3898
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003899fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003900{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3901$as_echo "$ac_cv_path_GREP" >&6; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003902 GREP="$ac_cv_path_GREP"
3903
3904
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003905{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3906$as_echo_n "checking for egrep... " >&6; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003907if test "${ac_cv_path_EGREP+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003908 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003909else
3910 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3911 then ac_cv_path_EGREP="$GREP -E"
3912 else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003913 if test -z "$EGREP"; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003914 ac_path_EGREP_found=false
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003915 # Loop through the user's path and test for each of PROGNAME-LIST
3916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003917for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3918do
3919 IFS=$as_save_IFS
3920 test -z "$as_dir" && as_dir=.
3921 for ac_prog in egrep; do
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3924 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3925# Check for GNU ac_path_EGREP and select it if it is found.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003926 # Check for GNU $ac_path_EGREP
3927case `"$ac_path_EGREP" --version 2>&1` in
3928*GNU*)
3929 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3930*)
3931 ac_count=0
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003932 $as_echo_n 0123456789 >"conftest.in"
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003933 while :
3934 do
3935 cat "conftest.in" "conftest.in" >"conftest.tmp"
3936 mv "conftest.tmp" "conftest.in"
3937 cp "conftest.in" "conftest.nl"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003938 $as_echo 'EGREP' >> "conftest.nl"
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003939 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3940 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3941 ac_count=`expr $ac_count + 1`
3942 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3943 # Best one so far, save it but keep looking for a better one
3944 ac_cv_path_EGREP="$ac_path_EGREP"
3945 ac_path_EGREP_max=$ac_count
3946 fi
3947 # 10*(2^10) chars as input seems more than enough
3948 test $ac_count -gt 10 && break
3949 done
3950 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3951esac
3952
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003953 $ac_path_EGREP_found && break 3
3954 done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003955 done
3956done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003957IFS=$as_save_IFS
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003958 if test -z "$ac_cv_path_EGREP"; then
3959 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3960$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003961 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003962 fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06003963else
3964 ac_cv_path_EGREP=$EGREP
3965fi
3966
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05003967 fi
3968fi
3969{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3970$as_echo "$ac_cv_path_EGREP" >&6; }
3971 EGREP="$ac_cv_path_EGREP"
3972
3973
3974{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
3975$as_echo_n "checking for fgrep... " >&6; }
3976if test "${ac_cv_path_FGREP+set}" = set; then
3977 $as_echo_n "(cached) " >&6
3978else
3979 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3980 then ac_cv_path_FGREP="$GREP -F"
3981 else
3982 if test -z "$FGREP"; then
3983 ac_path_FGREP_found=false
3984 # Loop through the user's path and test for each of PROGNAME-LIST
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3987do
3988 IFS=$as_save_IFS
3989 test -z "$as_dir" && as_dir=.
3990 for ac_prog in fgrep; do
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3993 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3994# Check for GNU ac_path_FGREP and select it if it is found.
3995 # Check for GNU $ac_path_FGREP
3996case `"$ac_path_FGREP" --version 2>&1` in
3997*GNU*)
3998 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3999*)
4000 ac_count=0
4001 $as_echo_n 0123456789 >"conftest.in"
4002 while :
4003 do
4004 cat "conftest.in" "conftest.in" >"conftest.tmp"
4005 mv "conftest.tmp" "conftest.in"
4006 cp "conftest.in" "conftest.nl"
4007 $as_echo 'FGREP' >> "conftest.nl"
4008 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4009 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4010 ac_count=`expr $ac_count + 1`
4011 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4012 # Best one so far, save it but keep looking for a better one
4013 ac_cv_path_FGREP="$ac_path_FGREP"
4014 ac_path_FGREP_max=$ac_count
4015 fi
4016 # 10*(2^10) chars as input seems more than enough
4017 test $ac_count -gt 10 && break
4018 done
4019 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4020esac
4021
4022 $ac_path_FGREP_found && break 3
4023 done
4024 done
4025done
4026IFS=$as_save_IFS
4027 if test -z "$ac_cv_path_FGREP"; then
4028 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4029$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4030 { (exit 1); exit 1; }; }
4031 fi
4032else
4033 ac_cv_path_FGREP=$FGREP
4034fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004035
4036 fi
4037fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004038{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4039$as_echo "$ac_cv_path_FGREP" >&6; }
4040 FGREP="$ac_cv_path_FGREP"
4041
4042
4043test -z "$GREP" && GREP=grep
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004060
4061
4062
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004063# Check whether --with-gnu-ld was given.
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004064if test "${with_gnu_ld+set}" = set; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004065 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004066else
4067 with_gnu_ld=no
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004068fi
4069
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004070ac_prog=ld
4071if test "$GCC" = yes; then
4072 # Check if gcc -print-prog-name=ld gives a path.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004073 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4074$as_echo_n "checking for ld used by $CC... " >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004075 case $host in
4076 *-*-mingw*)
4077 # gcc leaves a trailing carriage return which upsets mingw
4078 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4079 *)
4080 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4081 esac
4082 case $ac_prog in
4083 # Accept absolute paths.
4084 [\\/]* | ?:[\\/]*)
4085 re_direlt='/[^/][^/]*/\.\./'
4086 # Canonicalize the pathname of ld
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004087 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4088 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4089 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004090 done
4091 test -z "$LD" && LD="$ac_prog"
4092 ;;
4093 "")
4094 # If it fails, then pretend we aren't using GCC.
4095 ac_prog=ld
4096 ;;
4097 *)
4098 # If it is relative, then search for the first ld in PATH.
4099 with_gnu_ld=unknown
4100 ;;
4101 esac
4102elif test "$with_gnu_ld" = yes; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004103 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4104$as_echo_n "checking for GNU ld... " >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004105else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004106 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4107$as_echo_n "checking for non-GNU ld... " >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004108fi
4109if test "${lt_cv_path_LD+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004110 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004111else
4112 if test -z "$LD"; then
4113 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4114 for ac_dir in $PATH; do
4115 IFS="$lt_save_ifs"
4116 test -z "$ac_dir" && ac_dir=.
4117 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4118 lt_cv_path_LD="$ac_dir/$ac_prog"
4119 # Check to see if the program is GNU ld. I'd rather use --version,
4120 # but apparently some variants of GNU ld only accept -v.
4121 # Break only if it was the GNU/non-GNU ld that we prefer.
4122 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4123 *GNU* | *'with BFD'*)
4124 test "$with_gnu_ld" != no && break
4125 ;;
4126 *)
4127 test "$with_gnu_ld" != yes && break
4128 ;;
4129 esac
4130 fi
4131 done
4132 IFS="$lt_save_ifs"
4133else
4134 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4135fi
4136fi
4137
4138LD="$lt_cv_path_LD"
4139if test -n "$LD"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004140 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4141$as_echo "$LD" >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004142else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004143 { $as_echo "$as_me:$LINENO: result: no" >&5
4144$as_echo "no" >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004145fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004146test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4147$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004148 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004149{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4150$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004151if test "${lt_cv_prog_gnu_ld+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004152 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004153else
4154 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4155case `$LD -v 2>&1 </dev/null` in
4156*GNU* | *'with BFD'*)
4157 lt_cv_prog_gnu_ld=yes
4158 ;;
4159*)
4160 lt_cv_prog_gnu_ld=no
4161 ;;
4162esac
4163fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004164{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4165$as_echo "$lt_cv_prog_gnu_ld" >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004166with_gnu_ld=$lt_cv_prog_gnu_ld
4167
4168
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004169
4170
4171
4172
4173
4174
4175
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004176ac_ext=c
4177ac_cpp='$CPP $CPPFLAGS'
4178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4180ac_compiler_gnu=$ac_cv_c_compiler_gnu
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004181{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4182$as_echo_n "checking how to run the C preprocessor... " >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004183# On Suns, sometimes $CPP names a directory.
4184if test -n "$CPP" && test -d "$CPP"; then
4185 CPP=
4186fi
4187if test -z "$CPP"; then
4188 if test "${ac_cv_prog_CPP+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004189 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004190else
4191 # Double quotes because CPP needs to be expanded
4192 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4193 do
4194 ac_preproc_ok=false
4195for ac_c_preproc_warn_flag in '' yes
4196do
4197 # Use a header file that comes with gcc, so configuring glibc
4198 # with a fresh cross-compiler works.
4199 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4200 # <limits.h> exists even on freestanding compilers.
4201 # On the NeXT, cc -E runs the code through the compiler's parser,
4202 # not just through cpp. "Syntax error" is here to catch this case.
4203 cat >conftest.$ac_ext <<_ACEOF
4204/* confdefs.h. */
4205_ACEOF
4206cat confdefs.h >>conftest.$ac_ext
4207cat >>conftest.$ac_ext <<_ACEOF
4208/* end confdefs.h. */
4209#ifdef __STDC__
4210# include <limits.h>
4211#else
4212# include <assert.h>
4213#endif
4214 Syntax error
4215_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004216if { (ac_try="$ac_cpp conftest.$ac_ext"
4217case "(($ac_try" in
4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4220esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004221eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4222$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004224 ac_status=$?
4225 grep -v '^ *+' conftest.er1 >conftest.err
4226 rm -f conftest.er1
4227 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05004229 (exit $ac_status); } >/dev/null && {
4230 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4231 test ! -s conftest.err
4232 }; then
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004233 :
4234else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004235 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004236sed 's/^/| /' conftest.$ac_ext >&5
4237
4238 # Broken: fails on valid input.
4239continue
4240fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004241
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004242rm -f conftest.err conftest.$ac_ext
4243
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004244 # OK, works on sane cases. Now check whether nonexistent headers
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004245 # can be detected and how.
4246 cat >conftest.$ac_ext <<_ACEOF
4247/* confdefs.h. */
4248_ACEOF
4249cat confdefs.h >>conftest.$ac_ext
4250cat >>conftest.$ac_ext <<_ACEOF
4251/* end confdefs.h. */
4252#include <ac_nonexistent.h>
4253_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004254if { (ac_try="$ac_cpp conftest.$ac_ext"
4255case "(($ac_try" in
4256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257 *) ac_try_echo=$ac_try;;
4258esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004259eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4260$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004261 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004262 ac_status=$?
4263 grep -v '^ *+' conftest.er1 >conftest.err
4264 rm -f conftest.er1
4265 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05004267 (exit $ac_status); } >/dev/null && {
4268 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4269 test ! -s conftest.err
4270 }; then
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004271 # Broken: success on invalid input.
4272continue
4273else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004274 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004275sed 's/^/| /' conftest.$ac_ext >&5
4276
4277 # Passes both tests.
4278ac_preproc_ok=:
4279break
4280fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004281
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004282rm -f conftest.err conftest.$ac_ext
4283
4284done
4285# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4286rm -f conftest.err conftest.$ac_ext
4287if $ac_preproc_ok; then
4288 break
4289fi
4290
4291 done
4292 ac_cv_prog_CPP=$CPP
4293
4294fi
4295 CPP=$ac_cv_prog_CPP
4296else
4297 ac_cv_prog_CPP=$CPP
4298fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004299{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4300$as_echo "$CPP" >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004301ac_preproc_ok=false
4302for ac_c_preproc_warn_flag in '' yes
4303do
4304 # Use a header file that comes with gcc, so configuring glibc
4305 # with a fresh cross-compiler works.
4306 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4307 # <limits.h> exists even on freestanding compilers.
4308 # On the NeXT, cc -E runs the code through the compiler's parser,
4309 # not just through cpp. "Syntax error" is here to catch this case.
4310 cat >conftest.$ac_ext <<_ACEOF
4311/* confdefs.h. */
4312_ACEOF
4313cat confdefs.h >>conftest.$ac_ext
4314cat >>conftest.$ac_ext <<_ACEOF
4315/* end confdefs.h. */
4316#ifdef __STDC__
4317# include <limits.h>
4318#else
4319# include <assert.h>
4320#endif
4321 Syntax error
4322_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004323if { (ac_try="$ac_cpp conftest.$ac_ext"
4324case "(($ac_try" in
4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4327esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004328eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4329$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004331 ac_status=$?
4332 grep -v '^ *+' conftest.er1 >conftest.err
4333 rm -f conftest.er1
4334 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05004336 (exit $ac_status); } >/dev/null && {
4337 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4338 test ! -s conftest.err
4339 }; then
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004340 :
4341else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004342 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004343sed 's/^/| /' conftest.$ac_ext >&5
4344
4345 # Broken: fails on valid input.
4346continue
4347fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004348
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004349rm -f conftest.err conftest.$ac_ext
4350
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004351 # OK, works on sane cases. Now check whether nonexistent headers
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004352 # can be detected and how.
4353 cat >conftest.$ac_ext <<_ACEOF
4354/* confdefs.h. */
4355_ACEOF
4356cat confdefs.h >>conftest.$ac_ext
4357cat >>conftest.$ac_ext <<_ACEOF
4358/* end confdefs.h. */
4359#include <ac_nonexistent.h>
4360_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004361if { (ac_try="$ac_cpp conftest.$ac_ext"
4362case "(($ac_try" in
4363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364 *) ac_try_echo=$ac_try;;
4365esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004366eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4367$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004369 ac_status=$?
4370 grep -v '^ *+' conftest.er1 >conftest.err
4371 rm -f conftest.er1
4372 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05004374 (exit $ac_status); } >/dev/null && {
4375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4376 test ! -s conftest.err
4377 }; then
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004378 # Broken: success on invalid input.
4379continue
4380else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004381 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004382sed 's/^/| /' conftest.$ac_ext >&5
4383
4384 # Passes both tests.
4385ac_preproc_ok=:
4386break
4387fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004388
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004389rm -f conftest.err conftest.$ac_ext
4390
4391done
4392# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4393rm -f conftest.err conftest.$ac_ext
4394if $ac_preproc_ok; then
4395 :
4396else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004397 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004398See \`config.log' for more details." >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004399$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004400See \`config.log' for more details." >&2;}
4401 { (exit 1); exit 1; }; }
4402fi
4403
4404ac_ext=c
4405ac_cpp='$CPP $CPPFLAGS'
4406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4408ac_compiler_gnu=$ac_cv_c_compiler_gnu
4409
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004410if test -n "$ac_tool_prefix"; then
4411 # Extract the first word of "${ac_tool_prefix}sed", so it can be a program name with args.
4412set dummy ${ac_tool_prefix}sed; ac_word=$2
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004413{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4414$as_echo_n "checking for $ac_word... " >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004415if test "${ac_cv_prog_SED+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004416 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004417else
4418 if test -n "$SED"; then
4419 ac_cv_prog_SED="$SED" # Let the user override the test.
4420else
4421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422for as_dir in $PATH
4423do
4424 IFS=$as_save_IFS
4425 test -z "$as_dir" && as_dir=.
4426 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05004427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004428 ac_cv_prog_SED="${ac_tool_prefix}sed"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004429 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004430 break 2
4431 fi
4432done
4433done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004434IFS=$as_save_IFS
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004435
4436fi
4437fi
4438SED=$ac_cv_prog_SED
4439if test -n "$SED"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004440 { $as_echo "$as_me:$LINENO: result: $SED" >&5
4441$as_echo "$SED" >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004442else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004443 { $as_echo "$as_me:$LINENO: result: no" >&5
4444$as_echo "no" >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004445fi
4446
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004447
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004448fi
4449if test -z "$ac_cv_prog_SED"; then
4450 ac_ct_SED=$SED
4451 # Extract the first word of "sed", so it can be a program name with args.
4452set dummy sed; ac_word=$2
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004453{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4454$as_echo_n "checking for $ac_word... " >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004455if test "${ac_cv_prog_ac_ct_SED+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004456 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004457else
4458 if test -n "$ac_ct_SED"; then
4459 ac_cv_prog_ac_ct_SED="$ac_ct_SED" # Let the user override the test.
4460else
4461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462for as_dir in $PATH
4463do
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
4466 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05004467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004468 ac_cv_prog_ac_ct_SED="sed"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004469 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004470 break 2
4471 fi
4472done
4473done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004474IFS=$as_save_IFS
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004475
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004476fi
4477fi
4478ac_ct_SED=$ac_cv_prog_ac_ct_SED
4479if test -n "$ac_ct_SED"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004480 { $as_echo "$as_me:$LINENO: result: $ac_ct_SED" >&5
4481$as_echo "$ac_ct_SED" >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004482else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004483 { $as_echo "$as_me:$LINENO: result: no" >&5
4484$as_echo "no" >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004485fi
4486
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004487 if test "x$ac_ct_SED" = x; then
4488 SED=":"
4489 else
4490 case $cross_compiling:$ac_tool_warned in
4491yes:)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004492{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004493whose name does not start with the host triplet. If you think this
4494configuration is useful to you, please write to autoconf@gnu.org." >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004495$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004496whose name does not start with the host triplet. If you think this
4497configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4498ac_tool_warned=yes ;;
4499esac
4500 SED=$ac_ct_SED
4501 fi
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -06004502else
4503 SED="$ac_cv_prog_SED"
4504fi
4505
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004506enable_win32_dll=yes
4507
4508case $host in
4509*-*-cygwin* | *-*-mingw* | *-*-pw32*)
4510 if test -n "$ac_tool_prefix"; then
4511 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4512set dummy ${ac_tool_prefix}as; ac_word=$2
4513{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4514$as_echo_n "checking for $ac_word... " >&6; }
4515if test "${ac_cv_prog_AS+set}" = set; then
4516 $as_echo_n "(cached) " >&6
4517else
4518 if test -n "$AS"; then
4519 ac_cv_prog_AS="$AS" # Let the user override the test.
4520else
4521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522for as_dir in $PATH
4523do
4524 IFS=$as_save_IFS
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4528 ac_cv_prog_AS="${ac_tool_prefix}as"
4529 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4530 break 2
4531 fi
4532done
4533done
4534IFS=$as_save_IFS
4535
4536fi
4537fi
4538AS=$ac_cv_prog_AS
4539if test -n "$AS"; then
4540 { $as_echo "$as_me:$LINENO: result: $AS" >&5
4541$as_echo "$AS" >&6; }
4542else
4543 { $as_echo "$as_me:$LINENO: result: no" >&5
4544$as_echo "no" >&6; }
4545fi
4546
4547
4548fi
4549if test -z "$ac_cv_prog_AS"; then
4550 ac_ct_AS=$AS
4551 # Extract the first word of "as", so it can be a program name with args.
4552set dummy as; ac_word=$2
4553{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4554$as_echo_n "checking for $ac_word... " >&6; }
4555if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4556 $as_echo_n "(cached) " >&6
4557else
4558 if test -n "$ac_ct_AS"; then
4559 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4560else
4561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562for as_dir in $PATH
4563do
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4568 ac_cv_prog_ac_ct_AS="as"
4569 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 break 2
4571 fi
4572done
4573done
4574IFS=$as_save_IFS
4575
4576fi
4577fi
4578ac_ct_AS=$ac_cv_prog_ac_ct_AS
4579if test -n "$ac_ct_AS"; then
4580 { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4581$as_echo "$ac_ct_AS" >&6; }
4582else
4583 { $as_echo "$as_me:$LINENO: result: no" >&5
4584$as_echo "no" >&6; }
4585fi
4586
4587 if test "x$ac_ct_AS" = x; then
4588 AS="false"
4589 else
4590 case $cross_compiling:$ac_tool_warned in
4591yes:)
4592{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4593whose name does not start with the host triplet. If you think this
4594configuration is useful to you, please write to autoconf@gnu.org." >&5
4595$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4596whose name does not start with the host triplet. If you think this
4597configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4598ac_tool_warned=yes ;;
4599esac
4600 AS=$ac_ct_AS
4601 fi
4602else
4603 AS="$ac_cv_prog_AS"
4604fi
4605
4606 if test -n "$ac_tool_prefix"; then
4607 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4608set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4609{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4610$as_echo_n "checking for $ac_word... " >&6; }
4611if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4612 $as_echo_n "(cached) " >&6
4613else
4614 if test -n "$DLLTOOL"; then
4615 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4616else
4617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618for as_dir in $PATH
4619do
4620 IFS=$as_save_IFS
4621 test -z "$as_dir" && as_dir=.
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4624 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4625 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 break 2
4627 fi
4628done
4629done
4630IFS=$as_save_IFS
4631
4632fi
4633fi
4634DLLTOOL=$ac_cv_prog_DLLTOOL
4635if test -n "$DLLTOOL"; then
4636 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4637$as_echo "$DLLTOOL" >&6; }
4638else
4639 { $as_echo "$as_me:$LINENO: result: no" >&5
4640$as_echo "no" >&6; }
4641fi
4642
4643
4644fi
4645if test -z "$ac_cv_prog_DLLTOOL"; then
4646 ac_ct_DLLTOOL=$DLLTOOL
4647 # Extract the first word of "dlltool", so it can be a program name with args.
4648set dummy dlltool; ac_word=$2
4649{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4650$as_echo_n "checking for $ac_word... " >&6; }
4651if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4652 $as_echo_n "(cached) " >&6
4653else
4654 if test -n "$ac_ct_DLLTOOL"; then
4655 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4656else
4657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658for as_dir in $PATH
4659do
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4665 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 break 2
4667 fi
4668done
4669done
4670IFS=$as_save_IFS
4671
4672fi
4673fi
4674ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4675if test -n "$ac_ct_DLLTOOL"; then
4676 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4677$as_echo "$ac_ct_DLLTOOL" >&6; }
4678else
4679 { $as_echo "$as_me:$LINENO: result: no" >&5
4680$as_echo "no" >&6; }
4681fi
4682
4683 if test "x$ac_ct_DLLTOOL" = x; then
4684 DLLTOOL="false"
4685 else
4686 case $cross_compiling:$ac_tool_warned in
4687yes:)
4688{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4689whose name does not start with the host triplet. If you think this
4690configuration is useful to you, please write to autoconf@gnu.org." >&5
4691$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4692whose name does not start with the host triplet. If you think this
4693configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4694ac_tool_warned=yes ;;
4695esac
4696 DLLTOOL=$ac_ct_DLLTOOL
4697 fi
4698else
4699 DLLTOOL="$ac_cv_prog_DLLTOOL"
4700fi
4701
4702 if test -n "$ac_tool_prefix"; then
4703 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4704set dummy ${ac_tool_prefix}objdump; ac_word=$2
4705{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4706$as_echo_n "checking for $ac_word... " >&6; }
4707if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4708 $as_echo_n "(cached) " >&6
4709else
4710 if test -n "$OBJDUMP"; then
4711 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4712else
4713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714for as_dir in $PATH
4715do
4716 IFS=$as_save_IFS
4717 test -z "$as_dir" && as_dir=.
4718 for ac_exec_ext in '' $ac_executable_extensions; do
4719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4720 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4721 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722 break 2
4723 fi
4724done
4725done
4726IFS=$as_save_IFS
4727
4728fi
4729fi
4730OBJDUMP=$ac_cv_prog_OBJDUMP
4731if test -n "$OBJDUMP"; then
4732 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4733$as_echo "$OBJDUMP" >&6; }
4734else
4735 { $as_echo "$as_me:$LINENO: result: no" >&5
4736$as_echo "no" >&6; }
4737fi
4738
4739
4740fi
4741if test -z "$ac_cv_prog_OBJDUMP"; then
4742 ac_ct_OBJDUMP=$OBJDUMP
4743 # Extract the first word of "objdump", so it can be a program name with args.
4744set dummy objdump; ac_word=$2
4745{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4746$as_echo_n "checking for $ac_word... " >&6; }
4747if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4748 $as_echo_n "(cached) " >&6
4749else
4750 if test -n "$ac_ct_OBJDUMP"; then
4751 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4752else
4753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754for as_dir in $PATH
4755do
4756 IFS=$as_save_IFS
4757 test -z "$as_dir" && as_dir=.
4758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4760 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4761 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 break 2
4763 fi
4764done
4765done
4766IFS=$as_save_IFS
4767
4768fi
4769fi
4770ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4771if test -n "$ac_ct_OBJDUMP"; then
4772 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4773$as_echo "$ac_ct_OBJDUMP" >&6; }
4774else
4775 { $as_echo "$as_me:$LINENO: result: no" >&5
4776$as_echo "no" >&6; }
4777fi
4778
4779 if test "x$ac_ct_OBJDUMP" = x; then
4780 OBJDUMP="false"
4781 else
4782 case $cross_compiling:$ac_tool_warned in
4783yes:)
4784{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4785whose name does not start with the host triplet. If you think this
4786configuration is useful to you, please write to autoconf@gnu.org." >&5
4787$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4788whose name does not start with the host triplet. If you think this
4789configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4790ac_tool_warned=yes ;;
4791esac
4792 OBJDUMP=$ac_ct_OBJDUMP
4793 fi
4794else
4795 OBJDUMP="$ac_cv_prog_OBJDUMP"
4796fi
4797
4798 ;;
4799esac
4800
4801test -z "$AS" && AS=as
4802
4803
4804
4805
4806
4807test -z "$DLLTOOL" && DLLTOOL=dlltool
4808
4809
4810
4811
4812
4813test -z "$OBJDUMP" && OBJDUMP=objdump
4814
4815
4816
4817
4818
4819
4820
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004821# Find a good install program. We prefer a C program (faster),
4822# so one script is as good as another. But avoid the broken or
4823# incompatible versions:
4824# SysV /etc/install, /usr/sbin/install
4825# SunOS /usr/etc/install
4826# IRIX /sbin/install
4827# AIX /bin/install
4828# AmigaOS /C/install, which installs bootblocks on floppy discs
4829# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4830# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4831# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4832# OS/2's system install, which has a completely different semantic
4833# ./install, which can be erroneously created by make from ./install.sh.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004834# Reject install programs that cannot install multiple files.
4835{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4836$as_echo_n "checking for a BSD-compatible install... " >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004837if test -z "$INSTALL"; then
4838if test "${ac_cv_path_install+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004839 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004840else
4841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4842for as_dir in $PATH
4843do
4844 IFS=$as_save_IFS
4845 test -z "$as_dir" && as_dir=.
4846 # Account for people who put trailing slashes in PATH elements.
4847case $as_dir/ in
4848 ./ | .// | /cC/* | \
4849 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4850 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4851 /usr/ucb/* ) ;;
4852 *)
4853 # OSF1 and SCO ODT 3.0 have their own names for install.
4854 # Don't use installbsd from OSF since it installs stuff as root
4855 # by default.
4856 for ac_prog in ginstall scoinst install; do
4857 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05004858 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004859 if test $ac_prog = install &&
4860 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4861 # AIX install. It has an incompatible calling convention.
4862 :
4863 elif test $ac_prog = install &&
4864 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4865 # program-specific install script used by HP pwplus--don't use.
4866 :
4867 else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004868 rm -rf conftest.one conftest.two conftest.dir
4869 echo one > conftest.one
4870 echo two > conftest.two
4871 mkdir conftest.dir
4872 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4873 test -s conftest.one && test -s conftest.two &&
4874 test -s conftest.dir/conftest.one &&
4875 test -s conftest.dir/conftest.two
4876 then
4877 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4878 break 3
4879 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004880 fi
4881 fi
4882 done
4883 done
4884 ;;
4885esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004886
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004887done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004888IFS=$as_save_IFS
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004889
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004890rm -rf conftest.one conftest.two conftest.dir
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004891
4892fi
4893 if test "${ac_cv_path_install+set}" = set; then
4894 INSTALL=$ac_cv_path_install
4895 else
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004896 # As a last resort, use the slow shell script. Don't cache a
4897 # value for INSTALL within a source directory, because that will
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004898 # break other packages using the cache if that directory is
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004899 # removed, or if the value is a relative name.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004900 INSTALL=$ac_install_sh
4901 fi
4902fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004903{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4904$as_echo "$INSTALL" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004905
4906# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4907# It thinks the first close brace ends the variable substitution.
4908test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4909
4910test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4911
4912test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4913
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004914{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4915$as_echo_n "checking whether ln -s works... " >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004916LN_S=$as_ln_s
4917if test "$LN_S" = "ln -s"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004918 { $as_echo "$as_me:$LINENO: result: yes" >&5
4919$as_echo "yes" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004920else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004921 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4922$as_echo "no, using $LN_S" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004923fi
4924
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004925{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4926$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4927set x ${MAKE-make}
4928ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004929if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004930 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004931else
4932 cat >conftest.make <<\_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004933SHELL = /bin/sh
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004934all:
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004935 @echo '@@@%%%=$(MAKE)=@@@%%%'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004936_ACEOF
4937# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004938case `${MAKE-make} -f conftest.make 2>/dev/null` in
4939 *@@@%%%=?*=@@@%%%*)
4940 eval ac_cv_prog_make_${ac_make}_set=yes;;
4941 *)
4942 eval ac_cv_prog_make_${ac_make}_set=no;;
4943esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004944rm -f conftest.make
4945fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06004946if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004947 { $as_echo "$as_me:$LINENO: result: yes" >&5
4948$as_echo "yes" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004949 SET_MAKE=
4950else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004951 { $as_echo "$as_me:$LINENO: result: no" >&5
4952$as_echo "no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004953 SET_MAKE="MAKE=${MAKE-make}"
4954fi
4955
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004956case `pwd` in
4957 *\ * | *\ *)
4958 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4959$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004960esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004961
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004962
4963
4964macro_version='2.2.3a'
4965macro_revision='1.2971'
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979ltmain="$ac_aux_dir/ltmain.sh"
4980
4981{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4982$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004983if test "${lt_cv_path_NM+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05004984 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06004985else
4986 if test -n "$NM"; then
4987 # Let the user override the test.
4988 lt_cv_path_NM="$NM"
4989else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06004990 lt_nm_to_check="${ac_tool_prefix}nm"
4991 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4992 lt_nm_to_check="$lt_nm_to_check nm"
4993 fi
4994 for lt_tmp_nm in $lt_nm_to_check; do
4995 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4996 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4997 IFS="$lt_save_ifs"
4998 test -z "$ac_dir" && ac_dir=.
4999 tmp_nm="$ac_dir/$lt_tmp_nm"
5000 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5001 # Check to see if the nm accepts a BSD-compat flag.
5002 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5003 # nm: unknown option "B" ignored
5004 # Tru64's nm complains that /dev/null is an invalid object file
5005 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5006 */dev/null* | *'Invalid file or object type'*)
5007 lt_cv_path_NM="$tmp_nm -B"
5008 break
5009 ;;
5010 *)
5011 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5012 */dev/null*)
5013 lt_cv_path_NM="$tmp_nm -p"
5014 break
5015 ;;
5016 *)
5017 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5018 continue # so that we can try to find one that supports BSD flags
5019 ;;
5020 esac
5021 ;;
5022 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005023 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005024 done
5025 IFS="$lt_save_ifs"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005026 done
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005027 : ${lt_cv_path_NM=no}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005028fi
5029fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005030{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5031$as_echo "$lt_cv_path_NM" >&6; }
5032if test "$lt_cv_path_NM" != "no"; then
5033 NM="$lt_cv_path_NM"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005034else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005035 # Didn't find any BSD compatible name lister, look for dumpbin.
5036 if test -n "$ac_tool_prefix"; then
5037 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005038 do
5039 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5040set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005041{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5042$as_echo_n "checking for $ac_word... " >&6; }
5043if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5044 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005045else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005046 if test -n "$DUMPBIN"; then
5047 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005048else
5049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050for as_dir in $PATH
5051do
5052 IFS=$as_save_IFS
5053 test -z "$as_dir" && as_dir=.
5054 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05005055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005056 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5057 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005058 break 2
5059 fi
5060done
5061done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005062IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005063
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005064fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005065fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005066DUMPBIN=$ac_cv_prog_DUMPBIN
5067if test -n "$DUMPBIN"; then
5068 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5069$as_echo "$DUMPBIN" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005070else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005071 { $as_echo "$as_me:$LINENO: result: no" >&5
5072$as_echo "no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005073fi
5074
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005075
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005076 test -n "$DUMPBIN" && break
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005077 done
5078fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005079if test -z "$DUMPBIN"; then
5080 ac_ct_DUMPBIN=$DUMPBIN
5081 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005082do
5083 # Extract the first word of "$ac_prog", so it can be a program name with args.
5084set dummy $ac_prog; ac_word=$2
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005085{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5086$as_echo_n "checking for $ac_word... " >&6; }
5087if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5088 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005089else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005090 if test -n "$ac_ct_DUMPBIN"; then
5091 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005092else
5093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094for as_dir in $PATH
5095do
5096 IFS=$as_save_IFS
5097 test -z "$as_dir" && as_dir=.
5098 for ac_exec_ext in '' $ac_executable_extensions; do
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05005099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005100 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5101 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005102 break 2
5103 fi
5104done
5105done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005106IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005107
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005108fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005109fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005110ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5111if test -n "$ac_ct_DUMPBIN"; then
5112 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5113$as_echo "$ac_ct_DUMPBIN" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005114else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005115 { $as_echo "$as_me:$LINENO: result: no" >&5
5116$as_echo "no" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005117fi
5118
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005119
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005120 test -n "$ac_ct_DUMPBIN" && break
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005121done
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005122
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005123 if test "x$ac_ct_DUMPBIN" = x; then
5124 DUMPBIN=":"
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005125 else
5126 case $cross_compiling:$ac_tool_warned in
5127yes:)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005128{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005129whose name does not start with the host triplet. If you think this
5130configuration is useful to you, please write to autoconf@gnu.org." >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005131$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005132whose name does not start with the host triplet. If you think this
5133configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5134ac_tool_warned=yes ;;
5135esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005136 DUMPBIN=$ac_ct_DUMPBIN
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06005137 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005138fi
5139
5140
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005141 if test "$DUMPBIN" != ":"; then
5142 NM="$DUMPBIN"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06005143 fi
5144fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005145test -z "$NM" && NM=nm
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005146
5147
5148
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005149
5150
5151
5152{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5153$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5154if test "${lt_cv_nm_interface+set}" = set; then
5155 $as_echo_n "(cached) " >&6
5156else
5157 lt_cv_nm_interface="BSD nm"
5158 echo "int some_variable = 0;" > conftest.$ac_ext
5159 (eval echo "\"\$as_me:5159: $ac_compile\"" >&5)
5160 (eval "$ac_compile" 2>conftest.err)
5161 cat conftest.err >&5
5162 (eval echo "\"\$as_me:5162: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5163 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5164 cat conftest.err >&5
5165 (eval echo "\"\$as_me:5165: output\"" >&5)
5166 cat conftest.out >&5
5167 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5168 lt_cv_nm_interface="MS dumpbin"
5169 fi
5170 rm -f conftest*
5171fi
5172{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5173$as_echo "$lt_cv_nm_interface" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005174
5175# find the maximum length of command line arguments
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005176{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5177$as_echo_n "checking the maximum length of command line arguments... " >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005178if test "${lt_cv_sys_max_cmd_len+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005179 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005180else
5181 i=0
5182 teststring="ABCD"
5183
5184 case $build_os in
5185 msdosdjgpp*)
5186 # On DJGPP, this test can blow up pretty badly due to problems in libc
5187 # (any single argument exceeding 2000 bytes causes a buffer overrun
5188 # during glob expansion). Even if it were fixed, the result of this
5189 # check would be larger than it should be.
5190 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5191 ;;
5192
5193 gnu*)
5194 # Under GNU Hurd, this test is not required because there is
5195 # no limit to the length of command line arguments.
5196 # Libtool will interpret -1 as no limit whatsoever
5197 lt_cv_sys_max_cmd_len=-1;
5198 ;;
5199
5200 cygwin* | mingw*)
5201 # On Win9x/ME, this test blows up -- it succeeds, but takes
5202 # about 5 minutes as the teststring grows exponentially.
5203 # Worse, since 9x/ME are not pre-emptively multitasking,
5204 # you end up with a "frozen" computer, even though with patience
5205 # the test eventually succeeds (with a max line length of 256k).
5206 # Instead, let's just punt: use the minimum linelength reported by
5207 # all of the supported platforms: 8192 (on NT/2K/XP).
5208 lt_cv_sys_max_cmd_len=8192;
5209 ;;
5210
5211 amigaos*)
5212 # On AmigaOS with pdksh, this test takes hours, literally.
5213 # So we just punt and use a minimum line length of 8192.
5214 lt_cv_sys_max_cmd_len=8192;
5215 ;;
5216
5217 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5218 # This has been around since 386BSD, at least. Likely further.
5219 if test -x /sbin/sysctl; then
5220 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5221 elif test -x /usr/sbin/sysctl; then
5222 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5223 else
5224 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5225 fi
5226 # And add a safety zone
5227 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5228 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5229 ;;
5230
5231 interix*)
5232 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5233 lt_cv_sys_max_cmd_len=196608
5234 ;;
5235
5236 osf*)
5237 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5238 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5239 # nice to cause kernel panics so lets avoid the loop below.
5240 # First set a reasonable default.
5241 lt_cv_sys_max_cmd_len=16384
5242 #
5243 if test -x /sbin/sysconfig; then
5244 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5245 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5246 esac
5247 fi
5248 ;;
5249 sco3.2v5*)
5250 lt_cv_sys_max_cmd_len=102400
5251 ;;
5252 sysv5* | sco5v6* | sysv4.2uw2*)
5253 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5254 if test -n "$kargmax"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005255 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005256 else
5257 lt_cv_sys_max_cmd_len=32768
5258 fi
5259 ;;
5260 *)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005261 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5262 if test -n "$lt_cv_sys_max_cmd_len"; then
5263 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5264 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5265 else
5266 # Make teststring a little bigger before we do anything with it.
5267 # a 1K string should be a reasonable start.
5268 for i in 1 2 3 4 5 6 7 8 ; do
5269 teststring=$teststring$teststring
5270 done
5271 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5272 # If test is not a shell built-in, we'll probably end up computing a
5273 # maximum length that is only half of the actual maximum length, but
5274 # we can't tell.
5275 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5276 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5277 test $i != 17 # 1/2 MB should be enough
5278 do
5279 i=`expr $i + 1`
5280 teststring=$teststring$teststring
5281 done
5282 # Only check the string length outside the loop.
5283 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5284 teststring=
5285 # Add a significant safety factor because C++ compilers can tack on
5286 # massive amounts of additional arguments before passing them to the
5287 # linker. It appears as though 1/2 is a usable value.
5288 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5289 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005290 ;;
5291 esac
5292
5293fi
5294
5295if test -n $lt_cv_sys_max_cmd_len ; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005296 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5297$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005298else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005299 { $as_echo "$as_me:$LINENO: result: none" >&5
5300$as_echo "none" >&6; }
5301fi
5302max_cmd_len=$lt_cv_sys_max_cmd_len
5303
5304
5305
5306
5307
5308
5309: ${CP="cp -f"}
5310: ${MV="mv -f"}
5311: ${RM="rm -f"}
5312
5313{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5314$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5315# Try some XSI features
5316xsi_shell=no
5317( _lt_dummy="a/b/c"
5318 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5319 = c,a/b,, \
5320 && eval 'test $(( 1 + 1 )) -eq 2 \
5321 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5322 && xsi_shell=yes
5323{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5324$as_echo "$xsi_shell" >&6; }
5325
5326
5327{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5328$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5329lt_shell_append=no
5330( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5331 >/dev/null 2>&1 \
5332 && lt_shell_append=yes
5333{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5334$as_echo "$lt_shell_append" >&6; }
5335
5336
5337if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5338 lt_unset=unset
5339else
5340 lt_unset=false
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005341fi
5342
5343
5344
5345
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005346
5347# test EBCDIC or ASCII
5348case `echo X|tr X '\101'` in
5349 A) # ASCII based system
5350 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5351 lt_SP2NL='tr \040 \012'
5352 lt_NL2SP='tr \015\012 \040\040'
5353 ;;
5354 *) # EBCDIC based system
5355 lt_SP2NL='tr \100 \n'
5356 lt_NL2SP='tr \r\n \100\100'
5357 ;;
5358esac
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5369$as_echo_n "checking for $LD option to reload object files... " >&6; }
5370if test "${lt_cv_ld_reload_flag+set}" = set; then
5371 $as_echo_n "(cached) " >&6
5372else
5373 lt_cv_ld_reload_flag='-r'
5374fi
5375{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5376$as_echo "$lt_cv_ld_reload_flag" >&6; }
5377reload_flag=$lt_cv_ld_reload_flag
5378case $reload_flag in
5379"" | " "*) ;;
5380*) reload_flag=" $reload_flag" ;;
5381esac
5382reload_cmds='$LD$reload_flag -o $output$reload_objs'
5383case $host_os in
5384 darwin*)
5385 if test "$GCC" = yes; then
5386 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5387 else
5388 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5389 fi
5390 ;;
5391esac
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5403$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5404if test "${lt_cv_deplibs_check_method+set}" = set; then
5405 $as_echo_n "(cached) " >&6
5406else
5407 lt_cv_file_magic_cmd='$MAGIC_CMD'
5408lt_cv_file_magic_test_file=
5409lt_cv_deplibs_check_method='unknown'
5410# Need to set the preceding variable on all platforms that support
5411# interlibrary dependencies.
5412# 'none' -- dependencies not supported.
5413# `unknown' -- same as none, but documents that we really don't know.
5414# 'pass_all' -- all dependencies passed with no checks.
5415# 'test_compile' -- check by making test program.
5416# 'file_magic [[regex]]' -- check by looking for files in library path
5417# which responds to the $file_magic_cmd with a given extended regex.
5418# If you have `file' or equivalent on your system and you're not sure
5419# whether `pass_all' will *always* work, you probably want this one.
5420
5421case $host_os in
5422aix[4-9]*)
5423 lt_cv_deplibs_check_method=pass_all
5424 ;;
5425
5426beos*)
5427 lt_cv_deplibs_check_method=pass_all
5428 ;;
5429
5430bsdi[45]*)
5431 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5432 lt_cv_file_magic_cmd='/usr/bin/file -L'
5433 lt_cv_file_magic_test_file=/shlib/libc.so
5434 ;;
5435
5436cygwin*)
5437 # func_win32_libid is a shell function defined in ltmain.sh
5438 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5439 lt_cv_file_magic_cmd='func_win32_libid'
5440 ;;
5441
5442mingw* | pw32*)
5443 # Base MSYS/MinGW do not provide the 'file' command needed by
5444 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5445 # unless we find 'file', for example because we are cross-compiling.
5446 if ( file / ) >/dev/null 2>&1; then
5447 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5448 lt_cv_file_magic_cmd='func_win32_libid'
5449 else
5450 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5451 lt_cv_file_magic_cmd='$OBJDUMP -f'
5452 fi
5453 ;;
5454
5455darwin* | rhapsody*)
5456 lt_cv_deplibs_check_method=pass_all
5457 ;;
5458
5459freebsd* | dragonfly*)
5460 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5461 case $host_cpu in
5462 i*86 )
5463 # Not sure whether the presence of OpenBSD here was a mistake.
5464 # Let's accept both of them until this is cleared up.
5465 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5466 lt_cv_file_magic_cmd=/usr/bin/file
5467 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5468 ;;
5469 esac
5470 else
5471 lt_cv_deplibs_check_method=pass_all
5472 fi
5473 ;;
5474
5475gnu*)
5476 lt_cv_deplibs_check_method=pass_all
5477 ;;
5478
5479hpux10.20* | hpux11*)
5480 lt_cv_file_magic_cmd=/usr/bin/file
5481 case $host_cpu in
5482 ia64*)
5483 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5484 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5485 ;;
5486 hppa*64*)
5487 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5488 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5489 ;;
5490 *)
5491 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5492 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5493 ;;
5494 esac
5495 ;;
5496
5497interix[3-9]*)
5498 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5499 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5500 ;;
5501
5502irix5* | irix6* | nonstopux*)
5503 case $LD in
5504 *-32|*"-32 ") libmagic=32-bit;;
5505 *-n32|*"-n32 ") libmagic=N32;;
5506 *-64|*"-64 ") libmagic=64-bit;;
5507 *) libmagic=never-match;;
5508 esac
5509 lt_cv_deplibs_check_method=pass_all
5510 ;;
5511
5512# This must be Linux ELF.
5513linux* | k*bsd*-gnu)
5514 lt_cv_deplibs_check_method=pass_all
5515 ;;
5516
5517netbsd*)
5518 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5519 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5520 else
5521 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5522 fi
5523 ;;
5524
5525newos6*)
5526 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5527 lt_cv_file_magic_cmd=/usr/bin/file
5528 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5529 ;;
5530
5531*nto* | *qnx*)
5532 lt_cv_deplibs_check_method=pass_all
5533 ;;
5534
5535openbsd*)
5536 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5537 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5538 else
5539 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5540 fi
5541 ;;
5542
5543osf3* | osf4* | osf5*)
5544 lt_cv_deplibs_check_method=pass_all
5545 ;;
5546
5547rdos*)
5548 lt_cv_deplibs_check_method=pass_all
5549 ;;
5550
5551solaris*)
5552 lt_cv_deplibs_check_method=pass_all
5553 ;;
5554
5555sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5556 lt_cv_deplibs_check_method=pass_all
5557 ;;
5558
5559sysv4 | sysv4.3*)
5560 case $host_vendor in
5561 motorola)
5562 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]'
5563 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5564 ;;
5565 ncr)
5566 lt_cv_deplibs_check_method=pass_all
5567 ;;
5568 sequent)
5569 lt_cv_file_magic_cmd='/bin/file'
5570 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5571 ;;
5572 sni)
5573 lt_cv_file_magic_cmd='/bin/file'
5574 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5575 lt_cv_file_magic_test_file=/lib/libc.so
5576 ;;
5577 siemens)
5578 lt_cv_deplibs_check_method=pass_all
5579 ;;
5580 pc)
5581 lt_cv_deplibs_check_method=pass_all
5582 ;;
5583 esac
5584 ;;
5585
5586tpf*)
5587 lt_cv_deplibs_check_method=pass_all
5588 ;;
5589esac
5590
5591fi
5592{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5593$as_echo "$lt_cv_deplibs_check_method" >&6; }
5594file_magic_cmd=$lt_cv_file_magic_cmd
5595deplibs_check_method=$lt_cv_deplibs_check_method
5596test -z "$deplibs_check_method" && deplibs_check_method=unknown
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609if test -n "$ac_tool_prefix"; then
5610 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5611set dummy ${ac_tool_prefix}ar; ac_word=$2
5612{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5613$as_echo_n "checking for $ac_word... " >&6; }
5614if test "${ac_cv_prog_AR+set}" = set; then
5615 $as_echo_n "(cached) " >&6
5616else
5617 if test -n "$AR"; then
5618 ac_cv_prog_AR="$AR" # Let the user override the test.
5619else
5620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621for as_dir in $PATH
5622do
5623 IFS=$as_save_IFS
5624 test -z "$as_dir" && as_dir=.
5625 for ac_exec_ext in '' $ac_executable_extensions; do
5626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5627 ac_cv_prog_AR="${ac_tool_prefix}ar"
5628 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5629 break 2
5630 fi
5631done
5632done
5633IFS=$as_save_IFS
5634
5635fi
5636fi
5637AR=$ac_cv_prog_AR
5638if test -n "$AR"; then
5639 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5640$as_echo "$AR" >&6; }
5641else
5642 { $as_echo "$as_me:$LINENO: result: no" >&5
5643$as_echo "no" >&6; }
5644fi
5645
5646
5647fi
5648if test -z "$ac_cv_prog_AR"; then
5649 ac_ct_AR=$AR
5650 # Extract the first word of "ar", so it can be a program name with args.
5651set dummy ar; ac_word=$2
5652{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5653$as_echo_n "checking for $ac_word... " >&6; }
5654if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5655 $as_echo_n "(cached) " >&6
5656else
5657 if test -n "$ac_ct_AR"; then
5658 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5659else
5660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661for as_dir in $PATH
5662do
5663 IFS=$as_save_IFS
5664 test -z "$as_dir" && as_dir=.
5665 for ac_exec_ext in '' $ac_executable_extensions; do
5666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5667 ac_cv_prog_ac_ct_AR="ar"
5668 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5669 break 2
5670 fi
5671done
5672done
5673IFS=$as_save_IFS
5674
5675fi
5676fi
5677ac_ct_AR=$ac_cv_prog_ac_ct_AR
5678if test -n "$ac_ct_AR"; then
5679 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5680$as_echo "$ac_ct_AR" >&6; }
5681else
5682 { $as_echo "$as_me:$LINENO: result: no" >&5
5683$as_echo "no" >&6; }
5684fi
5685
5686 if test "x$ac_ct_AR" = x; then
5687 AR="false"
5688 else
5689 case $cross_compiling:$ac_tool_warned in
5690yes:)
5691{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5692whose name does not start with the host triplet. If you think this
5693configuration is useful to you, please write to autoconf@gnu.org." >&5
5694$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5695whose name does not start with the host triplet. If you think this
5696configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5697ac_tool_warned=yes ;;
5698esac
5699 AR=$ac_ct_AR
5700 fi
5701else
5702 AR="$ac_cv_prog_AR"
5703fi
5704
5705test -z "$AR" && AR=ar
5706test -z "$AR_FLAGS" && AR_FLAGS=cru
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718if test -n "$ac_tool_prefix"; then
5719 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5720set dummy ${ac_tool_prefix}strip; ac_word=$2
5721{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5722$as_echo_n "checking for $ac_word... " >&6; }
5723if test "${ac_cv_prog_STRIP+set}" = set; then
5724 $as_echo_n "(cached) " >&6
5725else
5726 if test -n "$STRIP"; then
5727 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5728else
5729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730for as_dir in $PATH
5731do
5732 IFS=$as_save_IFS
5733 test -z "$as_dir" && as_dir=.
5734 for ac_exec_ext in '' $ac_executable_extensions; do
5735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5736 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5737 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5738 break 2
5739 fi
5740done
5741done
5742IFS=$as_save_IFS
5743
5744fi
5745fi
5746STRIP=$ac_cv_prog_STRIP
5747if test -n "$STRIP"; then
5748 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5749$as_echo "$STRIP" >&6; }
5750else
5751 { $as_echo "$as_me:$LINENO: result: no" >&5
5752$as_echo "no" >&6; }
5753fi
5754
5755
5756fi
5757if test -z "$ac_cv_prog_STRIP"; then
5758 ac_ct_STRIP=$STRIP
5759 # Extract the first word of "strip", so it can be a program name with args.
5760set dummy strip; ac_word=$2
5761{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5762$as_echo_n "checking for $ac_word... " >&6; }
5763if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5764 $as_echo_n "(cached) " >&6
5765else
5766 if test -n "$ac_ct_STRIP"; then
5767 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5768else
5769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770for as_dir in $PATH
5771do
5772 IFS=$as_save_IFS
5773 test -z "$as_dir" && as_dir=.
5774 for ac_exec_ext in '' $ac_executable_extensions; do
5775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5776 ac_cv_prog_ac_ct_STRIP="strip"
5777 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5778 break 2
5779 fi
5780done
5781done
5782IFS=$as_save_IFS
5783
5784fi
5785fi
5786ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5787if test -n "$ac_ct_STRIP"; then
5788 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5789$as_echo "$ac_ct_STRIP" >&6; }
5790else
5791 { $as_echo "$as_me:$LINENO: result: no" >&5
5792$as_echo "no" >&6; }
5793fi
5794
5795 if test "x$ac_ct_STRIP" = x; then
5796 STRIP=":"
5797 else
5798 case $cross_compiling:$ac_tool_warned in
5799yes:)
5800{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5801whose name does not start with the host triplet. If you think this
5802configuration is useful to you, please write to autoconf@gnu.org." >&5
5803$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5804whose name does not start with the host triplet. If you think this
5805configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5806ac_tool_warned=yes ;;
5807esac
5808 STRIP=$ac_ct_STRIP
5809 fi
5810else
5811 STRIP="$ac_cv_prog_STRIP"
5812fi
5813
5814test -z "$STRIP" && STRIP=:
5815
5816
5817
5818
5819
5820
5821if test -n "$ac_tool_prefix"; then
5822 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5823set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5824{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5825$as_echo_n "checking for $ac_word... " >&6; }
5826if test "${ac_cv_prog_RANLIB+set}" = set; then
5827 $as_echo_n "(cached) " >&6
5828else
5829 if test -n "$RANLIB"; then
5830 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5831else
5832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833for as_dir in $PATH
5834do
5835 IFS=$as_save_IFS
5836 test -z "$as_dir" && as_dir=.
5837 for ac_exec_ext in '' $ac_executable_extensions; do
5838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5839 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5840 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5841 break 2
5842 fi
5843done
5844done
5845IFS=$as_save_IFS
5846
5847fi
5848fi
5849RANLIB=$ac_cv_prog_RANLIB
5850if test -n "$RANLIB"; then
5851 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5852$as_echo "$RANLIB" >&6; }
5853else
5854 { $as_echo "$as_me:$LINENO: result: no" >&5
5855$as_echo "no" >&6; }
5856fi
5857
5858
5859fi
5860if test -z "$ac_cv_prog_RANLIB"; then
5861 ac_ct_RANLIB=$RANLIB
5862 # Extract the first word of "ranlib", so it can be a program name with args.
5863set dummy ranlib; ac_word=$2
5864{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5865$as_echo_n "checking for $ac_word... " >&6; }
5866if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5867 $as_echo_n "(cached) " >&6
5868else
5869 if test -n "$ac_ct_RANLIB"; then
5870 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5871else
5872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873for as_dir in $PATH
5874do
5875 IFS=$as_save_IFS
5876 test -z "$as_dir" && as_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5879 ac_cv_prog_ac_ct_RANLIB="ranlib"
5880 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5881 break 2
5882 fi
5883done
5884done
5885IFS=$as_save_IFS
5886
5887fi
5888fi
5889ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5890if test -n "$ac_ct_RANLIB"; then
5891 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5892$as_echo "$ac_ct_RANLIB" >&6; }
5893else
5894 { $as_echo "$as_me:$LINENO: result: no" >&5
5895$as_echo "no" >&6; }
5896fi
5897
5898 if test "x$ac_ct_RANLIB" = x; then
5899 RANLIB=":"
5900 else
5901 case $cross_compiling:$ac_tool_warned in
5902yes:)
5903{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5904whose name does not start with the host triplet. If you think this
5905configuration is useful to you, please write to autoconf@gnu.org." >&5
5906$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5907whose name does not start with the host triplet. If you think this
5908configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5909ac_tool_warned=yes ;;
5910esac
5911 RANLIB=$ac_ct_RANLIB
5912 fi
5913else
5914 RANLIB="$ac_cv_prog_RANLIB"
5915fi
5916
5917test -z "$RANLIB" && RANLIB=:
5918
5919
5920
5921
5922
5923
5924# Determine commands to create old-style static archives.
5925old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5926old_postinstall_cmds='chmod 644 $oldlib'
5927old_postuninstall_cmds=
5928
5929if test -n "$RANLIB"; then
5930 case $host_os in
5931 openbsd*)
5932 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5933 ;;
5934 *)
5935 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5936 ;;
5937 esac
5938 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5939fi
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974# If no C compiler was specified, use CC.
5975LTCC=${LTCC-"$CC"}
5976
5977# If no C compiler flags were specified, use CFLAGS.
5978LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5979
5980# Allow CC to be a program name with arguments.
5981compiler=$CC
5982
5983
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005984# Check for command to grab the raw symbol name followed by C symbol from nm.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005985{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5986$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005987if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05005988 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06005989else
5990
5991# These are sane defaults that work on at least a few old systems.
5992# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5993
5994# Character class describing NM global symbol codes.
5995symcode='[BCDEGRST]'
5996
5997# Regexp to match symbols that can be accessed directly from C.
5998sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5999
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006000# Define system-specific variables.
6001case $host_os in
6002aix*)
6003 symcode='[BCDT]'
6004 ;;
6005cygwin* | mingw* | pw32*)
6006 symcode='[ABCDGISTW]'
6007 ;;
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006008hpux*)
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006009 if test "$host_cpu" = ia64; then
6010 symcode='[ABCDEGRST]'
6011 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006012 ;;
6013irix* | nonstopux*)
6014 symcode='[BCDEGRST]'
6015 ;;
6016osf*)
6017 symcode='[BCDEGQRST]'
6018 ;;
6019solaris*)
6020 symcode='[BDRT]'
6021 ;;
6022sco3.2v5*)
6023 symcode='[DT]'
6024 ;;
6025sysv4.2uw2*)
6026 symcode='[DT]'
6027 ;;
6028sysv5* | sco5v6* | unixware* | OpenUNIX*)
6029 symcode='[ABDT]'
6030 ;;
6031sysv4)
6032 symcode='[DFNSTU]'
6033 ;;
6034esac
6035
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006036# If we're using GNU nm, then use its standard symbol codes.
6037case `$NM -V 2>&1` in
6038*GNU* | *'with BFD'*)
6039 symcode='[ABCDGIRSTW]' ;;
6040esac
6041
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006042# Transform an extracted symbol line into a proper C declaration.
6043# Some systems (esp. on ia64) link data and code symbols differently,
6044# so use this general approach.
6045lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6046
6047# Transform an extracted symbol line into symbol name and symbol address
6048lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6049lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6050
6051# Handle CRLF in mingw tool chain
6052opt_cr=
6053case $build_os in
6054mingw*)
6055 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6056 ;;
6057esac
6058
6059# Try without a prefix underscore, then with it.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006060for ac_symprfx in "" "_"; do
6061
6062 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6063 symxfrm="\\1 $ac_symprfx\\2 \\2"
6064
6065 # Write the raw and C identifiers.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006066 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6067 # Fake it for dumpbin and say T for any non-static function
6068 # and D for any global variable.
6069 # Also find C++ and __fastcall symbols from MSVC++,
6070 # which start with @ or ?.
6071 lt_cv_sys_global_symbol_pipe="$AWK '"\
6072" {last_section=section; section=\$ 3};"\
6073" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6074" \$ 0!~/External *\|/{next};"\
6075" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6076" {if(hide[section]) next};"\
6077" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6078" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6079" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6080" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6081" ' prfx=^$ac_symprfx"
6082 else
6083 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6084 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006085
6086 # Check to see that the pipe works correctly.
6087 pipe_works=no
6088
6089 rm -f conftest*
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006090 cat > conftest.$ac_ext <<_LT_EOF
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006091#ifdef __cplusplus
6092extern "C" {
6093#endif
6094char nm_test_var;
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006095void nm_test_func(void);
6096void nm_test_func(void){}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006097#ifdef __cplusplus
6098}
6099#endif
6100int main(){nm_test_var='a';nm_test_func();return(0);}
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006101_LT_EOF
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006102
6103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6104 (eval $ac_compile) 2>&5
6105 ac_status=$?
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006107 (exit $ac_status); }; then
6108 # Now try to grab the symbols.
6109 nlist=conftest.nm
6110 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6111 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6112 ac_status=$?
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006114 (exit $ac_status); } && test -s "$nlist"; then
6115 # Try sorting and uniquifying the output.
6116 if sort "$nlist" | uniq > "$nlist"T; then
6117 mv -f "$nlist"T "$nlist"
6118 else
6119 rm -f "$nlist"T
6120 fi
6121
6122 # Make sure that we snagged all the symbols we need.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006123 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6124 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6125 cat <<_LT_EOF > conftest.$ac_ext
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006126#ifdef __cplusplus
6127extern "C" {
6128#endif
6129
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006130_LT_EOF
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006131 # Now generate the symbol file.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006132 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006133
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006134 cat <<_LT_EOF >> conftest.$ac_ext
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006135
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006136/* The mapping between symbol names and symbols. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006137const struct {
6138 const char *name;
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006139 void *address;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006140}
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006141lt__PROGRAM__LTX_preloaded_symbols[] =
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006142{
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006143 { "@PROGRAM@", (void *) 0 },
6144_LT_EOF
6145 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6146 cat <<\_LT_EOF >> conftest.$ac_ext
6147 {0, (void *) 0}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006148};
6149
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006150/* This works around a problem in FreeBSD linker */
6151#ifdef FREEBSD_WORKAROUND
6152static const void *lt_preloaded_setup() {
6153 return lt__PROGRAM__LTX_preloaded_symbols;
6154}
6155#endif
6156
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006157#ifdef __cplusplus
6158}
6159#endif
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006160_LT_EOF
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006161 # Now try linking the two files.
6162 mv conftest.$ac_objext conftstm.$ac_objext
6163 lt_save_LIBS="$LIBS"
6164 lt_save_CFLAGS="$CFLAGS"
6165 LIBS="conftstm.$ac_objext"
6166 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6168 (eval $ac_link) 2>&5
6169 ac_status=$?
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006171 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6172 pipe_works=yes
6173 fi
6174 LIBS="$lt_save_LIBS"
6175 CFLAGS="$lt_save_CFLAGS"
6176 else
6177 echo "cannot find nm_test_func in $nlist" >&5
6178 fi
6179 else
6180 echo "cannot find nm_test_var in $nlist" >&5
6181 fi
6182 else
6183 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6184 fi
6185 else
6186 echo "$progname: failed program was:" >&5
6187 cat conftest.$ac_ext >&5
6188 fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006189 rm -rf conftest* conftst*
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006190
6191 # Do not use the global_symbol_pipe unless it works.
6192 if test "$pipe_works" = yes; then
6193 break
6194 else
6195 lt_cv_sys_global_symbol_pipe=
6196 fi
6197done
6198
6199fi
6200
6201if test -z "$lt_cv_sys_global_symbol_pipe"; then
6202 lt_cv_sys_global_symbol_to_cdecl=
6203fi
6204if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006205 { $as_echo "$as_me:$LINENO: result: failed" >&5
6206$as_echo "failed" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006207else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006208 { $as_echo "$as_me:$LINENO: result: ok" >&5
6209$as_echo "ok" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006210fi
6211
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006212
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006213
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006214
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006215
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006216
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006217
6218
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006219
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006220
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006221
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006222
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006223
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006224
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006225
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006226
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006227
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006228
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006229
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006230
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006231
6232
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006233
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006234# Check whether --enable-libtool-lock was given.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006235if test "${enable_libtool_lock+set}" = set; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006236 enableval=$enable_libtool_lock;
6237fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006238
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006239test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006240
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006241# Some flags need to be propagated to the compiler or linker for good
6242# libtool support.
6243case $host in
6244ia64-*-hpux*)
6245 # Find out which ABI we are using.
6246 echo 'int i;' > conftest.$ac_ext
6247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006248 (eval $ac_compile) 2>&5
6249 ac_status=$?
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; then
6252 case `/usr/bin/file conftest.$ac_objext` in
6253 *ELF-32*)
6254 HPUX_IA64_MODE="32"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006255 ;;
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006256 *ELF-64*)
6257 HPUX_IA64_MODE="64"
6258 ;;
6259 esac
6260 fi
6261 rm -rf conftest*
6262 ;;
6263*-*-irix6*)
6264 # Find out which ABI we are using.
6265 echo '#line 6265 "configure"' > conftest.$ac_ext
6266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6267 (eval $ac_compile) 2>&5
6268 ac_status=$?
6269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); }; then
6271 if test "$lt_cv_prog_gnu_ld" = yes; then
6272 case `/usr/bin/file conftest.$ac_objext` in
6273 *32-bit*)
6274 LD="${LD-ld} -melf32bsmip"
6275 ;;
6276 *N32*)
6277 LD="${LD-ld} -melf32bmipn32"
6278 ;;
6279 *64-bit*)
6280 LD="${LD-ld} -melf64bmip"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006281 ;;
6282 esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006283 else
6284 case `/usr/bin/file conftest.$ac_objext` in
6285 *32-bit*)
6286 LD="${LD-ld} -32"
6287 ;;
6288 *N32*)
6289 LD="${LD-ld} -n32"
6290 ;;
6291 *64-bit*)
6292 LD="${LD-ld} -64"
6293 ;;
6294 esac
6295 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006296 fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006297 rm -rf conftest*
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006298 ;;
6299
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006300x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6301s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6302 # Find out which ABI we are using.
6303 echo 'int i;' > conftest.$ac_ext
6304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6305 (eval $ac_compile) 2>&5
6306 ac_status=$?
6307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }; then
6309 case `/usr/bin/file conftest.o` in
6310 *32-bit*)
6311 case $host in
6312 x86_64-*kfreebsd*-gnu)
6313 LD="${LD-ld} -m elf_i386_fbsd"
6314 ;;
6315 x86_64-*linux*)
6316 LD="${LD-ld} -m elf_i386"
6317 ;;
6318 ppc64-*linux*|powerpc64-*linux*)
6319 LD="${LD-ld} -m elf32ppclinux"
6320 ;;
6321 s390x-*linux*)
6322 LD="${LD-ld} -m elf_s390"
6323 ;;
6324 sparc64-*linux*)
6325 LD="${LD-ld} -m elf32_sparc"
6326 ;;
6327 esac
6328 ;;
6329 *64-bit*)
6330 case $host in
6331 x86_64-*kfreebsd*-gnu)
6332 LD="${LD-ld} -m elf_x86_64_fbsd"
6333 ;;
6334 x86_64-*linux*)
6335 LD="${LD-ld} -m elf_x86_64"
6336 ;;
6337 ppc*-*linux*|powerpc*-*linux*)
6338 LD="${LD-ld} -m elf64ppc"
6339 ;;
6340 s390*-*linux*|s390*-*tpf*)
6341 LD="${LD-ld} -m elf64_s390"
6342 ;;
6343 sparc*-*linux*)
6344 LD="${LD-ld} -m elf64_sparc"
6345 ;;
6346 esac
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006347 ;;
6348 esac
6349 fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006350 rm -rf conftest*
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006351 ;;
6352
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006353*-*-sco3.2v5*)
6354 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6355 SAVE_CFLAGS="$CFLAGS"
6356 CFLAGS="$CFLAGS -belf"
6357 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6358$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6359if test "${lt_cv_cc_needs_belf+set}" = set; then
6360 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006361else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006362 ac_ext=c
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006363ac_cpp='$CPP $CPPFLAGS'
6364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6366ac_compiler_gnu=$ac_cv_c_compiler_gnu
6367
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006368 cat >conftest.$ac_ext <<_ACEOF
6369/* confdefs.h. */
6370_ACEOF
6371cat confdefs.h >>conftest.$ac_ext
6372cat >>conftest.$ac_ext <<_ACEOF
6373/* end confdefs.h. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006374
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006375int
6376main ()
6377{
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006378
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006379 ;
6380 return 0;
6381}
6382_ACEOF
6383rm -f conftest.$ac_objext conftest$ac_exeext
6384if { (ac_try="$ac_link"
6385case "(($ac_try" in
6386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6387 *) ac_try_echo=$ac_try;;
6388esac
6389eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6390$as_echo "$ac_try_echo") >&5
6391 (eval "$ac_link") 2>conftest.er1
6392 ac_status=$?
6393 grep -v '^ *+' conftest.er1 >conftest.err
6394 rm -f conftest.er1
6395 cat conftest.err >&5
6396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } && {
6398 test -z "$ac_c_werror_flag" ||
6399 test ! -s conftest.err
6400 } && test -s conftest$ac_exeext && {
6401 test "$cross_compiling" = yes ||
6402 $as_test_x conftest$ac_exeext
6403 }; then
6404 lt_cv_cc_needs_belf=yes
6405else
6406 $as_echo "$as_me: failed program was:" >&5
6407sed 's/^/| /' conftest.$ac_ext >&5
6408
6409 lt_cv_cc_needs_belf=no
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006410fi
6411
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006412rm -rf conftest.dSYM
6413rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6414 conftest$ac_exeext conftest.$ac_ext
6415 ac_ext=c
6416ac_cpp='$CPP $CPPFLAGS'
6417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6419ac_compiler_gnu=$ac_cv_c_compiler_gnu
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006420
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006421fi
6422{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6423$as_echo "$lt_cv_cc_needs_belf" >&6; }
6424 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6425 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6426 CFLAGS="$SAVE_CFLAGS"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006427 fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006428 ;;
6429sparc*-*solaris*)
6430 # Find out which ABI we are using.
6431 echo 'int i;' > conftest.$ac_ext
6432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6433 (eval $ac_compile) 2>&5
6434 ac_status=$?
6435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; then
6437 case `/usr/bin/file conftest.o` in
6438 *64-bit*)
6439 case $lt_cv_prog_gnu_ld in
6440 yes*) LD="${LD-ld} -m elf64_sparc" ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006441 *)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006442 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6443 LD="${LD-ld} -64"
6444 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006445 ;;
6446 esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006447 ;;
6448 esac
6449 fi
6450 rm -rf conftest*
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006451 ;;
6452esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006453
6454need_locks="$enable_libtool_lock"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006455
6456
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006457 case $host_os in
6458 rhapsody* | darwin*)
6459 if test -n "$ac_tool_prefix"; then
6460 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6461set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6462{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6463$as_echo_n "checking for $ac_word... " >&6; }
6464if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6465 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006466else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006467 if test -n "$DSYMUTIL"; then
6468 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6469else
6470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471for as_dir in $PATH
6472do
6473 IFS=$as_save_IFS
6474 test -z "$as_dir" && as_dir=.
6475 for ac_exec_ext in '' $ac_executable_extensions; do
6476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6477 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6478 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6479 break 2
6480 fi
6481done
6482done
6483IFS=$as_save_IFS
6484
6485fi
6486fi
6487DSYMUTIL=$ac_cv_prog_DSYMUTIL
6488if test -n "$DSYMUTIL"; then
6489 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6490$as_echo "$DSYMUTIL" >&6; }
6491else
6492 { $as_echo "$as_me:$LINENO: result: no" >&5
6493$as_echo "no" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006494fi
6495
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006496
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006497fi
6498if test -z "$ac_cv_prog_DSYMUTIL"; then
6499 ac_ct_DSYMUTIL=$DSYMUTIL
6500 # Extract the first word of "dsymutil", so it can be a program name with args.
6501set dummy dsymutil; ac_word=$2
6502{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6503$as_echo_n "checking for $ac_word... " >&6; }
6504if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6505 $as_echo_n "(cached) " >&6
6506else
6507 if test -n "$ac_ct_DSYMUTIL"; then
6508 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6509else
6510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511for as_dir in $PATH
6512do
6513 IFS=$as_save_IFS
6514 test -z "$as_dir" && as_dir=.
6515 for ac_exec_ext in '' $ac_executable_extensions; do
6516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6517 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6518 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6519 break 2
6520 fi
6521done
6522done
6523IFS=$as_save_IFS
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006524
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006525fi
6526fi
6527ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6528if test -n "$ac_ct_DSYMUTIL"; then
6529 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6530$as_echo "$ac_ct_DSYMUTIL" >&6; }
6531else
6532 { $as_echo "$as_me:$LINENO: result: no" >&5
6533$as_echo "no" >&6; }
6534fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006535
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006536 if test "x$ac_ct_DSYMUTIL" = x; then
6537 DSYMUTIL=":"
6538 else
6539 case $cross_compiling:$ac_tool_warned in
6540yes:)
6541{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6542whose name does not start with the host triplet. If you think this
6543configuration is useful to you, please write to autoconf@gnu.org." >&5
6544$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6545whose name does not start with the host triplet. If you think this
6546configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6547ac_tool_warned=yes ;;
6548esac
6549 DSYMUTIL=$ac_ct_DSYMUTIL
6550 fi
6551else
6552 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6553fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006554
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006555 if test -n "$ac_tool_prefix"; then
6556 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6557set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6558{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6559$as_echo_n "checking for $ac_word... " >&6; }
6560if test "${ac_cv_prog_NMEDIT+set}" = set; then
6561 $as_echo_n "(cached) " >&6
6562else
6563 if test -n "$NMEDIT"; then
6564 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6565else
6566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567for as_dir in $PATH
6568do
6569 IFS=$as_save_IFS
6570 test -z "$as_dir" && as_dir=.
6571 for ac_exec_ext in '' $ac_executable_extensions; do
6572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6573 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6574 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6575 break 2
6576 fi
6577done
6578done
6579IFS=$as_save_IFS
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006580
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006581fi
6582fi
6583NMEDIT=$ac_cv_prog_NMEDIT
6584if test -n "$NMEDIT"; then
6585 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6586$as_echo "$NMEDIT" >&6; }
6587else
6588 { $as_echo "$as_me:$LINENO: result: no" >&5
6589$as_echo "no" >&6; }
6590fi
6591
6592
6593fi
6594if test -z "$ac_cv_prog_NMEDIT"; then
6595 ac_ct_NMEDIT=$NMEDIT
6596 # Extract the first word of "nmedit", so it can be a program name with args.
6597set dummy nmedit; ac_word=$2
6598{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6599$as_echo_n "checking for $ac_word... " >&6; }
6600if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6601 $as_echo_n "(cached) " >&6
6602else
6603 if test -n "$ac_ct_NMEDIT"; then
6604 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6605else
6606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607for as_dir in $PATH
6608do
6609 IFS=$as_save_IFS
6610 test -z "$as_dir" && as_dir=.
6611 for ac_exec_ext in '' $ac_executable_extensions; do
6612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6613 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6614 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6615 break 2
6616 fi
6617done
6618done
6619IFS=$as_save_IFS
6620
6621fi
6622fi
6623ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6624if test -n "$ac_ct_NMEDIT"; then
6625 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6626$as_echo "$ac_ct_NMEDIT" >&6; }
6627else
6628 { $as_echo "$as_me:$LINENO: result: no" >&5
6629$as_echo "no" >&6; }
6630fi
6631
6632 if test "x$ac_ct_NMEDIT" = x; then
6633 NMEDIT=":"
6634 else
6635 case $cross_compiling:$ac_tool_warned in
6636yes:)
6637{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6638whose name does not start with the host triplet. If you think this
6639configuration is useful to you, please write to autoconf@gnu.org." >&5
6640$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6641whose name does not start with the host triplet. If you think this
6642configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6643ac_tool_warned=yes ;;
6644esac
6645 NMEDIT=$ac_ct_NMEDIT
6646 fi
6647else
6648 NMEDIT="$ac_cv_prog_NMEDIT"
6649fi
6650
6651 if test -n "$ac_tool_prefix"; then
6652 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6653set dummy ${ac_tool_prefix}lipo; ac_word=$2
6654{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6655$as_echo_n "checking for $ac_word... " >&6; }
6656if test "${ac_cv_prog_LIPO+set}" = set; then
6657 $as_echo_n "(cached) " >&6
6658else
6659 if test -n "$LIPO"; then
6660 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6661else
6662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663for as_dir in $PATH
6664do
6665 IFS=$as_save_IFS
6666 test -z "$as_dir" && as_dir=.
6667 for ac_exec_ext in '' $ac_executable_extensions; do
6668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6669 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6670 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6671 break 2
6672 fi
6673done
6674done
6675IFS=$as_save_IFS
6676
6677fi
6678fi
6679LIPO=$ac_cv_prog_LIPO
6680if test -n "$LIPO"; then
6681 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6682$as_echo "$LIPO" >&6; }
6683else
6684 { $as_echo "$as_me:$LINENO: result: no" >&5
6685$as_echo "no" >&6; }
6686fi
6687
6688
6689fi
6690if test -z "$ac_cv_prog_LIPO"; then
6691 ac_ct_LIPO=$LIPO
6692 # Extract the first word of "lipo", so it can be a program name with args.
6693set dummy lipo; ac_word=$2
6694{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6695$as_echo_n "checking for $ac_word... " >&6; }
6696if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6697 $as_echo_n "(cached) " >&6
6698else
6699 if test -n "$ac_ct_LIPO"; then
6700 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6701else
6702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703for as_dir in $PATH
6704do
6705 IFS=$as_save_IFS
6706 test -z "$as_dir" && as_dir=.
6707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6709 ac_cv_prog_ac_ct_LIPO="lipo"
6710 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6711 break 2
6712 fi
6713done
6714done
6715IFS=$as_save_IFS
6716
6717fi
6718fi
6719ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6720if test -n "$ac_ct_LIPO"; then
6721 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6722$as_echo "$ac_ct_LIPO" >&6; }
6723else
6724 { $as_echo "$as_me:$LINENO: result: no" >&5
6725$as_echo "no" >&6; }
6726fi
6727
6728 if test "x$ac_ct_LIPO" = x; then
6729 LIPO=":"
6730 else
6731 case $cross_compiling:$ac_tool_warned in
6732yes:)
6733{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6734whose name does not start with the host triplet. If you think this
6735configuration is useful to you, please write to autoconf@gnu.org." >&5
6736$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6737whose name does not start with the host triplet. If you think this
6738configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6739ac_tool_warned=yes ;;
6740esac
6741 LIPO=$ac_ct_LIPO
6742 fi
6743else
6744 LIPO="$ac_cv_prog_LIPO"
6745fi
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6764$as_echo_n "checking for -single_module linker flag... " >&6; }
6765if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6766 $as_echo_n "(cached) " >&6
6767else
6768 lt_cv_apple_cc_single_mod=no
6769 if test -z "${LT_MULTI_MODULE}"; then
6770 # By default we will add the -single_module flag. You can override
6771 # by either setting the environment variable LT_MULTI_MODULE
6772 # non-empty at configure time, or by adding -multi_module to the
6773 # link flags.
6774 rm -rf libconftest.dylib*
6775 echo "int foo(void){return 1;}" > conftest.c
6776 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6777-dynamiclib -Wl,-single_module conftest.c" >&5
6778 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6779 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6780 _lt_result=$?
6781 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6782 lt_cv_apple_cc_single_mod=yes
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006783 else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006784 cat conftest.err >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006785 fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006786 rm -rf libconftest.dylib*
6787 rm -f conftest.*
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006788 fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006789fi
6790{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6791$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6792 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6793$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6794if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6795 $as_echo_n "(cached) " >&6
6796else
6797 lt_cv_ld_exported_symbols_list=no
6798 save_LDFLAGS=$LDFLAGS
6799 echo "_main" > conftest.sym
6800 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006801 cat >conftest.$ac_ext <<_ACEOF
6802/* confdefs.h. */
6803_ACEOF
6804cat confdefs.h >>conftest.$ac_ext
6805cat >>conftest.$ac_ext <<_ACEOF
6806/* end confdefs.h. */
6807
6808int
6809main ()
6810{
6811
6812 ;
6813 return 0;
6814}
6815_ACEOF
6816rm -f conftest.$ac_objext conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006817if { (ac_try="$ac_link"
6818case "(($ac_try" in
6819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6820 *) ac_try_echo=$ac_try;;
6821esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006822eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6823$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006824 (eval "$ac_link") 2>conftest.er1
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006825 ac_status=$?
6826 grep -v '^ *+' conftest.er1 >conftest.err
6827 rm -f conftest.er1
6828 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05006830 (exit $ac_status); } && {
6831 test -z "$ac_c_werror_flag" ||
6832 test ! -s conftest.err
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006833 } && test -s conftest$ac_exeext && {
6834 test "$cross_compiling" = yes ||
6835 $as_test_x conftest$ac_exeext
6836 }; then
6837 lt_cv_ld_exported_symbols_list=yes
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006838else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006839 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006840sed 's/^/| /' conftest.$ac_ext >&5
6841
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006842 lt_cv_ld_exported_symbols_list=no
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006843fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006844
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006845rm -rf conftest.dSYM
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05006846rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006847 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006848 LDFLAGS="$save_LDFLAGS"
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006849
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006850fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006851{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6852$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6853 case $host_os in
6854 rhapsody* | darwin1.[012])
6855 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6856 darwin1.*)
6857 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6858 darwin*) # darwin 5.x on
6859 # if running on 10.5 or later, the deployment target defaults
6860 # to the OS version, if on x86, and 10.4, the deployment
6861 # target defaults to 10.4. Don't you love it?
6862 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6863 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6864 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6865 10.[012]*)
6866 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6867 10.*)
6868 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006869 esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006870 ;;
6871 esac
6872 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6873 _lt_dar_single_mod='$single_module'
6874 fi
6875 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6876 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006877 else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006878 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006879 fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006880 if test "$DSYMUTIL" != ":"; then
6881 _lt_dsymutil='~$DSYMUTIL $lib || :'
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006882 else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006883 _lt_dsymutil=
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006884 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006885 ;;
6886 esac
6887
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006888
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006889{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6890$as_echo_n "checking for ANSI C header files... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006891if test "${ac_cv_header_stdc+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006892 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006893else
6894 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006895/* confdefs.h. */
6896_ACEOF
6897cat confdefs.h >>conftest.$ac_ext
6898cat >>conftest.$ac_ext <<_ACEOF
6899/* end confdefs.h. */
6900#include <stdlib.h>
6901#include <stdarg.h>
6902#include <string.h>
6903#include <float.h>
6904
6905int
6906main ()
6907{
6908
6909 ;
6910 return 0;
6911}
6912_ACEOF
6913rm -f conftest.$ac_objext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006914if { (ac_try="$ac_compile"
6915case "(($ac_try" in
6916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6917 *) ac_try_echo=$ac_try;;
6918esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006919eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6920$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006921 (eval "$ac_compile") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006922 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06006923 grep -v '^ *+' conftest.er1 >conftest.err
6924 rm -f conftest.er1
6925 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -05006927 (exit $ac_status); } && {
6928 test -z "$ac_c_werror_flag" ||
6929 test ! -s conftest.err
6930 } && test -s conftest.$ac_objext; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006931 ac_cv_header_stdc=yes
6932else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05006933 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006934sed 's/^/| /' conftest.$ac_ext >&5
6935
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006936 ac_cv_header_stdc=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006937fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006938
6939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006940
6941if test $ac_cv_header_stdc = yes; then
6942 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6943 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006944/* confdefs.h. */
6945_ACEOF
6946cat confdefs.h >>conftest.$ac_ext
6947cat >>conftest.$ac_ext <<_ACEOF
6948/* end confdefs.h. */
6949#include <string.h>
6950
6951_ACEOF
6952if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6953 $EGREP "memchr" >/dev/null 2>&1; then
6954 :
6955else
6956 ac_cv_header_stdc=no
6957fi
6958rm -f conftest*
6959
6960fi
6961
6962if test $ac_cv_header_stdc = yes; then
6963 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6964 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006965/* confdefs.h. */
6966_ACEOF
6967cat confdefs.h >>conftest.$ac_ext
6968cat >>conftest.$ac_ext <<_ACEOF
6969/* end confdefs.h. */
6970#include <stdlib.h>
6971
6972_ACEOF
6973if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6974 $EGREP "free" >/dev/null 2>&1; then
6975 :
6976else
6977 ac_cv_header_stdc=no
6978fi
6979rm -f conftest*
6980
6981fi
6982
6983if test $ac_cv_header_stdc = yes; then
6984 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6985 if test "$cross_compiling" = yes; then
6986 :
6987else
6988 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006989/* confdefs.h. */
6990_ACEOF
6991cat confdefs.h >>conftest.$ac_ext
6992cat >>conftest.$ac_ext <<_ACEOF
6993/* end confdefs.h. */
6994#include <ctype.h>
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06006995#include <stdlib.h>
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06006996#if ((' ' & 0x0FF) == 0x020)
6997# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6998# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6999#else
7000# define ISLOWER(c) \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007001 (('a' <= (c) && (c) <= 'i') \
7002 || ('j' <= (c) && (c) <= 'r') \
7003 || ('s' <= (c) && (c) <= 'z'))
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007004# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7005#endif
7006
7007#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7008int
7009main ()
7010{
7011 int i;
7012 for (i = 0; i < 256; i++)
7013 if (XOR (islower (i), ISLOWER (i))
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -06007014 || toupper (i) != TOUPPER (i))
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007015 return 2;
7016 return 0;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007017}
7018_ACEOF
7019rm -f conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007020if { (ac_try="$ac_link"
7021case "(($ac_try" in
7022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7023 *) ac_try_echo=$ac_try;;
7024esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05007025eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7026$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007027 (eval "$ac_link") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007028 ac_status=$?
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05007029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007031 { (case "(($ac_try" in
7032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7033 *) ac_try_echo=$ac_try;;
7034esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05007035eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7036$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007037 (eval "$ac_try") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007038 ac_status=$?
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05007039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007040 (exit $ac_status); }; }; then
7041 :
7042else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05007043 $as_echo "$as_me: program exited with status $ac_status" >&5
7044$as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007045sed 's/^/| /' conftest.$ac_ext >&5
7046
7047( exit $ac_status )
7048ac_cv_header_stdc=no
7049fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05007050rm -rf conftest.dSYM
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -06007051rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7052fi
7053
7054
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -06007055fi
7056fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -05007057{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7058$as_echo "$ac_cv_header_stdc" >&6; }
7059if test $ac_cv_header_stdc = yes; then
7060
7061cat >>confdefs.h <<\_ACEOF
7062#define STDC_HEADERS 1
7063_ACEOF
7064
7065fi
7066
7067# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7078 inttypes.h stdint.h unistd.h
7079do
7080as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7081{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7082$as_echo_n "checking for $ac_header... " >&6; }
7083if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7084 $as_echo_n "(cached) " >&6
7085else
7086 cat >conftest.$ac_ext <<_ACEOF
7087/* confdefs.h. */
7088_ACEOF
7089cat confdefs.h >>conftest.$ac_ext
7090cat >>conftest.$ac_ext <<_ACEOF
7091/* end confdefs.h. */
7092$ac_includes_default
7093
7094#include <$ac_header>
7095_ACEOF
7096rm -f conftest.$ac_objext
7097if { (ac_try="$ac_compile"
7098case "(($ac_try" in
7099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7100 *) ac_try_echo=$ac_try;;
7101esac
7102eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7103$as_echo "$ac_try_echo") >&5
7104 (eval "$ac_compile") 2>conftest.er1
7105 ac_status=$?
7106 grep -v '^ *+' conftest.er1 >conftest.err
7107 rm -f conftest.er1
7108 cat conftest.err >&5
7109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); } && {
7111 test -z "$ac_c_werror_flag" ||
7112 test ! -s conftest.err
7113 } && test -s conftest.$ac_objext; then
7114 eval "$as_ac_Header=yes"
7115else
7116 $as_echo "$as_me: failed program was:" >&5
7117sed 's/^/| /' conftest.$ac_ext >&5
7118
7119 eval "$as_ac_Header=no"
7120fi
7121
7122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7123fi
7124ac_res=`eval 'as_val=${'$as_ac_Header'}
7125 $as_echo "$as_val"'`
7126 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7127$as_echo "$ac_res" >&6; }
7128if test `eval 'as_val=${'$as_ac_Header'}
7129 $as_echo "$as_val"'` = yes; then
7130 cat >>confdefs.h <<_ACEOF
7131#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7132_ACEOF
7133
7134fi
7135
7136done
7137
7138
7139
7140for ac_header in dlfcn.h
7141do
7142as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7143{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7144$as_echo_n "checking for $ac_header... " >&6; }
7145if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7146 $as_echo_n "(cached) " >&6
7147else
7148 cat >conftest.$ac_ext <<_ACEOF
7149/* confdefs.h. */
7150_ACEOF
7151cat confdefs.h >>conftest.$ac_ext
7152cat >>conftest.$ac_ext <<_ACEOF
7153/* end confdefs.h. */
7154$ac_includes_default
7155
7156#include <$ac_header>
7157_ACEOF
7158rm -f conftest.$ac_objext
7159if { (ac_try="$ac_compile"
7160case "(($ac_try" in
7161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7162 *) ac_try_echo=$ac_try;;
7163esac
7164eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7165$as_echo "$ac_try_echo") >&5
7166 (eval "$ac_compile") 2>conftest.er1
7167 ac_status=$?
7168 grep -v '^ *+' conftest.er1 >conftest.err
7169 rm -f conftest.er1
7170 cat conftest.err >&5
7171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); } && {
7173 test -z "$ac_c_werror_flag" ||
7174 test ! -s conftest.err
7175 } && test -s conftest.$ac_objext; then
7176 eval "$as_ac_Header=yes"
7177else
7178 $as_echo "$as_me: failed program was:" >&5
7179sed 's/^/| /' conftest.$ac_ext >&5
7180
7181 eval "$as_ac_Header=no"
7182fi
7183
7184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7185fi
7186ac_res=`eval 'as_val=${'$as_ac_Header'}
7187 $as_echo "$as_val"'`
7188 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7189$as_echo "$ac_res" >&6; }
7190if test `eval 'as_val=${'$as_ac_Header'}
7191 $as_echo "$as_val"'` = yes; then
7192 cat >>confdefs.h <<_ACEOF
7193#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7194_ACEOF
7195
7196fi
7197
7198done
7199
7200
7201
7202# Set options
7203
7204
7205
7206 enable_dlopen=no
7207
7208
7209
7210 # Check whether --enable-shared was given.
7211if test "${enable_shared+set}" = set; then
7212 enableval=$enable_shared; p=${PACKAGE-default}
7213 case $enableval in
7214 yes) enable_shared=yes ;;
7215 no) enable_shared=no ;;
7216 *)
7217 enable_shared=no
7218 # Look at the argument we got. We use all the common list separators.
7219 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7220 for pkg in $enableval; do
7221 IFS="$lt_save_ifs"
7222 if test "X$pkg" = "X$p"; then
7223 enable_shared=yes
7224 fi
7225 done
7226 IFS="$lt_save_ifs"
7227 ;;
7228 esac
7229else
7230 enable_shared=yes
7231fi
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241 # Check whether --enable-static was given.
7242if test "${enable_static+set}" = set; then
7243 enableval=$enable_static; p=${PACKAGE-default}
7244 case $enableval in
7245 yes) enable_static=yes ;;
7246 no) enable_static=no ;;
7247 *)
7248 enable_static=no
7249 # Look at the argument we got. We use all the common list separators.
7250 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7251 for pkg in $enableval; do
7252 IFS="$lt_save_ifs"
7253 if test "X$pkg" = "X$p"; then
7254 enable_static=yes
7255 fi
7256 done
7257 IFS="$lt_save_ifs"
7258 ;;
7259 esac
7260else
7261 enable_static=yes
7262fi
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273# Check whether --with-pic was given.
7274if test "${with_pic+set}" = set; then
7275 withval=$with_pic; pic_mode="$withval"
7276else
7277 pic_mode=default
7278fi
7279
7280
7281test -z "$pic_mode" && pic_mode=default
7282
7283
7284
7285
7286
7287
7288
7289 # Check whether --enable-fast-install was given.
7290if test "${enable_fast_install+set}" = set; then
7291 enableval=$enable_fast_install; p=${PACKAGE-default}
7292 case $enableval in
7293 yes) enable_fast_install=yes ;;
7294 no) enable_fast_install=no ;;
7295 *)
7296 enable_fast_install=no
7297 # Look at the argument we got. We use all the common list separators.
7298 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7299 for pkg in $enableval; do
7300 IFS="$lt_save_ifs"
7301 if test "X$pkg" = "X$p"; then
7302 enable_fast_install=yes
7303 fi
7304 done
7305 IFS="$lt_save_ifs"
7306 ;;
7307 esac
7308else
7309 enable_fast_install=yes
7310fi
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322# This can be used to rebuild libtool when needed
7323LIBTOOL_DEPS="$ltmain"
7324
7325# Always use our own libtool.
7326LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352test -z "$LN_S" && LN_S="ln -s"
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367if test -n "${ZSH_VERSION+set}" ; then
7368 setopt NO_GLOB_SUBST
7369fi
7370
7371{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7372$as_echo_n "checking for objdir... " >&6; }
7373if test "${lt_cv_objdir+set}" = set; then
7374 $as_echo_n "(cached) " >&6
7375else
7376 rm -f .libs 2>/dev/null
7377mkdir .libs 2>/dev/null
7378if test -d .libs; then
7379 lt_cv_objdir=.libs
7380else
7381 # MS-DOS does not allow filenames that begin with a dot.
7382 lt_cv_objdir=_libs
7383fi
7384rmdir .libs 2>/dev/null
7385fi
7386{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7387$as_echo "$lt_cv_objdir" >&6; }
7388objdir=$lt_cv_objdir
7389
7390
7391
7392
7393
7394cat >>confdefs.h <<_ACEOF
7395#define LT_OBJDIR "$lt_cv_objdir/"
7396_ACEOF
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414case $host_os in
7415aix3*)
7416 # AIX sometimes has problems with the GCC collect2 program. For some
7417 # reason, if we set the COLLECT_NAMES environment variable, the problems
7418 # vanish in a puff of smoke.
7419 if test "X${COLLECT_NAMES+set}" != Xset; then
7420 COLLECT_NAMES=
7421 export COLLECT_NAMES
7422 fi
7423 ;;
7424esac
7425
7426# Sed substitution that helps us do robust quoting. It backslashifies
7427# metacharacters that are still active within double-quoted strings.
7428sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7429
7430# Same as above, but do not quote variable references.
7431double_quote_subst='s/\(["`\\]\)/\\\1/g'
7432
7433# Sed substitution to delay expansion of an escaped shell variable in a
7434# double_quote_subst'ed string.
7435delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7436
7437# Sed substitution to delay expansion of an escaped single quote.
7438delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7439
7440# Sed substitution to avoid accidental globbing in evaled expressions
7441no_glob_subst='s/\*/\\\*/g'
7442
7443# Global variables:
7444ofile=libtool
7445can_build_shared=yes
7446
7447# All known linkers require a `.a' archive for static linking (except MSVC,
7448# which needs '.lib').
7449libext=a
7450
7451with_gnu_ld="$lt_cv_prog_gnu_ld"
7452
7453old_CC="$CC"
7454old_CFLAGS="$CFLAGS"
7455
7456# Set sane defaults for various variables
7457test -z "$CC" && CC=cc
7458test -z "$LTCC" && LTCC=$CC
7459test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7460test -z "$LD" && LD=ld
7461test -z "$ac_objext" && ac_objext=o
7462
7463for cc_temp in $compiler""; do
7464 case $cc_temp in
7465 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7466 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7467 \-*) ;;
7468 *) break;;
7469 esac
7470done
7471cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7472
7473
7474# Only perform the check for file, if the check method requires it
7475test -z "$MAGIC_CMD" && MAGIC_CMD=file
7476case $deplibs_check_method in
7477file_magic*)
7478 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7479 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7480$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7481if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7482 $as_echo_n "(cached) " >&6
7483else
7484 case $MAGIC_CMD in
7485[\\/*] | ?:[\\/]*)
7486 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7487 ;;
7488*)
7489 lt_save_MAGIC_CMD="$MAGIC_CMD"
7490 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7491 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7492 for ac_dir in $ac_dummy; do
7493 IFS="$lt_save_ifs"
7494 test -z "$ac_dir" && ac_dir=.
7495 if test -f $ac_dir/${ac_tool_prefix}file; then
7496 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7497 if test -n "$file_magic_test_file"; then
7498 case $deplibs_check_method in
7499 "file_magic "*)
7500 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7501 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7502 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7503 $EGREP "$file_magic_regex" > /dev/null; then
7504 :
7505 else
7506 cat <<_LT_EOF 1>&2
7507
7508*** Warning: the command libtool uses to detect shared libraries,
7509*** $file_magic_cmd, produces output that libtool cannot recognize.
7510*** The result is that libtool may fail to recognize shared libraries
7511*** as such. This will affect the creation of libtool libraries that
7512*** depend on shared libraries, but programs linked with such libtool
7513*** libraries will work regardless of this problem. Nevertheless, you
7514*** may want to report the problem to your system manager and/or to
7515*** bug-libtool@gnu.org
7516
7517_LT_EOF
7518 fi ;;
7519 esac
7520 fi
7521 break
7522 fi
7523 done
7524 IFS="$lt_save_ifs"
7525 MAGIC_CMD="$lt_save_MAGIC_CMD"
7526 ;;
7527esac
7528fi
7529
7530MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7531if test -n "$MAGIC_CMD"; then
7532 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7533$as_echo "$MAGIC_CMD" >&6; }
7534else
7535 { $as_echo "$as_me:$LINENO: result: no" >&5
7536$as_echo "no" >&6; }
7537fi
7538
7539
7540
7541
7542
7543if test -z "$lt_cv_path_MAGIC_CMD"; then
7544 if test -n "$ac_tool_prefix"; then
7545 { $as_echo "$as_me:$LINENO: checking for file" >&5
7546$as_echo_n "checking for file... " >&6; }
7547if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7548 $as_echo_n "(cached) " >&6
7549else
7550 case $MAGIC_CMD in
7551[\\/*] | ?:[\\/]*)
7552 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7553 ;;
7554*)
7555 lt_save_MAGIC_CMD="$MAGIC_CMD"
7556 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7557 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7558 for ac_dir in $ac_dummy; do
7559 IFS="$lt_save_ifs"
7560 test -z "$ac_dir" && ac_dir=.
7561 if test -f $ac_dir/file; then
7562 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7563 if test -n "$file_magic_test_file"; then
7564 case $deplibs_check_method in
7565 "file_magic "*)
7566 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7567 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7568 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7569 $EGREP "$file_magic_regex" > /dev/null; then
7570 :
7571 else
7572 cat <<_LT_EOF 1>&2
7573
7574*** Warning: the command libtool uses to detect shared libraries,
7575*** $file_magic_cmd, produces output that libtool cannot recognize.
7576*** The result is that libtool may fail to recognize shared libraries
7577*** as such. This will affect the creation of libtool libraries that
7578*** depend on shared libraries, but programs linked with such libtool
7579*** libraries will work regardless of this problem. Nevertheless, you
7580*** may want to report the problem to your system manager and/or to
7581*** bug-libtool@gnu.org
7582
7583_LT_EOF
7584 fi ;;
7585 esac
7586 fi
7587 break
7588 fi
7589 done
7590 IFS="$lt_save_ifs"
7591 MAGIC_CMD="$lt_save_MAGIC_CMD"
7592 ;;
7593esac
7594fi
7595
7596MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7597if test -n "$MAGIC_CMD"; then
7598 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7599$as_echo "$MAGIC_CMD" >&6; }
7600else
7601 { $as_echo "$as_me:$LINENO: result: no" >&5
7602$as_echo "no" >&6; }
7603fi
7604
7605
7606 else
7607 MAGIC_CMD=:
7608 fi
7609fi
7610
7611 fi
7612 ;;
7613esac
7614
7615# Use C for the default configuration in the libtool script
7616
7617lt_save_CC="$CC"
7618ac_ext=c
7619ac_cpp='$CPP $CPPFLAGS'
7620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7622ac_compiler_gnu=$ac_cv_c_compiler_gnu
7623
7624
7625# Source file extension for C test sources.
7626ac_ext=c
7627
7628# Object file extension for compiled C test sources.
7629objext=o
7630objext=$objext
7631
7632# Code to be used in simple compile tests
7633lt_simple_compile_test_code="int some_variable = 0;"
7634
7635# Code to be used in simple link tests
7636lt_simple_link_test_code='int main(){return(0);}'
7637
7638
7639
7640
7641
7642
7643
7644# If no C compiler was specified, use CC.
7645LTCC=${LTCC-"$CC"}
7646
7647# If no C compiler flags were specified, use CFLAGS.
7648LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7649
7650# Allow CC to be a program name with arguments.
7651compiler=$CC
7652
7653# Save the default compiler, since it gets overwritten when the other
7654# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7655compiler_DEFAULT=$CC
7656
7657# save warnings/boilerplate of simple test code
7658ac_outfile=conftest.$ac_objext
7659echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7660eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7661_lt_compiler_boilerplate=`cat conftest.err`
7662$RM conftest*
7663
7664ac_outfile=conftest.$ac_objext
7665echo "$lt_simple_link_test_code" >conftest.$ac_ext
7666eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7667_lt_linker_boilerplate=`cat conftest.err`
7668$RM -r conftest*
7669
7670
7671if test -n "$compiler"; then
7672
7673lt_prog_compiler_no_builtin_flag=
7674
7675if test "$GCC" = yes; then
7676 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7677
7678 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7679$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7680if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7681 $as_echo_n "(cached) " >&6
7682else
7683 lt_cv_prog_compiler_rtti_exceptions=no
7684 ac_outfile=conftest.$ac_objext
7685 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7686 lt_compiler_flag="-fno-rtti -fno-exceptions"
7687 # Insert the option either (1) after the last *FLAGS variable, or
7688 # (2) before a word containing "conftest.", or (3) at the end.
7689 # Note that $ac_compile itself does not contain backslashes and begins
7690 # with a dollar sign (not a hyphen), so the echo should work correctly.
7691 # The option is referenced via a variable to avoid confusing sed.
7692 lt_compile=`echo "$ac_compile" | $SED \
7693 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7694 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7695 -e 's:$: $lt_compiler_flag:'`
7696 (eval echo "\"\$as_me:7696: $lt_compile\"" >&5)
7697 (eval "$lt_compile" 2>conftest.err)
7698 ac_status=$?
7699 cat conftest.err >&5
7700 echo "$as_me:7700: \$? = $ac_status" >&5
7701 if (exit $ac_status) && test -s "$ac_outfile"; then
7702 # The compiler can only warn and ignore the option if not recognized
7703 # So say no if there are warnings other than the usual output.
7704 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7705 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7706 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7707 lt_cv_prog_compiler_rtti_exceptions=yes
7708 fi
7709 fi
7710 $RM conftest*
7711
7712fi
7713{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7714$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7715
7716if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7717 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7718else
7719 :
7720fi
7721
7722fi
7723
7724
7725
7726
7727
7728
7729 lt_prog_compiler_wl=
7730lt_prog_compiler_pic=
7731lt_prog_compiler_static=
7732
7733{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7734$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7735
7736 if test "$GCC" = yes; then
7737 lt_prog_compiler_wl='-Wl,'
7738 lt_prog_compiler_static='-static'
7739
7740 case $host_os in
7741 aix*)
7742 # All AIX code is PIC.
7743 if test "$host_cpu" = ia64; then
7744 # AIX 5 now supports IA64 processor
7745 lt_prog_compiler_static='-Bstatic'
7746 fi
7747 ;;
7748
7749 amigaos*)
7750 case $host_cpu in
7751 powerpc)
7752 # see comment about AmigaOS4 .so support
7753 lt_prog_compiler_pic='-fPIC'
7754 ;;
7755 m68k)
7756 # FIXME: we need at least 68020 code to build shared libraries, but
7757 # adding the `-m68020' flag to GCC prevents building anything better,
7758 # like `-m68040'.
7759 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7760 ;;
7761 esac
7762 ;;
7763
7764 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7765 # PIC is the default for these OSes.
7766 ;;
7767
7768 mingw* | cygwin* | pw32* | os2*)
7769 # This hack is so that the source file can tell whether it is being
7770 # built for inclusion in a dll (and should export symbols for example).
7771 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7772 # (--disable-auto-import) libraries
7773 lt_prog_compiler_pic='-DDLL_EXPORT'
7774 ;;
7775
7776 darwin* | rhapsody*)
7777 # PIC is the default on this platform
7778 # Common symbols not allowed in MH_DYLIB files
7779 lt_prog_compiler_pic='-fno-common'
7780 ;;
7781
7782 hpux*)
7783 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7784 # not for PA HP-UX.
7785 case $host_cpu in
7786 hppa*64*|ia64*)
7787 # +Z the default
7788 ;;
7789 *)
7790 lt_prog_compiler_pic='-fPIC'
7791 ;;
7792 esac
7793 ;;
7794
7795 interix[3-9]*)
7796 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7797 # Instead, we relocate shared libraries at runtime.
7798 ;;
7799
7800 msdosdjgpp*)
7801 # Just because we use GCC doesn't mean we suddenly get shared libraries
7802 # on systems that don't support them.
7803 lt_prog_compiler_can_build_shared=no
7804 enable_shared=no
7805 ;;
7806
7807 *nto* | *qnx*)
7808 # QNX uses GNU C++, but need to define -shared option too, otherwise
7809 # it will coredump.
7810 lt_prog_compiler_pic='-fPIC -shared'
7811 ;;
7812
7813 sysv4*MP*)
7814 if test -d /usr/nec; then
7815 lt_prog_compiler_pic=-Kconform_pic
7816 fi
7817 ;;
7818
7819 *)
7820 lt_prog_compiler_pic='-fPIC'
7821 ;;
7822 esac
7823 else
7824 # PORTME Check for flag to pass linker flags through the system compiler.
7825 case $host_os in
7826 aix*)
7827 lt_prog_compiler_wl='-Wl,'
7828 if test "$host_cpu" = ia64; then
7829 # AIX 5 now supports IA64 processor
7830 lt_prog_compiler_static='-Bstatic'
7831 else
7832 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7833 fi
7834 ;;
7835
7836 mingw* | cygwin* | pw32* | os2*)
7837 # This hack is so that the source file can tell whether it is being
7838 # built for inclusion in a dll (and should export symbols for example).
7839 lt_prog_compiler_pic='-DDLL_EXPORT'
7840 ;;
7841
7842 hpux9* | hpux10* | hpux11*)
7843 lt_prog_compiler_wl='-Wl,'
7844 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7845 # not for PA HP-UX.
7846 case $host_cpu in
7847 hppa*64*|ia64*)
7848 # +Z the default
7849 ;;
7850 *)
7851 lt_prog_compiler_pic='+Z'
7852 ;;
7853 esac
7854 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7855 lt_prog_compiler_static='${wl}-a ${wl}archive'
7856 ;;
7857
7858 irix5* | irix6* | nonstopux*)
7859 lt_prog_compiler_wl='-Wl,'
7860 # PIC (with -KPIC) is the default.
7861 lt_prog_compiler_static='-non_shared'
7862 ;;
7863
7864 linux* | k*bsd*-gnu)
7865 case $cc_basename in
7866 icc* | ecc* | ifort*)
7867 lt_prog_compiler_wl='-Wl,'
7868 lt_prog_compiler_pic='-KPIC'
7869 lt_prog_compiler_static='-static'
7870 ;;
7871 pgcc* | pgf77* | pgf90* | pgf95*)
7872 # Portland Group compilers (*not* the Pentium gcc compiler,
7873 # which looks to be a dead project)
7874 lt_prog_compiler_wl='-Wl,'
7875 lt_prog_compiler_pic='-fpic'
7876 lt_prog_compiler_static='-Bstatic'
7877 ;;
7878 ccc*)
7879 lt_prog_compiler_wl='-Wl,'
7880 # All Alpha code is PIC.
7881 lt_prog_compiler_static='-non_shared'
7882 ;;
7883 xl*)
7884 # IBM XL C 8.0/Fortran 10.1 on PPC
7885 lt_prog_compiler_wl='-Wl,'
7886 lt_prog_compiler_pic='-qpic'
7887 lt_prog_compiler_static='-qstaticlink'
7888 ;;
7889 *)
7890 case `$CC -V 2>&1 | sed 5q` in
7891 *Sun\ C*)
7892 # Sun C 5.9
7893 lt_prog_compiler_pic='-KPIC'
7894 lt_prog_compiler_static='-Bstatic'
7895 lt_prog_compiler_wl='-Wl,'
7896 ;;
7897 *Sun\ F*)
7898 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7899 lt_prog_compiler_pic='-KPIC'
7900 lt_prog_compiler_static='-Bstatic'
7901 lt_prog_compiler_wl=''
7902 ;;
7903 esac
7904 ;;
7905 esac
7906 ;;
7907
7908 newsos6)
7909 lt_prog_compiler_pic='-KPIC'
7910 lt_prog_compiler_static='-Bstatic'
7911 ;;
7912
7913 *nto* | *qnx*)
7914 # QNX uses GNU C++, but need to define -shared option too, otherwise
7915 # it will coredump.
7916 lt_prog_compiler_pic='-fPIC -shared'
7917 ;;
7918
7919 osf3* | osf4* | osf5*)
7920 lt_prog_compiler_wl='-Wl,'
7921 # All OSF/1 code is PIC.
7922 lt_prog_compiler_static='-non_shared'
7923 ;;
7924
7925 rdos*)
7926 lt_prog_compiler_static='-non_shared'
7927 ;;
7928
7929 solaris*)
7930 lt_prog_compiler_pic='-KPIC'
7931 lt_prog_compiler_static='-Bstatic'
7932 case $cc_basename in
7933 f77* | f90* | f95*)
7934 lt_prog_compiler_wl='-Qoption ld ';;
7935 *)
7936 lt_prog_compiler_wl='-Wl,';;
7937 esac
7938 ;;
7939
7940 sunos4*)
7941 lt_prog_compiler_wl='-Qoption ld '
7942 lt_prog_compiler_pic='-PIC'
7943 lt_prog_compiler_static='-Bstatic'
7944 ;;
7945
7946 sysv4 | sysv4.2uw2* | sysv4.3*)
7947 lt_prog_compiler_wl='-Wl,'
7948 lt_prog_compiler_pic='-KPIC'
7949 lt_prog_compiler_static='-Bstatic'
7950 ;;
7951
7952 sysv4*MP*)
7953 if test -d /usr/nec ;then
7954 lt_prog_compiler_pic='-Kconform_pic'
7955 lt_prog_compiler_static='-Bstatic'
7956 fi
7957 ;;
7958
7959 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7960 lt_prog_compiler_wl='-Wl,'
7961 lt_prog_compiler_pic='-KPIC'
7962 lt_prog_compiler_static='-Bstatic'
7963 ;;
7964
7965 unicos*)
7966 lt_prog_compiler_wl='-Wl,'
7967 lt_prog_compiler_can_build_shared=no
7968 ;;
7969
7970 uts4*)
7971 lt_prog_compiler_pic='-pic'
7972 lt_prog_compiler_static='-Bstatic'
7973 ;;
7974
7975 *)
7976 lt_prog_compiler_can_build_shared=no
7977 ;;
7978 esac
7979 fi
7980
7981case $host_os in
7982 # For platforms which do not support PIC, -DPIC is meaningless:
7983 *djgpp*)
7984 lt_prog_compiler_pic=
7985 ;;
7986 *)
7987 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7988 ;;
7989esac
7990{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7991$as_echo "$lt_prog_compiler_pic" >&6; }
7992
7993
7994
7995
7996
7997
7998#
7999# Check to make sure the PIC flag actually works.
8000#
8001if test -n "$lt_prog_compiler_pic"; then
8002 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8003$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8004if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8005 $as_echo_n "(cached) " >&6
8006else
8007 lt_cv_prog_compiler_pic_works=no
8008 ac_outfile=conftest.$ac_objext
8009 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8010 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8011 # Insert the option either (1) after the last *FLAGS variable, or
8012 # (2) before a word containing "conftest.", or (3) at the end.
8013 # Note that $ac_compile itself does not contain backslashes and begins
8014 # with a dollar sign (not a hyphen), so the echo should work correctly.
8015 # The option is referenced via a variable to avoid confusing sed.
8016 lt_compile=`echo "$ac_compile" | $SED \
8017 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8018 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8019 -e 's:$: $lt_compiler_flag:'`
8020 (eval echo "\"\$as_me:8020: $lt_compile\"" >&5)
8021 (eval "$lt_compile" 2>conftest.err)
8022 ac_status=$?
8023 cat conftest.err >&5
8024 echo "$as_me:8024: \$? = $ac_status" >&5
8025 if (exit $ac_status) && test -s "$ac_outfile"; then
8026 # The compiler can only warn and ignore the option if not recognized
8027 # So say no if there are warnings other than the usual output.
8028 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8029 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8030 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8031 lt_cv_prog_compiler_pic_works=yes
8032 fi
8033 fi
8034 $RM conftest*
8035
8036fi
8037{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8038$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8039
8040if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8041 case $lt_prog_compiler_pic in
8042 "" | " "*) ;;
8043 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8044 esac
8045else
8046 lt_prog_compiler_pic=
8047 lt_prog_compiler_can_build_shared=no
8048fi
8049
8050fi
8051
8052
8053
8054
8055
8056
8057#
8058# Check to make sure the static flag actually works.
8059#
8060wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8061{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8062$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8063if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8064 $as_echo_n "(cached) " >&6
8065else
8066 lt_cv_prog_compiler_static_works=no
8067 save_LDFLAGS="$LDFLAGS"
8068 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8069 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8070 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8071 # The linker can only warn and ignore the option if not recognized
8072 # So say no if there are warnings
8073 if test -s conftest.err; then
8074 # Append any errors to the config.log.
8075 cat conftest.err 1>&5
8076 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8077 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8078 if diff conftest.exp conftest.er2 >/dev/null; then
8079 lt_cv_prog_compiler_static_works=yes
8080 fi
8081 else
8082 lt_cv_prog_compiler_static_works=yes
8083 fi
8084 fi
8085 $RM -r conftest*
8086 LDFLAGS="$save_LDFLAGS"
8087
8088fi
8089{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8090$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8091
8092if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8093 :
8094else
8095 lt_prog_compiler_static=
8096fi
8097
8098
8099
8100
8101
8102
8103
8104 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8105$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8106if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8107 $as_echo_n "(cached) " >&6
8108else
8109 lt_cv_prog_compiler_c_o=no
8110 $RM -r conftest 2>/dev/null
8111 mkdir conftest
8112 cd conftest
8113 mkdir out
8114 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8115
8116 lt_compiler_flag="-o out/conftest2.$ac_objext"
8117 # Insert the option either (1) after the last *FLAGS variable, or
8118 # (2) before a word containing "conftest.", or (3) at the end.
8119 # Note that $ac_compile itself does not contain backslashes and begins
8120 # with a dollar sign (not a hyphen), so the echo should work correctly.
8121 lt_compile=`echo "$ac_compile" | $SED \
8122 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8123 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8124 -e 's:$: $lt_compiler_flag:'`
8125 (eval echo "\"\$as_me:8125: $lt_compile\"" >&5)
8126 (eval "$lt_compile" 2>out/conftest.err)
8127 ac_status=$?
8128 cat out/conftest.err >&5
8129 echo "$as_me:8129: \$? = $ac_status" >&5
8130 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8131 then
8132 # The compiler can only warn and ignore the option if not recognized
8133 # So say no if there are warnings
8134 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8135 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8136 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8137 lt_cv_prog_compiler_c_o=yes
8138 fi
8139 fi
8140 chmod u+w . 2>&5
8141 $RM conftest*
8142 # SGI C++ compiler will create directory out/ii_files/ for
8143 # template instantiation
8144 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8145 $RM out/* && rmdir out
8146 cd ..
8147 $RM -r conftest
8148 $RM conftest*
8149
8150fi
8151{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8152$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8153
8154
8155
8156
8157
8158
8159 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8160$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8161if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8162 $as_echo_n "(cached) " >&6
8163else
8164 lt_cv_prog_compiler_c_o=no
8165 $RM -r conftest 2>/dev/null
8166 mkdir conftest
8167 cd conftest
8168 mkdir out
8169 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8170
8171 lt_compiler_flag="-o out/conftest2.$ac_objext"
8172 # Insert the option either (1) after the last *FLAGS variable, or
8173 # (2) before a word containing "conftest.", or (3) at the end.
8174 # Note that $ac_compile itself does not contain backslashes and begins
8175 # with a dollar sign (not a hyphen), so the echo should work correctly.
8176 lt_compile=`echo "$ac_compile" | $SED \
8177 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8178 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8179 -e 's:$: $lt_compiler_flag:'`
8180 (eval echo "\"\$as_me:8180: $lt_compile\"" >&5)
8181 (eval "$lt_compile" 2>out/conftest.err)
8182 ac_status=$?
8183 cat out/conftest.err >&5
8184 echo "$as_me:8184: \$? = $ac_status" >&5
8185 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8186 then
8187 # The compiler can only warn and ignore the option if not recognized
8188 # So say no if there are warnings
8189 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8190 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8191 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8192 lt_cv_prog_compiler_c_o=yes
8193 fi
8194 fi
8195 chmod u+w . 2>&5
8196 $RM conftest*
8197 # SGI C++ compiler will create directory out/ii_files/ for
8198 # template instantiation
8199 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8200 $RM out/* && rmdir out
8201 cd ..
8202 $RM -r conftest
8203 $RM conftest*
8204
8205fi
8206{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8207$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8208
8209
8210
8211
8212hard_links="nottested"
8213if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8214 # do not overwrite the value of need_locks provided by the user
8215 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8216$as_echo_n "checking if we can lock with hard links... " >&6; }
8217 hard_links=yes
8218 $RM conftest*
8219 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8220 touch conftest.a
8221 ln conftest.a conftest.b 2>&5 || hard_links=no
8222 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8223 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8224$as_echo "$hard_links" >&6; }
8225 if test "$hard_links" = no; then
8226 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8227$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8228 need_locks=warn
8229 fi
8230else
8231 need_locks=no
8232fi
8233
8234
8235
8236
8237
8238
8239 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8240$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8241
8242 runpath_var=
8243 allow_undefined_flag=
8244 always_export_symbols=no
8245 archive_cmds=
8246 archive_expsym_cmds=
8247 compiler_needs_object=no
8248 enable_shared_with_static_runtimes=no
8249 export_dynamic_flag_spec=
8250 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8251 hardcode_automatic=no
8252 hardcode_direct=no
8253 hardcode_direct_absolute=no
8254 hardcode_libdir_flag_spec=
8255 hardcode_libdir_flag_spec_ld=
8256 hardcode_libdir_separator=
8257 hardcode_minus_L=no
8258 hardcode_shlibpath_var=unsupported
8259 inherit_rpath=no
8260 link_all_deplibs=unknown
8261 module_cmds=
8262 module_expsym_cmds=
8263 old_archive_from_new_cmds=
8264 old_archive_from_expsyms_cmds=
8265 thread_safe_flag_spec=
8266 whole_archive_flag_spec=
8267 # include_expsyms should be a list of space-separated symbols to be *always*
8268 # included in the symbol list
8269 include_expsyms=
8270 # exclude_expsyms can be an extended regexp of symbols to exclude
8271 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8272 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8273 # as well as any symbol that contains `d'.
8274 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8275 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8276 # platforms (ab)use it in PIC code, but their linkers get confused if
8277 # the symbol is explicitly referenced. Since portable code cannot
8278 # rely on this symbol name, it's probably fine to never include it in
8279 # preloaded symbol tables.
8280 # Exclude shared library initialization/finalization symbols.
8281 extract_expsyms_cmds=
8282
8283 case $host_os in
8284 cygwin* | mingw* | pw32*)
8285 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8286 # When not using gcc, we currently assume that we are using
8287 # Microsoft Visual C++.
8288 if test "$GCC" != yes; then
8289 with_gnu_ld=no
8290 fi
8291 ;;
8292 interix*)
8293 # we just hope/assume this is gcc and not c89 (= MSVC++)
8294 with_gnu_ld=yes
8295 ;;
8296 openbsd*)
8297 with_gnu_ld=no
8298 ;;
8299 esac
8300
8301 ld_shlibs=yes
8302 if test "$with_gnu_ld" = yes; then
8303 # If archive_cmds runs LD, not CC, wlarc should be empty
8304 wlarc='${wl}'
8305
8306 # Set some defaults for GNU ld with shared library support. These
8307 # are reset later if shared libraries are not supported. Putting them
8308 # here allows them to be overridden if necessary.
8309 runpath_var=LD_RUN_PATH
8310 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8311 export_dynamic_flag_spec='${wl}--export-dynamic'
8312 # ancient GNU ld didn't support --whole-archive et. al.
8313 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8314 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8315 else
8316 whole_archive_flag_spec=
8317 fi
8318 supports_anon_versioning=no
8319 case `$LD -v 2>&1` in
8320 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8321 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8322 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8323 *\ 2.11.*) ;; # other 2.11 versions
8324 *) supports_anon_versioning=yes ;;
8325 esac
8326
8327 # See if GNU ld supports shared libraries.
8328 case $host_os in
8329 aix[3-9]*)
8330 # On AIX/PPC, the GNU linker is very broken
8331 if test "$host_cpu" != ia64; then
8332 ld_shlibs=no
8333 cat <<_LT_EOF 1>&2
8334
8335*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8336*** to be unable to reliably create shared libraries on AIX.
8337*** Therefore, libtool is disabling shared libraries support. If you
8338*** really care for shared libraries, you may want to modify your PATH
8339*** so that a non-GNU linker is found, and then restart.
8340
8341_LT_EOF
8342 fi
8343 ;;
8344
8345 amigaos*)
8346 case $host_cpu in
8347 powerpc)
8348 # see comment about AmigaOS4 .so support
8349 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8350 archive_expsym_cmds=''
8351 ;;
8352 m68k)
8353 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)'
8354 hardcode_libdir_flag_spec='-L$libdir'
8355 hardcode_minus_L=yes
8356 ;;
8357 esac
8358 ;;
8359
8360 beos*)
8361 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8362 allow_undefined_flag=unsupported
8363 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8364 # support --undefined. This deserves some investigation. FIXME
8365 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8366 else
8367 ld_shlibs=no
8368 fi
8369 ;;
8370
8371 cygwin* | mingw* | pw32*)
8372 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8373 # as there is no search path for DLLs.
8374 hardcode_libdir_flag_spec='-L$libdir'
8375 allow_undefined_flag=unsupported
8376 always_export_symbols=no
8377 enable_shared_with_static_runtimes=yes
8378 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8379
8380 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8381 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8382 # If the export-symbols file already is a .def file (1st line
8383 # is EXPORTS), use it as is; otherwise, prepend...
8384 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8385 cp $export_symbols $output_objdir/$soname.def;
8386 else
8387 echo EXPORTS > $output_objdir/$soname.def;
8388 cat $export_symbols >> $output_objdir/$soname.def;
8389 fi~
8390 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8391 else
8392 ld_shlibs=no
8393 fi
8394 ;;
8395
8396 interix[3-9]*)
8397 hardcode_direct=no
8398 hardcode_shlibpath_var=no
8399 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8400 export_dynamic_flag_spec='${wl}-E'
8401 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8402 # Instead, shared libraries are loaded at an image base (0x10000000 by
8403 # default) and relocated if they conflict, which is a slow very memory
8404 # consuming and fragmenting process. To avoid this, we pick a random,
8405 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8406 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8407 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8408 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'
8409 ;;
8410
8411 gnu* | linux* | tpf* | k*bsd*-gnu)
8412 tmp_diet=no
8413 if test "$host_os" = linux-dietlibc; then
8414 case $cc_basename in
8415 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8416 esac
8417 fi
8418 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8419 && test "$tmp_diet" = no
8420 then
8421 tmp_addflag=
8422 tmp_sharedflag='-shared'
8423 case $cc_basename,$host_cpu in
8424 pgcc*) # Portland Group C compiler
8425 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8426 tmp_addflag=' $pic_flag'
8427 ;;
8428 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8429 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8430 tmp_addflag=' $pic_flag -Mnomain' ;;
8431 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8432 tmp_addflag=' -i_dynamic' ;;
8433 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8434 tmp_addflag=' -i_dynamic -nofor_main' ;;
8435 ifc* | ifort*) # Intel Fortran compiler
8436 tmp_addflag=' -nofor_main' ;;
8437 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8438 tmp_sharedflag='-qmkshrobj'
8439 tmp_addflag= ;;
8440 esac
8441 case `$CC -V 2>&1 | sed 5q` in
8442 *Sun\ C*) # Sun C 5.9
8443 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8444 compiler_needs_object=yes
8445 tmp_sharedflag='-G' ;;
8446 *Sun\ F*) # Sun Fortran 8.3
8447 tmp_sharedflag='-G' ;;
8448 esac
8449 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8450
8451 if test "x$supports_anon_versioning" = xyes; then
8452 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8453 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8454 echo "local: *; };" >> $output_objdir/$libname.ver~
8455 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8456 fi
8457
8458 case $cc_basename in
8459 xlf*)
8460 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8461 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8462 hardcode_libdir_flag_spec=
8463 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8464 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8465 if test "x$supports_anon_versioning" = xyes; then
8466 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8467 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8468 echo "local: *; };" >> $output_objdir/$libname.ver~
8469 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8470 fi
8471 ;;
8472 esac
8473 else
8474 ld_shlibs=no
8475 fi
8476 ;;
8477
8478 netbsd*)
8479 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8480 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8481 wlarc=
8482 else
8483 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8484 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8485 fi
8486 ;;
8487
8488 solaris*)
8489 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8490 ld_shlibs=no
8491 cat <<_LT_EOF 1>&2
8492
8493*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8494*** create shared libraries on Solaris systems. Therefore, libtool
8495*** is disabling shared libraries support. We urge you to upgrade GNU
8496*** binutils to release 2.9.1 or newer. Another option is to modify
8497*** your PATH or compiler configuration so that the native linker is
8498*** used, and then restart.
8499
8500_LT_EOF
8501 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8502 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8503 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8504 else
8505 ld_shlibs=no
8506 fi
8507 ;;
8508
8509 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8510 case `$LD -v 2>&1` in
8511 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8512 ld_shlibs=no
8513 cat <<_LT_EOF 1>&2
8514
8515*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8516*** reliably create shared libraries on SCO systems. Therefore, libtool
8517*** is disabling shared libraries support. We urge you to upgrade GNU
8518*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8519*** your PATH or compiler configuration so that the native linker is
8520*** used, and then restart.
8521
8522_LT_EOF
8523 ;;
8524 *)
8525 # For security reasons, it is highly recommended that you always
8526 # use absolute paths for naming shared libraries, and exclude the
8527 # DT_RUNPATH tag from executables and libraries. But doing so
8528 # requires that you compile everything twice, which is a pain.
8529 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8530 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8531 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8532 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8533 else
8534 ld_shlibs=no
8535 fi
8536 ;;
8537 esac
8538 ;;
8539
8540 sunos4*)
8541 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8542 wlarc=
8543 hardcode_direct=yes
8544 hardcode_shlibpath_var=no
8545 ;;
8546
8547 *)
8548 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8549 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8550 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8551 else
8552 ld_shlibs=no
8553 fi
8554 ;;
8555 esac
8556
8557 if test "$ld_shlibs" = no; then
8558 runpath_var=
8559 hardcode_libdir_flag_spec=
8560 export_dynamic_flag_spec=
8561 whole_archive_flag_spec=
8562 fi
8563 else
8564 # PORTME fill in a description of your system's linker (not GNU ld)
8565 case $host_os in
8566 aix3*)
8567 allow_undefined_flag=unsupported
8568 always_export_symbols=yes
8569 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'
8570 # Note: this linker hardcodes the directories in LIBPATH if there
8571 # are no directories specified by -L.
8572 hardcode_minus_L=yes
8573 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8574 # Neither direct hardcoding nor static linking is supported with a
8575 # broken collect2.
8576 hardcode_direct=unsupported
8577 fi
8578 ;;
8579
8580 aix[4-9]*)
8581 if test "$host_cpu" = ia64; then
8582 # On IA64, the linker does run time linking by default, so we don't
8583 # have to do anything special.
8584 aix_use_runtimelinking=no
8585 exp_sym_flag='-Bexport'
8586 no_entry_flag=""
8587 else
8588 # If we're using GNU nm, then we don't want the "-C" option.
8589 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8590 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8591 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8592 else
8593 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8594 fi
8595 aix_use_runtimelinking=no
8596
8597 # Test if we are trying to use run time linking or normal
8598 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8599 # need to do runtime linking.
8600 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8601 for ld_flag in $LDFLAGS; do
8602 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8603 aix_use_runtimelinking=yes
8604 break
8605 fi
8606 done
8607 ;;
8608 esac
8609
8610 exp_sym_flag='-bexport'
8611 no_entry_flag='-bnoentry'
8612 fi
8613
8614 # When large executables or shared objects are built, AIX ld can
8615 # have problems creating the table of contents. If linking a library
8616 # or program results in "error TOC overflow" add -mminimal-toc to
8617 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8618 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8619
8620 archive_cmds=''
8621 hardcode_direct=yes
8622 hardcode_direct_absolute=yes
8623 hardcode_libdir_separator=':'
8624 link_all_deplibs=yes
8625 file_list_spec='${wl}-f,'
8626
8627 if test "$GCC" = yes; then
8628 case $host_os in aix4.[012]|aix4.[012].*)
8629 # We only want to do this on AIX 4.2 and lower, the check
8630 # below for broken collect2 doesn't work under 4.3+
8631 collect2name=`${CC} -print-prog-name=collect2`
8632 if test -f "$collect2name" &&
8633 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8634 then
8635 # We have reworked collect2
8636 :
8637 else
8638 # We have old collect2
8639 hardcode_direct=unsupported
8640 # It fails to find uninstalled libraries when the uninstalled
8641 # path is not listed in the libpath. Setting hardcode_minus_L
8642 # to unsupported forces relinking
8643 hardcode_minus_L=yes
8644 hardcode_libdir_flag_spec='-L$libdir'
8645 hardcode_libdir_separator=
8646 fi
8647 ;;
8648 esac
8649 shared_flag='-shared'
8650 if test "$aix_use_runtimelinking" = yes; then
8651 shared_flag="$shared_flag "'${wl}-G'
8652 fi
8653 else
8654 # not using gcc
8655 if test "$host_cpu" = ia64; then
8656 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8657 # chokes on -Wl,-G. The following line is correct:
8658 shared_flag='-G'
8659 else
8660 if test "$aix_use_runtimelinking" = yes; then
8661 shared_flag='${wl}-G'
8662 else
8663 shared_flag='${wl}-bM:SRE'
8664 fi
8665 fi
8666 fi
8667
8668 # It seems that -bexpall does not export symbols beginning with
8669 # underscore (_), so it is better to generate a list of symbols to export.
8670 always_export_symbols=yes
8671 if test "$aix_use_runtimelinking" = yes; then
8672 # Warning - without using the other runtime loading flags (-brtl),
8673 # -berok will link without error, but may produce a broken library.
8674 allow_undefined_flag='-berok'
8675 # Determine the default libpath from the value encoded in an
8676 # empty executable.
8677 cat >conftest.$ac_ext <<_ACEOF
8678/* confdefs.h. */
8679_ACEOF
8680cat confdefs.h >>conftest.$ac_ext
8681cat >>conftest.$ac_ext <<_ACEOF
8682/* end confdefs.h. */
8683
8684int
8685main ()
8686{
8687
8688 ;
8689 return 0;
8690}
8691_ACEOF
8692rm -f conftest.$ac_objext conftest$ac_exeext
8693if { (ac_try="$ac_link"
8694case "(($ac_try" in
8695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8696 *) ac_try_echo=$ac_try;;
8697esac
8698eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8699$as_echo "$ac_try_echo") >&5
8700 (eval "$ac_link") 2>conftest.er1
8701 ac_status=$?
8702 grep -v '^ *+' conftest.er1 >conftest.err
8703 rm -f conftest.er1
8704 cat conftest.err >&5
8705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } && {
8707 test -z "$ac_c_werror_flag" ||
8708 test ! -s conftest.err
8709 } && test -s conftest$ac_exeext && {
8710 test "$cross_compiling" = yes ||
8711 $as_test_x conftest$ac_exeext
8712 }; then
8713
8714lt_aix_libpath_sed='
8715 /Import File Strings/,/^$/ {
8716 /^0/ {
8717 s/^0 *\(.*\)$/\1/
8718 p
8719 }
8720 }'
8721aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8722# Check for a 64-bit object if we didn't find anything.
8723if test -z "$aix_libpath"; then
8724 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8725fi
8726else
8727 $as_echo "$as_me: failed program was:" >&5
8728sed 's/^/| /' conftest.$ac_ext >&5
8729
8730
8731fi
8732
8733rm -rf conftest.dSYM
8734rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8735 conftest$ac_exeext conftest.$ac_ext
8736if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8737
8738 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8739 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8740 else
8741 if test "$host_cpu" = ia64; then
8742 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8743 allow_undefined_flag="-z nodefs"
8744 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"
8745 else
8746 # Determine the default libpath from the value encoded in an
8747 # empty executable.
8748 cat >conftest.$ac_ext <<_ACEOF
8749/* confdefs.h. */
8750_ACEOF
8751cat confdefs.h >>conftest.$ac_ext
8752cat >>conftest.$ac_ext <<_ACEOF
8753/* end confdefs.h. */
8754
8755int
8756main ()
8757{
8758
8759 ;
8760 return 0;
8761}
8762_ACEOF
8763rm -f conftest.$ac_objext conftest$ac_exeext
8764if { (ac_try="$ac_link"
8765case "(($ac_try" in
8766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8767 *) ac_try_echo=$ac_try;;
8768esac
8769eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8770$as_echo "$ac_try_echo") >&5
8771 (eval "$ac_link") 2>conftest.er1
8772 ac_status=$?
8773 grep -v '^ *+' conftest.er1 >conftest.err
8774 rm -f conftest.er1
8775 cat conftest.err >&5
8776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); } && {
8778 test -z "$ac_c_werror_flag" ||
8779 test ! -s conftest.err
8780 } && test -s conftest$ac_exeext && {
8781 test "$cross_compiling" = yes ||
8782 $as_test_x conftest$ac_exeext
8783 }; then
8784
8785lt_aix_libpath_sed='
8786 /Import File Strings/,/^$/ {
8787 /^0/ {
8788 s/^0 *\(.*\)$/\1/
8789 p
8790 }
8791 }'
8792aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8793# Check for a 64-bit object if we didn't find anything.
8794if test -z "$aix_libpath"; then
8795 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8796fi
8797else
8798 $as_echo "$as_me: failed program was:" >&5
8799sed 's/^/| /' conftest.$ac_ext >&5
8800
8801
8802fi
8803
8804rm -rf conftest.dSYM
8805rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8806 conftest$ac_exeext conftest.$ac_ext
8807if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8808
8809 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8810 # Warning - without using the other run time loading flags,
8811 # -berok will link without error, but may produce a broken library.
8812 no_undefined_flag=' ${wl}-bernotok'
8813 allow_undefined_flag=' ${wl}-berok'
8814 # Exported symbols can be pulled into shared objects from archives
8815 whole_archive_flag_spec='$convenience'
8816 archive_cmds_need_lc=yes
8817 # This is similar to how AIX traditionally builds its shared libraries.
8818 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8819 fi
8820 fi
8821 ;;
8822
8823 amigaos*)
8824 case $host_cpu in
8825 powerpc)
8826 # see comment about AmigaOS4 .so support
8827 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8828 archive_expsym_cmds=''
8829 ;;
8830 m68k)
8831 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)'
8832 hardcode_libdir_flag_spec='-L$libdir'
8833 hardcode_minus_L=yes
8834 ;;
8835 esac
8836 ;;
8837
8838 bsdi[45]*)
8839 export_dynamic_flag_spec=-rdynamic
8840 ;;
8841
8842 cygwin* | mingw* | pw32*)
8843 # When not using gcc, we currently assume that we are using
8844 # Microsoft Visual C++.
8845 # hardcode_libdir_flag_spec is actually meaningless, as there is
8846 # no search path for DLLs.
8847 hardcode_libdir_flag_spec=' '
8848 allow_undefined_flag=unsupported
8849 # Tell ltmain to make .lib files, not .a files.
8850 libext=lib
8851 # Tell ltmain to make .dll files, not .so files.
8852 shrext_cmds=".dll"
8853 # FIXME: Setting linknames here is a bad hack.
8854 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8855 # The linker will automatically build a .lib file if we build a DLL.
8856 old_archive_from_new_cmds='true'
8857 # FIXME: Should let the user specify the lib program.
8858 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8859 fix_srcfile_path='`cygpath -w "$srcfile"`'
8860 enable_shared_with_static_runtimes=yes
8861 ;;
8862
8863 darwin* | rhapsody*)
8864
8865
8866 archive_cmds_need_lc=no
8867 hardcode_direct=no
8868 hardcode_automatic=yes
8869 hardcode_shlibpath_var=unsupported
8870 whole_archive_flag_spec=''
8871 link_all_deplibs=yes
8872 allow_undefined_flag="$_lt_dar_allow_undefined"
8873 if test "$GCC" = "yes"; then
8874 output_verbose_link_cmd=echo
8875 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8876 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8877 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}"
8878 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}"
8879
8880 else
8881 ld_shlibs=no
8882 fi
8883
8884 ;;
8885
8886 dgux*)
8887 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8888 hardcode_libdir_flag_spec='-L$libdir'
8889 hardcode_shlibpath_var=no
8890 ;;
8891
8892 freebsd1*)
8893 ld_shlibs=no
8894 ;;
8895
8896 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8897 # support. Future versions do this automatically, but an explicit c++rt0.o
8898 # does not break anything, and helps significantly (at the cost of a little
8899 # extra space).
8900 freebsd2.2*)
8901 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8902 hardcode_libdir_flag_spec='-R$libdir'
8903 hardcode_direct=yes
8904 hardcode_shlibpath_var=no
8905 ;;
8906
8907 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8908 freebsd2*)
8909 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8910 hardcode_direct=yes
8911 hardcode_minus_L=yes
8912 hardcode_shlibpath_var=no
8913 ;;
8914
8915 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8916 freebsd* | dragonfly*)
8917 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8918 hardcode_libdir_flag_spec='-R$libdir'
8919 hardcode_direct=yes
8920 hardcode_shlibpath_var=no
8921 ;;
8922
8923 hpux9*)
8924 if test "$GCC" = yes; then
8925 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8926 else
8927 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8928 fi
8929 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8930 hardcode_libdir_separator=:
8931 hardcode_direct=yes
8932
8933 # hardcode_minus_L: Not really in the search PATH,
8934 # but as the default location of the library.
8935 hardcode_minus_L=yes
8936 export_dynamic_flag_spec='${wl}-E'
8937 ;;
8938
8939 hpux10*)
8940 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8941 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8942 else
8943 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8944 fi
8945 if test "$with_gnu_ld" = no; then
8946 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8947 hardcode_libdir_flag_spec_ld='+b $libdir'
8948 hardcode_libdir_separator=:
8949 hardcode_direct=yes
8950 hardcode_direct_absolute=yes
8951 export_dynamic_flag_spec='${wl}-E'
8952 # hardcode_minus_L: Not really in the search PATH,
8953 # but as the default location of the library.
8954 hardcode_minus_L=yes
8955 fi
8956 ;;
8957
8958 hpux11*)
8959 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8960 case $host_cpu in
8961 hppa*64*)
8962 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8963 ;;
8964 ia64*)
8965 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8966 ;;
8967 *)
8968 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8969 ;;
8970 esac
8971 else
8972 case $host_cpu in
8973 hppa*64*)
8974 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8975 ;;
8976 ia64*)
8977 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8978 ;;
8979 *)
8980 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8981 ;;
8982 esac
8983 fi
8984 if test "$with_gnu_ld" = no; then
8985 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8986 hardcode_libdir_separator=:
8987
8988 case $host_cpu in
8989 hppa*64*|ia64*)
8990 hardcode_direct=no
8991 hardcode_shlibpath_var=no
8992 ;;
8993 *)
8994 hardcode_direct=yes
8995 hardcode_direct_absolute=yes
8996 export_dynamic_flag_spec='${wl}-E'
8997
8998 # hardcode_minus_L: Not really in the search PATH,
8999 # but as the default location of the library.
9000 hardcode_minus_L=yes
9001 ;;
9002 esac
9003 fi
9004 ;;
9005
9006 irix5* | irix6* | nonstopux*)
9007 if test "$GCC" = yes; then
9008 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9009 # Try to use the -exported_symbol ld option, if it does not
9010 # work, assume that -exports_file does not work either and
9011 # implicitly export all symbols.
9012 save_LDFLAGS="$LDFLAGS"
9013 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9014 cat >conftest.$ac_ext <<_ACEOF
9015int foo(void) {}
9016_ACEOF
9017rm -f conftest.$ac_objext conftest$ac_exeext
9018if { (ac_try="$ac_link"
9019case "(($ac_try" in
9020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9021 *) ac_try_echo=$ac_try;;
9022esac
9023eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9024$as_echo "$ac_try_echo") >&5
9025 (eval "$ac_link") 2>conftest.er1
9026 ac_status=$?
9027 grep -v '^ *+' conftest.er1 >conftest.err
9028 rm -f conftest.er1
9029 cat conftest.err >&5
9030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); } && {
9032 test -z "$ac_c_werror_flag" ||
9033 test ! -s conftest.err
9034 } && test -s conftest$ac_exeext && {
9035 test "$cross_compiling" = yes ||
9036 $as_test_x conftest$ac_exeext
9037 }; then
9038 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9039
9040else
9041 $as_echo "$as_me: failed program was:" >&5
9042sed 's/^/| /' conftest.$ac_ext >&5
9043
9044
9045fi
9046
9047rm -rf conftest.dSYM
9048rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9049 conftest$ac_exeext conftest.$ac_ext
9050 LDFLAGS="$save_LDFLAGS"
9051 else
9052 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9053 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9054 fi
9055 archive_cmds_need_lc='no'
9056 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9057 hardcode_libdir_separator=:
9058 inherit_rpath=yes
9059 link_all_deplibs=yes
9060 ;;
9061
9062 netbsd*)
9063 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9064 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9065 else
9066 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9067 fi
9068 hardcode_libdir_flag_spec='-R$libdir'
9069 hardcode_direct=yes
9070 hardcode_shlibpath_var=no
9071 ;;
9072
9073 newsos6)
9074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9075 hardcode_direct=yes
9076 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9077 hardcode_libdir_separator=:
9078 hardcode_shlibpath_var=no
9079 ;;
9080
9081 *nto* | *qnx*)
9082 ;;
9083
9084 openbsd*)
9085 if test -f /usr/libexec/ld.so; then
9086 hardcode_direct=yes
9087 hardcode_shlibpath_var=no
9088 hardcode_direct_absolute=yes
9089 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9090 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9091 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9092 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9093 export_dynamic_flag_spec='${wl}-E'
9094 else
9095 case $host_os in
9096 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9097 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9098 hardcode_libdir_flag_spec='-R$libdir'
9099 ;;
9100 *)
9101 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9102 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9103 ;;
9104 esac
9105 fi
9106 else
9107 ld_shlibs=no
9108 fi
9109 ;;
9110
9111 os2*)
9112 hardcode_libdir_flag_spec='-L$libdir'
9113 hardcode_minus_L=yes
9114 allow_undefined_flag=unsupported
9115 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9116 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9117 ;;
9118
9119 osf3*)
9120 if test "$GCC" = yes; then
9121 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9122 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9123 else
9124 allow_undefined_flag=' -expect_unresolved \*'
9125 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9126 fi
9127 archive_cmds_need_lc='no'
9128 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9129 hardcode_libdir_separator=:
9130 ;;
9131
9132 osf4* | osf5*) # as osf3* with the addition of -msym flag
9133 if test "$GCC" = yes; then
9134 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9135 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9136 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9137 else
9138 allow_undefined_flag=' -expect_unresolved \*'
9139 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9140 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~
9141 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9142
9143 # Both c and cxx compiler support -rpath directly
9144 hardcode_libdir_flag_spec='-rpath $libdir'
9145 fi
9146 archive_cmds_need_lc='no'
9147 hardcode_libdir_separator=:
9148 ;;
9149
9150 solaris*)
9151 no_undefined_flag=' -z defs'
9152 if test "$GCC" = yes; then
9153 wlarc='${wl}'
9154 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9155 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9156 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9157 else
9158 case `$CC -V 2>&1` in
9159 *"Compilers 5.0"*)
9160 wlarc=''
9161 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9162 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9163 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9164 ;;
9165 *)
9166 wlarc='${wl}'
9167 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9168 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9169 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9170 ;;
9171 esac
9172 fi
9173 hardcode_libdir_flag_spec='-R$libdir'
9174 hardcode_shlibpath_var=no
9175 case $host_os in
9176 solaris2.[0-5] | solaris2.[0-5].*) ;;
9177 *)
9178 # The compiler driver will combine and reorder linker options,
9179 # but understands `-z linker_flag'. GCC discards it without `$wl',
9180 # but is careful enough not to reorder.
9181 # Supported since Solaris 2.6 (maybe 2.5.1?)
9182 if test "$GCC" = yes; then
9183 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9184 else
9185 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9186 fi
9187 ;;
9188 esac
9189 link_all_deplibs=yes
9190 ;;
9191
9192 sunos4*)
9193 if test "x$host_vendor" = xsequent; then
9194 # Use $CC to link under sequent, because it throws in some extra .o
9195 # files that make .init and .fini sections work.
9196 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9197 else
9198 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9199 fi
9200 hardcode_libdir_flag_spec='-L$libdir'
9201 hardcode_direct=yes
9202 hardcode_minus_L=yes
9203 hardcode_shlibpath_var=no
9204 ;;
9205
9206 sysv4)
9207 case $host_vendor in
9208 sni)
9209 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9210 hardcode_direct=yes # is this really true???
9211 ;;
9212 siemens)
9213 ## LD is ld it makes a PLAMLIB
9214 ## CC just makes a GrossModule.
9215 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9216 reload_cmds='$CC -r -o $output$reload_objs'
9217 hardcode_direct=no
9218 ;;
9219 motorola)
9220 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9221 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9222 ;;
9223 esac
9224 runpath_var='LD_RUN_PATH'
9225 hardcode_shlibpath_var=no
9226 ;;
9227
9228 sysv4.3*)
9229 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9230 hardcode_shlibpath_var=no
9231 export_dynamic_flag_spec='-Bexport'
9232 ;;
9233
9234 sysv4*MP*)
9235 if test -d /usr/nec; then
9236 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9237 hardcode_shlibpath_var=no
9238 runpath_var=LD_RUN_PATH
9239 hardcode_runpath_var=yes
9240 ld_shlibs=yes
9241 fi
9242 ;;
9243
9244 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9245 no_undefined_flag='${wl}-z,text'
9246 archive_cmds_need_lc=no
9247 hardcode_shlibpath_var=no
9248 runpath_var='LD_RUN_PATH'
9249
9250 if test "$GCC" = yes; then
9251 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9252 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9253 else
9254 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9255 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9256 fi
9257 ;;
9258
9259 sysv5* | sco3.2v5* | sco5v6*)
9260 # Note: We can NOT use -z defs as we might desire, because we do not
9261 # link with -lc, and that would cause any symbols used from libc to
9262 # always be unresolved, which means just about no library would
9263 # ever link correctly. If we're not using GNU ld we use -z text
9264 # though, which does catch some bad symbols but isn't as heavy-handed
9265 # as -z defs.
9266 no_undefined_flag='${wl}-z,text'
9267 allow_undefined_flag='${wl}-z,nodefs'
9268 archive_cmds_need_lc=no
9269 hardcode_shlibpath_var=no
9270 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9271 hardcode_libdir_separator=':'
9272 link_all_deplibs=yes
9273 export_dynamic_flag_spec='${wl}-Bexport'
9274 runpath_var='LD_RUN_PATH'
9275
9276 if test "$GCC" = yes; then
9277 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9278 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9279 else
9280 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9281 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9282 fi
9283 ;;
9284
9285 uts4*)
9286 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9287 hardcode_libdir_flag_spec='-L$libdir'
9288 hardcode_shlibpath_var=no
9289 ;;
9290
9291 *)
9292 ld_shlibs=no
9293 ;;
9294 esac
9295
9296 if test x$host_vendor = xsni; then
9297 case $host in
9298 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9299 export_dynamic_flag_spec='${wl}-Blargedynsym'
9300 ;;
9301 esac
9302 fi
9303 fi
9304
9305{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9306$as_echo "$ld_shlibs" >&6; }
9307test "$ld_shlibs" = no && can_build_shared=no
9308
9309with_gnu_ld=$with_gnu_ld
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325#
9326# Do we need to explicitly link libc?
9327#
9328case "x$archive_cmds_need_lc" in
9329x|xyes)
9330 # Assume -lc should be added
9331 archive_cmds_need_lc=yes
9332
9333 if test "$enable_shared" = yes && test "$GCC" = yes; then
9334 case $archive_cmds in
9335 *'~'*)
9336 # FIXME: we may have to deal with multi-command sequences.
9337 ;;
9338 '$CC '*)
9339 # Test whether the compiler implicitly links with -lc since on some
9340 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9341 # to ld, don't add -lc before -lgcc.
9342 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9343$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9344 $RM conftest*
9345 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9346
9347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9348 (eval $ac_compile) 2>&5
9349 ac_status=$?
9350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); } 2>conftest.err; then
9352 soname=conftest
9353 lib=conftest
9354 libobjs=conftest.$ac_objext
9355 deplibs=
9356 wl=$lt_prog_compiler_wl
9357 pic_flag=$lt_prog_compiler_pic
9358 compiler_flags=-v
9359 linker_flags=-v
9360 verstring=
9361 output_objdir=.
9362 libname=conftest
9363 lt_save_allow_undefined_flag=$allow_undefined_flag
9364 allow_undefined_flag=
9365 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9366 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9367 ac_status=$?
9368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); }
9370 then
9371 archive_cmds_need_lc=no
9372 else
9373 archive_cmds_need_lc=yes
9374 fi
9375 allow_undefined_flag=$lt_save_allow_undefined_flag
9376 else
9377 cat conftest.err 1>&5
9378 fi
9379 $RM conftest*
9380 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9381$as_echo "$archive_cmds_need_lc" >&6; }
9382 ;;
9383 esac
9384 fi
9385 ;;
9386esac
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9545$as_echo_n "checking dynamic linker characteristics... " >&6; }
9546
9547if test "$GCC" = yes; then
9548 case $host_os in
9549 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9550 *) lt_awk_arg="/^libraries:/" ;;
9551 esac
9552 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9553 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9554 # if the path contains ";" then we assume it to be the separator
9555 # otherwise default to the standard path separator (i.e. ":") - it is
9556 # assumed that no part of a normal pathname contains ";" but that should
9557 # okay in the real world where ";" in dirpaths is itself problematic.
9558 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9559 else
9560 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9561 fi
9562 # Ok, now we have the path, separated by spaces, we can step through it
9563 # and add multilib dir if necessary.
9564 lt_tmp_lt_search_path_spec=
9565 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9566 for lt_sys_path in $lt_search_path_spec; do
9567 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9568 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9569 else
9570 test -d "$lt_sys_path" && \
9571 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9572 fi
9573 done
9574 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9575BEGIN {RS=" "; FS="/|\n";} {
9576 lt_foo="";
9577 lt_count=0;
9578 for (lt_i = NF; lt_i > 0; lt_i--) {
9579 if ($lt_i != "" && $lt_i != ".") {
9580 if ($lt_i == "..") {
9581 lt_count++;
9582 } else {
9583 if (lt_count == 0) {
9584 lt_foo="/" $lt_i lt_foo;
9585 } else {
9586 lt_count--;
9587 }
9588 }
9589 }
9590 }
9591 if (lt_foo != "") { lt_freq[lt_foo]++; }
9592 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9593}'`
9594 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9595else
9596 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9597fi
9598library_names_spec=
9599libname_spec='lib$name'
9600soname_spec=
9601shrext_cmds=".so"
9602postinstall_cmds=
9603postuninstall_cmds=
9604finish_cmds=
9605finish_eval=
9606shlibpath_var=
9607shlibpath_overrides_runpath=unknown
9608version_type=none
9609dynamic_linker="$host_os ld.so"
9610sys_lib_dlsearch_path_spec="/lib /usr/lib"
9611need_lib_prefix=unknown
9612hardcode_into_libs=no
9613
9614# when you set need_version to no, make sure it does not cause -set_version
9615# flags to be left without arguments
9616need_version=unknown
9617
9618case $host_os in
9619aix3*)
9620 version_type=linux
9621 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9622 shlibpath_var=LIBPATH
9623
9624 # AIX 3 has no versioning support, so we append a major version to the name.
9625 soname_spec='${libname}${release}${shared_ext}$major'
9626 ;;
9627
9628aix[4-9]*)
9629 version_type=linux
9630 need_lib_prefix=no
9631 need_version=no
9632 hardcode_into_libs=yes
9633 if test "$host_cpu" = ia64; then
9634 # AIX 5 supports IA64
9635 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9636 shlibpath_var=LD_LIBRARY_PATH
9637 else
9638 # With GCC up to 2.95.x, collect2 would create an import file
9639 # for dependence libraries. The import file would start with
9640 # the line `#! .'. This would cause the generated library to
9641 # depend on `.', always an invalid library. This was fixed in
9642 # development snapshots of GCC prior to 3.0.
9643 case $host_os in
9644 aix4 | aix4.[01] | aix4.[01].*)
9645 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9646 echo ' yes '
9647 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9648 :
9649 else
9650 can_build_shared=no
9651 fi
9652 ;;
9653 esac
9654 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9655 # soname into executable. Probably we can add versioning support to
9656 # collect2, so additional links can be useful in future.
9657 if test "$aix_use_runtimelinking" = yes; then
9658 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9659 # instead of lib<name>.a to let people know that these are not
9660 # typical AIX shared libraries.
9661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9662 else
9663 # We preserve .a as extension for shared libraries through AIX4.2
9664 # and later when we are not doing run time linking.
9665 library_names_spec='${libname}${release}.a $libname.a'
9666 soname_spec='${libname}${release}${shared_ext}$major'
9667 fi
9668 shlibpath_var=LIBPATH
9669 fi
9670 ;;
9671
9672amigaos*)
9673 case $host_cpu in
9674 powerpc)
9675 # Since July 2007 AmigaOS4 officially supports .so libraries.
9676 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9678 ;;
9679 m68k)
9680 library_names_spec='$libname.ixlibrary $libname.a'
9681 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9682 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9683 ;;
9684 esac
9685 ;;
9686
9687beos*)
9688 library_names_spec='${libname}${shared_ext}'
9689 dynamic_linker="$host_os ld.so"
9690 shlibpath_var=LIBRARY_PATH
9691 ;;
9692
9693bsdi[45]*)
9694 version_type=linux
9695 need_version=no
9696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9697 soname_spec='${libname}${release}${shared_ext}$major'
9698 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9699 shlibpath_var=LD_LIBRARY_PATH
9700 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9701 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9702 # the default ld.so.conf also contains /usr/contrib/lib and
9703 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9704 # libtool to hard-code these into programs
9705 ;;
9706
9707cygwin* | mingw* | pw32*)
9708 version_type=windows
9709 shrext_cmds=".dll"
9710 need_version=no
9711 need_lib_prefix=no
9712
9713 case $GCC,$host_os in
9714 yes,cygwin* | yes,mingw* | yes,pw32*)
9715 library_names_spec='$libname.dll.a'
9716 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9717 postinstall_cmds='base_file=`basename \${file}`~
9718 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9719 dldir=$destdir/`dirname \$dlpath`~
9720 test -d \$dldir || mkdir -p \$dldir~
9721 $install_prog $dir/$dlname \$dldir/$dlname~
9722 chmod a+x \$dldir/$dlname~
9723 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9724 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9725 fi'
9726 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9727 dlpath=$dir/\$dldll~
9728 $RM \$dlpath'
9729 shlibpath_overrides_runpath=yes
9730
9731 case $host_os in
9732 cygwin*)
9733 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9734 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9735 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9736 ;;
9737 mingw*)
9738 # MinGW DLLs use traditional 'lib' prefix
9739 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9740 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9741 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9742 # It is most probably a Windows format PATH printed by
9743 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9744 # path with ; separators, and with drive letters. We can handle the
9745 # drive letters (cygwin fileutils understands them), so leave them,
9746 # especially as we might pass files found there to a mingw objdump,
9747 # which wouldn't understand a cygwinified path. Ahh.
9748 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9749 else
9750 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9751 fi
9752 ;;
9753 pw32*)
9754 # pw32 DLLs use 'pw' prefix rather than 'lib'
9755 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9756 ;;
9757 esac
9758 ;;
9759
9760 *)
9761 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9762 ;;
9763 esac
9764 dynamic_linker='Win32 ld.exe'
9765 # FIXME: first we should search . and the directory the executable is in
9766 shlibpath_var=PATH
9767 ;;
9768
9769darwin* | rhapsody*)
9770 dynamic_linker="$host_os dyld"
9771 version_type=darwin
9772 need_lib_prefix=no
9773 need_version=no
9774 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9775 soname_spec='${libname}${release}${major}$shared_ext'
9776 shlibpath_overrides_runpath=yes
9777 shlibpath_var=DYLD_LIBRARY_PATH
9778 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9779
9780 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9781 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9782 ;;
9783
9784dgux*)
9785 version_type=linux
9786 need_lib_prefix=no
9787 need_version=no
9788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9789 soname_spec='${libname}${release}${shared_ext}$major'
9790 shlibpath_var=LD_LIBRARY_PATH
9791 ;;
9792
9793freebsd1*)
9794 dynamic_linker=no
9795 ;;
9796
9797freebsd* | dragonfly*)
9798 # DragonFly does not have aout. When/if they implement a new
9799 # versioning mechanism, adjust this.
9800 if test -x /usr/bin/objformat; then
9801 objformat=`/usr/bin/objformat`
9802 else
9803 case $host_os in
9804 freebsd[123]*) objformat=aout ;;
9805 *) objformat=elf ;;
9806 esac
9807 fi
9808 version_type=freebsd-$objformat
9809 case $version_type in
9810 freebsd-elf*)
9811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9812 need_version=no
9813 need_lib_prefix=no
9814 ;;
9815 freebsd-*)
9816 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9817 need_version=yes
9818 ;;
9819 esac
9820 shlibpath_var=LD_LIBRARY_PATH
9821 case $host_os in
9822 freebsd2*)
9823 shlibpath_overrides_runpath=yes
9824 ;;
9825 freebsd3.[01]* | freebsdelf3.[01]*)
9826 shlibpath_overrides_runpath=yes
9827 hardcode_into_libs=yes
9828 ;;
9829 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9830 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9831 shlibpath_overrides_runpath=no
9832 hardcode_into_libs=yes
9833 ;;
9834 *) # from 4.6 on, and DragonFly
9835 shlibpath_overrides_runpath=yes
9836 hardcode_into_libs=yes
9837 ;;
9838 esac
9839 ;;
9840
9841gnu*)
9842 version_type=linux
9843 need_lib_prefix=no
9844 need_version=no
9845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9846 soname_spec='${libname}${release}${shared_ext}$major'
9847 shlibpath_var=LD_LIBRARY_PATH
9848 hardcode_into_libs=yes
9849 ;;
9850
9851hpux9* | hpux10* | hpux11*)
9852 # Give a soname corresponding to the major version so that dld.sl refuses to
9853 # link against other versions.
9854 version_type=sunos
9855 need_lib_prefix=no
9856 need_version=no
9857 case $host_cpu in
9858 ia64*)
9859 shrext_cmds='.so'
9860 hardcode_into_libs=yes
9861 dynamic_linker="$host_os dld.so"
9862 shlibpath_var=LD_LIBRARY_PATH
9863 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9865 soname_spec='${libname}${release}${shared_ext}$major'
9866 if test "X$HPUX_IA64_MODE" = X32; then
9867 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9868 else
9869 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9870 fi
9871 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9872 ;;
9873 hppa*64*)
9874 shrext_cmds='.sl'
9875 hardcode_into_libs=yes
9876 dynamic_linker="$host_os dld.sl"
9877 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9878 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9880 soname_spec='${libname}${release}${shared_ext}$major'
9881 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9882 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9883 ;;
9884 *)
9885 shrext_cmds='.sl'
9886 dynamic_linker="$host_os dld.sl"
9887 shlibpath_var=SHLIB_PATH
9888 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9890 soname_spec='${libname}${release}${shared_ext}$major'
9891 ;;
9892 esac
9893 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9894 postinstall_cmds='chmod 555 $lib'
9895 ;;
9896
9897interix[3-9]*)
9898 version_type=linux
9899 need_lib_prefix=no
9900 need_version=no
9901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9902 soname_spec='${libname}${release}${shared_ext}$major'
9903 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9904 shlibpath_var=LD_LIBRARY_PATH
9905 shlibpath_overrides_runpath=no
9906 hardcode_into_libs=yes
9907 ;;
9908
9909irix5* | irix6* | nonstopux*)
9910 case $host_os in
9911 nonstopux*) version_type=nonstopux ;;
9912 *)
9913 if test "$lt_cv_prog_gnu_ld" = yes; then
9914 version_type=linux
9915 else
9916 version_type=irix
9917 fi ;;
9918 esac
9919 need_lib_prefix=no
9920 need_version=no
9921 soname_spec='${libname}${release}${shared_ext}$major'
9922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9923 case $host_os in
9924 irix5* | nonstopux*)
9925 libsuff= shlibsuff=
9926 ;;
9927 *)
9928 case $LD in # libtool.m4 will add one of these switches to LD
9929 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9930 libsuff= shlibsuff= libmagic=32-bit;;
9931 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9932 libsuff=32 shlibsuff=N32 libmagic=N32;;
9933 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9934 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9935 *) libsuff= shlibsuff= libmagic=never-match;;
9936 esac
9937 ;;
9938 esac
9939 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9940 shlibpath_overrides_runpath=no
9941 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9942 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9943 hardcode_into_libs=yes
9944 ;;
9945
9946# No shared lib support for Linux oldld, aout, or coff.
9947linux*oldld* | linux*aout* | linux*coff*)
9948 dynamic_linker=no
9949 ;;
9950
9951# This must be Linux ELF.
9952linux* | k*bsd*-gnu)
9953 version_type=linux
9954 need_lib_prefix=no
9955 need_version=no
9956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9957 soname_spec='${libname}${release}${shared_ext}$major'
9958 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9959 shlibpath_var=LD_LIBRARY_PATH
9960 shlibpath_overrides_runpath=no
9961 # Some binutils ld are patched to set DT_RUNPATH
9962 save_LDFLAGS=$LDFLAGS
9963 save_libdir=$libdir
9964 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9965 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9966 cat >conftest.$ac_ext <<_ACEOF
9967/* confdefs.h. */
9968_ACEOF
9969cat confdefs.h >>conftest.$ac_ext
9970cat >>conftest.$ac_ext <<_ACEOF
9971/* end confdefs.h. */
9972
9973int
9974main ()
9975{
9976
9977 ;
9978 return 0;
9979}
9980_ACEOF
9981rm -f conftest.$ac_objext conftest$ac_exeext
9982if { (ac_try="$ac_link"
9983case "(($ac_try" in
9984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9985 *) ac_try_echo=$ac_try;;
9986esac
9987eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9988$as_echo "$ac_try_echo") >&5
9989 (eval "$ac_link") 2>conftest.er1
9990 ac_status=$?
9991 grep -v '^ *+' conftest.er1 >conftest.err
9992 rm -f conftest.er1
9993 cat conftest.err >&5
9994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } && {
9996 test -z "$ac_c_werror_flag" ||
9997 test ! -s conftest.err
9998 } && test -s conftest$ac_exeext && {
9999 test "$cross_compiling" = yes ||
10000 $as_test_x conftest$ac_exeext
10001 }; then
10002 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10003 shlibpath_overrides_runpath=yes
10004fi
10005
10006else
10007 $as_echo "$as_me: failed program was:" >&5
10008sed 's/^/| /' conftest.$ac_ext >&5
10009
10010
10011fi
10012
10013rm -rf conftest.dSYM
10014rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10015 conftest$ac_exeext conftest.$ac_ext
10016 LDFLAGS=$save_LDFLAGS
10017 libdir=$save_libdir
10018
10019 # This implies no fast_install, which is unacceptable.
10020 # Some rework will be needed to allow for fast_install
10021 # before this can be enabled.
10022 hardcode_into_libs=yes
10023
10024 # Append ld.so.conf contents to the search path
10025 if test -f /etc/ld.so.conf; then
10026 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;/^$/d' | tr '\n' ' '`
10027 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10028 fi
10029
10030 # We used to test for /lib/ld.so.1 and disable shared libraries on
10031 # powerpc, because MkLinux only supported shared libraries with the
10032 # GNU dynamic linker. Since this was broken with cross compilers,
10033 # most powerpc-linux boxes support dynamic linking these days and
10034 # people can always --disable-shared, the test was removed, and we
10035 # assume the GNU/Linux dynamic linker is in use.
10036 dynamic_linker='GNU/Linux ld.so'
10037 ;;
10038
10039netbsd*)
10040 version_type=sunos
10041 need_lib_prefix=no
10042 need_version=no
10043 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10045 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10046 dynamic_linker='NetBSD (a.out) ld.so'
10047 else
10048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10049 soname_spec='${libname}${release}${shared_ext}$major'
10050 dynamic_linker='NetBSD ld.elf_so'
10051 fi
10052 shlibpath_var=LD_LIBRARY_PATH
10053 shlibpath_overrides_runpath=yes
10054 hardcode_into_libs=yes
10055 ;;
10056
10057newsos6)
10058 version_type=linux
10059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10060 shlibpath_var=LD_LIBRARY_PATH
10061 shlibpath_overrides_runpath=yes
10062 ;;
10063
10064*nto* | *qnx*)
10065 version_type=qnx
10066 need_lib_prefix=no
10067 need_version=no
10068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10069 soname_spec='${libname}${release}${shared_ext}$major'
10070 shlibpath_var=LD_LIBRARY_PATH
10071 shlibpath_overrides_runpath=no
10072 hardcode_into_libs=yes
10073 dynamic_linker='ldqnx.so'
10074 ;;
10075
10076openbsd*)
10077 version_type=sunos
10078 sys_lib_dlsearch_path_spec="/usr/lib"
10079 need_lib_prefix=no
10080 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10081 case $host_os in
10082 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10083 *) need_version=no ;;
10084 esac
10085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10086 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10087 shlibpath_var=LD_LIBRARY_PATH
10088 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10089 case $host_os in
10090 openbsd2.[89] | openbsd2.[89].*)
10091 shlibpath_overrides_runpath=no
10092 ;;
10093 *)
10094 shlibpath_overrides_runpath=yes
10095 ;;
10096 esac
10097 else
10098 shlibpath_overrides_runpath=yes
10099 fi
10100 ;;
10101
10102os2*)
10103 libname_spec='$name'
10104 shrext_cmds=".dll"
10105 need_lib_prefix=no
10106 library_names_spec='$libname${shared_ext} $libname.a'
10107 dynamic_linker='OS/2 ld.exe'
10108 shlibpath_var=LIBPATH
10109 ;;
10110
10111osf3* | osf4* | osf5*)
10112 version_type=osf
10113 need_lib_prefix=no
10114 need_version=no
10115 soname_spec='${libname}${release}${shared_ext}$major'
10116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10117 shlibpath_var=LD_LIBRARY_PATH
10118 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10119 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10120 ;;
10121
10122rdos*)
10123 dynamic_linker=no
10124 ;;
10125
10126solaris*)
10127 version_type=linux
10128 need_lib_prefix=no
10129 need_version=no
10130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10131 soname_spec='${libname}${release}${shared_ext}$major'
10132 shlibpath_var=LD_LIBRARY_PATH
10133 shlibpath_overrides_runpath=yes
10134 hardcode_into_libs=yes
10135 # ldd complains unless libraries are executable
10136 postinstall_cmds='chmod +x $lib'
10137 ;;
10138
10139sunos4*)
10140 version_type=sunos
10141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10142 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10143 shlibpath_var=LD_LIBRARY_PATH
10144 shlibpath_overrides_runpath=yes
10145 if test "$with_gnu_ld" = yes; then
10146 need_lib_prefix=no
10147 fi
10148 need_version=yes
10149 ;;
10150
10151sysv4 | sysv4.3*)
10152 version_type=linux
10153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10154 soname_spec='${libname}${release}${shared_ext}$major'
10155 shlibpath_var=LD_LIBRARY_PATH
10156 case $host_vendor in
10157 sni)
10158 shlibpath_overrides_runpath=no
10159 need_lib_prefix=no
10160 runpath_var=LD_RUN_PATH
10161 ;;
10162 siemens)
10163 need_lib_prefix=no
10164 ;;
10165 motorola)
10166 need_lib_prefix=no
10167 need_version=no
10168 shlibpath_overrides_runpath=no
10169 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10170 ;;
10171 esac
10172 ;;
10173
10174sysv4*MP*)
10175 if test -d /usr/nec ;then
10176 version_type=linux
10177 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10178 soname_spec='$libname${shared_ext}.$major'
10179 shlibpath_var=LD_LIBRARY_PATH
10180 fi
10181 ;;
10182
10183sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10184 version_type=freebsd-elf
10185 need_lib_prefix=no
10186 need_version=no
10187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10188 soname_spec='${libname}${release}${shared_ext}$major'
10189 shlibpath_var=LD_LIBRARY_PATH
10190 shlibpath_overrides_runpath=yes
10191 hardcode_into_libs=yes
10192 if test "$with_gnu_ld" = yes; then
10193 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10194 else
10195 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10196 case $host_os in
10197 sco3.2v5*)
10198 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10199 ;;
10200 esac
10201 fi
10202 sys_lib_dlsearch_path_spec='/usr/lib'
10203 ;;
10204
10205tpf*)
10206 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10207 version_type=linux
10208 need_lib_prefix=no
10209 need_version=no
10210 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10211 shlibpath_var=LD_LIBRARY_PATH
10212 shlibpath_overrides_runpath=no
10213 hardcode_into_libs=yes
10214 ;;
10215
10216uts4*)
10217 version_type=linux
10218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10219 soname_spec='${libname}${release}${shared_ext}$major'
10220 shlibpath_var=LD_LIBRARY_PATH
10221 ;;
10222
10223*)
10224 dynamic_linker=no
10225 ;;
10226esac
10227{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10228$as_echo "$dynamic_linker" >&6; }
10229test "$dynamic_linker" = no && can_build_shared=no
10230
10231variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10232if test "$GCC" = yes; then
10233 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10234fi
10235
10236if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10237 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10238fi
10239if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10240 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10241fi
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10330$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10331hardcode_action=
10332if test -n "$hardcode_libdir_flag_spec" ||
10333 test -n "$runpath_var" ||
10334 test "X$hardcode_automatic" = "Xyes" ; then
10335
10336 # We can hardcode non-existent directories.
10337 if test "$hardcode_direct" != no &&
10338 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10339 # have to relink, otherwise we might link with an installed library
10340 # when we should be linking with a yet-to-be-installed one
10341 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10342 test "$hardcode_minus_L" != no; then
10343 # Linking always hardcodes the temporary library directory.
10344 hardcode_action=relink
10345 else
10346 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10347 hardcode_action=immediate
10348 fi
10349else
10350 # We cannot hardcode anything, or else we can only hardcode existing
10351 # directories.
10352 hardcode_action=unsupported
10353fi
10354{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10355$as_echo "$hardcode_action" >&6; }
10356
10357if test "$hardcode_action" = relink ||
10358 test "$inherit_rpath" = yes; then
10359 # Fast installation is not supported
10360 enable_fast_install=no
10361elif test "$shlibpath_overrides_runpath" = yes ||
10362 test "$enable_shared" = no; then
10363 # Fast installation is not necessary
10364 enable_fast_install=needless
10365fi
10366
10367
10368
10369
10370
10371
10372 if test "x$enable_dlopen" != xyes; then
10373 enable_dlopen=unknown
10374 enable_dlopen_self=unknown
10375 enable_dlopen_self_static=unknown
10376else
10377 lt_cv_dlopen=no
10378 lt_cv_dlopen_libs=
10379
10380 case $host_os in
10381 beos*)
10382 lt_cv_dlopen="load_add_on"
10383 lt_cv_dlopen_libs=
10384 lt_cv_dlopen_self=yes
10385 ;;
10386
10387 mingw* | pw32*)
10388 lt_cv_dlopen="LoadLibrary"
10389 lt_cv_dlopen_libs=
10390 ;;
10391
10392 cygwin*)
10393 lt_cv_dlopen="dlopen"
10394 lt_cv_dlopen_libs=
10395 ;;
10396
10397 darwin*)
10398 # if libdl is installed we need to link against it
10399 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10400$as_echo_n "checking for dlopen in -ldl... " >&6; }
10401if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10402 $as_echo_n "(cached) " >&6
10403else
10404 ac_check_lib_save_LIBS=$LIBS
10405LIBS="-ldl $LIBS"
10406cat >conftest.$ac_ext <<_ACEOF
10407/* confdefs.h. */
10408_ACEOF
10409cat confdefs.h >>conftest.$ac_ext
10410cat >>conftest.$ac_ext <<_ACEOF
10411/* end confdefs.h. */
10412
10413/* Override any GCC internal prototype to avoid an error.
10414 Use char because int might match the return type of a GCC
10415 builtin and then its argument prototype would still apply. */
10416#ifdef __cplusplus
10417extern "C"
10418#endif
10419char dlopen ();
10420int
10421main ()
10422{
10423return dlopen ();
10424 ;
10425 return 0;
10426}
10427_ACEOF
10428rm -f conftest.$ac_objext conftest$ac_exeext
10429if { (ac_try="$ac_link"
10430case "(($ac_try" in
10431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10432 *) ac_try_echo=$ac_try;;
10433esac
10434eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10435$as_echo "$ac_try_echo") >&5
10436 (eval "$ac_link") 2>conftest.er1
10437 ac_status=$?
10438 grep -v '^ *+' conftest.er1 >conftest.err
10439 rm -f conftest.er1
10440 cat conftest.err >&5
10441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); } && {
10443 test -z "$ac_c_werror_flag" ||
10444 test ! -s conftest.err
10445 } && test -s conftest$ac_exeext && {
10446 test "$cross_compiling" = yes ||
10447 $as_test_x conftest$ac_exeext
10448 }; then
10449 ac_cv_lib_dl_dlopen=yes
10450else
10451 $as_echo "$as_me: failed program was:" >&5
10452sed 's/^/| /' conftest.$ac_ext >&5
10453
10454 ac_cv_lib_dl_dlopen=no
10455fi
10456
10457rm -rf conftest.dSYM
10458rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10459 conftest$ac_exeext conftest.$ac_ext
10460LIBS=$ac_check_lib_save_LIBS
10461fi
10462{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10463$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10464if test $ac_cv_lib_dl_dlopen = yes; then
10465 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10466else
10467
10468 lt_cv_dlopen="dyld"
10469 lt_cv_dlopen_libs=
10470 lt_cv_dlopen_self=yes
10471
10472fi
10473
10474 ;;
10475
10476 *)
10477 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10478$as_echo_n "checking for shl_load... " >&6; }
10479if test "${ac_cv_func_shl_load+set}" = set; then
10480 $as_echo_n "(cached) " >&6
10481else
10482 cat >conftest.$ac_ext <<_ACEOF
10483/* confdefs.h. */
10484_ACEOF
10485cat confdefs.h >>conftest.$ac_ext
10486cat >>conftest.$ac_ext <<_ACEOF
10487/* end confdefs.h. */
10488/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10490#define shl_load innocuous_shl_load
10491
10492/* System header to define __stub macros and hopefully few prototypes,
10493 which can conflict with char shl_load (); below.
10494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10495 <limits.h> exists even on freestanding compilers. */
10496
10497#ifdef __STDC__
10498# include <limits.h>
10499#else
10500# include <assert.h>
10501#endif
10502
10503#undef shl_load
10504
10505/* Override any GCC internal prototype to avoid an error.
10506 Use char because int might match the return type of a GCC
10507 builtin and then its argument prototype would still apply. */
10508#ifdef __cplusplus
10509extern "C"
10510#endif
10511char shl_load ();
10512/* The GNU C library defines this for functions which it implements
10513 to always fail with ENOSYS. Some functions are actually named
10514 something starting with __ and the normal name is an alias. */
10515#if defined __stub_shl_load || defined __stub___shl_load
10516choke me
10517#endif
10518
10519int
10520main ()
10521{
10522return shl_load ();
10523 ;
10524 return 0;
10525}
10526_ACEOF
10527rm -f conftest.$ac_objext conftest$ac_exeext
10528if { (ac_try="$ac_link"
10529case "(($ac_try" in
10530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10531 *) ac_try_echo=$ac_try;;
10532esac
10533eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10534$as_echo "$ac_try_echo") >&5
10535 (eval "$ac_link") 2>conftest.er1
10536 ac_status=$?
10537 grep -v '^ *+' conftest.er1 >conftest.err
10538 rm -f conftest.er1
10539 cat conftest.err >&5
10540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); } && {
10542 test -z "$ac_c_werror_flag" ||
10543 test ! -s conftest.err
10544 } && test -s conftest$ac_exeext && {
10545 test "$cross_compiling" = yes ||
10546 $as_test_x conftest$ac_exeext
10547 }; then
10548 ac_cv_func_shl_load=yes
10549else
10550 $as_echo "$as_me: failed program was:" >&5
10551sed 's/^/| /' conftest.$ac_ext >&5
10552
10553 ac_cv_func_shl_load=no
10554fi
10555
10556rm -rf conftest.dSYM
10557rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10558 conftest$ac_exeext conftest.$ac_ext
10559fi
10560{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10561$as_echo "$ac_cv_func_shl_load" >&6; }
10562if test $ac_cv_func_shl_load = yes; then
10563 lt_cv_dlopen="shl_load"
10564else
10565 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10566$as_echo_n "checking for shl_load in -ldld... " >&6; }
10567if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10568 $as_echo_n "(cached) " >&6
10569else
10570 ac_check_lib_save_LIBS=$LIBS
10571LIBS="-ldld $LIBS"
10572cat >conftest.$ac_ext <<_ACEOF
10573/* confdefs.h. */
10574_ACEOF
10575cat confdefs.h >>conftest.$ac_ext
10576cat >>conftest.$ac_ext <<_ACEOF
10577/* end confdefs.h. */
10578
10579/* Override any GCC internal prototype to avoid an error.
10580 Use char because int might match the return type of a GCC
10581 builtin and then its argument prototype would still apply. */
10582#ifdef __cplusplus
10583extern "C"
10584#endif
10585char shl_load ();
10586int
10587main ()
10588{
10589return shl_load ();
10590 ;
10591 return 0;
10592}
10593_ACEOF
10594rm -f conftest.$ac_objext conftest$ac_exeext
10595if { (ac_try="$ac_link"
10596case "(($ac_try" in
10597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10598 *) ac_try_echo=$ac_try;;
10599esac
10600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10601$as_echo "$ac_try_echo") >&5
10602 (eval "$ac_link") 2>conftest.er1
10603 ac_status=$?
10604 grep -v '^ *+' conftest.er1 >conftest.err
10605 rm -f conftest.er1
10606 cat conftest.err >&5
10607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); } && {
10609 test -z "$ac_c_werror_flag" ||
10610 test ! -s conftest.err
10611 } && test -s conftest$ac_exeext && {
10612 test "$cross_compiling" = yes ||
10613 $as_test_x conftest$ac_exeext
10614 }; then
10615 ac_cv_lib_dld_shl_load=yes
10616else
10617 $as_echo "$as_me: failed program was:" >&5
10618sed 's/^/| /' conftest.$ac_ext >&5
10619
10620 ac_cv_lib_dld_shl_load=no
10621fi
10622
10623rm -rf conftest.dSYM
10624rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10625 conftest$ac_exeext conftest.$ac_ext
10626LIBS=$ac_check_lib_save_LIBS
10627fi
10628{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10629$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10630if test $ac_cv_lib_dld_shl_load = yes; then
10631 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10632else
10633 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10634$as_echo_n "checking for dlopen... " >&6; }
10635if test "${ac_cv_func_dlopen+set}" = set; then
10636 $as_echo_n "(cached) " >&6
10637else
10638 cat >conftest.$ac_ext <<_ACEOF
10639/* confdefs.h. */
10640_ACEOF
10641cat confdefs.h >>conftest.$ac_ext
10642cat >>conftest.$ac_ext <<_ACEOF
10643/* end confdefs.h. */
10644/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10646#define dlopen innocuous_dlopen
10647
10648/* System header to define __stub macros and hopefully few prototypes,
10649 which can conflict with char dlopen (); below.
10650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10651 <limits.h> exists even on freestanding compilers. */
10652
10653#ifdef __STDC__
10654# include <limits.h>
10655#else
10656# include <assert.h>
10657#endif
10658
10659#undef dlopen
10660
10661/* Override any GCC internal prototype to avoid an error.
10662 Use char because int might match the return type of a GCC
10663 builtin and then its argument prototype would still apply. */
10664#ifdef __cplusplus
10665extern "C"
10666#endif
10667char dlopen ();
10668/* The GNU C library defines this for functions which it implements
10669 to always fail with ENOSYS. Some functions are actually named
10670 something starting with __ and the normal name is an alias. */
10671#if defined __stub_dlopen || defined __stub___dlopen
10672choke me
10673#endif
10674
10675int
10676main ()
10677{
10678return dlopen ();
10679 ;
10680 return 0;
10681}
10682_ACEOF
10683rm -f conftest.$ac_objext conftest$ac_exeext
10684if { (ac_try="$ac_link"
10685case "(($ac_try" in
10686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10687 *) ac_try_echo=$ac_try;;
10688esac
10689eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10690$as_echo "$ac_try_echo") >&5
10691 (eval "$ac_link") 2>conftest.er1
10692 ac_status=$?
10693 grep -v '^ *+' conftest.er1 >conftest.err
10694 rm -f conftest.er1
10695 cat conftest.err >&5
10696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); } && {
10698 test -z "$ac_c_werror_flag" ||
10699 test ! -s conftest.err
10700 } && test -s conftest$ac_exeext && {
10701 test "$cross_compiling" = yes ||
10702 $as_test_x conftest$ac_exeext
10703 }; then
10704 ac_cv_func_dlopen=yes
10705else
10706 $as_echo "$as_me: failed program was:" >&5
10707sed 's/^/| /' conftest.$ac_ext >&5
10708
10709 ac_cv_func_dlopen=no
10710fi
10711
10712rm -rf conftest.dSYM
10713rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10714 conftest$ac_exeext conftest.$ac_ext
10715fi
10716{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10717$as_echo "$ac_cv_func_dlopen" >&6; }
10718if test $ac_cv_func_dlopen = yes; then
10719 lt_cv_dlopen="dlopen"
10720else
10721 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10722$as_echo_n "checking for dlopen in -ldl... " >&6; }
10723if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10724 $as_echo_n "(cached) " >&6
10725else
10726 ac_check_lib_save_LIBS=$LIBS
10727LIBS="-ldl $LIBS"
10728cat >conftest.$ac_ext <<_ACEOF
10729/* confdefs.h. */
10730_ACEOF
10731cat confdefs.h >>conftest.$ac_ext
10732cat >>conftest.$ac_ext <<_ACEOF
10733/* end confdefs.h. */
10734
10735/* Override any GCC internal prototype to avoid an error.
10736 Use char because int might match the return type of a GCC
10737 builtin and then its argument prototype would still apply. */
10738#ifdef __cplusplus
10739extern "C"
10740#endif
10741char dlopen ();
10742int
10743main ()
10744{
10745return dlopen ();
10746 ;
10747 return 0;
10748}
10749_ACEOF
10750rm -f conftest.$ac_objext conftest$ac_exeext
10751if { (ac_try="$ac_link"
10752case "(($ac_try" in
10753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10754 *) ac_try_echo=$ac_try;;
10755esac
10756eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10757$as_echo "$ac_try_echo") >&5
10758 (eval "$ac_link") 2>conftest.er1
10759 ac_status=$?
10760 grep -v '^ *+' conftest.er1 >conftest.err
10761 rm -f conftest.er1
10762 cat conftest.err >&5
10763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); } && {
10765 test -z "$ac_c_werror_flag" ||
10766 test ! -s conftest.err
10767 } && test -s conftest$ac_exeext && {
10768 test "$cross_compiling" = yes ||
10769 $as_test_x conftest$ac_exeext
10770 }; then
10771 ac_cv_lib_dl_dlopen=yes
10772else
10773 $as_echo "$as_me: failed program was:" >&5
10774sed 's/^/| /' conftest.$ac_ext >&5
10775
10776 ac_cv_lib_dl_dlopen=no
10777fi
10778
10779rm -rf conftest.dSYM
10780rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10781 conftest$ac_exeext conftest.$ac_ext
10782LIBS=$ac_check_lib_save_LIBS
10783fi
10784{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10785$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10786if test $ac_cv_lib_dl_dlopen = yes; then
10787 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10788else
10789 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10790$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10791if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10792 $as_echo_n "(cached) " >&6
10793else
10794 ac_check_lib_save_LIBS=$LIBS
10795LIBS="-lsvld $LIBS"
10796cat >conftest.$ac_ext <<_ACEOF
10797/* confdefs.h. */
10798_ACEOF
10799cat confdefs.h >>conftest.$ac_ext
10800cat >>conftest.$ac_ext <<_ACEOF
10801/* end confdefs.h. */
10802
10803/* Override any GCC internal prototype to avoid an error.
10804 Use char because int might match the return type of a GCC
10805 builtin and then its argument prototype would still apply. */
10806#ifdef __cplusplus
10807extern "C"
10808#endif
10809char dlopen ();
10810int
10811main ()
10812{
10813return dlopen ();
10814 ;
10815 return 0;
10816}
10817_ACEOF
10818rm -f conftest.$ac_objext conftest$ac_exeext
10819if { (ac_try="$ac_link"
10820case "(($ac_try" in
10821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10822 *) ac_try_echo=$ac_try;;
10823esac
10824eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10825$as_echo "$ac_try_echo") >&5
10826 (eval "$ac_link") 2>conftest.er1
10827 ac_status=$?
10828 grep -v '^ *+' conftest.er1 >conftest.err
10829 rm -f conftest.er1
10830 cat conftest.err >&5
10831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); } && {
10833 test -z "$ac_c_werror_flag" ||
10834 test ! -s conftest.err
10835 } && test -s conftest$ac_exeext && {
10836 test "$cross_compiling" = yes ||
10837 $as_test_x conftest$ac_exeext
10838 }; then
10839 ac_cv_lib_svld_dlopen=yes
10840else
10841 $as_echo "$as_me: failed program was:" >&5
10842sed 's/^/| /' conftest.$ac_ext >&5
10843
10844 ac_cv_lib_svld_dlopen=no
10845fi
10846
10847rm -rf conftest.dSYM
10848rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10849 conftest$ac_exeext conftest.$ac_ext
10850LIBS=$ac_check_lib_save_LIBS
10851fi
10852{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10853$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10854if test $ac_cv_lib_svld_dlopen = yes; then
10855 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10856else
10857 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10858$as_echo_n "checking for dld_link in -ldld... " >&6; }
10859if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10860 $as_echo_n "(cached) " >&6
10861else
10862 ac_check_lib_save_LIBS=$LIBS
10863LIBS="-ldld $LIBS"
10864cat >conftest.$ac_ext <<_ACEOF
10865/* confdefs.h. */
10866_ACEOF
10867cat confdefs.h >>conftest.$ac_ext
10868cat >>conftest.$ac_ext <<_ACEOF
10869/* end confdefs.h. */
10870
10871/* Override any GCC internal prototype to avoid an error.
10872 Use char because int might match the return type of a GCC
10873 builtin and then its argument prototype would still apply. */
10874#ifdef __cplusplus
10875extern "C"
10876#endif
10877char dld_link ();
10878int
10879main ()
10880{
10881return dld_link ();
10882 ;
10883 return 0;
10884}
10885_ACEOF
10886rm -f conftest.$ac_objext conftest$ac_exeext
10887if { (ac_try="$ac_link"
10888case "(($ac_try" in
10889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10890 *) ac_try_echo=$ac_try;;
10891esac
10892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10893$as_echo "$ac_try_echo") >&5
10894 (eval "$ac_link") 2>conftest.er1
10895 ac_status=$?
10896 grep -v '^ *+' conftest.er1 >conftest.err
10897 rm -f conftest.er1
10898 cat conftest.err >&5
10899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); } && {
10901 test -z "$ac_c_werror_flag" ||
10902 test ! -s conftest.err
10903 } && test -s conftest$ac_exeext && {
10904 test "$cross_compiling" = yes ||
10905 $as_test_x conftest$ac_exeext
10906 }; then
10907 ac_cv_lib_dld_dld_link=yes
10908else
10909 $as_echo "$as_me: failed program was:" >&5
10910sed 's/^/| /' conftest.$ac_ext >&5
10911
10912 ac_cv_lib_dld_dld_link=no
10913fi
10914
10915rm -rf conftest.dSYM
10916rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10917 conftest$ac_exeext conftest.$ac_ext
10918LIBS=$ac_check_lib_save_LIBS
10919fi
10920{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10921$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10922if test $ac_cv_lib_dld_dld_link = yes; then
10923 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10924fi
10925
10926
10927fi
10928
10929
10930fi
10931
10932
10933fi
10934
10935
10936fi
10937
10938
10939fi
10940
10941 ;;
10942 esac
10943
10944 if test "x$lt_cv_dlopen" != xno; then
10945 enable_dlopen=yes
10946 else
10947 enable_dlopen=no
10948 fi
10949
10950 case $lt_cv_dlopen in
10951 dlopen)
10952 save_CPPFLAGS="$CPPFLAGS"
10953 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10954
10955 save_LDFLAGS="$LDFLAGS"
10956 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10957
10958 save_LIBS="$LIBS"
10959 LIBS="$lt_cv_dlopen_libs $LIBS"
10960
10961 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10962$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10963if test "${lt_cv_dlopen_self+set}" = set; then
10964 $as_echo_n "(cached) " >&6
10965else
10966 if test "$cross_compiling" = yes; then :
10967 lt_cv_dlopen_self=cross
10968else
10969 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10970 lt_status=$lt_dlunknown
10971 cat > conftest.$ac_ext <<_LT_EOF
10972#line 10972 "configure"
10973#include "confdefs.h"
10974
10975#if HAVE_DLFCN_H
10976#include <dlfcn.h>
10977#endif
10978
10979#include <stdio.h>
10980
10981#ifdef RTLD_GLOBAL
10982# define LT_DLGLOBAL RTLD_GLOBAL
10983#else
10984# ifdef DL_GLOBAL
10985# define LT_DLGLOBAL DL_GLOBAL
10986# else
10987# define LT_DLGLOBAL 0
10988# endif
10989#endif
10990
10991/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10992 find out it does not work in some platform. */
10993#ifndef LT_DLLAZY_OR_NOW
10994# ifdef RTLD_LAZY
10995# define LT_DLLAZY_OR_NOW RTLD_LAZY
10996# else
10997# ifdef DL_LAZY
10998# define LT_DLLAZY_OR_NOW DL_LAZY
10999# else
11000# ifdef RTLD_NOW
11001# define LT_DLLAZY_OR_NOW RTLD_NOW
11002# else
11003# ifdef DL_NOW
11004# define LT_DLLAZY_OR_NOW DL_NOW
11005# else
11006# define LT_DLLAZY_OR_NOW 0
11007# endif
11008# endif
11009# endif
11010# endif
11011#endif
11012
11013#ifdef __cplusplus
11014extern "C" void exit (int);
11015#endif
11016
11017void fnord() { int i=42;}
11018int main ()
11019{
11020 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11021 int status = $lt_dlunknown;
11022
11023 if (self)
11024 {
11025 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11026 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11027 /* dlclose (self); */
11028 }
11029 else
11030 puts (dlerror ());
11031
11032 exit (status);
11033}
11034_LT_EOF
11035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11036 (eval $ac_link) 2>&5
11037 ac_status=$?
11038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11040 (./conftest; exit; ) >&5 2>/dev/null
11041 lt_status=$?
11042 case x$lt_status in
11043 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11044 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11045 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11046 esac
11047 else :
11048 # compilation failed
11049 lt_cv_dlopen_self=no
11050 fi
11051fi
11052rm -fr conftest*
11053
11054
11055fi
11056{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11057$as_echo "$lt_cv_dlopen_self" >&6; }
11058
11059 if test "x$lt_cv_dlopen_self" = xyes; then
11060 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11061 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11062$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11063if test "${lt_cv_dlopen_self_static+set}" = set; then
11064 $as_echo_n "(cached) " >&6
11065else
11066 if test "$cross_compiling" = yes; then :
11067 lt_cv_dlopen_self_static=cross
11068else
11069 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11070 lt_status=$lt_dlunknown
11071 cat > conftest.$ac_ext <<_LT_EOF
11072#line 11072 "configure"
11073#include "confdefs.h"
11074
11075#if HAVE_DLFCN_H
11076#include <dlfcn.h>
11077#endif
11078
11079#include <stdio.h>
11080
11081#ifdef RTLD_GLOBAL
11082# define LT_DLGLOBAL RTLD_GLOBAL
11083#else
11084# ifdef DL_GLOBAL
11085# define LT_DLGLOBAL DL_GLOBAL
11086# else
11087# define LT_DLGLOBAL 0
11088# endif
11089#endif
11090
11091/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11092 find out it does not work in some platform. */
11093#ifndef LT_DLLAZY_OR_NOW
11094# ifdef RTLD_LAZY
11095# define LT_DLLAZY_OR_NOW RTLD_LAZY
11096# else
11097# ifdef DL_LAZY
11098# define LT_DLLAZY_OR_NOW DL_LAZY
11099# else
11100# ifdef RTLD_NOW
11101# define LT_DLLAZY_OR_NOW RTLD_NOW
11102# else
11103# ifdef DL_NOW
11104# define LT_DLLAZY_OR_NOW DL_NOW
11105# else
11106# define LT_DLLAZY_OR_NOW 0
11107# endif
11108# endif
11109# endif
11110# endif
11111#endif
11112
11113#ifdef __cplusplus
11114extern "C" void exit (int);
11115#endif
11116
11117void fnord() { int i=42;}
11118int main ()
11119{
11120 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11121 int status = $lt_dlunknown;
11122
11123 if (self)
11124 {
11125 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11126 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11127 /* dlclose (self); */
11128 }
11129 else
11130 puts (dlerror ());
11131
11132 exit (status);
11133}
11134_LT_EOF
11135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11136 (eval $ac_link) 2>&5
11137 ac_status=$?
11138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11140 (./conftest; exit; ) >&5 2>/dev/null
11141 lt_status=$?
11142 case x$lt_status in
11143 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11144 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11145 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11146 esac
11147 else :
11148 # compilation failed
11149 lt_cv_dlopen_self_static=no
11150 fi
11151fi
11152rm -fr conftest*
11153
11154
11155fi
11156{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11157$as_echo "$lt_cv_dlopen_self_static" >&6; }
11158 fi
11159
11160 CPPFLAGS="$save_CPPFLAGS"
11161 LDFLAGS="$save_LDFLAGS"
11162 LIBS="$save_LIBS"
11163 ;;
11164 esac
11165
11166 case $lt_cv_dlopen_self in
11167 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11168 *) enable_dlopen_self=unknown ;;
11169 esac
11170
11171 case $lt_cv_dlopen_self_static in
11172 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11173 *) enable_dlopen_self_static=unknown ;;
11174 esac
11175fi
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193striplib=
11194old_striplib=
11195{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11196$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11197if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11198 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11199 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11200 { $as_echo "$as_me:$LINENO: result: yes" >&5
11201$as_echo "yes" >&6; }
11202else
11203# FIXME - insert some real tests, host_os isn't really good enough
11204 case $host_os in
11205 darwin*)
11206 if test -n "$STRIP" ; then
11207 striplib="$STRIP -x"
11208 old_striplib="$STRIP -S"
11209 { $as_echo "$as_me:$LINENO: result: yes" >&5
11210$as_echo "yes" >&6; }
11211 else
11212 { $as_echo "$as_me:$LINENO: result: no" >&5
11213$as_echo "no" >&6; }
11214 fi
11215 ;;
11216 *)
11217 { $as_echo "$as_me:$LINENO: result: no" >&5
11218$as_echo "no" >&6; }
11219 ;;
11220 esac
11221fi
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234 # Report which library types will actually be built
11235 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11236$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11237 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11238$as_echo "$can_build_shared" >&6; }
11239
11240 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11241$as_echo_n "checking whether to build shared libraries... " >&6; }
11242 test "$can_build_shared" = "no" && enable_shared=no
11243
11244 # On AIX, shared libraries and static libraries use the same namespace, and
11245 # are all built from PIC.
11246 case $host_os in
11247 aix3*)
11248 test "$enable_shared" = yes && enable_static=no
11249 if test -n "$RANLIB"; then
11250 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11251 postinstall_cmds='$RANLIB $lib'
11252 fi
11253 ;;
11254
11255 aix[4-9]*)
11256 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11257 test "$enable_shared" = yes && enable_static=no
11258 fi
11259 ;;
11260 esac
11261 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11262$as_echo "$enable_shared" >&6; }
11263
11264 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11265$as_echo_n "checking whether to build static libraries... " >&6; }
11266 # Make sure either enable_shared or enable_static is yes.
11267 test "$enable_shared" = yes || enable_static=yes
11268 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11269$as_echo "$enable_static" >&6; }
11270
11271
11272
11273
11274fi
11275ac_ext=c
11276ac_cpp='$CPP $CPPFLAGS'
11277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11279ac_compiler_gnu=$ac_cv_c_compiler_gnu
11280
11281CC="$lt_save_CC"
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295 ac_config_commands="$ac_config_commands libtool"
11296
11297
11298
11299
11300# Only expand once:
11301
11302
11303
11304# Checks for header files.
11305{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11306$as_echo_n "checking for ANSI C header files... " >&6; }
11307if test "${ac_cv_header_stdc+set}" = set; then
11308 $as_echo_n "(cached) " >&6
11309else
11310 cat >conftest.$ac_ext <<_ACEOF
11311/* confdefs.h. */
11312_ACEOF
11313cat confdefs.h >>conftest.$ac_ext
11314cat >>conftest.$ac_ext <<_ACEOF
11315/* end confdefs.h. */
11316#include <stdlib.h>
11317#include <stdarg.h>
11318#include <string.h>
11319#include <float.h>
11320
11321int
11322main ()
11323{
11324
11325 ;
11326 return 0;
11327}
11328_ACEOF
11329rm -f conftest.$ac_objext
11330if { (ac_try="$ac_compile"
11331case "(($ac_try" in
11332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11333 *) ac_try_echo=$ac_try;;
11334esac
11335eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11336$as_echo "$ac_try_echo") >&5
11337 (eval "$ac_compile") 2>conftest.er1
11338 ac_status=$?
11339 grep -v '^ *+' conftest.er1 >conftest.err
11340 rm -f conftest.er1
11341 cat conftest.err >&5
11342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); } && {
11344 test -z "$ac_c_werror_flag" ||
11345 test ! -s conftest.err
11346 } && test -s conftest.$ac_objext; then
11347 ac_cv_header_stdc=yes
11348else
11349 $as_echo "$as_me: failed program was:" >&5
11350sed 's/^/| /' conftest.$ac_ext >&5
11351
11352 ac_cv_header_stdc=no
11353fi
11354
11355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11356
11357if test $ac_cv_header_stdc = yes; then
11358 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11359 cat >conftest.$ac_ext <<_ACEOF
11360/* confdefs.h. */
11361_ACEOF
11362cat confdefs.h >>conftest.$ac_ext
11363cat >>conftest.$ac_ext <<_ACEOF
11364/* end confdefs.h. */
11365#include <string.h>
11366
11367_ACEOF
11368if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11369 $EGREP "memchr" >/dev/null 2>&1; then
11370 :
11371else
11372 ac_cv_header_stdc=no
11373fi
11374rm -f conftest*
11375
11376fi
11377
11378if test $ac_cv_header_stdc = yes; then
11379 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11380 cat >conftest.$ac_ext <<_ACEOF
11381/* confdefs.h. */
11382_ACEOF
11383cat confdefs.h >>conftest.$ac_ext
11384cat >>conftest.$ac_ext <<_ACEOF
11385/* end confdefs.h. */
11386#include <stdlib.h>
11387
11388_ACEOF
11389if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11390 $EGREP "free" >/dev/null 2>&1; then
11391 :
11392else
11393 ac_cv_header_stdc=no
11394fi
11395rm -f conftest*
11396
11397fi
11398
11399if test $ac_cv_header_stdc = yes; then
11400 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11401 if test "$cross_compiling" = yes; then
11402 :
11403else
11404 cat >conftest.$ac_ext <<_ACEOF
11405/* confdefs.h. */
11406_ACEOF
11407cat confdefs.h >>conftest.$ac_ext
11408cat >>conftest.$ac_ext <<_ACEOF
11409/* end confdefs.h. */
11410#include <ctype.h>
11411#include <stdlib.h>
11412#if ((' ' & 0x0FF) == 0x020)
11413# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11414# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11415#else
11416# define ISLOWER(c) \
11417 (('a' <= (c) && (c) <= 'i') \
11418 || ('j' <= (c) && (c) <= 'r') \
11419 || ('s' <= (c) && (c) <= 'z'))
11420# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11421#endif
11422
11423#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11424int
11425main ()
11426{
11427 int i;
11428 for (i = 0; i < 256; i++)
11429 if (XOR (islower (i), ISLOWER (i))
11430 || toupper (i) != TOUPPER (i))
11431 return 2;
11432 return 0;
11433}
11434_ACEOF
11435rm -f conftest$ac_exeext
11436if { (ac_try="$ac_link"
11437case "(($ac_try" in
11438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439 *) ac_try_echo=$ac_try;;
11440esac
11441eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11442$as_echo "$ac_try_echo") >&5
11443 (eval "$ac_link") 2>&5
11444 ac_status=$?
11445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11447 { (case "(($ac_try" in
11448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11449 *) ac_try_echo=$ac_try;;
11450esac
11451eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11452$as_echo "$ac_try_echo") >&5
11453 (eval "$ac_try") 2>&5
11454 ac_status=$?
11455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); }; }; then
11457 :
11458else
11459 $as_echo "$as_me: program exited with status $ac_status" >&5
11460$as_echo "$as_me: failed program was:" >&5
11461sed 's/^/| /' conftest.$ac_ext >&5
11462
11463( exit $ac_status )
11464ac_cv_header_stdc=no
11465fi
11466rm -rf conftest.dSYM
11467rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11468fi
11469
11470
11471fi
11472fi
11473{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11474$as_echo "$ac_cv_header_stdc" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011475if test $ac_cv_header_stdc = yes; then
11476
11477cat >>confdefs.h <<\_ACEOF
11478#define STDC_HEADERS 1
11479_ACEOF
11480
11481fi
11482
11483
11484
11485
11486
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011487for ac_header in malloc.h stdlib.h string.h strings.h
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011488do
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011489as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011490if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011491 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11492$as_echo_n "checking for $ac_header... " >&6; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011493if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011494 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011495fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011496ac_res=`eval 'as_val=${'$as_ac_Header'}
11497 $as_echo "$as_val"'`
11498 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11499$as_echo "$ac_res" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011500else
11501 # Is the header compilable?
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011502{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11503$as_echo_n "checking $ac_header usability... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011504cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011505/* confdefs.h. */
11506_ACEOF
11507cat confdefs.h >>conftest.$ac_ext
11508cat >>conftest.$ac_ext <<_ACEOF
11509/* end confdefs.h. */
11510$ac_includes_default
11511#include <$ac_header>
11512_ACEOF
11513rm -f conftest.$ac_objext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011514if { (ac_try="$ac_compile"
11515case "(($ac_try" in
11516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11517 *) ac_try_echo=$ac_try;;
11518esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11520$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011521 (eval "$ac_compile") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011522 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011523 grep -v '^ *+' conftest.er1 >conftest.err
11524 rm -f conftest.er1
11525 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050011527 (exit $ac_status); } && {
11528 test -z "$ac_c_werror_flag" ||
11529 test ! -s conftest.err
11530 } && test -s conftest.$ac_objext; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011531 ac_header_compiler=yes
11532else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011533 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011534sed 's/^/| /' conftest.$ac_ext >&5
11535
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011536 ac_header_compiler=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011537fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011538
11539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011540{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11541$as_echo "$ac_header_compiler" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011542
11543# Is the header present?
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011544{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11545$as_echo_n "checking $ac_header presence... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011546cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011547/* confdefs.h. */
11548_ACEOF
11549cat confdefs.h >>conftest.$ac_ext
11550cat >>conftest.$ac_ext <<_ACEOF
11551/* end confdefs.h. */
11552#include <$ac_header>
11553_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011554if { (ac_try="$ac_cpp conftest.$ac_ext"
11555case "(($ac_try" in
11556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11557 *) ac_try_echo=$ac_try;;
11558esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011559eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11560$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011562 ac_status=$?
11563 grep -v '^ *+' conftest.er1 >conftest.err
11564 rm -f conftest.er1
11565 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050011567 (exit $ac_status); } >/dev/null && {
11568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11569 test ! -s conftest.err
11570 }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011571 ac_header_preproc=yes
11572else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011573 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011574sed 's/^/| /' conftest.$ac_ext >&5
11575
11576 ac_header_preproc=no
11577fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011578
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011579rm -f conftest.err conftest.$ac_ext
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011580{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11581$as_echo "$ac_header_preproc" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011582
11583# So? What about this header?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011584case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11585 yes:no: )
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011586 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11587$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11588 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11589$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011590 ac_header_preproc=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011591 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011592 no:yes:* )
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11594$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11596$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11597 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11598$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11600$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11601 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11602$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11603 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11604$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011605 ( cat <<\_ASBOX
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011606## ------------------------------------------------------ ##
11607## Report this to png-mng-implement@lists.sourceforge.net ##
11608## ------------------------------------------------------ ##
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011609_ASBOX
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011610 ) | sed "s/^/$as_me: WARNING: /" >&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011611 ;;
11612esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011613{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11614$as_echo_n "checking for $ac_header... " >&6; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011615if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011616 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011617else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011618 eval "$as_ac_Header=\$ac_header_preproc"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011619fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011620ac_res=`eval 'as_val=${'$as_ac_Header'}
11621 $as_echo "$as_val"'`
11622 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11623$as_echo "$ac_res" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011624
11625fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011626if test `eval 'as_val=${'$as_ac_Header'}
11627 $as_echo "$as_val"'` = yes; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011628 cat >>confdefs.h <<_ACEOF
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011629#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011630_ACEOF
11631
11632fi
11633
11634done
11635
11636
11637# Checks for typedefs, structures, and compiler characteristics.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011638{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11639$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011640if test "${ac_cv_c_const+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011641 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011642else
11643 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011644/* confdefs.h. */
11645_ACEOF
11646cat confdefs.h >>conftest.$ac_ext
11647cat >>conftest.$ac_ext <<_ACEOF
11648/* end confdefs.h. */
11649
11650int
11651main ()
11652{
11653/* FIXME: Include the comments suggested by Paul. */
11654#ifndef __cplusplus
11655 /* Ultrix mips cc rejects this. */
11656 typedef int charset[2];
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050011657 const charset cs;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011658 /* SunOS 4.1.1 cc rejects this. */
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050011659 char const *const *pcpcc;
11660 char **ppc;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011661 /* NEC SVR4.0.2 mips cc rejects this. */
11662 struct point {int x, y;};
11663 static struct point const zero = {0,0};
11664 /* AIX XL C 1.02.0.0 rejects this.
11665 It does not let you subtract one const X* pointer from another in
11666 an arm of an if-expression whose if-part is not a constant
11667 expression */
11668 const char *g = "string";
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050011669 pcpcc = &g + (g ? g-g : 0);
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011670 /* HPUX 7.0 cc rejects these. */
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050011671 ++pcpcc;
11672 ppc = (char**) pcpcc;
11673 pcpcc = (char const *const *) ppc;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011674 { /* SCO 3.2v4 cc rejects this. */
11675 char *t;
11676 char const *s = 0 ? (char *) 0 : (char const *) 0;
11677
11678 *t++ = 0;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011679 if (s) return 0;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011680 }
11681 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11682 int x[] = {25, 17};
11683 const int *foo = &x[0];
11684 ++foo;
11685 }
11686 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11687 typedef const int *iptr;
11688 iptr p = 0;
11689 ++p;
11690 }
11691 { /* AIX XL C 1.02.0.0 rejects this saying
11692 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11693 struct s { int j; const int *ap[3]; };
11694 struct s *b; b->j = 5;
11695 }
11696 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11697 const int foo = 10;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011698 if (!foo) return 0;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011699 }
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050011700 return !cs[0] && !zero.x;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011701#endif
11702
11703 ;
11704 return 0;
11705}
11706_ACEOF
11707rm -f conftest.$ac_objext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011708if { (ac_try="$ac_compile"
11709case "(($ac_try" in
11710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11711 *) ac_try_echo=$ac_try;;
11712esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011713eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11714$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011715 (eval "$ac_compile") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011716 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011717 grep -v '^ *+' conftest.er1 >conftest.err
11718 rm -f conftest.er1
11719 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050011721 (exit $ac_status); } && {
11722 test -z "$ac_c_werror_flag" ||
11723 test ! -s conftest.err
11724 } && test -s conftest.$ac_objext; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011725 ac_cv_c_const=yes
11726else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011727 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011728sed 's/^/| /' conftest.$ac_ext >&5
11729
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011730 ac_cv_c_const=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011731fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011732
11733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011734fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011735{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11736$as_echo "$ac_cv_c_const" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011737if test $ac_cv_c_const = no; then
11738
11739cat >>confdefs.h <<\_ACEOF
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011740#define const /**/
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011741_ACEOF
11742
11743fi
11744
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011745{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
11746$as_echo_n "checking for size_t... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011747if test "${ac_cv_type_size_t+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011748 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011749else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011750 ac_cv_type_size_t=no
11751cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011752/* confdefs.h. */
11753_ACEOF
11754cat confdefs.h >>conftest.$ac_ext
11755cat >>conftest.$ac_ext <<_ACEOF
11756/* end confdefs.h. */
11757$ac_includes_default
11758int
11759main ()
11760{
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011761if (sizeof (size_t))
11762 return 0;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011763 ;
11764 return 0;
11765}
11766_ACEOF
11767rm -f conftest.$ac_objext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011768if { (ac_try="$ac_compile"
11769case "(($ac_try" in
11770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11771 *) ac_try_echo=$ac_try;;
11772esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011773eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11774$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011775 (eval "$ac_compile") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011776 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011777 grep -v '^ *+' conftest.er1 >conftest.err
11778 rm -f conftest.er1
11779 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050011781 (exit $ac_status); } && {
11782 test -z "$ac_c_werror_flag" ||
11783 test ! -s conftest.err
11784 } && test -s conftest.$ac_objext; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011785 cat >conftest.$ac_ext <<_ACEOF
11786/* confdefs.h. */
11787_ACEOF
11788cat confdefs.h >>conftest.$ac_ext
11789cat >>conftest.$ac_ext <<_ACEOF
11790/* end confdefs.h. */
11791$ac_includes_default
11792int
11793main ()
11794{
11795if (sizeof ((size_t)))
11796 return 0;
11797 ;
11798 return 0;
11799}
11800_ACEOF
11801rm -f conftest.$ac_objext
11802if { (ac_try="$ac_compile"
11803case "(($ac_try" in
11804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11805 *) ac_try_echo=$ac_try;;
11806esac
11807eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11808$as_echo "$ac_try_echo") >&5
11809 (eval "$ac_compile") 2>conftest.er1
11810 ac_status=$?
11811 grep -v '^ *+' conftest.er1 >conftest.err
11812 rm -f conftest.er1
11813 cat conftest.err >&5
11814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); } && {
11816 test -z "$ac_c_werror_flag" ||
11817 test ! -s conftest.err
11818 } && test -s conftest.$ac_objext; then
11819 :
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011820else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011821 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011822sed 's/^/| /' conftest.$ac_ext >&5
11823
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011824 ac_cv_type_size_t=yes
11825fi
11826
11827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11828else
11829 $as_echo "$as_me: failed program was:" >&5
11830sed 's/^/| /' conftest.$ac_ext >&5
11831
11832
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011833fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011834
11835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011836fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011837{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11838$as_echo "$ac_cv_type_size_t" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011839if test $ac_cv_type_size_t = yes; then
11840 :
11841else
11842
11843cat >>confdefs.h <<_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011844#define size_t unsigned int
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011845_ACEOF
11846
11847fi
11848
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011849{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11850$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011851if test "${ac_cv_struct_tm+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011852 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011853else
11854 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011855/* confdefs.h. */
11856_ACEOF
11857cat confdefs.h >>conftest.$ac_ext
11858cat >>conftest.$ac_ext <<_ACEOF
11859/* end confdefs.h. */
11860#include <sys/types.h>
11861#include <time.h>
11862
11863int
11864main ()
11865{
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050011866struct tm tm;
11867 int *p = &tm.tm_sec;
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011868 return !p;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011869 ;
11870 return 0;
11871}
11872_ACEOF
11873rm -f conftest.$ac_objext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011874if { (ac_try="$ac_compile"
11875case "(($ac_try" in
11876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11877 *) ac_try_echo=$ac_try;;
11878esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011879eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11880$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011881 (eval "$ac_compile") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011882 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011883 grep -v '^ *+' conftest.er1 >conftest.err
11884 rm -f conftest.er1
11885 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050011887 (exit $ac_status); } && {
11888 test -z "$ac_c_werror_flag" ||
11889 test ! -s conftest.err
11890 } && test -s conftest.$ac_objext; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011891 ac_cv_struct_tm=time.h
11892else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011893 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011894sed 's/^/| /' conftest.$ac_ext >&5
11895
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011896 ac_cv_struct_tm=sys/time.h
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011897fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011898
11899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011900fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011901{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11902$as_echo "$ac_cv_struct_tm" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011903if test $ac_cv_struct_tm = sys/time.h; then
11904
11905cat >>confdefs.h <<\_ACEOF
11906#define TM_IN_SYS_TIME 1
11907_ACEOF
11908
11909fi
11910
11911
11912# Checks for library functions.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011913{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
11914$as_echo_n "checking for working strtod... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011915if test "${ac_cv_func_strtod+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011916 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011917else
11918 if test "$cross_compiling" = yes; then
11919 ac_cv_func_strtod=no
11920else
11921 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011922/* confdefs.h. */
11923_ACEOF
11924cat confdefs.h >>conftest.$ac_ext
11925cat >>conftest.$ac_ext <<_ACEOF
11926/* end confdefs.h. */
11927
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011928$ac_includes_default
11929#ifndef strtod
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011930double strtod ();
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011931#endif
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011932int
11933main()
11934{
11935 {
11936 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
11937 char *string = " +69";
11938 char *term;
11939 double value;
11940 value = strtod (string, &term);
11941 if (value != 69 || term != (string + 4))
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011942 return 1;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011943 }
11944
11945 {
11946 /* Under Solaris 2.4, strtod returns the wrong value for the
11947 terminating character under some conditions. */
11948 char *string = "NaN";
11949 char *term;
11950 strtod (string, &term);
11951 if (term != string && *(term - 1) == 0)
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011952 return 1;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011953 }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011954 return 0;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011955}
11956
11957_ACEOF
11958rm -f conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011959if { (ac_try="$ac_link"
11960case "(($ac_try" in
11961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11962 *) ac_try_echo=$ac_try;;
11963esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11965$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011966 (eval "$ac_link") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011967 ac_status=$?
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011970 { (case "(($ac_try" in
11971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11972 *) ac_try_echo=$ac_try;;
11973esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011974eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11975$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011976 (eval "$ac_try") 2>&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011977 ac_status=$?
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011979 (exit $ac_status); }; }; then
11980 ac_cv_func_strtod=yes
11981else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011982 $as_echo "$as_me: program exited with status $ac_status" >&5
11983$as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011984sed 's/^/| /' conftest.$ac_ext >&5
11985
11986( exit $ac_status )
11987ac_cv_func_strtod=no
11988fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011989rm -rf conftest.dSYM
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011990rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011991fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011992
11993
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011994fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050011995{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
11996$as_echo "$ac_cv_func_strtod" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060011997if test $ac_cv_func_strtod = no; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060011998 case " $LIBOBJS " in
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060011999 *" strtod.$ac_objext "* ) ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012000 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
12001 ;;
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012002esac
12003
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012004{ $as_echo "$as_me:$LINENO: checking for pow" >&5
12005$as_echo_n "checking for pow... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012006if test "${ac_cv_func_pow+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012007 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012008else
12009 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012010/* confdefs.h. */
12011_ACEOF
12012cat confdefs.h >>conftest.$ac_ext
12013cat >>conftest.$ac_ext <<_ACEOF
12014/* end confdefs.h. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012015/* Define pow to an innocuous variant, in case <limits.h> declares pow.
12016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12017#define pow innocuous_pow
12018
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012019/* System header to define __stub macros and hopefully few prototypes,
12020 which can conflict with char pow (); below.
12021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12022 <limits.h> exists even on freestanding compilers. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012023
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012024#ifdef __STDC__
12025# include <limits.h>
12026#else
12027# include <assert.h>
12028#endif
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012029
12030#undef pow
12031
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012032/* Override any GCC internal prototype to avoid an error.
12033 Use char because int might match the return type of a GCC
12034 builtin and then its argument prototype would still apply. */
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012035#ifdef __cplusplus
12036extern "C"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012037#endif
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012038char pow ();
12039/* The GNU C library defines this for functions which it implements
12040 to always fail with ENOSYS. Some functions are actually named
12041 something starting with __ and the normal name is an alias. */
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012042#if defined __stub_pow || defined __stub___pow
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012043choke me
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012044#endif
12045
12046int
12047main ()
12048{
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012049return pow ();
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012050 ;
12051 return 0;
12052}
12053_ACEOF
12054rm -f conftest.$ac_objext conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012055if { (ac_try="$ac_link"
12056case "(($ac_try" in
12057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12058 *) ac_try_echo=$ac_try;;
12059esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012060eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12061$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012062 (eval "$ac_link") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012063 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012064 grep -v '^ *+' conftest.er1 >conftest.err
12065 rm -f conftest.er1
12066 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050012068 (exit $ac_status); } && {
12069 test -z "$ac_c_werror_flag" ||
12070 test ! -s conftest.err
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012071 } && test -s conftest$ac_exeext && {
12072 test "$cross_compiling" = yes ||
12073 $as_test_x conftest$ac_exeext
12074 }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012075 ac_cv_func_pow=yes
12076else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012077 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012078sed 's/^/| /' conftest.$ac_ext >&5
12079
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012080 ac_cv_func_pow=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012081fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012082
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012083rm -rf conftest.dSYM
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050012084rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012085 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012086fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012087{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
12088$as_echo "$ac_cv_func_pow" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012089
12090if test $ac_cv_func_pow = no; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012091 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
12092$as_echo_n "checking for pow in -lm... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012093if test "${ac_cv_lib_m_pow+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012094 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012095else
12096 ac_check_lib_save_LIBS=$LIBS
12097LIBS="-lm $LIBS"
12098cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012099/* confdefs.h. */
12100_ACEOF
12101cat confdefs.h >>conftest.$ac_ext
12102cat >>conftest.$ac_ext <<_ACEOF
12103/* end confdefs.h. */
12104
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012105/* Override any GCC internal prototype to avoid an error.
12106 Use char because int might match the return type of a GCC
12107 builtin and then its argument prototype would still apply. */
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012108#ifdef __cplusplus
12109extern "C"
12110#endif
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012111char pow ();
12112int
12113main ()
12114{
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012115return pow ();
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012116 ;
12117 return 0;
12118}
12119_ACEOF
12120rm -f conftest.$ac_objext conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012121if { (ac_try="$ac_link"
12122case "(($ac_try" in
12123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12124 *) ac_try_echo=$ac_try;;
12125esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012126eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12127$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012128 (eval "$ac_link") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012129 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012130 grep -v '^ *+' conftest.er1 >conftest.err
12131 rm -f conftest.er1
12132 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050012134 (exit $ac_status); } && {
12135 test -z "$ac_c_werror_flag" ||
12136 test ! -s conftest.err
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012137 } && test -s conftest$ac_exeext && {
12138 test "$cross_compiling" = yes ||
12139 $as_test_x conftest$ac_exeext
12140 }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012141 ac_cv_lib_m_pow=yes
12142else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012143 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012144sed 's/^/| /' conftest.$ac_ext >&5
12145
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012146 ac_cv_lib_m_pow=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012147fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012148
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012149rm -rf conftest.dSYM
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050012150rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012151 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012152LIBS=$ac_check_lib_save_LIBS
12153fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012154{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
12155$as_echo "$ac_cv_lib_m_pow" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012156if test $ac_cv_lib_m_pow = yes; then
12157 POW_LIB=-lm
12158else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012159 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
12160$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012161fi
12162
12163fi
12164
12165fi
12166
12167
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012168for ac_func in memset
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012169do
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012170as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12171{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12172$as_echo_n "checking for $ac_func... " >&6; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012173if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012174 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012175else
12176 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012177/* confdefs.h. */
12178_ACEOF
12179cat confdefs.h >>conftest.$ac_ext
12180cat >>conftest.$ac_ext <<_ACEOF
12181/* end confdefs.h. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012182/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12184#define $ac_func innocuous_$ac_func
12185
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012186/* System header to define __stub macros and hopefully few prototypes,
12187 which can conflict with char $ac_func (); below.
12188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12189 <limits.h> exists even on freestanding compilers. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012190
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012191#ifdef __STDC__
12192# include <limits.h>
12193#else
12194# include <assert.h>
12195#endif
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012196
12197#undef $ac_func
12198
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012199/* Override any GCC internal prototype to avoid an error.
12200 Use char because int might match the return type of a GCC
12201 builtin and then its argument prototype would still apply. */
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012202#ifdef __cplusplus
12203extern "C"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012204#endif
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012205char $ac_func ();
12206/* The GNU C library defines this for functions which it implements
12207 to always fail with ENOSYS. Some functions are actually named
12208 something starting with __ and the normal name is an alias. */
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012209#if defined __stub_$ac_func || defined __stub___$ac_func
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012210choke me
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012211#endif
12212
12213int
12214main ()
12215{
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012216return $ac_func ();
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012217 ;
12218 return 0;
12219}
12220_ACEOF
12221rm -f conftest.$ac_objext conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012222if { (ac_try="$ac_link"
12223case "(($ac_try" in
12224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12225 *) ac_try_echo=$ac_try;;
12226esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12228$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012229 (eval "$ac_link") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012230 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012231 grep -v '^ *+' conftest.er1 >conftest.err
12232 rm -f conftest.er1
12233 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050012235 (exit $ac_status); } && {
12236 test -z "$ac_c_werror_flag" ||
12237 test ! -s conftest.err
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012238 } && test -s conftest$ac_exeext && {
12239 test "$cross_compiling" = yes ||
12240 $as_test_x conftest$ac_exeext
12241 }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012242 eval "$as_ac_var=yes"
12243else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012244 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012245sed 's/^/| /' conftest.$ac_ext >&5
12246
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012247 eval "$as_ac_var=no"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012248fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012249
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012250rm -rf conftest.dSYM
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050012251rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012252 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012253fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012254ac_res=`eval 'as_val=${'$as_ac_var'}
12255 $as_echo "$as_val"'`
12256 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12257$as_echo "$ac_res" >&6; }
12258if test `eval 'as_val=${'$as_ac_var'}
12259 $as_echo "$as_val"'` = yes; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012260 cat >>confdefs.h <<_ACEOF
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012261#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012262_ACEOF
12263
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012264else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012265 { { $as_echo "$as_me:$LINENO: error: memset not found in libc" >&5
12266$as_echo "$as_me: error: memset not found in libc" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012267 { (exit 1); exit 1; }; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012268fi
12269done
12270
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012271
12272for ac_func in pow
12273do
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012274as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12275{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12276$as_echo_n "checking for $ac_func... " >&6; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012277if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012278 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012279else
12280 cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012281/* confdefs.h. */
12282_ACEOF
12283cat confdefs.h >>conftest.$ac_ext
12284cat >>conftest.$ac_ext <<_ACEOF
12285/* end confdefs.h. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012286/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12288#define $ac_func innocuous_$ac_func
12289
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012290/* System header to define __stub macros and hopefully few prototypes,
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012291 which can conflict with char $ac_func (); below.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12293 <limits.h> exists even on freestanding compilers. */
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012294
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012295#ifdef __STDC__
12296# include <limits.h>
12297#else
12298# include <assert.h>
12299#endif
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012300
12301#undef $ac_func
12302
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012303/* Override any GCC internal prototype to avoid an error.
12304 Use char because int might match the return type of a GCC
12305 builtin and then its argument prototype would still apply. */
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012306#ifdef __cplusplus
12307extern "C"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012308#endif
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012309char $ac_func ();
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012310/* The GNU C library defines this for functions which it implements
12311 to always fail with ENOSYS. Some functions are actually named
12312 something starting with __ and the normal name is an alias. */
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012313#if defined __stub_$ac_func || defined __stub___$ac_func
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012314choke me
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012315#endif
12316
12317int
12318main ()
12319{
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012320return $ac_func ();
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012321 ;
12322 return 0;
12323}
12324_ACEOF
12325rm -f conftest.$ac_objext conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012326if { (ac_try="$ac_link"
12327case "(($ac_try" in
12328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12329 *) ac_try_echo=$ac_try;;
12330esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012331eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12332$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012333 (eval "$ac_link") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012334 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012335 grep -v '^ *+' conftest.er1 >conftest.err
12336 rm -f conftest.er1
12337 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050012339 (exit $ac_status); } && {
12340 test -z "$ac_c_werror_flag" ||
12341 test ! -s conftest.err
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012342 } && test -s conftest$ac_exeext && {
12343 test "$cross_compiling" = yes ||
12344 $as_test_x conftest$ac_exeext
12345 }; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012346 eval "$as_ac_var=yes"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012347else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012348 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012349sed 's/^/| /' conftest.$ac_ext >&5
12350
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012351 eval "$as_ac_var=no"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012352fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012353
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012354rm -rf conftest.dSYM
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050012355rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012356 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012357fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012358ac_res=`eval 'as_val=${'$as_ac_var'}
12359 $as_echo "$as_val"'`
12360 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12361$as_echo "$ac_res" >&6; }
12362if test `eval 'as_val=${'$as_ac_var'}
12363 $as_echo "$as_val"'` = yes; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012364 cat >>confdefs.h <<_ACEOF
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012365#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012366_ACEOF
12367
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012368else
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -060012369
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012370{ $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
12371$as_echo_n "checking for pow in -lm... " >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012372if test "${ac_cv_lib_m_pow+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012373 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012374else
12375 ac_check_lib_save_LIBS=$LIBS
12376LIBS="-lm $LIBS"
12377cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012378/* confdefs.h. */
12379_ACEOF
12380cat confdefs.h >>conftest.$ac_ext
12381cat >>conftest.$ac_ext <<_ACEOF
12382/* end confdefs.h. */
12383
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012384/* Override any GCC internal prototype to avoid an error.
12385 Use char because int might match the return type of a GCC
12386 builtin and then its argument prototype would still apply. */
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012387#ifdef __cplusplus
12388extern "C"
12389#endif
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012390char pow ();
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012391int
12392main ()
12393{
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012394return pow ();
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012395 ;
12396 return 0;
12397}
12398_ACEOF
12399rm -f conftest.$ac_objext conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012400if { (ac_try="$ac_link"
12401case "(($ac_try" in
12402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12403 *) ac_try_echo=$ac_try;;
12404esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012405eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12406$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012407 (eval "$ac_link") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012408 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012409 grep -v '^ *+' conftest.er1 >conftest.err
12410 rm -f conftest.er1
12411 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050012413 (exit $ac_status); } && {
12414 test -z "$ac_c_werror_flag" ||
12415 test ! -s conftest.err
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012416 } && test -s conftest$ac_exeext && {
12417 test "$cross_compiling" = yes ||
12418 $as_test_x conftest$ac_exeext
12419 }; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012420 ac_cv_lib_m_pow=yes
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012421else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012422 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012423sed 's/^/| /' conftest.$ac_ext >&5
12424
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012425 ac_cv_lib_m_pow=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012426fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012427
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012428rm -rf conftest.dSYM
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050012429rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012430 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012431LIBS=$ac_check_lib_save_LIBS
12432fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012433{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
12434$as_echo "$ac_cv_lib_m_pow" >&6; }
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012435if test $ac_cv_lib_m_pow = yes; then
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -060012436 cat >>confdefs.h <<_ACEOF
12437#define HAVE_LIBM 1
12438_ACEOF
12439
12440 LIBS="-lm $LIBS"
12441
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012442else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012443 { { $as_echo "$as_me:$LINENO: error: cannot find pow" >&5
12444$as_echo "$as_me: error: cannot find pow" >&2;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012445 { (exit 1); exit 1; }; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012446fi
12447
12448fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012449done
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012450
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -060012451
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012452{ $as_echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
12453$as_echo_n "checking for zlibVersion in -lz... " >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012454if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012455 $as_echo_n "(cached) " >&6
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012456else
12457 ac_check_lib_save_LIBS=$LIBS
12458LIBS="-lz $LIBS"
12459cat >conftest.$ac_ext <<_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012460/* confdefs.h. */
12461_ACEOF
12462cat confdefs.h >>conftest.$ac_ext
12463cat >>conftest.$ac_ext <<_ACEOF
12464/* end confdefs.h. */
12465
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012466/* Override any GCC internal prototype to avoid an error.
12467 Use char because int might match the return type of a GCC
12468 builtin and then its argument prototype would still apply. */
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012469#ifdef __cplusplus
12470extern "C"
12471#endif
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012472char zlibVersion ();
12473int
12474main ()
12475{
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012476return zlibVersion ();
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012477 ;
12478 return 0;
12479}
12480_ACEOF
12481rm -f conftest.$ac_objext conftest$ac_exeext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012482if { (ac_try="$ac_link"
12483case "(($ac_try" in
12484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12485 *) ac_try_echo=$ac_try;;
12486esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012487eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12488$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012489 (eval "$ac_link") 2>conftest.er1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012490 ac_status=$?
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012491 grep -v '^ *+' conftest.er1 >conftest.err
12492 rm -f conftest.er1
12493 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050012495 (exit $ac_status); } && {
12496 test -z "$ac_c_werror_flag" ||
12497 test ! -s conftest.err
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012498 } && test -s conftest$ac_exeext && {
12499 test "$cross_compiling" = yes ||
12500 $as_test_x conftest$ac_exeext
12501 }; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012502 ac_cv_lib_z_zlibVersion=yes
12503else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012504 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012505sed 's/^/| /' conftest.$ac_ext >&5
12506
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012507 ac_cv_lib_z_zlibVersion=no
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012508fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012509
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012510rm -rf conftest.dSYM
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050012511rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012512 conftest$ac_exeext conftest.$ac_ext
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012513LIBS=$ac_check_lib_save_LIBS
12514fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012515{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
12516$as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012517if test $ac_cv_lib_z_zlibVersion = yes; then
Glenn Randers-Pehrson5c60b232006-03-07 07:09:22 -060012518 cat >>confdefs.h <<_ACEOF
12519#define HAVE_LIBZ 1
12520_ACEOF
12521
12522 LIBS="-lz $LIBS"
12523
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012524else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012525 { { $as_echo "$as_me:$LINENO: error: zlib not installed" >&5
12526$as_echo "$as_me: error: zlib not installed" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012527 { (exit 1); exit 1; }; }
12528fi
12529
12530
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012531LIBPNG_DEFINES=-DPNG_CONFIGURE_LIBPNG
12532{ $as_echo "$as_me:$LINENO: checking if assembler code in pnggccrd.c can be compiled without PNG_NO_MMX_CODE" >&5
12533$as_echo_n "checking if assembler code in pnggccrd.c can be compiled without PNG_NO_MMX_CODE... " >&6; }
Glenn Randers-Pehrsonb511b602006-04-16 19:45:31 -050012534cat >conftest.$ac_ext <<_ACEOF
12535/* confdefs.h. */
12536_ACEOF
12537cat confdefs.h >>conftest.$ac_ext
12538cat >>conftest.$ac_ext <<_ACEOF
12539/* end confdefs.h. */
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012540#include "$srcdir/pnggccrd.c"
Glenn Randers-Pehrsonb511b602006-04-16 19:45:31 -050012541int
12542main ()
12543{
Glenn Randers-Pehrson629330e2006-04-17 14:33:23 -050012544return 0;
Glenn Randers-Pehrsonb511b602006-04-16 19:45:31 -050012545 ;
12546 return 0;
12547}
12548_ACEOF
12549rm -f conftest.$ac_objext
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012550if { (ac_try="$ac_compile"
12551case "(($ac_try" in
12552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553 *) ac_try_echo=$ac_try;;
12554esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012555eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12556$as_echo "$ac_try_echo") >&5
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012557 (eval "$ac_compile") 2>conftest.er1
Glenn Randers-Pehrsonb511b602006-04-16 19:45:31 -050012558 ac_status=$?
12559 grep -v '^ *+' conftest.er1 >conftest.err
12560 rm -f conftest.er1
12561 cat conftest.err >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050012563 (exit $ac_status); } && {
12564 test -z "$ac_c_werror_flag" ||
12565 test ! -s conftest.err
12566 } && test -s conftest.$ac_objext; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012567 { $as_echo "$as_me:$LINENO: result: yes" >&5
12568$as_echo "yes" >&6; }
12569 LIBPNG_NO_MMX=""
Glenn Randers-Pehrsonb511b602006-04-16 19:45:31 -050012570else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012571 $as_echo "$as_me: failed program was:" >&5
Glenn Randers-Pehrsonb511b602006-04-16 19:45:31 -050012572sed 's/^/| /' conftest.$ac_ext >&5
12573
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012574 { $as_echo "$as_me:$LINENO: result: no" >&5
12575$as_echo "no" >&6; }
12576 LIBPNG_NO_MMX=-DPNG_NO_MMX_CODE
Glenn Randers-Pehrsonb511b602006-04-16 19:45:31 -050012577fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012578
12579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012580LIBPNG_DEFINES=$LIBPNG_DEFINES\ $LIBPNG_NO_MMX
Glenn Randers-Pehrsonb511b602006-04-16 19:45:31 -050012581
12582
Glenn Randers-Pehrsonb3870ab2006-05-11 09:43:09 -050012583
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012584{ $as_echo "$as_me:$LINENO: checking if libraries can be versioned" >&5
12585$as_echo_n "checking if libraries can be versioned... " >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060012586GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
12587if test "$GLD"; then
12588 have_ld_version_script=yes
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012589 { $as_echo "$as_me:$LINENO: result: yes" >&5
12590$as_echo "yes" >&6; }
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060012591else
12592 have_ld_version_script=no
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012593 { $as_echo "$as_me:$LINENO: result: no" >&5
12594$as_echo "no" >&6; }
12595 { $as_echo "$as_me:$LINENO: WARNING: *** You have not enabled versioned symbols." >&5
12596$as_echo "$as_me: WARNING: *** You have not enabled versioned symbols." >&2;}
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060012597fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012598 if test "$have_ld_version_script" = "yes"; then
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060012599 HAVE_LD_VERSION_SCRIPT_TRUE=
12600 HAVE_LD_VERSION_SCRIPT_FALSE='#'
12601else
12602 HAVE_LD_VERSION_SCRIPT_TRUE='#'
12603 HAVE_LD_VERSION_SCRIPT_FALSE=
12604fi
12605
12606
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012607if test "$have_ld_version_script" = "yes"; then
12608 { $as_echo "$as_me:$LINENO: checking for symbol prefix" >&5
12609$as_echo_n "checking for symbol prefix... " >&6; }
12610 SYMBOL_PREFIX=`echo "PREFIX=__USER_LABEL_PREFIX__" \
12611 | ${CPP-${CC-gcc} -E} - 2>&1 \
12612 | ${EGREP-grep} "^PREFIX=" \
12613 | ${SED-sed} "s:^PREFIX=::"`
12614
12615 { $as_echo "$as_me:$LINENO: result: $SYMBOL_PREFIX" >&5
12616$as_echo "$SYMBOL_PREFIX" >&6; }
12617fi
12618
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012619# Substitutions for .in files
12620
12621
12622
12623
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012624
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012625# Additional arguments (and substitutions)
12626# Allow the pkg-config directory to be set
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012627
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012628# Check whether --with-pkgconfigdir was given.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012629if test "${with_pkgconfigdir+set}" = set; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012630 withval=$with_pkgconfigdir; pkgconfigdir=${withval}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012631else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012632 pkgconfigdir='${libdir}/pkgconfig'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012633fi
12634
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012635
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012636
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012637{ $as_echo "$as_me:$LINENO: pkgconfig directory is ${pkgconfigdir}" >&5
12638$as_echo "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012639
12640# Make the *-config binary config scripts optional
12641
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012642# Check whether --with-binconfigs was given.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012643if test "${with_binconfigs+set}" = set; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012644 withval=$with_binconfigs; if test "${withval}" = no; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012645 binconfigs=
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012646 { $as_echo "$as_me:$LINENO: libpng-config scripts will not be built" >&5
12647$as_echo "$as_me: libpng-config scripts will not be built" >&6;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012648 else
12649 binconfigs='${binconfigs}'
12650 fi
12651else
12652 binconfigs='${binconfigs}'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012653fi
12654
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012655
12656
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012657# Allow the old version number library, libpng.so, to be removed from
12658# the build
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012659
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012660# Check whether --with-libpng-compat was given.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012661if test "${with_libpng_compat+set}" = set; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012662 withval=$with_libpng_compat; if test "${withval}" = no; then
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012663 compatlib=
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012664 { $as_echo "$as_me:$LINENO: libpng.so will not be built" >&5
12665$as_echo "$as_me: libpng.so will not be built" >&6;}
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012666 else
12667 compatlib=libpng.la
12668 fi
12669else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012670 compatlib=libpng.la
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012671fi
12672
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012673
12674
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012675# Config files, substituting as above
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012676ac_config_files="$ac_config_files Makefile libpng.pc:scripts/libpng.pc-configure.in"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012677
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012678ac_config_files="$ac_config_files libpng-config:scripts/libpng-config.in"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012679
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012680
12681cat >confcache <<\_ACEOF
12682# This file is a shell script that caches the results of configure
12683# tests run on this system so they can be shared between configure
12684# scripts and configure runs, see configure's option --config-cache.
12685# It is not useful on other systems. If it contains results you don't
12686# want to keep, you may remove or edit it.
12687#
12688# config.status only pays attention to the cache file if you give it
12689# the --recheck option to rerun configure.
12690#
12691# `ac_cv_env_foo' variables (set or unset) will be overridden when
12692# loading this file, other *unset* `ac_cv_foo' will be assigned the
12693# following values.
12694
12695_ACEOF
12696
12697# The following way of writing the cache mishandles newlines in values,
12698# but we know of no workaround that is simple, portable, and efficient.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012699# So, we kill variables containing newlines.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012700# Ultrix sh set writes to stderr and can't be redirected directly,
12701# and sets the high bit in the cache file unless we assign to the vars.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012702(
12703 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12704 eval ac_val=\$$ac_var
12705 case $ac_val in #(
12706 *${as_nl}*)
12707 case $ac_var in #(
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012708 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12709$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012710 esac
12711 case $ac_var in #(
12712 _ | IFS | as_nl) ;; #(
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012713 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012714 *) $as_unset $ac_var ;;
12715 esac ;;
12716 esac
12717 done
12718
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012719 (set) 2>&1 |
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012720 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12721 *${as_nl}ac_space=\ *)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012722 # `set' does not quote correctly, so add quotes (double-quote
12723 # substitution turns \\\\ into \\, and sed turns \\ into \).
12724 sed -n \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012725 "s/'/'\\\\''/g;
12726 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012727 ;; #(
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012728 *)
12729 # `set' quotes correctly as required by POSIX, so do not add quotes.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012730 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012731 ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012732 esac |
12733 sort
12734) |
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012735 sed '
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012736 /^ac_cv_env_/b end
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012737 t clear
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012738 :clear
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012739 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12740 t end
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012741 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12742 :end' >>confcache
12743if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12744 if test -w "$cache_file"; then
12745 test "x$cache_file" != "x/dev/null" &&
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012746 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12747$as_echo "$as_me: updating cache $cache_file" >&6;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012748 cat confcache >$cache_file
12749 else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012750 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12751$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012752 fi
12753fi
12754rm -f confcache
12755
12756test "x$prefix" = xNONE && prefix=$ac_default_prefix
12757# Let make expand exec_prefix.
12758test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12759
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012760DEFS=-DHAVE_CONFIG_H
12761
12762ac_libobjs=
12763ac_ltlibobjs=
12764for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12765 # 1. Remove the extension, and $U if already installed.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012766 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012767 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012768 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12769 # will be set to the directory where LIBOBJS objects are built.
12770 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12771 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012772done
12773LIBOBJS=$ac_libobjs
12774
12775LTLIBOBJS=$ac_ltlibobjs
12776
12777
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012778if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012779 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012780Usually this means the macro was only invoked conditionally." >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012781$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012782Usually this means the macro was only invoked conditionally." >&2;}
12783 { (exit 1); exit 1; }; }
12784fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012785if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012786 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012787Usually this means the macro was only invoked conditionally." >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012788$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012789Usually this means the macro was only invoked conditionally." >&2;}
12790 { (exit 1); exit 1; }; }
12791fi
12792if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012793 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012794Usually this means the macro was only invoked conditionally." >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012795$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060012796Usually this means the macro was only invoked conditionally." >&2;}
12797 { (exit 1); exit 1; }; }
12798fi
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060012799if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012800 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060012801Usually this means the macro was only invoked conditionally." >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012802$as_echo "$as_me: error: conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
Glenn Randers-Pehrsone6474622006-03-04 16:50:47 -060012803Usually this means the macro was only invoked conditionally." >&2;}
12804 { (exit 1); exit 1; }; }
12805fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012806
12807: ${CONFIG_STATUS=./config.status}
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012808ac_write_fail=0
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012809ac_clean_files_save=$ac_clean_files
12810ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012811{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12812$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12813cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012814#! $SHELL
12815# Generated by $as_me.
12816# Run this file to recreate the current configuration.
12817# Compiler output produced by configure, useful for debugging
12818# configure, is in config.log if it exists.
12819
12820debug=false
12821ac_cs_recheck=false
12822ac_cs_silent=false
12823SHELL=\${CONFIG_SHELL-$SHELL}
12824_ACEOF
12825
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012826cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012827## --------------------- ##
12828## M4sh Initialization. ##
12829## --------------------- ##
12830
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050012831# Be more Bourne compatible
12832DUALCASE=1; export DUALCASE # for MKS sh
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012833if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12834 emulate sh
12835 NULLCMD=:
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012836 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012837 # is contrary to our usage. Disable this feature.
12838 alias -g '${1+"$@"}'='"$@"'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012839 setopt NO_GLOB_SUBST
12840else
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050012841 case `(set -o) 2>/dev/null` in
12842 *posix*) set -o posix ;;
12843esac
12844
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012845fi
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050012846
12847
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012848
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012849
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012850# PATH needs CR
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012851# Avoid depending upon Character Ranges.
12852as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12853as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12854as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12855as_cr_digits='0123456789'
12856as_cr_alnum=$as_cr_Letters$as_cr_digits
12857
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012858as_nl='
12859'
12860export as_nl
12861# Printing a long string crashes Solaris 7 /usr/bin/printf.
12862as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12863as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12864as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12865if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12866 as_echo='printf %s\n'
12867 as_echo_n='printf %s'
12868else
12869 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12870 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12871 as_echo_n='/usr/ucb/echo -n'
12872 else
12873 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12874 as_echo_n_body='eval
12875 arg=$1;
12876 case $arg in
12877 *"$as_nl"*)
12878 expr "X$arg" : "X\\(.*\\)$as_nl";
12879 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12880 esac;
12881 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12882 '
12883 export as_echo_n_body
12884 as_echo_n='sh -c $as_echo_n_body as_echo'
12885 fi
12886 export as_echo_body
12887 as_echo='sh -c $as_echo_body as_echo'
12888fi
12889
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012890# The user is always right.
12891if test "${PATH_SEPARATOR+set}" != set; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012892 PATH_SEPARATOR=:
12893 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12894 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12895 PATH_SEPARATOR=';'
12896 }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012897fi
12898
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012899# Support unset when possible.
12900if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12901 as_unset=unset
12902else
12903 as_unset=false
12904fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012905
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012906
12907# IFS
12908# We need space, tab and new line, in precisely that order. Quoting is
12909# there to prevent editors from complaining about space-tab.
12910# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12911# splitting by setting IFS to empty value.)
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012912IFS=" "" $as_nl"
12913
12914# Find who we are. Look in the path if we contain no directory separator.
12915case $0 in
12916 *[\\/]* ) as_myself=$0 ;;
12917 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012918for as_dir in $PATH
12919do
12920 IFS=$as_save_IFS
12921 test -z "$as_dir" && as_dir=.
12922 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12923done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012924IFS=$as_save_IFS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012925
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012926 ;;
12927esac
12928# We did not find ourselves, most probably we were run as `sh COMMAND'
12929# in which case we are not to be found in the path.
12930if test "x$as_myself" = x; then
12931 as_myself=$0
12932fi
12933if test ! -f "$as_myself"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012934 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012935 { (exit 1); exit 1; }
12936fi
12937
12938# Work around bugs in pre-3.0 UWIN ksh.
12939for as_var in ENV MAIL MAILPATH
12940do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12941done
12942PS1='$ '
12943PS2='> '
12944PS4='+ '
12945
12946# NLS nuisances.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012947LC_ALL=C
12948export LC_ALL
12949LANGUAGE=C
12950export LANGUAGE
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012951
12952# Required to use basename.
12953if expr a : '\(a\)' >/dev/null 2>&1 &&
12954 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12955 as_expr=expr
12956else
12957 as_expr=false
12958fi
12959
12960if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12961 as_basename=basename
12962else
12963 as_basename=false
12964fi
12965
12966
12967# Name of the executable.
12968as_me=`$as_basename -- "$0" ||
12969$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12970 X"$0" : 'X\(//\)$' \| \
12971 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050012972$as_echo X/"$0" |
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012973 sed '/^.*\/\([^/][^/]*\)\/*$/{
12974 s//\1/
12975 q
12976 }
12977 /^X\/\(\/\/\)$/{
12978 s//\1/
12979 q
12980 }
12981 /^X\/\(\/\).*/{
12982 s//\1/
12983 q
12984 }
12985 s/.*/./; q'`
12986
12987# CDPATH.
12988$as_unset CDPATH
12989
12990
12991
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012992 as_lineno_1=$LINENO
12993 as_lineno_2=$LINENO
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012994 test "x$as_lineno_1" != "x$as_lineno_2" &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012995 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060012996
12997 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12998 # uniformly replaced by the line number. The first 'sed' inserts a
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060012999 # line-number line after each line using $LINENO; the second 'sed'
13000 # does the real work. The second script uses 'N' to pair each
13001 # line-number line with the line containing $LINENO, and appends
13002 # trailing '-' during substitution so that $LINENO is not a special
13003 # case at line end.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013004 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013005 # scripts with optimization help from Paolo Bonzini. Blame Lee
13006 # E. McMahon (1931-1989) for sed's syntax. :-)
13007 sed -n '
13008 p
13009 /[$]LINENO/=
13010 ' <$as_myself |
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013011 sed '
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013012 s/[$]LINENO.*/&-/
13013 t lineno
13014 b
13015 :lineno
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013016 N
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013017 :loop
13018 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013019 t loop
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013020 s/-\n.*//
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013021 ' >$as_me.lineno &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013022 chmod +x "$as_me.lineno" ||
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013023 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013024 { (exit 1); exit 1; }; }
13025
13026 # Don't try to exec as it changes $[0], causing all sort of problems
13027 # (the dirname of $[0] is not the place where we might find the
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013028 # original and so on. Autoconf is especially sensitive to this).
13029 . "./$as_me.lineno"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013030 # Exit status is that of the last command.
13031 exit
13032}
13033
13034
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013035if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13036 as_dirname=dirname
13037else
13038 as_dirname=false
13039fi
13040
13041ECHO_C= ECHO_N= ECHO_T=
13042case `echo -n x` in
13043-n*)
13044 case `echo 'x\c'` in
13045 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13046 *) ECHO_C='\c';;
13047 esac;;
13048*)
13049 ECHO_N='-n';;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013050esac
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013051if expr a : '\(a\)' >/dev/null 2>&1 &&
13052 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013053 as_expr=expr
13054else
13055 as_expr=false
13056fi
13057
13058rm -f conf$$ conf$$.exe conf$$.file
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013059if test -d conf$$.dir; then
13060 rm -f conf$$.dir/conf$$.file
13061else
13062 rm -f conf$$.dir
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013063 mkdir conf$$.dir 2>/dev/null
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013064fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013065if (echo >conf$$.file) 2>/dev/null; then
13066 if ln -s conf$$.file conf$$ 2>/dev/null; then
13067 as_ln_s='ln -s'
13068 # ... but there are two gotchas:
13069 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13070 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13071 # In both cases, we have to default to `cp -p'.
13072 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13073 as_ln_s='cp -p'
13074 elif ln conf$$.file conf$$ 2>/dev/null; then
13075 as_ln_s=ln
13076 else
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013077 as_ln_s='cp -p'
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013078 fi
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013079else
13080 as_ln_s='cp -p'
13081fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013082rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13083rmdir conf$$.dir 2>/dev/null
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013084
13085if mkdir -p . 2>/dev/null; then
13086 as_mkdir_p=:
13087else
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060013088 test -d ./-p && rmdir ./-p
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013089 as_mkdir_p=false
13090fi
13091
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050013092if test -x / >/dev/null 2>&1; then
13093 as_test_x='test -x'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013094else
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050013095 if ls -dL / >/dev/null 2>&1; then
13096 as_ls_L_option=L
13097 else
13098 as_ls_L_option=
13099 fi
13100 as_test_x='
13101 eval sh -c '\''
13102 if test -d "$1"; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013103 test -d "$1/.";
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050013104 else
13105 case $1 in
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013106 -*)set "./$1";;
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050013107 esac;
13108 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13109 ???[sx]*):;;*)false;;esac;fi
13110 '\'' sh
13111 '
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013112fi
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050013113as_executable_p=$as_test_x
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013114
13115# Sed expression to map a string onto a valid CPP name.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060013116as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013117
13118# Sed expression to map a string onto a valid variable name.
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060013119as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013120
13121
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013122exec 6>&1
13123
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013124# Save the log message, to keep $[0] and so on meaningful, and to
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013125# report actual input values of CONFIG_FILES etc. instead of their
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013126# values after options handling.
13127ac_log="
Glenn Randers-Pehrson glennrp@comcast.net92d95342009-05-02 15:12:50 -050013128This file was extended by libpng $as_me 1.4.0beta57, which was
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013129generated by GNU Autoconf 2.62. Invocation command line was
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013130
13131 CONFIG_FILES = $CONFIG_FILES
13132 CONFIG_HEADERS = $CONFIG_HEADERS
13133 CONFIG_LINKS = $CONFIG_LINKS
13134 CONFIG_COMMANDS = $CONFIG_COMMANDS
13135 $ $0 $@
13136
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013137on `(hostname || uname -n) 2>/dev/null | sed 1q`
13138"
13139
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013140_ACEOF
13141
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013142cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013143# Files that config.status was made for.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013144config_files="$ac_config_files"
13145config_headers="$ac_config_headers"
13146config_commands="$ac_config_commands"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013147
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013148_ACEOF
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013149
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013150cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013151ac_cs_usage="\
13152\`$as_me' instantiates files from templates according to the
13153current configuration.
13154
13155Usage: $0 [OPTIONS] [FILE]...
13156
13157 -h, --help print this help, then exit
Glenn Randers-Pehrsona7dbcba2007-05-15 16:16:34 -050013158 -V, --version print version number and configuration settings, then exit
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013159 -q, --quiet do not print progress messages
13160 -d, --debug don't remove temporary files
13161 --recheck update $as_me by reconfiguring in the same conditions
13162 --file=FILE[:TEMPLATE]
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013163 instantiate the configuration file FILE
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013164 --header=FILE[:TEMPLATE]
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013165 instantiate the configuration header FILE
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013166
13167Configuration files:
13168$config_files
13169
13170Configuration headers:
13171$config_headers
13172
13173Configuration commands:
13174$config_commands
13175
13176Report bugs to <bug-autoconf@gnu.org>."
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013177
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013178_ACEOF
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013179cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013180ac_cs_version="\\
Glenn Randers-Pehrson glennrp@comcast.net92d95342009-05-02 15:12:50 -050013181libpng config.status 1.4.0beta57
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013182configured by $0, generated by GNU Autoconf 2.62,
13183 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013184
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013185Copyright (C) 2008 Free Software Foundation, Inc.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013186This config.status script is free software; the Free Software Foundation
13187gives unlimited permission to copy, distribute and modify it."
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013188
13189ac_pwd='$ac_pwd'
13190srcdir='$srcdir'
13191INSTALL='$INSTALL'
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013192MKDIR_P='$MKDIR_P'
13193AWK='$AWK'
13194test -n "\$AWK" || AWK=awk
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013195_ACEOF
13196
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013197cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13198# The default lists apply if the user does not specify any file.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013199ac_need_defaults=:
13200while test $# != 0
13201do
13202 case $1 in
13203 --*=*)
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013204 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13205 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013206 ac_shift=:
13207 ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013208 *)
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013209 ac_option=$1
13210 ac_optarg=$2
13211 ac_shift=shift
13212 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013213 esac
13214
13215 case $ac_option in
13216 # Handling of the options.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013217 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13218 ac_cs_recheck=: ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013219 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013220 $as_echo "$ac_cs_version"; exit ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013221 --debug | --debu | --deb | --de | --d | -d )
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013222 debug=: ;;
13223 --file | --fil | --fi | --f )
13224 $ac_shift
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013225 case $ac_optarg in
13226 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13227 esac
13228 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013229 ac_need_defaults=false;;
13230 --header | --heade | --head | --hea )
13231 $ac_shift
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013232 case $ac_optarg in
13233 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13234 esac
13235 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013236 ac_need_defaults=false;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013237 --he | --h)
13238 # Conflict between --help and --header
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013239 { $as_echo "$as_me: error: ambiguous option: $1
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013240Try \`$0 --help' for more information." >&2
13241 { (exit 1); exit 1; }; };;
13242 --help | --hel | -h )
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013243 $as_echo "$ac_cs_usage"; exit ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13245 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13246 ac_cs_silent=: ;;
13247
13248 # This is an error.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013249 -*) { $as_echo "$as_me: error: unrecognized option: $1
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013250Try \`$0 --help' for more information." >&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013251 { (exit 1); exit 1; }; } ;;
13252
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013253 *) ac_config_targets="$ac_config_targets $1"
13254 ac_need_defaults=false ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013255
13256 esac
13257 shift
13258done
13259
13260ac_configure_extra_args=
13261
13262if $ac_cs_silent; then
13263 exec 6>/dev/null
13264 ac_configure_extra_args="$ac_configure_extra_args --silent"
13265fi
13266
13267_ACEOF
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013268cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013269if \$ac_cs_recheck; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013270 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13271 shift
13272 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13273 CONFIG_SHELL='$SHELL'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013274 export CONFIG_SHELL
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013275 exec "\$@"
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013276fi
13277
13278_ACEOF
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013279cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013280exec 5>>config.log
13281{
13282 echo
13283 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13284## Running $as_me. ##
13285_ASBOX
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013286 $as_echo "$ac_log"
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013287} >&5
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013288
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013289_ACEOF
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013290cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013291#
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013292# INIT-COMMANDS
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013293#
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013294AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13295
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013296
13297# The HP-UX ksh and POSIX shell print the target directory to stdout
13298# if CDPATH is set.
13299(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13300
13301sed_quote_subst='$sed_quote_subst'
13302double_quote_subst='$double_quote_subst'
13303delay_variable_subst='$delay_variable_subst'
13304SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13305Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13306GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13307EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13308FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13309LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13310AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
13311DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13312OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13313macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13314macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13315enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13316enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13317pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13318enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13319host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13320host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13321host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13322build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13323build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13324build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13325NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13326LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13327max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13328ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13329exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13330lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13331lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13332lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13333reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13334reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13335deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13336file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13337AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13338AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13339STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13340RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13341old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13342old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13343old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13344CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13345CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13346compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13347GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13348lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13349lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13350lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
13351lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13352objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13353SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13354ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13355MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13356lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13357lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13358lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13359lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13360lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13361need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13362DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13363NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13364LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13365libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13366shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13367extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13368archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13369enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13370export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13371whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13372compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13373old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13374old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13375archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13376archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13377module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13378module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13379with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13380allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13381no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13382hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13383hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13384hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13385hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13386hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13387hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13388hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13389hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13390inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13391link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13392fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13393always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13394export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13395exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13396include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13397prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13398file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13399variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13400need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13401need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13402version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13403runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13404shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13405shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13406libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13407library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13408soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13409postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13410postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13411finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13412finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13413hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13414sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13415sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13416hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13417enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13418enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13419enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13420old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13421striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13422
13423LTCC='$LTCC'
13424LTCFLAGS='$LTCFLAGS'
13425compiler='$compiler_DEFAULT'
13426
13427# Quote evaled strings.
13428for var in SED \
13429GREP \
13430EGREP \
13431FGREP \
13432LD \
13433NM \
13434LN_S \
13435lt_SP2NL \
13436lt_NL2SP \
13437reload_flag \
13438deplibs_check_method \
13439file_magic_cmd \
13440AR \
13441AR_FLAGS \
13442STRIP \
13443RANLIB \
13444CC \
13445CFLAGS \
13446compiler \
13447lt_cv_sys_global_symbol_pipe \
13448lt_cv_sys_global_symbol_to_cdecl \
13449lt_cv_sys_global_symbol_to_c_name_address \
13450lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13451SHELL \
13452ECHO \
13453lt_prog_compiler_no_builtin_flag \
13454lt_prog_compiler_wl \
13455lt_prog_compiler_pic \
13456lt_prog_compiler_static \
13457lt_cv_prog_compiler_c_o \
13458need_locks \
13459DSYMUTIL \
13460NMEDIT \
13461LIPO \
13462shrext_cmds \
13463export_dynamic_flag_spec \
13464whole_archive_flag_spec \
13465compiler_needs_object \
13466with_gnu_ld \
13467allow_undefined_flag \
13468no_undefined_flag \
13469hardcode_libdir_flag_spec \
13470hardcode_libdir_flag_spec_ld \
13471hardcode_libdir_separator \
13472fix_srcfile_path \
13473exclude_expsyms \
13474include_expsyms \
13475file_list_spec \
13476variables_saved_for_relink \
13477libname_spec \
13478library_names_spec \
13479soname_spec \
13480finish_eval \
13481old_striplib \
13482striplib; do
13483 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13484 *[\\\\\\\`\\"\\\$]*)
13485 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13486 ;;
13487 *)
13488 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13489 ;;
13490 esac
13491done
13492
13493# Double-quote double-evaled strings.
13494for var in reload_cmds \
13495old_postinstall_cmds \
13496old_postuninstall_cmds \
13497old_archive_cmds \
13498extract_expsyms_cmds \
13499old_archive_from_new_cmds \
13500old_archive_from_expsyms_cmds \
13501archive_cmds \
13502archive_expsym_cmds \
13503module_cmds \
13504module_expsym_cmds \
13505export_symbols_cmds \
13506prelink_cmds \
13507postinstall_cmds \
13508postuninstall_cmds \
13509finish_cmds \
13510sys_lib_search_path_spec \
13511sys_lib_dlsearch_path_spec; do
13512 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13513 *[\\\\\\\`\\"\\\$]*)
13514 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13515 ;;
13516 *)
13517 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13518 ;;
13519 esac
13520done
13521
13522# Fix-up fallback echo if it was mangled by the above quoting rules.
13523case \$lt_ECHO in
13524*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13525 ;;
13526esac
13527
13528ac_aux_dir='$ac_aux_dir'
13529xsi_shell='$xsi_shell'
13530lt_shell_append='$lt_shell_append'
13531
13532# See if we are running on zsh, and set the options which allow our
13533# commands through without removal of \ escapes INIT.
13534if test -n "\${ZSH_VERSION+set}" ; then
13535 setopt NO_GLOB_SUBST
13536fi
13537
13538
13539 PACKAGE='$PACKAGE'
13540 VERSION='$VERSION'
13541 TIMESTAMP='$TIMESTAMP'
13542 RM='$RM'
13543 ofile='$ofile'
13544
13545
13546
13547
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013548_ACEOF
13549
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013550cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013551
13552# Handling of arguments.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013553for ac_config_target in $ac_config_targets
13554do
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013555 case $ac_config_target in
13556 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13557 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013558 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013559 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013560 "libpng.pc") CONFIG_FILES="$CONFIG_FILES libpng.pc:scripts/libpng.pc-configure.in" ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013561 "libpng-config") CONFIG_FILES="$CONFIG_FILES libpng-config:scripts/libpng-config.in" ;;
13562
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013563 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13564$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013565 { (exit 1); exit 1; }; };;
13566 esac
13567done
13568
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013569
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013570# If the user did not use the arguments to specify the items to instantiate,
13571# then the envvar interface is used. Set only those that are not.
13572# We use the long form for the default assignment because of an extremely
13573# bizarre bug on SunOS 4.1.3.
13574if $ac_need_defaults; then
13575 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13576 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13577 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13578fi
13579
13580# Have a temporary directory for convenience. Make it in the build tree
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013581# simply because there is no reason against having it here, and in addition,
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013582# creating and moving files from /tmp can sometimes cause problems.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013583# Hook for its removal unless debugging.
13584# Note that there is a small window in which the directory will not be cleaned:
13585# after its creation but before its name has been assigned to `$tmp'.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013586$debug ||
13587{
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013588 tmp=
13589 trap 'exit_status=$?
13590 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13591' 0
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013592 trap '{ (exit 1); exit 1; }' 1 2 13 15
13593}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013594# Create a (secure) tmp directory for tmp files.
13595
13596{
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013597 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013598 test -n "$tmp" && test -d "$tmp"
13599} ||
13600{
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013601 tmp=./conf$$-$RANDOM
13602 (umask 077 && mkdir "$tmp")
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013603} ||
13604{
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013605 $as_echo "$as_me: cannot create a temporary directory in ." >&2
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013606 { (exit 1); exit 1; }
13607}
13608
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013609# Set up the scripts for CONFIG_FILES section.
13610# No need to generate them if there are no CONFIG_FILES.
13611# This happens for instance with `./config.status config.h'.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013612if test -n "$CONFIG_FILES"; then
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013613
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013614
13615ac_cr=' '
13616ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13617if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13618 ac_cs_awk_cr='\\r'
13619else
13620 ac_cs_awk_cr=$ac_cr
13621fi
13622
13623echo 'BEGIN {' >"$tmp/subs1.awk" &&
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013624_ACEOF
13625
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013626
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013627{
13628 echo "cat >conf$$subs.awk <<_ACEOF" &&
13629 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13630 echo "_ACEOF"
13631} >conf$$subs.sh ||
13632 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13633$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13634 { (exit 1); exit 1; }; }
13635ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013636ac_delim='%!_!# '
13637for ac_last_try in false false false false false :; do
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013638 . ./conf$$subs.sh ||
13639 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13640$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13641 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013642
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013643 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013644 break
13645 elif $ac_last_try; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013646 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13647$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013648 { (exit 1); exit 1; }; }
13649 else
13650 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013651 fi
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013652done
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013653rm -f conf$$subs.sh
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013654
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013655cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13656cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013657_ACEOF
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013658sed -n '
13659h
13660s/^/S["/; s/!.*/"]=/
13661p
13662g
13663s/^[^!]*!//
13664:repl
13665t repl
13666s/'"$ac_delim"'$//
13667t delim
13668:nl
13669h
13670s/\(.\{148\}\).*/\1/
13671t more1
13672s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13673p
13674n
13675b repl
13676:more1
13677s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13678p
13679g
13680s/.\{148\}//
13681t nl
13682:delim
13683h
13684s/\(.\{148\}\).*/\1/
13685t more2
13686s/["\\]/\\&/g; s/^/"/; s/$/"/
13687p
13688b
13689:more2
13690s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13691p
13692g
13693s/.\{148\}//
13694t delim
13695' <conf$$subs.awk | sed '
13696/^[^""]/{
13697 N
13698 s/\n//
13699}
13700' >>$CONFIG_STATUS || ac_write_fail=1
13701rm -f conf$$subs.awk
13702cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13703_ACAWK
13704cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13705 for (key in S) S_is_set[key] = 1
13706 FS = ""
13707
13708}
13709{
13710 line = $ 0
13711 nfields = split(line, field, "@")
13712 substed = 0
13713 len = length(field[1])
13714 for (i = 2; i < nfields; i++) {
13715 key = field[i]
13716 keylen = length(key)
13717 if (S_is_set[key]) {
13718 value = S[key]
13719 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13720 len += length(value) + length(field[++i])
13721 substed = 1
13722 } else
13723 len += 1 + keylen
13724 }
13725
13726 print line
13727}
13728
13729_ACAWK
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013730_ACEOF
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013731cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13732if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13733 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13734else
13735 cat
13736fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13737 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13738$as_echo "$as_me: error: could not setup config files machinery" >&2;}
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013739 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013740_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013741
13742# VPATH may cause trouble with some makes, so we remove $(srcdir),
13743# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13744# trailing colons and then remove the whole line if VPATH becomes empty
13745# (actually we leave an empty line to preserve line numbers).
13746if test "x$srcdir" = x.; then
13747 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13748s/:*\$(srcdir):*/:/
13749s/:*\${srcdir}:*/:/
13750s/:*@srcdir@:*/:/
13751s/^\([^=]*=[ ]*\):*/\1/
13752s/:*$//
13753s/^[^=]*=[ ]*$//
13754}'
13755fi
13756
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013757cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013758fi # test -n "$CONFIG_FILES"
13759
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013760# Set up the scripts for CONFIG_HEADERS section.
13761# No need to generate them if there are no CONFIG_HEADERS.
13762# This happens for instance with `./config.status Makefile'.
13763if test -n "$CONFIG_HEADERS"; then
13764cat >"$tmp/defines.awk" <<\_ACAWK ||
13765BEGIN {
13766_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013767
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013768# Transform confdefs.h into an awk script `defines.awk', embedded as
13769# here-document in config.status, that substitutes the proper values into
13770# config.h.in to produce config.h.
13771
13772# Create a delimiter string that does not exist in confdefs.h, to ease
13773# handling of long lines.
13774ac_delim='%!_!# '
13775for ac_last_try in false false :; do
13776 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13777 if test -z "$ac_t"; then
13778 break
13779 elif $ac_last_try; then
13780 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13781$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13782 { (exit 1); exit 1; }; }
13783 else
13784 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13785 fi
13786done
13787
13788# For the awk script, D is an array of macro values keyed by name,
13789# likewise P contains macro parameters if any. Preserve backslash
13790# newline sequences.
13791
13792ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13793sed -n '
13794s/.\{148\}/&'"$ac_delim"'/g
13795t rset
13796:rset
13797s/^[ ]*#[ ]*define[ ][ ]*/ /
13798t def
13799d
13800:def
13801s/\\$//
13802t bsnl
13803s/["\\]/\\&/g
13804s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13805D["\1"]=" \3"/p
13806s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13807d
13808:bsnl
13809s/["\\]/\\&/g
13810s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13811D["\1"]=" \3\\\\\\n"\\/p
13812t cont
13813s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13814t cont
13815d
13816:cont
13817n
13818s/.\{148\}/&'"$ac_delim"'/g
13819t clear
13820:clear
13821s/\\$//
13822t bsnlc
13823s/["\\]/\\&/g; s/^/"/; s/$/"/p
13824d
13825:bsnlc
13826s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13827b cont
13828' <confdefs.h | sed '
13829s/'"$ac_delim"'/"\\\
13830"/g' >>$CONFIG_STATUS || ac_write_fail=1
13831
13832cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13833 for (key in D) D_is_set[key] = 1
13834 FS = ""
13835}
13836/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13837 line = \$ 0
13838 split(line, arg, " ")
13839 if (arg[1] == "#") {
13840 defundef = arg[2]
13841 mac1 = arg[3]
13842 } else {
13843 defundef = substr(arg[1], 2)
13844 mac1 = arg[2]
13845 }
13846 split(mac1, mac2, "(") #)
13847 macro = mac2[1]
13848 if (D_is_set[macro]) {
13849 # Preserve the white space surrounding the "#".
13850 prefix = substr(line, 1, index(line, defundef) - 1)
13851 print prefix "define", macro P[macro] D[macro]
13852 next
13853 } else {
13854 # Replace #undef with comments. This is necessary, for example,
13855 # in the case of _POSIX_SOURCE, which is predefined and required
13856 # on some systems where configure will not decide to define it.
13857 if (defundef == "undef") {
13858 print "/*", line, "*/"
13859 next
13860 }
13861 }
13862}
13863{ print }
13864_ACAWK
13865_ACEOF
13866cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13867 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13868$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13869 { (exit 1); exit 1; }; }
13870fi # test -n "$CONFIG_HEADERS"
13871
13872
13873eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13874shift
13875for ac_tag
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013876do
13877 case $ac_tag in
13878 :[FHLC]) ac_mode=$ac_tag; continue;;
13879 esac
13880 case $ac_mode$ac_tag in
13881 :[FHL]*:*);;
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013882 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13883$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013884 { (exit 1); exit 1; }; };;
13885 :[FH]-) ac_tag=-:-;;
13886 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13887 esac
13888 ac_save_IFS=$IFS
13889 IFS=:
13890 set x $ac_tag
13891 IFS=$ac_save_IFS
13892 shift
13893 ac_file=$1
13894 shift
13895
13896 case $ac_mode in
13897 :L) ac_source=$1;;
13898 :[FH])
13899 ac_file_inputs=
13900 for ac_f
13901 do
13902 case $ac_f in
13903 -) ac_f="$tmp/stdin";;
13904 *) # Look for the file first in the build tree, then in the source tree
13905 # (if the path is not absolute). The absolute path cannot be DOS-style,
13906 # because $ac_f cannot contain `:'.
13907 test -f "$ac_f" ||
13908 case $ac_f in
13909 [\\/$]*) false;;
13910 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13911 esac ||
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013912 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13913$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013914 { (exit 1); exit 1; }; };;
13915 esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013916 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13917 ac_file_inputs="$ac_file_inputs '$ac_f'"
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013918 done
13919
13920 # Let's still pretend it is `configure' which instantiates (i.e., don't
13921 # use $as_me), people would be surprised to read:
13922 # /* config.h. Generated by config.status. */
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013923 configure_input='Generated from '`
13924 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13925 `' by configure.'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013926 if test x"$ac_file" != x-; then
13927 configure_input="$ac_file. $configure_input"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013928 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13929$as_echo "$as_me: creating $ac_file" >&6;}
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013930 fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013931 # Neutralize special characters interpreted by sed in replacement strings.
13932 case $configure_input in #(
13933 *\&* | *\|* | *\\* )
13934 ac_sed_conf_input=`$as_echo "$configure_input" |
13935 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13936 *) ac_sed_conf_input=$configure_input;;
13937 esac
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013938
13939 case $ac_tag in
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013940 *:-:* | *:-) cat >"$tmp/stdin" \
13941 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13942$as_echo "$as_me: error: could not create $ac_file" >&2;}
13943 { (exit 1); exit 1; }; } ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013944 esac
13945 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013946 esac
13947
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013948 ac_dir=`$as_dirname -- "$ac_file" ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013949$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060013950 X"$ac_file" : 'X\(//\)[^/]' \| \
13951 X"$ac_file" : 'X\(//\)$' \| \
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013952 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013953$as_echo X"$ac_file" |
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13955 s//\1/
13956 q
13957 }
13958 /^X\(\/\/\)[^/].*/{
13959 s//\1/
13960 q
13961 }
13962 /^X\(\/\/\)$/{
13963 s//\1/
13964 q
13965 }
13966 /^X\(\/\).*/{
13967 s//\1/
13968 q
13969 }
13970 s/.*/./; q'`
13971 { as_dir="$ac_dir"
13972 case $as_dir in #(
13973 -*) as_dir=./$as_dir;;
13974 esac
13975 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013976 as_dirs=
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013977 while :; do
13978 case $as_dir in #(
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013979 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013980 *) as_qdir=$as_dir;;
13981 esac
13982 as_dirs="'$as_qdir' $as_dirs"
13983 as_dir=`$as_dirname -- "$as_dir" ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060013984$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060013985 X"$as_dir" : 'X\(//\)[^/]' \| \
13986 X"$as_dir" : 'X\(//\)$' \| \
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013987 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050013988$as_echo X"$as_dir" |
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060013989 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13990 s//\1/
13991 q
13992 }
13993 /^X\(\/\/\)[^/].*/{
13994 s//\1/
13995 q
13996 }
13997 /^X\(\/\/\)$/{
13998 s//\1/
13999 q
14000 }
14001 /^X\(\/\).*/{
14002 s//\1/
14003 q
14004 }
14005 s/.*/./; q'`
14006 test -d "$as_dir" && break
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014007 done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014008 test -z "$as_dirs" || eval "mkdir $as_dirs"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014009 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14010$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014011 { (exit 1); exit 1; }; }; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014012 ac_builddir=.
14013
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014014case "$ac_dir" in
14015.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14016*)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014017 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014018 # A ".." for each directory in $ac_dir_suffix.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014019 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014020 case $ac_top_builddir_sub in
14021 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14022 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14023 esac ;;
14024esac
14025ac_abs_top_builddir=$ac_pwd
14026ac_abs_builddir=$ac_pwd$ac_dir_suffix
14027# for backward compatibility:
14028ac_top_builddir=$ac_top_build_prefix
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014029
14030case $srcdir in
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014031 .) # We are building in place.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014032 ac_srcdir=.
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014033 ac_top_srcdir=$ac_top_builddir_sub
14034 ac_abs_top_srcdir=$ac_pwd ;;
14035 [\\/]* | ?:[\\/]* ) # Absolute name.
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014036 ac_srcdir=$srcdir$ac_dir_suffix;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014037 ac_top_srcdir=$srcdir
14038 ac_abs_top_srcdir=$srcdir ;;
14039 *) # Relative name.
14040 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14041 ac_top_srcdir=$ac_top_build_prefix$srcdir
14042 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014043esac
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014044ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014045
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014046
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014047 case $ac_mode in
14048 :F)
14049 #
14050 # CONFIG_FILE
14051 #
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014052
14053 case $INSTALL in
14054 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014055 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014056 esac
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014057 ac_MKDIR_P=$MKDIR_P
14058 case $MKDIR_P in
14059 [\\/$]* | ?:[\\/]* ) ;;
14060 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14061 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014062_ACEOF
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014063
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014064cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014065# If the template does not know about datarootdir, expand it.
14066# FIXME: This hack should be removed a few years after 2.60.
14067ac_datarootdir_hack=; ac_datarootdir_seen=
14068
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014069ac_sed_dataroot='
14070/datarootdir/ {
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014071 p
14072 q
14073}
14074/@datadir@/p
14075/@docdir@/p
14076/@infodir@/p
14077/@localedir@/p
14078/@mandir@/p
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014079'
14080case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014081*datarootdir*) ac_datarootdir_seen=yes;;
14082*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014083 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14084$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014085_ACEOF
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014086cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014087 ac_datarootdir_hack='
14088 s&@datadir@&$datadir&g
14089 s&@docdir@&$docdir&g
14090 s&@infodir@&$infodir&g
14091 s&@localedir@&$localedir&g
14092 s&@mandir@&$mandir&g
14093 s&\\\${datarootdir}&$datarootdir&g' ;;
14094esac
14095_ACEOF
14096
14097# Neutralize VPATH when `$srcdir' = `.'.
14098# Shell code in configure.ac might set extrasub.
14099# FIXME: do we really want to maintain this feature?
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014100cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14101ac_sed_extra="$ac_vpsub
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014102$extrasub
14103_ACEOF
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014104cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014105:t
14106/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014107s|@configure_input@|$ac_sed_conf_input|;t t
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014108s&@top_builddir@&$ac_top_builddir_sub&;t t
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014109s&@top_build_prefix@&$ac_top_build_prefix&;t t
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014110s&@srcdir@&$ac_srcdir&;t t
14111s&@abs_srcdir@&$ac_abs_srcdir&;t t
14112s&@top_srcdir@&$ac_top_srcdir&;t t
14113s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14114s&@builddir@&$ac_builddir&;t t
14115s&@abs_builddir@&$ac_abs_builddir&;t t
14116s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14117s&@INSTALL@&$ac_INSTALL&;t t
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014118s&@MKDIR_P@&$ac_MKDIR_P&;t t
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014119$ac_datarootdir_hack
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014120"
14121eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14122 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14123$as_echo "$as_me: error: could not create $ac_file" >&2;}
14124 { (exit 1); exit 1; }; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014125
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014126test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14127 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14128 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014129 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014130which seems to be undefined. Please make sure it is defined." >&5
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014131$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014132which seems to be undefined. Please make sure it is defined." >&2;}
14133
14134 rm -f "$tmp/stdin"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014135 case $ac_file in
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014136 -) cat "$tmp/out" && rm -f "$tmp/out";;
14137 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14138 esac \
14139 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14140$as_echo "$as_me: error: could not create $ac_file" >&2;}
14141 { (exit 1); exit 1; }; }
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014142 ;;
14143 :H)
14144 #
14145 # CONFIG_HEADER
14146 #
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014147 if test x"$ac_file" != x-; then
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014148 {
14149 $as_echo "/* $configure_input */" \
14150 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14151 } >"$tmp/config.h" \
14152 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14153$as_echo "$as_me: error: could not create $ac_file" >&2;}
14154 { (exit 1); exit 1; }; }
14155 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14156 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14157$as_echo "$as_me: $ac_file is unchanged" >&6;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014158 else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014159 rm -f "$ac_file"
14160 mv "$tmp/config.h" "$ac_file" \
14161 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14162$as_echo "$as_me: error: could not create $ac_file" >&2;}
14163 { (exit 1); exit 1; }; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014164 fi
14165 else
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014166 $as_echo "/* $configure_input */" \
14167 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14168 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14169$as_echo "$as_me: error: could not create -" >&2;}
14170 { (exit 1); exit 1; }; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014171 fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014172# Compute "$ac_file"'s index in $config_headers.
14173_am_arg="$ac_file"
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014174_am_stamp_count=1
14175for _am_header in $config_headers :; do
14176 case $_am_header in
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014177 $_am_arg | $_am_arg:* )
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014178 break ;;
14179 * )
14180 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14181 esac
14182done
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014183echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14184$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14185 X"$_am_arg" : 'X\(//\)[^/]' \| \
14186 X"$_am_arg" : 'X\(//\)$' \| \
14187 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14188$as_echo X"$_am_arg" |
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14190 s//\1/
14191 q
14192 }
14193 /^X\(\/\/\)[^/].*/{
14194 s//\1/
14195 q
14196 }
14197 /^X\(\/\/\)$/{
14198 s//\1/
14199 q
14200 }
14201 /^X\(\/\).*/{
14202 s//\1/
14203 q
14204 }
14205 s/.*/./; q'`/stamp-h$_am_stamp_count
14206 ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014207
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014208 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14209$as_echo "$as_me: executing $ac_file commands" >&6;}
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014210 ;;
14211 esac
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014212
14213
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014214 case $ac_file$ac_mode in
14215 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014216 # Strip MF so we end up with the name of the file.
14217 mf=`echo "$mf" | sed -e 's/:.*$//'`
14218 # Check whether this is an Automake generated Makefile or not.
14219 # We used to match only the files named `Makefile.in', but
14220 # some people rename them; so instead we look at the file content.
14221 # Grep'ing the first line is not enough: some people post-process
14222 # each Makefile.in and add a new line on top of each file to say so.
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014223 # Grep'ing the whole file is not good either: AIX grep has a line
14224 # limit of 2048, but all sed's we know have understand at least 4000.
14225 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014226 dirpart=`$as_dirname -- "$mf" ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014227$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014228 X"$mf" : 'X\(//\)[^/]' \| \
14229 X"$mf" : 'X\(//\)$' \| \
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014230 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014231$as_echo X"$mf" |
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14233 s//\1/
14234 q
14235 }
14236 /^X\(\/\/\)[^/].*/{
14237 s//\1/
14238 q
14239 }
14240 /^X\(\/\/\)$/{
14241 s//\1/
14242 q
14243 }
14244 /^X\(\/\).*/{
14245 s//\1/
14246 q
14247 }
14248 s/.*/./; q'`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014249 else
14250 continue
14251 fi
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014252 # Extract the definition of DEPDIR, am__include, and am__quote
14253 # from the Makefile without running `make'.
14254 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014255 test -z "$DEPDIR" && continue
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014256 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14257 test -z "am__include" && continue
14258 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014259 # When using ansi2knr, U may be empty or an underscore; expand it
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014260 U=`sed -n 's/^U = //p' < "$mf"`
14261 # Find all dependency output files, they are included files with
14262 # $(DEPDIR) in their names. We invoke sed twice because it is the
14263 # simplest approach to changing $(DEPDIR) to its actual value in the
14264 # expansion.
14265 for file in `sed -n "
14266 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014267 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14268 # Make sure the directory exists.
14269 test -f "$dirpart/$file" && continue
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014270 fdir=`$as_dirname -- "$file" ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014271$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014272 X"$file" : 'X\(//\)[^/]' \| \
14273 X"$file" : 'X\(//\)$' \| \
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014274 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014275$as_echo X"$file" |
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14277 s//\1/
14278 q
14279 }
14280 /^X\(\/\/\)[^/].*/{
14281 s//\1/
14282 q
14283 }
14284 /^X\(\/\/\)$/{
14285 s//\1/
14286 q
14287 }
14288 /^X\(\/\).*/{
14289 s//\1/
14290 q
14291 }
14292 s/.*/./; q'`
14293 { as_dir=$dirpart/$fdir
14294 case $as_dir in #(
14295 -*) as_dir=./$as_dir;;
14296 esac
14297 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014298 as_dirs=
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014299 while :; do
14300 case $as_dir in #(
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014302 *) as_qdir=$as_dir;;
14303 esac
14304 as_dirs="'$as_qdir' $as_dirs"
14305 as_dir=`$as_dirname -- "$as_dir" ||
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Glenn Randers-Pehrsonc3d51c12006-03-02 07:23:18 -060014307 X"$as_dir" : 'X\(//\)[^/]' \| \
14308 X"$as_dir" : 'X\(//\)$' \| \
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014310$as_echo X"$as_dir" |
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14312 s//\1/
14313 q
14314 }
14315 /^X\(\/\/\)[^/].*/{
14316 s//\1/
14317 q
14318 }
14319 /^X\(\/\/\)$/{
14320 s//\1/
14321 q
14322 }
14323 /^X\(\/\).*/{
14324 s//\1/
14325 q
14326 }
14327 s/.*/./; q'`
14328 test -d "$as_dir" && break
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014329 done
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014330 test -z "$as_dirs" || eval "mkdir $as_dirs"
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014331 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14332$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014333 { (exit 1); exit 1; }; }; }
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014334 # echo "creating $dirpart/$file"
14335 echo '# dummy' > "$dirpart/$file"
14336 done
14337done
14338 ;;
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014339 "libtool":C)
14340
14341 # See if we are running on zsh, and set the options which allow our
14342 # commands through without removal of \ escapes.
14343 if test -n "${ZSH_VERSION+set}" ; then
14344 setopt NO_GLOB_SUBST
14345 fi
14346
14347 cfgfile="${ofile}T"
14348 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14349 $RM "$cfgfile"
14350
14351 cat <<_LT_EOF >> "$cfgfile"
14352#! $SHELL
14353
14354# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14355# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14356# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14357# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14358#
14359# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14360# 2006, 2007, 2008 Free Software Foundation, Inc.
14361# Written by Gordon Matzigkeit, 1996
14362#
14363# This file is part of GNU Libtool.
14364#
14365# GNU Libtool is free software; you can redistribute it and/or
14366# modify it under the terms of the GNU General Public License as
14367# published by the Free Software Foundation; either version 2 of
14368# the License, or (at your option) any later version.
14369#
14370# As a special exception to the GNU General Public License,
14371# if you distribute this file as part of a program or library that
14372# is built using GNU Libtool, you may include this file under the
14373# same distribution terms that you use for the rest of that program.
14374#
14375# GNU Libtool is distributed in the hope that it will be useful,
14376# but WITHOUT ANY WARRANTY; without even the implied warranty of
14377# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14378# GNU General Public License for more details.
14379#
14380# You should have received a copy of the GNU General Public License
14381# along with GNU Libtool; see the file COPYING. If not, a copy
14382# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14383# obtained by writing to the Free Software Foundation, Inc.,
14384# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14385
14386
14387# The names of the tagged configurations supported by this script.
14388available_tags=""
14389
14390# ### BEGIN LIBTOOL CONFIG
14391
14392# A sed program that does not truncate output.
14393SED=$lt_SED
14394
14395# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14396Xsed="\$SED -e 1s/^X//"
14397
14398# A grep program that handles long lines.
14399GREP=$lt_GREP
14400
14401# An ERE matcher.
14402EGREP=$lt_EGREP
14403
14404# A literal string matcher.
14405FGREP=$lt_FGREP
14406
14407# Assembler program.
14408AS=$AS
14409
14410# DLL creation program.
14411DLLTOOL=$DLLTOOL
14412
14413# Object dumper program.
14414OBJDUMP=$OBJDUMP
14415
14416# Which release of libtool.m4 was used?
14417macro_version=$macro_version
14418macro_revision=$macro_revision
14419
14420# Whether or not to build shared libraries.
14421build_libtool_libs=$enable_shared
14422
14423# Whether or not to build static libraries.
14424build_old_libs=$enable_static
14425
14426# What type of objects to build.
14427pic_mode=$pic_mode
14428
14429# Whether or not to optimize for fast installation.
14430fast_install=$enable_fast_install
14431
14432# The host system.
14433host_alias=$host_alias
14434host=$host
14435host_os=$host_os
14436
14437# The build system.
14438build_alias=$build_alias
14439build=$build
14440build_os=$build_os
14441
14442# A BSD- or MS-compatible name lister.
14443NM=$lt_NM
14444
14445# Whether we need soft or hard links.
14446LN_S=$lt_LN_S
14447
14448# What is the maximum length of a command?
14449max_cmd_len=$max_cmd_len
14450
14451# Object file suffix (normally "o").
14452objext=$ac_objext
14453
14454# Executable file suffix (normally "").
14455exeext=$exeext
14456
14457# whether the shell understands "unset".
14458lt_unset=$lt_unset
14459
14460# turn spaces into newlines.
14461SP2NL=$lt_lt_SP2NL
14462
14463# turn newlines into spaces.
14464NL2SP=$lt_lt_NL2SP
14465
14466# How to create reloadable object files.
14467reload_flag=$lt_reload_flag
14468reload_cmds=$lt_reload_cmds
14469
14470# Method to check whether dependent libraries are shared objects.
14471deplibs_check_method=$lt_deplibs_check_method
14472
14473# Command to use when deplibs_check_method == "file_magic".
14474file_magic_cmd=$lt_file_magic_cmd
14475
14476# The archiver.
14477AR=$lt_AR
14478AR_FLAGS=$lt_AR_FLAGS
14479
14480# A symbol stripping program.
14481STRIP=$lt_STRIP
14482
14483# Commands used to install an old-style archive.
14484RANLIB=$lt_RANLIB
14485old_postinstall_cmds=$lt_old_postinstall_cmds
14486old_postuninstall_cmds=$lt_old_postuninstall_cmds
14487
14488# A C compiler.
14489LTCC=$lt_CC
14490
14491# LTCC compiler flags.
14492LTCFLAGS=$lt_CFLAGS
14493
14494# Take the output of nm and produce a listing of raw symbols and C names.
14495global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14496
14497# Transform the output of nm in a proper C declaration.
14498global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14499
14500# Transform the output of nm in a C name address pair.
14501global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14502
14503# Transform the output of nm in a C name address pair when lib prefix is needed.
14504global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14505
14506# The name of the directory that contains temporary libtool files.
14507objdir=$objdir
14508
14509# Shell to use when invoking shell scripts.
14510SHELL=$lt_SHELL
14511
14512# An echo program that does not interpret backslashes.
14513ECHO=$lt_ECHO
14514
14515# Used to examine libraries when file_magic_cmd begins with "file".
14516MAGIC_CMD=$MAGIC_CMD
14517
14518# Must we lock files when doing compilation?
14519need_locks=$lt_need_locks
14520
14521# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14522DSYMUTIL=$lt_DSYMUTIL
14523
14524# Tool to change global to local symbols on Mac OS X.
14525NMEDIT=$lt_NMEDIT
14526
14527# Tool to manipulate fat objects and archives on Mac OS X.
14528LIPO=$lt_LIPO
14529
14530# Old archive suffix (normally "a").
14531libext=$libext
14532
14533# Shared library suffix (normally ".so").
14534shrext_cmds=$lt_shrext_cmds
14535
14536# The commands to extract the exported symbol list from a shared archive.
14537extract_expsyms_cmds=$lt_extract_expsyms_cmds
14538
14539# Variables whose values should be saved in libtool wrapper scripts and
14540# restored at link time.
14541variables_saved_for_relink=$lt_variables_saved_for_relink
14542
14543# Do we need the "lib" prefix for modules?
14544need_lib_prefix=$need_lib_prefix
14545
14546# Do we need a version for libraries?
14547need_version=$need_version
14548
14549# Library versioning type.
14550version_type=$version_type
14551
14552# Shared library runtime path variable.
14553runpath_var=$runpath_var
14554
14555# Shared library path variable.
14556shlibpath_var=$shlibpath_var
14557
14558# Is shlibpath searched before the hard-coded library search path?
14559shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14560
14561# Format of library name prefix.
14562libname_spec=$lt_libname_spec
14563
14564# List of archive names. First name is the real one, the rest are links.
14565# The last name is the one that the linker finds with -lNAME
14566library_names_spec=$lt_library_names_spec
14567
14568# The coded name of the library, if different from the real name.
14569soname_spec=$lt_soname_spec
14570
14571# Command to use after installation of a shared archive.
14572postinstall_cmds=$lt_postinstall_cmds
14573
14574# Command to use after uninstallation of a shared archive.
14575postuninstall_cmds=$lt_postuninstall_cmds
14576
14577# Commands used to finish a libtool library installation in a directory.
14578finish_cmds=$lt_finish_cmds
14579
14580# As "finish_cmds", except a single script fragment to be evaled but
14581# not shown.
14582finish_eval=$lt_finish_eval
14583
14584# Whether we should hardcode library paths into libraries.
14585hardcode_into_libs=$hardcode_into_libs
14586
14587# Compile-time system search path for libraries.
14588sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14589
14590# Run-time system search path for libraries.
14591sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14592
14593# Whether dlopen is supported.
14594dlopen_support=$enable_dlopen
14595
14596# Whether dlopen of programs is supported.
14597dlopen_self=$enable_dlopen_self
14598
14599# Whether dlopen of statically linked programs is supported.
14600dlopen_self_static=$enable_dlopen_self_static
14601
14602# Commands to strip libraries.
14603old_striplib=$lt_old_striplib
14604striplib=$lt_striplib
14605
14606
14607# The linker used to build libraries.
14608LD=$lt_LD
14609
14610# Commands used to build an old-style archive.
14611old_archive_cmds=$lt_old_archive_cmds
14612
14613# A language specific compiler.
14614CC=$lt_compiler
14615
14616# Is the compiler the GNU compiler?
14617with_gcc=$GCC
14618
14619# Compiler flag to turn off builtin functions.
14620no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14621
14622# How to pass a linker flag through the compiler.
14623wl=$lt_lt_prog_compiler_wl
14624
14625# Additional compiler flags for building library objects.
14626pic_flag=$lt_lt_prog_compiler_pic
14627
14628# Compiler flag to prevent dynamic linking.
14629link_static_flag=$lt_lt_prog_compiler_static
14630
14631# Does compiler simultaneously support -c and -o options?
14632compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14633
14634# Whether or not to add -lc for building shared libraries.
14635build_libtool_need_lc=$archive_cmds_need_lc
14636
14637# Whether or not to disallow shared libs when runtime libs are static.
14638allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14639
14640# Compiler flag to allow reflexive dlopens.
14641export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14642
14643# Compiler flag to generate shared objects directly from archives.
14644whole_archive_flag_spec=$lt_whole_archive_flag_spec
14645
14646# Whether the compiler copes with passing no objects directly.
14647compiler_needs_object=$lt_compiler_needs_object
14648
14649# Create an old-style archive from a shared archive.
14650old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14651
14652# Create a temporary old-style archive to link instead of a shared archive.
14653old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14654
14655# Commands used to build a shared archive.
14656archive_cmds=$lt_archive_cmds
14657archive_expsym_cmds=$lt_archive_expsym_cmds
14658
14659# Commands used to build a loadable module if different from building
14660# a shared archive.
14661module_cmds=$lt_module_cmds
14662module_expsym_cmds=$lt_module_expsym_cmds
14663
14664# Whether we are building with GNU ld or not.
14665with_gnu_ld=$lt_with_gnu_ld
14666
14667# Flag that allows shared libraries with undefined symbols to be built.
14668allow_undefined_flag=$lt_allow_undefined_flag
14669
14670# Flag that enforces no undefined symbols.
14671no_undefined_flag=$lt_no_undefined_flag
14672
14673# Flag to hardcode \$libdir into a binary during linking.
14674# This must work even if \$libdir does not exist
14675hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14676
14677# If ld is used when linking, flag to hardcode \$libdir into a binary
14678# during linking. This must work even if \$libdir does not exist.
14679hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14680
14681# Whether we need a single "-rpath" flag with a separated argument.
14682hardcode_libdir_separator=$lt_hardcode_libdir_separator
14683
14684# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14685# DIR into the resulting binary.
14686hardcode_direct=$hardcode_direct
14687
14688# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14689# DIR into the resulting binary and the resulting library dependency is
14690# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14691# library is relocated.
14692hardcode_direct_absolute=$hardcode_direct_absolute
14693
14694# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14695# into the resulting binary.
14696hardcode_minus_L=$hardcode_minus_L
14697
14698# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14699# into the resulting binary.
14700hardcode_shlibpath_var=$hardcode_shlibpath_var
14701
14702# Set to "yes" if building a shared library automatically hardcodes DIR
14703# into the library and all subsequent libraries and executables linked
14704# against it.
14705hardcode_automatic=$hardcode_automatic
14706
14707# Set to yes if linker adds runtime paths of dependent libraries
14708# to runtime path list.
14709inherit_rpath=$inherit_rpath
14710
14711# Whether libtool must link a program against all its dependency libraries.
14712link_all_deplibs=$link_all_deplibs
14713
14714# Fix the shell variable \$srcfile for the compiler.
14715fix_srcfile_path=$lt_fix_srcfile_path
14716
14717# Set to "yes" if exported symbols are required.
14718always_export_symbols=$always_export_symbols
14719
14720# The commands to list exported symbols.
14721export_symbols_cmds=$lt_export_symbols_cmds
14722
14723# Symbols that should not be listed in the preloaded symbols.
14724exclude_expsyms=$lt_exclude_expsyms
14725
14726# Symbols that must always be exported.
14727include_expsyms=$lt_include_expsyms
14728
14729# Commands necessary for linking programs (against libraries) with templates.
14730prelink_cmds=$lt_prelink_cmds
14731
14732# Specify filename containing input files.
14733file_list_spec=$lt_file_list_spec
14734
14735# How to hardcode a shared library path into an executable.
14736hardcode_action=$hardcode_action
14737
14738# ### END LIBTOOL CONFIG
14739
14740_LT_EOF
14741
14742 case $host_os in
14743 aix3*)
14744 cat <<\_LT_EOF >> "$cfgfile"
14745# AIX sometimes has problems with the GCC collect2 program. For some
14746# reason, if we set the COLLECT_NAMES environment variable, the problems
14747# vanish in a puff of smoke.
14748if test "X${COLLECT_NAMES+set}" != Xset; then
14749 COLLECT_NAMES=
14750 export COLLECT_NAMES
14751fi
14752_LT_EOF
14753 ;;
14754 esac
14755
14756
14757ltmain="$ac_aux_dir/ltmain.sh"
14758
14759
14760 # We use sed instead of cat because bash on DJGPP gets confused if
14761 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14762 # text mode, it properly converts lines to CR/LF. This bash problem
14763 # is reportedly fixed, but why not run on old versions too?
14764 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14765 || (rm -f "$cfgfile"; exit 1)
14766
14767 case $xsi_shell in
14768 yes)
14769 cat << \_LT_EOF >> "$cfgfile"
14770
14771# func_dirname file append nondir_replacement
14772# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14773# otherwise set result to NONDIR_REPLACEMENT.
14774func_dirname ()
14775{
14776 case ${1} in
14777 */*) func_dirname_result="${1%/*}${2}" ;;
14778 * ) func_dirname_result="${3}" ;;
14779 esac
14780}
14781
14782# func_basename file
14783func_basename ()
14784{
14785 func_basename_result="${1##*/}"
14786}
14787
14788# func_dirname_and_basename file append nondir_replacement
14789# perform func_basename and func_dirname in a single function
14790# call:
14791# dirname: Compute the dirname of FILE. If nonempty,
14792# add APPEND to the result, otherwise set result
14793# to NONDIR_REPLACEMENT.
14794# value returned in "$func_dirname_result"
14795# basename: Compute filename of FILE.
14796# value retuned in "$func_basename_result"
14797# Implementation must be kept synchronized with func_dirname
14798# and func_basename. For efficiency, we do not delegate to
14799# those functions but instead duplicate the functionality here.
14800func_dirname_and_basename ()
14801{
14802 case ${1} in
14803 */*) func_dirname_result="${1%/*}${2}" ;;
14804 * ) func_dirname_result="${3}" ;;
14805 esac
14806 func_basename_result="${1##*/}"
14807}
14808
14809# func_stripname prefix suffix name
14810# strip PREFIX and SUFFIX off of NAME.
14811# PREFIX and SUFFIX must not contain globbing or regex special
14812# characters, hashes, percent signs, but SUFFIX may contain a leading
14813# dot (in which case that matches only a dot).
14814func_stripname ()
14815{
14816 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14817 # positional parameters, so assign one to ordinary parameter first.
14818 func_stripname_result=${3}
14819 func_stripname_result=${func_stripname_result#"${1}"}
14820 func_stripname_result=${func_stripname_result%"${2}"}
14821}
14822
14823# func_opt_split
14824func_opt_split ()
14825{
14826 func_opt_split_opt=${1%%=*}
14827 func_opt_split_arg=${1#*=}
14828}
14829
14830# func_lo2o object
14831func_lo2o ()
14832{
14833 case ${1} in
14834 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14835 *) func_lo2o_result=${1} ;;
14836 esac
14837}
14838
14839# func_xform libobj-or-source
14840func_xform ()
14841{
14842 func_xform_result=${1%.*}.lo
14843}
14844
14845# func_arith arithmetic-term...
14846func_arith ()
14847{
14848 func_arith_result=$(( $* ))
14849}
14850
14851# func_len string
14852# STRING may not start with a hyphen.
14853func_len ()
14854{
14855 func_len_result=${#1}
14856}
14857
14858_LT_EOF
14859 ;;
14860 *) # Bourne compatible functions.
14861 cat << \_LT_EOF >> "$cfgfile"
14862
14863# func_dirname file append nondir_replacement
14864# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14865# otherwise set result to NONDIR_REPLACEMENT.
14866func_dirname ()
14867{
14868 # Extract subdirectory from the argument.
14869 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14870 if test "X$func_dirname_result" = "X${1}"; then
14871 func_dirname_result="${3}"
14872 else
14873 func_dirname_result="$func_dirname_result${2}"
14874 fi
14875}
14876
14877# func_basename file
14878func_basename ()
14879{
14880 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14881}
14882
14883
14884# func_stripname prefix suffix name
14885# strip PREFIX and SUFFIX off of NAME.
14886# PREFIX and SUFFIX must not contain globbing or regex special
14887# characters, hashes, percent signs, but SUFFIX may contain a leading
14888# dot (in which case that matches only a dot).
14889# func_strip_suffix prefix name
14890func_stripname ()
14891{
14892 case ${2} in
14893 .*) func_stripname_result=`$ECHO "X${3}" \
14894 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14895 *) func_stripname_result=`$ECHO "X${3}" \
14896 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14897 esac
14898}
14899
14900# sed scripts:
14901my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14902my_sed_long_arg='1s/^-[^=]*=//'
14903
14904# func_opt_split
14905func_opt_split ()
14906{
14907 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14908 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14909}
14910
14911# func_lo2o object
14912func_lo2o ()
14913{
14914 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14915}
14916
14917# func_xform libobj-or-source
14918func_xform ()
14919{
14920 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14921}
14922
14923# func_arith arithmetic-term...
14924func_arith ()
14925{
14926 func_arith_result=`expr "$@"`
14927}
14928
14929# func_len string
14930# STRING may not start with a hyphen.
14931func_len ()
14932{
14933 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14934}
14935
14936_LT_EOF
14937esac
14938
14939case $lt_shell_append in
14940 yes)
14941 cat << \_LT_EOF >> "$cfgfile"
14942
14943# func_append var value
14944# Append VALUE to the end of shell variable VAR.
14945func_append ()
14946{
14947 eval "$1+=\$2"
14948}
14949_LT_EOF
14950 ;;
14951 *)
14952 cat << \_LT_EOF >> "$cfgfile"
14953
14954# func_append var value
14955# Append VALUE to the end of shell variable VAR.
14956func_append ()
14957{
14958 eval "$1=\$$1\$2"
14959}
14960
14961_LT_EOF
14962 ;;
14963 esac
14964
14965
14966 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14967 || (rm -f "$cfgfile"; exit 1)
14968
14969 mv -f "$cfgfile" "$ofile" ||
14970 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14971 chmod +x "$ofile"
14972
14973 ;;
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014974 "libpng-config":F) chmod +x libpng-config ;;
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014975
Glenn Randers-Pehrsonae4bd5c2006-11-16 20:35:49 -060014976 esac
14977done # for ac_tag
14978
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014979
14980{ (exit 0); exit 0; }
14981_ACEOF
14982chmod +x $CONFIG_STATUS
14983ac_clean_files=$ac_clean_files_save
14984
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050014985test $ac_write_fail = 0 ||
14986 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14987$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14988 { (exit 1); exit 1; }; }
14989
Glenn Randers-Pehrson917648e2004-12-02 18:14:51 -060014990
14991# configure is writing to config.log, and then calls config.status.
14992# config.status does its own redirection, appending to config.log.
14993# Unfortunately, on DOS this fails, as config.log is still kept open
14994# by configure, so config.status won't be able to write to it; its
14995# output is simply discarded. So we exec the FD to /dev/null,
14996# effectively closing config.log, so it can be properly (re)opened and
14997# appended to by config.status. When coming back to configure, we
14998# need to make the FD available again.
14999if test "$no_create" != yes; then
15000 ac_cs_success=:
15001 ac_config_status_args=
15002 test "$silent" = yes &&
15003 ac_config_status_args="$ac_config_status_args --quiet"
15004 exec 5>/dev/null
15005 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15006 exec 5>>config.log
15007 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15008 # would make configure fail if this is the last instruction.
15009 $ac_cs_success || { (exit 1); exit 1; }
15010fi
Glenn Randers-Pehrsoneb580912008-07-30 14:47:09 -050015011if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15012 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
15013$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
15014fi
Glenn Randers-Pehrson520a7642000-03-21 05:13:06 -060015015