blob: 496d3be12b1c5e2f2fdaa5901fa0c1127779def0 [file] [log] [blame]
Patrick Scott5f6bd842010-06-28 16:55:16 -04001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Sireesh Tripurarib478e662014-05-09 15:15:10 +05303# Generated by GNU Autoconf 2.69 for libpng 1.6.10.
Patrick Scott5f6bd842010-06-28 16:55:16 -04004#
5# Report bugs to <png-mng-implement@lists.sourceforge.net>.
6#
7#
Chris Craikb50c2172013-07-29 15:28:30 -07008# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
Patrick Scott5f6bd842010-06-28 16:55:16 -04009#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
The Android Open Source Project893912b2009-03-03 19:30:05 -080016
Patrick Scott5f6bd842010-06-28 16:55:16 -040017# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
The Android Open Source Project893912b2009-03-03 19:30:05 -080034
Patrick Scott5f6bd842010-06-28 16:55:16 -040035
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
Chris Craikb50c2172013-07-29 15:28:30 -070092as_myself=
Patrick Scott5f6bd842010-06-28 16:55:16 -040093case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
Chris Craikb50c2172013-07-29 15:28:30 -0700137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
Patrick Scott5f6bd842010-06-28 16:55:16 -0400162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
The Android Open Source Project893912b2009-03-03 19:30:05 -0800178"
Patrick Scott5f6bd842010-06-28 16:55:16 -0400179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
Chris Craikb50c2172013-07-29 15:28:30 -0700195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
Patrick Scott5f6bd842010-06-28 16:55:16 -0400197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
Chris Craikb50c2172013-07-29 15:28:30 -0700201test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
Patrick Scott5f6bd842010-06-28 16:55:16 -0400210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
Chris Craikb50c2172013-07-29 15:28:30 -0700249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
Patrick Scott5f6bd842010-06-28 16:55:16 -0400268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: png-mng-implement@lists.sourceforge.net about your
279$0: system, including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
Chris Craikb50c2172013-07-29 15:28:30 -0700366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Patrick Scott5f6bd842010-06-28 16:55:16 -0400367
368
369} # as_fn_mkdir_p
Chris Craikb50c2172013-07-29 15:28:30 -0700370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
Patrick Scott5f6bd842010-06-28 16:55:16 -0400378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
Chris Craikb50c2172013-07-29 15:28:30 -0700414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
Patrick Scott5f6bd842010-06-28 16:55:16 -0400416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Chris Craikb50c2172013-07-29 15:28:30 -0700418# script with STATUS, using 1 if that was 0.
Patrick Scott5f6bd842010-06-28 16:55:16 -0400419as_fn_error ()
420{
Chris Craikb50c2172013-07-29 15:28:30 -0700421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Patrick Scott5f6bd842010-06-28 16:55:16 -0400425 fi
Chris Craikb50c2172013-07-29 15:28:30 -0700426 $as_echo "$as_me: error: $2" >&2
Patrick Scott5f6bd842010-06-28 16:55:16 -0400427 as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
Chris Craikb50c2172013-07-29 15:28:30 -0700499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
Patrick Scott5f6bd842010-06-28 16:55:16 -0400503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520*)
521 ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Chris Craikb50c2172013-07-29 15:28:30 -0700537 # In both cases, we have to default to `cp -pR'.
Patrick Scott5f6bd842010-06-28 16:55:16 -0400538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Chris Craikb50c2172013-07-29 15:28:30 -0700539 as_ln_s='cp -pR'
Patrick Scott5f6bd842010-06-28 16:55:16 -0400540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
Chris Craikb50c2172013-07-29 15:28:30 -0700543 as_ln_s='cp -pR'
Patrick Scott5f6bd842010-06-28 16:55:16 -0400544 fi
545else
Chris Craikb50c2172013-07-29 15:28:30 -0700546 as_ln_s='cp -pR'
Patrick Scott5f6bd842010-06-28 16:55:16 -0400547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
Chris Craikb50c2172013-07-29 15:28:30 -0700558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
Patrick Scott5f6bd842010-06-28 16:55:16 -0400560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
Patrick Scott5f6bd842010-06-28 16:55:16 -0400567SHELL=${CONFIG_SHELL-/bin/sh}
568
Patrick Scott5f6bd842010-06-28 16:55:16 -0400569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
Chris Craikb50c2172013-07-29 15:28:30 -0700574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Patrick Scott5f6bd842010-06-28 16:55:16 -0400575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='libpng'
592PACKAGE_TARNAME='libpng'
Sireesh Tripurarib478e662014-05-09 15:15:10 +0530593PACKAGE_VERSION='1.6.10'
594PACKAGE_STRING='libpng 1.6.10'
Patrick Scott5f6bd842010-06-28 16:55:16 -0400595PACKAGE_BUGREPORT='png-mng-implement@lists.sourceforge.net'
596PACKAGE_URL=''
597
598ac_unique_file="pngget.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613# include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618# include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
Chris Craikb50c2172013-07-29 15:28:30 -0700638PNG_ARM_NEON_FALSE
639PNG_ARM_NEON_TRUE
Sireesh Tripurarib478e662014-05-09 15:15:10 +0530640DO_INSTALL_LIBPNG_CONFIG_FALSE
641DO_INSTALL_LIBPNG_CONFIG_TRUE
642DO_INSTALL_LIBPNG_PC_FALSE
643DO_INSTALL_LIBPNG_PC_TRUE
644DO_INSTALL_LINKS_FALSE
645DO_INSTALL_LINKS_TRUE
Chris Craikb50c2172013-07-29 15:28:30 -0700646DO_PNG_PREFIX_FALSE
647DO_PNG_PREFIX_TRUE
648PNG_PREFIX
Patrick Scott5f6bd842010-06-28 16:55:16 -0400649binconfigs
650pkgconfigdir
651PNGLIB_RELEASE
652PNGLIB_MINOR
653PNGLIB_MAJOR
654PNGLIB_VERSION
655SYMBOL_PREFIX
656HAVE_LD_VERSION_SCRIPT_FALSE
657HAVE_LD_VERSION_SCRIPT_TRUE
Chris Craikb50c2172013-07-29 15:28:30 -0700658HAVE_SOLARIS_LD_FALSE
659HAVE_SOLARIS_LD_TRUE
Patrick Scott5f6bd842010-06-28 16:55:16 -0400660LIBOBJS
661POW_LIB
Chris Craikb50c2172013-07-29 15:28:30 -0700662PNG_COPTS
663DFNCPP
Patrick Scott5f6bd842010-06-28 16:55:16 -0400664OTOOL64
665OTOOL
666LIPO
667NMEDIT
668DSYMUTIL
Chris Craikb50c2172013-07-29 15:28:30 -0700669MANIFEST_TOOL
Patrick Scott5f6bd842010-06-28 16:55:16 -0400670RANLIB
Chris Craikb50c2172013-07-29 15:28:30 -0700671ac_ct_AR
Patrick Scott5f6bd842010-06-28 16:55:16 -0400672AR
673NM
674ac_ct_DUMPBIN
675DUMPBIN
676LIBTOOL
Patrick Scott5f6bd842010-06-28 16:55:16 -0400677OBJDUMP
678DLLTOOL
679AS
Chris Craikb50c2172013-07-29 15:28:30 -0700680LN_S
Patrick Scott5f6bd842010-06-28 16:55:16 -0400681CPP
682LD
683FGREP
684EGREP
685GREP
686SED
687host_os
688host_vendor
689host_cpu
690host
691build_os
692build_vendor
693build_cpu
694build
Chris Craikb50c2172013-07-29 15:28:30 -0700695am__fastdepCCAS_FALSE
696am__fastdepCCAS_TRUE
697CCASDEPMODE
698CCASFLAGS
699CCAS
Patrick Scott5f6bd842010-06-28 16:55:16 -0400700am__fastdepCC_FALSE
701am__fastdepCC_TRUE
702CCDEPMODE
Chris Craikb50c2172013-07-29 15:28:30 -0700703am__nodep
Patrick Scott5f6bd842010-06-28 16:55:16 -0400704AMDEPBACKSLASH
705AMDEP_FALSE
706AMDEP_TRUE
707am__quote
708am__include
709DEPDIR
710OBJEXT
711EXEEXT
712ac_ct_CC
713CPPFLAGS
714LDFLAGS
715CFLAGS
716CC
717MAINT
718MAINTAINER_MODE_FALSE
719MAINTAINER_MODE_TRUE
Chris Craikb50c2172013-07-29 15:28:30 -0700720AM_BACKSLASH
721AM_DEFAULT_VERBOSITY
722AM_DEFAULT_V
723AM_V
Patrick Scott5f6bd842010-06-28 16:55:16 -0400724am__untar
725am__tar
726AMTAR
727am__leading_dot
728SET_MAKE
729AWK
730mkdir_p
731MKDIR_P
732INSTALL_STRIP_PROGRAM
733STRIP
734install_sh
735MAKEINFO
736AUTOHEADER
737AUTOMAKE
738AUTOCONF
739ACLOCAL
740VERSION
741PACKAGE
742CYGPATH_W
743am__isrc
744INSTALL_DATA
745INSTALL_SCRIPT
746INSTALL_PROGRAM
747target_alias
748host_alias
749build_alias
750LIBS
751ECHO_T
752ECHO_N
753ECHO_C
754DEFS
755mandir
756localedir
757libdir
758psdir
759pdfdir
760dvidir
761htmldir
762infodir
763docdir
764oldincludedir
765includedir
766localstatedir
767sharedstatedir
768sysconfdir
769datadir
770datarootdir
771libexecdir
772sbindir
773bindir
774program_transform_name
775prefix
776exec_prefix
777PACKAGE_URL
778PACKAGE_BUGREPORT
779PACKAGE_STRING
780PACKAGE_VERSION
781PACKAGE_TARNAME
782PACKAGE_NAME
783PATH_SEPARATOR
784SHELL'
785ac_subst_files=''
786ac_user_opts='
787enable_option_checking
Chris Craikb50c2172013-07-29 15:28:30 -0700788enable_silent_rules
Patrick Scott5f6bd842010-06-28 16:55:16 -0400789enable_maintainer_mode
790enable_dependency_tracking
791with_gnu_ld
792enable_shared
793enable_static
794with_pic
795enable_fast_install
Chris Craikb50c2172013-07-29 15:28:30 -0700796with_sysroot
Patrick Scott5f6bd842010-06-28 16:55:16 -0400797enable_libtool_lock
Chris Craikb50c2172013-07-29 15:28:30 -0700798enable_werror
799with_zlib_prefix
Patrick Scott5f6bd842010-06-28 16:55:16 -0400800with_pkgconfigdir
801with_binconfigs
Chris Craikb50c2172013-07-29 15:28:30 -0700802with_libpng_prefix
Sireesh Tripurarib478e662014-05-09 15:15:10 +0530803enable_unversioned_links
804enable_unversioned_libpng_pc
805enable_unversioned_libpng_config
Chris Craikb50c2172013-07-29 15:28:30 -0700806enable_arm_neon
Patrick Scott5f6bd842010-06-28 16:55:16 -0400807'
808 ac_precious_vars='build_alias
809host_alias
810target_alias
811CC
812CFLAGS
813LDFLAGS
814LIBS
815CPPFLAGS
Chris Craikb50c2172013-07-29 15:28:30 -0700816CCAS
817CCASFLAGS
818CPP
819PNG_COPTS'
Patrick Scott5f6bd842010-06-28 16:55:16 -0400820
821
822# Initialize some variables set by options.
823ac_init_help=
824ac_init_version=false
825ac_unrecognized_opts=
826ac_unrecognized_sep=
827# The variables have the same names as the options, with
828# dashes changed to underlines.
829cache_file=/dev/null
830exec_prefix=NONE
831no_create=
832no_recursion=
833prefix=NONE
834program_prefix=NONE
835program_suffix=NONE
836program_transform_name=s,x,x,
837silent=
838site=
839srcdir=
840verbose=
841x_includes=NONE
842x_libraries=NONE
843
844# Installation directory options.
845# These are left unexpanded so users can "make install exec_prefix=/foo"
846# and all the variables that are supposed to be based on exec_prefix
847# by default will actually change.
848# Use braces instead of parens because sh, perl, etc. also accept them.
849# (The list follows the same order as the GNU Coding Standards.)
850bindir='${exec_prefix}/bin'
851sbindir='${exec_prefix}/sbin'
852libexecdir='${exec_prefix}/libexec'
853datarootdir='${prefix}/share'
854datadir='${datarootdir}'
855sysconfdir='${prefix}/etc'
856sharedstatedir='${prefix}/com'
857localstatedir='${prefix}/var'
858includedir='${prefix}/include'
859oldincludedir='/usr/include'
860docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861infodir='${datarootdir}/info'
862htmldir='${docdir}'
863dvidir='${docdir}'
864pdfdir='${docdir}'
865psdir='${docdir}'
866libdir='${exec_prefix}/lib'
867localedir='${datarootdir}/locale'
868mandir='${datarootdir}/man'
869
870ac_prev=
871ac_dashdash=
872for ac_option
873do
874 # If the previous option needs an argument, assign it.
875 if test -n "$ac_prev"; then
876 eval $ac_prev=\$ac_option
877 ac_prev=
878 continue
879 fi
880
881 case $ac_option in
Chris Craikb50c2172013-07-29 15:28:30 -0700882 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 *=) ac_optarg= ;;
884 *) ac_optarg=yes ;;
Patrick Scott5f6bd842010-06-28 16:55:16 -0400885 esac
886
887 # Accept the important Cygnus configure options, so we can diagnose typos.
888
889 case $ac_dashdash$ac_option in
890 --)
891 ac_dashdash=yes ;;
892
893 -bindir | --bindir | --bindi | --bind | --bin | --bi)
894 ac_prev=bindir ;;
895 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896 bindir=$ac_optarg ;;
897
898 -build | --build | --buil | --bui | --bu)
899 ac_prev=build_alias ;;
900 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901 build_alias=$ac_optarg ;;
902
903 -cache-file | --cache-file | --cache-fil | --cache-fi \
904 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905 ac_prev=cache_file ;;
906 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908 cache_file=$ac_optarg ;;
909
910 --config-cache | -C)
911 cache_file=config.cache ;;
912
913 -datadir | --datadir | --datadi | --datad)
914 ac_prev=datadir ;;
915 -datadir=* | --datadir=* | --datadi=* | --datad=*)
916 datadir=$ac_optarg ;;
917
918 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919 | --dataroo | --dataro | --datar)
920 ac_prev=datarootdir ;;
921 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923 datarootdir=$ac_optarg ;;
924
925 -disable-* | --disable-*)
926 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris Craikb50c2172013-07-29 15:28:30 -0700929 as_fn_error $? "invalid feature name: $ac_useropt"
Patrick Scott5f6bd842010-06-28 16:55:16 -0400930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
933 *"
934"enable_$ac_useropt"
935"*) ;;
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
938 esac
939 eval enable_$ac_useropt=no ;;
940
941 -docdir | --docdir | --docdi | --doc | --do)
942 ac_prev=docdir ;;
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 docdir=$ac_optarg ;;
945
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947 ac_prev=dvidir ;;
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 dvidir=$ac_optarg ;;
950
951 -enable-* | --enable-*)
952 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris Craikb50c2172013-07-29 15:28:30 -0700955 as_fn_error $? "invalid feature name: $ac_useropt"
Patrick Scott5f6bd842010-06-28 16:55:16 -0400956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
959 *"
960"enable_$ac_useropt"
961"*) ;;
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
964 esac
965 eval enable_$ac_useropt=\$ac_optarg ;;
966
967 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
968 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
969 | --exec | --exe | --ex)
970 ac_prev=exec_prefix ;;
971 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
972 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
973 | --exec=* | --exe=* | --ex=*)
974 exec_prefix=$ac_optarg ;;
975
976 -gas | --gas | --ga | --g)
977 # Obsolete; use --with-gas.
978 with_gas=yes ;;
979
980 -help | --help | --hel | --he | -h)
981 ac_init_help=long ;;
982 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
983 ac_init_help=recursive ;;
984 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
985 ac_init_help=short ;;
986
987 -host | --host | --hos | --ho)
988 ac_prev=host_alias ;;
989 -host=* | --host=* | --hos=* | --ho=*)
990 host_alias=$ac_optarg ;;
991
992 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
993 ac_prev=htmldir ;;
994 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
995 | --ht=*)
996 htmldir=$ac_optarg ;;
997
998 -includedir | --includedir | --includedi | --included | --include \
999 | --includ | --inclu | --incl | --inc)
1000 ac_prev=includedir ;;
1001 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1002 | --includ=* | --inclu=* | --incl=* | --inc=*)
1003 includedir=$ac_optarg ;;
1004
1005 -infodir | --infodir | --infodi | --infod | --info | --inf)
1006 ac_prev=infodir ;;
1007 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1008 infodir=$ac_optarg ;;
1009
1010 -libdir | --libdir | --libdi | --libd)
1011 ac_prev=libdir ;;
1012 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1013 libdir=$ac_optarg ;;
1014
1015 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1016 | --libexe | --libex | --libe)
1017 ac_prev=libexecdir ;;
1018 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1019 | --libexe=* | --libex=* | --libe=*)
1020 libexecdir=$ac_optarg ;;
1021
1022 -localedir | --localedir | --localedi | --localed | --locale)
1023 ac_prev=localedir ;;
1024 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1025 localedir=$ac_optarg ;;
1026
1027 -localstatedir | --localstatedir | --localstatedi | --localstated \
1028 | --localstate | --localstat | --localsta | --localst | --locals)
1029 ac_prev=localstatedir ;;
1030 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1031 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1032 localstatedir=$ac_optarg ;;
1033
1034 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1035 ac_prev=mandir ;;
1036 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1037 mandir=$ac_optarg ;;
1038
1039 -nfp | --nfp | --nf)
1040 # Obsolete; use --without-fp.
1041 with_fp=no ;;
1042
1043 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1044 | --no-cr | --no-c | -n)
1045 no_create=yes ;;
1046
1047 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1048 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1049 no_recursion=yes ;;
1050
1051 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1052 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1053 | --oldin | --oldi | --old | --ol | --o)
1054 ac_prev=oldincludedir ;;
1055 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1056 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1057 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1058 oldincludedir=$ac_optarg ;;
1059
1060 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1061 ac_prev=prefix ;;
1062 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1063 prefix=$ac_optarg ;;
1064
1065 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1066 | --program-pre | --program-pr | --program-p)
1067 ac_prev=program_prefix ;;
1068 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1069 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1070 program_prefix=$ac_optarg ;;
1071
1072 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1073 | --program-suf | --program-su | --program-s)
1074 ac_prev=program_suffix ;;
1075 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1076 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1077 program_suffix=$ac_optarg ;;
1078
1079 -program-transform-name | --program-transform-name \
1080 | --program-transform-nam | --program-transform-na \
1081 | --program-transform-n | --program-transform- \
1082 | --program-transform | --program-transfor \
1083 | --program-transfo | --program-transf \
1084 | --program-trans | --program-tran \
1085 | --progr-tra | --program-tr | --program-t)
1086 ac_prev=program_transform_name ;;
1087 -program-transform-name=* | --program-transform-name=* \
1088 | --program-transform-nam=* | --program-transform-na=* \
1089 | --program-transform-n=* | --program-transform-=* \
1090 | --program-transform=* | --program-transfor=* \
1091 | --program-transfo=* | --program-transf=* \
1092 | --program-trans=* | --program-tran=* \
1093 | --progr-tra=* | --program-tr=* | --program-t=*)
1094 program_transform_name=$ac_optarg ;;
1095
1096 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1097 ac_prev=pdfdir ;;
1098 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1099 pdfdir=$ac_optarg ;;
1100
1101 -psdir | --psdir | --psdi | --psd | --ps)
1102 ac_prev=psdir ;;
1103 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1104 psdir=$ac_optarg ;;
1105
1106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1107 | -silent | --silent | --silen | --sile | --sil)
1108 silent=yes ;;
1109
1110 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1111 ac_prev=sbindir ;;
1112 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1113 | --sbi=* | --sb=*)
1114 sbindir=$ac_optarg ;;
1115
1116 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1117 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1118 | --sharedst | --shareds | --shared | --share | --shar \
1119 | --sha | --sh)
1120 ac_prev=sharedstatedir ;;
1121 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1122 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1123 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1124 | --sha=* | --sh=*)
1125 sharedstatedir=$ac_optarg ;;
1126
1127 -site | --site | --sit)
1128 ac_prev=site ;;
1129 -site=* | --site=* | --sit=*)
1130 site=$ac_optarg ;;
1131
1132 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1133 ac_prev=srcdir ;;
1134 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1135 srcdir=$ac_optarg ;;
1136
1137 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1138 | --syscon | --sysco | --sysc | --sys | --sy)
1139 ac_prev=sysconfdir ;;
1140 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1141 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1142 sysconfdir=$ac_optarg ;;
1143
1144 -target | --target | --targe | --targ | --tar | --ta | --t)
1145 ac_prev=target_alias ;;
1146 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1147 target_alias=$ac_optarg ;;
1148
1149 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1150 verbose=yes ;;
1151
1152 -version | --version | --versio | --versi | --vers | -V)
1153 ac_init_version=: ;;
1154
1155 -with-* | --with-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris Craikb50c2172013-07-29 15:28:30 -07001159 as_fn_error $? "invalid package name: $ac_useropt"
Patrick Scott5f6bd842010-06-28 16:55:16 -04001160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1163 *"
1164"with_$ac_useropt"
1165"*) ;;
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1168 esac
1169 eval with_$ac_useropt=\$ac_optarg ;;
1170
1171 -without-* | --without-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Chris Craikb50c2172013-07-29 15:28:30 -07001175 as_fn_error $? "invalid package name: $ac_useropt"
Patrick Scott5f6bd842010-06-28 16:55:16 -04001176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1179 *"
1180"with_$ac_useropt"
1181"*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=no ;;
1186
1187 --x)
1188 # Obsolete; use --with-x.
1189 with_x=yes ;;
1190
1191 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1192 | --x-incl | --x-inc | --x-in | --x-i)
1193 ac_prev=x_includes ;;
1194 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1195 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1196 x_includes=$ac_optarg ;;
1197
1198 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1199 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1200 ac_prev=x_libraries ;;
1201 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1202 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1203 x_libraries=$ac_optarg ;;
1204
Chris Craikb50c2172013-07-29 15:28:30 -07001205 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1206Try \`$0 --help' for more information"
Patrick Scott5f6bd842010-06-28 16:55:16 -04001207 ;;
1208
1209 *=*)
1210 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211 # Reject names that are not valid shell variable names.
1212 case $ac_envvar in #(
1213 '' | [0-9]* | *[!_$as_cr_alnum]* )
Chris Craikb50c2172013-07-29 15:28:30 -07001214 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Patrick Scott5f6bd842010-06-28 16:55:16 -04001215 esac
1216 eval $ac_envvar=\$ac_optarg
1217 export $ac_envvar ;;
1218
1219 *)
1220 # FIXME: should be removed in autoconf 3.0.
1221 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1222 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Chris Craikb50c2172013-07-29 15:28:30 -07001224 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Patrick Scott5f6bd842010-06-28 16:55:16 -04001225 ;;
1226
1227 esac
1228done
1229
1230if test -n "$ac_prev"; then
1231 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Chris Craikb50c2172013-07-29 15:28:30 -07001232 as_fn_error $? "missing argument to $ac_option"
Patrick Scott5f6bd842010-06-28 16:55:16 -04001233fi
1234
1235if test -n "$ac_unrecognized_opts"; then
1236 case $enable_option_checking in
1237 no) ;;
Chris Craikb50c2172013-07-29 15:28:30 -07001238 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Patrick Scott5f6bd842010-06-28 16:55:16 -04001239 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1240 esac
1241fi
1242
1243# Check all directory arguments for consistency.
1244for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1245 datadir sysconfdir sharedstatedir localstatedir includedir \
1246 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1247 libdir localedir mandir
1248do
1249 eval ac_val=\$$ac_var
1250 # Remove trailing slashes.
1251 case $ac_val in
1252 */ )
1253 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1254 eval $ac_var=\$ac_val;;
1255 esac
1256 # Be sure to have absolute directory names.
1257 case $ac_val in
1258 [\\/$]* | ?:[\\/]* ) continue;;
1259 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1260 esac
Chris Craikb50c2172013-07-29 15:28:30 -07001261 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Patrick Scott5f6bd842010-06-28 16:55:16 -04001262done
1263
1264# There might be people who depend on the old broken behavior: `$host'
1265# used to hold the argument of --host etc.
1266# FIXME: To remove some day.
1267build=$build_alias
1268host=$host_alias
1269target=$target_alias
1270
1271# FIXME: To remove some day.
1272if test "x$host_alias" != x; then
1273 if test "x$build_alias" = x; then
1274 cross_compiling=maybe
Patrick Scott5f6bd842010-06-28 16:55:16 -04001275 elif test "x$build_alias" != "x$host_alias"; then
1276 cross_compiling=yes
1277 fi
1278fi
1279
1280ac_tool_prefix=
1281test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282
1283test "$silent" = yes && exec 6>/dev/null
1284
1285
1286ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287ac_ls_di=`ls -di .` &&
1288ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Chris Craikb50c2172013-07-29 15:28:30 -07001289 as_fn_error $? "working directory cannot be determined"
Patrick Scott5f6bd842010-06-28 16:55:16 -04001290test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Chris Craikb50c2172013-07-29 15:28:30 -07001291 as_fn_error $? "pwd does not report name of working directory"
Patrick Scott5f6bd842010-06-28 16:55:16 -04001292
1293
1294# Find the source files, if location was not specified.
1295if test -z "$srcdir"; then
1296 ac_srcdir_defaulted=yes
1297 # Try the directory containing this script, then the parent directory.
1298 ac_confdir=`$as_dirname -- "$as_myself" ||
1299$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300 X"$as_myself" : 'X\(//\)[^/]' \| \
1301 X"$as_myself" : 'X\(//\)$' \| \
1302 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303$as_echo X"$as_myself" |
1304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\/\)[^/].*/{
1309 s//\1/
1310 q
1311 }
1312 /^X\(\/\/\)$/{
1313 s//\1/
1314 q
1315 }
1316 /^X\(\/\).*/{
1317 s//\1/
1318 q
1319 }
1320 s/.*/./; q'`
1321 srcdir=$ac_confdir
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323 srcdir=..
1324 fi
1325else
1326 ac_srcdir_defaulted=no
1327fi
1328if test ! -r "$srcdir/$ac_unique_file"; then
1329 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Chris Craikb50c2172013-07-29 15:28:30 -07001330 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Patrick Scott5f6bd842010-06-28 16:55:16 -04001331fi
1332ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1333ac_abs_confdir=`(
Chris Craikb50c2172013-07-29 15:28:30 -07001334 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Patrick Scott5f6bd842010-06-28 16:55:16 -04001335 pwd)`
1336# When building in place, set srcdir=.
1337if test "$ac_abs_confdir" = "$ac_pwd"; then
1338 srcdir=.
1339fi
1340# Remove unnecessary trailing slashes from srcdir.
1341# Double slashes in file names in object file debugging info
1342# mess up M-x gdb in Emacs.
1343case $srcdir in
1344*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345esac
1346for ac_var in $ac_precious_vars; do
1347 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_env_${ac_var}_value=\$${ac_var}
1349 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351done
1352
1353#
1354# Report the --help message.
1355#
1356if test "$ac_init_help" = "long"; then
1357 # Omit some internal or obsolete options to make the list less imposing.
1358 # This message is too long to be a string in the A/UX 3.1 sh.
1359 cat <<_ACEOF
Sireesh Tripurarib478e662014-05-09 15:15:10 +05301360\`configure' configures libpng 1.6.10 to adapt to many kinds of systems.
Patrick Scott5f6bd842010-06-28 16:55:16 -04001361
1362Usage: $0 [OPTION]... [VAR=VALUE]...
1363
1364To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365VAR=VALUE. See below for descriptions of some of the useful variables.
1366
1367Defaults for the options are specified in brackets.
1368
1369Configuration:
1370 -h, --help display this help and exit
1371 --help=short display options specific to this package
1372 --help=recursive display the short help of all the included packages
1373 -V, --version display version information and exit
Chris Craikb50c2172013-07-29 15:28:30 -07001374 -q, --quiet, --silent do not print \`checking ...' messages
Patrick Scott5f6bd842010-06-28 16:55:16 -04001375 --cache-file=FILE cache test results in FILE [disabled]
1376 -C, --config-cache alias for \`--cache-file=config.cache'
1377 -n, --no-create do not create output files
1378 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1379
1380Installation directories:
1381 --prefix=PREFIX install architecture-independent files in PREFIX
1382 [$ac_default_prefix]
1383 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1384 [PREFIX]
1385
1386By default, \`make install' will install all the files in
1387\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1388an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389for instance \`--prefix=\$HOME'.
1390
1391For better control, use the options below.
1392
1393Fine tuning of the installation directories:
1394 --bindir=DIR user executables [EPREFIX/bin]
1395 --sbindir=DIR system admin executables [EPREFIX/sbin]
1396 --libexecdir=DIR program executables [EPREFIX/libexec]
1397 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1398 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1399 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1400 --libdir=DIR object code libraries [EPREFIX/lib]
1401 --includedir=DIR C header files [PREFIX/include]
1402 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1403 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1404 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1405 --infodir=DIR info documentation [DATAROOTDIR/info]
1406 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1407 --mandir=DIR man documentation [DATAROOTDIR/man]
1408 --docdir=DIR documentation root [DATAROOTDIR/doc/libpng]
1409 --htmldir=DIR html documentation [DOCDIR]
1410 --dvidir=DIR dvi documentation [DOCDIR]
1411 --pdfdir=DIR pdf documentation [DOCDIR]
1412 --psdir=DIR ps documentation [DOCDIR]
1413_ACEOF
1414
1415 cat <<\_ACEOF
1416
1417Program names:
1418 --program-prefix=PREFIX prepend PREFIX to installed program names
1419 --program-suffix=SUFFIX append SUFFIX to installed program names
1420 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1421
1422System types:
1423 --build=BUILD configure for building on BUILD [guessed]
1424 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1425_ACEOF
1426fi
1427
1428if test -n "$ac_init_help"; then
1429 case $ac_init_help in
Sireesh Tripurarib478e662014-05-09 15:15:10 +05301430 short | recursive ) echo "Configuration of libpng 1.6.10:";;
Patrick Scott5f6bd842010-06-28 16:55:16 -04001431 esac
1432 cat <<\_ACEOF
1433
1434Optional Features:
1435 --disable-option-checking ignore unrecognized --enable/--with options
1436 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1437 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Chris Craikb50c2172013-07-29 15:28:30 -07001438 --enable-silent-rules less verbose build output (undo: "make V=1")
1439 --disable-silent-rules verbose build output (undo: "make V=0")
1440 --enable-maintainer-mode
1441 enable make rules and dependencies not useful (and
1442 sometimes confusing) to the casual installer
1443 --enable-dependency-tracking
1444 do not reject slow dependency extractors
1445 --disable-dependency-tracking
1446 speeds up one-time build
Patrick Scott5f6bd842010-06-28 16:55:16 -04001447 --enable-shared[=PKGS] build shared libraries [default=yes]
1448 --enable-static[=PKGS] build static libraries [default=yes]
1449 --enable-fast-install[=PKGS]
1450 optimize for fast installation [default=yes]
1451 --disable-libtool-lock avoid locking (might break parallel builds)
Chris Craikb50c2172013-07-29 15:28:30 -07001452 --enable-werror[=OPT] Pass -Werror or the given argument to the compiler
1453 if it is supported
Sireesh Tripurarib478e662014-05-09 15:15:10 +05301454 --enable-unversioned-links
1455 Installed libpng header files are placed in a
1456 versioned subdirectory and installed libpng library
1457 (including DLL) files are versioned. If this option
1458 is enabled unversioned links will be created
1459 pointing to the corresponding installed files. If
1460 you use libpng.pc or libpng-config for all builds
1461 you do not need these links, but if you compile
1462 programs directly they will typically #include
1463 <png.h> and link with -lpng; in that case you need
1464 the links. The links can be installed manually using
1465 'make install-header-links' and 'make
1466 install-library-links' and can be removed using the
1467 corresponding uninstall- targets. If you do enable
1468 this option every libpng 'make install' will
1469 recreate the links to point to the just installed
1470 version of libpng. The default is to create the
1471 links; use --disable-unversioned-links to change
1472 this
1473 --enable-unversioned-libpng-pc
1474 Install the configuration file 'libpng.pc' as a link
1475 to the versioned version. This is done by default -
1476 use --disable-unversioned-libpng-pc to change this.
1477 --enable-unversioned-libpng-config
1478 Install the configuration file 'libpng-config' as a
1479 link to the versioned version. This is done by
1480 default - use --disable-unversioned-libpng-config to
1481 change this.
Chris Craikb50c2172013-07-29 15:28:30 -07001482 --enable-arm-neon Enable ARM NEON optimizations: =no/off, check, api,
1483 yes/on: no/off: disable the optimizations; check:
1484 use internal checking code (deprecated and poorly
1485 supported); api: disable by default, enable by a
1486 call to png_set_option; yes/on: turn on
1487 unconditionally. If not specified: determined by the
1488 compiler.
Patrick Scott5f6bd842010-06-28 16:55:16 -04001489
1490Optional Packages:
1491 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1492 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1493 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
Chris Craikb50c2172013-07-29 15:28:30 -07001494 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
Patrick Scott5f6bd842010-06-28 16:55:16 -04001495 both]
Chris Craikb50c2172013-07-29 15:28:30 -07001496 --with-sysroot=DIR Search for dependent libraries within DIR
1497 (or the compiler's sysroot if not specified).
1498 --with-zlib-prefix prefix that may have been used in installed zlib
1499 --with-pkgconfigdir Use the specified pkgconfig dir (default is
Patrick Scott5f6bd842010-06-28 16:55:16 -04001500 libdir/pkgconfig)
Chris Craikb50c2172013-07-29 15:28:30 -07001501 --with-binconfigs Generate shell libpng-config scripts as well as
Patrick Scott5f6bd842010-06-28 16:55:16 -04001502 pkg-config data [default=yes]
Chris Craikb50c2172013-07-29 15:28:30 -07001503 --with-libpng-prefix prefix libpng exported function (API) names with the
1504 given value
Patrick Scott5f6bd842010-06-28 16:55:16 -04001505
1506Some influential environment variables:
1507 CC C compiler command
1508 CFLAGS C compiler flags
1509 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1510 nonstandard directory <lib dir>
1511 LIBS libraries to pass to the linker, e.g. -l<library>
1512 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1513 you have headers in a nonstandard directory <include dir>
Chris Craikb50c2172013-07-29 15:28:30 -07001514 CCAS assembler compiler command (defaults to CC)
1515 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
Patrick Scott5f6bd842010-06-28 16:55:16 -04001516 CPP C preprocessor
Chris Craikb50c2172013-07-29 15:28:30 -07001517 PNG_COPTS additional flags for the C compiler, use this for options that
1518 would cause configure itself to fail
Patrick Scott5f6bd842010-06-28 16:55:16 -04001519
1520Use these variables to override the choices made by `configure' or to help
1521it to find libraries and programs with nonstandard names/locations.
1522
1523Report bugs to <png-mng-implement@lists.sourceforge.net>.
1524_ACEOF
1525ac_status=$?
1526fi
1527
1528if test "$ac_init_help" = "recursive"; then
1529 # If there are subdirs, report their specific --help.
1530 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1531 test -d "$ac_dir" ||
1532 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1533 continue
1534 ac_builddir=.
1535
1536case "$ac_dir" in
1537.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538*)
1539 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1540 # A ".." for each directory in $ac_dir_suffix.
1541 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1542 case $ac_top_builddir_sub in
1543 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1545 esac ;;
1546esac
1547ac_abs_top_builddir=$ac_pwd
1548ac_abs_builddir=$ac_pwd$ac_dir_suffix
1549# for backward compatibility:
1550ac_top_builddir=$ac_top_build_prefix
1551
1552case $srcdir in
1553 .) # We are building in place.
1554 ac_srcdir=.
1555 ac_top_srcdir=$ac_top_builddir_sub
1556 ac_abs_top_srcdir=$ac_pwd ;;
1557 [\\/]* | ?:[\\/]* ) # Absolute name.
1558 ac_srcdir=$srcdir$ac_dir_suffix;
1559 ac_top_srcdir=$srcdir
1560 ac_abs_top_srcdir=$srcdir ;;
1561 *) # Relative name.
1562 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1563 ac_top_srcdir=$ac_top_build_prefix$srcdir
1564 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1565esac
1566ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1567
1568 cd "$ac_dir" || { ac_status=$?; continue; }
1569 # Check for guested configure.
1570 if test -f "$ac_srcdir/configure.gnu"; then
1571 echo &&
1572 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1573 elif test -f "$ac_srcdir/configure"; then
1574 echo &&
1575 $SHELL "$ac_srcdir/configure" --help=recursive
1576 else
1577 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1578 fi || ac_status=$?
1579 cd "$ac_pwd" || { ac_status=$?; break; }
1580 done
1581fi
1582
1583test -n "$ac_init_help" && exit $ac_status
1584if $ac_init_version; then
1585 cat <<\_ACEOF
Sireesh Tripurarib478e662014-05-09 15:15:10 +05301586libpng configure 1.6.10
Chris Craikb50c2172013-07-29 15:28:30 -07001587generated by GNU Autoconf 2.69
Patrick Scott5f6bd842010-06-28 16:55:16 -04001588
Chris Craikb50c2172013-07-29 15:28:30 -07001589Copyright (C) 2012 Free Software Foundation, Inc.
Patrick Scott5f6bd842010-06-28 16:55:16 -04001590This configure script is free software; the Free Software Foundation
1591gives unlimited permission to copy, distribute and modify it.
1592_ACEOF
1593 exit
1594fi
1595
1596## ------------------------ ##
1597## Autoconf initialization. ##
1598## ------------------------ ##
1599
1600# ac_fn_c_try_compile LINENO
1601# --------------------------
1602# Try to compile conftest.$ac_ext, and return whether this succeeded.
1603ac_fn_c_try_compile ()
1604{
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 rm -f conftest.$ac_objext
1607 if { { ac_try="$ac_compile"
1608case "(($ac_try" in
1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610 *) ac_try_echo=$ac_try;;
1611esac
1612eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613$as_echo "$ac_try_echo"; } >&5
1614 (eval "$ac_compile") 2>conftest.err
1615 ac_status=$?
1616 if test -s conftest.err; then
1617 grep -v '^ *+' conftest.err >conftest.er1
1618 cat conftest.er1 >&5
1619 mv -f conftest.er1 conftest.err
1620 fi
1621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622 test $ac_status = 0; } && {
1623 test -z "$ac_c_werror_flag" ||
1624 test ! -s conftest.err
1625 } && test -s conftest.$ac_objext; then :
1626 ac_retval=0
1627else
1628 $as_echo "$as_me: failed program was:" >&5
1629sed 's/^/| /' conftest.$ac_ext >&5
1630
1631 ac_retval=1
1632fi
Chris Craikb50c2172013-07-29 15:28:30 -07001633 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Patrick Scott5f6bd842010-06-28 16:55:16 -04001634 as_fn_set_status $ac_retval
1635
1636} # ac_fn_c_try_compile
1637
1638# ac_fn_c_try_cpp LINENO
1639# ----------------------
1640# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1641ac_fn_c_try_cpp ()
1642{
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 if { { ac_try="$ac_cpp conftest.$ac_ext"
1645case "(($ac_try" in
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1648esac
1649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650$as_echo "$ac_try_echo"; } >&5
1651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1652 ac_status=$?
1653 if test -s conftest.err; then
1654 grep -v '^ *+' conftest.err >conftest.er1
1655 cat conftest.er1 >&5
1656 mv -f conftest.er1 conftest.err
1657 fi
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Chris Craikb50c2172013-07-29 15:28:30 -07001659 test $ac_status = 0; } > conftest.i && {
Patrick Scott5f6bd842010-06-28 16:55:16 -04001660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1661 test ! -s conftest.err
1662 }; then :
1663 ac_retval=0
1664else
1665 $as_echo "$as_me: failed program was:" >&5
1666sed 's/^/| /' conftest.$ac_ext >&5
1667
1668 ac_retval=1
1669fi
Chris Craikb50c2172013-07-29 15:28:30 -07001670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Patrick Scott5f6bd842010-06-28 16:55:16 -04001671 as_fn_set_status $ac_retval
1672
1673} # ac_fn_c_try_cpp
1674
1675# ac_fn_c_try_link LINENO
1676# -----------------------
1677# Try to link conftest.$ac_ext, and return whether this succeeded.
1678ac_fn_c_try_link ()
1679{
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 rm -f conftest.$ac_objext conftest$ac_exeext
1682 if { { ac_try="$ac_link"
1683case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686esac
1687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688$as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_link") 2>conftest.err
1690 ac_status=$?
1691 if test -s conftest.err; then
1692 grep -v '^ *+' conftest.err >conftest.er1
1693 cat conftest.er1 >&5
1694 mv -f conftest.er1 conftest.err
1695 fi
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && {
1698 test -z "$ac_c_werror_flag" ||
1699 test ! -s conftest.err
1700 } && test -s conftest$ac_exeext && {
1701 test "$cross_compiling" = yes ||
Chris Craikb50c2172013-07-29 15:28:30 -07001702 test -x conftest$ac_exeext
Patrick Scott5f6bd842010-06-28 16:55:16 -04001703 }; then :
1704 ac_retval=0
1705else
1706 $as_echo "$as_me: failed program was:" >&5
1707sed 's/^/| /' conftest.$ac_ext >&5
1708
1709 ac_retval=1
1710fi
1711 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1712 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1713 # interfere with the next link command; also delete a directory that is
1714 # left behind by Apple's compiler. We do this before executing the actions.
1715 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Chris Craikb50c2172013-07-29 15:28:30 -07001716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Patrick Scott5f6bd842010-06-28 16:55:16 -04001717 as_fn_set_status $ac_retval
1718
1719} # ac_fn_c_try_link
1720
1721# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1722# -------------------------------------------------------
1723# Tests whether HEADER exists and can be compiled using the include files in
1724# INCLUDES, setting the cache variable VAR accordingly.
1725ac_fn_c_check_header_compile ()
1726{
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729$as_echo_n "checking for $2... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07001730if eval \${$3+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04001731 $as_echo_n "(cached) " >&6
1732else
1733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734/* end confdefs.h. */
1735$4
1736#include <$2>
1737_ACEOF
1738if ac_fn_c_try_compile "$LINENO"; then :
1739 eval "$3=yes"
1740else
1741 eval "$3=no"
1742fi
1743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1744fi
1745eval ac_res=\$$3
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1747$as_echo "$ac_res" >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07001748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Patrick Scott5f6bd842010-06-28 16:55:16 -04001749
1750} # ac_fn_c_check_header_compile
1751
1752# ac_fn_c_try_run LINENO
1753# ----------------------
1754# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1755# that executables *can* be run.
1756ac_fn_c_try_run ()
1757{
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 if { { ac_try="$ac_link"
1760case "(($ac_try" in
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1763esac
1764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765$as_echo "$ac_try_echo"; } >&5
1766 (eval "$ac_link") 2>&5
1767 ac_status=$?
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1770 { { case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773esac
1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775$as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_try") 2>&5
1777 ac_status=$?
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; }; }; then :
1780 ac_retval=0
1781else
1782 $as_echo "$as_me: program exited with status $ac_status" >&5
1783 $as_echo "$as_me: failed program was:" >&5
1784sed 's/^/| /' conftest.$ac_ext >&5
1785
1786 ac_retval=$ac_status
1787fi
1788 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Chris Craikb50c2172013-07-29 15:28:30 -07001789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Patrick Scott5f6bd842010-06-28 16:55:16 -04001790 as_fn_set_status $ac_retval
1791
1792} # ac_fn_c_try_run
1793
1794# ac_fn_c_check_func LINENO FUNC VAR
1795# ----------------------------------
1796# Tests whether FUNC exists, setting the cache variable VAR accordingly
1797ac_fn_c_check_func ()
1798{
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801$as_echo_n "checking for $2... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07001802if eval \${$3+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04001803 $as_echo_n "(cached) " >&6
1804else
1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806/* end confdefs.h. */
1807/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1809#define $2 innocuous_$2
1810
1811/* System header to define __stub macros and hopefully few prototypes,
1812 which can conflict with char $2 (); below.
1813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1814 <limits.h> exists even on freestanding compilers. */
1815
1816#ifdef __STDC__
1817# include <limits.h>
1818#else
1819# include <assert.h>
1820#endif
1821
1822#undef $2
1823
1824/* Override any GCC internal prototype to avoid an error.
1825 Use char because int might match the return type of a GCC
1826 builtin and then its argument prototype would still apply. */
1827#ifdef __cplusplus
1828extern "C"
1829#endif
1830char $2 ();
1831/* The GNU C library defines this for functions which it implements
1832 to always fail with ENOSYS. Some functions are actually named
1833 something starting with __ and the normal name is an alias. */
1834#if defined __stub_$2 || defined __stub___$2
1835choke me
1836#endif
1837
1838int
1839main ()
1840{
1841return $2 ();
1842 ;
1843 return 0;
1844}
1845_ACEOF
1846if ac_fn_c_try_link "$LINENO"; then :
1847 eval "$3=yes"
1848else
1849 eval "$3=no"
1850fi
1851rm -f core conftest.err conftest.$ac_objext \
1852 conftest$ac_exeext conftest.$ac_ext
1853fi
1854eval ac_res=\$$3
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856$as_echo "$ac_res" >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07001857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Patrick Scott5f6bd842010-06-28 16:55:16 -04001858
1859} # ac_fn_c_check_func
1860
Patrick Scott5f6bd842010-06-28 16:55:16 -04001861# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1862# -------------------------------------------
1863# Tests whether TYPE exists after having included INCLUDES, setting cache
1864# variable VAR accordingly.
1865ac_fn_c_check_type ()
1866{
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869$as_echo_n "checking for $2... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07001870if eval \${$3+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04001871 $as_echo_n "(cached) " >&6
1872else
1873 eval "$3=no"
1874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875/* end confdefs.h. */
1876$4
1877int
1878main ()
1879{
1880if (sizeof ($2))
1881 return 0;
1882 ;
1883 return 0;
1884}
1885_ACEOF
1886if ac_fn_c_try_compile "$LINENO"; then :
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888/* end confdefs.h. */
1889$4
1890int
1891main ()
1892{
1893if (sizeof (($2)))
1894 return 0;
1895 ;
1896 return 0;
1897}
1898_ACEOF
1899if ac_fn_c_try_compile "$LINENO"; then :
1900
1901else
1902 eval "$3=yes"
1903fi
1904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1905fi
1906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1907fi
1908eval ac_res=\$$3
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1910$as_echo "$ac_res" >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07001911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Patrick Scott5f6bd842010-06-28 16:55:16 -04001912
1913} # ac_fn_c_check_type
1914cat >config.log <<_ACEOF
1915This file contains any messages produced by compilers while
1916running configure, to aid debugging if configure makes a mistake.
1917
Sireesh Tripurarib478e662014-05-09 15:15:10 +05301918It was created by libpng $as_me 1.6.10, which was
Chris Craikb50c2172013-07-29 15:28:30 -07001919generated by GNU Autoconf 2.69. Invocation command line was
Patrick Scott5f6bd842010-06-28 16:55:16 -04001920
1921 $ $0 $@
1922
1923_ACEOF
1924exec 5>>config.log
1925{
1926cat <<_ASUNAME
1927## --------- ##
1928## Platform. ##
1929## --------- ##
1930
1931hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1932uname -m = `(uname -m) 2>/dev/null || echo unknown`
1933uname -r = `(uname -r) 2>/dev/null || echo unknown`
1934uname -s = `(uname -s) 2>/dev/null || echo unknown`
1935uname -v = `(uname -v) 2>/dev/null || echo unknown`
1936
1937/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1938/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1939
1940/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1941/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1942/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1943/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1944/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1945/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1946/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1947
1948_ASUNAME
1949
1950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951for as_dir in $PATH
1952do
1953 IFS=$as_save_IFS
1954 test -z "$as_dir" && as_dir=.
1955 $as_echo "PATH: $as_dir"
1956 done
1957IFS=$as_save_IFS
1958
1959} >&5
1960
1961cat >&5 <<_ACEOF
1962
1963
1964## ----------- ##
1965## Core tests. ##
1966## ----------- ##
1967
1968_ACEOF
1969
1970
1971# Keep a trace of the command line.
1972# Strip out --no-create and --no-recursion so they do not pile up.
1973# Strip out --silent because we don't want to record it for future runs.
1974# Also quote any args containing shell meta-characters.
1975# Make two passes to allow for proper duplicate-argument suppression.
1976ac_configure_args=
1977ac_configure_args0=
1978ac_configure_args1=
1979ac_must_keep_next=false
1980for ac_pass in 1 2
1981do
1982 for ac_arg
1983 do
1984 case $ac_arg in
1985 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1986 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1987 | -silent | --silent | --silen | --sile | --sil)
1988 continue ;;
1989 *\'*)
1990 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1991 esac
1992 case $ac_pass in
1993 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1994 2)
1995 as_fn_append ac_configure_args1 " '$ac_arg'"
1996 if test $ac_must_keep_next = true; then
1997 ac_must_keep_next=false # Got value, back to normal.
1998 else
1999 case $ac_arg in
2000 *=* | --config-cache | -C | -disable-* | --disable-* \
2001 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2002 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2003 | -with-* | --with-* | -without-* | --without-* | --x)
2004 case "$ac_configure_args0 " in
2005 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2006 esac
2007 ;;
2008 -* ) ac_must_keep_next=true ;;
2009 esac
2010 fi
2011 as_fn_append ac_configure_args " '$ac_arg'"
2012 ;;
2013 esac
2014 done
2015done
2016{ ac_configure_args0=; unset ac_configure_args0;}
2017{ ac_configure_args1=; unset ac_configure_args1;}
2018
2019# When interrupted or exit'd, cleanup temporary files, and complete
2020# config.log. We remove comments because anyway the quotes in there
2021# would cause problems or look ugly.
2022# WARNING: Use '\'' to represent an apostrophe within the trap.
2023# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2024trap 'exit_status=$?
2025 # Save into config.log some information that might help in debugging.
2026 {
2027 echo
2028
Chris Craikb50c2172013-07-29 15:28:30 -07002029 $as_echo "## ---------------- ##
Patrick Scott5f6bd842010-06-28 16:55:16 -04002030## Cache variables. ##
Chris Craikb50c2172013-07-29 15:28:30 -07002031## ---------------- ##"
Patrick Scott5f6bd842010-06-28 16:55:16 -04002032 echo
2033 # The following way of writing the cache mishandles newlines in values,
2034(
2035 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2036 eval ac_val=\$$ac_var
2037 case $ac_val in #(
2038 *${as_nl}*)
2039 case $ac_var in #(
2040 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2041$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2042 esac
2043 case $ac_var in #(
2044 _ | IFS | as_nl) ;; #(
2045 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2046 *) { eval $ac_var=; unset $ac_var;} ;;
2047 esac ;;
2048 esac
2049 done
2050 (set) 2>&1 |
2051 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2052 *${as_nl}ac_space=\ *)
2053 sed -n \
2054 "s/'\''/'\''\\\\'\'''\''/g;
2055 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2056 ;; #(
2057 *)
2058 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2059 ;;
2060 esac |
2061 sort
2062)
2063 echo
2064
Chris Craikb50c2172013-07-29 15:28:30 -07002065 $as_echo "## ----------------- ##
Patrick Scott5f6bd842010-06-28 16:55:16 -04002066## Output variables. ##
Chris Craikb50c2172013-07-29 15:28:30 -07002067## ----------------- ##"
Patrick Scott5f6bd842010-06-28 16:55:16 -04002068 echo
2069 for ac_var in $ac_subst_vars
2070 do
2071 eval ac_val=\$$ac_var
2072 case $ac_val in
2073 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2074 esac
2075 $as_echo "$ac_var='\''$ac_val'\''"
2076 done | sort
2077 echo
2078
2079 if test -n "$ac_subst_files"; then
Chris Craikb50c2172013-07-29 15:28:30 -07002080 $as_echo "## ------------------- ##
Patrick Scott5f6bd842010-06-28 16:55:16 -04002081## File substitutions. ##
Chris Craikb50c2172013-07-29 15:28:30 -07002082## ------------------- ##"
Patrick Scott5f6bd842010-06-28 16:55:16 -04002083 echo
2084 for ac_var in $ac_subst_files
2085 do
2086 eval ac_val=\$$ac_var
2087 case $ac_val in
2088 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2089 esac
2090 $as_echo "$ac_var='\''$ac_val'\''"
2091 done | sort
2092 echo
2093 fi
2094
2095 if test -s confdefs.h; then
Chris Craikb50c2172013-07-29 15:28:30 -07002096 $as_echo "## ----------- ##
Patrick Scott5f6bd842010-06-28 16:55:16 -04002097## confdefs.h. ##
Chris Craikb50c2172013-07-29 15:28:30 -07002098## ----------- ##"
Patrick Scott5f6bd842010-06-28 16:55:16 -04002099 echo
2100 cat confdefs.h
2101 echo
2102 fi
2103 test "$ac_signal" != 0 &&
2104 $as_echo "$as_me: caught signal $ac_signal"
2105 $as_echo "$as_me: exit $exit_status"
2106 } >&5
2107 rm -f core *.core core.conftest.* &&
2108 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2109 exit $exit_status
2110' 0
2111for ac_signal in 1 2 13 15; do
2112 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2113done
2114ac_signal=0
2115
2116# confdefs.h avoids OS command line length limits that DEFS can exceed.
2117rm -f -r conftest* confdefs.h
2118
2119$as_echo "/* confdefs.h */" > confdefs.h
2120
2121# Predefined preprocessor variables.
2122
2123cat >>confdefs.h <<_ACEOF
2124#define PACKAGE_NAME "$PACKAGE_NAME"
2125_ACEOF
2126
2127cat >>confdefs.h <<_ACEOF
2128#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2129_ACEOF
2130
2131cat >>confdefs.h <<_ACEOF
2132#define PACKAGE_VERSION "$PACKAGE_VERSION"
2133_ACEOF
2134
2135cat >>confdefs.h <<_ACEOF
2136#define PACKAGE_STRING "$PACKAGE_STRING"
2137_ACEOF
2138
2139cat >>confdefs.h <<_ACEOF
2140#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2141_ACEOF
2142
2143cat >>confdefs.h <<_ACEOF
2144#define PACKAGE_URL "$PACKAGE_URL"
2145_ACEOF
2146
2147
2148# Let the site file select an alternate cache file if it wants to.
2149# Prefer an explicitly selected file to automatically selected ones.
2150ac_site_file1=NONE
2151ac_site_file2=NONE
2152if test -n "$CONFIG_SITE"; then
Chris Craikb50c2172013-07-29 15:28:30 -07002153 # We do not want a PATH search for config.site.
2154 case $CONFIG_SITE in #((
2155 -*) ac_site_file1=./$CONFIG_SITE;;
2156 */*) ac_site_file1=$CONFIG_SITE;;
2157 *) ac_site_file1=./$CONFIG_SITE;;
2158 esac
Patrick Scott5f6bd842010-06-28 16:55:16 -04002159elif test "x$prefix" != xNONE; then
2160 ac_site_file1=$prefix/share/config.site
2161 ac_site_file2=$prefix/etc/config.site
2162else
2163 ac_site_file1=$ac_default_prefix/share/config.site
2164 ac_site_file2=$ac_default_prefix/etc/config.site
2165fi
2166for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2167do
2168 test "x$ac_site_file" = xNONE && continue
2169 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2171$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2172 sed 's/^/| /' "$ac_site_file" >&5
Chris Craikb50c2172013-07-29 15:28:30 -07002173 . "$ac_site_file" \
2174 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2175$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2176as_fn_error $? "failed to load site script $ac_site_file
2177See \`config.log' for more details" "$LINENO" 5; }
Patrick Scott5f6bd842010-06-28 16:55:16 -04002178 fi
2179done
2180
2181if test -r "$cache_file"; then
2182 # Some versions of bash will fail to source /dev/null (special files
2183 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2184 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2186$as_echo "$as_me: loading cache $cache_file" >&6;}
2187 case $cache_file in
2188 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2189 *) . "./$cache_file";;
2190 esac
2191 fi
2192else
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2194$as_echo "$as_me: creating cache $cache_file" >&6;}
2195 >$cache_file
2196fi
2197
2198# Check that the precious variables saved in the cache have kept the same
2199# value.
2200ac_cache_corrupted=false
2201for ac_var in $ac_precious_vars; do
2202 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2203 eval ac_new_set=\$ac_env_${ac_var}_set
2204 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2205 eval ac_new_val=\$ac_env_${ac_var}_value
2206 case $ac_old_set,$ac_new_set in
2207 set,)
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2209$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2210 ac_cache_corrupted=: ;;
2211 ,set)
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2213$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2214 ac_cache_corrupted=: ;;
2215 ,);;
2216 *)
2217 if test "x$ac_old_val" != "x$ac_new_val"; then
2218 # differences in whitespace do not lead to failure.
2219 ac_old_val_w=`echo x $ac_old_val`
2220 ac_new_val_w=`echo x $ac_new_val`
2221 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2223$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2224 ac_cache_corrupted=:
2225 else
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2227$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2228 eval $ac_var=\$ac_old_val
2229 fi
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2231$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2233$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2234 fi;;
2235 esac
2236 # Pass precious variables to config.status.
2237 if test "$ac_new_set" = set; then
2238 case $ac_new_val in
2239 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2240 *) ac_arg=$ac_var=$ac_new_val ;;
2241 esac
2242 case " $ac_configure_args " in
2243 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2244 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2245 esac
2246 fi
2247done
2248if $ac_cache_corrupted; then
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2250$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2252$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Chris Craikb50c2172013-07-29 15:28:30 -07002253 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Patrick Scott5f6bd842010-06-28 16:55:16 -04002254fi
2255## -------------------- ##
2256## Main body of script. ##
2257## -------------------- ##
2258
2259ac_ext=c
2260ac_cpp='$CPP $CPPFLAGS'
2261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2263ac_compiler_gnu=$ac_cv_c_compiler_gnu
2264
2265
Chris Craikb50c2172013-07-29 15:28:30 -07002266
2267
2268# libpng does not follow GNU file name conventions (hence 'foreign')
2269# color-tests requires automake 1.11 or later
2270# silent-rules requires automake 1.11 or later
2271# dist-xz requires automake 1.11 or later
2272# 1.12.2 fixes a security issue in 1.11.2 and 1.12.1
2273# 1.13 is required for parallel tests
Sireesh Tripurarib478e662014-05-09 15:15:10 +05302274am__api_version='1.14'
Patrick Scott5f6bd842010-06-28 16:55:16 -04002275
2276ac_aux_dir=
2277for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
Chris Craikb50c2172013-07-29 15:28:30 -07002278 if test -f "$ac_dir/install-sh"; then
2279 ac_aux_dir=$ac_dir
2280 ac_install_sh="$ac_aux_dir/install-sh -c"
2281 break
2282 elif test -f "$ac_dir/install.sh"; then
2283 ac_aux_dir=$ac_dir
2284 ac_install_sh="$ac_aux_dir/install.sh -c"
2285 break
2286 elif test -f "$ac_dir/shtool"; then
2287 ac_aux_dir=$ac_dir
2288 ac_install_sh="$ac_aux_dir/shtool install -c"
2289 break
2290 fi
Patrick Scott5f6bd842010-06-28 16:55:16 -04002291done
2292if test -z "$ac_aux_dir"; then
Chris Craikb50c2172013-07-29 15:28:30 -07002293 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Patrick Scott5f6bd842010-06-28 16:55:16 -04002294fi
2295
2296# These three variables are undocumented and unsupported,
2297# and are intended to be withdrawn in a future Autoconf release.
2298# They can cause serious problems if a builder's source tree is in a directory
2299# whose full name contains unusual characters.
2300ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2301ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2302ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2303
2304
2305# Find a good install program. We prefer a C program (faster),
2306# so one script is as good as another. But avoid the broken or
2307# incompatible versions:
2308# SysV /etc/install, /usr/sbin/install
2309# SunOS /usr/etc/install
2310# IRIX /sbin/install
2311# AIX /bin/install
2312# AmigaOS /C/install, which installs bootblocks on floppy discs
2313# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2314# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2315# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2316# OS/2's system install, which has a completely different semantic
2317# ./install, which can be erroneously created by make from ./install.sh.
2318# Reject install programs that cannot install multiple files.
2319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2320$as_echo_n "checking for a BSD-compatible install... " >&6; }
2321if test -z "$INSTALL"; then
Chris Craikb50c2172013-07-29 15:28:30 -07002322if ${ac_cv_path_install+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04002323 $as_echo_n "(cached) " >&6
2324else
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326for as_dir in $PATH
2327do
2328 IFS=$as_save_IFS
2329 test -z "$as_dir" && as_dir=.
2330 # Account for people who put trailing slashes in PATH elements.
2331case $as_dir/ in #((
2332 ./ | .// | /[cC]/* | \
2333 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2334 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2335 /usr/ucb/* ) ;;
2336 *)
2337 # OSF1 and SCO ODT 3.0 have their own names for install.
2338 # Don't use installbsd from OSF since it installs stuff as root
2339 # by default.
2340 for ac_prog in ginstall scoinst install; do
2341 for ac_exec_ext in '' $ac_executable_extensions; do
Chris Craikb50c2172013-07-29 15:28:30 -07002342 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Patrick Scott5f6bd842010-06-28 16:55:16 -04002343 if test $ac_prog = install &&
2344 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2345 # AIX install. It has an incompatible calling convention.
2346 :
2347 elif test $ac_prog = install &&
2348 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2349 # program-specific install script used by HP pwplus--don't use.
2350 :
2351 else
2352 rm -rf conftest.one conftest.two conftest.dir
2353 echo one > conftest.one
2354 echo two > conftest.two
2355 mkdir conftest.dir
2356 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2357 test -s conftest.one && test -s conftest.two &&
2358 test -s conftest.dir/conftest.one &&
2359 test -s conftest.dir/conftest.two
2360 then
2361 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2362 break 3
2363 fi
2364 fi
2365 fi
2366 done
2367 done
2368 ;;
2369esac
2370
2371 done
2372IFS=$as_save_IFS
2373
2374rm -rf conftest.one conftest.two conftest.dir
2375
2376fi
2377 if test "${ac_cv_path_install+set}" = set; then
2378 INSTALL=$ac_cv_path_install
2379 else
2380 # As a last resort, use the slow shell script. Don't cache a
2381 # value for INSTALL within a source directory, because that will
2382 # break other packages using the cache if that directory is
2383 # removed, or if the value is a relative name.
2384 INSTALL=$ac_install_sh
2385 fi
2386fi
2387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2388$as_echo "$INSTALL" >&6; }
2389
2390# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2391# It thinks the first close brace ends the variable substitution.
2392test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2393
2394test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2395
2396test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2397
2398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2399$as_echo_n "checking whether build environment is sane... " >&6; }
Patrick Scott5f6bd842010-06-28 16:55:16 -04002400# Reject unsafe characters in $srcdir or the absolute working directory
2401# name. Accept space and tab only in the latter.
2402am_lf='
2403'
2404case `pwd` in
2405 *[\\\"\#\$\&\'\`$am_lf]*)
Chris Craikb50c2172013-07-29 15:28:30 -07002406 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
Patrick Scott5f6bd842010-06-28 16:55:16 -04002407esac
2408case $srcdir in
2409 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
Chris Craikb50c2172013-07-29 15:28:30 -07002410 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
Patrick Scott5f6bd842010-06-28 16:55:16 -04002411esac
2412
Chris Craikb50c2172013-07-29 15:28:30 -07002413# Do 'set' in a subshell so we don't clobber the current shell's
Patrick Scott5f6bd842010-06-28 16:55:16 -04002414# arguments. Must try -L first in case configure is actually a
2415# symlink; some systems play weird games with the mod time of symlinks
2416# (eg FreeBSD returns the mod time of the symlink's containing
2417# directory).
2418if (
Chris Craikb50c2172013-07-29 15:28:30 -07002419 am_has_slept=no
2420 for am_try in 1 2; do
2421 echo "timestamp, slept: $am_has_slept" > conftest.file
2422 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2423 if test "$*" = "X"; then
2424 # -L didn't work.
2425 set X `ls -t "$srcdir/configure" conftest.file`
2426 fi
2427 if test "$*" != "X $srcdir/configure conftest.file" \
2428 && test "$*" != "X conftest.file $srcdir/configure"; then
Patrick Scott5f6bd842010-06-28 16:55:16 -04002429
Chris Craikb50c2172013-07-29 15:28:30 -07002430 # If neither matched, then we have a broken ls. This can happen
2431 # if, for instance, CONFIG_SHELL is bash and it inherits a
2432 # broken ls alias from the environment. This has actually
2433 # happened. Such a system could not be considered "sane".
2434 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2435 alias in your environment" "$LINENO" 5
2436 fi
2437 if test "$2" = conftest.file || test $am_try -eq 2; then
2438 break
2439 fi
2440 # Just in case.
2441 sleep 1
2442 am_has_slept=yes
2443 done
Patrick Scott5f6bd842010-06-28 16:55:16 -04002444 test "$2" = conftest.file
2445 )
2446then
2447 # Ok.
2448 :
2449else
Chris Craikb50c2172013-07-29 15:28:30 -07002450 as_fn_error $? "newly created file is older than distributed files!
Patrick Scott5f6bd842010-06-28 16:55:16 -04002451Check your system clock" "$LINENO" 5
2452fi
2453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2454$as_echo "yes" >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07002455# If we didn't sleep, we still need to ensure time stamps of config.status and
2456# generated files are strictly newer.
2457am_sleep_pid=
2458if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2459 ( sleep 1 ) &
2460 am_sleep_pid=$!
2461fi
2462
2463rm -f conftest.file
2464
Patrick Scott5f6bd842010-06-28 16:55:16 -04002465test "$program_prefix" != NONE &&
2466 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2467# Use a double $ so make ignores it.
2468test "$program_suffix" != NONE &&
2469 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2470# Double any \ or $.
2471# By default was `s,x,x', remove it if useless.
2472ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2473program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2474
2475# expand $ac_aux_dir to an absolute path
2476am_aux_dir=`cd $ac_aux_dir && pwd`
2477
2478if test x"${MISSING+set}" != xset; then
2479 case $am_aux_dir in
2480 *\ * | *\ *)
2481 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2482 *)
2483 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2484 esac
2485fi
2486# Use eval to expand $SHELL
Chris Craikb50c2172013-07-29 15:28:30 -07002487if eval "$MISSING --is-lightweight"; then
2488 am_missing_run="$MISSING "
Patrick Scott5f6bd842010-06-28 16:55:16 -04002489else
2490 am_missing_run=
Chris Craikb50c2172013-07-29 15:28:30 -07002491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2492$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
Patrick Scott5f6bd842010-06-28 16:55:16 -04002493fi
2494
2495if test x"${install_sh}" != xset; then
2496 case $am_aux_dir in
2497 *\ * | *\ *)
2498 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2499 *)
2500 install_sh="\${SHELL} $am_aux_dir/install-sh"
2501 esac
2502fi
2503
Chris Craikb50c2172013-07-29 15:28:30 -07002504# Installed binaries are usually stripped using 'strip' when the user
2505# run "make install-strip". However 'strip' might not be the right
Patrick Scott5f6bd842010-06-28 16:55:16 -04002506# tool to use in cross-compilation environments, therefore Automake
Chris Craikb50c2172013-07-29 15:28:30 -07002507# will honor the 'STRIP' environment variable to overrule this program.
Patrick Scott5f6bd842010-06-28 16:55:16 -04002508if test "$cross_compiling" != no; then
2509 if test -n "$ac_tool_prefix"; then
2510 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2511set dummy ${ac_tool_prefix}strip; ac_word=$2
2512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2513$as_echo_n "checking for $ac_word... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07002514if ${ac_cv_prog_STRIP+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04002515 $as_echo_n "(cached) " >&6
2516else
2517 if test -n "$STRIP"; then
2518 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2519else
2520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521for as_dir in $PATH
2522do
2523 IFS=$as_save_IFS
2524 test -z "$as_dir" && as_dir=.
2525 for ac_exec_ext in '' $ac_executable_extensions; do
Chris Craikb50c2172013-07-29 15:28:30 -07002526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Patrick Scott5f6bd842010-06-28 16:55:16 -04002527 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2529 break 2
2530 fi
2531done
2532 done
2533IFS=$as_save_IFS
2534
2535fi
2536fi
2537STRIP=$ac_cv_prog_STRIP
2538if test -n "$STRIP"; then
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2540$as_echo "$STRIP" >&6; }
2541else
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2543$as_echo "no" >&6; }
2544fi
2545
2546
2547fi
2548if test -z "$ac_cv_prog_STRIP"; then
2549 ac_ct_STRIP=$STRIP
2550 # Extract the first word of "strip", so it can be a program name with args.
2551set dummy strip; ac_word=$2
2552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2553$as_echo_n "checking for $ac_word... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07002554if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04002555 $as_echo_n "(cached) " >&6
2556else
2557 if test -n "$ac_ct_STRIP"; then
2558 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2559else
2560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561for as_dir in $PATH
2562do
2563 IFS=$as_save_IFS
2564 test -z "$as_dir" && as_dir=.
2565 for ac_exec_ext in '' $ac_executable_extensions; do
Chris Craikb50c2172013-07-29 15:28:30 -07002566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Patrick Scott5f6bd842010-06-28 16:55:16 -04002567 ac_cv_prog_ac_ct_STRIP="strip"
2568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2569 break 2
2570 fi
2571done
2572 done
2573IFS=$as_save_IFS
2574
2575fi
2576fi
2577ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2578if test -n "$ac_ct_STRIP"; then
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2580$as_echo "$ac_ct_STRIP" >&6; }
2581else
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2583$as_echo "no" >&6; }
2584fi
2585
2586 if test "x$ac_ct_STRIP" = x; then
2587 STRIP=":"
2588 else
2589 case $cross_compiling:$ac_tool_warned in
2590yes:)
2591{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2592$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2593ac_tool_warned=yes ;;
2594esac
2595 STRIP=$ac_ct_STRIP
2596 fi
2597else
2598 STRIP="$ac_cv_prog_STRIP"
2599fi
2600
2601fi
2602INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2603
2604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2605$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2606if test -z "$MKDIR_P"; then
Chris Craikb50c2172013-07-29 15:28:30 -07002607 if ${ac_cv_path_mkdir+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04002608 $as_echo_n "(cached) " >&6
2609else
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2612do
2613 IFS=$as_save_IFS
2614 test -z "$as_dir" && as_dir=.
2615 for ac_prog in mkdir gmkdir; do
2616 for ac_exec_ext in '' $ac_executable_extensions; do
Chris Craikb50c2172013-07-29 15:28:30 -07002617 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
Patrick Scott5f6bd842010-06-28 16:55:16 -04002618 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2619 'mkdir (GNU coreutils) '* | \
2620 'mkdir (coreutils) '* | \
2621 'mkdir (fileutils) '4.1*)
2622 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2623 break 3;;
2624 esac
2625 done
2626 done
2627 done
2628IFS=$as_save_IFS
2629
2630fi
2631
2632 test -d ./--version && rmdir ./--version
2633 if test "${ac_cv_path_mkdir+set}" = set; then
2634 MKDIR_P="$ac_cv_path_mkdir -p"
2635 else
2636 # As a last resort, use the slow shell script. Don't cache a
2637 # value for MKDIR_P within a source directory, because that will
2638 # break other packages using the cache if that directory is
2639 # removed, or if the value is a relative name.
2640 MKDIR_P="$ac_install_sh -d"
2641 fi
2642fi
2643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2644$as_echo "$MKDIR_P" >&6; }
2645
Patrick Scott5f6bd842010-06-28 16:55:16 -04002646for ac_prog in gawk mawk nawk awk
2647do
2648 # Extract the first word of "$ac_prog", so it can be a program name with args.
2649set dummy $ac_prog; ac_word=$2
2650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2651$as_echo_n "checking for $ac_word... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07002652if ${ac_cv_prog_AWK+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04002653 $as_echo_n "(cached) " >&6
2654else
2655 if test -n "$AWK"; then
2656 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2657else
2658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659for as_dir in $PATH
2660do
2661 IFS=$as_save_IFS
2662 test -z "$as_dir" && as_dir=.
2663 for ac_exec_ext in '' $ac_executable_extensions; do
Chris Craikb50c2172013-07-29 15:28:30 -07002664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Patrick Scott5f6bd842010-06-28 16:55:16 -04002665 ac_cv_prog_AWK="$ac_prog"
2666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2667 break 2
2668 fi
2669done
2670 done
2671IFS=$as_save_IFS
2672
2673fi
2674fi
2675AWK=$ac_cv_prog_AWK
2676if test -n "$AWK"; then
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2678$as_echo "$AWK" >&6; }
2679else
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2681$as_echo "no" >&6; }
2682fi
2683
2684
2685 test -n "$AWK" && break
2686done
2687
2688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2689$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2690set x ${MAKE-make}
2691ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Chris Craikb50c2172013-07-29 15:28:30 -07002692if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04002693 $as_echo_n "(cached) " >&6
2694else
2695 cat >conftest.make <<\_ACEOF
2696SHELL = /bin/sh
2697all:
2698 @echo '@@@%%%=$(MAKE)=@@@%%%'
2699_ACEOF
Chris Craikb50c2172013-07-29 15:28:30 -07002700# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Patrick Scott5f6bd842010-06-28 16:55:16 -04002701case `${MAKE-make} -f conftest.make 2>/dev/null` in
2702 *@@@%%%=?*=@@@%%%*)
2703 eval ac_cv_prog_make_${ac_make}_set=yes;;
2704 *)
2705 eval ac_cv_prog_make_${ac_make}_set=no;;
2706esac
2707rm -f conftest.make
2708fi
2709if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2711$as_echo "yes" >&6; }
2712 SET_MAKE=
2713else
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2715$as_echo "no" >&6; }
2716 SET_MAKE="MAKE=${MAKE-make}"
2717fi
2718
2719rm -rf .tst 2>/dev/null
2720mkdir .tst 2>/dev/null
2721if test -d .tst; then
2722 am__leading_dot=.
2723else
2724 am__leading_dot=_
2725fi
2726rmdir .tst 2>/dev/null
2727
Chris Craikb50c2172013-07-29 15:28:30 -07002728# Check whether --enable-silent-rules was given.
2729if test "${enable_silent_rules+set}" = set; then :
2730 enableval=$enable_silent_rules;
2731fi
2732
2733case $enable_silent_rules in # (((
2734 yes) AM_DEFAULT_VERBOSITY=0;;
2735 no) AM_DEFAULT_VERBOSITY=1;;
2736 *) AM_DEFAULT_VERBOSITY=1;;
2737esac
2738am_make=${MAKE-make}
2739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2740$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2741if ${am_cv_make_support_nested_variables+:} false; then :
2742 $as_echo_n "(cached) " >&6
2743else
2744 if $as_echo 'TRUE=$(BAR$(V))
2745BAR0=false
2746BAR1=true
2747V=1
2748am__doit:
2749 @$(TRUE)
2750.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2751 am_cv_make_support_nested_variables=yes
2752else
2753 am_cv_make_support_nested_variables=no
2754fi
2755fi
2756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2757$as_echo "$am_cv_make_support_nested_variables" >&6; }
2758if test $am_cv_make_support_nested_variables = yes; then
2759 AM_V='$(V)'
2760 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2761else
2762 AM_V=$AM_DEFAULT_VERBOSITY
2763 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2764fi
2765AM_BACKSLASH='\'
2766
Patrick Scott5f6bd842010-06-28 16:55:16 -04002767if test "`cd $srcdir && pwd`" != "`pwd`"; then
2768 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2769 # is not polluted with repeated "-I."
2770 am__isrc=' -I$(srcdir)'
2771 # test to see if srcdir already configured
2772 if test -f $srcdir/config.status; then
Chris Craikb50c2172013-07-29 15:28:30 -07002773 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
Patrick Scott5f6bd842010-06-28 16:55:16 -04002774 fi
2775fi
2776
2777# test whether we have cygpath
2778if test -z "$CYGPATH_W"; then
2779 if (cygpath --version) >/dev/null 2>/dev/null; then
2780 CYGPATH_W='cygpath -w'
2781 else
2782 CYGPATH_W=echo
2783 fi
2784fi
2785
2786
2787# Define the identity of the package.
2788 PACKAGE='libpng'
Sireesh Tripurarib478e662014-05-09 15:15:10 +05302789 VERSION='1.6.10'
Patrick Scott5f6bd842010-06-28 16:55:16 -04002790
2791
2792cat >>confdefs.h <<_ACEOF
2793#define PACKAGE "$PACKAGE"
2794_ACEOF
2795
2796
2797cat >>confdefs.h <<_ACEOF
2798#define VERSION "$VERSION"
2799_ACEOF
2800
2801# Some tools Automake needs.
2802
2803ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2804
2805
2806AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2807
2808
2809AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2810
2811
2812AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2813
2814
2815MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2816
Chris Craikb50c2172013-07-29 15:28:30 -07002817# For better backward compatibility. To be removed once Automake 1.9.x
2818# dies out for good. For more background, see:
2819# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2820# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2821mkdir_p='$(MKDIR_P)'
2822
Patrick Scott5f6bd842010-06-28 16:55:16 -04002823# We need awk for the "check" target. The system "awk" is bad on
2824# some platforms.
Chris Craikb50c2172013-07-29 15:28:30 -07002825# Always define AMTAR for backward compatibility. Yes, it's still used
2826# in the wild :-( We should find a proper way to deprecate it ...
2827AMTAR='$${TAR-tar}'
Patrick Scott5f6bd842010-06-28 16:55:16 -04002828
Sireesh Tripurarib478e662014-05-09 15:15:10 +05302829
2830# We'll loop over all known methods to create a tar archive until one works.
2831_am_tools='gnutar pax cpio none'
2832
Chris Craikb50c2172013-07-29 15:28:30 -07002833am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
Patrick Scott5f6bd842010-06-28 16:55:16 -04002834
2835
2836
2837
2838
Sireesh Tripurarib478e662014-05-09 15:15:10 +05302839
2840# POSIX will say in a future version that running "rm -f" with no argument
2841# is OK; and we want to be able to make that assumption in our Makefile
2842# recipes. So use an aggressive probe to check that the usage we want is
2843# actually supported "in the wild" to an acceptable degree.
2844# See automake bug#10828.
2845# To make any issue more visible, cause the running configure to be aborted
2846# by default if the 'rm' program in use doesn't match our expectations; the
2847# user can still override this though.
2848if rm -f && rm -fr && rm -rf; then : OK; else
2849 cat >&2 <<'END'
2850Oops!
2851
2852Your 'rm' program seems unable to run without file operands specified
2853on the command line, even when the '-f' option is present. This is contrary
2854to the behaviour of most rm programs out there, and not conforming with
2855the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2856
2857Please tell bug-automake@gnu.org about your system, including the value
2858of your $PATH and any error possibly output before this message. This
2859can help us improve future automake versions.
2860
2861END
2862 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2863 echo 'Configuration will proceed anyway, since you have set the' >&2
2864 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2865 echo >&2
2866 else
2867 cat >&2 <<'END'
2868Aborting the configuration process, to ensure you take notice of the issue.
2869
2870You can download and install GNU coreutils to get an 'rm' implementation
2871that behaves properly: <http://www.gnu.org/software/coreutils/>.
2872
2873If you want to complete the configuration process using your problematic
2874'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2875to "yes", and re-run configure.
2876
2877END
2878 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2879 fi
2880fi
Chris Craikb50c2172013-07-29 15:28:30 -07002881# The following line causes --disable-maintainer-mode to be the default to
2882# configure, this is necessary because libpng distributions cannot rely on the
2883# time stamps of the autotools generated files being correct
Patrick Scott5f6bd842010-06-28 16:55:16 -04002884
2885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2886$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2887 # Check whether --enable-maintainer-mode was given.
2888if test "${enable_maintainer_mode+set}" = set; then :
2889 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2890else
2891 USE_MAINTAINER_MODE=no
2892fi
2893
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2895$as_echo "$USE_MAINTAINER_MODE" >&6; }
2896 if test $USE_MAINTAINER_MODE = yes; then
2897 MAINTAINER_MODE_TRUE=
2898 MAINTAINER_MODE_FALSE='#'
2899else
2900 MAINTAINER_MODE_TRUE='#'
2901 MAINTAINER_MODE_FALSE=
2902fi
2903
2904 MAINT=$MAINTAINER_MODE_TRUE
2905
2906
2907
Chris Craikb50c2172013-07-29 15:28:30 -07002908
Sireesh Tripurarib478e662014-05-09 15:15:10 +05302909PNGLIB_VERSION=1.6.10
Patrick Scott5f6bd842010-06-28 16:55:16 -04002910PNGLIB_MAJOR=1
Chris Craikb50c2172013-07-29 15:28:30 -07002911PNGLIB_MINOR=6
Sireesh Tripurarib478e662014-05-09 15:15:10 +05302912PNGLIB_RELEASE=10
Patrick Scott5f6bd842010-06-28 16:55:16 -04002913
2914
2915
2916ac_config_headers="$ac_config_headers config.h"
2917
2918
2919# Checks for programs.
2920ac_ext=c
2921ac_cpp='$CPP $CPPFLAGS'
2922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2924ac_compiler_gnu=$ac_cv_c_compiler_gnu
Chris Craikb50c2172013-07-29 15:28:30 -07002925
2926ac_ext=c
2927ac_cpp='$CPP $CPPFLAGS'
2928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2930ac_compiler_gnu=$ac_cv_c_compiler_gnu
Patrick Scott5f6bd842010-06-28 16:55:16 -04002931if test -n "$ac_tool_prefix"; then
2932 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2933set dummy ${ac_tool_prefix}gcc; ac_word=$2
2934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935$as_echo_n "checking for $ac_word... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07002936if ${ac_cv_prog_CC+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04002937 $as_echo_n "(cached) " >&6
2938else
2939 if test -n "$CC"; then
2940 ac_cv_prog_CC="$CC" # Let the user override the test.
2941else
2942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943for as_dir in $PATH
2944do
2945 IFS=$as_save_IFS
2946 test -z "$as_dir" && as_dir=.
2947 for ac_exec_ext in '' $ac_executable_extensions; do
Chris Craikb50c2172013-07-29 15:28:30 -07002948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Patrick Scott5f6bd842010-06-28 16:55:16 -04002949 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 break 2
2952 fi
2953done
2954 done
2955IFS=$as_save_IFS
2956
2957fi
2958fi
2959CC=$ac_cv_prog_CC
2960if test -n "$CC"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2962$as_echo "$CC" >&6; }
2963else
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965$as_echo "no" >&6; }
2966fi
2967
2968
2969fi
2970if test -z "$ac_cv_prog_CC"; then
2971 ac_ct_CC=$CC
2972 # Extract the first word of "gcc", so it can be a program name with args.
2973set dummy gcc; ac_word=$2
2974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2975$as_echo_n "checking for $ac_word... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07002976if ${ac_cv_prog_ac_ct_CC+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04002977 $as_echo_n "(cached) " >&6
2978else
2979 if test -n "$ac_ct_CC"; then
2980 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2981else
2982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983for as_dir in $PATH
2984do
2985 IFS=$as_save_IFS
2986 test -z "$as_dir" && as_dir=.
2987 for ac_exec_ext in '' $ac_executable_extensions; do
Chris Craikb50c2172013-07-29 15:28:30 -07002988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Patrick Scott5f6bd842010-06-28 16:55:16 -04002989 ac_cv_prog_ac_ct_CC="gcc"
2990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2991 break 2
2992 fi
2993done
2994 done
2995IFS=$as_save_IFS
2996
2997fi
2998fi
2999ac_ct_CC=$ac_cv_prog_ac_ct_CC
3000if test -n "$ac_ct_CC"; then
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3002$as_echo "$ac_ct_CC" >&6; }
3003else
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3005$as_echo "no" >&6; }
3006fi
3007
3008 if test "x$ac_ct_CC" = x; then
3009 CC=""
3010 else
3011 case $cross_compiling:$ac_tool_warned in
3012yes:)
3013{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3014$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3015ac_tool_warned=yes ;;
3016esac
3017 CC=$ac_ct_CC
3018 fi
3019else
3020 CC="$ac_cv_prog_CC"
3021fi
3022
3023if test -z "$CC"; then
3024 if test -n "$ac_tool_prefix"; then
3025 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3026set dummy ${ac_tool_prefix}cc; ac_word=$2
3027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028$as_echo_n "checking for $ac_word... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07003029if ${ac_cv_prog_CC+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04003030 $as_echo_n "(cached) " >&6
3031else
3032 if test -n "$CC"; then
3033 ac_cv_prog_CC="$CC" # Let the user override the test.
3034else
3035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036for as_dir in $PATH
3037do
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
Chris Craikb50c2172013-07-29 15:28:30 -07003041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Patrick Scott5f6bd842010-06-28 16:55:16 -04003042 ac_cv_prog_CC="${ac_tool_prefix}cc"
3043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 break 2
3045 fi
3046done
3047 done
3048IFS=$as_save_IFS
3049
3050fi
3051fi
3052CC=$ac_cv_prog_CC
3053if test -n "$CC"; then
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3055$as_echo "$CC" >&6; }
3056else
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058$as_echo "no" >&6; }
3059fi
3060
3061
3062 fi
3063fi
3064if test -z "$CC"; then
3065 # Extract the first word of "cc", so it can be a program name with args.
3066set dummy cc; ac_word=$2
3067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3068$as_echo_n "checking for $ac_word... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07003069if ${ac_cv_prog_CC+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04003070 $as_echo_n "(cached) " >&6
3071else
3072 if test -n "$CC"; then
3073 ac_cv_prog_CC="$CC" # Let the user override the test.
3074else
3075 ac_prog_rejected=no
3076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077for as_dir in $PATH
3078do
3079 IFS=$as_save_IFS
3080 test -z "$as_dir" && as_dir=.
3081 for ac_exec_ext in '' $ac_executable_extensions; do
Chris Craikb50c2172013-07-29 15:28:30 -07003082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Patrick Scott5f6bd842010-06-28 16:55:16 -04003083 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3084 ac_prog_rejected=yes
3085 continue
3086 fi
3087 ac_cv_prog_CC="cc"
3088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3089 break 2
3090 fi
3091done
3092 done
3093IFS=$as_save_IFS
3094
3095if test $ac_prog_rejected = yes; then
3096 # We found a bogon in the path, so make sure we never use it.
3097 set dummy $ac_cv_prog_CC
3098 shift
3099 if test $# != 0; then
3100 # We chose a different compiler from the bogus one.
3101 # However, it has the same basename, so the bogon will be chosen
3102 # first if we set CC to just the basename; use the full file name.
3103 shift
3104 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3105 fi
3106fi
3107fi
3108fi
3109CC=$ac_cv_prog_CC
3110if test -n "$CC"; then
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3112$as_echo "$CC" >&6; }
3113else
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115$as_echo "no" >&6; }
3116fi
3117
3118
3119fi
3120if test -z "$CC"; then
3121 if test -n "$ac_tool_prefix"; then
3122 for ac_prog in cl.exe
3123 do
3124 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3125set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3127$as_echo_n "checking for $ac_word... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07003128if ${ac_cv_prog_CC+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04003129 $as_echo_n "(cached) " >&6
3130else
3131 if test -n "$CC"; then
3132 ac_cv_prog_CC="$CC" # Let the user override the test.
3133else
3134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135for as_dir in $PATH
3136do
3137 IFS=$as_save_IFS
3138 test -z "$as_dir" && as_dir=.
3139 for ac_exec_ext in '' $ac_executable_extensions; do
Chris Craikb50c2172013-07-29 15:28:30 -07003140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Patrick Scott5f6bd842010-06-28 16:55:16 -04003141 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3143 break 2
3144 fi
3145done
3146 done
3147IFS=$as_save_IFS
3148
3149fi
3150fi
3151CC=$ac_cv_prog_CC
3152if test -n "$CC"; then
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3154$as_echo "$CC" >&6; }
3155else
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3157$as_echo "no" >&6; }
3158fi
3159
3160
3161 test -n "$CC" && break
3162 done
3163fi
3164if test -z "$CC"; then
3165 ac_ct_CC=$CC
3166 for ac_prog in cl.exe
3167do
3168 # Extract the first word of "$ac_prog", so it can be a program name with args.
3169set dummy $ac_prog; ac_word=$2
3170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3171$as_echo_n "checking for $ac_word... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07003172if ${ac_cv_prog_ac_ct_CC+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04003173 $as_echo_n "(cached) " >&6
3174else
3175 if test -n "$ac_ct_CC"; then
3176 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3177else
3178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179for as_dir in $PATH
3180do
3181 IFS=$as_save_IFS
3182 test -z "$as_dir" && as_dir=.
3183 for ac_exec_ext in '' $ac_executable_extensions; do
Chris Craikb50c2172013-07-29 15:28:30 -07003184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Patrick Scott5f6bd842010-06-28 16:55:16 -04003185 ac_cv_prog_ac_ct_CC="$ac_prog"
3186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3187 break 2
3188 fi
3189done
3190 done
3191IFS=$as_save_IFS
3192
3193fi
3194fi
3195ac_ct_CC=$ac_cv_prog_ac_ct_CC
3196if test -n "$ac_ct_CC"; then
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3198$as_echo "$ac_ct_CC" >&6; }
3199else
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201$as_echo "no" >&6; }
3202fi
3203
3204
3205 test -n "$ac_ct_CC" && break
3206done
3207
3208 if test "x$ac_ct_CC" = x; then
3209 CC=""
3210 else
3211 case $cross_compiling:$ac_tool_warned in
3212yes:)
3213{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3214$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3215ac_tool_warned=yes ;;
3216esac
3217 CC=$ac_ct_CC
3218 fi
3219fi
3220
3221fi
3222
3223
3224test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3225$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris Craikb50c2172013-07-29 15:28:30 -07003226as_fn_error $? "no acceptable C compiler found in \$PATH
3227See \`config.log' for more details" "$LINENO" 5; }
Patrick Scott5f6bd842010-06-28 16:55:16 -04003228
3229# Provide some information about the compiler.
3230$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3231set X $ac_compile
3232ac_compiler=$2
3233for ac_option in --version -v -V -qversion; do
3234 { { ac_try="$ac_compiler $ac_option >&5"
3235case "(($ac_try" in
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3238esac
3239eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3240$as_echo "$ac_try_echo"; } >&5
3241 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3242 ac_status=$?
3243 if test -s conftest.err; then
3244 sed '10a\
3245... rest of stderr output deleted ...
3246 10q' conftest.err >conftest.er1
3247 cat conftest.er1 >&5
3248 fi
3249 rm -f conftest.er1 conftest.err
3250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3251 test $ac_status = 0; }
3252done
3253
3254cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3255/* end confdefs.h. */
3256
3257int
3258main ()
3259{
3260
3261 ;
3262 return 0;
3263}
3264_ACEOF
3265ac_clean_files_save=$ac_clean_files
3266ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3267# Try to create an executable without -o first, disregard a.out.
3268# It will help us diagnose broken compilers, and finding out an intuition
3269# of exeext.
3270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3271$as_echo_n "checking whether the C compiler works... " >&6; }
3272ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3273
3274# The possible output files:
3275ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3276
3277ac_rmfiles=
3278for ac_file in $ac_files
3279do
3280 case $ac_file in
3281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3282 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3283 esac
3284done
3285rm -f $ac_rmfiles
3286
3287if { { ac_try="$ac_link_default"
3288case "(($ac_try" in
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3291esac
3292eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3293$as_echo "$ac_try_echo"; } >&5
3294 (eval "$ac_link_default") 2>&5
3295 ac_status=$?
3296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3297 test $ac_status = 0; }; then :
3298 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3299# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3300# in a Makefile. We should not override ac_cv_exeext if it was cached,
3301# so that the user can short-circuit this test for compilers unknown to
3302# Autoconf.
3303for ac_file in $ac_files ''
3304do
3305 test -f "$ac_file" || continue
3306 case $ac_file in
3307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3308 ;;
3309 [ab].out )
3310 # We found the default executable, but exeext='' is most
3311 # certainly right.
3312 break;;
3313 *.* )
3314 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3315 then :; else
3316 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3317 fi
3318 # We set ac_cv_exeext here because the later test for it is not
3319 # safe: cross compilers may not add the suffix if given an `-o'
3320 # argument, so we may need to know it at that point already.
3321 # Even if this section looks crufty: it has the advantage of
3322 # actually working.
3323 break;;
3324 * )
3325 break;;
3326 esac
3327done
3328test "$ac_cv_exeext" = no && ac_cv_exeext=
3329
3330else
3331 ac_file=''
3332fi
3333if test -z "$ac_file"; then :
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335$as_echo "no" >&6; }
3336$as_echo "$as_me: failed program was:" >&5
3337sed 's/^/| /' conftest.$ac_ext >&5
3338
3339{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3340$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris Craikb50c2172013-07-29 15:28:30 -07003341as_fn_error 77 "C compiler cannot create executables
3342See \`config.log' for more details" "$LINENO" 5; }
Patrick Scott5f6bd842010-06-28 16:55:16 -04003343else
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3345$as_echo "yes" >&6; }
3346fi
3347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3348$as_echo_n "checking for C compiler default output file name... " >&6; }
3349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3350$as_echo "$ac_file" >&6; }
3351ac_exeext=$ac_cv_exeext
3352
3353rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3354ac_clean_files=$ac_clean_files_save
3355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3356$as_echo_n "checking for suffix of executables... " >&6; }
3357if { { ac_try="$ac_link"
3358case "(($ac_try" in
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3361esac
3362eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3363$as_echo "$ac_try_echo"; } >&5
3364 (eval "$ac_link") 2>&5
3365 ac_status=$?
3366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3367 test $ac_status = 0; }; then :
3368 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3369# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3370# work properly (i.e., refer to `conftest.exe'), while it won't with
3371# `rm'.
3372for ac_file in conftest.exe conftest conftest.*; do
3373 test -f "$ac_file" || continue
3374 case $ac_file in
3375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3376 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3377 break;;
3378 * ) break;;
3379 esac
3380done
3381else
3382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris Craikb50c2172013-07-29 15:28:30 -07003384as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3385See \`config.log' for more details" "$LINENO" 5; }
Patrick Scott5f6bd842010-06-28 16:55:16 -04003386fi
3387rm -f conftest conftest$ac_cv_exeext
3388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3389$as_echo "$ac_cv_exeext" >&6; }
3390
3391rm -f conftest.$ac_ext
3392EXEEXT=$ac_cv_exeext
3393ac_exeext=$EXEEXT
3394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3395/* end confdefs.h. */
3396#include <stdio.h>
3397int
3398main ()
3399{
3400FILE *f = fopen ("conftest.out", "w");
3401 return ferror (f) || fclose (f) != 0;
3402
3403 ;
3404 return 0;
3405}
3406_ACEOF
3407ac_clean_files="$ac_clean_files conftest.out"
3408# Check that the compiler produces executables we can run. If not, either
3409# the compiler is broken, or we cross compile.
3410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3411$as_echo_n "checking whether we are cross compiling... " >&6; }
3412if test "$cross_compiling" != yes; then
3413 { { ac_try="$ac_link"
3414case "(($ac_try" in
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3417esac
3418eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3419$as_echo "$ac_try_echo"; } >&5
3420 (eval "$ac_link") 2>&5
3421 ac_status=$?
3422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3423 test $ac_status = 0; }
3424 if { ac_try='./conftest$ac_cv_exeext'
3425 { { case "(($ac_try" in
3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427 *) ac_try_echo=$ac_try;;
3428esac
3429eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3430$as_echo "$ac_try_echo"; } >&5
3431 (eval "$ac_try") 2>&5
3432 ac_status=$?
3433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3434 test $ac_status = 0; }; }; then
3435 cross_compiling=no
3436 else
3437 if test "$cross_compiling" = maybe; then
3438 cross_compiling=yes
3439 else
3440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3441$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris Craikb50c2172013-07-29 15:28:30 -07003442as_fn_error $? "cannot run C compiled programs.
Patrick Scott5f6bd842010-06-28 16:55:16 -04003443If you meant to cross compile, use \`--host'.
Chris Craikb50c2172013-07-29 15:28:30 -07003444See \`config.log' for more details" "$LINENO" 5; }
Patrick Scott5f6bd842010-06-28 16:55:16 -04003445 fi
3446 fi
3447fi
3448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3449$as_echo "$cross_compiling" >&6; }
3450
3451rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3452ac_clean_files=$ac_clean_files_save
3453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3454$as_echo_n "checking for suffix of object files... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07003455if ${ac_cv_objext+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04003456 $as_echo_n "(cached) " >&6
3457else
3458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459/* end confdefs.h. */
3460
3461int
3462main ()
3463{
3464
3465 ;
3466 return 0;
3467}
3468_ACEOF
3469rm -f conftest.o conftest.obj
3470if { { ac_try="$ac_compile"
3471case "(($ac_try" in
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3474esac
3475eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3476$as_echo "$ac_try_echo"; } >&5
3477 (eval "$ac_compile") 2>&5
3478 ac_status=$?
3479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3480 test $ac_status = 0; }; then :
3481 for ac_file in conftest.o conftest.obj conftest.*; do
3482 test -f "$ac_file" || continue;
3483 case $ac_file in
3484 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3485 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3486 break;;
3487 esac
3488done
3489else
3490 $as_echo "$as_me: failed program was:" >&5
3491sed 's/^/| /' conftest.$ac_ext >&5
3492
3493{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3494$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris Craikb50c2172013-07-29 15:28:30 -07003495as_fn_error $? "cannot compute suffix of object files: cannot compile
3496See \`config.log' for more details" "$LINENO" 5; }
Patrick Scott5f6bd842010-06-28 16:55:16 -04003497fi
3498rm -f conftest.$ac_cv_objext conftest.$ac_ext
3499fi
3500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3501$as_echo "$ac_cv_objext" >&6; }
3502OBJEXT=$ac_cv_objext
3503ac_objext=$OBJEXT
3504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3505$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07003506if ${ac_cv_c_compiler_gnu+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04003507 $as_echo_n "(cached) " >&6
3508else
3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510/* end confdefs.h. */
3511
3512int
3513main ()
3514{
3515#ifndef __GNUC__
3516 choke me
3517#endif
3518
3519 ;
3520 return 0;
3521}
3522_ACEOF
3523if ac_fn_c_try_compile "$LINENO"; then :
3524 ac_compiler_gnu=yes
3525else
3526 ac_compiler_gnu=no
3527fi
3528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3529ac_cv_c_compiler_gnu=$ac_compiler_gnu
3530
3531fi
3532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3533$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3534if test $ac_compiler_gnu = yes; then
3535 GCC=yes
3536else
3537 GCC=
3538fi
3539ac_test_CFLAGS=${CFLAGS+set}
3540ac_save_CFLAGS=$CFLAGS
3541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3542$as_echo_n "checking whether $CC accepts -g... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07003543if ${ac_cv_prog_cc_g+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04003544 $as_echo_n "(cached) " >&6
3545else
3546 ac_save_c_werror_flag=$ac_c_werror_flag
3547 ac_c_werror_flag=yes
3548 ac_cv_prog_cc_g=no
3549 CFLAGS="-g"
3550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3551/* end confdefs.h. */
3552
3553int
3554main ()
3555{
3556
3557 ;
3558 return 0;
3559}
3560_ACEOF
3561if ac_fn_c_try_compile "$LINENO"; then :
3562 ac_cv_prog_cc_g=yes
3563else
3564 CFLAGS=""
3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566/* end confdefs.h. */
3567
3568int
3569main ()
3570{
3571
3572 ;
3573 return 0;
3574}
3575_ACEOF
3576if ac_fn_c_try_compile "$LINENO"; then :
3577
3578else
3579 ac_c_werror_flag=$ac_save_c_werror_flag
3580 CFLAGS="-g"
3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582/* end confdefs.h. */
3583
3584int
3585main ()
3586{
3587
3588 ;
3589 return 0;
3590}
3591_ACEOF
3592if ac_fn_c_try_compile "$LINENO"; then :
3593 ac_cv_prog_cc_g=yes
3594fi
3595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596fi
3597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598fi
3599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3600 ac_c_werror_flag=$ac_save_c_werror_flag
3601fi
3602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3603$as_echo "$ac_cv_prog_cc_g" >&6; }
3604if test "$ac_test_CFLAGS" = set; then
3605 CFLAGS=$ac_save_CFLAGS
3606elif test $ac_cv_prog_cc_g = yes; then
3607 if test "$GCC" = yes; then
3608 CFLAGS="-g -O2"
3609 else
3610 CFLAGS="-g"
3611 fi
3612else
3613 if test "$GCC" = yes; then
3614 CFLAGS="-O2"
3615 else
3616 CFLAGS=
3617 fi
3618fi
3619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3620$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07003621if ${ac_cv_prog_cc_c89+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04003622 $as_echo_n "(cached) " >&6
3623else
3624 ac_cv_prog_cc_c89=no
3625ac_save_CC=$CC
3626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627/* end confdefs.h. */
3628#include <stdarg.h>
3629#include <stdio.h>
Chris Craikb50c2172013-07-29 15:28:30 -07003630struct stat;
Patrick Scott5f6bd842010-06-28 16:55:16 -04003631/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3632struct buf { int x; };
3633FILE * (*rcsopen) (struct buf *, struct stat *, int);
3634static char *e (p, i)
3635 char **p;
3636 int i;
3637{
3638 return p[i];
3639}
3640static char *f (char * (*g) (char **, int), char **p, ...)
3641{
3642 char *s;
3643 va_list v;
3644 va_start (v,p);
3645 s = g (p, va_arg (v,int));
3646 va_end (v);
3647 return s;
3648}
3649
3650/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3651 function prototypes and stuff, but not '\xHH' hex character constants.
3652 These don't provoke an error unfortunately, instead are silently treated
3653 as 'x'. The following induces an error, until -std is added to get
3654 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3655 array size at least. It's necessary to write '\x00'==0 to get something
3656 that's true only with -std. */
3657int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3658
3659/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3660 inside strings and character constants. */
3661#define FOO(x) 'x'
3662int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3663
3664int test (int i, double x);
3665struct s1 {int (*f) (int a);};
3666struct s2 {int (*f) (double a);};
3667int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3668int argc;
3669char **argv;
3670int
3671main ()
3672{
3673return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3674 ;
3675 return 0;
3676}
3677_ACEOF
3678for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3679 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3680do
3681 CC="$ac_save_CC $ac_arg"
3682 if ac_fn_c_try_compile "$LINENO"; then :
3683 ac_cv_prog_cc_c89=$ac_arg
3684fi
3685rm -f core conftest.err conftest.$ac_objext
3686 test "x$ac_cv_prog_cc_c89" != "xno" && break
3687done
3688rm -f conftest.$ac_ext
3689CC=$ac_save_CC
3690
3691fi
3692# AC_CACHE_VAL
3693case "x$ac_cv_prog_cc_c89" in
3694 x)
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3696$as_echo "none needed" >&6; } ;;
3697 xno)
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3699$as_echo "unsupported" >&6; } ;;
3700 *)
3701 CC="$CC $ac_cv_prog_cc_c89"
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3703$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3704esac
3705if test "x$ac_cv_prog_cc_c89" != xno; then :
3706
3707fi
3708
3709ac_ext=c
3710ac_cpp='$CPP $CPPFLAGS'
3711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3713ac_compiler_gnu=$ac_cv_c_compiler_gnu
Sireesh Tripurarib478e662014-05-09 15:15:10 +05303714
3715ac_ext=c
3716ac_cpp='$CPP $CPPFLAGS'
3717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3719ac_compiler_gnu=$ac_cv_c_compiler_gnu
3720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3721$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3722if ${am_cv_prog_cc_c_o+:} false; then :
3723 $as_echo_n "(cached) " >&6
3724else
3725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726/* end confdefs.h. */
3727
3728int
3729main ()
3730{
3731
3732 ;
3733 return 0;
3734}
3735_ACEOF
3736 # Make sure it works both with $CC and with simple cc.
3737 # Following AC_PROG_CC_C_O, we do the test twice because some
3738 # compilers refuse to overwrite an existing .o file with -o,
3739 # though they will create one.
3740 am_cv_prog_cc_c_o=yes
3741 for am_i in 1 2; do
3742 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3743 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3744 ac_status=$?
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); } \
3747 && test -f conftest2.$ac_objext; then
3748 : OK
3749 else
3750 am_cv_prog_cc_c_o=no
3751 break
3752 fi
3753 done
3754 rm -f core conftest*
3755 unset am_i
3756fi
3757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3758$as_echo "$am_cv_prog_cc_c_o" >&6; }
3759if test "$am_cv_prog_cc_c_o" != yes; then
3760 # Losing compiler, so override with the script.
3761 # FIXME: It is wrong to rewrite CC.
3762 # But if we don't then we get into trouble of one sort or another.
3763 # A longer-term fix would be to have automake use am__CC in this case,
3764 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3765 CC="$am_aux_dir/compile $CC"
3766fi
3767ac_ext=c
3768ac_cpp='$CPP $CPPFLAGS'
3769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3771ac_compiler_gnu=$ac_cv_c_compiler_gnu
3772
Patrick Scott5f6bd842010-06-28 16:55:16 -04003773DEPDIR="${am__leading_dot}deps"
3774
3775ac_config_commands="$ac_config_commands depfiles"
3776
3777
3778am_make=${MAKE-make}
3779cat > confinc << 'END'
3780am__doit:
3781 @echo this is the am__doit target
3782.PHONY: am__doit
3783END
3784# If we don't find an include directive, just comment out the code.
3785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3786$as_echo_n "checking for style of include used by $am_make... " >&6; }
3787am__include="#"
3788am__quote=
3789_am_result=none
3790# First try GNU make style include.
3791echo "include confinc" > confmf
Chris Craikb50c2172013-07-29 15:28:30 -07003792# Ignore all kinds of additional output from 'make'.
Patrick Scott5f6bd842010-06-28 16:55:16 -04003793case `$am_make -s -f confmf 2> /dev/null` in #(
3794*the\ am__doit\ target*)
3795 am__include=include
3796 am__quote=
3797 _am_result=GNU
3798 ;;
3799esac
3800# Now try BSD make style include.
3801if test "$am__include" = "#"; then
3802 echo '.include "confinc"' > confmf
3803 case `$am_make -s -f confmf 2> /dev/null` in #(
3804 *the\ am__doit\ target*)
3805 am__include=.include
3806 am__quote="\""
3807 _am_result=BSD
3808 ;;
3809 esac
3810fi
3811
3812
3813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3814$as_echo "$_am_result" >&6; }
3815rm -f confinc confmf
3816
3817# Check whether --enable-dependency-tracking was given.
3818if test "${enable_dependency_tracking+set}" = set; then :
3819 enableval=$enable_dependency_tracking;
3820fi
3821
3822if test "x$enable_dependency_tracking" != xno; then
3823 am_depcomp="$ac_aux_dir/depcomp"
3824 AMDEPBACKSLASH='\'
Chris Craikb50c2172013-07-29 15:28:30 -07003825 am__nodep='_no'
Patrick Scott5f6bd842010-06-28 16:55:16 -04003826fi
3827 if test "x$enable_dependency_tracking" != xno; then
3828 AMDEP_TRUE=
3829 AMDEP_FALSE='#'
3830else
3831 AMDEP_TRUE='#'
3832 AMDEP_FALSE=
3833fi
3834
3835
3836
3837depcc="$CC" am_compiler_list=
3838
3839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3840$as_echo_n "checking dependency style of $depcc... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07003841if ${am_cv_CC_dependencies_compiler_type+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04003842 $as_echo_n "(cached) " >&6
3843else
3844 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3845 # We make a subdir and do the tests there. Otherwise we can end up
3846 # making bogus files that we don't know about and never remove. For
3847 # instance it was reported that on HP-UX the gcc test will end up
Chris Craikb50c2172013-07-29 15:28:30 -07003848 # making a dummy file named 'D' -- because '-MD' means "put the output
3849 # in D".
3850 rm -rf conftest.dir
Patrick Scott5f6bd842010-06-28 16:55:16 -04003851 mkdir conftest.dir
3852 # Copy depcomp to subdir because otherwise we won't find it if we're
3853 # using a relative directory.
3854 cp "$am_depcomp" conftest.dir
3855 cd conftest.dir
3856 # We will build objects and dependencies in a subdirectory because
3857 # it helps to detect inapplicable dependency modes. For instance
3858 # both Tru64's cc and ICC support -MD to output dependencies as a
3859 # side effect of compilation, but ICC will put the dependencies in
3860 # the current directory while Tru64 will put them in the object
3861 # directory.
3862 mkdir sub
3863
3864 am_cv_CC_dependencies_compiler_type=none
3865 if test "$am_compiler_list" = ""; then
3866 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3867 fi
3868 am__universal=false
3869 case " $depcc " in #(
3870 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3871 esac
3872
3873 for depmode in $am_compiler_list; do
3874 # Setup a source with many dependencies, because some compilers
3875 # like to wrap large dependency lists on column 80 (with \), and
3876 # we should not choose a depcomp mode which is confused by this.
3877 #
3878 # We need to recreate these files for each test, as the compiler may
3879 # overwrite some of them when testing with obscure command lines.
3880 # This happens at least with the AIX C compiler.
3881 : > sub/conftest.c
3882 for i in 1 2 3 4 5 6; do
3883 echo '#include "conftst'$i'.h"' >> sub/conftest.c
Chris Craikb50c2172013-07-29 15:28:30 -07003884 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3885 # Solaris 10 /bin/sh.
3886 echo '/* dummy */' > sub/conftst$i.h
Patrick Scott5f6bd842010-06-28 16:55:16 -04003887 done
3888 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3889
Chris Craikb50c2172013-07-29 15:28:30 -07003890 # We check with '-c' and '-o' for the sake of the "dashmstdout"
Patrick Scott5f6bd842010-06-28 16:55:16 -04003891 # mode. It turns out that the SunPro C++ compiler does not properly
Chris Craikb50c2172013-07-29 15:28:30 -07003892 # handle '-M -o', and we need to detect this. Also, some Intel
3893 # versions had trouble with output in subdirs.
Patrick Scott5f6bd842010-06-28 16:55:16 -04003894 am__obj=sub/conftest.${OBJEXT-o}
3895 am__minus_obj="-o $am__obj"
3896 case $depmode in
3897 gcc)
3898 # This depmode causes a compiler race in universal mode.
3899 test "$am__universal" = false || continue
3900 ;;
3901 nosideeffect)
Chris Craikb50c2172013-07-29 15:28:30 -07003902 # After this tag, mechanisms are not by side-effect, so they'll
3903 # only be used when explicitly requested.
Patrick Scott5f6bd842010-06-28 16:55:16 -04003904 if test "x$enable_dependency_tracking" = xyes; then
3905 continue
3906 else
3907 break
3908 fi
3909 ;;
Chris Craikb50c2172013-07-29 15:28:30 -07003910 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3911 # This compiler won't grok '-c -o', but also, the minuso test has
Patrick Scott5f6bd842010-06-28 16:55:16 -04003912 # not run yet. These depmodes are late enough in the game, and
3913 # so weak that their functioning should not be impacted.
3914 am__obj=conftest.${OBJEXT-o}
3915 am__minus_obj=
3916 ;;
3917 none) break ;;
3918 esac
3919 if depmode=$depmode \
3920 source=sub/conftest.c object=$am__obj \
3921 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3922 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3923 >/dev/null 2>conftest.err &&
3924 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3925 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3926 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3927 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3928 # icc doesn't choke on unknown options, it will just issue warnings
3929 # or remarks (even with -Werror). So we grep stderr for any message
3930 # that says an option was ignored or not supported.
3931 # When given -MP, icc 7.0 and 7.1 complain thusly:
3932 # icc: Command line warning: ignoring option '-M'; no argument required
3933 # The diagnosis changed in icc 8.0:
3934 # icc: Command line remark: option '-MP' not supported
3935 if (grep 'ignoring option' conftest.err ||
3936 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3937 am_cv_CC_dependencies_compiler_type=$depmode
3938 break
3939 fi
3940 fi
3941 done
3942
3943 cd ..
3944 rm -rf conftest.dir
3945else
3946 am_cv_CC_dependencies_compiler_type=none
3947fi
3948
3949fi
3950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3951$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3952CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3953
3954 if
3955 test "x$enable_dependency_tracking" != xno \
3956 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3957 am__fastdepCC_TRUE=
3958 am__fastdepCC_FALSE='#'
3959else
3960 am__fastdepCC_TRUE='#'
3961 am__fastdepCC_FALSE=
3962fi
3963
3964
Chris Craikb50c2172013-07-29 15:28:30 -07003965# By default we simply use the C compiler to build assembly code.
3966
3967test "${CCAS+set}" = set || CCAS=$CC
3968test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3969
3970
3971
3972depcc="$CCAS" am_compiler_list=
3973
3974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3975$as_echo_n "checking dependency style of $depcc... " >&6; }
3976if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
3977 $as_echo_n "(cached) " >&6
3978else
3979 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3980 # We make a subdir and do the tests there. Otherwise we can end up
3981 # making bogus files that we don't know about and never remove. For
3982 # instance it was reported that on HP-UX the gcc test will end up
3983 # making a dummy file named 'D' -- because '-MD' means "put the output
3984 # in D".
3985 rm -rf conftest.dir
3986 mkdir conftest.dir
3987 # Copy depcomp to subdir because otherwise we won't find it if we're
3988 # using a relative directory.
3989 cp "$am_depcomp" conftest.dir
3990 cd conftest.dir
3991 # We will build objects and dependencies in a subdirectory because
3992 # it helps to detect inapplicable dependency modes. For instance
3993 # both Tru64's cc and ICC support -MD to output dependencies as a
3994 # side effect of compilation, but ICC will put the dependencies in
3995 # the current directory while Tru64 will put them in the object
3996 # directory.
3997 mkdir sub
3998
3999 am_cv_CCAS_dependencies_compiler_type=none
4000 if test "$am_compiler_list" = ""; then
4001 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4002 fi
4003 am__universal=false
4004
4005
4006 for depmode in $am_compiler_list; do
4007 # Setup a source with many dependencies, because some compilers
4008 # like to wrap large dependency lists on column 80 (with \), and
4009 # we should not choose a depcomp mode which is confused by this.
4010 #
4011 # We need to recreate these files for each test, as the compiler may
4012 # overwrite some of them when testing with obscure command lines.
4013 # This happens at least with the AIX C compiler.
4014 : > sub/conftest.c
4015 for i in 1 2 3 4 5 6; do
4016 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4017 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4018 # Solaris 10 /bin/sh.
4019 echo '/* dummy */' > sub/conftst$i.h
4020 done
4021 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4022
4023 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4024 # mode. It turns out that the SunPro C++ compiler does not properly
4025 # handle '-M -o', and we need to detect this. Also, some Intel
4026 # versions had trouble with output in subdirs.
4027 am__obj=sub/conftest.${OBJEXT-o}
4028 am__minus_obj="-o $am__obj"
4029 case $depmode in
4030 gcc)
4031 # This depmode causes a compiler race in universal mode.
4032 test "$am__universal" = false || continue
4033 ;;
4034 nosideeffect)
4035 # After this tag, mechanisms are not by side-effect, so they'll
4036 # only be used when explicitly requested.
4037 if test "x$enable_dependency_tracking" = xyes; then
4038 continue
4039 else
4040 break
4041 fi
4042 ;;
4043 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4044 # This compiler won't grok '-c -o', but also, the minuso test has
4045 # not run yet. These depmodes are late enough in the game, and
4046 # so weak that their functioning should not be impacted.
4047 am__obj=conftest.${OBJEXT-o}
4048 am__minus_obj=
4049 ;;
4050 none) break ;;
4051 esac
4052 if depmode=$depmode \
4053 source=sub/conftest.c object=$am__obj \
4054 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4055 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4056 >/dev/null 2>conftest.err &&
4057 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4058 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4059 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4060 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4061 # icc doesn't choke on unknown options, it will just issue warnings
4062 # or remarks (even with -Werror). So we grep stderr for any message
4063 # that says an option was ignored or not supported.
4064 # When given -MP, icc 7.0 and 7.1 complain thusly:
4065 # icc: Command line warning: ignoring option '-M'; no argument required
4066 # The diagnosis changed in icc 8.0:
4067 # icc: Command line remark: option '-MP' not supported
4068 if (grep 'ignoring option' conftest.err ||
4069 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4070 am_cv_CCAS_dependencies_compiler_type=$depmode
4071 break
4072 fi
4073 fi
4074 done
4075
4076 cd ..
4077 rm -rf conftest.dir
4078else
4079 am_cv_CCAS_dependencies_compiler_type=none
4080fi
4081
4082fi
4083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4084$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4085CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4086
4087 if
4088 test "x$enable_dependency_tracking" != xno \
4089 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4090 am__fastdepCCAS_TRUE=
4091 am__fastdepCCAS_FALSE='#'
4092else
4093 am__fastdepCCAS_TRUE='#'
4094 am__fastdepCCAS_FALSE=
4095fi
4096
4097
Patrick Scott5f6bd842010-06-28 16:55:16 -04004098# Make sure we can run config.sub.
4099$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Chris Craikb50c2172013-07-29 15:28:30 -07004100 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Patrick Scott5f6bd842010-06-28 16:55:16 -04004101
4102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4103$as_echo_n "checking build system type... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07004104if ${ac_cv_build+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04004105 $as_echo_n "(cached) " >&6
4106else
4107 ac_build_alias=$build_alias
4108test "x$ac_build_alias" = x &&
4109 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4110test "x$ac_build_alias" = x &&
Chris Craikb50c2172013-07-29 15:28:30 -07004111 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Patrick Scott5f6bd842010-06-28 16:55:16 -04004112ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Chris Craikb50c2172013-07-29 15:28:30 -07004113 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Patrick Scott5f6bd842010-06-28 16:55:16 -04004114
4115fi
4116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4117$as_echo "$ac_cv_build" >&6; }
4118case $ac_cv_build in
4119*-*-*) ;;
Chris Craikb50c2172013-07-29 15:28:30 -07004120*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Patrick Scott5f6bd842010-06-28 16:55:16 -04004121esac
4122build=$ac_cv_build
4123ac_save_IFS=$IFS; IFS='-'
4124set x $ac_cv_build
4125shift
4126build_cpu=$1
4127build_vendor=$2
4128shift; shift
4129# Remember, the first character of IFS is used to create $*,
4130# except with old shells:
4131build_os=$*
4132IFS=$ac_save_IFS
4133case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4134
4135
4136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4137$as_echo_n "checking host system type... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07004138if ${ac_cv_host+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04004139 $as_echo_n "(cached) " >&6
4140else
4141 if test "x$host_alias" = x; then
4142 ac_cv_host=$ac_cv_build
4143else
4144 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Chris Craikb50c2172013-07-29 15:28:30 -07004145 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Patrick Scott5f6bd842010-06-28 16:55:16 -04004146fi
4147
4148fi
4149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4150$as_echo "$ac_cv_host" >&6; }
4151case $ac_cv_host in
4152*-*-*) ;;
Chris Craikb50c2172013-07-29 15:28:30 -07004153*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Patrick Scott5f6bd842010-06-28 16:55:16 -04004154esac
4155host=$ac_cv_host
4156ac_save_IFS=$IFS; IFS='-'
4157set x $ac_cv_host
4158shift
4159host_cpu=$1
4160host_vendor=$2
4161shift; shift
4162# Remember, the first character of IFS is used to create $*,
4163# except with old shells:
4164host_os=$*
4165IFS=$ac_save_IFS
4166case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4167
4168
4169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4170$as_echo_n "checking for a sed that does not truncate output... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07004171if ${ac_cv_path_SED+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04004172 $as_echo_n "(cached) " >&6
4173else
4174 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4175 for ac_i in 1 2 3 4 5 6 7; do
4176 ac_script="$ac_script$as_nl$ac_script"
4177 done
4178 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4179 { ac_script=; unset ac_script;}
4180 if test -z "$SED"; then
4181 ac_path_SED_found=false
4182 # Loop through the user's path and test for each of PROGNAME-LIST
4183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184for as_dir in $PATH
4185do
4186 IFS=$as_save_IFS
4187 test -z "$as_dir" && as_dir=.
4188 for ac_prog in sed gsed; do
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
Chris Craikb50c2172013-07-29 15:28:30 -07004191 as_fn_executable_p "$ac_path_SED" || continue
Patrick Scott5f6bd842010-06-28 16:55:16 -04004192# Check for GNU ac_path_SED and select it if it is found.
4193 # Check for GNU $ac_path_SED
4194case `"$ac_path_SED" --version 2>&1` in
4195*GNU*)
4196 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4197*)
4198 ac_count=0
4199 $as_echo_n 0123456789 >"conftest.in"
4200 while :
4201 do
4202 cat "conftest.in" "conftest.in" >"conftest.tmp"
4203 mv "conftest.tmp" "conftest.in"
4204 cp "conftest.in" "conftest.nl"
4205 $as_echo '' >> "conftest.nl"
4206 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4207 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4208 as_fn_arith $ac_count + 1 && ac_count=$as_val
4209 if test $ac_count -gt ${ac_path_SED_max-0}; then
4210 # Best one so far, save it but keep looking for a better one
4211 ac_cv_path_SED="$ac_path_SED"
4212 ac_path_SED_max=$ac_count
4213 fi
4214 # 10*(2^10) chars as input seems more than enough
4215 test $ac_count -gt 10 && break
4216 done
4217 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4218esac
4219
4220 $ac_path_SED_found && break 3
4221 done
4222 done
4223 done
4224IFS=$as_save_IFS
4225 if test -z "$ac_cv_path_SED"; then
Chris Craikb50c2172013-07-29 15:28:30 -07004226 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
Patrick Scott5f6bd842010-06-28 16:55:16 -04004227 fi
4228else
4229 ac_cv_path_SED=$SED
4230fi
4231
4232fi
4233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4234$as_echo "$ac_cv_path_SED" >&6; }
4235 SED="$ac_cv_path_SED"
4236 rm -f conftest.sed
4237
4238test -z "$SED" && SED=sed
4239Xsed="$SED -e 1s/^X//"
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4252$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07004253if ${ac_cv_path_GREP+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04004254 $as_echo_n "(cached) " >&6
4255else
4256 if test -z "$GREP"; then
4257 ac_path_GREP_found=false
4258 # Loop through the user's path and test for each of PROGNAME-LIST
4259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4261do
4262 IFS=$as_save_IFS
4263 test -z "$as_dir" && as_dir=.
4264 for ac_prog in grep ggrep; do
4265 for ac_exec_ext in '' $ac_executable_extensions; do
4266 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Chris Craikb50c2172013-07-29 15:28:30 -07004267 as_fn_executable_p "$ac_path_GREP" || continue
Patrick Scott5f6bd842010-06-28 16:55:16 -04004268# Check for GNU ac_path_GREP and select it if it is found.
4269 # Check for GNU $ac_path_GREP
4270case `"$ac_path_GREP" --version 2>&1` in
4271*GNU*)
4272 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4273*)
4274 ac_count=0
4275 $as_echo_n 0123456789 >"conftest.in"
4276 while :
4277 do
4278 cat "conftest.in" "conftest.in" >"conftest.tmp"
4279 mv "conftest.tmp" "conftest.in"
4280 cp "conftest.in" "conftest.nl"
4281 $as_echo 'GREP' >> "conftest.nl"
4282 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4283 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4284 as_fn_arith $ac_count + 1 && ac_count=$as_val
4285 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4286 # Best one so far, save it but keep looking for a better one
4287 ac_cv_path_GREP="$ac_path_GREP"
4288 ac_path_GREP_max=$ac_count
4289 fi
4290 # 10*(2^10) chars as input seems more than enough
4291 test $ac_count -gt 10 && break
4292 done
4293 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4294esac
4295
4296 $ac_path_GREP_found && break 3
4297 done
4298 done
4299 done
4300IFS=$as_save_IFS
4301 if test -z "$ac_cv_path_GREP"; then
Chris Craikb50c2172013-07-29 15:28:30 -07004302 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Patrick Scott5f6bd842010-06-28 16:55:16 -04004303 fi
4304else
4305 ac_cv_path_GREP=$GREP
4306fi
4307
4308fi
4309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4310$as_echo "$ac_cv_path_GREP" >&6; }
4311 GREP="$ac_cv_path_GREP"
4312
4313
4314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4315$as_echo_n "checking for egrep... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07004316if ${ac_cv_path_EGREP+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04004317 $as_echo_n "(cached) " >&6
4318else
4319 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4320 then ac_cv_path_EGREP="$GREP -E"
4321 else
4322 if test -z "$EGREP"; then
4323 ac_path_EGREP_found=false
4324 # Loop through the user's path and test for each of PROGNAME-LIST
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4327do
4328 IFS=$as_save_IFS
4329 test -z "$as_dir" && as_dir=.
4330 for ac_prog in egrep; do
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Chris Craikb50c2172013-07-29 15:28:30 -07004333 as_fn_executable_p "$ac_path_EGREP" || continue
Patrick Scott5f6bd842010-06-28 16:55:16 -04004334# Check for GNU ac_path_EGREP and select it if it is found.
4335 # Check for GNU $ac_path_EGREP
4336case `"$ac_path_EGREP" --version 2>&1` in
4337*GNU*)
4338 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4339*)
4340 ac_count=0
4341 $as_echo_n 0123456789 >"conftest.in"
4342 while :
4343 do
4344 cat "conftest.in" "conftest.in" >"conftest.tmp"
4345 mv "conftest.tmp" "conftest.in"
4346 cp "conftest.in" "conftest.nl"
4347 $as_echo 'EGREP' >> "conftest.nl"
4348 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4349 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4350 as_fn_arith $ac_count + 1 && ac_count=$as_val
4351 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4352 # Best one so far, save it but keep looking for a better one
4353 ac_cv_path_EGREP="$ac_path_EGREP"
4354 ac_path_EGREP_max=$ac_count
4355 fi
4356 # 10*(2^10) chars as input seems more than enough
4357 test $ac_count -gt 10 && break
4358 done
4359 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4360esac
4361
4362 $ac_path_EGREP_found && break 3
4363 done
4364 done
4365 done
4366IFS=$as_save_IFS
4367 if test -z "$ac_cv_path_EGREP"; then
Chris Craikb50c2172013-07-29 15:28:30 -07004368 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Patrick Scott5f6bd842010-06-28 16:55:16 -04004369 fi
4370else
4371 ac_cv_path_EGREP=$EGREP
4372fi
4373
4374 fi
4375fi
4376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4377$as_echo "$ac_cv_path_EGREP" >&6; }
4378 EGREP="$ac_cv_path_EGREP"
4379
4380
4381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4382$as_echo_n "checking for fgrep... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07004383if ${ac_cv_path_FGREP+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04004384 $as_echo_n "(cached) " >&6
4385else
4386 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4387 then ac_cv_path_FGREP="$GREP -F"
4388 else
4389 if test -z "$FGREP"; then
4390 ac_path_FGREP_found=false
4391 # Loop through the user's path and test for each of PROGNAME-LIST
4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4394do
4395 IFS=$as_save_IFS
4396 test -z "$as_dir" && as_dir=.
4397 for ac_prog in fgrep; do
4398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
Chris Craikb50c2172013-07-29 15:28:30 -07004400 as_fn_executable_p "$ac_path_FGREP" || continue
Patrick Scott5f6bd842010-06-28 16:55:16 -04004401# Check for GNU ac_path_FGREP and select it if it is found.
4402 # Check for GNU $ac_path_FGREP
4403case `"$ac_path_FGREP" --version 2>&1` in
4404*GNU*)
4405 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4406*)
4407 ac_count=0
4408 $as_echo_n 0123456789 >"conftest.in"
4409 while :
4410 do
4411 cat "conftest.in" "conftest.in" >"conftest.tmp"
4412 mv "conftest.tmp" "conftest.in"
4413 cp "conftest.in" "conftest.nl"
4414 $as_echo 'FGREP' >> "conftest.nl"
4415 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4416 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4417 as_fn_arith $ac_count + 1 && ac_count=$as_val
4418 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4419 # Best one so far, save it but keep looking for a better one
4420 ac_cv_path_FGREP="$ac_path_FGREP"
4421 ac_path_FGREP_max=$ac_count
4422 fi
4423 # 10*(2^10) chars as input seems more than enough
4424 test $ac_count -gt 10 && break
4425 done
4426 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4427esac
4428
4429 $ac_path_FGREP_found && break 3
4430 done
4431 done
4432 done
4433IFS=$as_save_IFS
4434 if test -z "$ac_cv_path_FGREP"; then
Chris Craikb50c2172013-07-29 15:28:30 -07004435 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Patrick Scott5f6bd842010-06-28 16:55:16 -04004436 fi
4437else
4438 ac_cv_path_FGREP=$FGREP
4439fi
4440
4441 fi
4442fi
4443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4444$as_echo "$ac_cv_path_FGREP" >&6; }
4445 FGREP="$ac_cv_path_FGREP"
4446
4447
4448test -z "$GREP" && GREP=grep
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
Chris Craikb50c2172013-07-29 15:28:30 -07004466ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4467ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4468ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4469
4470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4471$as_echo_n "checking how to print strings... " >&6; }
4472# Test print first, because it will be a builtin if present.
4473if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4474 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4475 ECHO='print -r --'
4476elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4477 ECHO='printf %s\n'
4478else
4479 # Use this function as a fallback that always works.
4480 func_fallback_echo ()
4481 {
4482 eval 'cat <<_LTECHO_EOF
4483$1
4484_LTECHO_EOF'
4485 }
4486 ECHO='func_fallback_echo'
4487fi
4488
4489# func_echo_all arg...
4490# Invoke $ECHO with all args, space-separated.
4491func_echo_all ()
4492{
4493 $ECHO ""
4494}
4495
4496case "$ECHO" in
4497 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4498$as_echo "printf" >&6; } ;;
4499 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4500$as_echo "print -r" >&6; } ;;
4501 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4502$as_echo "cat" >&6; } ;;
4503esac
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
Patrick Scott5f6bd842010-06-28 16:55:16 -04004518
4519
4520# Check whether --with-gnu-ld was given.
4521if test "${with_gnu_ld+set}" = set; then :
4522 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4523else
4524 with_gnu_ld=no
4525fi
4526
4527ac_prog=ld
4528if test "$GCC" = yes; then
4529 # Check if gcc -print-prog-name=ld gives a path.
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4531$as_echo_n "checking for ld used by $CC... " >&6; }
4532 case $host in
4533 *-*-mingw*)
4534 # gcc leaves a trailing carriage return which upsets mingw
4535 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4536 *)
4537 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4538 esac
4539 case $ac_prog in
4540 # Accept absolute paths.
4541 [\\/]* | ?:[\\/]*)
4542 re_direlt='/[^/][^/]*/\.\./'
4543 # Canonicalize the pathname of ld
4544 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4545 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4546 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4547 done
4548 test -z "$LD" && LD="$ac_prog"
4549 ;;
4550 "")
4551 # If it fails, then pretend we aren't using GCC.
4552 ac_prog=ld
4553 ;;
4554 *)
4555 # If it is relative, then search for the first ld in PATH.
4556 with_gnu_ld=unknown
4557 ;;
4558 esac
4559elif test "$with_gnu_ld" = yes; then
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4561$as_echo_n "checking for GNU ld... " >&6; }
4562else
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4564$as_echo_n "checking for non-GNU ld... " >&6; }
4565fi
Chris Craikb50c2172013-07-29 15:28:30 -07004566if ${lt_cv_path_LD+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04004567 $as_echo_n "(cached) " >&6
4568else
4569 if test -z "$LD"; then
4570 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4571 for ac_dir in $PATH; do
4572 IFS="$lt_save_ifs"
4573 test -z "$ac_dir" && ac_dir=.
4574 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4575 lt_cv_path_LD="$ac_dir/$ac_prog"
4576 # Check to see if the program is GNU ld. I'd rather use --version,
4577 # but apparently some variants of GNU ld only accept -v.
4578 # Break only if it was the GNU/non-GNU ld that we prefer.
4579 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4580 *GNU* | *'with BFD'*)
4581 test "$with_gnu_ld" != no && break
4582 ;;
4583 *)
4584 test "$with_gnu_ld" != yes && break
4585 ;;
4586 esac
4587 fi
4588 done
4589 IFS="$lt_save_ifs"
4590else
4591 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4592fi
4593fi
4594
4595LD="$lt_cv_path_LD"
4596if test -n "$LD"; then
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4598$as_echo "$LD" >&6; }
4599else
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4601$as_echo "no" >&6; }
4602fi
Chris Craikb50c2172013-07-29 15:28:30 -07004603test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Patrick Scott5f6bd842010-06-28 16:55:16 -04004604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4605$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07004606if ${lt_cv_prog_gnu_ld+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04004607 $as_echo_n "(cached) " >&6
4608else
4609 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4610case `$LD -v 2>&1 </dev/null` in
4611*GNU* | *'with BFD'*)
4612 lt_cv_prog_gnu_ld=yes
4613 ;;
4614*)
4615 lt_cv_prog_gnu_ld=no
4616 ;;
4617esac
4618fi
4619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4620$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4621with_gnu_ld=$lt_cv_prog_gnu_ld
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631ac_ext=c
4632ac_cpp='$CPP $CPPFLAGS'
4633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4635ac_compiler_gnu=$ac_cv_c_compiler_gnu
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4637$as_echo_n "checking how to run the C preprocessor... " >&6; }
4638# On Suns, sometimes $CPP names a directory.
4639if test -n "$CPP" && test -d "$CPP"; then
4640 CPP=
4641fi
4642if test -z "$CPP"; then
Chris Craikb50c2172013-07-29 15:28:30 -07004643 if ${ac_cv_prog_CPP+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04004644 $as_echo_n "(cached) " >&6
4645else
4646 # Double quotes because CPP needs to be expanded
4647 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4648 do
4649 ac_preproc_ok=false
4650for ac_c_preproc_warn_flag in '' yes
4651do
4652 # Use a header file that comes with gcc, so configuring glibc
4653 # with a fresh cross-compiler works.
4654 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4655 # <limits.h> exists even on freestanding compilers.
4656 # On the NeXT, cc -E runs the code through the compiler's parser,
4657 # not just through cpp. "Syntax error" is here to catch this case.
4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659/* end confdefs.h. */
4660#ifdef __STDC__
4661# include <limits.h>
4662#else
4663# include <assert.h>
4664#endif
4665 Syntax error
4666_ACEOF
4667if ac_fn_c_try_cpp "$LINENO"; then :
4668
4669else
4670 # Broken: fails on valid input.
4671continue
4672fi
Chris Craikb50c2172013-07-29 15:28:30 -07004673rm -f conftest.err conftest.i conftest.$ac_ext
Patrick Scott5f6bd842010-06-28 16:55:16 -04004674
4675 # OK, works on sane cases. Now check whether nonexistent headers
4676 # can be detected and how.
4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678/* end confdefs.h. */
4679#include <ac_nonexistent.h>
4680_ACEOF
4681if ac_fn_c_try_cpp "$LINENO"; then :
4682 # Broken: success on invalid input.
4683continue
4684else
4685 # Passes both tests.
4686ac_preproc_ok=:
4687break
4688fi
Chris Craikb50c2172013-07-29 15:28:30 -07004689rm -f conftest.err conftest.i conftest.$ac_ext
Patrick Scott5f6bd842010-06-28 16:55:16 -04004690
4691done
4692# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Chris Craikb50c2172013-07-29 15:28:30 -07004693rm -f conftest.i conftest.err conftest.$ac_ext
Patrick Scott5f6bd842010-06-28 16:55:16 -04004694if $ac_preproc_ok; then :
4695 break
4696fi
4697
4698 done
4699 ac_cv_prog_CPP=$CPP
4700
4701fi
4702 CPP=$ac_cv_prog_CPP
4703else
4704 ac_cv_prog_CPP=$CPP
4705fi
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4707$as_echo "$CPP" >&6; }
4708ac_preproc_ok=false
4709for ac_c_preproc_warn_flag in '' yes
4710do
4711 # Use a header file that comes with gcc, so configuring glibc
4712 # with a fresh cross-compiler works.
4713 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4714 # <limits.h> exists even on freestanding compilers.
4715 # On the NeXT, cc -E runs the code through the compiler's parser,
4716 # not just through cpp. "Syntax error" is here to catch this case.
4717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4718/* end confdefs.h. */
4719#ifdef __STDC__
4720# include <limits.h>
4721#else
4722# include <assert.h>
4723#endif
4724 Syntax error
4725_ACEOF
4726if ac_fn_c_try_cpp "$LINENO"; then :
4727
4728else
4729 # Broken: fails on valid input.
4730continue
4731fi
Chris Craikb50c2172013-07-29 15:28:30 -07004732rm -f conftest.err conftest.i conftest.$ac_ext
Patrick Scott5f6bd842010-06-28 16:55:16 -04004733
4734 # OK, works on sane cases. Now check whether nonexistent headers
4735 # can be detected and how.
4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737/* end confdefs.h. */
4738#include <ac_nonexistent.h>
4739_ACEOF
4740if ac_fn_c_try_cpp "$LINENO"; then :
4741 # Broken: success on invalid input.
4742continue
4743else
4744 # Passes both tests.
4745ac_preproc_ok=:
4746break
4747fi
Chris Craikb50c2172013-07-29 15:28:30 -07004748rm -f conftest.err conftest.i conftest.$ac_ext
Patrick Scott5f6bd842010-06-28 16:55:16 -04004749
4750done
4751# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Chris Craikb50c2172013-07-29 15:28:30 -07004752rm -f conftest.i conftest.err conftest.$ac_ext
Patrick Scott5f6bd842010-06-28 16:55:16 -04004753if $ac_preproc_ok; then :
4754
4755else
4756 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4757$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Chris Craikb50c2172013-07-29 15:28:30 -07004758as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4759See \`config.log' for more details" "$LINENO" 5; }
Patrick Scott5f6bd842010-06-28 16:55:16 -04004760fi
4761
4762ac_ext=c
4763ac_cpp='$CPP $CPPFLAGS'
4764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4766ac_compiler_gnu=$ac_cv_c_compiler_gnu
4767
Chris Craikb50c2172013-07-29 15:28:30 -07004768for ac_prog in gawk mawk nawk awk
4769do
4770 # Extract the first word of "$ac_prog", so it can be a program name with args.
4771set dummy $ac_prog; ac_word=$2
Patrick Scott5f6bd842010-06-28 16:55:16 -04004772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4773$as_echo_n "checking for $ac_word... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07004774if ${ac_cv_prog_AWK+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04004775 $as_echo_n "(cached) " >&6
4776else
Chris Craikb50c2172013-07-29 15:28:30 -07004777 if test -n "$AWK"; then
4778 ac_cv_prog_AWK="$AWK" # Let the user override the test.
Patrick Scott5f6bd842010-06-28 16:55:16 -04004779else
4780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781for as_dir in $PATH
4782do
4783 IFS=$as_save_IFS
4784 test -z "$as_dir" && as_dir=.
4785 for ac_exec_ext in '' $ac_executable_extensions; do
Chris Craikb50c2172013-07-29 15:28:30 -07004786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4787 ac_cv_prog_AWK="$ac_prog"
Patrick Scott5f6bd842010-06-28 16:55:16 -04004788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 break 2
4790 fi
4791done
4792 done
4793IFS=$as_save_IFS
4794
4795fi
4796fi
Chris Craikb50c2172013-07-29 15:28:30 -07004797AWK=$ac_cv_prog_AWK
4798if test -n "$AWK"; then
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4800$as_echo "$AWK" >&6; }
Patrick Scott5f6bd842010-06-28 16:55:16 -04004801else
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803$as_echo "no" >&6; }
4804fi
4805
4806
Chris Craikb50c2172013-07-29 15:28:30 -07004807 test -n "$AWK" && break
Patrick Scott5f6bd842010-06-28 16:55:16 -04004808done
Patrick Scott5f6bd842010-06-28 16:55:16 -04004809
4810
4811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4812$as_echo_n "checking whether ln -s works... " >&6; }
4813LN_S=$as_ln_s
4814if test "$LN_S" = "ln -s"; then
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4816$as_echo "yes" >&6; }
4817else
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4819$as_echo "no, using $LN_S" >&6; }
4820fi
4821
4822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4823$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4824set x ${MAKE-make}
4825ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Chris Craikb50c2172013-07-29 15:28:30 -07004826if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04004827 $as_echo_n "(cached) " >&6
4828else
4829 cat >conftest.make <<\_ACEOF
4830SHELL = /bin/sh
4831all:
4832 @echo '@@@%%%=$(MAKE)=@@@%%%'
4833_ACEOF
Chris Craikb50c2172013-07-29 15:28:30 -07004834# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Patrick Scott5f6bd842010-06-28 16:55:16 -04004835case `${MAKE-make} -f conftest.make 2>/dev/null` in
4836 *@@@%%%=?*=@@@%%%*)
4837 eval ac_cv_prog_make_${ac_make}_set=yes;;
4838 *)
4839 eval ac_cv_prog_make_${ac_make}_set=no;;
4840esac
4841rm -f conftest.make
4842fi
4843if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4845$as_echo "yes" >&6; }
4846 SET_MAKE=
4847else
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4849$as_echo "no" >&6; }
4850 SET_MAKE="MAKE=${MAKE-make}"
4851fi
4852
Chris Craikb50c2172013-07-29 15:28:30 -07004853
Patrick Scott5f6bd842010-06-28 16:55:16 -04004854case `pwd` in
4855 *\ * | *\ *)
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4857$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4858esac
4859
4860
4861
Chris Craikb50c2172013-07-29 15:28:30 -07004862macro_version='2.4.2'
4863macro_revision='1.3337'
Patrick Scott5f6bd842010-06-28 16:55:16 -04004864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877ltmain="$ac_aux_dir/ltmain.sh"
4878
Chris Craikb50c2172013-07-29 15:28:30 -07004879# Backslashify metacharacters that are still active within
4880# double-quoted strings.
4881sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4882
4883# Same as above, but do not quote variable references.
4884double_quote_subst='s/\(["`\\]\)/\\\1/g'
4885
4886# Sed substitution to delay expansion of an escaped shell variable in a
4887# double_quote_subst'ed string.
4888delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4889
4890# Sed substitution to delay expansion of an escaped single quote.
4891delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4892
4893# Sed substitution to avoid accidental globbing in evaled expressions
4894no_glob_subst='s/\*/\\\*/g'
4895
Patrick Scott5f6bd842010-06-28 16:55:16 -04004896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4897$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07004898if ${lt_cv_path_NM+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04004899 $as_echo_n "(cached) " >&6
4900else
4901 if test -n "$NM"; then
4902 # Let the user override the test.
4903 lt_cv_path_NM="$NM"
4904else
4905 lt_nm_to_check="${ac_tool_prefix}nm"
4906 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4907 lt_nm_to_check="$lt_nm_to_check nm"
4908 fi
4909 for lt_tmp_nm in $lt_nm_to_check; do
4910 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4911 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4912 IFS="$lt_save_ifs"
4913 test -z "$ac_dir" && ac_dir=.
4914 tmp_nm="$ac_dir/$lt_tmp_nm"
4915 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4916 # Check to see if the nm accepts a BSD-compat flag.
4917 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4918 # nm: unknown option "B" ignored
4919 # Tru64's nm complains that /dev/null is an invalid object file
4920 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4921 */dev/null* | *'Invalid file or object type'*)
4922 lt_cv_path_NM="$tmp_nm -B"
4923 break
4924 ;;
4925 *)
4926 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4927 */dev/null*)
4928 lt_cv_path_NM="$tmp_nm -p"
4929 break
4930 ;;
4931 *)
4932 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4933 continue # so that we can try to find one that supports BSD flags
4934 ;;
4935 esac
4936 ;;
4937 esac
4938 fi
4939 done
4940 IFS="$lt_save_ifs"
4941 done
4942 : ${lt_cv_path_NM=no}
4943fi
4944fi
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4946$as_echo "$lt_cv_path_NM" >&6; }
4947if test "$lt_cv_path_NM" != "no"; then
4948 NM="$lt_cv_path_NM"
4949else
4950 # Didn't find any BSD compatible name lister, look for dumpbin.
Chris Craikb50c2172013-07-29 15:28:30 -07004951 if test -n "$DUMPBIN"; then :
4952 # Let the user override the test.
4953 else
4954 if test -n "$ac_tool_prefix"; then
4955 for ac_prog in dumpbin "link -dump"
Patrick Scott5f6bd842010-06-28 16:55:16 -04004956 do
4957 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4958set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4960$as_echo_n "checking for $ac_word... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07004961if ${ac_cv_prog_DUMPBIN+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04004962 $as_echo_n "(cached) " >&6
4963else
4964 if test -n "$DUMPBIN"; then
4965 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4966else
4967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4968for as_dir in $PATH
4969do
4970 IFS=$as_save_IFS
4971 test -z "$as_dir" && as_dir=.
4972 for ac_exec_ext in '' $ac_executable_extensions; do
Chris Craikb50c2172013-07-29 15:28:30 -07004973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Patrick Scott5f6bd842010-06-28 16:55:16 -04004974 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4976 break 2
4977 fi
4978done
4979 done
4980IFS=$as_save_IFS
4981
4982fi
4983fi
4984DUMPBIN=$ac_cv_prog_DUMPBIN
4985if test -n "$DUMPBIN"; then
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4987$as_echo "$DUMPBIN" >&6; }
4988else
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4990$as_echo "no" >&6; }
4991fi
4992
4993
4994 test -n "$DUMPBIN" && break
4995 done
4996fi
4997if test -z "$DUMPBIN"; then
4998 ac_ct_DUMPBIN=$DUMPBIN
Chris Craikb50c2172013-07-29 15:28:30 -07004999 for ac_prog in dumpbin "link -dump"
Patrick Scott5f6bd842010-06-28 16:55:16 -04005000do
5001 # Extract the first word of "$ac_prog", so it can be a program name with args.
5002set dummy $ac_prog; ac_word=$2
5003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5004$as_echo_n "checking for $ac_word... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07005005if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04005006 $as_echo_n "(cached) " >&6
5007else
5008 if test -n "$ac_ct_DUMPBIN"; then
5009 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5010else
5011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012for as_dir in $PATH
5013do
5014 IFS=$as_save_IFS
5015 test -z "$as_dir" && as_dir=.
5016 for ac_exec_ext in '' $ac_executable_extensions; do
Chris Craikb50c2172013-07-29 15:28:30 -07005017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Patrick Scott5f6bd842010-06-28 16:55:16 -04005018 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5020 break 2
5021 fi
5022done
5023 done
5024IFS=$as_save_IFS
5025
5026fi
5027fi
5028ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5029if test -n "$ac_ct_DUMPBIN"; then
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5031$as_echo "$ac_ct_DUMPBIN" >&6; }
5032else
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034$as_echo "no" >&6; }
5035fi
5036
5037
5038 test -n "$ac_ct_DUMPBIN" && break
5039done
5040
5041 if test "x$ac_ct_DUMPBIN" = x; then
5042 DUMPBIN=":"
5043 else
5044 case $cross_compiling:$ac_tool_warned in
5045yes:)
5046{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5047$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5048ac_tool_warned=yes ;;
5049esac
5050 DUMPBIN=$ac_ct_DUMPBIN
5051 fi
5052fi
5053
Chris Craikb50c2172013-07-29 15:28:30 -07005054 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5055 *COFF*)
5056 DUMPBIN="$DUMPBIN -symbols"
5057 ;;
5058 *)
5059 DUMPBIN=:
5060 ;;
5061 esac
5062 fi
Patrick Scott5f6bd842010-06-28 16:55:16 -04005063
5064 if test "$DUMPBIN" != ":"; then
5065 NM="$DUMPBIN"
5066 fi
5067fi
5068test -z "$NM" && NM=nm
5069
5070
5071
5072
5073
5074
5075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5076$as_echo_n "checking the name lister ($NM) interface... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07005077if ${lt_cv_nm_interface+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04005078 $as_echo_n "(cached) " >&6
5079else
5080 lt_cv_nm_interface="BSD nm"
5081 echo "int some_variable = 0;" > conftest.$ac_ext
Chris Craikb50c2172013-07-29 15:28:30 -07005082 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
Patrick Scott5f6bd842010-06-28 16:55:16 -04005083 (eval "$ac_compile" 2>conftest.err)
5084 cat conftest.err >&5
Chris Craikb50c2172013-07-29 15:28:30 -07005085 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Patrick Scott5f6bd842010-06-28 16:55:16 -04005086 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5087 cat conftest.err >&5
Chris Craikb50c2172013-07-29 15:28:30 -07005088 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
Patrick Scott5f6bd842010-06-28 16:55:16 -04005089 cat conftest.out >&5
5090 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5091 lt_cv_nm_interface="MS dumpbin"
5092 fi
5093 rm -f conftest*
5094fi
5095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5096$as_echo "$lt_cv_nm_interface" >&6; }
5097
5098# find the maximum length of command line arguments
5099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5100$as_echo_n "checking the maximum length of command line arguments... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07005101if ${lt_cv_sys_max_cmd_len+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04005102 $as_echo_n "(cached) " >&6
5103else
5104 i=0
5105 teststring="ABCD"
5106
5107 case $build_os in
5108 msdosdjgpp*)
5109 # On DJGPP, this test can blow up pretty badly due to problems in libc
5110 # (any single argument exceeding 2000 bytes causes a buffer overrun
5111 # during glob expansion). Even if it were fixed, the result of this
5112 # check would be larger than it should be.
5113 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5114 ;;
5115
5116 gnu*)
5117 # Under GNU Hurd, this test is not required because there is
5118 # no limit to the length of command line arguments.
5119 # Libtool will interpret -1 as no limit whatsoever
5120 lt_cv_sys_max_cmd_len=-1;
5121 ;;
5122
5123 cygwin* | mingw* | cegcc*)
5124 # On Win9x/ME, this test blows up -- it succeeds, but takes
5125 # about 5 minutes as the teststring grows exponentially.
5126 # Worse, since 9x/ME are not pre-emptively multitasking,
5127 # you end up with a "frozen" computer, even though with patience
5128 # the test eventually succeeds (with a max line length of 256k).
5129 # Instead, let's just punt: use the minimum linelength reported by
5130 # all of the supported platforms: 8192 (on NT/2K/XP).
5131 lt_cv_sys_max_cmd_len=8192;
5132 ;;
5133
Chris Craikb50c2172013-07-29 15:28:30 -07005134 mint*)
5135 # On MiNT this can take a long time and run out of memory.
5136 lt_cv_sys_max_cmd_len=8192;
5137 ;;
5138
Patrick Scott5f6bd842010-06-28 16:55:16 -04005139 amigaos*)
5140 # On AmigaOS with pdksh, this test takes hours, literally.
5141 # So we just punt and use a minimum line length of 8192.
5142 lt_cv_sys_max_cmd_len=8192;
5143 ;;
5144
5145 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5146 # This has been around since 386BSD, at least. Likely further.
5147 if test -x /sbin/sysctl; then
5148 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5149 elif test -x /usr/sbin/sysctl; then
5150 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5151 else
5152 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5153 fi
5154 # And add a safety zone
5155 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5156 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5157 ;;
5158
5159 interix*)
5160 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5161 lt_cv_sys_max_cmd_len=196608
5162 ;;
5163
Chris Craikb50c2172013-07-29 15:28:30 -07005164 os2*)
5165 # The test takes a long time on OS/2.
5166 lt_cv_sys_max_cmd_len=8192
5167 ;;
5168
Patrick Scott5f6bd842010-06-28 16:55:16 -04005169 osf*)
5170 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5171 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5172 # nice to cause kernel panics so lets avoid the loop below.
5173 # First set a reasonable default.
5174 lt_cv_sys_max_cmd_len=16384
5175 #
5176 if test -x /sbin/sysconfig; then
5177 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5178 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5179 esac
5180 fi
5181 ;;
5182 sco3.2v5*)
5183 lt_cv_sys_max_cmd_len=102400
5184 ;;
5185 sysv5* | sco5v6* | sysv4.2uw2*)
5186 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5187 if test -n "$kargmax"; then
5188 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5189 else
5190 lt_cv_sys_max_cmd_len=32768
5191 fi
5192 ;;
5193 *)
5194 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5195 if test -n "$lt_cv_sys_max_cmd_len"; then
5196 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5197 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5198 else
5199 # Make teststring a little bigger before we do anything with it.
5200 # a 1K string should be a reasonable start.
5201 for i in 1 2 3 4 5 6 7 8 ; do
5202 teststring=$teststring$teststring
5203 done
5204 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5205 # If test is not a shell built-in, we'll probably end up computing a
5206 # maximum length that is only half of the actual maximum length, but
5207 # we can't tell.
Chris Craikb50c2172013-07-29 15:28:30 -07005208 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5209 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
Patrick Scott5f6bd842010-06-28 16:55:16 -04005210 test $i != 17 # 1/2 MB should be enough
5211 do
5212 i=`expr $i + 1`
5213 teststring=$teststring$teststring
5214 done
5215 # Only check the string length outside the loop.
5216 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5217 teststring=
5218 # Add a significant safety factor because C++ compilers can tack on
5219 # massive amounts of additional arguments before passing them to the
5220 # linker. It appears as though 1/2 is a usable value.
5221 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5222 fi
5223 ;;
5224 esac
5225
5226fi
5227
5228if test -n $lt_cv_sys_max_cmd_len ; then
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5230$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5231else
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5233$as_echo "none" >&6; }
5234fi
5235max_cmd_len=$lt_cv_sys_max_cmd_len
5236
5237
5238
5239
5240
5241
5242: ${CP="cp -f"}
5243: ${MV="mv -f"}
5244: ${RM="rm -f"}
5245
5246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5247$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5248# Try some XSI features
5249xsi_shell=no
5250( _lt_dummy="a/b/c"
Chris Craikb50c2172013-07-29 15:28:30 -07005251 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5252 = c,a/b,b/c, \
Patrick Scott5f6bd842010-06-28 16:55:16 -04005253 && eval 'test $(( 1 + 1 )) -eq 2 \
5254 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5255 && xsi_shell=yes
5256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5257$as_echo "$xsi_shell" >&6; }
5258
5259
5260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5261$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5262lt_shell_append=no
5263( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5264 >/dev/null 2>&1 \
5265 && lt_shell_append=yes
5266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5267$as_echo "$lt_shell_append" >&6; }
5268
5269
5270if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5271 lt_unset=unset
5272else
5273 lt_unset=false
5274fi
5275
5276
5277
5278
5279
5280# test EBCDIC or ASCII
5281case `echo X|tr X '\101'` in
5282 A) # ASCII based system
5283 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5284 lt_SP2NL='tr \040 \012'
5285 lt_NL2SP='tr \015\012 \040\040'
5286 ;;
5287 *) # EBCDIC based system
5288 lt_SP2NL='tr \100 \n'
5289 lt_NL2SP='tr \r\n \100\100'
5290 ;;
5291esac
5292
5293
5294
5295
5296
5297
5298
5299
5300
Chris Craikb50c2172013-07-29 15:28:30 -07005301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5302$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5303if ${lt_cv_to_host_file_cmd+:} false; then :
5304 $as_echo_n "(cached) " >&6
5305else
5306 case $host in
5307 *-*-mingw* )
5308 case $build in
5309 *-*-mingw* ) # actually msys
5310 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5311 ;;
5312 *-*-cygwin* )
5313 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5314 ;;
5315 * ) # otherwise, assume *nix
5316 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5317 ;;
5318 esac
5319 ;;
5320 *-*-cygwin* )
5321 case $build in
5322 *-*-mingw* ) # actually msys
5323 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5324 ;;
5325 *-*-cygwin* )
5326 lt_cv_to_host_file_cmd=func_convert_file_noop
5327 ;;
5328 * ) # otherwise, assume *nix
5329 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5330 ;;
5331 esac
5332 ;;
5333 * ) # unhandled hosts (and "normal" native builds)
5334 lt_cv_to_host_file_cmd=func_convert_file_noop
5335 ;;
5336esac
5337
5338fi
5339
5340to_host_file_cmd=$lt_cv_to_host_file_cmd
5341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5342$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5343
5344
5345
5346
5347
5348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5349$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5350if ${lt_cv_to_tool_file_cmd+:} false; then :
5351 $as_echo_n "(cached) " >&6
5352else
5353 #assume ordinary cross tools, or native build.
5354lt_cv_to_tool_file_cmd=func_convert_file_noop
5355case $host in
5356 *-*-mingw* )
5357 case $build in
5358 *-*-mingw* ) # actually msys
5359 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5360 ;;
5361 esac
5362 ;;
5363esac
5364
5365fi
5366
5367to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5369$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5370
5371
5372
5373
5374
Patrick Scott5f6bd842010-06-28 16:55:16 -04005375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5376$as_echo_n "checking for $LD option to reload object files... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07005377if ${lt_cv_ld_reload_flag+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04005378 $as_echo_n "(cached) " >&6
5379else
5380 lt_cv_ld_reload_flag='-r'
5381fi
5382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5383$as_echo "$lt_cv_ld_reload_flag" >&6; }
5384reload_flag=$lt_cv_ld_reload_flag
5385case $reload_flag in
5386"" | " "*) ;;
5387*) reload_flag=" $reload_flag" ;;
5388esac
5389reload_cmds='$LD$reload_flag -o $output$reload_objs'
5390case $host_os in
Chris Craikb50c2172013-07-29 15:28:30 -07005391 cygwin* | mingw* | pw32* | cegcc*)
5392 if test "$GCC" != yes; then
5393 reload_cmds=false
5394 fi
5395 ;;
Patrick Scott5f6bd842010-06-28 16:55:16 -04005396 darwin*)
5397 if test "$GCC" = yes; then
5398 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5399 else
5400 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5401 fi
5402 ;;
5403esac
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413if test -n "$ac_tool_prefix"; then
5414 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5415set dummy ${ac_tool_prefix}objdump; ac_word=$2
5416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5417$as_echo_n "checking for $ac_word... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07005418if ${ac_cv_prog_OBJDUMP+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04005419 $as_echo_n "(cached) " >&6
5420else
5421 if test -n "$OBJDUMP"; then
5422 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5423else
5424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425for as_dir in $PATH
5426do
5427 IFS=$as_save_IFS
5428 test -z "$as_dir" && as_dir=.
5429 for ac_exec_ext in '' $ac_executable_extensions; do
Chris Craikb50c2172013-07-29 15:28:30 -07005430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Patrick Scott5f6bd842010-06-28 16:55:16 -04005431 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5433 break 2
5434 fi
5435done
5436 done
5437IFS=$as_save_IFS
5438
5439fi
5440fi
5441OBJDUMP=$ac_cv_prog_OBJDUMP
5442if test -n "$OBJDUMP"; then
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5444$as_echo "$OBJDUMP" >&6; }
5445else
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5447$as_echo "no" >&6; }
5448fi
5449
5450
5451fi
5452if test -z "$ac_cv_prog_OBJDUMP"; then
5453 ac_ct_OBJDUMP=$OBJDUMP
5454 # Extract the first word of "objdump", so it can be a program name with args.
5455set dummy objdump; ac_word=$2
5456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5457$as_echo_n "checking for $ac_word... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07005458if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04005459 $as_echo_n "(cached) " >&6
5460else
5461 if test -n "$ac_ct_OBJDUMP"; then
5462 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5463else
5464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465for as_dir in $PATH
5466do
5467 IFS=$as_save_IFS
5468 test -z "$as_dir" && as_dir=.
5469 for ac_exec_ext in '' $ac_executable_extensions; do
Chris Craikb50c2172013-07-29 15:28:30 -07005470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Patrick Scott5f6bd842010-06-28 16:55:16 -04005471 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5473 break 2
5474 fi
5475done
5476 done
5477IFS=$as_save_IFS
5478
5479fi
5480fi
5481ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5482if test -n "$ac_ct_OBJDUMP"; then
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5484$as_echo "$ac_ct_OBJDUMP" >&6; }
5485else
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487$as_echo "no" >&6; }
5488fi
5489
5490 if test "x$ac_ct_OBJDUMP" = x; then
5491 OBJDUMP="false"
5492 else
5493 case $cross_compiling:$ac_tool_warned in
5494yes:)
5495{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5496$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5497ac_tool_warned=yes ;;
5498esac
5499 OBJDUMP=$ac_ct_OBJDUMP
5500 fi
5501else
5502 OBJDUMP="$ac_cv_prog_OBJDUMP"
5503fi
5504
5505test -z "$OBJDUMP" && OBJDUMP=objdump
5506
5507
5508
5509
5510
5511
5512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5513$as_echo_n "checking how to recognize dependent libraries... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07005514if ${lt_cv_deplibs_check_method+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04005515 $as_echo_n "(cached) " >&6
5516else
5517 lt_cv_file_magic_cmd='$MAGIC_CMD'
5518lt_cv_file_magic_test_file=
5519lt_cv_deplibs_check_method='unknown'
5520# Need to set the preceding variable on all platforms that support
5521# interlibrary dependencies.
5522# 'none' -- dependencies not supported.
5523# `unknown' -- same as none, but documents that we really don't know.
5524# 'pass_all' -- all dependencies passed with no checks.
5525# 'test_compile' -- check by making test program.
5526# 'file_magic [[regex]]' -- check by looking for files in library path
5527# which responds to the $file_magic_cmd with a given extended regex.
5528# If you have `file' or equivalent on your system and you're not sure
5529# whether `pass_all' will *always* work, you probably want this one.
5530
5531case $host_os in
5532aix[4-9]*)
5533 lt_cv_deplibs_check_method=pass_all
5534 ;;
5535
5536beos*)
5537 lt_cv_deplibs_check_method=pass_all
5538 ;;
5539
5540bsdi[45]*)
5541 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5542 lt_cv_file_magic_cmd='/usr/bin/file -L'
5543 lt_cv_file_magic_test_file=/shlib/libc.so
5544 ;;
5545
5546cygwin*)
5547 # func_win32_libid is a shell function defined in ltmain.sh
5548 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5549 lt_cv_file_magic_cmd='func_win32_libid'
5550 ;;
5551
5552mingw* | pw32*)
5553 # Base MSYS/MinGW do not provide the 'file' command needed by
5554 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5555 # unless we find 'file', for example because we are cross-compiling.
Chris Craikb50c2172013-07-29 15:28:30 -07005556 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5557 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
Patrick Scott5f6bd842010-06-28 16:55:16 -04005558 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5559 lt_cv_file_magic_cmd='func_win32_libid'
5560 else
Chris Craikb50c2172013-07-29 15:28:30 -07005561 # Keep this pattern in sync with the one in func_win32_libid.
5562 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
Patrick Scott5f6bd842010-06-28 16:55:16 -04005563 lt_cv_file_magic_cmd='$OBJDUMP -f'
5564 fi
5565 ;;
5566
Chris Craikb50c2172013-07-29 15:28:30 -07005567cegcc*)
Patrick Scott5f6bd842010-06-28 16:55:16 -04005568 # use the weaker test based on 'objdump'. See mingw*.
5569 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5570 lt_cv_file_magic_cmd='$OBJDUMP -f'
5571 ;;
5572
5573darwin* | rhapsody*)
5574 lt_cv_deplibs_check_method=pass_all
5575 ;;
5576
5577freebsd* | dragonfly*)
5578 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5579 case $host_cpu in
5580 i*86 )
5581 # Not sure whether the presence of OpenBSD here was a mistake.
5582 # Let's accept both of them until this is cleared up.
5583 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5584 lt_cv_file_magic_cmd=/usr/bin/file
5585 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5586 ;;
5587 esac
5588 else
5589 lt_cv_deplibs_check_method=pass_all
5590 fi
5591 ;;
5592
5593gnu*)
5594 lt_cv_deplibs_check_method=pass_all
5595 ;;
5596
Chris Craikb50c2172013-07-29 15:28:30 -07005597haiku*)
5598 lt_cv_deplibs_check_method=pass_all
5599 ;;
5600
Patrick Scott5f6bd842010-06-28 16:55:16 -04005601hpux10.20* | hpux11*)
5602 lt_cv_file_magic_cmd=/usr/bin/file
5603 case $host_cpu in
5604 ia64*)
5605 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5606 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5607 ;;
5608 hppa*64*)
Chris Craikb50c2172013-07-29 15:28:30 -07005609 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
Patrick Scott5f6bd842010-06-28 16:55:16 -04005610 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5611 ;;
5612 *)
Chris Craikb50c2172013-07-29 15:28:30 -07005613 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
Patrick Scott5f6bd842010-06-28 16:55:16 -04005614 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5615 ;;
5616 esac
5617 ;;
5618
5619interix[3-9]*)
5620 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5621 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5622 ;;
5623
5624irix5* | irix6* | nonstopux*)
5625 case $LD in
5626 *-32|*"-32 ") libmagic=32-bit;;
5627 *-n32|*"-n32 ") libmagic=N32;;
5628 *-64|*"-64 ") libmagic=64-bit;;
5629 *) libmagic=never-match;;
5630 esac
5631 lt_cv_deplibs_check_method=pass_all
5632 ;;
5633
Chris Craikb50c2172013-07-29 15:28:30 -07005634# This must be glibc/ELF.
5635linux* | k*bsd*-gnu | kopensolaris*-gnu)
Patrick Scott5f6bd842010-06-28 16:55:16 -04005636 lt_cv_deplibs_check_method=pass_all
5637 ;;
5638
5639netbsd*)
5640 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5641 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5642 else
5643 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5644 fi
5645 ;;
5646
5647newos6*)
5648 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5649 lt_cv_file_magic_cmd=/usr/bin/file
5650 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5651 ;;
5652
5653*nto* | *qnx*)
5654 lt_cv_deplibs_check_method=pass_all
5655 ;;
5656
5657openbsd*)
5658 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5659 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5660 else
5661 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5662 fi
5663 ;;
5664
5665osf3* | osf4* | osf5*)
5666 lt_cv_deplibs_check_method=pass_all
5667 ;;
5668
5669rdos*)
5670 lt_cv_deplibs_check_method=pass_all
5671 ;;
5672
5673solaris*)
5674 lt_cv_deplibs_check_method=pass_all
5675 ;;
5676
5677sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5678 lt_cv_deplibs_check_method=pass_all
5679 ;;
5680
5681sysv4 | sysv4.3*)
5682 case $host_vendor in
5683 motorola)
5684 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]'
5685 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5686 ;;
5687 ncr)
5688 lt_cv_deplibs_check_method=pass_all
5689 ;;
5690 sequent)
5691 lt_cv_file_magic_cmd='/bin/file'
5692 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5693 ;;
5694 sni)
5695 lt_cv_file_magic_cmd='/bin/file'
5696 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5697 lt_cv_file_magic_test_file=/lib/libc.so
5698 ;;
5699 siemens)
5700 lt_cv_deplibs_check_method=pass_all
5701 ;;
5702 pc)
5703 lt_cv_deplibs_check_method=pass_all
5704 ;;
5705 esac
5706 ;;
5707
5708tpf*)
5709 lt_cv_deplibs_check_method=pass_all
5710 ;;
5711esac
5712
5713fi
5714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5715$as_echo "$lt_cv_deplibs_check_method" >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07005716
5717file_magic_glob=
5718want_nocaseglob=no
5719if test "$build" = "$host"; then
5720 case $host_os in
5721 mingw* | pw32*)
5722 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5723 want_nocaseglob=yes
5724 else
5725 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5726 fi
5727 ;;
5728 esac
5729fi
5730
Patrick Scott5f6bd842010-06-28 16:55:16 -04005731file_magic_cmd=$lt_cv_file_magic_cmd
5732deplibs_check_method=$lt_cv_deplibs_check_method
5733test -z "$deplibs_check_method" && deplibs_check_method=unknown
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
Chris Craikb50c2172013-07-29 15:28:30 -07005746
5747
5748
5749
5750
5751
5752
5753
5754
5755
Patrick Scott5f6bd842010-06-28 16:55:16 -04005756if test -n "$ac_tool_prefix"; then
Chris Craikb50c2172013-07-29 15:28:30 -07005757 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5758set dummy ${ac_tool_prefix}dlltool; ac_word=$2
Patrick Scott5f6bd842010-06-28 16:55:16 -04005759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5760$as_echo_n "checking for $ac_word... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07005761if ${ac_cv_prog_DLLTOOL+:} false; then :
5762 $as_echo_n "(cached) " >&6
5763else
5764 if test -n "$DLLTOOL"; then
5765 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5766else
5767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768for as_dir in $PATH
5769do
5770 IFS=$as_save_IFS
5771 test -z "$as_dir" && as_dir=.
5772 for ac_exec_ext in '' $ac_executable_extensions; do
5773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5774 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5776 break 2
5777 fi
5778done
5779 done
5780IFS=$as_save_IFS
5781
5782fi
5783fi
5784DLLTOOL=$ac_cv_prog_DLLTOOL
5785if test -n "$DLLTOOL"; then
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5787$as_echo "$DLLTOOL" >&6; }
5788else
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5790$as_echo "no" >&6; }
5791fi
5792
5793
5794fi
5795if test -z "$ac_cv_prog_DLLTOOL"; then
5796 ac_ct_DLLTOOL=$DLLTOOL
5797 # Extract the first word of "dlltool", so it can be a program name with args.
5798set dummy dlltool; ac_word=$2
5799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5800$as_echo_n "checking for $ac_word... " >&6; }
5801if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5802 $as_echo_n "(cached) " >&6
5803else
5804 if test -n "$ac_ct_DLLTOOL"; then
5805 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5806else
5807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808for as_dir in $PATH
5809do
5810 IFS=$as_save_IFS
5811 test -z "$as_dir" && as_dir=.
5812 for ac_exec_ext in '' $ac_executable_extensions; do
5813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5814 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5816 break 2
5817 fi
5818done
5819 done
5820IFS=$as_save_IFS
5821
5822fi
5823fi
5824ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5825if test -n "$ac_ct_DLLTOOL"; then
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5827$as_echo "$ac_ct_DLLTOOL" >&6; }
5828else
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5830$as_echo "no" >&6; }
5831fi
5832
5833 if test "x$ac_ct_DLLTOOL" = x; then
5834 DLLTOOL="false"
5835 else
5836 case $cross_compiling:$ac_tool_warned in
5837yes:)
5838{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5839$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5840ac_tool_warned=yes ;;
5841esac
5842 DLLTOOL=$ac_ct_DLLTOOL
5843 fi
5844else
5845 DLLTOOL="$ac_cv_prog_DLLTOOL"
5846fi
5847
5848test -z "$DLLTOOL" && DLLTOOL=dlltool
5849
5850
5851
5852
5853
5854
5855
5856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5857$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5858if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5859 $as_echo_n "(cached) " >&6
5860else
5861 lt_cv_sharedlib_from_linklib_cmd='unknown'
5862
5863case $host_os in
5864cygwin* | mingw* | pw32* | cegcc*)
5865 # two different shell functions defined in ltmain.sh
5866 # decide which to use based on capabilities of $DLLTOOL
5867 case `$DLLTOOL --help 2>&1` in
5868 *--identify-strict*)
5869 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5870 ;;
5871 *)
5872 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5873 ;;
5874 esac
5875 ;;
5876*)
5877 # fallback: assume linklib IS sharedlib
5878 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5879 ;;
5880esac
5881
5882fi
5883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5884$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5885sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5886test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5887
5888
5889
5890
5891
5892
5893
5894
5895if test -n "$ac_tool_prefix"; then
5896 for ac_prog in ar
5897 do
5898 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5899set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5901$as_echo_n "checking for $ac_word... " >&6; }
5902if ${ac_cv_prog_AR+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04005903 $as_echo_n "(cached) " >&6
5904else
5905 if test -n "$AR"; then
5906 ac_cv_prog_AR="$AR" # Let the user override the test.
5907else
5908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909for as_dir in $PATH
5910do
5911 IFS=$as_save_IFS
5912 test -z "$as_dir" && as_dir=.
5913 for ac_exec_ext in '' $ac_executable_extensions; do
Chris Craikb50c2172013-07-29 15:28:30 -07005914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5915 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
Patrick Scott5f6bd842010-06-28 16:55:16 -04005916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5917 break 2
5918 fi
5919done
5920 done
5921IFS=$as_save_IFS
5922
5923fi
5924fi
5925AR=$ac_cv_prog_AR
5926if test -n "$AR"; then
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5928$as_echo "$AR" >&6; }
5929else
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5931$as_echo "no" >&6; }
5932fi
5933
5934
Chris Craikb50c2172013-07-29 15:28:30 -07005935 test -n "$AR" && break
5936 done
Patrick Scott5f6bd842010-06-28 16:55:16 -04005937fi
Chris Craikb50c2172013-07-29 15:28:30 -07005938if test -z "$AR"; then
Patrick Scott5f6bd842010-06-28 16:55:16 -04005939 ac_ct_AR=$AR
Chris Craikb50c2172013-07-29 15:28:30 -07005940 for ac_prog in ar
5941do
5942 # Extract the first word of "$ac_prog", so it can be a program name with args.
5943set dummy $ac_prog; ac_word=$2
Patrick Scott5f6bd842010-06-28 16:55:16 -04005944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5945$as_echo_n "checking for $ac_word... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07005946if ${ac_cv_prog_ac_ct_AR+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04005947 $as_echo_n "(cached) " >&6
5948else
5949 if test -n "$ac_ct_AR"; then
5950 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5951else
5952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953for as_dir in $PATH
5954do
5955 IFS=$as_save_IFS
5956 test -z "$as_dir" && as_dir=.
5957 for ac_exec_ext in '' $ac_executable_extensions; do
Chris Craikb50c2172013-07-29 15:28:30 -07005958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5959 ac_cv_prog_ac_ct_AR="$ac_prog"
Patrick Scott5f6bd842010-06-28 16:55:16 -04005960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5961 break 2
5962 fi
5963done
5964 done
5965IFS=$as_save_IFS
5966
5967fi
5968fi
5969ac_ct_AR=$ac_cv_prog_ac_ct_AR
5970if test -n "$ac_ct_AR"; then
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5972$as_echo "$ac_ct_AR" >&6; }
5973else
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5975$as_echo "no" >&6; }
5976fi
5977
Chris Craikb50c2172013-07-29 15:28:30 -07005978
5979 test -n "$ac_ct_AR" && break
5980done
5981
Patrick Scott5f6bd842010-06-28 16:55:16 -04005982 if test "x$ac_ct_AR" = x; then
5983 AR="false"
5984 else
5985 case $cross_compiling:$ac_tool_warned in
5986yes:)
5987{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5988$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5989ac_tool_warned=yes ;;
5990esac
5991 AR=$ac_ct_AR
5992 fi
Patrick Scott5f6bd842010-06-28 16:55:16 -04005993fi
5994
Chris Craikb50c2172013-07-29 15:28:30 -07005995: ${AR=ar}
5996: ${AR_FLAGS=cru}
Patrick Scott5f6bd842010-06-28 16:55:16 -04005997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
Chris Craikb50c2172013-07-29 15:28:30 -07006008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6009$as_echo_n "checking for archiver @FILE support... " >&6; }
6010if ${lt_cv_ar_at_file+:} false; then :
6011 $as_echo_n "(cached) " >&6
6012else
6013 lt_cv_ar_at_file=no
6014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6015/* end confdefs.h. */
6016
6017int
6018main ()
6019{
6020
6021 ;
6022 return 0;
6023}
6024_ACEOF
6025if ac_fn_c_try_compile "$LINENO"; then :
6026 echo conftest.$ac_objext > conftest.lst
6027 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6029 (eval $lt_ar_try) 2>&5
6030 ac_status=$?
6031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6032 test $ac_status = 0; }
6033 if test "$ac_status" -eq 0; then
6034 # Ensure the archiver fails upon bogus file names.
6035 rm -f conftest.$ac_objext libconftest.a
6036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6037 (eval $lt_ar_try) 2>&5
6038 ac_status=$?
6039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6040 test $ac_status = 0; }
6041 if test "$ac_status" -ne 0; then
6042 lt_cv_ar_at_file=@
6043 fi
6044 fi
6045 rm -f conftest.* libconftest.a
6046
6047fi
6048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6049
6050fi
6051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6052$as_echo "$lt_cv_ar_at_file" >&6; }
6053
6054if test "x$lt_cv_ar_at_file" = xno; then
6055 archiver_list_spec=
6056else
6057 archiver_list_spec=$lt_cv_ar_at_file
6058fi
6059
6060
6061
6062
6063
6064
6065
Patrick Scott5f6bd842010-06-28 16:55:16 -04006066if test -n "$ac_tool_prefix"; then
6067 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6068set dummy ${ac_tool_prefix}strip; ac_word=$2
6069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6070$as_echo_n "checking for $ac_word... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07006071if ${ac_cv_prog_STRIP+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04006072 $as_echo_n "(cached) " >&6
6073else
6074 if test -n "$STRIP"; then
6075 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6076else
6077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078for as_dir in $PATH
6079do
6080 IFS=$as_save_IFS
6081 test -z "$as_dir" && as_dir=.
6082 for ac_exec_ext in '' $ac_executable_extensions; do
Chris Craikb50c2172013-07-29 15:28:30 -07006083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Patrick Scott5f6bd842010-06-28 16:55:16 -04006084 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6086 break 2
6087 fi
6088done
6089 done
6090IFS=$as_save_IFS
6091
6092fi
6093fi
6094STRIP=$ac_cv_prog_STRIP
6095if test -n "$STRIP"; then
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6097$as_echo "$STRIP" >&6; }
6098else
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6100$as_echo "no" >&6; }
6101fi
6102
6103
6104fi
6105if test -z "$ac_cv_prog_STRIP"; then
6106 ac_ct_STRIP=$STRIP
6107 # Extract the first word of "strip", so it can be a program name with args.
6108set dummy strip; ac_word=$2
6109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6110$as_echo_n "checking for $ac_word... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07006111if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04006112 $as_echo_n "(cached) " >&6
6113else
6114 if test -n "$ac_ct_STRIP"; then
6115 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6116else
6117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118for as_dir in $PATH
6119do
6120 IFS=$as_save_IFS
6121 test -z "$as_dir" && as_dir=.
6122 for ac_exec_ext in '' $ac_executable_extensions; do
Chris Craikb50c2172013-07-29 15:28:30 -07006123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Patrick Scott5f6bd842010-06-28 16:55:16 -04006124 ac_cv_prog_ac_ct_STRIP="strip"
6125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6126 break 2
6127 fi
6128done
6129 done
6130IFS=$as_save_IFS
6131
6132fi
6133fi
6134ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6135if test -n "$ac_ct_STRIP"; then
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6137$as_echo "$ac_ct_STRIP" >&6; }
6138else
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6140$as_echo "no" >&6; }
6141fi
6142
6143 if test "x$ac_ct_STRIP" = x; then
6144 STRIP=":"
6145 else
6146 case $cross_compiling:$ac_tool_warned in
6147yes:)
6148{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6149$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6150ac_tool_warned=yes ;;
6151esac
6152 STRIP=$ac_ct_STRIP
6153 fi
6154else
6155 STRIP="$ac_cv_prog_STRIP"
6156fi
6157
6158test -z "$STRIP" && STRIP=:
6159
6160
6161
6162
6163
6164
6165if test -n "$ac_tool_prefix"; then
6166 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6167set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6169$as_echo_n "checking for $ac_word... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07006170if ${ac_cv_prog_RANLIB+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04006171 $as_echo_n "(cached) " >&6
6172else
6173 if test -n "$RANLIB"; then
6174 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6175else
6176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177for as_dir in $PATH
6178do
6179 IFS=$as_save_IFS
6180 test -z "$as_dir" && as_dir=.
6181 for ac_exec_ext in '' $ac_executable_extensions; do
Chris Craikb50c2172013-07-29 15:28:30 -07006182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Patrick Scott5f6bd842010-06-28 16:55:16 -04006183 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6185 break 2
6186 fi
6187done
6188 done
6189IFS=$as_save_IFS
6190
6191fi
6192fi
6193RANLIB=$ac_cv_prog_RANLIB
6194if test -n "$RANLIB"; then
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6196$as_echo "$RANLIB" >&6; }
6197else
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6199$as_echo "no" >&6; }
6200fi
6201
6202
6203fi
6204if test -z "$ac_cv_prog_RANLIB"; then
6205 ac_ct_RANLIB=$RANLIB
6206 # Extract the first word of "ranlib", so it can be a program name with args.
6207set dummy ranlib; ac_word=$2
6208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6209$as_echo_n "checking for $ac_word... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07006210if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04006211 $as_echo_n "(cached) " >&6
6212else
6213 if test -n "$ac_ct_RANLIB"; then
6214 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6215else
6216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217for as_dir in $PATH
6218do
6219 IFS=$as_save_IFS
6220 test -z "$as_dir" && as_dir=.
6221 for ac_exec_ext in '' $ac_executable_extensions; do
Chris Craikb50c2172013-07-29 15:28:30 -07006222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Patrick Scott5f6bd842010-06-28 16:55:16 -04006223 ac_cv_prog_ac_ct_RANLIB="ranlib"
6224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6225 break 2
6226 fi
6227done
6228 done
6229IFS=$as_save_IFS
6230
6231fi
6232fi
6233ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6234if test -n "$ac_ct_RANLIB"; then
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6236$as_echo "$ac_ct_RANLIB" >&6; }
6237else
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6239$as_echo "no" >&6; }
6240fi
6241
6242 if test "x$ac_ct_RANLIB" = x; then
6243 RANLIB=":"
6244 else
6245 case $cross_compiling:$ac_tool_warned in
6246yes:)
6247{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6248$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6249ac_tool_warned=yes ;;
6250esac
6251 RANLIB=$ac_ct_RANLIB
6252 fi
6253else
6254 RANLIB="$ac_cv_prog_RANLIB"
6255fi
6256
6257test -z "$RANLIB" && RANLIB=:
6258
6259
6260
6261
6262
6263
6264# Determine commands to create old-style static archives.
6265old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6266old_postinstall_cmds='chmod 644 $oldlib'
6267old_postuninstall_cmds=
6268
6269if test -n "$RANLIB"; then
6270 case $host_os in
6271 openbsd*)
Chris Craikb50c2172013-07-29 15:28:30 -07006272 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
Patrick Scott5f6bd842010-06-28 16:55:16 -04006273 ;;
6274 *)
Chris Craikb50c2172013-07-29 15:28:30 -07006275 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
Patrick Scott5f6bd842010-06-28 16:55:16 -04006276 ;;
6277 esac
Chris Craikb50c2172013-07-29 15:28:30 -07006278 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
Patrick Scott5f6bd842010-06-28 16:55:16 -04006279fi
6280
Chris Craikb50c2172013-07-29 15:28:30 -07006281case $host_os in
6282 darwin*)
6283 lock_old_archive_extraction=yes ;;
6284 *)
6285 lock_old_archive_extraction=no ;;
6286esac
6287
6288
6289
6290
6291
6292
Patrick Scott5f6bd842010-06-28 16:55:16 -04006293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326# If no C compiler was specified, use CC.
6327LTCC=${LTCC-"$CC"}
6328
6329# If no C compiler flags were specified, use CFLAGS.
6330LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6331
6332# Allow CC to be a program name with arguments.
6333compiler=$CC
6334
6335
6336# Check for command to grab the raw symbol name followed by C symbol from nm.
6337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6338$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07006339if ${lt_cv_sys_global_symbol_pipe+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04006340 $as_echo_n "(cached) " >&6
6341else
6342
6343# These are sane defaults that work on at least a few old systems.
6344# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6345
6346# Character class describing NM global symbol codes.
6347symcode='[BCDEGRST]'
6348
6349# Regexp to match symbols that can be accessed directly from C.
6350sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6351
6352# Define system-specific variables.
6353case $host_os in
6354aix*)
6355 symcode='[BCDT]'
6356 ;;
6357cygwin* | mingw* | pw32* | cegcc*)
6358 symcode='[ABCDGISTW]'
6359 ;;
6360hpux*)
6361 if test "$host_cpu" = ia64; then
6362 symcode='[ABCDEGRST]'
6363 fi
6364 ;;
6365irix* | nonstopux*)
6366 symcode='[BCDEGRST]'
6367 ;;
6368osf*)
6369 symcode='[BCDEGQRST]'
6370 ;;
6371solaris*)
6372 symcode='[BDRT]'
6373 ;;
6374sco3.2v5*)
6375 symcode='[DT]'
6376 ;;
6377sysv4.2uw2*)
6378 symcode='[DT]'
6379 ;;
6380sysv5* | sco5v6* | unixware* | OpenUNIX*)
6381 symcode='[ABDT]'
6382 ;;
6383sysv4)
6384 symcode='[DFNSTU]'
6385 ;;
6386esac
6387
6388# If we're using GNU nm, then use its standard symbol codes.
6389case `$NM -V 2>&1` in
6390*GNU* | *'with BFD'*)
6391 symcode='[ABCDGIRSTW]' ;;
6392esac
6393
6394# Transform an extracted symbol line into a proper C declaration.
6395# Some systems (esp. on ia64) link data and code symbols differently,
6396# so use this general approach.
6397lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6398
6399# Transform an extracted symbol line into symbol name and symbol address
Chris Craikb50c2172013-07-29 15:28:30 -07006400lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6401lt_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'"
Patrick Scott5f6bd842010-06-28 16:55:16 -04006402
6403# Handle CRLF in mingw tool chain
6404opt_cr=
6405case $build_os in
6406mingw*)
6407 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6408 ;;
6409esac
6410
6411# Try without a prefix underscore, then with it.
6412for ac_symprfx in "" "_"; do
6413
6414 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6415 symxfrm="\\1 $ac_symprfx\\2 \\2"
6416
6417 # Write the raw and C identifiers.
6418 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6419 # Fake it for dumpbin and say T for any non-static function
6420 # and D for any global variable.
6421 # Also find C++ and __fastcall symbols from MSVC++,
6422 # which start with @ or ?.
6423 lt_cv_sys_global_symbol_pipe="$AWK '"\
6424" {last_section=section; section=\$ 3};"\
Chris Craikb50c2172013-07-29 15:28:30 -07006425" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
Patrick Scott5f6bd842010-06-28 16:55:16 -04006426" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6427" \$ 0!~/External *\|/{next};"\
6428" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6429" {if(hide[section]) next};"\
6430" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6431" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6432" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6433" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6434" ' prfx=^$ac_symprfx"
6435 else
6436 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6437 fi
Chris Craikb50c2172013-07-29 15:28:30 -07006438 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
Patrick Scott5f6bd842010-06-28 16:55:16 -04006439
6440 # Check to see that the pipe works correctly.
6441 pipe_works=no
6442
6443 rm -f conftest*
6444 cat > conftest.$ac_ext <<_LT_EOF
6445#ifdef __cplusplus
6446extern "C" {
6447#endif
6448char nm_test_var;
6449void nm_test_func(void);
6450void nm_test_func(void){}
6451#ifdef __cplusplus
6452}
6453#endif
6454int main(){nm_test_var='a';nm_test_func();return(0);}
6455_LT_EOF
6456
6457 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6458 (eval $ac_compile) 2>&5
6459 ac_status=$?
6460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6461 test $ac_status = 0; }; then
6462 # Now try to grab the symbols.
6463 nlist=conftest.nm
Chris Craikb50c2172013-07-29 15:28:30 -07006464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6465 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
Patrick Scott5f6bd842010-06-28 16:55:16 -04006466 ac_status=$?
6467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6468 test $ac_status = 0; } && test -s "$nlist"; then
6469 # Try sorting and uniquifying the output.
6470 if sort "$nlist" | uniq > "$nlist"T; then
6471 mv -f "$nlist"T "$nlist"
6472 else
6473 rm -f "$nlist"T
6474 fi
6475
6476 # Make sure that we snagged all the symbols we need.
6477 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6478 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6479 cat <<_LT_EOF > conftest.$ac_ext
Chris Craikb50c2172013-07-29 15:28:30 -07006480/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6481#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6482/* DATA imports from DLLs on WIN32 con't be const, because runtime
6483 relocations are performed -- see ld's documentation on pseudo-relocs. */
6484# define LT_DLSYM_CONST
6485#elif defined(__osf__)
6486/* This system does not cope well with relocations in const data. */
6487# define LT_DLSYM_CONST
6488#else
6489# define LT_DLSYM_CONST const
6490#endif
6491
Patrick Scott5f6bd842010-06-28 16:55:16 -04006492#ifdef __cplusplus
6493extern "C" {
6494#endif
6495
6496_LT_EOF
6497 # Now generate the symbol file.
6498 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6499
6500 cat <<_LT_EOF >> conftest.$ac_ext
6501
6502/* The mapping between symbol names and symbols. */
Chris Craikb50c2172013-07-29 15:28:30 -07006503LT_DLSYM_CONST struct {
Patrick Scott5f6bd842010-06-28 16:55:16 -04006504 const char *name;
6505 void *address;
6506}
6507lt__PROGRAM__LTX_preloaded_symbols[] =
6508{
6509 { "@PROGRAM@", (void *) 0 },
6510_LT_EOF
6511 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6512 cat <<\_LT_EOF >> conftest.$ac_ext
6513 {0, (void *) 0}
6514};
6515
6516/* This works around a problem in FreeBSD linker */
6517#ifdef FREEBSD_WORKAROUND
6518static const void *lt_preloaded_setup() {
6519 return lt__PROGRAM__LTX_preloaded_symbols;
6520}
6521#endif
6522
6523#ifdef __cplusplus
6524}
6525#endif
6526_LT_EOF
6527 # Now try linking the two files.
6528 mv conftest.$ac_objext conftstm.$ac_objext
Chris Craikb50c2172013-07-29 15:28:30 -07006529 lt_globsym_save_LIBS=$LIBS
6530 lt_globsym_save_CFLAGS=$CFLAGS
Patrick Scott5f6bd842010-06-28 16:55:16 -04006531 LIBS="conftstm.$ac_objext"
6532 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6534 (eval $ac_link) 2>&5
6535 ac_status=$?
6536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6537 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6538 pipe_works=yes
6539 fi
Chris Craikb50c2172013-07-29 15:28:30 -07006540 LIBS=$lt_globsym_save_LIBS
6541 CFLAGS=$lt_globsym_save_CFLAGS
Patrick Scott5f6bd842010-06-28 16:55:16 -04006542 else
6543 echo "cannot find nm_test_func in $nlist" >&5
6544 fi
6545 else
6546 echo "cannot find nm_test_var in $nlist" >&5
6547 fi
6548 else
6549 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6550 fi
6551 else
6552 echo "$progname: failed program was:" >&5
6553 cat conftest.$ac_ext >&5
6554 fi
6555 rm -rf conftest* conftst*
6556
6557 # Do not use the global_symbol_pipe unless it works.
6558 if test "$pipe_works" = yes; then
6559 break
6560 else
6561 lt_cv_sys_global_symbol_pipe=
6562 fi
6563done
6564
6565fi
6566
6567if test -z "$lt_cv_sys_global_symbol_pipe"; then
6568 lt_cv_sys_global_symbol_to_cdecl=
6569fi
6570if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6572$as_echo "failed" >&6; }
6573else
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6575$as_echo "ok" >&6; }
6576fi
6577
Chris Craikb50c2172013-07-29 15:28:30 -07006578# Response file support.
6579if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6580 nm_file_list_spec='@'
6581elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6582 nm_file_list_spec='@'
6583fi
Patrick Scott5f6bd842010-06-28 16:55:16 -04006584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
Chris Craikb50c2172013-07-29 15:28:30 -07006606
6607
6608
6609
6610
6611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6612$as_echo_n "checking for sysroot... " >&6; }
6613
6614# Check whether --with-sysroot was given.
6615if test "${with_sysroot+set}" = set; then :
6616 withval=$with_sysroot;
6617else
6618 with_sysroot=no
6619fi
6620
6621
6622lt_sysroot=
6623case ${with_sysroot} in #(
6624 yes)
6625 if test "$GCC" = yes; then
6626 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6627 fi
6628 ;; #(
6629 /*)
6630 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6631 ;; #(
6632 no|'')
6633 ;; #(
6634 *)
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6636$as_echo "${with_sysroot}" >&6; }
6637 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6638 ;;
6639esac
6640
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6642$as_echo "${lt_sysroot:-no}" >&6; }
6643
6644
6645
6646
6647
Patrick Scott5f6bd842010-06-28 16:55:16 -04006648# Check whether --enable-libtool-lock was given.
6649if test "${enable_libtool_lock+set}" = set; then :
6650 enableval=$enable_libtool_lock;
6651fi
6652
6653test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6654
6655# Some flags need to be propagated to the compiler or linker for good
6656# libtool support.
6657case $host in
6658ia64-*-hpux*)
6659 # Find out which ABI we are using.
6660 echo 'int i;' > conftest.$ac_ext
6661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6662 (eval $ac_compile) 2>&5
6663 ac_status=$?
6664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6665 test $ac_status = 0; }; then
6666 case `/usr/bin/file conftest.$ac_objext` in
6667 *ELF-32*)
6668 HPUX_IA64_MODE="32"
6669 ;;
6670 *ELF-64*)
6671 HPUX_IA64_MODE="64"
6672 ;;
6673 esac
6674 fi
6675 rm -rf conftest*
6676 ;;
6677*-*-irix6*)
6678 # Find out which ABI we are using.
Chris Craikb50c2172013-07-29 15:28:30 -07006679 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
Patrick Scott5f6bd842010-06-28 16:55:16 -04006680 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6681 (eval $ac_compile) 2>&5
6682 ac_status=$?
6683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6684 test $ac_status = 0; }; then
6685 if test "$lt_cv_prog_gnu_ld" = yes; then
6686 case `/usr/bin/file conftest.$ac_objext` in
6687 *32-bit*)
6688 LD="${LD-ld} -melf32bsmip"
6689 ;;
6690 *N32*)
6691 LD="${LD-ld} -melf32bmipn32"
6692 ;;
6693 *64-bit*)
6694 LD="${LD-ld} -melf64bmip"
6695 ;;
6696 esac
6697 else
6698 case `/usr/bin/file conftest.$ac_objext` in
6699 *32-bit*)
6700 LD="${LD-ld} -32"
6701 ;;
6702 *N32*)
6703 LD="${LD-ld} -n32"
6704 ;;
6705 *64-bit*)
6706 LD="${LD-ld} -64"
6707 ;;
6708 esac
6709 fi
6710 fi
6711 rm -rf conftest*
6712 ;;
6713
6714x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6715s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6716 # Find out which ABI we are using.
6717 echo 'int i;' > conftest.$ac_ext
6718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6719 (eval $ac_compile) 2>&5
6720 ac_status=$?
6721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6722 test $ac_status = 0; }; then
6723 case `/usr/bin/file conftest.o` in
6724 *32-bit*)
6725 case $host in
6726 x86_64-*kfreebsd*-gnu)
6727 LD="${LD-ld} -m elf_i386_fbsd"
6728 ;;
6729 x86_64-*linux*)
6730 LD="${LD-ld} -m elf_i386"
6731 ;;
6732 ppc64-*linux*|powerpc64-*linux*)
6733 LD="${LD-ld} -m elf32ppclinux"
6734 ;;
6735 s390x-*linux*)
6736 LD="${LD-ld} -m elf_s390"
6737 ;;
6738 sparc64-*linux*)
6739 LD="${LD-ld} -m elf32_sparc"
6740 ;;
6741 esac
6742 ;;
6743 *64-bit*)
6744 case $host in
6745 x86_64-*kfreebsd*-gnu)
6746 LD="${LD-ld} -m elf_x86_64_fbsd"
6747 ;;
6748 x86_64-*linux*)
6749 LD="${LD-ld} -m elf_x86_64"
6750 ;;
6751 ppc*-*linux*|powerpc*-*linux*)
6752 LD="${LD-ld} -m elf64ppc"
6753 ;;
6754 s390*-*linux*|s390*-*tpf*)
6755 LD="${LD-ld} -m elf64_s390"
6756 ;;
6757 sparc*-*linux*)
6758 LD="${LD-ld} -m elf64_sparc"
6759 ;;
6760 esac
6761 ;;
6762 esac
6763 fi
6764 rm -rf conftest*
6765 ;;
6766
6767*-*-sco3.2v5*)
6768 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6769 SAVE_CFLAGS="$CFLAGS"
6770 CFLAGS="$CFLAGS -belf"
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6772$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07006773if ${lt_cv_cc_needs_belf+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04006774 $as_echo_n "(cached) " >&6
6775else
6776 ac_ext=c
6777ac_cpp='$CPP $CPPFLAGS'
6778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6780ac_compiler_gnu=$ac_cv_c_compiler_gnu
6781
6782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783/* end confdefs.h. */
6784
6785int
6786main ()
6787{
6788
6789 ;
6790 return 0;
6791}
6792_ACEOF
6793if ac_fn_c_try_link "$LINENO"; then :
6794 lt_cv_cc_needs_belf=yes
6795else
6796 lt_cv_cc_needs_belf=no
6797fi
6798rm -f core conftest.err conftest.$ac_objext \
6799 conftest$ac_exeext conftest.$ac_ext
6800 ac_ext=c
6801ac_cpp='$CPP $CPPFLAGS'
6802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6804ac_compiler_gnu=$ac_cv_c_compiler_gnu
6805
6806fi
6807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6808$as_echo "$lt_cv_cc_needs_belf" >&6; }
6809 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6810 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6811 CFLAGS="$SAVE_CFLAGS"
6812 fi
6813 ;;
Chris Craikb50c2172013-07-29 15:28:30 -07006814*-*solaris*)
Patrick Scott5f6bd842010-06-28 16:55:16 -04006815 # Find out which ABI we are using.
6816 echo 'int i;' > conftest.$ac_ext
6817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6818 (eval $ac_compile) 2>&5
6819 ac_status=$?
6820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6821 test $ac_status = 0; }; then
6822 case `/usr/bin/file conftest.o` in
6823 *64-bit*)
6824 case $lt_cv_prog_gnu_ld in
Chris Craikb50c2172013-07-29 15:28:30 -07006825 yes*)
6826 case $host in
6827 i?86-*-solaris*)
6828 LD="${LD-ld} -m elf_x86_64"
6829 ;;
6830 sparc*-*-solaris*)
6831 LD="${LD-ld} -m elf64_sparc"
6832 ;;
6833 esac
6834 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6835 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6836 LD="${LD-ld}_sol2"
6837 fi
6838 ;;
Patrick Scott5f6bd842010-06-28 16:55:16 -04006839 *)
6840 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6841 LD="${LD-ld} -64"
6842 fi
6843 ;;
6844 esac
6845 ;;
6846 esac
6847 fi
6848 rm -rf conftest*
6849 ;;
6850esac
6851
6852need_locks="$enable_libtool_lock"
6853
Chris Craikb50c2172013-07-29 15:28:30 -07006854if test -n "$ac_tool_prefix"; then
6855 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6856set dummy ${ac_tool_prefix}mt; ac_word=$2
6857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6858$as_echo_n "checking for $ac_word... " >&6; }
6859if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6860 $as_echo_n "(cached) " >&6
6861else
6862 if test -n "$MANIFEST_TOOL"; then
6863 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6864else
6865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866for as_dir in $PATH
6867do
6868 IFS=$as_save_IFS
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6872 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6874 break 2
6875 fi
6876done
6877 done
6878IFS=$as_save_IFS
6879
6880fi
6881fi
6882MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6883if test -n "$MANIFEST_TOOL"; then
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6885$as_echo "$MANIFEST_TOOL" >&6; }
6886else
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6888$as_echo "no" >&6; }
6889fi
6890
6891
6892fi
6893if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6894 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6895 # Extract the first word of "mt", so it can be a program name with args.
6896set dummy mt; ac_word=$2
6897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6898$as_echo_n "checking for $ac_word... " >&6; }
6899if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6900 $as_echo_n "(cached) " >&6
6901else
6902 if test -n "$ac_ct_MANIFEST_TOOL"; then
6903 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6904else
6905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906for as_dir in $PATH
6907do
6908 IFS=$as_save_IFS
6909 test -z "$as_dir" && as_dir=.
6910 for ac_exec_ext in '' $ac_executable_extensions; do
6911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6912 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6914 break 2
6915 fi
6916done
6917 done
6918IFS=$as_save_IFS
6919
6920fi
6921fi
6922ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6923if test -n "$ac_ct_MANIFEST_TOOL"; then
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6925$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6926else
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6928$as_echo "no" >&6; }
6929fi
6930
6931 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6932 MANIFEST_TOOL=":"
6933 else
6934 case $cross_compiling:$ac_tool_warned in
6935yes:)
6936{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6937$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6938ac_tool_warned=yes ;;
6939esac
6940 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6941 fi
6942else
6943 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6944fi
6945
6946test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6948$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6949if ${lt_cv_path_mainfest_tool+:} false; then :
6950 $as_echo_n "(cached) " >&6
6951else
6952 lt_cv_path_mainfest_tool=no
6953 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6954 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6955 cat conftest.err >&5
6956 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6957 lt_cv_path_mainfest_tool=yes
6958 fi
6959 rm -f conftest*
6960fi
6961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6962$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6963if test "x$lt_cv_path_mainfest_tool" != xyes; then
6964 MANIFEST_TOOL=:
6965fi
6966
6967
6968
6969
6970
Patrick Scott5f6bd842010-06-28 16:55:16 -04006971
6972 case $host_os in
6973 rhapsody* | darwin*)
6974 if test -n "$ac_tool_prefix"; then
6975 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6976set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6978$as_echo_n "checking for $ac_word... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07006979if ${ac_cv_prog_DSYMUTIL+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04006980 $as_echo_n "(cached) " >&6
6981else
6982 if test -n "$DSYMUTIL"; then
6983 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6984else
6985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986for as_dir in $PATH
6987do
6988 IFS=$as_save_IFS
6989 test -z "$as_dir" && as_dir=.
6990 for ac_exec_ext in '' $ac_executable_extensions; do
Chris Craikb50c2172013-07-29 15:28:30 -07006991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Patrick Scott5f6bd842010-06-28 16:55:16 -04006992 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6994 break 2
6995 fi
6996done
6997 done
6998IFS=$as_save_IFS
6999
7000fi
7001fi
7002DSYMUTIL=$ac_cv_prog_DSYMUTIL
7003if test -n "$DSYMUTIL"; then
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7005$as_echo "$DSYMUTIL" >&6; }
7006else
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7008$as_echo "no" >&6; }
7009fi
7010
7011
7012fi
7013if test -z "$ac_cv_prog_DSYMUTIL"; then
7014 ac_ct_DSYMUTIL=$DSYMUTIL
7015 # Extract the first word of "dsymutil", so it can be a program name with args.
7016set dummy dsymutil; ac_word=$2
7017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7018$as_echo_n "checking for $ac_word... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07007019if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04007020 $as_echo_n "(cached) " >&6
7021else
7022 if test -n "$ac_ct_DSYMUTIL"; then
7023 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7024else
7025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026for as_dir in $PATH
7027do
7028 IFS=$as_save_IFS
7029 test -z "$as_dir" && as_dir=.
7030 for ac_exec_ext in '' $ac_executable_extensions; do
Chris Craikb50c2172013-07-29 15:28:30 -07007031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Patrick Scott5f6bd842010-06-28 16:55:16 -04007032 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7034 break 2
7035 fi
7036done
7037 done
7038IFS=$as_save_IFS
7039
7040fi
7041fi
7042ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7043if test -n "$ac_ct_DSYMUTIL"; then
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7045$as_echo "$ac_ct_DSYMUTIL" >&6; }
7046else
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7048$as_echo "no" >&6; }
7049fi
7050
7051 if test "x$ac_ct_DSYMUTIL" = x; then
7052 DSYMUTIL=":"
7053 else
7054 case $cross_compiling:$ac_tool_warned in
7055yes:)
7056{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7057$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7058ac_tool_warned=yes ;;
7059esac
7060 DSYMUTIL=$ac_ct_DSYMUTIL
7061 fi
7062else
7063 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7064fi
7065
7066 if test -n "$ac_tool_prefix"; then
7067 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7068set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7070$as_echo_n "checking for $ac_word... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07007071if ${ac_cv_prog_NMEDIT+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04007072 $as_echo_n "(cached) " >&6
7073else
7074 if test -n "$NMEDIT"; then
7075 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7076else
7077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078for as_dir in $PATH
7079do
7080 IFS=$as_save_IFS
7081 test -z "$as_dir" && as_dir=.
7082 for ac_exec_ext in '' $ac_executable_extensions; do
Chris Craikb50c2172013-07-29 15:28:30 -07007083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Patrick Scott5f6bd842010-06-28 16:55:16 -04007084 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7086 break 2
7087 fi
7088done
7089 done
7090IFS=$as_save_IFS
7091
7092fi
7093fi
7094NMEDIT=$ac_cv_prog_NMEDIT
7095if test -n "$NMEDIT"; then
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7097$as_echo "$NMEDIT" >&6; }
7098else
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7100$as_echo "no" >&6; }
7101fi
7102
7103
7104fi
7105if test -z "$ac_cv_prog_NMEDIT"; then
7106 ac_ct_NMEDIT=$NMEDIT
7107 # Extract the first word of "nmedit", so it can be a program name with args.
7108set dummy nmedit; ac_word=$2
7109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7110$as_echo_n "checking for $ac_word... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07007111if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04007112 $as_echo_n "(cached) " >&6
7113else
7114 if test -n "$ac_ct_NMEDIT"; then
7115 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7116else
7117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118for as_dir in $PATH
7119do
7120 IFS=$as_save_IFS
7121 test -z "$as_dir" && as_dir=.
7122 for ac_exec_ext in '' $ac_executable_extensions; do
Chris Craikb50c2172013-07-29 15:28:30 -07007123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Patrick Scott5f6bd842010-06-28 16:55:16 -04007124 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7126 break 2
7127 fi
7128done
7129 done
7130IFS=$as_save_IFS
7131
7132fi
7133fi
7134ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7135if test -n "$ac_ct_NMEDIT"; then
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7137$as_echo "$ac_ct_NMEDIT" >&6; }
7138else
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7140$as_echo "no" >&6; }
7141fi
7142
7143 if test "x$ac_ct_NMEDIT" = x; then
7144 NMEDIT=":"
7145 else
7146 case $cross_compiling:$ac_tool_warned in
7147yes:)
7148{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7149$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7150ac_tool_warned=yes ;;
7151esac
7152 NMEDIT=$ac_ct_NMEDIT
7153 fi
7154else
7155 NMEDIT="$ac_cv_prog_NMEDIT"
7156fi
7157
7158 if test -n "$ac_tool_prefix"; then
7159 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7160set dummy ${ac_tool_prefix}lipo; ac_word=$2
7161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7162$as_echo_n "checking for $ac_word... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07007163if ${ac_cv_prog_LIPO+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04007164 $as_echo_n "(cached) " >&6
7165else
7166 if test -n "$LIPO"; then
7167 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7168else
7169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170for as_dir in $PATH
7171do
7172 IFS=$as_save_IFS
7173 test -z "$as_dir" && as_dir=.
7174 for ac_exec_ext in '' $ac_executable_extensions; do
Chris Craikb50c2172013-07-29 15:28:30 -07007175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Patrick Scott5f6bd842010-06-28 16:55:16 -04007176 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7178 break 2
7179 fi
7180done
7181 done
7182IFS=$as_save_IFS
7183
7184fi
7185fi
7186LIPO=$ac_cv_prog_LIPO
7187if test -n "$LIPO"; then
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7189$as_echo "$LIPO" >&6; }
7190else
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7192$as_echo "no" >&6; }
7193fi
7194
7195
7196fi
7197if test -z "$ac_cv_prog_LIPO"; then
7198 ac_ct_LIPO=$LIPO
7199 # Extract the first word of "lipo", so it can be a program name with args.
7200set dummy lipo; ac_word=$2
7201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7202$as_echo_n "checking for $ac_word... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07007203if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04007204 $as_echo_n "(cached) " >&6
7205else
7206 if test -n "$ac_ct_LIPO"; then
7207 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7208else
7209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210for as_dir in $PATH
7211do
7212 IFS=$as_save_IFS
7213 test -z "$as_dir" && as_dir=.
7214 for ac_exec_ext in '' $ac_executable_extensions; do
Chris Craikb50c2172013-07-29 15:28:30 -07007215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Patrick Scott5f6bd842010-06-28 16:55:16 -04007216 ac_cv_prog_ac_ct_LIPO="lipo"
7217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7218 break 2
7219 fi
7220done
7221 done
7222IFS=$as_save_IFS
7223
7224fi
7225fi
7226ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7227if test -n "$ac_ct_LIPO"; then
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7229$as_echo "$ac_ct_LIPO" >&6; }
7230else
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7232$as_echo "no" >&6; }
7233fi
7234
7235 if test "x$ac_ct_LIPO" = x; then
7236 LIPO=":"
7237 else
7238 case $cross_compiling:$ac_tool_warned in
7239yes:)
7240{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7241$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7242ac_tool_warned=yes ;;
7243esac
7244 LIPO=$ac_ct_LIPO
7245 fi
7246else
7247 LIPO="$ac_cv_prog_LIPO"
7248fi
7249
7250 if test -n "$ac_tool_prefix"; then
7251 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7252set dummy ${ac_tool_prefix}otool; ac_word=$2
7253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7254$as_echo_n "checking for $ac_word... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07007255if ${ac_cv_prog_OTOOL+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04007256 $as_echo_n "(cached) " >&6
7257else
7258 if test -n "$OTOOL"; then
7259 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7260else
7261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262for as_dir in $PATH
7263do
7264 IFS=$as_save_IFS
7265 test -z "$as_dir" && as_dir=.
7266 for ac_exec_ext in '' $ac_executable_extensions; do
Chris Craikb50c2172013-07-29 15:28:30 -07007267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Patrick Scott5f6bd842010-06-28 16:55:16 -04007268 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7270 break 2
7271 fi
7272done
7273 done
7274IFS=$as_save_IFS
7275
7276fi
7277fi
7278OTOOL=$ac_cv_prog_OTOOL
7279if test -n "$OTOOL"; then
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7281$as_echo "$OTOOL" >&6; }
7282else
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7284$as_echo "no" >&6; }
7285fi
7286
7287
7288fi
7289if test -z "$ac_cv_prog_OTOOL"; then
7290 ac_ct_OTOOL=$OTOOL
7291 # Extract the first word of "otool", so it can be a program name with args.
7292set dummy otool; ac_word=$2
7293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7294$as_echo_n "checking for $ac_word... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07007295if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04007296 $as_echo_n "(cached) " >&6
7297else
7298 if test -n "$ac_ct_OTOOL"; then
7299 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7300else
7301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302for as_dir in $PATH
7303do
7304 IFS=$as_save_IFS
7305 test -z "$as_dir" && as_dir=.
7306 for ac_exec_ext in '' $ac_executable_extensions; do
Chris Craikb50c2172013-07-29 15:28:30 -07007307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Patrick Scott5f6bd842010-06-28 16:55:16 -04007308 ac_cv_prog_ac_ct_OTOOL="otool"
7309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7310 break 2
7311 fi
7312done
7313 done
7314IFS=$as_save_IFS
7315
7316fi
7317fi
7318ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7319if test -n "$ac_ct_OTOOL"; then
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7321$as_echo "$ac_ct_OTOOL" >&6; }
7322else
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7324$as_echo "no" >&6; }
7325fi
7326
7327 if test "x$ac_ct_OTOOL" = x; then
7328 OTOOL=":"
7329 else
7330 case $cross_compiling:$ac_tool_warned in
7331yes:)
7332{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7333$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7334ac_tool_warned=yes ;;
7335esac
7336 OTOOL=$ac_ct_OTOOL
7337 fi
7338else
7339 OTOOL="$ac_cv_prog_OTOOL"
7340fi
7341
7342 if test -n "$ac_tool_prefix"; then
7343 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7344set dummy ${ac_tool_prefix}otool64; ac_word=$2
7345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7346$as_echo_n "checking for $ac_word... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07007347if ${ac_cv_prog_OTOOL64+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04007348 $as_echo_n "(cached) " >&6
7349else
7350 if test -n "$OTOOL64"; then
7351 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7352else
7353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354for as_dir in $PATH
7355do
7356 IFS=$as_save_IFS
7357 test -z "$as_dir" && as_dir=.
7358 for ac_exec_ext in '' $ac_executable_extensions; do
Chris Craikb50c2172013-07-29 15:28:30 -07007359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Patrick Scott5f6bd842010-06-28 16:55:16 -04007360 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7362 break 2
7363 fi
7364done
7365 done
7366IFS=$as_save_IFS
7367
7368fi
7369fi
7370OTOOL64=$ac_cv_prog_OTOOL64
7371if test -n "$OTOOL64"; then
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7373$as_echo "$OTOOL64" >&6; }
7374else
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7376$as_echo "no" >&6; }
7377fi
7378
7379
7380fi
7381if test -z "$ac_cv_prog_OTOOL64"; then
7382 ac_ct_OTOOL64=$OTOOL64
7383 # Extract the first word of "otool64", so it can be a program name with args.
7384set dummy otool64; ac_word=$2
7385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7386$as_echo_n "checking for $ac_word... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07007387if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04007388 $as_echo_n "(cached) " >&6
7389else
7390 if test -n "$ac_ct_OTOOL64"; then
7391 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7392else
7393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394for as_dir in $PATH
7395do
7396 IFS=$as_save_IFS
7397 test -z "$as_dir" && as_dir=.
7398 for ac_exec_ext in '' $ac_executable_extensions; do
Chris Craikb50c2172013-07-29 15:28:30 -07007399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Patrick Scott5f6bd842010-06-28 16:55:16 -04007400 ac_cv_prog_ac_ct_OTOOL64="otool64"
7401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7402 break 2
7403 fi
7404done
7405 done
7406IFS=$as_save_IFS
7407
7408fi
7409fi
7410ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7411if test -n "$ac_ct_OTOOL64"; then
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7413$as_echo "$ac_ct_OTOOL64" >&6; }
7414else
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7416$as_echo "no" >&6; }
7417fi
7418
7419 if test "x$ac_ct_OTOOL64" = x; then
7420 OTOOL64=":"
7421 else
7422 case $cross_compiling:$ac_tool_warned in
7423yes:)
7424{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7425$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7426ac_tool_warned=yes ;;
7427esac
7428 OTOOL64=$ac_ct_OTOOL64
7429 fi
7430else
7431 OTOOL64="$ac_cv_prog_OTOOL64"
7432fi
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7461$as_echo_n "checking for -single_module linker flag... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07007462if ${lt_cv_apple_cc_single_mod+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04007463 $as_echo_n "(cached) " >&6
7464else
7465 lt_cv_apple_cc_single_mod=no
7466 if test -z "${LT_MULTI_MODULE}"; then
7467 # By default we will add the -single_module flag. You can override
7468 # by either setting the environment variable LT_MULTI_MODULE
7469 # non-empty at configure time, or by adding -multi_module to the
7470 # link flags.
7471 rm -rf libconftest.dylib*
7472 echo "int foo(void){return 1;}" > conftest.c
7473 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7474-dynamiclib -Wl,-single_module conftest.c" >&5
7475 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7476 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7477 _lt_result=$?
Chris Craikb50c2172013-07-29 15:28:30 -07007478 # If there is a non-empty error log, and "single_module"
7479 # appears in it, assume the flag caused a linker warning
7480 if test -s conftest.err && $GREP single_module conftest.err; then
7481 cat conftest.err >&5
7482 # Otherwise, if the output was created with a 0 exit code from
7483 # the compiler, it worked.
7484 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
Patrick Scott5f6bd842010-06-28 16:55:16 -04007485 lt_cv_apple_cc_single_mod=yes
7486 else
7487 cat conftest.err >&5
7488 fi
7489 rm -rf libconftest.dylib*
7490 rm -f conftest.*
7491 fi
7492fi
7493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7494$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07007495
Patrick Scott5f6bd842010-06-28 16:55:16 -04007496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7497$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07007498if ${lt_cv_ld_exported_symbols_list+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04007499 $as_echo_n "(cached) " >&6
7500else
7501 lt_cv_ld_exported_symbols_list=no
7502 save_LDFLAGS=$LDFLAGS
7503 echo "_main" > conftest.sym
7504 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506/* end confdefs.h. */
7507
7508int
7509main ()
7510{
7511
7512 ;
7513 return 0;
7514}
7515_ACEOF
7516if ac_fn_c_try_link "$LINENO"; then :
7517 lt_cv_ld_exported_symbols_list=yes
7518else
7519 lt_cv_ld_exported_symbols_list=no
7520fi
7521rm -f core conftest.err conftest.$ac_objext \
7522 conftest$ac_exeext conftest.$ac_ext
7523 LDFLAGS="$save_LDFLAGS"
7524
7525fi
7526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7527$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07007528
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7530$as_echo_n "checking for -force_load linker flag... " >&6; }
7531if ${lt_cv_ld_force_load+:} false; then :
7532 $as_echo_n "(cached) " >&6
7533else
7534 lt_cv_ld_force_load=no
7535 cat > conftest.c << _LT_EOF
7536int forced_loaded() { return 2;}
7537_LT_EOF
7538 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7539 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7540 echo "$AR cru libconftest.a conftest.o" >&5
7541 $AR cru libconftest.a conftest.o 2>&5
7542 echo "$RANLIB libconftest.a" >&5
7543 $RANLIB libconftest.a 2>&5
7544 cat > conftest.c << _LT_EOF
7545int main() { return 0;}
7546_LT_EOF
7547 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7548 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7549 _lt_result=$?
7550 if test -s conftest.err && $GREP force_load conftest.err; then
7551 cat conftest.err >&5
7552 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7553 lt_cv_ld_force_load=yes
7554 else
7555 cat conftest.err >&5
7556 fi
7557 rm -f conftest.err libconftest.a conftest conftest.c
7558 rm -rf conftest.dSYM
7559
7560fi
7561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7562$as_echo "$lt_cv_ld_force_load" >&6; }
Patrick Scott5f6bd842010-06-28 16:55:16 -04007563 case $host_os in
7564 rhapsody* | darwin1.[012])
7565 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7566 darwin1.*)
7567 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7568 darwin*) # darwin 5.x on
7569 # if running on 10.5 or later, the deployment target defaults
7570 # to the OS version, if on x86, and 10.4, the deployment
7571 # target defaults to 10.4. Don't you love it?
7572 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7573 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7574 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7575 10.[012]*)
7576 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7577 10.*)
7578 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7579 esac
7580 ;;
7581 esac
7582 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7583 _lt_dar_single_mod='$single_module'
7584 fi
7585 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7586 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7587 else
7588 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7589 fi
Chris Craikb50c2172013-07-29 15:28:30 -07007590 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
Patrick Scott5f6bd842010-06-28 16:55:16 -04007591 _lt_dsymutil='~$DSYMUTIL $lib || :'
7592 else
7593 _lt_dsymutil=
7594 fi
7595 ;;
7596 esac
7597
7598
7599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7600$as_echo_n "checking for ANSI C header files... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07007601if ${ac_cv_header_stdc+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04007602 $as_echo_n "(cached) " >&6
7603else
7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605/* end confdefs.h. */
7606#include <stdlib.h>
7607#include <stdarg.h>
7608#include <string.h>
7609#include <float.h>
7610
7611int
7612main ()
7613{
7614
7615 ;
7616 return 0;
7617}
7618_ACEOF
7619if ac_fn_c_try_compile "$LINENO"; then :
7620 ac_cv_header_stdc=yes
7621else
7622 ac_cv_header_stdc=no
7623fi
7624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7625
7626if test $ac_cv_header_stdc = yes; then
7627 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629/* end confdefs.h. */
7630#include <string.h>
7631
7632_ACEOF
7633if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7634 $EGREP "memchr" >/dev/null 2>&1; then :
7635
7636else
7637 ac_cv_header_stdc=no
7638fi
7639rm -f conftest*
7640
7641fi
7642
7643if test $ac_cv_header_stdc = yes; then
7644 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7646/* end confdefs.h. */
7647#include <stdlib.h>
7648
7649_ACEOF
7650if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7651 $EGREP "free" >/dev/null 2>&1; then :
7652
7653else
7654 ac_cv_header_stdc=no
7655fi
7656rm -f conftest*
7657
7658fi
7659
7660if test $ac_cv_header_stdc = yes; then
7661 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7662 if test "$cross_compiling" = yes; then :
7663 :
7664else
7665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7666/* end confdefs.h. */
7667#include <ctype.h>
7668#include <stdlib.h>
7669#if ((' ' & 0x0FF) == 0x020)
7670# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7671# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7672#else
7673# define ISLOWER(c) \
7674 (('a' <= (c) && (c) <= 'i') \
7675 || ('j' <= (c) && (c) <= 'r') \
7676 || ('s' <= (c) && (c) <= 'z'))
7677# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7678#endif
7679
7680#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7681int
7682main ()
7683{
7684 int i;
7685 for (i = 0; i < 256; i++)
7686 if (XOR (islower (i), ISLOWER (i))
7687 || toupper (i) != TOUPPER (i))
7688 return 2;
7689 return 0;
7690}
7691_ACEOF
7692if ac_fn_c_try_run "$LINENO"; then :
7693
7694else
7695 ac_cv_header_stdc=no
7696fi
7697rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7698 conftest.$ac_objext conftest.beam conftest.$ac_ext
7699fi
7700
7701fi
7702fi
7703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7704$as_echo "$ac_cv_header_stdc" >&6; }
7705if test $ac_cv_header_stdc = yes; then
7706
7707$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7708
7709fi
7710
7711# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7712for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7713 inttypes.h stdint.h unistd.h
7714do :
7715 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7716ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7717"
Chris Craikb50c2172013-07-29 15:28:30 -07007718if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04007719 cat >>confdefs.h <<_ACEOF
7720#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7721_ACEOF
7722
7723fi
7724
7725done
7726
7727
7728for ac_header in dlfcn.h
7729do :
7730 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7731"
Chris Craikb50c2172013-07-29 15:28:30 -07007732if test "x$ac_cv_header_dlfcn_h" = xyes; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04007733 cat >>confdefs.h <<_ACEOF
7734#define HAVE_DLFCN_H 1
7735_ACEOF
7736
7737fi
7738
7739done
7740
7741
7742
Chris Craikb50c2172013-07-29 15:28:30 -07007743
7744
Patrick Scott5f6bd842010-06-28 16:55:16 -04007745# Set options
Chris Craikb50c2172013-07-29 15:28:30 -07007746enable_win32_dll=yes
7747
7748case $host in
7749*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7750 if test -n "$ac_tool_prefix"; then
7751 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7752set dummy ${ac_tool_prefix}as; ac_word=$2
7753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7754$as_echo_n "checking for $ac_word... " >&6; }
7755if ${ac_cv_prog_AS+:} false; then :
7756 $as_echo_n "(cached) " >&6
7757else
7758 if test -n "$AS"; then
7759 ac_cv_prog_AS="$AS" # Let the user override the test.
7760else
7761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762for as_dir in $PATH
7763do
7764 IFS=$as_save_IFS
7765 test -z "$as_dir" && as_dir=.
7766 for ac_exec_ext in '' $ac_executable_extensions; do
7767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7768 ac_cv_prog_AS="${ac_tool_prefix}as"
7769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7770 break 2
7771 fi
7772done
7773 done
7774IFS=$as_save_IFS
7775
7776fi
7777fi
7778AS=$ac_cv_prog_AS
7779if test -n "$AS"; then
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7781$as_echo "$AS" >&6; }
7782else
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7784$as_echo "no" >&6; }
7785fi
7786
7787
7788fi
7789if test -z "$ac_cv_prog_AS"; then
7790 ac_ct_AS=$AS
7791 # Extract the first word of "as", so it can be a program name with args.
7792set dummy as; ac_word=$2
7793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7794$as_echo_n "checking for $ac_word... " >&6; }
7795if ${ac_cv_prog_ac_ct_AS+:} false; then :
7796 $as_echo_n "(cached) " >&6
7797else
7798 if test -n "$ac_ct_AS"; then
7799 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7800else
7801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802for as_dir in $PATH
7803do
7804 IFS=$as_save_IFS
7805 test -z "$as_dir" && as_dir=.
7806 for ac_exec_ext in '' $ac_executable_extensions; do
7807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7808 ac_cv_prog_ac_ct_AS="as"
7809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7810 break 2
7811 fi
7812done
7813 done
7814IFS=$as_save_IFS
7815
7816fi
7817fi
7818ac_ct_AS=$ac_cv_prog_ac_ct_AS
7819if test -n "$ac_ct_AS"; then
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7821$as_echo "$ac_ct_AS" >&6; }
7822else
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824$as_echo "no" >&6; }
7825fi
7826
7827 if test "x$ac_ct_AS" = x; then
7828 AS="false"
7829 else
7830 case $cross_compiling:$ac_tool_warned in
7831yes:)
7832{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7833$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7834ac_tool_warned=yes ;;
7835esac
7836 AS=$ac_ct_AS
7837 fi
7838else
7839 AS="$ac_cv_prog_AS"
7840fi
7841
7842 if test -n "$ac_tool_prefix"; then
7843 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7844set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7846$as_echo_n "checking for $ac_word... " >&6; }
7847if ${ac_cv_prog_DLLTOOL+:} false; then :
7848 $as_echo_n "(cached) " >&6
7849else
7850 if test -n "$DLLTOOL"; then
7851 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7852else
7853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854for as_dir in $PATH
7855do
7856 IFS=$as_save_IFS
7857 test -z "$as_dir" && as_dir=.
7858 for ac_exec_ext in '' $ac_executable_extensions; do
7859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7860 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7862 break 2
7863 fi
7864done
7865 done
7866IFS=$as_save_IFS
7867
7868fi
7869fi
7870DLLTOOL=$ac_cv_prog_DLLTOOL
7871if test -n "$DLLTOOL"; then
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7873$as_echo "$DLLTOOL" >&6; }
7874else
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7876$as_echo "no" >&6; }
7877fi
7878
7879
7880fi
7881if test -z "$ac_cv_prog_DLLTOOL"; then
7882 ac_ct_DLLTOOL=$DLLTOOL
7883 # Extract the first word of "dlltool", so it can be a program name with args.
7884set dummy dlltool; ac_word=$2
7885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7886$as_echo_n "checking for $ac_word... " >&6; }
7887if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7888 $as_echo_n "(cached) " >&6
7889else
7890 if test -n "$ac_ct_DLLTOOL"; then
7891 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7892else
7893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7894for as_dir in $PATH
7895do
7896 IFS=$as_save_IFS
7897 test -z "$as_dir" && as_dir=.
7898 for ac_exec_ext in '' $ac_executable_extensions; do
7899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7900 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7902 break 2
7903 fi
7904done
7905 done
7906IFS=$as_save_IFS
7907
7908fi
7909fi
7910ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7911if test -n "$ac_ct_DLLTOOL"; then
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7913$as_echo "$ac_ct_DLLTOOL" >&6; }
7914else
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916$as_echo "no" >&6; }
7917fi
7918
7919 if test "x$ac_ct_DLLTOOL" = x; then
7920 DLLTOOL="false"
7921 else
7922 case $cross_compiling:$ac_tool_warned in
7923yes:)
7924{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7925$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7926ac_tool_warned=yes ;;
7927esac
7928 DLLTOOL=$ac_ct_DLLTOOL
7929 fi
7930else
7931 DLLTOOL="$ac_cv_prog_DLLTOOL"
7932fi
7933
7934 if test -n "$ac_tool_prefix"; then
7935 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7936set dummy ${ac_tool_prefix}objdump; ac_word=$2
7937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7938$as_echo_n "checking for $ac_word... " >&6; }
7939if ${ac_cv_prog_OBJDUMP+:} false; then :
7940 $as_echo_n "(cached) " >&6
7941else
7942 if test -n "$OBJDUMP"; then
7943 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7944else
7945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946for as_dir in $PATH
7947do
7948 IFS=$as_save_IFS
7949 test -z "$as_dir" && as_dir=.
7950 for ac_exec_ext in '' $ac_executable_extensions; do
7951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7952 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7954 break 2
7955 fi
7956done
7957 done
7958IFS=$as_save_IFS
7959
7960fi
7961fi
7962OBJDUMP=$ac_cv_prog_OBJDUMP
7963if test -n "$OBJDUMP"; then
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7965$as_echo "$OBJDUMP" >&6; }
7966else
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7968$as_echo "no" >&6; }
7969fi
7970
7971
7972fi
7973if test -z "$ac_cv_prog_OBJDUMP"; then
7974 ac_ct_OBJDUMP=$OBJDUMP
7975 # Extract the first word of "objdump", so it can be a program name with args.
7976set dummy objdump; ac_word=$2
7977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7978$as_echo_n "checking for $ac_word... " >&6; }
7979if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7980 $as_echo_n "(cached) " >&6
7981else
7982 if test -n "$ac_ct_OBJDUMP"; then
7983 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7984else
7985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7986for as_dir in $PATH
7987do
7988 IFS=$as_save_IFS
7989 test -z "$as_dir" && as_dir=.
7990 for ac_exec_ext in '' $ac_executable_extensions; do
7991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7992 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7994 break 2
7995 fi
7996done
7997 done
7998IFS=$as_save_IFS
7999
8000fi
8001fi
8002ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8003if test -n "$ac_ct_OBJDUMP"; then
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8005$as_echo "$ac_ct_OBJDUMP" >&6; }
8006else
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8008$as_echo "no" >&6; }
8009fi
8010
8011 if test "x$ac_ct_OBJDUMP" = x; then
8012 OBJDUMP="false"
8013 else
8014 case $cross_compiling:$ac_tool_warned in
8015yes:)
8016{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8017$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8018ac_tool_warned=yes ;;
8019esac
8020 OBJDUMP=$ac_ct_OBJDUMP
8021 fi
8022else
8023 OBJDUMP="$ac_cv_prog_OBJDUMP"
8024fi
8025
8026 ;;
8027esac
8028
8029test -z "$AS" && AS=as
8030
8031
8032
8033
8034
8035test -z "$DLLTOOL" && DLLTOOL=dlltool
8036
8037
8038
8039
8040
8041test -z "$OBJDUMP" && OBJDUMP=objdump
8042
8043
8044
8045
Patrick Scott5f6bd842010-06-28 16:55:16 -04008046
8047
8048
8049 enable_dlopen=no
8050
8051
8052
8053 # Check whether --enable-shared was given.
8054if test "${enable_shared+set}" = set; then :
8055 enableval=$enable_shared; p=${PACKAGE-default}
8056 case $enableval in
8057 yes) enable_shared=yes ;;
8058 no) enable_shared=no ;;
8059 *)
8060 enable_shared=no
8061 # Look at the argument we got. We use all the common list separators.
8062 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8063 for pkg in $enableval; do
8064 IFS="$lt_save_ifs"
8065 if test "X$pkg" = "X$p"; then
8066 enable_shared=yes
8067 fi
8068 done
8069 IFS="$lt_save_ifs"
8070 ;;
8071 esac
8072else
8073 enable_shared=yes
8074fi
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084 # Check whether --enable-static was given.
8085if test "${enable_static+set}" = set; then :
8086 enableval=$enable_static; p=${PACKAGE-default}
8087 case $enableval in
8088 yes) enable_static=yes ;;
8089 no) enable_static=no ;;
8090 *)
8091 enable_static=no
8092 # Look at the argument we got. We use all the common list separators.
8093 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8094 for pkg in $enableval; do
8095 IFS="$lt_save_ifs"
8096 if test "X$pkg" = "X$p"; then
8097 enable_static=yes
8098 fi
8099 done
8100 IFS="$lt_save_ifs"
8101 ;;
8102 esac
8103else
8104 enable_static=yes
8105fi
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116# Check whether --with-pic was given.
8117if test "${with_pic+set}" = set; then :
Chris Craikb50c2172013-07-29 15:28:30 -07008118 withval=$with_pic; lt_p=${PACKAGE-default}
8119 case $withval in
8120 yes|no) pic_mode=$withval ;;
8121 *)
8122 pic_mode=default
8123 # Look at the argument we got. We use all the common list separators.
8124 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8125 for lt_pkg in $withval; do
8126 IFS="$lt_save_ifs"
8127 if test "X$lt_pkg" = "X$lt_p"; then
8128 pic_mode=yes
8129 fi
8130 done
8131 IFS="$lt_save_ifs"
8132 ;;
8133 esac
Patrick Scott5f6bd842010-06-28 16:55:16 -04008134else
8135 pic_mode=default
8136fi
8137
8138
8139test -z "$pic_mode" && pic_mode=default
8140
8141
8142
8143
8144
8145
8146
8147 # Check whether --enable-fast-install was given.
8148if test "${enable_fast_install+set}" = set; then :
8149 enableval=$enable_fast_install; p=${PACKAGE-default}
8150 case $enableval in
8151 yes) enable_fast_install=yes ;;
8152 no) enable_fast_install=no ;;
8153 *)
8154 enable_fast_install=no
8155 # Look at the argument we got. We use all the common list separators.
8156 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8157 for pkg in $enableval; do
8158 IFS="$lt_save_ifs"
8159 if test "X$pkg" = "X$p"; then
8160 enable_fast_install=yes
8161 fi
8162 done
8163 IFS="$lt_save_ifs"
8164 ;;
8165 esac
8166else
8167 enable_fast_install=yes
8168fi
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180# This can be used to rebuild libtool when needed
8181LIBTOOL_DEPS="$ltmain"
8182
8183# Always use our own libtool.
8184LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
Chris Craikb50c2172013-07-29 15:28:30 -07008210
8211
8212
8213
8214
Patrick Scott5f6bd842010-06-28 16:55:16 -04008215test -z "$LN_S" && LN_S="ln -s"
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230if test -n "${ZSH_VERSION+set}" ; then
8231 setopt NO_GLOB_SUBST
8232fi
8233
8234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8235$as_echo_n "checking for objdir... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07008236if ${lt_cv_objdir+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04008237 $as_echo_n "(cached) " >&6
8238else
8239 rm -f .libs 2>/dev/null
8240mkdir .libs 2>/dev/null
8241if test -d .libs; then
8242 lt_cv_objdir=.libs
8243else
8244 # MS-DOS does not allow filenames that begin with a dot.
8245 lt_cv_objdir=_libs
8246fi
8247rmdir .libs 2>/dev/null
8248fi
8249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8250$as_echo "$lt_cv_objdir" >&6; }
8251objdir=$lt_cv_objdir
8252
8253
8254
8255
8256
8257cat >>confdefs.h <<_ACEOF
8258#define LT_OBJDIR "$lt_cv_objdir/"
8259_ACEOF
8260
8261
8262
8263
Patrick Scott5f6bd842010-06-28 16:55:16 -04008264case $host_os in
8265aix3*)
8266 # AIX sometimes has problems with the GCC collect2 program. For some
8267 # reason, if we set the COLLECT_NAMES environment variable, the problems
8268 # vanish in a puff of smoke.
8269 if test "X${COLLECT_NAMES+set}" != Xset; then
8270 COLLECT_NAMES=
8271 export COLLECT_NAMES
8272 fi
8273 ;;
8274esac
8275
Patrick Scott5f6bd842010-06-28 16:55:16 -04008276# Global variables:
8277ofile=libtool
8278can_build_shared=yes
8279
8280# All known linkers require a `.a' archive for static linking (except MSVC,
8281# which needs '.lib').
8282libext=a
8283
8284with_gnu_ld="$lt_cv_prog_gnu_ld"
8285
8286old_CC="$CC"
8287old_CFLAGS="$CFLAGS"
8288
8289# Set sane defaults for various variables
8290test -z "$CC" && CC=cc
8291test -z "$LTCC" && LTCC=$CC
8292test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8293test -z "$LD" && LD=ld
8294test -z "$ac_objext" && ac_objext=o
8295
8296for cc_temp in $compiler""; do
8297 case $cc_temp in
8298 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8299 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8300 \-*) ;;
8301 *) break;;
8302 esac
8303done
Chris Craikb50c2172013-07-29 15:28:30 -07008304cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
Patrick Scott5f6bd842010-06-28 16:55:16 -04008305
8306
8307# Only perform the check for file, if the check method requires it
8308test -z "$MAGIC_CMD" && MAGIC_CMD=file
8309case $deplibs_check_method in
8310file_magic*)
8311 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8313$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07008314if ${lt_cv_path_MAGIC_CMD+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04008315 $as_echo_n "(cached) " >&6
8316else
8317 case $MAGIC_CMD in
8318[\\/*] | ?:[\\/]*)
8319 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8320 ;;
8321*)
8322 lt_save_MAGIC_CMD="$MAGIC_CMD"
8323 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8324 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8325 for ac_dir in $ac_dummy; do
8326 IFS="$lt_save_ifs"
8327 test -z "$ac_dir" && ac_dir=.
8328 if test -f $ac_dir/${ac_tool_prefix}file; then
8329 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8330 if test -n "$file_magic_test_file"; then
8331 case $deplibs_check_method in
8332 "file_magic "*)
8333 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8334 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8335 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8336 $EGREP "$file_magic_regex" > /dev/null; then
8337 :
8338 else
8339 cat <<_LT_EOF 1>&2
8340
8341*** Warning: the command libtool uses to detect shared libraries,
8342*** $file_magic_cmd, produces output that libtool cannot recognize.
8343*** The result is that libtool may fail to recognize shared libraries
8344*** as such. This will affect the creation of libtool libraries that
8345*** depend on shared libraries, but programs linked with such libtool
8346*** libraries will work regardless of this problem. Nevertheless, you
8347*** may want to report the problem to your system manager and/or to
8348*** bug-libtool@gnu.org
8349
8350_LT_EOF
8351 fi ;;
8352 esac
8353 fi
8354 break
8355 fi
8356 done
8357 IFS="$lt_save_ifs"
8358 MAGIC_CMD="$lt_save_MAGIC_CMD"
8359 ;;
8360esac
8361fi
8362
8363MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8364if test -n "$MAGIC_CMD"; then
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8366$as_echo "$MAGIC_CMD" >&6; }
8367else
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369$as_echo "no" >&6; }
8370fi
8371
8372
8373
8374
8375
8376if test -z "$lt_cv_path_MAGIC_CMD"; then
8377 if test -n "$ac_tool_prefix"; then
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8379$as_echo_n "checking for file... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07008380if ${lt_cv_path_MAGIC_CMD+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04008381 $as_echo_n "(cached) " >&6
8382else
8383 case $MAGIC_CMD in
8384[\\/*] | ?:[\\/]*)
8385 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8386 ;;
8387*)
8388 lt_save_MAGIC_CMD="$MAGIC_CMD"
8389 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8390 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8391 for ac_dir in $ac_dummy; do
8392 IFS="$lt_save_ifs"
8393 test -z "$ac_dir" && ac_dir=.
8394 if test -f $ac_dir/file; then
8395 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8396 if test -n "$file_magic_test_file"; then
8397 case $deplibs_check_method in
8398 "file_magic "*)
8399 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8400 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8401 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8402 $EGREP "$file_magic_regex" > /dev/null; then
8403 :
8404 else
8405 cat <<_LT_EOF 1>&2
8406
8407*** Warning: the command libtool uses to detect shared libraries,
8408*** $file_magic_cmd, produces output that libtool cannot recognize.
8409*** The result is that libtool may fail to recognize shared libraries
8410*** as such. This will affect the creation of libtool libraries that
8411*** depend on shared libraries, but programs linked with such libtool
8412*** libraries will work regardless of this problem. Nevertheless, you
8413*** may want to report the problem to your system manager and/or to
8414*** bug-libtool@gnu.org
8415
8416_LT_EOF
8417 fi ;;
8418 esac
8419 fi
8420 break
8421 fi
8422 done
8423 IFS="$lt_save_ifs"
8424 MAGIC_CMD="$lt_save_MAGIC_CMD"
8425 ;;
8426esac
8427fi
8428
8429MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8430if test -n "$MAGIC_CMD"; then
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8432$as_echo "$MAGIC_CMD" >&6; }
8433else
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435$as_echo "no" >&6; }
8436fi
8437
8438
8439 else
8440 MAGIC_CMD=:
8441 fi
8442fi
8443
8444 fi
8445 ;;
8446esac
8447
8448# Use C for the default configuration in the libtool script
8449
8450lt_save_CC="$CC"
8451ac_ext=c
8452ac_cpp='$CPP $CPPFLAGS'
8453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8455ac_compiler_gnu=$ac_cv_c_compiler_gnu
8456
8457
8458# Source file extension for C test sources.
8459ac_ext=c
8460
8461# Object file extension for compiled C test sources.
8462objext=o
8463objext=$objext
8464
8465# Code to be used in simple compile tests
8466lt_simple_compile_test_code="int some_variable = 0;"
8467
8468# Code to be used in simple link tests
8469lt_simple_link_test_code='int main(){return(0);}'
8470
8471
8472
8473
8474
8475
8476
8477# If no C compiler was specified, use CC.
8478LTCC=${LTCC-"$CC"}
8479
8480# If no C compiler flags were specified, use CFLAGS.
8481LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8482
8483# Allow CC to be a program name with arguments.
8484compiler=$CC
8485
8486# Save the default compiler, since it gets overwritten when the other
8487# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8488compiler_DEFAULT=$CC
8489
8490# save warnings/boilerplate of simple test code
8491ac_outfile=conftest.$ac_objext
8492echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8493eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8494_lt_compiler_boilerplate=`cat conftest.err`
8495$RM conftest*
8496
8497ac_outfile=conftest.$ac_objext
8498echo "$lt_simple_link_test_code" >conftest.$ac_ext
8499eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8500_lt_linker_boilerplate=`cat conftest.err`
8501$RM -r conftest*
8502
8503
Chris Craikb50c2172013-07-29 15:28:30 -07008504## CAVEAT EMPTOR:
8505## There is no encapsulation within the following macros, do not change
8506## the running order or otherwise move them around unless you know exactly
8507## what you are doing...
Patrick Scott5f6bd842010-06-28 16:55:16 -04008508if test -n "$compiler"; then
8509
8510lt_prog_compiler_no_builtin_flag=
8511
8512if test "$GCC" = yes; then
Chris Craikb50c2172013-07-29 15:28:30 -07008513 case $cc_basename in
8514 nvcc*)
8515 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8516 *)
8517 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8518 esac
Patrick Scott5f6bd842010-06-28 16:55:16 -04008519
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8521$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07008522if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04008523 $as_echo_n "(cached) " >&6
8524else
8525 lt_cv_prog_compiler_rtti_exceptions=no
8526 ac_outfile=conftest.$ac_objext
8527 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8528 lt_compiler_flag="-fno-rtti -fno-exceptions"
8529 # Insert the option either (1) after the last *FLAGS variable, or
8530 # (2) before a word containing "conftest.", or (3) at the end.
8531 # Note that $ac_compile itself does not contain backslashes and begins
8532 # with a dollar sign (not a hyphen), so the echo should work correctly.
8533 # The option is referenced via a variable to avoid confusing sed.
8534 lt_compile=`echo "$ac_compile" | $SED \
8535 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8536 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8537 -e 's:$: $lt_compiler_flag:'`
Chris Craikb50c2172013-07-29 15:28:30 -07008538 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Patrick Scott5f6bd842010-06-28 16:55:16 -04008539 (eval "$lt_compile" 2>conftest.err)
8540 ac_status=$?
8541 cat conftest.err >&5
Chris Craikb50c2172013-07-29 15:28:30 -07008542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Patrick Scott5f6bd842010-06-28 16:55:16 -04008543 if (exit $ac_status) && test -s "$ac_outfile"; then
8544 # The compiler can only warn and ignore the option if not recognized
8545 # So say no if there are warnings other than the usual output.
Chris Craikb50c2172013-07-29 15:28:30 -07008546 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Patrick Scott5f6bd842010-06-28 16:55:16 -04008547 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8548 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8549 lt_cv_prog_compiler_rtti_exceptions=yes
8550 fi
8551 fi
8552 $RM conftest*
8553
8554fi
8555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8556$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8557
8558if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8559 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8560else
8561 :
8562fi
8563
8564fi
8565
8566
8567
8568
8569
8570
8571 lt_prog_compiler_wl=
8572lt_prog_compiler_pic=
8573lt_prog_compiler_static=
8574
Patrick Scott5f6bd842010-06-28 16:55:16 -04008575
8576 if test "$GCC" = yes; then
8577 lt_prog_compiler_wl='-Wl,'
8578 lt_prog_compiler_static='-static'
8579
8580 case $host_os in
8581 aix*)
8582 # All AIX code is PIC.
8583 if test "$host_cpu" = ia64; then
8584 # AIX 5 now supports IA64 processor
8585 lt_prog_compiler_static='-Bstatic'
8586 fi
8587 ;;
8588
8589 amigaos*)
8590 case $host_cpu in
8591 powerpc)
8592 # see comment about AmigaOS4 .so support
8593 lt_prog_compiler_pic='-fPIC'
8594 ;;
8595 m68k)
8596 # FIXME: we need at least 68020 code to build shared libraries, but
8597 # adding the `-m68020' flag to GCC prevents building anything better,
8598 # like `-m68040'.
8599 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8600 ;;
8601 esac
8602 ;;
8603
8604 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8605 # PIC is the default for these OSes.
8606 ;;
8607
8608 mingw* | cygwin* | pw32* | os2* | cegcc*)
8609 # This hack is so that the source file can tell whether it is being
8610 # built for inclusion in a dll (and should export symbols for example).
8611 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8612 # (--disable-auto-import) libraries
8613 lt_prog_compiler_pic='-DDLL_EXPORT'
8614 ;;
8615
8616 darwin* | rhapsody*)
8617 # PIC is the default on this platform
8618 # Common symbols not allowed in MH_DYLIB files
8619 lt_prog_compiler_pic='-fno-common'
8620 ;;
8621
Chris Craikb50c2172013-07-29 15:28:30 -07008622 haiku*)
8623 # PIC is the default for Haiku.
8624 # The "-static" flag exists, but is broken.
8625 lt_prog_compiler_static=
8626 ;;
8627
Patrick Scott5f6bd842010-06-28 16:55:16 -04008628 hpux*)
8629 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8630 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8631 # sets the default TLS model and affects inlining.
8632 case $host_cpu in
8633 hppa*64*)
8634 # +Z the default
8635 ;;
8636 *)
8637 lt_prog_compiler_pic='-fPIC'
8638 ;;
8639 esac
8640 ;;
8641
8642 interix[3-9]*)
8643 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8644 # Instead, we relocate shared libraries at runtime.
8645 ;;
8646
8647 msdosdjgpp*)
8648 # Just because we use GCC doesn't mean we suddenly get shared libraries
8649 # on systems that don't support them.
8650 lt_prog_compiler_can_build_shared=no
8651 enable_shared=no
8652 ;;
8653
8654 *nto* | *qnx*)
8655 # QNX uses GNU C++, but need to define -shared option too, otherwise
8656 # it will coredump.
8657 lt_prog_compiler_pic='-fPIC -shared'
8658 ;;
8659
8660 sysv4*MP*)
8661 if test -d /usr/nec; then
8662 lt_prog_compiler_pic=-Kconform_pic
8663 fi
8664 ;;
8665
8666 *)
8667 lt_prog_compiler_pic='-fPIC'
8668 ;;
8669 esac
Chris Craikb50c2172013-07-29 15:28:30 -07008670
8671 case $cc_basename in
8672 nvcc*) # Cuda Compiler Driver 2.2
8673 lt_prog_compiler_wl='-Xlinker '
8674 if test -n "$lt_prog_compiler_pic"; then
8675 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8676 fi
8677 ;;
8678 esac
Patrick Scott5f6bd842010-06-28 16:55:16 -04008679 else
8680 # PORTME Check for flag to pass linker flags through the system compiler.
8681 case $host_os in
8682 aix*)
8683 lt_prog_compiler_wl='-Wl,'
8684 if test "$host_cpu" = ia64; then
8685 # AIX 5 now supports IA64 processor
8686 lt_prog_compiler_static='-Bstatic'
8687 else
8688 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8689 fi
8690 ;;
8691
8692 mingw* | cygwin* | pw32* | os2* | cegcc*)
8693 # This hack is so that the source file can tell whether it is being
8694 # built for inclusion in a dll (and should export symbols for example).
8695 lt_prog_compiler_pic='-DDLL_EXPORT'
8696 ;;
8697
8698 hpux9* | hpux10* | hpux11*)
8699 lt_prog_compiler_wl='-Wl,'
8700 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8701 # not for PA HP-UX.
8702 case $host_cpu in
8703 hppa*64*|ia64*)
8704 # +Z the default
8705 ;;
8706 *)
8707 lt_prog_compiler_pic='+Z'
8708 ;;
8709 esac
8710 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8711 lt_prog_compiler_static='${wl}-a ${wl}archive'
8712 ;;
8713
8714 irix5* | irix6* | nonstopux*)
8715 lt_prog_compiler_wl='-Wl,'
8716 # PIC (with -KPIC) is the default.
8717 lt_prog_compiler_static='-non_shared'
8718 ;;
8719
Chris Craikb50c2172013-07-29 15:28:30 -07008720 linux* | k*bsd*-gnu | kopensolaris*-gnu)
Patrick Scott5f6bd842010-06-28 16:55:16 -04008721 case $cc_basename in
8722 # old Intel for x86_64 which still supported -KPIC.
8723 ecc*)
8724 lt_prog_compiler_wl='-Wl,'
8725 lt_prog_compiler_pic='-KPIC'
8726 lt_prog_compiler_static='-static'
8727 ;;
8728 # icc used to be incompatible with GCC.
8729 # ICC 10 doesn't accept -KPIC any more.
8730 icc* | ifort*)
8731 lt_prog_compiler_wl='-Wl,'
8732 lt_prog_compiler_pic='-fPIC'
8733 lt_prog_compiler_static='-static'
8734 ;;
8735 # Lahey Fortran 8.1.
8736 lf95*)
8737 lt_prog_compiler_wl='-Wl,'
8738 lt_prog_compiler_pic='--shared'
8739 lt_prog_compiler_static='--static'
8740 ;;
Chris Craikb50c2172013-07-29 15:28:30 -07008741 nagfor*)
8742 # NAG Fortran compiler
8743 lt_prog_compiler_wl='-Wl,-Wl,,'
8744 lt_prog_compiler_pic='-PIC'
8745 lt_prog_compiler_static='-Bstatic'
8746 ;;
8747 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
Patrick Scott5f6bd842010-06-28 16:55:16 -04008748 # Portland Group compilers (*not* the Pentium gcc compiler,
8749 # which looks to be a dead project)
8750 lt_prog_compiler_wl='-Wl,'
8751 lt_prog_compiler_pic='-fpic'
8752 lt_prog_compiler_static='-Bstatic'
8753 ;;
8754 ccc*)
8755 lt_prog_compiler_wl='-Wl,'
8756 # All Alpha code is PIC.
8757 lt_prog_compiler_static='-non_shared'
8758 ;;
Chris Craikb50c2172013-07-29 15:28:30 -07008759 xl* | bgxl* | bgf* | mpixl*)
8760 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
Patrick Scott5f6bd842010-06-28 16:55:16 -04008761 lt_prog_compiler_wl='-Wl,'
8762 lt_prog_compiler_pic='-qpic'
8763 lt_prog_compiler_static='-qstaticlink'
8764 ;;
8765 *)
8766 case `$CC -V 2>&1 | sed 5q` in
Chris Craikb50c2172013-07-29 15:28:30 -07008767 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8768 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8769 lt_prog_compiler_pic='-KPIC'
8770 lt_prog_compiler_static='-Bstatic'
8771 lt_prog_compiler_wl=''
8772 ;;
8773 *Sun\ F* | *Sun*Fortran*)
8774 lt_prog_compiler_pic='-KPIC'
8775 lt_prog_compiler_static='-Bstatic'
8776 lt_prog_compiler_wl='-Qoption ld '
8777 ;;
Patrick Scott5f6bd842010-06-28 16:55:16 -04008778 *Sun\ C*)
8779 # Sun C 5.9
8780 lt_prog_compiler_pic='-KPIC'
8781 lt_prog_compiler_static='-Bstatic'
8782 lt_prog_compiler_wl='-Wl,'
8783 ;;
Chris Craikb50c2172013-07-29 15:28:30 -07008784 *Intel*\ [CF]*Compiler*)
8785 lt_prog_compiler_wl='-Wl,'
8786 lt_prog_compiler_pic='-fPIC'
8787 lt_prog_compiler_static='-static'
8788 ;;
8789 *Portland\ Group*)
8790 lt_prog_compiler_wl='-Wl,'
8791 lt_prog_compiler_pic='-fpic'
Patrick Scott5f6bd842010-06-28 16:55:16 -04008792 lt_prog_compiler_static='-Bstatic'
Patrick Scott5f6bd842010-06-28 16:55:16 -04008793 ;;
8794 esac
8795 ;;
8796 esac
8797 ;;
8798
8799 newsos6)
8800 lt_prog_compiler_pic='-KPIC'
8801 lt_prog_compiler_static='-Bstatic'
8802 ;;
8803
8804 *nto* | *qnx*)
8805 # QNX uses GNU C++, but need to define -shared option too, otherwise
8806 # it will coredump.
8807 lt_prog_compiler_pic='-fPIC -shared'
8808 ;;
8809
8810 osf3* | osf4* | osf5*)
8811 lt_prog_compiler_wl='-Wl,'
8812 # All OSF/1 code is PIC.
8813 lt_prog_compiler_static='-non_shared'
8814 ;;
8815
8816 rdos*)
8817 lt_prog_compiler_static='-non_shared'
8818 ;;
8819
8820 solaris*)
8821 lt_prog_compiler_pic='-KPIC'
8822 lt_prog_compiler_static='-Bstatic'
8823 case $cc_basename in
Chris Craikb50c2172013-07-29 15:28:30 -07008824 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
Patrick Scott5f6bd842010-06-28 16:55:16 -04008825 lt_prog_compiler_wl='-Qoption ld ';;
8826 *)
8827 lt_prog_compiler_wl='-Wl,';;
8828 esac
8829 ;;
8830
8831 sunos4*)
8832 lt_prog_compiler_wl='-Qoption ld '
8833 lt_prog_compiler_pic='-PIC'
8834 lt_prog_compiler_static='-Bstatic'
8835 ;;
8836
8837 sysv4 | sysv4.2uw2* | sysv4.3*)
8838 lt_prog_compiler_wl='-Wl,'
8839 lt_prog_compiler_pic='-KPIC'
8840 lt_prog_compiler_static='-Bstatic'
8841 ;;
8842
8843 sysv4*MP*)
8844 if test -d /usr/nec ;then
8845 lt_prog_compiler_pic='-Kconform_pic'
8846 lt_prog_compiler_static='-Bstatic'
8847 fi
8848 ;;
8849
8850 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8851 lt_prog_compiler_wl='-Wl,'
8852 lt_prog_compiler_pic='-KPIC'
8853 lt_prog_compiler_static='-Bstatic'
8854 ;;
8855
8856 unicos*)
8857 lt_prog_compiler_wl='-Wl,'
8858 lt_prog_compiler_can_build_shared=no
8859 ;;
8860
8861 uts4*)
8862 lt_prog_compiler_pic='-pic'
8863 lt_prog_compiler_static='-Bstatic'
8864 ;;
8865
8866 *)
8867 lt_prog_compiler_can_build_shared=no
8868 ;;
8869 esac
8870 fi
8871
8872case $host_os in
8873 # For platforms which do not support PIC, -DPIC is meaningless:
8874 *djgpp*)
8875 lt_prog_compiler_pic=
8876 ;;
8877 *)
8878 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8879 ;;
8880esac
Patrick Scott5f6bd842010-06-28 16:55:16 -04008881
Chris Craikb50c2172013-07-29 15:28:30 -07008882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8883$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8884if ${lt_cv_prog_compiler_pic+:} false; then :
8885 $as_echo_n "(cached) " >&6
8886else
8887 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8888fi
8889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8890$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8891lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
Patrick Scott5f6bd842010-06-28 16:55:16 -04008892
8893#
8894# Check to make sure the PIC flag actually works.
8895#
8896if test -n "$lt_prog_compiler_pic"; then
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8898$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07008899if ${lt_cv_prog_compiler_pic_works+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04008900 $as_echo_n "(cached) " >&6
8901else
8902 lt_cv_prog_compiler_pic_works=no
8903 ac_outfile=conftest.$ac_objext
8904 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8905 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8906 # Insert the option either (1) after the last *FLAGS variable, or
8907 # (2) before a word containing "conftest.", or (3) at the end.
8908 # Note that $ac_compile itself does not contain backslashes and begins
8909 # with a dollar sign (not a hyphen), so the echo should work correctly.
8910 # The option is referenced via a variable to avoid confusing sed.
8911 lt_compile=`echo "$ac_compile" | $SED \
8912 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8913 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8914 -e 's:$: $lt_compiler_flag:'`
Chris Craikb50c2172013-07-29 15:28:30 -07008915 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Patrick Scott5f6bd842010-06-28 16:55:16 -04008916 (eval "$lt_compile" 2>conftest.err)
8917 ac_status=$?
8918 cat conftest.err >&5
Chris Craikb50c2172013-07-29 15:28:30 -07008919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Patrick Scott5f6bd842010-06-28 16:55:16 -04008920 if (exit $ac_status) && test -s "$ac_outfile"; then
8921 # The compiler can only warn and ignore the option if not recognized
8922 # So say no if there are warnings other than the usual output.
Chris Craikb50c2172013-07-29 15:28:30 -07008923 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Patrick Scott5f6bd842010-06-28 16:55:16 -04008924 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8925 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8926 lt_cv_prog_compiler_pic_works=yes
8927 fi
8928 fi
8929 $RM conftest*
8930
8931fi
8932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8933$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8934
8935if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8936 case $lt_prog_compiler_pic in
8937 "" | " "*) ;;
8938 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8939 esac
8940else
8941 lt_prog_compiler_pic=
8942 lt_prog_compiler_can_build_shared=no
8943fi
8944
8945fi
8946
8947
8948
8949
8950
8951
Chris Craikb50c2172013-07-29 15:28:30 -07008952
8953
8954
8955
8956
Patrick Scott5f6bd842010-06-28 16:55:16 -04008957#
8958# Check to make sure the static flag actually works.
8959#
8960wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8962$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07008963if ${lt_cv_prog_compiler_static_works+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04008964 $as_echo_n "(cached) " >&6
8965else
8966 lt_cv_prog_compiler_static_works=no
8967 save_LDFLAGS="$LDFLAGS"
8968 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8969 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8970 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8971 # The linker can only warn and ignore the option if not recognized
8972 # So say no if there are warnings
8973 if test -s conftest.err; then
8974 # Append any errors to the config.log.
8975 cat conftest.err 1>&5
Chris Craikb50c2172013-07-29 15:28:30 -07008976 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Patrick Scott5f6bd842010-06-28 16:55:16 -04008977 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8978 if diff conftest.exp conftest.er2 >/dev/null; then
8979 lt_cv_prog_compiler_static_works=yes
8980 fi
8981 else
8982 lt_cv_prog_compiler_static_works=yes
8983 fi
8984 fi
8985 $RM -r conftest*
8986 LDFLAGS="$save_LDFLAGS"
8987
8988fi
8989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8990$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8991
8992if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8993 :
8994else
8995 lt_prog_compiler_static=
8996fi
8997
8998
8999
9000
9001
9002
9003
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9005$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07009006if ${lt_cv_prog_compiler_c_o+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04009007 $as_echo_n "(cached) " >&6
9008else
9009 lt_cv_prog_compiler_c_o=no
9010 $RM -r conftest 2>/dev/null
9011 mkdir conftest
9012 cd conftest
9013 mkdir out
9014 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9015
9016 lt_compiler_flag="-o out/conftest2.$ac_objext"
9017 # Insert the option either (1) after the last *FLAGS variable, or
9018 # (2) before a word containing "conftest.", or (3) at the end.
9019 # Note that $ac_compile itself does not contain backslashes and begins
9020 # with a dollar sign (not a hyphen), so the echo should work correctly.
9021 lt_compile=`echo "$ac_compile" | $SED \
9022 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9023 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9024 -e 's:$: $lt_compiler_flag:'`
Chris Craikb50c2172013-07-29 15:28:30 -07009025 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Patrick Scott5f6bd842010-06-28 16:55:16 -04009026 (eval "$lt_compile" 2>out/conftest.err)
9027 ac_status=$?
9028 cat out/conftest.err >&5
Chris Craikb50c2172013-07-29 15:28:30 -07009029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Patrick Scott5f6bd842010-06-28 16:55:16 -04009030 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9031 then
9032 # The compiler can only warn and ignore the option if not recognized
9033 # So say no if there are warnings
Chris Craikb50c2172013-07-29 15:28:30 -07009034 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Patrick Scott5f6bd842010-06-28 16:55:16 -04009035 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9036 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9037 lt_cv_prog_compiler_c_o=yes
9038 fi
9039 fi
9040 chmod u+w . 2>&5
9041 $RM conftest*
9042 # SGI C++ compiler will create directory out/ii_files/ for
9043 # template instantiation
9044 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9045 $RM out/* && rmdir out
9046 cd ..
9047 $RM -r conftest
9048 $RM conftest*
9049
9050fi
9051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9052$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9053
9054
9055
9056
9057
9058
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9060$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -07009061if ${lt_cv_prog_compiler_c_o+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -04009062 $as_echo_n "(cached) " >&6
9063else
9064 lt_cv_prog_compiler_c_o=no
9065 $RM -r conftest 2>/dev/null
9066 mkdir conftest
9067 cd conftest
9068 mkdir out
9069 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9070
9071 lt_compiler_flag="-o out/conftest2.$ac_objext"
9072 # Insert the option either (1) after the last *FLAGS variable, or
9073 # (2) before a word containing "conftest.", or (3) at the end.
9074 # Note that $ac_compile itself does not contain backslashes and begins
9075 # with a dollar sign (not a hyphen), so the echo should work correctly.
9076 lt_compile=`echo "$ac_compile" | $SED \
9077 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9078 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9079 -e 's:$: $lt_compiler_flag:'`
Chris Craikb50c2172013-07-29 15:28:30 -07009080 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Patrick Scott5f6bd842010-06-28 16:55:16 -04009081 (eval "$lt_compile" 2>out/conftest.err)
9082 ac_status=$?
9083 cat out/conftest.err >&5
Chris Craikb50c2172013-07-29 15:28:30 -07009084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Patrick Scott5f6bd842010-06-28 16:55:16 -04009085 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9086 then
9087 # The compiler can only warn and ignore the option if not recognized
9088 # So say no if there are warnings
Chris Craikb50c2172013-07-29 15:28:30 -07009089 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Patrick Scott5f6bd842010-06-28 16:55:16 -04009090 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9091 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9092 lt_cv_prog_compiler_c_o=yes
9093 fi
9094 fi
9095 chmod u+w . 2>&5
9096 $RM conftest*
9097 # SGI C++ compiler will create directory out/ii_files/ for
9098 # template instantiation
9099 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9100 $RM out/* && rmdir out
9101 cd ..
9102 $RM -r conftest
9103 $RM conftest*
9104
9105fi
9106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9107$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9108
9109
9110
9111
9112hard_links="nottested"
9113if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9114 # do not overwrite the value of need_locks provided by the user
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9116$as_echo_n "checking if we can lock with hard links... " >&6; }
9117 hard_links=yes
9118 $RM conftest*
9119 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9120 touch conftest.a
9121 ln conftest.a conftest.b 2>&5 || hard_links=no
9122 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9124$as_echo "$hard_links" >&6; }
9125 if test "$hard_links" = no; then
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9127$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9128 need_locks=warn
9129 fi
9130else
9131 need_locks=no
9132fi
9133
9134
9135
9136
9137
9138
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9140$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9141
9142 runpath_var=
9143 allow_undefined_flag=
9144 always_export_symbols=no
9145 archive_cmds=
9146 archive_expsym_cmds=
9147 compiler_needs_object=no
9148 enable_shared_with_static_runtimes=no
9149 export_dynamic_flag_spec=
9150 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9151 hardcode_automatic=no
9152 hardcode_direct=no
9153 hardcode_direct_absolute=no
9154 hardcode_libdir_flag_spec=
Patrick Scott5f6bd842010-06-28 16:55:16 -04009155 hardcode_libdir_separator=
9156 hardcode_minus_L=no
9157 hardcode_shlibpath_var=unsupported
9158 inherit_rpath=no
9159 link_all_deplibs=unknown
9160 module_cmds=
9161 module_expsym_cmds=
9162 old_archive_from_new_cmds=
9163 old_archive_from_expsyms_cmds=
9164 thread_safe_flag_spec=
9165 whole_archive_flag_spec=
9166 # include_expsyms should be a list of space-separated symbols to be *always*
9167 # included in the symbol list
9168 include_expsyms=
9169 # exclude_expsyms can be an extended regexp of symbols to exclude
9170 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9171 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9172 # as well as any symbol that contains `d'.
9173 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9174 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9175 # platforms (ab)use it in PIC code, but their linkers get confused if
9176 # the symbol is explicitly referenced. Since portable code cannot
9177 # rely on this symbol name, it's probably fine to never include it in
9178 # preloaded symbol tables.
9179 # Exclude shared library initialization/finalization symbols.
9180 extract_expsyms_cmds=
9181
9182 case $host_os in
9183 cygwin* | mingw* | pw32* | cegcc*)
9184 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9185 # When not using gcc, we currently assume that we are using
9186 # Microsoft Visual C++.
9187 if test "$GCC" != yes; then
9188 with_gnu_ld=no
9189 fi
9190 ;;
9191 interix*)
9192 # we just hope/assume this is gcc and not c89 (= MSVC++)
9193 with_gnu_ld=yes
9194 ;;
9195 openbsd*)
9196 with_gnu_ld=no
9197 ;;
9198 esac
9199
9200 ld_shlibs=yes
Chris Craikb50c2172013-07-29 15:28:30 -07009201
9202 # On some targets, GNU ld is compatible enough with the native linker
9203 # that we're better off using the native interface for both.
9204 lt_use_gnu_ld_interface=no
Patrick Scott5f6bd842010-06-28 16:55:16 -04009205 if test "$with_gnu_ld" = yes; then
Chris Craikb50c2172013-07-29 15:28:30 -07009206 case $host_os in
9207 aix*)
9208 # The AIX port of GNU ld has always aspired to compatibility
9209 # with the native linker. However, as the warning in the GNU ld
9210 # block says, versions before 2.19.5* couldn't really create working
9211 # shared libraries, regardless of the interface used.
9212 case `$LD -v 2>&1` in
9213 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9214 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9215 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9216 *)
9217 lt_use_gnu_ld_interface=yes
9218 ;;
9219 esac
9220 ;;
9221 *)
9222 lt_use_gnu_ld_interface=yes
9223 ;;
9224 esac
9225 fi
9226
9227 if test "$lt_use_gnu_ld_interface" = yes; then
Patrick Scott5f6bd842010-06-28 16:55:16 -04009228 # If archive_cmds runs LD, not CC, wlarc should be empty
9229 wlarc='${wl}'
9230
9231 # Set some defaults for GNU ld with shared library support. These
9232 # are reset later if shared libraries are not supported. Putting them
9233 # here allows them to be overridden if necessary.
9234 runpath_var=LD_RUN_PATH
9235 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9236 export_dynamic_flag_spec='${wl}--export-dynamic'
9237 # ancient GNU ld didn't support --whole-archive et. al.
9238 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9239 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9240 else
9241 whole_archive_flag_spec=
9242 fi
9243 supports_anon_versioning=no
9244 case `$LD -v 2>&1` in
Chris Craikb50c2172013-07-29 15:28:30 -07009245 *GNU\ gold*) supports_anon_versioning=yes ;;
Patrick Scott5f6bd842010-06-28 16:55:16 -04009246 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9247 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9248 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9249 *\ 2.11.*) ;; # other 2.11 versions
9250 *) supports_anon_versioning=yes ;;
9251 esac
9252
9253 # See if GNU ld supports shared libraries.
9254 case $host_os in
9255 aix[3-9]*)
9256 # On AIX/PPC, the GNU linker is very broken
9257 if test "$host_cpu" != ia64; then
9258 ld_shlibs=no
9259 cat <<_LT_EOF 1>&2
9260
Chris Craikb50c2172013-07-29 15:28:30 -07009261*** Warning: the GNU linker, at least up to release 2.19, is reported
Patrick Scott5f6bd842010-06-28 16:55:16 -04009262*** to be unable to reliably create shared libraries on AIX.
9263*** Therefore, libtool is disabling shared libraries support. If you
Chris Craikb50c2172013-07-29 15:28:30 -07009264*** really care for shared libraries, you may want to install binutils
9265*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9266*** You will then need to restart the configuration process.
Patrick Scott5f6bd842010-06-28 16:55:16 -04009267
9268_LT_EOF
9269 fi
9270 ;;
9271
9272 amigaos*)
9273 case $host_cpu in
9274 powerpc)
9275 # see comment about AmigaOS4 .so support
9276 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9277 archive_expsym_cmds=''
9278 ;;
9279 m68k)
9280 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)'
9281 hardcode_libdir_flag_spec='-L$libdir'
9282 hardcode_minus_L=yes
9283 ;;
9284 esac
9285 ;;
9286
9287 beos*)
9288 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9289 allow_undefined_flag=unsupported
9290 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9291 # support --undefined. This deserves some investigation. FIXME
9292 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9293 else
9294 ld_shlibs=no
9295 fi
9296 ;;
9297
9298 cygwin* | mingw* | pw32* | cegcc*)
9299 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9300 # as there is no search path for DLLs.
9301 hardcode_libdir_flag_spec='-L$libdir'
Chris Craikb50c2172013-07-29 15:28:30 -07009302 export_dynamic_flag_spec='${wl}--export-all-symbols'
Patrick Scott5f6bd842010-06-28 16:55:16 -04009303 allow_undefined_flag=unsupported
9304 always_export_symbols=no
9305 enable_shared_with_static_runtimes=yes
Chris Craikb50c2172013-07-29 15:28:30 -07009306 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9307 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
Patrick Scott5f6bd842010-06-28 16:55:16 -04009308
9309 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9310 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9311 # If the export-symbols file already is a .def file (1st line
9312 # is EXPORTS), use it as is; otherwise, prepend...
9313 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9314 cp $export_symbols $output_objdir/$soname.def;
9315 else
9316 echo EXPORTS > $output_objdir/$soname.def;
9317 cat $export_symbols >> $output_objdir/$soname.def;
9318 fi~
9319 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9320 else
9321 ld_shlibs=no
9322 fi
9323 ;;
9324
Chris Craikb50c2172013-07-29 15:28:30 -07009325 haiku*)
9326 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9327 link_all_deplibs=yes
9328 ;;
9329
Patrick Scott5f6bd842010-06-28 16:55:16 -04009330 interix[3-9]*)
9331 hardcode_direct=no
9332 hardcode_shlibpath_var=no
9333 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9334 export_dynamic_flag_spec='${wl}-E'
9335 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9336 # Instead, shared libraries are loaded at an image base (0x10000000 by
9337 # default) and relocated if they conflict, which is a slow very memory
9338 # consuming and fragmenting process. To avoid this, we pick a random,
9339 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9340 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9341 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9342 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'
9343 ;;
9344
Chris Craikb50c2172013-07-29 15:28:30 -07009345 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
Patrick Scott5f6bd842010-06-28 16:55:16 -04009346 tmp_diet=no
9347 if test "$host_os" = linux-dietlibc; then
9348 case $cc_basename in
9349 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9350 esac
9351 fi
9352 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9353 && test "$tmp_diet" = no
9354 then
Chris Craikb50c2172013-07-29 15:28:30 -07009355 tmp_addflag=' $pic_flag'
Patrick Scott5f6bd842010-06-28 16:55:16 -04009356 tmp_sharedflag='-shared'
9357 case $cc_basename,$host_cpu in
9358 pgcc*) # Portland Group C compiler
Chris Craikb50c2172013-07-29 15:28:30 -07009359 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
Patrick Scott5f6bd842010-06-28 16:55:16 -04009360 tmp_addflag=' $pic_flag'
9361 ;;
Chris Craikb50c2172013-07-29 15:28:30 -07009362 pgf77* | pgf90* | pgf95* | pgfortran*)
9363 # Portland Group f77 and f90 compilers
9364 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
Patrick Scott5f6bd842010-06-28 16:55:16 -04009365 tmp_addflag=' $pic_flag -Mnomain' ;;
9366 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9367 tmp_addflag=' -i_dynamic' ;;
9368 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9369 tmp_addflag=' -i_dynamic -nofor_main' ;;
9370 ifc* | ifort*) # Intel Fortran compiler
9371 tmp_addflag=' -nofor_main' ;;
9372 lf95*) # Lahey Fortran 8.1
9373 whole_archive_flag_spec=
9374 tmp_sharedflag='--shared' ;;
Chris Craikb50c2172013-07-29 15:28:30 -07009375 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
Patrick Scott5f6bd842010-06-28 16:55:16 -04009376 tmp_sharedflag='-qmkshrobj'
9377 tmp_addflag= ;;
Chris Craikb50c2172013-07-29 15:28:30 -07009378 nvcc*) # Cuda Compiler Driver 2.2
9379 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9380 compiler_needs_object=yes
9381 ;;
Patrick Scott5f6bd842010-06-28 16:55:16 -04009382 esac
9383 case `$CC -V 2>&1 | sed 5q` in
9384 *Sun\ C*) # Sun C 5.9
Chris Craikb50c2172013-07-29 15:28:30 -07009385 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
Patrick Scott5f6bd842010-06-28 16:55:16 -04009386 compiler_needs_object=yes
9387 tmp_sharedflag='-G' ;;
9388 *Sun\ F*) # Sun Fortran 8.3
9389 tmp_sharedflag='-G' ;;
9390 esac
9391 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9392
9393 if test "x$supports_anon_versioning" = xyes; then
9394 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9395 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9396 echo "local: *; };" >> $output_objdir/$libname.ver~
9397 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9398 fi
9399
9400 case $cc_basename in
Chris Craikb50c2172013-07-29 15:28:30 -07009401 xlf* | bgf* | bgxlf* | mpixlf*)
Patrick Scott5f6bd842010-06-28 16:55:16 -04009402 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9403 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
Chris Craikb50c2172013-07-29 15:28:30 -07009404 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9405 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
Patrick Scott5f6bd842010-06-28 16:55:16 -04009406 if test "x$supports_anon_versioning" = xyes; then
9407 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9408 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9409 echo "local: *; };" >> $output_objdir/$libname.ver~
Chris Craikb50c2172013-07-29 15:28:30 -07009410 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
Patrick Scott5f6bd842010-06-28 16:55:16 -04009411 fi
9412 ;;
9413 esac
9414 else
9415 ld_shlibs=no
9416 fi
9417 ;;
9418
9419 netbsd*)
9420 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9421 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9422 wlarc=
9423 else
Chris Craikb50c2172013-07-29 15:28:30 -07009424 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9425 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Patrick Scott5f6bd842010-06-28 16:55:16 -04009426 fi
9427 ;;
9428
9429 solaris*)
9430 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9431 ld_shlibs=no
9432 cat <<_LT_EOF 1>&2
9433
9434*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9435*** create shared libraries on Solaris systems. Therefore, libtool
9436*** is disabling shared libraries support. We urge you to upgrade GNU
9437*** binutils to release 2.9.1 or newer. Another option is to modify
9438*** your PATH or compiler configuration so that the native linker is
9439*** used, and then restart.
9440
9441_LT_EOF
9442 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris Craikb50c2172013-07-29 15:28:30 -07009443 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9444 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Patrick Scott5f6bd842010-06-28 16:55:16 -04009445 else
9446 ld_shlibs=no
9447 fi
9448 ;;
9449
9450 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9451 case `$LD -v 2>&1` in
9452 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9453 ld_shlibs=no
9454 cat <<_LT_EOF 1>&2
9455
9456*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9457*** reliably create shared libraries on SCO systems. Therefore, libtool
9458*** is disabling shared libraries support. We urge you to upgrade GNU
9459*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9460*** your PATH or compiler configuration so that the native linker is
9461*** used, and then restart.
9462
9463_LT_EOF
9464 ;;
9465 *)
9466 # For security reasons, it is highly recommended that you always
9467 # use absolute paths for naming shared libraries, and exclude the
9468 # DT_RUNPATH tag from executables and libraries. But doing so
9469 # requires that you compile everything twice, which is a pain.
9470 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9471 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9472 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9473 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9474 else
9475 ld_shlibs=no
9476 fi
9477 ;;
9478 esac
9479 ;;
9480
9481 sunos4*)
9482 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9483 wlarc=
9484 hardcode_direct=yes
9485 hardcode_shlibpath_var=no
9486 ;;
9487
9488 *)
9489 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Chris Craikb50c2172013-07-29 15:28:30 -07009490 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9491 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Patrick Scott5f6bd842010-06-28 16:55:16 -04009492 else
9493 ld_shlibs=no
9494 fi
9495 ;;
9496 esac
9497
9498 if test "$ld_shlibs" = no; then
9499 runpath_var=
9500 hardcode_libdir_flag_spec=
9501 export_dynamic_flag_spec=
9502 whole_archive_flag_spec=
9503 fi
9504 else
9505 # PORTME fill in a description of your system's linker (not GNU ld)
9506 case $host_os in
9507 aix3*)
9508 allow_undefined_flag=unsupported
9509 always_export_symbols=yes
9510 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'
9511 # Note: this linker hardcodes the directories in LIBPATH if there
9512 # are no directories specified by -L.
9513 hardcode_minus_L=yes
9514 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9515 # Neither direct hardcoding nor static linking is supported with a
9516 # broken collect2.
9517 hardcode_direct=unsupported
9518 fi
9519 ;;
9520
9521 aix[4-9]*)
9522 if test "$host_cpu" = ia64; then
9523 # On IA64, the linker does run time linking by default, so we don't
9524 # have to do anything special.
9525 aix_use_runtimelinking=no
9526 exp_sym_flag='-Bexport'
9527 no_entry_flag=""
9528 else
9529 # If we're using GNU nm, then we don't want the "-C" option.
9530 # -C means demangle to AIX nm, but means don't demangle with GNU nm
Chris Craikb50c2172013-07-29 15:28:30 -07009531 # Also, AIX nm treats weak defined symbols like other global
9532 # defined symbols, whereas GNU nm marks them as "W".
Patrick Scott5f6bd842010-06-28 16:55:16 -04009533 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Chris Craikb50c2172013-07-29 15:28:30 -07009534 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
Patrick Scott5f6bd842010-06-28 16:55:16 -04009535 else
9536 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'
9537 fi
9538 aix_use_runtimelinking=no
9539
9540 # Test if we are trying to use run time linking or normal
9541 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9542 # need to do runtime linking.
9543 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9544 for ld_flag in $LDFLAGS; do
9545 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9546 aix_use_runtimelinking=yes
9547 break
9548 fi
9549 done
9550 ;;
9551 esac
9552
9553 exp_sym_flag='-bexport'
9554 no_entry_flag='-bnoentry'
9555 fi
9556
9557 # When large executables or shared objects are built, AIX ld can
9558 # have problems creating the table of contents. If linking a library
9559 # or program results in "error TOC overflow" add -mminimal-toc to
9560 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9561 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9562
9563 archive_cmds=''
9564 hardcode_direct=yes
9565 hardcode_direct_absolute=yes
9566 hardcode_libdir_separator=':'
9567 link_all_deplibs=yes
9568 file_list_spec='${wl}-f,'
9569
9570 if test "$GCC" = yes; then
9571 case $host_os in aix4.[012]|aix4.[012].*)
9572 # We only want to do this on AIX 4.2 and lower, the check
9573 # below for broken collect2 doesn't work under 4.3+
9574 collect2name=`${CC} -print-prog-name=collect2`
9575 if test -f "$collect2name" &&
9576 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9577 then
9578 # We have reworked collect2
9579 :
9580 else
9581 # We have old collect2
9582 hardcode_direct=unsupported
9583 # It fails to find uninstalled libraries when the uninstalled
9584 # path is not listed in the libpath. Setting hardcode_minus_L
9585 # to unsupported forces relinking
9586 hardcode_minus_L=yes
9587 hardcode_libdir_flag_spec='-L$libdir'
9588 hardcode_libdir_separator=
9589 fi
9590 ;;
9591 esac
9592 shared_flag='-shared'
9593 if test "$aix_use_runtimelinking" = yes; then
9594 shared_flag="$shared_flag "'${wl}-G'
9595 fi
9596 else
9597 # not using gcc
9598 if test "$host_cpu" = ia64; then
9599 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9600 # chokes on -Wl,-G. The following line is correct:
9601 shared_flag='-G'
9602 else
9603 if test "$aix_use_runtimelinking" = yes; then
9604 shared_flag='${wl}-G'
9605 else
9606 shared_flag='${wl}-bM:SRE'
9607 fi
9608 fi
9609 fi
9610
9611 export_dynamic_flag_spec='${wl}-bexpall'
9612 # It seems that -bexpall does not export symbols beginning with
9613 # underscore (_), so it is better to generate a list of symbols to export.
9614 always_export_symbols=yes
9615 if test "$aix_use_runtimelinking" = yes; then
9616 # Warning - without using the other runtime loading flags (-brtl),
9617 # -berok will link without error, but may produce a broken library.
9618 allow_undefined_flag='-berok'
9619 # Determine the default libpath from the value encoded in an
9620 # empty executable.
Chris Craikb50c2172013-07-29 15:28:30 -07009621 if test "${lt_cv_aix_libpath+set}" = set; then
9622 aix_libpath=$lt_cv_aix_libpath
9623else
9624 if ${lt_cv_aix_libpath_+:} false; then :
9625 $as_echo_n "(cached) " >&6
9626else
9627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Patrick Scott5f6bd842010-06-28 16:55:16 -04009628/* end confdefs.h. */
9629
9630int
9631main ()
9632{
9633
9634 ;
9635 return 0;
9636}
9637_ACEOF
9638if ac_fn_c_try_link "$LINENO"; then :
9639
Chris Craikb50c2172013-07-29 15:28:30 -07009640 lt_aix_libpath_sed='
9641 /Import File Strings/,/^$/ {
9642 /^0/ {
9643 s/^0 *\([^ ]*\) *$/\1/
9644 p
9645 }
9646 }'
9647 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9648 # Check for a 64-bit object if we didn't find anything.
9649 if test -z "$lt_cv_aix_libpath_"; then
9650 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9651 fi
Patrick Scott5f6bd842010-06-28 16:55:16 -04009652fi
9653rm -f core conftest.err conftest.$ac_objext \
9654 conftest$ac_exeext conftest.$ac_ext
Chris Craikb50c2172013-07-29 15:28:30 -07009655 if test -z "$lt_cv_aix_libpath_"; then
9656 lt_cv_aix_libpath_="/usr/lib:/lib"
9657 fi
9658
9659fi
9660
9661 aix_libpath=$lt_cv_aix_libpath_
9662fi
Patrick Scott5f6bd842010-06-28 16:55:16 -04009663
9664 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Chris Craikb50c2172013-07-29 15:28:30 -07009665 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
Patrick Scott5f6bd842010-06-28 16:55:16 -04009666 else
9667 if test "$host_cpu" = ia64; then
9668 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9669 allow_undefined_flag="-z nodefs"
9670 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"
9671 else
9672 # Determine the default libpath from the value encoded in an
9673 # empty executable.
Chris Craikb50c2172013-07-29 15:28:30 -07009674 if test "${lt_cv_aix_libpath+set}" = set; then
9675 aix_libpath=$lt_cv_aix_libpath
9676else
9677 if ${lt_cv_aix_libpath_+:} false; then :
9678 $as_echo_n "(cached) " >&6
9679else
9680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Patrick Scott5f6bd842010-06-28 16:55:16 -04009681/* end confdefs.h. */
9682
9683int
9684main ()
9685{
9686
9687 ;
9688 return 0;
9689}
9690_ACEOF
9691if ac_fn_c_try_link "$LINENO"; then :
9692
Chris Craikb50c2172013-07-29 15:28:30 -07009693 lt_aix_libpath_sed='
9694 /Import File Strings/,/^$/ {
9695 /^0/ {
9696 s/^0 *\([^ ]*\) *$/\1/
9697 p
9698 }
9699 }'
9700 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9701 # Check for a 64-bit object if we didn't find anything.
9702 if test -z "$lt_cv_aix_libpath_"; then
9703 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9704 fi
Patrick Scott5f6bd842010-06-28 16:55:16 -04009705fi
9706rm -f core conftest.err conftest.$ac_objext \
9707 conftest$ac_exeext conftest.$ac_ext
Chris Craikb50c2172013-07-29 15:28:30 -07009708 if test -z "$lt_cv_aix_libpath_"; then
9709 lt_cv_aix_libpath_="/usr/lib:/lib"
9710 fi
9711
9712fi
9713
9714 aix_libpath=$lt_cv_aix_libpath_
9715fi
Patrick Scott5f6bd842010-06-28 16:55:16 -04009716
9717 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9718 # Warning - without using the other run time loading flags,
9719 # -berok will link without error, but may produce a broken library.
9720 no_undefined_flag=' ${wl}-bernotok'
9721 allow_undefined_flag=' ${wl}-berok'
Chris Craikb50c2172013-07-29 15:28:30 -07009722 if test "$with_gnu_ld" = yes; then
9723 # We only use this code for GNU lds that support --whole-archive.
9724 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9725 else
9726 # Exported symbols can be pulled into shared objects from archives
9727 whole_archive_flag_spec='$convenience'
9728 fi
Patrick Scott5f6bd842010-06-28 16:55:16 -04009729 archive_cmds_need_lc=yes
9730 # This is similar to how AIX traditionally builds its shared libraries.
9731 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'
9732 fi
9733 fi
9734 ;;
9735
9736 amigaos*)
9737 case $host_cpu in
9738 powerpc)
9739 # see comment about AmigaOS4 .so support
9740 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9741 archive_expsym_cmds=''
9742 ;;
9743 m68k)
9744 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)'
9745 hardcode_libdir_flag_spec='-L$libdir'
9746 hardcode_minus_L=yes
9747 ;;
9748 esac
9749 ;;
9750
9751 bsdi[45]*)
9752 export_dynamic_flag_spec=-rdynamic
9753 ;;
9754
9755 cygwin* | mingw* | pw32* | cegcc*)
9756 # When not using gcc, we currently assume that we are using
9757 # Microsoft Visual C++.
9758 # hardcode_libdir_flag_spec is actually meaningless, as there is
9759 # no search path for DLLs.
Chris Craikb50c2172013-07-29 15:28:30 -07009760 case $cc_basename in
9761 cl*)
9762 # Native MSVC
9763 hardcode_libdir_flag_spec=' '
9764 allow_undefined_flag=unsupported
9765 always_export_symbols=yes
9766 file_list_spec='@'
9767 # Tell ltmain to make .lib files, not .a files.
9768 libext=lib
9769 # Tell ltmain to make .dll files, not .so files.
9770 shrext_cmds=".dll"
9771 # FIXME: Setting linknames here is a bad hack.
9772 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9773 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9774 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9775 else
9776 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9777 fi~
9778 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9779 linknames='
9780 # The linker will not automatically build a static lib if we build a DLL.
9781 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9782 enable_shared_with_static_runtimes=yes
9783 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9784 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9785 # Don't use ranlib
9786 old_postinstall_cmds='chmod 644 $oldlib'
9787 postlink_cmds='lt_outputfile="@OUTPUT@"~
9788 lt_tool_outputfile="@TOOL_OUTPUT@"~
9789 case $lt_outputfile in
9790 *.exe|*.EXE) ;;
9791 *)
9792 lt_outputfile="$lt_outputfile.exe"
9793 lt_tool_outputfile="$lt_tool_outputfile.exe"
9794 ;;
9795 esac~
9796 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9797 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9798 $RM "$lt_outputfile.manifest";
9799 fi'
9800 ;;
9801 *)
9802 # Assume MSVC wrapper
9803 hardcode_libdir_flag_spec=' '
9804 allow_undefined_flag=unsupported
9805 # Tell ltmain to make .lib files, not .a files.
9806 libext=lib
9807 # Tell ltmain to make .dll files, not .so files.
9808 shrext_cmds=".dll"
9809 # FIXME: Setting linknames here is a bad hack.
9810 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9811 # The linker will automatically build a .lib file if we build a DLL.
9812 old_archive_from_new_cmds='true'
9813 # FIXME: Should let the user specify the lib program.
9814 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9815 enable_shared_with_static_runtimes=yes
9816 ;;
9817 esac
Patrick Scott5f6bd842010-06-28 16:55:16 -04009818 ;;
9819
9820 darwin* | rhapsody*)
9821
9822
9823 archive_cmds_need_lc=no
9824 hardcode_direct=no
9825 hardcode_automatic=yes
9826 hardcode_shlibpath_var=unsupported
Chris Craikb50c2172013-07-29 15:28:30 -07009827 if test "$lt_cv_ld_force_load" = "yes"; then
9828 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9829
9830 else
9831 whole_archive_flag_spec=''
9832 fi
Patrick Scott5f6bd842010-06-28 16:55:16 -04009833 link_all_deplibs=yes
9834 allow_undefined_flag="$_lt_dar_allow_undefined"
9835 case $cc_basename in
9836 ifort*) _lt_dar_can_shared=yes ;;
9837 *) _lt_dar_can_shared=$GCC ;;
9838 esac
9839 if test "$_lt_dar_can_shared" = "yes"; then
Chris Craikb50c2172013-07-29 15:28:30 -07009840 output_verbose_link_cmd=func_echo_all
Patrick Scott5f6bd842010-06-28 16:55:16 -04009841 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9842 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9843 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}"
9844 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}"
9845
9846 else
9847 ld_shlibs=no
9848 fi
9849
9850 ;;
9851
9852 dgux*)
9853 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9854 hardcode_libdir_flag_spec='-L$libdir'
9855 hardcode_shlibpath_var=no
9856 ;;
9857
Patrick Scott5f6bd842010-06-28 16:55:16 -04009858 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9859 # support. Future versions do this automatically, but an explicit c++rt0.o
9860 # does not break anything, and helps significantly (at the cost of a little
9861 # extra space).
9862 freebsd2.2*)
9863 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9864 hardcode_libdir_flag_spec='-R$libdir'
9865 hardcode_direct=yes
9866 hardcode_shlibpath_var=no
9867 ;;
9868
9869 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
Chris Craikb50c2172013-07-29 15:28:30 -07009870 freebsd2.*)
Patrick Scott5f6bd842010-06-28 16:55:16 -04009871 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9872 hardcode_direct=yes
9873 hardcode_minus_L=yes
9874 hardcode_shlibpath_var=no
9875 ;;
9876
9877 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9878 freebsd* | dragonfly*)
Chris Craikb50c2172013-07-29 15:28:30 -07009879 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Patrick Scott5f6bd842010-06-28 16:55:16 -04009880 hardcode_libdir_flag_spec='-R$libdir'
9881 hardcode_direct=yes
9882 hardcode_shlibpath_var=no
9883 ;;
9884
9885 hpux9*)
9886 if test "$GCC" = yes; then
Chris Craikb50c2172013-07-29 15:28:30 -07009887 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
Patrick Scott5f6bd842010-06-28 16:55:16 -04009888 else
9889 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'
9890 fi
9891 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9892 hardcode_libdir_separator=:
9893 hardcode_direct=yes
9894
9895 # hardcode_minus_L: Not really in the search PATH,
9896 # but as the default location of the library.
9897 hardcode_minus_L=yes
9898 export_dynamic_flag_spec='${wl}-E'
9899 ;;
9900
9901 hpux10*)
Chris Craikb50c2172013-07-29 15:28:30 -07009902 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9903 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Patrick Scott5f6bd842010-06-28 16:55:16 -04009904 else
9905 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9906 fi
9907 if test "$with_gnu_ld" = no; then
9908 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Patrick Scott5f6bd842010-06-28 16:55:16 -04009909 hardcode_libdir_separator=:
9910 hardcode_direct=yes
9911 hardcode_direct_absolute=yes
9912 export_dynamic_flag_spec='${wl}-E'
9913 # hardcode_minus_L: Not really in the search PATH,
9914 # but as the default location of the library.
9915 hardcode_minus_L=yes
9916 fi
9917 ;;
9918
9919 hpux11*)
Chris Craikb50c2172013-07-29 15:28:30 -07009920 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
Patrick Scott5f6bd842010-06-28 16:55:16 -04009921 case $host_cpu in
9922 hppa*64*)
9923 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9924 ;;
9925 ia64*)
Chris Craikb50c2172013-07-29 15:28:30 -07009926 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Patrick Scott5f6bd842010-06-28 16:55:16 -04009927 ;;
9928 *)
Chris Craikb50c2172013-07-29 15:28:30 -07009929 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Patrick Scott5f6bd842010-06-28 16:55:16 -04009930 ;;
9931 esac
9932 else
9933 case $host_cpu in
9934 hppa*64*)
9935 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9936 ;;
9937 ia64*)
9938 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9939 ;;
9940 *)
Chris Craikb50c2172013-07-29 15:28:30 -07009941
9942 # Older versions of the 11.00 compiler do not understand -b yet
9943 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9945$as_echo_n "checking if $CC understands -b... " >&6; }
9946if ${lt_cv_prog_compiler__b+:} false; then :
9947 $as_echo_n "(cached) " >&6
9948else
9949 lt_cv_prog_compiler__b=no
9950 save_LDFLAGS="$LDFLAGS"
9951 LDFLAGS="$LDFLAGS -b"
9952 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9953 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9954 # The linker can only warn and ignore the option if not recognized
9955 # So say no if there are warnings
9956 if test -s conftest.err; then
9957 # Append any errors to the config.log.
9958 cat conftest.err 1>&5
9959 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9960 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9961 if diff conftest.exp conftest.er2 >/dev/null; then
9962 lt_cv_prog_compiler__b=yes
9963 fi
9964 else
9965 lt_cv_prog_compiler__b=yes
9966 fi
9967 fi
9968 $RM -r conftest*
9969 LDFLAGS="$save_LDFLAGS"
9970
9971fi
9972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9973$as_echo "$lt_cv_prog_compiler__b" >&6; }
9974
9975if test x"$lt_cv_prog_compiler__b" = xyes; then
9976 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9977else
9978 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9979fi
9980
Patrick Scott5f6bd842010-06-28 16:55:16 -04009981 ;;
9982 esac
9983 fi
9984 if test "$with_gnu_ld" = no; then
9985 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9986 hardcode_libdir_separator=:
9987
9988 case $host_cpu in
9989 hppa*64*|ia64*)
9990 hardcode_direct=no
9991 hardcode_shlibpath_var=no
9992 ;;
9993 *)
9994 hardcode_direct=yes
9995 hardcode_direct_absolute=yes
9996 export_dynamic_flag_spec='${wl}-E'
9997
9998 # hardcode_minus_L: Not really in the search PATH,
9999 # but as the default location of the library.
10000 hardcode_minus_L=yes
10001 ;;
10002 esac
10003 fi
10004 ;;
10005
10006 irix5* | irix6* | nonstopux*)
10007 if test "$GCC" = yes; then
Chris Craikb50c2172013-07-29 15:28:30 -070010008 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Patrick Scott5f6bd842010-06-28 16:55:16 -040010009 # Try to use the -exported_symbol ld option, if it does not
10010 # work, assume that -exports_file does not work either and
10011 # implicitly export all symbols.
Chris Craikb50c2172013-07-29 15:28:30 -070010012 # This should be the same for all languages, so no per-tag cache variable.
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10014$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10015if ${lt_cv_irix_exported_symbol+:} false; then :
10016 $as_echo_n "(cached) " >&6
10017else
10018 save_LDFLAGS="$LDFLAGS"
10019 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Patrick Scott5f6bd842010-06-28 16:55:16 -040010021/* end confdefs.h. */
Chris Craikb50c2172013-07-29 15:28:30 -070010022int foo (void) { return 0; }
Patrick Scott5f6bd842010-06-28 16:55:16 -040010023_ACEOF
10024if ac_fn_c_try_link "$LINENO"; then :
Chris Craikb50c2172013-07-29 15:28:30 -070010025 lt_cv_irix_exported_symbol=yes
10026else
10027 lt_cv_irix_exported_symbol=no
Patrick Scott5f6bd842010-06-28 16:55:16 -040010028fi
10029rm -f core conftest.err conftest.$ac_objext \
10030 conftest$ac_exeext conftest.$ac_ext
Chris Craikb50c2172013-07-29 15:28:30 -070010031 LDFLAGS="$save_LDFLAGS"
10032fi
10033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10034$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10035 if test "$lt_cv_irix_exported_symbol" = yes; then
10036 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10037 fi
Patrick Scott5f6bd842010-06-28 16:55:16 -040010038 else
Chris Craikb50c2172013-07-29 15:28:30 -070010039 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10040 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
Patrick Scott5f6bd842010-06-28 16:55:16 -040010041 fi
10042 archive_cmds_need_lc='no'
10043 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10044 hardcode_libdir_separator=:
10045 inherit_rpath=yes
10046 link_all_deplibs=yes
10047 ;;
10048
10049 netbsd*)
10050 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10051 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10052 else
10053 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10054 fi
10055 hardcode_libdir_flag_spec='-R$libdir'
10056 hardcode_direct=yes
10057 hardcode_shlibpath_var=no
10058 ;;
10059
10060 newsos6)
10061 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10062 hardcode_direct=yes
10063 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10064 hardcode_libdir_separator=:
10065 hardcode_shlibpath_var=no
10066 ;;
10067
10068 *nto* | *qnx*)
10069 ;;
10070
10071 openbsd*)
10072 if test -f /usr/libexec/ld.so; then
10073 hardcode_direct=yes
10074 hardcode_shlibpath_var=no
10075 hardcode_direct_absolute=yes
10076 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10077 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10078 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10079 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10080 export_dynamic_flag_spec='${wl}-E'
10081 else
10082 case $host_os in
10083 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10084 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10085 hardcode_libdir_flag_spec='-R$libdir'
10086 ;;
10087 *)
10088 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10089 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10090 ;;
10091 esac
10092 fi
10093 else
10094 ld_shlibs=no
10095 fi
10096 ;;
10097
10098 os2*)
10099 hardcode_libdir_flag_spec='-L$libdir'
10100 hardcode_minus_L=yes
10101 allow_undefined_flag=unsupported
Chris Craikb50c2172013-07-29 15:28:30 -070010102 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'
Patrick Scott5f6bd842010-06-28 16:55:16 -040010103 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10104 ;;
10105
10106 osf3*)
10107 if test "$GCC" = yes; then
10108 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Chris Craikb50c2172013-07-29 15:28:30 -070010109 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Patrick Scott5f6bd842010-06-28 16:55:16 -040010110 else
10111 allow_undefined_flag=' -expect_unresolved \*'
Chris Craikb50c2172013-07-29 15:28:30 -070010112 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
Patrick Scott5f6bd842010-06-28 16:55:16 -040010113 fi
10114 archive_cmds_need_lc='no'
10115 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10116 hardcode_libdir_separator=:
10117 ;;
10118
10119 osf4* | osf5*) # as osf3* with the addition of -msym flag
10120 if test "$GCC" = yes; then
10121 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Chris Craikb50c2172013-07-29 15:28:30 -070010122 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Patrick Scott5f6bd842010-06-28 16:55:16 -040010123 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10124 else
10125 allow_undefined_flag=' -expect_unresolved \*'
Chris Craikb50c2172013-07-29 15:28:30 -070010126 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
Patrick Scott5f6bd842010-06-28 16:55:16 -040010127 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~
Chris Craikb50c2172013-07-29 15:28:30 -070010128 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
Patrick Scott5f6bd842010-06-28 16:55:16 -040010129
10130 # Both c and cxx compiler support -rpath directly
10131 hardcode_libdir_flag_spec='-rpath $libdir'
10132 fi
10133 archive_cmds_need_lc='no'
10134 hardcode_libdir_separator=:
10135 ;;
10136
10137 solaris*)
10138 no_undefined_flag=' -z defs'
10139 if test "$GCC" = yes; then
10140 wlarc='${wl}'
Chris Craikb50c2172013-07-29 15:28:30 -070010141 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Patrick Scott5f6bd842010-06-28 16:55:16 -040010142 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Chris Craikb50c2172013-07-29 15:28:30 -070010143 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
Patrick Scott5f6bd842010-06-28 16:55:16 -040010144 else
10145 case `$CC -V 2>&1` in
10146 *"Compilers 5.0"*)
10147 wlarc=''
10148 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10149 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10150 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10151 ;;
10152 *)
10153 wlarc='${wl}'
10154 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10155 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10156 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10157 ;;
10158 esac
10159 fi
10160 hardcode_libdir_flag_spec='-R$libdir'
10161 hardcode_shlibpath_var=no
10162 case $host_os in
10163 solaris2.[0-5] | solaris2.[0-5].*) ;;
10164 *)
10165 # The compiler driver will combine and reorder linker options,
10166 # but understands `-z linker_flag'. GCC discards it without `$wl',
10167 # but is careful enough not to reorder.
10168 # Supported since Solaris 2.6 (maybe 2.5.1?)
10169 if test "$GCC" = yes; then
10170 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10171 else
10172 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10173 fi
10174 ;;
10175 esac
10176 link_all_deplibs=yes
10177 ;;
10178
10179 sunos4*)
10180 if test "x$host_vendor" = xsequent; then
10181 # Use $CC to link under sequent, because it throws in some extra .o
10182 # files that make .init and .fini sections work.
10183 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10184 else
10185 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10186 fi
10187 hardcode_libdir_flag_spec='-L$libdir'
10188 hardcode_direct=yes
10189 hardcode_minus_L=yes
10190 hardcode_shlibpath_var=no
10191 ;;
10192
10193 sysv4)
10194 case $host_vendor in
10195 sni)
10196 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10197 hardcode_direct=yes # is this really true???
10198 ;;
10199 siemens)
10200 ## LD is ld it makes a PLAMLIB
10201 ## CC just makes a GrossModule.
10202 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10203 reload_cmds='$CC -r -o $output$reload_objs'
10204 hardcode_direct=no
10205 ;;
10206 motorola)
10207 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10208 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10209 ;;
10210 esac
10211 runpath_var='LD_RUN_PATH'
10212 hardcode_shlibpath_var=no
10213 ;;
10214
10215 sysv4.3*)
10216 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10217 hardcode_shlibpath_var=no
10218 export_dynamic_flag_spec='-Bexport'
10219 ;;
10220
10221 sysv4*MP*)
10222 if test -d /usr/nec; then
10223 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10224 hardcode_shlibpath_var=no
10225 runpath_var=LD_RUN_PATH
10226 hardcode_runpath_var=yes
10227 ld_shlibs=yes
10228 fi
10229 ;;
10230
10231 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10232 no_undefined_flag='${wl}-z,text'
10233 archive_cmds_need_lc=no
10234 hardcode_shlibpath_var=no
10235 runpath_var='LD_RUN_PATH'
10236
10237 if test "$GCC" = yes; then
10238 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10239 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10240 else
10241 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10242 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10243 fi
10244 ;;
10245
10246 sysv5* | sco3.2v5* | sco5v6*)
10247 # Note: We can NOT use -z defs as we might desire, because we do not
10248 # link with -lc, and that would cause any symbols used from libc to
10249 # always be unresolved, which means just about no library would
10250 # ever link correctly. If we're not using GNU ld we use -z text
10251 # though, which does catch some bad symbols but isn't as heavy-handed
10252 # as -z defs.
10253 no_undefined_flag='${wl}-z,text'
10254 allow_undefined_flag='${wl}-z,nodefs'
10255 archive_cmds_need_lc=no
10256 hardcode_shlibpath_var=no
10257 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10258 hardcode_libdir_separator=':'
10259 link_all_deplibs=yes
10260 export_dynamic_flag_spec='${wl}-Bexport'
10261 runpath_var='LD_RUN_PATH'
10262
10263 if test "$GCC" = yes; then
10264 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10265 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10266 else
10267 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10268 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10269 fi
10270 ;;
10271
10272 uts4*)
10273 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10274 hardcode_libdir_flag_spec='-L$libdir'
10275 hardcode_shlibpath_var=no
10276 ;;
10277
10278 *)
10279 ld_shlibs=no
10280 ;;
10281 esac
10282
10283 if test x$host_vendor = xsni; then
10284 case $host in
10285 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10286 export_dynamic_flag_spec='${wl}-Blargedynsym'
10287 ;;
10288 esac
10289 fi
10290 fi
10291
10292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10293$as_echo "$ld_shlibs" >&6; }
10294test "$ld_shlibs" = no && can_build_shared=no
10295
10296with_gnu_ld=$with_gnu_ld
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312#
10313# Do we need to explicitly link libc?
10314#
10315case "x$archive_cmds_need_lc" in
10316x|xyes)
10317 # Assume -lc should be added
10318 archive_cmds_need_lc=yes
10319
10320 if test "$enable_shared" = yes && test "$GCC" = yes; then
10321 case $archive_cmds in
10322 *'~'*)
10323 # FIXME: we may have to deal with multi-command sequences.
10324 ;;
10325 '$CC '*)
10326 # Test whether the compiler implicitly links with -lc since on some
10327 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10328 # to ld, don't add -lc before -lgcc.
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10330$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -070010331if ${lt_cv_archive_cmds_need_lc+:} false; then :
10332 $as_echo_n "(cached) " >&6
10333else
10334 $RM conftest*
10335 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Patrick Scott5f6bd842010-06-28 16:55:16 -040010336
Chris Craikb50c2172013-07-29 15:28:30 -070010337 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Patrick Scott5f6bd842010-06-28 16:55:16 -040010338 (eval $ac_compile) 2>&5
10339 ac_status=$?
10340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10341 test $ac_status = 0; } 2>conftest.err; then
Chris Craikb50c2172013-07-29 15:28:30 -070010342 soname=conftest
10343 lib=conftest
10344 libobjs=conftest.$ac_objext
10345 deplibs=
10346 wl=$lt_prog_compiler_wl
10347 pic_flag=$lt_prog_compiler_pic
10348 compiler_flags=-v
10349 linker_flags=-v
10350 verstring=
10351 output_objdir=.
10352 libname=conftest
10353 lt_save_allow_undefined_flag=$allow_undefined_flag
10354 allow_undefined_flag=
10355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
Patrick Scott5f6bd842010-06-28 16:55:16 -040010356 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10357 ac_status=$?
10358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10359 test $ac_status = 0; }
Chris Craikb50c2172013-07-29 15:28:30 -070010360 then
10361 lt_cv_archive_cmds_need_lc=no
10362 else
10363 lt_cv_archive_cmds_need_lc=yes
10364 fi
10365 allow_undefined_flag=$lt_save_allow_undefined_flag
10366 else
10367 cat conftest.err 1>&5
10368 fi
10369 $RM conftest*
10370
10371fi
10372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10373$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10374 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
Patrick Scott5f6bd842010-06-28 16:55:16 -040010375 ;;
10376 esac
10377 fi
10378 ;;
10379esac
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
Patrick Scott5f6bd842010-06-28 16:55:16 -040010532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10533$as_echo_n "checking dynamic linker characteristics... " >&6; }
10534
10535if test "$GCC" = yes; then
10536 case $host_os in
10537 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10538 *) lt_awk_arg="/^libraries:/" ;;
10539 esac
Chris Craikb50c2172013-07-29 15:28:30 -070010540 case $host_os in
10541 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10542 *) lt_sed_strip_eq="s,=/,/,g" ;;
10543 esac
10544 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10545 case $lt_search_path_spec in
10546 *\;*)
Patrick Scott5f6bd842010-06-28 16:55:16 -040010547 # if the path contains ";" then we assume it to be the separator
10548 # otherwise default to the standard path separator (i.e. ":") - it is
10549 # assumed that no part of a normal pathname contains ";" but that should
10550 # okay in the real world where ";" in dirpaths is itself problematic.
Chris Craikb50c2172013-07-29 15:28:30 -070010551 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10552 ;;
10553 *)
10554 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10555 ;;
10556 esac
Patrick Scott5f6bd842010-06-28 16:55:16 -040010557 # Ok, now we have the path, separated by spaces, we can step through it
10558 # and add multilib dir if necessary.
10559 lt_tmp_lt_search_path_spec=
10560 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10561 for lt_sys_path in $lt_search_path_spec; do
10562 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10563 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10564 else
10565 test -d "$lt_sys_path" && \
10566 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10567 fi
10568 done
Chris Craikb50c2172013-07-29 15:28:30 -070010569 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
Patrick Scott5f6bd842010-06-28 16:55:16 -040010570BEGIN {RS=" "; FS="/|\n";} {
10571 lt_foo="";
10572 lt_count=0;
10573 for (lt_i = NF; lt_i > 0; lt_i--) {
10574 if ($lt_i != "" && $lt_i != ".") {
10575 if ($lt_i == "..") {
10576 lt_count++;
10577 } else {
10578 if (lt_count == 0) {
10579 lt_foo="/" $lt_i lt_foo;
10580 } else {
10581 lt_count--;
10582 }
10583 }
10584 }
10585 }
10586 if (lt_foo != "") { lt_freq[lt_foo]++; }
10587 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10588}'`
Chris Craikb50c2172013-07-29 15:28:30 -070010589 # AWK program above erroneously prepends '/' to C:/dos/paths
10590 # for these hosts.
10591 case $host_os in
10592 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10593 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10594 esac
10595 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
Patrick Scott5f6bd842010-06-28 16:55:16 -040010596else
10597 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10598fi
10599library_names_spec=
10600libname_spec='lib$name'
10601soname_spec=
10602shrext_cmds=".so"
10603postinstall_cmds=
10604postuninstall_cmds=
10605finish_cmds=
10606finish_eval=
10607shlibpath_var=
10608shlibpath_overrides_runpath=unknown
10609version_type=none
10610dynamic_linker="$host_os ld.so"
10611sys_lib_dlsearch_path_spec="/lib /usr/lib"
10612need_lib_prefix=unknown
10613hardcode_into_libs=no
10614
10615# when you set need_version to no, make sure it does not cause -set_version
10616# flags to be left without arguments
10617need_version=unknown
10618
10619case $host_os in
10620aix3*)
Chris Craikb50c2172013-07-29 15:28:30 -070010621 version_type=linux # correct to gnu/linux during the next big refactor
Patrick Scott5f6bd842010-06-28 16:55:16 -040010622 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10623 shlibpath_var=LIBPATH
10624
10625 # AIX 3 has no versioning support, so we append a major version to the name.
10626 soname_spec='${libname}${release}${shared_ext}$major'
10627 ;;
10628
10629aix[4-9]*)
Chris Craikb50c2172013-07-29 15:28:30 -070010630 version_type=linux # correct to gnu/linux during the next big refactor
Patrick Scott5f6bd842010-06-28 16:55:16 -040010631 need_lib_prefix=no
10632 need_version=no
10633 hardcode_into_libs=yes
10634 if test "$host_cpu" = ia64; then
10635 # AIX 5 supports IA64
10636 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10637 shlibpath_var=LD_LIBRARY_PATH
10638 else
10639 # With GCC up to 2.95.x, collect2 would create an import file
10640 # for dependence libraries. The import file would start with
10641 # the line `#! .'. This would cause the generated library to
10642 # depend on `.', always an invalid library. This was fixed in
10643 # development snapshots of GCC prior to 3.0.
10644 case $host_os in
10645 aix4 | aix4.[01] | aix4.[01].*)
10646 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10647 echo ' yes '
10648 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10649 :
10650 else
10651 can_build_shared=no
10652 fi
10653 ;;
10654 esac
10655 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10656 # soname into executable. Probably we can add versioning support to
10657 # collect2, so additional links can be useful in future.
10658 if test "$aix_use_runtimelinking" = yes; then
10659 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10660 # instead of lib<name>.a to let people know that these are not
10661 # typical AIX shared libraries.
10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10663 else
10664 # We preserve .a as extension for shared libraries through AIX4.2
10665 # and later when we are not doing run time linking.
10666 library_names_spec='${libname}${release}.a $libname.a'
10667 soname_spec='${libname}${release}${shared_ext}$major'
10668 fi
10669 shlibpath_var=LIBPATH
10670 fi
10671 ;;
10672
10673amigaos*)
10674 case $host_cpu in
10675 powerpc)
10676 # Since July 2007 AmigaOS4 officially supports .so libraries.
10677 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10679 ;;
10680 m68k)
10681 library_names_spec='$libname.ixlibrary $libname.a'
10682 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Chris Craikb50c2172013-07-29 15:28:30 -070010683 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
Patrick Scott5f6bd842010-06-28 16:55:16 -040010684 ;;
10685 esac
10686 ;;
10687
10688beos*)
10689 library_names_spec='${libname}${shared_ext}'
10690 dynamic_linker="$host_os ld.so"
10691 shlibpath_var=LIBRARY_PATH
10692 ;;
10693
10694bsdi[45]*)
Chris Craikb50c2172013-07-29 15:28:30 -070010695 version_type=linux # correct to gnu/linux during the next big refactor
Patrick Scott5f6bd842010-06-28 16:55:16 -040010696 need_version=no
10697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10698 soname_spec='${libname}${release}${shared_ext}$major'
10699 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10700 shlibpath_var=LD_LIBRARY_PATH
10701 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10702 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10703 # the default ld.so.conf also contains /usr/contrib/lib and
10704 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10705 # libtool to hard-code these into programs
10706 ;;
10707
10708cygwin* | mingw* | pw32* | cegcc*)
10709 version_type=windows
10710 shrext_cmds=".dll"
10711 need_version=no
10712 need_lib_prefix=no
10713
Chris Craikb50c2172013-07-29 15:28:30 -070010714 case $GCC,$cc_basename in
10715 yes,*)
10716 # gcc
Patrick Scott5f6bd842010-06-28 16:55:16 -040010717 library_names_spec='$libname.dll.a'
10718 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10719 postinstall_cmds='base_file=`basename \${file}`~
10720 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10721 dldir=$destdir/`dirname \$dlpath`~
10722 test -d \$dldir || mkdir -p \$dldir~
10723 $install_prog $dir/$dlname \$dldir/$dlname~
10724 chmod a+x \$dldir/$dlname~
10725 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10726 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10727 fi'
10728 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10729 dlpath=$dir/\$dldll~
10730 $RM \$dlpath'
10731 shlibpath_overrides_runpath=yes
10732
10733 case $host_os in
10734 cygwin*)
10735 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10736 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Chris Craikb50c2172013-07-29 15:28:30 -070010737
10738 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
Patrick Scott5f6bd842010-06-28 16:55:16 -040010739 ;;
10740 mingw* | cegcc*)
10741 # MinGW DLLs use traditional 'lib' prefix
10742 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Patrick Scott5f6bd842010-06-28 16:55:16 -040010743 ;;
10744 pw32*)
10745 # pw32 DLLs use 'pw' prefix rather than 'lib'
10746 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10747 ;;
10748 esac
Chris Craikb50c2172013-07-29 15:28:30 -070010749 dynamic_linker='Win32 ld.exe'
10750 ;;
10751
10752 *,cl*)
10753 # Native MSVC
10754 libname_spec='$name'
10755 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10756 library_names_spec='${libname}.dll.lib'
10757
10758 case $build_os in
10759 mingw*)
10760 sys_lib_search_path_spec=
10761 lt_save_ifs=$IFS
10762 IFS=';'
10763 for lt_path in $LIB
10764 do
10765 IFS=$lt_save_ifs
10766 # Let DOS variable expansion print the short 8.3 style file name.
10767 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10768 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10769 done
10770 IFS=$lt_save_ifs
10771 # Convert to MSYS style.
10772 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10773 ;;
10774 cygwin*)
10775 # Convert to unix form, then to dos form, then back to unix form
10776 # but this time dos style (no spaces!) so that the unix form looks
10777 # like /cygdrive/c/PROGRA~1:/cygdr...
10778 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10779 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10780 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10781 ;;
10782 *)
10783 sys_lib_search_path_spec="$LIB"
10784 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10785 # It is most probably a Windows format PATH.
10786 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10787 else
10788 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10789 fi
10790 # FIXME: find the short name or the path components, as spaces are
10791 # common. (e.g. "Program Files" -> "PROGRA~1")
10792 ;;
10793 esac
10794
10795 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10796 postinstall_cmds='base_file=`basename \${file}`~
10797 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10798 dldir=$destdir/`dirname \$dlpath`~
10799 test -d \$dldir || mkdir -p \$dldir~
10800 $install_prog $dir/$dlname \$dldir/$dlname'
10801 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10802 dlpath=$dir/\$dldll~
10803 $RM \$dlpath'
10804 shlibpath_overrides_runpath=yes
10805 dynamic_linker='Win32 link.exe'
Patrick Scott5f6bd842010-06-28 16:55:16 -040010806 ;;
10807
10808 *)
Chris Craikb50c2172013-07-29 15:28:30 -070010809 # Assume MSVC wrapper
Patrick Scott5f6bd842010-06-28 16:55:16 -040010810 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
Chris Craikb50c2172013-07-29 15:28:30 -070010811 dynamic_linker='Win32 ld.exe'
Patrick Scott5f6bd842010-06-28 16:55:16 -040010812 ;;
10813 esac
Patrick Scott5f6bd842010-06-28 16:55:16 -040010814 # FIXME: first we should search . and the directory the executable is in
10815 shlibpath_var=PATH
10816 ;;
10817
10818darwin* | rhapsody*)
10819 dynamic_linker="$host_os dyld"
10820 version_type=darwin
10821 need_lib_prefix=no
10822 need_version=no
10823 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10824 soname_spec='${libname}${release}${major}$shared_ext'
10825 shlibpath_overrides_runpath=yes
10826 shlibpath_var=DYLD_LIBRARY_PATH
10827 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10828
10829 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10830 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10831 ;;
10832
10833dgux*)
Chris Craikb50c2172013-07-29 15:28:30 -070010834 version_type=linux # correct to gnu/linux during the next big refactor
Patrick Scott5f6bd842010-06-28 16:55:16 -040010835 need_lib_prefix=no
10836 need_version=no
10837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10838 soname_spec='${libname}${release}${shared_ext}$major'
10839 shlibpath_var=LD_LIBRARY_PATH
10840 ;;
10841
Patrick Scott5f6bd842010-06-28 16:55:16 -040010842freebsd* | dragonfly*)
10843 # DragonFly does not have aout. When/if they implement a new
10844 # versioning mechanism, adjust this.
10845 if test -x /usr/bin/objformat; then
10846 objformat=`/usr/bin/objformat`
10847 else
10848 case $host_os in
Chris Craikb50c2172013-07-29 15:28:30 -070010849 freebsd[23].*) objformat=aout ;;
Patrick Scott5f6bd842010-06-28 16:55:16 -040010850 *) objformat=elf ;;
10851 esac
10852 fi
10853 version_type=freebsd-$objformat
10854 case $version_type in
10855 freebsd-elf*)
10856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10857 need_version=no
10858 need_lib_prefix=no
10859 ;;
10860 freebsd-*)
10861 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10862 need_version=yes
10863 ;;
10864 esac
10865 shlibpath_var=LD_LIBRARY_PATH
10866 case $host_os in
Chris Craikb50c2172013-07-29 15:28:30 -070010867 freebsd2.*)
Patrick Scott5f6bd842010-06-28 16:55:16 -040010868 shlibpath_overrides_runpath=yes
10869 ;;
10870 freebsd3.[01]* | freebsdelf3.[01]*)
10871 shlibpath_overrides_runpath=yes
10872 hardcode_into_libs=yes
10873 ;;
10874 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10875 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10876 shlibpath_overrides_runpath=no
10877 hardcode_into_libs=yes
10878 ;;
10879 *) # from 4.6 on, and DragonFly
10880 shlibpath_overrides_runpath=yes
10881 hardcode_into_libs=yes
10882 ;;
10883 esac
10884 ;;
10885
10886gnu*)
Chris Craikb50c2172013-07-29 15:28:30 -070010887 version_type=linux # correct to gnu/linux during the next big refactor
Patrick Scott5f6bd842010-06-28 16:55:16 -040010888 need_lib_prefix=no
10889 need_version=no
10890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10891 soname_spec='${libname}${release}${shared_ext}$major'
10892 shlibpath_var=LD_LIBRARY_PATH
Chris Craikb50c2172013-07-29 15:28:30 -070010893 shlibpath_overrides_runpath=no
10894 hardcode_into_libs=yes
10895 ;;
10896
10897haiku*)
10898 version_type=linux # correct to gnu/linux during the next big refactor
10899 need_lib_prefix=no
10900 need_version=no
10901 dynamic_linker="$host_os runtime_loader"
10902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10903 soname_spec='${libname}${release}${shared_ext}$major'
10904 shlibpath_var=LIBRARY_PATH
10905 shlibpath_overrides_runpath=yes
10906 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
Patrick Scott5f6bd842010-06-28 16:55:16 -040010907 hardcode_into_libs=yes
10908 ;;
10909
10910hpux9* | hpux10* | hpux11*)
10911 # Give a soname corresponding to the major version so that dld.sl refuses to
10912 # link against other versions.
10913 version_type=sunos
10914 need_lib_prefix=no
10915 need_version=no
10916 case $host_cpu in
10917 ia64*)
10918 shrext_cmds='.so'
10919 hardcode_into_libs=yes
10920 dynamic_linker="$host_os dld.so"
10921 shlibpath_var=LD_LIBRARY_PATH
10922 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10924 soname_spec='${libname}${release}${shared_ext}$major'
10925 if test "X$HPUX_IA64_MODE" = X32; then
10926 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10927 else
10928 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10929 fi
10930 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10931 ;;
10932 hppa*64*)
10933 shrext_cmds='.sl'
10934 hardcode_into_libs=yes
10935 dynamic_linker="$host_os dld.sl"
10936 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10937 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10939 soname_spec='${libname}${release}${shared_ext}$major'
10940 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10941 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10942 ;;
10943 *)
10944 shrext_cmds='.sl'
10945 dynamic_linker="$host_os dld.sl"
10946 shlibpath_var=SHLIB_PATH
10947 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10949 soname_spec='${libname}${release}${shared_ext}$major'
10950 ;;
10951 esac
Chris Craikb50c2172013-07-29 15:28:30 -070010952 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Patrick Scott5f6bd842010-06-28 16:55:16 -040010953 postinstall_cmds='chmod 555 $lib'
Chris Craikb50c2172013-07-29 15:28:30 -070010954 # or fails outright, so override atomically:
10955 install_override_mode=555
Patrick Scott5f6bd842010-06-28 16:55:16 -040010956 ;;
10957
10958interix[3-9]*)
Chris Craikb50c2172013-07-29 15:28:30 -070010959 version_type=linux # correct to gnu/linux during the next big refactor
Patrick Scott5f6bd842010-06-28 16:55:16 -040010960 need_lib_prefix=no
10961 need_version=no
10962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10963 soname_spec='${libname}${release}${shared_ext}$major'
10964 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10965 shlibpath_var=LD_LIBRARY_PATH
10966 shlibpath_overrides_runpath=no
10967 hardcode_into_libs=yes
10968 ;;
10969
10970irix5* | irix6* | nonstopux*)
10971 case $host_os in
10972 nonstopux*) version_type=nonstopux ;;
10973 *)
10974 if test "$lt_cv_prog_gnu_ld" = yes; then
Chris Craikb50c2172013-07-29 15:28:30 -070010975 version_type=linux # correct to gnu/linux during the next big refactor
Patrick Scott5f6bd842010-06-28 16:55:16 -040010976 else
10977 version_type=irix
10978 fi ;;
10979 esac
10980 need_lib_prefix=no
10981 need_version=no
10982 soname_spec='${libname}${release}${shared_ext}$major'
10983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10984 case $host_os in
10985 irix5* | nonstopux*)
10986 libsuff= shlibsuff=
10987 ;;
10988 *)
10989 case $LD in # libtool.m4 will add one of these switches to LD
10990 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10991 libsuff= shlibsuff= libmagic=32-bit;;
10992 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10993 libsuff=32 shlibsuff=N32 libmagic=N32;;
10994 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10995 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10996 *) libsuff= shlibsuff= libmagic=never-match;;
10997 esac
10998 ;;
10999 esac
11000 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11001 shlibpath_overrides_runpath=no
11002 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11003 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11004 hardcode_into_libs=yes
11005 ;;
11006
11007# No shared lib support for Linux oldld, aout, or coff.
11008linux*oldld* | linux*aout* | linux*coff*)
11009 dynamic_linker=no
11010 ;;
11011
Chris Craikb50c2172013-07-29 15:28:30 -070011012# This must be glibc/ELF.
11013linux* | k*bsd*-gnu | kopensolaris*-gnu)
11014 version_type=linux # correct to gnu/linux during the next big refactor
Patrick Scott5f6bd842010-06-28 16:55:16 -040011015 need_lib_prefix=no
11016 need_version=no
11017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11018 soname_spec='${libname}${release}${shared_ext}$major'
11019 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11020 shlibpath_var=LD_LIBRARY_PATH
11021 shlibpath_overrides_runpath=no
Chris Craikb50c2172013-07-29 15:28:30 -070011022
Patrick Scott5f6bd842010-06-28 16:55:16 -040011023 # Some binutils ld are patched to set DT_RUNPATH
Chris Craikb50c2172013-07-29 15:28:30 -070011024 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11025 $as_echo_n "(cached) " >&6
11026else
11027 lt_cv_shlibpath_overrides_runpath=no
11028 save_LDFLAGS=$LDFLAGS
11029 save_libdir=$libdir
11030 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11031 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Patrick Scott5f6bd842010-06-28 16:55:16 -040011033/* end confdefs.h. */
11034
11035int
11036main ()
11037{
11038
11039 ;
11040 return 0;
11041}
11042_ACEOF
11043if ac_fn_c_try_link "$LINENO"; then :
11044 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
Chris Craikb50c2172013-07-29 15:28:30 -070011045 lt_cv_shlibpath_overrides_runpath=yes
Patrick Scott5f6bd842010-06-28 16:55:16 -040011046fi
11047fi
11048rm -f core conftest.err conftest.$ac_objext \
11049 conftest$ac_exeext conftest.$ac_ext
Chris Craikb50c2172013-07-29 15:28:30 -070011050 LDFLAGS=$save_LDFLAGS
11051 libdir=$save_libdir
11052
11053fi
11054
11055 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
Patrick Scott5f6bd842010-06-28 16:55:16 -040011056
11057 # This implies no fast_install, which is unacceptable.
11058 # Some rework will be needed to allow for fast_install
11059 # before this can be enabled.
11060 hardcode_into_libs=yes
11061
11062 # Append ld.so.conf contents to the search path
11063 if test -f /etc/ld.so.conf; then
Chris Craikb50c2172013-07-29 15:28:30 -070011064 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
Patrick Scott5f6bd842010-06-28 16:55:16 -040011065 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11066 fi
11067
11068 # We used to test for /lib/ld.so.1 and disable shared libraries on
11069 # powerpc, because MkLinux only supported shared libraries with the
11070 # GNU dynamic linker. Since this was broken with cross compilers,
11071 # most powerpc-linux boxes support dynamic linking these days and
11072 # people can always --disable-shared, the test was removed, and we
11073 # assume the GNU/Linux dynamic linker is in use.
11074 dynamic_linker='GNU/Linux ld.so'
11075 ;;
11076
11077netbsd*)
11078 version_type=sunos
11079 need_lib_prefix=no
11080 need_version=no
11081 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11083 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11084 dynamic_linker='NetBSD (a.out) ld.so'
11085 else
11086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11087 soname_spec='${libname}${release}${shared_ext}$major'
11088 dynamic_linker='NetBSD ld.elf_so'
11089 fi
11090 shlibpath_var=LD_LIBRARY_PATH
11091 shlibpath_overrides_runpath=yes
11092 hardcode_into_libs=yes
11093 ;;
11094
11095newsos6)
Chris Craikb50c2172013-07-29 15:28:30 -070011096 version_type=linux # correct to gnu/linux during the next big refactor
Patrick Scott5f6bd842010-06-28 16:55:16 -040011097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11098 shlibpath_var=LD_LIBRARY_PATH
11099 shlibpath_overrides_runpath=yes
11100 ;;
11101
11102*nto* | *qnx*)
11103 version_type=qnx
11104 need_lib_prefix=no
11105 need_version=no
11106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11107 soname_spec='${libname}${release}${shared_ext}$major'
11108 shlibpath_var=LD_LIBRARY_PATH
11109 shlibpath_overrides_runpath=no
11110 hardcode_into_libs=yes
11111 dynamic_linker='ldqnx.so'
11112 ;;
11113
11114openbsd*)
11115 version_type=sunos
11116 sys_lib_dlsearch_path_spec="/usr/lib"
11117 need_lib_prefix=no
11118 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11119 case $host_os in
11120 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11121 *) need_version=no ;;
11122 esac
11123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11124 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11125 shlibpath_var=LD_LIBRARY_PATH
11126 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11127 case $host_os in
11128 openbsd2.[89] | openbsd2.[89].*)
11129 shlibpath_overrides_runpath=no
11130 ;;
11131 *)
11132 shlibpath_overrides_runpath=yes
11133 ;;
11134 esac
11135 else
11136 shlibpath_overrides_runpath=yes
11137 fi
11138 ;;
11139
11140os2*)
11141 libname_spec='$name'
11142 shrext_cmds=".dll"
11143 need_lib_prefix=no
11144 library_names_spec='$libname${shared_ext} $libname.a'
11145 dynamic_linker='OS/2 ld.exe'
11146 shlibpath_var=LIBPATH
11147 ;;
11148
11149osf3* | osf4* | osf5*)
11150 version_type=osf
11151 need_lib_prefix=no
11152 need_version=no
11153 soname_spec='${libname}${release}${shared_ext}$major'
11154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11155 shlibpath_var=LD_LIBRARY_PATH
11156 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11157 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11158 ;;
11159
11160rdos*)
11161 dynamic_linker=no
11162 ;;
11163
11164solaris*)
Chris Craikb50c2172013-07-29 15:28:30 -070011165 version_type=linux # correct to gnu/linux during the next big refactor
Patrick Scott5f6bd842010-06-28 16:55:16 -040011166 need_lib_prefix=no
11167 need_version=no
11168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11169 soname_spec='${libname}${release}${shared_ext}$major'
11170 shlibpath_var=LD_LIBRARY_PATH
11171 shlibpath_overrides_runpath=yes
11172 hardcode_into_libs=yes
11173 # ldd complains unless libraries are executable
11174 postinstall_cmds='chmod +x $lib'
11175 ;;
11176
11177sunos4*)
11178 version_type=sunos
11179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11180 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11181 shlibpath_var=LD_LIBRARY_PATH
11182 shlibpath_overrides_runpath=yes
11183 if test "$with_gnu_ld" = yes; then
11184 need_lib_prefix=no
11185 fi
11186 need_version=yes
11187 ;;
11188
11189sysv4 | sysv4.3*)
Chris Craikb50c2172013-07-29 15:28:30 -070011190 version_type=linux # correct to gnu/linux during the next big refactor
Patrick Scott5f6bd842010-06-28 16:55:16 -040011191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11192 soname_spec='${libname}${release}${shared_ext}$major'
11193 shlibpath_var=LD_LIBRARY_PATH
11194 case $host_vendor in
11195 sni)
11196 shlibpath_overrides_runpath=no
11197 need_lib_prefix=no
11198 runpath_var=LD_RUN_PATH
11199 ;;
11200 siemens)
11201 need_lib_prefix=no
11202 ;;
11203 motorola)
11204 need_lib_prefix=no
11205 need_version=no
11206 shlibpath_overrides_runpath=no
11207 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11208 ;;
11209 esac
11210 ;;
11211
11212sysv4*MP*)
11213 if test -d /usr/nec ;then
Chris Craikb50c2172013-07-29 15:28:30 -070011214 version_type=linux # correct to gnu/linux during the next big refactor
Patrick Scott5f6bd842010-06-28 16:55:16 -040011215 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11216 soname_spec='$libname${shared_ext}.$major'
11217 shlibpath_var=LD_LIBRARY_PATH
11218 fi
11219 ;;
11220
11221sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11222 version_type=freebsd-elf
11223 need_lib_prefix=no
11224 need_version=no
11225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11226 soname_spec='${libname}${release}${shared_ext}$major'
11227 shlibpath_var=LD_LIBRARY_PATH
11228 shlibpath_overrides_runpath=yes
11229 hardcode_into_libs=yes
11230 if test "$with_gnu_ld" = yes; then
11231 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11232 else
11233 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11234 case $host_os in
11235 sco3.2v5*)
11236 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11237 ;;
11238 esac
11239 fi
11240 sys_lib_dlsearch_path_spec='/usr/lib'
11241 ;;
11242
11243tpf*)
11244 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
Chris Craikb50c2172013-07-29 15:28:30 -070011245 version_type=linux # correct to gnu/linux during the next big refactor
Patrick Scott5f6bd842010-06-28 16:55:16 -040011246 need_lib_prefix=no
11247 need_version=no
11248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11249 shlibpath_var=LD_LIBRARY_PATH
11250 shlibpath_overrides_runpath=no
11251 hardcode_into_libs=yes
11252 ;;
11253
11254uts4*)
Chris Craikb50c2172013-07-29 15:28:30 -070011255 version_type=linux # correct to gnu/linux during the next big refactor
Patrick Scott5f6bd842010-06-28 16:55:16 -040011256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11257 soname_spec='${libname}${release}${shared_ext}$major'
11258 shlibpath_var=LD_LIBRARY_PATH
11259 ;;
11260
11261*)
11262 dynamic_linker=no
11263 ;;
11264esac
11265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11266$as_echo "$dynamic_linker" >&6; }
11267test "$dynamic_linker" = no && can_build_shared=no
11268
11269variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11270if test "$GCC" = yes; then
11271 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11272fi
11273
11274if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11275 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11276fi
11277if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11278 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11279fi
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
Chris Craikb50c2172013-07-29 15:28:30 -070011367
11368
11369
11370
11371
Patrick Scott5f6bd842010-06-28 16:55:16 -040011372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11373$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11374hardcode_action=
11375if test -n "$hardcode_libdir_flag_spec" ||
11376 test -n "$runpath_var" ||
11377 test "X$hardcode_automatic" = "Xyes" ; then
11378
11379 # We can hardcode non-existent directories.
11380 if test "$hardcode_direct" != no &&
11381 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11382 # have to relink, otherwise we might link with an installed library
11383 # when we should be linking with a yet-to-be-installed one
11384 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11385 test "$hardcode_minus_L" != no; then
11386 # Linking always hardcodes the temporary library directory.
11387 hardcode_action=relink
11388 else
11389 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11390 hardcode_action=immediate
11391 fi
11392else
11393 # We cannot hardcode anything, or else we can only hardcode existing
11394 # directories.
11395 hardcode_action=unsupported
11396fi
11397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11398$as_echo "$hardcode_action" >&6; }
11399
11400if test "$hardcode_action" = relink ||
11401 test "$inherit_rpath" = yes; then
11402 # Fast installation is not supported
11403 enable_fast_install=no
11404elif test "$shlibpath_overrides_runpath" = yes ||
11405 test "$enable_shared" = no; then
11406 # Fast installation is not necessary
11407 enable_fast_install=needless
11408fi
11409
11410
11411
11412
11413
11414
11415 if test "x$enable_dlopen" != xyes; then
11416 enable_dlopen=unknown
11417 enable_dlopen_self=unknown
11418 enable_dlopen_self_static=unknown
11419else
11420 lt_cv_dlopen=no
11421 lt_cv_dlopen_libs=
11422
11423 case $host_os in
11424 beos*)
11425 lt_cv_dlopen="load_add_on"
11426 lt_cv_dlopen_libs=
11427 lt_cv_dlopen_self=yes
11428 ;;
11429
11430 mingw* | pw32* | cegcc*)
11431 lt_cv_dlopen="LoadLibrary"
11432 lt_cv_dlopen_libs=
11433 ;;
11434
11435 cygwin*)
11436 lt_cv_dlopen="dlopen"
11437 lt_cv_dlopen_libs=
11438 ;;
11439
11440 darwin*)
11441 # if libdl is installed we need to link against it
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11443$as_echo_n "checking for dlopen in -ldl... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -070011444if ${ac_cv_lib_dl_dlopen+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -040011445 $as_echo_n "(cached) " >&6
11446else
11447 ac_check_lib_save_LIBS=$LIBS
11448LIBS="-ldl $LIBS"
11449cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11450/* end confdefs.h. */
11451
11452/* Override any GCC internal prototype to avoid an error.
11453 Use char because int might match the return type of a GCC
11454 builtin and then its argument prototype would still apply. */
11455#ifdef __cplusplus
11456extern "C"
11457#endif
11458char dlopen ();
11459int
11460main ()
11461{
11462return dlopen ();
11463 ;
11464 return 0;
11465}
11466_ACEOF
11467if ac_fn_c_try_link "$LINENO"; then :
11468 ac_cv_lib_dl_dlopen=yes
11469else
11470 ac_cv_lib_dl_dlopen=no
11471fi
11472rm -f core conftest.err conftest.$ac_objext \
11473 conftest$ac_exeext conftest.$ac_ext
11474LIBS=$ac_check_lib_save_LIBS
11475fi
11476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11477$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -070011478if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -040011479 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11480else
11481
11482 lt_cv_dlopen="dyld"
11483 lt_cv_dlopen_libs=
11484 lt_cv_dlopen_self=yes
11485
11486fi
11487
11488 ;;
11489
11490 *)
11491 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
Chris Craikb50c2172013-07-29 15:28:30 -070011492if test "x$ac_cv_func_shl_load" = xyes; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -040011493 lt_cv_dlopen="shl_load"
11494else
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11496$as_echo_n "checking for shl_load in -ldld... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -070011497if ${ac_cv_lib_dld_shl_load+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -040011498 $as_echo_n "(cached) " >&6
11499else
11500 ac_check_lib_save_LIBS=$LIBS
11501LIBS="-ldld $LIBS"
11502cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11503/* end confdefs.h. */
11504
11505/* Override any GCC internal prototype to avoid an error.
11506 Use char because int might match the return type of a GCC
11507 builtin and then its argument prototype would still apply. */
11508#ifdef __cplusplus
11509extern "C"
11510#endif
11511char shl_load ();
11512int
11513main ()
11514{
11515return shl_load ();
11516 ;
11517 return 0;
11518}
11519_ACEOF
11520if ac_fn_c_try_link "$LINENO"; then :
11521 ac_cv_lib_dld_shl_load=yes
11522else
11523 ac_cv_lib_dld_shl_load=no
11524fi
11525rm -f core conftest.err conftest.$ac_objext \
11526 conftest$ac_exeext conftest.$ac_ext
11527LIBS=$ac_check_lib_save_LIBS
11528fi
11529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11530$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -070011531if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -040011532 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11533else
11534 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
Chris Craikb50c2172013-07-29 15:28:30 -070011535if test "x$ac_cv_func_dlopen" = xyes; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -040011536 lt_cv_dlopen="dlopen"
11537else
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11539$as_echo_n "checking for dlopen in -ldl... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -070011540if ${ac_cv_lib_dl_dlopen+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -040011541 $as_echo_n "(cached) " >&6
11542else
11543 ac_check_lib_save_LIBS=$LIBS
11544LIBS="-ldl $LIBS"
11545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11546/* end confdefs.h. */
11547
11548/* Override any GCC internal prototype to avoid an error.
11549 Use char because int might match the return type of a GCC
11550 builtin and then its argument prototype would still apply. */
11551#ifdef __cplusplus
11552extern "C"
11553#endif
11554char dlopen ();
11555int
11556main ()
11557{
11558return dlopen ();
11559 ;
11560 return 0;
11561}
11562_ACEOF
11563if ac_fn_c_try_link "$LINENO"; then :
11564 ac_cv_lib_dl_dlopen=yes
11565else
11566 ac_cv_lib_dl_dlopen=no
11567fi
11568rm -f core conftest.err conftest.$ac_objext \
11569 conftest$ac_exeext conftest.$ac_ext
11570LIBS=$ac_check_lib_save_LIBS
11571fi
11572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11573$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -070011574if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -040011575 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11576else
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11578$as_echo_n "checking for dlopen in -lsvld... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -070011579if ${ac_cv_lib_svld_dlopen+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -040011580 $as_echo_n "(cached) " >&6
11581else
11582 ac_check_lib_save_LIBS=$LIBS
11583LIBS="-lsvld $LIBS"
11584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11585/* end confdefs.h. */
11586
11587/* Override any GCC internal prototype to avoid an error.
11588 Use char because int might match the return type of a GCC
11589 builtin and then its argument prototype would still apply. */
11590#ifdef __cplusplus
11591extern "C"
11592#endif
11593char dlopen ();
11594int
11595main ()
11596{
11597return dlopen ();
11598 ;
11599 return 0;
11600}
11601_ACEOF
11602if ac_fn_c_try_link "$LINENO"; then :
11603 ac_cv_lib_svld_dlopen=yes
11604else
11605 ac_cv_lib_svld_dlopen=no
11606fi
11607rm -f core conftest.err conftest.$ac_objext \
11608 conftest$ac_exeext conftest.$ac_ext
11609LIBS=$ac_check_lib_save_LIBS
11610fi
11611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11612$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -070011613if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -040011614 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11615else
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11617$as_echo_n "checking for dld_link in -ldld... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -070011618if ${ac_cv_lib_dld_dld_link+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -040011619 $as_echo_n "(cached) " >&6
11620else
11621 ac_check_lib_save_LIBS=$LIBS
11622LIBS="-ldld $LIBS"
11623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11624/* end confdefs.h. */
11625
11626/* Override any GCC internal prototype to avoid an error.
11627 Use char because int might match the return type of a GCC
11628 builtin and then its argument prototype would still apply. */
11629#ifdef __cplusplus
11630extern "C"
11631#endif
11632char dld_link ();
11633int
11634main ()
11635{
11636return dld_link ();
11637 ;
11638 return 0;
11639}
11640_ACEOF
11641if ac_fn_c_try_link "$LINENO"; then :
11642 ac_cv_lib_dld_dld_link=yes
11643else
11644 ac_cv_lib_dld_dld_link=no
11645fi
11646rm -f core conftest.err conftest.$ac_objext \
11647 conftest$ac_exeext conftest.$ac_ext
11648LIBS=$ac_check_lib_save_LIBS
11649fi
11650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11651$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -070011652if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -040011653 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11654fi
11655
11656
11657fi
11658
11659
11660fi
11661
11662
11663fi
11664
11665
11666fi
11667
11668
11669fi
11670
11671 ;;
11672 esac
11673
11674 if test "x$lt_cv_dlopen" != xno; then
11675 enable_dlopen=yes
11676 else
11677 enable_dlopen=no
11678 fi
11679
11680 case $lt_cv_dlopen in
11681 dlopen)
11682 save_CPPFLAGS="$CPPFLAGS"
11683 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11684
11685 save_LDFLAGS="$LDFLAGS"
11686 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11687
11688 save_LIBS="$LIBS"
11689 LIBS="$lt_cv_dlopen_libs $LIBS"
11690
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11692$as_echo_n "checking whether a program can dlopen itself... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -070011693if ${lt_cv_dlopen_self+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -040011694 $as_echo_n "(cached) " >&6
11695else
11696 if test "$cross_compiling" = yes; then :
11697 lt_cv_dlopen_self=cross
11698else
11699 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11700 lt_status=$lt_dlunknown
11701 cat > conftest.$ac_ext <<_LT_EOF
Chris Craikb50c2172013-07-29 15:28:30 -070011702#line $LINENO "configure"
Patrick Scott5f6bd842010-06-28 16:55:16 -040011703#include "confdefs.h"
11704
11705#if HAVE_DLFCN_H
11706#include <dlfcn.h>
11707#endif
11708
11709#include <stdio.h>
11710
11711#ifdef RTLD_GLOBAL
11712# define LT_DLGLOBAL RTLD_GLOBAL
11713#else
11714# ifdef DL_GLOBAL
11715# define LT_DLGLOBAL DL_GLOBAL
11716# else
11717# define LT_DLGLOBAL 0
11718# endif
11719#endif
11720
11721/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11722 find out it does not work in some platform. */
11723#ifndef LT_DLLAZY_OR_NOW
11724# ifdef RTLD_LAZY
11725# define LT_DLLAZY_OR_NOW RTLD_LAZY
11726# else
11727# ifdef DL_LAZY
11728# define LT_DLLAZY_OR_NOW DL_LAZY
11729# else
11730# ifdef RTLD_NOW
11731# define LT_DLLAZY_OR_NOW RTLD_NOW
11732# else
11733# ifdef DL_NOW
11734# define LT_DLLAZY_OR_NOW DL_NOW
11735# else
11736# define LT_DLLAZY_OR_NOW 0
11737# endif
11738# endif
11739# endif
11740# endif
11741#endif
11742
Chris Craikb50c2172013-07-29 15:28:30 -070011743/* When -fvisbility=hidden is used, assume the code has been annotated
11744 correspondingly for the symbols needed. */
11745#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11746int fnord () __attribute__((visibility("default")));
11747#endif
11748
11749int fnord () { return 42; }
Patrick Scott5f6bd842010-06-28 16:55:16 -040011750int main ()
11751{
11752 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11753 int status = $lt_dlunknown;
11754
11755 if (self)
11756 {
11757 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Chris Craikb50c2172013-07-29 15:28:30 -070011758 else
11759 {
11760 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11761 else puts (dlerror ());
11762 }
Patrick Scott5f6bd842010-06-28 16:55:16 -040011763 /* dlclose (self); */
11764 }
11765 else
11766 puts (dlerror ());
11767
11768 return status;
11769}
11770_LT_EOF
11771 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11772 (eval $ac_link) 2>&5
11773 ac_status=$?
11774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11775 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11776 (./conftest; exit; ) >&5 2>/dev/null
11777 lt_status=$?
11778 case x$lt_status in
11779 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11780 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11781 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11782 esac
11783 else :
11784 # compilation failed
11785 lt_cv_dlopen_self=no
11786 fi
11787fi
11788rm -fr conftest*
11789
11790
11791fi
11792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11793$as_echo "$lt_cv_dlopen_self" >&6; }
11794
11795 if test "x$lt_cv_dlopen_self" = xyes; then
11796 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11798$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -070011799if ${lt_cv_dlopen_self_static+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -040011800 $as_echo_n "(cached) " >&6
11801else
11802 if test "$cross_compiling" = yes; then :
11803 lt_cv_dlopen_self_static=cross
11804else
11805 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11806 lt_status=$lt_dlunknown
11807 cat > conftest.$ac_ext <<_LT_EOF
Chris Craikb50c2172013-07-29 15:28:30 -070011808#line $LINENO "configure"
Patrick Scott5f6bd842010-06-28 16:55:16 -040011809#include "confdefs.h"
11810
11811#if HAVE_DLFCN_H
11812#include <dlfcn.h>
11813#endif
11814
11815#include <stdio.h>
11816
11817#ifdef RTLD_GLOBAL
11818# define LT_DLGLOBAL RTLD_GLOBAL
11819#else
11820# ifdef DL_GLOBAL
11821# define LT_DLGLOBAL DL_GLOBAL
11822# else
11823# define LT_DLGLOBAL 0
11824# endif
11825#endif
11826
11827/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11828 find out it does not work in some platform. */
11829#ifndef LT_DLLAZY_OR_NOW
11830# ifdef RTLD_LAZY
11831# define LT_DLLAZY_OR_NOW RTLD_LAZY
11832# else
11833# ifdef DL_LAZY
11834# define LT_DLLAZY_OR_NOW DL_LAZY
11835# else
11836# ifdef RTLD_NOW
11837# define LT_DLLAZY_OR_NOW RTLD_NOW
11838# else
11839# ifdef DL_NOW
11840# define LT_DLLAZY_OR_NOW DL_NOW
11841# else
11842# define LT_DLLAZY_OR_NOW 0
11843# endif
11844# endif
11845# endif
11846# endif
11847#endif
11848
Chris Craikb50c2172013-07-29 15:28:30 -070011849/* When -fvisbility=hidden is used, assume the code has been annotated
11850 correspondingly for the symbols needed. */
11851#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11852int fnord () __attribute__((visibility("default")));
11853#endif
11854
11855int fnord () { return 42; }
Patrick Scott5f6bd842010-06-28 16:55:16 -040011856int main ()
11857{
11858 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11859 int status = $lt_dlunknown;
11860
11861 if (self)
11862 {
11863 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Chris Craikb50c2172013-07-29 15:28:30 -070011864 else
11865 {
11866 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11867 else puts (dlerror ());
11868 }
Patrick Scott5f6bd842010-06-28 16:55:16 -040011869 /* dlclose (self); */
11870 }
11871 else
11872 puts (dlerror ());
11873
11874 return status;
11875}
11876_LT_EOF
11877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11878 (eval $ac_link) 2>&5
11879 ac_status=$?
11880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11881 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11882 (./conftest; exit; ) >&5 2>/dev/null
11883 lt_status=$?
11884 case x$lt_status in
11885 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11886 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11887 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11888 esac
11889 else :
11890 # compilation failed
11891 lt_cv_dlopen_self_static=no
11892 fi
11893fi
11894rm -fr conftest*
11895
11896
11897fi
11898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11899$as_echo "$lt_cv_dlopen_self_static" >&6; }
11900 fi
11901
11902 CPPFLAGS="$save_CPPFLAGS"
11903 LDFLAGS="$save_LDFLAGS"
11904 LIBS="$save_LIBS"
11905 ;;
11906 esac
11907
11908 case $lt_cv_dlopen_self in
11909 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11910 *) enable_dlopen_self=unknown ;;
11911 esac
11912
11913 case $lt_cv_dlopen_self_static in
11914 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11915 *) enable_dlopen_self_static=unknown ;;
11916 esac
11917fi
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935striplib=
11936old_striplib=
11937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11938$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11939if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11940 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11941 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11943$as_echo "yes" >&6; }
11944else
11945# FIXME - insert some real tests, host_os isn't really good enough
11946 case $host_os in
11947 darwin*)
11948 if test -n "$STRIP" ; then
11949 striplib="$STRIP -x"
11950 old_striplib="$STRIP -S"
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11952$as_echo "yes" >&6; }
11953 else
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11955$as_echo "no" >&6; }
11956 fi
11957 ;;
11958 *)
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11960$as_echo "no" >&6; }
11961 ;;
11962 esac
11963fi
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976 # Report which library types will actually be built
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11978$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11980$as_echo "$can_build_shared" >&6; }
11981
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11983$as_echo_n "checking whether to build shared libraries... " >&6; }
11984 test "$can_build_shared" = "no" && enable_shared=no
11985
11986 # On AIX, shared libraries and static libraries use the same namespace, and
11987 # are all built from PIC.
11988 case $host_os in
11989 aix3*)
11990 test "$enable_shared" = yes && enable_static=no
11991 if test -n "$RANLIB"; then
11992 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11993 postinstall_cmds='$RANLIB $lib'
11994 fi
11995 ;;
11996
11997 aix[4-9]*)
11998 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11999 test "$enable_shared" = yes && enable_static=no
12000 fi
12001 ;;
12002 esac
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12004$as_echo "$enable_shared" >&6; }
12005
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12007$as_echo_n "checking whether to build static libraries... " >&6; }
12008 # Make sure either enable_shared or enable_static is yes.
12009 test "$enable_shared" = yes || enable_static=yes
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12011$as_echo "$enable_static" >&6; }
12012
12013
12014
12015
12016fi
12017ac_ext=c
12018ac_cpp='$CPP $CPPFLAGS'
12019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12021ac_compiler_gnu=$ac_cv_c_compiler_gnu
12022
12023CC="$lt_save_CC"
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
Chris Craikb50c2172013-07-29 15:28:30 -070012037
12038
Patrick Scott5f6bd842010-06-28 16:55:16 -040012039 ac_config_commands="$ac_config_commands libtool"
12040
12041
12042
12043
12044# Only expand once:
12045
12046
12047
Chris Craikb50c2172013-07-29 15:28:30 -070012048
12049# Some awks crash when confronted with pnglibconf.dfa, do a test run now
12050# to make sure this doesn't happen
12051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that AWK works" >&5
12052$as_echo_n "checking that AWK works... " >&6; }
12053if ${AWK} -f ${srcdir}/scripts/options.awk out="/dev/null" version=search\
12054 ${srcdir}/pngconf.h ${srcdir}/scripts/pnglibconf.dfa\
12055 ${srcdir}/pngusr.dfa 1>&2
12056then
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12058$as_echo "ok" >&6; }
12059else
12060 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12061$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12062as_fn_error 1 "failed
12063See \`config.log' for more details" "$LINENO" 5; }
12064fi
12065
12066# This is a remnant of the old cc -E validation, where it may have been
12067# necessary to use a different preprocessor for .dfn files
12068DFNCPP="$CPP"
12069
12070
12071# -Werror cannot be passed to GCC in CFLAGS because configure will fail (it
12072# checks the compiler with a program that generates a warning), add the
12073# following option to deal with this
12074
12075# Check whether --enable-werror was given.
12076if test "${enable_werror+set}" = set; then :
12077 enableval=$enable_werror; test "$enable_werror" = "yes" && enable_werror="-Werror"
12078 if test "$enable_werror" != "no"; then
12079 sav_CFLAGS="$CFLAGS"
12080 CFLAGS="$enable_werror $CFLAGS"
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler allows $enable_werror" >&5
12082$as_echo_n "checking if the compiler allows $enable_werror... " >&6; }
12083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12084/* end confdefs.h. */
12085
12086 int main(int argc, char **argv){
12087 return argv[argc-1][0];
12088 }
12089_ACEOF
12090if ac_fn_c_try_compile "$LINENO"; then :
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12092$as_echo "yes" >&6; }
12093 PNG_COPTS="$PNG_COPTS $enable_werror"
12094else
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12096$as_echo "no" >&6; }
12097fi
12098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12099 CFLAGS="$sav_CFLAGS"
12100 fi
12101fi
12102
12103
Patrick Scott5f6bd842010-06-28 16:55:16 -040012104# Checks for header files.
12105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12106$as_echo_n "checking for ANSI C header files... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -070012107if ${ac_cv_header_stdc+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -040012108 $as_echo_n "(cached) " >&6
12109else
12110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12111/* end confdefs.h. */
12112#include <stdlib.h>
12113#include <stdarg.h>
12114#include <string.h>
12115#include <float.h>
12116
12117int
12118main ()
12119{
12120
12121 ;
12122 return 0;
12123}
12124_ACEOF
12125if ac_fn_c_try_compile "$LINENO"; then :
12126 ac_cv_header_stdc=yes
12127else
12128 ac_cv_header_stdc=no
12129fi
12130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12131
12132if test $ac_cv_header_stdc = yes; then
12133 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135/* end confdefs.h. */
12136#include <string.h>
12137
12138_ACEOF
12139if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12140 $EGREP "memchr" >/dev/null 2>&1; then :
12141
12142else
12143 ac_cv_header_stdc=no
12144fi
12145rm -f conftest*
12146
12147fi
12148
12149if test $ac_cv_header_stdc = yes; then
12150 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12152/* end confdefs.h. */
12153#include <stdlib.h>
12154
12155_ACEOF
12156if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12157 $EGREP "free" >/dev/null 2>&1; then :
12158
12159else
12160 ac_cv_header_stdc=no
12161fi
12162rm -f conftest*
12163
12164fi
12165
12166if test $ac_cv_header_stdc = yes; then
12167 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12168 if test "$cross_compiling" = yes; then :
12169 :
12170else
12171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12172/* end confdefs.h. */
12173#include <ctype.h>
12174#include <stdlib.h>
12175#if ((' ' & 0x0FF) == 0x020)
12176# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12177# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12178#else
12179# define ISLOWER(c) \
12180 (('a' <= (c) && (c) <= 'i') \
12181 || ('j' <= (c) && (c) <= 'r') \
12182 || ('s' <= (c) && (c) <= 'z'))
12183# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12184#endif
12185
12186#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12187int
12188main ()
12189{
12190 int i;
12191 for (i = 0; i < 256; i++)
12192 if (XOR (islower (i), ISLOWER (i))
12193 || toupper (i) != TOUPPER (i))
12194 return 2;
12195 return 0;
12196}
12197_ACEOF
12198if ac_fn_c_try_run "$LINENO"; then :
12199
12200else
12201 ac_cv_header_stdc=no
12202fi
12203rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12204 conftest.$ac_objext conftest.beam conftest.$ac_ext
12205fi
12206
12207fi
12208fi
12209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12210$as_echo "$ac_cv_header_stdc" >&6; }
12211if test $ac_cv_header_stdc = yes; then
12212
12213$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12214
12215fi
12216
Patrick Scott5f6bd842010-06-28 16:55:16 -040012217
12218# Checks for typedefs, structures, and compiler characteristics.
12219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12220$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -070012221if ${ac_cv_c_const+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -040012222 $as_echo_n "(cached) " >&6
12223else
12224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12225/* end confdefs.h. */
12226
12227int
12228main ()
12229{
Chris Craikb50c2172013-07-29 15:28:30 -070012230
Patrick Scott5f6bd842010-06-28 16:55:16 -040012231#ifndef __cplusplus
Chris Craikb50c2172013-07-29 15:28:30 -070012232 /* Ultrix mips cc rejects this sort of thing. */
Patrick Scott5f6bd842010-06-28 16:55:16 -040012233 typedef int charset[2];
Chris Craikb50c2172013-07-29 15:28:30 -070012234 const charset cs = { 0, 0 };
Patrick Scott5f6bd842010-06-28 16:55:16 -040012235 /* SunOS 4.1.1 cc rejects this. */
12236 char const *const *pcpcc;
12237 char **ppc;
12238 /* NEC SVR4.0.2 mips cc rejects this. */
12239 struct point {int x, y;};
12240 static struct point const zero = {0,0};
12241 /* AIX XL C 1.02.0.0 rejects this.
12242 It does not let you subtract one const X* pointer from another in
12243 an arm of an if-expression whose if-part is not a constant
12244 expression */
12245 const char *g = "string";
12246 pcpcc = &g + (g ? g-g : 0);
12247 /* HPUX 7.0 cc rejects these. */
12248 ++pcpcc;
12249 ppc = (char**) pcpcc;
12250 pcpcc = (char const *const *) ppc;
Chris Craikb50c2172013-07-29 15:28:30 -070012251 { /* SCO 3.2v4 cc rejects this sort of thing. */
12252 char tx;
12253 char *t = &tx;
Patrick Scott5f6bd842010-06-28 16:55:16 -040012254 char const *s = 0 ? (char *) 0 : (char const *) 0;
12255
12256 *t++ = 0;
12257 if (s) return 0;
12258 }
12259 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12260 int x[] = {25, 17};
12261 const int *foo = &x[0];
12262 ++foo;
12263 }
12264 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12265 typedef const int *iptr;
12266 iptr p = 0;
12267 ++p;
12268 }
Chris Craikb50c2172013-07-29 15:28:30 -070012269 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
Patrick Scott5f6bd842010-06-28 16:55:16 -040012270 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
Chris Craikb50c2172013-07-29 15:28:30 -070012271 struct s { int j; const int *ap[3]; } bx;
12272 struct s *b = &bx; b->j = 5;
Patrick Scott5f6bd842010-06-28 16:55:16 -040012273 }
12274 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12275 const int foo = 10;
12276 if (!foo) return 0;
12277 }
12278 return !cs[0] && !zero.x;
12279#endif
12280
12281 ;
12282 return 0;
12283}
12284_ACEOF
12285if ac_fn_c_try_compile "$LINENO"; then :
12286 ac_cv_c_const=yes
12287else
12288 ac_cv_c_const=no
12289fi
12290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12291fi
12292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12293$as_echo "$ac_cv_c_const" >&6; }
12294if test $ac_cv_c_const = no; then
12295
12296$as_echo "#define const /**/" >>confdefs.h
12297
12298fi
12299
12300ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Chris Craikb50c2172013-07-29 15:28:30 -070012301if test "x$ac_cv_type_size_t" = xyes; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -040012302
12303else
12304
12305cat >>confdefs.h <<_ACEOF
12306#define size_t unsigned int
12307_ACEOF
12308
12309fi
12310
12311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12312$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -070012313if ${ac_cv_struct_tm+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -040012314 $as_echo_n "(cached) " >&6
12315else
12316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12317/* end confdefs.h. */
12318#include <sys/types.h>
12319#include <time.h>
12320
12321int
12322main ()
12323{
12324struct tm tm;
12325 int *p = &tm.tm_sec;
12326 return !p;
12327 ;
12328 return 0;
12329}
12330_ACEOF
12331if ac_fn_c_try_compile "$LINENO"; then :
12332 ac_cv_struct_tm=time.h
12333else
12334 ac_cv_struct_tm=sys/time.h
12335fi
12336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12337fi
12338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12339$as_echo "$ac_cv_struct_tm" >&6; }
12340if test $ac_cv_struct_tm = sys/time.h; then
12341
12342$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12343
12344fi
12345
Chris Craikb50c2172013-07-29 15:28:30 -070012346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
12347$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
12348if ${ac_cv_c_restrict+:} false; then :
12349 $as_echo_n "(cached) " >&6
12350else
12351 ac_cv_c_restrict=no
12352 # The order here caters to the fact that C++ does not require restrict.
12353 for ac_kw in __restrict __restrict__ _Restrict restrict; do
12354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12355/* end confdefs.h. */
12356typedef int * int_ptr;
12357 int foo (int_ptr $ac_kw ip) {
12358 return ip[0];
12359 }
12360int
12361main ()
12362{
12363int s[1];
12364 int * $ac_kw t = s;
12365 t[0] = 0;
12366 return foo(t)
12367 ;
12368 return 0;
12369}
12370_ACEOF
12371if ac_fn_c_try_compile "$LINENO"; then :
12372 ac_cv_c_restrict=$ac_kw
12373fi
12374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12375 test "$ac_cv_c_restrict" != no && break
12376 done
12377
12378fi
12379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
12380$as_echo "$ac_cv_c_restrict" >&6; }
12381
12382 case $ac_cv_c_restrict in
12383 restrict) ;;
12384 no) $as_echo "#define restrict /**/" >>confdefs.h
12385 ;;
12386 *) cat >>confdefs.h <<_ACEOF
12387#define restrict $ac_cv_c_restrict
12388_ACEOF
12389 ;;
12390 esac
12391
Patrick Scott5f6bd842010-06-28 16:55:16 -040012392
12393# Checks for library functions.
12394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
12395$as_echo_n "checking for working strtod... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -070012396if ${ac_cv_func_strtod+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -040012397 $as_echo_n "(cached) " >&6
12398else
12399 if test "$cross_compiling" = yes; then :
12400 ac_cv_func_strtod=no
12401else
12402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12403/* end confdefs.h. */
12404
12405$ac_includes_default
12406#ifndef strtod
12407double strtod ();
12408#endif
12409int
12410main()
12411{
12412 {
12413 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
12414 char *string = " +69";
12415 char *term;
12416 double value;
12417 value = strtod (string, &term);
12418 if (value != 69 || term != (string + 4))
12419 return 1;
12420 }
12421
12422 {
12423 /* Under Solaris 2.4, strtod returns the wrong value for the
12424 terminating character under some conditions. */
12425 char *string = "NaN";
12426 char *term;
12427 strtod (string, &term);
12428 if (term != string && *(term - 1) == 0)
12429 return 1;
12430 }
12431 return 0;
12432}
12433
12434_ACEOF
12435if ac_fn_c_try_run "$LINENO"; then :
12436 ac_cv_func_strtod=yes
12437else
12438 ac_cv_func_strtod=no
12439fi
12440rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12441 conftest.$ac_objext conftest.beam conftest.$ac_ext
12442fi
12443
12444fi
12445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
12446$as_echo "$ac_cv_func_strtod" >&6; }
12447if test $ac_cv_func_strtod = no; then
12448 case " $LIBOBJS " in
12449 *" strtod.$ac_objext "* ) ;;
12450 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
12451 ;;
12452esac
12453
12454ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
Chris Craikb50c2172013-07-29 15:28:30 -070012455if test "x$ac_cv_func_pow" = xyes; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -040012456
12457fi
12458
12459if test $ac_cv_func_pow = no; then
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12461$as_echo_n "checking for pow in -lm... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -070012462if ${ac_cv_lib_m_pow+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -040012463 $as_echo_n "(cached) " >&6
12464else
12465 ac_check_lib_save_LIBS=$LIBS
12466LIBS="-lm $LIBS"
12467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12468/* end confdefs.h. */
12469
12470/* Override any GCC internal prototype to avoid an error.
12471 Use char because int might match the return type of a GCC
12472 builtin and then its argument prototype would still apply. */
12473#ifdef __cplusplus
12474extern "C"
12475#endif
12476char pow ();
12477int
12478main ()
12479{
12480return pow ();
12481 ;
12482 return 0;
12483}
12484_ACEOF
12485if ac_fn_c_try_link "$LINENO"; then :
12486 ac_cv_lib_m_pow=yes
12487else
12488 ac_cv_lib_m_pow=no
12489fi
12490rm -f core conftest.err conftest.$ac_objext \
12491 conftest$ac_exeext conftest.$ac_ext
12492LIBS=$ac_check_lib_save_LIBS
12493fi
12494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12495$as_echo "$ac_cv_lib_m_pow" >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -070012496if test "x$ac_cv_lib_m_pow" = xyes; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -040012497 POW_LIB=-lm
12498else
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
12500$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12501fi
12502
12503fi
12504
12505fi
12506
12507for ac_func in memset
12508do :
12509 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
Chris Craikb50c2172013-07-29 15:28:30 -070012510if test "x$ac_cv_func_memset" = xyes; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -040012511 cat >>confdefs.h <<_ACEOF
12512#define HAVE_MEMSET 1
12513_ACEOF
12514
12515else
Chris Craikb50c2172013-07-29 15:28:30 -070012516 as_fn_error $? "memset not found in libc" "$LINENO" 5
Patrick Scott5f6bd842010-06-28 16:55:16 -040012517fi
12518done
12519
12520for ac_func in pow
12521do :
12522 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
Chris Craikb50c2172013-07-29 15:28:30 -070012523if test "x$ac_cv_func_pow" = xyes; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -040012524 cat >>confdefs.h <<_ACEOF
12525#define HAVE_POW 1
12526_ACEOF
12527
12528else
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12530$as_echo_n "checking for pow in -lm... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -070012531if ${ac_cv_lib_m_pow+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -040012532 $as_echo_n "(cached) " >&6
12533else
12534 ac_check_lib_save_LIBS=$LIBS
12535LIBS="-lm $LIBS"
12536cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12537/* end confdefs.h. */
12538
12539/* Override any GCC internal prototype to avoid an error.
12540 Use char because int might match the return type of a GCC
12541 builtin and then its argument prototype would still apply. */
12542#ifdef __cplusplus
12543extern "C"
12544#endif
12545char pow ();
12546int
12547main ()
12548{
12549return pow ();
12550 ;
12551 return 0;
12552}
12553_ACEOF
12554if ac_fn_c_try_link "$LINENO"; then :
12555 ac_cv_lib_m_pow=yes
12556else
12557 ac_cv_lib_m_pow=no
12558fi
12559rm -f core conftest.err conftest.$ac_objext \
12560 conftest$ac_exeext conftest.$ac_ext
12561LIBS=$ac_check_lib_save_LIBS
12562fi
12563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12564$as_echo "$ac_cv_lib_m_pow" >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -070012565if test "x$ac_cv_lib_m_pow" = xyes; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -040012566 cat >>confdefs.h <<_ACEOF
12567#define HAVE_LIBM 1
12568_ACEOF
12569
12570 LIBS="-lm $LIBS"
12571
12572else
Chris Craikb50c2172013-07-29 15:28:30 -070012573 as_fn_error $? "cannot find pow" "$LINENO" 5
Patrick Scott5f6bd842010-06-28 16:55:16 -040012574fi
12575
12576fi
12577done
12578
Chris Craikb50c2172013-07-29 15:28:30 -070012579
12580# Check whether --with-zlib-prefix was given.
12581if test "${with_zlib_prefix+set}" = set; then :
12582 withval=$with_zlib_prefix; ZPREFIX=${withval}
12583else
12584 ZPREFIX='z_'
12585fi
12586
Patrick Scott5f6bd842010-06-28 16:55:16 -040012587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
12588$as_echo_n "checking for zlibVersion in -lz... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -070012589if ${ac_cv_lib_z_zlibVersion+:} false; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -040012590 $as_echo_n "(cached) " >&6
12591else
12592 ac_check_lib_save_LIBS=$LIBS
12593LIBS="-lz $LIBS"
12594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595/* end confdefs.h. */
12596
12597/* Override any GCC internal prototype to avoid an error.
12598 Use char because int might match the return type of a GCC
12599 builtin and then its argument prototype would still apply. */
12600#ifdef __cplusplus
12601extern "C"
12602#endif
12603char zlibVersion ();
12604int
12605main ()
12606{
12607return zlibVersion ();
12608 ;
12609 return 0;
12610}
12611_ACEOF
12612if ac_fn_c_try_link "$LINENO"; then :
12613 ac_cv_lib_z_zlibVersion=yes
12614else
12615 ac_cv_lib_z_zlibVersion=no
12616fi
12617rm -f core conftest.err conftest.$ac_objext \
12618 conftest$ac_exeext conftest.$ac_ext
12619LIBS=$ac_check_lib_save_LIBS
12620fi
12621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
12622$as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -070012623if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
Patrick Scott5f6bd842010-06-28 16:55:16 -040012624 cat >>confdefs.h <<_ACEOF
12625#define HAVE_LIBZ 1
12626_ACEOF
12627
12628 LIBS="-lz $LIBS"
12629
12630else
Chris Craikb50c2172013-07-29 15:28:30 -070012631 as_ac_Lib=`$as_echo "ac_cv_lib_z_${ZPREFIX}zlibVersion" | $as_tr_sh`
12632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ZPREFIX}zlibVersion in -lz" >&5
12633$as_echo_n "checking for ${ZPREFIX}zlibVersion in -lz... " >&6; }
12634if eval \${$as_ac_Lib+:} false; then :
12635 $as_echo_n "(cached) " >&6
12636else
12637 ac_check_lib_save_LIBS=$LIBS
12638LIBS="-lz $LIBS"
Patrick Scott5f6bd842010-06-28 16:55:16 -040012639cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12640/* end confdefs.h. */
Chris Craikb50c2172013-07-29 15:28:30 -070012641
12642/* Override any GCC internal prototype to avoid an error.
12643 Use char because int might match the return type of a GCC
12644 builtin and then its argument prototype would still apply. */
12645#ifdef __cplusplus
12646extern "C"
12647#endif
12648char ${ZPREFIX}zlibVersion ();
Patrick Scott5f6bd842010-06-28 16:55:16 -040012649int
12650main ()
12651{
Chris Craikb50c2172013-07-29 15:28:30 -070012652return ${ZPREFIX}zlibVersion ();
Patrick Scott5f6bd842010-06-28 16:55:16 -040012653 ;
12654 return 0;
12655}
12656_ACEOF
Chris Craikb50c2172013-07-29 15:28:30 -070012657if ac_fn_c_try_link "$LINENO"; then :
12658 eval "$as_ac_Lib=yes"
Patrick Scott5f6bd842010-06-28 16:55:16 -040012659else
Chris Craikb50c2172013-07-29 15:28:30 -070012660 eval "$as_ac_Lib=no"
Patrick Scott5f6bd842010-06-28 16:55:16 -040012661fi
Chris Craikb50c2172013-07-29 15:28:30 -070012662rm -f core conftest.err conftest.$ac_objext \
12663 conftest$ac_exeext conftest.$ac_ext
12664LIBS=$ac_check_lib_save_LIBS
12665fi
12666eval ac_res=\$$as_ac_Lib
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12668$as_echo "$ac_res" >&6; }
12669if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12670 cat >>confdefs.h <<_ACEOF
12671#define HAVE_LIBZ 1
12672_ACEOF
Patrick Scott5f6bd842010-06-28 16:55:16 -040012673
Chris Craikb50c2172013-07-29 15:28:30 -070012674 LIBS="-lz $LIBS"
12675
12676else
12677 as_fn_error $? "zlib not installed" "$LINENO" 5
12678fi
12679
12680fi
12681
12682
12683# The following is for pngvalid, to ensure it catches FP errors even on
12684# platforms that don't enable FP exceptions, the function appears in the math
12685# library (typically), it's not an error if it is not found.
12686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
12687$as_echo_n "checking for feenableexcept in -lm... " >&6; }
12688if ${ac_cv_lib_m_feenableexcept+:} false; then :
12689 $as_echo_n "(cached) " >&6
12690else
12691 ac_check_lib_save_LIBS=$LIBS
12692LIBS="-lm $LIBS"
12693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12694/* end confdefs.h. */
12695
12696/* Override any GCC internal prototype to avoid an error.
12697 Use char because int might match the return type of a GCC
12698 builtin and then its argument prototype would still apply. */
12699#ifdef __cplusplus
12700extern "C"
12701#endif
12702char feenableexcept ();
12703int
12704main ()
12705{
12706return feenableexcept ();
12707 ;
12708 return 0;
12709}
12710_ACEOF
12711if ac_fn_c_try_link "$LINENO"; then :
12712 ac_cv_lib_m_feenableexcept=yes
12713else
12714 ac_cv_lib_m_feenableexcept=no
12715fi
12716rm -f core conftest.err conftest.$ac_objext \
12717 conftest$ac_exeext conftest.$ac_ext
12718LIBS=$ac_check_lib_save_LIBS
12719fi
12720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
12721$as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
12722if test "x$ac_cv_lib_m_feenableexcept" = xyes; then :
12723 cat >>confdefs.h <<_ACEOF
12724#define HAVE_LIBM 1
12725_ACEOF
12726
12727 LIBS="-lm $LIBS"
12728
12729fi
12730
12731for ac_func in feenableexcept
12732do :
12733 ac_fn_c_check_func "$LINENO" "feenableexcept" "ac_cv_func_feenableexcept"
12734if test "x$ac_cv_func_feenableexcept" = xyes; then :
12735 cat >>confdefs.h <<_ACEOF
12736#define HAVE_FEENABLEEXCEPT 1
12737_ACEOF
12738
12739fi
12740done
12741
12742
12743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if using Solaris linker" >&5
12744$as_echo_n "checking if using Solaris linker... " >&6; }
12745SLD=`$LD --version 2>&1 | grep Solaris`
12746if test "$SLD"; then
12747 have_solaris_ld=yes
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12749$as_echo "yes" >&6; }
12750else
12751 have_solaris_ld=no
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12753$as_echo "no" >&6; }
12754fi
12755 if test "$have_solaris_ld" = "yes"; then
12756 HAVE_SOLARIS_LD_TRUE=
12757 HAVE_SOLARIS_LD_FALSE='#'
12758else
12759 HAVE_SOLARIS_LD_TRUE='#'
12760 HAVE_SOLARIS_LD_FALSE=
12761fi
Patrick Scott5f6bd842010-06-28 16:55:16 -040012762
12763
12764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
12765$as_echo_n "checking if libraries can be versioned... " >&6; }
Chris Craikb50c2172013-07-29 15:28:30 -070012766# Special case for PE/COFF platforms: ld reports
12767# support for version-script, but doesn't actually
12768# DO anything with it.
12769case $host in
12770*cygwin* | *mingw32* | *interix* )
12771 have_ld_version_script=no
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12773$as_echo "no" >&6; }
12774;;
12775* )
12776
12777if test "$have_solaris_ld" = "yes"; then
12778 GLD=`$LD --help < /dev/null 2>&1 | grep 'M mapfile'`
12779else
12780 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
12781fi
12782
Patrick Scott5f6bd842010-06-28 16:55:16 -040012783if test "$GLD"; then
12784 have_ld_version_script=yes
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12786$as_echo "yes" >&6; }
12787else
12788 have_ld_version_script=no
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12790$as_echo "no" >&6; }
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** You have not enabled versioned symbols." >&5
12792$as_echo "$as_me: WARNING: *** You have not enabled versioned symbols." >&2;}
12793fi
Chris Craikb50c2172013-07-29 15:28:30 -070012794;;
12795esac
12796
Patrick Scott5f6bd842010-06-28 16:55:16 -040012797 if test "$have_ld_version_script" = "yes"; then
12798 HAVE_LD_VERSION_SCRIPT_TRUE=
12799 HAVE_LD_VERSION_SCRIPT_FALSE='#'
12800else
12801 HAVE_LD_VERSION_SCRIPT_TRUE='#'
12802 HAVE_LD_VERSION_SCRIPT_FALSE=
12803fi
12804
12805
12806if test "$have_ld_version_script" = "yes"; then
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbol prefix" >&5
12808$as_echo_n "checking for symbol prefix... " >&6; }
12809 SYMBOL_PREFIX=`echo "PREFIX=__USER_LABEL_PREFIX__" \
Chris Craikb50c2172013-07-29 15:28:30 -070012810 | ${CPP-${CC-gcc} -E} - 2>&1 \
12811 | ${EGREP-grep} "^PREFIX=" \
12812 | ${SED-sed} -e "s:^PREFIX=::" -e "s:__USER_LABEL_PREFIX__::"`
Patrick Scott5f6bd842010-06-28 16:55:16 -040012813
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMBOL_PREFIX" >&5
12815$as_echo "$SYMBOL_PREFIX" >&6; }
12816fi
12817
12818# Substitutions for .in files
12819
12820
12821
12822
12823
12824# Additional arguments (and substitutions)
12825# Allow the pkg-config directory to be set
12826
12827# Check whether --with-pkgconfigdir was given.
12828if test "${with_pkgconfigdir+set}" = set; then :
12829 withval=$with_pkgconfigdir; pkgconfigdir=${withval}
12830else
12831 pkgconfigdir='${libdir}/pkgconfig'
12832fi
12833
12834
12835
12836{ $as_echo "$as_me:${as_lineno-$LINENO}: pkgconfig directory is ${pkgconfigdir}" >&5
12837$as_echo "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;}
12838
12839# Make the *-config binary config scripts optional
12840
12841# Check whether --with-binconfigs was given.
12842if test "${with_binconfigs+set}" = set; then :
12843 withval=$with_binconfigs; if test "${withval}" = no; then
Chris Craikb50c2172013-07-29 15:28:30 -070012844 binconfigs=
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: libpng-config scripts will not be built" >&5
Patrick Scott5f6bd842010-06-28 16:55:16 -040012846$as_echo "$as_me: libpng-config scripts will not be built" >&6;}
Chris Craikb50c2172013-07-29 15:28:30 -070012847 else
12848 binconfigs='${binconfigs}'
12849 fi
Patrick Scott5f6bd842010-06-28 16:55:16 -040012850else
12851 binconfigs='${binconfigs}'
12852fi
12853
12854
12855
Chris Craikb50c2172013-07-29 15:28:30 -070012856# Support for prefixes to the API function names; this will generate defines
12857# at the start of the build to rename exported library functions
Patrick Scott5f6bd842010-06-28 16:55:16 -040012858
Chris Craikb50c2172013-07-29 15:28:30 -070012859# Check whether --with-libpng-prefix was given.
12860if test "${with_libpng_prefix+set}" = set; then :
12861 withval=$with_libpng_prefix; if test "${withval:-no}" != "no"; then
12862 PNG_PREFIX=${withval}
12863
12864 fi
12865fi
12866
12867 if test "${with_libpng_prefix:-no}" != "no"; then
12868 DO_PNG_PREFIX_TRUE=
12869 DO_PNG_PREFIX_FALSE='#'
Patrick Scott5f6bd842010-06-28 16:55:16 -040012870else
Chris Craikb50c2172013-07-29 15:28:30 -070012871 DO_PNG_PREFIX_TRUE='#'
12872 DO_PNG_PREFIX_FALSE=
Patrick Scott5f6bd842010-06-28 16:55:16 -040012873fi
12874
12875
Sireesh Tripurarib478e662014-05-09 15:15:10 +053012876# Control over what links are made for installed files. Versioned files are
12877# always installed, when the following options are turned on corresponding
12878# unversioned links are also created (normally as symbolic links):
12879# Check whether --enable-unversioned-links was given.
12880if test "${enable_unversioned_links+set}" = set; then :
12881 enableval=$enable_unversioned_links;
12882fi
12883
12884
12885# The AM_CONDITIONAL test is written so that the default is enabled;
12886# --disable-unversioned-links must be given to turn the option off.
12887 if test "$enable_unversioned_links" != "no"; then
12888 DO_INSTALL_LINKS_TRUE=
12889 DO_INSTALL_LINKS_FALSE='#'
12890else
12891 DO_INSTALL_LINKS_TRUE='#'
12892 DO_INSTALL_LINKS_FALSE=
12893fi
12894
12895
12896# Check whether --enable-unversioned-libpng-pc was given.
12897if test "${enable_unversioned_libpng_pc+set}" = set; then :
12898 enableval=$enable_unversioned_libpng_pc;
12899fi
12900
12901 if test "$enable_unversioned_libpng_pc" != "no"; then
12902 DO_INSTALL_LIBPNG_PC_TRUE=
12903 DO_INSTALL_LIBPNG_PC_FALSE='#'
12904else
12905 DO_INSTALL_LIBPNG_PC_TRUE='#'
12906 DO_INSTALL_LIBPNG_PC_FALSE=
12907fi
12908
12909
12910# Check whether --enable-unversioned-libpng-config was given.
12911if test "${enable_unversioned_libpng_config+set}" = set; then :
12912 enableval=$enable_unversioned_libpng_config;
12913fi
12914
12915 if test "$enable_unversioned_libpng_config" != "no"; then
12916 DO_INSTALL_LIBPNG_CONFIG_TRUE=
12917 DO_INSTALL_LIBPNG_CONFIG_FALSE='#'
12918else
12919 DO_INSTALL_LIBPNG_CONFIG_TRUE='#'
12920 DO_INSTALL_LIBPNG_CONFIG_FALSE=
12921fi
12922
12923
Chris Craikb50c2172013-07-29 15:28:30 -070012924# HOST SPECIFIC OPTIONS
12925# =====================
12926#
12927# ARM
12928# ===
12929#
12930# ARM NEON (SIMD) support.
12931
12932# Check whether --enable-arm-neon was given.
12933if test "${enable_arm_neon+set}" = set; then :
12934 enableval=$enable_arm_neon; case "$enableval" in
12935 no|off)
12936 # disable the default enabling on __ARM_NEON__ systems:
12937
12938$as_echo "#define PNG_ARM_NEON_OPT 0" >>confdefs.h
12939
12940 # Prevent inclusion of the assembler files below:
12941 enable_arm_neon=no;;
12942 check)
12943
12944$as_echo "#define PNG_ARM_NEON_CHECK_SUPPORTED /**/" >>confdefs.h
12945;;
12946 api)
12947
12948$as_echo "#define PNG_ARM_NEON_API_SUPPORTED /**/" >>confdefs.h
12949;;
12950 yes|on)
12951
12952$as_echo "#define PNG_ARM_NEON_OPT 2" >>confdefs.h
12953
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-arm-neon: please specify 'check' or 'api', if
12955 you want the optimizations unconditionally pass -mfpu=neon
12956 to the compiler." >&5
12957$as_echo "$as_me: WARNING: --enable-arm-neon: please specify 'check' or 'api', if
12958 you want the optimizations unconditionally pass -mfpu=neon
12959 to the compiler." >&2;};;
12960 *)
12961 as_fn_error $? "--enable-arm-neon=${enable_arm_neon}: invalid value" "$LINENO" 5
12962 esac
12963fi
12964
12965
12966# Add ARM specific files to all builds where the host_cpu is arm ('arm*') or
12967# where ARM optimizations were explicitly requested (this allows a fallback if a
12968# future host CPU does not match 'arm*')
12969
12970 if test "$enable_arm_neon" != 'no' &&
12971 case "$host_cpu" in
12972 arm*) :;;
12973 *) test "$enable_arm_neon" != '';;
12974 esac; then
12975 PNG_ARM_NEON_TRUE=
12976 PNG_ARM_NEON_FALSE='#'
12977else
12978 PNG_ARM_NEON_TRUE='#'
12979 PNG_ARM_NEON_FALSE=
12980fi
12981
12982
12983{ $as_echo "$as_me:${as_lineno-$LINENO}: Extra options for compiler: $PNG_COPTS" >&5
12984$as_echo "$as_me: Extra options for compiler: $PNG_COPTS" >&6;}
Patrick Scott5f6bd842010-06-28 16:55:16 -040012985
12986# Config files, substituting as above
Chris Craikb50c2172013-07-29 15:28:30 -070012987ac_config_files="$ac_config_files Makefile libpng.pc:libpng.pc.in"
Patrick Scott5f6bd842010-06-28 16:55:16 -040012988
Chris Craikb50c2172013-07-29 15:28:30 -070012989ac_config_files="$ac_config_files libpng-config:libpng-config.in"
Patrick Scott5f6bd842010-06-28 16:55:16 -040012990
12991
12992cat >confcache <<\_ACEOF
12993# This file is a shell script that caches the results of configure
12994# tests run on this system so they can be shared between configure
12995# scripts and configure runs, see configure's option --config-cache.
12996# It is not useful on other systems. If it contains results you don't
12997# want to keep, you may remove or edit it.
12998#
12999# config.status only pays attention to the cache file if you give it
13000# the --recheck option to rerun configure.
13001#
13002# `ac_cv_env_foo' variables (set or unset) will be overridden when
13003# loading this file, other *unset* `ac_cv_foo' will be assigned the
13004# following values.
13005
13006_ACEOF
13007
13008# The following way of writing the cache mishandles newlines in values,
13009# but we know of no workaround that is simple, portable, and efficient.
13010# So, we kill variables containing newlines.
13011# Ultrix sh set writes to stderr and can't be redirected directly,
13012# and sets the high bit in the cache file unless we assign to the vars.
13013(
13014 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13015 eval ac_val=\$$ac_var
13016 case $ac_val in #(
13017 *${as_nl}*)
13018 case $ac_var in #(
13019 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13020$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13021 esac
13022 case $ac_var in #(
13023 _ | IFS | as_nl) ;; #(
13024 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13025 *) { eval $ac_var=; unset $ac_var;} ;;
13026 esac ;;
13027 esac
13028 done
13029
13030 (set) 2>&1 |
13031 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13032 *${as_nl}ac_space=\ *)
13033 # `set' does not quote correctly, so add quotes: double-quote
13034 # substitution turns \\\\ into \\, and sed turns \\ into \.
13035 sed -n \
13036 "s/'/'\\\\''/g;
13037 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13038 ;; #(
13039 *)
13040 # `set' quotes correctly as required by POSIX, so do not add quotes.
13041 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13042 ;;
13043 esac |
13044 sort
13045) |
13046 sed '
13047 /^ac_cv_env_/b end
13048 t clear
13049 :clear
13050 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13051 t end
13052 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13053 :end' >>confcache
13054if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13055 if test -w "$cache_file"; then
Chris Craikb50c2172013-07-29 15:28:30 -070013056 if test "x$cache_file" != "x/dev/null"; then
Patrick Scott5f6bd842010-06-28 16:55:16 -040013057 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13058$as_echo "$as_me: updating cache $cache_file" >&6;}
Chris Craikb50c2172013-07-29 15:28:30 -070013059 if test ! -f "$cache_file" || test -h "$cache_file"; then
13060 cat confcache >"$cache_file"
13061 else
13062 case $cache_file in #(
13063 */* | ?:*)
13064 mv -f confcache "$cache_file"$$ &&
13065 mv -f "$cache_file"$$ "$cache_file" ;; #(
13066 *)
13067 mv -f confcache "$cache_file" ;;
13068 esac
13069 fi
13070 fi
Patrick Scott5f6bd842010-06-28 16:55:16 -040013071 else
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13073$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13074 fi
13075fi
13076rm -f confcache
13077
13078test "x$prefix" = xNONE && prefix=$ac_default_prefix
13079# Let make expand exec_prefix.
13080test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13081
13082DEFS=-DHAVE_CONFIG_H
13083
13084ac_libobjs=
13085ac_ltlibobjs=
Chris Craikb50c2172013-07-29 15:28:30 -070013086U=
Patrick Scott5f6bd842010-06-28 16:55:16 -040013087for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13088 # 1. Remove the extension, and $U if already installed.
13089 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13090 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13091 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13092 # will be set to the directory where LIBOBJS objects are built.
13093 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13094 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13095done
13096LIBOBJS=$ac_libobjs
13097
13098LTLIBOBJS=$ac_ltlibobjs
13099
13100
Chris Craikb50c2172013-07-29 15:28:30 -070013101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13102$as_echo_n "checking that generated files are newer than configure... " >&6; }
13103 if test -n "$am_sleep_pid"; then
13104 # Hide warnings about reused PIDs.
13105 wait $am_sleep_pid 2>/dev/null
13106 fi
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13108$as_echo "done" >&6; }
Patrick Scott5f6bd842010-06-28 16:55:16 -040013109 if test -n "$EXEEXT"; then
13110 am__EXEEXT_TRUE=
13111 am__EXEEXT_FALSE='#'
13112else
13113 am__EXEEXT_TRUE='#'
13114 am__EXEEXT_FALSE=
13115fi
13116
13117if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
Chris Craikb50c2172013-07-29 15:28:30 -070013118 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
Patrick Scott5f6bd842010-06-28 16:55:16 -040013119Usually this means the macro was only invoked conditionally." "$LINENO" 5
13120fi
13121if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Chris Craikb50c2172013-07-29 15:28:30 -070013122 as_fn_error $? "conditional \"AMDEP\" was never defined.
Patrick Scott5f6bd842010-06-28 16:55:16 -040013123Usually this means the macro was only invoked conditionally." "$LINENO" 5
13124fi
13125if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Chris Craikb50c2172013-07-29 15:28:30 -070013126 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13127Usually this means the macro was only invoked conditionally." "$LINENO" 5
13128fi
13129if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
13130 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
13131Usually this means the macro was only invoked conditionally." "$LINENO" 5
13132fi
13133if test -z "${HAVE_SOLARIS_LD_TRUE}" && test -z "${HAVE_SOLARIS_LD_FALSE}"; then
13134 as_fn_error $? "conditional \"HAVE_SOLARIS_LD\" was never defined.
Patrick Scott5f6bd842010-06-28 16:55:16 -040013135Usually this means the macro was only invoked conditionally." "$LINENO" 5
13136fi
13137if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
Chris Craikb50c2172013-07-29 15:28:30 -070013138 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
13139Usually this means the macro was only invoked conditionally." "$LINENO" 5
13140fi
13141if test -z "${DO_PNG_PREFIX_TRUE}" && test -z "${DO_PNG_PREFIX_FALSE}"; then
13142 as_fn_error $? "conditional \"DO_PNG_PREFIX\" was never defined.
13143Usually this means the macro was only invoked conditionally." "$LINENO" 5
13144fi
Sireesh Tripurarib478e662014-05-09 15:15:10 +053013145if test -z "${DO_INSTALL_LINKS_TRUE}" && test -z "${DO_INSTALL_LINKS_FALSE}"; then
13146 as_fn_error $? "conditional \"DO_INSTALL_LINKS\" was never defined.
13147Usually this means the macro was only invoked conditionally." "$LINENO" 5
13148fi
13149if test -z "${DO_INSTALL_LIBPNG_PC_TRUE}" && test -z "${DO_INSTALL_LIBPNG_PC_FALSE}"; then
13150 as_fn_error $? "conditional \"DO_INSTALL_LIBPNG_PC\" was never defined.
13151Usually this means the macro was only invoked conditionally." "$LINENO" 5
13152fi
13153if test -z "${DO_INSTALL_LIBPNG_CONFIG_TRUE}" && test -z "${DO_INSTALL_LIBPNG_CONFIG_FALSE}"; then
13154 as_fn_error $? "conditional \"DO_INSTALL_LIBPNG_CONFIG\" was never defined.
13155Usually this means the macro was only invoked conditionally." "$LINENO" 5
13156fi
Chris Craikb50c2172013-07-29 15:28:30 -070013157if test -z "${PNG_ARM_NEON_TRUE}" && test -z "${PNG_ARM_NEON_FALSE}"; then
13158 as_fn_error $? "conditional \"PNG_ARM_NEON\" was never defined.
Patrick Scott5f6bd842010-06-28 16:55:16 -040013159Usually this means the macro was only invoked conditionally." "$LINENO" 5
13160fi
13161
Chris Craikb50c2172013-07-29 15:28:30 -070013162: "${CONFIG_STATUS=./config.status}"
Patrick Scott5f6bd842010-06-28 16:55:16 -040013163ac_write_fail=0
13164ac_clean_files_save=$ac_clean_files
13165ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13166{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13167$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13168as_write_fail=0
13169cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13170#! $SHELL
13171# Generated by $as_me.
13172# Run this file to recreate the current configuration.
13173# Compiler output produced by configure, useful for debugging
13174# configure, is in config.log if it exists.
13175
13176debug=false
13177ac_cs_recheck=false
13178ac_cs_silent=false
13179
13180SHELL=\${CONFIG_SHELL-$SHELL}
13181export SHELL
13182_ASEOF
13183cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13184## -------------------- ##
13185## M4sh Initialization. ##
13186## -------------------- ##
13187
13188# Be more Bourne compatible
13189DUALCASE=1; export DUALCASE # for MKS sh
13190if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13191 emulate sh
13192 NULLCMD=:
13193 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13194 # is contrary to our usage. Disable this feature.
13195 alias -g '${1+"$@"}'='"$@"'
13196 setopt NO_GLOB_SUBST
13197else
13198 case `(set -o) 2>/dev/null` in #(
13199 *posix*) :
13200 set -o posix ;; #(
13201 *) :
13202 ;;
13203esac
13204fi
13205
13206
13207as_nl='
13208'
13209export as_nl
13210# Printing a long string crashes Solaris 7 /usr/bin/printf.
13211as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13212as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13213as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13214# Prefer a ksh shell builtin over an external printf program on Solaris,
13215# but without wasting forks for bash or zsh.
13216if test -z "$BASH_VERSION$ZSH_VERSION" \
13217 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13218 as_echo='print -r --'
13219 as_echo_n='print -rn --'
13220elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13221 as_echo='printf %s\n'
13222 as_echo_n='printf %s'
13223else
13224 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13225 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13226 as_echo_n='/usr/ucb/echo -n'
13227 else
13228 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13229 as_echo_n_body='eval
13230 arg=$1;
13231 case $arg in #(
13232 *"$as_nl"*)
13233 expr "X$arg" : "X\\(.*\\)$as_nl";
13234 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13235 esac;
13236 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13237 '
13238 export as_echo_n_body
13239 as_echo_n='sh -c $as_echo_n_body as_echo'
13240 fi
13241 export as_echo_body
13242 as_echo='sh -c $as_echo_body as_echo'
13243fi
13244
13245# The user is always right.
13246if test "${PATH_SEPARATOR+set}" != set; then
13247 PATH_SEPARATOR=:
13248 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13249 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13250 PATH_SEPARATOR=';'
13251 }
13252fi
13253
13254
13255# IFS
13256# We need space, tab and new line, in precisely that order. Quoting is
13257# there to prevent editors from complaining about space-tab.
13258# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13259# splitting by setting IFS to empty value.)
13260IFS=" "" $as_nl"
13261
13262# Find who we are. Look in the path if we contain no directory separator.
Chris Craikb50c2172013-07-29 15:28:30 -070013263as_myself=
Patrick Scott5f6bd842010-06-28 16:55:16 -040013264case $0 in #((
13265 *[\\/]* ) as_myself=$0 ;;
13266 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13267for as_dir in $PATH
13268do
13269 IFS=$as_save_IFS
13270 test -z "$as_dir" && as_dir=.
13271 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13272 done
13273IFS=$as_save_IFS
13274
13275 ;;
13276esac
13277# We did not find ourselves, most probably we were run as `sh COMMAND'
13278# in which case we are not to be found in the path.
13279if test "x$as_myself" = x; then
13280 as_myself=$0
13281fi
13282if test ! -f "$as_myself"; then
13283 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13284 exit 1
13285fi
13286
13287# Unset variables that we do not need and which cause bugs (e.g. in
13288# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13289# suppresses any "Segmentation fault" message there. '((' could
13290# trigger a bug in pdksh 5.2.14.
13291for as_var in BASH_ENV ENV MAIL MAILPATH
13292do eval test x\${$as_var+set} = xset \
13293 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13294done
13295PS1='$ '
13296PS2='> '
13297PS4='+ '
13298
13299# NLS nuisances.
13300LC_ALL=C
13301export LC_ALL
13302LANGUAGE=C
13303export LANGUAGE
13304
13305# CDPATH.
13306(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13307
13308
Chris Craikb50c2172013-07-29 15:28:30 -070013309# as_fn_error STATUS ERROR [LINENO LOG_FD]
13310# ----------------------------------------
Patrick Scott5f6bd842010-06-28 16:55:16 -040013311# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13312# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Chris Craikb50c2172013-07-29 15:28:30 -070013313# script with STATUS, using 1 if that was 0.
Patrick Scott5f6bd842010-06-28 16:55:16 -040013314as_fn_error ()
13315{
Chris Craikb50c2172013-07-29 15:28:30 -070013316 as_status=$1; test $as_status -eq 0 && as_status=1
13317 if test "$4"; then
13318 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13319 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Patrick Scott5f6bd842010-06-28 16:55:16 -040013320 fi
Chris Craikb50c2172013-07-29 15:28:30 -070013321 $as_echo "$as_me: error: $2" >&2
Patrick Scott5f6bd842010-06-28 16:55:16 -040013322 as_fn_exit $as_status
13323} # as_fn_error
13324
13325
13326# as_fn_set_status STATUS
13327# -----------------------
13328# Set $? to STATUS, without forking.
13329as_fn_set_status ()
13330{
13331 return $1
13332} # as_fn_set_status
13333
13334# as_fn_exit STATUS
13335# -----------------
13336# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13337as_fn_exit ()
13338{
13339 set +e
13340 as_fn_set_status $1
13341 exit $1
13342} # as_fn_exit
13343
13344# as_fn_unset VAR
13345# ---------------
13346# Portably unset VAR.
13347as_fn_unset ()
13348{
13349 { eval $1=; unset $1;}
13350}
13351as_unset=as_fn_unset
13352# as_fn_append VAR VALUE
13353# ----------------------
13354# Append the text in VALUE to the end of the definition contained in VAR. Take
13355# advantage of any shell optimizations that allow amortized linear growth over
13356# repeated appends, instead of the typical quadratic growth present in naive
13357# implementations.
13358if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13359 eval 'as_fn_append ()
13360 {
13361 eval $1+=\$2
13362 }'
13363else
13364 as_fn_append ()
13365 {
13366 eval $1=\$$1\$2
13367 }
13368fi # as_fn_append
13369
13370# as_fn_arith ARG...
13371# ------------------
13372# Perform arithmetic evaluation on the ARGs, and store the result in the
13373# global $as_val. Take advantage of shells that can avoid forks. The arguments
13374# must be portable across $(()) and expr.
13375if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13376 eval 'as_fn_arith ()
13377 {
13378 as_val=$(( $* ))
13379 }'
13380else
13381 as_fn_arith ()
13382 {
13383 as_val=`expr "$@" || test $? -eq 1`
13384 }
13385fi # as_fn_arith
13386
13387
13388if expr a : '\(a\)' >/dev/null 2>&1 &&
13389 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13390 as_expr=expr
13391else
13392 as_expr=false
13393fi
13394
13395if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13396 as_basename=basename
13397else
13398 as_basename=false
13399fi
13400
13401if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13402 as_dirname=dirname
13403else
13404 as_dirname=false
13405fi
13406
13407as_me=`$as_basename -- "$0" ||
13408$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13409 X"$0" : 'X\(//\)$' \| \
13410 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13411$as_echo X/"$0" |
13412 sed '/^.*\/\([^/][^/]*\)\/*$/{
13413 s//\1/
13414 q
13415 }
13416 /^X\/\(\/\/\)$/{
13417 s//\1/
13418 q
13419 }
13420 /^X\/\(\/\).*/{
13421 s//\1/
13422 q
13423 }
13424 s/.*/./; q'`
13425
13426# Avoid depending upon Character Ranges.
13427as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13428as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13429as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13430as_cr_digits='0123456789'
13431as_cr_alnum=$as_cr_Letters$as_cr_digits
13432
13433ECHO_C= ECHO_N= ECHO_T=
13434case `echo -n x` in #(((((
13435-n*)
13436 case `echo 'xy\c'` in
13437 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13438 xy) ECHO_C='\c';;
13439 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13440 ECHO_T=' ';;
13441 esac;;
13442*)
13443 ECHO_N='-n';;
13444esac
13445
13446rm -f conf$$ conf$$.exe conf$$.file
13447if test -d conf$$.dir; then
13448 rm -f conf$$.dir/conf$$.file
13449else
13450 rm -f conf$$.dir
13451 mkdir conf$$.dir 2>/dev/null
13452fi
13453if (echo >conf$$.file) 2>/dev/null; then
13454 if ln -s conf$$.file conf$$ 2>/dev/null; then
13455 as_ln_s='ln -s'
13456 # ... but there are two gotchas:
13457 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13458 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Chris Craikb50c2172013-07-29 15:28:30 -070013459 # In both cases, we have to default to `cp -pR'.
Patrick Scott5f6bd842010-06-28 16:55:16 -040013460 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Chris Craikb50c2172013-07-29 15:28:30 -070013461 as_ln_s='cp -pR'
Patrick Scott5f6bd842010-06-28 16:55:16 -040013462 elif ln conf$$.file conf$$ 2>/dev/null; then
13463 as_ln_s=ln
13464 else
Chris Craikb50c2172013-07-29 15:28:30 -070013465 as_ln_s='cp -pR'
Patrick Scott5f6bd842010-06-28 16:55:16 -040013466 fi
13467else
Chris Craikb50c2172013-07-29 15:28:30 -070013468 as_ln_s='cp -pR'
Patrick Scott5f6bd842010-06-28 16:55:16 -040013469fi
13470rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13471rmdir conf$$.dir 2>/dev/null
13472
13473
13474# as_fn_mkdir_p
13475# -------------
13476# Create "$as_dir" as a directory, including parents if necessary.
13477as_fn_mkdir_p ()
13478{
13479
13480 case $as_dir in #(
13481 -*) as_dir=./$as_dir;;
13482 esac
13483 test -d "$as_dir" || eval $as_mkdir_p || {
13484 as_dirs=
13485 while :; do
13486 case $as_dir in #(
13487 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13488 *) as_qdir=$as_dir;;
13489 esac
13490 as_dirs="'$as_qdir' $as_dirs"
13491 as_dir=`$as_dirname -- "$as_dir" ||
13492$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13493 X"$as_dir" : 'X\(//\)[^/]' \| \
13494 X"$as_dir" : 'X\(//\)$' \| \
13495 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13496$as_echo X"$as_dir" |
13497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13498 s//\1/
13499 q
13500 }
13501 /^X\(\/\/\)[^/].*/{
13502 s//\1/
13503 q
13504 }
13505 /^X\(\/\/\)$/{
13506 s//\1/
13507 q
13508 }
13509 /^X\(\/\).*/{
13510 s//\1/
13511 q
13512 }
13513 s/.*/./; q'`
13514 test -d "$as_dir" && break
13515 done
13516 test -z "$as_dirs" || eval "mkdir $as_dirs"
Chris Craikb50c2172013-07-29 15:28:30 -070013517 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Patrick Scott5f6bd842010-06-28 16:55:16 -040013518
13519
13520} # as_fn_mkdir_p
13521if mkdir -p . 2>/dev/null; then
13522 as_mkdir_p='mkdir -p "$as_dir"'
13523else
13524 test -d ./-p && rmdir ./-p
13525 as_mkdir_p=false
13526fi
13527
Chris Craikb50c2172013-07-29 15:28:30 -070013528
13529# as_fn_executable_p FILE
13530# -----------------------
13531# Test if FILE is an executable regular file.
13532as_fn_executable_p ()
13533{
13534 test -f "$1" && test -x "$1"
13535} # as_fn_executable_p
13536as_test_x='test -x'
13537as_executable_p=as_fn_executable_p
Patrick Scott5f6bd842010-06-28 16:55:16 -040013538
13539# Sed expression to map a string onto a valid CPP name.
13540as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13541
13542# Sed expression to map a string onto a valid variable name.
13543as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13544
13545
13546exec 6>&1
13547## ----------------------------------- ##
13548## Main body of $CONFIG_STATUS script. ##
13549## ----------------------------------- ##
13550_ASEOF
13551test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13552
13553cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13554# Save the log message, to keep $0 and so on meaningful, and to
13555# report actual input values of CONFIG_FILES etc. instead of their
13556# values after options handling.
13557ac_log="
Sireesh Tripurarib478e662014-05-09 15:15:10 +053013558This file was extended by libpng $as_me 1.6.10, which was
Chris Craikb50c2172013-07-29 15:28:30 -070013559generated by GNU Autoconf 2.69. Invocation command line was
Patrick Scott5f6bd842010-06-28 16:55:16 -040013560
13561 CONFIG_FILES = $CONFIG_FILES
13562 CONFIG_HEADERS = $CONFIG_HEADERS
13563 CONFIG_LINKS = $CONFIG_LINKS
13564 CONFIG_COMMANDS = $CONFIG_COMMANDS
13565 $ $0 $@
13566
13567on `(hostname || uname -n) 2>/dev/null | sed 1q`
13568"
13569
13570_ACEOF
13571
13572case $ac_config_files in *"
13573"*) set x $ac_config_files; shift; ac_config_files=$*;;
13574esac
13575
13576case $ac_config_headers in *"
13577"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13578esac
13579
13580
13581cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13582# Files that config.status was made for.
13583config_files="$ac_config_files"
13584config_headers="$ac_config_headers"
13585config_commands="$ac_config_commands"
13586
13587_ACEOF
13588
13589cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13590ac_cs_usage="\
13591\`$as_me' instantiates files and other configuration actions
13592from templates according to the current configuration. Unless the files
13593and actions are specified as TAGs, all are instantiated by default.
13594
13595Usage: $0 [OPTION]... [TAG]...
13596
13597 -h, --help print this help, then exit
13598 -V, --version print version number and configuration settings, then exit
13599 --config print configuration, then exit
13600 -q, --quiet, --silent
13601 do not print progress messages
13602 -d, --debug don't remove temporary files
13603 --recheck update $as_me by reconfiguring in the same conditions
13604 --file=FILE[:TEMPLATE]
13605 instantiate the configuration file FILE
13606 --header=FILE[:TEMPLATE]
13607 instantiate the configuration header FILE
13608
13609Configuration files:
13610$config_files
13611
13612Configuration headers:
13613$config_headers
13614
13615Configuration commands:
13616$config_commands
13617
13618Report bugs to <png-mng-implement@lists.sourceforge.net>."
13619
13620_ACEOF
13621cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13622ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13623ac_cs_version="\\
Sireesh Tripurarib478e662014-05-09 15:15:10 +053013624libpng config.status 1.6.10
Chris Craikb50c2172013-07-29 15:28:30 -070013625configured by $0, generated by GNU Autoconf 2.69,
Patrick Scott5f6bd842010-06-28 16:55:16 -040013626 with options \\"\$ac_cs_config\\"
13627
Chris Craikb50c2172013-07-29 15:28:30 -070013628Copyright (C) 2012 Free Software Foundation, Inc.
Patrick Scott5f6bd842010-06-28 16:55:16 -040013629This config.status script is free software; the Free Software Foundation
13630gives unlimited permission to copy, distribute and modify it."
13631
13632ac_pwd='$ac_pwd'
13633srcdir='$srcdir'
13634INSTALL='$INSTALL'
13635MKDIR_P='$MKDIR_P'
13636AWK='$AWK'
13637test -n "\$AWK" || AWK=awk
13638_ACEOF
13639
13640cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13641# The default lists apply if the user does not specify any file.
13642ac_need_defaults=:
13643while test $# != 0
13644do
13645 case $1 in
Chris Craikb50c2172013-07-29 15:28:30 -070013646 --*=?*)
Patrick Scott5f6bd842010-06-28 16:55:16 -040013647 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13648 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13649 ac_shift=:
13650 ;;
Chris Craikb50c2172013-07-29 15:28:30 -070013651 --*=)
13652 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13653 ac_optarg=
13654 ac_shift=:
13655 ;;
Patrick Scott5f6bd842010-06-28 16:55:16 -040013656 *)
13657 ac_option=$1
13658 ac_optarg=$2
13659 ac_shift=shift
13660 ;;
13661 esac
13662
13663 case $ac_option in
13664 # Handling of the options.
13665 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13666 ac_cs_recheck=: ;;
13667 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13668 $as_echo "$ac_cs_version"; exit ;;
13669 --config | --confi | --conf | --con | --co | --c )
13670 $as_echo "$ac_cs_config"; exit ;;
13671 --debug | --debu | --deb | --de | --d | -d )
13672 debug=: ;;
13673 --file | --fil | --fi | --f )
13674 $ac_shift
13675 case $ac_optarg in
13676 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Chris Craikb50c2172013-07-29 15:28:30 -070013677 '') as_fn_error $? "missing file argument" ;;
Patrick Scott5f6bd842010-06-28 16:55:16 -040013678 esac
13679 as_fn_append CONFIG_FILES " '$ac_optarg'"
13680 ac_need_defaults=false;;
13681 --header | --heade | --head | --hea )
13682 $ac_shift
13683 case $ac_optarg in
13684 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13685 esac
13686 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13687 ac_need_defaults=false;;
13688 --he | --h)
13689 # Conflict between --help and --header
Chris Craikb50c2172013-07-29 15:28:30 -070013690 as_fn_error $? "ambiguous option: \`$1'
Patrick Scott5f6bd842010-06-28 16:55:16 -040013691Try \`$0 --help' for more information.";;
13692 --help | --hel | -h )
13693 $as_echo "$ac_cs_usage"; exit ;;
13694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13695 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13696 ac_cs_silent=: ;;
13697
13698 # This is an error.
Chris Craikb50c2172013-07-29 15:28:30 -070013699 -*) as_fn_error $? "unrecognized option: \`$1'
Patrick Scott5f6bd842010-06-28 16:55:16 -040013700Try \`$0 --help' for more information." ;;
13701
13702 *) as_fn_append ac_config_targets " $1"
13703 ac_need_defaults=false ;;
13704
13705 esac
13706 shift
13707done
13708
13709ac_configure_extra_args=
13710
13711if $ac_cs_silent; then
13712 exec 6>/dev/null
13713 ac_configure_extra_args="$ac_configure_extra_args --silent"
13714fi
13715
13716_ACEOF
13717cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13718if \$ac_cs_recheck; then
Chris Craikb50c2172013-07-29 15:28:30 -070013719 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Patrick Scott5f6bd842010-06-28 16:55:16 -040013720 shift
13721 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13722 CONFIG_SHELL='$SHELL'
13723 export CONFIG_SHELL
13724 exec "\$@"
13725fi
13726
13727_ACEOF
13728cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13729exec 5>>config.log
13730{
13731 echo
13732 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13733## Running $as_me. ##
13734_ASBOX
13735 $as_echo "$ac_log"
13736} >&5
13737
13738_ACEOF
13739cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13740#
13741# INIT-COMMANDS
13742#
13743AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13744
13745
13746# The HP-UX ksh and POSIX shell print the target directory to stdout
13747# if CDPATH is set.
13748(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13749
13750sed_quote_subst='$sed_quote_subst'
13751double_quote_subst='$double_quote_subst'
13752delay_variable_subst='$delay_variable_subst'
Chris Craikb50c2172013-07-29 15:28:30 -070013753SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13754Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13755GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13756EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13757FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13758SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13759ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13760LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13761macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13762macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13763AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13764DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13765OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13766enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13767enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13768pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13769enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13770PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13771host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13772host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13773host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13774build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13775build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13776build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13777NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13778LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13779max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13780ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13781exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13782lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13783lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13784lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13785lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13786lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13787reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13788reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13789deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13790file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13791file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13792want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13793sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13794AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13795AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13796archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13797STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13798RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13799old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13800old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13801old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13802lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13803CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13804CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13805compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13806GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13807lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13808lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13809lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13810lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
13811nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13812lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13813objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13814MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13815lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13816lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13817lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13818lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13819lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13820need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13821MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13822DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13823NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13824LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13825OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13826OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13827libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13828shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13829extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13830archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13831enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13832export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13833whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13834compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13835old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13836old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13837archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13838archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13839module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13840module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13841with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13842allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13843no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13844hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13845hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13846hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13847hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13848hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13849hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13850hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13851inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13852link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13853always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13854export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13855exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13856include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13857prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13858postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13859file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13860variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13861need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13862need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13863version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13864runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13865shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13866shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13867libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13868library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13869soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13870install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13871postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13872postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13873finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13874finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13875hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13876sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13877sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13878hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13879enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13880enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13881enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13882old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13883striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
Patrick Scott5f6bd842010-06-28 16:55:16 -040013884
13885LTCC='$LTCC'
13886LTCFLAGS='$LTCFLAGS'
13887compiler='$compiler_DEFAULT'
13888
Chris Craikb50c2172013-07-29 15:28:30 -070013889# A function that is used when there is no print builtin or printf.
13890func_fallback_echo ()
13891{
13892 eval 'cat <<_LTECHO_EOF
13893\$1
13894_LTECHO_EOF'
13895}
13896
Patrick Scott5f6bd842010-06-28 16:55:16 -040013897# Quote evaled strings.
13898for var in SED \
13899GREP \
13900EGREP \
13901FGREP \
Chris Craikb50c2172013-07-29 15:28:30 -070013902SHELL \
13903ECHO \
Patrick Scott5f6bd842010-06-28 16:55:16 -040013904LD \
Chris Craikb50c2172013-07-29 15:28:30 -070013905AS \
13906DLLTOOL \
13907OBJDUMP \
13908PATH_SEPARATOR \
Patrick Scott5f6bd842010-06-28 16:55:16 -040013909NM \
13910LN_S \
13911lt_SP2NL \
13912lt_NL2SP \
13913reload_flag \
13914deplibs_check_method \
13915file_magic_cmd \
Chris Craikb50c2172013-07-29 15:28:30 -070013916file_magic_glob \
13917want_nocaseglob \
13918sharedlib_from_linklib_cmd \
Patrick Scott5f6bd842010-06-28 16:55:16 -040013919AR \
13920AR_FLAGS \
Chris Craikb50c2172013-07-29 15:28:30 -070013921archiver_list_spec \
Patrick Scott5f6bd842010-06-28 16:55:16 -040013922STRIP \
13923RANLIB \
13924CC \
13925CFLAGS \
13926compiler \
13927lt_cv_sys_global_symbol_pipe \
13928lt_cv_sys_global_symbol_to_cdecl \
13929lt_cv_sys_global_symbol_to_c_name_address \
13930lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
Chris Craikb50c2172013-07-29 15:28:30 -070013931nm_file_list_spec \
Patrick Scott5f6bd842010-06-28 16:55:16 -040013932lt_prog_compiler_no_builtin_flag \
Patrick Scott5f6bd842010-06-28 16:55:16 -040013933lt_prog_compiler_pic \
Chris Craikb50c2172013-07-29 15:28:30 -070013934lt_prog_compiler_wl \
Patrick Scott5f6bd842010-06-28 16:55:16 -040013935lt_prog_compiler_static \
13936lt_cv_prog_compiler_c_o \
13937need_locks \
Chris Craikb50c2172013-07-29 15:28:30 -070013938MANIFEST_TOOL \
Patrick Scott5f6bd842010-06-28 16:55:16 -040013939DSYMUTIL \
13940NMEDIT \
13941LIPO \
13942OTOOL \
13943OTOOL64 \
13944shrext_cmds \
13945export_dynamic_flag_spec \
13946whole_archive_flag_spec \
13947compiler_needs_object \
13948with_gnu_ld \
13949allow_undefined_flag \
13950no_undefined_flag \
13951hardcode_libdir_flag_spec \
Patrick Scott5f6bd842010-06-28 16:55:16 -040013952hardcode_libdir_separator \
Patrick Scott5f6bd842010-06-28 16:55:16 -040013953exclude_expsyms \
13954include_expsyms \
13955file_list_spec \
13956variables_saved_for_relink \
13957libname_spec \
13958library_names_spec \
13959soname_spec \
Chris Craikb50c2172013-07-29 15:28:30 -070013960install_override_mode \
Patrick Scott5f6bd842010-06-28 16:55:16 -040013961finish_eval \
13962old_striplib \
13963striplib; do
Chris Craikb50c2172013-07-29 15:28:30 -070013964 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Patrick Scott5f6bd842010-06-28 16:55:16 -040013965 *[\\\\\\\`\\"\\\$]*)
Chris Craikb50c2172013-07-29 15:28:30 -070013966 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
Patrick Scott5f6bd842010-06-28 16:55:16 -040013967 ;;
13968 *)
13969 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13970 ;;
13971 esac
13972done
13973
13974# Double-quote double-evaled strings.
13975for var in reload_cmds \
13976old_postinstall_cmds \
13977old_postuninstall_cmds \
13978old_archive_cmds \
13979extract_expsyms_cmds \
13980old_archive_from_new_cmds \
13981old_archive_from_expsyms_cmds \
13982archive_cmds \
13983archive_expsym_cmds \
13984module_cmds \
13985module_expsym_cmds \
13986export_symbols_cmds \
13987prelink_cmds \
Chris Craikb50c2172013-07-29 15:28:30 -070013988postlink_cmds \
Patrick Scott5f6bd842010-06-28 16:55:16 -040013989postinstall_cmds \
13990postuninstall_cmds \
13991finish_cmds \
13992sys_lib_search_path_spec \
13993sys_lib_dlsearch_path_spec; do
Chris Craikb50c2172013-07-29 15:28:30 -070013994 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Patrick Scott5f6bd842010-06-28 16:55:16 -040013995 *[\\\\\\\`\\"\\\$]*)
Chris Craikb50c2172013-07-29 15:28:30 -070013996 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
Patrick Scott5f6bd842010-06-28 16:55:16 -040013997 ;;
13998 *)
13999 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14000 ;;
14001 esac
14002done
14003
Patrick Scott5f6bd842010-06-28 16:55:16 -040014004ac_aux_dir='$ac_aux_dir'
14005xsi_shell='$xsi_shell'
14006lt_shell_append='$lt_shell_append'
14007
14008# See if we are running on zsh, and set the options which allow our
14009# commands through without removal of \ escapes INIT.
14010if test -n "\${ZSH_VERSION+set}" ; then
14011 setopt NO_GLOB_SUBST
14012fi
14013
14014
14015 PACKAGE='$PACKAGE'
14016 VERSION='$VERSION'
14017 TIMESTAMP='$TIMESTAMP'
14018 RM='$RM'
14019 ofile='$ofile'
14020
14021
14022
14023
14024_ACEOF
14025
14026cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14027
14028# Handling of arguments.
14029for ac_config_target in $ac_config_targets
14030do
14031 case $ac_config_target in
14032 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14033 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14034 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14035 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Chris Craikb50c2172013-07-29 15:28:30 -070014036 "libpng.pc") CONFIG_FILES="$CONFIG_FILES libpng.pc:libpng.pc.in" ;;
14037 "libpng-config") CONFIG_FILES="$CONFIG_FILES libpng-config:libpng-config.in" ;;
Patrick Scott5f6bd842010-06-28 16:55:16 -040014038
Chris Craikb50c2172013-07-29 15:28:30 -070014039 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Patrick Scott5f6bd842010-06-28 16:55:16 -040014040 esac
14041done
14042
14043
14044# If the user did not use the arguments to specify the items to instantiate,
14045# then the envvar interface is used. Set only those that are not.
14046# We use the long form for the default assignment because of an extremely
14047# bizarre bug on SunOS 4.1.3.
14048if $ac_need_defaults; then
14049 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14050 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14051 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14052fi
14053
14054# Have a temporary directory for convenience. Make it in the build tree
14055# simply because there is no reason against having it here, and in addition,
14056# creating and moving files from /tmp can sometimes cause problems.
14057# Hook for its removal unless debugging.
14058# Note that there is a small window in which the directory will not be cleaned:
14059# after its creation but before its name has been assigned to `$tmp'.
14060$debug ||
14061{
Chris Craikb50c2172013-07-29 15:28:30 -070014062 tmp= ac_tmp=
Patrick Scott5f6bd842010-06-28 16:55:16 -040014063 trap 'exit_status=$?
Chris Craikb50c2172013-07-29 15:28:30 -070014064 : "${ac_tmp:=$tmp}"
14065 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Patrick Scott5f6bd842010-06-28 16:55:16 -040014066' 0
14067 trap 'as_fn_exit 1' 1 2 13 15
14068}
14069# Create a (secure) tmp directory for tmp files.
14070
14071{
14072 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Chris Craikb50c2172013-07-29 15:28:30 -070014073 test -d "$tmp"
Patrick Scott5f6bd842010-06-28 16:55:16 -040014074} ||
14075{
14076 tmp=./conf$$-$RANDOM
14077 (umask 077 && mkdir "$tmp")
Chris Craikb50c2172013-07-29 15:28:30 -070014078} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14079ac_tmp=$tmp
Patrick Scott5f6bd842010-06-28 16:55:16 -040014080
14081# Set up the scripts for CONFIG_FILES section.
14082# No need to generate them if there are no CONFIG_FILES.
14083# This happens for instance with `./config.status config.h'.
14084if test -n "$CONFIG_FILES"; then
14085
14086
14087ac_cr=`echo X | tr X '\015'`
14088# On cygwin, bash can eat \r inside `` if the user requested igncr.
14089# But we know of no other shell where ac_cr would be empty at this
14090# point, so we can use a bashism as a fallback.
14091if test "x$ac_cr" = x; then
14092 eval ac_cr=\$\'\\r\'
14093fi
14094ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14095if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Chris Craikb50c2172013-07-29 15:28:30 -070014096 ac_cs_awk_cr='\\r'
Patrick Scott5f6bd842010-06-28 16:55:16 -040014097else
14098 ac_cs_awk_cr=$ac_cr
14099fi
14100
Chris Craikb50c2172013-07-29 15:28:30 -070014101echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Patrick Scott5f6bd842010-06-28 16:55:16 -040014102_ACEOF
14103
14104
14105{
14106 echo "cat >conf$$subs.awk <<_ACEOF" &&
14107 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14108 echo "_ACEOF"
14109} >conf$$subs.sh ||
Chris Craikb50c2172013-07-29 15:28:30 -070014110 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14111ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Patrick Scott5f6bd842010-06-28 16:55:16 -040014112ac_delim='%!_!# '
14113for ac_last_try in false false false false false :; do
14114 . ./conf$$subs.sh ||
Chris Craikb50c2172013-07-29 15:28:30 -070014115 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Patrick Scott5f6bd842010-06-28 16:55:16 -040014116
14117 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14118 if test $ac_delim_n = $ac_delim_num; then
14119 break
14120 elif $ac_last_try; then
Chris Craikb50c2172013-07-29 15:28:30 -070014121 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Patrick Scott5f6bd842010-06-28 16:55:16 -040014122 else
14123 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14124 fi
14125done
14126rm -f conf$$subs.sh
14127
14128cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Chris Craikb50c2172013-07-29 15:28:30 -070014129cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Patrick Scott5f6bd842010-06-28 16:55:16 -040014130_ACEOF
14131sed -n '
14132h
14133s/^/S["/; s/!.*/"]=/
14134p
14135g
14136s/^[^!]*!//
14137:repl
14138t repl
14139s/'"$ac_delim"'$//
14140t delim
14141:nl
14142h
14143s/\(.\{148\}\)..*/\1/
14144t more1
14145s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14146p
14147n
14148b repl
14149:more1
14150s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14151p
14152g
14153s/.\{148\}//
14154t nl
14155:delim
14156h
14157s/\(.\{148\}\)..*/\1/
14158t more2
14159s/["\\]/\\&/g; s/^/"/; s/$/"/
14160p
14161b
14162:more2
14163s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14164p
14165g
14166s/.\{148\}//
14167t delim
14168' <conf$$subs.awk | sed '
14169/^[^""]/{
14170 N
14171 s/\n//
14172}
14173' >>$CONFIG_STATUS || ac_write_fail=1
14174rm -f conf$$subs.awk
14175cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14176_ACAWK
Chris Craikb50c2172013-07-29 15:28:30 -070014177cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Patrick Scott5f6bd842010-06-28 16:55:16 -040014178 for (key in S) S_is_set[key] = 1
14179 FS = ""
14180
14181}
14182{
14183 line = $ 0
14184 nfields = split(line, field, "@")
14185 substed = 0
14186 len = length(field[1])
14187 for (i = 2; i < nfields; i++) {
14188 key = field[i]
14189 keylen = length(key)
14190 if (S_is_set[key]) {
14191 value = S[key]
14192 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14193 len += length(value) + length(field[++i])
14194 substed = 1
14195 } else
14196 len += 1 + keylen
14197 }
14198
14199 print line
14200}
14201
14202_ACAWK
14203_ACEOF
14204cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14205if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14206 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14207else
14208 cat
Chris Craikb50c2172013-07-29 15:28:30 -070014209fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14210 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Patrick Scott5f6bd842010-06-28 16:55:16 -040014211_ACEOF
14212
Chris Craikb50c2172013-07-29 15:28:30 -070014213# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14214# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Patrick Scott5f6bd842010-06-28 16:55:16 -040014215# trailing colons and then remove the whole line if VPATH becomes empty
14216# (actually we leave an empty line to preserve line numbers).
14217if test "x$srcdir" = x.; then
Chris Craikb50c2172013-07-29 15:28:30 -070014218 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14219h
14220s///
14221s/^/:/
14222s/[ ]*$/:/
14223s/:\$(srcdir):/:/g
14224s/:\${srcdir}:/:/g
14225s/:@srcdir@:/:/g
14226s/^:*//
Patrick Scott5f6bd842010-06-28 16:55:16 -040014227s/:*$//
Chris Craikb50c2172013-07-29 15:28:30 -070014228x
14229s/\(=[ ]*\).*/\1/
14230G
14231s/\n//
Patrick Scott5f6bd842010-06-28 16:55:16 -040014232s/^[^=]*=[ ]*$//
14233}'
14234fi
14235
14236cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14237fi # test -n "$CONFIG_FILES"
14238
14239# Set up the scripts for CONFIG_HEADERS section.
14240# No need to generate them if there are no CONFIG_HEADERS.
14241# This happens for instance with `./config.status Makefile'.
14242if test -n "$CONFIG_HEADERS"; then
Chris Craikb50c2172013-07-29 15:28:30 -070014243cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Patrick Scott5f6bd842010-06-28 16:55:16 -040014244BEGIN {
14245_ACEOF
14246
14247# Transform confdefs.h into an awk script `defines.awk', embedded as
14248# here-document in config.status, that substitutes the proper values into
14249# config.h.in to produce config.h.
14250
14251# Create a delimiter string that does not exist in confdefs.h, to ease
14252# handling of long lines.
14253ac_delim='%!_!# '
14254for ac_last_try in false false :; do
Chris Craikb50c2172013-07-29 15:28:30 -070014255 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14256 if test -z "$ac_tt"; then
Patrick Scott5f6bd842010-06-28 16:55:16 -040014257 break
14258 elif $ac_last_try; then
Chris Craikb50c2172013-07-29 15:28:30 -070014259 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Patrick Scott5f6bd842010-06-28 16:55:16 -040014260 else
14261 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14262 fi
14263done
14264
14265# For the awk script, D is an array of macro values keyed by name,
14266# likewise P contains macro parameters if any. Preserve backslash
14267# newline sequences.
14268
14269ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14270sed -n '
14271s/.\{148\}/&'"$ac_delim"'/g
14272t rset
14273:rset
14274s/^[ ]*#[ ]*define[ ][ ]*/ /
14275t def
14276d
14277:def
14278s/\\$//
14279t bsnl
14280s/["\\]/\\&/g
14281s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14282D["\1"]=" \3"/p
14283s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14284d
14285:bsnl
14286s/["\\]/\\&/g
14287s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14288D["\1"]=" \3\\\\\\n"\\/p
14289t cont
14290s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14291t cont
14292d
14293:cont
14294n
14295s/.\{148\}/&'"$ac_delim"'/g
14296t clear
14297:clear
14298s/\\$//
14299t bsnlc
14300s/["\\]/\\&/g; s/^/"/; s/$/"/p
14301d
14302:bsnlc
14303s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14304b cont
14305' <confdefs.h | sed '
14306s/'"$ac_delim"'/"\\\
14307"/g' >>$CONFIG_STATUS || ac_write_fail=1
14308
14309cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14310 for (key in D) D_is_set[key] = 1
14311 FS = ""
14312}
14313/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14314 line = \$ 0
14315 split(line, arg, " ")
14316 if (arg[1] == "#") {
14317 defundef = arg[2]
14318 mac1 = arg[3]
14319 } else {
14320 defundef = substr(arg[1], 2)
14321 mac1 = arg[2]
14322 }
14323 split(mac1, mac2, "(") #)
14324 macro = mac2[1]
14325 prefix = substr(line, 1, index(line, defundef) - 1)
14326 if (D_is_set[macro]) {
14327 # Preserve the white space surrounding the "#".
14328 print prefix "define", macro P[macro] D[macro]
14329 next
14330 } else {
14331 # Replace #undef with comments. This is necessary, for example,
14332 # in the case of _POSIX_SOURCE, which is predefined and required
14333 # on some systems where configure will not decide to define it.
14334 if (defundef == "undef") {
14335 print "/*", prefix defundef, macro, "*/"
14336 next
14337 }
14338 }
14339}
14340{ print }
14341_ACAWK
14342_ACEOF
14343cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Chris Craikb50c2172013-07-29 15:28:30 -070014344 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Patrick Scott5f6bd842010-06-28 16:55:16 -040014345fi # test -n "$CONFIG_HEADERS"
14346
14347
14348eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14349shift
14350for ac_tag
14351do
14352 case $ac_tag in
14353 :[FHLC]) ac_mode=$ac_tag; continue;;
14354 esac
14355 case $ac_mode$ac_tag in
14356 :[FHL]*:*);;
Chris Craikb50c2172013-07-29 15:28:30 -070014357 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Patrick Scott5f6bd842010-06-28 16:55:16 -040014358 :[FH]-) ac_tag=-:-;;
14359 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14360 esac
14361 ac_save_IFS=$IFS
14362 IFS=:
14363 set x $ac_tag
14364 IFS=$ac_save_IFS
14365 shift
14366 ac_file=$1
14367 shift
14368
14369 case $ac_mode in
14370 :L) ac_source=$1;;
14371 :[FH])
14372 ac_file_inputs=
14373 for ac_f
14374 do
14375 case $ac_f in
Chris Craikb50c2172013-07-29 15:28:30 -070014376 -) ac_f="$ac_tmp/stdin";;
Patrick Scott5f6bd842010-06-28 16:55:16 -040014377 *) # Look for the file first in the build tree, then in the source tree
14378 # (if the path is not absolute). The absolute path cannot be DOS-style,
14379 # because $ac_f cannot contain `:'.
14380 test -f "$ac_f" ||
14381 case $ac_f in
14382 [\\/$]*) false;;
14383 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14384 esac ||
Chris Craikb50c2172013-07-29 15:28:30 -070014385 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Patrick Scott5f6bd842010-06-28 16:55:16 -040014386 esac
14387 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14388 as_fn_append ac_file_inputs " '$ac_f'"
14389 done
14390
14391 # Let's still pretend it is `configure' which instantiates (i.e., don't
14392 # use $as_me), people would be surprised to read:
14393 # /* config.h. Generated by config.status. */
14394 configure_input='Generated from '`
14395 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14396 `' by configure.'
14397 if test x"$ac_file" != x-; then
14398 configure_input="$ac_file. $configure_input"
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14400$as_echo "$as_me: creating $ac_file" >&6;}
14401 fi
14402 # Neutralize special characters interpreted by sed in replacement strings.
14403 case $configure_input in #(
14404 *\&* | *\|* | *\\* )
14405 ac_sed_conf_input=`$as_echo "$configure_input" |
14406 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14407 *) ac_sed_conf_input=$configure_input;;
14408 esac
14409
14410 case $ac_tag in
Chris Craikb50c2172013-07-29 15:28:30 -070014411 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14412 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Patrick Scott5f6bd842010-06-28 16:55:16 -040014413 esac
14414 ;;
14415 esac
14416
14417 ac_dir=`$as_dirname -- "$ac_file" ||
14418$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14419 X"$ac_file" : 'X\(//\)[^/]' \| \
14420 X"$ac_file" : 'X\(//\)$' \| \
14421 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14422$as_echo X"$ac_file" |
14423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14424 s//\1/
14425 q
14426 }
14427 /^X\(\/\/\)[^/].*/{
14428 s//\1/
14429 q
14430 }
14431 /^X\(\/\/\)$/{
14432 s//\1/
14433 q
14434 }
14435 /^X\(\/\).*/{
14436 s//\1/
14437 q
14438 }
14439 s/.*/./; q'`
14440 as_dir="$ac_dir"; as_fn_mkdir_p
14441 ac_builddir=.
14442
14443case "$ac_dir" in
14444.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14445*)
14446 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14447 # A ".." for each directory in $ac_dir_suffix.
14448 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14449 case $ac_top_builddir_sub in
14450 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14451 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14452 esac ;;
14453esac
14454ac_abs_top_builddir=$ac_pwd
14455ac_abs_builddir=$ac_pwd$ac_dir_suffix
14456# for backward compatibility:
14457ac_top_builddir=$ac_top_build_prefix
14458
14459case $srcdir in
14460 .) # We are building in place.
14461 ac_srcdir=.
14462 ac_top_srcdir=$ac_top_builddir_sub
14463 ac_abs_top_srcdir=$ac_pwd ;;
14464 [\\/]* | ?:[\\/]* ) # Absolute name.
14465 ac_srcdir=$srcdir$ac_dir_suffix;
14466 ac_top_srcdir=$srcdir
14467 ac_abs_top_srcdir=$srcdir ;;
14468 *) # Relative name.
14469 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14470 ac_top_srcdir=$ac_top_build_prefix$srcdir
14471 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14472esac
14473ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14474
14475
14476 case $ac_mode in
14477 :F)
14478 #
14479 # CONFIG_FILE
14480 #
14481
14482 case $INSTALL in
14483 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14484 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14485 esac
14486 ac_MKDIR_P=$MKDIR_P
14487 case $MKDIR_P in
14488 [\\/$]* | ?:[\\/]* ) ;;
14489 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14490 esac
14491_ACEOF
14492
14493cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14494# If the template does not know about datarootdir, expand it.
14495# FIXME: This hack should be removed a few years after 2.60.
14496ac_datarootdir_hack=; ac_datarootdir_seen=
14497ac_sed_dataroot='
14498/datarootdir/ {
14499 p
14500 q
14501}
14502/@datadir@/p
14503/@docdir@/p
14504/@infodir@/p
14505/@localedir@/p
14506/@mandir@/p'
14507case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14508*datarootdir*) ac_datarootdir_seen=yes;;
14509*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14511$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14512_ACEOF
14513cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14514 ac_datarootdir_hack='
14515 s&@datadir@&$datadir&g
14516 s&@docdir@&$docdir&g
14517 s&@infodir@&$infodir&g
14518 s&@localedir@&$localedir&g
14519 s&@mandir@&$mandir&g
14520 s&\\\${datarootdir}&$datarootdir&g' ;;
14521esac
14522_ACEOF
14523
14524# Neutralize VPATH when `$srcdir' = `.'.
14525# Shell code in configure.ac might set extrasub.
14526# FIXME: do we really want to maintain this feature?
14527cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14528ac_sed_extra="$ac_vpsub
14529$extrasub
14530_ACEOF
14531cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14532:t
14533/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14534s|@configure_input@|$ac_sed_conf_input|;t t
14535s&@top_builddir@&$ac_top_builddir_sub&;t t
14536s&@top_build_prefix@&$ac_top_build_prefix&;t t
14537s&@srcdir@&$ac_srcdir&;t t
14538s&@abs_srcdir@&$ac_abs_srcdir&;t t
14539s&@top_srcdir@&$ac_top_srcdir&;t t
14540s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14541s&@builddir@&$ac_builddir&;t t
14542s&@abs_builddir@&$ac_abs_builddir&;t t
14543s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14544s&@INSTALL@&$ac_INSTALL&;t t
14545s&@MKDIR_P@&$ac_MKDIR_P&;t t
14546$ac_datarootdir_hack
14547"
Chris Craikb50c2172013-07-29 15:28:30 -070014548eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14549 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Patrick Scott5f6bd842010-06-28 16:55:16 -040014550
14551test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Chris Craikb50c2172013-07-29 15:28:30 -070014552 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14553 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14554 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Patrick Scott5f6bd842010-06-28 16:55:16 -040014555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Chris Craikb50c2172013-07-29 15:28:30 -070014556which seems to be undefined. Please make sure it is defined" >&5
Patrick Scott5f6bd842010-06-28 16:55:16 -040014557$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Chris Craikb50c2172013-07-29 15:28:30 -070014558which seems to be undefined. Please make sure it is defined" >&2;}
Patrick Scott5f6bd842010-06-28 16:55:16 -040014559
Chris Craikb50c2172013-07-29 15:28:30 -070014560 rm -f "$ac_tmp/stdin"
Patrick Scott5f6bd842010-06-28 16:55:16 -040014561 case $ac_file in
Chris Craikb50c2172013-07-29 15:28:30 -070014562 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14563 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Patrick Scott5f6bd842010-06-28 16:55:16 -040014564 esac \
Chris Craikb50c2172013-07-29 15:28:30 -070014565 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Patrick Scott5f6bd842010-06-28 16:55:16 -040014566 ;;
14567 :H)
14568 #
14569 # CONFIG_HEADER
14570 #
14571 if test x"$ac_file" != x-; then
14572 {
14573 $as_echo "/* $configure_input */" \
Chris Craikb50c2172013-07-29 15:28:30 -070014574 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14575 } >"$ac_tmp/config.h" \
14576 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14577 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Patrick Scott5f6bd842010-06-28 16:55:16 -040014578 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14579$as_echo "$as_me: $ac_file is unchanged" >&6;}
14580 else
14581 rm -f "$ac_file"
Chris Craikb50c2172013-07-29 15:28:30 -070014582 mv "$ac_tmp/config.h" "$ac_file" \
14583 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Patrick Scott5f6bd842010-06-28 16:55:16 -040014584 fi
14585 else
14586 $as_echo "/* $configure_input */" \
Chris Craikb50c2172013-07-29 15:28:30 -070014587 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14588 || as_fn_error $? "could not create -" "$LINENO" 5
Patrick Scott5f6bd842010-06-28 16:55:16 -040014589 fi
14590# Compute "$ac_file"'s index in $config_headers.
14591_am_arg="$ac_file"
14592_am_stamp_count=1
14593for _am_header in $config_headers :; do
14594 case $_am_header in
14595 $_am_arg | $_am_arg:* )
14596 break ;;
14597 * )
14598 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14599 esac
14600done
14601echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14602$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14603 X"$_am_arg" : 'X\(//\)[^/]' \| \
14604 X"$_am_arg" : 'X\(//\)$' \| \
14605 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14606$as_echo X"$_am_arg" |
14607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14608 s//\1/
14609 q
14610 }
14611 /^X\(\/\/\)[^/].*/{
14612 s//\1/
14613 q
14614 }
14615 /^X\(\/\/\)$/{
14616 s//\1/
14617 q
14618 }
14619 /^X\(\/\).*/{
14620 s//\1/
14621 q
14622 }
14623 s/.*/./; q'`/stamp-h$_am_stamp_count
14624 ;;
14625
14626 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14627$as_echo "$as_me: executing $ac_file commands" >&6;}
14628 ;;
14629 esac
14630
14631
14632 case $ac_file$ac_mode in
14633 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
Chris Craikb50c2172013-07-29 15:28:30 -070014634 # Older Autoconf quotes --file arguments for eval, but not when files
Patrick Scott5f6bd842010-06-28 16:55:16 -040014635 # are listed without --file. Let's play safe and only enable the eval
14636 # if we detect the quoting.
14637 case $CONFIG_FILES in
14638 *\'*) eval set x "$CONFIG_FILES" ;;
14639 *) set x $CONFIG_FILES ;;
14640 esac
14641 shift
14642 for mf
14643 do
14644 # Strip MF so we end up with the name of the file.
14645 mf=`echo "$mf" | sed -e 's/:.*$//'`
14646 # Check whether this is an Automake generated Makefile or not.
Chris Craikb50c2172013-07-29 15:28:30 -070014647 # We used to match only the files named 'Makefile.in', but
Patrick Scott5f6bd842010-06-28 16:55:16 -040014648 # some people rename them; so instead we look at the file content.
14649 # Grep'ing the first line is not enough: some people post-process
14650 # each Makefile.in and add a new line on top of each file to say so.
14651 # Grep'ing the whole file is not good either: AIX grep has a line
14652 # limit of 2048, but all sed's we know have understand at least 4000.
14653 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14654 dirpart=`$as_dirname -- "$mf" ||
14655$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14656 X"$mf" : 'X\(//\)[^/]' \| \
14657 X"$mf" : 'X\(//\)$' \| \
14658 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14659$as_echo X"$mf" |
14660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14661 s//\1/
14662 q
14663 }
14664 /^X\(\/\/\)[^/].*/{
14665 s//\1/
14666 q
14667 }
14668 /^X\(\/\/\)$/{
14669 s//\1/
14670 q
14671 }
14672 /^X\(\/\).*/{
14673 s//\1/
14674 q
14675 }
14676 s/.*/./; q'`
14677 else
14678 continue
14679 fi
14680 # Extract the definition of DEPDIR, am__include, and am__quote
Chris Craikb50c2172013-07-29 15:28:30 -070014681 # from the Makefile without running 'make'.
Patrick Scott5f6bd842010-06-28 16:55:16 -040014682 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14683 test -z "$DEPDIR" && continue
14684 am__include=`sed -n 's/^am__include = //p' < "$mf"`
Sireesh Tripurarib478e662014-05-09 15:15:10 +053014685 test -z "$am__include" && continue
Patrick Scott5f6bd842010-06-28 16:55:16 -040014686 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
Patrick Scott5f6bd842010-06-28 16:55:16 -040014687 # Find all dependency output files, they are included files with
14688 # $(DEPDIR) in their names. We invoke sed twice because it is the
14689 # simplest approach to changing $(DEPDIR) to its actual value in the
14690 # expansion.
14691 for file in `sed -n "
14692 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
Chris Craikb50c2172013-07-29 15:28:30 -070014693 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
Patrick Scott5f6bd842010-06-28 16:55:16 -040014694 # Make sure the directory exists.
14695 test -f "$dirpart/$file" && continue
14696 fdir=`$as_dirname -- "$file" ||
14697$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14698 X"$file" : 'X\(//\)[^/]' \| \
14699 X"$file" : 'X\(//\)$' \| \
14700 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14701$as_echo X"$file" |
14702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14703 s//\1/
14704 q
14705 }
14706 /^X\(\/\/\)[^/].*/{
14707 s//\1/
14708 q
14709 }
14710 /^X\(\/\/\)$/{
14711 s//\1/
14712 q
14713 }
14714 /^X\(\/\).*/{
14715 s//\1/
14716 q
14717 }
14718 s/.*/./; q'`
14719 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14720 # echo "creating $dirpart/$file"
14721 echo '# dummy' > "$dirpart/$file"
14722 done
14723 done
14724}
14725 ;;
14726 "libtool":C)
14727
14728 # See if we are running on zsh, and set the options which allow our
14729 # commands through without removal of \ escapes.
14730 if test -n "${ZSH_VERSION+set}" ; then
14731 setopt NO_GLOB_SUBST
14732 fi
14733
14734 cfgfile="${ofile}T"
14735 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14736 $RM "$cfgfile"
14737
14738 cat <<_LT_EOF >> "$cfgfile"
14739#! $SHELL
14740
14741# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14742# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14743# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14744# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14745#
14746# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
Chris Craikb50c2172013-07-29 15:28:30 -070014747# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14748# Foundation, Inc.
Patrick Scott5f6bd842010-06-28 16:55:16 -040014749# Written by Gordon Matzigkeit, 1996
14750#
14751# This file is part of GNU Libtool.
14752#
14753# GNU Libtool is free software; you can redistribute it and/or
14754# modify it under the terms of the GNU General Public License as
14755# published by the Free Software Foundation; either version 2 of
14756# the License, or (at your option) any later version.
14757#
14758# As a special exception to the GNU General Public License,
14759# if you distribute this file as part of a program or library that
14760# is built using GNU Libtool, you may include this file under the
14761# same distribution terms that you use for the rest of that program.
14762#
14763# GNU Libtool is distributed in the hope that it will be useful,
14764# but WITHOUT ANY WARRANTY; without even the implied warranty of
14765# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14766# GNU General Public License for more details.
14767#
14768# You should have received a copy of the GNU General Public License
14769# along with GNU Libtool; see the file COPYING. If not, a copy
14770# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14771# obtained by writing to the Free Software Foundation, Inc.,
14772# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14773
14774
14775# The names of the tagged configurations supported by this script.
14776available_tags=""
14777
14778# ### BEGIN LIBTOOL CONFIG
14779
14780# A sed program that does not truncate output.
14781SED=$lt_SED
14782
14783# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14784Xsed="\$SED -e 1s/^X//"
14785
14786# A grep program that handles long lines.
14787GREP=$lt_GREP
14788
14789# An ERE matcher.
14790EGREP=$lt_EGREP
14791
14792# A literal string matcher.
14793FGREP=$lt_FGREP
14794
Chris Craikb50c2172013-07-29 15:28:30 -070014795# Shell to use when invoking shell scripts.
14796SHELL=$lt_SHELL
Patrick Scott5f6bd842010-06-28 16:55:16 -040014797
Chris Craikb50c2172013-07-29 15:28:30 -070014798# An echo program that protects backslashes.
14799ECHO=$lt_ECHO
Patrick Scott5f6bd842010-06-28 16:55:16 -040014800
14801# Which release of libtool.m4 was used?
14802macro_version=$macro_version
14803macro_revision=$macro_revision
14804
Chris Craikb50c2172013-07-29 15:28:30 -070014805# Assembler program.
14806AS=$lt_AS
14807
14808# DLL creation program.
14809DLLTOOL=$lt_DLLTOOL
14810
14811# Object dumper program.
14812OBJDUMP=$lt_OBJDUMP
14813
Patrick Scott5f6bd842010-06-28 16:55:16 -040014814# Whether or not to build shared libraries.
14815build_libtool_libs=$enable_shared
14816
14817# Whether or not to build static libraries.
14818build_old_libs=$enable_static
14819
14820# What type of objects to build.
14821pic_mode=$pic_mode
14822
14823# Whether or not to optimize for fast installation.
14824fast_install=$enable_fast_install
14825
Chris Craikb50c2172013-07-29 15:28:30 -070014826# The PATH separator for the build system.
14827PATH_SEPARATOR=$lt_PATH_SEPARATOR
14828
Patrick Scott5f6bd842010-06-28 16:55:16 -040014829# The host system.
14830host_alias=$host_alias
14831host=$host
14832host_os=$host_os
14833
14834# The build system.
14835build_alias=$build_alias
14836build=$build
14837build_os=$build_os
14838
14839# A BSD- or MS-compatible name lister.
14840NM=$lt_NM
14841
14842# Whether we need soft or hard links.
14843LN_S=$lt_LN_S
14844
14845# What is the maximum length of a command?
14846max_cmd_len=$max_cmd_len
14847
14848# Object file suffix (normally "o").
14849objext=$ac_objext
14850
14851# Executable file suffix (normally "").
14852exeext=$exeext
14853
14854# whether the shell understands "unset".
14855lt_unset=$lt_unset
14856
14857# turn spaces into newlines.
14858SP2NL=$lt_lt_SP2NL
14859
14860# turn newlines into spaces.
14861NL2SP=$lt_lt_NL2SP
14862
Chris Craikb50c2172013-07-29 15:28:30 -070014863# convert \$build file names to \$host format.
14864to_host_file_cmd=$lt_cv_to_host_file_cmd
14865
14866# convert \$build files to toolchain format.
14867to_tool_file_cmd=$lt_cv_to_tool_file_cmd
Patrick Scott5f6bd842010-06-28 16:55:16 -040014868
14869# Method to check whether dependent libraries are shared objects.
14870deplibs_check_method=$lt_deplibs_check_method
14871
Chris Craikb50c2172013-07-29 15:28:30 -070014872# Command to use when deplibs_check_method = "file_magic".
Patrick Scott5f6bd842010-06-28 16:55:16 -040014873file_magic_cmd=$lt_file_magic_cmd
14874
Chris Craikb50c2172013-07-29 15:28:30 -070014875# How to find potential files when deplibs_check_method = "file_magic".
14876file_magic_glob=$lt_file_magic_glob
14877
14878# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14879want_nocaseglob=$lt_want_nocaseglob
14880
14881# Command to associate shared and link libraries.
14882sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14883
Patrick Scott5f6bd842010-06-28 16:55:16 -040014884# The archiver.
14885AR=$lt_AR
Chris Craikb50c2172013-07-29 15:28:30 -070014886
14887# Flags to create an archive.
Patrick Scott5f6bd842010-06-28 16:55:16 -040014888AR_FLAGS=$lt_AR_FLAGS
14889
Chris Craikb50c2172013-07-29 15:28:30 -070014890# How to feed a file listing to the archiver.
14891archiver_list_spec=$lt_archiver_list_spec
14892
Patrick Scott5f6bd842010-06-28 16:55:16 -040014893# A symbol stripping program.
14894STRIP=$lt_STRIP
14895
14896# Commands used to install an old-style archive.
14897RANLIB=$lt_RANLIB
14898old_postinstall_cmds=$lt_old_postinstall_cmds
14899old_postuninstall_cmds=$lt_old_postuninstall_cmds
14900
Chris Craikb50c2172013-07-29 15:28:30 -070014901# Whether to use a lock for old archive extraction.
14902lock_old_archive_extraction=$lock_old_archive_extraction
14903
Patrick Scott5f6bd842010-06-28 16:55:16 -040014904# A C compiler.
14905LTCC=$lt_CC
14906
14907# LTCC compiler flags.
14908LTCFLAGS=$lt_CFLAGS
14909
14910# Take the output of nm and produce a listing of raw symbols and C names.
14911global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14912
14913# Transform the output of nm in a proper C declaration.
14914global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14915
14916# Transform the output of nm in a C name address pair.
14917global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14918
14919# Transform the output of nm in a C name address pair when lib prefix is needed.
14920global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14921
Chris Craikb50c2172013-07-29 15:28:30 -070014922# Specify filename containing input files for \$NM.
14923nm_file_list_spec=$lt_nm_file_list_spec
14924
14925# The root where to search for dependent libraries,and in which our libraries should be installed.
14926lt_sysroot=$lt_sysroot
14927
Patrick Scott5f6bd842010-06-28 16:55:16 -040014928# The name of the directory that contains temporary libtool files.
14929objdir=$objdir
14930
Patrick Scott5f6bd842010-06-28 16:55:16 -040014931# Used to examine libraries when file_magic_cmd begins with "file".
14932MAGIC_CMD=$MAGIC_CMD
14933
14934# Must we lock files when doing compilation?
14935need_locks=$lt_need_locks
14936
Chris Craikb50c2172013-07-29 15:28:30 -070014937# Manifest tool.
14938MANIFEST_TOOL=$lt_MANIFEST_TOOL
14939
Patrick Scott5f6bd842010-06-28 16:55:16 -040014940# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14941DSYMUTIL=$lt_DSYMUTIL
14942
14943# Tool to change global to local symbols on Mac OS X.
14944NMEDIT=$lt_NMEDIT
14945
14946# Tool to manipulate fat objects and archives on Mac OS X.
14947LIPO=$lt_LIPO
14948
14949# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14950OTOOL=$lt_OTOOL
14951
14952# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14953OTOOL64=$lt_OTOOL64
14954
14955# Old archive suffix (normally "a").
14956libext=$libext
14957
14958# Shared library suffix (normally ".so").
14959shrext_cmds=$lt_shrext_cmds
14960
14961# The commands to extract the exported symbol list from a shared archive.
14962extract_expsyms_cmds=$lt_extract_expsyms_cmds
14963
14964# Variables whose values should be saved in libtool wrapper scripts and
14965# restored at link time.
14966variables_saved_for_relink=$lt_variables_saved_for_relink
14967
14968# Do we need the "lib" prefix for modules?
14969need_lib_prefix=$need_lib_prefix
14970
14971# Do we need a version for libraries?
14972need_version=$need_version
14973
14974# Library versioning type.
14975version_type=$version_type
14976
14977# Shared library runtime path variable.
14978runpath_var=$runpath_var
14979
14980# Shared library path variable.
14981shlibpath_var=$shlibpath_var
14982
14983# Is shlibpath searched before the hard-coded library search path?
14984shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14985
14986# Format of library name prefix.
14987libname_spec=$lt_libname_spec
14988
14989# List of archive names. First name is the real one, the rest are links.
14990# The last name is the one that the linker finds with -lNAME
14991library_names_spec=$lt_library_names_spec
14992
14993# The coded name of the library, if different from the real name.
14994soname_spec=$lt_soname_spec
14995
Chris Craikb50c2172013-07-29 15:28:30 -070014996# Permission mode override for installation of shared libraries.
14997install_override_mode=$lt_install_override_mode
14998
Patrick Scott5f6bd842010-06-28 16:55:16 -040014999# Command to use after installation of a shared archive.
15000postinstall_cmds=$lt_postinstall_cmds
15001
15002# Command to use after uninstallation of a shared archive.
15003postuninstall_cmds=$lt_postuninstall_cmds
15004
15005# Commands used to finish a libtool library installation in a directory.
15006finish_cmds=$lt_finish_cmds
15007
15008# As "finish_cmds", except a single script fragment to be evaled but
15009# not shown.
15010finish_eval=$lt_finish_eval
15011
15012# Whether we should hardcode library paths into libraries.
15013hardcode_into_libs=$hardcode_into_libs
15014
15015# Compile-time system search path for libraries.
15016sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15017
15018# Run-time system search path for libraries.
15019sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15020
15021# Whether dlopen is supported.
15022dlopen_support=$enable_dlopen
15023
15024# Whether dlopen of programs is supported.
15025dlopen_self=$enable_dlopen_self
15026
15027# Whether dlopen of statically linked programs is supported.
15028dlopen_self_static=$enable_dlopen_self_static
15029
15030# Commands to strip libraries.
15031old_striplib=$lt_old_striplib
15032striplib=$lt_striplib
15033
15034
15035# The linker used to build libraries.
15036LD=$lt_LD
15037
Chris Craikb50c2172013-07-29 15:28:30 -070015038# How to create reloadable object files.
15039reload_flag=$lt_reload_flag
15040reload_cmds=$lt_reload_cmds
15041
Patrick Scott5f6bd842010-06-28 16:55:16 -040015042# Commands used to build an old-style archive.
15043old_archive_cmds=$lt_old_archive_cmds
15044
15045# A language specific compiler.
15046CC=$lt_compiler
15047
15048# Is the compiler the GNU compiler?
15049with_gcc=$GCC
15050
15051# Compiler flag to turn off builtin functions.
15052no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15053
Patrick Scott5f6bd842010-06-28 16:55:16 -040015054# Additional compiler flags for building library objects.
15055pic_flag=$lt_lt_prog_compiler_pic
15056
Chris Craikb50c2172013-07-29 15:28:30 -070015057# How to pass a linker flag through the compiler.
15058wl=$lt_lt_prog_compiler_wl
15059
Patrick Scott5f6bd842010-06-28 16:55:16 -040015060# Compiler flag to prevent dynamic linking.
15061link_static_flag=$lt_lt_prog_compiler_static
15062
15063# Does compiler simultaneously support -c and -o options?
15064compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15065
15066# Whether or not to add -lc for building shared libraries.
15067build_libtool_need_lc=$archive_cmds_need_lc
15068
15069# Whether or not to disallow shared libs when runtime libs are static.
15070allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15071
15072# Compiler flag to allow reflexive dlopens.
15073export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15074
15075# Compiler flag to generate shared objects directly from archives.
15076whole_archive_flag_spec=$lt_whole_archive_flag_spec
15077
15078# Whether the compiler copes with passing no objects directly.
15079compiler_needs_object=$lt_compiler_needs_object
15080
15081# Create an old-style archive from a shared archive.
15082old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15083
15084# Create a temporary old-style archive to link instead of a shared archive.
15085old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15086
15087# Commands used to build a shared archive.
15088archive_cmds=$lt_archive_cmds
15089archive_expsym_cmds=$lt_archive_expsym_cmds
15090
15091# Commands used to build a loadable module if different from building
15092# a shared archive.
15093module_cmds=$lt_module_cmds
15094module_expsym_cmds=$lt_module_expsym_cmds
15095
15096# Whether we are building with GNU ld or not.
15097with_gnu_ld=$lt_with_gnu_ld
15098
15099# Flag that allows shared libraries with undefined symbols to be built.
15100allow_undefined_flag=$lt_allow_undefined_flag
15101
15102# Flag that enforces no undefined symbols.
15103no_undefined_flag=$lt_no_undefined_flag
15104
15105# Flag to hardcode \$libdir into a binary during linking.
15106# This must work even if \$libdir does not exist
15107hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15108
Patrick Scott5f6bd842010-06-28 16:55:16 -040015109# Whether we need a single "-rpath" flag with a separated argument.
15110hardcode_libdir_separator=$lt_hardcode_libdir_separator
15111
15112# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15113# DIR into the resulting binary.
15114hardcode_direct=$hardcode_direct
15115
15116# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15117# DIR into the resulting binary and the resulting library dependency is
15118# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15119# library is relocated.
15120hardcode_direct_absolute=$hardcode_direct_absolute
15121
15122# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15123# into the resulting binary.
15124hardcode_minus_L=$hardcode_minus_L
15125
15126# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15127# into the resulting binary.
15128hardcode_shlibpath_var=$hardcode_shlibpath_var
15129
15130# Set to "yes" if building a shared library automatically hardcodes DIR
15131# into the library and all subsequent libraries and executables linked
15132# against it.
15133hardcode_automatic=$hardcode_automatic
15134
15135# Set to yes if linker adds runtime paths of dependent libraries
15136# to runtime path list.
15137inherit_rpath=$inherit_rpath
15138
15139# Whether libtool must link a program against all its dependency libraries.
15140link_all_deplibs=$link_all_deplibs
15141
Patrick Scott5f6bd842010-06-28 16:55:16 -040015142# Set to "yes" if exported symbols are required.
15143always_export_symbols=$always_export_symbols
15144
15145# The commands to list exported symbols.
15146export_symbols_cmds=$lt_export_symbols_cmds
15147
15148# Symbols that should not be listed in the preloaded symbols.
15149exclude_expsyms=$lt_exclude_expsyms
15150
15151# Symbols that must always be exported.
15152include_expsyms=$lt_include_expsyms
15153
15154# Commands necessary for linking programs (against libraries) with templates.
15155prelink_cmds=$lt_prelink_cmds
15156
Chris Craikb50c2172013-07-29 15:28:30 -070015157# Commands necessary for finishing linking programs.
15158postlink_cmds=$lt_postlink_cmds
15159
Patrick Scott5f6bd842010-06-28 16:55:16 -040015160# Specify filename containing input files.
15161file_list_spec=$lt_file_list_spec
15162
15163# How to hardcode a shared library path into an executable.
15164hardcode_action=$hardcode_action
15165
15166# ### END LIBTOOL CONFIG
15167
15168_LT_EOF
15169
15170 case $host_os in
15171 aix3*)
15172 cat <<\_LT_EOF >> "$cfgfile"
15173# AIX sometimes has problems with the GCC collect2 program. For some
15174# reason, if we set the COLLECT_NAMES environment variable, the problems
15175# vanish in a puff of smoke.
15176if test "X${COLLECT_NAMES+set}" != Xset; then
15177 COLLECT_NAMES=
15178 export COLLECT_NAMES
15179fi
15180_LT_EOF
15181 ;;
15182 esac
15183
15184
15185ltmain="$ac_aux_dir/ltmain.sh"
15186
15187
15188 # We use sed instead of cat because bash on DJGPP gets confused if
15189 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15190 # text mode, it properly converts lines to CR/LF. This bash problem
15191 # is reportedly fixed, but why not run on old versions too?
Chris Craikb50c2172013-07-29 15:28:30 -070015192 sed '$q' "$ltmain" >> "$cfgfile" \
15193 || (rm -f "$cfgfile"; exit 1)
Patrick Scott5f6bd842010-06-28 16:55:16 -040015194
Chris Craikb50c2172013-07-29 15:28:30 -070015195 if test x"$xsi_shell" = xyes; then
15196 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15197func_dirname ()\
15198{\
15199\ case ${1} in\
15200\ */*) func_dirname_result="${1%/*}${2}" ;;\
15201\ * ) func_dirname_result="${3}" ;;\
15202\ esac\
15203} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15204 && mv -f "$cfgfile.tmp" "$cfgfile" \
15205 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15206test 0 -eq $? || _lt_function_replace_fail=:
Patrick Scott5f6bd842010-06-28 16:55:16 -040015207
15208
Chris Craikb50c2172013-07-29 15:28:30 -070015209 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15210func_basename ()\
15211{\
15212\ func_basename_result="${1##*/}"\
15213} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15214 && mv -f "$cfgfile.tmp" "$cfgfile" \
15215 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15216test 0 -eq $? || _lt_function_replace_fail=:
Patrick Scott5f6bd842010-06-28 16:55:16 -040015217
15218
Chris Craikb50c2172013-07-29 15:28:30 -070015219 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15220func_dirname_and_basename ()\
15221{\
15222\ case ${1} in\
15223\ */*) func_dirname_result="${1%/*}${2}" ;;\
15224\ * ) func_dirname_result="${3}" ;;\
15225\ esac\
15226\ func_basename_result="${1##*/}"\
15227} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15228 && mv -f "$cfgfile.tmp" "$cfgfile" \
15229 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15230test 0 -eq $? || _lt_function_replace_fail=:
Patrick Scott5f6bd842010-06-28 16:55:16 -040015231
Chris Craikb50c2172013-07-29 15:28:30 -070015232
15233 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15234func_stripname ()\
15235{\
15236\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15237\ # positional parameters, so assign one to ordinary parameter first.\
15238\ func_stripname_result=${3}\
15239\ func_stripname_result=${func_stripname_result#"${1}"}\
15240\ func_stripname_result=${func_stripname_result%"${2}"}\
15241} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15242 && mv -f "$cfgfile.tmp" "$cfgfile" \
15243 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15244test 0 -eq $? || _lt_function_replace_fail=:
15245
15246
15247 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15248func_split_long_opt ()\
15249{\
15250\ func_split_long_opt_name=${1%%=*}\
15251\ func_split_long_opt_arg=${1#*=}\
15252} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15253 && mv -f "$cfgfile.tmp" "$cfgfile" \
15254 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15255test 0 -eq $? || _lt_function_replace_fail=:
15256
15257
15258 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15259func_split_short_opt ()\
15260{\
15261\ func_split_short_opt_arg=${1#??}\
15262\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15263} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15264 && mv -f "$cfgfile.tmp" "$cfgfile" \
15265 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15266test 0 -eq $? || _lt_function_replace_fail=:
15267
15268
15269 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15270func_lo2o ()\
15271{\
15272\ case ${1} in\
15273\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15274\ *) func_lo2o_result=${1} ;;\
15275\ esac\
15276} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15277 && mv -f "$cfgfile.tmp" "$cfgfile" \
15278 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15279test 0 -eq $? || _lt_function_replace_fail=:
15280
15281
15282 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15283func_xform ()\
15284{\
15285 func_xform_result=${1%.*}.lo\
15286} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15287 && mv -f "$cfgfile.tmp" "$cfgfile" \
15288 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15289test 0 -eq $? || _lt_function_replace_fail=:
15290
15291
15292 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15293func_arith ()\
15294{\
15295 func_arith_result=$(( $* ))\
15296} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15297 && mv -f "$cfgfile.tmp" "$cfgfile" \
15298 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15299test 0 -eq $? || _lt_function_replace_fail=:
15300
15301
15302 sed -e '/^func_len ()$/,/^} # func_len /c\
15303func_len ()\
15304{\
15305 func_len_result=${#1}\
15306} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15307 && mv -f "$cfgfile.tmp" "$cfgfile" \
15308 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15309test 0 -eq $? || _lt_function_replace_fail=:
15310
15311fi
15312
15313if test x"$lt_shell_append" = xyes; then
15314 sed -e '/^func_append ()$/,/^} # func_append /c\
15315func_append ()\
15316{\
15317 eval "${1}+=\\${2}"\
15318} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15319 && mv -f "$cfgfile.tmp" "$cfgfile" \
15320 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15321test 0 -eq $? || _lt_function_replace_fail=:
15322
15323
15324 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15325func_append_quoted ()\
15326{\
15327\ func_quote_for_eval "${2}"\
15328\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15329} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15330 && mv -f "$cfgfile.tmp" "$cfgfile" \
15331 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15332test 0 -eq $? || _lt_function_replace_fail=:
15333
15334
15335 # Save a `func_append' function call where possible by direct use of '+='
15336 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15337 && mv -f "$cfgfile.tmp" "$cfgfile" \
15338 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15339 test 0 -eq $? || _lt_function_replace_fail=:
15340else
15341 # Save a `func_append' function call even when '+=' is not available
15342 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15343 && mv -f "$cfgfile.tmp" "$cfgfile" \
15344 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15345 test 0 -eq $? || _lt_function_replace_fail=:
15346fi
15347
15348if test x"$_lt_function_replace_fail" = x":"; then
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15350$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15351fi
15352
15353
15354 mv -f "$cfgfile" "$ofile" ||
Patrick Scott5f6bd842010-06-28 16:55:16 -040015355 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15356 chmod +x "$ofile"
15357
15358 ;;
15359 "libpng-config":F) chmod +x libpng-config ;;
15360
15361 esac
15362done # for ac_tag
15363
15364
15365as_fn_exit 0
15366_ACEOF
15367ac_clean_files=$ac_clean_files_save
15368
15369test $ac_write_fail = 0 ||
Chris Craikb50c2172013-07-29 15:28:30 -070015370 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Patrick Scott5f6bd842010-06-28 16:55:16 -040015371
15372
15373# configure is writing to config.log, and then calls config.status.
15374# config.status does its own redirection, appending to config.log.
15375# Unfortunately, on DOS this fails, as config.log is still kept open
15376# by configure, so config.status won't be able to write to it; its
15377# output is simply discarded. So we exec the FD to /dev/null,
15378# effectively closing config.log, so it can be properly (re)opened and
15379# appended to by config.status. When coming back to configure, we
15380# need to make the FD available again.
15381if test "$no_create" != yes; then
15382 ac_cs_success=:
15383 ac_config_status_args=
15384 test "$silent" = yes &&
15385 ac_config_status_args="$ac_config_status_args --quiet"
15386 exec 5>/dev/null
15387 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15388 exec 5>>config.log
15389 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15390 # would make configure fail if this is the last instruction.
Chris Craikb50c2172013-07-29 15:28:30 -070015391 $ac_cs_success || as_fn_exit 1
Patrick Scott5f6bd842010-06-28 16:55:16 -040015392fi
15393if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15395$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15396fi
The Android Open Source Project893912b2009-03-03 19:30:05 -080015397