1 | #! /bin/sh
|
---|
2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
3 | # Generated by GNU Autoconf 2.69 for libpng 1.6.37.
|
---|
4 | #
|
---|
5 | # Report bugs to <png-mng-implement@lists.sourceforge.net>.
|
---|
6 | #
|
---|
7 | #
|
---|
8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
|
---|
9 | #
|
---|
10 | #
|
---|
11 | # This configure script is free software; the Free Software Foundation
|
---|
12 | # gives unlimited permission to copy, distribute and modify it.
|
---|
13 | ## -------------------- ##
|
---|
14 | ## M4sh Initialization. ##
|
---|
15 | ## -------------------- ##
|
---|
16 |
|
---|
17 | # Be more Bourne compatible
|
---|
18 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
19 | if 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
|
---|
26 | else
|
---|
27 | case `(set -o) 2>/dev/null` in #(
|
---|
28 | *posix*) :
|
---|
29 | set -o posix ;; #(
|
---|
30 | *) :
|
---|
31 | ;;
|
---|
32 | esac
|
---|
33 | fi
|
---|
34 |
|
---|
35 |
|
---|
36 | as_nl='
|
---|
37 | '
|
---|
38 | export as_nl
|
---|
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
---|
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
42 | as_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.
|
---|
45 | if 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 --'
|
---|
49 | elif (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'
|
---|
52 | else
|
---|
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'
|
---|
72 | fi
|
---|
73 |
|
---|
74 | # The user is always right.
|
---|
75 | if 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 | }
|
---|
81 | fi
|
---|
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.)
|
---|
89 | IFS=" "" $as_nl"
|
---|
90 |
|
---|
91 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
92 | as_myself=
|
---|
93 | case $0 in #((
|
---|
94 | *[\\/]* ) as_myself=$0 ;;
|
---|
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
96 | for as_dir in $PATH
|
---|
97 | do
|
---|
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
|
---|
102 | IFS=$as_save_IFS
|
---|
103 |
|
---|
104 | ;;
|
---|
105 | esac
|
---|
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.
|
---|
108 | if test "x$as_myself" = x; then
|
---|
109 | as_myself=$0
|
---|
110 | fi
|
---|
111 | if test ! -f "$as_myself"; then
|
---|
112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
113 | exit 1
|
---|
114 | fi
|
---|
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.
|
---|
120 | for as_var in BASH_ENV ENV MAIL MAILPATH
|
---|
121 | do eval test x\${$as_var+set} = xset \
|
---|
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
123 | done
|
---|
124 | PS1='$ '
|
---|
125 | PS2='> '
|
---|
126 | PS4='+ '
|
---|
127 |
|
---|
128 | # NLS nuisances.
|
---|
129 | LC_ALL=C
|
---|
130 | export LC_ALL
|
---|
131 | LANGUAGE=C
|
---|
132 | export LANGUAGE
|
---|
133 |
|
---|
134 | # CDPATH.
|
---|
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
136 |
|
---|
137 | # Use a proper internal environment variable to ensure we don't fall
|
---|
138 | # into an infinite loop, continuously re-executing ourselves.
|
---|
139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
|
---|
140 | _as_can_reexec=no; export _as_can_reexec;
|
---|
141 | # We cannot yet assume a decent shell, so we have to provide a
|
---|
142 | # neutralization value for shells without unset; and this also
|
---|
143 | # works around shells that cannot unset nonexistent variables.
|
---|
144 | # Preserve -v and -x to the replacement shell.
|
---|
145 | BASH_ENV=/dev/null
|
---|
146 | ENV=/dev/null
|
---|
147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
---|
148 | case $- in # ((((
|
---|
149 | *v*x* | *x*v* ) as_opts=-vx ;;
|
---|
150 | *v* ) as_opts=-v ;;
|
---|
151 | *x* ) as_opts=-x ;;
|
---|
152 | * ) as_opts= ;;
|
---|
153 | esac
|
---|
154 | exec $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
|
---|
158 | as_fn_exit 255
|
---|
159 | fi
|
---|
160 | # We don't want this to propagate to other subprocesses.
|
---|
161 | { _as_can_reexec=; unset _as_can_reexec;}
|
---|
162 | if 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
|
---|
170 | else
|
---|
171 | case \`(set -o) 2>/dev/null\` in #(
|
---|
172 | *posix*) :
|
---|
173 | set -o posix ;; #(
|
---|
174 | *) :
|
---|
175 | ;;
|
---|
176 | esac
|
---|
177 | fi
|
---|
178 | "
|
---|
179 | as_required="as_fn_return () { (exit \$1); }
|
---|
180 | as_fn_success () { as_fn_return 0; }
|
---|
181 | as_fn_failure () { as_fn_return 1; }
|
---|
182 | as_fn_ret_success () { return 0; }
|
---|
183 | as_fn_ret_failure () { return 1; }
|
---|
184 |
|
---|
185 | exitcode=0
|
---|
186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; }
|
---|
187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
|
---|
188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
|
---|
189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
|
---|
190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
|
---|
191 |
|
---|
192 | else
|
---|
193 | exitcode=1; echo positional parameters were not saved.
|
---|
194 | fi
|
---|
195 | test x\$exitcode = x0 || exit 1
|
---|
196 | test -x / || exit 1"
|
---|
197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
|
---|
198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
|
---|
199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
|
---|
200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
|
---|
201 | test \$(( 1 + 1 )) = 2 || exit 1
|
---|
202 |
|
---|
203 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
|
---|
204 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
205 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
|
---|
206 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
|
---|
207 | PATH=/empty FPATH=/empty; export PATH FPATH
|
---|
208 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
|
---|
209 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
|
---|
210 | if (eval "$as_required") 2>/dev/null; then :
|
---|
211 | as_have_required=yes
|
---|
212 | else
|
---|
213 | as_have_required=no
|
---|
214 | fi
|
---|
215 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
|
---|
216 |
|
---|
217 | else
|
---|
218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
219 | as_found=false
|
---|
220 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
221 | do
|
---|
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
|
---|
235 | fi
|
---|
236 | fi
|
---|
237 | done;;
|
---|
238 | esac
|
---|
239 | as_found=false
|
---|
240 | done
|
---|
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
|
---|
244 | fi; }
|
---|
245 | IFS=$as_save_IFS
|
---|
246 |
|
---|
247 |
|
---|
248 | if test "x$CONFIG_SHELL" != x; then :
|
---|
249 | export CONFIG_SHELL
|
---|
250 | # We cannot yet assume a decent shell, so we have to provide a
|
---|
251 | # neutralization value for shells without unset; and this also
|
---|
252 | # works around shells that cannot unset nonexistent variables.
|
---|
253 | # Preserve -v and -x to the replacement shell.
|
---|
254 | BASH_ENV=/dev/null
|
---|
255 | ENV=/dev/null
|
---|
256 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
---|
257 | case $- in # ((((
|
---|
258 | *v*x* | *x*v* ) as_opts=-vx ;;
|
---|
259 | *v* ) as_opts=-v ;;
|
---|
260 | *x* ) as_opts=-x ;;
|
---|
261 | * ) as_opts= ;;
|
---|
262 | esac
|
---|
263 | exec $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
|
---|
267 | exit 255
|
---|
268 | fi
|
---|
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
|
---|
284 | fi
|
---|
285 | fi
|
---|
286 | fi
|
---|
287 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
288 | export SHELL
|
---|
289 | # Unset more variables known to interfere with behavior of common tools.
|
---|
290 | CLICOLOR_FORCE= GREP_OPTIONS=
|
---|
291 | unset CLICOLOR_FORCE GREP_OPTIONS
|
---|
292 |
|
---|
293 | ## --------------------- ##
|
---|
294 | ## M4sh Shell Functions. ##
|
---|
295 | ## --------------------- ##
|
---|
296 | # as_fn_unset VAR
|
---|
297 | # ---------------
|
---|
298 | # Portably unset VAR.
|
---|
299 | as_fn_unset ()
|
---|
300 | {
|
---|
301 | { eval $1=; unset $1;}
|
---|
302 | }
|
---|
303 | as_unset=as_fn_unset
|
---|
304 |
|
---|
305 | # as_fn_set_status STATUS
|
---|
306 | # -----------------------
|
---|
307 | # Set $? to STATUS, without forking.
|
---|
308 | as_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.
|
---|
316 | as_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.
|
---|
326 | as_fn_mkdir_p ()
|
---|
327 | {
|
---|
328 |
|
---|
329 | case $as_dir in #(
|
---|
330 | -*) as_dir=./$as_dir;;
|
---|
331 | esac
|
---|
332 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
333 | as_dirs=
|
---|
334 | while :; do
|
---|
335 | case $as_dir in #(
|
---|
336 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
337 | *) as_qdir=$as_dir;;
|
---|
338 | esac
|
---|
339 | as_dirs="'$as_qdir' $as_dirs"
|
---|
340 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
341 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
342 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
343 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
344 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
345 | $as_echo X"$as_dir" |
|
---|
346 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
347 | s//\1/
|
---|
348 | q
|
---|
349 | }
|
---|
350 | /^X\(\/\/\)[^/].*/{
|
---|
351 | s//\1/
|
---|
352 | q
|
---|
353 | }
|
---|
354 | /^X\(\/\/\)$/{
|
---|
355 | s//\1/
|
---|
356 | q
|
---|
357 | }
|
---|
358 | /^X\(\/\).*/{
|
---|
359 | s//\1/
|
---|
360 | q
|
---|
361 | }
|
---|
362 | s/.*/./; q'`
|
---|
363 | test -d "$as_dir" && break
|
---|
364 | done
|
---|
365 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
366 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
---|
367 |
|
---|
368 |
|
---|
369 | } # as_fn_mkdir_p
|
---|
370 |
|
---|
371 | # as_fn_executable_p FILE
|
---|
372 | # -----------------------
|
---|
373 | # Test if FILE is an executable regular file.
|
---|
374 | as_fn_executable_p ()
|
---|
375 | {
|
---|
376 | test -f "$1" && test -x "$1"
|
---|
377 | } # as_fn_executable_p
|
---|
378 | # as_fn_append VAR VALUE
|
---|
379 | # ----------------------
|
---|
380 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
381 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
382 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
383 | # implementations.
|
---|
384 | if (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 | }'
|
---|
389 | else
|
---|
390 | as_fn_append ()
|
---|
391 | {
|
---|
392 | eval $1=\$$1\$2
|
---|
393 | }
|
---|
394 | fi # 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.
|
---|
401 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
---|
402 | eval 'as_fn_arith ()
|
---|
403 | {
|
---|
404 | as_val=$(( $* ))
|
---|
405 | }'
|
---|
406 | else
|
---|
407 | as_fn_arith ()
|
---|
408 | {
|
---|
409 | as_val=`expr "$@" || test $? -eq 1`
|
---|
410 | }
|
---|
411 | fi # as_fn_arith
|
---|
412 |
|
---|
413 |
|
---|
414 | # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
---|
415 | # ----------------------------------------
|
---|
416 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
417 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
418 | # script with STATUS, using 1 if that was 0.
|
---|
419 | as_fn_error ()
|
---|
420 | {
|
---|
421 | as_status=$1; test $as_status -eq 0 && as_status=1
|
---|
422 | if test "$4"; then
|
---|
423 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
424 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
---|
425 | fi
|
---|
426 | $as_echo "$as_me: error: $2" >&2
|
---|
427 | as_fn_exit $as_status
|
---|
428 | } # as_fn_error
|
---|
429 |
|
---|
430 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
431 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
432 | as_expr=expr
|
---|
433 | else
|
---|
434 | as_expr=false
|
---|
435 | fi
|
---|
436 |
|
---|
437 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
438 | as_basename=basename
|
---|
439 | else
|
---|
440 | as_basename=false
|
---|
441 | fi
|
---|
442 |
|
---|
443 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
444 | as_dirname=dirname
|
---|
445 | else
|
---|
446 | as_dirname=false
|
---|
447 | fi
|
---|
448 |
|
---|
449 | as_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.
|
---|
469 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
470 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
471 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
472 | as_cr_digits='0123456789'
|
---|
473 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
474 |
|
---|
475 |
|
---|
476 | as_lineno_1=$LINENO as_lineno_1a=$LINENO
|
---|
477 | as_lineno_2=$LINENO as_lineno_2a=$LINENO
|
---|
478 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
|
---|
479 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
|
---|
480 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
|
---|
481 | sed -n '
|
---|
482 | p
|
---|
483 | /[$]LINENO/=
|
---|
484 | ' <$as_myself |
|
---|
485 | sed '
|
---|
486 | s/[$]LINENO.*/&-/
|
---|
487 | t lineno
|
---|
488 | b
|
---|
489 | :lineno
|
---|
490 | N
|
---|
491 | :loop
|
---|
492 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
---|
493 | t loop
|
---|
494 | s/-\n.*//
|
---|
495 | ' >$as_me.lineno &&
|
---|
496 | chmod +x "$as_me.lineno" ||
|
---|
497 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
|
---|
498 |
|
---|
499 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
|
---|
500 | # already done that, so ensure we don't try to do so again and fall
|
---|
501 | # in an infinite loop. This has already happened in practice.
|
---|
502 | _as_can_reexec=no; export _as_can_reexec
|
---|
503 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
504 | # (the dirname of $[0] is not the place where we might find the
|
---|
505 | # original and so on. Autoconf is especially sensitive to this).
|
---|
506 | . "./$as_me.lineno"
|
---|
507 | # Exit status is that of the last command.
|
---|
508 | exit
|
---|
509 | }
|
---|
510 |
|
---|
511 | ECHO_C= ECHO_N= ECHO_T=
|
---|
512 | case `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';;
|
---|
522 | esac
|
---|
523 |
|
---|
524 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
525 | if test -d conf$$.dir; then
|
---|
526 | rm -f conf$$.dir/conf$$.file
|
---|
527 | else
|
---|
528 | rm -f conf$$.dir
|
---|
529 | mkdir conf$$.dir 2>/dev/null
|
---|
530 | fi
|
---|
531 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
532 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
533 | as_ln_s='ln -s'
|
---|
534 | # ... but there are two gotchas:
|
---|
535 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
536 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
537 | # In both cases, we have to default to `cp -pR'.
|
---|
538 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
539 | as_ln_s='cp -pR'
|
---|
540 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
541 | as_ln_s=ln
|
---|
542 | else
|
---|
543 | as_ln_s='cp -pR'
|
---|
544 | fi
|
---|
545 | else
|
---|
546 | as_ln_s='cp -pR'
|
---|
547 | fi
|
---|
548 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
549 | rmdir conf$$.dir 2>/dev/null
|
---|
550 |
|
---|
551 | if mkdir -p . 2>/dev/null; then
|
---|
552 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
553 | else
|
---|
554 | test -d ./-p && rmdir ./-p
|
---|
555 | as_mkdir_p=false
|
---|
556 | fi
|
---|
557 |
|
---|
558 | as_test_x='test -x'
|
---|
559 | as_executable_p=as_fn_executable_p
|
---|
560 |
|
---|
561 | # Sed expression to map a string onto a valid CPP name.
|
---|
562 | as_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.
|
---|
565 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
566 |
|
---|
567 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
568 |
|
---|
569 |
|
---|
570 | test -n "$DJDIR" || exec 7<&0 </dev/null
|
---|
571 | exec 6>&1
|
---|
572 |
|
---|
573 | # Name of the host.
|
---|
574 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
|
---|
575 | # so uname gets run too.
|
---|
576 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
577 |
|
---|
578 | #
|
---|
579 | # Initializations.
|
---|
580 | #
|
---|
581 | ac_default_prefix=/usr/local
|
---|
582 | ac_clean_files=
|
---|
583 | ac_config_libobj_dir=.
|
---|
584 | LIBOBJS=
|
---|
585 | cross_compiling=no
|
---|
586 | subdirs=
|
---|
587 | MFLAGS=
|
---|
588 | MAKEFLAGS=
|
---|
589 |
|
---|
590 | # Identity of this package.
|
---|
591 | PACKAGE_NAME='libpng'
|
---|
592 | PACKAGE_TARNAME='libpng'
|
---|
593 | PACKAGE_VERSION='1.6.37'
|
---|
594 | PACKAGE_STRING='libpng 1.6.37'
|
---|
595 | PACKAGE_BUGREPORT='png-mng-implement@lists.sourceforge.net'
|
---|
596 | PACKAGE_URL=''
|
---|
597 |
|
---|
598 | ac_unique_file="pngget.c"
|
---|
599 | # Factoring default headers for most tests.
|
---|
600 | ac_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 |
|
---|
635 | ac_subst_vars='am__EXEEXT_FALSE
|
---|
636 | am__EXEEXT_TRUE
|
---|
637 | LTLIBOBJS
|
---|
638 | PNG_POWERPC_VSX_FALSE
|
---|
639 | PNG_POWERPC_VSX_TRUE
|
---|
640 | PNG_INTEL_SSE_FALSE
|
---|
641 | PNG_INTEL_SSE_TRUE
|
---|
642 | PNG_MIPS_MSA_FALSE
|
---|
643 | PNG_MIPS_MSA_TRUE
|
---|
644 | PNG_ARM_NEON_FALSE
|
---|
645 | PNG_ARM_NEON_TRUE
|
---|
646 | DO_INSTALL_LIBPNG_CONFIG_FALSE
|
---|
647 | DO_INSTALL_LIBPNG_CONFIG_TRUE
|
---|
648 | DO_INSTALL_LIBPNG_PC_FALSE
|
---|
649 | DO_INSTALL_LIBPNG_PC_TRUE
|
---|
650 | DO_INSTALL_LINKS_FALSE
|
---|
651 | DO_INSTALL_LINKS_TRUE
|
---|
652 | DO_PNG_PREFIX_FALSE
|
---|
653 | DO_PNG_PREFIX_TRUE
|
---|
654 | PNG_PREFIX
|
---|
655 | binconfigs
|
---|
656 | pkgconfigdir
|
---|
657 | PNGLIB_RELEASE
|
---|
658 | PNGLIB_MINOR
|
---|
659 | PNGLIB_MAJOR
|
---|
660 | PNGLIB_VERSION
|
---|
661 | SYMBOL_PREFIX
|
---|
662 | HAVE_LD_VERSION_SCRIPT_FALSE
|
---|
663 | HAVE_LD_VERSION_SCRIPT_TRUE
|
---|
664 | HAVE_SOLARIS_LD_FALSE
|
---|
665 | HAVE_SOLARIS_LD_TRUE
|
---|
666 | HAVE_CLOCK_GETTIME_FALSE
|
---|
667 | HAVE_CLOCK_GETTIME_TRUE
|
---|
668 | LIBOBJS
|
---|
669 | POW_LIB
|
---|
670 | PNG_COPTS
|
---|
671 | DFNCPP
|
---|
672 | LT_SYS_LIBRARY_PATH
|
---|
673 | OTOOL64
|
---|
674 | OTOOL
|
---|
675 | LIPO
|
---|
676 | NMEDIT
|
---|
677 | DSYMUTIL
|
---|
678 | MANIFEST_TOOL
|
---|
679 | RANLIB
|
---|
680 | ac_ct_AR
|
---|
681 | AR
|
---|
682 | NM
|
---|
683 | ac_ct_DUMPBIN
|
---|
684 | DUMPBIN
|
---|
685 | LIBTOOL
|
---|
686 | OBJDUMP
|
---|
687 | DLLTOOL
|
---|
688 | AS
|
---|
689 | LN_S
|
---|
690 | CPP
|
---|
691 | LD
|
---|
692 | FGREP
|
---|
693 | EGREP
|
---|
694 | GREP
|
---|
695 | SED
|
---|
696 | host_os
|
---|
697 | host_vendor
|
---|
698 | host_cpu
|
---|
699 | host
|
---|
700 | build_os
|
---|
701 | build_vendor
|
---|
702 | build_cpu
|
---|
703 | build
|
---|
704 | am__fastdepCCAS_FALSE
|
---|
705 | am__fastdepCCAS_TRUE
|
---|
706 | CCASDEPMODE
|
---|
707 | CCASFLAGS
|
---|
708 | CCAS
|
---|
709 | am__fastdepCC_FALSE
|
---|
710 | am__fastdepCC_TRUE
|
---|
711 | CCDEPMODE
|
---|
712 | am__nodep
|
---|
713 | AMDEPBACKSLASH
|
---|
714 | AMDEP_FALSE
|
---|
715 | AMDEP_TRUE
|
---|
716 | am__include
|
---|
717 | DEPDIR
|
---|
718 | OBJEXT
|
---|
719 | EXEEXT
|
---|
720 | ac_ct_CC
|
---|
721 | CPPFLAGS
|
---|
722 | LDFLAGS
|
---|
723 | CFLAGS
|
---|
724 | CC
|
---|
725 | MAINT
|
---|
726 | MAINTAINER_MODE_FALSE
|
---|
727 | MAINTAINER_MODE_TRUE
|
---|
728 | AM_BACKSLASH
|
---|
729 | AM_DEFAULT_VERBOSITY
|
---|
730 | AM_DEFAULT_V
|
---|
731 | AM_V
|
---|
732 | am__untar
|
---|
733 | am__tar
|
---|
734 | AMTAR
|
---|
735 | am__leading_dot
|
---|
736 | SET_MAKE
|
---|
737 | AWK
|
---|
738 | mkdir_p
|
---|
739 | MKDIR_P
|
---|
740 | INSTALL_STRIP_PROGRAM
|
---|
741 | STRIP
|
---|
742 | install_sh
|
---|
743 | MAKEINFO
|
---|
744 | AUTOHEADER
|
---|
745 | AUTOMAKE
|
---|
746 | AUTOCONF
|
---|
747 | ACLOCAL
|
---|
748 | VERSION
|
---|
749 | PACKAGE
|
---|
750 | CYGPATH_W
|
---|
751 | am__isrc
|
---|
752 | INSTALL_DATA
|
---|
753 | INSTALL_SCRIPT
|
---|
754 | INSTALL_PROGRAM
|
---|
755 | target_alias
|
---|
756 | host_alias
|
---|
757 | build_alias
|
---|
758 | LIBS
|
---|
759 | ECHO_T
|
---|
760 | ECHO_N
|
---|
761 | ECHO_C
|
---|
762 | DEFS
|
---|
763 | mandir
|
---|
764 | localedir
|
---|
765 | libdir
|
---|
766 | psdir
|
---|
767 | pdfdir
|
---|
768 | dvidir
|
---|
769 | htmldir
|
---|
770 | infodir
|
---|
771 | docdir
|
---|
772 | oldincludedir
|
---|
773 | includedir
|
---|
774 | localstatedir
|
---|
775 | sharedstatedir
|
---|
776 | sysconfdir
|
---|
777 | datadir
|
---|
778 | datarootdir
|
---|
779 | libexecdir
|
---|
780 | sbindir
|
---|
781 | bindir
|
---|
782 | program_transform_name
|
---|
783 | prefix
|
---|
784 | exec_prefix
|
---|
785 | PACKAGE_URL
|
---|
786 | PACKAGE_BUGREPORT
|
---|
787 | PACKAGE_STRING
|
---|
788 | PACKAGE_VERSION
|
---|
789 | PACKAGE_TARNAME
|
---|
790 | PACKAGE_NAME
|
---|
791 | PATH_SEPARATOR
|
---|
792 | SHELL
|
---|
793 | am__quote'
|
---|
794 | ac_subst_files=''
|
---|
795 | ac_user_opts='
|
---|
796 | enable_option_checking
|
---|
797 | enable_silent_rules
|
---|
798 | enable_maintainer_mode
|
---|
799 | enable_dependency_tracking
|
---|
800 | with_gnu_ld
|
---|
801 | enable_shared
|
---|
802 | enable_static
|
---|
803 | with_pic
|
---|
804 | enable_fast_install
|
---|
805 | with_aix_soname
|
---|
806 | with_sysroot
|
---|
807 | enable_libtool_lock
|
---|
808 | enable_werror
|
---|
809 | with_zlib_prefix
|
---|
810 | with_pkgconfigdir
|
---|
811 | with_binconfigs
|
---|
812 | with_libpng_prefix
|
---|
813 | enable_unversioned_links
|
---|
814 | enable_unversioned_libpng_pc
|
---|
815 | enable_unversioned_libpng_config
|
---|
816 | enable_hardware_optimizations
|
---|
817 | enable_arm_neon
|
---|
818 | enable_mips_msa
|
---|
819 | enable_intel_sse
|
---|
820 | enable_powerpc_vsx
|
---|
821 | '
|
---|
822 | ac_precious_vars='build_alias
|
---|
823 | host_alias
|
---|
824 | target_alias
|
---|
825 | CC
|
---|
826 | CFLAGS
|
---|
827 | LDFLAGS
|
---|
828 | LIBS
|
---|
829 | CPPFLAGS
|
---|
830 | CCAS
|
---|
831 | CCASFLAGS
|
---|
832 | CPP
|
---|
833 | LT_SYS_LIBRARY_PATH
|
---|
834 | PNG_COPTS'
|
---|
835 |
|
---|
836 |
|
---|
837 | # Initialize some variables set by options.
|
---|
838 | ac_init_help=
|
---|
839 | ac_init_version=false
|
---|
840 | ac_unrecognized_opts=
|
---|
841 | ac_unrecognized_sep=
|
---|
842 | # The variables have the same names as the options, with
|
---|
843 | # dashes changed to underlines.
|
---|
844 | cache_file=/dev/null
|
---|
845 | exec_prefix=NONE
|
---|
846 | no_create=
|
---|
847 | no_recursion=
|
---|
848 | prefix=NONE
|
---|
849 | program_prefix=NONE
|
---|
850 | program_suffix=NONE
|
---|
851 | program_transform_name=s,x,x,
|
---|
852 | silent=
|
---|
853 | site=
|
---|
854 | srcdir=
|
---|
855 | verbose=
|
---|
856 | x_includes=NONE
|
---|
857 | x_libraries=NONE
|
---|
858 |
|
---|
859 | # Installation directory options.
|
---|
860 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
861 | # and all the variables that are supposed to be based on exec_prefix
|
---|
862 | # by default will actually change.
|
---|
863 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
864 | # (The list follows the same order as the GNU Coding Standards.)
|
---|
865 | bindir='${exec_prefix}/bin'
|
---|
866 | sbindir='${exec_prefix}/sbin'
|
---|
867 | libexecdir='${exec_prefix}/libexec'
|
---|
868 | datarootdir='${prefix}/share'
|
---|
869 | datadir='${datarootdir}'
|
---|
870 | sysconfdir='${prefix}/etc'
|
---|
871 | sharedstatedir='${prefix}/com'
|
---|
872 | localstatedir='${prefix}/var'
|
---|
873 | includedir='${prefix}/include'
|
---|
874 | oldincludedir='/usr/include'
|
---|
875 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
|
---|
876 | infodir='${datarootdir}/info'
|
---|
877 | htmldir='${docdir}'
|
---|
878 | dvidir='${docdir}'
|
---|
879 | pdfdir='${docdir}'
|
---|
880 | psdir='${docdir}'
|
---|
881 | libdir='${exec_prefix}/lib'
|
---|
882 | localedir='${datarootdir}/locale'
|
---|
883 | mandir='${datarootdir}/man'
|
---|
884 |
|
---|
885 | ac_prev=
|
---|
886 | ac_dashdash=
|
---|
887 | for ac_option
|
---|
888 | do
|
---|
889 | # If the previous option needs an argument, assign it.
|
---|
890 | if test -n "$ac_prev"; then
|
---|
891 | eval $ac_prev=\$ac_option
|
---|
892 | ac_prev=
|
---|
893 | continue
|
---|
894 | fi
|
---|
895 |
|
---|
896 | case $ac_option in
|
---|
897 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
---|
898 | *=) ac_optarg= ;;
|
---|
899 | *) ac_optarg=yes ;;
|
---|
900 | esac
|
---|
901 |
|
---|
902 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
903 |
|
---|
904 | case $ac_dashdash$ac_option in
|
---|
905 | --)
|
---|
906 | ac_dashdash=yes ;;
|
---|
907 |
|
---|
908 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
909 | ac_prev=bindir ;;
|
---|
910 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
911 | bindir=$ac_optarg ;;
|
---|
912 |
|
---|
913 | -build | --build | --buil | --bui | --bu)
|
---|
914 | ac_prev=build_alias ;;
|
---|
915 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
916 | build_alias=$ac_optarg ;;
|
---|
917 |
|
---|
918 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
919 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
920 | ac_prev=cache_file ;;
|
---|
921 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
922 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
923 | cache_file=$ac_optarg ;;
|
---|
924 |
|
---|
925 | --config-cache | -C)
|
---|
926 | cache_file=config.cache ;;
|
---|
927 |
|
---|
928 | -datadir | --datadir | --datadi | --datad)
|
---|
929 | ac_prev=datadir ;;
|
---|
930 | -datadir=* | --datadir=* | --datadi=* | --datad=*)
|
---|
931 | datadir=$ac_optarg ;;
|
---|
932 |
|
---|
933 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
---|
934 | | --dataroo | --dataro | --datar)
|
---|
935 | ac_prev=datarootdir ;;
|
---|
936 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
---|
937 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
---|
938 | datarootdir=$ac_optarg ;;
|
---|
939 |
|
---|
940 | -disable-* | --disable-*)
|
---|
941 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
942 | # Reject names that are not valid shell variable names.
|
---|
943 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
944 | as_fn_error $? "invalid feature name: $ac_useropt"
|
---|
945 | ac_useropt_orig=$ac_useropt
|
---|
946 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
947 | case $ac_user_opts in
|
---|
948 | *"
|
---|
949 | "enable_$ac_useropt"
|
---|
950 | "*) ;;
|
---|
951 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
|
---|
952 | ac_unrecognized_sep=', ';;
|
---|
953 | esac
|
---|
954 | eval enable_$ac_useropt=no ;;
|
---|
955 |
|
---|
956 | -docdir | --docdir | --docdi | --doc | --do)
|
---|
957 | ac_prev=docdir ;;
|
---|
958 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
---|
959 | docdir=$ac_optarg ;;
|
---|
960 |
|
---|
961 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
---|
962 | ac_prev=dvidir ;;
|
---|
963 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
---|
964 | dvidir=$ac_optarg ;;
|
---|
965 |
|
---|
966 | -enable-* | --enable-*)
|
---|
967 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
968 | # Reject names that are not valid shell variable names.
|
---|
969 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
970 | as_fn_error $? "invalid feature name: $ac_useropt"
|
---|
971 | ac_useropt_orig=$ac_useropt
|
---|
972 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
973 | case $ac_user_opts in
|
---|
974 | *"
|
---|
975 | "enable_$ac_useropt"
|
---|
976 | "*) ;;
|
---|
977 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
|
---|
978 | ac_unrecognized_sep=', ';;
|
---|
979 | esac
|
---|
980 | eval enable_$ac_useropt=\$ac_optarg ;;
|
---|
981 |
|
---|
982 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
983 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
984 | | --exec | --exe | --ex)
|
---|
985 | ac_prev=exec_prefix ;;
|
---|
986 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
987 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
988 | | --exec=* | --exe=* | --ex=*)
|
---|
989 | exec_prefix=$ac_optarg ;;
|
---|
990 |
|
---|
991 | -gas | --gas | --ga | --g)
|
---|
992 | # Obsolete; use --with-gas.
|
---|
993 | with_gas=yes ;;
|
---|
994 |
|
---|
995 | -help | --help | --hel | --he | -h)
|
---|
996 | ac_init_help=long ;;
|
---|
997 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
998 | ac_init_help=recursive ;;
|
---|
999 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
1000 | ac_init_help=short ;;
|
---|
1001 |
|
---|
1002 | -host | --host | --hos | --ho)
|
---|
1003 | ac_prev=host_alias ;;
|
---|
1004 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
1005 | host_alias=$ac_optarg ;;
|
---|
1006 |
|
---|
1007 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
---|
1008 | ac_prev=htmldir ;;
|
---|
1009 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
---|
1010 | | --ht=*)
|
---|
1011 | htmldir=$ac_optarg ;;
|
---|
1012 |
|
---|
1013 | -includedir | --includedir | --includedi | --included | --include \
|
---|
1014 | | --includ | --inclu | --incl | --inc)
|
---|
1015 | ac_prev=includedir ;;
|
---|
1016 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
1017 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
1018 | includedir=$ac_optarg ;;
|
---|
1019 |
|
---|
1020 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
1021 | ac_prev=infodir ;;
|
---|
1022 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
1023 | infodir=$ac_optarg ;;
|
---|
1024 |
|
---|
1025 | -libdir | --libdir | --libdi | --libd)
|
---|
1026 | ac_prev=libdir ;;
|
---|
1027 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
1028 | libdir=$ac_optarg ;;
|
---|
1029 |
|
---|
1030 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
1031 | | --libexe | --libex | --libe)
|
---|
1032 | ac_prev=libexecdir ;;
|
---|
1033 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
1034 | | --libexe=* | --libex=* | --libe=*)
|
---|
1035 | libexecdir=$ac_optarg ;;
|
---|
1036 |
|
---|
1037 | -localedir | --localedir | --localedi | --localed | --locale)
|
---|
1038 | ac_prev=localedir ;;
|
---|
1039 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
---|
1040 | localedir=$ac_optarg ;;
|
---|
1041 |
|
---|
1042 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
1043 | | --localstate | --localstat | --localsta | --localst | --locals)
|
---|
1044 | ac_prev=localstatedir ;;
|
---|
1045 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
1046 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
---|
1047 | localstatedir=$ac_optarg ;;
|
---|
1048 |
|
---|
1049 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
1050 | ac_prev=mandir ;;
|
---|
1051 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
1052 | mandir=$ac_optarg ;;
|
---|
1053 |
|
---|
1054 | -nfp | --nfp | --nf)
|
---|
1055 | # Obsolete; use --without-fp.
|
---|
1056 | with_fp=no ;;
|
---|
1057 |
|
---|
1058 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
1059 | | --no-cr | --no-c | -n)
|
---|
1060 | no_create=yes ;;
|
---|
1061 |
|
---|
1062 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
1063 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
1064 | no_recursion=yes ;;
|
---|
1065 |
|
---|
1066 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
1067 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
1068 | | --oldin | --oldi | --old | --ol | --o)
|
---|
1069 | ac_prev=oldincludedir ;;
|
---|
1070 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
1071 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
1072 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
1073 | oldincludedir=$ac_optarg ;;
|
---|
1074 |
|
---|
1075 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
1076 | ac_prev=prefix ;;
|
---|
1077 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
1078 | prefix=$ac_optarg ;;
|
---|
1079 |
|
---|
1080 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
1081 | | --program-pre | --program-pr | --program-p)
|
---|
1082 | ac_prev=program_prefix ;;
|
---|
1083 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
1084 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
1085 | program_prefix=$ac_optarg ;;
|
---|
1086 |
|
---|
1087 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
1088 | | --program-suf | --program-su | --program-s)
|
---|
1089 | ac_prev=program_suffix ;;
|
---|
1090 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
1091 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
1092 | program_suffix=$ac_optarg ;;
|
---|
1093 |
|
---|
1094 | -program-transform-name | --program-transform-name \
|
---|
1095 | | --program-transform-nam | --program-transform-na \
|
---|
1096 | | --program-transform-n | --program-transform- \
|
---|
1097 | | --program-transform | --program-transfor \
|
---|
1098 | | --program-transfo | --program-transf \
|
---|
1099 | | --program-trans | --program-tran \
|
---|
1100 | | --progr-tra | --program-tr | --program-t)
|
---|
1101 | ac_prev=program_transform_name ;;
|
---|
1102 | -program-transform-name=* | --program-transform-name=* \
|
---|
1103 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
1104 | | --program-transform-n=* | --program-transform-=* \
|
---|
1105 | | --program-transform=* | --program-transfor=* \
|
---|
1106 | | --program-transfo=* | --program-transf=* \
|
---|
1107 | | --program-trans=* | --program-tran=* \
|
---|
1108 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
1109 | program_transform_name=$ac_optarg ;;
|
---|
1110 |
|
---|
1111 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
---|
1112 | ac_prev=pdfdir ;;
|
---|
1113 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
---|
1114 | pdfdir=$ac_optarg ;;
|
---|
1115 |
|
---|
1116 | -psdir | --psdir | --psdi | --psd | --ps)
|
---|
1117 | ac_prev=psdir ;;
|
---|
1118 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
---|
1119 | psdir=$ac_optarg ;;
|
---|
1120 |
|
---|
1121 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
1122 | | -silent | --silent | --silen | --sile | --sil)
|
---|
1123 | silent=yes ;;
|
---|
1124 |
|
---|
1125 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
1126 | ac_prev=sbindir ;;
|
---|
1127 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
1128 | | --sbi=* | --sb=*)
|
---|
1129 | sbindir=$ac_optarg ;;
|
---|
1130 |
|
---|
1131 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
1132 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
1133 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
1134 | | --sha | --sh)
|
---|
1135 | ac_prev=sharedstatedir ;;
|
---|
1136 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
1137 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
1138 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
1139 | | --sha=* | --sh=*)
|
---|
1140 | sharedstatedir=$ac_optarg ;;
|
---|
1141 |
|
---|
1142 | -site | --site | --sit)
|
---|
1143 | ac_prev=site ;;
|
---|
1144 | -site=* | --site=* | --sit=*)
|
---|
1145 | site=$ac_optarg ;;
|
---|
1146 |
|
---|
1147 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
1148 | ac_prev=srcdir ;;
|
---|
1149 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
1150 | srcdir=$ac_optarg ;;
|
---|
1151 |
|
---|
1152 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
1153 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
1154 | ac_prev=sysconfdir ;;
|
---|
1155 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
1156 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
1157 | sysconfdir=$ac_optarg ;;
|
---|
1158 |
|
---|
1159 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
1160 | ac_prev=target_alias ;;
|
---|
1161 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
1162 | target_alias=$ac_optarg ;;
|
---|
1163 |
|
---|
1164 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
1165 | verbose=yes ;;
|
---|
1166 |
|
---|
1167 | -version | --version | --versio | --versi | --vers | -V)
|
---|
1168 | ac_init_version=: ;;
|
---|
1169 |
|
---|
1170 | -with-* | --with-*)
|
---|
1171 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
1172 | # Reject names that are not valid shell variable names.
|
---|
1173 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
1174 | as_fn_error $? "invalid package name: $ac_useropt"
|
---|
1175 | ac_useropt_orig=$ac_useropt
|
---|
1176 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
1177 | case $ac_user_opts in
|
---|
1178 | *"
|
---|
1179 | "with_$ac_useropt"
|
---|
1180 | "*) ;;
|
---|
1181 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
|
---|
1182 | ac_unrecognized_sep=', ';;
|
---|
1183 | esac
|
---|
1184 | eval with_$ac_useropt=\$ac_optarg ;;
|
---|
1185 |
|
---|
1186 | -without-* | --without-*)
|
---|
1187 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
1188 | # Reject names that are not valid shell variable names.
|
---|
1189 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
1190 | as_fn_error $? "invalid package name: $ac_useropt"
|
---|
1191 | ac_useropt_orig=$ac_useropt
|
---|
1192 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
1193 | case $ac_user_opts in
|
---|
1194 | *"
|
---|
1195 | "with_$ac_useropt"
|
---|
1196 | "*) ;;
|
---|
1197 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
|
---|
1198 | ac_unrecognized_sep=', ';;
|
---|
1199 | esac
|
---|
1200 | eval with_$ac_useropt=no ;;
|
---|
1201 |
|
---|
1202 | --x)
|
---|
1203 | # Obsolete; use --with-x.
|
---|
1204 | with_x=yes ;;
|
---|
1205 |
|
---|
1206 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
1207 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
1208 | ac_prev=x_includes ;;
|
---|
1209 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
1210 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
1211 | x_includes=$ac_optarg ;;
|
---|
1212 |
|
---|
1213 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
1214 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
1215 | ac_prev=x_libraries ;;
|
---|
1216 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
1217 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
1218 | x_libraries=$ac_optarg ;;
|
---|
1219 |
|
---|
1220 | -*) as_fn_error $? "unrecognized option: \`$ac_option'
|
---|
1221 | Try \`$0 --help' for more information"
|
---|
1222 | ;;
|
---|
1223 |
|
---|
1224 | *=*)
|
---|
1225 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
1226 | # Reject names that are not valid shell variable names.
|
---|
1227 | case $ac_envvar in #(
|
---|
1228 | '' | [0-9]* | *[!_$as_cr_alnum]* )
|
---|
1229 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
|
---|
1230 | esac
|
---|
1231 | eval $ac_envvar=\$ac_optarg
|
---|
1232 | export $ac_envvar ;;
|
---|
1233 |
|
---|
1234 | *)
|
---|
1235 | # FIXME: should be removed in autoconf 3.0.
|
---|
1236 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
1237 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
1238 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
1239 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
|
---|
1240 | ;;
|
---|
1241 |
|
---|
1242 | esac
|
---|
1243 | done
|
---|
1244 |
|
---|
1245 | if test -n "$ac_prev"; then
|
---|
1246 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
1247 | as_fn_error $? "missing argument to $ac_option"
|
---|
1248 | fi
|
---|
1249 |
|
---|
1250 | if test -n "$ac_unrecognized_opts"; then
|
---|
1251 | case $enable_option_checking in
|
---|
1252 | no) ;;
|
---|
1253 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
|
---|
1254 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
|
---|
1255 | esac
|
---|
1256 | fi
|
---|
1257 |
|
---|
1258 | # Check all directory arguments for consistency.
|
---|
1259 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
---|
1260 | datadir sysconfdir sharedstatedir localstatedir includedir \
|
---|
1261 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
---|
1262 | libdir localedir mandir
|
---|
1263 | do
|
---|
1264 | eval ac_val=\$$ac_var
|
---|
1265 | # Remove trailing slashes.
|
---|
1266 | case $ac_val in
|
---|
1267 | */ )
|
---|
1268 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
|
---|
1269 | eval $ac_var=\$ac_val;;
|
---|
1270 | esac
|
---|
1271 | # Be sure to have absolute directory names.
|
---|
1272 | case $ac_val in
|
---|
1273 | [\\/$]* | ?:[\\/]* ) continue;;
|
---|
1274 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
---|
1275 | esac
|
---|
1276 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
|
---|
1277 | done
|
---|
1278 |
|
---|
1279 | # There might be people who depend on the old broken behavior: `$host'
|
---|
1280 | # used to hold the argument of --host etc.
|
---|
1281 | # FIXME: To remove some day.
|
---|
1282 | build=$build_alias
|
---|
1283 | host=$host_alias
|
---|
1284 | target=$target_alias
|
---|
1285 |
|
---|
1286 | # FIXME: To remove some day.
|
---|
1287 | if test "x$host_alias" != x; then
|
---|
1288 | if test "x$build_alias" = x; then
|
---|
1289 | cross_compiling=maybe
|
---|
1290 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
1291 | cross_compiling=yes
|
---|
1292 | fi
|
---|
1293 | fi
|
---|
1294 |
|
---|
1295 | ac_tool_prefix=
|
---|
1296 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
1297 |
|
---|
1298 | test "$silent" = yes && exec 6>/dev/null
|
---|
1299 |
|
---|
1300 |
|
---|
1301 | ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
---|
1302 | ac_ls_di=`ls -di .` &&
|
---|
1303 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
---|
1304 | as_fn_error $? "working directory cannot be determined"
|
---|
1305 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
---|
1306 | as_fn_error $? "pwd does not report name of working directory"
|
---|
1307 |
|
---|
1308 |
|
---|
1309 | # Find the source files, if location was not specified.
|
---|
1310 | if test -z "$srcdir"; then
|
---|
1311 | ac_srcdir_defaulted=yes
|
---|
1312 | # Try the directory containing this script, then the parent directory.
|
---|
1313 | ac_confdir=`$as_dirname -- "$as_myself" ||
|
---|
1314 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
1315 | X"$as_myself" : 'X\(//\)[^/]' \| \
|
---|
1316 | X"$as_myself" : 'X\(//\)$' \| \
|
---|
1317 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
1318 | $as_echo X"$as_myself" |
|
---|
1319 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
1320 | s//\1/
|
---|
1321 | q
|
---|
1322 | }
|
---|
1323 | /^X\(\/\/\)[^/].*/{
|
---|
1324 | s//\1/
|
---|
1325 | q
|
---|
1326 | }
|
---|
1327 | /^X\(\/\/\)$/{
|
---|
1328 | s//\1/
|
---|
1329 | q
|
---|
1330 | }
|
---|
1331 | /^X\(\/\).*/{
|
---|
1332 | s//\1/
|
---|
1333 | q
|
---|
1334 | }
|
---|
1335 | s/.*/./; q'`
|
---|
1336 | srcdir=$ac_confdir
|
---|
1337 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1338 | srcdir=..
|
---|
1339 | fi
|
---|
1340 | else
|
---|
1341 | ac_srcdir_defaulted=no
|
---|
1342 | fi
|
---|
1343 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1344 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
---|
1345 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
|
---|
1346 | fi
|
---|
1347 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
---|
1348 | ac_abs_confdir=`(
|
---|
1349 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
|
---|
1350 | pwd)`
|
---|
1351 | # When building in place, set srcdir=.
|
---|
1352 | if test "$ac_abs_confdir" = "$ac_pwd"; then
|
---|
1353 | srcdir=.
|
---|
1354 | fi
|
---|
1355 | # Remove unnecessary trailing slashes from srcdir.
|
---|
1356 | # Double slashes in file names in object file debugging info
|
---|
1357 | # mess up M-x gdb in Emacs.
|
---|
1358 | case $srcdir in
|
---|
1359 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
---|
1360 | esac
|
---|
1361 | for ac_var in $ac_precious_vars; do
|
---|
1362 | eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1363 | eval ac_env_${ac_var}_value=\$${ac_var}
|
---|
1364 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1365 | eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
---|
1366 | done
|
---|
1367 |
|
---|
1368 | #
|
---|
1369 | # Report the --help message.
|
---|
1370 | #
|
---|
1371 | if test "$ac_init_help" = "long"; then
|
---|
1372 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
1373 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
1374 | cat <<_ACEOF
|
---|
1375 | \`configure' configures libpng 1.6.37 to adapt to many kinds of systems.
|
---|
1376 |
|
---|
1377 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
1378 |
|
---|
1379 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
1380 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
1381 |
|
---|
1382 | Defaults for the options are specified in brackets.
|
---|
1383 |
|
---|
1384 | Configuration:
|
---|
1385 | -h, --help display this help and exit
|
---|
1386 | --help=short display options specific to this package
|
---|
1387 | --help=recursive display the short help of all the included packages
|
---|
1388 | -V, --version display version information and exit
|
---|
1389 | -q, --quiet, --silent do not print \`checking ...' messages
|
---|
1390 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
1391 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
1392 | -n, --no-create do not create output files
|
---|
1393 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
1394 |
|
---|
1395 | Installation directories:
|
---|
1396 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
1397 | [$ac_default_prefix]
|
---|
1398 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
1399 | [PREFIX]
|
---|
1400 |
|
---|
1401 | By default, \`make install' will install all the files in
|
---|
1402 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
1403 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
1404 | for instance \`--prefix=\$HOME'.
|
---|
1405 |
|
---|
1406 | For better control, use the options below.
|
---|
1407 |
|
---|
1408 | Fine tuning of the installation directories:
|
---|
1409 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
1410 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
1411 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
1412 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
1413 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
1414 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
1415 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
1416 | --includedir=DIR C header files [PREFIX/include]
|
---|
1417 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
1418 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
---|
1419 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
---|
1420 | --infodir=DIR info documentation [DATAROOTDIR/info]
|
---|
1421 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
---|
1422 | --mandir=DIR man documentation [DATAROOTDIR/man]
|
---|
1423 | --docdir=DIR documentation root [DATAROOTDIR/doc/libpng]
|
---|
1424 | --htmldir=DIR html documentation [DOCDIR]
|
---|
1425 | --dvidir=DIR dvi documentation [DOCDIR]
|
---|
1426 | --pdfdir=DIR pdf documentation [DOCDIR]
|
---|
1427 | --psdir=DIR ps documentation [DOCDIR]
|
---|
1428 | _ACEOF
|
---|
1429 |
|
---|
1430 | cat <<\_ACEOF
|
---|
1431 |
|
---|
1432 | Program names:
|
---|
1433 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
---|
1434 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
---|
1435 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names
|
---|
1436 |
|
---|
1437 | System types:
|
---|
1438 | --build=BUILD configure for building on BUILD [guessed]
|
---|
1439 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
1440 | _ACEOF
|
---|
1441 | fi
|
---|
1442 |
|
---|
1443 | if test -n "$ac_init_help"; then
|
---|
1444 | case $ac_init_help in
|
---|
1445 | short | recursive ) echo "Configuration of libpng 1.6.37:";;
|
---|
1446 | esac
|
---|
1447 | cat <<\_ACEOF
|
---|
1448 |
|
---|
1449 | Optional Features:
|
---|
1450 | --disable-option-checking ignore unrecognized --enable/--with options
|
---|
1451 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
1452 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
1453 | --enable-silent-rules less verbose build output (undo: "make V=1")
|
---|
1454 | --disable-silent-rules verbose build output (undo: "make V=0")
|
---|
1455 | --enable-maintainer-mode
|
---|
1456 | enable make rules and dependencies not useful (and
|
---|
1457 | sometimes confusing) to the casual installer
|
---|
1458 | --enable-dependency-tracking
|
---|
1459 | do not reject slow dependency extractors
|
---|
1460 | --disable-dependency-tracking
|
---|
1461 | speeds up one-time build
|
---|
1462 | --enable-shared[=PKGS] build shared libraries [default=yes]
|
---|
1463 | --enable-static[=PKGS] build static libraries [default=yes]
|
---|
1464 | --enable-fast-install[=PKGS]
|
---|
1465 | optimize for fast installation [default=yes]
|
---|
1466 | --disable-libtool-lock avoid locking (might break parallel builds)
|
---|
1467 | --enable-werror[=OPT] Pass -Werror or the given argument to the compiler
|
---|
1468 | if it is supported
|
---|
1469 | --enable-unversioned-links
|
---|
1470 | Installed libpng header files are placed in a
|
---|
1471 | versioned subdirectory and installed libpng library
|
---|
1472 | (including DLL) files are versioned. If this option
|
---|
1473 | is enabled unversioned links will be created
|
---|
1474 | pointing to the corresponding installed files. If
|
---|
1475 | you use libpng.pc or libpng-config for all builds
|
---|
1476 | you do not need these links, but if you compile
|
---|
1477 | programs directly they will typically #include
|
---|
1478 | <png.h> and link with -lpng; in that case you need
|
---|
1479 | the links. The links can be installed manually using
|
---|
1480 | 'make install-header-links' and 'make
|
---|
1481 | install-library-links' and can be removed using the
|
---|
1482 | corresponding uninstall- targets. If you do enable
|
---|
1483 | this option every libpng 'make install' will
|
---|
1484 | recreate the links to point to the just installed
|
---|
1485 | version of libpng. The default is to create the
|
---|
1486 | links; use --disable-unversioned-links to change
|
---|
1487 | this
|
---|
1488 | --enable-unversioned-libpng-pc
|
---|
1489 | Install the configuration file 'libpng.pc' as a link
|
---|
1490 | to the versioned version. This is done by default -
|
---|
1491 | use --disable-unversioned-libpng-pc to change this.
|
---|
1492 | --enable-unversioned-libpng-config
|
---|
1493 | Install the configuration file 'libpng-config' as a
|
---|
1494 | link to the versioned version. This is done by
|
---|
1495 | default - use --disable-unversioned-libpng-config to
|
---|
1496 | change this.
|
---|
1497 | --enable-hardware-optimizations
|
---|
1498 | Enable hardware optimizations: =no/off, yes/on:
|
---|
1499 | --enable-arm-neon Enable ARM NEON optimizations: =no/off, check, api,
|
---|
1500 | yes/on: no/off: disable the optimizations; check:
|
---|
1501 | use internal checking code (deprecated and poorly
|
---|
1502 | supported); api: disable by default, enable by a
|
---|
1503 | call to png_set_option; yes/on: turn on
|
---|
1504 | unconditionally. If not specified: determined by the
|
---|
1505 | compiler.
|
---|
1506 | --enable-mips-msa Enable MIPS MSA optimizations: =no/off, check, api,
|
---|
1507 | yes/on: no/off: disable the optimizations; check:
|
---|
1508 | use internal checking code (deprecated and poorly
|
---|
1509 | supported); api: disable by default, enable by a
|
---|
1510 | call to png_set_option; yes/on: turn on
|
---|
1511 | unconditionally. If not specified: determined by the
|
---|
1512 | compiler.
|
---|
1513 | --enable-intel-sse Enable Intel SSE optimizations: =no/off, yes/on:
|
---|
1514 | no/off: disable the optimizations; yes/on: enable
|
---|
1515 | the optimizations. If not specified: determined by
|
---|
1516 | the compiler.
|
---|
1517 | --enable-powerpc-vsx Enable POWERPC VSX optimizations: =no/off, check,
|
---|
1518 | api, yes/on: no/off: disable the optimizations;
|
---|
1519 | check: use internal checking code api: disable by
|
---|
1520 | default, enable by a call to png_set_option yes/on:
|
---|
1521 | turn on unconditionally. If not specified:
|
---|
1522 | determined by the compiler.
|
---|
1523 |
|
---|
1524 | Optional Packages:
|
---|
1525 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
1526 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
1527 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]
|
---|
1528 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
|
---|
1529 | both]
|
---|
1530 | --with-aix-soname=aix|svr4|both
|
---|
1531 | shared library versioning (aka "SONAME") variant to
|
---|
1532 | provide on AIX, [default=aix].
|
---|
1533 | --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
|
---|
1534 | compiler's sysroot if not specified).
|
---|
1535 | --with-zlib-prefix prefix that may have been used in installed zlib
|
---|
1536 | --with-pkgconfigdir Use the specified pkgconfig dir (default is
|
---|
1537 | libdir/pkgconfig)
|
---|
1538 | --with-binconfigs Generate shell libpng-config scripts as well as
|
---|
1539 | pkg-config data [default=yes]
|
---|
1540 | --with-libpng-prefix prefix libpng exported function (API) names with the
|
---|
1541 | given value
|
---|
1542 |
|
---|
1543 | Some influential environment variables:
|
---|
1544 | CC C compiler command
|
---|
1545 | CFLAGS C compiler flags
|
---|
1546 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
1547 | nonstandard directory <lib dir>
|
---|
1548 | LIBS libraries to pass to the linker, e.g. -l<library>
|
---|
1549 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
|
---|
1550 | you have headers in a nonstandard directory <include dir>
|
---|
1551 | CCAS assembler compiler command (defaults to CC)
|
---|
1552 | CCASFLAGS assembler compiler flags (defaults to CFLAGS)
|
---|
1553 | CPP C preprocessor
|
---|
1554 | LT_SYS_LIBRARY_PATH
|
---|
1555 | User-defined run-time library search path.
|
---|
1556 | PNG_COPTS additional flags for the C compiler, use this for options that
|
---|
1557 | would cause configure itself to fail
|
---|
1558 |
|
---|
1559 | Use these variables to override the choices made by `configure' or to help
|
---|
1560 | it to find libraries and programs with nonstandard names/locations.
|
---|
1561 |
|
---|
1562 | Report bugs to <png-mng-implement@lists.sourceforge.net>.
|
---|
1563 | _ACEOF
|
---|
1564 | ac_status=$?
|
---|
1565 | fi
|
---|
1566 |
|
---|
1567 | if test "$ac_init_help" = "recursive"; then
|
---|
1568 | # If there are subdirs, report their specific --help.
|
---|
1569 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
1570 | test -d "$ac_dir" ||
|
---|
1571 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
|
---|
1572 | continue
|
---|
1573 | ac_builddir=.
|
---|
1574 |
|
---|
1575 | case "$ac_dir" in
|
---|
1576 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1577 | *)
|
---|
1578 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
1579 | # A ".." for each directory in $ac_dir_suffix.
|
---|
1580 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
1581 | case $ac_top_builddir_sub in
|
---|
1582 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1583 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
1584 | esac ;;
|
---|
1585 | esac
|
---|
1586 | ac_abs_top_builddir=$ac_pwd
|
---|
1587 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
1588 | # for backward compatibility:
|
---|
1589 | ac_top_builddir=$ac_top_build_prefix
|
---|
1590 |
|
---|
1591 | case $srcdir in
|
---|
1592 | .) # We are building in place.
|
---|
1593 | ac_srcdir=.
|
---|
1594 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
1595 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
1596 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
1597 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
1598 | ac_top_srcdir=$srcdir
|
---|
1599 | ac_abs_top_srcdir=$srcdir ;;
|
---|
1600 | *) # Relative name.
|
---|
1601 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
1602 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
1603 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
1604 | esac
|
---|
1605 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
1606 |
|
---|
1607 | cd "$ac_dir" || { ac_status=$?; continue; }
|
---|
1608 | # Check for guested configure.
|
---|
1609 | if test -f "$ac_srcdir/configure.gnu"; then
|
---|
1610 | echo &&
|
---|
1611 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
---|
1612 | elif test -f "$ac_srcdir/configure"; then
|
---|
1613 | echo &&
|
---|
1614 | $SHELL "$ac_srcdir/configure" --help=recursive
|
---|
1615 | else
|
---|
1616 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
1617 | fi || ac_status=$?
|
---|
1618 | cd "$ac_pwd" || { ac_status=$?; break; }
|
---|
1619 | done
|
---|
1620 | fi
|
---|
1621 |
|
---|
1622 | test -n "$ac_init_help" && exit $ac_status
|
---|
1623 | if $ac_init_version; then
|
---|
1624 | cat <<\_ACEOF
|
---|
1625 | libpng configure 1.6.37
|
---|
1626 | generated by GNU Autoconf 2.69
|
---|
1627 |
|
---|
1628 | Copyright (C) 2012 Free Software Foundation, Inc.
|
---|
1629 | This configure script is free software; the Free Software Foundation
|
---|
1630 | gives unlimited permission to copy, distribute and modify it.
|
---|
1631 | _ACEOF
|
---|
1632 | exit
|
---|
1633 | fi
|
---|
1634 |
|
---|
1635 | ## ------------------------ ##
|
---|
1636 | ## Autoconf initialization. ##
|
---|
1637 | ## ------------------------ ##
|
---|
1638 |
|
---|
1639 | # ac_fn_c_try_compile LINENO
|
---|
1640 | # --------------------------
|
---|
1641 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
1642 | ac_fn_c_try_compile ()
|
---|
1643 | {
|
---|
1644 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1645 | rm -f conftest.$ac_objext
|
---|
1646 | if { { ac_try="$ac_compile"
|
---|
1647 | case "(($ac_try" in
|
---|
1648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1649 | *) ac_try_echo=$ac_try;;
|
---|
1650 | esac
|
---|
1651 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1652 | $as_echo "$ac_try_echo"; } >&5
|
---|
1653 | (eval "$ac_compile") 2>conftest.err
|
---|
1654 | ac_status=$?
|
---|
1655 | if test -s conftest.err; then
|
---|
1656 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1657 | cat conftest.er1 >&5
|
---|
1658 | mv -f conftest.er1 conftest.err
|
---|
1659 | fi
|
---|
1660 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1661 | test $ac_status = 0; } && {
|
---|
1662 | test -z "$ac_c_werror_flag" ||
|
---|
1663 | test ! -s conftest.err
|
---|
1664 | } && test -s conftest.$ac_objext; then :
|
---|
1665 | ac_retval=0
|
---|
1666 | else
|
---|
1667 | $as_echo "$as_me: failed program was:" >&5
|
---|
1668 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1669 |
|
---|
1670 | ac_retval=1
|
---|
1671 | fi
|
---|
1672 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1673 | as_fn_set_status $ac_retval
|
---|
1674 |
|
---|
1675 | } # ac_fn_c_try_compile
|
---|
1676 |
|
---|
1677 | # ac_fn_c_try_cpp LINENO
|
---|
1678 | # ----------------------
|
---|
1679 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
|
---|
1680 | ac_fn_c_try_cpp ()
|
---|
1681 | {
|
---|
1682 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1683 | if { { ac_try="$ac_cpp conftest.$ac_ext"
|
---|
1684 | case "(($ac_try" in
|
---|
1685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1686 | *) ac_try_echo=$ac_try;;
|
---|
1687 | esac
|
---|
1688 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1689 | $as_echo "$ac_try_echo"; } >&5
|
---|
1690 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
|
---|
1691 | ac_status=$?
|
---|
1692 | if test -s conftest.err; then
|
---|
1693 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1694 | cat conftest.er1 >&5
|
---|
1695 | mv -f conftest.er1 conftest.err
|
---|
1696 | fi
|
---|
1697 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1698 | test $ac_status = 0; } > conftest.i && {
|
---|
1699 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
1700 | test ! -s conftest.err
|
---|
1701 | }; then :
|
---|
1702 | ac_retval=0
|
---|
1703 | else
|
---|
1704 | $as_echo "$as_me: failed program was:" >&5
|
---|
1705 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1706 |
|
---|
1707 | ac_retval=1
|
---|
1708 | fi
|
---|
1709 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1710 | as_fn_set_status $ac_retval
|
---|
1711 |
|
---|
1712 | } # ac_fn_c_try_cpp
|
---|
1713 |
|
---|
1714 | # ac_fn_c_try_link LINENO
|
---|
1715 | # -----------------------
|
---|
1716 | # Try to link conftest.$ac_ext, and return whether this succeeded.
|
---|
1717 | ac_fn_c_try_link ()
|
---|
1718 | {
|
---|
1719 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1720 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
1721 | if { { ac_try="$ac_link"
|
---|
1722 | case "(($ac_try" in
|
---|
1723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1724 | *) ac_try_echo=$ac_try;;
|
---|
1725 | esac
|
---|
1726 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1727 | $as_echo "$ac_try_echo"; } >&5
|
---|
1728 | (eval "$ac_link") 2>conftest.err
|
---|
1729 | ac_status=$?
|
---|
1730 | if test -s conftest.err; then
|
---|
1731 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1732 | cat conftest.er1 >&5
|
---|
1733 | mv -f conftest.er1 conftest.err
|
---|
1734 | fi
|
---|
1735 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1736 | test $ac_status = 0; } && {
|
---|
1737 | test -z "$ac_c_werror_flag" ||
|
---|
1738 | test ! -s conftest.err
|
---|
1739 | } && test -s conftest$ac_exeext && {
|
---|
1740 | test "$cross_compiling" = yes ||
|
---|
1741 | test -x conftest$ac_exeext
|
---|
1742 | }; then :
|
---|
1743 | ac_retval=0
|
---|
1744 | else
|
---|
1745 | $as_echo "$as_me: failed program was:" >&5
|
---|
1746 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1747 |
|
---|
1748 | ac_retval=1
|
---|
1749 | fi
|
---|
1750 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
|
---|
1751 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
|
---|
1752 | # interfere with the next link command; also delete a directory that is
|
---|
1753 | # left behind by Apple's compiler. We do this before executing the actions.
|
---|
1754 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
1755 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1756 | as_fn_set_status $ac_retval
|
---|
1757 |
|
---|
1758 | } # ac_fn_c_try_link
|
---|
1759 |
|
---|
1760 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
|
---|
1761 | # -------------------------------------------------------
|
---|
1762 | # Tests whether HEADER exists and can be compiled using the include files in
|
---|
1763 | # INCLUDES, setting the cache variable VAR accordingly.
|
---|
1764 | ac_fn_c_check_header_compile ()
|
---|
1765 | {
|
---|
1766 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1768 | $as_echo_n "checking for $2... " >&6; }
|
---|
1769 | if eval \${$3+:} false; then :
|
---|
1770 | $as_echo_n "(cached) " >&6
|
---|
1771 | else
|
---|
1772 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1773 | /* end confdefs.h. */
|
---|
1774 | $4
|
---|
1775 | #include <$2>
|
---|
1776 | _ACEOF
|
---|
1777 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1778 | eval "$3=yes"
|
---|
1779 | else
|
---|
1780 | eval "$3=no"
|
---|
1781 | fi
|
---|
1782 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1783 | fi
|
---|
1784 | eval ac_res=\$$3
|
---|
1785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1786 | $as_echo "$ac_res" >&6; }
|
---|
1787 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1788 |
|
---|
1789 | } # ac_fn_c_check_header_compile
|
---|
1790 |
|
---|
1791 | # ac_fn_c_try_run LINENO
|
---|
1792 | # ----------------------
|
---|
1793 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
---|
1794 | # that executables *can* be run.
|
---|
1795 | ac_fn_c_try_run ()
|
---|
1796 | {
|
---|
1797 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1798 | if { { ac_try="$ac_link"
|
---|
1799 | case "(($ac_try" in
|
---|
1800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1801 | *) ac_try_echo=$ac_try;;
|
---|
1802 | esac
|
---|
1803 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1804 | $as_echo "$ac_try_echo"; } >&5
|
---|
1805 | (eval "$ac_link") 2>&5
|
---|
1806 | ac_status=$?
|
---|
1807 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1808 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
|
---|
1809 | { { case "(($ac_try" in
|
---|
1810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1811 | *) ac_try_echo=$ac_try;;
|
---|
1812 | esac
|
---|
1813 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1814 | $as_echo "$ac_try_echo"; } >&5
|
---|
1815 | (eval "$ac_try") 2>&5
|
---|
1816 | ac_status=$?
|
---|
1817 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1818 | test $ac_status = 0; }; }; then :
|
---|
1819 | ac_retval=0
|
---|
1820 | else
|
---|
1821 | $as_echo "$as_me: program exited with status $ac_status" >&5
|
---|
1822 | $as_echo "$as_me: failed program was:" >&5
|
---|
1823 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1824 |
|
---|
1825 | ac_retval=$ac_status
|
---|
1826 | fi
|
---|
1827 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
1828 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1829 | as_fn_set_status $ac_retval
|
---|
1830 |
|
---|
1831 | } # ac_fn_c_try_run
|
---|
1832 |
|
---|
1833 | # ac_fn_c_check_func LINENO FUNC VAR
|
---|
1834 | # ----------------------------------
|
---|
1835 | # Tests whether FUNC exists, setting the cache variable VAR accordingly
|
---|
1836 | ac_fn_c_check_func ()
|
---|
1837 | {
|
---|
1838 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1840 | $as_echo_n "checking for $2... " >&6; }
|
---|
1841 | if eval \${$3+:} false; then :
|
---|
1842 | $as_echo_n "(cached) " >&6
|
---|
1843 | else
|
---|
1844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1845 | /* end confdefs.h. */
|
---|
1846 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
|
---|
1847 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
1848 | #define $2 innocuous_$2
|
---|
1849 |
|
---|
1850 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
1851 | which can conflict with char $2 (); below.
|
---|
1852 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
1853 | <limits.h> exists even on freestanding compilers. */
|
---|
1854 |
|
---|
1855 | #ifdef __STDC__
|
---|
1856 | # include <limits.h>
|
---|
1857 | #else
|
---|
1858 | # include <assert.h>
|
---|
1859 | #endif
|
---|
1860 |
|
---|
1861 | #undef $2
|
---|
1862 |
|
---|
1863 | /* Override any GCC internal prototype to avoid an error.
|
---|
1864 | Use char because int might match the return type of a GCC
|
---|
1865 | builtin and then its argument prototype would still apply. */
|
---|
1866 | #ifdef __cplusplus
|
---|
1867 | extern "C"
|
---|
1868 | #endif
|
---|
1869 | char $2 ();
|
---|
1870 | /* The GNU C library defines this for functions which it implements
|
---|
1871 | to always fail with ENOSYS. Some functions are actually named
|
---|
1872 | something starting with __ and the normal name is an alias. */
|
---|
1873 | #if defined __stub_$2 || defined __stub___$2
|
---|
1874 | choke me
|
---|
1875 | #endif
|
---|
1876 |
|
---|
1877 | int
|
---|
1878 | main ()
|
---|
1879 | {
|
---|
1880 | return $2 ();
|
---|
1881 | ;
|
---|
1882 | return 0;
|
---|
1883 | }
|
---|
1884 | _ACEOF
|
---|
1885 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
1886 | eval "$3=yes"
|
---|
1887 | else
|
---|
1888 | eval "$3=no"
|
---|
1889 | fi
|
---|
1890 | rm -f core conftest.err conftest.$ac_objext \
|
---|
1891 | conftest$ac_exeext conftest.$ac_ext
|
---|
1892 | fi
|
---|
1893 | eval ac_res=\$$3
|
---|
1894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1895 | $as_echo "$ac_res" >&6; }
|
---|
1896 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1897 |
|
---|
1898 | } # ac_fn_c_check_func
|
---|
1899 |
|
---|
1900 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
|
---|
1901 | # -------------------------------------------
|
---|
1902 | # Tests whether TYPE exists after having included INCLUDES, setting cache
|
---|
1903 | # variable VAR accordingly.
|
---|
1904 | ac_fn_c_check_type ()
|
---|
1905 | {
|
---|
1906 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1908 | $as_echo_n "checking for $2... " >&6; }
|
---|
1909 | if eval \${$3+:} false; then :
|
---|
1910 | $as_echo_n "(cached) " >&6
|
---|
1911 | else
|
---|
1912 | eval "$3=no"
|
---|
1913 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1914 | /* end confdefs.h. */
|
---|
1915 | $4
|
---|
1916 | int
|
---|
1917 | main ()
|
---|
1918 | {
|
---|
1919 | if (sizeof ($2))
|
---|
1920 | return 0;
|
---|
1921 | ;
|
---|
1922 | return 0;
|
---|
1923 | }
|
---|
1924 | _ACEOF
|
---|
1925 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1926 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1927 | /* end confdefs.h. */
|
---|
1928 | $4
|
---|
1929 | int
|
---|
1930 | main ()
|
---|
1931 | {
|
---|
1932 | if (sizeof (($2)))
|
---|
1933 | return 0;
|
---|
1934 | ;
|
---|
1935 | return 0;
|
---|
1936 | }
|
---|
1937 | _ACEOF
|
---|
1938 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1939 |
|
---|
1940 | else
|
---|
1941 | eval "$3=yes"
|
---|
1942 | fi
|
---|
1943 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1944 | fi
|
---|
1945 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1946 | fi
|
---|
1947 | eval ac_res=\$$3
|
---|
1948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1949 | $as_echo "$ac_res" >&6; }
|
---|
1950 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1951 |
|
---|
1952 | } # ac_fn_c_check_type
|
---|
1953 | cat >config.log <<_ACEOF
|
---|
1954 | This file contains any messages produced by compilers while
|
---|
1955 | running configure, to aid debugging if configure makes a mistake.
|
---|
1956 |
|
---|
1957 | It was created by libpng $as_me 1.6.37, which was
|
---|
1958 | generated by GNU Autoconf 2.69. Invocation command line was
|
---|
1959 |
|
---|
1960 | $ $0 $@
|
---|
1961 |
|
---|
1962 | _ACEOF
|
---|
1963 | exec 5>>config.log
|
---|
1964 | {
|
---|
1965 | cat <<_ASUNAME
|
---|
1966 | ## --------- ##
|
---|
1967 | ## Platform. ##
|
---|
1968 | ## --------- ##
|
---|
1969 |
|
---|
1970 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
1971 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
1972 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
1973 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
1974 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
1975 |
|
---|
1976 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
1977 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
1978 |
|
---|
1979 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
1980 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
1981 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
1982 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
---|
1983 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
1984 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
1985 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
1986 |
|
---|
1987 | _ASUNAME
|
---|
1988 |
|
---|
1989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1990 | for as_dir in $PATH
|
---|
1991 | do
|
---|
1992 | IFS=$as_save_IFS
|
---|
1993 | test -z "$as_dir" && as_dir=.
|
---|
1994 | $as_echo "PATH: $as_dir"
|
---|
1995 | done
|
---|
1996 | IFS=$as_save_IFS
|
---|
1997 |
|
---|
1998 | } >&5
|
---|
1999 |
|
---|
2000 | cat >&5 <<_ACEOF
|
---|
2001 |
|
---|
2002 |
|
---|
2003 | ## ----------- ##
|
---|
2004 | ## Core tests. ##
|
---|
2005 | ## ----------- ##
|
---|
2006 |
|
---|
2007 | _ACEOF
|
---|
2008 |
|
---|
2009 |
|
---|
2010 | # Keep a trace of the command line.
|
---|
2011 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
2012 | # Strip out --silent because we don't want to record it for future runs.
|
---|
2013 | # Also quote any args containing shell meta-characters.
|
---|
2014 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
2015 | ac_configure_args=
|
---|
2016 | ac_configure_args0=
|
---|
2017 | ac_configure_args1=
|
---|
2018 | ac_must_keep_next=false
|
---|
2019 | for ac_pass in 1 2
|
---|
2020 | do
|
---|
2021 | for ac_arg
|
---|
2022 | do
|
---|
2023 | case $ac_arg in
|
---|
2024 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
2025 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
2026 | | -silent | --silent | --silen | --sile | --sil)
|
---|
2027 | continue ;;
|
---|
2028 | *\'*)
|
---|
2029 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
2030 | esac
|
---|
2031 | case $ac_pass in
|
---|
2032 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
|
---|
2033 | 2)
|
---|
2034 | as_fn_append ac_configure_args1 " '$ac_arg'"
|
---|
2035 | if test $ac_must_keep_next = true; then
|
---|
2036 | ac_must_keep_next=false # Got value, back to normal.
|
---|
2037 | else
|
---|
2038 | case $ac_arg in
|
---|
2039 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
2040 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
2041 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
2042 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
2043 | case "$ac_configure_args0 " in
|
---|
2044 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
2045 | esac
|
---|
2046 | ;;
|
---|
2047 | -* ) ac_must_keep_next=true ;;
|
---|
2048 | esac
|
---|
2049 | fi
|
---|
2050 | as_fn_append ac_configure_args " '$ac_arg'"
|
---|
2051 | ;;
|
---|
2052 | esac
|
---|
2053 | done
|
---|
2054 | done
|
---|
2055 | { ac_configure_args0=; unset ac_configure_args0;}
|
---|
2056 | { ac_configure_args1=; unset ac_configure_args1;}
|
---|
2057 |
|
---|
2058 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
2059 | # config.log. We remove comments because anyway the quotes in there
|
---|
2060 | # would cause problems or look ugly.
|
---|
2061 | # WARNING: Use '\'' to represent an apostrophe within the trap.
|
---|
2062 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
---|
2063 | trap 'exit_status=$?
|
---|
2064 | # Save into config.log some information that might help in debugging.
|
---|
2065 | {
|
---|
2066 | echo
|
---|
2067 |
|
---|
2068 | $as_echo "## ---------------- ##
|
---|
2069 | ## Cache variables. ##
|
---|
2070 | ## ---------------- ##"
|
---|
2071 | echo
|
---|
2072 | # The following way of writing the cache mishandles newlines in values,
|
---|
2073 | (
|
---|
2074 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
---|
2075 | eval ac_val=\$$ac_var
|
---|
2076 | case $ac_val in #(
|
---|
2077 | *${as_nl}*)
|
---|
2078 | case $ac_var in #(
|
---|
2079 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
2080 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
2081 | esac
|
---|
2082 | case $ac_var in #(
|
---|
2083 | _ | IFS | as_nl) ;; #(
|
---|
2084 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
2085 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
2086 | esac ;;
|
---|
2087 | esac
|
---|
2088 | done
|
---|
2089 | (set) 2>&1 |
|
---|
2090 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
---|
2091 | *${as_nl}ac_space=\ *)
|
---|
2092 | sed -n \
|
---|
2093 | "s/'\''/'\''\\\\'\'''\''/g;
|
---|
2094 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
---|
2095 | ;; #(
|
---|
2096 | *)
|
---|
2097 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
2098 | ;;
|
---|
2099 | esac |
|
---|
2100 | sort
|
---|
2101 | )
|
---|
2102 | echo
|
---|
2103 |
|
---|
2104 | $as_echo "## ----------------- ##
|
---|
2105 | ## Output variables. ##
|
---|
2106 | ## ----------------- ##"
|
---|
2107 | echo
|
---|
2108 | for ac_var in $ac_subst_vars
|
---|
2109 | do
|
---|
2110 | eval ac_val=\$$ac_var
|
---|
2111 | case $ac_val in
|
---|
2112 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
2113 | esac
|
---|
2114 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
2115 | done | sort
|
---|
2116 | echo
|
---|
2117 |
|
---|
2118 | if test -n "$ac_subst_files"; then
|
---|
2119 | $as_echo "## ------------------- ##
|
---|
2120 | ## File substitutions. ##
|
---|
2121 | ## ------------------- ##"
|
---|
2122 | echo
|
---|
2123 | for ac_var in $ac_subst_files
|
---|
2124 | do
|
---|
2125 | eval ac_val=\$$ac_var
|
---|
2126 | case $ac_val in
|
---|
2127 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
2128 | esac
|
---|
2129 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
2130 | done | sort
|
---|
2131 | echo
|
---|
2132 | fi
|
---|
2133 |
|
---|
2134 | if test -s confdefs.h; then
|
---|
2135 | $as_echo "## ----------- ##
|
---|
2136 | ## confdefs.h. ##
|
---|
2137 | ## ----------- ##"
|
---|
2138 | echo
|
---|
2139 | cat confdefs.h
|
---|
2140 | echo
|
---|
2141 | fi
|
---|
2142 | test "$ac_signal" != 0 &&
|
---|
2143 | $as_echo "$as_me: caught signal $ac_signal"
|
---|
2144 | $as_echo "$as_me: exit $exit_status"
|
---|
2145 | } >&5
|
---|
2146 | rm -f core *.core core.conftest.* &&
|
---|
2147 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
2148 | exit $exit_status
|
---|
2149 | ' 0
|
---|
2150 | for ac_signal in 1 2 13 15; do
|
---|
2151 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
|
---|
2152 | done
|
---|
2153 | ac_signal=0
|
---|
2154 |
|
---|
2155 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
2156 | rm -f -r conftest* confdefs.h
|
---|
2157 |
|
---|
2158 | $as_echo "/* confdefs.h */" > confdefs.h
|
---|
2159 |
|
---|
2160 | # Predefined preprocessor variables.
|
---|
2161 |
|
---|
2162 | cat >>confdefs.h <<_ACEOF
|
---|
2163 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
2164 | _ACEOF
|
---|
2165 |
|
---|
2166 | cat >>confdefs.h <<_ACEOF
|
---|
2167 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
2168 | _ACEOF
|
---|
2169 |
|
---|
2170 | cat >>confdefs.h <<_ACEOF
|
---|
2171 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
2172 | _ACEOF
|
---|
2173 |
|
---|
2174 | cat >>confdefs.h <<_ACEOF
|
---|
2175 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
2176 | _ACEOF
|
---|
2177 |
|
---|
2178 | cat >>confdefs.h <<_ACEOF
|
---|
2179 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
2180 | _ACEOF
|
---|
2181 |
|
---|
2182 | cat >>confdefs.h <<_ACEOF
|
---|
2183 | #define PACKAGE_URL "$PACKAGE_URL"
|
---|
2184 | _ACEOF
|
---|
2185 |
|
---|
2186 |
|
---|
2187 | # Let the site file select an alternate cache file if it wants to.
|
---|
2188 | # Prefer an explicitly selected file to automatically selected ones.
|
---|
2189 | ac_site_file1=NONE
|
---|
2190 | ac_site_file2=NONE
|
---|
2191 | if test -n "$CONFIG_SITE"; then
|
---|
2192 | # We do not want a PATH search for config.site.
|
---|
2193 | case $CONFIG_SITE in #((
|
---|
2194 | -*) ac_site_file1=./$CONFIG_SITE;;
|
---|
2195 | */*) ac_site_file1=$CONFIG_SITE;;
|
---|
2196 | *) ac_site_file1=./$CONFIG_SITE;;
|
---|
2197 | esac
|
---|
2198 | elif test "x$prefix" != xNONE; then
|
---|
2199 | ac_site_file1=$prefix/share/config.site
|
---|
2200 | ac_site_file2=$prefix/etc/config.site
|
---|
2201 | else
|
---|
2202 | ac_site_file1=$ac_default_prefix/share/config.site
|
---|
2203 | ac_site_file2=$ac_default_prefix/etc/config.site
|
---|
2204 | fi
|
---|
2205 | for ac_site_file in "$ac_site_file1" "$ac_site_file2"
|
---|
2206 | do
|
---|
2207 | test "x$ac_site_file" = xNONE && continue
|
---|
2208 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
|
---|
2209 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
|
---|
2210 | $as_echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
2211 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
2212 | . "$ac_site_file" \
|
---|
2213 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2214 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2215 | as_fn_error $? "failed to load site script $ac_site_file
|
---|
2216 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
2217 | fi
|
---|
2218 | done
|
---|
2219 |
|
---|
2220 | if test -r "$cache_file"; then
|
---|
2221 | # Some versions of bash will fail to source /dev/null (special files
|
---|
2222 | # actually), so we avoid doing that. DJGPP emulates it as a regular file.
|
---|
2223 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then
|
---|
2224 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
|
---|
2225 | $as_echo "$as_me: loading cache $cache_file" >&6;}
|
---|
2226 | case $cache_file in
|
---|
2227 | [\\/]* | ?:[\\/]* ) . "$cache_file";;
|
---|
2228 | *) . "./$cache_file";;
|
---|
2229 | esac
|
---|
2230 | fi
|
---|
2231 | else
|
---|
2232 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
|
---|
2233 | $as_echo "$as_me: creating cache $cache_file" >&6;}
|
---|
2234 | >$cache_file
|
---|
2235 | fi
|
---|
2236 |
|
---|
2237 | # Check that the precious variables saved in the cache have kept the same
|
---|
2238 | # value.
|
---|
2239 | ac_cache_corrupted=false
|
---|
2240 | for ac_var in $ac_precious_vars; do
|
---|
2241 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
2242 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
2243 | eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
---|
2244 | eval ac_new_val=\$ac_env_${ac_var}_value
|
---|
2245 | case $ac_old_set,$ac_new_set in
|
---|
2246 | set,)
|
---|
2247 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
2248 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
2249 | ac_cache_corrupted=: ;;
|
---|
2250 | ,set)
|
---|
2251 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
|
---|
2252 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
2253 | ac_cache_corrupted=: ;;
|
---|
2254 | ,);;
|
---|
2255 | *)
|
---|
2256 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
2257 | # differences in whitespace do not lead to failure.
|
---|
2258 | ac_old_val_w=`echo x $ac_old_val`
|
---|
2259 | ac_new_val_w=`echo x $ac_new_val`
|
---|
2260 | if test "$ac_old_val_w" != "$ac_new_val_w"; then
|
---|
2261 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
2262 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
2263 | ac_cache_corrupted=:
|
---|
2264 | else
|
---|
2265 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
|
---|
2266 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
|
---|
2267 | eval $ac_var=\$ac_old_val
|
---|
2268 | fi
|
---|
2269 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
|
---|
2270 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
|
---|
2271 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
|
---|
2272 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
|
---|
2273 | fi;;
|
---|
2274 | esac
|
---|
2275 | # Pass precious variables to config.status.
|
---|
2276 | if test "$ac_new_set" = set; then
|
---|
2277 | case $ac_new_val in
|
---|
2278 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
2279 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
2280 | esac
|
---|
2281 | case " $ac_configure_args " in
|
---|
2282 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
2283 | *) as_fn_append ac_configure_args " '$ac_arg'" ;;
|
---|
2284 | esac
|
---|
2285 | fi
|
---|
2286 | done
|
---|
2287 | if $ac_cache_corrupted; then
|
---|
2288 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2289 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2290 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
|
---|
2291 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
2292 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
|
---|
2293 | fi
|
---|
2294 | ## -------------------- ##
|
---|
2295 | ## Main body of script. ##
|
---|
2296 | ## -------------------- ##
|
---|
2297 |
|
---|
2298 | ac_ext=c
|
---|
2299 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2300 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2301 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2302 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2303 |
|
---|
2304 |
|
---|
2305 |
|
---|
2306 |
|
---|
2307 | # libpng does not follow GNU file name conventions (hence 'foreign')
|
---|
2308 | # color-tests requires automake 1.11 or later
|
---|
2309 | # silent-rules requires automake 1.11 or later
|
---|
2310 | # dist-xz requires automake 1.11 or later
|
---|
2311 | # 1.12.2 fixes a security issue in 1.11.2 and 1.12.1
|
---|
2312 | # 1.13 is required for parallel tests
|
---|
2313 | am__api_version='1.16'
|
---|
2314 |
|
---|
2315 | ac_aux_dir=
|
---|
2316 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
---|
2317 | if test -f "$ac_dir/install-sh"; then
|
---|
2318 | ac_aux_dir=$ac_dir
|
---|
2319 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
2320 | break
|
---|
2321 | elif test -f "$ac_dir/install.sh"; then
|
---|
2322 | ac_aux_dir=$ac_dir
|
---|
2323 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
2324 | break
|
---|
2325 | elif test -f "$ac_dir/shtool"; then
|
---|
2326 | ac_aux_dir=$ac_dir
|
---|
2327 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
2328 | break
|
---|
2329 | fi
|
---|
2330 | done
|
---|
2331 | if test -z "$ac_aux_dir"; then
|
---|
2332 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
|
---|
2333 | fi
|
---|
2334 |
|
---|
2335 | # These three variables are undocumented and unsupported,
|
---|
2336 | # and are intended to be withdrawn in a future Autoconf release.
|
---|
2337 | # They can cause serious problems if a builder's source tree is in a directory
|
---|
2338 | # whose full name contains unusual characters.
|
---|
2339 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
---|
2340 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
---|
2341 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
---|
2342 |
|
---|
2343 |
|
---|
2344 | # Find a good install program. We prefer a C program (faster),
|
---|
2345 | # so one script is as good as another. But avoid the broken or
|
---|
2346 | # incompatible versions:
|
---|
2347 | # SysV /etc/install, /usr/sbin/install
|
---|
2348 | # SunOS /usr/etc/install
|
---|
2349 | # IRIX /sbin/install
|
---|
2350 | # AIX /bin/install
|
---|
2351 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
2352 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
2353 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
2354 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
2355 | # OS/2's system install, which has a completely different semantic
|
---|
2356 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
2357 | # Reject install programs that cannot install multiple files.
|
---|
2358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
|
---|
2359 | $as_echo_n "checking for a BSD-compatible install... " >&6; }
|
---|
2360 | if test -z "$INSTALL"; then
|
---|
2361 | if ${ac_cv_path_install+:} false; then :
|
---|
2362 | $as_echo_n "(cached) " >&6
|
---|
2363 | else
|
---|
2364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2365 | for as_dir in $PATH
|
---|
2366 | do
|
---|
2367 | IFS=$as_save_IFS
|
---|
2368 | test -z "$as_dir" && as_dir=.
|
---|
2369 | # Account for people who put trailing slashes in PATH elements.
|
---|
2370 | case $as_dir/ in #((
|
---|
2371 | ./ | .// | /[cC]/* | \
|
---|
2372 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
2373 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
|
---|
2374 | /usr/ucb/* ) ;;
|
---|
2375 | *)
|
---|
2376 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
2377 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
2378 | # by default.
|
---|
2379 | for ac_prog in ginstall scoinst install; do
|
---|
2380 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2381 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
2382 | if test $ac_prog = install &&
|
---|
2383 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
2384 | # AIX install. It has an incompatible calling convention.
|
---|
2385 | :
|
---|
2386 | elif test $ac_prog = install &&
|
---|
2387 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
2388 | # program-specific install script used by HP pwplus--don't use.
|
---|
2389 | :
|
---|
2390 | else
|
---|
2391 | rm -rf conftest.one conftest.two conftest.dir
|
---|
2392 | echo one > conftest.one
|
---|
2393 | echo two > conftest.two
|
---|
2394 | mkdir conftest.dir
|
---|
2395 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
|
---|
2396 | test -s conftest.one && test -s conftest.two &&
|
---|
2397 | test -s conftest.dir/conftest.one &&
|
---|
2398 | test -s conftest.dir/conftest.two
|
---|
2399 | then
|
---|
2400 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
2401 | break 3
|
---|
2402 | fi
|
---|
2403 | fi
|
---|
2404 | fi
|
---|
2405 | done
|
---|
2406 | done
|
---|
2407 | ;;
|
---|
2408 | esac
|
---|
2409 |
|
---|
2410 | done
|
---|
2411 | IFS=$as_save_IFS
|
---|
2412 |
|
---|
2413 | rm -rf conftest.one conftest.two conftest.dir
|
---|
2414 |
|
---|
2415 | fi
|
---|
2416 | if test "${ac_cv_path_install+set}" = set; then
|
---|
2417 | INSTALL=$ac_cv_path_install
|
---|
2418 | else
|
---|
2419 | # As a last resort, use the slow shell script. Don't cache a
|
---|
2420 | # value for INSTALL within a source directory, because that will
|
---|
2421 | # break other packages using the cache if that directory is
|
---|
2422 | # removed, or if the value is a relative name.
|
---|
2423 | INSTALL=$ac_install_sh
|
---|
2424 | fi
|
---|
2425 | fi
|
---|
2426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
|
---|
2427 | $as_echo "$INSTALL" >&6; }
|
---|
2428 |
|
---|
2429 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
2430 | # It thinks the first close brace ends the variable substitution.
|
---|
2431 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
2432 |
|
---|
2433 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
2434 |
|
---|
2435 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
2436 |
|
---|
2437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
|
---|
2438 | $as_echo_n "checking whether build environment is sane... " >&6; }
|
---|
2439 | # Reject unsafe characters in $srcdir or the absolute working directory
|
---|
2440 | # name. Accept space and tab only in the latter.
|
---|
2441 | am_lf='
|
---|
2442 | '
|
---|
2443 | case `pwd` in
|
---|
2444 | *[\\\"\#\$\&\'\`$am_lf]*)
|
---|
2445 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
|
---|
2446 | esac
|
---|
2447 | case $srcdir in
|
---|
2448 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
|
---|
2449 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
|
---|
2450 | esac
|
---|
2451 |
|
---|
2452 | # Do 'set' in a subshell so we don't clobber the current shell's
|
---|
2453 | # arguments. Must try -L first in case configure is actually a
|
---|
2454 | # symlink; some systems play weird games with the mod time of symlinks
|
---|
2455 | # (eg FreeBSD returns the mod time of the symlink's containing
|
---|
2456 | # directory).
|
---|
2457 | if (
|
---|
2458 | am_has_slept=no
|
---|
2459 | for am_try in 1 2; do
|
---|
2460 | echo "timestamp, slept: $am_has_slept" > conftest.file
|
---|
2461 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
|
---|
2462 | if test "$*" = "X"; then
|
---|
2463 | # -L didn't work.
|
---|
2464 | set X `ls -t "$srcdir/configure" conftest.file`
|
---|
2465 | fi
|
---|
2466 | if test "$*" != "X $srcdir/configure conftest.file" \
|
---|
2467 | && test "$*" != "X conftest.file $srcdir/configure"; then
|
---|
2468 |
|
---|
2469 | # If neither matched, then we have a broken ls. This can happen
|
---|
2470 | # if, for instance, CONFIG_SHELL is bash and it inherits a
|
---|
2471 | # broken ls alias from the environment. This has actually
|
---|
2472 | # happened. Such a system could not be considered "sane".
|
---|
2473 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
|
---|
2474 | alias in your environment" "$LINENO" 5
|
---|
2475 | fi
|
---|
2476 | if test "$2" = conftest.file || test $am_try -eq 2; then
|
---|
2477 | break
|
---|
2478 | fi
|
---|
2479 | # Just in case.
|
---|
2480 | sleep 1
|
---|
2481 | am_has_slept=yes
|
---|
2482 | done
|
---|
2483 | test "$2" = conftest.file
|
---|
2484 | )
|
---|
2485 | then
|
---|
2486 | # Ok.
|
---|
2487 | :
|
---|
2488 | else
|
---|
2489 | as_fn_error $? "newly created file is older than distributed files!
|
---|
2490 | Check your system clock" "$LINENO" 5
|
---|
2491 | fi
|
---|
2492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
2493 | $as_echo "yes" >&6; }
|
---|
2494 | # If we didn't sleep, we still need to ensure time stamps of config.status and
|
---|
2495 | # generated files are strictly newer.
|
---|
2496 | am_sleep_pid=
|
---|
2497 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then
|
---|
2498 | ( sleep 1 ) &
|
---|
2499 | am_sleep_pid=$!
|
---|
2500 | fi
|
---|
2501 |
|
---|
2502 | rm -f conftest.file
|
---|
2503 |
|
---|
2504 | test "$program_prefix" != NONE &&
|
---|
2505 | program_transform_name="s&^&$program_prefix&;$program_transform_name"
|
---|
2506 | # Use a double $ so make ignores it.
|
---|
2507 | test "$program_suffix" != NONE &&
|
---|
2508 | program_transform_name="s&\$&$program_suffix&;$program_transform_name"
|
---|
2509 | # Double any \ or $.
|
---|
2510 | # By default was `s,x,x', remove it if useless.
|
---|
2511 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
|
---|
2512 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
|
---|
2513 |
|
---|
2514 | # Expand $ac_aux_dir to an absolute path.
|
---|
2515 | am_aux_dir=`cd "$ac_aux_dir" && pwd`
|
---|
2516 |
|
---|
2517 | if test x"${MISSING+set}" != xset; then
|
---|
2518 | case $am_aux_dir in
|
---|
2519 | *\ * | *\ *)
|
---|
2520 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
|
---|
2521 | *)
|
---|
2522 | MISSING="\${SHELL} $am_aux_dir/missing" ;;
|
---|
2523 | esac
|
---|
2524 | fi
|
---|
2525 | # Use eval to expand $SHELL
|
---|
2526 | if eval "$MISSING --is-lightweight"; then
|
---|
2527 | am_missing_run="$MISSING "
|
---|
2528 | else
|
---|
2529 | am_missing_run=
|
---|
2530 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
|
---|
2531 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
|
---|
2532 | fi
|
---|
2533 |
|
---|
2534 | if test x"${install_sh+set}" != xset; then
|
---|
2535 | case $am_aux_dir in
|
---|
2536 | *\ * | *\ *)
|
---|
2537 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
|
---|
2538 | *)
|
---|
2539 | install_sh="\${SHELL} $am_aux_dir/install-sh"
|
---|
2540 | esac
|
---|
2541 | fi
|
---|
2542 |
|
---|
2543 | # Installed binaries are usually stripped using 'strip' when the user
|
---|
2544 | # run "make install-strip". However 'strip' might not be the right
|
---|
2545 | # tool to use in cross-compilation environments, therefore Automake
|
---|
2546 | # will honor the 'STRIP' environment variable to overrule this program.
|
---|
2547 | if test "$cross_compiling" != no; then
|
---|
2548 | if test -n "$ac_tool_prefix"; then
|
---|
2549 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
---|
2550 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
---|
2551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2552 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2553 | if ${ac_cv_prog_STRIP+:} false; then :
|
---|
2554 | $as_echo_n "(cached) " >&6
|
---|
2555 | else
|
---|
2556 | if test -n "$STRIP"; then
|
---|
2557 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
2558 | else
|
---|
2559 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2560 | for as_dir in $PATH
|
---|
2561 | do
|
---|
2562 | IFS=$as_save_IFS
|
---|
2563 | test -z "$as_dir" && as_dir=.
|
---|
2564 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2565 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2566 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
---|
2567 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2568 | break 2
|
---|
2569 | fi
|
---|
2570 | done
|
---|
2571 | done
|
---|
2572 | IFS=$as_save_IFS
|
---|
2573 |
|
---|
2574 | fi
|
---|
2575 | fi
|
---|
2576 | STRIP=$ac_cv_prog_STRIP
|
---|
2577 | if test -n "$STRIP"; then
|
---|
2578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
|
---|
2579 | $as_echo "$STRIP" >&6; }
|
---|
2580 | else
|
---|
2581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2582 | $as_echo "no" >&6; }
|
---|
2583 | fi
|
---|
2584 |
|
---|
2585 |
|
---|
2586 | fi
|
---|
2587 | if test -z "$ac_cv_prog_STRIP"; then
|
---|
2588 | ac_ct_STRIP=$STRIP
|
---|
2589 | # Extract the first word of "strip", so it can be a program name with args.
|
---|
2590 | set dummy strip; ac_word=$2
|
---|
2591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2592 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2593 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
|
---|
2594 | $as_echo_n "(cached) " >&6
|
---|
2595 | else
|
---|
2596 | if test -n "$ac_ct_STRIP"; then
|
---|
2597 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
---|
2598 | else
|
---|
2599 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2600 | for as_dir in $PATH
|
---|
2601 | do
|
---|
2602 | IFS=$as_save_IFS
|
---|
2603 | test -z "$as_dir" && as_dir=.
|
---|
2604 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2605 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2606 | ac_cv_prog_ac_ct_STRIP="strip"
|
---|
2607 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2608 | break 2
|
---|
2609 | fi
|
---|
2610 | done
|
---|
2611 | done
|
---|
2612 | IFS=$as_save_IFS
|
---|
2613 |
|
---|
2614 | fi
|
---|
2615 | fi
|
---|
2616 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
---|
2617 | if test -n "$ac_ct_STRIP"; then
|
---|
2618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
|
---|
2619 | $as_echo "$ac_ct_STRIP" >&6; }
|
---|
2620 | else
|
---|
2621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2622 | $as_echo "no" >&6; }
|
---|
2623 | fi
|
---|
2624 |
|
---|
2625 | if test "x$ac_ct_STRIP" = x; then
|
---|
2626 | STRIP=":"
|
---|
2627 | else
|
---|
2628 | case $cross_compiling:$ac_tool_warned in
|
---|
2629 | yes:)
|
---|
2630 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
2631 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
2632 | ac_tool_warned=yes ;;
|
---|
2633 | esac
|
---|
2634 | STRIP=$ac_ct_STRIP
|
---|
2635 | fi
|
---|
2636 | else
|
---|
2637 | STRIP="$ac_cv_prog_STRIP"
|
---|
2638 | fi
|
---|
2639 |
|
---|
2640 | fi
|
---|
2641 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
|
---|
2642 |
|
---|
2643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
|
---|
2644 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
|
---|
2645 | if test -z "$MKDIR_P"; then
|
---|
2646 | if ${ac_cv_path_mkdir+:} false; then :
|
---|
2647 | $as_echo_n "(cached) " >&6
|
---|
2648 | else
|
---|
2649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2650 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
|
---|
2651 | do
|
---|
2652 | IFS=$as_save_IFS
|
---|
2653 | test -z "$as_dir" && as_dir=.
|
---|
2654 | for ac_prog in mkdir gmkdir; do
|
---|
2655 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2656 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
|
---|
2657 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
|
---|
2658 | 'mkdir (GNU coreutils) '* | \
|
---|
2659 | 'mkdir (coreutils) '* | \
|
---|
2660 | 'mkdir (fileutils) '4.1*)
|
---|
2661 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
|
---|
2662 | break 3;;
|
---|
2663 | esac
|
---|
2664 | done
|
---|
2665 | done
|
---|
2666 | done
|
---|
2667 | IFS=$as_save_IFS
|
---|
2668 |
|
---|
2669 | fi
|
---|
2670 |
|
---|
2671 | test -d ./--version && rmdir ./--version
|
---|
2672 | if test "${ac_cv_path_mkdir+set}" = set; then
|
---|
2673 | MKDIR_P="$ac_cv_path_mkdir -p"
|
---|
2674 | else
|
---|
2675 | # As a last resort, use the slow shell script. Don't cache a
|
---|
2676 | # value for MKDIR_P within a source directory, because that will
|
---|
2677 | # break other packages using the cache if that directory is
|
---|
2678 | # removed, or if the value is a relative name.
|
---|
2679 | MKDIR_P="$ac_install_sh -d"
|
---|
2680 | fi
|
---|
2681 | fi
|
---|
2682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
|
---|
2683 | $as_echo "$MKDIR_P" >&6; }
|
---|
2684 |
|
---|
2685 | for ac_prog in gawk mawk nawk awk
|
---|
2686 | do
|
---|
2687 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2688 | set dummy $ac_prog; ac_word=$2
|
---|
2689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2690 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2691 | if ${ac_cv_prog_AWK+:} false; then :
|
---|
2692 | $as_echo_n "(cached) " >&6
|
---|
2693 | else
|
---|
2694 | if test -n "$AWK"; then
|
---|
2695 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
2696 | else
|
---|
2697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2698 | for as_dir in $PATH
|
---|
2699 | do
|
---|
2700 | IFS=$as_save_IFS
|
---|
2701 | test -z "$as_dir" && as_dir=.
|
---|
2702 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2703 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2704 | ac_cv_prog_AWK="$ac_prog"
|
---|
2705 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2706 | break 2
|
---|
2707 | fi
|
---|
2708 | done
|
---|
2709 | done
|
---|
2710 | IFS=$as_save_IFS
|
---|
2711 |
|
---|
2712 | fi
|
---|
2713 | fi
|
---|
2714 | AWK=$ac_cv_prog_AWK
|
---|
2715 | if test -n "$AWK"; then
|
---|
2716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
|
---|
2717 | $as_echo "$AWK" >&6; }
|
---|
2718 | else
|
---|
2719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2720 | $as_echo "no" >&6; }
|
---|
2721 | fi
|
---|
2722 |
|
---|
2723 |
|
---|
2724 | test -n "$AWK" && break
|
---|
2725 | done
|
---|
2726 |
|
---|
2727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
2728 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
|
---|
2729 | set x ${MAKE-make}
|
---|
2730 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
---|
2731 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
|
---|
2732 | $as_echo_n "(cached) " >&6
|
---|
2733 | else
|
---|
2734 | cat >conftest.make <<\_ACEOF
|
---|
2735 | SHELL = /bin/sh
|
---|
2736 | all:
|
---|
2737 | @echo '@@@%%%=$(MAKE)=@@@%%%'
|
---|
2738 | _ACEOF
|
---|
2739 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
|
---|
2740 | case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
---|
2741 | *@@@%%%=?*=@@@%%%*)
|
---|
2742 | eval ac_cv_prog_make_${ac_make}_set=yes;;
|
---|
2743 | *)
|
---|
2744 | eval ac_cv_prog_make_${ac_make}_set=no;;
|
---|
2745 | esac
|
---|
2746 | rm -f conftest.make
|
---|
2747 | fi
|
---|
2748 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
---|
2749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
2750 | $as_echo "yes" >&6; }
|
---|
2751 | SET_MAKE=
|
---|
2752 | else
|
---|
2753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2754 | $as_echo "no" >&6; }
|
---|
2755 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
2756 | fi
|
---|
2757 |
|
---|
2758 | rm -rf .tst 2>/dev/null
|
---|
2759 | mkdir .tst 2>/dev/null
|
---|
2760 | if test -d .tst; then
|
---|
2761 | am__leading_dot=.
|
---|
2762 | else
|
---|
2763 | am__leading_dot=_
|
---|
2764 | fi
|
---|
2765 | rmdir .tst 2>/dev/null
|
---|
2766 |
|
---|
2767 | # Check whether --enable-silent-rules was given.
|
---|
2768 | if test "${enable_silent_rules+set}" = set; then :
|
---|
2769 | enableval=$enable_silent_rules;
|
---|
2770 | fi
|
---|
2771 |
|
---|
2772 | case $enable_silent_rules in # (((
|
---|
2773 | yes) AM_DEFAULT_VERBOSITY=0;;
|
---|
2774 | no) AM_DEFAULT_VERBOSITY=1;;
|
---|
2775 | *) AM_DEFAULT_VERBOSITY=1;;
|
---|
2776 | esac
|
---|
2777 | am_make=${MAKE-make}
|
---|
2778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
|
---|
2779 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
|
---|
2780 | if ${am_cv_make_support_nested_variables+:} false; then :
|
---|
2781 | $as_echo_n "(cached) " >&6
|
---|
2782 | else
|
---|
2783 | if $as_echo 'TRUE=$(BAR$(V))
|
---|
2784 | BAR0=false
|
---|
2785 | BAR1=true
|
---|
2786 | V=1
|
---|
2787 | am__doit:
|
---|
2788 | @$(TRUE)
|
---|
2789 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
|
---|
2790 | am_cv_make_support_nested_variables=yes
|
---|
2791 | else
|
---|
2792 | am_cv_make_support_nested_variables=no
|
---|
2793 | fi
|
---|
2794 | fi
|
---|
2795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
|
---|
2796 | $as_echo "$am_cv_make_support_nested_variables" >&6; }
|
---|
2797 | if test $am_cv_make_support_nested_variables = yes; then
|
---|
2798 | AM_V='$(V)'
|
---|
2799 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
|
---|
2800 | else
|
---|
2801 | AM_V=$AM_DEFAULT_VERBOSITY
|
---|
2802 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
|
---|
2803 | fi
|
---|
2804 | AM_BACKSLASH='\'
|
---|
2805 |
|
---|
2806 | if test "`cd $srcdir && pwd`" != "`pwd`"; then
|
---|
2807 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
|
---|
2808 | # is not polluted with repeated "-I."
|
---|
2809 | am__isrc=' -I$(srcdir)'
|
---|
2810 | # test to see if srcdir already configured
|
---|
2811 | if test -f $srcdir/config.status; then
|
---|
2812 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
|
---|
2813 | fi
|
---|
2814 | fi
|
---|
2815 |
|
---|
2816 | # test whether we have cygpath
|
---|
2817 | if test -z "$CYGPATH_W"; then
|
---|
2818 | if (cygpath --version) >/dev/null 2>/dev/null; then
|
---|
2819 | CYGPATH_W='cygpath -w'
|
---|
2820 | else
|
---|
2821 | CYGPATH_W=echo
|
---|
2822 | fi
|
---|
2823 | fi
|
---|
2824 |
|
---|
2825 |
|
---|
2826 | # Define the identity of the package.
|
---|
2827 | PACKAGE='libpng'
|
---|
2828 | VERSION='1.6.37'
|
---|
2829 |
|
---|
2830 |
|
---|
2831 | cat >>confdefs.h <<_ACEOF
|
---|
2832 | #define PACKAGE "$PACKAGE"
|
---|
2833 | _ACEOF
|
---|
2834 |
|
---|
2835 |
|
---|
2836 | cat >>confdefs.h <<_ACEOF
|
---|
2837 | #define VERSION "$VERSION"
|
---|
2838 | _ACEOF
|
---|
2839 |
|
---|
2840 | # Some tools Automake needs.
|
---|
2841 |
|
---|
2842 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
|
---|
2843 |
|
---|
2844 |
|
---|
2845 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
|
---|
2846 |
|
---|
2847 |
|
---|
2848 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
|
---|
2849 |
|
---|
2850 |
|
---|
2851 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
|
---|
2852 |
|
---|
2853 |
|
---|
2854 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
|
---|
2855 |
|
---|
2856 | # For better backward compatibility. To be removed once Automake 1.9.x
|
---|
2857 | # dies out for good. For more background, see:
|
---|
2858 | # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
|
---|
2859 | # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
|
---|
2860 | mkdir_p='$(MKDIR_P)'
|
---|
2861 |
|
---|
2862 | # We need awk for the "check" target (and possibly the TAP driver). The
|
---|
2863 | # system "awk" is bad on some platforms.
|
---|
2864 | # Always define AMTAR for backward compatibility. Yes, it's still used
|
---|
2865 | # in the wild :-( We should find a proper way to deprecate it ...
|
---|
2866 | AMTAR='$${TAR-tar}'
|
---|
2867 |
|
---|
2868 |
|
---|
2869 | # We'll loop over all known methods to create a tar archive until one works.
|
---|
2870 | _am_tools='gnutar pax cpio none'
|
---|
2871 |
|
---|
2872 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
|
---|
2873 |
|
---|
2874 |
|
---|
2875 |
|
---|
2876 |
|
---|
2877 |
|
---|
2878 |
|
---|
2879 | # POSIX will say in a future version that running "rm -f" with no argument
|
---|
2880 | # is OK; and we want to be able to make that assumption in our Makefile
|
---|
2881 | # recipes. So use an aggressive probe to check that the usage we want is
|
---|
2882 | # actually supported "in the wild" to an acceptable degree.
|
---|
2883 | # See automake bug#10828.
|
---|
2884 | # To make any issue more visible, cause the running configure to be aborted
|
---|
2885 | # by default if the 'rm' program in use doesn't match our expectations; the
|
---|
2886 | # user can still override this though.
|
---|
2887 | if rm -f && rm -fr && rm -rf; then : OK; else
|
---|
2888 | cat >&2 <<'END'
|
---|
2889 | Oops!
|
---|
2890 |
|
---|
2891 | Your 'rm' program seems unable to run without file operands specified
|
---|
2892 | on the command line, even when the '-f' option is present. This is contrary
|
---|
2893 | to the behaviour of most rm programs out there, and not conforming with
|
---|
2894 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
|
---|
2895 |
|
---|
2896 | Please tell bug-automake@gnu.org about your system, including the value
|
---|
2897 | of your $PATH and any error possibly output before this message. This
|
---|
2898 | can help us improve future automake versions.
|
---|
2899 |
|
---|
2900 | END
|
---|
2901 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
|
---|
2902 | echo 'Configuration will proceed anyway, since you have set the' >&2
|
---|
2903 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
|
---|
2904 | echo >&2
|
---|
2905 | else
|
---|
2906 | cat >&2 <<'END'
|
---|
2907 | Aborting the configuration process, to ensure you take notice of the issue.
|
---|
2908 |
|
---|
2909 | You can download and install GNU coreutils to get an 'rm' implementation
|
---|
2910 | that behaves properly: <https://www.gnu.org/software/coreutils/>.
|
---|
2911 |
|
---|
2912 | If you want to complete the configuration process using your problematic
|
---|
2913 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
|
---|
2914 | to "yes", and re-run configure.
|
---|
2915 |
|
---|
2916 | END
|
---|
2917 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
|
---|
2918 | fi
|
---|
2919 | fi
|
---|
2920 |
|
---|
2921 | # The following line causes --disable-maintainer-mode to be the default to
|
---|
2922 | # configure. This is necessary because libpng distributions cannot rely on the
|
---|
2923 | # time stamps of the autotools generated files being correct
|
---|
2924 |
|
---|
2925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
|
---|
2926 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
|
---|
2927 | # Check whether --enable-maintainer-mode was given.
|
---|
2928 | if test "${enable_maintainer_mode+set}" = set; then :
|
---|
2929 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
|
---|
2930 | else
|
---|
2931 | USE_MAINTAINER_MODE=no
|
---|
2932 | fi
|
---|
2933 |
|
---|
2934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
|
---|
2935 | $as_echo "$USE_MAINTAINER_MODE" >&6; }
|
---|
2936 | if test $USE_MAINTAINER_MODE = yes; then
|
---|
2937 | MAINTAINER_MODE_TRUE=
|
---|
2938 | MAINTAINER_MODE_FALSE='#'
|
---|
2939 | else
|
---|
2940 | MAINTAINER_MODE_TRUE='#'
|
---|
2941 | MAINTAINER_MODE_FALSE=
|
---|
2942 | fi
|
---|
2943 |
|
---|
2944 | MAINT=$MAINTAINER_MODE_TRUE
|
---|
2945 |
|
---|
2946 |
|
---|
2947 |
|
---|
2948 |
|
---|
2949 | PNGLIB_VERSION=1.6.37
|
---|
2950 | PNGLIB_MAJOR=1
|
---|
2951 | PNGLIB_MINOR=6
|
---|
2952 | PNGLIB_RELEASE=37
|
---|
2953 |
|
---|
2954 |
|
---|
2955 |
|
---|
2956 | ac_config_headers="$ac_config_headers config.h"
|
---|
2957 |
|
---|
2958 |
|
---|
2959 | # Checks for programs.
|
---|
2960 | ac_ext=c
|
---|
2961 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2962 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2963 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2964 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2965 |
|
---|
2966 | ac_ext=c
|
---|
2967 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2968 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2969 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2970 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2971 | if test -n "$ac_tool_prefix"; then
|
---|
2972 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
2973 | set dummy ${ac_tool_prefix}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; }
|
---|
2976 | if ${ac_cv_prog_CC+:} false; then :
|
---|
2977 | $as_echo_n "(cached) " >&6
|
---|
2978 | else
|
---|
2979 | if test -n "$CC"; then
|
---|
2980 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2981 | else
|
---|
2982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2983 | for as_dir in $PATH
|
---|
2984 | do
|
---|
2985 | IFS=$as_save_IFS
|
---|
2986 | test -z "$as_dir" && as_dir=.
|
---|
2987 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2988 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2989 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
2990 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2991 | break 2
|
---|
2992 | fi
|
---|
2993 | done
|
---|
2994 | done
|
---|
2995 | IFS=$as_save_IFS
|
---|
2996 |
|
---|
2997 | fi
|
---|
2998 | fi
|
---|
2999 | CC=$ac_cv_prog_CC
|
---|
3000 | if test -n "$CC"; then
|
---|
3001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
3002 | $as_echo "$CC" >&6; }
|
---|
3003 | else
|
---|
3004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3005 | $as_echo "no" >&6; }
|
---|
3006 | fi
|
---|
3007 |
|
---|
3008 |
|
---|
3009 | fi
|
---|
3010 | if test -z "$ac_cv_prog_CC"; then
|
---|
3011 | ac_ct_CC=$CC
|
---|
3012 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
3013 | set dummy gcc; ac_word=$2
|
---|
3014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3015 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3016 | if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
---|
3017 | $as_echo_n "(cached) " >&6
|
---|
3018 | else
|
---|
3019 | if test -n "$ac_ct_CC"; then
|
---|
3020 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
3021 | else
|
---|
3022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3023 | for as_dir in $PATH
|
---|
3024 | do
|
---|
3025 | IFS=$as_save_IFS
|
---|
3026 | test -z "$as_dir" && as_dir=.
|
---|
3027 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3028 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3029 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
3030 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3031 | break 2
|
---|
3032 | fi
|
---|
3033 | done
|
---|
3034 | done
|
---|
3035 | IFS=$as_save_IFS
|
---|
3036 |
|
---|
3037 | fi
|
---|
3038 | fi
|
---|
3039 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
3040 | if test -n "$ac_ct_CC"; then
|
---|
3041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
3042 | $as_echo "$ac_ct_CC" >&6; }
|
---|
3043 | else
|
---|
3044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3045 | $as_echo "no" >&6; }
|
---|
3046 | fi
|
---|
3047 |
|
---|
3048 | if test "x$ac_ct_CC" = x; then
|
---|
3049 | CC=""
|
---|
3050 | else
|
---|
3051 | case $cross_compiling:$ac_tool_warned in
|
---|
3052 | yes:)
|
---|
3053 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
3054 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
3055 | ac_tool_warned=yes ;;
|
---|
3056 | esac
|
---|
3057 | CC=$ac_ct_CC
|
---|
3058 | fi
|
---|
3059 | else
|
---|
3060 | CC="$ac_cv_prog_CC"
|
---|
3061 | fi
|
---|
3062 |
|
---|
3063 | if test -z "$CC"; then
|
---|
3064 | if test -n "$ac_tool_prefix"; then
|
---|
3065 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
3066 | set dummy ${ac_tool_prefix}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; }
|
---|
3069 | if ${ac_cv_prog_CC+:} false; then :
|
---|
3070 | $as_echo_n "(cached) " >&6
|
---|
3071 | else
|
---|
3072 | if test -n "$CC"; then
|
---|
3073 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
3074 | else
|
---|
3075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3076 | for as_dir in $PATH
|
---|
3077 | do
|
---|
3078 | IFS=$as_save_IFS
|
---|
3079 | test -z "$as_dir" && as_dir=.
|
---|
3080 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3081 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3082 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
3083 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3084 | break 2
|
---|
3085 | fi
|
---|
3086 | done
|
---|
3087 | done
|
---|
3088 | IFS=$as_save_IFS
|
---|
3089 |
|
---|
3090 | fi
|
---|
3091 | fi
|
---|
3092 | CC=$ac_cv_prog_CC
|
---|
3093 | if test -n "$CC"; then
|
---|
3094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
3095 | $as_echo "$CC" >&6; }
|
---|
3096 | else
|
---|
3097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3098 | $as_echo "no" >&6; }
|
---|
3099 | fi
|
---|
3100 |
|
---|
3101 |
|
---|
3102 | fi
|
---|
3103 | fi
|
---|
3104 | if test -z "$CC"; then
|
---|
3105 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
3106 | set dummy cc; ac_word=$2
|
---|
3107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3108 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3109 | if ${ac_cv_prog_CC+:} false; then :
|
---|
3110 | $as_echo_n "(cached) " >&6
|
---|
3111 | else
|
---|
3112 | if test -n "$CC"; then
|
---|
3113 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
3114 | else
|
---|
3115 | ac_prog_rejected=no
|
---|
3116 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3117 | for as_dir in $PATH
|
---|
3118 | do
|
---|
3119 | IFS=$as_save_IFS
|
---|
3120 | test -z "$as_dir" && as_dir=.
|
---|
3121 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3122 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3123 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
3124 | ac_prog_rejected=yes
|
---|
3125 | continue
|
---|
3126 | fi
|
---|
3127 | ac_cv_prog_CC="cc"
|
---|
3128 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3129 | break 2
|
---|
3130 | fi
|
---|
3131 | done
|
---|
3132 | done
|
---|
3133 | IFS=$as_save_IFS
|
---|
3134 |
|
---|
3135 | if test $ac_prog_rejected = yes; then
|
---|
3136 | # We found a bogon in the path, so make sure we never use it.
|
---|
3137 | set dummy $ac_cv_prog_CC
|
---|
3138 | shift
|
---|
3139 | if test $# != 0; then
|
---|
3140 | # We chose a different compiler from the bogus one.
|
---|
3141 | # However, it has the same basename, so the bogon will be chosen
|
---|
3142 | # first if we set CC to just the basename; use the full file name.
|
---|
3143 | shift
|
---|
3144 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
3145 | fi
|
---|
3146 | fi
|
---|
3147 | fi
|
---|
3148 | fi
|
---|
3149 | CC=$ac_cv_prog_CC
|
---|
3150 | if test -n "$CC"; then
|
---|
3151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
3152 | $as_echo "$CC" >&6; }
|
---|
3153 | else
|
---|
3154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3155 | $as_echo "no" >&6; }
|
---|
3156 | fi
|
---|
3157 |
|
---|
3158 |
|
---|
3159 | fi
|
---|
3160 | if test -z "$CC"; then
|
---|
3161 | if test -n "$ac_tool_prefix"; then
|
---|
3162 | for ac_prog in cl.exe
|
---|
3163 | do
|
---|
3164 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
3165 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
3166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3167 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3168 | if ${ac_cv_prog_CC+:} false; then :
|
---|
3169 | $as_echo_n "(cached) " >&6
|
---|
3170 | else
|
---|
3171 | if test -n "$CC"; then
|
---|
3172 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
3173 | else
|
---|
3174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3175 | for as_dir in $PATH
|
---|
3176 | do
|
---|
3177 | IFS=$as_save_IFS
|
---|
3178 | test -z "$as_dir" && as_dir=.
|
---|
3179 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3180 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3181 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
3182 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3183 | break 2
|
---|
3184 | fi
|
---|
3185 | done
|
---|
3186 | done
|
---|
3187 | IFS=$as_save_IFS
|
---|
3188 |
|
---|
3189 | fi
|
---|
3190 | fi
|
---|
3191 | CC=$ac_cv_prog_CC
|
---|
3192 | if test -n "$CC"; then
|
---|
3193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
3194 | $as_echo "$CC" >&6; }
|
---|
3195 | else
|
---|
3196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3197 | $as_echo "no" >&6; }
|
---|
3198 | fi
|
---|
3199 |
|
---|
3200 |
|
---|
3201 | test -n "$CC" && break
|
---|
3202 | done
|
---|
3203 | fi
|
---|
3204 | if test -z "$CC"; then
|
---|
3205 | ac_ct_CC=$CC
|
---|
3206 | for ac_prog in cl.exe
|
---|
3207 | do
|
---|
3208 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3209 | set dummy $ac_prog; ac_word=$2
|
---|
3210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3211 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3212 | if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
---|
3213 | $as_echo_n "(cached) " >&6
|
---|
3214 | else
|
---|
3215 | if test -n "$ac_ct_CC"; then
|
---|
3216 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
3217 | else
|
---|
3218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3219 | for as_dir in $PATH
|
---|
3220 | do
|
---|
3221 | IFS=$as_save_IFS
|
---|
3222 | test -z "$as_dir" && as_dir=.
|
---|
3223 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3224 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3225 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
3226 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3227 | break 2
|
---|
3228 | fi
|
---|
3229 | done
|
---|
3230 | done
|
---|
3231 | IFS=$as_save_IFS
|
---|
3232 |
|
---|
3233 | fi
|
---|
3234 | fi
|
---|
3235 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
3236 | if test -n "$ac_ct_CC"; then
|
---|
3237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
3238 | $as_echo "$ac_ct_CC" >&6; }
|
---|
3239 | else
|
---|
3240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3241 | $as_echo "no" >&6; }
|
---|
3242 | fi
|
---|
3243 |
|
---|
3244 |
|
---|
3245 | test -n "$ac_ct_CC" && break
|
---|
3246 | done
|
---|
3247 |
|
---|
3248 | if test "x$ac_ct_CC" = x; then
|
---|
3249 | CC=""
|
---|
3250 | else
|
---|
3251 | case $cross_compiling:$ac_tool_warned in
|
---|
3252 | yes:)
|
---|
3253 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
3254 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
3255 | ac_tool_warned=yes ;;
|
---|
3256 | esac
|
---|
3257 | CC=$ac_ct_CC
|
---|
3258 | fi
|
---|
3259 | fi
|
---|
3260 |
|
---|
3261 | fi
|
---|
3262 |
|
---|
3263 |
|
---|
3264 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
3265 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
3266 | as_fn_error $? "no acceptable C compiler found in \$PATH
|
---|
3267 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
3268 |
|
---|
3269 | # Provide some information about the compiler.
|
---|
3270 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
---|
3271 | set X $ac_compile
|
---|
3272 | ac_compiler=$2
|
---|
3273 | for ac_option in --version -v -V -qversion; do
|
---|
3274 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
3275 | case "(($ac_try" in
|
---|
3276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3277 | *) ac_try_echo=$ac_try;;
|
---|
3278 | esac
|
---|
3279 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3280 | $as_echo "$ac_try_echo"; } >&5
|
---|
3281 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
3282 | ac_status=$?
|
---|
3283 | if test -s conftest.err; then
|
---|
3284 | sed '10a\
|
---|
3285 | ... rest of stderr output deleted ...
|
---|
3286 | 10q' conftest.err >conftest.er1
|
---|
3287 | cat conftest.er1 >&5
|
---|
3288 | fi
|
---|
3289 | rm -f conftest.er1 conftest.err
|
---|
3290 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3291 | test $ac_status = 0; }
|
---|
3292 | done
|
---|
3293 |
|
---|
3294 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3295 | /* end confdefs.h. */
|
---|
3296 |
|
---|
3297 | int
|
---|
3298 | main ()
|
---|
3299 | {
|
---|
3300 |
|
---|
3301 | ;
|
---|
3302 | return 0;
|
---|
3303 | }
|
---|
3304 | _ACEOF
|
---|
3305 | ac_clean_files_save=$ac_clean_files
|
---|
3306 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
|
---|
3307 | # Try to create an executable without -o first, disregard a.out.
|
---|
3308 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
3309 | # of exeext.
|
---|
3310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
|
---|
3311 | $as_echo_n "checking whether the C compiler works... " >&6; }
|
---|
3312 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
3313 |
|
---|
3314 | # The possible output files:
|
---|
3315 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
|
---|
3316 |
|
---|
3317 | ac_rmfiles=
|
---|
3318 | for ac_file in $ac_files
|
---|
3319 | do
|
---|
3320 | case $ac_file in
|
---|
3321 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
3322 | * ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
---|
3323 | esac
|
---|
3324 | done
|
---|
3325 | rm -f $ac_rmfiles
|
---|
3326 |
|
---|
3327 | if { { ac_try="$ac_link_default"
|
---|
3328 | case "(($ac_try" in
|
---|
3329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3330 | *) ac_try_echo=$ac_try;;
|
---|
3331 | esac
|
---|
3332 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3333 | $as_echo "$ac_try_echo"; } >&5
|
---|
3334 | (eval "$ac_link_default") 2>&5
|
---|
3335 | ac_status=$?
|
---|
3336 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3337 | test $ac_status = 0; }; then :
|
---|
3338 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
---|
3339 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
---|
3340 | # in a Makefile. We should not override ac_cv_exeext if it was cached,
|
---|
3341 | # so that the user can short-circuit this test for compilers unknown to
|
---|
3342 | # Autoconf.
|
---|
3343 | for ac_file in $ac_files ''
|
---|
3344 | do
|
---|
3345 | test -f "$ac_file" || continue
|
---|
3346 | case $ac_file in
|
---|
3347 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
|
---|
3348 | ;;
|
---|
3349 | [ab].out )
|
---|
3350 | # We found the default executable, but exeext='' is most
|
---|
3351 | # certainly right.
|
---|
3352 | break;;
|
---|
3353 | *.* )
|
---|
3354 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
---|
3355 | then :; else
|
---|
3356 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
3357 | fi
|
---|
3358 | # We set ac_cv_exeext here because the later test for it is not
|
---|
3359 | # safe: cross compilers may not add the suffix if given an `-o'
|
---|
3360 | # argument, so we may need to know it at that point already.
|
---|
3361 | # Even if this section looks crufty: it has the advantage of
|
---|
3362 | # actually working.
|
---|
3363 | break;;
|
---|
3364 | * )
|
---|
3365 | break;;
|
---|
3366 | esac
|
---|
3367 | done
|
---|
3368 | test "$ac_cv_exeext" = no && ac_cv_exeext=
|
---|
3369 |
|
---|
3370 | else
|
---|
3371 | ac_file=''
|
---|
3372 | fi
|
---|
3373 | if test -z "$ac_file"; then :
|
---|
3374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3375 | $as_echo "no" >&6; }
|
---|
3376 | $as_echo "$as_me: failed program was:" >&5
|
---|
3377 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3378 |
|
---|
3379 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
3380 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
3381 | as_fn_error 77 "C compiler cannot create executables
|
---|
3382 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
3383 | else
|
---|
3384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
3385 | $as_echo "yes" >&6; }
|
---|
3386 | fi
|
---|
3387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
|
---|
3388 | $as_echo_n "checking for C compiler default output file name... " >&6; }
|
---|
3389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
---|
3390 | $as_echo "$ac_file" >&6; }
|
---|
3391 | ac_exeext=$ac_cv_exeext
|
---|
3392 |
|
---|
3393 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
|
---|
3394 | ac_clean_files=$ac_clean_files_save
|
---|
3395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
|
---|
3396 | $as_echo_n "checking for suffix of executables... " >&6; }
|
---|
3397 | if { { ac_try="$ac_link"
|
---|
3398 | case "(($ac_try" in
|
---|
3399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3400 | *) ac_try_echo=$ac_try;;
|
---|
3401 | esac
|
---|
3402 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3403 | $as_echo "$ac_try_echo"; } >&5
|
---|
3404 | (eval "$ac_link") 2>&5
|
---|
3405 | ac_status=$?
|
---|
3406 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3407 | test $ac_status = 0; }; then :
|
---|
3408 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
3409 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
3410 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
3411 | # `rm'.
|
---|
3412 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
3413 | test -f "$ac_file" || continue
|
---|
3414 | case $ac_file in
|
---|
3415 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
3416 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
3417 | break;;
|
---|
3418 | * ) break;;
|
---|
3419 | esac
|
---|
3420 | done
|
---|
3421 | else
|
---|
3422 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
3423 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
3424 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link
|
---|
3425 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
3426 | fi
|
---|
3427 | rm -f conftest conftest$ac_cv_exeext
|
---|
3428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
|
---|
3429 | $as_echo "$ac_cv_exeext" >&6; }
|
---|
3430 |
|
---|
3431 | rm -f conftest.$ac_ext
|
---|
3432 | EXEEXT=$ac_cv_exeext
|
---|
3433 | ac_exeext=$EXEEXT
|
---|
3434 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3435 | /* end confdefs.h. */
|
---|
3436 | #include <stdio.h>
|
---|
3437 | int
|
---|
3438 | main ()
|
---|
3439 | {
|
---|
3440 | FILE *f = fopen ("conftest.out", "w");
|
---|
3441 | return ferror (f) || fclose (f) != 0;
|
---|
3442 |
|
---|
3443 | ;
|
---|
3444 | return 0;
|
---|
3445 | }
|
---|
3446 | _ACEOF
|
---|
3447 | ac_clean_files="$ac_clean_files conftest.out"
|
---|
3448 | # Check that the compiler produces executables we can run. If not, either
|
---|
3449 | # the compiler is broken, or we cross compile.
|
---|
3450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
---|
3451 | $as_echo_n "checking whether we are cross compiling... " >&6; }
|
---|
3452 | if test "$cross_compiling" != yes; then
|
---|
3453 | { { ac_try="$ac_link"
|
---|
3454 | case "(($ac_try" in
|
---|
3455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3456 | *) ac_try_echo=$ac_try;;
|
---|
3457 | esac
|
---|
3458 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3459 | $as_echo "$ac_try_echo"; } >&5
|
---|
3460 | (eval "$ac_link") 2>&5
|
---|
3461 | ac_status=$?
|
---|
3462 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3463 | test $ac_status = 0; }
|
---|
3464 | if { ac_try='./conftest$ac_cv_exeext'
|
---|
3465 | { { case "(($ac_try" in
|
---|
3466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3467 | *) ac_try_echo=$ac_try;;
|
---|
3468 | esac
|
---|
3469 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3470 | $as_echo "$ac_try_echo"; } >&5
|
---|
3471 | (eval "$ac_try") 2>&5
|
---|
3472 | ac_status=$?
|
---|
3473 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3474 | test $ac_status = 0; }; }; then
|
---|
3475 | cross_compiling=no
|
---|
3476 | else
|
---|
3477 | if test "$cross_compiling" = maybe; then
|
---|
3478 | cross_compiling=yes
|
---|
3479 | else
|
---|
3480 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
3481 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
3482 | as_fn_error $? "cannot run C compiled programs.
|
---|
3483 | If you meant to cross compile, use \`--host'.
|
---|
3484 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
3485 | fi
|
---|
3486 | fi
|
---|
3487 | fi
|
---|
3488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
---|
3489 | $as_echo "$cross_compiling" >&6; }
|
---|
3490 |
|
---|
3491 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
|
---|
3492 | ac_clean_files=$ac_clean_files_save
|
---|
3493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
|
---|
3494 | $as_echo_n "checking for suffix of object files... " >&6; }
|
---|
3495 | if ${ac_cv_objext+:} false; then :
|
---|
3496 | $as_echo_n "(cached) " >&6
|
---|
3497 | else
|
---|
3498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3499 | /* end confdefs.h. */
|
---|
3500 |
|
---|
3501 | int
|
---|
3502 | main ()
|
---|
3503 | {
|
---|
3504 |
|
---|
3505 | ;
|
---|
3506 | return 0;
|
---|
3507 | }
|
---|
3508 | _ACEOF
|
---|
3509 | rm -f conftest.o conftest.obj
|
---|
3510 | if { { ac_try="$ac_compile"
|
---|
3511 | case "(($ac_try" in
|
---|
3512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3513 | *) ac_try_echo=$ac_try;;
|
---|
3514 | esac
|
---|
3515 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3516 | $as_echo "$ac_try_echo"; } >&5
|
---|
3517 | (eval "$ac_compile") 2>&5
|
---|
3518 | ac_status=$?
|
---|
3519 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3520 | test $ac_status = 0; }; then :
|
---|
3521 | for ac_file in conftest.o conftest.obj conftest.*; do
|
---|
3522 | test -f "$ac_file" || continue;
|
---|
3523 | case $ac_file in
|
---|
3524 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
|
---|
3525 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
3526 | break;;
|
---|
3527 | esac
|
---|
3528 | done
|
---|
3529 | else
|
---|
3530 | $as_echo "$as_me: failed program was:" >&5
|
---|
3531 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3532 |
|
---|
3533 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
3534 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
3535 | as_fn_error $? "cannot compute suffix of object files: cannot compile
|
---|
3536 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
3537 | fi
|
---|
3538 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
3539 | fi
|
---|
3540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
|
---|
3541 | $as_echo "$ac_cv_objext" >&6; }
|
---|
3542 | OBJEXT=$ac_cv_objext
|
---|
3543 | ac_objext=$OBJEXT
|
---|
3544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
|
---|
3545 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
|
---|
3546 | if ${ac_cv_c_compiler_gnu+:} false; then :
|
---|
3547 | $as_echo_n "(cached) " >&6
|
---|
3548 | else
|
---|
3549 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3550 | /* end confdefs.h. */
|
---|
3551 |
|
---|
3552 | int
|
---|
3553 | main ()
|
---|
3554 | {
|
---|
3555 | #ifndef __GNUC__
|
---|
3556 | choke me
|
---|
3557 | #endif
|
---|
3558 |
|
---|
3559 | ;
|
---|
3560 | return 0;
|
---|
3561 | }
|
---|
3562 | _ACEOF
|
---|
3563 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3564 | ac_compiler_gnu=yes
|
---|
3565 | else
|
---|
3566 | ac_compiler_gnu=no
|
---|
3567 | fi
|
---|
3568 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3569 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
3570 |
|
---|
3571 | fi
|
---|
3572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
---|
3573 | $as_echo "$ac_cv_c_compiler_gnu" >&6; }
|
---|
3574 | if test $ac_compiler_gnu = yes; then
|
---|
3575 | GCC=yes
|
---|
3576 | else
|
---|
3577 | GCC=
|
---|
3578 | fi
|
---|
3579 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
3580 | ac_save_CFLAGS=$CFLAGS
|
---|
3581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
---|
3582 | $as_echo_n "checking whether $CC accepts -g... " >&6; }
|
---|
3583 | if ${ac_cv_prog_cc_g+:} false; then :
|
---|
3584 | $as_echo_n "(cached) " >&6
|
---|
3585 | else
|
---|
3586 | ac_save_c_werror_flag=$ac_c_werror_flag
|
---|
3587 | ac_c_werror_flag=yes
|
---|
3588 | ac_cv_prog_cc_g=no
|
---|
3589 | CFLAGS="-g"
|
---|
3590 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3591 | /* end confdefs.h. */
|
---|
3592 |
|
---|
3593 | int
|
---|
3594 | main ()
|
---|
3595 | {
|
---|
3596 |
|
---|
3597 | ;
|
---|
3598 | return 0;
|
---|
3599 | }
|
---|
3600 | _ACEOF
|
---|
3601 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3602 | ac_cv_prog_cc_g=yes
|
---|
3603 | else
|
---|
3604 | CFLAGS=""
|
---|
3605 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3606 | /* end confdefs.h. */
|
---|
3607 |
|
---|
3608 | int
|
---|
3609 | main ()
|
---|
3610 | {
|
---|
3611 |
|
---|
3612 | ;
|
---|
3613 | return 0;
|
---|
3614 | }
|
---|
3615 | _ACEOF
|
---|
3616 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3617 |
|
---|
3618 | else
|
---|
3619 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
3620 | CFLAGS="-g"
|
---|
3621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3622 | /* end confdefs.h. */
|
---|
3623 |
|
---|
3624 | int
|
---|
3625 | main ()
|
---|
3626 | {
|
---|
3627 |
|
---|
3628 | ;
|
---|
3629 | return 0;
|
---|
3630 | }
|
---|
3631 | _ACEOF
|
---|
3632 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3633 | ac_cv_prog_cc_g=yes
|
---|
3634 | fi
|
---|
3635 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3636 | fi
|
---|
3637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3638 | fi
|
---|
3639 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3640 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
3641 | fi
|
---|
3642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
---|
3643 | $as_echo "$ac_cv_prog_cc_g" >&6; }
|
---|
3644 | if test "$ac_test_CFLAGS" = set; then
|
---|
3645 | CFLAGS=$ac_save_CFLAGS
|
---|
3646 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
3647 | if test "$GCC" = yes; then
|
---|
3648 | CFLAGS="-g -O2"
|
---|
3649 | else
|
---|
3650 | CFLAGS="-g"
|
---|
3651 | fi
|
---|
3652 | else
|
---|
3653 | if test "$GCC" = yes; then
|
---|
3654 | CFLAGS="-O2"
|
---|
3655 | else
|
---|
3656 | CFLAGS=
|
---|
3657 | fi
|
---|
3658 | fi
|
---|
3659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
|
---|
3660 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
|
---|
3661 | if ${ac_cv_prog_cc_c89+:} false; then :
|
---|
3662 | $as_echo_n "(cached) " >&6
|
---|
3663 | else
|
---|
3664 | ac_cv_prog_cc_c89=no
|
---|
3665 | ac_save_CC=$CC
|
---|
3666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3667 | /* end confdefs.h. */
|
---|
3668 | #include <stdarg.h>
|
---|
3669 | #include <stdio.h>
|
---|
3670 | struct stat;
|
---|
3671 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
3672 | struct buf { int x; };
|
---|
3673 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
3674 | static char *e (p, i)
|
---|
3675 | char **p;
|
---|
3676 | int i;
|
---|
3677 | {
|
---|
3678 | return p[i];
|
---|
3679 | }
|
---|
3680 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
3681 | {
|
---|
3682 | char *s;
|
---|
3683 | va_list v;
|
---|
3684 | va_start (v,p);
|
---|
3685 | s = g (p, va_arg (v,int));
|
---|
3686 | va_end (v);
|
---|
3687 | return s;
|
---|
3688 | }
|
---|
3689 |
|
---|
3690 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
3691 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
3692 | These don't provoke an error unfortunately, instead are silently treated
|
---|
3693 | as 'x'. The following induces an error, until -std is added to get
|
---|
3694 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
3695 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
3696 | that's true only with -std. */
|
---|
3697 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
3698 |
|
---|
3699 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
---|
3700 | inside strings and character constants. */
|
---|
3701 | #define FOO(x) 'x'
|
---|
3702 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
---|
3703 |
|
---|
3704 | int test (int i, double x);
|
---|
3705 | struct s1 {int (*f) (int a);};
|
---|
3706 | struct s2 {int (*f) (double a);};
|
---|
3707 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
3708 | int argc;
|
---|
3709 | char **argv;
|
---|
3710 | int
|
---|
3711 | main ()
|
---|
3712 | {
|
---|
3713 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
3714 | ;
|
---|
3715 | return 0;
|
---|
3716 | }
|
---|
3717 | _ACEOF
|
---|
3718 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
---|
3719 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
3720 | do
|
---|
3721 | CC="$ac_save_CC $ac_arg"
|
---|
3722 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3723 | ac_cv_prog_cc_c89=$ac_arg
|
---|
3724 | fi
|
---|
3725 | rm -f core conftest.err conftest.$ac_objext
|
---|
3726 | test "x$ac_cv_prog_cc_c89" != "xno" && break
|
---|
3727 | done
|
---|
3728 | rm -f conftest.$ac_ext
|
---|
3729 | CC=$ac_save_CC
|
---|
3730 |
|
---|
3731 | fi
|
---|
3732 | # AC_CACHE_VAL
|
---|
3733 | case "x$ac_cv_prog_cc_c89" in
|
---|
3734 | x)
|
---|
3735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
---|
3736 | $as_echo "none needed" >&6; } ;;
|
---|
3737 | xno)
|
---|
3738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
---|
3739 | $as_echo "unsupported" >&6; } ;;
|
---|
3740 | *)
|
---|
3741 | CC="$CC $ac_cv_prog_cc_c89"
|
---|
3742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
---|
3743 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
|
---|
3744 | esac
|
---|
3745 | if test "x$ac_cv_prog_cc_c89" != xno; then :
|
---|
3746 |
|
---|
3747 | fi
|
---|
3748 |
|
---|
3749 | ac_ext=c
|
---|
3750 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3751 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3752 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3753 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3754 |
|
---|
3755 | ac_ext=c
|
---|
3756 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3757 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3758 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3759 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
|
---|
3761 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
|
---|
3762 | if ${am_cv_prog_cc_c_o+:} false; then :
|
---|
3763 | $as_echo_n "(cached) " >&6
|
---|
3764 | else
|
---|
3765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3766 | /* end confdefs.h. */
|
---|
3767 |
|
---|
3768 | int
|
---|
3769 | main ()
|
---|
3770 | {
|
---|
3771 |
|
---|
3772 | ;
|
---|
3773 | return 0;
|
---|
3774 | }
|
---|
3775 | _ACEOF
|
---|
3776 | # Make sure it works both with $CC and with simple cc.
|
---|
3777 | # Following AC_PROG_CC_C_O, we do the test twice because some
|
---|
3778 | # compilers refuse to overwrite an existing .o file with -o,
|
---|
3779 | # though they will create one.
|
---|
3780 | am_cv_prog_cc_c_o=yes
|
---|
3781 | for am_i in 1 2; do
|
---|
3782 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
|
---|
3783 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
|
---|
3784 | ac_status=$?
|
---|
3785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3786 | (exit $ac_status); } \
|
---|
3787 | && test -f conftest2.$ac_objext; then
|
---|
3788 | : OK
|
---|
3789 | else
|
---|
3790 | am_cv_prog_cc_c_o=no
|
---|
3791 | break
|
---|
3792 | fi
|
---|
3793 | done
|
---|
3794 | rm -f core conftest*
|
---|
3795 | unset am_i
|
---|
3796 | fi
|
---|
3797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
|
---|
3798 | $as_echo "$am_cv_prog_cc_c_o" >&6; }
|
---|
3799 | if test "$am_cv_prog_cc_c_o" != yes; then
|
---|
3800 | # Losing compiler, so override with the script.
|
---|
3801 | # FIXME: It is wrong to rewrite CC.
|
---|
3802 | # But if we don't then we get into trouble of one sort or another.
|
---|
3803 | # A longer-term fix would be to have automake use am__CC in this case,
|
---|
3804 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
|
---|
3805 | CC="$am_aux_dir/compile $CC"
|
---|
3806 | fi
|
---|
3807 | ac_ext=c
|
---|
3808 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3809 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3810 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3811 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3812 |
|
---|
3813 | DEPDIR="${am__leading_dot}deps"
|
---|
3814 |
|
---|
3815 | ac_config_commands="$ac_config_commands depfiles"
|
---|
3816 |
|
---|
3817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
|
---|
3818 | $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
|
---|
3819 | cat > confinc.mk << 'END'
|
---|
3820 | am__doit:
|
---|
3821 | @echo this is the am__doit target >confinc.out
|
---|
3822 | .PHONY: am__doit
|
---|
3823 | END
|
---|
3824 | am__include="#"
|
---|
3825 | am__quote=
|
---|
3826 | # BSD make does it like this.
|
---|
3827 | echo '.include "confinc.mk" # ignored' > confmf.BSD
|
---|
3828 | # Other make implementations (GNU, Solaris 10, AIX) do it like this.
|
---|
3829 | echo 'include confinc.mk # ignored' > confmf.GNU
|
---|
3830 | _am_result=no
|
---|
3831 | for s in GNU BSD; do
|
---|
3832 | { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
|
---|
3833 | (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
|
---|
3834 | ac_status=$?
|
---|
3835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3836 | (exit $ac_status); }
|
---|
3837 | case $?:`cat confinc.out 2>/dev/null` in #(
|
---|
3838 | '0:this is the am__doit target') :
|
---|
3839 | case $s in #(
|
---|
3840 | BSD) :
|
---|
3841 | am__include='.include' am__quote='"' ;; #(
|
---|
3842 | *) :
|
---|
3843 | am__include='include' am__quote='' ;;
|
---|
3844 | esac ;; #(
|
---|
3845 | *) :
|
---|
3846 | ;;
|
---|
3847 | esac
|
---|
3848 | if test "$am__include" != "#"; then
|
---|
3849 | _am_result="yes ($s style)"
|
---|
3850 | break
|
---|
3851 | fi
|
---|
3852 | done
|
---|
3853 | rm -f confinc.* confmf.*
|
---|
3854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
|
---|
3855 | $as_echo "${_am_result}" >&6; }
|
---|
3856 |
|
---|
3857 | # Check whether --enable-dependency-tracking was given.
|
---|
3858 | if test "${enable_dependency_tracking+set}" = set; then :
|
---|
3859 | enableval=$enable_dependency_tracking;
|
---|
3860 | fi
|
---|
3861 |
|
---|
3862 | if test "x$enable_dependency_tracking" != xno; then
|
---|
3863 | am_depcomp="$ac_aux_dir/depcomp"
|
---|
3864 | AMDEPBACKSLASH='\'
|
---|
3865 | am__nodep='_no'
|
---|
3866 | fi
|
---|
3867 | if test "x$enable_dependency_tracking" != xno; then
|
---|
3868 | AMDEP_TRUE=
|
---|
3869 | AMDEP_FALSE='#'
|
---|
3870 | else
|
---|
3871 | AMDEP_TRUE='#'
|
---|
3872 | AMDEP_FALSE=
|
---|
3873 | fi
|
---|
3874 |
|
---|
3875 |
|
---|
3876 |
|
---|
3877 | depcc="$CC" am_compiler_list=
|
---|
3878 |
|
---|
3879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
|
---|
3880 | $as_echo_n "checking dependency style of $depcc... " >&6; }
|
---|
3881 | if ${am_cv_CC_dependencies_compiler_type+:} false; then :
|
---|
3882 | $as_echo_n "(cached) " >&6
|
---|
3883 | else
|
---|
3884 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
---|
3885 | # We make a subdir and do the tests there. Otherwise we can end up
|
---|
3886 | # making bogus files that we don't know about and never remove. For
|
---|
3887 | # instance it was reported that on HP-UX the gcc test will end up
|
---|
3888 | # making a dummy file named 'D' -- because '-MD' means "put the output
|
---|
3889 | # in D".
|
---|
3890 | rm -rf conftest.dir
|
---|
3891 | mkdir conftest.dir
|
---|
3892 | # Copy depcomp to subdir because otherwise we won't find it if we're
|
---|
3893 | # using a relative directory.
|
---|
3894 | cp "$am_depcomp" conftest.dir
|
---|
3895 | cd conftest.dir
|
---|
3896 | # We will build objects and dependencies in a subdirectory because
|
---|
3897 | # it helps to detect inapplicable dependency modes. For instance
|
---|
3898 | # both Tru64's cc and ICC support -MD to output dependencies as a
|
---|
3899 | # side effect of compilation, but ICC will put the dependencies in
|
---|
3900 | # the current directory while Tru64 will put them in the object
|
---|
3901 | # directory.
|
---|
3902 | mkdir sub
|
---|
3903 |
|
---|
3904 | am_cv_CC_dependencies_compiler_type=none
|
---|
3905 | if test "$am_compiler_list" = ""; then
|
---|
3906 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
|
---|
3907 | fi
|
---|
3908 | am__universal=false
|
---|
3909 | case " $depcc " in #(
|
---|
3910 | *\ -arch\ *\ -arch\ *) am__universal=true ;;
|
---|
3911 | esac
|
---|
3912 |
|
---|
3913 | for depmode in $am_compiler_list; do
|
---|
3914 | # Setup a source with many dependencies, because some compilers
|
---|
3915 | # like to wrap large dependency lists on column 80 (with \), and
|
---|
3916 | # we should not choose a depcomp mode which is confused by this.
|
---|
3917 | #
|
---|
3918 | # We need to recreate these files for each test, as the compiler may
|
---|
3919 | # overwrite some of them when testing with obscure command lines.
|
---|
3920 | # This happens at least with the AIX C compiler.
|
---|
3921 | : > sub/conftest.c
|
---|
3922 | for i in 1 2 3 4 5 6; do
|
---|
3923 | echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
---|
3924 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
|
---|
3925 | # Solaris 10 /bin/sh.
|
---|
3926 | echo '/* dummy */' > sub/conftst$i.h
|
---|
3927 | done
|
---|
3928 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
---|
3929 |
|
---|
3930 | # We check with '-c' and '-o' for the sake of the "dashmstdout"
|
---|
3931 | # mode. It turns out that the SunPro C++ compiler does not properly
|
---|
3932 | # handle '-M -o', and we need to detect this. Also, some Intel
|
---|
3933 | # versions had trouble with output in subdirs.
|
---|
3934 | am__obj=sub/conftest.${OBJEXT-o}
|
---|
3935 | am__minus_obj="-o $am__obj"
|
---|
3936 | case $depmode in
|
---|
3937 | gcc)
|
---|
3938 | # This depmode causes a compiler race in universal mode.
|
---|
3939 | test "$am__universal" = false || continue
|
---|
3940 | ;;
|
---|
3941 | nosideeffect)
|
---|
3942 | # After this tag, mechanisms are not by side-effect, so they'll
|
---|
3943 | # only be used when explicitly requested.
|
---|
3944 | if test "x$enable_dependency_tracking" = xyes; then
|
---|
3945 | continue
|
---|
3946 | else
|
---|
3947 | break
|
---|
3948 | fi
|
---|
3949 | ;;
|
---|
3950 | msvc7 | msvc7msys | msvisualcpp | msvcmsys)
|
---|
3951 | # This compiler won't grok '-c -o', but also, the minuso test has
|
---|
3952 | # not run yet. These depmodes are late enough in the game, and
|
---|
3953 | # so weak that their functioning should not be impacted.
|
---|
3954 | am__obj=conftest.${OBJEXT-o}
|
---|
3955 | am__minus_obj=
|
---|
3956 | ;;
|
---|
3957 | none) break ;;
|
---|
3958 | esac
|
---|
3959 | if depmode=$depmode \
|
---|
3960 | source=sub/conftest.c object=$am__obj \
|
---|
3961 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
---|
3962 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
|
---|
3963 | >/dev/null 2>conftest.err &&
|
---|
3964 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
---|
3965 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
---|
3966 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
|
---|
3967 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
---|
3968 | # icc doesn't choke on unknown options, it will just issue warnings
|
---|
3969 | # or remarks (even with -Werror). So we grep stderr for any message
|
---|
3970 | # that says an option was ignored or not supported.
|
---|
3971 | # When given -MP, icc 7.0 and 7.1 complain thusly:
|
---|
3972 | # icc: Command line warning: ignoring option '-M'; no argument required
|
---|
3973 | # The diagnosis changed in icc 8.0:
|
---|
3974 | # icc: Command line remark: option '-MP' not supported
|
---|
3975 | if (grep 'ignoring option' conftest.err ||
|
---|
3976 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
---|
3977 | am_cv_CC_dependencies_compiler_type=$depmode
|
---|
3978 | break
|
---|
3979 | fi
|
---|
3980 | fi
|
---|
3981 | done
|
---|
3982 |
|
---|
3983 | cd ..
|
---|
3984 | rm -rf conftest.dir
|
---|
3985 | else
|
---|
3986 | am_cv_CC_dependencies_compiler_type=none
|
---|
3987 | fi
|
---|
3988 |
|
---|
3989 | fi
|
---|
3990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
|
---|
3991 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
|
---|
3992 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
|
---|
3993 |
|
---|
3994 | if
|
---|
3995 | test "x$enable_dependency_tracking" != xno \
|
---|
3996 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
|
---|
3997 | am__fastdepCC_TRUE=
|
---|
3998 | am__fastdepCC_FALSE='#'
|
---|
3999 | else
|
---|
4000 | am__fastdepCC_TRUE='#'
|
---|
4001 | am__fastdepCC_FALSE=
|
---|
4002 | fi
|
---|
4003 |
|
---|
4004 |
|
---|
4005 | # By default we simply use the C compiler to build assembly code.
|
---|
4006 |
|
---|
4007 | test "${CCAS+set}" = set || CCAS=$CC
|
---|
4008 | test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
|
---|
4009 |
|
---|
4010 |
|
---|
4011 |
|
---|
4012 | depcc="$CCAS" am_compiler_list=
|
---|
4013 |
|
---|
4014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
|
---|
4015 | $as_echo_n "checking dependency style of $depcc... " >&6; }
|
---|
4016 | if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
|
---|
4017 | $as_echo_n "(cached) " >&6
|
---|
4018 | else
|
---|
4019 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
---|
4020 | # We make a subdir and do the tests there. Otherwise we can end up
|
---|
4021 | # making bogus files that we don't know about and never remove. For
|
---|
4022 | # instance it was reported that on HP-UX the gcc test will end up
|
---|
4023 | # making a dummy file named 'D' -- because '-MD' means "put the output
|
---|
4024 | # in D".
|
---|
4025 | rm -rf conftest.dir
|
---|
4026 | mkdir conftest.dir
|
---|
4027 | # Copy depcomp to subdir because otherwise we won't find it if we're
|
---|
4028 | # using a relative directory.
|
---|
4029 | cp "$am_depcomp" conftest.dir
|
---|
4030 | cd conftest.dir
|
---|
4031 | # We will build objects and dependencies in a subdirectory because
|
---|
4032 | # it helps to detect inapplicable dependency modes. For instance
|
---|
4033 | # both Tru64's cc and ICC support -MD to output dependencies as a
|
---|
4034 | # side effect of compilation, but ICC will put the dependencies in
|
---|
4035 | # the current directory while Tru64 will put them in the object
|
---|
4036 | # directory.
|
---|
4037 | mkdir sub
|
---|
4038 |
|
---|
4039 | am_cv_CCAS_dependencies_compiler_type=none
|
---|
4040 | if test "$am_compiler_list" = ""; then
|
---|
4041 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
|
---|
4042 | fi
|
---|
4043 | am__universal=false
|
---|
4044 |
|
---|
4045 |
|
---|
4046 | for depmode in $am_compiler_list; do
|
---|
4047 | # Setup a source with many dependencies, because some compilers
|
---|
4048 | # like to wrap large dependency lists on column 80 (with \), and
|
---|
4049 | # we should not choose a depcomp mode which is confused by this.
|
---|
4050 | #
|
---|
4051 | # We need to recreate these files for each test, as the compiler may
|
---|
4052 | # overwrite some of them when testing with obscure command lines.
|
---|
4053 | # This happens at least with the AIX C compiler.
|
---|
4054 | : > sub/conftest.c
|
---|
4055 | for i in 1 2 3 4 5 6; do
|
---|
4056 | echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
---|
4057 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
|
---|
4058 | # Solaris 10 /bin/sh.
|
---|
4059 | echo '/* dummy */' > sub/conftst$i.h
|
---|
4060 | done
|
---|
4061 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
---|
4062 |
|
---|
4063 | # We check with '-c' and '-o' for the sake of the "dashmstdout"
|
---|
4064 | # mode. It turns out that the SunPro C++ compiler does not properly
|
---|
4065 | # handle '-M -o', and we need to detect this. Also, some Intel
|
---|
4066 | # versions had trouble with output in subdirs.
|
---|
4067 | am__obj=sub/conftest.${OBJEXT-o}
|
---|
4068 | am__minus_obj="-o $am__obj"
|
---|
4069 | case $depmode in
|
---|
4070 | gcc)
|
---|
4071 | # This depmode causes a compiler race in universal mode.
|
---|
4072 | test "$am__universal" = false || continue
|
---|
4073 | ;;
|
---|
4074 | nosideeffect)
|
---|
4075 | # After this tag, mechanisms are not by side-effect, so they'll
|
---|
4076 | # only be used when explicitly requested.
|
---|
4077 | if test "x$enable_dependency_tracking" = xyes; then
|
---|
4078 | continue
|
---|
4079 | else
|
---|
4080 | break
|
---|
4081 | fi
|
---|
4082 | ;;
|
---|
4083 | msvc7 | msvc7msys | msvisualcpp | msvcmsys)
|
---|
4084 | # This compiler won't grok '-c -o', but also, the minuso test has
|
---|
4085 | # not run yet. These depmodes are late enough in the game, and
|
---|
4086 | # so weak that their functioning should not be impacted.
|
---|
4087 | am__obj=conftest.${OBJEXT-o}
|
---|
4088 | am__minus_obj=
|
---|
4089 | ;;
|
---|
4090 | none) break ;;
|
---|
4091 | esac
|
---|
4092 | if depmode=$depmode \
|
---|
4093 | source=sub/conftest.c object=$am__obj \
|
---|
4094 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
---|
4095 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
|
---|
4096 | >/dev/null 2>conftest.err &&
|
---|
4097 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
---|
4098 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
---|
4099 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
|
---|
4100 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
---|
4101 | # icc doesn't choke on unknown options, it will just issue warnings
|
---|
4102 | # or remarks (even with -Werror). So we grep stderr for any message
|
---|
4103 | # that says an option was ignored or not supported.
|
---|
4104 | # When given -MP, icc 7.0 and 7.1 complain thusly:
|
---|
4105 | # icc: Command line warning: ignoring option '-M'; no argument required
|
---|
4106 | # The diagnosis changed in icc 8.0:
|
---|
4107 | # icc: Command line remark: option '-MP' not supported
|
---|
4108 | if (grep 'ignoring option' conftest.err ||
|
---|
4109 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
---|
4110 | am_cv_CCAS_dependencies_compiler_type=$depmode
|
---|
4111 | break
|
---|
4112 | fi
|
---|
4113 | fi
|
---|
4114 | done
|
---|
4115 |
|
---|
4116 | cd ..
|
---|
4117 | rm -rf conftest.dir
|
---|
4118 | else
|
---|
4119 | am_cv_CCAS_dependencies_compiler_type=none
|
---|
4120 | fi
|
---|
4121 |
|
---|
4122 | fi
|
---|
4123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
|
---|
4124 | $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
|
---|
4125 | CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
|
---|
4126 |
|
---|
4127 | if
|
---|
4128 | test "x$enable_dependency_tracking" != xno \
|
---|
4129 | && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
|
---|
4130 | am__fastdepCCAS_TRUE=
|
---|
4131 | am__fastdepCCAS_FALSE='#'
|
---|
4132 | else
|
---|
4133 | am__fastdepCCAS_TRUE='#'
|
---|
4134 | am__fastdepCCAS_FALSE=
|
---|
4135 | fi
|
---|
4136 |
|
---|
4137 |
|
---|
4138 | # Make sure we can run config.sub.
|
---|
4139 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
---|
4140 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
|
---|
4141 |
|
---|
4142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
|
---|
4143 | $as_echo_n "checking build system type... " >&6; }
|
---|
4144 | if ${ac_cv_build+:} false; then :
|
---|
4145 | $as_echo_n "(cached) " >&6
|
---|
4146 | else
|
---|
4147 | ac_build_alias=$build_alias
|
---|
4148 | test "x$ac_build_alias" = x &&
|
---|
4149 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
---|
4150 | test "x$ac_build_alias" = x &&
|
---|
4151 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
|
---|
4152 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
---|
4153 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
|
---|
4154 |
|
---|
4155 | fi
|
---|
4156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
|
---|
4157 | $as_echo "$ac_cv_build" >&6; }
|
---|
4158 | case $ac_cv_build in
|
---|
4159 | *-*-*) ;;
|
---|
4160 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
|
---|
4161 | esac
|
---|
4162 | build=$ac_cv_build
|
---|
4163 | ac_save_IFS=$IFS; IFS='-'
|
---|
4164 | set x $ac_cv_build
|
---|
4165 | shift
|
---|
4166 | build_cpu=$1
|
---|
4167 | build_vendor=$2
|
---|
4168 | shift; shift
|
---|
4169 | # Remember, the first character of IFS is used to create $*,
|
---|
4170 | # except with old shells:
|
---|
4171 | build_os=$*
|
---|
4172 | IFS=$ac_save_IFS
|
---|
4173 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
---|
4174 |
|
---|
4175 |
|
---|
4176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
|
---|
4177 | $as_echo_n "checking host system type... " >&6; }
|
---|
4178 | if ${ac_cv_host+:} false; then :
|
---|
4179 | $as_echo_n "(cached) " >&6
|
---|
4180 | else
|
---|
4181 | if test "x$host_alias" = x; then
|
---|
4182 | ac_cv_host=$ac_cv_build
|
---|
4183 | else
|
---|
4184 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
---|
4185 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
|
---|
4186 | fi
|
---|
4187 |
|
---|
4188 | fi
|
---|
4189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
|
---|
4190 | $as_echo "$ac_cv_host" >&6; }
|
---|
4191 | case $ac_cv_host in
|
---|
4192 | *-*-*) ;;
|
---|
4193 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
|
---|
4194 | esac
|
---|
4195 | host=$ac_cv_host
|
---|
4196 | ac_save_IFS=$IFS; IFS='-'
|
---|
4197 | set x $ac_cv_host
|
---|
4198 | shift
|
---|
4199 | host_cpu=$1
|
---|
4200 | host_vendor=$2
|
---|
4201 | shift; shift
|
---|
4202 | # Remember, the first character of IFS is used to create $*,
|
---|
4203 | # except with old shells:
|
---|
4204 | host_os=$*
|
---|
4205 | IFS=$ac_save_IFS
|
---|
4206 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
---|
4207 |
|
---|
4208 |
|
---|
4209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
|
---|
4210 | $as_echo_n "checking for a sed that does not truncate output... " >&6; }
|
---|
4211 | if ${ac_cv_path_SED+:} false; then :
|
---|
4212 | $as_echo_n "(cached) " >&6
|
---|
4213 | else
|
---|
4214 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
|
---|
4215 | for ac_i in 1 2 3 4 5 6 7; do
|
---|
4216 | ac_script="$ac_script$as_nl$ac_script"
|
---|
4217 | done
|
---|
4218 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
|
---|
4219 | { ac_script=; unset ac_script;}
|
---|
4220 | if test -z "$SED"; then
|
---|
4221 | ac_path_SED_found=false
|
---|
4222 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
4223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4224 | for as_dir in $PATH
|
---|
4225 | do
|
---|
4226 | IFS=$as_save_IFS
|
---|
4227 | test -z "$as_dir" && as_dir=.
|
---|
4228 | for ac_prog in sed gsed; do
|
---|
4229 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4230 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
|
---|
4231 | as_fn_executable_p "$ac_path_SED" || continue
|
---|
4232 | # Check for GNU ac_path_SED and select it if it is found.
|
---|
4233 | # Check for GNU $ac_path_SED
|
---|
4234 | case `"$ac_path_SED" --version 2>&1` in
|
---|
4235 | *GNU*)
|
---|
4236 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
|
---|
4237 | *)
|
---|
4238 | ac_count=0
|
---|
4239 | $as_echo_n 0123456789 >"conftest.in"
|
---|
4240 | while :
|
---|
4241 | do
|
---|
4242 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
4243 | mv "conftest.tmp" "conftest.in"
|
---|
4244 | cp "conftest.in" "conftest.nl"
|
---|
4245 | $as_echo '' >> "conftest.nl"
|
---|
4246 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
4247 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
4248 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
4249 | if test $ac_count -gt ${ac_path_SED_max-0}; then
|
---|
4250 | # Best one so far, save it but keep looking for a better one
|
---|
4251 | ac_cv_path_SED="$ac_path_SED"
|
---|
4252 | ac_path_SED_max=$ac_count
|
---|
4253 | fi
|
---|
4254 | # 10*(2^10) chars as input seems more than enough
|
---|
4255 | test $ac_count -gt 10 && break
|
---|
4256 | done
|
---|
4257 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
4258 | esac
|
---|
4259 |
|
---|
4260 | $ac_path_SED_found && break 3
|
---|
4261 | done
|
---|
4262 | done
|
---|
4263 | done
|
---|
4264 | IFS=$as_save_IFS
|
---|
4265 | if test -z "$ac_cv_path_SED"; then
|
---|
4266 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
|
---|
4267 | fi
|
---|
4268 | else
|
---|
4269 | ac_cv_path_SED=$SED
|
---|
4270 | fi
|
---|
4271 |
|
---|
4272 | fi
|
---|
4273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
|
---|
4274 | $as_echo "$ac_cv_path_SED" >&6; }
|
---|
4275 | SED="$ac_cv_path_SED"
|
---|
4276 | rm -f conftest.sed
|
---|
4277 |
|
---|
4278 | test -z "$SED" && SED=sed
|
---|
4279 | Xsed="$SED -e 1s/^X//"
|
---|
4280 |
|
---|
4281 |
|
---|
4282 |
|
---|
4283 |
|
---|
4284 |
|
---|
4285 |
|
---|
4286 |
|
---|
4287 |
|
---|
4288 |
|
---|
4289 |
|
---|
4290 |
|
---|
4291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
|
---|
4292 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
|
---|
4293 | if ${ac_cv_path_GREP+:} false; then :
|
---|
4294 | $as_echo_n "(cached) " >&6
|
---|
4295 | else
|
---|
4296 | if test -z "$GREP"; then
|
---|
4297 | ac_path_GREP_found=false
|
---|
4298 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
4299 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4300 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
4301 | do
|
---|
4302 | IFS=$as_save_IFS
|
---|
4303 | test -z "$as_dir" && as_dir=.
|
---|
4304 | for ac_prog in grep ggrep; do
|
---|
4305 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4306 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
4307 | as_fn_executable_p "$ac_path_GREP" || continue
|
---|
4308 | # Check for GNU ac_path_GREP and select it if it is found.
|
---|
4309 | # Check for GNU $ac_path_GREP
|
---|
4310 | case `"$ac_path_GREP" --version 2>&1` in
|
---|
4311 | *GNU*)
|
---|
4312 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
---|
4313 | *)
|
---|
4314 | ac_count=0
|
---|
4315 | $as_echo_n 0123456789 >"conftest.in"
|
---|
4316 | while :
|
---|
4317 | do
|
---|
4318 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
4319 | mv "conftest.tmp" "conftest.in"
|
---|
4320 | cp "conftest.in" "conftest.nl"
|
---|
4321 | $as_echo 'GREP' >> "conftest.nl"
|
---|
4322 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
4323 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
4324 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
4325 | if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
---|
4326 | # Best one so far, save it but keep looking for a better one
|
---|
4327 | ac_cv_path_GREP="$ac_path_GREP"
|
---|
4328 | ac_path_GREP_max=$ac_count
|
---|
4329 | fi
|
---|
4330 | # 10*(2^10) chars as input seems more than enough
|
---|
4331 | test $ac_count -gt 10 && break
|
---|
4332 | done
|
---|
4333 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
4334 | esac
|
---|
4335 |
|
---|
4336 | $ac_path_GREP_found && break 3
|
---|
4337 | done
|
---|
4338 | done
|
---|
4339 | done
|
---|
4340 | IFS=$as_save_IFS
|
---|
4341 | if test -z "$ac_cv_path_GREP"; then
|
---|
4342 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
4343 | fi
|
---|
4344 | else
|
---|
4345 | ac_cv_path_GREP=$GREP
|
---|
4346 | fi
|
---|
4347 |
|
---|
4348 | fi
|
---|
4349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
|
---|
4350 | $as_echo "$ac_cv_path_GREP" >&6; }
|
---|
4351 | GREP="$ac_cv_path_GREP"
|
---|
4352 |
|
---|
4353 |
|
---|
4354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
|
---|
4355 | $as_echo_n "checking for egrep... " >&6; }
|
---|
4356 | if ${ac_cv_path_EGREP+:} false; then :
|
---|
4357 | $as_echo_n "(cached) " >&6
|
---|
4358 | else
|
---|
4359 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
---|
4360 | then ac_cv_path_EGREP="$GREP -E"
|
---|
4361 | else
|
---|
4362 | if test -z "$EGREP"; then
|
---|
4363 | ac_path_EGREP_found=false
|
---|
4364 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
4365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4366 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
4367 | do
|
---|
4368 | IFS=$as_save_IFS
|
---|
4369 | test -z "$as_dir" && as_dir=.
|
---|
4370 | for ac_prog in egrep; do
|
---|
4371 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4372 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
4373 | as_fn_executable_p "$ac_path_EGREP" || continue
|
---|
4374 | # Check for GNU ac_path_EGREP and select it if it is found.
|
---|
4375 | # Check for GNU $ac_path_EGREP
|
---|
4376 | case `"$ac_path_EGREP" --version 2>&1` in
|
---|
4377 | *GNU*)
|
---|
4378 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
---|
4379 | *)
|
---|
4380 | ac_count=0
|
---|
4381 | $as_echo_n 0123456789 >"conftest.in"
|
---|
4382 | while :
|
---|
4383 | do
|
---|
4384 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
4385 | mv "conftest.tmp" "conftest.in"
|
---|
4386 | cp "conftest.in" "conftest.nl"
|
---|
4387 | $as_echo 'EGREP' >> "conftest.nl"
|
---|
4388 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
4389 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
4390 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
4391 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
---|
4392 | # Best one so far, save it but keep looking for a better one
|
---|
4393 | ac_cv_path_EGREP="$ac_path_EGREP"
|
---|
4394 | ac_path_EGREP_max=$ac_count
|
---|
4395 | fi
|
---|
4396 | # 10*(2^10) chars as input seems more than enough
|
---|
4397 | test $ac_count -gt 10 && break
|
---|
4398 | done
|
---|
4399 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
4400 | esac
|
---|
4401 |
|
---|
4402 | $ac_path_EGREP_found && break 3
|
---|
4403 | done
|
---|
4404 | done
|
---|
4405 | done
|
---|
4406 | IFS=$as_save_IFS
|
---|
4407 | if test -z "$ac_cv_path_EGREP"; then
|
---|
4408 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
4409 | fi
|
---|
4410 | else
|
---|
4411 | ac_cv_path_EGREP=$EGREP
|
---|
4412 | fi
|
---|
4413 |
|
---|
4414 | fi
|
---|
4415 | fi
|
---|
4416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
|
---|
4417 | $as_echo "$ac_cv_path_EGREP" >&6; }
|
---|
4418 | EGREP="$ac_cv_path_EGREP"
|
---|
4419 |
|
---|
4420 |
|
---|
4421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
|
---|
4422 | $as_echo_n "checking for fgrep... " >&6; }
|
---|
4423 | if ${ac_cv_path_FGREP+:} false; then :
|
---|
4424 | $as_echo_n "(cached) " >&6
|
---|
4425 | else
|
---|
4426 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
|
---|
4427 | then ac_cv_path_FGREP="$GREP -F"
|
---|
4428 | else
|
---|
4429 | if test -z "$FGREP"; then
|
---|
4430 | ac_path_FGREP_found=false
|
---|
4431 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
4432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4433 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
4434 | do
|
---|
4435 | IFS=$as_save_IFS
|
---|
4436 | test -z "$as_dir" && as_dir=.
|
---|
4437 | for ac_prog in fgrep; do
|
---|
4438 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4439 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
4440 | as_fn_executable_p "$ac_path_FGREP" || continue
|
---|
4441 | # Check for GNU ac_path_FGREP and select it if it is found.
|
---|
4442 | # Check for GNU $ac_path_FGREP
|
---|
4443 | case `"$ac_path_FGREP" --version 2>&1` in
|
---|
4444 | *GNU*)
|
---|
4445 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
|
---|
4446 | *)
|
---|
4447 | ac_count=0
|
---|
4448 | $as_echo_n 0123456789 >"conftest.in"
|
---|
4449 | while :
|
---|
4450 | do
|
---|
4451 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
4452 | mv "conftest.tmp" "conftest.in"
|
---|
4453 | cp "conftest.in" "conftest.nl"
|
---|
4454 | $as_echo 'FGREP' >> "conftest.nl"
|
---|
4455 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
4456 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
4457 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
4458 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then
|
---|
4459 | # Best one so far, save it but keep looking for a better one
|
---|
4460 | ac_cv_path_FGREP="$ac_path_FGREP"
|
---|
4461 | ac_path_FGREP_max=$ac_count
|
---|
4462 | fi
|
---|
4463 | # 10*(2^10) chars as input seems more than enough
|
---|
4464 | test $ac_count -gt 10 && break
|
---|
4465 | done
|
---|
4466 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
4467 | esac
|
---|
4468 |
|
---|
4469 | $ac_path_FGREP_found && break 3
|
---|
4470 | done
|
---|
4471 | done
|
---|
4472 | done
|
---|
4473 | IFS=$as_save_IFS
|
---|
4474 | if test -z "$ac_cv_path_FGREP"; then
|
---|
4475 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
4476 | fi
|
---|
4477 | else
|
---|
4478 | ac_cv_path_FGREP=$FGREP
|
---|
4479 | fi
|
---|
4480 |
|
---|
4481 | fi
|
---|
4482 | fi
|
---|
4483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
|
---|
4484 | $as_echo "$ac_cv_path_FGREP" >&6; }
|
---|
4485 | FGREP="$ac_cv_path_FGREP"
|
---|
4486 |
|
---|
4487 |
|
---|
4488 | test -z "$GREP" && GREP=grep
|
---|
4489 |
|
---|
4490 |
|
---|
4491 |
|
---|
4492 |
|
---|
4493 |
|
---|
4494 |
|
---|
4495 |
|
---|
4496 |
|
---|
4497 |
|
---|
4498 |
|
---|
4499 |
|
---|
4500 |
|
---|
4501 |
|
---|
4502 |
|
---|
4503 |
|
---|
4504 |
|
---|
4505 |
|
---|
4506 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
4507 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
|
---|
4508 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
|
---|
4509 |
|
---|
4510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
|
---|
4511 | $as_echo_n "checking how to print strings... " >&6; }
|
---|
4512 | # Test print first, because it will be a builtin if present.
|
---|
4513 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
|
---|
4514 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
|
---|
4515 | ECHO='print -r --'
|
---|
4516 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
|
---|
4517 | ECHO='printf %s\n'
|
---|
4518 | else
|
---|
4519 | # Use this function as a fallback that always works.
|
---|
4520 | func_fallback_echo ()
|
---|
4521 | {
|
---|
4522 | eval 'cat <<_LTECHO_EOF
|
---|
4523 | $1
|
---|
4524 | _LTECHO_EOF'
|
---|
4525 | }
|
---|
4526 | ECHO='func_fallback_echo'
|
---|
4527 | fi
|
---|
4528 |
|
---|
4529 | # func_echo_all arg...
|
---|
4530 | # Invoke $ECHO with all args, space-separated.
|
---|
4531 | func_echo_all ()
|
---|
4532 | {
|
---|
4533 | $ECHO ""
|
---|
4534 | }
|
---|
4535 |
|
---|
4536 | case $ECHO in
|
---|
4537 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
|
---|
4538 | $as_echo "printf" >&6; } ;;
|
---|
4539 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
|
---|
4540 | $as_echo "print -r" >&6; } ;;
|
---|
4541 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
|
---|
4542 | $as_echo "cat" >&6; } ;;
|
---|
4543 | esac
|
---|
4544 |
|
---|
4545 |
|
---|
4546 |
|
---|
4547 |
|
---|
4548 |
|
---|
4549 |
|
---|
4550 |
|
---|
4551 |
|
---|
4552 |
|
---|
4553 |
|
---|
4554 |
|
---|
4555 |
|
---|
4556 |
|
---|
4557 |
|
---|
4558 |
|
---|
4559 |
|
---|
4560 | # Check whether --with-gnu-ld was given.
|
---|
4561 | if test "${with_gnu_ld+set}" = set; then :
|
---|
4562 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
|
---|
4563 | else
|
---|
4564 | with_gnu_ld=no
|
---|
4565 | fi
|
---|
4566 |
|
---|
4567 | ac_prog=ld
|
---|
4568 | if test yes = "$GCC"; then
|
---|
4569 | # Check if gcc -print-prog-name=ld gives a path.
|
---|
4570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
|
---|
4571 | $as_echo_n "checking for ld used by $CC... " >&6; }
|
---|
4572 | case $host in
|
---|
4573 | *-*-mingw*)
|
---|
4574 | # gcc leaves a trailing carriage return, which upsets mingw
|
---|
4575 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
---|
4576 | *)
|
---|
4577 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
---|
4578 | esac
|
---|
4579 | case $ac_prog in
|
---|
4580 | # Accept absolute paths.
|
---|
4581 | [\\/]* | ?:[\\/]*)
|
---|
4582 | re_direlt='/[^/][^/]*/\.\./'
|
---|
4583 | # Canonicalize the pathname of ld
|
---|
4584 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
|
---|
4585 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
|
---|
4586 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
|
---|
4587 | done
|
---|
4588 | test -z "$LD" && LD=$ac_prog
|
---|
4589 | ;;
|
---|
4590 | "")
|
---|
4591 | # If it fails, then pretend we aren't using GCC.
|
---|
4592 | ac_prog=ld
|
---|
4593 | ;;
|
---|
4594 | *)
|
---|
4595 | # If it is relative, then search for the first ld in PATH.
|
---|
4596 | with_gnu_ld=unknown
|
---|
4597 | ;;
|
---|
4598 | esac
|
---|
4599 | elif test yes = "$with_gnu_ld"; then
|
---|
4600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
|
---|
4601 | $as_echo_n "checking for GNU ld... " >&6; }
|
---|
4602 | else
|
---|
4603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
|
---|
4604 | $as_echo_n "checking for non-GNU ld... " >&6; }
|
---|
4605 | fi
|
---|
4606 | if ${lt_cv_path_LD+:} false; then :
|
---|
4607 | $as_echo_n "(cached) " >&6
|
---|
4608 | else
|
---|
4609 | if test -z "$LD"; then
|
---|
4610 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
|
---|
4611 | for ac_dir in $PATH; do
|
---|
4612 | IFS=$lt_save_ifs
|
---|
4613 | test -z "$ac_dir" && ac_dir=.
|
---|
4614 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
---|
4615 | lt_cv_path_LD=$ac_dir/$ac_prog
|
---|
4616 | # Check to see if the program is GNU ld. I'd rather use --version,
|
---|
4617 | # but apparently some variants of GNU ld only accept -v.
|
---|
4618 | # Break only if it was the GNU/non-GNU ld that we prefer.
|
---|
4619 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
|
---|
4620 | *GNU* | *'with BFD'*)
|
---|
4621 | test no != "$with_gnu_ld" && break
|
---|
4622 | ;;
|
---|
4623 | *)
|
---|
4624 | test yes != "$with_gnu_ld" && break
|
---|
4625 | ;;
|
---|
4626 | esac
|
---|
4627 | fi
|
---|
4628 | done
|
---|
4629 | IFS=$lt_save_ifs
|
---|
4630 | else
|
---|
4631 | lt_cv_path_LD=$LD # Let the user override the test with a path.
|
---|
4632 | fi
|
---|
4633 | fi
|
---|
4634 |
|
---|
4635 | LD=$lt_cv_path_LD
|
---|
4636 | if test -n "$LD"; then
|
---|
4637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
|
---|
4638 | $as_echo "$LD" >&6; }
|
---|
4639 | else
|
---|
4640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4641 | $as_echo "no" >&6; }
|
---|
4642 | fi
|
---|
4643 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
|
---|
4644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
|
---|
4645 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
|
---|
4646 | if ${lt_cv_prog_gnu_ld+:} false; then :
|
---|
4647 | $as_echo_n "(cached) " >&6
|
---|
4648 | else
|
---|
4649 | # I'd rather use --version here, but apparently some GNU lds only accept -v.
|
---|
4650 | case `$LD -v 2>&1 </dev/null` in
|
---|
4651 | *GNU* | *'with BFD'*)
|
---|
4652 | lt_cv_prog_gnu_ld=yes
|
---|
4653 | ;;
|
---|
4654 | *)
|
---|
4655 | lt_cv_prog_gnu_ld=no
|
---|
4656 | ;;
|
---|
4657 | esac
|
---|
4658 | fi
|
---|
4659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
|
---|
4660 | $as_echo "$lt_cv_prog_gnu_ld" >&6; }
|
---|
4661 | with_gnu_ld=$lt_cv_prog_gnu_ld
|
---|
4662 |
|
---|
4663 |
|
---|
4664 |
|
---|
4665 |
|
---|
4666 |
|
---|
4667 |
|
---|
4668 |
|
---|
4669 |
|
---|
4670 |
|
---|
4671 | ac_ext=c
|
---|
4672 | ac_cpp='$CPP $CPPFLAGS'
|
---|
4673 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
4674 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
4675 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
4676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
|
---|
4677 | $as_echo_n "checking how to run the C preprocessor... " >&6; }
|
---|
4678 | # On Suns, sometimes $CPP names a directory.
|
---|
4679 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
4680 | CPP=
|
---|
4681 | fi
|
---|
4682 | if test -z "$CPP"; then
|
---|
4683 | if ${ac_cv_prog_CPP+:} false; then :
|
---|
4684 | $as_echo_n "(cached) " >&6
|
---|
4685 | else
|
---|
4686 | # Double quotes because CPP needs to be expanded
|
---|
4687 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
4688 | do
|
---|
4689 | ac_preproc_ok=false
|
---|
4690 | for ac_c_preproc_warn_flag in '' yes
|
---|
4691 | do
|
---|
4692 | # Use a header file that comes with gcc, so configuring glibc
|
---|
4693 | # with a fresh cross-compiler works.
|
---|
4694 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
4695 | # <limits.h> exists even on freestanding compilers.
|
---|
4696 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
4697 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
4698 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4699 | /* end confdefs.h. */
|
---|
4700 | #ifdef __STDC__
|
---|
4701 | # include <limits.h>
|
---|
4702 | #else
|
---|
4703 | # include <assert.h>
|
---|
4704 | #endif
|
---|
4705 | Syntax error
|
---|
4706 | _ACEOF
|
---|
4707 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
4708 |
|
---|
4709 | else
|
---|
4710 | # Broken: fails on valid input.
|
---|
4711 | continue
|
---|
4712 | fi
|
---|
4713 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
4714 |
|
---|
4715 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
4716 | # can be detected and how.
|
---|
4717 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4718 | /* end confdefs.h. */
|
---|
4719 | #include <ac_nonexistent.h>
|
---|
4720 | _ACEOF
|
---|
4721 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
4722 | # Broken: success on invalid input.
|
---|
4723 | continue
|
---|
4724 | else
|
---|
4725 | # Passes both tests.
|
---|
4726 | ac_preproc_ok=:
|
---|
4727 | break
|
---|
4728 | fi
|
---|
4729 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
4730 |
|
---|
4731 | done
|
---|
4732 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
4733 | rm -f conftest.i conftest.err conftest.$ac_ext
|
---|
4734 | if $ac_preproc_ok; then :
|
---|
4735 | break
|
---|
4736 | fi
|
---|
4737 |
|
---|
4738 | done
|
---|
4739 | ac_cv_prog_CPP=$CPP
|
---|
4740 |
|
---|
4741 | fi
|
---|
4742 | CPP=$ac_cv_prog_CPP
|
---|
4743 | else
|
---|
4744 | ac_cv_prog_CPP=$CPP
|
---|
4745 | fi
|
---|
4746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
|
---|
4747 | $as_echo "$CPP" >&6; }
|
---|
4748 | ac_preproc_ok=false
|
---|
4749 | for ac_c_preproc_warn_flag in '' yes
|
---|
4750 | do
|
---|
4751 | # Use a header file that comes with gcc, so configuring glibc
|
---|
4752 | # with a fresh cross-compiler works.
|
---|
4753 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
4754 | # <limits.h> exists even on freestanding compilers.
|
---|
4755 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
4756 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
4757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4758 | /* end confdefs.h. */
|
---|
4759 | #ifdef __STDC__
|
---|
4760 | # include <limits.h>
|
---|
4761 | #else
|
---|
4762 | # include <assert.h>
|
---|
4763 | #endif
|
---|
4764 | Syntax error
|
---|
4765 | _ACEOF
|
---|
4766 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
4767 |
|
---|
4768 | else
|
---|
4769 | # Broken: fails on valid input.
|
---|
4770 | continue
|
---|
4771 | fi
|
---|
4772 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
4773 |
|
---|
4774 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
4775 | # can be detected and how.
|
---|
4776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4777 | /* end confdefs.h. */
|
---|
4778 | #include <ac_nonexistent.h>
|
---|
4779 | _ACEOF
|
---|
4780 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
4781 | # Broken: success on invalid input.
|
---|
4782 | continue
|
---|
4783 | else
|
---|
4784 | # Passes both tests.
|
---|
4785 | ac_preproc_ok=:
|
---|
4786 | break
|
---|
4787 | fi
|
---|
4788 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
4789 |
|
---|
4790 | done
|
---|
4791 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
4792 | rm -f conftest.i conftest.err conftest.$ac_ext
|
---|
4793 | if $ac_preproc_ok; then :
|
---|
4794 |
|
---|
4795 | else
|
---|
4796 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
4797 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
4798 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
|
---|
4799 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
4800 | fi
|
---|
4801 |
|
---|
4802 | ac_ext=c
|
---|
4803 | ac_cpp='$CPP $CPPFLAGS'
|
---|
4804 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
4805 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
4806 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
4807 |
|
---|
4808 | for ac_prog in gawk mawk nawk awk
|
---|
4809 | do
|
---|
4810 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
4811 | set dummy $ac_prog; ac_word=$2
|
---|
4812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4813 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4814 | if ${ac_cv_prog_AWK+:} false; then :
|
---|
4815 | $as_echo_n "(cached) " >&6
|
---|
4816 | else
|
---|
4817 | if test -n "$AWK"; then
|
---|
4818 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
4819 | else
|
---|
4820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4821 | for as_dir in $PATH
|
---|
4822 | do
|
---|
4823 | IFS=$as_save_IFS
|
---|
4824 | test -z "$as_dir" && as_dir=.
|
---|
4825 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4826 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
4827 | ac_cv_prog_AWK="$ac_prog"
|
---|
4828 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4829 | break 2
|
---|
4830 | fi
|
---|
4831 | done
|
---|
4832 | done
|
---|
4833 | IFS=$as_save_IFS
|
---|
4834 |
|
---|
4835 | fi
|
---|
4836 | fi
|
---|
4837 | AWK=$ac_cv_prog_AWK
|
---|
4838 | if test -n "$AWK"; then
|
---|
4839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
|
---|
4840 | $as_echo "$AWK" >&6; }
|
---|
4841 | else
|
---|
4842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4843 | $as_echo "no" >&6; }
|
---|
4844 | fi
|
---|
4845 |
|
---|
4846 |
|
---|
4847 | test -n "$AWK" && break
|
---|
4848 | done
|
---|
4849 |
|
---|
4850 |
|
---|
4851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
|
---|
4852 | $as_echo_n "checking whether ln -s works... " >&6; }
|
---|
4853 | LN_S=$as_ln_s
|
---|
4854 | if test "$LN_S" = "ln -s"; then
|
---|
4855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
4856 | $as_echo "yes" >&6; }
|
---|
4857 | else
|
---|
4858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
|
---|
4859 | $as_echo "no, using $LN_S" >&6; }
|
---|
4860 | fi
|
---|
4861 |
|
---|
4862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
4863 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
|
---|
4864 | set x ${MAKE-make}
|
---|
4865 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
---|
4866 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
|
---|
4867 | $as_echo_n "(cached) " >&6
|
---|
4868 | else
|
---|
4869 | cat >conftest.make <<\_ACEOF
|
---|
4870 | SHELL = /bin/sh
|
---|
4871 | all:
|
---|
4872 | @echo '@@@%%%=$(MAKE)=@@@%%%'
|
---|
4873 | _ACEOF
|
---|
4874 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
|
---|
4875 | case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
---|
4876 | *@@@%%%=?*=@@@%%%*)
|
---|
4877 | eval ac_cv_prog_make_${ac_make}_set=yes;;
|
---|
4878 | *)
|
---|
4879 | eval ac_cv_prog_make_${ac_make}_set=no;;
|
---|
4880 | esac
|
---|
4881 | rm -f conftest.make
|
---|
4882 | fi
|
---|
4883 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
---|
4884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
4885 | $as_echo "yes" >&6; }
|
---|
4886 | SET_MAKE=
|
---|
4887 | else
|
---|
4888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4889 | $as_echo "no" >&6; }
|
---|
4890 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
4891 | fi
|
---|
4892 |
|
---|
4893 |
|
---|
4894 | case `pwd` in
|
---|
4895 | *\ * | *\ *)
|
---|
4896 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
|
---|
4897 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
|
---|
4898 | esac
|
---|
4899 |
|
---|
4900 |
|
---|
4901 |
|
---|
4902 | macro_version='2.4.6'
|
---|
4903 | macro_revision='2.4.6'
|
---|
4904 |
|
---|
4905 |
|
---|
4906 |
|
---|
4907 |
|
---|
4908 |
|
---|
4909 |
|
---|
4910 |
|
---|
4911 |
|
---|
4912 |
|
---|
4913 |
|
---|
4914 |
|
---|
4915 |
|
---|
4916 |
|
---|
4917 | ltmain=$ac_aux_dir/ltmain.sh
|
---|
4918 |
|
---|
4919 | # Backslashify metacharacters that are still active within
|
---|
4920 | # double-quoted strings.
|
---|
4921 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
|
---|
4922 |
|
---|
4923 | # Same as above, but do not quote variable references.
|
---|
4924 | double_quote_subst='s/\(["`\\]\)/\\\1/g'
|
---|
4925 |
|
---|
4926 | # Sed substitution to delay expansion of an escaped shell variable in a
|
---|
4927 | # double_quote_subst'ed string.
|
---|
4928 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
|
---|
4929 |
|
---|
4930 | # Sed substitution to delay expansion of an escaped single quote.
|
---|
4931 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
|
---|
4932 |
|
---|
4933 | # Sed substitution to avoid accidental globbing in evaled expressions
|
---|
4934 | no_glob_subst='s/\*/\\\*/g'
|
---|
4935 |
|
---|
4936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
|
---|
4937 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
|
---|
4938 | if ${lt_cv_path_NM+:} false; then :
|
---|
4939 | $as_echo_n "(cached) " >&6
|
---|
4940 | else
|
---|
4941 | if test -n "$NM"; then
|
---|
4942 | # Let the user override the test.
|
---|
4943 | lt_cv_path_NM=$NM
|
---|
4944 | else
|
---|
4945 | lt_nm_to_check=${ac_tool_prefix}nm
|
---|
4946 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
|
---|
4947 | lt_nm_to_check="$lt_nm_to_check nm"
|
---|
4948 | fi
|
---|
4949 | for lt_tmp_nm in $lt_nm_to_check; do
|
---|
4950 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
|
---|
4951 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
|
---|
4952 | IFS=$lt_save_ifs
|
---|
4953 | test -z "$ac_dir" && ac_dir=.
|
---|
4954 | tmp_nm=$ac_dir/$lt_tmp_nm
|
---|
4955 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
|
---|
4956 | # Check to see if the nm accepts a BSD-compat flag.
|
---|
4957 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
|
---|
4958 | # nm: unknown option "B" ignored
|
---|
4959 | # Tru64's nm complains that /dev/null is an invalid object file
|
---|
4960 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
|
---|
4961 | case $build_os in
|
---|
4962 | mingw*) lt_bad_file=conftest.nm/nofile ;;
|
---|
4963 | *) lt_bad_file=/dev/null ;;
|
---|
4964 | esac
|
---|
4965 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
|
---|
4966 | *$lt_bad_file* | *'Invalid file or object type'*)
|
---|
4967 | lt_cv_path_NM="$tmp_nm -B"
|
---|
4968 | break 2
|
---|
4969 | ;;
|
---|
4970 | *)
|
---|
4971 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
|
---|
4972 | */dev/null*)
|
---|
4973 | lt_cv_path_NM="$tmp_nm -p"
|
---|
4974 | break 2
|
---|
4975 | ;;
|
---|
4976 | *)
|
---|
4977 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
---|
4978 | continue # so that we can try to find one that supports BSD flags
|
---|
4979 | ;;
|
---|
4980 | esac
|
---|
4981 | ;;
|
---|
4982 | esac
|
---|
4983 | fi
|
---|
4984 | done
|
---|
4985 | IFS=$lt_save_ifs
|
---|
4986 | done
|
---|
4987 | : ${lt_cv_path_NM=no}
|
---|
4988 | fi
|
---|
4989 | fi
|
---|
4990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
|
---|
4991 | $as_echo "$lt_cv_path_NM" >&6; }
|
---|
4992 | if test no != "$lt_cv_path_NM"; then
|
---|
4993 | NM=$lt_cv_path_NM
|
---|
4994 | else
|
---|
4995 | # Didn't find any BSD compatible name lister, look for dumpbin.
|
---|
4996 | if test -n "$DUMPBIN"; then :
|
---|
4997 | # Let the user override the test.
|
---|
4998 | else
|
---|
4999 | if test -n "$ac_tool_prefix"; then
|
---|
5000 | for ac_prog in dumpbin "link -dump"
|
---|
5001 | do
|
---|
5002 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
5003 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
5004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
5005 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
5006 | if ${ac_cv_prog_DUMPBIN+:} false; then :
|
---|
5007 | $as_echo_n "(cached) " >&6
|
---|
5008 | else
|
---|
5009 | if test -n "$DUMPBIN"; then
|
---|
5010 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
|
---|
5011 | else
|
---|
5012 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5013 | for as_dir in $PATH
|
---|
5014 | do
|
---|
5015 | IFS=$as_save_IFS
|
---|
5016 | test -z "$as_dir" && as_dir=.
|
---|
5017 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5018 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
5019 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
|
---|
5020 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
5021 | break 2
|
---|
5022 | fi
|
---|
5023 | done
|
---|
5024 | done
|
---|
5025 | IFS=$as_save_IFS
|
---|
5026 |
|
---|
5027 | fi
|
---|
5028 | fi
|
---|
5029 | DUMPBIN=$ac_cv_prog_DUMPBIN
|
---|
5030 | if test -n "$DUMPBIN"; then
|
---|
5031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
|
---|
5032 | $as_echo "$DUMPBIN" >&6; }
|
---|
5033 | else
|
---|
5034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5035 | $as_echo "no" >&6; }
|
---|
5036 | fi
|
---|
5037 |
|
---|
5038 |
|
---|
5039 | test -n "$DUMPBIN" && break
|
---|
5040 | done
|
---|
5041 | fi
|
---|
5042 | if test -z "$DUMPBIN"; then
|
---|
5043 | ac_ct_DUMPBIN=$DUMPBIN
|
---|
5044 | for ac_prog in dumpbin "link -dump"
|
---|
5045 | do
|
---|
5046 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
5047 | set dummy $ac_prog; ac_word=$2
|
---|
5048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
5049 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
5050 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
|
---|
5051 | $as_echo_n "(cached) " >&6
|
---|
5052 | else
|
---|
5053 | if test -n "$ac_ct_DUMPBIN"; then
|
---|
5054 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
|
---|
5055 | else
|
---|
5056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5057 | for as_dir in $PATH
|
---|
5058 | do
|
---|
5059 | IFS=$as_save_IFS
|
---|
5060 | test -z "$as_dir" && as_dir=.
|
---|
5061 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5062 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
5063 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
|
---|
5064 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
5065 | break 2
|
---|
5066 | fi
|
---|
5067 | done
|
---|
5068 | done
|
---|
5069 | IFS=$as_save_IFS
|
---|
5070 |
|
---|
5071 | fi
|
---|
5072 | fi
|
---|
5073 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
|
---|
5074 | if test -n "$ac_ct_DUMPBIN"; then
|
---|
5075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
|
---|
5076 | $as_echo "$ac_ct_DUMPBIN" >&6; }
|
---|
5077 | else
|
---|
5078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5079 | $as_echo "no" >&6; }
|
---|
5080 | fi
|
---|
5081 |
|
---|
5082 |
|
---|
5083 | test -n "$ac_ct_DUMPBIN" && break
|
---|
5084 | done
|
---|
5085 |
|
---|
5086 | if test "x$ac_ct_DUMPBIN" = x; then
|
---|
5087 | DUMPBIN=":"
|
---|
5088 | else
|
---|
5089 | case $cross_compiling:$ac_tool_warned in
|
---|
5090 | yes:)
|
---|
5091 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
5092 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
5093 | ac_tool_warned=yes ;;
|
---|
5094 | esac
|
---|
5095 | DUMPBIN=$ac_ct_DUMPBIN
|
---|
5096 | fi
|
---|
5097 | fi
|
---|
5098 |
|
---|
5099 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
|
---|
5100 | *COFF*)
|
---|
5101 | DUMPBIN="$DUMPBIN -symbols -headers"
|
---|
5102 | ;;
|
---|
5103 | *)
|
---|
5104 | DUMPBIN=:
|
---|
5105 | ;;
|
---|
5106 | esac
|
---|
5107 | fi
|
---|
5108 |
|
---|
5109 | if test : != "$DUMPBIN"; then
|
---|
5110 | NM=$DUMPBIN
|
---|
5111 | fi
|
---|
5112 | fi
|
---|
5113 | test -z "$NM" && NM=nm
|
---|
5114 |
|
---|
5115 |
|
---|
5116 |
|
---|
5117 |
|
---|
5118 |
|
---|
5119 |
|
---|
5120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
|
---|
5121 | $as_echo_n "checking the name lister ($NM) interface... " >&6; }
|
---|
5122 | if ${lt_cv_nm_interface+:} false; then :
|
---|
5123 | $as_echo_n "(cached) " >&6
|
---|
5124 | else
|
---|
5125 | lt_cv_nm_interface="BSD nm"
|
---|
5126 | echo "int some_variable = 0;" > conftest.$ac_ext
|
---|
5127 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
|
---|
5128 | (eval "$ac_compile" 2>conftest.err)
|
---|
5129 | cat conftest.err >&5
|
---|
5130 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
|
---|
5131 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
|
---|
5132 | cat conftest.err >&5
|
---|
5133 | (eval echo "\"\$as_me:$LINENO: output\"" >&5)
|
---|
5134 | cat conftest.out >&5
|
---|
5135 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then
|
---|
5136 | lt_cv_nm_interface="MS dumpbin"
|
---|
5137 | fi
|
---|
5138 | rm -f conftest*
|
---|
5139 | fi
|
---|
5140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
|
---|
5141 | $as_echo "$lt_cv_nm_interface" >&6; }
|
---|
5142 |
|
---|
5143 | # find the maximum length of command line arguments
|
---|
5144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
|
---|
5145 | $as_echo_n "checking the maximum length of command line arguments... " >&6; }
|
---|
5146 | if ${lt_cv_sys_max_cmd_len+:} false; then :
|
---|
5147 | $as_echo_n "(cached) " >&6
|
---|
5148 | else
|
---|
5149 | i=0
|
---|
5150 | teststring=ABCD
|
---|
5151 |
|
---|
5152 | case $build_os in
|
---|
5153 | msdosdjgpp*)
|
---|
5154 | # On DJGPP, this test can blow up pretty badly due to problems in libc
|
---|
5155 | # (any single argument exceeding 2000 bytes causes a buffer overrun
|
---|
5156 | # during glob expansion). Even if it were fixed, the result of this
|
---|
5157 | # check would be larger than it should be.
|
---|
5158 | lt_cv_sys_max_cmd_len=12288; # 12K is about right
|
---|
5159 | ;;
|
---|
5160 |
|
---|
5161 | gnu*)
|
---|
5162 | # Under GNU Hurd, this test is not required because there is
|
---|
5163 | # no limit to the length of command line arguments.
|
---|
5164 | # Libtool will interpret -1 as no limit whatsoever
|
---|
5165 | lt_cv_sys_max_cmd_len=-1;
|
---|
5166 | ;;
|
---|
5167 |
|
---|
5168 | cygwin* | mingw* | cegcc*)
|
---|
5169 | # On Win9x/ME, this test blows up -- it succeeds, but takes
|
---|
5170 | # about 5 minutes as the teststring grows exponentially.
|
---|
5171 | # Worse, since 9x/ME are not pre-emptively multitasking,
|
---|
5172 | # you end up with a "frozen" computer, even though with patience
|
---|
5173 | # the test eventually succeeds (with a max line length of 256k).
|
---|
5174 | # Instead, let's just punt: use the minimum linelength reported by
|
---|
5175 | # all of the supported platforms: 8192 (on NT/2K/XP).
|
---|
5176 | lt_cv_sys_max_cmd_len=8192;
|
---|
5177 | ;;
|
---|
5178 |
|
---|
5179 | mint*)
|
---|
5180 | # On MiNT this can take a long time and run out of memory.
|
---|
5181 | lt_cv_sys_max_cmd_len=8192;
|
---|
5182 | ;;
|
---|
5183 |
|
---|
5184 | amigaos*)
|
---|
5185 | # On AmigaOS with pdksh, this test takes hours, literally.
|
---|
5186 | # So we just punt and use a minimum line length of 8192.
|
---|
5187 | lt_cv_sys_max_cmd_len=8192;
|
---|
5188 | ;;
|
---|
5189 |
|
---|
5190 | bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
|
---|
5191 | # This has been around since 386BSD, at least. Likely further.
|
---|
5192 | if test -x /sbin/sysctl; then
|
---|
5193 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
|
---|
5194 | elif test -x /usr/sbin/sysctl; then
|
---|
5195 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
|
---|
5196 | else
|
---|
5197 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
|
---|
5198 | fi
|
---|
5199 | # And add a safety zone
|
---|
5200 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
---|
5201 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
---|
5202 | ;;
|
---|
5203 |
|
---|
5204 | interix*)
|
---|
5205 | # We know the value 262144 and hardcode it with a safety zone (like BSD)
|
---|
5206 | lt_cv_sys_max_cmd_len=196608
|
---|
5207 | ;;
|
---|
5208 |
|
---|
5209 | os2*)
|
---|
5210 | # The test takes a long time on OS/2.
|
---|
5211 | lt_cv_sys_max_cmd_len=8192
|
---|
5212 | ;;
|
---|
5213 |
|
---|
5214 | osf*)
|
---|
5215 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
|
---|
5216 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
|
---|
5217 | # nice to cause kernel panics so lets avoid the loop below.
|
---|
5218 | # First set a reasonable default.
|
---|
5219 | lt_cv_sys_max_cmd_len=16384
|
---|
5220 | #
|
---|
5221 | if test -x /sbin/sysconfig; then
|
---|
5222 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
|
---|
5223 | *1*) lt_cv_sys_max_cmd_len=-1 ;;
|
---|
5224 | esac
|
---|
5225 | fi
|
---|
5226 | ;;
|
---|
5227 | sco3.2v5*)
|
---|
5228 | lt_cv_sys_max_cmd_len=102400
|
---|
5229 | ;;
|
---|
5230 | sysv5* | sco5v6* | sysv4.2uw2*)
|
---|
5231 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
|
---|
5232 | if test -n "$kargmax"; then
|
---|
5233 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
|
---|
5234 | else
|
---|
5235 | lt_cv_sys_max_cmd_len=32768
|
---|
5236 | fi
|
---|
5237 | ;;
|
---|
5238 | *)
|
---|
5239 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
|
---|
5240 | if test -n "$lt_cv_sys_max_cmd_len" && \
|
---|
5241 | test undefined != "$lt_cv_sys_max_cmd_len"; then
|
---|
5242 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
---|
5243 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
---|
5244 | else
|
---|
5245 | # Make teststring a little bigger before we do anything with it.
|
---|
5246 | # a 1K string should be a reasonable start.
|
---|
5247 | for i in 1 2 3 4 5 6 7 8; do
|
---|
5248 | teststring=$teststring$teststring
|
---|
5249 | done
|
---|
5250 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
|
---|
5251 | # If test is not a shell built-in, we'll probably end up computing a
|
---|
5252 | # maximum length that is only half of the actual maximum length, but
|
---|
5253 | # we can't tell.
|
---|
5254 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \
|
---|
5255 | = "X$teststring$teststring"; } >/dev/null 2>&1 &&
|
---|
5256 | test 17 != "$i" # 1/2 MB should be enough
|
---|
5257 | do
|
---|
5258 | i=`expr $i + 1`
|
---|
5259 | teststring=$teststring$teststring
|
---|
5260 | done
|
---|
5261 | # Only check the string length outside the loop.
|
---|
5262 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
|
---|
5263 | teststring=
|
---|
5264 | # Add a significant safety factor because C++ compilers can tack on
|
---|
5265 | # massive amounts of additional arguments before passing them to the
|
---|
5266 | # linker. It appears as though 1/2 is a usable value.
|
---|
5267 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
|
---|
5268 | fi
|
---|
5269 | ;;
|
---|
5270 | esac
|
---|
5271 |
|
---|
5272 | fi
|
---|
5273 |
|
---|
5274 | if test -n "$lt_cv_sys_max_cmd_len"; then
|
---|
5275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
|
---|
5276 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
|
---|
5277 | else
|
---|
5278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
|
---|
5279 | $as_echo "none" >&6; }
|
---|
5280 | fi
|
---|
5281 | max_cmd_len=$lt_cv_sys_max_cmd_len
|
---|
5282 |
|
---|
5283 |
|
---|
5284 |
|
---|
5285 |
|
---|
5286 |
|
---|
5287 |
|
---|
5288 | : ${CP="cp -f"}
|
---|
5289 | : ${MV="mv -f"}
|
---|
5290 | : ${RM="rm -f"}
|
---|
5291 |
|
---|
5292 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
5293 | lt_unset=unset
|
---|
5294 | else
|
---|
5295 | lt_unset=false
|
---|
5296 | fi
|
---|
5297 |
|
---|
5298 |
|
---|
5299 |
|
---|
5300 |
|
---|
5301 |
|
---|
5302 | # test EBCDIC or ASCII
|
---|
5303 | case `echo X|tr X '\101'` in
|
---|
5304 | A) # ASCII based system
|
---|
5305 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
|
---|
5306 | lt_SP2NL='tr \040 \012'
|
---|
5307 | lt_NL2SP='tr \015\012 \040\040'
|
---|
5308 | ;;
|
---|
5309 | *) # EBCDIC based system
|
---|
5310 | lt_SP2NL='tr \100 \n'
|
---|
5311 | lt_NL2SP='tr \r\n \100\100'
|
---|
5312 | ;;
|
---|
5313 | esac
|
---|
5314 |
|
---|
5315 |
|
---|
5316 |
|
---|
5317 |
|
---|
5318 |
|
---|
5319 |
|
---|
5320 |
|
---|
5321 |
|
---|
5322 |
|
---|
5323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
|
---|
5324 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
|
---|
5325 | if ${lt_cv_to_host_file_cmd+:} false; then :
|
---|
5326 | $as_echo_n "(cached) " >&6
|
---|
5327 | else
|
---|
5328 | case $host in
|
---|
5329 | *-*-mingw* )
|
---|
5330 | case $build in
|
---|
5331 | *-*-mingw* ) # actually msys
|
---|
5332 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
|
---|
5333 | ;;
|
---|
5334 | *-*-cygwin* )
|
---|
5335 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
|
---|
5336 | ;;
|
---|
5337 | * ) # otherwise, assume *nix
|
---|
5338 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
|
---|
5339 | ;;
|
---|
5340 | esac
|
---|
5341 | ;;
|
---|
5342 | *-*-cygwin* )
|
---|
5343 | case $build in
|
---|
5344 | *-*-mingw* ) # actually msys
|
---|
5345 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
|
---|
5346 | ;;
|
---|
5347 | *-*-cygwin* )
|
---|
5348 | lt_cv_to_host_file_cmd=func_convert_file_noop
|
---|
5349 | ;;
|
---|
5350 | * ) # otherwise, assume *nix
|
---|
5351 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
|
---|
5352 | ;;
|
---|
5353 | esac
|
---|
5354 | ;;
|
---|
5355 | * ) # unhandled hosts (and "normal" native builds)
|
---|
5356 | lt_cv_to_host_file_cmd=func_convert_file_noop
|
---|
5357 | ;;
|
---|
5358 | esac
|
---|
5359 |
|
---|
5360 | fi
|
---|
5361 |
|
---|
5362 | to_host_file_cmd=$lt_cv_to_host_file_cmd
|
---|
5363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
|
---|
5364 | $as_echo "$lt_cv_to_host_file_cmd" >&6; }
|
---|
5365 |
|
---|
5366 |
|
---|
5367 |
|
---|
5368 |
|
---|
5369 |
|
---|
5370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
|
---|
5371 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
|
---|
5372 | if ${lt_cv_to_tool_file_cmd+:} false; then :
|
---|
5373 | $as_echo_n "(cached) " >&6
|
---|
5374 | else
|
---|
5375 | #assume ordinary cross tools, or native build.
|
---|
5376 | lt_cv_to_tool_file_cmd=func_convert_file_noop
|
---|
5377 | case $host in
|
---|
5378 | *-*-mingw* )
|
---|
5379 | case $build in
|
---|
5380 | *-*-mingw* ) # actually msys
|
---|
5381 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
|
---|
5382 | ;;
|
---|
5383 | esac
|
---|
5384 | ;;
|
---|
5385 | esac
|
---|
5386 |
|
---|
5387 | fi
|
---|
5388 |
|
---|
5389 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
---|
5390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
|
---|
5391 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
|
---|
5392 |
|
---|
5393 |
|
---|
5394 |
|
---|
5395 |
|
---|
5396 |
|
---|
5397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
|
---|
5398 | $as_echo_n "checking for $LD option to reload object files... " >&6; }
|
---|
5399 | if ${lt_cv_ld_reload_flag+:} false; then :
|
---|
5400 | $as_echo_n "(cached) " >&6
|
---|
5401 | else
|
---|
5402 | lt_cv_ld_reload_flag='-r'
|
---|
5403 | fi
|
---|
5404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
|
---|
5405 | $as_echo "$lt_cv_ld_reload_flag" >&6; }
|
---|
5406 | reload_flag=$lt_cv_ld_reload_flag
|
---|
5407 | case $reload_flag in
|
---|
5408 | "" | " "*) ;;
|
---|
5409 | *) reload_flag=" $reload_flag" ;;
|
---|
5410 | esac
|
---|
5411 | reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
---|
5412 | case $host_os in
|
---|
5413 | cygwin* | mingw* | pw32* | cegcc*)
|
---|
5414 | if test yes != "$GCC"; then
|
---|
5415 | reload_cmds=false
|
---|
5416 | fi
|
---|
5417 | ;;
|
---|
5418 | darwin*)
|
---|
5419 | if test yes = "$GCC"; then
|
---|
5420 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
|
---|
5421 | else
|
---|
5422 | reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
---|
5423 | fi
|
---|
5424 | ;;
|
---|
5425 | esac
|
---|
5426 |
|
---|
5427 |
|
---|
5428 |
|
---|
5429 |
|
---|
5430 |
|
---|
5431 |
|
---|
5432 |
|
---|
5433 |
|
---|
5434 |
|
---|
5435 | if test -n "$ac_tool_prefix"; then
|
---|
5436 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
|
---|
5437 | set dummy ${ac_tool_prefix}objdump; ac_word=$2
|
---|
5438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
5439 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
5440 | if ${ac_cv_prog_OBJDUMP+:} false; then :
|
---|
5441 | $as_echo_n "(cached) " >&6
|
---|
5442 | else
|
---|
5443 | if test -n "$OBJDUMP"; then
|
---|
5444 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
|
---|
5445 | else
|
---|
5446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5447 | for as_dir in $PATH
|
---|
5448 | do
|
---|
5449 | IFS=$as_save_IFS
|
---|
5450 | test -z "$as_dir" && as_dir=.
|
---|
5451 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5452 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
5453 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
|
---|
5454 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
5455 | break 2
|
---|
5456 | fi
|
---|
5457 | done
|
---|
5458 | done
|
---|
5459 | IFS=$as_save_IFS
|
---|
5460 |
|
---|
5461 | fi
|
---|
5462 | fi
|
---|
5463 | OBJDUMP=$ac_cv_prog_OBJDUMP
|
---|
5464 | if test -n "$OBJDUMP"; then
|
---|
5465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
|
---|
5466 | $as_echo "$OBJDUMP" >&6; }
|
---|
5467 | else
|
---|
5468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5469 | $as_echo "no" >&6; }
|
---|
5470 | fi
|
---|
5471 |
|
---|
5472 |
|
---|
5473 | fi
|
---|
5474 | if test -z "$ac_cv_prog_OBJDUMP"; then
|
---|
5475 | ac_ct_OBJDUMP=$OBJDUMP
|
---|
5476 | # Extract the first word of "objdump", so it can be a program name with args.
|
---|
5477 | set dummy objdump; ac_word=$2
|
---|
5478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
5479 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
5480 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
|
---|
5481 | $as_echo_n "(cached) " >&6
|
---|
5482 | else
|
---|
5483 | if test -n "$ac_ct_OBJDUMP"; then
|
---|
5484 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
|
---|
5485 | else
|
---|
5486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5487 | for as_dir in $PATH
|
---|
5488 | do
|
---|
5489 | IFS=$as_save_IFS
|
---|
5490 | test -z "$as_dir" && as_dir=.
|
---|
5491 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5492 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
5493 | ac_cv_prog_ac_ct_OBJDUMP="objdump"
|
---|
5494 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
5495 | break 2
|
---|
5496 | fi
|
---|
5497 | done
|
---|
5498 | done
|
---|
5499 | IFS=$as_save_IFS
|
---|
5500 |
|
---|
5501 | fi
|
---|
5502 | fi
|
---|
5503 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
|
---|
5504 | if test -n "$ac_ct_OBJDUMP"; then
|
---|
5505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
|
---|
5506 | $as_echo "$ac_ct_OBJDUMP" >&6; }
|
---|
5507 | else
|
---|
5508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5509 | $as_echo "no" >&6; }
|
---|
5510 | fi
|
---|
5511 |
|
---|
5512 | if test "x$ac_ct_OBJDUMP" = x; then
|
---|
5513 | OBJDUMP="false"
|
---|
5514 | else
|
---|
5515 | case $cross_compiling:$ac_tool_warned in
|
---|
5516 | yes:)
|
---|
5517 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
5518 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
5519 | ac_tool_warned=yes ;;
|
---|
5520 | esac
|
---|
5521 | OBJDUMP=$ac_ct_OBJDUMP
|
---|
5522 | fi
|
---|
5523 | else
|
---|
5524 | OBJDUMP="$ac_cv_prog_OBJDUMP"
|
---|
5525 | fi
|
---|
5526 |
|
---|
5527 | test -z "$OBJDUMP" && OBJDUMP=objdump
|
---|
5528 |
|
---|
5529 |
|
---|
5530 |
|
---|
5531 |
|
---|
5532 |
|
---|
5533 |
|
---|
5534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
|
---|
5535 | $as_echo_n "checking how to recognize dependent libraries... " >&6; }
|
---|
5536 | if ${lt_cv_deplibs_check_method+:} false; then :
|
---|
5537 | $as_echo_n "(cached) " >&6
|
---|
5538 | else
|
---|
5539 | lt_cv_file_magic_cmd='$MAGIC_CMD'
|
---|
5540 | lt_cv_file_magic_test_file=
|
---|
5541 | lt_cv_deplibs_check_method='unknown'
|
---|
5542 | # Need to set the preceding variable on all platforms that support
|
---|
5543 | # interlibrary dependencies.
|
---|
5544 | # 'none' -- dependencies not supported.
|
---|
5545 | # 'unknown' -- same as none, but documents that we really don't know.
|
---|
5546 | # 'pass_all' -- all dependencies passed with no checks.
|
---|
5547 | # 'test_compile' -- check by making test program.
|
---|
5548 | # 'file_magic [[regex]]' -- check by looking for files in library path
|
---|
5549 | # that responds to the $file_magic_cmd with a given extended regex.
|
---|
5550 | # If you have 'file' or equivalent on your system and you're not sure
|
---|
5551 | # whether 'pass_all' will *always* work, you probably want this one.
|
---|
5552 |
|
---|
5553 | case $host_os in
|
---|
5554 | aix[4-9]*)
|
---|
5555 | lt_cv_deplibs_check_method=pass_all
|
---|
5556 | ;;
|
---|
5557 |
|
---|
5558 | beos*)
|
---|
5559 | lt_cv_deplibs_check_method=pass_all
|
---|
5560 | ;;
|
---|
5561 |
|
---|
5562 | bsdi[45]*)
|
---|
5563 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
---|
5564 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
---|
5565 | lt_cv_file_magic_test_file=/shlib/libc.so
|
---|
5566 | ;;
|
---|
5567 |
|
---|
5568 | cygwin*)
|
---|
5569 | # func_win32_libid is a shell function defined in ltmain.sh
|
---|
5570 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
---|
5571 | lt_cv_file_magic_cmd='func_win32_libid'
|
---|
5572 | ;;
|
---|
5573 |
|
---|
5574 | mingw* | pw32*)
|
---|
5575 | # Base MSYS/MinGW do not provide the 'file' command needed by
|
---|
5576 | # func_win32_libid shell function, so use a weaker test based on 'objdump',
|
---|
5577 | # unless we find 'file', for example because we are cross-compiling.
|
---|
5578 | if ( file / ) >/dev/null 2>&1; then
|
---|
5579 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
---|
5580 | lt_cv_file_magic_cmd='func_win32_libid'
|
---|
5581 | else
|
---|
5582 | # Keep this pattern in sync with the one in func_win32_libid.
|
---|
5583 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
|
---|
5584 | lt_cv_file_magic_cmd='$OBJDUMP -f'
|
---|
5585 | fi
|
---|
5586 | ;;
|
---|
5587 |
|
---|
5588 | cegcc*)
|
---|
5589 | # use the weaker test based on 'objdump'. See mingw*.
|
---|
5590 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
|
---|
5591 | lt_cv_file_magic_cmd='$OBJDUMP -f'
|
---|
5592 | ;;
|
---|
5593 |
|
---|
5594 | darwin* | rhapsody*)
|
---|
5595 | lt_cv_deplibs_check_method=pass_all
|
---|
5596 | ;;
|
---|
5597 |
|
---|
5598 | freebsd* | dragonfly*)
|
---|
5599 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
|
---|
5600 | case $host_cpu in
|
---|
5601 | i*86 )
|
---|
5602 | # Not sure whether the presence of OpenBSD here was a mistake.
|
---|
5603 | # Let's accept both of them until this is cleared up.
|
---|
5604 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
|
---|
5605 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
5606 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
---|
5607 | ;;
|
---|
5608 | esac
|
---|
5609 | else
|
---|
5610 | lt_cv_deplibs_check_method=pass_all
|
---|
5611 | fi
|
---|
5612 | ;;
|
---|
5613 |
|
---|
5614 | haiku*)
|
---|
5615 | lt_cv_deplibs_check_method=pass_all
|
---|
5616 | ;;
|
---|
5617 |
|
---|
5618 | hpux10.20* | hpux11*)
|
---|
5619 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
5620 | case $host_cpu in
|
---|
5621 | ia64*)
|
---|
5622 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
|
---|
5623 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
---|
5624 | ;;
|
---|
5625 | hppa*64*)
|
---|
5626 | 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]'
|
---|
5627 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
|
---|
5628 | ;;
|
---|
5629 | *)
|
---|
5630 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
|
---|
5631 | lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
---|
5632 | ;;
|
---|
5633 | esac
|
---|
5634 | ;;
|
---|
5635 |
|
---|
5636 | interix[3-9]*)
|
---|
5637 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
|
---|
5638 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
|
---|
5639 | ;;
|
---|
5640 |
|
---|
5641 | irix5* | irix6* | nonstopux*)
|
---|
5642 | case $LD in
|
---|
5643 | *-32|*"-32 ") libmagic=32-bit;;
|
---|
5644 | *-n32|*"-n32 ") libmagic=N32;;
|
---|
5645 | *-64|*"-64 ") libmagic=64-bit;;
|
---|
5646 | *) libmagic=never-match;;
|
---|
5647 | esac
|
---|
5648 | lt_cv_deplibs_check_method=pass_all
|
---|
5649 | ;;
|
---|
5650 |
|
---|
5651 | # This must be glibc/ELF.
|
---|
5652 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
|
---|
5653 | lt_cv_deplibs_check_method=pass_all
|
---|
5654 | ;;
|
---|
5655 |
|
---|
5656 | netbsd*)
|
---|
5657 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
|
---|
5658 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
|
---|
5659 | else
|
---|
5660 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
|
---|
5661 | fi
|
---|
5662 | ;;
|
---|
5663 |
|
---|
5664 | newos6*)
|
---|
5665 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
|
---|
5666 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
5667 | lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
---|
5668 | ;;
|
---|
5669 |
|
---|
5670 | *nto* | *qnx*)
|
---|
5671 | lt_cv_deplibs_check_method=pass_all
|
---|
5672 | ;;
|
---|
5673 |
|
---|
5674 | openbsd* | bitrig*)
|
---|
5675 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
|
---|
5676 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
|
---|
5677 | else
|
---|
5678 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
|
---|
5679 | fi
|
---|
5680 | ;;
|
---|
5681 |
|
---|
5682 | osf3* | osf4* | osf5*)
|
---|
5683 | lt_cv_deplibs_check_method=pass_all
|
---|
5684 | ;;
|
---|
5685 |
|
---|
5686 | rdos*)
|
---|
5687 | lt_cv_deplibs_check_method=pass_all
|
---|
5688 | ;;
|
---|
5689 |
|
---|
5690 | solaris*)
|
---|
5691 | lt_cv_deplibs_check_method=pass_all
|
---|
5692 | ;;
|
---|
5693 |
|
---|
5694 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
---|
5695 | lt_cv_deplibs_check_method=pass_all
|
---|
5696 | ;;
|
---|
5697 |
|
---|
5698 | sysv4 | sysv4.3*)
|
---|
5699 | case $host_vendor in
|
---|
5700 | motorola)
|
---|
5701 | 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]'
|
---|
5702 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
---|
5703 | ;;
|
---|
5704 | ncr)
|
---|
5705 | lt_cv_deplibs_check_method=pass_all
|
---|
5706 | ;;
|
---|
5707 | sequent)
|
---|
5708 | lt_cv_file_magic_cmd='/bin/file'
|
---|
5709 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
|
---|
5710 | ;;
|
---|
5711 | sni)
|
---|
5712 | lt_cv_file_magic_cmd='/bin/file'
|
---|
5713 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
|
---|
5714 | lt_cv_file_magic_test_file=/lib/libc.so
|
---|
5715 | ;;
|
---|
5716 | siemens)
|
---|
5717 | lt_cv_deplibs_check_method=pass_all
|
---|
5718 | ;;
|
---|
5719 | pc)
|
---|
5720 | lt_cv_deplibs_check_method=pass_all
|
---|
5721 | ;;
|
---|
5722 | esac
|
---|
5723 | ;;
|
---|
5724 |
|
---|
5725 | tpf*)
|
---|
5726 | lt_cv_deplibs_check_method=pass_all
|
---|
5727 | ;;
|
---|
5728 | os2*)
|
---|
5729 | lt_cv_deplibs_check_method=pass_all
|
---|
5730 | ;;
|
---|
5731 | esac
|
---|
5732 |
|
---|
5733 | fi
|
---|
5734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
|
---|
5735 | $as_echo "$lt_cv_deplibs_check_method" >&6; }
|
---|
5736 |
|
---|
5737 | file_magic_glob=
|
---|
5738 | want_nocaseglob=no
|
---|
5739 | if test "$build" = "$host"; then
|
---|
5740 | case $host_os in
|
---|
5741 | mingw* | pw32*)
|
---|
5742 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
|
---|
5743 | want_nocaseglob=yes
|
---|
5744 | else
|
---|
5745 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
|
---|
5746 | fi
|
---|
5747 | ;;
|
---|
5748 | esac
|
---|
5749 | fi
|
---|
5750 |
|
---|
5751 | file_magic_cmd=$lt_cv_file_magic_cmd
|
---|
5752 | deplibs_check_method=$lt_cv_deplibs_check_method
|
---|
5753 | test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
---|
5754 |
|
---|
5755 |
|
---|
5756 |
|
---|
5757 |
|
---|
5758 |
|
---|
5759 |
|
---|
5760 |
|
---|
5761 |
|
---|
5762 |
|
---|
5763 |
|
---|
5764 |
|
---|
5765 |
|
---|
5766 |
|
---|
5767 |
|
---|
5768 |
|
---|
5769 |
|
---|
5770 |
|
---|
5771 |
|
---|
5772 |
|
---|
5773 |
|
---|
5774 |
|
---|
5775 |
|
---|
5776 | if test -n "$ac_tool_prefix"; then
|
---|
5777 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
|
---|
5778 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2
|
---|
5779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
5780 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
5781 | if ${ac_cv_prog_DLLTOOL+:} false; then :
|
---|
5782 | $as_echo_n "(cached) " >&6
|
---|
5783 | else
|
---|
5784 | if test -n "$DLLTOOL"; then
|
---|
5785 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
|
---|
5786 | else
|
---|
5787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5788 | for as_dir in $PATH
|
---|
5789 | do
|
---|
5790 | IFS=$as_save_IFS
|
---|
5791 | test -z "$as_dir" && as_dir=.
|
---|
5792 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5793 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
5794 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
|
---|
5795 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
5796 | break 2
|
---|
5797 | fi
|
---|
5798 | done
|
---|
5799 | done
|
---|
5800 | IFS=$as_save_IFS
|
---|
5801 |
|
---|
5802 | fi
|
---|
5803 | fi
|
---|
5804 | DLLTOOL=$ac_cv_prog_DLLTOOL
|
---|
5805 | if test -n "$DLLTOOL"; then
|
---|
5806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
|
---|
5807 | $as_echo "$DLLTOOL" >&6; }
|
---|
5808 | else
|
---|
5809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5810 | $as_echo "no" >&6; }
|
---|
5811 | fi
|
---|
5812 |
|
---|
5813 |
|
---|
5814 | fi
|
---|
5815 | if test -z "$ac_cv_prog_DLLTOOL"; then
|
---|
5816 | ac_ct_DLLTOOL=$DLLTOOL
|
---|
5817 | # Extract the first word of "dlltool", so it can be a program name with args.
|
---|
5818 | set dummy dlltool; ac_word=$2
|
---|
5819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
5820 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
5821 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
|
---|
5822 | $as_echo_n "(cached) " >&6
|
---|
5823 | else
|
---|
5824 | if test -n "$ac_ct_DLLTOOL"; then
|
---|
5825 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
|
---|
5826 | else
|
---|
5827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5828 | for as_dir in $PATH
|
---|
5829 | do
|
---|
5830 | IFS=$as_save_IFS
|
---|
5831 | test -z "$as_dir" && as_dir=.
|
---|
5832 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5833 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
5834 | ac_cv_prog_ac_ct_DLLTOOL="dlltool"
|
---|
5835 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
5836 | break 2
|
---|
5837 | fi
|
---|
5838 | done
|
---|
5839 | done
|
---|
5840 | IFS=$as_save_IFS
|
---|
5841 |
|
---|
5842 | fi
|
---|
5843 | fi
|
---|
5844 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
|
---|
5845 | if test -n "$ac_ct_DLLTOOL"; then
|
---|
5846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
|
---|
5847 | $as_echo "$ac_ct_DLLTOOL" >&6; }
|
---|
5848 | else
|
---|
5849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5850 | $as_echo "no" >&6; }
|
---|
5851 | fi
|
---|
5852 |
|
---|
5853 | if test "x$ac_ct_DLLTOOL" = x; then
|
---|
5854 | DLLTOOL="false"
|
---|
5855 | else
|
---|
5856 | case $cross_compiling:$ac_tool_warned in
|
---|
5857 | yes:)
|
---|
5858 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
5859 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
5860 | ac_tool_warned=yes ;;
|
---|
5861 | esac
|
---|
5862 | DLLTOOL=$ac_ct_DLLTOOL
|
---|
5863 | fi
|
---|
5864 | else
|
---|
5865 | DLLTOOL="$ac_cv_prog_DLLTOOL"
|
---|
5866 | fi
|
---|
5867 |
|
---|
5868 | test -z "$DLLTOOL" && DLLTOOL=dlltool
|
---|
5869 |
|
---|
5870 |
|
---|
5871 |
|
---|
5872 |
|
---|
5873 |
|
---|
5874 |
|
---|
5875 |
|
---|
5876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
|
---|
5877 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
|
---|
5878 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
|
---|
5879 | $as_echo_n "(cached) " >&6
|
---|
5880 | else
|
---|
5881 | lt_cv_sharedlib_from_linklib_cmd='unknown'
|
---|
5882 |
|
---|
5883 | case $host_os in
|
---|
5884 | cygwin* | mingw* | pw32* | cegcc*)
|
---|
5885 | # two different shell functions defined in ltmain.sh;
|
---|
5886 | # decide which one to use based on capabilities of $DLLTOOL
|
---|
5887 | case `$DLLTOOL --help 2>&1` in
|
---|
5888 | *--identify-strict*)
|
---|
5889 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
|
---|
5890 | ;;
|
---|
5891 | *)
|
---|
5892 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
|
---|
5893 | ;;
|
---|
5894 | esac
|
---|
5895 | ;;
|
---|
5896 | *)
|
---|
5897 | # fallback: assume linklib IS sharedlib
|
---|
5898 | lt_cv_sharedlib_from_linklib_cmd=$ECHO
|
---|
5899 | ;;
|
---|
5900 | esac
|
---|
5901 |
|
---|
5902 | fi
|
---|
5903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
|
---|
5904 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
|
---|
5905 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
|
---|
5906 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
|
---|
5907 |
|
---|
5908 |
|
---|
5909 |
|
---|
5910 |
|
---|
5911 |
|
---|
5912 |
|
---|
5913 |
|
---|
5914 |
|
---|
5915 | if test -n "$ac_tool_prefix"; then
|
---|
5916 | for ac_prog in ar
|
---|
5917 | do
|
---|
5918 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
5919 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
5920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
5921 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
5922 | if ${ac_cv_prog_AR+:} false; then :
|
---|
5923 | $as_echo_n "(cached) " >&6
|
---|
5924 | else
|
---|
5925 | if test -n "$AR"; then
|
---|
5926 | ac_cv_prog_AR="$AR" # Let the user override the test.
|
---|
5927 | else
|
---|
5928 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5929 | for as_dir in $PATH
|
---|
5930 | do
|
---|
5931 | IFS=$as_save_IFS
|
---|
5932 | test -z "$as_dir" && as_dir=.
|
---|
5933 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5934 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
5935 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
|
---|
5936 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
5937 | break 2
|
---|
5938 | fi
|
---|
5939 | done
|
---|
5940 | done
|
---|
5941 | IFS=$as_save_IFS
|
---|
5942 |
|
---|
5943 | fi
|
---|
5944 | fi
|
---|
5945 | AR=$ac_cv_prog_AR
|
---|
5946 | if test -n "$AR"; then
|
---|
5947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
|
---|
5948 | $as_echo "$AR" >&6; }
|
---|
5949 | else
|
---|
5950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5951 | $as_echo "no" >&6; }
|
---|
5952 | fi
|
---|
5953 |
|
---|
5954 |
|
---|
5955 | test -n "$AR" && break
|
---|
5956 | done
|
---|
5957 | fi
|
---|
5958 | if test -z "$AR"; then
|
---|
5959 | ac_ct_AR=$AR
|
---|
5960 | for ac_prog in ar
|
---|
5961 | do
|
---|
5962 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
5963 | set dummy $ac_prog; ac_word=$2
|
---|
5964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
5965 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
5966 | if ${ac_cv_prog_ac_ct_AR+:} false; then :
|
---|
5967 | $as_echo_n "(cached) " >&6
|
---|
5968 | else
|
---|
5969 | if test -n "$ac_ct_AR"; then
|
---|
5970 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
|
---|
5971 | else
|
---|
5972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5973 | for as_dir in $PATH
|
---|
5974 | do
|
---|
5975 | IFS=$as_save_IFS
|
---|
5976 | test -z "$as_dir" && as_dir=.
|
---|
5977 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5978 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
5979 | ac_cv_prog_ac_ct_AR="$ac_prog"
|
---|
5980 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
5981 | break 2
|
---|
5982 | fi
|
---|
5983 | done
|
---|
5984 | done
|
---|
5985 | IFS=$as_save_IFS
|
---|
5986 |
|
---|
5987 | fi
|
---|
5988 | fi
|
---|
5989 | ac_ct_AR=$ac_cv_prog_ac_ct_AR
|
---|
5990 | if test -n "$ac_ct_AR"; then
|
---|
5991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
|
---|
5992 | $as_echo "$ac_ct_AR" >&6; }
|
---|
5993 | else
|
---|
5994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5995 | $as_echo "no" >&6; }
|
---|
5996 | fi
|
---|
5997 |
|
---|
5998 |
|
---|
5999 | test -n "$ac_ct_AR" && break
|
---|
6000 | done
|
---|
6001 |
|
---|
6002 | if test "x$ac_ct_AR" = x; then
|
---|
6003 | AR="false"
|
---|
6004 | else
|
---|
6005 | case $cross_compiling:$ac_tool_warned in
|
---|
6006 | yes:)
|
---|
6007 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
6008 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
6009 | ac_tool_warned=yes ;;
|
---|
6010 | esac
|
---|
6011 | AR=$ac_ct_AR
|
---|
6012 | fi
|
---|
6013 | fi
|
---|
6014 |
|
---|
6015 | : ${AR=ar}
|
---|
6016 | : ${AR_FLAGS=cru}
|
---|
6017 |
|
---|
6018 |
|
---|
6019 |
|
---|
6020 |
|
---|
6021 |
|
---|
6022 |
|
---|
6023 |
|
---|
6024 |
|
---|
6025 |
|
---|
6026 |
|
---|
6027 |
|
---|
6028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
|
---|
6029 | $as_echo_n "checking for archiver @FILE support... " >&6; }
|
---|
6030 | if ${lt_cv_ar_at_file+:} false; then :
|
---|
6031 | $as_echo_n "(cached) " >&6
|
---|
6032 | else
|
---|
6033 | lt_cv_ar_at_file=no
|
---|
6034 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6035 | /* end confdefs.h. */
|
---|
6036 |
|
---|
6037 | int
|
---|
6038 | main ()
|
---|
6039 | {
|
---|
6040 |
|
---|
6041 | ;
|
---|
6042 | return 0;
|
---|
6043 | }
|
---|
6044 | _ACEOF
|
---|
6045 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6046 | echo conftest.$ac_objext > conftest.lst
|
---|
6047 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
|
---|
6048 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
---|
6049 | (eval $lt_ar_try) 2>&5
|
---|
6050 | ac_status=$?
|
---|
6051 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
6052 | test $ac_status = 0; }
|
---|
6053 | if test 0 -eq "$ac_status"; then
|
---|
6054 | # Ensure the archiver fails upon bogus file names.
|
---|
6055 | rm -f conftest.$ac_objext libconftest.a
|
---|
6056 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
---|
6057 | (eval $lt_ar_try) 2>&5
|
---|
6058 | ac_status=$?
|
---|
6059 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
6060 | test $ac_status = 0; }
|
---|
6061 | if test 0 -ne "$ac_status"; then
|
---|
6062 | lt_cv_ar_at_file=@
|
---|
6063 | fi
|
---|
6064 | fi
|
---|
6065 | rm -f conftest.* libconftest.a
|
---|
6066 |
|
---|
6067 | fi
|
---|
6068 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6069 |
|
---|
6070 | fi
|
---|
6071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
|
---|
6072 | $as_echo "$lt_cv_ar_at_file" >&6; }
|
---|
6073 |
|
---|
6074 | if test no = "$lt_cv_ar_at_file"; then
|
---|
6075 | archiver_list_spec=
|
---|
6076 | else
|
---|
6077 | archiver_list_spec=$lt_cv_ar_at_file
|
---|
6078 | fi
|
---|
6079 |
|
---|
6080 |
|
---|
6081 |
|
---|
6082 |
|
---|
6083 |
|
---|
6084 |
|
---|
6085 |
|
---|
6086 | if test -n "$ac_tool_prefix"; then
|
---|
6087 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
---|
6088 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
---|
6089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
6090 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
6091 | if ${ac_cv_prog_STRIP+:} false; then :
|
---|
6092 | $as_echo_n "(cached) " >&6
|
---|
6093 | else
|
---|
6094 | if test -n "$STRIP"; then
|
---|
6095 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
6096 | else
|
---|
6097 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6098 | for as_dir in $PATH
|
---|
6099 | do
|
---|
6100 | IFS=$as_save_IFS
|
---|
6101 | test -z "$as_dir" && as_dir=.
|
---|
6102 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6103 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
6104 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
---|
6105 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
6106 | break 2
|
---|
6107 | fi
|
---|
6108 | done
|
---|
6109 | done
|
---|
6110 | IFS=$as_save_IFS
|
---|
6111 |
|
---|
6112 | fi
|
---|
6113 | fi
|
---|
6114 | STRIP=$ac_cv_prog_STRIP
|
---|
6115 | if test -n "$STRIP"; then
|
---|
6116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
|
---|
6117 | $as_echo "$STRIP" >&6; }
|
---|
6118 | else
|
---|
6119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6120 | $as_echo "no" >&6; }
|
---|
6121 | fi
|
---|
6122 |
|
---|
6123 |
|
---|
6124 | fi
|
---|
6125 | if test -z "$ac_cv_prog_STRIP"; then
|
---|
6126 | ac_ct_STRIP=$STRIP
|
---|
6127 | # Extract the first word of "strip", so it can be a program name with args.
|
---|
6128 | set dummy strip; ac_word=$2
|
---|
6129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
6130 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
6131 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
|
---|
6132 | $as_echo_n "(cached) " >&6
|
---|
6133 | else
|
---|
6134 | if test -n "$ac_ct_STRIP"; then
|
---|
6135 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
---|
6136 | else
|
---|
6137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6138 | for as_dir in $PATH
|
---|
6139 | do
|
---|
6140 | IFS=$as_save_IFS
|
---|
6141 | test -z "$as_dir" && as_dir=.
|
---|
6142 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6143 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
6144 | ac_cv_prog_ac_ct_STRIP="strip"
|
---|
6145 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
6146 | break 2
|
---|
6147 | fi
|
---|
6148 | done
|
---|
6149 | done
|
---|
6150 | IFS=$as_save_IFS
|
---|
6151 |
|
---|
6152 | fi
|
---|
6153 | fi
|
---|
6154 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
---|
6155 | if test -n "$ac_ct_STRIP"; then
|
---|
6156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
|
---|
6157 | $as_echo "$ac_ct_STRIP" >&6; }
|
---|
6158 | else
|
---|
6159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6160 | $as_echo "no" >&6; }
|
---|
6161 | fi
|
---|
6162 |
|
---|
6163 | if test "x$ac_ct_STRIP" = x; then
|
---|
6164 | STRIP=":"
|
---|
6165 | else
|
---|
6166 | case $cross_compiling:$ac_tool_warned in
|
---|
6167 | yes:)
|
---|
6168 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
6169 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
6170 | ac_tool_warned=yes ;;
|
---|
6171 | esac
|
---|
6172 | STRIP=$ac_ct_STRIP
|
---|
6173 | fi
|
---|
6174 | else
|
---|
6175 | STRIP="$ac_cv_prog_STRIP"
|
---|
6176 | fi
|
---|
6177 |
|
---|
6178 | test -z "$STRIP" && STRIP=:
|
---|
6179 |
|
---|
6180 |
|
---|
6181 |
|
---|
6182 |
|
---|
6183 |
|
---|
6184 |
|
---|
6185 | if test -n "$ac_tool_prefix"; then
|
---|
6186 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
6187 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
6188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
6189 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
6190 | if ${ac_cv_prog_RANLIB+:} false; then :
|
---|
6191 | $as_echo_n "(cached) " >&6
|
---|
6192 | else
|
---|
6193 | if test -n "$RANLIB"; then
|
---|
6194 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
6195 | else
|
---|
6196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6197 | for as_dir in $PATH
|
---|
6198 | do
|
---|
6199 | IFS=$as_save_IFS
|
---|
6200 | test -z "$as_dir" && as_dir=.
|
---|
6201 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6202 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
6203 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
6204 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
6205 | break 2
|
---|
6206 | fi
|
---|
6207 | done
|
---|
6208 | done
|
---|
6209 | IFS=$as_save_IFS
|
---|
6210 |
|
---|
6211 | fi
|
---|
6212 | fi
|
---|
6213 | RANLIB=$ac_cv_prog_RANLIB
|
---|
6214 | if test -n "$RANLIB"; then
|
---|
6215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
|
---|
6216 | $as_echo "$RANLIB" >&6; }
|
---|
6217 | else
|
---|
6218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6219 | $as_echo "no" >&6; }
|
---|
6220 | fi
|
---|
6221 |
|
---|
6222 |
|
---|
6223 | fi
|
---|
6224 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
6225 | ac_ct_RANLIB=$RANLIB
|
---|
6226 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
6227 | set dummy ranlib; ac_word=$2
|
---|
6228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
6229 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
6230 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
|
---|
6231 | $as_echo_n "(cached) " >&6
|
---|
6232 | else
|
---|
6233 | if test -n "$ac_ct_RANLIB"; then
|
---|
6234 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
6235 | else
|
---|
6236 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6237 | for as_dir in $PATH
|
---|
6238 | do
|
---|
6239 | IFS=$as_save_IFS
|
---|
6240 | test -z "$as_dir" && as_dir=.
|
---|
6241 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6242 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
6243 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
6244 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
6245 | break 2
|
---|
6246 | fi
|
---|
6247 | done
|
---|
6248 | done
|
---|
6249 | IFS=$as_save_IFS
|
---|
6250 |
|
---|
6251 | fi
|
---|
6252 | fi
|
---|
6253 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
6254 | if test -n "$ac_ct_RANLIB"; then
|
---|
6255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
|
---|
6256 | $as_echo "$ac_ct_RANLIB" >&6; }
|
---|
6257 | else
|
---|
6258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6259 | $as_echo "no" >&6; }
|
---|
6260 | fi
|
---|
6261 |
|
---|
6262 | if test "x$ac_ct_RANLIB" = x; then
|
---|
6263 | RANLIB=":"
|
---|
6264 | else
|
---|
6265 | case $cross_compiling:$ac_tool_warned in
|
---|
6266 | yes:)
|
---|
6267 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
6268 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
6269 | ac_tool_warned=yes ;;
|
---|
6270 | esac
|
---|
6271 | RANLIB=$ac_ct_RANLIB
|
---|
6272 | fi
|
---|
6273 | else
|
---|
6274 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
6275 | fi
|
---|
6276 |
|
---|
6277 | test -z "$RANLIB" && RANLIB=:
|
---|
6278 |
|
---|
6279 |
|
---|
6280 |
|
---|
6281 |
|
---|
6282 |
|
---|
6283 |
|
---|
6284 | # Determine commands to create old-style static archives.
|
---|
6285 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
|
---|
6286 | old_postinstall_cmds='chmod 644 $oldlib'
|
---|
6287 | old_postuninstall_cmds=
|
---|
6288 |
|
---|
6289 | if test -n "$RANLIB"; then
|
---|
6290 | case $host_os in
|
---|
6291 | bitrig* | openbsd*)
|
---|
6292 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
|
---|
6293 | ;;
|
---|
6294 | *)
|
---|
6295 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
|
---|
6296 | ;;
|
---|
6297 | esac
|
---|
6298 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
|
---|
6299 | fi
|
---|
6300 |
|
---|
6301 | case $host_os in
|
---|
6302 | darwin*)
|
---|
6303 | lock_old_archive_extraction=yes ;;
|
---|
6304 | *)
|
---|
6305 | lock_old_archive_extraction=no ;;
|
---|
6306 | esac
|
---|
6307 |
|
---|
6308 |
|
---|
6309 |
|
---|
6310 |
|
---|
6311 |
|
---|
6312 |
|
---|
6313 |
|
---|
6314 |
|
---|
6315 |
|
---|
6316 |
|
---|
6317 |
|
---|
6318 |
|
---|
6319 |
|
---|
6320 |
|
---|
6321 |
|
---|
6322 |
|
---|
6323 |
|
---|
6324 |
|
---|
6325 |
|
---|
6326 |
|
---|
6327 |
|
---|
6328 |
|
---|
6329 |
|
---|
6330 |
|
---|
6331 |
|
---|
6332 |
|
---|
6333 |
|
---|
6334 |
|
---|
6335 |
|
---|
6336 |
|
---|
6337 |
|
---|
6338 |
|
---|
6339 |
|
---|
6340 |
|
---|
6341 |
|
---|
6342 |
|
---|
6343 |
|
---|
6344 |
|
---|
6345 |
|
---|
6346 | # If no C compiler was specified, use CC.
|
---|
6347 | LTCC=${LTCC-"$CC"}
|
---|
6348 |
|
---|
6349 | # If no C compiler flags were specified, use CFLAGS.
|
---|
6350 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
---|
6351 |
|
---|
6352 | # Allow CC to be a program name with arguments.
|
---|
6353 | compiler=$CC
|
---|
6354 |
|
---|
6355 |
|
---|
6356 | # Check for command to grab the raw symbol name followed by C symbol from nm.
|
---|
6357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
|
---|
6358 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
|
---|
6359 | if ${lt_cv_sys_global_symbol_pipe+:} false; then :
|
---|
6360 | $as_echo_n "(cached) " >&6
|
---|
6361 | else
|
---|
6362 |
|
---|
6363 | # These are sane defaults that work on at least a few old systems.
|
---|
6364 | # [They come from Ultrix. What could be older than Ultrix?!! ;)]
|
---|
6365 |
|
---|
6366 | # Character class describing NM global symbol codes.
|
---|
6367 | symcode='[BCDEGRST]'
|
---|
6368 |
|
---|
6369 | # Regexp to match symbols that can be accessed directly from C.
|
---|
6370 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
|
---|
6371 |
|
---|
6372 | # Define system-specific variables.
|
---|
6373 | case $host_os in
|
---|
6374 | aix*)
|
---|
6375 | symcode='[BCDT]'
|
---|
6376 | ;;
|
---|
6377 | cygwin* | mingw* | pw32* | cegcc*)
|
---|
6378 | symcode='[ABCDGISTW]'
|
---|
6379 | ;;
|
---|
6380 | hpux*)
|
---|
6381 | if test ia64 = "$host_cpu"; then
|
---|
6382 | symcode='[ABCDEGRST]'
|
---|
6383 | fi
|
---|
6384 | ;;
|
---|
6385 | irix* | nonstopux*)
|
---|
6386 | symcode='[BCDEGRST]'
|
---|
6387 | ;;
|
---|
6388 | osf*)
|
---|
6389 | symcode='[BCDEGQRST]'
|
---|
6390 | ;;
|
---|
6391 | solaris*)
|
---|
6392 | symcode='[BDRT]'
|
---|
6393 | ;;
|
---|
6394 | sco3.2v5*)
|
---|
6395 | symcode='[DT]'
|
---|
6396 | ;;
|
---|
6397 | sysv4.2uw2*)
|
---|
6398 | symcode='[DT]'
|
---|
6399 | ;;
|
---|
6400 | sysv5* | sco5v6* | unixware* | OpenUNIX*)
|
---|
6401 | symcode='[ABDT]'
|
---|
6402 | ;;
|
---|
6403 | sysv4)
|
---|
6404 | symcode='[DFNSTU]'
|
---|
6405 | ;;
|
---|
6406 | esac
|
---|
6407 |
|
---|
6408 | # If we're using GNU nm, then use its standard symbol codes.
|
---|
6409 | case `$NM -V 2>&1` in
|
---|
6410 | *GNU* | *'with BFD'*)
|
---|
6411 | symcode='[ABCDGIRSTW]' ;;
|
---|
6412 | esac
|
---|
6413 |
|
---|
6414 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
---|
6415 | # Gets list of data symbols to import.
|
---|
6416 | lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
|
---|
6417 | # Adjust the below global symbol transforms to fixup imported variables.
|
---|
6418 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
|
---|
6419 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
|
---|
6420 | lt_c_name_lib_hook="\
|
---|
6421 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
|
---|
6422 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
|
---|
6423 | else
|
---|
6424 | # Disable hooks by default.
|
---|
6425 | lt_cv_sys_global_symbol_to_import=
|
---|
6426 | lt_cdecl_hook=
|
---|
6427 | lt_c_name_hook=
|
---|
6428 | lt_c_name_lib_hook=
|
---|
6429 | fi
|
---|
6430 |
|
---|
6431 | # Transform an extracted symbol line into a proper C declaration.
|
---|
6432 | # Some systems (esp. on ia64) link data and code symbols differently,
|
---|
6433 | # so use this general approach.
|
---|
6434 | lt_cv_sys_global_symbol_to_cdecl="sed -n"\
|
---|
6435 | $lt_cdecl_hook\
|
---|
6436 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
|
---|
6437 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
|
---|
6438 |
|
---|
6439 | # Transform an extracted symbol line into symbol name and symbol address
|
---|
6440 | lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
|
---|
6441 | $lt_c_name_hook\
|
---|
6442 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
|
---|
6443 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
|
---|
6444 |
|
---|
6445 | # Transform an extracted symbol line into symbol name with lib prefix and
|
---|
6446 | # symbol address.
|
---|
6447 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
|
---|
6448 | $lt_c_name_lib_hook\
|
---|
6449 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
|
---|
6450 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
|
---|
6451 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
|
---|
6452 |
|
---|
6453 | # Handle CRLF in mingw tool chain
|
---|
6454 | opt_cr=
|
---|
6455 | case $build_os in
|
---|
6456 | mingw*)
|
---|
6457 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
|
---|
6458 | ;;
|
---|
6459 | esac
|
---|
6460 |
|
---|
6461 | # Try without a prefix underscore, then with it.
|
---|
6462 | for ac_symprfx in "" "_"; do
|
---|
6463 |
|
---|
6464 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
|
---|
6465 | symxfrm="\\1 $ac_symprfx\\2 \\2"
|
---|
6466 |
|
---|
6467 | # Write the raw and C identifiers.
|
---|
6468 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
---|
6469 | # Fake it for dumpbin and say T for any non-static function,
|
---|
6470 | # D for any global variable and I for any imported variable.
|
---|
6471 | # Also find C++ and __fastcall symbols from MSVC++,
|
---|
6472 | # which start with @ or ?.
|
---|
6473 | lt_cv_sys_global_symbol_pipe="$AWK '"\
|
---|
6474 | " {last_section=section; section=\$ 3};"\
|
---|
6475 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
|
---|
6476 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
|
---|
6477 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
|
---|
6478 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
|
---|
6479 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
|
---|
6480 | " \$ 0!~/External *\|/{next};"\
|
---|
6481 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
|
---|
6482 | " {if(hide[section]) next};"\
|
---|
6483 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
|
---|
6484 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
|
---|
6485 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
|
---|
6486 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
|
---|
6487 | " ' prfx=^$ac_symprfx"
|
---|
6488 | else
|
---|
6489 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
---|
6490 | fi
|
---|
6491 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
|
---|
6492 |
|
---|
6493 | # Check to see that the pipe works correctly.
|
---|
6494 | pipe_works=no
|
---|
6495 |
|
---|
6496 | rm -f conftest*
|
---|
6497 | cat > conftest.$ac_ext <<_LT_EOF
|
---|
6498 | #ifdef __cplusplus
|
---|
6499 | extern "C" {
|
---|
6500 | #endif
|
---|
6501 | char nm_test_var;
|
---|
6502 | void nm_test_func(void);
|
---|
6503 | void nm_test_func(void){}
|
---|
6504 | #ifdef __cplusplus
|
---|
6505 | }
|
---|
6506 | #endif
|
---|
6507 | int main(){nm_test_var='a';nm_test_func();return(0);}
|
---|
6508 | _LT_EOF
|
---|
6509 |
|
---|
6510 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
---|
6511 | (eval $ac_compile) 2>&5
|
---|
6512 | ac_status=$?
|
---|
6513 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
6514 | test $ac_status = 0; }; then
|
---|
6515 | # Now try to grab the symbols.
|
---|
6516 | nlist=conftest.nm
|
---|
6517 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
|
---|
6518 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
|
---|
6519 | ac_status=$?
|
---|
6520 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
6521 | test $ac_status = 0; } && test -s "$nlist"; then
|
---|
6522 | # Try sorting and uniquifying the output.
|
---|
6523 | if sort "$nlist" | uniq > "$nlist"T; then
|
---|
6524 | mv -f "$nlist"T "$nlist"
|
---|
6525 | else
|
---|
6526 | rm -f "$nlist"T
|
---|
6527 | fi
|
---|
6528 |
|
---|
6529 | # Make sure that we snagged all the symbols we need.
|
---|
6530 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
|
---|
6531 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
|
---|
6532 | cat <<_LT_EOF > conftest.$ac_ext
|
---|
6533 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
|
---|
6534 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
|
---|
6535 | /* DATA imports from DLLs on WIN32 can't be const, because runtime
|
---|
6536 | relocations are performed -- see ld's documentation on pseudo-relocs. */
|
---|
6537 | # define LT_DLSYM_CONST
|
---|
6538 | #elif defined __osf__
|
---|
6539 | /* This system does not cope well with relocations in const data. */
|
---|
6540 | # define LT_DLSYM_CONST
|
---|
6541 | #else
|
---|
6542 | # define LT_DLSYM_CONST const
|
---|
6543 | #endif
|
---|
6544 |
|
---|
6545 | #ifdef __cplusplus
|
---|
6546 | extern "C" {
|
---|
6547 | #endif
|
---|
6548 |
|
---|
6549 | _LT_EOF
|
---|
6550 | # Now generate the symbol file.
|
---|
6551 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
|
---|
6552 |
|
---|
6553 | cat <<_LT_EOF >> conftest.$ac_ext
|
---|
6554 |
|
---|
6555 | /* The mapping between symbol names and symbols. */
|
---|
6556 | LT_DLSYM_CONST struct {
|
---|
6557 | const char *name;
|
---|
6558 | void *address;
|
---|
6559 | }
|
---|
6560 | lt__PROGRAM__LTX_preloaded_symbols[] =
|
---|
6561 | {
|
---|
6562 | { "@PROGRAM@", (void *) 0 },
|
---|
6563 | _LT_EOF
|
---|
6564 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
|
---|
6565 | cat <<\_LT_EOF >> conftest.$ac_ext
|
---|
6566 | {0, (void *) 0}
|
---|
6567 | };
|
---|
6568 |
|
---|
6569 | /* This works around a problem in FreeBSD linker */
|
---|
6570 | #ifdef FREEBSD_WORKAROUND
|
---|
6571 | static const void *lt_preloaded_setup() {
|
---|
6572 | return lt__PROGRAM__LTX_preloaded_symbols;
|
---|
6573 | }
|
---|
6574 | #endif
|
---|
6575 |
|
---|
6576 | #ifdef __cplusplus
|
---|
6577 | }
|
---|
6578 | #endif
|
---|
6579 | _LT_EOF
|
---|
6580 | # Now try linking the two files.
|
---|
6581 | mv conftest.$ac_objext conftstm.$ac_objext
|
---|
6582 | lt_globsym_save_LIBS=$LIBS
|
---|
6583 | lt_globsym_save_CFLAGS=$CFLAGS
|
---|
6584 | LIBS=conftstm.$ac_objext
|
---|
6585 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
|
---|
6586 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
|
---|
6587 | (eval $ac_link) 2>&5
|
---|
6588 | ac_status=$?
|
---|
6589 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
6590 | test $ac_status = 0; } && test -s conftest$ac_exeext; then
|
---|
6591 | pipe_works=yes
|
---|
6592 | fi
|
---|
6593 | LIBS=$lt_globsym_save_LIBS
|
---|
6594 | CFLAGS=$lt_globsym_save_CFLAGS
|
---|
6595 | else
|
---|
6596 | echo "cannot find nm_test_func in $nlist" >&5
|
---|
6597 | fi
|
---|
6598 | else
|
---|
6599 | echo "cannot find nm_test_var in $nlist" >&5
|
---|
6600 | fi
|
---|
6601 | else
|
---|
6602 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
|
---|
6603 | fi
|
---|
6604 | else
|
---|
6605 | echo "$progname: failed program was:" >&5
|
---|
6606 | cat conftest.$ac_ext >&5
|
---|
6607 | fi
|
---|
6608 | rm -rf conftest* conftst*
|
---|
6609 |
|
---|
6610 | # Do not use the global_symbol_pipe unless it works.
|
---|
6611 | if test yes = "$pipe_works"; then
|
---|
6612 | break
|
---|
6613 | else
|
---|
6614 | lt_cv_sys_global_symbol_pipe=
|
---|
6615 | fi
|
---|
6616 | done
|
---|
6617 |
|
---|
6618 | fi
|
---|
6619 |
|
---|
6620 | if test -z "$lt_cv_sys_global_symbol_pipe"; then
|
---|
6621 | lt_cv_sys_global_symbol_to_cdecl=
|
---|
6622 | fi
|
---|
6623 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
|
---|
6624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
|
---|
6625 | $as_echo "failed" >&6; }
|
---|
6626 | else
|
---|
6627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
|
---|
6628 | $as_echo "ok" >&6; }
|
---|
6629 | fi
|
---|
6630 |
|
---|
6631 | # Response file support.
|
---|
6632 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
---|
6633 | nm_file_list_spec='@'
|
---|
6634 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
|
---|
6635 | nm_file_list_spec='@'
|
---|
6636 | fi
|
---|
6637 |
|
---|
6638 |
|
---|
6639 |
|
---|
6640 |
|
---|
6641 |
|
---|
6642 |
|
---|
6643 |
|
---|
6644 |
|
---|
6645 |
|
---|
6646 |
|
---|
6647 |
|
---|
6648 |
|
---|
6649 |
|
---|
6650 |
|
---|
6651 |
|
---|
6652 |
|
---|
6653 |
|
---|
6654 |
|
---|
6655 |
|
---|
6656 |
|
---|
6657 |
|
---|
6658 |
|
---|
6659 |
|
---|
6660 |
|
---|
6661 |
|
---|
6662 |
|
---|
6663 |
|
---|
6664 |
|
---|
6665 |
|
---|
6666 |
|
---|
6667 |
|
---|
6668 |
|
---|
6669 |
|
---|
6670 |
|
---|
6671 |
|
---|
6672 |
|
---|
6673 |
|
---|
6674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
|
---|
6675 | $as_echo_n "checking for sysroot... " >&6; }
|
---|
6676 |
|
---|
6677 | # Check whether --with-sysroot was given.
|
---|
6678 | if test "${with_sysroot+set}" = set; then :
|
---|
6679 | withval=$with_sysroot;
|
---|
6680 | else
|
---|
6681 | with_sysroot=no
|
---|
6682 | fi
|
---|
6683 |
|
---|
6684 |
|
---|
6685 | lt_sysroot=
|
---|
6686 | case $with_sysroot in #(
|
---|
6687 | yes)
|
---|
6688 | if test yes = "$GCC"; then
|
---|
6689 | lt_sysroot=`$CC --print-sysroot 2>/dev/null`
|
---|
6690 | fi
|
---|
6691 | ;; #(
|
---|
6692 | /*)
|
---|
6693 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
|
---|
6694 | ;; #(
|
---|
6695 | no|'')
|
---|
6696 | ;; #(
|
---|
6697 | *)
|
---|
6698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
|
---|
6699 | $as_echo "$with_sysroot" >&6; }
|
---|
6700 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
|
---|
6701 | ;;
|
---|
6702 | esac
|
---|
6703 |
|
---|
6704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
|
---|
6705 | $as_echo "${lt_sysroot:-no}" >&6; }
|
---|
6706 |
|
---|
6707 |
|
---|
6708 |
|
---|
6709 |
|
---|
6710 |
|
---|
6711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
|
---|
6712 | $as_echo_n "checking for a working dd... " >&6; }
|
---|
6713 | if ${ac_cv_path_lt_DD+:} false; then :
|
---|
6714 | $as_echo_n "(cached) " >&6
|
---|
6715 | else
|
---|
6716 | printf 0123456789abcdef0123456789abcdef >conftest.i
|
---|
6717 | cat conftest.i conftest.i >conftest2.i
|
---|
6718 | : ${lt_DD:=$DD}
|
---|
6719 | if test -z "$lt_DD"; then
|
---|
6720 | ac_path_lt_DD_found=false
|
---|
6721 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
6722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6723 | for as_dir in $PATH
|
---|
6724 | do
|
---|
6725 | IFS=$as_save_IFS
|
---|
6726 | test -z "$as_dir" && as_dir=.
|
---|
6727 | for ac_prog in dd; do
|
---|
6728 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6729 | ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
|
---|
6730 | as_fn_executable_p "$ac_path_lt_DD" || continue
|
---|
6731 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
|
---|
6732 | cmp -s conftest.i conftest.out \
|
---|
6733 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
|
---|
6734 | fi
|
---|
6735 | $ac_path_lt_DD_found && break 3
|
---|
6736 | done
|
---|
6737 | done
|
---|
6738 | done
|
---|
6739 | IFS=$as_save_IFS
|
---|
6740 | if test -z "$ac_cv_path_lt_DD"; then
|
---|
6741 | :
|
---|
6742 | fi
|
---|
6743 | else
|
---|
6744 | ac_cv_path_lt_DD=$lt_DD
|
---|
6745 | fi
|
---|
6746 |
|
---|
6747 | rm -f conftest.i conftest2.i conftest.out
|
---|
6748 | fi
|
---|
6749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
|
---|
6750 | $as_echo "$ac_cv_path_lt_DD" >&6; }
|
---|
6751 |
|
---|
6752 |
|
---|
6753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
|
---|
6754 | $as_echo_n "checking how to truncate binary pipes... " >&6; }
|
---|
6755 | if ${lt_cv_truncate_bin+:} false; then :
|
---|
6756 | $as_echo_n "(cached) " >&6
|
---|
6757 | else
|
---|
6758 | printf 0123456789abcdef0123456789abcdef >conftest.i
|
---|
6759 | cat conftest.i conftest.i >conftest2.i
|
---|
6760 | lt_cv_truncate_bin=
|
---|
6761 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
|
---|
6762 | cmp -s conftest.i conftest.out \
|
---|
6763 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
|
---|
6764 | fi
|
---|
6765 | rm -f conftest.i conftest2.i conftest.out
|
---|
6766 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
|
---|
6767 | fi
|
---|
6768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
|
---|
6769 | $as_echo "$lt_cv_truncate_bin" >&6; }
|
---|
6770 |
|
---|
6771 |
|
---|
6772 |
|
---|
6773 |
|
---|
6774 |
|
---|
6775 |
|
---|
6776 |
|
---|
6777 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
|
---|
6778 | func_cc_basename ()
|
---|
6779 | {
|
---|
6780 | for cc_temp in $*""; do
|
---|
6781 | case $cc_temp in
|
---|
6782 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
---|
6783 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
---|
6784 | \-*) ;;
|
---|
6785 | *) break;;
|
---|
6786 | esac
|
---|
6787 | done
|
---|
6788 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
|
---|
6789 | }
|
---|
6790 |
|
---|
6791 | # Check whether --enable-libtool-lock was given.
|
---|
6792 | if test "${enable_libtool_lock+set}" = set; then :
|
---|
6793 | enableval=$enable_libtool_lock;
|
---|
6794 | fi
|
---|
6795 |
|
---|
6796 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes
|
---|
6797 |
|
---|
6798 | # Some flags need to be propagated to the compiler or linker for good
|
---|
6799 | # libtool support.
|
---|
6800 | case $host in
|
---|
6801 | ia64-*-hpux*)
|
---|
6802 | # Find out what ABI is being produced by ac_compile, and set mode
|
---|
6803 | # options accordingly.
|
---|
6804 | echo 'int i;' > conftest.$ac_ext
|
---|
6805 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
---|
6806 | (eval $ac_compile) 2>&5
|
---|
6807 | ac_status=$?
|
---|
6808 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
6809 | test $ac_status = 0; }; then
|
---|
6810 | case `/usr/bin/file conftest.$ac_objext` in
|
---|
6811 | *ELF-32*)
|
---|
6812 | HPUX_IA64_MODE=32
|
---|
6813 | ;;
|
---|
6814 | *ELF-64*)
|
---|
6815 | HPUX_IA64_MODE=64
|
---|
6816 | ;;
|
---|
6817 | esac
|
---|
6818 | fi
|
---|
6819 | rm -rf conftest*
|
---|
6820 | ;;
|
---|
6821 | *-*-irix6*)
|
---|
6822 | # Find out what ABI is being produced by ac_compile, and set linker
|
---|
6823 | # options accordingly.
|
---|
6824 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext
|
---|
6825 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
---|
6826 | (eval $ac_compile) 2>&5
|
---|
6827 | ac_status=$?
|
---|
6828 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
6829 | test $ac_status = 0; }; then
|
---|
6830 | if test yes = "$lt_cv_prog_gnu_ld"; then
|
---|
6831 | case `/usr/bin/file conftest.$ac_objext` in
|
---|
6832 | *32-bit*)
|
---|
6833 | LD="${LD-ld} -melf32bsmip"
|
---|
6834 | ;;
|
---|
6835 | *N32*)
|
---|
6836 | LD="${LD-ld} -melf32bmipn32"
|
---|
6837 | ;;
|
---|
6838 | *64-bit*)
|
---|
6839 | LD="${LD-ld} -melf64bmip"
|
---|
6840 | ;;
|
---|
6841 | esac
|
---|
6842 | else
|
---|
6843 | case `/usr/bin/file conftest.$ac_objext` in
|
---|
6844 | *32-bit*)
|
---|
6845 | LD="${LD-ld} -32"
|
---|
6846 | ;;
|
---|
6847 | *N32*)
|
---|
6848 | LD="${LD-ld} -n32"
|
---|
6849 | ;;
|
---|
6850 | *64-bit*)
|
---|
6851 | LD="${LD-ld} -64"
|
---|
6852 | ;;
|
---|
6853 | esac
|
---|
6854 | fi
|
---|
6855 | fi
|
---|
6856 | rm -rf conftest*
|
---|
6857 | ;;
|
---|
6858 |
|
---|
6859 | mips64*-*linux*)
|
---|
6860 | # Find out what ABI is being produced by ac_compile, and set linker
|
---|
6861 | # options accordingly.
|
---|
6862 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext
|
---|
6863 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
---|
6864 | (eval $ac_compile) 2>&5
|
---|
6865 | ac_status=$?
|
---|
6866 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
6867 | test $ac_status = 0; }; then
|
---|
6868 | emul=elf
|
---|
6869 | case `/usr/bin/file conftest.$ac_objext` in
|
---|
6870 | *32-bit*)
|
---|
6871 | emul="${emul}32"
|
---|
6872 | ;;
|
---|
6873 | *64-bit*)
|
---|
6874 | emul="${emul}64"
|
---|
6875 | ;;
|
---|
6876 | esac
|
---|
6877 | case `/usr/bin/file conftest.$ac_objext` in
|
---|
6878 | *MSB*)
|
---|
6879 | emul="${emul}btsmip"
|
---|
6880 | ;;
|
---|
6881 | *LSB*)
|
---|
6882 | emul="${emul}ltsmip"
|
---|
6883 | ;;
|
---|
6884 | esac
|
---|
6885 | case `/usr/bin/file conftest.$ac_objext` in
|
---|
6886 | *N32*)
|
---|
6887 | emul="${emul}n32"
|
---|
6888 | ;;
|
---|
6889 | esac
|
---|
6890 | LD="${LD-ld} -m $emul"
|
---|
6891 | fi
|
---|
6892 | rm -rf conftest*
|
---|
6893 | ;;
|
---|
6894 |
|
---|
6895 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
|
---|
6896 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
|
---|
6897 | # Find out what ABI is being produced by ac_compile, and set linker
|
---|
6898 | # options accordingly. Note that the listed cases only cover the
|
---|
6899 | # situations where additional linker options are needed (such as when
|
---|
6900 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or
|
---|
6901 | # vice versa); the common cases where no linker options are needed do
|
---|
6902 | # not appear in the list.
|
---|
6903 | echo 'int i;' > conftest.$ac_ext
|
---|
6904 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
---|
6905 | (eval $ac_compile) 2>&5
|
---|
6906 | ac_status=$?
|
---|
6907 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
6908 | test $ac_status = 0; }; then
|
---|
6909 | case `/usr/bin/file conftest.o` in
|
---|
6910 | *32-bit*)
|
---|
6911 | case $host in
|
---|
6912 | x86_64-*kfreebsd*-gnu)
|
---|
6913 | LD="${LD-ld} -m elf_i386_fbsd"
|
---|
6914 | ;;
|
---|
6915 | x86_64-*linux*)
|
---|
6916 | case `/usr/bin/file conftest.o` in
|
---|
6917 | *x86-64*)
|
---|
6918 | LD="${LD-ld} -m elf32_x86_64"
|
---|
6919 | ;;
|
---|
6920 | *)
|
---|
6921 | LD="${LD-ld} -m elf_i386"
|
---|
6922 | ;;
|
---|
6923 | esac
|
---|
6924 | ;;
|
---|
6925 | powerpc64le-*linux*)
|
---|
6926 | LD="${LD-ld} -m elf32lppclinux"
|
---|
6927 | ;;
|
---|
6928 | powerpc64-*linux*)
|
---|
6929 | LD="${LD-ld} -m elf32ppclinux"
|
---|
6930 | ;;
|
---|
6931 | s390x-*linux*)
|
---|
6932 | LD="${LD-ld} -m elf_s390"
|
---|
6933 | ;;
|
---|
6934 | sparc64-*linux*)
|
---|
6935 | LD="${LD-ld} -m elf32_sparc"
|
---|
6936 | ;;
|
---|
6937 | esac
|
---|
6938 | ;;
|
---|
6939 | *64-bit*)
|
---|
6940 | case $host in
|
---|
6941 | x86_64-*kfreebsd*-gnu)
|
---|
6942 | LD="${LD-ld} -m elf_x86_64_fbsd"
|
---|
6943 | ;;
|
---|
6944 | x86_64-*linux*)
|
---|
6945 | LD="${LD-ld} -m elf_x86_64"
|
---|
6946 | ;;
|
---|
6947 | powerpcle-*linux*)
|
---|
6948 | LD="${LD-ld} -m elf64lppc"
|
---|
6949 | ;;
|
---|
6950 | powerpc-*linux*)
|
---|
6951 | LD="${LD-ld} -m elf64ppc"
|
---|
6952 | ;;
|
---|
6953 | s390*-*linux*|s390*-*tpf*)
|
---|
6954 | LD="${LD-ld} -m elf64_s390"
|
---|
6955 | ;;
|
---|
6956 | sparc*-*linux*)
|
---|
6957 | LD="${LD-ld} -m elf64_sparc"
|
---|
6958 | ;;
|
---|
6959 | esac
|
---|
6960 | ;;
|
---|
6961 | esac
|
---|
6962 | fi
|
---|
6963 | rm -rf conftest*
|
---|
6964 | ;;
|
---|
6965 |
|
---|
6966 | *-*-sco3.2v5*)
|
---|
6967 | # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
---|
6968 | SAVE_CFLAGS=$CFLAGS
|
---|
6969 | CFLAGS="$CFLAGS -belf"
|
---|
6970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
|
---|
6971 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
|
---|
6972 | if ${lt_cv_cc_needs_belf+:} false; then :
|
---|
6973 | $as_echo_n "(cached) " >&6
|
---|
6974 | else
|
---|
6975 | ac_ext=c
|
---|
6976 | ac_cpp='$CPP $CPPFLAGS'
|
---|
6977 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
6978 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
6979 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
6980 |
|
---|
6981 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6982 | /* end confdefs.h. */
|
---|
6983 |
|
---|
6984 | int
|
---|
6985 | main ()
|
---|
6986 | {
|
---|
6987 |
|
---|
6988 | ;
|
---|
6989 | return 0;
|
---|
6990 | }
|
---|
6991 | _ACEOF
|
---|
6992 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
6993 | lt_cv_cc_needs_belf=yes
|
---|
6994 | else
|
---|
6995 | lt_cv_cc_needs_belf=no
|
---|
6996 | fi
|
---|
6997 | rm -f core conftest.err conftest.$ac_objext \
|
---|
6998 | conftest$ac_exeext conftest.$ac_ext
|
---|
6999 | ac_ext=c
|
---|
7000 | ac_cpp='$CPP $CPPFLAGS'
|
---|
7001 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
7002 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
7003 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
7004 |
|
---|
7005 | fi
|
---|
7006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
|
---|
7007 | $as_echo "$lt_cv_cc_needs_belf" >&6; }
|
---|
7008 | if test yes != "$lt_cv_cc_needs_belf"; then
|
---|
7009 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
---|
7010 | CFLAGS=$SAVE_CFLAGS
|
---|
7011 | fi
|
---|
7012 | ;;
|
---|
7013 | *-*solaris*)
|
---|
7014 | # Find out what ABI is being produced by ac_compile, and set linker
|
---|
7015 | # options accordingly.
|
---|
7016 | echo 'int i;' > conftest.$ac_ext
|
---|
7017 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
---|
7018 | (eval $ac_compile) 2>&5
|
---|
7019 | ac_status=$?
|
---|
7020 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
7021 | test $ac_status = 0; }; then
|
---|
7022 | case `/usr/bin/file conftest.o` in
|
---|
7023 | *64-bit*)
|
---|
7024 | case $lt_cv_prog_gnu_ld in
|
---|
7025 | yes*)
|
---|
7026 | case $host in
|
---|
7027 | i?86-*-solaris*|x86_64-*-solaris*)
|
---|
7028 | LD="${LD-ld} -m elf_x86_64"
|
---|
7029 | ;;
|
---|
7030 | sparc*-*-solaris*)
|
---|
7031 | LD="${LD-ld} -m elf64_sparc"
|
---|
7032 | ;;
|
---|
7033 | esac
|
---|
7034 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
|
---|
7035 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
|
---|
7036 | LD=${LD-ld}_sol2
|
---|
7037 | fi
|
---|
7038 | ;;
|
---|
7039 | *)
|
---|
7040 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
|
---|
7041 | LD="${LD-ld} -64"
|
---|
7042 | fi
|
---|
7043 | ;;
|
---|
7044 | esac
|
---|
7045 | ;;
|
---|
7046 | esac
|
---|
7047 | fi
|
---|
7048 | rm -rf conftest*
|
---|
7049 | ;;
|
---|
7050 | esac
|
---|
7051 |
|
---|
7052 | need_locks=$enable_libtool_lock
|
---|
7053 |
|
---|
7054 | if test -n "$ac_tool_prefix"; then
|
---|
7055 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
|
---|
7056 | set dummy ${ac_tool_prefix}mt; ac_word=$2
|
---|
7057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
7058 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
7059 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
|
---|
7060 | $as_echo_n "(cached) " >&6
|
---|
7061 | else
|
---|
7062 | if test -n "$MANIFEST_TOOL"; then
|
---|
7063 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
|
---|
7064 | else
|
---|
7065 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7066 | for as_dir in $PATH
|
---|
7067 | do
|
---|
7068 | IFS=$as_save_IFS
|
---|
7069 | test -z "$as_dir" && as_dir=.
|
---|
7070 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
7071 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
7072 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
|
---|
7073 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
7074 | break 2
|
---|
7075 | fi
|
---|
7076 | done
|
---|
7077 | done
|
---|
7078 | IFS=$as_save_IFS
|
---|
7079 |
|
---|
7080 | fi
|
---|
7081 | fi
|
---|
7082 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
|
---|
7083 | if test -n "$MANIFEST_TOOL"; then
|
---|
7084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
|
---|
7085 | $as_echo "$MANIFEST_TOOL" >&6; }
|
---|
7086 | else
|
---|
7087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
7088 | $as_echo "no" >&6; }
|
---|
7089 | fi
|
---|
7090 |
|
---|
7091 |
|
---|
7092 | fi
|
---|
7093 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
|
---|
7094 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
|
---|
7095 | # Extract the first word of "mt", so it can be a program name with args.
|
---|
7096 | set dummy mt; ac_word=$2
|
---|
7097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
7098 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
7099 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
|
---|
7100 | $as_echo_n "(cached) " >&6
|
---|
7101 | else
|
---|
7102 | if test -n "$ac_ct_MANIFEST_TOOL"; then
|
---|
7103 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
|
---|
7104 | else
|
---|
7105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7106 | for as_dir in $PATH
|
---|
7107 | do
|
---|
7108 | IFS=$as_save_IFS
|
---|
7109 | test -z "$as_dir" && as_dir=.
|
---|
7110 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
7111 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
7112 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
|
---|
7113 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
7114 | break 2
|
---|
7115 | fi
|
---|
7116 | done
|
---|
7117 | done
|
---|
7118 | IFS=$as_save_IFS
|
---|
7119 |
|
---|
7120 | fi
|
---|
7121 | fi
|
---|
7122 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
|
---|
7123 | if test -n "$ac_ct_MANIFEST_TOOL"; then
|
---|
7124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
|
---|
7125 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
|
---|
7126 | else
|
---|
7127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
7128 | $as_echo "no" >&6; }
|
---|
7129 | fi
|
---|
7130 |
|
---|
7131 | if test "x$ac_ct_MANIFEST_TOOL" = x; then
|
---|
7132 | MANIFEST_TOOL=":"
|
---|
7133 | else
|
---|
7134 | case $cross_compiling:$ac_tool_warned in
|
---|
7135 | yes:)
|
---|
7136 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
7137 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
7138 | ac_tool_warned=yes ;;
|
---|
7139 | esac
|
---|
7140 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
|
---|
7141 | fi
|
---|
7142 | else
|
---|
7143 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
|
---|
7144 | fi
|
---|
7145 |
|
---|
7146 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
|
---|
7147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
|
---|
7148 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
|
---|
7149 | if ${lt_cv_path_mainfest_tool+:} false; then :
|
---|
7150 | $as_echo_n "(cached) " >&6
|
---|
7151 | else
|
---|
7152 | lt_cv_path_mainfest_tool=no
|
---|
7153 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
|
---|
7154 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
|
---|
7155 | cat conftest.err >&5
|
---|
7156 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then
|
---|
7157 | lt_cv_path_mainfest_tool=yes
|
---|
7158 | fi
|
---|
7159 | rm -f conftest*
|
---|
7160 | fi
|
---|
7161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
|
---|
7162 | $as_echo "$lt_cv_path_mainfest_tool" >&6; }
|
---|
7163 | if test yes != "$lt_cv_path_mainfest_tool"; then
|
---|
7164 | MANIFEST_TOOL=:
|
---|
7165 | fi
|
---|
7166 |
|
---|
7167 |
|
---|
7168 |
|
---|
7169 |
|
---|
7170 |
|
---|
7171 |
|
---|
7172 | case $host_os in
|
---|
7173 | rhapsody* | darwin*)
|
---|
7174 | if test -n "$ac_tool_prefix"; then
|
---|
7175 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
|
---|
7176 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
|
---|
7177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
7178 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
7179 | if ${ac_cv_prog_DSYMUTIL+:} false; then :
|
---|
7180 | $as_echo_n "(cached) " >&6
|
---|
7181 | else
|
---|
7182 | if test -n "$DSYMUTIL"; then
|
---|
7183 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
|
---|
7184 | else
|
---|
7185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7186 | for as_dir in $PATH
|
---|
7187 | do
|
---|
7188 | IFS=$as_save_IFS
|
---|
7189 | test -z "$as_dir" && as_dir=.
|
---|
7190 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
7191 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
7192 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
|
---|
7193 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
7194 | break 2
|
---|
7195 | fi
|
---|
7196 | done
|
---|
7197 | done
|
---|
7198 | IFS=$as_save_IFS
|
---|
7199 |
|
---|
7200 | fi
|
---|
7201 | fi
|
---|
7202 | DSYMUTIL=$ac_cv_prog_DSYMUTIL
|
---|
7203 | if test -n "$DSYMUTIL"; then
|
---|
7204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
|
---|
7205 | $as_echo "$DSYMUTIL" >&6; }
|
---|
7206 | else
|
---|
7207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
7208 | $as_echo "no" >&6; }
|
---|
7209 | fi
|
---|
7210 |
|
---|
7211 |
|
---|
7212 | fi
|
---|
7213 | if test -z "$ac_cv_prog_DSYMUTIL"; then
|
---|
7214 | ac_ct_DSYMUTIL=$DSYMUTIL
|
---|
7215 | # Extract the first word of "dsymutil", so it can be a program name with args.
|
---|
7216 | set dummy dsymutil; ac_word=$2
|
---|
7217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
7218 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
7219 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
|
---|
7220 | $as_echo_n "(cached) " >&6
|
---|
7221 | else
|
---|
7222 | if test -n "$ac_ct_DSYMUTIL"; then
|
---|
7223 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
|
---|
7224 | else
|
---|
7225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7226 | for as_dir in $PATH
|
---|
7227 | do
|
---|
7228 | IFS=$as_save_IFS
|
---|
7229 | test -z "$as_dir" && as_dir=.
|
---|
7230 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
7231 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
7232 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
|
---|
7233 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
7234 | break 2
|
---|
7235 | fi
|
---|
7236 | done
|
---|
7237 | done
|
---|
7238 | IFS=$as_save_IFS
|
---|
7239 |
|
---|
7240 | fi
|
---|
7241 | fi
|
---|
7242 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
|
---|
7243 | if test -n "$ac_ct_DSYMUTIL"; then
|
---|
7244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
|
---|
7245 | $as_echo "$ac_ct_DSYMUTIL" >&6; }
|
---|
7246 | else
|
---|
7247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
7248 | $as_echo "no" >&6; }
|
---|
7249 | fi
|
---|
7250 |
|
---|
7251 | if test "x$ac_ct_DSYMUTIL" = x; then
|
---|
7252 | DSYMUTIL=":"
|
---|
7253 | else
|
---|
7254 | case $cross_compiling:$ac_tool_warned in
|
---|
7255 | yes:)
|
---|
7256 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
7257 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
7258 | ac_tool_warned=yes ;;
|
---|
7259 | esac
|
---|
7260 | DSYMUTIL=$ac_ct_DSYMUTIL
|
---|
7261 | fi
|
---|
7262 | else
|
---|
7263 | DSYMUTIL="$ac_cv_prog_DSYMUTIL"
|
---|
7264 | fi
|
---|
7265 |
|
---|
7266 | if test -n "$ac_tool_prefix"; then
|
---|
7267 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
|
---|
7268 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2
|
---|
7269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
7270 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
7271 | if ${ac_cv_prog_NMEDIT+:} false; then :
|
---|
7272 | $as_echo_n "(cached) " >&6
|
---|
7273 | else
|
---|
7274 | if test -n "$NMEDIT"; then
|
---|
7275 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
|
---|
7276 | else
|
---|
7277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7278 | for as_dir in $PATH
|
---|
7279 | do
|
---|
7280 | IFS=$as_save_IFS
|
---|
7281 | test -z "$as_dir" && as_dir=.
|
---|
7282 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
7283 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
7284 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
|
---|
7285 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
7286 | break 2
|
---|
7287 | fi
|
---|
7288 | done
|
---|
7289 | done
|
---|
7290 | IFS=$as_save_IFS
|
---|
7291 |
|
---|
7292 | fi
|
---|
7293 | fi
|
---|
7294 | NMEDIT=$ac_cv_prog_NMEDIT
|
---|
7295 | if test -n "$NMEDIT"; then
|
---|
7296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
|
---|
7297 | $as_echo "$NMEDIT" >&6; }
|
---|
7298 | else
|
---|
7299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
7300 | $as_echo "no" >&6; }
|
---|
7301 | fi
|
---|
7302 |
|
---|
7303 |
|
---|
7304 | fi
|
---|
7305 | if test -z "$ac_cv_prog_NMEDIT"; then
|
---|
7306 | ac_ct_NMEDIT=$NMEDIT
|
---|
7307 | # Extract the first word of "nmedit", so it can be a program name with args.
|
---|
7308 | set dummy nmedit; ac_word=$2
|
---|
7309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
7310 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
7311 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
|
---|
7312 | $as_echo_n "(cached) " >&6
|
---|
7313 | else
|
---|
7314 | if test -n "$ac_ct_NMEDIT"; then
|
---|
7315 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
|
---|
7316 | else
|
---|
7317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7318 | for as_dir in $PATH
|
---|
7319 | do
|
---|
7320 | IFS=$as_save_IFS
|
---|
7321 | test -z "$as_dir" && as_dir=.
|
---|
7322 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
7323 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
7324 | ac_cv_prog_ac_ct_NMEDIT="nmedit"
|
---|
7325 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
7326 | break 2
|
---|
7327 | fi
|
---|
7328 | done
|
---|
7329 | done
|
---|
7330 | IFS=$as_save_IFS
|
---|
7331 |
|
---|
7332 | fi
|
---|
7333 | fi
|
---|
7334 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
|
---|
7335 | if test -n "$ac_ct_NMEDIT"; then
|
---|
7336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
|
---|
7337 | $as_echo "$ac_ct_NMEDIT" >&6; }
|
---|
7338 | else
|
---|
7339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
7340 | $as_echo "no" >&6; }
|
---|
7341 | fi
|
---|
7342 |
|
---|
7343 | if test "x$ac_ct_NMEDIT" = x; then
|
---|
7344 | NMEDIT=":"
|
---|
7345 | else
|
---|
7346 | case $cross_compiling:$ac_tool_warned in
|
---|
7347 | yes:)
|
---|
7348 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
7349 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
7350 | ac_tool_warned=yes ;;
|
---|
7351 | esac
|
---|
7352 | NMEDIT=$ac_ct_NMEDIT
|
---|
7353 | fi
|
---|
7354 | else
|
---|
7355 | NMEDIT="$ac_cv_prog_NMEDIT"
|
---|
7356 | fi
|
---|
7357 |
|
---|
7358 | if test -n "$ac_tool_prefix"; then
|
---|
7359 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
|
---|
7360 | set dummy ${ac_tool_prefix}lipo; ac_word=$2
|
---|
7361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
7362 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
7363 | if ${ac_cv_prog_LIPO+:} false; then :
|
---|
7364 | $as_echo_n "(cached) " >&6
|
---|
7365 | else
|
---|
7366 | if test -n "$LIPO"; then
|
---|
7367 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
|
---|
7368 | else
|
---|
7369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7370 | for as_dir in $PATH
|
---|
7371 | do
|
---|
7372 | IFS=$as_save_IFS
|
---|
7373 | test -z "$as_dir" && as_dir=.
|
---|
7374 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
7375 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
7376 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
|
---|
7377 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
7378 | break 2
|
---|
7379 | fi
|
---|
7380 | done
|
---|
7381 | done
|
---|
7382 | IFS=$as_save_IFS
|
---|
7383 |
|
---|
7384 | fi
|
---|
7385 | fi
|
---|
7386 | LIPO=$ac_cv_prog_LIPO
|
---|
7387 | if test -n "$LIPO"; then
|
---|
7388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
|
---|
7389 | $as_echo "$LIPO" >&6; }
|
---|
7390 | else
|
---|
7391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
7392 | $as_echo "no" >&6; }
|
---|
7393 | fi
|
---|
7394 |
|
---|
7395 |
|
---|
7396 | fi
|
---|
7397 | if test -z "$ac_cv_prog_LIPO"; then
|
---|
7398 | ac_ct_LIPO=$LIPO
|
---|
7399 | # Extract the first word of "lipo", so it can be a program name with args.
|
---|
7400 | set dummy lipo; ac_word=$2
|
---|
7401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
7402 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
7403 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
|
---|
7404 | $as_echo_n "(cached) " >&6
|
---|
7405 | else
|
---|
7406 | if test -n "$ac_ct_LIPO"; then
|
---|
7407 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
|
---|
7408 | else
|
---|
7409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7410 | for as_dir in $PATH
|
---|
7411 | do
|
---|
7412 | IFS=$as_save_IFS
|
---|
7413 | test -z "$as_dir" && as_dir=.
|
---|
7414 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
7415 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
7416 | ac_cv_prog_ac_ct_LIPO="lipo"
|
---|
7417 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
7418 | break 2
|
---|
7419 | fi
|
---|
7420 | done
|
---|
7421 | done
|
---|
7422 | IFS=$as_save_IFS
|
---|
7423 |
|
---|
7424 | fi
|
---|
7425 | fi
|
---|
7426 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
|
---|
7427 | if test -n "$ac_ct_LIPO"; then
|
---|
7428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
|
---|
7429 | $as_echo "$ac_ct_LIPO" >&6; }
|
---|
7430 | else
|
---|
7431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
7432 | $as_echo "no" >&6; }
|
---|
7433 | fi
|
---|
7434 |
|
---|
7435 | if test "x$ac_ct_LIPO" = x; then
|
---|
7436 | LIPO=":"
|
---|
7437 | else
|
---|
7438 | case $cross_compiling:$ac_tool_warned in
|
---|
7439 | yes:)
|
---|
7440 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
7441 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
7442 | ac_tool_warned=yes ;;
|
---|
7443 | esac
|
---|
7444 | LIPO=$ac_ct_LIPO
|
---|
7445 | fi
|
---|
7446 | else
|
---|
7447 | LIPO="$ac_cv_prog_LIPO"
|
---|
7448 | fi
|
---|
7449 |
|
---|
7450 | if test -n "$ac_tool_prefix"; then
|
---|
7451 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
|
---|
7452 | set dummy ${ac_tool_prefix}otool; ac_word=$2
|
---|
7453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
7454 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
7455 | if ${ac_cv_prog_OTOOL+:} false; then :
|
---|
7456 | $as_echo_n "(cached) " >&6
|
---|
7457 | else
|
---|
7458 | if test -n "$OTOOL"; then
|
---|
7459 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
|
---|
7460 | else
|
---|
7461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7462 | for as_dir in $PATH
|
---|
7463 | do
|
---|
7464 | IFS=$as_save_IFS
|
---|
7465 | test -z "$as_dir" && as_dir=.
|
---|
7466 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
7467 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
7468 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
|
---|
7469 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
7470 | break 2
|
---|
7471 | fi
|
---|
7472 | done
|
---|
7473 | done
|
---|
7474 | IFS=$as_save_IFS
|
---|
7475 |
|
---|
7476 | fi
|
---|
7477 | fi
|
---|
7478 | OTOOL=$ac_cv_prog_OTOOL
|
---|
7479 | if test -n "$OTOOL"; then
|
---|
7480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
|
---|
7481 | $as_echo "$OTOOL" >&6; }
|
---|
7482 | else
|
---|
7483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
7484 | $as_echo "no" >&6; }
|
---|
7485 | fi
|
---|
7486 |
|
---|
7487 |
|
---|
7488 | fi
|
---|
7489 | if test -z "$ac_cv_prog_OTOOL"; then
|
---|
7490 | ac_ct_OTOOL=$OTOOL
|
---|
7491 | # Extract the first word of "otool", so it can be a program name with args.
|
---|
7492 | set dummy otool; ac_word=$2
|
---|
7493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
7494 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
7495 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
|
---|
7496 | $as_echo_n "(cached) " >&6
|
---|
7497 | else
|
---|
7498 | if test -n "$ac_ct_OTOOL"; then
|
---|
7499 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
|
---|
7500 | else
|
---|
7501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7502 | for as_dir in $PATH
|
---|
7503 | do
|
---|
7504 | IFS=$as_save_IFS
|
---|
7505 | test -z "$as_dir" && as_dir=.
|
---|
7506 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
7507 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
7508 | ac_cv_prog_ac_ct_OTOOL="otool"
|
---|
7509 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
7510 | break 2
|
---|
7511 | fi
|
---|
7512 | done
|
---|
7513 | done
|
---|
7514 | IFS=$as_save_IFS
|
---|
7515 |
|
---|
7516 | fi
|
---|
7517 | fi
|
---|
7518 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
|
---|
7519 | if test -n "$ac_ct_OTOOL"; then
|
---|
7520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
|
---|
7521 | $as_echo "$ac_ct_OTOOL" >&6; }
|
---|
7522 | else
|
---|
7523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
7524 | $as_echo "no" >&6; }
|
---|
7525 | fi
|
---|
7526 |
|
---|
7527 | if test "x$ac_ct_OTOOL" = x; then
|
---|
7528 | OTOOL=":"
|
---|
7529 | else
|
---|
7530 | case $cross_compiling:$ac_tool_warned in
|
---|
7531 | yes:)
|
---|
7532 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
7533 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
7534 | ac_tool_warned=yes ;;
|
---|
7535 | esac
|
---|
7536 | OTOOL=$ac_ct_OTOOL
|
---|
7537 | fi
|
---|
7538 | else
|
---|
7539 | OTOOL="$ac_cv_prog_OTOOL"
|
---|
7540 | fi
|
---|
7541 |
|
---|
7542 | if test -n "$ac_tool_prefix"; then
|
---|
7543 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
|
---|
7544 | set dummy ${ac_tool_prefix}otool64; ac_word=$2
|
---|
7545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
7546 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
7547 | if ${ac_cv_prog_OTOOL64+:} false; then :
|
---|
7548 | $as_echo_n "(cached) " >&6
|
---|
7549 | else
|
---|
7550 | if test -n "$OTOOL64"; then
|
---|
7551 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
|
---|
7552 | else
|
---|
7553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7554 | for as_dir in $PATH
|
---|
7555 | do
|
---|
7556 | IFS=$as_save_IFS
|
---|
7557 | test -z "$as_dir" && as_dir=.
|
---|
7558 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
7559 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
7560 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
|
---|
7561 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
7562 | break 2
|
---|
7563 | fi
|
---|
7564 | done
|
---|
7565 | done
|
---|
7566 | IFS=$as_save_IFS
|
---|
7567 |
|
---|
7568 | fi
|
---|
7569 | fi
|
---|
7570 | OTOOL64=$ac_cv_prog_OTOOL64
|
---|
7571 | if test -n "$OTOOL64"; then
|
---|
7572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
|
---|
7573 | $as_echo "$OTOOL64" >&6; }
|
---|
7574 | else
|
---|
7575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
7576 | $as_echo "no" >&6; }
|
---|
7577 | fi
|
---|
7578 |
|
---|
7579 |
|
---|
7580 | fi
|
---|
7581 | if test -z "$ac_cv_prog_OTOOL64"; then
|
---|
7582 | ac_ct_OTOOL64=$OTOOL64
|
---|
7583 | # Extract the first word of "otool64", so it can be a program name with args.
|
---|
7584 | set dummy otool64; ac_word=$2
|
---|
7585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
7586 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
7587 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
|
---|
7588 | $as_echo_n "(cached) " >&6
|
---|
7589 | else
|
---|
7590 | if test -n "$ac_ct_OTOOL64"; then
|
---|
7591 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
|
---|
7592 | else
|
---|
7593 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7594 | for as_dir in $PATH
|
---|
7595 | do
|
---|
7596 | IFS=$as_save_IFS
|
---|
7597 | test -z "$as_dir" && as_dir=.
|
---|
7598 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
7599 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
7600 | ac_cv_prog_ac_ct_OTOOL64="otool64"
|
---|
7601 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
7602 | break 2
|
---|
7603 | fi
|
---|
7604 | done
|
---|
7605 | done
|
---|
7606 | IFS=$as_save_IFS
|
---|
7607 |
|
---|
7608 | fi
|
---|
7609 | fi
|
---|
7610 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
|
---|
7611 | if test -n "$ac_ct_OTOOL64"; then
|
---|
7612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
|
---|
7613 | $as_echo "$ac_ct_OTOOL64" >&6; }
|
---|
7614 | else
|
---|
7615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
7616 | $as_echo "no" >&6; }
|
---|
7617 | fi
|
---|
7618 |
|
---|
7619 | if test "x$ac_ct_OTOOL64" = x; then
|
---|
7620 | OTOOL64=":"
|
---|
7621 | else
|
---|
7622 | case $cross_compiling:$ac_tool_warned in
|
---|
7623 | yes:)
|
---|
7624 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
7625 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
7626 | ac_tool_warned=yes ;;
|
---|
7627 | esac
|
---|
7628 | OTOOL64=$ac_ct_OTOOL64
|
---|
7629 | fi
|
---|
7630 | else
|
---|
7631 | OTOOL64="$ac_cv_prog_OTOOL64"
|
---|
7632 | fi
|
---|
7633 |
|
---|
7634 |
|
---|
7635 |
|
---|
7636 |
|
---|
7637 |
|
---|
7638 |
|
---|
7639 |
|
---|
7640 |
|
---|
7641 |
|
---|
7642 |
|
---|
7643 |
|
---|
7644 |
|
---|
7645 |
|
---|
7646 |
|
---|
7647 |
|
---|
7648 |
|
---|
7649 |
|
---|
7650 |
|
---|
7651 |
|
---|
7652 |
|
---|
7653 |
|
---|
7654 |
|
---|
7655 |
|
---|
7656 |
|
---|
7657 |
|
---|
7658 |
|
---|
7659 |
|
---|
7660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
|
---|
7661 | $as_echo_n "checking for -single_module linker flag... " >&6; }
|
---|
7662 | if ${lt_cv_apple_cc_single_mod+:} false; then :
|
---|
7663 | $as_echo_n "(cached) " >&6
|
---|
7664 | else
|
---|
7665 | lt_cv_apple_cc_single_mod=no
|
---|
7666 | if test -z "$LT_MULTI_MODULE"; then
|
---|
7667 | # By default we will add the -single_module flag. You can override
|
---|
7668 | # by either setting the environment variable LT_MULTI_MODULE
|
---|
7669 | # non-empty at configure time, or by adding -multi_module to the
|
---|
7670 | # link flags.
|
---|
7671 | rm -rf libconftest.dylib*
|
---|
7672 | echo "int foo(void){return 1;}" > conftest.c
|
---|
7673 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
---|
7674 | -dynamiclib -Wl,-single_module conftest.c" >&5
|
---|
7675 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
---|
7676 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
|
---|
7677 | _lt_result=$?
|
---|
7678 | # If there is a non-empty error log, and "single_module"
|
---|
7679 | # appears in it, assume the flag caused a linker warning
|
---|
7680 | if test -s conftest.err && $GREP single_module conftest.err; then
|
---|
7681 | cat conftest.err >&5
|
---|
7682 | # Otherwise, if the output was created with a 0 exit code from
|
---|
7683 | # the compiler, it worked.
|
---|
7684 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
|
---|
7685 | lt_cv_apple_cc_single_mod=yes
|
---|
7686 | else
|
---|
7687 | cat conftest.err >&5
|
---|
7688 | fi
|
---|
7689 | rm -rf libconftest.dylib*
|
---|
7690 | rm -f conftest.*
|
---|
7691 | fi
|
---|
7692 | fi
|
---|
7693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
|
---|
7694 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
|
---|
7695 |
|
---|
7696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
|
---|
7697 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
|
---|
7698 | if ${lt_cv_ld_exported_symbols_list+:} false; then :
|
---|
7699 | $as_echo_n "(cached) " >&6
|
---|
7700 | else
|
---|
7701 | lt_cv_ld_exported_symbols_list=no
|
---|
7702 | save_LDFLAGS=$LDFLAGS
|
---|
7703 | echo "_main" > conftest.sym
|
---|
7704 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
|
---|
7705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
7706 | /* end confdefs.h. */
|
---|
7707 |
|
---|
7708 | int
|
---|
7709 | main ()
|
---|
7710 | {
|
---|
7711 |
|
---|
7712 | ;
|
---|
7713 | return 0;
|
---|
7714 | }
|
---|
7715 | _ACEOF
|
---|
7716 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
7717 | lt_cv_ld_exported_symbols_list=yes
|
---|
7718 | else
|
---|
7719 | lt_cv_ld_exported_symbols_list=no
|
---|
7720 | fi
|
---|
7721 | rm -f core conftest.err conftest.$ac_objext \
|
---|
7722 | conftest$ac_exeext conftest.$ac_ext
|
---|
7723 | LDFLAGS=$save_LDFLAGS
|
---|
7724 |
|
---|
7725 | fi
|
---|
7726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
|
---|
7727 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
|
---|
7728 |
|
---|
7729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
|
---|
7730 | $as_echo_n "checking for -force_load linker flag... " >&6; }
|
---|
7731 | if ${lt_cv_ld_force_load+:} false; then :
|
---|
7732 | $as_echo_n "(cached) " >&6
|
---|
7733 | else
|
---|
7734 | lt_cv_ld_force_load=no
|
---|
7735 | cat > conftest.c << _LT_EOF
|
---|
7736 | int forced_loaded() { return 2;}
|
---|
7737 | _LT_EOF
|
---|
7738 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
|
---|
7739 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
|
---|
7740 | echo "$AR cru libconftest.a conftest.o" >&5
|
---|
7741 | $AR cru libconftest.a conftest.o 2>&5
|
---|
7742 | echo "$RANLIB libconftest.a" >&5
|
---|
7743 | $RANLIB libconftest.a 2>&5
|
---|
7744 | cat > conftest.c << _LT_EOF
|
---|
7745 | int main() { return 0;}
|
---|
7746 | _LT_EOF
|
---|
7747 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
|
---|
7748 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
|
---|
7749 | _lt_result=$?
|
---|
7750 | if test -s conftest.err && $GREP force_load conftest.err; then
|
---|
7751 | cat conftest.err >&5
|
---|
7752 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
|
---|
7753 | lt_cv_ld_force_load=yes
|
---|
7754 | else
|
---|
7755 | cat conftest.err >&5
|
---|
7756 | fi
|
---|
7757 | rm -f conftest.err libconftest.a conftest conftest.c
|
---|
7758 | rm -rf conftest.dSYM
|
---|
7759 |
|
---|
7760 | fi
|
---|
7761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
|
---|
7762 | $as_echo "$lt_cv_ld_force_load" >&6; }
|
---|
7763 | case $host_os in
|
---|
7764 | rhapsody* | darwin1.[012])
|
---|
7765 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
|
---|
7766 | darwin1.*)
|
---|
7767 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
|
---|
7768 | darwin*) # darwin 5.x on
|
---|
7769 | # if running on 10.5 or later, the deployment target defaults
|
---|
7770 | # to the OS version, if on x86, and 10.4, the deployment
|
---|
7771 | # target defaults to 10.4. Don't you love it?
|
---|
7772 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
|
---|
7773 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
|
---|
7774 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
|
---|
7775 | 10.[012][,.]*)
|
---|
7776 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
|
---|
7777 | 10.*)
|
---|
7778 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
|
---|
7779 | esac
|
---|
7780 | ;;
|
---|
7781 | esac
|
---|
7782 | if test yes = "$lt_cv_apple_cc_single_mod"; then
|
---|
7783 | _lt_dar_single_mod='$single_module'
|
---|
7784 | fi
|
---|
7785 | if test yes = "$lt_cv_ld_exported_symbols_list"; then
|
---|
7786 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
|
---|
7787 | else
|
---|
7788 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
|
---|
7789 | fi
|
---|
7790 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
|
---|
7791 | _lt_dsymutil='~$DSYMUTIL $lib || :'
|
---|
7792 | else
|
---|
7793 | _lt_dsymutil=
|
---|
7794 | fi
|
---|
7795 | ;;
|
---|
7796 | esac
|
---|
7797 |
|
---|
7798 | # func_munge_path_list VARIABLE PATH
|
---|
7799 | # -----------------------------------
|
---|
7800 | # VARIABLE is name of variable containing _space_ separated list of
|
---|
7801 | # directories to be munged by the contents of PATH, which is string
|
---|
7802 | # having a format:
|
---|
7803 | # "DIR[:DIR]:"
|
---|
7804 | # string "DIR[ DIR]" will be prepended to VARIABLE
|
---|
7805 | # ":DIR[:DIR]"
|
---|
7806 | # string "DIR[ DIR]" will be appended to VARIABLE
|
---|
7807 | # "DIRP[:DIRP]::[DIRA:]DIRA"
|
---|
7808 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
|
---|
7809 | # "DIRA[ DIRA]" will be appended to VARIABLE
|
---|
7810 | # "DIR[:DIR]"
|
---|
7811 | # VARIABLE will be replaced by "DIR[ DIR]"
|
---|
7812 | func_munge_path_list ()
|
---|
7813 | {
|
---|
7814 | case x$2 in
|
---|
7815 | x)
|
---|
7816 | ;;
|
---|
7817 | *:)
|
---|
7818 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
|
---|
7819 | ;;
|
---|
7820 | x:*)
|
---|
7821 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
|
---|
7822 | ;;
|
---|
7823 | *::*)
|
---|
7824 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
|
---|
7825 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
|
---|
7826 | ;;
|
---|
7827 | *)
|
---|
7828 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
|
---|
7829 | ;;
|
---|
7830 | esac
|
---|
7831 | }
|
---|
7832 |
|
---|
7833 |
|
---|
7834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
---|
7835 | $as_echo_n "checking for ANSI C header files... " >&6; }
|
---|
7836 | if ${ac_cv_header_stdc+:} false; then :
|
---|
7837 | $as_echo_n "(cached) " >&6
|
---|
7838 | else
|
---|
7839 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
7840 | /* end confdefs.h. */
|
---|
7841 | #include <stdlib.h>
|
---|
7842 | #include <stdarg.h>
|
---|
7843 | #include <string.h>
|
---|
7844 | #include <float.h>
|
---|
7845 |
|
---|
7846 | int
|
---|
7847 | main ()
|
---|
7848 | {
|
---|
7849 |
|
---|
7850 | ;
|
---|
7851 | return 0;
|
---|
7852 | }
|
---|
7853 | _ACEOF
|
---|
7854 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
7855 | ac_cv_header_stdc=yes
|
---|
7856 | else
|
---|
7857 | ac_cv_header_stdc=no
|
---|
7858 | fi
|
---|
7859 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7860 |
|
---|
7861 | if test $ac_cv_header_stdc = yes; then
|
---|
7862 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
7863 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
7864 | /* end confdefs.h. */
|
---|
7865 | #include <string.h>
|
---|
7866 |
|
---|
7867 | _ACEOF
|
---|
7868 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
7869 | $EGREP "memchr" >/dev/null 2>&1; then :
|
---|
7870 |
|
---|
7871 | else
|
---|
7872 | ac_cv_header_stdc=no
|
---|
7873 | fi
|
---|
7874 | rm -f conftest*
|
---|
7875 |
|
---|
7876 | fi
|
---|
7877 |
|
---|
7878 | if test $ac_cv_header_stdc = yes; then
|
---|
7879 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
7880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
7881 | /* end confdefs.h. */
|
---|
7882 | #include <stdlib.h>
|
---|
7883 |
|
---|
7884 | _ACEOF
|
---|
7885 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
7886 | $EGREP "free" >/dev/null 2>&1; then :
|
---|
7887 |
|
---|
7888 | else
|
---|
7889 | ac_cv_header_stdc=no
|
---|
7890 | fi
|
---|
7891 | rm -f conftest*
|
---|
7892 |
|
---|
7893 | fi
|
---|
7894 |
|
---|
7895 | if test $ac_cv_header_stdc = yes; then
|
---|
7896 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
7897 | if test "$cross_compiling" = yes; then :
|
---|
7898 | :
|
---|
7899 | else
|
---|
7900 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
7901 | /* end confdefs.h. */
|
---|
7902 | #include <ctype.h>
|
---|
7903 | #include <stdlib.h>
|
---|
7904 | #if ((' ' & 0x0FF) == 0x020)
|
---|
7905 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
7906 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
7907 | #else
|
---|
7908 | # define ISLOWER(c) \
|
---|
7909 | (('a' <= (c) && (c) <= 'i') \
|
---|
7910 | || ('j' <= (c) && (c) <= 'r') \
|
---|
7911 | || ('s' <= (c) && (c) <= 'z'))
|
---|
7912 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
7913 | #endif
|
---|
7914 |
|
---|
7915 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
7916 | int
|
---|
7917 | main ()
|
---|
7918 | {
|
---|
7919 | int i;
|
---|
7920 | for (i = 0; i < 256; i++)
|
---|
7921 | if (XOR (islower (i), ISLOWER (i))
|
---|
7922 | || toupper (i) != TOUPPER (i))
|
---|
7923 | return 2;
|
---|
7924 | return 0;
|
---|
7925 | }
|
---|
7926 | _ACEOF
|
---|
7927 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
7928 |
|
---|
7929 | else
|
---|
7930 | ac_cv_header_stdc=no
|
---|
7931 | fi
|
---|
7932 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
7933 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
7934 | fi
|
---|
7935 |
|
---|
7936 | fi
|
---|
7937 | fi
|
---|
7938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
---|
7939 | $as_echo "$ac_cv_header_stdc" >&6; }
|
---|
7940 | if test $ac_cv_header_stdc = yes; then
|
---|
7941 |
|
---|
7942 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
---|
7943 |
|
---|
7944 | fi
|
---|
7945 |
|
---|
7946 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
7947 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
7948 | inttypes.h stdint.h unistd.h
|
---|
7949 | do :
|
---|
7950 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
7951 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
|
---|
7952 | "
|
---|
7953 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
7954 | cat >>confdefs.h <<_ACEOF
|
---|
7955 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
7956 | _ACEOF
|
---|
7957 |
|
---|
7958 | fi
|
---|
7959 |
|
---|
7960 | done
|
---|
7961 |
|
---|
7962 |
|
---|
7963 | for ac_header in dlfcn.h
|
---|
7964 | do :
|
---|
7965 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
|
---|
7966 | "
|
---|
7967 | if test "x$ac_cv_header_dlfcn_h" = xyes; then :
|
---|
7968 | cat >>confdefs.h <<_ACEOF
|
---|
7969 | #define HAVE_DLFCN_H 1
|
---|
7970 | _ACEOF
|
---|
7971 |
|
---|
7972 | fi
|
---|
7973 |
|
---|
7974 | done
|
---|
7975 |
|
---|
7976 |
|
---|
7977 |
|
---|
7978 |
|
---|
7979 |
|
---|
7980 | # Set options
|
---|
7981 | enable_win32_dll=yes
|
---|
7982 |
|
---|
7983 | case $host in
|
---|
7984 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
|
---|
7985 | if test -n "$ac_tool_prefix"; then
|
---|
7986 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
|
---|
7987 | set dummy ${ac_tool_prefix}as; ac_word=$2
|
---|
7988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
7989 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
7990 | if ${ac_cv_prog_AS+:} false; then :
|
---|
7991 | $as_echo_n "(cached) " >&6
|
---|
7992 | else
|
---|
7993 | if test -n "$AS"; then
|
---|
7994 | ac_cv_prog_AS="$AS" # Let the user override the test.
|
---|
7995 | else
|
---|
7996 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7997 | for as_dir in $PATH
|
---|
7998 | do
|
---|
7999 | IFS=$as_save_IFS
|
---|
8000 | test -z "$as_dir" && as_dir=.
|
---|
8001 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
8002 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
8003 | ac_cv_prog_AS="${ac_tool_prefix}as"
|
---|
8004 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
8005 | break 2
|
---|
8006 | fi
|
---|
8007 | done
|
---|
8008 | done
|
---|
8009 | IFS=$as_save_IFS
|
---|
8010 |
|
---|
8011 | fi
|
---|
8012 | fi
|
---|
8013 | AS=$ac_cv_prog_AS
|
---|
8014 | if test -n "$AS"; then
|
---|
8015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
|
---|
8016 | $as_echo "$AS" >&6; }
|
---|
8017 | else
|
---|
8018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
8019 | $as_echo "no" >&6; }
|
---|
8020 | fi
|
---|
8021 |
|
---|
8022 |
|
---|
8023 | fi
|
---|
8024 | if test -z "$ac_cv_prog_AS"; then
|
---|
8025 | ac_ct_AS=$AS
|
---|
8026 | # Extract the first word of "as", so it can be a program name with args.
|
---|
8027 | set dummy as; ac_word=$2
|
---|
8028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
8029 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
8030 | if ${ac_cv_prog_ac_ct_AS+:} false; then :
|
---|
8031 | $as_echo_n "(cached) " >&6
|
---|
8032 | else
|
---|
8033 | if test -n "$ac_ct_AS"; then
|
---|
8034 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
|
---|
8035 | else
|
---|
8036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
8037 | for as_dir in $PATH
|
---|
8038 | do
|
---|
8039 | IFS=$as_save_IFS
|
---|
8040 | test -z "$as_dir" && as_dir=.
|
---|
8041 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
8042 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
8043 | ac_cv_prog_ac_ct_AS="as"
|
---|
8044 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
8045 | break 2
|
---|
8046 | fi
|
---|
8047 | done
|
---|
8048 | done
|
---|
8049 | IFS=$as_save_IFS
|
---|
8050 |
|
---|
8051 | fi
|
---|
8052 | fi
|
---|
8053 | ac_ct_AS=$ac_cv_prog_ac_ct_AS
|
---|
8054 | if test -n "$ac_ct_AS"; then
|
---|
8055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
|
---|
8056 | $as_echo "$ac_ct_AS" >&6; }
|
---|
8057 | else
|
---|
8058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
8059 | $as_echo "no" >&6; }
|
---|
8060 | fi
|
---|
8061 |
|
---|
8062 | if test "x$ac_ct_AS" = x; then
|
---|
8063 | AS="false"
|
---|
8064 | else
|
---|
8065 | case $cross_compiling:$ac_tool_warned in
|
---|
8066 | yes:)
|
---|
8067 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
8068 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
8069 | ac_tool_warned=yes ;;
|
---|
8070 | esac
|
---|
8071 | AS=$ac_ct_AS
|
---|
8072 | fi
|
---|
8073 | else
|
---|
8074 | AS="$ac_cv_prog_AS"
|
---|
8075 | fi
|
---|
8076 |
|
---|
8077 | if test -n "$ac_tool_prefix"; then
|
---|
8078 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
|
---|
8079 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2
|
---|
8080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
8081 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
8082 | if ${ac_cv_prog_DLLTOOL+:} false; then :
|
---|
8083 | $as_echo_n "(cached) " >&6
|
---|
8084 | else
|
---|
8085 | if test -n "$DLLTOOL"; then
|
---|
8086 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
|
---|
8087 | else
|
---|
8088 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
8089 | for as_dir in $PATH
|
---|
8090 | do
|
---|
8091 | IFS=$as_save_IFS
|
---|
8092 | test -z "$as_dir" && as_dir=.
|
---|
8093 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
8094 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
8095 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
|
---|
8096 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
8097 | break 2
|
---|
8098 | fi
|
---|
8099 | done
|
---|
8100 | done
|
---|
8101 | IFS=$as_save_IFS
|
---|
8102 |
|
---|
8103 | fi
|
---|
8104 | fi
|
---|
8105 | DLLTOOL=$ac_cv_prog_DLLTOOL
|
---|
8106 | if test -n "$DLLTOOL"; then
|
---|
8107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
|
---|
8108 | $as_echo "$DLLTOOL" >&6; }
|
---|
8109 | else
|
---|
8110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
8111 | $as_echo "no" >&6; }
|
---|
8112 | fi
|
---|
8113 |
|
---|
8114 |
|
---|
8115 | fi
|
---|
8116 | if test -z "$ac_cv_prog_DLLTOOL"; then
|
---|
8117 | ac_ct_DLLTOOL=$DLLTOOL
|
---|
8118 | # Extract the first word of "dlltool", so it can be a program name with args.
|
---|
8119 | set dummy dlltool; ac_word=$2
|
---|
8120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
8121 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
8122 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
|
---|
8123 | $as_echo_n "(cached) " >&6
|
---|
8124 | else
|
---|
8125 | if test -n "$ac_ct_DLLTOOL"; then
|
---|
8126 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
|
---|
8127 | else
|
---|
8128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
8129 | for as_dir in $PATH
|
---|
8130 | do
|
---|
8131 | IFS=$as_save_IFS
|
---|
8132 | test -z "$as_dir" && as_dir=.
|
---|
8133 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
8134 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
8135 | ac_cv_prog_ac_ct_DLLTOOL="dlltool"
|
---|
8136 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
8137 | break 2
|
---|
8138 | fi
|
---|
8139 | done
|
---|
8140 | done
|
---|
8141 | IFS=$as_save_IFS
|
---|
8142 |
|
---|
8143 | fi
|
---|
8144 | fi
|
---|
8145 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
|
---|
8146 | if test -n "$ac_ct_DLLTOOL"; then
|
---|
8147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
|
---|
8148 | $as_echo "$ac_ct_DLLTOOL" >&6; }
|
---|
8149 | else
|
---|
8150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
8151 | $as_echo "no" >&6; }
|
---|
8152 | fi
|
---|
8153 |
|
---|
8154 | if test "x$ac_ct_DLLTOOL" = x; then
|
---|
8155 | DLLTOOL="false"
|
---|
8156 | else
|
---|
8157 | case $cross_compiling:$ac_tool_warned in
|
---|
8158 | yes:)
|
---|
8159 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
8160 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
8161 | ac_tool_warned=yes ;;
|
---|
8162 | esac
|
---|
8163 | DLLTOOL=$ac_ct_DLLTOOL
|
---|
8164 | fi
|
---|
8165 | else
|
---|
8166 | DLLTOOL="$ac_cv_prog_DLLTOOL"
|
---|
8167 | fi
|
---|
8168 |
|
---|
8169 | if test -n "$ac_tool_prefix"; then
|
---|
8170 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
|
---|
8171 | set dummy ${ac_tool_prefix}objdump; ac_word=$2
|
---|
8172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
8173 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
8174 | if ${ac_cv_prog_OBJDUMP+:} false; then :
|
---|
8175 | $as_echo_n "(cached) " >&6
|
---|
8176 | else
|
---|
8177 | if test -n "$OBJDUMP"; then
|
---|
8178 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
|
---|
8179 | else
|
---|
8180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
8181 | for as_dir in $PATH
|
---|
8182 | do
|
---|
8183 | IFS=$as_save_IFS
|
---|
8184 | test -z "$as_dir" && as_dir=.
|
---|
8185 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
8186 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
8187 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
|
---|
8188 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
8189 | break 2
|
---|
8190 | fi
|
---|
8191 | done
|
---|
8192 | done
|
---|
8193 | IFS=$as_save_IFS
|
---|
8194 |
|
---|
8195 | fi
|
---|
8196 | fi
|
---|
8197 | OBJDUMP=$ac_cv_prog_OBJDUMP
|
---|
8198 | if test -n "$OBJDUMP"; then
|
---|
8199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
|
---|
8200 | $as_echo "$OBJDUMP" >&6; }
|
---|
8201 | else
|
---|
8202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
8203 | $as_echo "no" >&6; }
|
---|
8204 | fi
|
---|
8205 |
|
---|
8206 |
|
---|
8207 | fi
|
---|
8208 | if test -z "$ac_cv_prog_OBJDUMP"; then
|
---|
8209 | ac_ct_OBJDUMP=$OBJDUMP
|
---|
8210 | # Extract the first word of "objdump", so it can be a program name with args.
|
---|
8211 | set dummy objdump; ac_word=$2
|
---|
8212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
8213 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
8214 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
|
---|
8215 | $as_echo_n "(cached) " >&6
|
---|
8216 | else
|
---|
8217 | if test -n "$ac_ct_OBJDUMP"; then
|
---|
8218 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
|
---|
8219 | else
|
---|
8220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
8221 | for as_dir in $PATH
|
---|
8222 | do
|
---|
8223 | IFS=$as_save_IFS
|
---|
8224 | test -z "$as_dir" && as_dir=.
|
---|
8225 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
8226 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
8227 | ac_cv_prog_ac_ct_OBJDUMP="objdump"
|
---|
8228 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
8229 | break 2
|
---|
8230 | fi
|
---|
8231 | done
|
---|
8232 | done
|
---|
8233 | IFS=$as_save_IFS
|
---|
8234 |
|
---|
8235 | fi
|
---|
8236 | fi
|
---|
8237 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
|
---|
8238 | if test -n "$ac_ct_OBJDUMP"; then
|
---|
8239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
|
---|
8240 | $as_echo "$ac_ct_OBJDUMP" >&6; }
|
---|
8241 | else
|
---|
8242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
8243 | $as_echo "no" >&6; }
|
---|
8244 | fi
|
---|
8245 |
|
---|
8246 | if test "x$ac_ct_OBJDUMP" = x; then
|
---|
8247 | OBJDUMP="false"
|
---|
8248 | else
|
---|
8249 | case $cross_compiling:$ac_tool_warned in
|
---|
8250 | yes:)
|
---|
8251 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
8252 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
8253 | ac_tool_warned=yes ;;
|
---|
8254 | esac
|
---|
8255 | OBJDUMP=$ac_ct_OBJDUMP
|
---|
8256 | fi
|
---|
8257 | else
|
---|
8258 | OBJDUMP="$ac_cv_prog_OBJDUMP"
|
---|
8259 | fi
|
---|
8260 |
|
---|
8261 | ;;
|
---|
8262 | esac
|
---|
8263 |
|
---|
8264 | test -z "$AS" && AS=as
|
---|
8265 |
|
---|
8266 |
|
---|
8267 |
|
---|
8268 |
|
---|
8269 |
|
---|
8270 | test -z "$DLLTOOL" && DLLTOOL=dlltool
|
---|
8271 |
|
---|
8272 |
|
---|
8273 |
|
---|
8274 |
|
---|
8275 |
|
---|
8276 | test -z "$OBJDUMP" && OBJDUMP=objdump
|
---|
8277 |
|
---|
8278 |
|
---|
8279 |
|
---|
8280 |
|
---|
8281 |
|
---|
8282 |
|
---|
8283 |
|
---|
8284 | enable_dlopen=no
|
---|
8285 |
|
---|
8286 |
|
---|
8287 |
|
---|
8288 | # Check whether --enable-shared was given.
|
---|
8289 | if test "${enable_shared+set}" = set; then :
|
---|
8290 | enableval=$enable_shared; p=${PACKAGE-default}
|
---|
8291 | case $enableval in
|
---|
8292 | yes) enable_shared=yes ;;
|
---|
8293 | no) enable_shared=no ;;
|
---|
8294 | *)
|
---|
8295 | enable_shared=no
|
---|
8296 | # Look at the argument we got. We use all the common list separators.
|
---|
8297 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
|
---|
8298 | for pkg in $enableval; do
|
---|
8299 | IFS=$lt_save_ifs
|
---|
8300 | if test "X$pkg" = "X$p"; then
|
---|
8301 | enable_shared=yes
|
---|
8302 | fi
|
---|
8303 | done
|
---|
8304 | IFS=$lt_save_ifs
|
---|
8305 | ;;
|
---|
8306 | esac
|
---|
8307 | else
|
---|
8308 | enable_shared=yes
|
---|
8309 | fi
|
---|
8310 |
|
---|
8311 |
|
---|
8312 |
|
---|
8313 |
|
---|
8314 |
|
---|
8315 |
|
---|
8316 |
|
---|
8317 |
|
---|
8318 |
|
---|
8319 | # Check whether --enable-static was given.
|
---|
8320 | if test "${enable_static+set}" = set; then :
|
---|
8321 | enableval=$enable_static; p=${PACKAGE-default}
|
---|
8322 | case $enableval in
|
---|
8323 | yes) enable_static=yes ;;
|
---|
8324 | no) enable_static=no ;;
|
---|
8325 | *)
|
---|
8326 | enable_static=no
|
---|
8327 | # Look at the argument we got. We use all the common list separators.
|
---|
8328 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
|
---|
8329 | for pkg in $enableval; do
|
---|
8330 | IFS=$lt_save_ifs
|
---|
8331 | if test "X$pkg" = "X$p"; then
|
---|
8332 | enable_static=yes
|
---|
8333 | fi
|
---|
8334 | done
|
---|
8335 | IFS=$lt_save_ifs
|
---|
8336 | ;;
|
---|
8337 | esac
|
---|
8338 | else
|
---|
8339 | enable_static=yes
|
---|
8340 | fi
|
---|
8341 |
|
---|
8342 |
|
---|
8343 |
|
---|
8344 |
|
---|
8345 |
|
---|
8346 |
|
---|
8347 |
|
---|
8348 |
|
---|
8349 |
|
---|
8350 |
|
---|
8351 | # Check whether --with-pic was given.
|
---|
8352 | if test "${with_pic+set}" = set; then :
|
---|
8353 | withval=$with_pic; lt_p=${PACKAGE-default}
|
---|
8354 | case $withval in
|
---|
8355 | yes|no) pic_mode=$withval ;;
|
---|
8356 | *)
|
---|
8357 | pic_mode=default
|
---|
8358 | # Look at the argument we got. We use all the common list separators.
|
---|
8359 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
|
---|
8360 | for lt_pkg in $withval; do
|
---|
8361 | IFS=$lt_save_ifs
|
---|
8362 | if test "X$lt_pkg" = "X$lt_p"; then
|
---|
8363 | pic_mode=yes
|
---|
8364 | fi
|
---|
8365 | done
|
---|
8366 | IFS=$lt_save_ifs
|
---|
8367 | ;;
|
---|
8368 | esac
|
---|
8369 | else
|
---|
8370 | pic_mode=default
|
---|
8371 | fi
|
---|
8372 |
|
---|
8373 |
|
---|
8374 |
|
---|
8375 |
|
---|
8376 |
|
---|
8377 |
|
---|
8378 |
|
---|
8379 |
|
---|
8380 | # Check whether --enable-fast-install was given.
|
---|
8381 | if test "${enable_fast_install+set}" = set; then :
|
---|
8382 | enableval=$enable_fast_install; p=${PACKAGE-default}
|
---|
8383 | case $enableval in
|
---|
8384 | yes) enable_fast_install=yes ;;
|
---|
8385 | no) enable_fast_install=no ;;
|
---|
8386 | *)
|
---|
8387 | enable_fast_install=no
|
---|
8388 | # Look at the argument we got. We use all the common list separators.
|
---|
8389 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
|
---|
8390 | for pkg in $enableval; do
|
---|
8391 | IFS=$lt_save_ifs
|
---|
8392 | if test "X$pkg" = "X$p"; then
|
---|
8393 | enable_fast_install=yes
|
---|
8394 | fi
|
---|
8395 | done
|
---|
8396 | IFS=$lt_save_ifs
|
---|
8397 | ;;
|
---|
8398 | esac
|
---|
8399 | else
|
---|
8400 | enable_fast_install=yes
|
---|
8401 | fi
|
---|
8402 |
|
---|
8403 |
|
---|
8404 |
|
---|
8405 |
|
---|
8406 |
|
---|
8407 |
|
---|
8408 |
|
---|
8409 |
|
---|
8410 | shared_archive_member_spec=
|
---|
8411 | case $host,$enable_shared in
|
---|
8412 | power*-*-aix[5-9]*,yes)
|
---|
8413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
|
---|
8414 | $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
|
---|
8415 |
|
---|
8416 | # Check whether --with-aix-soname was given.
|
---|
8417 | if test "${with_aix_soname+set}" = set; then :
|
---|
8418 | withval=$with_aix_soname; case $withval in
|
---|
8419 | aix|svr4|both)
|
---|
8420 | ;;
|
---|
8421 | *)
|
---|
8422 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
|
---|
8423 | ;;
|
---|
8424 | esac
|
---|
8425 | lt_cv_with_aix_soname=$with_aix_soname
|
---|
8426 | else
|
---|
8427 | if ${lt_cv_with_aix_soname+:} false; then :
|
---|
8428 | $as_echo_n "(cached) " >&6
|
---|
8429 | else
|
---|
8430 | lt_cv_with_aix_soname=aix
|
---|
8431 | fi
|
---|
8432 |
|
---|
8433 | with_aix_soname=$lt_cv_with_aix_soname
|
---|
8434 | fi
|
---|
8435 |
|
---|
8436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
|
---|
8437 | $as_echo "$with_aix_soname" >&6; }
|
---|
8438 | if test aix != "$with_aix_soname"; then
|
---|
8439 | # For the AIX way of multilib, we name the shared archive member
|
---|
8440 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
|
---|
8441 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
|
---|
8442 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
|
---|
8443 | # the AIX toolchain works better with OBJECT_MODE set (default 32).
|
---|
8444 | if test 64 = "${OBJECT_MODE-32}"; then
|
---|
8445 | shared_archive_member_spec=shr_64
|
---|
8446 | else
|
---|
8447 | shared_archive_member_spec=shr
|
---|
8448 | fi
|
---|
8449 | fi
|
---|
8450 | ;;
|
---|
8451 | *)
|
---|
8452 | with_aix_soname=aix
|
---|
8453 | ;;
|
---|
8454 | esac
|
---|
8455 |
|
---|
8456 |
|
---|
8457 |
|
---|
8458 |
|
---|
8459 |
|
---|
8460 |
|
---|
8461 |
|
---|
8462 |
|
---|
8463 |
|
---|
8464 |
|
---|
8465 | # This can be used to rebuild libtool when needed
|
---|
8466 | LIBTOOL_DEPS=$ltmain
|
---|
8467 |
|
---|
8468 | # Always use our own libtool.
|
---|
8469 | LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
---|
8470 |
|
---|
8471 |
|
---|
8472 |
|
---|
8473 |
|
---|
8474 |
|
---|
8475 |
|
---|
8476 |
|
---|
8477 |
|
---|
8478 |
|
---|
8479 |
|
---|
8480 |
|
---|
8481 |
|
---|
8482 |
|
---|
8483 |
|
---|
8484 |
|
---|
8485 |
|
---|
8486 |
|
---|
8487 |
|
---|
8488 |
|
---|
8489 |
|
---|
8490 |
|
---|
8491 |
|
---|
8492 |
|
---|
8493 |
|
---|
8494 |
|
---|
8495 |
|
---|
8496 |
|
---|
8497 |
|
---|
8498 |
|
---|
8499 |
|
---|
8500 | test -z "$LN_S" && LN_S="ln -s"
|
---|
8501 |
|
---|
8502 |
|
---|
8503 |
|
---|
8504 |
|
---|
8505 |
|
---|
8506 |
|
---|
8507 |
|
---|
8508 |
|
---|
8509 |
|
---|
8510 |
|
---|
8511 |
|
---|
8512 |
|
---|
8513 |
|
---|
8514 |
|
---|
8515 | if test -n "${ZSH_VERSION+set}"; then
|
---|
8516 | setopt NO_GLOB_SUBST
|
---|
8517 | fi
|
---|
8518 |
|
---|
8519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
|
---|
8520 | $as_echo_n "checking for objdir... " >&6; }
|
---|
8521 | if ${lt_cv_objdir+:} false; then :
|
---|
8522 | $as_echo_n "(cached) " >&6
|
---|
8523 | else
|
---|
8524 | rm -f .libs 2>/dev/null
|
---|
8525 | mkdir .libs 2>/dev/null
|
---|
8526 | if test -d .libs; then
|
---|
8527 | lt_cv_objdir=.libs
|
---|
8528 | else
|
---|
8529 | # MS-DOS does not allow filenames that begin with a dot.
|
---|
8530 | lt_cv_objdir=_libs
|
---|
8531 | fi
|
---|
8532 | rmdir .libs 2>/dev/null
|
---|
8533 | fi
|
---|
8534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
|
---|
8535 | $as_echo "$lt_cv_objdir" >&6; }
|
---|
8536 | objdir=$lt_cv_objdir
|
---|
8537 |
|
---|
8538 |
|
---|
8539 |
|
---|
8540 |
|
---|
8541 |
|
---|
8542 | cat >>confdefs.h <<_ACEOF
|
---|
8543 | #define LT_OBJDIR "$lt_cv_objdir/"
|
---|
8544 | _ACEOF
|
---|
8545 |
|
---|
8546 |
|
---|
8547 |
|
---|
8548 |
|
---|
8549 | case $host_os in
|
---|
8550 | aix3*)
|
---|
8551 | # AIX sometimes has problems with the GCC collect2 program. For some
|
---|
8552 | # reason, if we set the COLLECT_NAMES environment variable, the problems
|
---|
8553 | # vanish in a puff of smoke.
|
---|
8554 | if test set != "${COLLECT_NAMES+set}"; then
|
---|
8555 | COLLECT_NAMES=
|
---|
8556 | export COLLECT_NAMES
|
---|
8557 | fi
|
---|
8558 | ;;
|
---|
8559 | esac
|
---|
8560 |
|
---|
8561 | # Global variables:
|
---|
8562 | ofile=libtool
|
---|
8563 | can_build_shared=yes
|
---|
8564 |
|
---|
8565 | # All known linkers require a '.a' archive for static linking (except MSVC,
|
---|
8566 | # which needs '.lib').
|
---|
8567 | libext=a
|
---|
8568 |
|
---|
8569 | with_gnu_ld=$lt_cv_prog_gnu_ld
|
---|
8570 |
|
---|
8571 | old_CC=$CC
|
---|
8572 | old_CFLAGS=$CFLAGS
|
---|
8573 |
|
---|
8574 | # Set sane defaults for various variables
|
---|
8575 | test -z "$CC" && CC=cc
|
---|
8576 | test -z "$LTCC" && LTCC=$CC
|
---|
8577 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
|
---|
8578 | test -z "$LD" && LD=ld
|
---|
8579 | test -z "$ac_objext" && ac_objext=o
|
---|
8580 |
|
---|
8581 | func_cc_basename $compiler
|
---|
8582 | cc_basename=$func_cc_basename_result
|
---|
8583 |
|
---|
8584 |
|
---|
8585 | # Only perform the check for file, if the check method requires it
|
---|
8586 | test -z "$MAGIC_CMD" && MAGIC_CMD=file
|
---|
8587 | case $deplibs_check_method in
|
---|
8588 | file_magic*)
|
---|
8589 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
---|
8590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
|
---|
8591 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
|
---|
8592 | if ${lt_cv_path_MAGIC_CMD+:} false; then :
|
---|
8593 | $as_echo_n "(cached) " >&6
|
---|
8594 | else
|
---|
8595 | case $MAGIC_CMD in
|
---|
8596 | [\\/*] | ?:[\\/]*)
|
---|
8597 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
|
---|
8598 | ;;
|
---|
8599 | *)
|
---|
8600 | lt_save_MAGIC_CMD=$MAGIC_CMD
|
---|
8601 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
|
---|
8602 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
|
---|
8603 | for ac_dir in $ac_dummy; do
|
---|
8604 | IFS=$lt_save_ifs
|
---|
8605 | test -z "$ac_dir" && ac_dir=.
|
---|
8606 | if test -f "$ac_dir/${ac_tool_prefix}file"; then
|
---|
8607 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
|
---|
8608 | if test -n "$file_magic_test_file"; then
|
---|
8609 | case $deplibs_check_method in
|
---|
8610 | "file_magic "*)
|
---|
8611 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
|
---|
8612 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD
|
---|
8613 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
---|
8614 | $EGREP "$file_magic_regex" > /dev/null; then
|
---|
8615 | :
|
---|
8616 | else
|
---|
8617 | cat <<_LT_EOF 1>&2
|
---|
8618 |
|
---|
8619 | *** Warning: the command libtool uses to detect shared libraries,
|
---|
8620 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
---|
8621 | *** The result is that libtool may fail to recognize shared libraries
|
---|
8622 | *** as such. This will affect the creation of libtool libraries that
|
---|
8623 | *** depend on shared libraries, but programs linked with such libtool
|
---|
8624 | *** libraries will work regardless of this problem. Nevertheless, you
|
---|
8625 | *** may want to report the problem to your system manager and/or to
|
---|
8626 | *** bug-libtool@gnu.org
|
---|
8627 |
|
---|
8628 | _LT_EOF
|
---|
8629 | fi ;;
|
---|
8630 | esac
|
---|
8631 | fi
|
---|
8632 | break
|
---|
8633 | fi
|
---|
8634 | done
|
---|
8635 | IFS=$lt_save_ifs
|
---|
8636 | MAGIC_CMD=$lt_save_MAGIC_CMD
|
---|
8637 | ;;
|
---|
8638 | esac
|
---|
8639 | fi
|
---|
8640 |
|
---|
8641 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD
|
---|
8642 | if test -n "$MAGIC_CMD"; then
|
---|
8643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
|
---|
8644 | $as_echo "$MAGIC_CMD" >&6; }
|
---|
8645 | else
|
---|
8646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
8647 | $as_echo "no" >&6; }
|
---|
8648 | fi
|
---|
8649 |
|
---|
8650 |
|
---|
8651 |
|
---|
8652 |
|
---|
8653 |
|
---|
8654 | if test -z "$lt_cv_path_MAGIC_CMD"; then
|
---|
8655 | if test -n "$ac_tool_prefix"; then
|
---|
8656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
|
---|
8657 | $as_echo_n "checking for file... " >&6; }
|
---|
8658 | if ${lt_cv_path_MAGIC_CMD+:} false; then :
|
---|
8659 | $as_echo_n "(cached) " >&6
|
---|
8660 | else
|
---|
8661 | case $MAGIC_CMD in
|
---|
8662 | [\\/*] | ?:[\\/]*)
|
---|
8663 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
|
---|
8664 | ;;
|
---|
8665 | *)
|
---|
8666 | lt_save_MAGIC_CMD=$MAGIC_CMD
|
---|
8667 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
|
---|
8668 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
|
---|
8669 | for ac_dir in $ac_dummy; do
|
---|
8670 | IFS=$lt_save_ifs
|
---|
8671 | test -z "$ac_dir" && ac_dir=.
|
---|
8672 | if test -f "$ac_dir/file"; then
|
---|
8673 | lt_cv_path_MAGIC_CMD=$ac_dir/"file"
|
---|
8674 | if test -n "$file_magic_test_file"; then
|
---|
8675 | case $deplibs_check_method in
|
---|
8676 | "file_magic "*)
|
---|
8677 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
|
---|
8678 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD
|
---|
8679 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
---|
8680 | $EGREP "$file_magic_regex" > /dev/null; then
|
---|
8681 | :
|
---|
8682 | else
|
---|
8683 | cat <<_LT_EOF 1>&2
|
---|
8684 |
|
---|
8685 | *** Warning: the command libtool uses to detect shared libraries,
|
---|
8686 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
---|
8687 | *** The result is that libtool may fail to recognize shared libraries
|
---|
8688 | *** as such. This will affect the creation of libtool libraries that
|
---|
8689 | *** depend on shared libraries, but programs linked with such libtool
|
---|
8690 | *** libraries will work regardless of this problem. Nevertheless, you
|
---|
8691 | *** may want to report the problem to your system manager and/or to
|
---|
8692 | *** bug-libtool@gnu.org
|
---|
8693 |
|
---|
8694 | _LT_EOF
|
---|
8695 | fi ;;
|
---|
8696 | esac
|
---|
8697 | fi
|
---|
8698 | break
|
---|
8699 | fi
|
---|
8700 | done
|
---|
8701 | IFS=$lt_save_ifs
|
---|
8702 | MAGIC_CMD=$lt_save_MAGIC_CMD
|
---|
8703 | ;;
|
---|
8704 | esac
|
---|
8705 | fi
|
---|
8706 |
|
---|
8707 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD
|
---|
8708 | if test -n "$MAGIC_CMD"; then
|
---|
8709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
|
---|
8710 | $as_echo "$MAGIC_CMD" >&6; }
|
---|
8711 | else
|
---|
8712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
8713 | $as_echo "no" >&6; }
|
---|
8714 | fi
|
---|
8715 |
|
---|
8716 |
|
---|
8717 | else
|
---|
8718 | MAGIC_CMD=:
|
---|
8719 | fi
|
---|
8720 | fi
|
---|
8721 |
|
---|
8722 | fi
|
---|
8723 | ;;
|
---|
8724 | esac
|
---|
8725 |
|
---|
8726 | # Use C for the default configuration in the libtool script
|
---|
8727 |
|
---|
8728 | lt_save_CC=$CC
|
---|
8729 | ac_ext=c
|
---|
8730 | ac_cpp='$CPP $CPPFLAGS'
|
---|
8731 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
8732 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
8733 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
8734 |
|
---|
8735 |
|
---|
8736 | # Source file extension for C test sources.
|
---|
8737 | ac_ext=c
|
---|
8738 |
|
---|
8739 | # Object file extension for compiled C test sources.
|
---|
8740 | objext=o
|
---|
8741 | objext=$objext
|
---|
8742 |
|
---|
8743 | # Code to be used in simple compile tests
|
---|
8744 | lt_simple_compile_test_code="int some_variable = 0;"
|
---|
8745 |
|
---|
8746 | # Code to be used in simple link tests
|
---|
8747 | lt_simple_link_test_code='int main(){return(0);}'
|
---|
8748 |
|
---|
8749 |
|
---|
8750 |
|
---|
8751 |
|
---|
8752 |
|
---|
8753 |
|
---|
8754 |
|
---|
8755 | # If no C compiler was specified, use CC.
|
---|
8756 | LTCC=${LTCC-"$CC"}
|
---|
8757 |
|
---|
8758 | # If no C compiler flags were specified, use CFLAGS.
|
---|
8759 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
---|
8760 |
|
---|
8761 | # Allow CC to be a program name with arguments.
|
---|
8762 | compiler=$CC
|
---|
8763 |
|
---|
8764 | # Save the default compiler, since it gets overwritten when the other
|
---|
8765 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
|
---|
8766 | compiler_DEFAULT=$CC
|
---|
8767 |
|
---|
8768 | # save warnings/boilerplate of simple test code
|
---|
8769 | ac_outfile=conftest.$ac_objext
|
---|
8770 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext
|
---|
8771 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
---|
8772 | _lt_compiler_boilerplate=`cat conftest.err`
|
---|
8773 | $RM conftest*
|
---|
8774 |
|
---|
8775 | ac_outfile=conftest.$ac_objext
|
---|
8776 | echo "$lt_simple_link_test_code" >conftest.$ac_ext
|
---|
8777 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
---|
8778 | _lt_linker_boilerplate=`cat conftest.err`
|
---|
8779 | $RM -r conftest*
|
---|
8780 |
|
---|
8781 |
|
---|
8782 | ## CAVEAT EMPTOR:
|
---|
8783 | ## There is no encapsulation within the following macros, do not change
|
---|
8784 | ## the running order or otherwise move them around unless you know exactly
|
---|
8785 | ## what you are doing...
|
---|
8786 | if test -n "$compiler"; then
|
---|
8787 |
|
---|
8788 | lt_prog_compiler_no_builtin_flag=
|
---|
8789 |
|
---|
8790 | if test yes = "$GCC"; then
|
---|
8791 | case $cc_basename in
|
---|
8792 | nvcc*)
|
---|
8793 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
|
---|
8794 | *)
|
---|
8795 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
|
---|
8796 | esac
|
---|
8797 |
|
---|
8798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
|
---|
8799 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
|
---|
8800 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
|
---|
8801 | $as_echo_n "(cached) " >&6
|
---|
8802 | else
|
---|
8803 | lt_cv_prog_compiler_rtti_exceptions=no
|
---|
8804 | ac_outfile=conftest.$ac_objext
|
---|
8805 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
---|
8806 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
|
---|
8807 | # Insert the option either (1) after the last *FLAGS variable, or
|
---|
8808 | # (2) before a word containing "conftest.", or (3) at the end.
|
---|
8809 | # Note that $ac_compile itself does not contain backslashes and begins
|
---|
8810 | # with a dollar sign (not a hyphen), so the echo should work correctly.
|
---|
8811 | # The option is referenced via a variable to avoid confusing sed.
|
---|
8812 | lt_compile=`echo "$ac_compile" | $SED \
|
---|
8813 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
---|
8814 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
---|
8815 | -e 's:$: $lt_compiler_flag:'`
|
---|
8816 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
|
---|
8817 | (eval "$lt_compile" 2>conftest.err)
|
---|
8818 | ac_status=$?
|
---|
8819 | cat conftest.err >&5
|
---|
8820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8821 | if (exit $ac_status) && test -s "$ac_outfile"; then
|
---|
8822 | # The compiler can only warn and ignore the option if not recognized
|
---|
8823 | # So say no if there are warnings other than the usual output.
|
---|
8824 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
|
---|
8825 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
---|
8826 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
---|
8827 | lt_cv_prog_compiler_rtti_exceptions=yes
|
---|
8828 | fi
|
---|
8829 | fi
|
---|
8830 | $RM conftest*
|
---|
8831 |
|
---|
8832 | fi
|
---|
8833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
|
---|
8834 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
|
---|
8835 |
|
---|
8836 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
|
---|
8837 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
|
---|
8838 | else
|
---|
8839 | :
|
---|
8840 | fi
|
---|
8841 |
|
---|
8842 | fi
|
---|
8843 |
|
---|
8844 |
|
---|
8845 |
|
---|
8846 |
|
---|
8847 |
|
---|
8848 |
|
---|
8849 | lt_prog_compiler_wl=
|
---|
8850 | lt_prog_compiler_pic=
|
---|
8851 | lt_prog_compiler_static=
|
---|
8852 |
|
---|
8853 |
|
---|
8854 | if test yes = "$GCC"; then
|
---|
8855 | lt_prog_compiler_wl='-Wl,'
|
---|
8856 | lt_prog_compiler_static='-static'
|
---|
8857 |
|
---|
8858 | case $host_os in
|
---|
8859 | aix*)
|
---|
8860 | # All AIX code is PIC.
|
---|
8861 | if test ia64 = "$host_cpu"; then
|
---|
8862 | # AIX 5 now supports IA64 processor
|
---|
8863 | lt_prog_compiler_static='-Bstatic'
|
---|
8864 | fi
|
---|
8865 | lt_prog_compiler_pic='-fPIC'
|
---|
8866 | ;;
|
---|
8867 |
|
---|
8868 | amigaos*)
|
---|
8869 | case $host_cpu in
|
---|
8870 | powerpc)
|
---|
8871 | # see comment about AmigaOS4 .so support
|
---|
8872 | lt_prog_compiler_pic='-fPIC'
|
---|
8873 | ;;
|
---|
8874 | m68k)
|
---|
8875 | # FIXME: we need at least 68020 code to build shared libraries, but
|
---|
8876 | # adding the '-m68020' flag to GCC prevents building anything better,
|
---|
8877 | # like '-m68040'.
|
---|
8878 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
|
---|
8879 | ;;
|
---|
8880 | esac
|
---|
8881 | ;;
|
---|
8882 |
|
---|
8883 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
---|
8884 | # PIC is the default for these OSes.
|
---|
8885 | ;;
|
---|
8886 |
|
---|
8887 | mingw* | cygwin* | pw32* | os2* | cegcc*)
|
---|
8888 | # This hack is so that the source file can tell whether it is being
|
---|
8889 | # built for inclusion in a dll (and should export symbols for example).
|
---|
8890 | # Although the cygwin gcc ignores -fPIC, still need this for old-style
|
---|
8891 | # (--disable-auto-import) libraries
|
---|
8892 | lt_prog_compiler_pic='-DDLL_EXPORT'
|
---|
8893 | case $host_os in
|
---|
8894 | os2*)
|
---|
8895 | lt_prog_compiler_static='$wl-static'
|
---|
8896 | ;;
|
---|
8897 | esac
|
---|
8898 | ;;
|
---|
8899 |
|
---|
8900 | darwin* | rhapsody*)
|
---|
8901 | # PIC is the default on this platform
|
---|
8902 | # Common symbols not allowed in MH_DYLIB files
|
---|
8903 | lt_prog_compiler_pic='-fno-common'
|
---|
8904 | ;;
|
---|
8905 |
|
---|
8906 | haiku*)
|
---|
8907 | # PIC is the default for Haiku.
|
---|
8908 | # The "-static" flag exists, but is broken.
|
---|
8909 | lt_prog_compiler_static=
|
---|
8910 | ;;
|
---|
8911 |
|
---|
8912 | hpux*)
|
---|
8913 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
|
---|
8914 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
|
---|
8915 | # sets the default TLS model and affects inlining.
|
---|
8916 | case $host_cpu in
|
---|
8917 | hppa*64*)
|
---|
8918 | # +Z the default
|
---|
8919 | ;;
|
---|
8920 | *)
|
---|
8921 | lt_prog_compiler_pic='-fPIC'
|
---|
8922 | ;;
|
---|
8923 | esac
|
---|
8924 | ;;
|
---|
8925 |
|
---|
8926 | interix[3-9]*)
|
---|
8927 | # Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
---|
8928 | # Instead, we relocate shared libraries at runtime.
|
---|
8929 | ;;
|
---|
8930 |
|
---|
8931 | msdosdjgpp*)
|
---|
8932 | # Just because we use GCC doesn't mean we suddenly get shared libraries
|
---|
8933 | # on systems that don't support them.
|
---|
8934 | lt_prog_compiler_can_build_shared=no
|
---|
8935 | enable_shared=no
|
---|
8936 | ;;
|
---|
8937 |
|
---|
8938 | *nto* | *qnx*)
|
---|
8939 | # QNX uses GNU C++, but need to define -shared option too, otherwise
|
---|
8940 | # it will coredump.
|
---|
8941 | lt_prog_compiler_pic='-fPIC -shared'
|
---|
8942 | ;;
|
---|
8943 |
|
---|
8944 | sysv4*MP*)
|
---|
8945 | if test -d /usr/nec; then
|
---|
8946 | lt_prog_compiler_pic=-Kconform_pic
|
---|
8947 | fi
|
---|
8948 | ;;
|
---|
8949 |
|
---|
8950 | *)
|
---|
8951 | lt_prog_compiler_pic='-fPIC'
|
---|
8952 | ;;
|
---|
8953 | esac
|
---|
8954 |
|
---|
8955 | case $cc_basename in
|
---|
8956 | nvcc*) # Cuda Compiler Driver 2.2
|
---|
8957 | lt_prog_compiler_wl='-Xlinker '
|
---|
8958 | if test -n "$lt_prog_compiler_pic"; then
|
---|
8959 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
|
---|
8960 | fi
|
---|
8961 | ;;
|
---|
8962 | esac
|
---|
8963 | else
|
---|
8964 | # PORTME Check for flag to pass linker flags through the system compiler.
|
---|
8965 | case $host_os in
|
---|
8966 | aix*)
|
---|
8967 | lt_prog_compiler_wl='-Wl,'
|
---|
8968 | if test ia64 = "$host_cpu"; then
|
---|
8969 | # AIX 5 now supports IA64 processor
|
---|
8970 | lt_prog_compiler_static='-Bstatic'
|
---|
8971 | else
|
---|
8972 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
|
---|
8973 | fi
|
---|
8974 | ;;
|
---|
8975 |
|
---|
8976 | darwin* | rhapsody*)
|
---|
8977 | # PIC is the default on this platform
|
---|
8978 | # Common symbols not allowed in MH_DYLIB files
|
---|
8979 | lt_prog_compiler_pic='-fno-common'
|
---|
8980 | case $cc_basename in
|
---|
8981 | nagfor*)
|
---|
8982 | # NAG Fortran compiler
|
---|
8983 | lt_prog_compiler_wl='-Wl,-Wl,,'
|
---|
8984 | lt_prog_compiler_pic='-PIC'
|
---|
8985 | lt_prog_compiler_static='-Bstatic'
|
---|
8986 | ;;
|
---|
8987 | esac
|
---|
8988 | ;;
|
---|
8989 |
|
---|
8990 | mingw* | cygwin* | pw32* | os2* | cegcc*)
|
---|
8991 | # This hack is so that the source file can tell whether it is being
|
---|
8992 | # built for inclusion in a dll (and should export symbols for example).
|
---|
8993 | lt_prog_compiler_pic='-DDLL_EXPORT'
|
---|
8994 | case $host_os in
|
---|
8995 | os2*)
|
---|
8996 | lt_prog_compiler_static='$wl-static'
|
---|
8997 | ;;
|
---|
8998 | esac
|
---|
8999 | ;;
|
---|
9000 |
|
---|
9001 | hpux9* | hpux10* | hpux11*)
|
---|
9002 | lt_prog_compiler_wl='-Wl,'
|
---|
9003 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
---|
9004 | # not for PA HP-UX.
|
---|
9005 | case $host_cpu in
|
---|
9006 | hppa*64*|ia64*)
|
---|
9007 | # +Z the default
|
---|
9008 | ;;
|
---|
9009 | *)
|
---|
9010 | lt_prog_compiler_pic='+Z'
|
---|
9011 | ;;
|
---|
9012 | esac
|
---|
9013 | # Is there a better lt_prog_compiler_static that works with the bundled CC?
|
---|
9014 | lt_prog_compiler_static='$wl-a ${wl}archive'
|
---|
9015 | ;;
|
---|
9016 |
|
---|
9017 | irix5* | irix6* | nonstopux*)
|
---|
9018 | lt_prog_compiler_wl='-Wl,'
|
---|
9019 | # PIC (with -KPIC) is the default.
|
---|
9020 | lt_prog_compiler_static='-non_shared'
|
---|
9021 | ;;
|
---|
9022 |
|
---|
9023 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
|
---|
9024 | case $cc_basename in
|
---|
9025 | # old Intel for x86_64, which still supported -KPIC.
|
---|
9026 | ecc*)
|
---|
9027 | lt_prog_compiler_wl='-Wl,'
|
---|
9028 | lt_prog_compiler_pic='-KPIC'
|
---|
9029 | lt_prog_compiler_static='-static'
|
---|
9030 | ;;
|
---|
9031 | # icc used to be incompatible with GCC.
|
---|
9032 | # ICC 10 doesn't accept -KPIC any more.
|
---|
9033 | icc* | ifort*)
|
---|
9034 | lt_prog_compiler_wl='-Wl,'
|
---|
9035 | lt_prog_compiler_pic='-fPIC'
|
---|
9036 | lt_prog_compiler_static='-static'
|
---|
9037 | ;;
|
---|
9038 | # Lahey Fortran 8.1.
|
---|
9039 | lf95*)
|
---|
9040 | lt_prog_compiler_wl='-Wl,'
|
---|
9041 | lt_prog_compiler_pic='--shared'
|
---|
9042 | lt_prog_compiler_static='--static'
|
---|
9043 | ;;
|
---|
9044 | nagfor*)
|
---|
9045 | # NAG Fortran compiler
|
---|
9046 | lt_prog_compiler_wl='-Wl,-Wl,,'
|
---|
9047 | lt_prog_compiler_pic='-PIC'
|
---|
9048 | lt_prog_compiler_static='-Bstatic'
|
---|
9049 | ;;
|
---|
9050 | tcc*)
|
---|
9051 | # Fabrice Bellard et al's Tiny C Compiler
|
---|
9052 | lt_prog_compiler_wl='-Wl,'
|
---|
9053 | lt_prog_compiler_pic='-fPIC'
|
---|
9054 | lt_prog_compiler_static='-static'
|
---|
9055 | ;;
|
---|
9056 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
|
---|
9057 | # Portland Group compilers (*not* the Pentium gcc compiler,
|
---|
9058 | # which looks to be a dead project)
|
---|
9059 | lt_prog_compiler_wl='-Wl,'
|
---|
9060 | lt_prog_compiler_pic='-fpic'
|
---|
9061 | lt_prog_compiler_static='-Bstatic'
|
---|
9062 | ;;
|
---|
9063 | ccc*)
|
---|
9064 | lt_prog_compiler_wl='-Wl,'
|
---|
9065 | # All Alpha code is PIC.
|
---|
9066 | lt_prog_compiler_static='-non_shared'
|
---|
9067 | ;;
|
---|
9068 | xl* | bgxl* | bgf* | mpixl*)
|
---|
9069 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
|
---|
9070 | lt_prog_compiler_wl='-Wl,'
|
---|
9071 | lt_prog_compiler_pic='-qpic'
|
---|
9072 | lt_prog_compiler_static='-qstaticlink'
|
---|
9073 | ;;
|
---|
9074 | *)
|
---|
9075 | case `$CC -V 2>&1 | sed 5q` in
|
---|
9076 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
|
---|
9077 | # Sun Fortran 8.3 passes all unrecognized flags to the linker
|
---|
9078 | lt_prog_compiler_pic='-KPIC'
|
---|
9079 | lt_prog_compiler_static='-Bstatic'
|
---|
9080 | lt_prog_compiler_wl=''
|
---|
9081 | ;;
|
---|
9082 | *Sun\ F* | *Sun*Fortran*)
|
---|
9083 | lt_prog_compiler_pic='-KPIC'
|
---|
9084 | lt_prog_compiler_static='-Bstatic'
|
---|
9085 | lt_prog_compiler_wl='-Qoption ld '
|
---|
9086 | ;;
|
---|
9087 | *Sun\ C*)
|
---|
9088 | # Sun C 5.9
|
---|
9089 | lt_prog_compiler_pic='-KPIC'
|
---|
9090 | lt_prog_compiler_static='-Bstatic'
|
---|
9091 | lt_prog_compiler_wl='-Wl,'
|
---|
9092 | ;;
|
---|
9093 | *Intel*\ [CF]*Compiler*)
|
---|
9094 | lt_prog_compiler_wl='-Wl,'
|
---|
9095 | lt_prog_compiler_pic='-fPIC'
|
---|
9096 | lt_prog_compiler_static='-static'
|
---|
9097 | ;;
|
---|
9098 | *Portland\ Group*)
|
---|
9099 | lt_prog_compiler_wl='-Wl,'
|
---|
9100 | lt_prog_compiler_pic='-fpic'
|
---|
9101 | lt_prog_compiler_static='-Bstatic'
|
---|
9102 | ;;
|
---|
9103 | esac
|
---|
9104 | ;;
|
---|
9105 | esac
|
---|
9106 | ;;
|
---|
9107 |
|
---|
9108 | newsos6)
|
---|
9109 | lt_prog_compiler_pic='-KPIC'
|
---|
9110 | lt_prog_compiler_static='-Bstatic'
|
---|
9111 | ;;
|
---|
9112 |
|
---|
9113 | *nto* | *qnx*)
|
---|
9114 | # QNX uses GNU C++, but need to define -shared option too, otherwise
|
---|
9115 | # it will coredump.
|
---|
9116 | lt_prog_compiler_pic='-fPIC -shared'
|
---|
9117 | ;;
|
---|
9118 |
|
---|
9119 | osf3* | osf4* | osf5*)
|
---|
9120 | lt_prog_compiler_wl='-Wl,'
|
---|
9121 | # All OSF/1 code is PIC.
|
---|
9122 | lt_prog_compiler_static='-non_shared'
|
---|
9123 | ;;
|
---|
9124 |
|
---|
9125 | rdos*)
|
---|
9126 | lt_prog_compiler_static='-non_shared'
|
---|
9127 | ;;
|
---|
9128 |
|
---|
9129 | solaris*)
|
---|
9130 | lt_prog_compiler_pic='-KPIC'
|
---|
9131 | lt_prog_compiler_static='-Bstatic'
|
---|
9132 | case $cc_basename in
|
---|
9133 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
|
---|
9134 | lt_prog_compiler_wl='-Qoption ld ';;
|
---|
9135 | *)
|
---|
9136 | lt_prog_compiler_wl='-Wl,';;
|
---|
9137 | esac
|
---|
9138 | ;;
|
---|
9139 |
|
---|
9140 | sunos4*)
|
---|
9141 | lt_prog_compiler_wl='-Qoption ld '
|
---|
9142 | lt_prog_compiler_pic='-PIC'
|
---|
9143 | lt_prog_compiler_static='-Bstatic'
|
---|
9144 | ;;
|
---|
9145 |
|
---|
9146 | sysv4 | sysv4.2uw2* | sysv4.3*)
|
---|
9147 | lt_prog_compiler_wl='-Wl,'
|
---|
9148 | lt_prog_compiler_pic='-KPIC'
|
---|
9149 | lt_prog_compiler_static='-Bstatic'
|
---|
9150 | ;;
|
---|
9151 |
|
---|
9152 | sysv4*MP*)
|
---|
9153 | if test -d /usr/nec; then
|
---|
9154 | lt_prog_compiler_pic='-Kconform_pic'
|
---|
9155 | lt_prog_compiler_static='-Bstatic'
|
---|
9156 | fi
|
---|
9157 | ;;
|
---|
9158 |
|
---|
9159 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
---|
9160 | lt_prog_compiler_wl='-Wl,'
|
---|
9161 | lt_prog_compiler_pic='-KPIC'
|
---|
9162 | lt_prog_compiler_static='-Bstatic'
|
---|
9163 | ;;
|
---|
9164 |
|
---|
9165 | unicos*)
|
---|
9166 | lt_prog_compiler_wl='-Wl,'
|
---|
9167 | lt_prog_compiler_can_build_shared=no
|
---|
9168 | ;;
|
---|
9169 |
|
---|
9170 | uts4*)
|
---|
9171 | lt_prog_compiler_pic='-pic'
|
---|
9172 | lt_prog_compiler_static='-Bstatic'
|
---|
9173 | ;;
|
---|
9174 |
|
---|
9175 | *)
|
---|
9176 | lt_prog_compiler_can_build_shared=no
|
---|
9177 | ;;
|
---|
9178 | esac
|
---|
9179 | fi
|
---|
9180 |
|
---|
9181 | case $host_os in
|
---|
9182 | # For platforms that do not support PIC, -DPIC is meaningless:
|
---|
9183 | *djgpp*)
|
---|
9184 | lt_prog_compiler_pic=
|
---|
9185 | ;;
|
---|
9186 | *)
|
---|
9187 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
|
---|
9188 | ;;
|
---|
9189 | esac
|
---|
9190 |
|
---|
9191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
---|
9192 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
---|
9193 | if ${lt_cv_prog_compiler_pic+:} false; then :
|
---|
9194 | $as_echo_n "(cached) " >&6
|
---|
9195 | else
|
---|
9196 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
|
---|
9197 | fi
|
---|
9198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
|
---|
9199 | $as_echo "$lt_cv_prog_compiler_pic" >&6; }
|
---|
9200 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
|
---|
9201 |
|
---|
9202 | #
|
---|
9203 | # Check to make sure the PIC flag actually works.
|
---|
9204 | #
|
---|
9205 | if test -n "$lt_prog_compiler_pic"; then
|
---|
9206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
|
---|
9207 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
|
---|
9208 | if ${lt_cv_prog_compiler_pic_works+:} false; then :
|
---|
9209 | $as_echo_n "(cached) " >&6
|
---|
9210 | else
|
---|
9211 | lt_cv_prog_compiler_pic_works=no
|
---|
9212 | ac_outfile=conftest.$ac_objext
|
---|
9213 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
---|
9214 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
|
---|
9215 | # Insert the option either (1) after the last *FLAGS variable, or
|
---|
9216 | # (2) before a word containing "conftest.", or (3) at the end.
|
---|
9217 | # Note that $ac_compile itself does not contain backslashes and begins
|
---|
9218 | # with a dollar sign (not a hyphen), so the echo should work correctly.
|
---|
9219 | # The option is referenced via a variable to avoid confusing sed.
|
---|
9220 | lt_compile=`echo "$ac_compile" | $SED \
|
---|
9221 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
---|
9222 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
---|
9223 | -e 's:$: $lt_compiler_flag:'`
|
---|
9224 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
|
---|
9225 | (eval "$lt_compile" 2>conftest.err)
|
---|
9226 | ac_status=$?
|
---|
9227 | cat conftest.err >&5
|
---|
9228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9229 | if (exit $ac_status) && test -s "$ac_outfile"; then
|
---|
9230 | # The compiler can only warn and ignore the option if not recognized
|
---|
9231 | # So say no if there are warnings other than the usual output.
|
---|
9232 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
|
---|
9233 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
---|
9234 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
---|
9235 | lt_cv_prog_compiler_pic_works=yes
|
---|
9236 | fi
|
---|
9237 | fi
|
---|
9238 | $RM conftest*
|
---|
9239 |
|
---|
9240 | fi
|
---|
9241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
|
---|
9242 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
|
---|
9243 |
|
---|
9244 | if test yes = "$lt_cv_prog_compiler_pic_works"; then
|
---|
9245 | case $lt_prog_compiler_pic in
|
---|
9246 | "" | " "*) ;;
|
---|
9247 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
|
---|
9248 | esac
|
---|
9249 | else
|
---|
9250 | lt_prog_compiler_pic=
|
---|
9251 | lt_prog_compiler_can_build_shared=no
|
---|
9252 | fi
|
---|
9253 |
|
---|
9254 | fi
|
---|
9255 |
|
---|
9256 |
|
---|
9257 |
|
---|
9258 |
|
---|
9259 |
|
---|
9260 |
|
---|
9261 |
|
---|
9262 |
|
---|
9263 |
|
---|
9264 |
|
---|
9265 |
|
---|
9266 | #
|
---|
9267 | # Check to make sure the static flag actually works.
|
---|
9268 | #
|
---|
9269 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
|
---|
9270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
|
---|
9271 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
|
---|
9272 | if ${lt_cv_prog_compiler_static_works+:} false; then :
|
---|
9273 | $as_echo_n "(cached) " >&6
|
---|
9274 | else
|
---|
9275 | lt_cv_prog_compiler_static_works=no
|
---|
9276 | save_LDFLAGS=$LDFLAGS
|
---|
9277 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
|
---|
9278 | echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
---|
9279 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
---|
9280 | # The linker can only warn and ignore the option if not recognized
|
---|
9281 | # So say no if there are warnings
|
---|
9282 | if test -s conftest.err; then
|
---|
9283 | # Append any errors to the config.log.
|
---|
9284 | cat conftest.err 1>&5
|
---|
9285 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
|
---|
9286 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
---|
9287 | if diff conftest.exp conftest.er2 >/dev/null; then
|
---|
9288 | lt_cv_prog_compiler_static_works=yes
|
---|
9289 | fi
|
---|
9290 | else
|
---|
9291 | lt_cv_prog_compiler_static_works=yes
|
---|
9292 | fi
|
---|
9293 | fi
|
---|
9294 | $RM -r conftest*
|
---|
9295 | LDFLAGS=$save_LDFLAGS
|
---|
9296 |
|
---|
9297 | fi
|
---|
9298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
|
---|
9299 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
|
---|
9300 |
|
---|
9301 | if test yes = "$lt_cv_prog_compiler_static_works"; then
|
---|
9302 | :
|
---|
9303 | else
|
---|
9304 | lt_prog_compiler_static=
|
---|
9305 | fi
|
---|
9306 |
|
---|
9307 |
|
---|
9308 |
|
---|
9309 |
|
---|
9310 |
|
---|
9311 |
|
---|
9312 |
|
---|
9313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
|
---|
9314 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
|
---|
9315 | if ${lt_cv_prog_compiler_c_o+:} false; then :
|
---|
9316 | $as_echo_n "(cached) " >&6
|
---|
9317 | else
|
---|
9318 | lt_cv_prog_compiler_c_o=no
|
---|
9319 | $RM -r conftest 2>/dev/null
|
---|
9320 | mkdir conftest
|
---|
9321 | cd conftest
|
---|
9322 | mkdir out
|
---|
9323 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
---|
9324 |
|
---|
9325 | lt_compiler_flag="-o out/conftest2.$ac_objext"
|
---|
9326 | # Insert the option either (1) after the last *FLAGS variable, or
|
---|
9327 | # (2) before a word containing "conftest.", or (3) at the end.
|
---|
9328 | # Note that $ac_compile itself does not contain backslashes and begins
|
---|
9329 | # with a dollar sign (not a hyphen), so the echo should work correctly.
|
---|
9330 | lt_compile=`echo "$ac_compile" | $SED \
|
---|
9331 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
---|
9332 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
---|
9333 | -e 's:$: $lt_compiler_flag:'`
|
---|
9334 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
|
---|
9335 | (eval "$lt_compile" 2>out/conftest.err)
|
---|
9336 | ac_status=$?
|
---|
9337 | cat out/conftest.err >&5
|
---|
9338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9339 | if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
---|
9340 | then
|
---|
9341 | # The compiler can only warn and ignore the option if not recognized
|
---|
9342 | # So say no if there are warnings
|
---|
9343 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
|
---|
9344 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
---|
9345 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
---|
9346 | lt_cv_prog_compiler_c_o=yes
|
---|
9347 | fi
|
---|
9348 | fi
|
---|
9349 | chmod u+w . 2>&5
|
---|
9350 | $RM conftest*
|
---|
9351 | # SGI C++ compiler will create directory out/ii_files/ for
|
---|
9352 | # template instantiation
|
---|
9353 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
|
---|
9354 | $RM out/* && rmdir out
|
---|
9355 | cd ..
|
---|
9356 | $RM -r conftest
|
---|
9357 | $RM conftest*
|
---|
9358 |
|
---|
9359 | fi
|
---|
9360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
|
---|
9361 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
|
---|
9362 |
|
---|
9363 |
|
---|
9364 |
|
---|
9365 |
|
---|
9366 |
|
---|
9367 |
|
---|
9368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
|
---|
9369 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
|
---|
9370 | if ${lt_cv_prog_compiler_c_o+:} false; then :
|
---|
9371 | $as_echo_n "(cached) " >&6
|
---|
9372 | else
|
---|
9373 | lt_cv_prog_compiler_c_o=no
|
---|
9374 | $RM -r conftest 2>/dev/null
|
---|
9375 | mkdir conftest
|
---|
9376 | cd conftest
|
---|
9377 | mkdir out
|
---|
9378 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
---|
9379 |
|
---|
9380 | lt_compiler_flag="-o out/conftest2.$ac_objext"
|
---|
9381 | # Insert the option either (1) after the last *FLAGS variable, or
|
---|
9382 | # (2) before a word containing "conftest.", or (3) at the end.
|
---|
9383 | # Note that $ac_compile itself does not contain backslashes and begins
|
---|
9384 | # with a dollar sign (not a hyphen), so the echo should work correctly.
|
---|
9385 | lt_compile=`echo "$ac_compile" | $SED \
|
---|
9386 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
---|
9387 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
---|
9388 | -e 's:$: $lt_compiler_flag:'`
|
---|
9389 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
|
---|
9390 | (eval "$lt_compile" 2>out/conftest.err)
|
---|
9391 | ac_status=$?
|
---|
9392 | cat out/conftest.err >&5
|
---|
9393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9394 | if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
---|
9395 | then
|
---|
9396 | # The compiler can only warn and ignore the option if not recognized
|
---|
9397 | # So say no if there are warnings
|
---|
9398 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
|
---|
9399 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
---|
9400 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
---|
9401 | lt_cv_prog_compiler_c_o=yes
|
---|
9402 | fi
|
---|
9403 | fi
|
---|
9404 | chmod u+w . 2>&5
|
---|
9405 | $RM conftest*
|
---|
9406 | # SGI C++ compiler will create directory out/ii_files/ for
|
---|
9407 | # template instantiation
|
---|
9408 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
|
---|
9409 | $RM out/* && rmdir out
|
---|
9410 | cd ..
|
---|
9411 | $RM -r conftest
|
---|
9412 | $RM conftest*
|
---|
9413 |
|
---|
9414 | fi
|
---|
9415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
|
---|
9416 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
|
---|
9417 |
|
---|
9418 |
|
---|
9419 |
|
---|
9420 |
|
---|
9421 | hard_links=nottested
|
---|
9422 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
|
---|
9423 | # do not overwrite the value of need_locks provided by the user
|
---|
9424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
|
---|
9425 | $as_echo_n "checking if we can lock with hard links... " >&6; }
|
---|
9426 | hard_links=yes
|
---|
9427 | $RM conftest*
|
---|
9428 | ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
---|
9429 | touch conftest.a
|
---|
9430 | ln conftest.a conftest.b 2>&5 || hard_links=no
|
---|
9431 | ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
---|
9432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
|
---|
9433 | $as_echo "$hard_links" >&6; }
|
---|
9434 | if test no = "$hard_links"; then
|
---|
9435 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
|
---|
9436 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
|
---|
9437 | need_locks=warn
|
---|
9438 | fi
|
---|
9439 | else
|
---|
9440 | need_locks=no
|
---|
9441 | fi
|
---|
9442 |
|
---|
9443 |
|
---|
9444 |
|
---|
9445 |
|
---|
9446 |
|
---|
9447 |
|
---|
9448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
|
---|
9449 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
|
---|
9450 |
|
---|
9451 | runpath_var=
|
---|
9452 | allow_undefined_flag=
|
---|
9453 | always_export_symbols=no
|
---|
9454 | archive_cmds=
|
---|
9455 | archive_expsym_cmds=
|
---|
9456 | compiler_needs_object=no
|
---|
9457 | enable_shared_with_static_runtimes=no
|
---|
9458 | export_dynamic_flag_spec=
|
---|
9459 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
---|
9460 | hardcode_automatic=no
|
---|
9461 | hardcode_direct=no
|
---|
9462 | hardcode_direct_absolute=no
|
---|
9463 | hardcode_libdir_flag_spec=
|
---|
9464 | hardcode_libdir_separator=
|
---|
9465 | hardcode_minus_L=no
|
---|
9466 | hardcode_shlibpath_var=unsupported
|
---|
9467 | inherit_rpath=no
|
---|
9468 | link_all_deplibs=unknown
|
---|
9469 | module_cmds=
|
---|
9470 | module_expsym_cmds=
|
---|
9471 | old_archive_from_new_cmds=
|
---|
9472 | old_archive_from_expsyms_cmds=
|
---|
9473 | thread_safe_flag_spec=
|
---|
9474 | whole_archive_flag_spec=
|
---|
9475 | # include_expsyms should be a list of space-separated symbols to be *always*
|
---|
9476 | # included in the symbol list
|
---|
9477 | include_expsyms=
|
---|
9478 | # exclude_expsyms can be an extended regexp of symbols to exclude
|
---|
9479 | # it will be wrapped by ' (' and ')$', so one must not match beginning or
|
---|
9480 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
|
---|
9481 | # as well as any symbol that contains 'd'.
|
---|
9482 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
|
---|
9483 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
|
---|
9484 | # platforms (ab)use it in PIC code, but their linkers get confused if
|
---|
9485 | # the symbol is explicitly referenced. Since portable code cannot
|
---|
9486 | # rely on this symbol name, it's probably fine to never include it in
|
---|
9487 | # preloaded symbol tables.
|
---|
9488 | # Exclude shared library initialization/finalization symbols.
|
---|
9489 | extract_expsyms_cmds=
|
---|
9490 |
|
---|
9491 | case $host_os in
|
---|
9492 | cygwin* | mingw* | pw32* | cegcc*)
|
---|
9493 | # FIXME: the MSVC++ port hasn't been tested in a loooong time
|
---|
9494 | # When not using gcc, we currently assume that we are using
|
---|
9495 | # Microsoft Visual C++.
|
---|
9496 | if test yes != "$GCC"; then
|
---|
9497 | with_gnu_ld=no
|
---|
9498 | fi
|
---|
9499 | ;;
|
---|
9500 | interix*)
|
---|
9501 | # we just hope/assume this is gcc and not c89 (= MSVC++)
|
---|
9502 | with_gnu_ld=yes
|
---|
9503 | ;;
|
---|
9504 | openbsd* | bitrig*)
|
---|
9505 | with_gnu_ld=no
|
---|
9506 | ;;
|
---|
9507 | esac
|
---|
9508 |
|
---|
9509 | ld_shlibs=yes
|
---|
9510 |
|
---|
9511 | # On some targets, GNU ld is compatible enough with the native linker
|
---|
9512 | # that we're better off using the native interface for both.
|
---|
9513 | lt_use_gnu_ld_interface=no
|
---|
9514 | if test yes = "$with_gnu_ld"; then
|
---|
9515 | case $host_os in
|
---|
9516 | aix*)
|
---|
9517 | # The AIX port of GNU ld has always aspired to compatibility
|
---|
9518 | # with the native linker. However, as the warning in the GNU ld
|
---|
9519 | # block says, versions before 2.19.5* couldn't really create working
|
---|
9520 | # shared libraries, regardless of the interface used.
|
---|
9521 | case `$LD -v 2>&1` in
|
---|
9522 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
|
---|
9523 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
|
---|
9524 | *\ \(GNU\ Binutils\)\ [3-9]*) ;;
|
---|
9525 | *)
|
---|
9526 | lt_use_gnu_ld_interface=yes
|
---|
9527 | ;;
|
---|
9528 | esac
|
---|
9529 | ;;
|
---|
9530 | *)
|
---|
9531 | lt_use_gnu_ld_interface=yes
|
---|
9532 | ;;
|
---|
9533 | esac
|
---|
9534 | fi
|
---|
9535 |
|
---|
9536 | if test yes = "$lt_use_gnu_ld_interface"; then
|
---|
9537 | # If archive_cmds runs LD, not CC, wlarc should be empty
|
---|
9538 | wlarc='$wl'
|
---|
9539 |
|
---|
9540 | # Set some defaults for GNU ld with shared library support. These
|
---|
9541 | # are reset later if shared libraries are not supported. Putting them
|
---|
9542 | # here allows them to be overridden if necessary.
|
---|
9543 | runpath_var=LD_RUN_PATH
|
---|
9544 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
---|
9545 | export_dynamic_flag_spec='$wl--export-dynamic'
|
---|
9546 | # ancient GNU ld didn't support --whole-archive et. al.
|
---|
9547 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
|
---|
9548 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
|
---|
9549 | else
|
---|
9550 | whole_archive_flag_spec=
|
---|
9551 | fi
|
---|
9552 | supports_anon_versioning=no
|
---|
9553 | case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
|
---|
9554 | *GNU\ gold*) supports_anon_versioning=yes ;;
|
---|
9555 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
|
---|
9556 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
|
---|
9557 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
|
---|
9558 | *\ 2.11.*) ;; # other 2.11 versions
|
---|
9559 | *) supports_anon_versioning=yes ;;
|
---|
9560 | esac
|
---|
9561 |
|
---|
9562 | # See if GNU ld supports shared libraries.
|
---|
9563 | case $host_os in
|
---|
9564 | aix[3-9]*)
|
---|
9565 | # On AIX/PPC, the GNU linker is very broken
|
---|
9566 | if test ia64 != "$host_cpu"; then
|
---|
9567 | ld_shlibs=no
|
---|
9568 | cat <<_LT_EOF 1>&2
|
---|
9569 |
|
---|
9570 | *** Warning: the GNU linker, at least up to release 2.19, is reported
|
---|
9571 | *** to be unable to reliably create shared libraries on AIX.
|
---|
9572 | *** Therefore, libtool is disabling shared libraries support. If you
|
---|
9573 | *** really care for shared libraries, you may want to install binutils
|
---|
9574 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
|
---|
9575 | *** You will then need to restart the configuration process.
|
---|
9576 |
|
---|
9577 | _LT_EOF
|
---|
9578 | fi
|
---|
9579 | ;;
|
---|
9580 |
|
---|
9581 | amigaos*)
|
---|
9582 | case $host_cpu in
|
---|
9583 | powerpc)
|
---|
9584 | # see comment about AmigaOS4 .so support
|
---|
9585 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
9586 | archive_expsym_cmds=''
|
---|
9587 | ;;
|
---|
9588 | m68k)
|
---|
9589 | 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)'
|
---|
9590 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
9591 | hardcode_minus_L=yes
|
---|
9592 | ;;
|
---|
9593 | esac
|
---|
9594 | ;;
|
---|
9595 |
|
---|
9596 | beos*)
|
---|
9597 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
---|
9598 | allow_undefined_flag=unsupported
|
---|
9599 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
|
---|
9600 | # support --undefined. This deserves some investigation. FIXME
|
---|
9601 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
9602 | else
|
---|
9603 | ld_shlibs=no
|
---|
9604 | fi
|
---|
9605 | ;;
|
---|
9606 |
|
---|
9607 | cygwin* | mingw* | pw32* | cegcc*)
|
---|
9608 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
|
---|
9609 | # as there is no search path for DLLs.
|
---|
9610 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
9611 | export_dynamic_flag_spec='$wl--export-all-symbols'
|
---|
9612 | allow_undefined_flag=unsupported
|
---|
9613 | always_export_symbols=no
|
---|
9614 | enable_shared_with_static_runtimes=yes
|
---|
9615 | 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'
|
---|
9616 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
|
---|
9617 |
|
---|
9618 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
---|
9619 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
---|
9620 | # If the export-symbols file already is a .def file, use it as
|
---|
9621 | # is; otherwise, prepend EXPORTS...
|
---|
9622 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
|
---|
9623 | cp $export_symbols $output_objdir/$soname.def;
|
---|
9624 | else
|
---|
9625 | echo EXPORTS > $output_objdir/$soname.def;
|
---|
9626 | cat $export_symbols >> $output_objdir/$soname.def;
|
---|
9627 | fi~
|
---|
9628 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
---|
9629 | else
|
---|
9630 | ld_shlibs=no
|
---|
9631 | fi
|
---|
9632 | ;;
|
---|
9633 |
|
---|
9634 | haiku*)
|
---|
9635 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
9636 | link_all_deplibs=yes
|
---|
9637 | ;;
|
---|
9638 |
|
---|
9639 | os2*)
|
---|
9640 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
9641 | hardcode_minus_L=yes
|
---|
9642 | allow_undefined_flag=unsupported
|
---|
9643 | shrext_cmds=.dll
|
---|
9644 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
|
---|
9645 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
|
---|
9646 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
|
---|
9647 | $ECHO EXPORTS >> $output_objdir/$libname.def~
|
---|
9648 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
|
---|
9649 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
|
---|
9650 | emximp -o $lib $output_objdir/$libname.def'
|
---|
9651 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
|
---|
9652 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
|
---|
9653 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
|
---|
9654 | $ECHO EXPORTS >> $output_objdir/$libname.def~
|
---|
9655 | prefix_cmds="$SED"~
|
---|
9656 | if test EXPORTS = "`$SED 1q $export_symbols`"; then
|
---|
9657 | prefix_cmds="$prefix_cmds -e 1d";
|
---|
9658 | fi~
|
---|
9659 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
|
---|
9660 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
|
---|
9661 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
|
---|
9662 | emximp -o $lib $output_objdir/$libname.def'
|
---|
9663 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
|
---|
9664 | enable_shared_with_static_runtimes=yes
|
---|
9665 | ;;
|
---|
9666 |
|
---|
9667 | interix[3-9]*)
|
---|
9668 | hardcode_direct=no
|
---|
9669 | hardcode_shlibpath_var=no
|
---|
9670 | hardcode_libdir_flag_spec='$wl-rpath,$libdir'
|
---|
9671 | export_dynamic_flag_spec='$wl-E'
|
---|
9672 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
---|
9673 | # Instead, shared libraries are loaded at an image base (0x10000000 by
|
---|
9674 | # default) and relocated if they conflict, which is a slow very memory
|
---|
9675 | # consuming and fragmenting process. To avoid this, we pick a random,
|
---|
9676 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
---|
9677 | # time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
---|
9678 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
---|
9679 | 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'
|
---|
9680 | ;;
|
---|
9681 |
|
---|
9682 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
|
---|
9683 | tmp_diet=no
|
---|
9684 | if test linux-dietlibc = "$host_os"; then
|
---|
9685 | case $cc_basename in
|
---|
9686 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
|
---|
9687 | esac
|
---|
9688 | fi
|
---|
9689 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
|
---|
9690 | && test no = "$tmp_diet"
|
---|
9691 | then
|
---|
9692 | tmp_addflag=' $pic_flag'
|
---|
9693 | tmp_sharedflag='-shared'
|
---|
9694 | case $cc_basename,$host_cpu in
|
---|
9695 | pgcc*) # Portland Group C compiler
|
---|
9696 | 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'
|
---|
9697 | tmp_addflag=' $pic_flag'
|
---|
9698 | ;;
|
---|
9699 | pgf77* | pgf90* | pgf95* | pgfortran*)
|
---|
9700 | # Portland Group f77 and f90 compilers
|
---|
9701 | 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'
|
---|
9702 | tmp_addflag=' $pic_flag -Mnomain' ;;
|
---|
9703 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
---|
9704 | tmp_addflag=' -i_dynamic' ;;
|
---|
9705 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
|
---|
9706 | tmp_addflag=' -i_dynamic -nofor_main' ;;
|
---|
9707 | ifc* | ifort*) # Intel Fortran compiler
|
---|
9708 | tmp_addflag=' -nofor_main' ;;
|
---|
9709 | lf95*) # Lahey Fortran 8.1
|
---|
9710 | whole_archive_flag_spec=
|
---|
9711 | tmp_sharedflag='--shared' ;;
|
---|
9712 | nagfor*) # NAGFOR 5.3
|
---|
9713 | tmp_sharedflag='-Wl,-shared' ;;
|
---|
9714 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
|
---|
9715 | tmp_sharedflag='-qmkshrobj'
|
---|
9716 | tmp_addflag= ;;
|
---|
9717 | nvcc*) # Cuda Compiler Driver 2.2
|
---|
9718 | 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'
|
---|
9719 | compiler_needs_object=yes
|
---|
9720 | ;;
|
---|
9721 | esac
|
---|
9722 | case `$CC -V 2>&1 | sed 5q` in
|
---|
9723 | *Sun\ C*) # Sun C 5.9
|
---|
9724 | 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'
|
---|
9725 | compiler_needs_object=yes
|
---|
9726 | tmp_sharedflag='-G' ;;
|
---|
9727 | *Sun\ F*) # Sun Fortran 8.3
|
---|
9728 | tmp_sharedflag='-G' ;;
|
---|
9729 | esac
|
---|
9730 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
9731 |
|
---|
9732 | if test yes = "$supports_anon_versioning"; then
|
---|
9733 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
|
---|
9734 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
---|
9735 | echo "local: *; };" >> $output_objdir/$libname.ver~
|
---|
9736 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
|
---|
9737 | fi
|
---|
9738 |
|
---|
9739 | case $cc_basename in
|
---|
9740 | tcc*)
|
---|
9741 | export_dynamic_flag_spec='-rdynamic'
|
---|
9742 | ;;
|
---|
9743 | xlf* | bgf* | bgxlf* | mpixlf*)
|
---|
9744 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
|
---|
9745 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
|
---|
9746 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
---|
9747 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
|
---|
9748 | if test yes = "$supports_anon_versioning"; then
|
---|
9749 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
|
---|
9750 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
---|
9751 | echo "local: *; };" >> $output_objdir/$libname.ver~
|
---|
9752 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
---|
9753 | fi
|
---|
9754 | ;;
|
---|
9755 | esac
|
---|
9756 | else
|
---|
9757 | ld_shlibs=no
|
---|
9758 | fi
|
---|
9759 | ;;
|
---|
9760 |
|
---|
9761 | netbsd*)
|
---|
9762 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
---|
9763 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
---|
9764 | wlarc=
|
---|
9765 | else
|
---|
9766 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
9767 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
|
---|
9768 | fi
|
---|
9769 | ;;
|
---|
9770 |
|
---|
9771 | solaris*)
|
---|
9772 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
|
---|
9773 | ld_shlibs=no
|
---|
9774 | cat <<_LT_EOF 1>&2
|
---|
9775 |
|
---|
9776 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably
|
---|
9777 | *** create shared libraries on Solaris systems. Therefore, libtool
|
---|
9778 | *** is disabling shared libraries support. We urge you to upgrade GNU
|
---|
9779 | *** binutils to release 2.9.1 or newer. Another option is to modify
|
---|
9780 | *** your PATH or compiler configuration so that the native linker is
|
---|
9781 | *** used, and then restart.
|
---|
9782 |
|
---|
9783 | _LT_EOF
|
---|
9784 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
---|
9785 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
9786 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
|
---|
9787 | else
|
---|
9788 | ld_shlibs=no
|
---|
9789 | fi
|
---|
9790 | ;;
|
---|
9791 |
|
---|
9792 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
|
---|
9793 | case `$LD -v 2>&1` in
|
---|
9794 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
|
---|
9795 | ld_shlibs=no
|
---|
9796 | cat <<_LT_EOF 1>&2
|
---|
9797 |
|
---|
9798 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
|
---|
9799 | *** reliably create shared libraries on SCO systems. Therefore, libtool
|
---|
9800 | *** is disabling shared libraries support. We urge you to upgrade GNU
|
---|
9801 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
|
---|
9802 | *** your PATH or compiler configuration so that the native linker is
|
---|
9803 | *** used, and then restart.
|
---|
9804 |
|
---|
9805 | _LT_EOF
|
---|
9806 | ;;
|
---|
9807 | *)
|
---|
9808 | # For security reasons, it is highly recommended that you always
|
---|
9809 | # use absolute paths for naming shared libraries, and exclude the
|
---|
9810 | # DT_RUNPATH tag from executables and libraries. But doing so
|
---|
9811 | # requires that you compile everything twice, which is a pain.
|
---|
9812 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
---|
9813 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
---|
9814 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
9815 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
|
---|
9816 | else
|
---|
9817 | ld_shlibs=no
|
---|
9818 | fi
|
---|
9819 | ;;
|
---|
9820 | esac
|
---|
9821 | ;;
|
---|
9822 |
|
---|
9823 | sunos4*)
|
---|
9824 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
---|
9825 | wlarc=
|
---|
9826 | hardcode_direct=yes
|
---|
9827 | hardcode_shlibpath_var=no
|
---|
9828 | ;;
|
---|
9829 |
|
---|
9830 | *)
|
---|
9831 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
---|
9832 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
9833 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
|
---|
9834 | else
|
---|
9835 | ld_shlibs=no
|
---|
9836 | fi
|
---|
9837 | ;;
|
---|
9838 | esac
|
---|
9839 |
|
---|
9840 | if test no = "$ld_shlibs"; then
|
---|
9841 | runpath_var=
|
---|
9842 | hardcode_libdir_flag_spec=
|
---|
9843 | export_dynamic_flag_spec=
|
---|
9844 | whole_archive_flag_spec=
|
---|
9845 | fi
|
---|
9846 | else
|
---|
9847 | # PORTME fill in a description of your system's linker (not GNU ld)
|
---|
9848 | case $host_os in
|
---|
9849 | aix3*)
|
---|
9850 | allow_undefined_flag=unsupported
|
---|
9851 | always_export_symbols=yes
|
---|
9852 | 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'
|
---|
9853 | # Note: this linker hardcodes the directories in LIBPATH if there
|
---|
9854 | # are no directories specified by -L.
|
---|
9855 | hardcode_minus_L=yes
|
---|
9856 | if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
|
---|
9857 | # Neither direct hardcoding nor static linking is supported with a
|
---|
9858 | # broken collect2.
|
---|
9859 | hardcode_direct=unsupported
|
---|
9860 | fi
|
---|
9861 | ;;
|
---|
9862 |
|
---|
9863 | aix[4-9]*)
|
---|
9864 | if test ia64 = "$host_cpu"; then
|
---|
9865 | # On IA64, the linker does run time linking by default, so we don't
|
---|
9866 | # have to do anything special.
|
---|
9867 | aix_use_runtimelinking=no
|
---|
9868 | exp_sym_flag='-Bexport'
|
---|
9869 | no_entry_flag=
|
---|
9870 | else
|
---|
9871 | # If we're using GNU nm, then we don't want the "-C" option.
|
---|
9872 | # -C means demangle to GNU nm, but means don't demangle to AIX nm.
|
---|
9873 | # Without the "-l" option, or with the "-B" option, AIX nm treats
|
---|
9874 | # weak defined symbols like other global defined symbols, whereas
|
---|
9875 | # GNU nm marks them as "W".
|
---|
9876 | # While the 'weak' keyword is ignored in the Export File, we need
|
---|
9877 | # it in the Import File for the 'aix-soname' feature, so we have
|
---|
9878 | # to replace the "-B" option with "-P" for AIX nm.
|
---|
9879 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
|
---|
9880 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
|
---|
9881 | else
|
---|
9882 | export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
|
---|
9883 | fi
|
---|
9884 | aix_use_runtimelinking=no
|
---|
9885 |
|
---|
9886 | # Test if we are trying to use run time linking or normal
|
---|
9887 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
---|
9888 | # have runtime linking enabled, and use it for executables.
|
---|
9889 | # For shared libraries, we enable/disable runtime linking
|
---|
9890 | # depending on the kind of the shared library created -
|
---|
9891 | # when "with_aix_soname,aix_use_runtimelinking" is:
|
---|
9892 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
|
---|
9893 | # "aix,yes" lib.so shared, rtl:yes, for executables
|
---|
9894 | # lib.a static archive
|
---|
9895 | # "both,no" lib.so.V(shr.o) shared, rtl:yes
|
---|
9896 | # lib.a(lib.so.V) shared, rtl:no, for executables
|
---|
9897 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
|
---|
9898 | # lib.a(lib.so.V) shared, rtl:no
|
---|
9899 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
|
---|
9900 | # lib.a static archive
|
---|
9901 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
|
---|
9902 | for ld_flag in $LDFLAGS; do
|
---|
9903 | if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
|
---|
9904 | aix_use_runtimelinking=yes
|
---|
9905 | break
|
---|
9906 | fi
|
---|
9907 | done
|
---|
9908 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
|
---|
9909 | # With aix-soname=svr4, we create the lib.so.V shared archives only,
|
---|
9910 | # so we don't have lib.a shared libs to link our executables.
|
---|
9911 | # We have to force runtime linking in this case.
|
---|
9912 | aix_use_runtimelinking=yes
|
---|
9913 | LDFLAGS="$LDFLAGS -Wl,-brtl"
|
---|
9914 | fi
|
---|
9915 | ;;
|
---|
9916 | esac
|
---|
9917 |
|
---|
9918 | exp_sym_flag='-bexport'
|
---|
9919 | no_entry_flag='-bnoentry'
|
---|
9920 | fi
|
---|
9921 |
|
---|
9922 | # When large executables or shared objects are built, AIX ld can
|
---|
9923 | # have problems creating the table of contents. If linking a library
|
---|
9924 | # or program results in "error TOC overflow" add -mminimal-toc to
|
---|
9925 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
---|
9926 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
---|
9927 |
|
---|
9928 | archive_cmds=''
|
---|
9929 | hardcode_direct=yes
|
---|
9930 | hardcode_direct_absolute=yes
|
---|
9931 | hardcode_libdir_separator=':'
|
---|
9932 | link_all_deplibs=yes
|
---|
9933 | file_list_spec='$wl-f,'
|
---|
9934 | case $with_aix_soname,$aix_use_runtimelinking in
|
---|
9935 | aix,*) ;; # traditional, no import file
|
---|
9936 | svr4,* | *,yes) # use import file
|
---|
9937 | # The Import File defines what to hardcode.
|
---|
9938 | hardcode_direct=no
|
---|
9939 | hardcode_direct_absolute=no
|
---|
9940 | ;;
|
---|
9941 | esac
|
---|
9942 |
|
---|
9943 | if test yes = "$GCC"; then
|
---|
9944 | case $host_os in aix4.[012]|aix4.[012].*)
|
---|
9945 | # We only want to do this on AIX 4.2 and lower, the check
|
---|
9946 | # below for broken collect2 doesn't work under 4.3+
|
---|
9947 | collect2name=`$CC -print-prog-name=collect2`
|
---|
9948 | if test -f "$collect2name" &&
|
---|
9949 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null
|
---|
9950 | then
|
---|
9951 | # We have reworked collect2
|
---|
9952 | :
|
---|
9953 | else
|
---|
9954 | # We have old collect2
|
---|
9955 | hardcode_direct=unsupported
|
---|
9956 | # It fails to find uninstalled libraries when the uninstalled
|
---|
9957 | # path is not listed in the libpath. Setting hardcode_minus_L
|
---|
9958 | # to unsupported forces relinking
|
---|
9959 | hardcode_minus_L=yes
|
---|
9960 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
9961 | hardcode_libdir_separator=
|
---|
9962 | fi
|
---|
9963 | ;;
|
---|
9964 | esac
|
---|
9965 | shared_flag='-shared'
|
---|
9966 | if test yes = "$aix_use_runtimelinking"; then
|
---|
9967 | shared_flag="$shared_flag "'$wl-G'
|
---|
9968 | fi
|
---|
9969 | # Need to ensure runtime linking is disabled for the traditional
|
---|
9970 | # shared library, or the linker may eventually find shared libraries
|
---|
9971 | # /with/ Import File - we do not want to mix them.
|
---|
9972 | shared_flag_aix='-shared'
|
---|
9973 | shared_flag_svr4='-shared $wl-G'
|
---|
9974 | else
|
---|
9975 | # not using gcc
|
---|
9976 | if test ia64 = "$host_cpu"; then
|
---|
9977 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
---|
9978 | # chokes on -Wl,-G. The following line is correct:
|
---|
9979 | shared_flag='-G'
|
---|
9980 | else
|
---|
9981 | if test yes = "$aix_use_runtimelinking"; then
|
---|
9982 | shared_flag='$wl-G'
|
---|
9983 | else
|
---|
9984 | shared_flag='$wl-bM:SRE'
|
---|
9985 | fi
|
---|
9986 | shared_flag_aix='$wl-bM:SRE'
|
---|
9987 | shared_flag_svr4='$wl-G'
|
---|
9988 | fi
|
---|
9989 | fi
|
---|
9990 |
|
---|
9991 | export_dynamic_flag_spec='$wl-bexpall'
|
---|
9992 | # It seems that -bexpall does not export symbols beginning with
|
---|
9993 | # underscore (_), so it is better to generate a list of symbols to export.
|
---|
9994 | always_export_symbols=yes
|
---|
9995 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
|
---|
9996 | # Warning - without using the other runtime loading flags (-brtl),
|
---|
9997 | # -berok will link without error, but may produce a broken library.
|
---|
9998 | allow_undefined_flag='-berok'
|
---|
9999 | # Determine the default libpath from the value encoded in an
|
---|
10000 | # empty executable.
|
---|
10001 | if test set = "${lt_cv_aix_libpath+set}"; then
|
---|
10002 | aix_libpath=$lt_cv_aix_libpath
|
---|
10003 | else
|
---|
10004 | if ${lt_cv_aix_libpath_+:} false; then :
|
---|
10005 | $as_echo_n "(cached) " >&6
|
---|
10006 | else
|
---|
10007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
10008 | /* end confdefs.h. */
|
---|
10009 |
|
---|
10010 | int
|
---|
10011 | main ()
|
---|
10012 | {
|
---|
10013 |
|
---|
10014 | ;
|
---|
10015 | return 0;
|
---|
10016 | }
|
---|
10017 | _ACEOF
|
---|
10018 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
10019 |
|
---|
10020 | lt_aix_libpath_sed='
|
---|
10021 | /Import File Strings/,/^$/ {
|
---|
10022 | /^0/ {
|
---|
10023 | s/^0 *\([^ ]*\) *$/\1/
|
---|
10024 | p
|
---|
10025 | }
|
---|
10026 | }'
|
---|
10027 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
---|
10028 | # Check for a 64-bit object if we didn't find anything.
|
---|
10029 | if test -z "$lt_cv_aix_libpath_"; then
|
---|
10030 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
---|
10031 | fi
|
---|
10032 | fi
|
---|
10033 | rm -f core conftest.err conftest.$ac_objext \
|
---|
10034 | conftest$ac_exeext conftest.$ac_ext
|
---|
10035 | if test -z "$lt_cv_aix_libpath_"; then
|
---|
10036 | lt_cv_aix_libpath_=/usr/lib:/lib
|
---|
10037 | fi
|
---|
10038 |
|
---|
10039 | fi
|
---|
10040 |
|
---|
10041 | aix_libpath=$lt_cv_aix_libpath_
|
---|
10042 | fi
|
---|
10043 |
|
---|
10044 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
|
---|
10045 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
|
---|
10046 | else
|
---|
10047 | if test ia64 = "$host_cpu"; then
|
---|
10048 | hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
|
---|
10049 | allow_undefined_flag="-z nodefs"
|
---|
10050 | 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"
|
---|
10051 | else
|
---|
10052 | # Determine the default libpath from the value encoded in an
|
---|
10053 | # empty executable.
|
---|
10054 | if test set = "${lt_cv_aix_libpath+set}"; then
|
---|
10055 | aix_libpath=$lt_cv_aix_libpath
|
---|
10056 | else
|
---|
10057 | if ${lt_cv_aix_libpath_+:} false; then :
|
---|
10058 | $as_echo_n "(cached) " >&6
|
---|
10059 | else
|
---|
10060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
10061 | /* end confdefs.h. */
|
---|
10062 |
|
---|
10063 | int
|
---|
10064 | main ()
|
---|
10065 | {
|
---|
10066 |
|
---|
10067 | ;
|
---|
10068 | return 0;
|
---|
10069 | }
|
---|
10070 | _ACEOF
|
---|
10071 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
10072 |
|
---|
10073 | lt_aix_libpath_sed='
|
---|
10074 | /Import File Strings/,/^$/ {
|
---|
10075 | /^0/ {
|
---|
10076 | s/^0 *\([^ ]*\) *$/\1/
|
---|
10077 | p
|
---|
10078 | }
|
---|
10079 | }'
|
---|
10080 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
---|
10081 | # Check for a 64-bit object if we didn't find anything.
|
---|
10082 | if test -z "$lt_cv_aix_libpath_"; then
|
---|
10083 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
---|
10084 | fi
|
---|
10085 | fi
|
---|
10086 | rm -f core conftest.err conftest.$ac_objext \
|
---|
10087 | conftest$ac_exeext conftest.$ac_ext
|
---|
10088 | if test -z "$lt_cv_aix_libpath_"; then
|
---|
10089 | lt_cv_aix_libpath_=/usr/lib:/lib
|
---|
10090 | fi
|
---|
10091 |
|
---|
10092 | fi
|
---|
10093 |
|
---|
10094 | aix_libpath=$lt_cv_aix_libpath_
|
---|
10095 | fi
|
---|
10096 |
|
---|
10097 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
|
---|
10098 | # Warning - without using the other run time loading flags,
|
---|
10099 | # -berok will link without error, but may produce a broken library.
|
---|
10100 | no_undefined_flag=' $wl-bernotok'
|
---|
10101 | allow_undefined_flag=' $wl-berok'
|
---|
10102 | if test yes = "$with_gnu_ld"; then
|
---|
10103 | # We only use this code for GNU lds that support --whole-archive.
|
---|
10104 | whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
|
---|
10105 | else
|
---|
10106 | # Exported symbols can be pulled into shared objects from archives
|
---|
10107 | whole_archive_flag_spec='$convenience'
|
---|
10108 | fi
|
---|
10109 | archive_cmds_need_lc=yes
|
---|
10110 | archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
|
---|
10111 | # -brtl affects multiple linker settings, -berok does not and is overridden later
|
---|
10112 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
|
---|
10113 | if test svr4 != "$with_aix_soname"; then
|
---|
10114 | # This is similar to how AIX traditionally builds its shared libraries.
|
---|
10115 | archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
|
---|
10116 | fi
|
---|
10117 | if test aix != "$with_aix_soname"; then
|
---|
10118 | archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
|
---|
10119 | else
|
---|
10120 | # used by -dlpreopen to get the symbols
|
---|
10121 | archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
|
---|
10122 | fi
|
---|
10123 | archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
|
---|
10124 | fi
|
---|
10125 | fi
|
---|
10126 | ;;
|
---|
10127 |
|
---|
10128 | amigaos*)
|
---|
10129 | case $host_cpu in
|
---|
10130 | powerpc)
|
---|
10131 | # see comment about AmigaOS4 .so support
|
---|
10132 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
10133 | archive_expsym_cmds=''
|
---|
10134 | ;;
|
---|
10135 | m68k)
|
---|
10136 | 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)'
|
---|
10137 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
10138 | hardcode_minus_L=yes
|
---|
10139 | ;;
|
---|
10140 | esac
|
---|
10141 | ;;
|
---|
10142 |
|
---|
10143 | bsdi[45]*)
|
---|
10144 | export_dynamic_flag_spec=-rdynamic
|
---|
10145 | ;;
|
---|
10146 |
|
---|
10147 | cygwin* | mingw* | pw32* | cegcc*)
|
---|
10148 | # When not using gcc, we currently assume that we are using
|
---|
10149 | # Microsoft Visual C++.
|
---|
10150 | # hardcode_libdir_flag_spec is actually meaningless, as there is
|
---|
10151 | # no search path for DLLs.
|
---|
10152 | case $cc_basename in
|
---|
10153 | cl*)
|
---|
10154 | # Native MSVC
|
---|
10155 | hardcode_libdir_flag_spec=' '
|
---|
10156 | allow_undefined_flag=unsupported
|
---|
10157 | always_export_symbols=yes
|
---|
10158 | file_list_spec='@'
|
---|
10159 | # Tell ltmain to make .lib files, not .a files.
|
---|
10160 | libext=lib
|
---|
10161 | # Tell ltmain to make .dll files, not .so files.
|
---|
10162 | shrext_cmds=.dll
|
---|
10163 | # FIXME: Setting linknames here is a bad hack.
|
---|
10164 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
|
---|
10165 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
|
---|
10166 | cp "$export_symbols" "$output_objdir/$soname.def";
|
---|
10167 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
|
---|
10168 | else
|
---|
10169 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
|
---|
10170 | fi~
|
---|
10171 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
|
---|
10172 | linknames='
|
---|
10173 | # The linker will not automatically build a static lib if we build a DLL.
|
---|
10174 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
|
---|
10175 | enable_shared_with_static_runtimes=yes
|
---|
10176 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
|
---|
10177 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
---|
10178 | # Don't use ranlib
|
---|
10179 | old_postinstall_cmds='chmod 644 $oldlib'
|
---|
10180 | postlink_cmds='lt_outputfile="@OUTPUT@"~
|
---|
10181 | lt_tool_outputfile="@TOOL_OUTPUT@"~
|
---|
10182 | case $lt_outputfile in
|
---|
10183 | *.exe|*.EXE) ;;
|
---|
10184 | *)
|
---|
10185 | lt_outputfile=$lt_outputfile.exe
|
---|
10186 | lt_tool_outputfile=$lt_tool_outputfile.exe
|
---|
10187 | ;;
|
---|
10188 | esac~
|
---|
10189 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
|
---|
10190 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
|
---|
10191 | $RM "$lt_outputfile.manifest";
|
---|
10192 | fi'
|
---|
10193 | ;;
|
---|
10194 | *)
|
---|
10195 | # Assume MSVC wrapper
|
---|
10196 | hardcode_libdir_flag_spec=' '
|
---|
10197 | allow_undefined_flag=unsupported
|
---|
10198 | # Tell ltmain to make .lib files, not .a files.
|
---|
10199 | libext=lib
|
---|
10200 | # Tell ltmain to make .dll files, not .so files.
|
---|
10201 | shrext_cmds=.dll
|
---|
10202 | # FIXME: Setting linknames here is a bad hack.
|
---|
10203 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
|
---|
10204 | # The linker will automatically build a .lib file if we build a DLL.
|
---|
10205 | old_archive_from_new_cmds='true'
|
---|
10206 | # FIXME: Should let the user specify the lib program.
|
---|
10207 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
---|
10208 | enable_shared_with_static_runtimes=yes
|
---|
10209 | ;;
|
---|
10210 | esac
|
---|
10211 | ;;
|
---|
10212 |
|
---|
10213 | darwin* | rhapsody*)
|
---|
10214 |
|
---|
10215 |
|
---|
10216 | archive_cmds_need_lc=no
|
---|
10217 | hardcode_direct=no
|
---|
10218 | hardcode_automatic=yes
|
---|
10219 | hardcode_shlibpath_var=unsupported
|
---|
10220 | if test yes = "$lt_cv_ld_force_load"; then
|
---|
10221 | 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\"`'
|
---|
10222 |
|
---|
10223 | else
|
---|
10224 | whole_archive_flag_spec=''
|
---|
10225 | fi
|
---|
10226 | link_all_deplibs=yes
|
---|
10227 | allow_undefined_flag=$_lt_dar_allow_undefined
|
---|
10228 | case $cc_basename in
|
---|
10229 | ifort*|nagfor*) _lt_dar_can_shared=yes ;;
|
---|
10230 | *) _lt_dar_can_shared=$GCC ;;
|
---|
10231 | esac
|
---|
10232 | if test yes = "$_lt_dar_can_shared"; then
|
---|
10233 | output_verbose_link_cmd=func_echo_all
|
---|
10234 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
|
---|
10235 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
|
---|
10236 | 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"
|
---|
10237 | 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"
|
---|
10238 |
|
---|
10239 | else
|
---|
10240 | ld_shlibs=no
|
---|
10241 | fi
|
---|
10242 |
|
---|
10243 | ;;
|
---|
10244 |
|
---|
10245 | dgux*)
|
---|
10246 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
10247 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
10248 | hardcode_shlibpath_var=no
|
---|
10249 | ;;
|
---|
10250 |
|
---|
10251 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
---|
10252 | # support. Future versions do this automatically, but an explicit c++rt0.o
|
---|
10253 | # does not break anything, and helps significantly (at the cost of a little
|
---|
10254 | # extra space).
|
---|
10255 | freebsd2.2*)
|
---|
10256 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
|
---|
10257 | hardcode_libdir_flag_spec='-R$libdir'
|
---|
10258 | hardcode_direct=yes
|
---|
10259 | hardcode_shlibpath_var=no
|
---|
10260 | ;;
|
---|
10261 |
|
---|
10262 | # Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
---|
10263 | freebsd2.*)
|
---|
10264 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
---|
10265 | hardcode_direct=yes
|
---|
10266 | hardcode_minus_L=yes
|
---|
10267 | hardcode_shlibpath_var=no
|
---|
10268 | ;;
|
---|
10269 |
|
---|
10270 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
---|
10271 | freebsd* | dragonfly*)
|
---|
10272 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
---|
10273 | hardcode_libdir_flag_spec='-R$libdir'
|
---|
10274 | hardcode_direct=yes
|
---|
10275 | hardcode_shlibpath_var=no
|
---|
10276 | ;;
|
---|
10277 |
|
---|
10278 | hpux9*)
|
---|
10279 | if test yes = "$GCC"; then
|
---|
10280 | archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
|
---|
10281 | else
|
---|
10282 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
|
---|
10283 | fi
|
---|
10284 | hardcode_libdir_flag_spec='$wl+b $wl$libdir'
|
---|
10285 | hardcode_libdir_separator=:
|
---|
10286 | hardcode_direct=yes
|
---|
10287 |
|
---|
10288 | # hardcode_minus_L: Not really in the search PATH,
|
---|
10289 | # but as the default location of the library.
|
---|
10290 | hardcode_minus_L=yes
|
---|
10291 | export_dynamic_flag_spec='$wl-E'
|
---|
10292 | ;;
|
---|
10293 |
|
---|
10294 | hpux10*)
|
---|
10295 | if test yes,no = "$GCC,$with_gnu_ld"; then
|
---|
10296 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
---|
10297 | else
|
---|
10298 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
---|
10299 | fi
|
---|
10300 | if test no = "$with_gnu_ld"; then
|
---|
10301 | hardcode_libdir_flag_spec='$wl+b $wl$libdir'
|
---|
10302 | hardcode_libdir_separator=:
|
---|
10303 | hardcode_direct=yes
|
---|
10304 | hardcode_direct_absolute=yes
|
---|
10305 | export_dynamic_flag_spec='$wl-E'
|
---|
10306 | # hardcode_minus_L: Not really in the search PATH,
|
---|
10307 | # but as the default location of the library.
|
---|
10308 | hardcode_minus_L=yes
|
---|
10309 | fi
|
---|
10310 | ;;
|
---|
10311 |
|
---|
10312 | hpux11*)
|
---|
10313 | if test yes,no = "$GCC,$with_gnu_ld"; then
|
---|
10314 | case $host_cpu in
|
---|
10315 | hppa*64*)
|
---|
10316 | archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
10317 | ;;
|
---|
10318 | ia64*)
|
---|
10319 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
---|
10320 | ;;
|
---|
10321 | *)
|
---|
10322 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
---|
10323 | ;;
|
---|
10324 | esac
|
---|
10325 | else
|
---|
10326 | case $host_cpu in
|
---|
10327 | hppa*64*)
|
---|
10328 | archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
10329 | ;;
|
---|
10330 | ia64*)
|
---|
10331 | archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
---|
10332 | ;;
|
---|
10333 | *)
|
---|
10334 |
|
---|
10335 | # Older versions of the 11.00 compiler do not understand -b yet
|
---|
10336 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
|
---|
10337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
|
---|
10338 | $as_echo_n "checking if $CC understands -b... " >&6; }
|
---|
10339 | if ${lt_cv_prog_compiler__b+:} false; then :
|
---|
10340 | $as_echo_n "(cached) " >&6
|
---|
10341 | else
|
---|
10342 | lt_cv_prog_compiler__b=no
|
---|
10343 | save_LDFLAGS=$LDFLAGS
|
---|
10344 | LDFLAGS="$LDFLAGS -b"
|
---|
10345 | echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
---|
10346 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
---|
10347 | # The linker can only warn and ignore the option if not recognized
|
---|
10348 | # So say no if there are warnings
|
---|
10349 | if test -s conftest.err; then
|
---|
10350 | # Append any errors to the config.log.
|
---|
10351 | cat conftest.err 1>&5
|
---|
10352 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
|
---|
10353 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
---|
10354 | if diff conftest.exp conftest.er2 >/dev/null; then
|
---|
10355 | lt_cv_prog_compiler__b=yes
|
---|
10356 | fi
|
---|
10357 | else
|
---|
10358 | lt_cv_prog_compiler__b=yes
|
---|
10359 | fi
|
---|
10360 | fi
|
---|
10361 | $RM -r conftest*
|
---|
10362 | LDFLAGS=$save_LDFLAGS
|
---|
10363 |
|
---|
10364 | fi
|
---|
10365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
|
---|
10366 | $as_echo "$lt_cv_prog_compiler__b" >&6; }
|
---|
10367 |
|
---|
10368 | if test yes = "$lt_cv_prog_compiler__b"; then
|
---|
10369 | archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
---|
10370 | else
|
---|
10371 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
---|
10372 | fi
|
---|
10373 |
|
---|
10374 | ;;
|
---|
10375 | esac
|
---|
10376 | fi
|
---|
10377 | if test no = "$with_gnu_ld"; then
|
---|
10378 | hardcode_libdir_flag_spec='$wl+b $wl$libdir'
|
---|
10379 | hardcode_libdir_separator=:
|
---|
10380 |
|
---|
10381 | case $host_cpu in
|
---|
10382 | hppa*64*|ia64*)
|
---|
10383 | hardcode_direct=no
|
---|
10384 | hardcode_shlibpath_var=no
|
---|
10385 | ;;
|
---|
10386 | *)
|
---|
10387 | hardcode_direct=yes
|
---|
10388 | hardcode_direct_absolute=yes
|
---|
10389 | export_dynamic_flag_spec='$wl-E'
|
---|
10390 |
|
---|
10391 | # hardcode_minus_L: Not really in the search PATH,
|
---|
10392 | # but as the default location of the library.
|
---|
10393 | hardcode_minus_L=yes
|
---|
10394 | ;;
|
---|
10395 | esac
|
---|
10396 | fi
|
---|
10397 | ;;
|
---|
10398 |
|
---|
10399 | irix5* | irix6* | nonstopux*)
|
---|
10400 | if test yes = "$GCC"; then
|
---|
10401 | 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'
|
---|
10402 | # Try to use the -exported_symbol ld option, if it does not
|
---|
10403 | # work, assume that -exports_file does not work either and
|
---|
10404 | # implicitly export all symbols.
|
---|
10405 | # This should be the same for all languages, so no per-tag cache variable.
|
---|
10406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
|
---|
10407 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
|
---|
10408 | if ${lt_cv_irix_exported_symbol+:} false; then :
|
---|
10409 | $as_echo_n "(cached) " >&6
|
---|
10410 | else
|
---|
10411 | save_LDFLAGS=$LDFLAGS
|
---|
10412 | LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
|
---|
10413 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
10414 | /* end confdefs.h. */
|
---|
10415 | int foo (void) { return 0; }
|
---|
10416 | _ACEOF
|
---|
10417 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
10418 | lt_cv_irix_exported_symbol=yes
|
---|
10419 | else
|
---|
10420 | lt_cv_irix_exported_symbol=no
|
---|
10421 | fi
|
---|
10422 | rm -f core conftest.err conftest.$ac_objext \
|
---|
10423 | conftest$ac_exeext conftest.$ac_ext
|
---|
10424 | LDFLAGS=$save_LDFLAGS
|
---|
10425 | fi
|
---|
10426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
|
---|
10427 | $as_echo "$lt_cv_irix_exported_symbol" >&6; }
|
---|
10428 | if test yes = "$lt_cv_irix_exported_symbol"; then
|
---|
10429 | 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'
|
---|
10430 | fi
|
---|
10431 | else
|
---|
10432 | 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'
|
---|
10433 | 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'
|
---|
10434 | fi
|
---|
10435 | archive_cmds_need_lc='no'
|
---|
10436 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
---|
10437 | hardcode_libdir_separator=:
|
---|
10438 | inherit_rpath=yes
|
---|
10439 | link_all_deplibs=yes
|
---|
10440 | ;;
|
---|
10441 |
|
---|
10442 | linux*)
|
---|
10443 | case $cc_basename in
|
---|
10444 | tcc*)
|
---|
10445 | # Fabrice Bellard et al's Tiny C Compiler
|
---|
10446 | ld_shlibs=yes
|
---|
10447 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
---|
10448 | ;;
|
---|
10449 | esac
|
---|
10450 | ;;
|
---|
10451 |
|
---|
10452 | netbsd*)
|
---|
10453 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
---|
10454 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
---|
10455 | else
|
---|
10456 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
|
---|
10457 | fi
|
---|
10458 | hardcode_libdir_flag_spec='-R$libdir'
|
---|
10459 | hardcode_direct=yes
|
---|
10460 | hardcode_shlibpath_var=no
|
---|
10461 | ;;
|
---|
10462 |
|
---|
10463 | newsos6)
|
---|
10464 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
10465 | hardcode_direct=yes
|
---|
10466 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
---|
10467 | hardcode_libdir_separator=:
|
---|
10468 | hardcode_shlibpath_var=no
|
---|
10469 | ;;
|
---|
10470 |
|
---|
10471 | *nto* | *qnx*)
|
---|
10472 | ;;
|
---|
10473 |
|
---|
10474 | openbsd* | bitrig*)
|
---|
10475 | if test -f /usr/libexec/ld.so; then
|
---|
10476 | hardcode_direct=yes
|
---|
10477 | hardcode_shlibpath_var=no
|
---|
10478 | hardcode_direct_absolute=yes
|
---|
10479 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
|
---|
10480 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
---|
10481 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
|
---|
10482 | hardcode_libdir_flag_spec='$wl-rpath,$libdir'
|
---|
10483 | export_dynamic_flag_spec='$wl-E'
|
---|
10484 | else
|
---|
10485 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
---|
10486 | hardcode_libdir_flag_spec='$wl-rpath,$libdir'
|
---|
10487 | fi
|
---|
10488 | else
|
---|
10489 | ld_shlibs=no
|
---|
10490 | fi
|
---|
10491 | ;;
|
---|
10492 |
|
---|
10493 | os2*)
|
---|
10494 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
10495 | hardcode_minus_L=yes
|
---|
10496 | allow_undefined_flag=unsupported
|
---|
10497 | shrext_cmds=.dll
|
---|
10498 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
|
---|
10499 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
|
---|
10500 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
|
---|
10501 | $ECHO EXPORTS >> $output_objdir/$libname.def~
|
---|
10502 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
|
---|
10503 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
|
---|
10504 | emximp -o $lib $output_objdir/$libname.def'
|
---|
10505 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
|
---|
10506 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
|
---|
10507 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
|
---|
10508 | $ECHO EXPORTS >> $output_objdir/$libname.def~
|
---|
10509 | prefix_cmds="$SED"~
|
---|
10510 | if test EXPORTS = "`$SED 1q $export_symbols`"; then
|
---|
10511 | prefix_cmds="$prefix_cmds -e 1d";
|
---|
10512 | fi~
|
---|
10513 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
|
---|
10514 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
|
---|
10515 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
|
---|
10516 | emximp -o $lib $output_objdir/$libname.def'
|
---|
10517 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
|
---|
10518 | enable_shared_with_static_runtimes=yes
|
---|
10519 | ;;
|
---|
10520 |
|
---|
10521 | osf3*)
|
---|
10522 | if test yes = "$GCC"; then
|
---|
10523 | allow_undefined_flag=' $wl-expect_unresolved $wl\*'
|
---|
10524 | 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'
|
---|
10525 | else
|
---|
10526 | allow_undefined_flag=' -expect_unresolved \*'
|
---|
10527 | 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'
|
---|
10528 | fi
|
---|
10529 | archive_cmds_need_lc='no'
|
---|
10530 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
---|
10531 | hardcode_libdir_separator=:
|
---|
10532 | ;;
|
---|
10533 |
|
---|
10534 | osf4* | osf5*) # as osf3* with the addition of -msym flag
|
---|
10535 | if test yes = "$GCC"; then
|
---|
10536 | allow_undefined_flag=' $wl-expect_unresolved $wl\*'
|
---|
10537 | 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'
|
---|
10538 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
---|
10539 | else
|
---|
10540 | allow_undefined_flag=' -expect_unresolved \*'
|
---|
10541 | 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'
|
---|
10542 | 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~
|
---|
10543 | $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'
|
---|
10544 |
|
---|
10545 | # Both c and cxx compiler support -rpath directly
|
---|
10546 | hardcode_libdir_flag_spec='-rpath $libdir'
|
---|
10547 | fi
|
---|
10548 | archive_cmds_need_lc='no'
|
---|
10549 | hardcode_libdir_separator=:
|
---|
10550 | ;;
|
---|
10551 |
|
---|
10552 | solaris*)
|
---|
10553 | no_undefined_flag=' -z defs'
|
---|
10554 | if test yes = "$GCC"; then
|
---|
10555 | wlarc='$wl'
|
---|
10556 | archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
10557 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
---|
10558 | $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'
|
---|
10559 | else
|
---|
10560 | case `$CC -V 2>&1` in
|
---|
10561 | *"Compilers 5.0"*)
|
---|
10562 | wlarc=''
|
---|
10563 | archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
10564 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
---|
10565 | $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
|
---|
10566 | ;;
|
---|
10567 | *)
|
---|
10568 | wlarc='$wl'
|
---|
10569 | archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
10570 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
---|
10571 | $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
---|
10572 | ;;
|
---|
10573 | esac
|
---|
10574 | fi
|
---|
10575 | hardcode_libdir_flag_spec='-R$libdir'
|
---|
10576 | hardcode_shlibpath_var=no
|
---|
10577 | case $host_os in
|
---|
10578 | solaris2.[0-5] | solaris2.[0-5].*) ;;
|
---|
10579 | *)
|
---|
10580 | # The compiler driver will combine and reorder linker options,
|
---|
10581 | # but understands '-z linker_flag'. GCC discards it without '$wl',
|
---|
10582 | # but is careful enough not to reorder.
|
---|
10583 | # Supported since Solaris 2.6 (maybe 2.5.1?)
|
---|
10584 | if test yes = "$GCC"; then
|
---|
10585 | whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
|
---|
10586 | else
|
---|
10587 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
|
---|
10588 | fi
|
---|
10589 | ;;
|
---|
10590 | esac
|
---|
10591 | link_all_deplibs=yes
|
---|
10592 | ;;
|
---|
10593 |
|
---|
10594 | sunos4*)
|
---|
10595 | if test sequent = "$host_vendor"; then
|
---|
10596 | # Use $CC to link under sequent, because it throws in some extra .o
|
---|
10597 | # files that make .init and .fini sections work.
|
---|
10598 | archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
10599 | else
|
---|
10600 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
|
---|
10601 | fi
|
---|
10602 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
10603 | hardcode_direct=yes
|
---|
10604 | hardcode_minus_L=yes
|
---|
10605 | hardcode_shlibpath_var=no
|
---|
10606 | ;;
|
---|
10607 |
|
---|
10608 | sysv4)
|
---|
10609 | case $host_vendor in
|
---|
10610 | sni)
|
---|
10611 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
10612 | hardcode_direct=yes # is this really true???
|
---|
10613 | ;;
|
---|
10614 | siemens)
|
---|
10615 | ## LD is ld it makes a PLAMLIB
|
---|
10616 | ## CC just makes a GrossModule.
|
---|
10617 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
---|
10618 | reload_cmds='$CC -r -o $output$reload_objs'
|
---|
10619 | hardcode_direct=no
|
---|
10620 | ;;
|
---|
10621 | motorola)
|
---|
10622 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
10623 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie
|
---|
10624 | ;;
|
---|
10625 | esac
|
---|
10626 | runpath_var='LD_RUN_PATH'
|
---|
10627 | hardcode_shlibpath_var=no
|
---|
10628 | ;;
|
---|
10629 |
|
---|
10630 | sysv4.3*)
|
---|
10631 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
10632 | hardcode_shlibpath_var=no
|
---|
10633 | export_dynamic_flag_spec='-Bexport'
|
---|
10634 | ;;
|
---|
10635 |
|
---|
10636 | sysv4*MP*)
|
---|
10637 | if test -d /usr/nec; then
|
---|
10638 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
10639 | hardcode_shlibpath_var=no
|
---|
10640 | runpath_var=LD_RUN_PATH
|
---|
10641 | hardcode_runpath_var=yes
|
---|
10642 | ld_shlibs=yes
|
---|
10643 | fi
|
---|
10644 | ;;
|
---|
10645 |
|
---|
10646 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
|
---|
10647 | no_undefined_flag='$wl-z,text'
|
---|
10648 | archive_cmds_need_lc=no
|
---|
10649 | hardcode_shlibpath_var=no
|
---|
10650 | runpath_var='LD_RUN_PATH'
|
---|
10651 |
|
---|
10652 | if test yes = "$GCC"; then
|
---|
10653 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
10654 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
10655 | else
|
---|
10656 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
10657 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
10658 | fi
|
---|
10659 | ;;
|
---|
10660 |
|
---|
10661 | sysv5* | sco3.2v5* | sco5v6*)
|
---|
10662 | # Note: We CANNOT use -z defs as we might desire, because we do not
|
---|
10663 | # link with -lc, and that would cause any symbols used from libc to
|
---|
10664 | # always be unresolved, which means just about no library would
|
---|
10665 | # ever link correctly. If we're not using GNU ld we use -z text
|
---|
10666 | # though, which does catch some bad symbols but isn't as heavy-handed
|
---|
10667 | # as -z defs.
|
---|
10668 | no_undefined_flag='$wl-z,text'
|
---|
10669 | allow_undefined_flag='$wl-z,nodefs'
|
---|
10670 | archive_cmds_need_lc=no
|
---|
10671 | hardcode_shlibpath_var=no
|
---|
10672 | hardcode_libdir_flag_spec='$wl-R,$libdir'
|
---|
10673 | hardcode_libdir_separator=':'
|
---|
10674 | link_all_deplibs=yes
|
---|
10675 | export_dynamic_flag_spec='$wl-Bexport'
|
---|
10676 | runpath_var='LD_RUN_PATH'
|
---|
10677 |
|
---|
10678 | if test yes = "$GCC"; then
|
---|
10679 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
10680 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
10681 | else
|
---|
10682 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
10683 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
10684 | fi
|
---|
10685 | ;;
|
---|
10686 |
|
---|
10687 | uts4*)
|
---|
10688 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
10689 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
10690 | hardcode_shlibpath_var=no
|
---|
10691 | ;;
|
---|
10692 |
|
---|
10693 | *)
|
---|
10694 | ld_shlibs=no
|
---|
10695 | ;;
|
---|
10696 | esac
|
---|
10697 |
|
---|
10698 | if test sni = "$host_vendor"; then
|
---|
10699 | case $host in
|
---|
10700 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
---|
10701 | export_dynamic_flag_spec='$wl-Blargedynsym'
|
---|
10702 | ;;
|
---|
10703 | esac
|
---|
10704 | fi
|
---|
10705 | fi
|
---|
10706 |
|
---|
10707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
|
---|
10708 | $as_echo "$ld_shlibs" >&6; }
|
---|
10709 | test no = "$ld_shlibs" && can_build_shared=no
|
---|
10710 |
|
---|
10711 | with_gnu_ld=$with_gnu_ld
|
---|
10712 |
|
---|
10713 |
|
---|
10714 |
|
---|
10715 |
|
---|
10716 |
|
---|
10717 |
|
---|
10718 |
|
---|
10719 |
|
---|
10720 |
|
---|
10721 |
|
---|
10722 |
|
---|
10723 |
|
---|
10724 |
|
---|
10725 |
|
---|
10726 |
|
---|
10727 | #
|
---|
10728 | # Do we need to explicitly link libc?
|
---|
10729 | #
|
---|
10730 | case "x$archive_cmds_need_lc" in
|
---|
10731 | x|xyes)
|
---|
10732 | # Assume -lc should be added
|
---|
10733 | archive_cmds_need_lc=yes
|
---|
10734 |
|
---|
10735 | if test yes,yes = "$GCC,$enable_shared"; then
|
---|
10736 | case $archive_cmds in
|
---|
10737 | *'~'*)
|
---|
10738 | # FIXME: we may have to deal with multi-command sequences.
|
---|
10739 | ;;
|
---|
10740 | '$CC '*)
|
---|
10741 | # Test whether the compiler implicitly links with -lc since on some
|
---|
10742 | # systems, -lgcc has to come before -lc. If gcc already passes -lc
|
---|
10743 | # to ld, don't add -lc before -lgcc.
|
---|
10744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
|
---|
10745 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
|
---|
10746 | if ${lt_cv_archive_cmds_need_lc+:} false; then :
|
---|
10747 | $as_echo_n "(cached) " >&6
|
---|
10748 | else
|
---|
10749 | $RM conftest*
|
---|
10750 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
---|
10751 |
|
---|
10752 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
---|
10753 | (eval $ac_compile) 2>&5
|
---|
10754 | ac_status=$?
|
---|
10755 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
10756 | test $ac_status = 0; } 2>conftest.err; then
|
---|
10757 | soname=conftest
|
---|
10758 | lib=conftest
|
---|
10759 | libobjs=conftest.$ac_objext
|
---|
10760 | deplibs=
|
---|
10761 | wl=$lt_prog_compiler_wl
|
---|
10762 | pic_flag=$lt_prog_compiler_pic
|
---|
10763 | compiler_flags=-v
|
---|
10764 | linker_flags=-v
|
---|
10765 | verstring=
|
---|
10766 | output_objdir=.
|
---|
10767 | libname=conftest
|
---|
10768 | lt_save_allow_undefined_flag=$allow_undefined_flag
|
---|
10769 | allow_undefined_flag=
|
---|
10770 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
|
---|
10771 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
|
---|
10772 | ac_status=$?
|
---|
10773 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
10774 | test $ac_status = 0; }
|
---|
10775 | then
|
---|
10776 | lt_cv_archive_cmds_need_lc=no
|
---|
10777 | else
|
---|
10778 | lt_cv_archive_cmds_need_lc=yes
|
---|
10779 | fi
|
---|
10780 | allow_undefined_flag=$lt_save_allow_undefined_flag
|
---|
10781 | else
|
---|
10782 | cat conftest.err 1>&5
|
---|
10783 | fi
|
---|
10784 | $RM conftest*
|
---|
10785 |
|
---|
10786 | fi
|
---|
10787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
|
---|
10788 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
|
---|
10789 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
|
---|
10790 | ;;
|
---|
10791 | esac
|
---|
10792 | fi
|
---|
10793 | ;;
|
---|
10794 | esac
|
---|
10795 |
|
---|
10796 |
|
---|
10797 |
|
---|
10798 |
|
---|
10799 |
|
---|
10800 |
|
---|
10801 |
|
---|
10802 |
|
---|
10803 |
|
---|
10804 |
|
---|
10805 |
|
---|
10806 |
|
---|
10807 |
|
---|
10808 |
|
---|
10809 |
|
---|
10810 |
|
---|
10811 |
|
---|
10812 |
|
---|
10813 |
|
---|
10814 |
|
---|
10815 |
|
---|
10816 |
|
---|
10817 |
|
---|
10818 |
|
---|
10819 |
|
---|
10820 |
|
---|
10821 |
|
---|
10822 |
|
---|
10823 |
|
---|
10824 |
|
---|
10825 |
|
---|
10826 |
|
---|
10827 |
|
---|
10828 |
|
---|
10829 |
|
---|
10830 |
|
---|
10831 |
|
---|
10832 |
|
---|
10833 |
|
---|
10834 |
|
---|
10835 |
|
---|
10836 |
|
---|
10837 |
|
---|
10838 |
|
---|
10839 |
|
---|
10840 |
|
---|
10841 |
|
---|
10842 |
|
---|
10843 |
|
---|
10844 |
|
---|
10845 |
|
---|
10846 |
|
---|
10847 |
|
---|
10848 |
|
---|
10849 |
|
---|
10850 |
|
---|
10851 |
|
---|
10852 |
|
---|
10853 |
|
---|
10854 |
|
---|
10855 |
|
---|
10856 |
|
---|
10857 |
|
---|
10858 |
|
---|
10859 |
|
---|
10860 |
|
---|
10861 |
|
---|
10862 |
|
---|
10863 |
|
---|
10864 |
|
---|
10865 |
|
---|
10866 |
|
---|
10867 |
|
---|
10868 |
|
---|
10869 |
|
---|
10870 |
|
---|
10871 |
|
---|
10872 |
|
---|
10873 |
|
---|
10874 |
|
---|
10875 |
|
---|
10876 |
|
---|
10877 |
|
---|
10878 |
|
---|
10879 |
|
---|
10880 |
|
---|
10881 |
|
---|
10882 |
|
---|
10883 |
|
---|
10884 |
|
---|
10885 |
|
---|
10886 |
|
---|
10887 |
|
---|
10888 |
|
---|
10889 |
|
---|
10890 |
|
---|
10891 |
|
---|
10892 |
|
---|
10893 |
|
---|
10894 |
|
---|
10895 |
|
---|
10896 |
|
---|
10897 |
|
---|
10898 |
|
---|
10899 |
|
---|
10900 |
|
---|
10901 |
|
---|
10902 |
|
---|
10903 |
|
---|
10904 |
|
---|
10905 |
|
---|
10906 |
|
---|
10907 |
|
---|
10908 |
|
---|
10909 |
|
---|
10910 |
|
---|
10911 |
|
---|
10912 |
|
---|
10913 |
|
---|
10914 |
|
---|
10915 |
|
---|
10916 |
|
---|
10917 |
|
---|
10918 |
|
---|
10919 |
|
---|
10920 |
|
---|
10921 |
|
---|
10922 |
|
---|
10923 |
|
---|
10924 |
|
---|
10925 |
|
---|
10926 |
|
---|
10927 |
|
---|
10928 |
|
---|
10929 |
|
---|
10930 |
|
---|
10931 |
|
---|
10932 |
|
---|
10933 |
|
---|
10934 |
|
---|
10935 |
|
---|
10936 |
|
---|
10937 |
|
---|
10938 |
|
---|
10939 |
|
---|
10940 |
|
---|
10941 |
|
---|
10942 |
|
---|
10943 |
|
---|
10944 |
|
---|
10945 |
|
---|
10946 |
|
---|
10947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
|
---|
10948 | $as_echo_n "checking dynamic linker characteristics... " >&6; }
|
---|
10949 |
|
---|
10950 | if test yes = "$GCC"; then
|
---|
10951 | case $host_os in
|
---|
10952 | darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
|
---|
10953 | *) lt_awk_arg='/^libraries:/' ;;
|
---|
10954 | esac
|
---|
10955 | case $host_os in
|
---|
10956 | mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
|
---|
10957 | *) lt_sed_strip_eq='s|=/|/|g' ;;
|
---|
10958 | esac
|
---|
10959 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
|
---|
10960 | case $lt_search_path_spec in
|
---|
10961 | *\;*)
|
---|
10962 | # if the path contains ";" then we assume it to be the separator
|
---|
10963 | # otherwise default to the standard path separator (i.e. ":") - it is
|
---|
10964 | # assumed that no part of a normal pathname contains ";" but that should
|
---|
10965 | # okay in the real world where ";" in dirpaths is itself problematic.
|
---|
10966 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
|
---|
10967 | ;;
|
---|
10968 | *)
|
---|
10969 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
|
---|
10970 | ;;
|
---|
10971 | esac
|
---|
10972 | # Ok, now we have the path, separated by spaces, we can step through it
|
---|
10973 | # and add multilib dir if necessary...
|
---|
10974 | lt_tmp_lt_search_path_spec=
|
---|
10975 | lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
|
---|
10976 | # ...but if some path component already ends with the multilib dir we assume
|
---|
10977 | # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
|
---|
10978 | case "$lt_multi_os_dir; $lt_search_path_spec " in
|
---|
10979 | "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
|
---|
10980 | lt_multi_os_dir=
|
---|
10981 | ;;
|
---|
10982 | esac
|
---|
10983 | for lt_sys_path in $lt_search_path_spec; do
|
---|
10984 | if test -d "$lt_sys_path$lt_multi_os_dir"; then
|
---|
10985 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
|
---|
10986 | elif test -n "$lt_multi_os_dir"; then
|
---|
10987 | test -d "$lt_sys_path" && \
|
---|
10988 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
|
---|
10989 | fi
|
---|
10990 | done
|
---|
10991 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
|
---|
10992 | BEGIN {RS = " "; FS = "/|\n";} {
|
---|
10993 | lt_foo = "";
|
---|
10994 | lt_count = 0;
|
---|
10995 | for (lt_i = NF; lt_i > 0; lt_i--) {
|
---|
10996 | if ($lt_i != "" && $lt_i != ".") {
|
---|
10997 | if ($lt_i == "..") {
|
---|
10998 | lt_count++;
|
---|
10999 | } else {
|
---|
11000 | if (lt_count == 0) {
|
---|
11001 | lt_foo = "/" $lt_i lt_foo;
|
---|
11002 | } else {
|
---|
11003 | lt_count--;
|
---|
11004 | }
|
---|
11005 | }
|
---|
11006 | }
|
---|
11007 | }
|
---|
11008 | if (lt_foo != "") { lt_freq[lt_foo]++; }
|
---|
11009 | if (lt_freq[lt_foo] == 1) { print lt_foo; }
|
---|
11010 | }'`
|
---|
11011 | # AWK program above erroneously prepends '/' to C:/dos/paths
|
---|
11012 | # for these hosts.
|
---|
11013 | case $host_os in
|
---|
11014 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
|
---|
11015 | $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
|
---|
11016 | esac
|
---|
11017 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
|
---|
11018 | else
|
---|
11019 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
---|
11020 | fi
|
---|
11021 | library_names_spec=
|
---|
11022 | libname_spec='lib$name'
|
---|
11023 | soname_spec=
|
---|
11024 | shrext_cmds=.so
|
---|
11025 | postinstall_cmds=
|
---|
11026 | postuninstall_cmds=
|
---|
11027 | finish_cmds=
|
---|
11028 | finish_eval=
|
---|
11029 | shlibpath_var=
|
---|
11030 | shlibpath_overrides_runpath=unknown
|
---|
11031 | version_type=none
|
---|
11032 | dynamic_linker="$host_os ld.so"
|
---|
11033 | sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
---|
11034 | need_lib_prefix=unknown
|
---|
11035 | hardcode_into_libs=no
|
---|
11036 |
|
---|
11037 | # when you set need_version to no, make sure it does not cause -set_version
|
---|
11038 | # flags to be left without arguments
|
---|
11039 | need_version=unknown
|
---|
11040 |
|
---|
11041 |
|
---|
11042 |
|
---|
11043 | case $host_os in
|
---|
11044 | aix3*)
|
---|
11045 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
11046 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
|
---|
11047 | shlibpath_var=LIBPATH
|
---|
11048 |
|
---|
11049 | # AIX 3 has no versioning support, so we append a major version to the name.
|
---|
11050 | soname_spec='$libname$release$shared_ext$major'
|
---|
11051 | ;;
|
---|
11052 |
|
---|
11053 | aix[4-9]*)
|
---|
11054 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
11055 | need_lib_prefix=no
|
---|
11056 | need_version=no
|
---|
11057 | hardcode_into_libs=yes
|
---|
11058 | if test ia64 = "$host_cpu"; then
|
---|
11059 | # AIX 5 supports IA64
|
---|
11060 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
|
---|
11061 | shlibpath_var=LD_LIBRARY_PATH
|
---|
11062 | else
|
---|
11063 | # With GCC up to 2.95.x, collect2 would create an import file
|
---|
11064 | # for dependence libraries. The import file would start with
|
---|
11065 | # the line '#! .'. This would cause the generated library to
|
---|
11066 | # depend on '.', always an invalid library. This was fixed in
|
---|
11067 | # development snapshots of GCC prior to 3.0.
|
---|
11068 | case $host_os in
|
---|
11069 | aix4 | aix4.[01] | aix4.[01].*)
|
---|
11070 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
---|
11071 | echo ' yes '
|
---|
11072 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
|
---|
11073 | :
|
---|
11074 | else
|
---|
11075 | can_build_shared=no
|
---|
11076 | fi
|
---|
11077 | ;;
|
---|
11078 | esac
|
---|
11079 | # Using Import Files as archive members, it is possible to support
|
---|
11080 | # filename-based versioning of shared library archives on AIX. While
|
---|
11081 | # this would work for both with and without runtime linking, it will
|
---|
11082 | # prevent static linking of such archives. So we do filename-based
|
---|
11083 | # shared library versioning with .so extension only, which is used
|
---|
11084 | # when both runtime linking and shared linking is enabled.
|
---|
11085 | # Unfortunately, runtime linking may impact performance, so we do
|
---|
11086 | # not want this to be the default eventually. Also, we use the
|
---|
11087 | # versioned .so libs for executables only if there is the -brtl
|
---|
11088 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
|
---|
11089 | # To allow for filename-based versioning support, we need to create
|
---|
11090 | # libNAME.so.V as an archive file, containing:
|
---|
11091 | # *) an Import File, referring to the versioned filename of the
|
---|
11092 | # archive as well as the shared archive member, telling the
|
---|
11093 | # bitwidth (32 or 64) of that shared object, and providing the
|
---|
11094 | # list of exported symbols of that shared object, eventually
|
---|
11095 | # decorated with the 'weak' keyword
|
---|
11096 | # *) the shared object with the F_LOADONLY flag set, to really avoid
|
---|
11097 | # it being seen by the linker.
|
---|
11098 | # At run time we better use the real file rather than another symlink,
|
---|
11099 | # but for link time we create the symlink libNAME.so -> libNAME.so.V
|
---|
11100 |
|
---|
11101 | case $with_aix_soname,$aix_use_runtimelinking in
|
---|
11102 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
|
---|
11103 | # soname into executable. Probably we can add versioning support to
|
---|
11104 | # collect2, so additional links can be useful in future.
|
---|
11105 | aix,yes) # traditional libtool
|
---|
11106 | dynamic_linker='AIX unversionable lib.so'
|
---|
11107 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so
|
---|
11108 | # instead of lib<name>.a to let people know that these are not
|
---|
11109 | # typical AIX shared libraries.
|
---|
11110 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
11111 | ;;
|
---|
11112 | aix,no) # traditional AIX only
|
---|
11113 | dynamic_linker='AIX lib.a(lib.so.V)'
|
---|
11114 | # We preserve .a as extension for shared libraries through AIX4.2
|
---|
11115 | # and later when we are not doing run time linking.
|
---|
11116 | library_names_spec='$libname$release.a $libname.a'
|
---|
11117 | soname_spec='$libname$release$shared_ext$major'
|
---|
11118 | ;;
|
---|
11119 | svr4,*) # full svr4 only
|
---|
11120 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
|
---|
11121 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
|
---|
11122 | # We do not specify a path in Import Files, so LIBPATH fires.
|
---|
11123 | shlibpath_overrides_runpath=yes
|
---|
11124 | ;;
|
---|
11125 | *,yes) # both, prefer svr4
|
---|
11126 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
|
---|
11127 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
|
---|
11128 | # unpreferred sharedlib libNAME.a needs extra handling
|
---|
11129 | postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
|
---|
11130 | postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
|
---|
11131 | # We do not specify a path in Import Files, so LIBPATH fires.
|
---|
11132 | shlibpath_overrides_runpath=yes
|
---|
11133 | ;;
|
---|
11134 | *,no) # both, prefer aix
|
---|
11135 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
|
---|
11136 | library_names_spec='$libname$release.a $libname.a'
|
---|
11137 | soname_spec='$libname$release$shared_ext$major'
|
---|
11138 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
|
---|
11139 | postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
|
---|
11140 | postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
|
---|
11141 | ;;
|
---|
11142 | esac
|
---|
11143 | shlibpath_var=LIBPATH
|
---|
11144 | fi
|
---|
11145 | ;;
|
---|
11146 |
|
---|
11147 | amigaos*)
|
---|
11148 | case $host_cpu in
|
---|
11149 | powerpc)
|
---|
11150 | # Since July 2007 AmigaOS4 officially supports .so libraries.
|
---|
11151 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
|
---|
11152 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
11153 | ;;
|
---|
11154 | m68k)
|
---|
11155 | library_names_spec='$libname.ixlibrary $libname.a'
|
---|
11156 | # Create ${libname}_ixlibrary.a entries in /sys/libs.
|
---|
11157 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
|
---|
11158 | ;;
|
---|
11159 | esac
|
---|
11160 | ;;
|
---|
11161 |
|
---|
11162 | beos*)
|
---|
11163 | library_names_spec='$libname$shared_ext'
|
---|
11164 | dynamic_linker="$host_os ld.so"
|
---|
11165 | shlibpath_var=LIBRARY_PATH
|
---|
11166 | ;;
|
---|
11167 |
|
---|
11168 | bsdi[45]*)
|
---|
11169 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
11170 | need_version=no
|
---|
11171 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
11172 | soname_spec='$libname$release$shared_ext$major'
|
---|
11173 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
---|
11174 | shlibpath_var=LD_LIBRARY_PATH
|
---|
11175 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
---|
11176 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
---|
11177 | # the default ld.so.conf also contains /usr/contrib/lib and
|
---|
11178 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
---|
11179 | # libtool to hard-code these into programs
|
---|
11180 | ;;
|
---|
11181 |
|
---|
11182 | cygwin* | mingw* | pw32* | cegcc*)
|
---|
11183 | version_type=windows
|
---|
11184 | shrext_cmds=.dll
|
---|
11185 | need_version=no
|
---|
11186 | need_lib_prefix=no
|
---|
11187 |
|
---|
11188 | case $GCC,$cc_basename in
|
---|
11189 | yes,*)
|
---|
11190 | # gcc
|
---|
11191 | library_names_spec='$libname.dll.a'
|
---|
11192 | # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
---|
11193 | postinstall_cmds='base_file=`basename \$file`~
|
---|
11194 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
|
---|
11195 | dldir=$destdir/`dirname \$dlpath`~
|
---|
11196 | test -d \$dldir || mkdir -p \$dldir~
|
---|
11197 | $install_prog $dir/$dlname \$dldir/$dlname~
|
---|
11198 | chmod a+x \$dldir/$dlname~
|
---|
11199 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
|
---|
11200 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
|
---|
11201 | fi'
|
---|
11202 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
---|
11203 | dlpath=$dir/\$dldll~
|
---|
11204 | $RM \$dlpath'
|
---|
11205 | shlibpath_overrides_runpath=yes
|
---|
11206 |
|
---|
11207 | case $host_os in
|
---|
11208 | cygwin*)
|
---|
11209 | # Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
---|
11210 | soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
|
---|
11211 |
|
---|
11212 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
|
---|
11213 | ;;
|
---|
11214 | mingw* | cegcc*)
|
---|
11215 | # MinGW DLLs use traditional 'lib' prefix
|
---|
11216 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
|
---|
11217 | ;;
|
---|
11218 | pw32*)
|
---|
11219 | # pw32 DLLs use 'pw' prefix rather than 'lib'
|
---|
11220 | library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
|
---|
11221 | ;;
|
---|
11222 | esac
|
---|
11223 | dynamic_linker='Win32 ld.exe'
|
---|
11224 | ;;
|
---|
11225 |
|
---|
11226 | *,cl*)
|
---|
11227 | # Native MSVC
|
---|
11228 | libname_spec='$name'
|
---|
11229 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
|
---|
11230 | library_names_spec='$libname.dll.lib'
|
---|
11231 |
|
---|
11232 | case $build_os in
|
---|
11233 | mingw*)
|
---|
11234 | sys_lib_search_path_spec=
|
---|
11235 | lt_save_ifs=$IFS
|
---|
11236 | IFS=';'
|
---|
11237 | for lt_path in $LIB
|
---|
11238 | do
|
---|
11239 | IFS=$lt_save_ifs
|
---|
11240 | # Let DOS variable expansion print the short 8.3 style file name.
|
---|
11241 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
|
---|
11242 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
|
---|
11243 | done
|
---|
11244 | IFS=$lt_save_ifs
|
---|
11245 | # Convert to MSYS style.
|
---|
11246 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
|
---|
11247 | ;;
|
---|
11248 | cygwin*)
|
---|
11249 | # Convert to unix form, then to dos form, then back to unix form
|
---|
11250 | # but this time dos style (no spaces!) so that the unix form looks
|
---|
11251 | # like /cygdrive/c/PROGRA~1:/cygdr...
|
---|
11252 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
|
---|
11253 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
|
---|
11254 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
---|
11255 | ;;
|
---|
11256 | *)
|
---|
11257 | sys_lib_search_path_spec=$LIB
|
---|
11258 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
|
---|
11259 | # It is most probably a Windows format PATH.
|
---|
11260 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
---|
11261 | else
|
---|
11262 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
---|
11263 | fi
|
---|
11264 | # FIXME: find the short name or the path components, as spaces are
|
---|
11265 | # common. (e.g. "Program Files" -> "PROGRA~1")
|
---|
11266 | ;;
|
---|
11267 | esac
|
---|
11268 |
|
---|
11269 | # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
---|
11270 | postinstall_cmds='base_file=`basename \$file`~
|
---|
11271 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
|
---|
11272 | dldir=$destdir/`dirname \$dlpath`~
|
---|
11273 | test -d \$dldir || mkdir -p \$dldir~
|
---|
11274 | $install_prog $dir/$dlname \$dldir/$dlname'
|
---|
11275 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
---|
11276 | dlpath=$dir/\$dldll~
|
---|
11277 | $RM \$dlpath'
|
---|
11278 | shlibpath_overrides_runpath=yes
|
---|
11279 | dynamic_linker='Win32 link.exe'
|
---|
11280 | ;;
|
---|
11281 |
|
---|
11282 | *)
|
---|
11283 | # Assume MSVC wrapper
|
---|
11284 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
|
---|
11285 | dynamic_linker='Win32 ld.exe'
|
---|
11286 | ;;
|
---|
11287 | esac
|
---|
11288 | # FIXME: first we should search . and the directory the executable is in
|
---|
11289 | shlibpath_var=PATH
|
---|
11290 | ;;
|
---|
11291 |
|
---|
11292 | darwin* | rhapsody*)
|
---|
11293 | dynamic_linker="$host_os dyld"
|
---|
11294 | version_type=darwin
|
---|
11295 | need_lib_prefix=no
|
---|
11296 | need_version=no
|
---|
11297 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
|
---|
11298 | soname_spec='$libname$release$major$shared_ext'
|
---|
11299 | shlibpath_overrides_runpath=yes
|
---|
11300 | shlibpath_var=DYLD_LIBRARY_PATH
|
---|
11301 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
---|
11302 |
|
---|
11303 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
|
---|
11304 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
---|
11305 | ;;
|
---|
11306 |
|
---|
11307 | dgux*)
|
---|
11308 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
11309 | need_lib_prefix=no
|
---|
11310 | need_version=no
|
---|
11311 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
11312 | soname_spec='$libname$release$shared_ext$major'
|
---|
11313 | shlibpath_var=LD_LIBRARY_PATH
|
---|
11314 | ;;
|
---|
11315 |
|
---|
11316 | freebsd* | dragonfly*)
|
---|
11317 | # DragonFly does not have aout. When/if they implement a new
|
---|
11318 | # versioning mechanism, adjust this.
|
---|
11319 | if test -x /usr/bin/objformat; then
|
---|
11320 | objformat=`/usr/bin/objformat`
|
---|
11321 | else
|
---|
11322 | case $host_os in
|
---|
11323 | freebsd[23].*) objformat=aout ;;
|
---|
11324 | *) objformat=elf ;;
|
---|
11325 | esac
|
---|
11326 | fi
|
---|
11327 | version_type=freebsd-$objformat
|
---|
11328 | case $version_type in
|
---|
11329 | freebsd-elf*)
|
---|
11330 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
11331 | soname_spec='$libname$release$shared_ext$major'
|
---|
11332 | need_version=no
|
---|
11333 | need_lib_prefix=no
|
---|
11334 | ;;
|
---|
11335 | freebsd-*)
|
---|
11336 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
|
---|
11337 | need_version=yes
|
---|
11338 | ;;
|
---|
11339 | esac
|
---|
11340 | shlibpath_var=LD_LIBRARY_PATH
|
---|
11341 | case $host_os in
|
---|
11342 | freebsd2.*)
|
---|
11343 | shlibpath_overrides_runpath=yes
|
---|
11344 | ;;
|
---|
11345 | freebsd3.[01]* | freebsdelf3.[01]*)
|
---|
11346 | shlibpath_overrides_runpath=yes
|
---|
11347 | hardcode_into_libs=yes
|
---|
11348 | ;;
|
---|
11349 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
|
---|
11350 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
|
---|
11351 | shlibpath_overrides_runpath=no
|
---|
11352 | hardcode_into_libs=yes
|
---|
11353 | ;;
|
---|
11354 | *) # from 4.6 on, and DragonFly
|
---|
11355 | shlibpath_overrides_runpath=yes
|
---|
11356 | hardcode_into_libs=yes
|
---|
11357 | ;;
|
---|
11358 | esac
|
---|
11359 | ;;
|
---|
11360 |
|
---|
11361 | haiku*)
|
---|
11362 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
11363 | need_lib_prefix=no
|
---|
11364 | need_version=no
|
---|
11365 | dynamic_linker="$host_os runtime_loader"
|
---|
11366 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
11367 | soname_spec='$libname$release$shared_ext$major'
|
---|
11368 | shlibpath_var=LIBRARY_PATH
|
---|
11369 | shlibpath_overrides_runpath=no
|
---|
11370 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
|
---|
11371 | hardcode_into_libs=yes
|
---|
11372 | ;;
|
---|
11373 |
|
---|
11374 | hpux9* | hpux10* | hpux11*)
|
---|
11375 | # Give a soname corresponding to the major version so that dld.sl refuses to
|
---|
11376 | # link against other versions.
|
---|
11377 | version_type=sunos
|
---|
11378 | need_lib_prefix=no
|
---|
11379 | need_version=no
|
---|
11380 | case $host_cpu in
|
---|
11381 | ia64*)
|
---|
11382 | shrext_cmds='.so'
|
---|
11383 | hardcode_into_libs=yes
|
---|
11384 | dynamic_linker="$host_os dld.so"
|
---|
11385 | shlibpath_var=LD_LIBRARY_PATH
|
---|
11386 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
---|
11387 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
11388 | soname_spec='$libname$release$shared_ext$major'
|
---|
11389 | if test 32 = "$HPUX_IA64_MODE"; then
|
---|
11390 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
---|
11391 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32
|
---|
11392 | else
|
---|
11393 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
---|
11394 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64
|
---|
11395 | fi
|
---|
11396 | ;;
|
---|
11397 | hppa*64*)
|
---|
11398 | shrext_cmds='.sl'
|
---|
11399 | hardcode_into_libs=yes
|
---|
11400 | dynamic_linker="$host_os dld.sl"
|
---|
11401 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
---|
11402 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
---|
11403 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
11404 | soname_spec='$libname$release$shared_ext$major'
|
---|
11405 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
---|
11406 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
---|
11407 | ;;
|
---|
11408 | *)
|
---|
11409 | shrext_cmds='.sl'
|
---|
11410 | dynamic_linker="$host_os dld.sl"
|
---|
11411 | shlibpath_var=SHLIB_PATH
|
---|
11412 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
---|
11413 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
11414 | soname_spec='$libname$release$shared_ext$major'
|
---|
11415 | ;;
|
---|
11416 | esac
|
---|
11417 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
|
---|
11418 | postinstall_cmds='chmod 555 $lib'
|
---|
11419 | # or fails outright, so override atomically:
|
---|
11420 | install_override_mode=555
|
---|
11421 | ;;
|
---|
11422 |
|
---|
11423 | interix[3-9]*)
|
---|
11424 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
11425 | need_lib_prefix=no
|
---|
11426 | need_version=no
|
---|
11427 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
11428 | soname_spec='$libname$release$shared_ext$major'
|
---|
11429 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
|
---|
11430 | shlibpath_var=LD_LIBRARY_PATH
|
---|
11431 | shlibpath_overrides_runpath=no
|
---|
11432 | hardcode_into_libs=yes
|
---|
11433 | ;;
|
---|
11434 |
|
---|
11435 | irix5* | irix6* | nonstopux*)
|
---|
11436 | case $host_os in
|
---|
11437 | nonstopux*) version_type=nonstopux ;;
|
---|
11438 | *)
|
---|
11439 | if test yes = "$lt_cv_prog_gnu_ld"; then
|
---|
11440 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
11441 | else
|
---|
11442 | version_type=irix
|
---|
11443 | fi ;;
|
---|
11444 | esac
|
---|
11445 | need_lib_prefix=no
|
---|
11446 | need_version=no
|
---|
11447 | soname_spec='$libname$release$shared_ext$major'
|
---|
11448 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
|
---|
11449 | case $host_os in
|
---|
11450 | irix5* | nonstopux*)
|
---|
11451 | libsuff= shlibsuff=
|
---|
11452 | ;;
|
---|
11453 | *)
|
---|
11454 | case $LD in # libtool.m4 will add one of these switches to LD
|
---|
11455 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
---|
11456 | libsuff= shlibsuff= libmagic=32-bit;;
|
---|
11457 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
---|
11458 | libsuff=32 shlibsuff=N32 libmagic=N32;;
|
---|
11459 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
---|
11460 | libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
---|
11461 | *) libsuff= shlibsuff= libmagic=never-match;;
|
---|
11462 | esac
|
---|
11463 | ;;
|
---|
11464 | esac
|
---|
11465 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
---|
11466 | shlibpath_overrides_runpath=no
|
---|
11467 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
|
---|
11468 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
|
---|
11469 | hardcode_into_libs=yes
|
---|
11470 | ;;
|
---|
11471 |
|
---|
11472 | # No shared lib support for Linux oldld, aout, or coff.
|
---|
11473 | linux*oldld* | linux*aout* | linux*coff*)
|
---|
11474 | dynamic_linker=no
|
---|
11475 | ;;
|
---|
11476 |
|
---|
11477 | linux*android*)
|
---|
11478 | version_type=none # Android doesn't support versioned libraries.
|
---|
11479 | need_lib_prefix=no
|
---|
11480 | need_version=no
|
---|
11481 | library_names_spec='$libname$release$shared_ext'
|
---|
11482 | soname_spec='$libname$release$shared_ext'
|
---|
11483 | finish_cmds=
|
---|
11484 | shlibpath_var=LD_LIBRARY_PATH
|
---|
11485 | shlibpath_overrides_runpath=yes
|
---|
11486 |
|
---|
11487 | # This implies no fast_install, which is unacceptable.
|
---|
11488 | # Some rework will be needed to allow for fast_install
|
---|
11489 | # before this can be enabled.
|
---|
11490 | hardcode_into_libs=yes
|
---|
11491 |
|
---|
11492 | dynamic_linker='Android linker'
|
---|
11493 | # Don't embed -rpath directories since the linker doesn't support them.
|
---|
11494 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
11495 | ;;
|
---|
11496 |
|
---|
11497 | # This must be glibc/ELF.
|
---|
11498 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
|
---|
11499 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
11500 | need_lib_prefix=no
|
---|
11501 | need_version=no
|
---|
11502 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
11503 | soname_spec='$libname$release$shared_ext$major'
|
---|
11504 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
---|
11505 | shlibpath_var=LD_LIBRARY_PATH
|
---|
11506 | shlibpath_overrides_runpath=no
|
---|
11507 |
|
---|
11508 | # Some binutils ld are patched to set DT_RUNPATH
|
---|
11509 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
|
---|
11510 | $as_echo_n "(cached) " >&6
|
---|
11511 | else
|
---|
11512 | lt_cv_shlibpath_overrides_runpath=no
|
---|
11513 | save_LDFLAGS=$LDFLAGS
|
---|
11514 | save_libdir=$libdir
|
---|
11515 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
|
---|
11516 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
|
---|
11517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
11518 | /* end confdefs.h. */
|
---|
11519 |
|
---|
11520 | int
|
---|
11521 | main ()
|
---|
11522 | {
|
---|
11523 |
|
---|
11524 | ;
|
---|
11525 | return 0;
|
---|
11526 | }
|
---|
11527 | _ACEOF
|
---|
11528 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
11529 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
|
---|
11530 | lt_cv_shlibpath_overrides_runpath=yes
|
---|
11531 | fi
|
---|
11532 | fi
|
---|
11533 | rm -f core conftest.err conftest.$ac_objext \
|
---|
11534 | conftest$ac_exeext conftest.$ac_ext
|
---|
11535 | LDFLAGS=$save_LDFLAGS
|
---|
11536 | libdir=$save_libdir
|
---|
11537 |
|
---|
11538 | fi
|
---|
11539 |
|
---|
11540 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
|
---|
11541 |
|
---|
11542 | # This implies no fast_install, which is unacceptable.
|
---|
11543 | # Some rework will be needed to allow for fast_install
|
---|
11544 | # before this can be enabled.
|
---|
11545 | hardcode_into_libs=yes
|
---|
11546 |
|
---|
11547 | # Ideally, we could use ldconfig to report *all* directores which are
|
---|
11548 | # searched for libraries, however this is still not possible. Aside from not
|
---|
11549 | # being certain /sbin/ldconfig is available, command
|
---|
11550 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
|
---|
11551 | # even though it is searched at run-time. Try to do the best guess by
|
---|
11552 | # appending ld.so.conf contents (and includes) to the search path.
|
---|
11553 | if test -f /etc/ld.so.conf; then
|
---|
11554 | 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' ' '`
|
---|
11555 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
---|
11556 | fi
|
---|
11557 |
|
---|
11558 | # We used to test for /lib/ld.so.1 and disable shared libraries on
|
---|
11559 | # powerpc, because MkLinux only supported shared libraries with the
|
---|
11560 | # GNU dynamic linker. Since this was broken with cross compilers,
|
---|
11561 | # most powerpc-linux boxes support dynamic linking these days and
|
---|
11562 | # people can always --disable-shared, the test was removed, and we
|
---|
11563 | # assume the GNU/Linux dynamic linker is in use.
|
---|
11564 | dynamic_linker='GNU/Linux ld.so'
|
---|
11565 | ;;
|
---|
11566 |
|
---|
11567 | netbsd*)
|
---|
11568 | version_type=sunos
|
---|
11569 | need_lib_prefix=no
|
---|
11570 | need_version=no
|
---|
11571 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
---|
11572 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
|
---|
11573 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
---|
11574 | dynamic_linker='NetBSD (a.out) ld.so'
|
---|
11575 | else
|
---|
11576 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
11577 | soname_spec='$libname$release$shared_ext$major'
|
---|
11578 | dynamic_linker='NetBSD ld.elf_so'
|
---|
11579 | fi
|
---|
11580 | shlibpath_var=LD_LIBRARY_PATH
|
---|
11581 | shlibpath_overrides_runpath=yes
|
---|
11582 | hardcode_into_libs=yes
|
---|
11583 | ;;
|
---|
11584 |
|
---|
11585 | newsos6)
|
---|
11586 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
11587 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
11588 | shlibpath_var=LD_LIBRARY_PATH
|
---|
11589 | shlibpath_overrides_runpath=yes
|
---|
11590 | ;;
|
---|
11591 |
|
---|
11592 | *nto* | *qnx*)
|
---|
11593 | version_type=qnx
|
---|
11594 | need_lib_prefix=no
|
---|
11595 | need_version=no
|
---|
11596 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
11597 | soname_spec='$libname$release$shared_ext$major'
|
---|
11598 | shlibpath_var=LD_LIBRARY_PATH
|
---|
11599 | shlibpath_overrides_runpath=no
|
---|
11600 | hardcode_into_libs=yes
|
---|
11601 | dynamic_linker='ldqnx.so'
|
---|
11602 | ;;
|
---|
11603 |
|
---|
11604 | openbsd* | bitrig*)
|
---|
11605 | version_type=sunos
|
---|
11606 | sys_lib_dlsearch_path_spec=/usr/lib
|
---|
11607 | need_lib_prefix=no
|
---|
11608 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
|
---|
11609 | need_version=no
|
---|
11610 | else
|
---|
11611 | need_version=yes
|
---|
11612 | fi
|
---|
11613 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
|
---|
11614 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
---|
11615 | shlibpath_var=LD_LIBRARY_PATH
|
---|
11616 | shlibpath_overrides_runpath=yes
|
---|
11617 | ;;
|
---|
11618 |
|
---|
11619 | os2*)
|
---|
11620 | libname_spec='$name'
|
---|
11621 | version_type=windows
|
---|
11622 | shrext_cmds=.dll
|
---|
11623 | need_version=no
|
---|
11624 | need_lib_prefix=no
|
---|
11625 | # OS/2 can only load a DLL with a base name of 8 characters or less.
|
---|
11626 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
|
---|
11627 | v=$($ECHO $release$versuffix | tr -d .-);
|
---|
11628 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
|
---|
11629 | $ECHO $n$v`$shared_ext'
|
---|
11630 | library_names_spec='${libname}_dll.$libext'
|
---|
11631 | dynamic_linker='OS/2 ld.exe'
|
---|
11632 | shlibpath_var=BEGINLIBPATH
|
---|
11633 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
---|
11634 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
---|
11635 | postinstall_cmds='base_file=`basename \$file`~
|
---|
11636 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
|
---|
11637 | dldir=$destdir/`dirname \$dlpath`~
|
---|
11638 | test -d \$dldir || mkdir -p \$dldir~
|
---|
11639 | $install_prog $dir/$dlname \$dldir/$dlname~
|
---|
11640 | chmod a+x \$dldir/$dlname~
|
---|
11641 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
|
---|
11642 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
|
---|
11643 | fi'
|
---|
11644 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
|
---|
11645 | dlpath=$dir/\$dldll~
|
---|
11646 | $RM \$dlpath'
|
---|
11647 | ;;
|
---|
11648 |
|
---|
11649 | osf3* | osf4* | osf5*)
|
---|
11650 | version_type=osf
|
---|
11651 | need_lib_prefix=no
|
---|
11652 | need_version=no
|
---|
11653 | soname_spec='$libname$release$shared_ext$major'
|
---|
11654 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
11655 | shlibpath_var=LD_LIBRARY_PATH
|
---|
11656 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
---|
11657 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
---|
11658 | ;;
|
---|
11659 |
|
---|
11660 | rdos*)
|
---|
11661 | dynamic_linker=no
|
---|
11662 | ;;
|
---|
11663 |
|
---|
11664 | solaris*)
|
---|
11665 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
11666 | need_lib_prefix=no
|
---|
11667 | need_version=no
|
---|
11668 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
11669 | soname_spec='$libname$release$shared_ext$major'
|
---|
11670 | shlibpath_var=LD_LIBRARY_PATH
|
---|
11671 | shlibpath_overrides_runpath=yes
|
---|
11672 | hardcode_into_libs=yes
|
---|
11673 | # ldd complains unless libraries are executable
|
---|
11674 | postinstall_cmds='chmod +x $lib'
|
---|
11675 | ;;
|
---|
11676 |
|
---|
11677 | sunos4*)
|
---|
11678 | version_type=sunos
|
---|
11679 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
|
---|
11680 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
---|
11681 | shlibpath_var=LD_LIBRARY_PATH
|
---|
11682 | shlibpath_overrides_runpath=yes
|
---|
11683 | if test yes = "$with_gnu_ld"; then
|
---|
11684 | need_lib_prefix=no
|
---|
11685 | fi
|
---|
11686 | need_version=yes
|
---|
11687 | ;;
|
---|
11688 |
|
---|
11689 | sysv4 | sysv4.3*)
|
---|
11690 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
11691 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
11692 | soname_spec='$libname$release$shared_ext$major'
|
---|
11693 | shlibpath_var=LD_LIBRARY_PATH
|
---|
11694 | case $host_vendor in
|
---|
11695 | sni)
|
---|
11696 | shlibpath_overrides_runpath=no
|
---|
11697 | need_lib_prefix=no
|
---|
11698 | runpath_var=LD_RUN_PATH
|
---|
11699 | ;;
|
---|
11700 | siemens)
|
---|
11701 | need_lib_prefix=no
|
---|
11702 | ;;
|
---|
11703 | motorola)
|
---|
11704 | need_lib_prefix=no
|
---|
11705 | need_version=no
|
---|
11706 | shlibpath_overrides_runpath=no
|
---|
11707 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
---|
11708 | ;;
|
---|
11709 | esac
|
---|
11710 | ;;
|
---|
11711 |
|
---|
11712 | sysv4*MP*)
|
---|
11713 | if test -d /usr/nec; then
|
---|
11714 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
11715 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
|
---|
11716 | soname_spec='$libname$shared_ext.$major'
|
---|
11717 | shlibpath_var=LD_LIBRARY_PATH
|
---|
11718 | fi
|
---|
11719 | ;;
|
---|
11720 |
|
---|
11721 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
---|
11722 | version_type=sco
|
---|
11723 | need_lib_prefix=no
|
---|
11724 | need_version=no
|
---|
11725 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
|
---|
11726 | soname_spec='$libname$release$shared_ext$major'
|
---|
11727 | shlibpath_var=LD_LIBRARY_PATH
|
---|
11728 | shlibpath_overrides_runpath=yes
|
---|
11729 | hardcode_into_libs=yes
|
---|
11730 | if test yes = "$with_gnu_ld"; then
|
---|
11731 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
|
---|
11732 | else
|
---|
11733 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
|
---|
11734 | case $host_os in
|
---|
11735 | sco3.2v5*)
|
---|
11736 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
|
---|
11737 | ;;
|
---|
11738 | esac
|
---|
11739 | fi
|
---|
11740 | sys_lib_dlsearch_path_spec='/usr/lib'
|
---|
11741 | ;;
|
---|
11742 |
|
---|
11743 | tpf*)
|
---|
11744 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
|
---|
11745 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
11746 | need_lib_prefix=no
|
---|
11747 | need_version=no
|
---|
11748 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
11749 | shlibpath_var=LD_LIBRARY_PATH
|
---|
11750 | shlibpath_overrides_runpath=no
|
---|
11751 | hardcode_into_libs=yes
|
---|
11752 | ;;
|
---|
11753 |
|
---|
11754 | uts4*)
|
---|
11755 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
11756 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
11757 | soname_spec='$libname$release$shared_ext$major'
|
---|
11758 | shlibpath_var=LD_LIBRARY_PATH
|
---|
11759 | ;;
|
---|
11760 |
|
---|
11761 | *)
|
---|
11762 | dynamic_linker=no
|
---|
11763 | ;;
|
---|
11764 | esac
|
---|
11765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
|
---|
11766 | $as_echo "$dynamic_linker" >&6; }
|
---|
11767 | test no = "$dynamic_linker" && can_build_shared=no
|
---|
11768 |
|
---|
11769 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
---|
11770 | if test yes = "$GCC"; then
|
---|
11771 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
---|
11772 | fi
|
---|
11773 |
|
---|
11774 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
|
---|
11775 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
|
---|
11776 | fi
|
---|
11777 |
|
---|
11778 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
|
---|
11779 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
|
---|
11780 | fi
|
---|
11781 |
|
---|
11782 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
|
---|
11783 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
|
---|
11784 |
|
---|
11785 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
|
---|
11786 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
|
---|
11787 |
|
---|
11788 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
|
---|
11789 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
|
---|
11790 |
|
---|
11791 |
|
---|
11792 |
|
---|
11793 |
|
---|
11794 |
|
---|
11795 |
|
---|
11796 |
|
---|
11797 |
|
---|
11798 |
|
---|
11799 |
|
---|
11800 |
|
---|
11801 |
|
---|
11802 |
|
---|
11803 |
|
---|
11804 |
|
---|
11805 |
|
---|
11806 |
|
---|
11807 |
|
---|
11808 |
|
---|
11809 |
|
---|
11810 |
|
---|
11811 |
|
---|
11812 |
|
---|
11813 |
|
---|
11814 |
|
---|
11815 |
|
---|
11816 |
|
---|
11817 |
|
---|
11818 |
|
---|
11819 |
|
---|
11820 |
|
---|
11821 |
|
---|
11822 |
|
---|
11823 |
|
---|
11824 |
|
---|
11825 |
|
---|
11826 |
|
---|
11827 |
|
---|
11828 |
|
---|
11829 |
|
---|
11830 |
|
---|
11831 |
|
---|
11832 |
|
---|
11833 |
|
---|
11834 |
|
---|
11835 |
|
---|
11836 |
|
---|
11837 |
|
---|
11838 |
|
---|
11839 |
|
---|
11840 |
|
---|
11841 |
|
---|
11842 |
|
---|
11843 |
|
---|
11844 |
|
---|
11845 |
|
---|
11846 |
|
---|
11847 |
|
---|
11848 |
|
---|
11849 |
|
---|
11850 |
|
---|
11851 |
|
---|
11852 |
|
---|
11853 |
|
---|
11854 |
|
---|
11855 |
|
---|
11856 |
|
---|
11857 |
|
---|
11858 |
|
---|
11859 |
|
---|
11860 |
|
---|
11861 |
|
---|
11862 |
|
---|
11863 |
|
---|
11864 |
|
---|
11865 |
|
---|
11866 |
|
---|
11867 |
|
---|
11868 |
|
---|
11869 |
|
---|
11870 |
|
---|
11871 |
|
---|
11872 |
|
---|
11873 |
|
---|
11874 |
|
---|
11875 |
|
---|
11876 |
|
---|
11877 |
|
---|
11878 |
|
---|
11879 |
|
---|
11880 |
|
---|
11881 |
|
---|
11882 |
|
---|
11883 |
|
---|
11884 |
|
---|
11885 |
|
---|
11886 |
|
---|
11887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
|
---|
11888 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
|
---|
11889 | hardcode_action=
|
---|
11890 | if test -n "$hardcode_libdir_flag_spec" ||
|
---|
11891 | test -n "$runpath_var" ||
|
---|
11892 | test yes = "$hardcode_automatic"; then
|
---|
11893 |
|
---|
11894 | # We can hardcode non-existent directories.
|
---|
11895 | if test no != "$hardcode_direct" &&
|
---|
11896 | # If the only mechanism to avoid hardcoding is shlibpath_var, we
|
---|
11897 | # have to relink, otherwise we might link with an installed library
|
---|
11898 | # when we should be linking with a yet-to-be-installed one
|
---|
11899 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
|
---|
11900 | test no != "$hardcode_minus_L"; then
|
---|
11901 | # Linking always hardcodes the temporary library directory.
|
---|
11902 | hardcode_action=relink
|
---|
11903 | else
|
---|
11904 | # We can link without hardcoding, and we can hardcode nonexisting dirs.
|
---|
11905 | hardcode_action=immediate
|
---|
11906 | fi
|
---|
11907 | else
|
---|
11908 | # We cannot hardcode anything, or else we can only hardcode existing
|
---|
11909 | # directories.
|
---|
11910 | hardcode_action=unsupported
|
---|
11911 | fi
|
---|
11912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
|
---|
11913 | $as_echo "$hardcode_action" >&6; }
|
---|
11914 |
|
---|
11915 | if test relink = "$hardcode_action" ||
|
---|
11916 | test yes = "$inherit_rpath"; then
|
---|
11917 | # Fast installation is not supported
|
---|
11918 | enable_fast_install=no
|
---|
11919 | elif test yes = "$shlibpath_overrides_runpath" ||
|
---|
11920 | test no = "$enable_shared"; then
|
---|
11921 | # Fast installation is not necessary
|
---|
11922 | enable_fast_install=needless
|
---|
11923 | fi
|
---|
11924 |
|
---|
11925 |
|
---|
11926 |
|
---|
11927 |
|
---|
11928 |
|
---|
11929 |
|
---|
11930 | if test yes != "$enable_dlopen"; then
|
---|
11931 | enable_dlopen=unknown
|
---|
11932 | enable_dlopen_self=unknown
|
---|
11933 | enable_dlopen_self_static=unknown
|
---|
11934 | else
|
---|
11935 | lt_cv_dlopen=no
|
---|
11936 | lt_cv_dlopen_libs=
|
---|
11937 |
|
---|
11938 | case $host_os in
|
---|
11939 | beos*)
|
---|
11940 | lt_cv_dlopen=load_add_on
|
---|
11941 | lt_cv_dlopen_libs=
|
---|
11942 | lt_cv_dlopen_self=yes
|
---|
11943 | ;;
|
---|
11944 |
|
---|
11945 | mingw* | pw32* | cegcc*)
|
---|
11946 | lt_cv_dlopen=LoadLibrary
|
---|
11947 | lt_cv_dlopen_libs=
|
---|
11948 | ;;
|
---|
11949 |
|
---|
11950 | cygwin*)
|
---|
11951 | lt_cv_dlopen=dlopen
|
---|
11952 | lt_cv_dlopen_libs=
|
---|
11953 | ;;
|
---|
11954 |
|
---|
11955 | darwin*)
|
---|
11956 | # if libdl is installed we need to link against it
|
---|
11957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
|
---|
11958 | $as_echo_n "checking for dlopen in -ldl... " >&6; }
|
---|
11959 | if ${ac_cv_lib_dl_dlopen+:} false; then :
|
---|
11960 | $as_echo_n "(cached) " >&6
|
---|
11961 | else
|
---|
11962 | ac_check_lib_save_LIBS=$LIBS
|
---|
11963 | LIBS="-ldl $LIBS"
|
---|
11964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
11965 | /* end confdefs.h. */
|
---|
11966 |
|
---|
11967 | /* Override any GCC internal prototype to avoid an error.
|
---|
11968 | Use char because int might match the return type of a GCC
|
---|
11969 | builtin and then its argument prototype would still apply. */
|
---|
11970 | #ifdef __cplusplus
|
---|
11971 | extern "C"
|
---|
11972 | #endif
|
---|
11973 | char dlopen ();
|
---|
11974 | int
|
---|
11975 | main ()
|
---|
11976 | {
|
---|
11977 | return dlopen ();
|
---|
11978 | ;
|
---|
11979 | return 0;
|
---|
11980 | }
|
---|
11981 | _ACEOF
|
---|
11982 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
11983 | ac_cv_lib_dl_dlopen=yes
|
---|
11984 | else
|
---|
11985 | ac_cv_lib_dl_dlopen=no
|
---|
11986 | fi
|
---|
11987 | rm -f core conftest.err conftest.$ac_objext \
|
---|
11988 | conftest$ac_exeext conftest.$ac_ext
|
---|
11989 | LIBS=$ac_check_lib_save_LIBS
|
---|
11990 | fi
|
---|
11991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
|
---|
11992 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
|
---|
11993 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
|
---|
11994 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
|
---|
11995 | else
|
---|
11996 |
|
---|
11997 | lt_cv_dlopen=dyld
|
---|
11998 | lt_cv_dlopen_libs=
|
---|
11999 | lt_cv_dlopen_self=yes
|
---|
12000 |
|
---|
12001 | fi
|
---|
12002 |
|
---|
12003 | ;;
|
---|
12004 |
|
---|
12005 | tpf*)
|
---|
12006 | # Don't try to run any link tests for TPF. We know it's impossible
|
---|
12007 | # because TPF is a cross-compiler, and we know how we open DSOs.
|
---|
12008 | lt_cv_dlopen=dlopen
|
---|
12009 | lt_cv_dlopen_libs=
|
---|
12010 | lt_cv_dlopen_self=no
|
---|
12011 | ;;
|
---|
12012 |
|
---|
12013 | *)
|
---|
12014 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
|
---|
12015 | if test "x$ac_cv_func_shl_load" = xyes; then :
|
---|
12016 | lt_cv_dlopen=shl_load
|
---|
12017 | else
|
---|
12018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
|
---|
12019 | $as_echo_n "checking for shl_load in -ldld... " >&6; }
|
---|
12020 | if ${ac_cv_lib_dld_shl_load+:} false; then :
|
---|
12021 | $as_echo_n "(cached) " >&6
|
---|
12022 | else
|
---|
12023 | ac_check_lib_save_LIBS=$LIBS
|
---|
12024 | LIBS="-ldld $LIBS"
|
---|
12025 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
12026 | /* end confdefs.h. */
|
---|
12027 |
|
---|
12028 | /* Override any GCC internal prototype to avoid an error.
|
---|
12029 | Use char because int might match the return type of a GCC
|
---|
12030 | builtin and then its argument prototype would still apply. */
|
---|
12031 | #ifdef __cplusplus
|
---|
12032 | extern "C"
|
---|
12033 | #endif
|
---|
12034 | char shl_load ();
|
---|
12035 | int
|
---|
12036 | main ()
|
---|
12037 | {
|
---|
12038 | return shl_load ();
|
---|
12039 | ;
|
---|
12040 | return 0;
|
---|
12041 | }
|
---|
12042 | _ACEOF
|
---|
12043 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
12044 | ac_cv_lib_dld_shl_load=yes
|
---|
12045 | else
|
---|
12046 | ac_cv_lib_dld_shl_load=no
|
---|
12047 | fi
|
---|
12048 | rm -f core conftest.err conftest.$ac_objext \
|
---|
12049 | conftest$ac_exeext conftest.$ac_ext
|
---|
12050 | LIBS=$ac_check_lib_save_LIBS
|
---|
12051 | fi
|
---|
12052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
|
---|
12053 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
|
---|
12054 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
|
---|
12055 | lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
|
---|
12056 | else
|
---|
12057 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
|
---|
12058 | if test "x$ac_cv_func_dlopen" = xyes; then :
|
---|
12059 | lt_cv_dlopen=dlopen
|
---|
12060 | else
|
---|
12061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
|
---|
12062 | $as_echo_n "checking for dlopen in -ldl... " >&6; }
|
---|
12063 | if ${ac_cv_lib_dl_dlopen+:} false; then :
|
---|
12064 | $as_echo_n "(cached) " >&6
|
---|
12065 | else
|
---|
12066 | ac_check_lib_save_LIBS=$LIBS
|
---|
12067 | LIBS="-ldl $LIBS"
|
---|
12068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
12069 | /* end confdefs.h. */
|
---|
12070 |
|
---|
12071 | /* Override any GCC internal prototype to avoid an error.
|
---|
12072 | Use char because int might match the return type of a GCC
|
---|
12073 | builtin and then its argument prototype would still apply. */
|
---|
12074 | #ifdef __cplusplus
|
---|
12075 | extern "C"
|
---|
12076 | #endif
|
---|
12077 | char dlopen ();
|
---|
12078 | int
|
---|
12079 | main ()
|
---|
12080 | {
|
---|
12081 | return dlopen ();
|
---|
12082 | ;
|
---|
12083 | return 0;
|
---|
12084 | }
|
---|
12085 | _ACEOF
|
---|
12086 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
12087 | ac_cv_lib_dl_dlopen=yes
|
---|
12088 | else
|
---|
12089 | ac_cv_lib_dl_dlopen=no
|
---|
12090 | fi
|
---|
12091 | rm -f core conftest.err conftest.$ac_objext \
|
---|
12092 | conftest$ac_exeext conftest.$ac_ext
|
---|
12093 | LIBS=$ac_check_lib_save_LIBS
|
---|
12094 | fi
|
---|
12095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
|
---|
12096 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
|
---|
12097 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
|
---|
12098 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
|
---|
12099 | else
|
---|
12100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
|
---|
12101 | $as_echo_n "checking for dlopen in -lsvld... " >&6; }
|
---|
12102 | if ${ac_cv_lib_svld_dlopen+:} false; then :
|
---|
12103 | $as_echo_n "(cached) " >&6
|
---|
12104 | else
|
---|
12105 | ac_check_lib_save_LIBS=$LIBS
|
---|
12106 | LIBS="-lsvld $LIBS"
|
---|
12107 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
12108 | /* end confdefs.h. */
|
---|
12109 |
|
---|
12110 | /* Override any GCC internal prototype to avoid an error.
|
---|
12111 | Use char because int might match the return type of a GCC
|
---|
12112 | builtin and then its argument prototype would still apply. */
|
---|
12113 | #ifdef __cplusplus
|
---|
12114 | extern "C"
|
---|
12115 | #endif
|
---|
12116 | char dlopen ();
|
---|
12117 | int
|
---|
12118 | main ()
|
---|
12119 | {
|
---|
12120 | return dlopen ();
|
---|
12121 | ;
|
---|
12122 | return 0;
|
---|
12123 | }
|
---|
12124 | _ACEOF
|
---|
12125 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
12126 | ac_cv_lib_svld_dlopen=yes
|
---|
12127 | else
|
---|
12128 | ac_cv_lib_svld_dlopen=no
|
---|
12129 | fi
|
---|
12130 | rm -f core conftest.err conftest.$ac_objext \
|
---|
12131 | conftest$ac_exeext conftest.$ac_ext
|
---|
12132 | LIBS=$ac_check_lib_save_LIBS
|
---|
12133 | fi
|
---|
12134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
|
---|
12135 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
|
---|
12136 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
|
---|
12137 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
|
---|
12138 | else
|
---|
12139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
|
---|
12140 | $as_echo_n "checking for dld_link in -ldld... " >&6; }
|
---|
12141 | if ${ac_cv_lib_dld_dld_link+:} false; then :
|
---|
12142 | $as_echo_n "(cached) " >&6
|
---|
12143 | else
|
---|
12144 | ac_check_lib_save_LIBS=$LIBS
|
---|
12145 | LIBS="-ldld $LIBS"
|
---|
12146 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
12147 | /* end confdefs.h. */
|
---|
12148 |
|
---|
12149 | /* Override any GCC internal prototype to avoid an error.
|
---|
12150 | Use char because int might match the return type of a GCC
|
---|
12151 | builtin and then its argument prototype would still apply. */
|
---|
12152 | #ifdef __cplusplus
|
---|
12153 | extern "C"
|
---|
12154 | #endif
|
---|
12155 | char dld_link ();
|
---|
12156 | int
|
---|
12157 | main ()
|
---|
12158 | {
|
---|
12159 | return dld_link ();
|
---|
12160 | ;
|
---|
12161 | return 0;
|
---|
12162 | }
|
---|
12163 | _ACEOF
|
---|
12164 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
12165 | ac_cv_lib_dld_dld_link=yes
|
---|
12166 | else
|
---|
12167 | ac_cv_lib_dld_dld_link=no
|
---|
12168 | fi
|
---|
12169 | rm -f core conftest.err conftest.$ac_objext \
|
---|
12170 | conftest$ac_exeext conftest.$ac_ext
|
---|
12171 | LIBS=$ac_check_lib_save_LIBS
|
---|
12172 | fi
|
---|
12173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
|
---|
12174 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
|
---|
12175 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
|
---|
12176 | lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
|
---|
12177 | fi
|
---|
12178 |
|
---|
12179 |
|
---|
12180 | fi
|
---|
12181 |
|
---|
12182 |
|
---|
12183 | fi
|
---|
12184 |
|
---|
12185 |
|
---|
12186 | fi
|
---|
12187 |
|
---|
12188 |
|
---|
12189 | fi
|
---|
12190 |
|
---|
12191 |
|
---|
12192 | fi
|
---|
12193 |
|
---|
12194 | ;;
|
---|
12195 | esac
|
---|
12196 |
|
---|
12197 | if test no = "$lt_cv_dlopen"; then
|
---|
12198 | enable_dlopen=no
|
---|
12199 | else
|
---|
12200 | enable_dlopen=yes
|
---|
12201 | fi
|
---|
12202 |
|
---|
12203 | case $lt_cv_dlopen in
|
---|
12204 | dlopen)
|
---|
12205 | save_CPPFLAGS=$CPPFLAGS
|
---|
12206 | test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
|
---|
12207 |
|
---|
12208 | save_LDFLAGS=$LDFLAGS
|
---|
12209 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
|
---|
12210 |
|
---|
12211 | save_LIBS=$LIBS
|
---|
12212 | LIBS="$lt_cv_dlopen_libs $LIBS"
|
---|
12213 |
|
---|
12214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
|
---|
12215 | $as_echo_n "checking whether a program can dlopen itself... " >&6; }
|
---|
12216 | if ${lt_cv_dlopen_self+:} false; then :
|
---|
12217 | $as_echo_n "(cached) " >&6
|
---|
12218 | else
|
---|
12219 | if test yes = "$cross_compiling"; then :
|
---|
12220 | lt_cv_dlopen_self=cross
|
---|
12221 | else
|
---|
12222 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
---|
12223 | lt_status=$lt_dlunknown
|
---|
12224 | cat > conftest.$ac_ext <<_LT_EOF
|
---|
12225 | #line $LINENO "configure"
|
---|
12226 | #include "confdefs.h"
|
---|
12227 |
|
---|
12228 | #if HAVE_DLFCN_H
|
---|
12229 | #include <dlfcn.h>
|
---|
12230 | #endif
|
---|
12231 |
|
---|
12232 | #include <stdio.h>
|
---|
12233 |
|
---|
12234 | #ifdef RTLD_GLOBAL
|
---|
12235 | # define LT_DLGLOBAL RTLD_GLOBAL
|
---|
12236 | #else
|
---|
12237 | # ifdef DL_GLOBAL
|
---|
12238 | # define LT_DLGLOBAL DL_GLOBAL
|
---|
12239 | # else
|
---|
12240 | # define LT_DLGLOBAL 0
|
---|
12241 | # endif
|
---|
12242 | #endif
|
---|
12243 |
|
---|
12244 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
---|
12245 | find out it does not work in some platform. */
|
---|
12246 | #ifndef LT_DLLAZY_OR_NOW
|
---|
12247 | # ifdef RTLD_LAZY
|
---|
12248 | # define LT_DLLAZY_OR_NOW RTLD_LAZY
|
---|
12249 | # else
|
---|
12250 | # ifdef DL_LAZY
|
---|
12251 | # define LT_DLLAZY_OR_NOW DL_LAZY
|
---|
12252 | # else
|
---|
12253 | # ifdef RTLD_NOW
|
---|
12254 | # define LT_DLLAZY_OR_NOW RTLD_NOW
|
---|
12255 | # else
|
---|
12256 | # ifdef DL_NOW
|
---|
12257 | # define LT_DLLAZY_OR_NOW DL_NOW
|
---|
12258 | # else
|
---|
12259 | # define LT_DLLAZY_OR_NOW 0
|
---|
12260 | # endif
|
---|
12261 | # endif
|
---|
12262 | # endif
|
---|
12263 | # endif
|
---|
12264 | #endif
|
---|
12265 |
|
---|
12266 | /* When -fvisibility=hidden is used, assume the code has been annotated
|
---|
12267 | correspondingly for the symbols needed. */
|
---|
12268 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
---|
12269 | int fnord () __attribute__((visibility("default")));
|
---|
12270 | #endif
|
---|
12271 |
|
---|
12272 | int fnord () { return 42; }
|
---|
12273 | int main ()
|
---|
12274 | {
|
---|
12275 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
---|
12276 | int status = $lt_dlunknown;
|
---|
12277 |
|
---|
12278 | if (self)
|
---|
12279 | {
|
---|
12280 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
---|
12281 | else
|
---|
12282 | {
|
---|
12283 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
---|
12284 | else puts (dlerror ());
|
---|
12285 | }
|
---|
12286 | /* dlclose (self); */
|
---|
12287 | }
|
---|
12288 | else
|
---|
12289 | puts (dlerror ());
|
---|
12290 |
|
---|
12291 | return status;
|
---|
12292 | }
|
---|
12293 | _LT_EOF
|
---|
12294 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
|
---|
12295 | (eval $ac_link) 2>&5
|
---|
12296 | ac_status=$?
|
---|
12297 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
12298 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
|
---|
12299 | (./conftest; exit; ) >&5 2>/dev/null
|
---|
12300 | lt_status=$?
|
---|
12301 | case x$lt_status in
|
---|
12302 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
|
---|
12303 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
|
---|
12304 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
|
---|
12305 | esac
|
---|
12306 | else :
|
---|
12307 | # compilation failed
|
---|
12308 | lt_cv_dlopen_self=no
|
---|
12309 | fi
|
---|
12310 | fi
|
---|
12311 | rm -fr conftest*
|
---|
12312 |
|
---|
12313 |
|
---|
12314 | fi
|
---|
12315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
|
---|
12316 | $as_echo "$lt_cv_dlopen_self" >&6; }
|
---|
12317 |
|
---|
12318 | if test yes = "$lt_cv_dlopen_self"; then
|
---|
12319 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
|
---|
12320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
|
---|
12321 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
|
---|
12322 | if ${lt_cv_dlopen_self_static+:} false; then :
|
---|
12323 | $as_echo_n "(cached) " >&6
|
---|
12324 | else
|
---|
12325 | if test yes = "$cross_compiling"; then :
|
---|
12326 | lt_cv_dlopen_self_static=cross
|
---|
12327 | else
|
---|
12328 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
---|
12329 | lt_status=$lt_dlunknown
|
---|
12330 | cat > conftest.$ac_ext <<_LT_EOF
|
---|
12331 | #line $LINENO "configure"
|
---|
12332 | #include "confdefs.h"
|
---|
12333 |
|
---|
12334 | #if HAVE_DLFCN_H
|
---|
12335 | #include <dlfcn.h>
|
---|
12336 | #endif
|
---|
12337 |
|
---|
12338 | #include <stdio.h>
|
---|
12339 |
|
---|
12340 | #ifdef RTLD_GLOBAL
|
---|
12341 | # define LT_DLGLOBAL RTLD_GLOBAL
|
---|
12342 | #else
|
---|
12343 | # ifdef DL_GLOBAL
|
---|
12344 | # define LT_DLGLOBAL DL_GLOBAL
|
---|
12345 | # else
|
---|
12346 | # define LT_DLGLOBAL 0
|
---|
12347 | # endif
|
---|
12348 | #endif
|
---|
12349 |
|
---|
12350 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
---|
12351 | find out it does not work in some platform. */
|
---|
12352 | #ifndef LT_DLLAZY_OR_NOW
|
---|
12353 | # ifdef RTLD_LAZY
|
---|
12354 | # define LT_DLLAZY_OR_NOW RTLD_LAZY
|
---|
12355 | # else
|
---|
12356 | # ifdef DL_LAZY
|
---|
12357 | # define LT_DLLAZY_OR_NOW DL_LAZY
|
---|
12358 | # else
|
---|
12359 | # ifdef RTLD_NOW
|
---|
12360 | # define LT_DLLAZY_OR_NOW RTLD_NOW
|
---|
12361 | # else
|
---|
12362 | # ifdef DL_NOW
|
---|
12363 | # define LT_DLLAZY_OR_NOW DL_NOW
|
---|
12364 | # else
|
---|
12365 | # define LT_DLLAZY_OR_NOW 0
|
---|
12366 | # endif
|
---|
12367 | # endif
|
---|
12368 | # endif
|
---|
12369 | # endif
|
---|
12370 | #endif
|
---|
12371 |
|
---|
12372 | /* When -fvisibility=hidden is used, assume the code has been annotated
|
---|
12373 | correspondingly for the symbols needed. */
|
---|
12374 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
---|
12375 | int fnord () __attribute__((visibility("default")));
|
---|
12376 | #endif
|
---|
12377 |
|
---|
12378 | int fnord () { return 42; }
|
---|
12379 | int main ()
|
---|
12380 | {
|
---|
12381 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
---|
12382 | int status = $lt_dlunknown;
|
---|
12383 |
|
---|
12384 | if (self)
|
---|
12385 | {
|
---|
12386 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
---|
12387 | else
|
---|
12388 | {
|
---|
12389 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
---|
12390 | else puts (dlerror ());
|
---|
12391 | }
|
---|
12392 | /* dlclose (self); */
|
---|
12393 | }
|
---|
12394 | else
|
---|
12395 | puts (dlerror ());
|
---|
12396 |
|
---|
12397 | return status;
|
---|
12398 | }
|
---|
12399 | _LT_EOF
|
---|
12400 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
|
---|
12401 | (eval $ac_link) 2>&5
|
---|
12402 | ac_status=$?
|
---|
12403 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
12404 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
|
---|
12405 | (./conftest; exit; ) >&5 2>/dev/null
|
---|
12406 | lt_status=$?
|
---|
12407 | case x$lt_status in
|
---|
12408 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
|
---|
12409 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
|
---|
12410 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
|
---|
12411 | esac
|
---|
12412 | else :
|
---|
12413 | # compilation failed
|
---|
12414 | lt_cv_dlopen_self_static=no
|
---|
12415 | fi
|
---|
12416 | fi
|
---|
12417 | rm -fr conftest*
|
---|
12418 |
|
---|
12419 |
|
---|
12420 | fi
|
---|
12421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
|
---|
12422 | $as_echo "$lt_cv_dlopen_self_static" >&6; }
|
---|
12423 | fi
|
---|
12424 |
|
---|
12425 | CPPFLAGS=$save_CPPFLAGS
|
---|
12426 | LDFLAGS=$save_LDFLAGS
|
---|
12427 | LIBS=$save_LIBS
|
---|
12428 | ;;
|
---|
12429 | esac
|
---|
12430 |
|
---|
12431 | case $lt_cv_dlopen_self in
|
---|
12432 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
|
---|
12433 | *) enable_dlopen_self=unknown ;;
|
---|
12434 | esac
|
---|
12435 |
|
---|
12436 | case $lt_cv_dlopen_self_static in
|
---|
12437 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
|
---|
12438 | *) enable_dlopen_self_static=unknown ;;
|
---|
12439 | esac
|
---|
12440 | fi
|
---|
12441 |
|
---|
12442 |
|
---|
12443 |
|
---|
12444 |
|
---|
12445 |
|
---|
12446 |
|
---|
12447 |
|
---|
12448 |
|
---|
12449 |
|
---|
12450 |
|
---|
12451 |
|
---|
12452 |
|
---|
12453 |
|
---|
12454 |
|
---|
12455 |
|
---|
12456 |
|
---|
12457 |
|
---|
12458 | striplib=
|
---|
12459 | old_striplib=
|
---|
12460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
|
---|
12461 | $as_echo_n "checking whether stripping libraries is possible... " >&6; }
|
---|
12462 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
|
---|
12463 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
|
---|
12464 | test -z "$striplib" && striplib="$STRIP --strip-unneeded"
|
---|
12465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
12466 | $as_echo "yes" >&6; }
|
---|
12467 | else
|
---|
12468 | # FIXME - insert some real tests, host_os isn't really good enough
|
---|
12469 | case $host_os in
|
---|
12470 | darwin*)
|
---|
12471 | if test -n "$STRIP"; then
|
---|
12472 | striplib="$STRIP -x"
|
---|
12473 | old_striplib="$STRIP -S"
|
---|
12474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
12475 | $as_echo "yes" >&6; }
|
---|
12476 | else
|
---|
12477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
12478 | $as_echo "no" >&6; }
|
---|
12479 | fi
|
---|
12480 | ;;
|
---|
12481 | *)
|
---|
12482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
12483 | $as_echo "no" >&6; }
|
---|
12484 | ;;
|
---|
12485 | esac
|
---|
12486 | fi
|
---|
12487 |
|
---|
12488 |
|
---|
12489 |
|
---|
12490 |
|
---|
12491 |
|
---|
12492 |
|
---|
12493 |
|
---|
12494 |
|
---|
12495 |
|
---|
12496 |
|
---|
12497 |
|
---|
12498 |
|
---|
12499 | # Report what library types will actually be built
|
---|
12500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
|
---|
12501 | $as_echo_n "checking if libtool supports shared libraries... " >&6; }
|
---|
12502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
|
---|
12503 | $as_echo "$can_build_shared" >&6; }
|
---|
12504 |
|
---|
12505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
|
---|
12506 | $as_echo_n "checking whether to build shared libraries... " >&6; }
|
---|
12507 | test no = "$can_build_shared" && enable_shared=no
|
---|
12508 |
|
---|
12509 | # On AIX, shared libraries and static libraries use the same namespace, and
|
---|
12510 | # are all built from PIC.
|
---|
12511 | case $host_os in
|
---|
12512 | aix3*)
|
---|
12513 | test yes = "$enable_shared" && enable_static=no
|
---|
12514 | if test -n "$RANLIB"; then
|
---|
12515 | archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
---|
12516 | postinstall_cmds='$RANLIB $lib'
|
---|
12517 | fi
|
---|
12518 | ;;
|
---|
12519 |
|
---|
12520 | aix[4-9]*)
|
---|
12521 | if test ia64 != "$host_cpu"; then
|
---|
12522 | case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
|
---|
12523 | yes,aix,yes) ;; # shared object as lib.so file only
|
---|
12524 | yes,svr4,*) ;; # shared object as lib.so archive member only
|
---|
12525 | yes,*) enable_static=no ;; # shared object in lib.a archive as well
|
---|
12526 | esac
|
---|
12527 | fi
|
---|
12528 | ;;
|
---|
12529 | esac
|
---|
12530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
|
---|
12531 | $as_echo "$enable_shared" >&6; }
|
---|
12532 |
|
---|
12533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
|
---|
12534 | $as_echo_n "checking whether to build static libraries... " >&6; }
|
---|
12535 | # Make sure either enable_shared or enable_static is yes.
|
---|
12536 | test yes = "$enable_shared" || enable_static=yes
|
---|
12537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
|
---|
12538 | $as_echo "$enable_static" >&6; }
|
---|
12539 |
|
---|
12540 |
|
---|
12541 |
|
---|
12542 |
|
---|
12543 | fi
|
---|
12544 | ac_ext=c
|
---|
12545 | ac_cpp='$CPP $CPPFLAGS'
|
---|
12546 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
12547 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
12548 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
12549 |
|
---|
12550 | CC=$lt_save_CC
|
---|
12551 |
|
---|
12552 |
|
---|
12553 |
|
---|
12554 |
|
---|
12555 |
|
---|
12556 |
|
---|
12557 |
|
---|
12558 |
|
---|
12559 |
|
---|
12560 |
|
---|
12561 |
|
---|
12562 |
|
---|
12563 |
|
---|
12564 |
|
---|
12565 |
|
---|
12566 | ac_config_commands="$ac_config_commands libtool"
|
---|
12567 |
|
---|
12568 |
|
---|
12569 |
|
---|
12570 |
|
---|
12571 | # Only expand once:
|
---|
12572 |
|
---|
12573 |
|
---|
12574 |
|
---|
12575 |
|
---|
12576 | # Some awks crash when confronted with pnglibconf.dfa, do a test run now
|
---|
12577 | # to make sure this doesn't happen
|
---|
12578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that AWK works" >&5
|
---|
12579 | $as_echo_n "checking that AWK works... " >&6; }
|
---|
12580 | if ${AWK} -f ${srcdir}/scripts/options.awk out="/dev/null" version=search\
|
---|
12581 | ${srcdir}/pngconf.h ${srcdir}/scripts/pnglibconf.dfa\
|
---|
12582 | ${srcdir}/pngusr.dfa 1>&2
|
---|
12583 | then
|
---|
12584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
|
---|
12585 | $as_echo "ok" >&6; }
|
---|
12586 | else
|
---|
12587 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
12588 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
12589 | as_fn_error 1 "failed
|
---|
12590 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
12591 | fi
|
---|
12592 |
|
---|
12593 | # This is a remnant of the old cc -E validation, where it may have been
|
---|
12594 | # necessary to use a different preprocessor for .dfn files
|
---|
12595 | DFNCPP="$CPP"
|
---|
12596 |
|
---|
12597 |
|
---|
12598 | # -Werror cannot be passed to GCC in CFLAGS because configure will fail (it
|
---|
12599 | # checks the compiler with a program that generates a warning), add the
|
---|
12600 | # following option to deal with this
|
---|
12601 |
|
---|
12602 | # Check whether --enable-werror was given.
|
---|
12603 | if test "${enable_werror+set}" = set; then :
|
---|
12604 | enableval=$enable_werror; test "$enable_werror" = "yes" && enable_werror="-Werror"
|
---|
12605 | if test "$enable_werror" != "no"; then
|
---|
12606 | sav_CFLAGS="$CFLAGS"
|
---|
12607 | CFLAGS="$enable_werror $CFLAGS"
|
---|
12608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler allows $enable_werror" >&5
|
---|
12609 | $as_echo_n "checking if the compiler allows $enable_werror... " >&6; }
|
---|
12610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
12611 | /* end confdefs.h. */
|
---|
12612 |
|
---|
12613 | int main(int argc, char **argv){
|
---|
12614 | return argv[argc-1][0];
|
---|
12615 | }
|
---|
12616 | _ACEOF
|
---|
12617 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
12618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
12619 | $as_echo "yes" >&6; }
|
---|
12620 | PNG_COPTS="$PNG_COPTS $enable_werror"
|
---|
12621 | else
|
---|
12622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
12623 | $as_echo "no" >&6; }
|
---|
12624 | fi
|
---|
12625 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
12626 | CFLAGS="$sav_CFLAGS"
|
---|
12627 | fi
|
---|
12628 | fi
|
---|
12629 |
|
---|
12630 |
|
---|
12631 | # For GCC 5 the default mode for C is -std=gnu11 instead of -std=gnu89
|
---|
12632 | # In pngpriv.h we request just the POSIX 1003.1 and C89 APIs by defining _POSIX_SOURCE to 1
|
---|
12633 | # This is incompatible with the new default mode, so we test for that and force the
|
---|
12634 | # "-std=c89" compiler option:
|
---|
12635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to force back C standard to C89" >&5
|
---|
12636 | $as_echo_n "checking if we need to force back C standard to C89... " >&6; }
|
---|
12637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
12638 | /* end confdefs.h. */
|
---|
12639 |
|
---|
12640 | #define _POSIX_SOURCE 1
|
---|
12641 | #include <stdio.h>
|
---|
12642 |
|
---|
12643 | int
|
---|
12644 | main ()
|
---|
12645 | {
|
---|
12646 |
|
---|
12647 | ;
|
---|
12648 | return 0;
|
---|
12649 | }
|
---|
12650 | _ACEOF
|
---|
12651 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
12652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
12653 | $as_echo "no" >&6; }
|
---|
12654 | else
|
---|
12655 |
|
---|
12656 | if test "x$GCC" != "xyes"; then
|
---|
12657 | as_fn_error $? "Forcing back to C89 is required but the flags are only known for GCC" "$LINENO" 5
|
---|
12658 | fi
|
---|
12659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
12660 | $as_echo "yes" >&6; }
|
---|
12661 | CFLAGS="$CFLAGS -std=c89"
|
---|
12662 |
|
---|
12663 | fi
|
---|
12664 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
12665 |
|
---|
12666 | # Checks for header files.
|
---|
12667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
---|
12668 | $as_echo_n "checking for ANSI C header files... " >&6; }
|
---|
12669 | if ${ac_cv_header_stdc+:} false; then :
|
---|
12670 | $as_echo_n "(cached) " >&6
|
---|
12671 | else
|
---|
12672 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
12673 | /* end confdefs.h. */
|
---|
12674 | #include <stdlib.h>
|
---|
12675 | #include <stdarg.h>
|
---|
12676 | #include <string.h>
|
---|
12677 | #include <float.h>
|
---|
12678 |
|
---|
12679 | int
|
---|
12680 | main ()
|
---|
12681 | {
|
---|
12682 |
|
---|
12683 | ;
|
---|
12684 | return 0;
|
---|
12685 | }
|
---|
12686 | _ACEOF
|
---|
12687 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
12688 | ac_cv_header_stdc=yes
|
---|
12689 | else
|
---|
12690 | ac_cv_header_stdc=no
|
---|
12691 | fi
|
---|
12692 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
12693 |
|
---|
12694 | if test $ac_cv_header_stdc = yes; then
|
---|
12695 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
12696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
12697 | /* end confdefs.h. */
|
---|
12698 | #include <string.h>
|
---|
12699 |
|
---|
12700 | _ACEOF
|
---|
12701 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
12702 | $EGREP "memchr" >/dev/null 2>&1; then :
|
---|
12703 |
|
---|
12704 | else
|
---|
12705 | ac_cv_header_stdc=no
|
---|
12706 | fi
|
---|
12707 | rm -f conftest*
|
---|
12708 |
|
---|
12709 | fi
|
---|
12710 |
|
---|
12711 | if test $ac_cv_header_stdc = yes; then
|
---|
12712 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
12713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
12714 | /* end confdefs.h. */
|
---|
12715 | #include <stdlib.h>
|
---|
12716 |
|
---|
12717 | _ACEOF
|
---|
12718 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
12719 | $EGREP "free" >/dev/null 2>&1; then :
|
---|
12720 |
|
---|
12721 | else
|
---|
12722 | ac_cv_header_stdc=no
|
---|
12723 | fi
|
---|
12724 | rm -f conftest*
|
---|
12725 |
|
---|
12726 | fi
|
---|
12727 |
|
---|
12728 | if test $ac_cv_header_stdc = yes; then
|
---|
12729 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
12730 | if test "$cross_compiling" = yes; then :
|
---|
12731 | :
|
---|
12732 | else
|
---|
12733 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
12734 | /* end confdefs.h. */
|
---|
12735 | #include <ctype.h>
|
---|
12736 | #include <stdlib.h>
|
---|
12737 | #if ((' ' & 0x0FF) == 0x020)
|
---|
12738 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
12739 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
12740 | #else
|
---|
12741 | # define ISLOWER(c) \
|
---|
12742 | (('a' <= (c) && (c) <= 'i') \
|
---|
12743 | || ('j' <= (c) && (c) <= 'r') \
|
---|
12744 | || ('s' <= (c) && (c) <= 'z'))
|
---|
12745 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
12746 | #endif
|
---|
12747 |
|
---|
12748 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
12749 | int
|
---|
12750 | main ()
|
---|
12751 | {
|
---|
12752 | int i;
|
---|
12753 | for (i = 0; i < 256; i++)
|
---|
12754 | if (XOR (islower (i), ISLOWER (i))
|
---|
12755 | || toupper (i) != TOUPPER (i))
|
---|
12756 | return 2;
|
---|
12757 | return 0;
|
---|
12758 | }
|
---|
12759 | _ACEOF
|
---|
12760 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
12761 |
|
---|
12762 | else
|
---|
12763 | ac_cv_header_stdc=no
|
---|
12764 | fi
|
---|
12765 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
12766 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
12767 | fi
|
---|
12768 |
|
---|
12769 | fi
|
---|
12770 | fi
|
---|
12771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
---|
12772 | $as_echo "$ac_cv_header_stdc" >&6; }
|
---|
12773 | if test $ac_cv_header_stdc = yes; then
|
---|
12774 |
|
---|
12775 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
---|
12776 |
|
---|
12777 | fi
|
---|
12778 |
|
---|
12779 |
|
---|
12780 | # Checks for typedefs, structures, and compiler characteristics.
|
---|
12781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
|
---|
12782 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
|
---|
12783 | if ${ac_cv_c_const+:} false; then :
|
---|
12784 | $as_echo_n "(cached) " >&6
|
---|
12785 | else
|
---|
12786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
12787 | /* end confdefs.h. */
|
---|
12788 |
|
---|
12789 | int
|
---|
12790 | main ()
|
---|
12791 | {
|
---|
12792 |
|
---|
12793 | #ifndef __cplusplus
|
---|
12794 | /* Ultrix mips cc rejects this sort of thing. */
|
---|
12795 | typedef int charset[2];
|
---|
12796 | const charset cs = { 0, 0 };
|
---|
12797 | /* SunOS 4.1.1 cc rejects this. */
|
---|
12798 | char const *const *pcpcc;
|
---|
12799 | char **ppc;
|
---|
12800 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
12801 | struct point {int x, y;};
|
---|
12802 | static struct point const zero = {0,0};
|
---|
12803 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
12804 | It does not let you subtract one const X* pointer from another in
|
---|
12805 | an arm of an if-expression whose if-part is not a constant
|
---|
12806 | expression */
|
---|
12807 | const char *g = "string";
|
---|
12808 | pcpcc = &g + (g ? g-g : 0);
|
---|
12809 | /* HPUX 7.0 cc rejects these. */
|
---|
12810 | ++pcpcc;
|
---|
12811 | ppc = (char**) pcpcc;
|
---|
12812 | pcpcc = (char const *const *) ppc;
|
---|
12813 | { /* SCO 3.2v4 cc rejects this sort of thing. */
|
---|
12814 | char tx;
|
---|
12815 | char *t = &tx;
|
---|
12816 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
12817 |
|
---|
12818 | *t++ = 0;
|
---|
12819 | if (s) return 0;
|
---|
12820 | }
|
---|
12821 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
12822 | int x[] = {25, 17};
|
---|
12823 | const int *foo = &x[0];
|
---|
12824 | ++foo;
|
---|
12825 | }
|
---|
12826 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
12827 | typedef const int *iptr;
|
---|
12828 | iptr p = 0;
|
---|
12829 | ++p;
|
---|
12830 | }
|
---|
12831 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
|
---|
12832 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
12833 | struct s { int j; const int *ap[3]; } bx;
|
---|
12834 | struct s *b = &bx; b->j = 5;
|
---|
12835 | }
|
---|
12836 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
12837 | const int foo = 10;
|
---|
12838 | if (!foo) return 0;
|
---|
12839 | }
|
---|
12840 | return !cs[0] && !zero.x;
|
---|
12841 | #endif
|
---|
12842 |
|
---|
12843 | ;
|
---|
12844 | return 0;
|
---|
12845 | }
|
---|
12846 | _ACEOF
|
---|
12847 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
12848 | ac_cv_c_const=yes
|
---|
12849 | else
|
---|
12850 | ac_cv_c_const=no
|
---|
12851 | fi
|
---|
12852 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
12853 | fi
|
---|
12854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
|
---|
12855 | $as_echo "$ac_cv_c_const" >&6; }
|
---|
12856 | if test $ac_cv_c_const = no; then
|
---|
12857 |
|
---|
12858 | $as_echo "#define const /**/" >>confdefs.h
|
---|
12859 |
|
---|
12860 | fi
|
---|
12861 |
|
---|
12862 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
|
---|
12863 | if test "x$ac_cv_type_size_t" = xyes; then :
|
---|
12864 |
|
---|
12865 | else
|
---|
12866 |
|
---|
12867 | cat >>confdefs.h <<_ACEOF
|
---|
12868 | #define size_t unsigned int
|
---|
12869 | _ACEOF
|
---|
12870 |
|
---|
12871 | fi
|
---|
12872 |
|
---|
12873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
12874 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
|
---|
12875 | if ${ac_cv_struct_tm+:} false; then :
|
---|
12876 | $as_echo_n "(cached) " >&6
|
---|
12877 | else
|
---|
12878 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
12879 | /* end confdefs.h. */
|
---|
12880 | #include <sys/types.h>
|
---|
12881 | #include <time.h>
|
---|
12882 |
|
---|
12883 | int
|
---|
12884 | main ()
|
---|
12885 | {
|
---|
12886 | struct tm tm;
|
---|
12887 | int *p = &tm.tm_sec;
|
---|
12888 | return !p;
|
---|
12889 | ;
|
---|
12890 | return 0;
|
---|
12891 | }
|
---|
12892 | _ACEOF
|
---|
12893 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
12894 | ac_cv_struct_tm=time.h
|
---|
12895 | else
|
---|
12896 | ac_cv_struct_tm=sys/time.h
|
---|
12897 | fi
|
---|
12898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
12899 | fi
|
---|
12900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
|
---|
12901 | $as_echo "$ac_cv_struct_tm" >&6; }
|
---|
12902 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
12903 |
|
---|
12904 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
|
---|
12905 |
|
---|
12906 | fi
|
---|
12907 |
|
---|
12908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
|
---|
12909 | $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
|
---|
12910 | if ${ac_cv_c_restrict+:} false; then :
|
---|
12911 | $as_echo_n "(cached) " >&6
|
---|
12912 | else
|
---|
12913 | ac_cv_c_restrict=no
|
---|
12914 | # The order here caters to the fact that C++ does not require restrict.
|
---|
12915 | for ac_kw in __restrict __restrict__ _Restrict restrict; do
|
---|
12916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
12917 | /* end confdefs.h. */
|
---|
12918 | typedef int * int_ptr;
|
---|
12919 | int foo (int_ptr $ac_kw ip) {
|
---|
12920 | return ip[0];
|
---|
12921 | }
|
---|
12922 | int
|
---|
12923 | main ()
|
---|
12924 | {
|
---|
12925 | int s[1];
|
---|
12926 | int * $ac_kw t = s;
|
---|
12927 | t[0] = 0;
|
---|
12928 | return foo(t)
|
---|
12929 | ;
|
---|
12930 | return 0;
|
---|
12931 | }
|
---|
12932 | _ACEOF
|
---|
12933 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
12934 | ac_cv_c_restrict=$ac_kw
|
---|
12935 | fi
|
---|
12936 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
12937 | test "$ac_cv_c_restrict" != no && break
|
---|
12938 | done
|
---|
12939 |
|
---|
12940 | fi
|
---|
12941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
|
---|
12942 | $as_echo "$ac_cv_c_restrict" >&6; }
|
---|
12943 |
|
---|
12944 | case $ac_cv_c_restrict in
|
---|
12945 | restrict) ;;
|
---|
12946 | no) $as_echo "#define restrict /**/" >>confdefs.h
|
---|
12947 | ;;
|
---|
12948 | *) cat >>confdefs.h <<_ACEOF
|
---|
12949 | #define restrict $ac_cv_c_restrict
|
---|
12950 | _ACEOF
|
---|
12951 | ;;
|
---|
12952 | esac
|
---|
12953 |
|
---|
12954 |
|
---|
12955 | # Checks for library functions.
|
---|
12956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
|
---|
12957 | $as_echo_n "checking for working strtod... " >&6; }
|
---|
12958 | if ${ac_cv_func_strtod+:} false; then :
|
---|
12959 | $as_echo_n "(cached) " >&6
|
---|
12960 | else
|
---|
12961 | if test "$cross_compiling" = yes; then :
|
---|
12962 | ac_cv_func_strtod=no
|
---|
12963 | else
|
---|
12964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
12965 | /* end confdefs.h. */
|
---|
12966 |
|
---|
12967 | $ac_includes_default
|
---|
12968 | #ifndef strtod
|
---|
12969 | double strtod ();
|
---|
12970 | #endif
|
---|
12971 | int
|
---|
12972 | main()
|
---|
12973 | {
|
---|
12974 | {
|
---|
12975 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */
|
---|
12976 | char *string = " +69";
|
---|
12977 | char *term;
|
---|
12978 | double value;
|
---|
12979 | value = strtod (string, &term);
|
---|
12980 | if (value != 69 || term != (string + 4))
|
---|
12981 | return 1;
|
---|
12982 | }
|
---|
12983 |
|
---|
12984 | {
|
---|
12985 | /* Under Solaris 2.4, strtod returns the wrong value for the
|
---|
12986 | terminating character under some conditions. */
|
---|
12987 | char *string = "NaN";
|
---|
12988 | char *term;
|
---|
12989 | strtod (string, &term);
|
---|
12990 | if (term != string && *(term - 1) == 0)
|
---|
12991 | return 1;
|
---|
12992 | }
|
---|
12993 | return 0;
|
---|
12994 | }
|
---|
12995 |
|
---|
12996 | _ACEOF
|
---|
12997 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
12998 | ac_cv_func_strtod=yes
|
---|
12999 | else
|
---|
13000 | ac_cv_func_strtod=no
|
---|
13001 | fi
|
---|
13002 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
13003 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
13004 | fi
|
---|
13005 |
|
---|
13006 | fi
|
---|
13007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
|
---|
13008 | $as_echo "$ac_cv_func_strtod" >&6; }
|
---|
13009 | if test $ac_cv_func_strtod = no; then
|
---|
13010 | case " $LIBOBJS " in
|
---|
13011 | *" strtod.$ac_objext "* ) ;;
|
---|
13012 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
|
---|
13013 | ;;
|
---|
13014 | esac
|
---|
13015 |
|
---|
13016 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
|
---|
13017 | if test "x$ac_cv_func_pow" = xyes; then :
|
---|
13018 |
|
---|
13019 | fi
|
---|
13020 |
|
---|
13021 | if test $ac_cv_func_pow = no; then
|
---|
13022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
|
---|
13023 | $as_echo_n "checking for pow in -lm... " >&6; }
|
---|
13024 | if ${ac_cv_lib_m_pow+:} false; then :
|
---|
13025 | $as_echo_n "(cached) " >&6
|
---|
13026 | else
|
---|
13027 | ac_check_lib_save_LIBS=$LIBS
|
---|
13028 | LIBS="-lm $LIBS"
|
---|
13029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
13030 | /* end confdefs.h. */
|
---|
13031 |
|
---|
13032 | /* Override any GCC internal prototype to avoid an error.
|
---|
13033 | Use char because int might match the return type of a GCC
|
---|
13034 | builtin and then its argument prototype would still apply. */
|
---|
13035 | #ifdef __cplusplus
|
---|
13036 | extern "C"
|
---|
13037 | #endif
|
---|
13038 | char pow ();
|
---|
13039 | int
|
---|
13040 | main ()
|
---|
13041 | {
|
---|
13042 | return pow ();
|
---|
13043 | ;
|
---|
13044 | return 0;
|
---|
13045 | }
|
---|
13046 | _ACEOF
|
---|
13047 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
13048 | ac_cv_lib_m_pow=yes
|
---|
13049 | else
|
---|
13050 | ac_cv_lib_m_pow=no
|
---|
13051 | fi
|
---|
13052 | rm -f core conftest.err conftest.$ac_objext \
|
---|
13053 | conftest$ac_exeext conftest.$ac_ext
|
---|
13054 | LIBS=$ac_check_lib_save_LIBS
|
---|
13055 | fi
|
---|
13056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
|
---|
13057 | $as_echo "$ac_cv_lib_m_pow" >&6; }
|
---|
13058 | if test "x$ac_cv_lib_m_pow" = xyes; then :
|
---|
13059 | POW_LIB=-lm
|
---|
13060 | else
|
---|
13061 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
|
---|
13062 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
|
---|
13063 | fi
|
---|
13064 |
|
---|
13065 | fi
|
---|
13066 |
|
---|
13067 | fi
|
---|
13068 |
|
---|
13069 | for ac_func in pow
|
---|
13070 | do :
|
---|
13071 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
|
---|
13072 | if test "x$ac_cv_func_pow" = xyes; then :
|
---|
13073 | cat >>confdefs.h <<_ACEOF
|
---|
13074 | #define HAVE_POW 1
|
---|
13075 | _ACEOF
|
---|
13076 |
|
---|
13077 | else
|
---|
13078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
|
---|
13079 | $as_echo_n "checking for pow in -lm... " >&6; }
|
---|
13080 | if ${ac_cv_lib_m_pow+:} false; then :
|
---|
13081 | $as_echo_n "(cached) " >&6
|
---|
13082 | else
|
---|
13083 | ac_check_lib_save_LIBS=$LIBS
|
---|
13084 | LIBS="-lm $LIBS"
|
---|
13085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
13086 | /* end confdefs.h. */
|
---|
13087 |
|
---|
13088 | /* Override any GCC internal prototype to avoid an error.
|
---|
13089 | Use char because int might match the return type of a GCC
|
---|
13090 | builtin and then its argument prototype would still apply. */
|
---|
13091 | #ifdef __cplusplus
|
---|
13092 | extern "C"
|
---|
13093 | #endif
|
---|
13094 | char pow ();
|
---|
13095 | int
|
---|
13096 | main ()
|
---|
13097 | {
|
---|
13098 | return pow ();
|
---|
13099 | ;
|
---|
13100 | return 0;
|
---|
13101 | }
|
---|
13102 | _ACEOF
|
---|
13103 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
13104 | ac_cv_lib_m_pow=yes
|
---|
13105 | else
|
---|
13106 | ac_cv_lib_m_pow=no
|
---|
13107 | fi
|
---|
13108 | rm -f core conftest.err conftest.$ac_objext \
|
---|
13109 | conftest$ac_exeext conftest.$ac_ext
|
---|
13110 | LIBS=$ac_check_lib_save_LIBS
|
---|
13111 | fi
|
---|
13112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
|
---|
13113 | $as_echo "$ac_cv_lib_m_pow" >&6; }
|
---|
13114 | if test "x$ac_cv_lib_m_pow" = xyes; then :
|
---|
13115 | cat >>confdefs.h <<_ACEOF
|
---|
13116 | #define HAVE_LIBM 1
|
---|
13117 | _ACEOF
|
---|
13118 |
|
---|
13119 | LIBS="-lm $LIBS"
|
---|
13120 |
|
---|
13121 | else
|
---|
13122 | as_fn_error $? "cannot find pow" "$LINENO" 5
|
---|
13123 | fi
|
---|
13124 |
|
---|
13125 | fi
|
---|
13126 | done
|
---|
13127 |
|
---|
13128 |
|
---|
13129 | # Some later POSIX 1003.1 functions are required for test programs, failure here
|
---|
13130 | # is soft (the corresponding test program is not built).
|
---|
13131 | ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
|
---|
13132 | if test "x$ac_cv_func_clock_gettime" = xyes; then :
|
---|
13133 |
|
---|
13134 | else
|
---|
13135 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: not building timepng" >&5
|
---|
13136 | $as_echo "$as_me: WARNING: not building timepng" >&2;}
|
---|
13137 | fi
|
---|
13138 |
|
---|
13139 | if test "$ac_cv_func_clock_gettime" = "yes"; then
|
---|
13140 | HAVE_CLOCK_GETTIME_TRUE=
|
---|
13141 | HAVE_CLOCK_GETTIME_FALSE='#'
|
---|
13142 | else
|
---|
13143 | HAVE_CLOCK_GETTIME_TRUE='#'
|
---|
13144 | HAVE_CLOCK_GETTIME_FALSE=
|
---|
13145 | fi
|
---|
13146 |
|
---|
13147 |
|
---|
13148 |
|
---|
13149 | # Check whether --with-zlib-prefix was given.
|
---|
13150 | if test "${with_zlib_prefix+set}" = set; then :
|
---|
13151 | withval=$with_zlib_prefix; ZPREFIX=${withval}
|
---|
13152 | else
|
---|
13153 | ZPREFIX='z_'
|
---|
13154 | fi
|
---|
13155 |
|
---|
13156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
|
---|
13157 | $as_echo_n "checking for zlibVersion in -lz... " >&6; }
|
---|
13158 | if ${ac_cv_lib_z_zlibVersion+:} false; then :
|
---|
13159 | $as_echo_n "(cached) " >&6
|
---|
13160 | else
|
---|
13161 | ac_check_lib_save_LIBS=$LIBS
|
---|
13162 | LIBS="-lz $LIBS"
|
---|
13163 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
13164 | /* end confdefs.h. */
|
---|
13165 |
|
---|
13166 | /* Override any GCC internal prototype to avoid an error.
|
---|
13167 | Use char because int might match the return type of a GCC
|
---|
13168 | builtin and then its argument prototype would still apply. */
|
---|
13169 | #ifdef __cplusplus
|
---|
13170 | extern "C"
|
---|
13171 | #endif
|
---|
13172 | char zlibVersion ();
|
---|
13173 | int
|
---|
13174 | main ()
|
---|
13175 | {
|
---|
13176 | return zlibVersion ();
|
---|
13177 | ;
|
---|
13178 | return 0;
|
---|
13179 | }
|
---|
13180 | _ACEOF
|
---|
13181 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
13182 | ac_cv_lib_z_zlibVersion=yes
|
---|
13183 | else
|
---|
13184 | ac_cv_lib_z_zlibVersion=no
|
---|
13185 | fi
|
---|
13186 | rm -f core conftest.err conftest.$ac_objext \
|
---|
13187 | conftest$ac_exeext conftest.$ac_ext
|
---|
13188 | LIBS=$ac_check_lib_save_LIBS
|
---|
13189 | fi
|
---|
13190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
|
---|
13191 | $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
|
---|
13192 | if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
|
---|
13193 | cat >>confdefs.h <<_ACEOF
|
---|
13194 | #define HAVE_LIBZ 1
|
---|
13195 | _ACEOF
|
---|
13196 |
|
---|
13197 | LIBS="-lz $LIBS"
|
---|
13198 |
|
---|
13199 | else
|
---|
13200 | as_ac_Lib=`$as_echo "ac_cv_lib_z_${ZPREFIX}zlibVersion" | $as_tr_sh`
|
---|
13201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ZPREFIX}zlibVersion in -lz" >&5
|
---|
13202 | $as_echo_n "checking for ${ZPREFIX}zlibVersion in -lz... " >&6; }
|
---|
13203 | if eval \${$as_ac_Lib+:} false; then :
|
---|
13204 | $as_echo_n "(cached) " >&6
|
---|
13205 | else
|
---|
13206 | ac_check_lib_save_LIBS=$LIBS
|
---|
13207 | LIBS="-lz $LIBS"
|
---|
13208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
13209 | /* end confdefs.h. */
|
---|
13210 |
|
---|
13211 | /* Override any GCC internal prototype to avoid an error.
|
---|
13212 | Use char because int might match the return type of a GCC
|
---|
13213 | builtin and then its argument prototype would still apply. */
|
---|
13214 | #ifdef __cplusplus
|
---|
13215 | extern "C"
|
---|
13216 | #endif
|
---|
13217 | char ${ZPREFIX}zlibVersion ();
|
---|
13218 | int
|
---|
13219 | main ()
|
---|
13220 | {
|
---|
13221 | return ${ZPREFIX}zlibVersion ();
|
---|
13222 | ;
|
---|
13223 | return 0;
|
---|
13224 | }
|
---|
13225 | _ACEOF
|
---|
13226 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
13227 | eval "$as_ac_Lib=yes"
|
---|
13228 | else
|
---|
13229 | eval "$as_ac_Lib=no"
|
---|
13230 | fi
|
---|
13231 | rm -f core conftest.err conftest.$ac_objext \
|
---|
13232 | conftest$ac_exeext conftest.$ac_ext
|
---|
13233 | LIBS=$ac_check_lib_save_LIBS
|
---|
13234 | fi
|
---|
13235 | eval ac_res=\$$as_ac_Lib
|
---|
13236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
13237 | $as_echo "$ac_res" >&6; }
|
---|
13238 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
|
---|
13239 | cat >>confdefs.h <<_ACEOF
|
---|
13240 | #define HAVE_LIBZ 1
|
---|
13241 | _ACEOF
|
---|
13242 |
|
---|
13243 | LIBS="-lz $LIBS"
|
---|
13244 |
|
---|
13245 | else
|
---|
13246 | as_fn_error $? "zlib not installed" "$LINENO" 5
|
---|
13247 | fi
|
---|
13248 |
|
---|
13249 | fi
|
---|
13250 |
|
---|
13251 |
|
---|
13252 | # The following is for pngvalid, to ensure it catches FP errors even on
|
---|
13253 | # platforms that don't enable FP exceptions, the function appears in the math
|
---|
13254 | # library (typically), it's not an error if it is not found.
|
---|
13255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
|
---|
13256 | $as_echo_n "checking for feenableexcept in -lm... " >&6; }
|
---|
13257 | if ${ac_cv_lib_m_feenableexcept+:} false; then :
|
---|
13258 | $as_echo_n "(cached) " >&6
|
---|
13259 | else
|
---|
13260 | ac_check_lib_save_LIBS=$LIBS
|
---|
13261 | LIBS="-lm $LIBS"
|
---|
13262 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
13263 | /* end confdefs.h. */
|
---|
13264 |
|
---|
13265 | /* Override any GCC internal prototype to avoid an error.
|
---|
13266 | Use char because int might match the return type of a GCC
|
---|
13267 | builtin and then its argument prototype would still apply. */
|
---|
13268 | #ifdef __cplusplus
|
---|
13269 | extern "C"
|
---|
13270 | #endif
|
---|
13271 | char feenableexcept ();
|
---|
13272 | int
|
---|
13273 | main ()
|
---|
13274 | {
|
---|
13275 | return feenableexcept ();
|
---|
13276 | ;
|
---|
13277 | return 0;
|
---|
13278 | }
|
---|
13279 | _ACEOF
|
---|
13280 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
13281 | ac_cv_lib_m_feenableexcept=yes
|
---|
13282 | else
|
---|
13283 | ac_cv_lib_m_feenableexcept=no
|
---|
13284 | fi
|
---|
13285 | rm -f core conftest.err conftest.$ac_objext \
|
---|
13286 | conftest$ac_exeext conftest.$ac_ext
|
---|
13287 | LIBS=$ac_check_lib_save_LIBS
|
---|
13288 | fi
|
---|
13289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
|
---|
13290 | $as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
|
---|
13291 | if test "x$ac_cv_lib_m_feenableexcept" = xyes; then :
|
---|
13292 | cat >>confdefs.h <<_ACEOF
|
---|
13293 | #define HAVE_LIBM 1
|
---|
13294 | _ACEOF
|
---|
13295 |
|
---|
13296 | LIBS="-lm $LIBS"
|
---|
13297 |
|
---|
13298 | fi
|
---|
13299 |
|
---|
13300 | for ac_func in feenableexcept
|
---|
13301 | do :
|
---|
13302 | ac_fn_c_check_func "$LINENO" "feenableexcept" "ac_cv_func_feenableexcept"
|
---|
13303 | if test "x$ac_cv_func_feenableexcept" = xyes; then :
|
---|
13304 | cat >>confdefs.h <<_ACEOF
|
---|
13305 | #define HAVE_FEENABLEEXCEPT 1
|
---|
13306 | _ACEOF
|
---|
13307 |
|
---|
13308 | fi
|
---|
13309 | done
|
---|
13310 |
|
---|
13311 |
|
---|
13312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if using Solaris linker" >&5
|
---|
13313 | $as_echo_n "checking if using Solaris linker... " >&6; }
|
---|
13314 | SLD=`$LD --version 2>&1 | grep Solaris`
|
---|
13315 | if test "$SLD"; then
|
---|
13316 | have_solaris_ld=yes
|
---|
13317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
13318 | $as_echo "yes" >&6; }
|
---|
13319 | else
|
---|
13320 | have_solaris_ld=no
|
---|
13321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
13322 | $as_echo "no" >&6; }
|
---|
13323 | fi
|
---|
13324 | if test "$have_solaris_ld" = "yes"; then
|
---|
13325 | HAVE_SOLARIS_LD_TRUE=
|
---|
13326 | HAVE_SOLARIS_LD_FALSE='#'
|
---|
13327 | else
|
---|
13328 | HAVE_SOLARIS_LD_TRUE='#'
|
---|
13329 | HAVE_SOLARIS_LD_FALSE=
|
---|
13330 | fi
|
---|
13331 |
|
---|
13332 |
|
---|
13333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
|
---|
13334 | $as_echo_n "checking if libraries can be versioned... " >&6; }
|
---|
13335 | # Special case for PE/COFF platforms: ld reports
|
---|
13336 | # support for version-script, but doesn't actually
|
---|
13337 | # DO anything with it.
|
---|
13338 | case $host in
|
---|
13339 | *cygwin* | *mingw32* | *interix* )
|
---|
13340 | have_ld_version_script=no
|
---|
13341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
13342 | $as_echo "no" >&6; }
|
---|
13343 | ;;
|
---|
13344 | * )
|
---|
13345 |
|
---|
13346 | if test "$have_solaris_ld" = "yes"; then
|
---|
13347 | GLD=`$LD --help < /dev/null 2>&1 | grep 'M mapfile'`
|
---|
13348 | else
|
---|
13349 | GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
|
---|
13350 | fi
|
---|
13351 |
|
---|
13352 | if test "$GLD"; then
|
---|
13353 | have_ld_version_script=yes
|
---|
13354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
13355 | $as_echo "yes" >&6; }
|
---|
13356 | else
|
---|
13357 | have_ld_version_script=no
|
---|
13358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
13359 | $as_echo "no" >&6; }
|
---|
13360 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** You have not enabled versioned symbols." >&5
|
---|
13361 | $as_echo "$as_me: WARNING: *** You have not enabled versioned symbols." >&2;}
|
---|
13362 | fi
|
---|
13363 | ;;
|
---|
13364 | esac
|
---|
13365 |
|
---|
13366 | if test "$have_ld_version_script" = "yes"; then
|
---|
13367 | HAVE_LD_VERSION_SCRIPT_TRUE=
|
---|
13368 | HAVE_LD_VERSION_SCRIPT_FALSE='#'
|
---|
13369 | else
|
---|
13370 | HAVE_LD_VERSION_SCRIPT_TRUE='#'
|
---|
13371 | HAVE_LD_VERSION_SCRIPT_FALSE=
|
---|
13372 | fi
|
---|
13373 |
|
---|
13374 |
|
---|
13375 | if test "$have_ld_version_script" = "yes"; then
|
---|
13376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbol prefix" >&5
|
---|
13377 | $as_echo_n "checking for symbol prefix... " >&6; }
|
---|
13378 | SYMBOL_PREFIX=`echo "PREFIX=__USER_LABEL_PREFIX__" \
|
---|
13379 | | ${CPP-${CC-gcc} -E} - 2>&1 \
|
---|
13380 | | ${EGREP-grep} "^PREFIX=" \
|
---|
13381 | | ${SED-sed} -e "s:^PREFIX=::" -e "s:__USER_LABEL_PREFIX__::"`
|
---|
13382 |
|
---|
13383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMBOL_PREFIX" >&5
|
---|
13384 | $as_echo "$SYMBOL_PREFIX" >&6; }
|
---|
13385 | fi
|
---|
13386 |
|
---|
13387 | # Substitutions for .in files
|
---|
13388 |
|
---|
13389 |
|
---|
13390 |
|
---|
13391 |
|
---|
13392 |
|
---|
13393 | # Additional arguments (and substitutions)
|
---|
13394 | # Allow the pkg-config directory to be set
|
---|
13395 |
|
---|
13396 | # Check whether --with-pkgconfigdir was given.
|
---|
13397 | if test "${with_pkgconfigdir+set}" = set; then :
|
---|
13398 | withval=$with_pkgconfigdir; pkgconfigdir=${withval}
|
---|
13399 | else
|
---|
13400 | pkgconfigdir='${libdir}/pkgconfig'
|
---|
13401 | fi
|
---|
13402 |
|
---|
13403 |
|
---|
13404 |
|
---|
13405 | { $as_echo "$as_me:${as_lineno-$LINENO}: pkgconfig directory is ${pkgconfigdir}" >&5
|
---|
13406 | $as_echo "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;}
|
---|
13407 |
|
---|
13408 | # Make the *-config binary config scripts optional
|
---|
13409 |
|
---|
13410 | # Check whether --with-binconfigs was given.
|
---|
13411 | if test "${with_binconfigs+set}" = set; then :
|
---|
13412 | withval=$with_binconfigs; if test "${withval}" = no; then
|
---|
13413 | binconfigs=
|
---|
13414 | { $as_echo "$as_me:${as_lineno-$LINENO}: libpng-config scripts will not be built" >&5
|
---|
13415 | $as_echo "$as_me: libpng-config scripts will not be built" >&6;}
|
---|
13416 | else
|
---|
13417 | binconfigs='${binconfigs}'
|
---|
13418 | fi
|
---|
13419 | else
|
---|
13420 | binconfigs='${binconfigs}'
|
---|
13421 | fi
|
---|
13422 |
|
---|
13423 |
|
---|
13424 |
|
---|
13425 | # Support for prefixes to the API function names; this will generate defines
|
---|
13426 | # at the start of the build to rename exported library functions
|
---|
13427 |
|
---|
13428 | # Check whether --with-libpng-prefix was given.
|
---|
13429 | if test "${with_libpng_prefix+set}" = set; then :
|
---|
13430 | withval=$with_libpng_prefix; if test "${withval:-no}" != "no"; then
|
---|
13431 | PNG_PREFIX=${withval}
|
---|
13432 |
|
---|
13433 | fi
|
---|
13434 | fi
|
---|
13435 |
|
---|
13436 | if test "${with_libpng_prefix:-no}" != "no"; then
|
---|
13437 | DO_PNG_PREFIX_TRUE=
|
---|
13438 | DO_PNG_PREFIX_FALSE='#'
|
---|
13439 | else
|
---|
13440 | DO_PNG_PREFIX_TRUE='#'
|
---|
13441 | DO_PNG_PREFIX_FALSE=
|
---|
13442 | fi
|
---|
13443 |
|
---|
13444 |
|
---|
13445 | # Control over what links are made for installed files. Versioned files are
|
---|
13446 | # always installed, when the following options are turned on corresponding
|
---|
13447 | # unversioned links are also created (normally as symbolic links):
|
---|
13448 | # Check whether --enable-unversioned-links was given.
|
---|
13449 | if test "${enable_unversioned_links+set}" = set; then :
|
---|
13450 | enableval=$enable_unversioned_links;
|
---|
13451 | fi
|
---|
13452 |
|
---|
13453 |
|
---|
13454 | # The AM_CONDITIONAL test is written so that the default is enabled;
|
---|
13455 | # --disable-unversioned-links must be given to turn the option off.
|
---|
13456 | if test "$enable_unversioned_links" != "no"; then
|
---|
13457 | DO_INSTALL_LINKS_TRUE=
|
---|
13458 | DO_INSTALL_LINKS_FALSE='#'
|
---|
13459 | else
|
---|
13460 | DO_INSTALL_LINKS_TRUE='#'
|
---|
13461 | DO_INSTALL_LINKS_FALSE=
|
---|
13462 | fi
|
---|
13463 |
|
---|
13464 |
|
---|
13465 | # Check whether --enable-unversioned-libpng-pc was given.
|
---|
13466 | if test "${enable_unversioned_libpng_pc+set}" = set; then :
|
---|
13467 | enableval=$enable_unversioned_libpng_pc;
|
---|
13468 | fi
|
---|
13469 |
|
---|
13470 | if test "$enable_unversioned_libpng_pc" != "no"; then
|
---|
13471 | DO_INSTALL_LIBPNG_PC_TRUE=
|
---|
13472 | DO_INSTALL_LIBPNG_PC_FALSE='#'
|
---|
13473 | else
|
---|
13474 | DO_INSTALL_LIBPNG_PC_TRUE='#'
|
---|
13475 | DO_INSTALL_LIBPNG_PC_FALSE=
|
---|
13476 | fi
|
---|
13477 |
|
---|
13478 |
|
---|
13479 | # Check whether --enable-unversioned-libpng-config was given.
|
---|
13480 | if test "${enable_unversioned_libpng_config+set}" = set; then :
|
---|
13481 | enableval=$enable_unversioned_libpng_config;
|
---|
13482 | fi
|
---|
13483 |
|
---|
13484 | if test "$enable_unversioned_libpng_config" != "no"; then
|
---|
13485 | DO_INSTALL_LIBPNG_CONFIG_TRUE=
|
---|
13486 | DO_INSTALL_LIBPNG_CONFIG_FALSE='#'
|
---|
13487 | else
|
---|
13488 | DO_INSTALL_LIBPNG_CONFIG_TRUE='#'
|
---|
13489 | DO_INSTALL_LIBPNG_CONFIG_FALSE=
|
---|
13490 | fi
|
---|
13491 |
|
---|
13492 |
|
---|
13493 | # HOST SPECIFIC OPTIONS
|
---|
13494 | # =====================
|
---|
13495 | #
|
---|
13496 | # DEFAULT
|
---|
13497 | # =======
|
---|
13498 | #
|
---|
13499 | # Check whether --enable-hardware-optimizations was given.
|
---|
13500 | if test "${enable_hardware_optimizations+set}" = set; then :
|
---|
13501 | enableval=$enable_hardware_optimizations; case "$enableval" in
|
---|
13502 | no|off)
|
---|
13503 | # disable hardware optimization on all systems:
|
---|
13504 | enable_arm_neon=no
|
---|
13505 |
|
---|
13506 | $as_echo "#define PNG_ARM_NEON_OPT 0" >>confdefs.h
|
---|
13507 |
|
---|
13508 | enable_mips_msa=no
|
---|
13509 |
|
---|
13510 | $as_echo "#define PNG_MIPS_MSA_OPT 0" >>confdefs.h
|
---|
13511 |
|
---|
13512 | enable_powerpc_vsx=no
|
---|
13513 |
|
---|
13514 | $as_echo "#define PNG_POWERPC_VSX_OPT 0" >>confdefs.h
|
---|
13515 |
|
---|
13516 | enable_intel_sse=no
|
---|
13517 |
|
---|
13518 | $as_echo "#define PNG_INTEL_SSE_OPT 0" >>confdefs.h
|
---|
13519 |
|
---|
13520 | ;;
|
---|
13521 | *)
|
---|
13522 | # allow enabling hardware optimization on any system:
|
---|
13523 | case "$host_cpu" in
|
---|
13524 | arm*|aarch64*)
|
---|
13525 | enable_arm_neon=yes
|
---|
13526 |
|
---|
13527 | $as_echo "#define PNG_ARM_NEON_OPT 0" >>confdefs.h
|
---|
13528 |
|
---|
13529 | ;;
|
---|
13530 | mipsel*|mips64el*)
|
---|
13531 | enable_mips_msa=yes
|
---|
13532 |
|
---|
13533 | $as_echo "#define PNG_MIPS_MSA_OPT 0" >>confdefs.h
|
---|
13534 |
|
---|
13535 | ;;
|
---|
13536 | i?86|x86_64)
|
---|
13537 | enable_intel_sse=yes
|
---|
13538 |
|
---|
13539 | $as_echo "#define PNG_INTEL_SSE_OPT 1" >>confdefs.h
|
---|
13540 |
|
---|
13541 | ;;
|
---|
13542 | powerpc*|ppc64*)
|
---|
13543 | enable_powerpc_vsx=yes
|
---|
13544 |
|
---|
13545 | $as_echo "#define PNG_POWERPC_VSX_OPT 2" >>confdefs.h
|
---|
13546 |
|
---|
13547 | ;;
|
---|
13548 | esac
|
---|
13549 | ;;
|
---|
13550 | esac
|
---|
13551 | fi
|
---|
13552 |
|
---|
13553 |
|
---|
13554 | # ARM
|
---|
13555 | # ===
|
---|
13556 | #
|
---|
13557 | # ARM NEON (SIMD) support.
|
---|
13558 |
|
---|
13559 | # Check whether --enable-arm-neon was given.
|
---|
13560 | if test "${enable_arm_neon+set}" = set; then :
|
---|
13561 | enableval=$enable_arm_neon; case "$enableval" in
|
---|
13562 | no|off)
|
---|
13563 | # disable the default enabling on __ARM_NEON__ systems:
|
---|
13564 |
|
---|
13565 | $as_echo "#define PNG_ARM_NEON_OPT 0" >>confdefs.h
|
---|
13566 |
|
---|
13567 | # Prevent inclusion of the assembler files below:
|
---|
13568 | enable_arm_neon=no;;
|
---|
13569 | check)
|
---|
13570 |
|
---|
13571 | $as_echo "#define PNG_ARM_NEON_CHECK_SUPPORTED /**/" >>confdefs.h
|
---|
13572 | ;;
|
---|
13573 | api)
|
---|
13574 |
|
---|
13575 | $as_echo "#define PNG_ARM_NEON_API_SUPPORTED /**/" >>confdefs.h
|
---|
13576 | ;;
|
---|
13577 | yes|on)
|
---|
13578 |
|
---|
13579 | $as_echo "#define PNG_ARM_NEON_OPT 2" >>confdefs.h
|
---|
13580 |
|
---|
13581 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-arm-neon: please specify 'check' or 'api', if
|
---|
13582 | you want the optimizations unconditionally pass -mfpu=neon
|
---|
13583 | to the compiler." >&5
|
---|
13584 | $as_echo "$as_me: WARNING: --enable-arm-neon: please specify 'check' or 'api', if
|
---|
13585 | you want the optimizations unconditionally pass -mfpu=neon
|
---|
13586 | to the compiler." >&2;};;
|
---|
13587 | *)
|
---|
13588 | as_fn_error $? "--enable-arm-neon=${enable_arm_neon}: invalid value" "$LINENO" 5
|
---|
13589 | esac
|
---|
13590 | fi
|
---|
13591 |
|
---|
13592 |
|
---|
13593 | # Add ARM specific files to all builds where the host_cpu is arm ('arm*') or
|
---|
13594 | # where ARM optimizations were explicitly requested (this allows a fallback if a
|
---|
13595 | # future host CPU does not match 'arm*')
|
---|
13596 |
|
---|
13597 | if test "$enable_arm_neon" != 'no' &&
|
---|
13598 | case "$host_cpu" in
|
---|
13599 | arm*|aarch64*) :;;
|
---|
13600 | *) test "$enable_arm_neon" != '';;
|
---|
13601 | esac; then
|
---|
13602 | PNG_ARM_NEON_TRUE=
|
---|
13603 | PNG_ARM_NEON_FALSE='#'
|
---|
13604 | else
|
---|
13605 | PNG_ARM_NEON_TRUE='#'
|
---|
13606 | PNG_ARM_NEON_FALSE=
|
---|
13607 | fi
|
---|
13608 |
|
---|
13609 |
|
---|
13610 | # MIPS
|
---|
13611 | # ===
|
---|
13612 | #
|
---|
13613 | # MIPS MSA (SIMD) support.
|
---|
13614 |
|
---|
13615 | # Check whether --enable-mips-msa was given.
|
---|
13616 | if test "${enable_mips_msa+set}" = set; then :
|
---|
13617 | enableval=$enable_mips_msa; case "$enableval" in
|
---|
13618 | no|off)
|
---|
13619 | # disable the default enabling on __mips_msa systems:
|
---|
13620 |
|
---|
13621 | $as_echo "#define PNG_MIPS_MSA_OPT 0" >>confdefs.h
|
---|
13622 |
|
---|
13623 | # Prevent inclusion of the assembler files below:
|
---|
13624 | enable_mips_msa=no;;
|
---|
13625 | check)
|
---|
13626 |
|
---|
13627 | $as_echo "#define PNG_MIPS_MSA_CHECK_SUPPORTED /**/" >>confdefs.h
|
---|
13628 | ;;
|
---|
13629 | api)
|
---|
13630 |
|
---|
13631 | $as_echo "#define PNG_MIPS_MSA_API_SUPPORTED /**/" >>confdefs.h
|
---|
13632 | ;;
|
---|
13633 | yes|on)
|
---|
13634 |
|
---|
13635 | $as_echo "#define PNG_MIPS_MSA_OPT 2" >>confdefs.h
|
---|
13636 |
|
---|
13637 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-mips-msa: please specify 'check' or 'api', if
|
---|
13638 | you want the optimizations unconditionally pass '-mmsa -mfp64'
|
---|
13639 | to the compiler." >&5
|
---|
13640 | $as_echo "$as_me: WARNING: --enable-mips-msa: please specify 'check' or 'api', if
|
---|
13641 | you want the optimizations unconditionally pass '-mmsa -mfp64'
|
---|
13642 | to the compiler." >&2;};;
|
---|
13643 | *)
|
---|
13644 | as_fn_error $? "--enable-mips-msa=${enable_mips_msa}: invalid value" "$LINENO" 5
|
---|
13645 | esac
|
---|
13646 | fi
|
---|
13647 |
|
---|
13648 |
|
---|
13649 | # Add MIPS specific files to all builds where the host_cpu is mips ('mips*') or
|
---|
13650 | # where MIPS optimizations were explicitly requested (this allows a fallback if a
|
---|
13651 | # future host CPU does not match 'mips*')
|
---|
13652 |
|
---|
13653 | if test "$enable_mips_msa" != 'no' &&
|
---|
13654 | case "$host_cpu" in
|
---|
13655 | mipsel*|mips64el*) :;;
|
---|
13656 | esac; then
|
---|
13657 | PNG_MIPS_MSA_TRUE=
|
---|
13658 | PNG_MIPS_MSA_FALSE='#'
|
---|
13659 | else
|
---|
13660 | PNG_MIPS_MSA_TRUE='#'
|
---|
13661 | PNG_MIPS_MSA_FALSE=
|
---|
13662 | fi
|
---|
13663 |
|
---|
13664 |
|
---|
13665 | # INTEL
|
---|
13666 | # =====
|
---|
13667 | #
|
---|
13668 | # INTEL SSE (SIMD) support.
|
---|
13669 |
|
---|
13670 | # Check whether --enable-intel-sse was given.
|
---|
13671 | if test "${enable_intel_sse+set}" = set; then :
|
---|
13672 | enableval=$enable_intel_sse; case "$enableval" in
|
---|
13673 | no|off)
|
---|
13674 | # disable the default enabling:
|
---|
13675 |
|
---|
13676 | $as_echo "#define PNG_INTEL_SSE_OPT 0" >>confdefs.h
|
---|
13677 |
|
---|
13678 | # Prevent inclusion of the assembler files below:
|
---|
13679 | enable_intel_sse=no;;
|
---|
13680 | yes|on)
|
---|
13681 |
|
---|
13682 | $as_echo "#define PNG_INTEL_SSE_OPT 1" >>confdefs.h
|
---|
13683 | ;;
|
---|
13684 | *)
|
---|
13685 | as_fn_error $? "--enable-intel-sse=${enable_intel_sse}: invalid value" "$LINENO" 5
|
---|
13686 | esac
|
---|
13687 | fi
|
---|
13688 |
|
---|
13689 |
|
---|
13690 | # Add Intel specific files to all builds where the host_cpu is Intel ('x86*')
|
---|
13691 | # or where Intel optimizations were explicitly requested (this allows a
|
---|
13692 | # fallback if a future host CPU does not match 'x86*')
|
---|
13693 | if test "$enable_intel_sse" != 'no' &&
|
---|
13694 | case "$host_cpu" in
|
---|
13695 | i?86|x86_64) :;;
|
---|
13696 | *) test "$enable_intel_sse" != '';;
|
---|
13697 | esac; then
|
---|
13698 | PNG_INTEL_SSE_TRUE=
|
---|
13699 | PNG_INTEL_SSE_FALSE='#'
|
---|
13700 | else
|
---|
13701 | PNG_INTEL_SSE_TRUE='#'
|
---|
13702 | PNG_INTEL_SSE_FALSE=
|
---|
13703 | fi
|
---|
13704 |
|
---|
13705 |
|
---|
13706 | # PowerPC
|
---|
13707 | # ===
|
---|
13708 | #
|
---|
13709 | # PowerPC VSX (SIMD) support.
|
---|
13710 |
|
---|
13711 | # Check whether --enable-powerpc-vsx was given.
|
---|
13712 | if test "${enable_powerpc_vsx+set}" = set; then :
|
---|
13713 | enableval=$enable_powerpc_vsx; case "$enableval" in
|
---|
13714 | no|off)
|
---|
13715 | # disable the default enabling on __ppc64__ systems:
|
---|
13716 |
|
---|
13717 | $as_echo "#define PNG_POWERPC_VSX_OPT 0" >>confdefs.h
|
---|
13718 |
|
---|
13719 | # Prevent inclusion of the platform specific files below:
|
---|
13720 | enable_powerpc_vsx=no;;
|
---|
13721 | check)
|
---|
13722 |
|
---|
13723 | $as_echo "#define PNG_POWERPC_VSX_CHECK_SUPPORTED /**/" >>confdefs.h
|
---|
13724 |
|
---|
13725 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-powerpc-vsx Please check contrib/powerpc/README file
|
---|
13726 | for the list of supported OSes." >&5
|
---|
13727 | $as_echo "$as_me: WARNING: --enable-powerpc-vsx Please check contrib/powerpc/README file
|
---|
13728 | for the list of supported OSes." >&2;};;
|
---|
13729 | api)
|
---|
13730 |
|
---|
13731 | $as_echo "#define PNG_POWERPC_VSX_API_SUPPORTED /**/" >>confdefs.h
|
---|
13732 | ;;
|
---|
13733 | yes|on)
|
---|
13734 |
|
---|
13735 | $as_echo "#define PNG_POWERPC_VSX_OPT 2" >>confdefs.h
|
---|
13736 |
|
---|
13737 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-powerpc-vsx: please specify 'check' or 'api', if
|
---|
13738 | you want the optimizations unconditionally pass '-maltivec -mvsx'
|
---|
13739 | or '-mcpu=power8'to the compiler." >&5
|
---|
13740 | $as_echo "$as_me: WARNING: --enable-powerpc-vsx: please specify 'check' or 'api', if
|
---|
13741 | you want the optimizations unconditionally pass '-maltivec -mvsx'
|
---|
13742 | or '-mcpu=power8'to the compiler." >&2;};;
|
---|
13743 | *)
|
---|
13744 | as_fn_error $? "--enable-powerpc-vsx=${enable_powerpc_vsx}: invalid value" "$LINENO" 5
|
---|
13745 | esac
|
---|
13746 | fi
|
---|
13747 |
|
---|
13748 |
|
---|
13749 | # Add PowerPC specific files to all builds where the host_cpu is powerpc('powerpc*') or
|
---|
13750 | # where POWERPC optimizations were explicitly requested (this allows a fallback if a
|
---|
13751 | # future host CPU does not match 'powerpc*')
|
---|
13752 |
|
---|
13753 | if test "$enable_powerpc_vsx" != 'no' &&
|
---|
13754 | case "$host_cpu" in
|
---|
13755 | powerpc*|ppc64*) :;;
|
---|
13756 | esac; then
|
---|
13757 | PNG_POWERPC_VSX_TRUE=
|
---|
13758 | PNG_POWERPC_VSX_FALSE='#'
|
---|
13759 | else
|
---|
13760 | PNG_POWERPC_VSX_TRUE='#'
|
---|
13761 | PNG_POWERPC_VSX_FALSE=
|
---|
13762 | fi
|
---|
13763 |
|
---|
13764 |
|
---|
13765 |
|
---|
13766 | { $as_echo "$as_me:${as_lineno-$LINENO}: Extra options for compiler: $PNG_COPTS" >&5
|
---|
13767 | $as_echo "$as_me: Extra options for compiler: $PNG_COPTS" >&6;}
|
---|
13768 |
|
---|
13769 | # Config files, substituting as above
|
---|
13770 | ac_config_files="$ac_config_files Makefile libpng.pc:libpng.pc.in"
|
---|
13771 |
|
---|
13772 | ac_config_files="$ac_config_files libpng-config:libpng-config.in"
|
---|
13773 |
|
---|
13774 |
|
---|
13775 | cat >confcache <<\_ACEOF
|
---|
13776 | # This file is a shell script that caches the results of configure
|
---|
13777 | # tests run on this system so they can be shared between configure
|
---|
13778 | # scripts and configure runs, see configure's option --config-cache.
|
---|
13779 | # It is not useful on other systems. If it contains results you don't
|
---|
13780 | # want to keep, you may remove or edit it.
|
---|
13781 | #
|
---|
13782 | # config.status only pays attention to the cache file if you give it
|
---|
13783 | # the --recheck option to rerun configure.
|
---|
13784 | #
|
---|
13785 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
13786 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
13787 | # following values.
|
---|
13788 |
|
---|
13789 | _ACEOF
|
---|
13790 |
|
---|
13791 | # The following way of writing the cache mishandles newlines in values,
|
---|
13792 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
13793 | # So, we kill variables containing newlines.
|
---|
13794 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
13795 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
13796 | (
|
---|
13797 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
---|
13798 | eval ac_val=\$$ac_var
|
---|
13799 | case $ac_val in #(
|
---|
13800 | *${as_nl}*)
|
---|
13801 | case $ac_var in #(
|
---|
13802 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
13803 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
13804 | esac
|
---|
13805 | case $ac_var in #(
|
---|
13806 | _ | IFS | as_nl) ;; #(
|
---|
13807 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
13808 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
13809 | esac ;;
|
---|
13810 | esac
|
---|
13811 | done
|
---|
13812 |
|
---|
13813 | (set) 2>&1 |
|
---|
13814 | case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
---|
13815 | *${as_nl}ac_space=\ *)
|
---|
13816 | # `set' does not quote correctly, so add quotes: double-quote
|
---|
13817 | # substitution turns \\\\ into \\, and sed turns \\ into \.
|
---|
13818 | sed -n \
|
---|
13819 | "s/'/'\\\\''/g;
|
---|
13820 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
13821 | ;; #(
|
---|
13822 | *)
|
---|
13823 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
13824 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
13825 | ;;
|
---|
13826 | esac |
|
---|
13827 | sort
|
---|
13828 | ) |
|
---|
13829 | sed '
|
---|
13830 | /^ac_cv_env_/b end
|
---|
13831 | t clear
|
---|
13832 | :clear
|
---|
13833 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
13834 | t end
|
---|
13835 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
13836 | :end' >>confcache
|
---|
13837 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
---|
13838 | if test -w "$cache_file"; then
|
---|
13839 | if test "x$cache_file" != "x/dev/null"; then
|
---|
13840 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
|
---|
13841 | $as_echo "$as_me: updating cache $cache_file" >&6;}
|
---|
13842 | if test ! -f "$cache_file" || test -h "$cache_file"; then
|
---|
13843 | cat confcache >"$cache_file"
|
---|
13844 | else
|
---|
13845 | case $cache_file in #(
|
---|
13846 | */* | ?:*)
|
---|
13847 | mv -f confcache "$cache_file"$$ &&
|
---|
13848 | mv -f "$cache_file"$$ "$cache_file" ;; #(
|
---|
13849 | *)
|
---|
13850 | mv -f confcache "$cache_file" ;;
|
---|
13851 | esac
|
---|
13852 | fi
|
---|
13853 | fi
|
---|
13854 | else
|
---|
13855 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
|
---|
13856 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
---|
13857 | fi
|
---|
13858 | fi
|
---|
13859 | rm -f confcache
|
---|
13860 |
|
---|
13861 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
13862 | # Let make expand exec_prefix.
|
---|
13863 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
13864 |
|
---|
13865 | DEFS=-DHAVE_CONFIG_H
|
---|
13866 |
|
---|
13867 | ac_libobjs=
|
---|
13868 | ac_ltlibobjs=
|
---|
13869 | U=
|
---|
13870 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
13871 | # 1. Remove the extension, and $U if already installed.
|
---|
13872 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
---|
13873 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
|
---|
13874 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
---|
13875 | # will be set to the directory where LIBOBJS objects are built.
|
---|
13876 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
---|
13877 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
|
---|
13878 | done
|
---|
13879 | LIBOBJS=$ac_libobjs
|
---|
13880 |
|
---|
13881 | LTLIBOBJS=$ac_ltlibobjs
|
---|
13882 |
|
---|
13883 |
|
---|
13884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
|
---|
13885 | $as_echo_n "checking that generated files are newer than configure... " >&6; }
|
---|
13886 | if test -n "$am_sleep_pid"; then
|
---|
13887 | # Hide warnings about reused PIDs.
|
---|
13888 | wait $am_sleep_pid 2>/dev/null
|
---|
13889 | fi
|
---|
13890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
|
---|
13891 | $as_echo "done" >&6; }
|
---|
13892 | if test -n "$EXEEXT"; then
|
---|
13893 | am__EXEEXT_TRUE=
|
---|
13894 | am__EXEEXT_FALSE='#'
|
---|
13895 | else
|
---|
13896 | am__EXEEXT_TRUE='#'
|
---|
13897 | am__EXEEXT_FALSE=
|
---|
13898 | fi
|
---|
13899 |
|
---|
13900 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
|
---|
13901 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
|
---|
13902 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
13903 | fi
|
---|
13904 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
|
---|
13905 | as_fn_error $? "conditional \"AMDEP\" was never defined.
|
---|
13906 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
13907 | fi
|
---|
13908 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
|
---|
13909 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
|
---|
13910 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
13911 | fi
|
---|
13912 | if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
|
---|
13913 | as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
|
---|
13914 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
13915 | fi
|
---|
13916 | if test -z "${HAVE_CLOCK_GETTIME_TRUE}" && test -z "${HAVE_CLOCK_GETTIME_FALSE}"; then
|
---|
13917 | as_fn_error $? "conditional \"HAVE_CLOCK_GETTIME\" was never defined.
|
---|
13918 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
13919 | fi
|
---|
13920 | if test -z "${HAVE_SOLARIS_LD_TRUE}" && test -z "${HAVE_SOLARIS_LD_FALSE}"; then
|
---|
13921 | as_fn_error $? "conditional \"HAVE_SOLARIS_LD\" was never defined.
|
---|
13922 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
13923 | fi
|
---|
13924 | if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
|
---|
13925 | as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
|
---|
13926 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
13927 | fi
|
---|
13928 | if test -z "${DO_PNG_PREFIX_TRUE}" && test -z "${DO_PNG_PREFIX_FALSE}"; then
|
---|
13929 | as_fn_error $? "conditional \"DO_PNG_PREFIX\" was never defined.
|
---|
13930 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
13931 | fi
|
---|
13932 | if test -z "${DO_INSTALL_LINKS_TRUE}" && test -z "${DO_INSTALL_LINKS_FALSE}"; then
|
---|
13933 | as_fn_error $? "conditional \"DO_INSTALL_LINKS\" was never defined.
|
---|
13934 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
13935 | fi
|
---|
13936 | if test -z "${DO_INSTALL_LIBPNG_PC_TRUE}" && test -z "${DO_INSTALL_LIBPNG_PC_FALSE}"; then
|
---|
13937 | as_fn_error $? "conditional \"DO_INSTALL_LIBPNG_PC\" was never defined.
|
---|
13938 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
13939 | fi
|
---|
13940 | if test -z "${DO_INSTALL_LIBPNG_CONFIG_TRUE}" && test -z "${DO_INSTALL_LIBPNG_CONFIG_FALSE}"; then
|
---|
13941 | as_fn_error $? "conditional \"DO_INSTALL_LIBPNG_CONFIG\" was never defined.
|
---|
13942 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
13943 | fi
|
---|
13944 | if test -z "${PNG_ARM_NEON_TRUE}" && test -z "${PNG_ARM_NEON_FALSE}"; then
|
---|
13945 | as_fn_error $? "conditional \"PNG_ARM_NEON\" was never defined.
|
---|
13946 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
13947 | fi
|
---|
13948 | if test -z "${PNG_MIPS_MSA_TRUE}" && test -z "${PNG_MIPS_MSA_FALSE}"; then
|
---|
13949 | as_fn_error $? "conditional \"PNG_MIPS_MSA\" was never defined.
|
---|
13950 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
13951 | fi
|
---|
13952 | if test -z "${PNG_INTEL_SSE_TRUE}" && test -z "${PNG_INTEL_SSE_FALSE}"; then
|
---|
13953 | as_fn_error $? "conditional \"PNG_INTEL_SSE\" was never defined.
|
---|
13954 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
13955 | fi
|
---|
13956 | if test -z "${PNG_POWERPC_VSX_TRUE}" && test -z "${PNG_POWERPC_VSX_FALSE}"; then
|
---|
13957 | as_fn_error $? "conditional \"PNG_POWERPC_VSX\" was never defined.
|
---|
13958 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
13959 | fi
|
---|
13960 |
|
---|
13961 | : "${CONFIG_STATUS=./config.status}"
|
---|
13962 | ac_write_fail=0
|
---|
13963 | ac_clean_files_save=$ac_clean_files
|
---|
13964 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
13965 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
|
---|
13966 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
13967 | as_write_fail=0
|
---|
13968 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
|
---|
13969 | #! $SHELL
|
---|
13970 | # Generated by $as_me.
|
---|
13971 | # Run this file to recreate the current configuration.
|
---|
13972 | # Compiler output produced by configure, useful for debugging
|
---|
13973 | # configure, is in config.log if it exists.
|
---|
13974 |
|
---|
13975 | debug=false
|
---|
13976 | ac_cs_recheck=false
|
---|
13977 | ac_cs_silent=false
|
---|
13978 |
|
---|
13979 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
13980 | export SHELL
|
---|
13981 | _ASEOF
|
---|
13982 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
|
---|
13983 | ## -------------------- ##
|
---|
13984 | ## M4sh Initialization. ##
|
---|
13985 | ## -------------------- ##
|
---|
13986 |
|
---|
13987 | # Be more Bourne compatible
|
---|
13988 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
13989 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
---|
13990 | emulate sh
|
---|
13991 | NULLCMD=:
|
---|
13992 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
13993 | # is contrary to our usage. Disable this feature.
|
---|
13994 | alias -g '${1+"$@"}'='"$@"'
|
---|
13995 | setopt NO_GLOB_SUBST
|
---|
13996 | else
|
---|
13997 | case `(set -o) 2>/dev/null` in #(
|
---|
13998 | *posix*) :
|
---|
13999 | set -o posix ;; #(
|
---|
14000 | *) :
|
---|
14001 | ;;
|
---|
14002 | esac
|
---|
14003 | fi
|
---|
14004 |
|
---|
14005 |
|
---|
14006 | as_nl='
|
---|
14007 | '
|
---|
14008 | export as_nl
|
---|
14009 | # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
---|
14010 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
14011 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
14012 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
14013 | # Prefer a ksh shell builtin over an external printf program on Solaris,
|
---|
14014 | # but without wasting forks for bash or zsh.
|
---|
14015 | if test -z "$BASH_VERSION$ZSH_VERSION" \
|
---|
14016 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
14017 | as_echo='print -r --'
|
---|
14018 | as_echo_n='print -rn --'
|
---|
14019 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
14020 | as_echo='printf %s\n'
|
---|
14021 | as_echo_n='printf %s'
|
---|
14022 | else
|
---|
14023 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
---|
14024 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
---|
14025 | as_echo_n='/usr/ucb/echo -n'
|
---|
14026 | else
|
---|
14027 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
---|
14028 | as_echo_n_body='eval
|
---|
14029 | arg=$1;
|
---|
14030 | case $arg in #(
|
---|
14031 | *"$as_nl"*)
|
---|
14032 | expr "X$arg" : "X\\(.*\\)$as_nl";
|
---|
14033 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
---|
14034 | esac;
|
---|
14035 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
---|
14036 | '
|
---|
14037 | export as_echo_n_body
|
---|
14038 | as_echo_n='sh -c $as_echo_n_body as_echo'
|
---|
14039 | fi
|
---|
14040 | export as_echo_body
|
---|
14041 | as_echo='sh -c $as_echo_body as_echo'
|
---|
14042 | fi
|
---|
14043 |
|
---|
14044 | # The user is always right.
|
---|
14045 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
14046 | PATH_SEPARATOR=:
|
---|
14047 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
---|
14048 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
---|
14049 | PATH_SEPARATOR=';'
|
---|
14050 | }
|
---|
14051 | fi
|
---|
14052 |
|
---|
14053 |
|
---|
14054 | # IFS
|
---|
14055 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
14056 | # there to prevent editors from complaining about space-tab.
|
---|
14057 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
14058 | # splitting by setting IFS to empty value.)
|
---|
14059 | IFS=" "" $as_nl"
|
---|
14060 |
|
---|
14061 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
14062 | as_myself=
|
---|
14063 | case $0 in #((
|
---|
14064 | *[\\/]* ) as_myself=$0 ;;
|
---|
14065 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
14066 | for as_dir in $PATH
|
---|
14067 | do
|
---|
14068 | IFS=$as_save_IFS
|
---|
14069 | test -z "$as_dir" && as_dir=.
|
---|
14070 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
14071 | done
|
---|
14072 | IFS=$as_save_IFS
|
---|
14073 |
|
---|
14074 | ;;
|
---|
14075 | esac
|
---|
14076 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
14077 | # in which case we are not to be found in the path.
|
---|
14078 | if test "x$as_myself" = x; then
|
---|
14079 | as_myself=$0
|
---|
14080 | fi
|
---|
14081 | if test ! -f "$as_myself"; then
|
---|
14082 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
14083 | exit 1
|
---|
14084 | fi
|
---|
14085 |
|
---|
14086 | # Unset variables that we do not need and which cause bugs (e.g. in
|
---|
14087 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
---|
14088 | # suppresses any "Segmentation fault" message there. '((' could
|
---|
14089 | # trigger a bug in pdksh 5.2.14.
|
---|
14090 | for as_var in BASH_ENV ENV MAIL MAILPATH
|
---|
14091 | do eval test x\${$as_var+set} = xset \
|
---|
14092 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
14093 | done
|
---|
14094 | PS1='$ '
|
---|
14095 | PS2='> '
|
---|
14096 | PS4='+ '
|
---|
14097 |
|
---|
14098 | # NLS nuisances.
|
---|
14099 | LC_ALL=C
|
---|
14100 | export LC_ALL
|
---|
14101 | LANGUAGE=C
|
---|
14102 | export LANGUAGE
|
---|
14103 |
|
---|
14104 | # CDPATH.
|
---|
14105 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
14106 |
|
---|
14107 |
|
---|
14108 | # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
---|
14109 | # ----------------------------------------
|
---|
14110 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
14111 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
14112 | # script with STATUS, using 1 if that was 0.
|
---|
14113 | as_fn_error ()
|
---|
14114 | {
|
---|
14115 | as_status=$1; test $as_status -eq 0 && as_status=1
|
---|
14116 | if test "$4"; then
|
---|
14117 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
14118 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
---|
14119 | fi
|
---|
14120 | $as_echo "$as_me: error: $2" >&2
|
---|
14121 | as_fn_exit $as_status
|
---|
14122 | } # as_fn_error
|
---|
14123 |
|
---|
14124 |
|
---|
14125 | # as_fn_set_status STATUS
|
---|
14126 | # -----------------------
|
---|
14127 | # Set $? to STATUS, without forking.
|
---|
14128 | as_fn_set_status ()
|
---|
14129 | {
|
---|
14130 | return $1
|
---|
14131 | } # as_fn_set_status
|
---|
14132 |
|
---|
14133 | # as_fn_exit STATUS
|
---|
14134 | # -----------------
|
---|
14135 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
14136 | as_fn_exit ()
|
---|
14137 | {
|
---|
14138 | set +e
|
---|
14139 | as_fn_set_status $1
|
---|
14140 | exit $1
|
---|
14141 | } # as_fn_exit
|
---|
14142 |
|
---|
14143 | # as_fn_unset VAR
|
---|
14144 | # ---------------
|
---|
14145 | # Portably unset VAR.
|
---|
14146 | as_fn_unset ()
|
---|
14147 | {
|
---|
14148 | { eval $1=; unset $1;}
|
---|
14149 | }
|
---|
14150 | as_unset=as_fn_unset
|
---|
14151 | # as_fn_append VAR VALUE
|
---|
14152 | # ----------------------
|
---|
14153 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
14154 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
14155 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
14156 | # implementations.
|
---|
14157 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
---|
14158 | eval 'as_fn_append ()
|
---|
14159 | {
|
---|
14160 | eval $1+=\$2
|
---|
14161 | }'
|
---|
14162 | else
|
---|
14163 | as_fn_append ()
|
---|
14164 | {
|
---|
14165 | eval $1=\$$1\$2
|
---|
14166 | }
|
---|
14167 | fi # as_fn_append
|
---|
14168 |
|
---|
14169 | # as_fn_arith ARG...
|
---|
14170 | # ------------------
|
---|
14171 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
14172 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
14173 | # must be portable across $(()) and expr.
|
---|
14174 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
---|
14175 | eval 'as_fn_arith ()
|
---|
14176 | {
|
---|
14177 | as_val=$(( $* ))
|
---|
14178 | }'
|
---|
14179 | else
|
---|
14180 | as_fn_arith ()
|
---|
14181 | {
|
---|
14182 | as_val=`expr "$@" || test $? -eq 1`
|
---|
14183 | }
|
---|
14184 | fi # as_fn_arith
|
---|
14185 |
|
---|
14186 |
|
---|
14187 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
14188 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
14189 | as_expr=expr
|
---|
14190 | else
|
---|
14191 | as_expr=false
|
---|
14192 | fi
|
---|
14193 |
|
---|
14194 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
14195 | as_basename=basename
|
---|
14196 | else
|
---|
14197 | as_basename=false
|
---|
14198 | fi
|
---|
14199 |
|
---|
14200 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
14201 | as_dirname=dirname
|
---|
14202 | else
|
---|
14203 | as_dirname=false
|
---|
14204 | fi
|
---|
14205 |
|
---|
14206 | as_me=`$as_basename -- "$0" ||
|
---|
14207 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
14208 | X"$0" : 'X\(//\)$' \| \
|
---|
14209 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
14210 | $as_echo X/"$0" |
|
---|
14211 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
14212 | s//\1/
|
---|
14213 | q
|
---|
14214 | }
|
---|
14215 | /^X\/\(\/\/\)$/{
|
---|
14216 | s//\1/
|
---|
14217 | q
|
---|
14218 | }
|
---|
14219 | /^X\/\(\/\).*/{
|
---|
14220 | s//\1/
|
---|
14221 | q
|
---|
14222 | }
|
---|
14223 | s/.*/./; q'`
|
---|
14224 |
|
---|
14225 | # Avoid depending upon Character Ranges.
|
---|
14226 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
14227 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
14228 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
14229 | as_cr_digits='0123456789'
|
---|
14230 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
14231 |
|
---|
14232 | ECHO_C= ECHO_N= ECHO_T=
|
---|
14233 | case `echo -n x` in #(((((
|
---|
14234 | -n*)
|
---|
14235 | case `echo 'xy\c'` in
|
---|
14236 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
14237 | xy) ECHO_C='\c';;
|
---|
14238 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
14239 | ECHO_T=' ';;
|
---|
14240 | esac;;
|
---|
14241 | *)
|
---|
14242 | ECHO_N='-n';;
|
---|
14243 | esac
|
---|
14244 |
|
---|
14245 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
14246 | if test -d conf$$.dir; then
|
---|
14247 | rm -f conf$$.dir/conf$$.file
|
---|
14248 | else
|
---|
14249 | rm -f conf$$.dir
|
---|
14250 | mkdir conf$$.dir 2>/dev/null
|
---|
14251 | fi
|
---|
14252 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
14253 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
14254 | as_ln_s='ln -s'
|
---|
14255 | # ... but there are two gotchas:
|
---|
14256 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
14257 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
14258 | # In both cases, we have to default to `cp -pR'.
|
---|
14259 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
14260 | as_ln_s='cp -pR'
|
---|
14261 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
14262 | as_ln_s=ln
|
---|
14263 | else
|
---|
14264 | as_ln_s='cp -pR'
|
---|
14265 | fi
|
---|
14266 | else
|
---|
14267 | as_ln_s='cp -pR'
|
---|
14268 | fi
|
---|
14269 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
14270 | rmdir conf$$.dir 2>/dev/null
|
---|
14271 |
|
---|
14272 |
|
---|
14273 | # as_fn_mkdir_p
|
---|
14274 | # -------------
|
---|
14275 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
14276 | as_fn_mkdir_p ()
|
---|
14277 | {
|
---|
14278 |
|
---|
14279 | case $as_dir in #(
|
---|
14280 | -*) as_dir=./$as_dir;;
|
---|
14281 | esac
|
---|
14282 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
14283 | as_dirs=
|
---|
14284 | while :; do
|
---|
14285 | case $as_dir in #(
|
---|
14286 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
14287 | *) as_qdir=$as_dir;;
|
---|
14288 | esac
|
---|
14289 | as_dirs="'$as_qdir' $as_dirs"
|
---|
14290 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
14291 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
14292 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
14293 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
14294 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
14295 | $as_echo X"$as_dir" |
|
---|
14296 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
14297 | s//\1/
|
---|
14298 | q
|
---|
14299 | }
|
---|
14300 | /^X\(\/\/\)[^/].*/{
|
---|
14301 | s//\1/
|
---|
14302 | q
|
---|
14303 | }
|
---|
14304 | /^X\(\/\/\)$/{
|
---|
14305 | s//\1/
|
---|
14306 | q
|
---|
14307 | }
|
---|
14308 | /^X\(\/\).*/{
|
---|
14309 | s//\1/
|
---|
14310 | q
|
---|
14311 | }
|
---|
14312 | s/.*/./; q'`
|
---|
14313 | test -d "$as_dir" && break
|
---|
14314 | done
|
---|
14315 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
14316 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
---|
14317 |
|
---|
14318 |
|
---|
14319 | } # as_fn_mkdir_p
|
---|
14320 | if mkdir -p . 2>/dev/null; then
|
---|
14321 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
14322 | else
|
---|
14323 | test -d ./-p && rmdir ./-p
|
---|
14324 | as_mkdir_p=false
|
---|
14325 | fi
|
---|
14326 |
|
---|
14327 |
|
---|
14328 | # as_fn_executable_p FILE
|
---|
14329 | # -----------------------
|
---|
14330 | # Test if FILE is an executable regular file.
|
---|
14331 | as_fn_executable_p ()
|
---|
14332 | {
|
---|
14333 | test -f "$1" && test -x "$1"
|
---|
14334 | } # as_fn_executable_p
|
---|
14335 | as_test_x='test -x'
|
---|
14336 | as_executable_p=as_fn_executable_p
|
---|
14337 |
|
---|
14338 | # Sed expression to map a string onto a valid CPP name.
|
---|
14339 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
14340 |
|
---|
14341 | # Sed expression to map a string onto a valid variable name.
|
---|
14342 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
14343 |
|
---|
14344 |
|
---|
14345 | exec 6>&1
|
---|
14346 | ## ----------------------------------- ##
|
---|
14347 | ## Main body of $CONFIG_STATUS script. ##
|
---|
14348 | ## ----------------------------------- ##
|
---|
14349 | _ASEOF
|
---|
14350 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
|
---|
14351 |
|
---|
14352 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
14353 | # Save the log message, to keep $0 and so on meaningful, and to
|
---|
14354 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
14355 | # values after options handling.
|
---|
14356 | ac_log="
|
---|
14357 | This file was extended by libpng $as_me 1.6.37, which was
|
---|
14358 | generated by GNU Autoconf 2.69. Invocation command line was
|
---|
14359 |
|
---|
14360 | CONFIG_FILES = $CONFIG_FILES
|
---|
14361 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
14362 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
14363 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
14364 | $ $0 $@
|
---|
14365 |
|
---|
14366 | on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
14367 | "
|
---|
14368 |
|
---|
14369 | _ACEOF
|
---|
14370 |
|
---|
14371 | case $ac_config_files in *"
|
---|
14372 | "*) set x $ac_config_files; shift; ac_config_files=$*;;
|
---|
14373 | esac
|
---|
14374 |
|
---|
14375 | case $ac_config_headers in *"
|
---|
14376 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
|
---|
14377 | esac
|
---|
14378 |
|
---|
14379 |
|
---|
14380 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
14381 | # Files that config.status was made for.
|
---|
14382 | config_files="$ac_config_files"
|
---|
14383 | config_headers="$ac_config_headers"
|
---|
14384 | config_commands="$ac_config_commands"
|
---|
14385 |
|
---|
14386 | _ACEOF
|
---|
14387 |
|
---|
14388 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
14389 | ac_cs_usage="\
|
---|
14390 | \`$as_me' instantiates files and other configuration actions
|
---|
14391 | from templates according to the current configuration. Unless the files
|
---|
14392 | and actions are specified as TAGs, all are instantiated by default.
|
---|
14393 |
|
---|
14394 | Usage: $0 [OPTION]... [TAG]...
|
---|
14395 |
|
---|
14396 | -h, --help print this help, then exit
|
---|
14397 | -V, --version print version number and configuration settings, then exit
|
---|
14398 | --config print configuration, then exit
|
---|
14399 | -q, --quiet, --silent
|
---|
14400 | do not print progress messages
|
---|
14401 | -d, --debug don't remove temporary files
|
---|
14402 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
14403 | --file=FILE[:TEMPLATE]
|
---|
14404 | instantiate the configuration file FILE
|
---|
14405 | --header=FILE[:TEMPLATE]
|
---|
14406 | instantiate the configuration header FILE
|
---|
14407 |
|
---|
14408 | Configuration files:
|
---|
14409 | $config_files
|
---|
14410 |
|
---|
14411 | Configuration headers:
|
---|
14412 | $config_headers
|
---|
14413 |
|
---|
14414 | Configuration commands:
|
---|
14415 | $config_commands
|
---|
14416 |
|
---|
14417 | Report bugs to <png-mng-implement@lists.sourceforge.net>."
|
---|
14418 |
|
---|
14419 | _ACEOF
|
---|
14420 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
14421 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
---|
14422 | ac_cs_version="\\
|
---|
14423 | libpng config.status 1.6.37
|
---|
14424 | configured by $0, generated by GNU Autoconf 2.69,
|
---|
14425 | with options \\"\$ac_cs_config\\"
|
---|
14426 |
|
---|
14427 | Copyright (C) 2012 Free Software Foundation, Inc.
|
---|
14428 | This config.status script is free software; the Free Software Foundation
|
---|
14429 | gives unlimited permission to copy, distribute and modify it."
|
---|
14430 |
|
---|
14431 | ac_pwd='$ac_pwd'
|
---|
14432 | srcdir='$srcdir'
|
---|
14433 | INSTALL='$INSTALL'
|
---|
14434 | MKDIR_P='$MKDIR_P'
|
---|
14435 | AWK='$AWK'
|
---|
14436 | test -n "\$AWK" || AWK=awk
|
---|
14437 | _ACEOF
|
---|
14438 |
|
---|
14439 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
14440 | # The default lists apply if the user does not specify any file.
|
---|
14441 | ac_need_defaults=:
|
---|
14442 | while test $# != 0
|
---|
14443 | do
|
---|
14444 | case $1 in
|
---|
14445 | --*=?*)
|
---|
14446 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
14447 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
---|
14448 | ac_shift=:
|
---|
14449 | ;;
|
---|
14450 | --*=)
|
---|
14451 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
14452 | ac_optarg=
|
---|
14453 | ac_shift=:
|
---|
14454 | ;;
|
---|
14455 | *)
|
---|
14456 | ac_option=$1
|
---|
14457 | ac_optarg=$2
|
---|
14458 | ac_shift=shift
|
---|
14459 | ;;
|
---|
14460 | esac
|
---|
14461 |
|
---|
14462 | case $ac_option in
|
---|
14463 | # Handling of the options.
|
---|
14464 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
14465 | ac_cs_recheck=: ;;
|
---|
14466 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
---|
14467 | $as_echo "$ac_cs_version"; exit ;;
|
---|
14468 | --config | --confi | --conf | --con | --co | --c )
|
---|
14469 | $as_echo "$ac_cs_config"; exit ;;
|
---|
14470 | --debug | --debu | --deb | --de | --d | -d )
|
---|
14471 | debug=: ;;
|
---|
14472 | --file | --fil | --fi | --f )
|
---|
14473 | $ac_shift
|
---|
14474 | case $ac_optarg in
|
---|
14475 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
14476 | '') as_fn_error $? "missing file argument" ;;
|
---|
14477 | esac
|
---|
14478 | as_fn_append CONFIG_FILES " '$ac_optarg'"
|
---|
14479 | ac_need_defaults=false;;
|
---|
14480 | --header | --heade | --head | --hea )
|
---|
14481 | $ac_shift
|
---|
14482 | case $ac_optarg in
|
---|
14483 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
14484 | esac
|
---|
14485 | as_fn_append CONFIG_HEADERS " '$ac_optarg'"
|
---|
14486 | ac_need_defaults=false;;
|
---|
14487 | --he | --h)
|
---|
14488 | # Conflict between --help and --header
|
---|
14489 | as_fn_error $? "ambiguous option: \`$1'
|
---|
14490 | Try \`$0 --help' for more information.";;
|
---|
14491 | --help | --hel | -h )
|
---|
14492 | $as_echo "$ac_cs_usage"; exit ;;
|
---|
14493 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
14494 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
14495 | ac_cs_silent=: ;;
|
---|
14496 |
|
---|
14497 | # This is an error.
|
---|
14498 | -*) as_fn_error $? "unrecognized option: \`$1'
|
---|
14499 | Try \`$0 --help' for more information." ;;
|
---|
14500 |
|
---|
14501 | *) as_fn_append ac_config_targets " $1"
|
---|
14502 | ac_need_defaults=false ;;
|
---|
14503 |
|
---|
14504 | esac
|
---|
14505 | shift
|
---|
14506 | done
|
---|
14507 |
|
---|
14508 | ac_configure_extra_args=
|
---|
14509 |
|
---|
14510 | if $ac_cs_silent; then
|
---|
14511 | exec 6>/dev/null
|
---|
14512 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
14513 | fi
|
---|
14514 |
|
---|
14515 | _ACEOF
|
---|
14516 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
14517 | if \$ac_cs_recheck; then
|
---|
14518 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
14519 | shift
|
---|
14520 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
|
---|
14521 | CONFIG_SHELL='$SHELL'
|
---|
14522 | export CONFIG_SHELL
|
---|
14523 | exec "\$@"
|
---|
14524 | fi
|
---|
14525 |
|
---|
14526 | _ACEOF
|
---|
14527 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
14528 | exec 5>>config.log
|
---|
14529 | {
|
---|
14530 | echo
|
---|
14531 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
14532 | ## Running $as_me. ##
|
---|
14533 | _ASBOX
|
---|
14534 | $as_echo "$ac_log"
|
---|
14535 | } >&5
|
---|
14536 |
|
---|
14537 | _ACEOF
|
---|
14538 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
14539 | #
|
---|
14540 | # INIT-COMMANDS
|
---|
14541 | #
|
---|
14542 | AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
|
---|
14543 |
|
---|
14544 |
|
---|
14545 | # The HP-UX ksh and POSIX shell print the target directory to stdout
|
---|
14546 | # if CDPATH is set.
|
---|
14547 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
14548 |
|
---|
14549 | sed_quote_subst='$sed_quote_subst'
|
---|
14550 | double_quote_subst='$double_quote_subst'
|
---|
14551 | delay_variable_subst='$delay_variable_subst'
|
---|
14552 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
|
---|
14553 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
|
---|
14554 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
|
---|
14555 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
|
---|
14556 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
|
---|
14557 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
|
---|
14558 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
|
---|
14559 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
|
---|
14560 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
|
---|
14561 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
|
---|
14562 | AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
|
---|
14563 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
|
---|
14564 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
|
---|
14565 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
|
---|
14566 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
|
---|
14567 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
|
---|
14568 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
|
---|
14569 | shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
|
---|
14570 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
|
---|
14571 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
|
---|
14572 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
|
---|
14573 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
|
---|
14574 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
|
---|
14575 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
|
---|
14576 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
|
---|
14577 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
|
---|
14578 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
|
---|
14579 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
|
---|
14580 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
|
---|
14581 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
|
---|
14582 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
|
---|
14583 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
|
---|
14584 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
|
---|
14585 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
|
---|
14586 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
|
---|
14587 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
|
---|
14588 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
14589 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
|
---|
14590 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
|
---|
14591 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
|
---|
14592 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
|
---|
14593 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
|
---|
14594 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
|
---|
14595 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
|
---|
14596 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
|
---|
14597 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
|
---|
14598 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
|
---|
14599 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
14600 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
14601 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
14602 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
|
---|
14603 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
|
---|
14604 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
|
---|
14605 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
|
---|
14606 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
|
---|
14607 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
|
---|
14608 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
|
---|
14609 | lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
|
---|
14610 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
|
---|
14611 | lt_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"`'
|
---|
14612 | lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
|
---|
14613 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
|
---|
14614 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
|
---|
14615 | lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
|
---|
14616 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
|
---|
14617 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
|
---|
14618 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
|
---|
14619 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
|
---|
14620 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
|
---|
14621 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
|
---|
14622 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
|
---|
14623 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
|
---|
14624 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
|
---|
14625 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
|
---|
14626 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
|
---|
14627 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
|
---|
14628 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
|
---|
14629 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
|
---|
14630 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
|
---|
14631 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
14632 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
14633 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
|
---|
14634 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
|
---|
14635 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
|
---|
14636 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
|
---|
14637 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
|
---|
14638 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
14639 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
14640 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
14641 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
14642 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
14643 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
14644 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
|
---|
14645 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
|
---|
14646 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
|
---|
14647 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
|
---|
14648 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
|
---|
14649 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
|
---|
14650 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
|
---|
14651 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
|
---|
14652 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
|
---|
14653 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
|
---|
14654 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
|
---|
14655 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
|
---|
14656 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
|
---|
14657 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
14658 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
|
---|
14659 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
|
---|
14660 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
14661 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
14662 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
|
---|
14663 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
|
---|
14664 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
|
---|
14665 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
|
---|
14666 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
|
---|
14667 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
|
---|
14668 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
|
---|
14669 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
|
---|
14670 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
|
---|
14671 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
|
---|
14672 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
|
---|
14673 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
|
---|
14674 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
14675 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
14676 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
14677 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
|
---|
14678 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
|
---|
14679 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
|
---|
14680 | configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
|
---|
14681 | configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
|
---|
14682 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
|
---|
14683 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
|
---|
14684 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
|
---|
14685 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
|
---|
14686 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
|
---|
14687 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
|
---|
14688 |
|
---|
14689 | LTCC='$LTCC'
|
---|
14690 | LTCFLAGS='$LTCFLAGS'
|
---|
14691 | compiler='$compiler_DEFAULT'
|
---|
14692 |
|
---|
14693 | # A function that is used when there is no print builtin or printf.
|
---|
14694 | func_fallback_echo ()
|
---|
14695 | {
|
---|
14696 | eval 'cat <<_LTECHO_EOF
|
---|
14697 | \$1
|
---|
14698 | _LTECHO_EOF'
|
---|
14699 | }
|
---|
14700 |
|
---|
14701 | # Quote evaled strings.
|
---|
14702 | for var in SED \
|
---|
14703 | GREP \
|
---|
14704 | EGREP \
|
---|
14705 | FGREP \
|
---|
14706 | SHELL \
|
---|
14707 | ECHO \
|
---|
14708 | LD \
|
---|
14709 | AS \
|
---|
14710 | DLLTOOL \
|
---|
14711 | OBJDUMP \
|
---|
14712 | PATH_SEPARATOR \
|
---|
14713 | NM \
|
---|
14714 | LN_S \
|
---|
14715 | lt_SP2NL \
|
---|
14716 | lt_NL2SP \
|
---|
14717 | reload_flag \
|
---|
14718 | deplibs_check_method \
|
---|
14719 | file_magic_cmd \
|
---|
14720 | file_magic_glob \
|
---|
14721 | want_nocaseglob \
|
---|
14722 | sharedlib_from_linklib_cmd \
|
---|
14723 | AR \
|
---|
14724 | AR_FLAGS \
|
---|
14725 | archiver_list_spec \
|
---|
14726 | STRIP \
|
---|
14727 | RANLIB \
|
---|
14728 | CC \
|
---|
14729 | CFLAGS \
|
---|
14730 | compiler \
|
---|
14731 | lt_cv_sys_global_symbol_pipe \
|
---|
14732 | lt_cv_sys_global_symbol_to_cdecl \
|
---|
14733 | lt_cv_sys_global_symbol_to_import \
|
---|
14734 | lt_cv_sys_global_symbol_to_c_name_address \
|
---|
14735 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
|
---|
14736 | lt_cv_nm_interface \
|
---|
14737 | nm_file_list_spec \
|
---|
14738 | lt_cv_truncate_bin \
|
---|
14739 | lt_prog_compiler_no_builtin_flag \
|
---|
14740 | lt_prog_compiler_pic \
|
---|
14741 | lt_prog_compiler_wl \
|
---|
14742 | lt_prog_compiler_static \
|
---|
14743 | lt_cv_prog_compiler_c_o \
|
---|
14744 | need_locks \
|
---|
14745 | MANIFEST_TOOL \
|
---|
14746 | DSYMUTIL \
|
---|
14747 | NMEDIT \
|
---|
14748 | LIPO \
|
---|
14749 | OTOOL \
|
---|
14750 | OTOOL64 \
|
---|
14751 | shrext_cmds \
|
---|
14752 | export_dynamic_flag_spec \
|
---|
14753 | whole_archive_flag_spec \
|
---|
14754 | compiler_needs_object \
|
---|
14755 | with_gnu_ld \
|
---|
14756 | allow_undefined_flag \
|
---|
14757 | no_undefined_flag \
|
---|
14758 | hardcode_libdir_flag_spec \
|
---|
14759 | hardcode_libdir_separator \
|
---|
14760 | exclude_expsyms \
|
---|
14761 | include_expsyms \
|
---|
14762 | file_list_spec \
|
---|
14763 | variables_saved_for_relink \
|
---|
14764 | libname_spec \
|
---|
14765 | library_names_spec \
|
---|
14766 | soname_spec \
|
---|
14767 | install_override_mode \
|
---|
14768 | finish_eval \
|
---|
14769 | old_striplib \
|
---|
14770 | striplib; do
|
---|
14771 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
|
---|
14772 | *[\\\\\\\`\\"\\\$]*)
|
---|
14773 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
|
---|
14774 | ;;
|
---|
14775 | *)
|
---|
14776 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
|
---|
14777 | ;;
|
---|
14778 | esac
|
---|
14779 | done
|
---|
14780 |
|
---|
14781 | # Double-quote double-evaled strings.
|
---|
14782 | for var in reload_cmds \
|
---|
14783 | old_postinstall_cmds \
|
---|
14784 | old_postuninstall_cmds \
|
---|
14785 | old_archive_cmds \
|
---|
14786 | extract_expsyms_cmds \
|
---|
14787 | old_archive_from_new_cmds \
|
---|
14788 | old_archive_from_expsyms_cmds \
|
---|
14789 | archive_cmds \
|
---|
14790 | archive_expsym_cmds \
|
---|
14791 | module_cmds \
|
---|
14792 | module_expsym_cmds \
|
---|
14793 | export_symbols_cmds \
|
---|
14794 | prelink_cmds \
|
---|
14795 | postlink_cmds \
|
---|
14796 | postinstall_cmds \
|
---|
14797 | postuninstall_cmds \
|
---|
14798 | finish_cmds \
|
---|
14799 | sys_lib_search_path_spec \
|
---|
14800 | configure_time_dlsearch_path \
|
---|
14801 | configure_time_lt_sys_library_path; do
|
---|
14802 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
|
---|
14803 | *[\\\\\\\`\\"\\\$]*)
|
---|
14804 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
|
---|
14805 | ;;
|
---|
14806 | *)
|
---|
14807 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
|
---|
14808 | ;;
|
---|
14809 | esac
|
---|
14810 | done
|
---|
14811 |
|
---|
14812 | ac_aux_dir='$ac_aux_dir'
|
---|
14813 |
|
---|
14814 | # See if we are running on zsh, and set the options that allow our
|
---|
14815 | # commands through without removal of \ escapes INIT.
|
---|
14816 | if test -n "\${ZSH_VERSION+set}"; then
|
---|
14817 | setopt NO_GLOB_SUBST
|
---|
14818 | fi
|
---|
14819 |
|
---|
14820 |
|
---|
14821 | PACKAGE='$PACKAGE'
|
---|
14822 | VERSION='$VERSION'
|
---|
14823 | RM='$RM'
|
---|
14824 | ofile='$ofile'
|
---|
14825 |
|
---|
14826 |
|
---|
14827 |
|
---|
14828 |
|
---|
14829 | _ACEOF
|
---|
14830 |
|
---|
14831 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
14832 |
|
---|
14833 | # Handling of arguments.
|
---|
14834 | for ac_config_target in $ac_config_targets
|
---|
14835 | do
|
---|
14836 | case $ac_config_target in
|
---|
14837 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
14838 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
|
---|
14839 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
|
---|
14840 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
14841 | "libpng.pc") CONFIG_FILES="$CONFIG_FILES libpng.pc:libpng.pc.in" ;;
|
---|
14842 | "libpng-config") CONFIG_FILES="$CONFIG_FILES libpng-config:libpng-config.in" ;;
|
---|
14843 |
|
---|
14844 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
|
---|
14845 | esac
|
---|
14846 | done
|
---|
14847 |
|
---|
14848 |
|
---|
14849 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
14850 | # then the envvar interface is used. Set only those that are not.
|
---|
14851 | # We use the long form for the default assignment because of an extremely
|
---|
14852 | # bizarre bug on SunOS 4.1.3.
|
---|
14853 | if $ac_need_defaults; then
|
---|
14854 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
14855 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
14856 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
|
---|
14857 | fi
|
---|
14858 |
|
---|
14859 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
14860 | # simply because there is no reason against having it here, and in addition,
|
---|
14861 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
14862 | # Hook for its removal unless debugging.
|
---|
14863 | # Note that there is a small window in which the directory will not be cleaned:
|
---|
14864 | # after its creation but before its name has been assigned to `$tmp'.
|
---|
14865 | $debug ||
|
---|
14866 | {
|
---|
14867 | tmp= ac_tmp=
|
---|
14868 | trap 'exit_status=$?
|
---|
14869 | : "${ac_tmp:=$tmp}"
|
---|
14870 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
|
---|
14871 | ' 0
|
---|
14872 | trap 'as_fn_exit 1' 1 2 13 15
|
---|
14873 | }
|
---|
14874 | # Create a (secure) tmp directory for tmp files.
|
---|
14875 |
|
---|
14876 | {
|
---|
14877 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
---|
14878 | test -d "$tmp"
|
---|
14879 | } ||
|
---|
14880 | {
|
---|
14881 | tmp=./conf$$-$RANDOM
|
---|
14882 | (umask 077 && mkdir "$tmp")
|
---|
14883 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
|
---|
14884 | ac_tmp=$tmp
|
---|
14885 |
|
---|
14886 | # Set up the scripts for CONFIG_FILES section.
|
---|
14887 | # No need to generate them if there are no CONFIG_FILES.
|
---|
14888 | # This happens for instance with `./config.status config.h'.
|
---|
14889 | if test -n "$CONFIG_FILES"; then
|
---|
14890 |
|
---|
14891 |
|
---|
14892 | ac_cr=`echo X | tr X '\015'`
|
---|
14893 | # On cygwin, bash can eat \r inside `` if the user requested igncr.
|
---|
14894 | # But we know of no other shell where ac_cr would be empty at this
|
---|
14895 | # point, so we can use a bashism as a fallback.
|
---|
14896 | if test "x$ac_cr" = x; then
|
---|
14897 | eval ac_cr=\$\'\\r\'
|
---|
14898 | fi
|
---|
14899 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
|
---|
14900 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
|
---|
14901 | ac_cs_awk_cr='\\r'
|
---|
14902 | else
|
---|
14903 | ac_cs_awk_cr=$ac_cr
|
---|
14904 | fi
|
---|
14905 |
|
---|
14906 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
|
---|
14907 | _ACEOF
|
---|
14908 |
|
---|
14909 |
|
---|
14910 | {
|
---|
14911 | echo "cat >conf$$subs.awk <<_ACEOF" &&
|
---|
14912 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
|
---|
14913 | echo "_ACEOF"
|
---|
14914 | } >conf$$subs.sh ||
|
---|
14915 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
14916 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
|
---|
14917 | ac_delim='%!_!# '
|
---|
14918 | for ac_last_try in false false false false false :; do
|
---|
14919 | . ./conf$$subs.sh ||
|
---|
14920 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
14921 |
|
---|
14922 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
|
---|
14923 | if test $ac_delim_n = $ac_delim_num; then
|
---|
14924 | break
|
---|
14925 | elif $ac_last_try; then
|
---|
14926 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
14927 | else
|
---|
14928 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
14929 | fi
|
---|
14930 | done
|
---|
14931 | rm -f conf$$subs.sh
|
---|
14932 |
|
---|
14933 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
14934 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
|
---|
14935 | _ACEOF
|
---|
14936 | sed -n '
|
---|
14937 | h
|
---|
14938 | s/^/S["/; s/!.*/"]=/
|
---|
14939 | p
|
---|
14940 | g
|
---|
14941 | s/^[^!]*!//
|
---|
14942 | :repl
|
---|
14943 | t repl
|
---|
14944 | s/'"$ac_delim"'$//
|
---|
14945 | t delim
|
---|
14946 | :nl
|
---|
14947 | h
|
---|
14948 | s/\(.\{148\}\)..*/\1/
|
---|
14949 | t more1
|
---|
14950 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
|
---|
14951 | p
|
---|
14952 | n
|
---|
14953 | b repl
|
---|
14954 | :more1
|
---|
14955 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
14956 | p
|
---|
14957 | g
|
---|
14958 | s/.\{148\}//
|
---|
14959 | t nl
|
---|
14960 | :delim
|
---|
14961 | h
|
---|
14962 | s/\(.\{148\}\)..*/\1/
|
---|
14963 | t more2
|
---|
14964 | s/["\\]/\\&/g; s/^/"/; s/$/"/
|
---|
14965 | p
|
---|
14966 | b
|
---|
14967 | :more2
|
---|
14968 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
14969 | p
|
---|
14970 | g
|
---|
14971 | s/.\{148\}//
|
---|
14972 | t delim
|
---|
14973 | ' <conf$$subs.awk | sed '
|
---|
14974 | /^[^""]/{
|
---|
14975 | N
|
---|
14976 | s/\n//
|
---|
14977 | }
|
---|
14978 | ' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
14979 | rm -f conf$$subs.awk
|
---|
14980 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
14981 | _ACAWK
|
---|
14982 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
|
---|
14983 | for (key in S) S_is_set[key] = 1
|
---|
14984 | FS = ""
|
---|
14985 |
|
---|
14986 | }
|
---|
14987 | {
|
---|
14988 | line = $ 0
|
---|
14989 | nfields = split(line, field, "@")
|
---|
14990 | substed = 0
|
---|
14991 | len = length(field[1])
|
---|
14992 | for (i = 2; i < nfields; i++) {
|
---|
14993 | key = field[i]
|
---|
14994 | keylen = length(key)
|
---|
14995 | if (S_is_set[key]) {
|
---|
14996 | value = S[key]
|
---|
14997 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
|
---|
14998 | len += length(value) + length(field[++i])
|
---|
14999 | substed = 1
|
---|
15000 | } else
|
---|
15001 | len += 1 + keylen
|
---|
15002 | }
|
---|
15003 |
|
---|
15004 | print line
|
---|
15005 | }
|
---|
15006 |
|
---|
15007 | _ACAWK
|
---|
15008 | _ACEOF
|
---|
15009 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
15010 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
|
---|
15011 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
|
---|
15012 | else
|
---|
15013 | cat
|
---|
15014 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
|
---|
15015 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
|
---|
15016 | _ACEOF
|
---|
15017 |
|
---|
15018 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
|
---|
15019 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
|
---|
15020 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
15021 | # (actually we leave an empty line to preserve line numbers).
|
---|
15022 | if test "x$srcdir" = x.; then
|
---|
15023 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
|
---|
15024 | h
|
---|
15025 | s///
|
---|
15026 | s/^/:/
|
---|
15027 | s/[ ]*$/:/
|
---|
15028 | s/:\$(srcdir):/:/g
|
---|
15029 | s/:\${srcdir}:/:/g
|
---|
15030 | s/:@srcdir@:/:/g
|
---|
15031 | s/^:*//
|
---|
15032 | s/:*$//
|
---|
15033 | x
|
---|
15034 | s/\(=[ ]*\).*/\1/
|
---|
15035 | G
|
---|
15036 | s/\n//
|
---|
15037 | s/^[^=]*=[ ]*$//
|
---|
15038 | }'
|
---|
15039 | fi
|
---|
15040 |
|
---|
15041 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
15042 | fi # test -n "$CONFIG_FILES"
|
---|
15043 |
|
---|
15044 | # Set up the scripts for CONFIG_HEADERS section.
|
---|
15045 | # No need to generate them if there are no CONFIG_HEADERS.
|
---|
15046 | # This happens for instance with `./config.status Makefile'.
|
---|
15047 | if test -n "$CONFIG_HEADERS"; then
|
---|
15048 | cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
|
---|
15049 | BEGIN {
|
---|
15050 | _ACEOF
|
---|
15051 |
|
---|
15052 | # Transform confdefs.h into an awk script `defines.awk', embedded as
|
---|
15053 | # here-document in config.status, that substitutes the proper values into
|
---|
15054 | # config.h.in to produce config.h.
|
---|
15055 |
|
---|
15056 | # Create a delimiter string that does not exist in confdefs.h, to ease
|
---|
15057 | # handling of long lines.
|
---|
15058 | ac_delim='%!_!# '
|
---|
15059 | for ac_last_try in false false :; do
|
---|
15060 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
|
---|
15061 | if test -z "$ac_tt"; then
|
---|
15062 | break
|
---|
15063 | elif $ac_last_try; then
|
---|
15064 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
|
---|
15065 | else
|
---|
15066 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
15067 | fi
|
---|
15068 | done
|
---|
15069 |
|
---|
15070 | # For the awk script, D is an array of macro values keyed by name,
|
---|
15071 | # likewise P contains macro parameters if any. Preserve backslash
|
---|
15072 | # newline sequences.
|
---|
15073 |
|
---|
15074 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
|
---|
15075 | sed -n '
|
---|
15076 | s/.\{148\}/&'"$ac_delim"'/g
|
---|
15077 | t rset
|
---|
15078 | :rset
|
---|
15079 | s/^[ ]*#[ ]*define[ ][ ]*/ /
|
---|
15080 | t def
|
---|
15081 | d
|
---|
15082 | :def
|
---|
15083 | s/\\$//
|
---|
15084 | t bsnl
|
---|
15085 | s/["\\]/\\&/g
|
---|
15086 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
---|
15087 | D["\1"]=" \3"/p
|
---|
15088 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
|
---|
15089 | d
|
---|
15090 | :bsnl
|
---|
15091 | s/["\\]/\\&/g
|
---|
15092 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
---|
15093 | D["\1"]=" \3\\\\\\n"\\/p
|
---|
15094 | t cont
|
---|
15095 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
|
---|
15096 | t cont
|
---|
15097 | d
|
---|
15098 | :cont
|
---|
15099 | n
|
---|
15100 | s/.\{148\}/&'"$ac_delim"'/g
|
---|
15101 | t clear
|
---|
15102 | :clear
|
---|
15103 | s/\\$//
|
---|
15104 | t bsnlc
|
---|
15105 | s/["\\]/\\&/g; s/^/"/; s/$/"/p
|
---|
15106 | d
|
---|
15107 | :bsnlc
|
---|
15108 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
|
---|
15109 | b cont
|
---|
15110 | ' <confdefs.h | sed '
|
---|
15111 | s/'"$ac_delim"'/"\\\
|
---|
15112 | "/g' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
15113 |
|
---|
15114 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
15115 | for (key in D) D_is_set[key] = 1
|
---|
15116 | FS = ""
|
---|
15117 | }
|
---|
15118 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
|
---|
15119 | line = \$ 0
|
---|
15120 | split(line, arg, " ")
|
---|
15121 | if (arg[1] == "#") {
|
---|
15122 | defundef = arg[2]
|
---|
15123 | mac1 = arg[3]
|
---|
15124 | } else {
|
---|
15125 | defundef = substr(arg[1], 2)
|
---|
15126 | mac1 = arg[2]
|
---|
15127 | }
|
---|
15128 | split(mac1, mac2, "(") #)
|
---|
15129 | macro = mac2[1]
|
---|
15130 | prefix = substr(line, 1, index(line, defundef) - 1)
|
---|
15131 | if (D_is_set[macro]) {
|
---|
15132 | # Preserve the white space surrounding the "#".
|
---|
15133 | print prefix "define", macro P[macro] D[macro]
|
---|
15134 | next
|
---|
15135 | } else {
|
---|
15136 | # Replace #undef with comments. This is necessary, for example,
|
---|
15137 | # in the case of _POSIX_SOURCE, which is predefined and required
|
---|
15138 | # on some systems where configure will not decide to define it.
|
---|
15139 | if (defundef == "undef") {
|
---|
15140 | print "/*", prefix defundef, macro, "*/"
|
---|
15141 | next
|
---|
15142 | }
|
---|
15143 | }
|
---|
15144 | }
|
---|
15145 | { print }
|
---|
15146 | _ACAWK
|
---|
15147 | _ACEOF
|
---|
15148 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
15149 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
|
---|
15150 | fi # test -n "$CONFIG_HEADERS"
|
---|
15151 |
|
---|
15152 |
|
---|
15153 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
|
---|
15154 | shift
|
---|
15155 | for ac_tag
|
---|
15156 | do
|
---|
15157 | case $ac_tag in
|
---|
15158 | :[FHLC]) ac_mode=$ac_tag; continue;;
|
---|
15159 | esac
|
---|
15160 | case $ac_mode$ac_tag in
|
---|
15161 | :[FHL]*:*);;
|
---|
15162 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
|
---|
15163 | :[FH]-) ac_tag=-:-;;
|
---|
15164 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
---|
15165 | esac
|
---|
15166 | ac_save_IFS=$IFS
|
---|
15167 | IFS=:
|
---|
15168 | set x $ac_tag
|
---|
15169 | IFS=$ac_save_IFS
|
---|
15170 | shift
|
---|
15171 | ac_file=$1
|
---|
15172 | shift
|
---|
15173 |
|
---|
15174 | case $ac_mode in
|
---|
15175 | :L) ac_source=$1;;
|
---|
15176 | :[FH])
|
---|
15177 | ac_file_inputs=
|
---|
15178 | for ac_f
|
---|
15179 | do
|
---|
15180 | case $ac_f in
|
---|
15181 | -) ac_f="$ac_tmp/stdin";;
|
---|
15182 | *) # Look for the file first in the build tree, then in the source tree
|
---|
15183 | # (if the path is not absolute). The absolute path cannot be DOS-style,
|
---|
15184 | # because $ac_f cannot contain `:'.
|
---|
15185 | test -f "$ac_f" ||
|
---|
15186 | case $ac_f in
|
---|
15187 | [\\/$]*) false;;
|
---|
15188 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
---|
15189 | esac ||
|
---|
15190 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
|
---|
15191 | esac
|
---|
15192 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
|
---|
15193 | as_fn_append ac_file_inputs " '$ac_f'"
|
---|
15194 | done
|
---|
15195 |
|
---|
15196 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
15197 | # use $as_me), people would be surprised to read:
|
---|
15198 | # /* config.h. Generated by config.status. */
|
---|
15199 | configure_input='Generated from '`
|
---|
15200 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
|
---|
15201 | `' by configure.'
|
---|
15202 | if test x"$ac_file" != x-; then
|
---|
15203 | configure_input="$ac_file. $configure_input"
|
---|
15204 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
|
---|
15205 | $as_echo "$as_me: creating $ac_file" >&6;}
|
---|
15206 | fi
|
---|
15207 | # Neutralize special characters interpreted by sed in replacement strings.
|
---|
15208 | case $configure_input in #(
|
---|
15209 | *\&* | *\|* | *\\* )
|
---|
15210 | ac_sed_conf_input=`$as_echo "$configure_input" |
|
---|
15211 | sed 's/[\\\\&|]/\\\\&/g'`;; #(
|
---|
15212 | *) ac_sed_conf_input=$configure_input;;
|
---|
15213 | esac
|
---|
15214 |
|
---|
15215 | case $ac_tag in
|
---|
15216 | *:-:* | *:-) cat >"$ac_tmp/stdin" \
|
---|
15217 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
|
---|
15218 | esac
|
---|
15219 | ;;
|
---|
15220 | esac
|
---|
15221 |
|
---|
15222 | ac_dir=`$as_dirname -- "$ac_file" ||
|
---|
15223 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
15224 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
15225 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
15226 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
15227 | $as_echo X"$ac_file" |
|
---|
15228 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
15229 | s//\1/
|
---|
15230 | q
|
---|
15231 | }
|
---|
15232 | /^X\(\/\/\)[^/].*/{
|
---|
15233 | s//\1/
|
---|
15234 | q
|
---|
15235 | }
|
---|
15236 | /^X\(\/\/\)$/{
|
---|
15237 | s//\1/
|
---|
15238 | q
|
---|
15239 | }
|
---|
15240 | /^X\(\/\).*/{
|
---|
15241 | s//\1/
|
---|
15242 | q
|
---|
15243 | }
|
---|
15244 | s/.*/./; q'`
|
---|
15245 | as_dir="$ac_dir"; as_fn_mkdir_p
|
---|
15246 | ac_builddir=.
|
---|
15247 |
|
---|
15248 | case "$ac_dir" in
|
---|
15249 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
15250 | *)
|
---|
15251 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
15252 | # A ".." for each directory in $ac_dir_suffix.
|
---|
15253 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
15254 | case $ac_top_builddir_sub in
|
---|
15255 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
15256 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
15257 | esac ;;
|
---|
15258 | esac
|
---|
15259 | ac_abs_top_builddir=$ac_pwd
|
---|
15260 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
15261 | # for backward compatibility:
|
---|
15262 | ac_top_builddir=$ac_top_build_prefix
|
---|
15263 |
|
---|
15264 | case $srcdir in
|
---|
15265 | .) # We are building in place.
|
---|
15266 | ac_srcdir=.
|
---|
15267 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
15268 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
15269 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
15270 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
15271 | ac_top_srcdir=$srcdir
|
---|
15272 | ac_abs_top_srcdir=$srcdir ;;
|
---|
15273 | *) # Relative name.
|
---|
15274 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
15275 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
15276 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
15277 | esac
|
---|
15278 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
15279 |
|
---|
15280 |
|
---|
15281 | case $ac_mode in
|
---|
15282 | :F)
|
---|
15283 | #
|
---|
15284 | # CONFIG_FILE
|
---|
15285 | #
|
---|
15286 |
|
---|
15287 | case $INSTALL in
|
---|
15288 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
15289 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
---|
15290 | esac
|
---|
15291 | ac_MKDIR_P=$MKDIR_P
|
---|
15292 | case $MKDIR_P in
|
---|
15293 | [\\/$]* | ?:[\\/]* ) ;;
|
---|
15294 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
|
---|
15295 | esac
|
---|
15296 | _ACEOF
|
---|
15297 |
|
---|
15298 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
15299 | # If the template does not know about datarootdir, expand it.
|
---|
15300 | # FIXME: This hack should be removed a few years after 2.60.
|
---|
15301 | ac_datarootdir_hack=; ac_datarootdir_seen=
|
---|
15302 | ac_sed_dataroot='
|
---|
15303 | /datarootdir/ {
|
---|
15304 | p
|
---|
15305 | q
|
---|
15306 | }
|
---|
15307 | /@datadir@/p
|
---|
15308 | /@docdir@/p
|
---|
15309 | /@infodir@/p
|
---|
15310 | /@localedir@/p
|
---|
15311 | /@mandir@/p'
|
---|
15312 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
|
---|
15313 | *datarootdir*) ac_datarootdir_seen=yes;;
|
---|
15314 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
---|
15315 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
---|
15316 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
---|
15317 | _ACEOF
|
---|
15318 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
15319 | ac_datarootdir_hack='
|
---|
15320 | s&@datadir@&$datadir&g
|
---|
15321 | s&@docdir@&$docdir&g
|
---|
15322 | s&@infodir@&$infodir&g
|
---|
15323 | s&@localedir@&$localedir&g
|
---|
15324 | s&@mandir@&$mandir&g
|
---|
15325 | s&\\\${datarootdir}&$datarootdir&g' ;;
|
---|
15326 | esac
|
---|
15327 | _ACEOF
|
---|
15328 |
|
---|
15329 | # Neutralize VPATH when `$srcdir' = `.'.
|
---|
15330 | # Shell code in configure.ac might set extrasub.
|
---|
15331 | # FIXME: do we really want to maintain this feature?
|
---|
15332 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
15333 | ac_sed_extra="$ac_vpsub
|
---|
15334 | $extrasub
|
---|
15335 | _ACEOF
|
---|
15336 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
15337 | :t
|
---|
15338 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
15339 | s|@configure_input@|$ac_sed_conf_input|;t t
|
---|
15340 | s&@top_builddir@&$ac_top_builddir_sub&;t t
|
---|
15341 | s&@top_build_prefix@&$ac_top_build_prefix&;t t
|
---|
15342 | s&@srcdir@&$ac_srcdir&;t t
|
---|
15343 | s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
---|
15344 | s&@top_srcdir@&$ac_top_srcdir&;t t
|
---|
15345 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
---|
15346 | s&@builddir@&$ac_builddir&;t t
|
---|
15347 | s&@abs_builddir@&$ac_abs_builddir&;t t
|
---|
15348 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
---|
15349 | s&@INSTALL@&$ac_INSTALL&;t t
|
---|
15350 | s&@MKDIR_P@&$ac_MKDIR_P&;t t
|
---|
15351 | $ac_datarootdir_hack
|
---|
15352 | "
|
---|
15353 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
|
---|
15354 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
15355 |
|
---|
15356 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
---|
15357 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
|
---|
15358 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
|
---|
15359 | "$ac_tmp/out"`; test -z "$ac_out"; } &&
|
---|
15360 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
15361 | which seems to be undefined. Please make sure it is defined" >&5
|
---|
15362 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
15363 | which seems to be undefined. Please make sure it is defined" >&2;}
|
---|
15364 |
|
---|
15365 | rm -f "$ac_tmp/stdin"
|
---|
15366 | case $ac_file in
|
---|
15367 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
|
---|
15368 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
|
---|
15369 | esac \
|
---|
15370 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
15371 | ;;
|
---|
15372 | :H)
|
---|
15373 | #
|
---|
15374 | # CONFIG_HEADER
|
---|
15375 | #
|
---|
15376 | if test x"$ac_file" != x-; then
|
---|
15377 | {
|
---|
15378 | $as_echo "/* $configure_input */" \
|
---|
15379 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
|
---|
15380 | } >"$ac_tmp/config.h" \
|
---|
15381 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
15382 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
|
---|
15383 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
|
---|
15384 | $as_echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
15385 | else
|
---|
15386 | rm -f "$ac_file"
|
---|
15387 | mv "$ac_tmp/config.h" "$ac_file" \
|
---|
15388 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
15389 | fi
|
---|
15390 | else
|
---|
15391 | $as_echo "/* $configure_input */" \
|
---|
15392 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
|
---|
15393 | || as_fn_error $? "could not create -" "$LINENO" 5
|
---|
15394 | fi
|
---|
15395 | # Compute "$ac_file"'s index in $config_headers.
|
---|
15396 | _am_arg="$ac_file"
|
---|
15397 | _am_stamp_count=1
|
---|
15398 | for _am_header in $config_headers :; do
|
---|
15399 | case $_am_header in
|
---|
15400 | $_am_arg | $_am_arg:* )
|
---|
15401 | break ;;
|
---|
15402 | * )
|
---|
15403 | _am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
---|
15404 | esac
|
---|
15405 | done
|
---|
15406 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
|
---|
15407 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
15408 | X"$_am_arg" : 'X\(//\)[^/]' \| \
|
---|
15409 | X"$_am_arg" : 'X\(//\)$' \| \
|
---|
15410 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
15411 | $as_echo X"$_am_arg" |
|
---|
15412 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
15413 | s//\1/
|
---|
15414 | q
|
---|
15415 | }
|
---|
15416 | /^X\(\/\/\)[^/].*/{
|
---|
15417 | s//\1/
|
---|
15418 | q
|
---|
15419 | }
|
---|
15420 | /^X\(\/\/\)$/{
|
---|
15421 | s//\1/
|
---|
15422 | q
|
---|
15423 | }
|
---|
15424 | /^X\(\/\).*/{
|
---|
15425 | s//\1/
|
---|
15426 | q
|
---|
15427 | }
|
---|
15428 | s/.*/./; q'`/stamp-h$_am_stamp_count
|
---|
15429 | ;;
|
---|
15430 |
|
---|
15431 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
|
---|
15432 | $as_echo "$as_me: executing $ac_file commands" >&6;}
|
---|
15433 | ;;
|
---|
15434 | esac
|
---|
15435 |
|
---|
15436 |
|
---|
15437 | case $ac_file$ac_mode in
|
---|
15438 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
|
---|
15439 | # Older Autoconf quotes --file arguments for eval, but not when files
|
---|
15440 | # are listed without --file. Let's play safe and only enable the eval
|
---|
15441 | # if we detect the quoting.
|
---|
15442 | # TODO: see whether this extra hack can be removed once we start
|
---|
15443 | # requiring Autoconf 2.70 or later.
|
---|
15444 | case $CONFIG_FILES in #(
|
---|
15445 | *\'*) :
|
---|
15446 | eval set x "$CONFIG_FILES" ;; #(
|
---|
15447 | *) :
|
---|
15448 | set x $CONFIG_FILES ;; #(
|
---|
15449 | *) :
|
---|
15450 | ;;
|
---|
15451 | esac
|
---|
15452 | shift
|
---|
15453 | # Used to flag and report bootstrapping failures.
|
---|
15454 | am_rc=0
|
---|
15455 | for am_mf
|
---|
15456 | do
|
---|
15457 | # Strip MF so we end up with the name of the file.
|
---|
15458 | am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
|
---|
15459 | # Check whether this is an Automake generated Makefile which includes
|
---|
15460 | # dependency-tracking related rules and includes.
|
---|
15461 | # Grep'ing the whole file directly is not great: AIX grep has a line
|
---|
15462 | # limit of 2048, but all sed's we know have understand at least 4000.
|
---|
15463 | sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
|
---|
15464 | || continue
|
---|
15465 | am_dirpart=`$as_dirname -- "$am_mf" ||
|
---|
15466 | $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
15467 | X"$am_mf" : 'X\(//\)[^/]' \| \
|
---|
15468 | X"$am_mf" : 'X\(//\)$' \| \
|
---|
15469 | X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
15470 | $as_echo X"$am_mf" |
|
---|
15471 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
15472 | s//\1/
|
---|
15473 | q
|
---|
15474 | }
|
---|
15475 | /^X\(\/\/\)[^/].*/{
|
---|
15476 | s//\1/
|
---|
15477 | q
|
---|
15478 | }
|
---|
15479 | /^X\(\/\/\)$/{
|
---|
15480 | s//\1/
|
---|
15481 | q
|
---|
15482 | }
|
---|
15483 | /^X\(\/\).*/{
|
---|
15484 | s//\1/
|
---|
15485 | q
|
---|
15486 | }
|
---|
15487 | s/.*/./; q'`
|
---|
15488 | am_filepart=`$as_basename -- "$am_mf" ||
|
---|
15489 | $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
15490 | X"$am_mf" : 'X\(//\)$' \| \
|
---|
15491 | X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
15492 | $as_echo X/"$am_mf" |
|
---|
15493 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
15494 | s//\1/
|
---|
15495 | q
|
---|
15496 | }
|
---|
15497 | /^X\/\(\/\/\)$/{
|
---|
15498 | s//\1/
|
---|
15499 | q
|
---|
15500 | }
|
---|
15501 | /^X\/\(\/\).*/{
|
---|
15502 | s//\1/
|
---|
15503 | q
|
---|
15504 | }
|
---|
15505 | s/.*/./; q'`
|
---|
15506 | { echo "$as_me:$LINENO: cd "$am_dirpart" \
|
---|
15507 | && sed -e '/# am--include-marker/d' "$am_filepart" \
|
---|
15508 | | $MAKE -f - am--depfiles" >&5
|
---|
15509 | (cd "$am_dirpart" \
|
---|
15510 | && sed -e '/# am--include-marker/d' "$am_filepart" \
|
---|
15511 | | $MAKE -f - am--depfiles) >&5 2>&5
|
---|
15512 | ac_status=$?
|
---|
15513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
15514 | (exit $ac_status); } || am_rc=$?
|
---|
15515 | done
|
---|
15516 | if test $am_rc -ne 0; then
|
---|
15517 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
15518 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
15519 | as_fn_error $? "Something went wrong bootstrapping makefile fragments
|
---|
15520 | for automatic dependency tracking. Try re-running configure with the
|
---|
15521 | '--disable-dependency-tracking' option to at least be able to build
|
---|
15522 | the package (albeit without support for automatic dependency tracking).
|
---|
15523 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
15524 | fi
|
---|
15525 | { am_dirpart=; unset am_dirpart;}
|
---|
15526 | { am_filepart=; unset am_filepart;}
|
---|
15527 | { am_mf=; unset am_mf;}
|
---|
15528 | { am_rc=; unset am_rc;}
|
---|
15529 | rm -f conftest-deps.mk
|
---|
15530 | }
|
---|
15531 | ;;
|
---|
15532 | "libtool":C)
|
---|
15533 |
|
---|
15534 | # See if we are running on zsh, and set the options that allow our
|
---|
15535 | # commands through without removal of \ escapes.
|
---|
15536 | if test -n "${ZSH_VERSION+set}"; then
|
---|
15537 | setopt NO_GLOB_SUBST
|
---|
15538 | fi
|
---|
15539 |
|
---|
15540 | cfgfile=${ofile}T
|
---|
15541 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15
|
---|
15542 | $RM "$cfgfile"
|
---|
15543 |
|
---|
15544 | cat <<_LT_EOF >> "$cfgfile"
|
---|
15545 | #! $SHELL
|
---|
15546 | # Generated automatically by $as_me ($PACKAGE) $VERSION
|
---|
15547 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
---|
15548 | # NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
---|
15549 |
|
---|
15550 | # Provide generalized library-building support services.
|
---|
15551 | # Written by Gordon Matzigkeit, 1996
|
---|
15552 |
|
---|
15553 | # Copyright (C) 2014 Free Software Foundation, Inc.
|
---|
15554 | # This is free software; see the source for copying conditions. There is NO
|
---|
15555 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
---|
15556 |
|
---|
15557 | # GNU Libtool is free software; you can redistribute it and/or modify
|
---|
15558 | # it under the terms of the GNU General Public License as published by
|
---|
15559 | # the Free Software Foundation; either version 2 of of the License, or
|
---|
15560 | # (at your option) any later version.
|
---|
15561 | #
|
---|
15562 | # As a special exception to the GNU General Public License, if you
|
---|
15563 | # distribute this file as part of a program or library that is built
|
---|
15564 | # using GNU Libtool, you may include this file under the same
|
---|
15565 | # distribution terms that you use for the rest of that program.
|
---|
15566 | #
|
---|
15567 | # GNU Libtool is distributed in the hope that it will be useful, but
|
---|
15568 | # WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
15569 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
15570 | # GNU General Public License for more details.
|
---|
15571 | #
|
---|
15572 | # You should have received a copy of the GNU General Public License
|
---|
15573 | # along with this program. If not, see <http://www.gnu.org/licenses/>.
|
---|
15574 |
|
---|
15575 |
|
---|
15576 | # The names of the tagged configurations supported by this script.
|
---|
15577 | available_tags=''
|
---|
15578 |
|
---|
15579 | # Configured defaults for sys_lib_dlsearch_path munging.
|
---|
15580 | : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
|
---|
15581 |
|
---|
15582 | # ### BEGIN LIBTOOL CONFIG
|
---|
15583 |
|
---|
15584 | # A sed program that does not truncate output.
|
---|
15585 | SED=$lt_SED
|
---|
15586 |
|
---|
15587 | # Sed that helps us avoid accidentally triggering echo(1) options like -n.
|
---|
15588 | Xsed="\$SED -e 1s/^X//"
|
---|
15589 |
|
---|
15590 | # A grep program that handles long lines.
|
---|
15591 | GREP=$lt_GREP
|
---|
15592 |
|
---|
15593 | # An ERE matcher.
|
---|
15594 | EGREP=$lt_EGREP
|
---|
15595 |
|
---|
15596 | # A literal string matcher.
|
---|
15597 | FGREP=$lt_FGREP
|
---|
15598 |
|
---|
15599 | # Shell to use when invoking shell scripts.
|
---|
15600 | SHELL=$lt_SHELL
|
---|
15601 |
|
---|
15602 | # An echo program that protects backslashes.
|
---|
15603 | ECHO=$lt_ECHO
|
---|
15604 |
|
---|
15605 | # Which release of libtool.m4 was used?
|
---|
15606 | macro_version=$macro_version
|
---|
15607 | macro_revision=$macro_revision
|
---|
15608 |
|
---|
15609 | # Assembler program.
|
---|
15610 | AS=$lt_AS
|
---|
15611 |
|
---|
15612 | # DLL creation program.
|
---|
15613 | DLLTOOL=$lt_DLLTOOL
|
---|
15614 |
|
---|
15615 | # Object dumper program.
|
---|
15616 | OBJDUMP=$lt_OBJDUMP
|
---|
15617 |
|
---|
15618 | # Whether or not to build shared libraries.
|
---|
15619 | build_libtool_libs=$enable_shared
|
---|
15620 |
|
---|
15621 | # Whether or not to build static libraries.
|
---|
15622 | build_old_libs=$enable_static
|
---|
15623 |
|
---|
15624 | # What type of objects to build.
|
---|
15625 | pic_mode=$pic_mode
|
---|
15626 |
|
---|
15627 | # Whether or not to optimize for fast installation.
|
---|
15628 | fast_install=$enable_fast_install
|
---|
15629 |
|
---|
15630 | # Shared archive member basename,for filename based shared library versioning on AIX.
|
---|
15631 | shared_archive_member_spec=$shared_archive_member_spec
|
---|
15632 |
|
---|
15633 | # The PATH separator for the build system.
|
---|
15634 | PATH_SEPARATOR=$lt_PATH_SEPARATOR
|
---|
15635 |
|
---|
15636 | # The host system.
|
---|
15637 | host_alias=$host_alias
|
---|
15638 | host=$host
|
---|
15639 | host_os=$host_os
|
---|
15640 |
|
---|
15641 | # The build system.
|
---|
15642 | build_alias=$build_alias
|
---|
15643 | build=$build
|
---|
15644 | build_os=$build_os
|
---|
15645 |
|
---|
15646 | # A BSD- or MS-compatible name lister.
|
---|
15647 | NM=$lt_NM
|
---|
15648 |
|
---|
15649 | # Whether we need soft or hard links.
|
---|
15650 | LN_S=$lt_LN_S
|
---|
15651 |
|
---|
15652 | # What is the maximum length of a command?
|
---|
15653 | max_cmd_len=$max_cmd_len
|
---|
15654 |
|
---|
15655 | # Object file suffix (normally "o").
|
---|
15656 | objext=$ac_objext
|
---|
15657 |
|
---|
15658 | # Executable file suffix (normally "").
|
---|
15659 | exeext=$exeext
|
---|
15660 |
|
---|
15661 | # whether the shell understands "unset".
|
---|
15662 | lt_unset=$lt_unset
|
---|
15663 |
|
---|
15664 | # turn spaces into newlines.
|
---|
15665 | SP2NL=$lt_lt_SP2NL
|
---|
15666 |
|
---|
15667 | # turn newlines into spaces.
|
---|
15668 | NL2SP=$lt_lt_NL2SP
|
---|
15669 |
|
---|
15670 | # convert \$build file names to \$host format.
|
---|
15671 | to_host_file_cmd=$lt_cv_to_host_file_cmd
|
---|
15672 |
|
---|
15673 | # convert \$build files to toolchain format.
|
---|
15674 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
---|
15675 |
|
---|
15676 | # Method to check whether dependent libraries are shared objects.
|
---|
15677 | deplibs_check_method=$lt_deplibs_check_method
|
---|
15678 |
|
---|
15679 | # Command to use when deplibs_check_method = "file_magic".
|
---|
15680 | file_magic_cmd=$lt_file_magic_cmd
|
---|
15681 |
|
---|
15682 | # How to find potential files when deplibs_check_method = "file_magic".
|
---|
15683 | file_magic_glob=$lt_file_magic_glob
|
---|
15684 |
|
---|
15685 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
|
---|
15686 | want_nocaseglob=$lt_want_nocaseglob
|
---|
15687 |
|
---|
15688 | # Command to associate shared and link libraries.
|
---|
15689 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
|
---|
15690 |
|
---|
15691 | # The archiver.
|
---|
15692 | AR=$lt_AR
|
---|
15693 |
|
---|
15694 | # Flags to create an archive.
|
---|
15695 | AR_FLAGS=$lt_AR_FLAGS
|
---|
15696 |
|
---|
15697 | # How to feed a file listing to the archiver.
|
---|
15698 | archiver_list_spec=$lt_archiver_list_spec
|
---|
15699 |
|
---|
15700 | # A symbol stripping program.
|
---|
15701 | STRIP=$lt_STRIP
|
---|
15702 |
|
---|
15703 | # Commands used to install an old-style archive.
|
---|
15704 | RANLIB=$lt_RANLIB
|
---|
15705 | old_postinstall_cmds=$lt_old_postinstall_cmds
|
---|
15706 | old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
---|
15707 |
|
---|
15708 | # Whether to use a lock for old archive extraction.
|
---|
15709 | lock_old_archive_extraction=$lock_old_archive_extraction
|
---|
15710 |
|
---|
15711 | # A C compiler.
|
---|
15712 | LTCC=$lt_CC
|
---|
15713 |
|
---|
15714 | # LTCC compiler flags.
|
---|
15715 | LTCFLAGS=$lt_CFLAGS
|
---|
15716 |
|
---|
15717 | # Take the output of nm and produce a listing of raw symbols and C names.
|
---|
15718 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
|
---|
15719 |
|
---|
15720 | # Transform the output of nm in a proper C declaration.
|
---|
15721 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
|
---|
15722 |
|
---|
15723 | # Transform the output of nm into a list of symbols to manually relocate.
|
---|
15724 | global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
|
---|
15725 |
|
---|
15726 | # Transform the output of nm in a C name address pair.
|
---|
15727 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
---|
15728 |
|
---|
15729 | # Transform the output of nm in a C name address pair when lib prefix is needed.
|
---|
15730 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
|
---|
15731 |
|
---|
15732 | # The name lister interface.
|
---|
15733 | nm_interface=$lt_lt_cv_nm_interface
|
---|
15734 |
|
---|
15735 | # Specify filename containing input files for \$NM.
|
---|
15736 | nm_file_list_spec=$lt_nm_file_list_spec
|
---|
15737 |
|
---|
15738 | # The root where to search for dependent libraries,and where our libraries should be installed.
|
---|
15739 | lt_sysroot=$lt_sysroot
|
---|
15740 |
|
---|
15741 | # Command to truncate a binary pipe.
|
---|
15742 | lt_truncate_bin=$lt_lt_cv_truncate_bin
|
---|
15743 |
|
---|
15744 | # The name of the directory that contains temporary libtool files.
|
---|
15745 | objdir=$objdir
|
---|
15746 |
|
---|
15747 | # Used to examine libraries when file_magic_cmd begins with "file".
|
---|
15748 | MAGIC_CMD=$MAGIC_CMD
|
---|
15749 |
|
---|
15750 | # Must we lock files when doing compilation?
|
---|
15751 | need_locks=$lt_need_locks
|
---|
15752 |
|
---|
15753 | # Manifest tool.
|
---|
15754 | MANIFEST_TOOL=$lt_MANIFEST_TOOL
|
---|
15755 |
|
---|
15756 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
|
---|
15757 | DSYMUTIL=$lt_DSYMUTIL
|
---|
15758 |
|
---|
15759 | # Tool to change global to local symbols on Mac OS X.
|
---|
15760 | NMEDIT=$lt_NMEDIT
|
---|
15761 |
|
---|
15762 | # Tool to manipulate fat objects and archives on Mac OS X.
|
---|
15763 | LIPO=$lt_LIPO
|
---|
15764 |
|
---|
15765 | # ldd/readelf like tool for Mach-O binaries on Mac OS X.
|
---|
15766 | OTOOL=$lt_OTOOL
|
---|
15767 |
|
---|
15768 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
|
---|
15769 | OTOOL64=$lt_OTOOL64
|
---|
15770 |
|
---|
15771 | # Old archive suffix (normally "a").
|
---|
15772 | libext=$libext
|
---|
15773 |
|
---|
15774 | # Shared library suffix (normally ".so").
|
---|
15775 | shrext_cmds=$lt_shrext_cmds
|
---|
15776 |
|
---|
15777 | # The commands to extract the exported symbol list from a shared archive.
|
---|
15778 | extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
---|
15779 |
|
---|
15780 | # Variables whose values should be saved in libtool wrapper scripts and
|
---|
15781 | # restored at link time.
|
---|
15782 | variables_saved_for_relink=$lt_variables_saved_for_relink
|
---|
15783 |
|
---|
15784 | # Do we need the "lib" prefix for modules?
|
---|
15785 | need_lib_prefix=$need_lib_prefix
|
---|
15786 |
|
---|
15787 | # Do we need a version for libraries?
|
---|
15788 | need_version=$need_version
|
---|
15789 |
|
---|
15790 | # Library versioning type.
|
---|
15791 | version_type=$version_type
|
---|
15792 |
|
---|
15793 | # Shared library runtime path variable.
|
---|
15794 | runpath_var=$runpath_var
|
---|
15795 |
|
---|
15796 | # Shared library path variable.
|
---|
15797 | shlibpath_var=$shlibpath_var
|
---|
15798 |
|
---|
15799 | # Is shlibpath searched before the hard-coded library search path?
|
---|
15800 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
---|
15801 |
|
---|
15802 | # Format of library name prefix.
|
---|
15803 | libname_spec=$lt_libname_spec
|
---|
15804 |
|
---|
15805 | # List of archive names. First name is the real one, the rest are links.
|
---|
15806 | # The last name is the one that the linker finds with -lNAME
|
---|
15807 | library_names_spec=$lt_library_names_spec
|
---|
15808 |
|
---|
15809 | # The coded name of the library, if different from the real name.
|
---|
15810 | soname_spec=$lt_soname_spec
|
---|
15811 |
|
---|
15812 | # Permission mode override for installation of shared libraries.
|
---|
15813 | install_override_mode=$lt_install_override_mode
|
---|
15814 |
|
---|
15815 | # Command to use after installation of a shared archive.
|
---|
15816 | postinstall_cmds=$lt_postinstall_cmds
|
---|
15817 |
|
---|
15818 | # Command to use after uninstallation of a shared archive.
|
---|
15819 | postuninstall_cmds=$lt_postuninstall_cmds
|
---|
15820 |
|
---|
15821 | # Commands used to finish a libtool library installation in a directory.
|
---|
15822 | finish_cmds=$lt_finish_cmds
|
---|
15823 |
|
---|
15824 | # As "finish_cmds", except a single script fragment to be evaled but
|
---|
15825 | # not shown.
|
---|
15826 | finish_eval=$lt_finish_eval
|
---|
15827 |
|
---|
15828 | # Whether we should hardcode library paths into libraries.
|
---|
15829 | hardcode_into_libs=$hardcode_into_libs
|
---|
15830 |
|
---|
15831 | # Compile-time system search path for libraries.
|
---|
15832 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
|
---|
15833 |
|
---|
15834 | # Detected run-time system search path for libraries.
|
---|
15835 | sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
|
---|
15836 |
|
---|
15837 | # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
|
---|
15838 | configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
|
---|
15839 |
|
---|
15840 | # Whether dlopen is supported.
|
---|
15841 | dlopen_support=$enable_dlopen
|
---|
15842 |
|
---|
15843 | # Whether dlopen of programs is supported.
|
---|
15844 | dlopen_self=$enable_dlopen_self
|
---|
15845 |
|
---|
15846 | # Whether dlopen of statically linked programs is supported.
|
---|
15847 | dlopen_self_static=$enable_dlopen_self_static
|
---|
15848 |
|
---|
15849 | # Commands to strip libraries.
|
---|
15850 | old_striplib=$lt_old_striplib
|
---|
15851 | striplib=$lt_striplib
|
---|
15852 |
|
---|
15853 |
|
---|
15854 | # The linker used to build libraries.
|
---|
15855 | LD=$lt_LD
|
---|
15856 |
|
---|
15857 | # How to create reloadable object files.
|
---|
15858 | reload_flag=$lt_reload_flag
|
---|
15859 | reload_cmds=$lt_reload_cmds
|
---|
15860 |
|
---|
15861 | # Commands used to build an old-style archive.
|
---|
15862 | old_archive_cmds=$lt_old_archive_cmds
|
---|
15863 |
|
---|
15864 | # A language specific compiler.
|
---|
15865 | CC=$lt_compiler
|
---|
15866 |
|
---|
15867 | # Is the compiler the GNU compiler?
|
---|
15868 | with_gcc=$GCC
|
---|
15869 |
|
---|
15870 | # Compiler flag to turn off builtin functions.
|
---|
15871 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
|
---|
15872 |
|
---|
15873 | # Additional compiler flags for building library objects.
|
---|
15874 | pic_flag=$lt_lt_prog_compiler_pic
|
---|
15875 |
|
---|
15876 | # How to pass a linker flag through the compiler.
|
---|
15877 | wl=$lt_lt_prog_compiler_wl
|
---|
15878 |
|
---|
15879 | # Compiler flag to prevent dynamic linking.
|
---|
15880 | link_static_flag=$lt_lt_prog_compiler_static
|
---|
15881 |
|
---|
15882 | # Does compiler simultaneously support -c and -o options?
|
---|
15883 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o
|
---|
15884 |
|
---|
15885 | # Whether or not to add -lc for building shared libraries.
|
---|
15886 | build_libtool_need_lc=$archive_cmds_need_lc
|
---|
15887 |
|
---|
15888 | # Whether or not to disallow shared libs when runtime libs are static.
|
---|
15889 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
|
---|
15890 |
|
---|
15891 | # Compiler flag to allow reflexive dlopens.
|
---|
15892 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
|
---|
15893 |
|
---|
15894 | # Compiler flag to generate shared objects directly from archives.
|
---|
15895 | whole_archive_flag_spec=$lt_whole_archive_flag_spec
|
---|
15896 |
|
---|
15897 | # Whether the compiler copes with passing no objects directly.
|
---|
15898 | compiler_needs_object=$lt_compiler_needs_object
|
---|
15899 |
|
---|
15900 | # Create an old-style archive from a shared archive.
|
---|
15901 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
|
---|
15902 |
|
---|
15903 | # Create a temporary old-style archive to link instead of a shared archive.
|
---|
15904 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
|
---|
15905 |
|
---|
15906 | # Commands used to build a shared archive.
|
---|
15907 | archive_cmds=$lt_archive_cmds
|
---|
15908 | archive_expsym_cmds=$lt_archive_expsym_cmds
|
---|
15909 |
|
---|
15910 | # Commands used to build a loadable module if different from building
|
---|
15911 | # a shared archive.
|
---|
15912 | module_cmds=$lt_module_cmds
|
---|
15913 | module_expsym_cmds=$lt_module_expsym_cmds
|
---|
15914 |
|
---|
15915 | # Whether we are building with GNU ld or not.
|
---|
15916 | with_gnu_ld=$lt_with_gnu_ld
|
---|
15917 |
|
---|
15918 | # Flag that allows shared libraries with undefined symbols to be built.
|
---|
15919 | allow_undefined_flag=$lt_allow_undefined_flag
|
---|
15920 |
|
---|
15921 | # Flag that enforces no undefined symbols.
|
---|
15922 | no_undefined_flag=$lt_no_undefined_flag
|
---|
15923 |
|
---|
15924 | # Flag to hardcode \$libdir into a binary during linking.
|
---|
15925 | # This must work even if \$libdir does not exist
|
---|
15926 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
|
---|
15927 |
|
---|
15928 | # Whether we need a single "-rpath" flag with a separated argument.
|
---|
15929 | hardcode_libdir_separator=$lt_hardcode_libdir_separator
|
---|
15930 |
|
---|
15931 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
|
---|
15932 | # DIR into the resulting binary.
|
---|
15933 | hardcode_direct=$hardcode_direct
|
---|
15934 |
|
---|
15935 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
|
---|
15936 | # DIR into the resulting binary and the resulting library dependency is
|
---|
15937 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the
|
---|
15938 | # library is relocated.
|
---|
15939 | hardcode_direct_absolute=$hardcode_direct_absolute
|
---|
15940 |
|
---|
15941 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
|
---|
15942 | # into the resulting binary.
|
---|
15943 | hardcode_minus_L=$hardcode_minus_L
|
---|
15944 |
|
---|
15945 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
|
---|
15946 | # into the resulting binary.
|
---|
15947 | hardcode_shlibpath_var=$hardcode_shlibpath_var
|
---|
15948 |
|
---|
15949 | # Set to "yes" if building a shared library automatically hardcodes DIR
|
---|
15950 | # into the library and all subsequent libraries and executables linked
|
---|
15951 | # against it.
|
---|
15952 | hardcode_automatic=$hardcode_automatic
|
---|
15953 |
|
---|
15954 | # Set to yes if linker adds runtime paths of dependent libraries
|
---|
15955 | # to runtime path list.
|
---|
15956 | inherit_rpath=$inherit_rpath
|
---|
15957 |
|
---|
15958 | # Whether libtool must link a program against all its dependency libraries.
|
---|
15959 | link_all_deplibs=$link_all_deplibs
|
---|
15960 |
|
---|
15961 | # Set to "yes" if exported symbols are required.
|
---|
15962 | always_export_symbols=$always_export_symbols
|
---|
15963 |
|
---|
15964 | # The commands to list exported symbols.
|
---|
15965 | export_symbols_cmds=$lt_export_symbols_cmds
|
---|
15966 |
|
---|
15967 | # Symbols that should not be listed in the preloaded symbols.
|
---|
15968 | exclude_expsyms=$lt_exclude_expsyms
|
---|
15969 |
|
---|
15970 | # Symbols that must always be exported.
|
---|
15971 | include_expsyms=$lt_include_expsyms
|
---|
15972 |
|
---|
15973 | # Commands necessary for linking programs (against libraries) with templates.
|
---|
15974 | prelink_cmds=$lt_prelink_cmds
|
---|
15975 |
|
---|
15976 | # Commands necessary for finishing linking programs.
|
---|
15977 | postlink_cmds=$lt_postlink_cmds
|
---|
15978 |
|
---|
15979 | # Specify filename containing input files.
|
---|
15980 | file_list_spec=$lt_file_list_spec
|
---|
15981 |
|
---|
15982 | # How to hardcode a shared library path into an executable.
|
---|
15983 | hardcode_action=$hardcode_action
|
---|
15984 |
|
---|
15985 | # ### END LIBTOOL CONFIG
|
---|
15986 |
|
---|
15987 | _LT_EOF
|
---|
15988 |
|
---|
15989 | cat <<'_LT_EOF' >> "$cfgfile"
|
---|
15990 |
|
---|
15991 | # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
|
---|
15992 |
|
---|
15993 | # func_munge_path_list VARIABLE PATH
|
---|
15994 | # -----------------------------------
|
---|
15995 | # VARIABLE is name of variable containing _space_ separated list of
|
---|
15996 | # directories to be munged by the contents of PATH, which is string
|
---|
15997 | # having a format:
|
---|
15998 | # "DIR[:DIR]:"
|
---|
15999 | # string "DIR[ DIR]" will be prepended to VARIABLE
|
---|
16000 | # ":DIR[:DIR]"
|
---|
16001 | # string "DIR[ DIR]" will be appended to VARIABLE
|
---|
16002 | # "DIRP[:DIRP]::[DIRA:]DIRA"
|
---|
16003 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
|
---|
16004 | # "DIRA[ DIRA]" will be appended to VARIABLE
|
---|
16005 | # "DIR[:DIR]"
|
---|
16006 | # VARIABLE will be replaced by "DIR[ DIR]"
|
---|
16007 | func_munge_path_list ()
|
---|
16008 | {
|
---|
16009 | case x$2 in
|
---|
16010 | x)
|
---|
16011 | ;;
|
---|
16012 | *:)
|
---|
16013 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
|
---|
16014 | ;;
|
---|
16015 | x:*)
|
---|
16016 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
|
---|
16017 | ;;
|
---|
16018 | *::*)
|
---|
16019 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
|
---|
16020 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
|
---|
16021 | ;;
|
---|
16022 | *)
|
---|
16023 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
|
---|
16024 | ;;
|
---|
16025 | esac
|
---|
16026 | }
|
---|
16027 |
|
---|
16028 |
|
---|
16029 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
|
---|
16030 | func_cc_basename ()
|
---|
16031 | {
|
---|
16032 | for cc_temp in $*""; do
|
---|
16033 | case $cc_temp in
|
---|
16034 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
---|
16035 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
---|
16036 | \-*) ;;
|
---|
16037 | *) break;;
|
---|
16038 | esac
|
---|
16039 | done
|
---|
16040 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
|
---|
16041 | }
|
---|
16042 |
|
---|
16043 |
|
---|
16044 | # ### END FUNCTIONS SHARED WITH CONFIGURE
|
---|
16045 |
|
---|
16046 | _LT_EOF
|
---|
16047 |
|
---|
16048 | case $host_os in
|
---|
16049 | aix3*)
|
---|
16050 | cat <<\_LT_EOF >> "$cfgfile"
|
---|
16051 | # AIX sometimes has problems with the GCC collect2 program. For some
|
---|
16052 | # reason, if we set the COLLECT_NAMES environment variable, the problems
|
---|
16053 | # vanish in a puff of smoke.
|
---|
16054 | if test set != "${COLLECT_NAMES+set}"; then
|
---|
16055 | COLLECT_NAMES=
|
---|
16056 | export COLLECT_NAMES
|
---|
16057 | fi
|
---|
16058 | _LT_EOF
|
---|
16059 | ;;
|
---|
16060 | esac
|
---|
16061 |
|
---|
16062 |
|
---|
16063 | ltmain=$ac_aux_dir/ltmain.sh
|
---|
16064 |
|
---|
16065 |
|
---|
16066 | # We use sed instead of cat because bash on DJGPP gets confused if
|
---|
16067 | # if finds mixed CR/LF and LF-only lines. Since sed operates in
|
---|
16068 | # text mode, it properly converts lines to CR/LF. This bash problem
|
---|
16069 | # is reportedly fixed, but why not run on old versions too?
|
---|
16070 | sed '$q' "$ltmain" >> "$cfgfile" \
|
---|
16071 | || (rm -f "$cfgfile"; exit 1)
|
---|
16072 |
|
---|
16073 | mv -f "$cfgfile" "$ofile" ||
|
---|
16074 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
---|
16075 | chmod +x "$ofile"
|
---|
16076 |
|
---|
16077 | ;;
|
---|
16078 | "libpng-config":F) chmod +x libpng-config ;;
|
---|
16079 |
|
---|
16080 | esac
|
---|
16081 | done # for ac_tag
|
---|
16082 |
|
---|
16083 |
|
---|
16084 | as_fn_exit 0
|
---|
16085 | _ACEOF
|
---|
16086 | ac_clean_files=$ac_clean_files_save
|
---|
16087 |
|
---|
16088 | test $ac_write_fail = 0 ||
|
---|
16089 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
|
---|
16090 |
|
---|
16091 |
|
---|
16092 | # configure is writing to config.log, and then calls config.status.
|
---|
16093 | # config.status does its own redirection, appending to config.log.
|
---|
16094 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
16095 | # by configure, so config.status won't be able to write to it; its
|
---|
16096 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
16097 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
16098 | # appended to by config.status. When coming back to configure, we
|
---|
16099 | # need to make the FD available again.
|
---|
16100 | if test "$no_create" != yes; then
|
---|
16101 | ac_cs_success=:
|
---|
16102 | ac_config_status_args=
|
---|
16103 | test "$silent" = yes &&
|
---|
16104 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
16105 | exec 5>/dev/null
|
---|
16106 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
16107 | exec 5>>config.log
|
---|
16108 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
16109 | # would make configure fail if this is the last instruction.
|
---|
16110 | $ac_cs_success || as_fn_exit 1
|
---|
16111 | fi
|
---|
16112 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
|
---|
16113 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
---|
16114 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
---|
16115 | fi
|
---|
16116 |
|
---|