1 | #! /bin/sh
|
---|
2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
3 | # Generated by GNU Autoconf 2.72 for libpng 1.6.43.
|
---|
4 | #
|
---|
5 | # Report bugs to <[email protected]>.
|
---|
6 | #
|
---|
7 | #
|
---|
8 | # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
|
---|
9 | # Inc.
|
---|
10 | #
|
---|
11 | #
|
---|
12 | # This configure script is free software; the Free Software Foundation
|
---|
13 | # gives unlimited permission to copy, distribute and modify it.
|
---|
14 | ## -------------------- ##
|
---|
15 | ## M4sh Initialization. ##
|
---|
16 | ## -------------------- ##
|
---|
17 |
|
---|
18 | # Be more Bourne compatible
|
---|
19 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
20 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
|
---|
21 | then :
|
---|
22 | emulate sh
|
---|
23 | NULLCMD=:
|
---|
24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
25 | # is contrary to our usage. Disable this feature.
|
---|
26 | alias -g '${1+"$@"}'='"$@"'
|
---|
27 | setopt NO_GLOB_SUBST
|
---|
28 | else case e in #(
|
---|
29 | e) case `(set -o) 2>/dev/null` in #(
|
---|
30 | *posix*) :
|
---|
31 | set -o posix ;; #(
|
---|
32 | *) :
|
---|
33 | ;;
|
---|
34 | esac ;;
|
---|
35 | esac
|
---|
36 | fi
|
---|
37 |
|
---|
38 |
|
---|
39 |
|
---|
40 | # Reset variables that may have inherited troublesome values from
|
---|
41 | # the environment.
|
---|
42 |
|
---|
43 | # IFS needs to be set, to space, tab, and newline, in precisely that order.
|
---|
44 | # (If _AS_PATH_WALK were called with IFS unset, it would have the
|
---|
45 | # side effect of setting IFS to empty, thus disabling word splitting.)
|
---|
46 | # Quoting is to prevent editors from complaining about space-tab.
|
---|
47 | as_nl='
|
---|
48 | '
|
---|
49 | export as_nl
|
---|
50 | IFS=" "" $as_nl"
|
---|
51 |
|
---|
52 | PS1='$ '
|
---|
53 | PS2='> '
|
---|
54 | PS4='+ '
|
---|
55 |
|
---|
56 | # Ensure predictable behavior from utilities with locale-dependent output.
|
---|
57 | LC_ALL=C
|
---|
58 | export LC_ALL
|
---|
59 | LANGUAGE=C
|
---|
60 | export LANGUAGE
|
---|
61 |
|
---|
62 | # We cannot yet rely on "unset" to work, but we need these variables
|
---|
63 | # to be unset--not just set to an empty or harmless value--now, to
|
---|
64 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
|
---|
65 | # also avoids known problems related to "unset" and subshell syntax
|
---|
66 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
|
---|
67 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
|
---|
68 | do eval test \${$as_var+y} \
|
---|
69 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
70 | done
|
---|
71 |
|
---|
72 | # Ensure that fds 0, 1, and 2 are open.
|
---|
73 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
|
---|
74 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
|
---|
75 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
|
---|
76 |
|
---|
77 | # The user is always right.
|
---|
78 | if ${PATH_SEPARATOR+false} :; then
|
---|
79 | PATH_SEPARATOR=:
|
---|
80 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
---|
81 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
---|
82 | PATH_SEPARATOR=';'
|
---|
83 | }
|
---|
84 | fi
|
---|
85 |
|
---|
86 |
|
---|
87 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
88 | as_myself=
|
---|
89 | case $0 in #((
|
---|
90 | *[\\/]* ) as_myself=$0 ;;
|
---|
91 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
92 | for as_dir in $PATH
|
---|
93 | do
|
---|
94 | IFS=$as_save_IFS
|
---|
95 | case $as_dir in #(((
|
---|
96 | '') as_dir=./ ;;
|
---|
97 | */) ;;
|
---|
98 | *) as_dir=$as_dir/ ;;
|
---|
99 | esac
|
---|
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 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
113 | exit 1
|
---|
114 | fi
|
---|
115 |
|
---|
116 |
|
---|
117 | # Use a proper internal environment variable to ensure we don't fall
|
---|
118 | # into an infinite loop, continuously re-executing ourselves.
|
---|
119 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
|
---|
120 | _as_can_reexec=no; export _as_can_reexec;
|
---|
121 | # We cannot yet assume a decent shell, so we have to provide a
|
---|
122 | # neutralization value for shells without unset; and this also
|
---|
123 | # works around shells that cannot unset nonexistent variables.
|
---|
124 | # Preserve -v and -x to the replacement shell.
|
---|
125 | BASH_ENV=/dev/null
|
---|
126 | ENV=/dev/null
|
---|
127 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
---|
128 | case $- in # ((((
|
---|
129 | *v*x* | *x*v* ) as_opts=-vx ;;
|
---|
130 | *v* ) as_opts=-v ;;
|
---|
131 | *x* ) as_opts=-x ;;
|
---|
132 | * ) as_opts= ;;
|
---|
133 | esac
|
---|
134 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
|
---|
135 | # Admittedly, this is quite paranoid, since all the known shells bail
|
---|
136 | # out after a failed 'exec'.
|
---|
137 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
|
---|
138 | exit 255
|
---|
139 | fi
|
---|
140 | # We don't want this to propagate to other subprocesses.
|
---|
141 | { _as_can_reexec=; unset _as_can_reexec;}
|
---|
142 | if test "x$CONFIG_SHELL" = x; then
|
---|
143 | as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
|
---|
144 | then :
|
---|
145 | emulate sh
|
---|
146 | NULLCMD=:
|
---|
147 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
|
---|
148 | # is contrary to our usage. Disable this feature.
|
---|
149 | alias -g '\${1+\"\$@\"}'='\"\$@\"'
|
---|
150 | setopt NO_GLOB_SUBST
|
---|
151 | else case e in #(
|
---|
152 | e) case \`(set -o) 2>/dev/null\` in #(
|
---|
153 | *posix*) :
|
---|
154 | set -o posix ;; #(
|
---|
155 | *) :
|
---|
156 | ;;
|
---|
157 | esac ;;
|
---|
158 | esac
|
---|
159 | fi
|
---|
160 | "
|
---|
161 | as_required="as_fn_return () { (exit \$1); }
|
---|
162 | as_fn_success () { as_fn_return 0; }
|
---|
163 | as_fn_failure () { as_fn_return 1; }
|
---|
164 | as_fn_ret_success () { return 0; }
|
---|
165 | as_fn_ret_failure () { return 1; }
|
---|
166 |
|
---|
167 | exitcode=0
|
---|
168 | as_fn_success || { exitcode=1; echo as_fn_success failed.; }
|
---|
169 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
|
---|
170 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
|
---|
171 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
|
---|
172 | if ( set x; as_fn_ret_success y && test x = \"\$1\" )
|
---|
173 | then :
|
---|
174 |
|
---|
175 | else case e in #(
|
---|
176 | e) exitcode=1; echo positional parameters were not saved. ;;
|
---|
177 | esac
|
---|
178 | fi
|
---|
179 | test x\$exitcode = x0 || exit 1
|
---|
180 | blah=\$(echo \$(echo blah))
|
---|
181 | test x\"\$blah\" = xblah || exit 1
|
---|
182 | test -x / || exit 1"
|
---|
183 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
|
---|
184 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
|
---|
185 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
|
---|
186 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
|
---|
187 | test \$(( 1 + 1 )) = 2 || exit 1
|
---|
188 |
|
---|
189 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
|
---|
190 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
191 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
|
---|
192 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
|
---|
193 | PATH=/empty FPATH=/empty; export PATH FPATH
|
---|
194 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
|
---|
195 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
|
---|
196 | if (eval "$as_required") 2>/dev/null
|
---|
197 | then :
|
---|
198 | as_have_required=yes
|
---|
199 | else case e in #(
|
---|
200 | e) as_have_required=no ;;
|
---|
201 | esac
|
---|
202 | fi
|
---|
203 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
|
---|
204 | then :
|
---|
205 |
|
---|
206 | else case e in #(
|
---|
207 | e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
208 | as_found=false
|
---|
209 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
210 | do
|
---|
211 | IFS=$as_save_IFS
|
---|
212 | case $as_dir in #(((
|
---|
213 | '') as_dir=./ ;;
|
---|
214 | */) ;;
|
---|
215 | *) as_dir=$as_dir/ ;;
|
---|
216 | esac
|
---|
217 | as_found=:
|
---|
218 | case $as_dir in #(
|
---|
219 | /*)
|
---|
220 | for as_base in sh bash ksh sh5; do
|
---|
221 | # Try only shells that exist, to save several forks.
|
---|
222 | as_shell=$as_dir$as_base
|
---|
223 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
|
---|
224 | as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
|
---|
225 | then :
|
---|
226 | CONFIG_SHELL=$as_shell as_have_required=yes
|
---|
227 | if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
|
---|
228 | then :
|
---|
229 | break 2
|
---|
230 | fi
|
---|
231 | fi
|
---|
232 | done;;
|
---|
233 | esac
|
---|
234 | as_found=false
|
---|
235 | done
|
---|
236 | IFS=$as_save_IFS
|
---|
237 | if $as_found
|
---|
238 | then :
|
---|
239 |
|
---|
240 | else case e in #(
|
---|
241 | e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
|
---|
242 | as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
|
---|
243 | then :
|
---|
244 | CONFIG_SHELL=$SHELL as_have_required=yes
|
---|
245 | fi ;;
|
---|
246 | esac
|
---|
247 | fi
|
---|
248 |
|
---|
249 |
|
---|
250 | if test "x$CONFIG_SHELL" != x
|
---|
251 | then :
|
---|
252 | export CONFIG_SHELL
|
---|
253 | # We cannot yet assume a decent shell, so we have to provide a
|
---|
254 | # neutralization value for shells without unset; and this also
|
---|
255 | # works around shells that cannot unset nonexistent variables.
|
---|
256 | # Preserve -v and -x to the replacement shell.
|
---|
257 | BASH_ENV=/dev/null
|
---|
258 | ENV=/dev/null
|
---|
259 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
---|
260 | case $- in # ((((
|
---|
261 | *v*x* | *x*v* ) as_opts=-vx ;;
|
---|
262 | *v* ) as_opts=-v ;;
|
---|
263 | *x* ) as_opts=-x ;;
|
---|
264 | * ) as_opts= ;;
|
---|
265 | esac
|
---|
266 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
|
---|
267 | # Admittedly, this is quite paranoid, since all the known shells bail
|
---|
268 | # out after a failed 'exec'.
|
---|
269 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
|
---|
270 | exit 255
|
---|
271 | fi
|
---|
272 |
|
---|
273 | if test x$as_have_required = xno
|
---|
274 | then :
|
---|
275 | printf "%s\n" "$0: This script requires a shell more modern than all"
|
---|
276 | printf "%s\n" "$0: the shells that I found on your system."
|
---|
277 | if test ${ZSH_VERSION+y} ; then
|
---|
278 | printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
|
---|
279 | printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
|
---|
280 | else
|
---|
281 | printf "%s\n" "$0: Please tell [email protected] and
|
---|
282 | $0: [email protected] about your
|
---|
283 | $0: system, including any error possibly output before this
|
---|
284 | $0: message. Then install a modern shell, or manually run
|
---|
285 | $0: the script under such a shell if you do have one."
|
---|
286 | fi
|
---|
287 | exit 1
|
---|
288 | fi ;;
|
---|
289 | esac
|
---|
290 | fi
|
---|
291 | fi
|
---|
292 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
293 | export SHELL
|
---|
294 | # Unset more variables known to interfere with behavior of common tools.
|
---|
295 | CLICOLOR_FORCE= GREP_OPTIONS=
|
---|
296 | unset CLICOLOR_FORCE GREP_OPTIONS
|
---|
297 |
|
---|
298 | ## --------------------- ##
|
---|
299 | ## M4sh Shell Functions. ##
|
---|
300 | ## --------------------- ##
|
---|
301 | # as_fn_unset VAR
|
---|
302 | # ---------------
|
---|
303 | # Portably unset VAR.
|
---|
304 | as_fn_unset ()
|
---|
305 | {
|
---|
306 | { eval $1=; unset $1;}
|
---|
307 | }
|
---|
308 | as_unset=as_fn_unset
|
---|
309 |
|
---|
310 |
|
---|
311 | # as_fn_set_status STATUS
|
---|
312 | # -----------------------
|
---|
313 | # Set $? to STATUS, without forking.
|
---|
314 | as_fn_set_status ()
|
---|
315 | {
|
---|
316 | return $1
|
---|
317 | } # as_fn_set_status
|
---|
318 |
|
---|
319 | # as_fn_exit STATUS
|
---|
320 | # -----------------
|
---|
321 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
322 | as_fn_exit ()
|
---|
323 | {
|
---|
324 | set +e
|
---|
325 | as_fn_set_status $1
|
---|
326 | exit $1
|
---|
327 | } # as_fn_exit
|
---|
328 |
|
---|
329 | # as_fn_mkdir_p
|
---|
330 | # -------------
|
---|
331 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
332 | as_fn_mkdir_p ()
|
---|
333 | {
|
---|
334 |
|
---|
335 | case $as_dir in #(
|
---|
336 | -*) as_dir=./$as_dir;;
|
---|
337 | esac
|
---|
338 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
339 | as_dirs=
|
---|
340 | while :; do
|
---|
341 | case $as_dir in #(
|
---|
342 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
343 | *) as_qdir=$as_dir;;
|
---|
344 | esac
|
---|
345 | as_dirs="'$as_qdir' $as_dirs"
|
---|
346 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
347 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
348 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
349 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
350 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
351 | printf "%s\n" X"$as_dir" |
|
---|
352 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
353 | s//\1/
|
---|
354 | q
|
---|
355 | }
|
---|
356 | /^X\(\/\/\)[^/].*/{
|
---|
357 | s//\1/
|
---|
358 | q
|
---|
359 | }
|
---|
360 | /^X\(\/\/\)$/{
|
---|
361 | s//\1/
|
---|
362 | q
|
---|
363 | }
|
---|
364 | /^X\(\/\).*/{
|
---|
365 | s//\1/
|
---|
366 | q
|
---|
367 | }
|
---|
368 | s/.*/./; q'`
|
---|
369 | test -d "$as_dir" && break
|
---|
370 | done
|
---|
371 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
372 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
---|
373 |
|
---|
374 |
|
---|
375 | } # as_fn_mkdir_p
|
---|
376 |
|
---|
377 | # as_fn_executable_p FILE
|
---|
378 | # -----------------------
|
---|
379 | # Test if FILE is an executable regular file.
|
---|
380 | as_fn_executable_p ()
|
---|
381 | {
|
---|
382 | test -f "$1" && test -x "$1"
|
---|
383 | } # as_fn_executable_p
|
---|
384 | # as_fn_append VAR VALUE
|
---|
385 | # ----------------------
|
---|
386 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
387 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
388 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
389 | # implementations.
|
---|
390 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
|
---|
391 | then :
|
---|
392 | eval 'as_fn_append ()
|
---|
393 | {
|
---|
394 | eval $1+=\$2
|
---|
395 | }'
|
---|
396 | else case e in #(
|
---|
397 | e) as_fn_append ()
|
---|
398 | {
|
---|
399 | eval $1=\$$1\$2
|
---|
400 | } ;;
|
---|
401 | esac
|
---|
402 | fi # as_fn_append
|
---|
403 |
|
---|
404 | # as_fn_arith ARG...
|
---|
405 | # ------------------
|
---|
406 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
407 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
408 | # must be portable across $(()) and expr.
|
---|
409 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
|
---|
410 | then :
|
---|
411 | eval 'as_fn_arith ()
|
---|
412 | {
|
---|
413 | as_val=$(( $* ))
|
---|
414 | }'
|
---|
415 | else case e in #(
|
---|
416 | e) as_fn_arith ()
|
---|
417 | {
|
---|
418 | as_val=`expr "$@" || test $? -eq 1`
|
---|
419 | } ;;
|
---|
420 | esac
|
---|
421 | fi # as_fn_arith
|
---|
422 |
|
---|
423 |
|
---|
424 | # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
---|
425 | # ----------------------------------------
|
---|
426 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
427 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
428 | # script with STATUS, using 1 if that was 0.
|
---|
429 | as_fn_error ()
|
---|
430 | {
|
---|
431 | as_status=$1; test $as_status -eq 0 && as_status=1
|
---|
432 | if test "$4"; then
|
---|
433 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
434 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
---|
435 | fi
|
---|
436 | printf "%s\n" "$as_me: error: $2" >&2
|
---|
437 | as_fn_exit $as_status
|
---|
438 | } # as_fn_error
|
---|
439 |
|
---|
440 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
441 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
442 | as_expr=expr
|
---|
443 | else
|
---|
444 | as_expr=false
|
---|
445 | fi
|
---|
446 |
|
---|
447 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
448 | as_basename=basename
|
---|
449 | else
|
---|
450 | as_basename=false
|
---|
451 | fi
|
---|
452 |
|
---|
453 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
454 | as_dirname=dirname
|
---|
455 | else
|
---|
456 | as_dirname=false
|
---|
457 | fi
|
---|
458 |
|
---|
459 | as_me=`$as_basename -- "$0" ||
|
---|
460 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
461 | X"$0" : 'X\(//\)$' \| \
|
---|
462 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
463 | printf "%s\n" X/"$0" |
|
---|
464 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
465 | s//\1/
|
---|
466 | q
|
---|
467 | }
|
---|
468 | /^X\/\(\/\/\)$/{
|
---|
469 | s//\1/
|
---|
470 | q
|
---|
471 | }
|
---|
472 | /^X\/\(\/\).*/{
|
---|
473 | s//\1/
|
---|
474 | q
|
---|
475 | }
|
---|
476 | s/.*/./; q'`
|
---|
477 |
|
---|
478 | # Avoid depending upon Character Ranges.
|
---|
479 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
480 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
481 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
482 | as_cr_digits='0123456789'
|
---|
483 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
484 |
|
---|
485 |
|
---|
486 | as_lineno_1=$LINENO as_lineno_1a=$LINENO
|
---|
487 | as_lineno_2=$LINENO as_lineno_2a=$LINENO
|
---|
488 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
|
---|
489 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
|
---|
490 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
|
---|
491 | sed -n '
|
---|
492 | p
|
---|
493 | /[$]LINENO/=
|
---|
494 | ' <$as_myself |
|
---|
495 | sed '
|
---|
496 | t clear
|
---|
497 | :clear
|
---|
498 | s/[$]LINENO.*/&-/
|
---|
499 | t lineno
|
---|
500 | b
|
---|
501 | :lineno
|
---|
502 | N
|
---|
503 | :loop
|
---|
504 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
---|
505 | t loop
|
---|
506 | s/-\n.*//
|
---|
507 | ' >$as_me.lineno &&
|
---|
508 | chmod +x "$as_me.lineno" ||
|
---|
509 | { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
|
---|
510 |
|
---|
511 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
|
---|
512 | # already done that, so ensure we don't try to do so again and fall
|
---|
513 | # in an infinite loop. This has already happened in practice.
|
---|
514 | _as_can_reexec=no; export _as_can_reexec
|
---|
515 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
516 | # (the dirname of $[0] is not the place where we might find the
|
---|
517 | # original and so on. Autoconf is especially sensitive to this).
|
---|
518 | . "./$as_me.lineno"
|
---|
519 | # Exit status is that of the last command.
|
---|
520 | exit
|
---|
521 | }
|
---|
522 |
|
---|
523 |
|
---|
524 | # Determine whether it's possible to make 'echo' print without a newline.
|
---|
525 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
|
---|
526 | # for compatibility with existing Makefiles.
|
---|
527 | ECHO_C= ECHO_N= ECHO_T=
|
---|
528 | case `echo -n x` in #(((((
|
---|
529 | -n*)
|
---|
530 | case `echo 'xy\c'` in
|
---|
531 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
532 | xy) ECHO_C='\c';;
|
---|
533 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
534 | ECHO_T=' ';;
|
---|
535 | esac;;
|
---|
536 | *)
|
---|
537 | ECHO_N='-n';;
|
---|
538 | esac
|
---|
539 |
|
---|
540 | # For backward compatibility with old third-party macros, we provide
|
---|
541 | # the shell variables $as_echo and $as_echo_n. New code should use
|
---|
542 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
|
---|
543 | as_echo='printf %s\n'
|
---|
544 | as_echo_n='printf %s'
|
---|
545 |
|
---|
546 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
547 | if test -d conf$$.dir; then
|
---|
548 | rm -f conf$$.dir/conf$$.file
|
---|
549 | else
|
---|
550 | rm -f conf$$.dir
|
---|
551 | mkdir conf$$.dir 2>/dev/null
|
---|
552 | fi
|
---|
553 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
554 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
555 | as_ln_s='ln -s'
|
---|
556 | # ... but there are two gotchas:
|
---|
557 | # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
|
---|
558 | # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
|
---|
559 | # In both cases, we have to default to 'cp -pR'.
|
---|
560 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
561 | as_ln_s='cp -pR'
|
---|
562 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
563 | as_ln_s=ln
|
---|
564 | else
|
---|
565 | as_ln_s='cp -pR'
|
---|
566 | fi
|
---|
567 | else
|
---|
568 | as_ln_s='cp -pR'
|
---|
569 | fi
|
---|
570 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
571 | rmdir conf$$.dir 2>/dev/null
|
---|
572 |
|
---|
573 | if mkdir -p . 2>/dev/null; then
|
---|
574 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
575 | else
|
---|
576 | test -d ./-p && rmdir ./-p
|
---|
577 | as_mkdir_p=false
|
---|
578 | fi
|
---|
579 |
|
---|
580 | as_test_x='test -x'
|
---|
581 | as_executable_p=as_fn_executable_p
|
---|
582 |
|
---|
583 | # Sed expression to map a string onto a valid CPP name.
|
---|
584 | as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
|
---|
585 | as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
|
---|
586 |
|
---|
587 | # Sed expression to map a string onto a valid variable name.
|
---|
588 | as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
|
---|
589 | as_tr_sh="eval sed '$as_sed_sh'" # deprecated
|
---|
590 |
|
---|
591 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
592 |
|
---|
593 |
|
---|
594 | test -n "$DJDIR" || exec 7<&0 </dev/null
|
---|
595 | exec 6>&1
|
---|
596 |
|
---|
597 | # Name of the host.
|
---|
598 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
|
---|
599 | # so uname gets run too.
|
---|
600 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
601 |
|
---|
602 | #
|
---|
603 | # Initializations.
|
---|
604 | #
|
---|
605 | ac_default_prefix=/usr/local
|
---|
606 | ac_clean_files=
|
---|
607 | ac_config_libobj_dir=.
|
---|
608 | LIBOBJS=
|
---|
609 | cross_compiling=no
|
---|
610 | subdirs=
|
---|
611 | MFLAGS=
|
---|
612 | MAKEFLAGS=
|
---|
613 |
|
---|
614 | # Identity of this package.
|
---|
615 | PACKAGE_NAME='libpng'
|
---|
616 | PACKAGE_TARNAME='libpng'
|
---|
617 | PACKAGE_VERSION='1.6.43'
|
---|
618 | PACKAGE_STRING='libpng 1.6.43'
|
---|
619 | PACKAGE_BUGREPORT='[email protected]'
|
---|
620 | PACKAGE_URL=''
|
---|
621 |
|
---|
622 | ac_unique_file="pngget.c"
|
---|
623 | # Factoring default headers for most tests.
|
---|
624 | ac_includes_default="\
|
---|
625 | #include <stddef.h>
|
---|
626 | #ifdef HAVE_STDIO_H
|
---|
627 | # include <stdio.h>
|
---|
628 | #endif
|
---|
629 | #ifdef HAVE_STDLIB_H
|
---|
630 | # include <stdlib.h>
|
---|
631 | #endif
|
---|
632 | #ifdef HAVE_STRING_H
|
---|
633 | # include <string.h>
|
---|
634 | #endif
|
---|
635 | #ifdef HAVE_INTTYPES_H
|
---|
636 | # include <inttypes.h>
|
---|
637 | #endif
|
---|
638 | #ifdef HAVE_STDINT_H
|
---|
639 | # include <stdint.h>
|
---|
640 | #endif
|
---|
641 | #ifdef HAVE_STRINGS_H
|
---|
642 | # include <strings.h>
|
---|
643 | #endif
|
---|
644 | #ifdef HAVE_SYS_TYPES_H
|
---|
645 | # include <sys/types.h>
|
---|
646 | #endif
|
---|
647 | #ifdef HAVE_SYS_STAT_H
|
---|
648 | # include <sys/stat.h>
|
---|
649 | #endif
|
---|
650 | #ifdef HAVE_UNISTD_H
|
---|
651 | # include <unistd.h>
|
---|
652 | #endif"
|
---|
653 |
|
---|
654 | ac_header_c_list=
|
---|
655 | ac_subst_vars='am__EXEEXT_FALSE
|
---|
656 | am__EXEEXT_TRUE
|
---|
657 | LTLIBOBJS
|
---|
658 | LIBOBJS
|
---|
659 | PNG_LOONGARCH_LSX_FALSE
|
---|
660 | PNG_LOONGARCH_LSX_TRUE
|
---|
661 | PNG_POWERPC_VSX_FALSE
|
---|
662 | PNG_POWERPC_VSX_TRUE
|
---|
663 | PNG_INTEL_SSE_FALSE
|
---|
664 | PNG_INTEL_SSE_TRUE
|
---|
665 | PNG_MIPS_MMI_FALSE
|
---|
666 | PNG_MIPS_MMI_TRUE
|
---|
667 | PNG_MIPS_MSA_FALSE
|
---|
668 | PNG_MIPS_MSA_TRUE
|
---|
669 | PNG_ARM_NEON_FALSE
|
---|
670 | PNG_ARM_NEON_TRUE
|
---|
671 | DO_INSTALL_LIBPNG_CONFIG_FALSE
|
---|
672 | DO_INSTALL_LIBPNG_CONFIG_TRUE
|
---|
673 | DO_INSTALL_LIBPNG_PC_FALSE
|
---|
674 | DO_INSTALL_LIBPNG_PC_TRUE
|
---|
675 | DO_INSTALL_LINKS_FALSE
|
---|
676 | DO_INSTALL_LINKS_TRUE
|
---|
677 | DO_PNG_PREFIX_FALSE
|
---|
678 | DO_PNG_PREFIX_TRUE
|
---|
679 | PNG_PREFIX
|
---|
680 | binconfigs
|
---|
681 | pkgconfigdir
|
---|
682 | PNGLIB_RELEASE
|
---|
683 | PNGLIB_MINOR
|
---|
684 | PNGLIB_MAJOR
|
---|
685 | PNGLIB_VERSION
|
---|
686 | SYMBOL_PREFIX
|
---|
687 | HAVE_LD_VERSION_SCRIPT_FALSE
|
---|
688 | HAVE_LD_VERSION_SCRIPT_TRUE
|
---|
689 | HAVE_SOLARIS_LD_FALSE
|
---|
690 | HAVE_SOLARIS_LD_TRUE
|
---|
691 | HAVE_CLOCK_GETTIME_FALSE
|
---|
692 | HAVE_CLOCK_GETTIME_TRUE
|
---|
693 | PNG_COPTS
|
---|
694 | ENABLE_TOOLS_FALSE
|
---|
695 | ENABLE_TOOLS_TRUE
|
---|
696 | ENABLE_TESTS_FALSE
|
---|
697 | ENABLE_TESTS_TRUE
|
---|
698 | DFNCPP
|
---|
699 | LT_SYS_LIBRARY_PATH
|
---|
700 | OTOOL64
|
---|
701 | OTOOL
|
---|
702 | LIPO
|
---|
703 | NMEDIT
|
---|
704 | DSYMUTIL
|
---|
705 | MANIFEST_TOOL
|
---|
706 | RANLIB
|
---|
707 | ac_ct_AR
|
---|
708 | AR
|
---|
709 | FILECMD
|
---|
710 | NM
|
---|
711 | ac_ct_DUMPBIN
|
---|
712 | DUMPBIN
|
---|
713 | LIBTOOL
|
---|
714 | OBJDUMP
|
---|
715 | DLLTOOL
|
---|
716 | AS
|
---|
717 | LN_S
|
---|
718 | CPP
|
---|
719 | LD
|
---|
720 | FGREP
|
---|
721 | EGREP
|
---|
722 | GREP
|
---|
723 | SED
|
---|
724 | host_os
|
---|
725 | host_vendor
|
---|
726 | host_cpu
|
---|
727 | host
|
---|
728 | build_os
|
---|
729 | build_vendor
|
---|
730 | build_cpu
|
---|
731 | build
|
---|
732 | am__fastdepCCAS_FALSE
|
---|
733 | am__fastdepCCAS_TRUE
|
---|
734 | CCASDEPMODE
|
---|
735 | CCASFLAGS
|
---|
736 | CCAS
|
---|
737 | am__fastdepCC_FALSE
|
---|
738 | am__fastdepCC_TRUE
|
---|
739 | CCDEPMODE
|
---|
740 | am__nodep
|
---|
741 | AMDEPBACKSLASH
|
---|
742 | AMDEP_FALSE
|
---|
743 | AMDEP_TRUE
|
---|
744 | am__include
|
---|
745 | DEPDIR
|
---|
746 | OBJEXT
|
---|
747 | EXEEXT
|
---|
748 | ac_ct_CC
|
---|
749 | CPPFLAGS
|
---|
750 | LDFLAGS
|
---|
751 | CFLAGS
|
---|
752 | CC
|
---|
753 | MAINT
|
---|
754 | MAINTAINER_MODE_FALSE
|
---|
755 | MAINTAINER_MODE_TRUE
|
---|
756 | AM_BACKSLASH
|
---|
757 | AM_DEFAULT_VERBOSITY
|
---|
758 | AM_DEFAULT_V
|
---|
759 | AM_V
|
---|
760 | CSCOPE
|
---|
761 | ETAGS
|
---|
762 | CTAGS
|
---|
763 | am__untar
|
---|
764 | am__tar
|
---|
765 | AMTAR
|
---|
766 | am__leading_dot
|
---|
767 | SET_MAKE
|
---|
768 | AWK
|
---|
769 | mkdir_p
|
---|
770 | MKDIR_P
|
---|
771 | INSTALL_STRIP_PROGRAM
|
---|
772 | STRIP
|
---|
773 | install_sh
|
---|
774 | MAKEINFO
|
---|
775 | AUTOHEADER
|
---|
776 | AUTOMAKE
|
---|
777 | AUTOCONF
|
---|
778 | ACLOCAL
|
---|
779 | VERSION
|
---|
780 | PACKAGE
|
---|
781 | CYGPATH_W
|
---|
782 | am__isrc
|
---|
783 | INSTALL_DATA
|
---|
784 | INSTALL_SCRIPT
|
---|
785 | INSTALL_PROGRAM
|
---|
786 | target_alias
|
---|
787 | host_alias
|
---|
788 | build_alias
|
---|
789 | LIBS
|
---|
790 | ECHO_T
|
---|
791 | ECHO_N
|
---|
792 | ECHO_C
|
---|
793 | DEFS
|
---|
794 | mandir
|
---|
795 | localedir
|
---|
796 | libdir
|
---|
797 | psdir
|
---|
798 | pdfdir
|
---|
799 | dvidir
|
---|
800 | htmldir
|
---|
801 | infodir
|
---|
802 | docdir
|
---|
803 | oldincludedir
|
---|
804 | includedir
|
---|
805 | runstatedir
|
---|
806 | localstatedir
|
---|
807 | sharedstatedir
|
---|
808 | sysconfdir
|
---|
809 | datadir
|
---|
810 | datarootdir
|
---|
811 | libexecdir
|
---|
812 | sbindir
|
---|
813 | bindir
|
---|
814 | program_transform_name
|
---|
815 | prefix
|
---|
816 | exec_prefix
|
---|
817 | PACKAGE_URL
|
---|
818 | PACKAGE_BUGREPORT
|
---|
819 | PACKAGE_STRING
|
---|
820 | PACKAGE_VERSION
|
---|
821 | PACKAGE_TARNAME
|
---|
822 | PACKAGE_NAME
|
---|
823 | PATH_SEPARATOR
|
---|
824 | SHELL
|
---|
825 | am__quote'
|
---|
826 | ac_subst_files=''
|
---|
827 | ac_user_opts='
|
---|
828 | enable_option_checking
|
---|
829 | enable_silent_rules
|
---|
830 | enable_maintainer_mode
|
---|
831 | enable_dependency_tracking
|
---|
832 | with_gnu_ld
|
---|
833 | enable_shared
|
---|
834 | enable_static
|
---|
835 | with_pic
|
---|
836 | enable_fast_install
|
---|
837 | with_aix_soname
|
---|
838 | with_sysroot
|
---|
839 | enable_libtool_lock
|
---|
840 | enable_tests
|
---|
841 | enable_tools
|
---|
842 | enable_werror
|
---|
843 | with_zlib_prefix
|
---|
844 | with_pkgconfigdir
|
---|
845 | with_binconfigs
|
---|
846 | with_libpng_prefix
|
---|
847 | enable_unversioned_links
|
---|
848 | enable_unversioned_libpng_pc
|
---|
849 | enable_unversioned_libpng_config
|
---|
850 | enable_hardware_optimizations
|
---|
851 | enable_arm_neon
|
---|
852 | enable_mips_msa
|
---|
853 | enable_mips_mmi
|
---|
854 | enable_intel_sse
|
---|
855 | enable_powerpc_vsx
|
---|
856 | enable_loongarch_lsx
|
---|
857 | '
|
---|
858 | ac_precious_vars='build_alias
|
---|
859 | host_alias
|
---|
860 | target_alias
|
---|
861 | CC
|
---|
862 | CFLAGS
|
---|
863 | LDFLAGS
|
---|
864 | LIBS
|
---|
865 | CPPFLAGS
|
---|
866 | CCAS
|
---|
867 | CCASFLAGS
|
---|
868 | CPP
|
---|
869 | LT_SYS_LIBRARY_PATH
|
---|
870 | AWK
|
---|
871 | PNG_COPTS'
|
---|
872 |
|
---|
873 |
|
---|
874 | # Initialize some variables set by options.
|
---|
875 | ac_init_help=
|
---|
876 | ac_init_version=false
|
---|
877 | ac_unrecognized_opts=
|
---|
878 | ac_unrecognized_sep=
|
---|
879 | # The variables have the same names as the options, with
|
---|
880 | # dashes changed to underlines.
|
---|
881 | cache_file=/dev/null
|
---|
882 | exec_prefix=NONE
|
---|
883 | no_create=
|
---|
884 | no_recursion=
|
---|
885 | prefix=NONE
|
---|
886 | program_prefix=NONE
|
---|
887 | program_suffix=NONE
|
---|
888 | program_transform_name=s,x,x,
|
---|
889 | silent=
|
---|
890 | site=
|
---|
891 | srcdir=
|
---|
892 | verbose=
|
---|
893 | x_includes=NONE
|
---|
894 | x_libraries=NONE
|
---|
895 |
|
---|
896 | # Installation directory options.
|
---|
897 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
898 | # and all the variables that are supposed to be based on exec_prefix
|
---|
899 | # by default will actually change.
|
---|
900 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
901 | # (The list follows the same order as the GNU Coding Standards.)
|
---|
902 | bindir='${exec_prefix}/bin'
|
---|
903 | sbindir='${exec_prefix}/sbin'
|
---|
904 | libexecdir='${exec_prefix}/libexec'
|
---|
905 | datarootdir='${prefix}/share'
|
---|
906 | datadir='${datarootdir}'
|
---|
907 | sysconfdir='${prefix}/etc'
|
---|
908 | sharedstatedir='${prefix}/com'
|
---|
909 | localstatedir='${prefix}/var'
|
---|
910 | runstatedir='${localstatedir}/run'
|
---|
911 | includedir='${prefix}/include'
|
---|
912 | oldincludedir='/usr/include'
|
---|
913 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
|
---|
914 | infodir='${datarootdir}/info'
|
---|
915 | htmldir='${docdir}'
|
---|
916 | dvidir='${docdir}'
|
---|
917 | pdfdir='${docdir}'
|
---|
918 | psdir='${docdir}'
|
---|
919 | libdir='${exec_prefix}/lib'
|
---|
920 | localedir='${datarootdir}/locale'
|
---|
921 | mandir='${datarootdir}/man'
|
---|
922 |
|
---|
923 | ac_prev=
|
---|
924 | ac_dashdash=
|
---|
925 | for ac_option
|
---|
926 | do
|
---|
927 | # If the previous option needs an argument, assign it.
|
---|
928 | if test -n "$ac_prev"; then
|
---|
929 | eval $ac_prev=\$ac_option
|
---|
930 | ac_prev=
|
---|
931 | continue
|
---|
932 | fi
|
---|
933 |
|
---|
934 | case $ac_option in
|
---|
935 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
---|
936 | *=) ac_optarg= ;;
|
---|
937 | *) ac_optarg=yes ;;
|
---|
938 | esac
|
---|
939 |
|
---|
940 | case $ac_dashdash$ac_option in
|
---|
941 | --)
|
---|
942 | ac_dashdash=yes ;;
|
---|
943 |
|
---|
944 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
945 | ac_prev=bindir ;;
|
---|
946 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
947 | bindir=$ac_optarg ;;
|
---|
948 |
|
---|
949 | -build | --build | --buil | --bui | --bu)
|
---|
950 | ac_prev=build_alias ;;
|
---|
951 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
952 | build_alias=$ac_optarg ;;
|
---|
953 |
|
---|
954 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
955 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
956 | ac_prev=cache_file ;;
|
---|
957 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
958 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
959 | cache_file=$ac_optarg ;;
|
---|
960 |
|
---|
961 | --config-cache | -C)
|
---|
962 | cache_file=config.cache ;;
|
---|
963 |
|
---|
964 | -datadir | --datadir | --datadi | --datad)
|
---|
965 | ac_prev=datadir ;;
|
---|
966 | -datadir=* | --datadir=* | --datadi=* | --datad=*)
|
---|
967 | datadir=$ac_optarg ;;
|
---|
968 |
|
---|
969 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
---|
970 | | --dataroo | --dataro | --datar)
|
---|
971 | ac_prev=datarootdir ;;
|
---|
972 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
---|
973 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
---|
974 | datarootdir=$ac_optarg ;;
|
---|
975 |
|
---|
976 | -disable-* | --disable-*)
|
---|
977 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
978 | # Reject names that are not valid shell variable names.
|
---|
979 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
980 | as_fn_error $? "invalid feature name: '$ac_useropt'"
|
---|
981 | ac_useropt_orig=$ac_useropt
|
---|
982 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
983 | case $ac_user_opts in
|
---|
984 | *"
|
---|
985 | "enable_$ac_useropt"
|
---|
986 | "*) ;;
|
---|
987 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
|
---|
988 | ac_unrecognized_sep=', ';;
|
---|
989 | esac
|
---|
990 | eval enable_$ac_useropt=no ;;
|
---|
991 |
|
---|
992 | -docdir | --docdir | --docdi | --doc | --do)
|
---|
993 | ac_prev=docdir ;;
|
---|
994 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
---|
995 | docdir=$ac_optarg ;;
|
---|
996 |
|
---|
997 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
---|
998 | ac_prev=dvidir ;;
|
---|
999 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
---|
1000 | dvidir=$ac_optarg ;;
|
---|
1001 |
|
---|
1002 | -enable-* | --enable-*)
|
---|
1003 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
1004 | # Reject names that are not valid shell variable names.
|
---|
1005 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
1006 | as_fn_error $? "invalid feature name: '$ac_useropt'"
|
---|
1007 | ac_useropt_orig=$ac_useropt
|
---|
1008 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
1009 | case $ac_user_opts in
|
---|
1010 | *"
|
---|
1011 | "enable_$ac_useropt"
|
---|
1012 | "*) ;;
|
---|
1013 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
|
---|
1014 | ac_unrecognized_sep=', ';;
|
---|
1015 | esac
|
---|
1016 | eval enable_$ac_useropt=\$ac_optarg ;;
|
---|
1017 |
|
---|
1018 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
1019 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
1020 | | --exec | --exe | --ex)
|
---|
1021 | ac_prev=exec_prefix ;;
|
---|
1022 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
1023 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
1024 | | --exec=* | --exe=* | --ex=*)
|
---|
1025 | exec_prefix=$ac_optarg ;;
|
---|
1026 |
|
---|
1027 | -gas | --gas | --ga | --g)
|
---|
1028 | # Obsolete; use --with-gas.
|
---|
1029 | with_gas=yes ;;
|
---|
1030 |
|
---|
1031 | -help | --help | --hel | --he | -h)
|
---|
1032 | ac_init_help=long ;;
|
---|
1033 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
1034 | ac_init_help=recursive ;;
|
---|
1035 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
1036 | ac_init_help=short ;;
|
---|
1037 |
|
---|
1038 | -host | --host | --hos | --ho)
|
---|
1039 | ac_prev=host_alias ;;
|
---|
1040 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
1041 | host_alias=$ac_optarg ;;
|
---|
1042 |
|
---|
1043 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
---|
1044 | ac_prev=htmldir ;;
|
---|
1045 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
---|
1046 | | --ht=*)
|
---|
1047 | htmldir=$ac_optarg ;;
|
---|
1048 |
|
---|
1049 | -includedir | --includedir | --includedi | --included | --include \
|
---|
1050 | | --includ | --inclu | --incl | --inc)
|
---|
1051 | ac_prev=includedir ;;
|
---|
1052 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
1053 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
1054 | includedir=$ac_optarg ;;
|
---|
1055 |
|
---|
1056 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
1057 | ac_prev=infodir ;;
|
---|
1058 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
1059 | infodir=$ac_optarg ;;
|
---|
1060 |
|
---|
1061 | -libdir | --libdir | --libdi | --libd)
|
---|
1062 | ac_prev=libdir ;;
|
---|
1063 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
1064 | libdir=$ac_optarg ;;
|
---|
1065 |
|
---|
1066 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
1067 | | --libexe | --libex | --libe)
|
---|
1068 | ac_prev=libexecdir ;;
|
---|
1069 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
1070 | | --libexe=* | --libex=* | --libe=*)
|
---|
1071 | libexecdir=$ac_optarg ;;
|
---|
1072 |
|
---|
1073 | -localedir | --localedir | --localedi | --localed | --locale)
|
---|
1074 | ac_prev=localedir ;;
|
---|
1075 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
---|
1076 | localedir=$ac_optarg ;;
|
---|
1077 |
|
---|
1078 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
1079 | | --localstate | --localstat | --localsta | --localst | --locals)
|
---|
1080 | ac_prev=localstatedir ;;
|
---|
1081 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
1082 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
---|
1083 | localstatedir=$ac_optarg ;;
|
---|
1084 |
|
---|
1085 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
1086 | ac_prev=mandir ;;
|
---|
1087 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
1088 | mandir=$ac_optarg ;;
|
---|
1089 |
|
---|
1090 | -nfp | --nfp | --nf)
|
---|
1091 | # Obsolete; use --without-fp.
|
---|
1092 | with_fp=no ;;
|
---|
1093 |
|
---|
1094 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
1095 | | --no-cr | --no-c | -n)
|
---|
1096 | no_create=yes ;;
|
---|
1097 |
|
---|
1098 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
1099 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
1100 | no_recursion=yes ;;
|
---|
1101 |
|
---|
1102 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
1103 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
1104 | | --oldin | --oldi | --old | --ol | --o)
|
---|
1105 | ac_prev=oldincludedir ;;
|
---|
1106 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
1107 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
1108 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
1109 | oldincludedir=$ac_optarg ;;
|
---|
1110 |
|
---|
1111 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
1112 | ac_prev=prefix ;;
|
---|
1113 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
1114 | prefix=$ac_optarg ;;
|
---|
1115 |
|
---|
1116 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
1117 | | --program-pre | --program-pr | --program-p)
|
---|
1118 | ac_prev=program_prefix ;;
|
---|
1119 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
1120 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
1121 | program_prefix=$ac_optarg ;;
|
---|
1122 |
|
---|
1123 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
1124 | | --program-suf | --program-su | --program-s)
|
---|
1125 | ac_prev=program_suffix ;;
|
---|
1126 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
1127 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
1128 | program_suffix=$ac_optarg ;;
|
---|
1129 |
|
---|
1130 | -program-transform-name | --program-transform-name \
|
---|
1131 | | --program-transform-nam | --program-transform-na \
|
---|
1132 | | --program-transform-n | --program-transform- \
|
---|
1133 | | --program-transform | --program-transfor \
|
---|
1134 | | --program-transfo | --program-transf \
|
---|
1135 | | --program-trans | --program-tran \
|
---|
1136 | | --progr-tra | --program-tr | --program-t)
|
---|
1137 | ac_prev=program_transform_name ;;
|
---|
1138 | -program-transform-name=* | --program-transform-name=* \
|
---|
1139 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
1140 | | --program-transform-n=* | --program-transform-=* \
|
---|
1141 | | --program-transform=* | --program-transfor=* \
|
---|
1142 | | --program-transfo=* | --program-transf=* \
|
---|
1143 | | --program-trans=* | --program-tran=* \
|
---|
1144 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
1145 | program_transform_name=$ac_optarg ;;
|
---|
1146 |
|
---|
1147 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
---|
1148 | ac_prev=pdfdir ;;
|
---|
1149 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
---|
1150 | pdfdir=$ac_optarg ;;
|
---|
1151 |
|
---|
1152 | -psdir | --psdir | --psdi | --psd | --ps)
|
---|
1153 | ac_prev=psdir ;;
|
---|
1154 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
---|
1155 | psdir=$ac_optarg ;;
|
---|
1156 |
|
---|
1157 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
1158 | | -silent | --silent | --silen | --sile | --sil)
|
---|
1159 | silent=yes ;;
|
---|
1160 |
|
---|
1161 | -runstatedir | --runstatedir | --runstatedi | --runstated \
|
---|
1162 | | --runstate | --runstat | --runsta | --runst | --runs \
|
---|
1163 | | --run | --ru | --r)
|
---|
1164 | ac_prev=runstatedir ;;
|
---|
1165 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
|
---|
1166 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
|
---|
1167 | | --run=* | --ru=* | --r=*)
|
---|
1168 | runstatedir=$ac_optarg ;;
|
---|
1169 |
|
---|
1170 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
1171 | ac_prev=sbindir ;;
|
---|
1172 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
1173 | | --sbi=* | --sb=*)
|
---|
1174 | sbindir=$ac_optarg ;;
|
---|
1175 |
|
---|
1176 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
1177 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
1178 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
1179 | | --sha | --sh)
|
---|
1180 | ac_prev=sharedstatedir ;;
|
---|
1181 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
1182 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
1183 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
1184 | | --sha=* | --sh=*)
|
---|
1185 | sharedstatedir=$ac_optarg ;;
|
---|
1186 |
|
---|
1187 | -site | --site | --sit)
|
---|
1188 | ac_prev=site ;;
|
---|
1189 | -site=* | --site=* | --sit=*)
|
---|
1190 | site=$ac_optarg ;;
|
---|
1191 |
|
---|
1192 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
1193 | ac_prev=srcdir ;;
|
---|
1194 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
1195 | srcdir=$ac_optarg ;;
|
---|
1196 |
|
---|
1197 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
1198 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
1199 | ac_prev=sysconfdir ;;
|
---|
1200 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
1201 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
1202 | sysconfdir=$ac_optarg ;;
|
---|
1203 |
|
---|
1204 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
1205 | ac_prev=target_alias ;;
|
---|
1206 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
1207 | target_alias=$ac_optarg ;;
|
---|
1208 |
|
---|
1209 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
1210 | verbose=yes ;;
|
---|
1211 |
|
---|
1212 | -version | --version | --versio | --versi | --vers | -V)
|
---|
1213 | ac_init_version=: ;;
|
---|
1214 |
|
---|
1215 | -with-* | --with-*)
|
---|
1216 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
1217 | # Reject names that are not valid shell variable names.
|
---|
1218 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
1219 | as_fn_error $? "invalid package name: '$ac_useropt'"
|
---|
1220 | ac_useropt_orig=$ac_useropt
|
---|
1221 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
1222 | case $ac_user_opts in
|
---|
1223 | *"
|
---|
1224 | "with_$ac_useropt"
|
---|
1225 | "*) ;;
|
---|
1226 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
|
---|
1227 | ac_unrecognized_sep=', ';;
|
---|
1228 | esac
|
---|
1229 | eval with_$ac_useropt=\$ac_optarg ;;
|
---|
1230 |
|
---|
1231 | -without-* | --without-*)
|
---|
1232 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
1233 | # Reject names that are not valid shell variable names.
|
---|
1234 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
1235 | as_fn_error $? "invalid package name: '$ac_useropt'"
|
---|
1236 | ac_useropt_orig=$ac_useropt
|
---|
1237 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
1238 | case $ac_user_opts in
|
---|
1239 | *"
|
---|
1240 | "with_$ac_useropt"
|
---|
1241 | "*) ;;
|
---|
1242 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
|
---|
1243 | ac_unrecognized_sep=', ';;
|
---|
1244 | esac
|
---|
1245 | eval with_$ac_useropt=no ;;
|
---|
1246 |
|
---|
1247 | --x)
|
---|
1248 | # Obsolete; use --with-x.
|
---|
1249 | with_x=yes ;;
|
---|
1250 |
|
---|
1251 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
1252 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
1253 | ac_prev=x_includes ;;
|
---|
1254 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
1255 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
1256 | x_includes=$ac_optarg ;;
|
---|
1257 |
|
---|
1258 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
1259 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
1260 | ac_prev=x_libraries ;;
|
---|
1261 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
1262 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
1263 | x_libraries=$ac_optarg ;;
|
---|
1264 |
|
---|
1265 | -*) as_fn_error $? "unrecognized option: '$ac_option'
|
---|
1266 | Try '$0 --help' for more information"
|
---|
1267 | ;;
|
---|
1268 |
|
---|
1269 | *=*)
|
---|
1270 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
1271 | # Reject names that are not valid shell variable names.
|
---|
1272 | case $ac_envvar in #(
|
---|
1273 | '' | [0-9]* | *[!_$as_cr_alnum]* )
|
---|
1274 | as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
|
---|
1275 | esac
|
---|
1276 | eval $ac_envvar=\$ac_optarg
|
---|
1277 | export $ac_envvar ;;
|
---|
1278 |
|
---|
1279 | *)
|
---|
1280 | # FIXME: should be removed in autoconf 3.0.
|
---|
1281 | printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
1282 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
1283 | printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
1284 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
|
---|
1285 | ;;
|
---|
1286 |
|
---|
1287 | esac
|
---|
1288 | done
|
---|
1289 |
|
---|
1290 | if test -n "$ac_prev"; then
|
---|
1291 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
1292 | as_fn_error $? "missing argument to $ac_option"
|
---|
1293 | fi
|
---|
1294 |
|
---|
1295 | if test -n "$ac_unrecognized_opts"; then
|
---|
1296 | case $enable_option_checking in
|
---|
1297 | no) ;;
|
---|
1298 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
|
---|
1299 | *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
|
---|
1300 | esac
|
---|
1301 | fi
|
---|
1302 |
|
---|
1303 | # Check all directory arguments for consistency.
|
---|
1304 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
---|
1305 | datadir sysconfdir sharedstatedir localstatedir includedir \
|
---|
1306 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
---|
1307 | libdir localedir mandir runstatedir
|
---|
1308 | do
|
---|
1309 | eval ac_val=\$$ac_var
|
---|
1310 | # Remove trailing slashes.
|
---|
1311 | case $ac_val in
|
---|
1312 | */ )
|
---|
1313 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
|
---|
1314 | eval $ac_var=\$ac_val;;
|
---|
1315 | esac
|
---|
1316 | # Be sure to have absolute directory names.
|
---|
1317 | case $ac_val in
|
---|
1318 | [\\/$]* | ?:[\\/]* ) continue;;
|
---|
1319 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
---|
1320 | esac
|
---|
1321 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
|
---|
1322 | done
|
---|
1323 |
|
---|
1324 | # There might be people who depend on the old broken behavior: '$host'
|
---|
1325 | # used to hold the argument of --host etc.
|
---|
1326 | # FIXME: To remove some day.
|
---|
1327 | build=$build_alias
|
---|
1328 | host=$host_alias
|
---|
1329 | target=$target_alias
|
---|
1330 |
|
---|
1331 | # FIXME: To remove some day.
|
---|
1332 | if test "x$host_alias" != x; then
|
---|
1333 | if test "x$build_alias" = x; then
|
---|
1334 | cross_compiling=maybe
|
---|
1335 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
1336 | cross_compiling=yes
|
---|
1337 | fi
|
---|
1338 | fi
|
---|
1339 |
|
---|
1340 | ac_tool_prefix=
|
---|
1341 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
1342 |
|
---|
1343 | test "$silent" = yes && exec 6>/dev/null
|
---|
1344 |
|
---|
1345 |
|
---|
1346 | ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
---|
1347 | ac_ls_di=`ls -di .` &&
|
---|
1348 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
---|
1349 | as_fn_error $? "working directory cannot be determined"
|
---|
1350 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
---|
1351 | as_fn_error $? "pwd does not report name of working directory"
|
---|
1352 |
|
---|
1353 |
|
---|
1354 | # Find the source files, if location was not specified.
|
---|
1355 | if test -z "$srcdir"; then
|
---|
1356 | ac_srcdir_defaulted=yes
|
---|
1357 | # Try the directory containing this script, then the parent directory.
|
---|
1358 | ac_confdir=`$as_dirname -- "$as_myself" ||
|
---|
1359 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
1360 | X"$as_myself" : 'X\(//\)[^/]' \| \
|
---|
1361 | X"$as_myself" : 'X\(//\)$' \| \
|
---|
1362 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
1363 | printf "%s\n" X"$as_myself" |
|
---|
1364 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
1365 | s//\1/
|
---|
1366 | q
|
---|
1367 | }
|
---|
1368 | /^X\(\/\/\)[^/].*/{
|
---|
1369 | s//\1/
|
---|
1370 | q
|
---|
1371 | }
|
---|
1372 | /^X\(\/\/\)$/{
|
---|
1373 | s//\1/
|
---|
1374 | q
|
---|
1375 | }
|
---|
1376 | /^X\(\/\).*/{
|
---|
1377 | s//\1/
|
---|
1378 | q
|
---|
1379 | }
|
---|
1380 | s/.*/./; q'`
|
---|
1381 | srcdir=$ac_confdir
|
---|
1382 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1383 | srcdir=..
|
---|
1384 | fi
|
---|
1385 | else
|
---|
1386 | ac_srcdir_defaulted=no
|
---|
1387 | fi
|
---|
1388 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1389 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
---|
1390 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
|
---|
1391 | fi
|
---|
1392 | ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
|
---|
1393 | ac_abs_confdir=`(
|
---|
1394 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
|
---|
1395 | pwd)`
|
---|
1396 | # When building in place, set srcdir=.
|
---|
1397 | if test "$ac_abs_confdir" = "$ac_pwd"; then
|
---|
1398 | srcdir=.
|
---|
1399 | fi
|
---|
1400 | # Remove unnecessary trailing slashes from srcdir.
|
---|
1401 | # Double slashes in file names in object file debugging info
|
---|
1402 | # mess up M-x gdb in Emacs.
|
---|
1403 | case $srcdir in
|
---|
1404 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
---|
1405 | esac
|
---|
1406 | for ac_var in $ac_precious_vars; do
|
---|
1407 | eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1408 | eval ac_env_${ac_var}_value=\$${ac_var}
|
---|
1409 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1410 | eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
---|
1411 | done
|
---|
1412 |
|
---|
1413 | #
|
---|
1414 | # Report the --help message.
|
---|
1415 | #
|
---|
1416 | if test "$ac_init_help" = "long"; then
|
---|
1417 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
1418 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
1419 | cat <<_ACEOF
|
---|
1420 | 'configure' configures libpng 1.6.43 to adapt to many kinds of systems.
|
---|
1421 |
|
---|
1422 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
1423 |
|
---|
1424 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
1425 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
1426 |
|
---|
1427 | Defaults for the options are specified in brackets.
|
---|
1428 |
|
---|
1429 | Configuration:
|
---|
1430 | -h, --help display this help and exit
|
---|
1431 | --help=short display options specific to this package
|
---|
1432 | --help=recursive display the short help of all the included packages
|
---|
1433 | -V, --version display version information and exit
|
---|
1434 | -q, --quiet, --silent do not print 'checking ...' messages
|
---|
1435 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
1436 | -C, --config-cache alias for '--cache-file=config.cache'
|
---|
1437 | -n, --no-create do not create output files
|
---|
1438 | --srcdir=DIR find the sources in DIR [configure dir or '..']
|
---|
1439 |
|
---|
1440 | Installation directories:
|
---|
1441 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
1442 | [$ac_default_prefix]
|
---|
1443 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
1444 | [PREFIX]
|
---|
1445 |
|
---|
1446 | By default, 'make install' will install all the files in
|
---|
1447 | '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
|
---|
1448 | an installation prefix other than '$ac_default_prefix' using '--prefix',
|
---|
1449 | for instance '--prefix=\$HOME'.
|
---|
1450 |
|
---|
1451 | For better control, use the options below.
|
---|
1452 |
|
---|
1453 | Fine tuning of the installation directories:
|
---|
1454 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
1455 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
1456 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
1457 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
1458 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
1459 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
1460 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
|
---|
1461 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
1462 | --includedir=DIR C header files [PREFIX/include]
|
---|
1463 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
1464 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
---|
1465 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
---|
1466 | --infodir=DIR info documentation [DATAROOTDIR/info]
|
---|
1467 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
---|
1468 | --mandir=DIR man documentation [DATAROOTDIR/man]
|
---|
1469 | --docdir=DIR documentation root [DATAROOTDIR/doc/libpng]
|
---|
1470 | --htmldir=DIR html documentation [DOCDIR]
|
---|
1471 | --dvidir=DIR dvi documentation [DOCDIR]
|
---|
1472 | --pdfdir=DIR pdf documentation [DOCDIR]
|
---|
1473 | --psdir=DIR ps documentation [DOCDIR]
|
---|
1474 | _ACEOF
|
---|
1475 |
|
---|
1476 | cat <<\_ACEOF
|
---|
1477 |
|
---|
1478 | Program names:
|
---|
1479 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
---|
1480 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
---|
1481 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names
|
---|
1482 |
|
---|
1483 | System types:
|
---|
1484 | --build=BUILD configure for building on BUILD [guessed]
|
---|
1485 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
1486 | _ACEOF
|
---|
1487 | fi
|
---|
1488 |
|
---|
1489 | if test -n "$ac_init_help"; then
|
---|
1490 | case $ac_init_help in
|
---|
1491 | short | recursive ) echo "Configuration of libpng 1.6.43:";;
|
---|
1492 | esac
|
---|
1493 | cat <<\_ACEOF
|
---|
1494 |
|
---|
1495 | Optional Features:
|
---|
1496 | --disable-option-checking ignore unrecognized --enable/--with options
|
---|
1497 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
1498 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
1499 | --enable-silent-rules less verbose build output (undo: "make V=1")
|
---|
1500 | --disable-silent-rules verbose build output (undo: "make V=0")
|
---|
1501 | --enable-maintainer-mode
|
---|
1502 | enable make rules and dependencies not useful (and
|
---|
1503 | sometimes confusing) to the casual installer
|
---|
1504 | --enable-dependency-tracking
|
---|
1505 | do not reject slow dependency extractors
|
---|
1506 | --disable-dependency-tracking
|
---|
1507 | speeds up one-time build
|
---|
1508 | --enable-shared[=PKGS] build shared libraries [default=yes]
|
---|
1509 | --enable-static[=PKGS] build static libraries [default=yes]
|
---|
1510 | --enable-fast-install[=PKGS]
|
---|
1511 | optimize for fast installation [default=yes]
|
---|
1512 | --disable-libtool-lock avoid locking (might break parallel builds)
|
---|
1513 | --disable-tests do not build the test programs (default is to build)
|
---|
1514 | --disable-tools do not build the auxiliary tools (default is to
|
---|
1515 | build)
|
---|
1516 | --enable-werror[=OPT] Pass -Werror or the given argument to the compiler
|
---|
1517 | if it is supported
|
---|
1518 | --enable-unversioned-links
|
---|
1519 | Installed libpng header files are placed in a
|
---|
1520 | versioned subdirectory and installed libpng library
|
---|
1521 | (including DLL) files are versioned. If this option
|
---|
1522 | is enabled unversioned links will be created
|
---|
1523 | pointing to the corresponding installed files. If
|
---|
1524 | you use libpng.pc or libpng-config for all builds
|
---|
1525 | you do not need these links, but if you compile
|
---|
1526 | programs directly they will typically #include
|
---|
1527 | <png.h> and link with -lpng; in that case you need
|
---|
1528 | the links. The links can be installed manually using
|
---|
1529 | 'make install-header-links' and 'make
|
---|
1530 | install-library-links' and can be removed using the
|
---|
1531 | corresponding uninstall- targets. If you do enable
|
---|
1532 | this option every libpng 'make install' will
|
---|
1533 | recreate the links to point to the just installed
|
---|
1534 | version of libpng. The default is to create the
|
---|
1535 | links; use --disable-unversioned-links to change
|
---|
1536 | this
|
---|
1537 | --enable-unversioned-libpng-pc
|
---|
1538 | Install the configuration file 'libpng.pc' as a link
|
---|
1539 | to the versioned version. This is done by default -
|
---|
1540 | use --disable-unversioned-libpng-pc to change this.
|
---|
1541 | --enable-unversioned-libpng-config
|
---|
1542 | Install the configuration file 'libpng-config' as a
|
---|
1543 | link to the versioned version. This is done by
|
---|
1544 | default - use --disable-unversioned-libpng-config to
|
---|
1545 | change this.
|
---|
1546 | --enable-hardware-optimizations
|
---|
1547 | Enable hardware optimizations: =no/off, yes/on.
|
---|
1548 | --enable-arm-neon Enable ARM NEON optimizations: =no/off, check, api,
|
---|
1549 | yes/on. no/off: disable the optimizations; check:
|
---|
1550 | use internal checking code (deprecated and poorly
|
---|
1551 | supported); api: disable by default, enable by a
|
---|
1552 | call to png_set_option; yes/on: turn on
|
---|
1553 | unconditionally. If not specified: determined by the
|
---|
1554 | compiler.
|
---|
1555 | --enable-mips-msa Enable MIPS MSA optimizations: =no/off, check, api,
|
---|
1556 | yes/on. no/off: disable the optimizations; check:
|
---|
1557 | use internal checking code (deprecated and poorly
|
---|
1558 | supported); api: disable by default, enable by a
|
---|
1559 | call to png_set_option; yes/on: turn on
|
---|
1560 | unconditionally. If not specified: determined by the
|
---|
1561 | compiler.
|
---|
1562 | --enable-mips-mmi Enable MIPS MMI optimizations: =no/off, check, api,
|
---|
1563 | yes/on. no/off: disable the optimizations; check:
|
---|
1564 | use internal checking code (deprecated and poorly
|
---|
1565 | supported); api: disable by default, enable by a
|
---|
1566 | call to png_set_option; yes/on: turn on
|
---|
1567 | unconditionally. If not specified: determined by the
|
---|
1568 | compiler.
|
---|
1569 | --enable-intel-sse Enable Intel SSE optimizations: =no/off, yes/on.
|
---|
1570 | no/off: disable the optimizations; yes/on: enable
|
---|
1571 | the optimizations. If not specified: determined by
|
---|
1572 | the compiler.
|
---|
1573 | --enable-powerpc-vsx Enable POWERPC VSX optimizations: =no/off, check,
|
---|
1574 | api, yes/on. no/off: disable the optimizations;
|
---|
1575 | check: use internal checking code; api: disable by
|
---|
1576 | default, enable by a call to png_set_option; yes/on:
|
---|
1577 | turn on unconditionally. If not specified:
|
---|
1578 | determined by the compiler.
|
---|
1579 | --enable-loongarch-lsx
|
---|
1580 | Enable LOONGARCH LSX optimizations: =no/off, yes/on:
|
---|
1581 | no/off: disable the optimizations; yes/on: turn on
|
---|
1582 | unconditionally. If not specified: determined by the
|
---|
1583 | compiler.
|
---|
1584 |
|
---|
1585 | Optional Packages:
|
---|
1586 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
1587 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
1588 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]
|
---|
1589 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
|
---|
1590 | both]
|
---|
1591 | --with-aix-soname=aix|svr4|both
|
---|
1592 | shared library versioning (aka "SONAME") variant to
|
---|
1593 | provide on AIX, [default=aix].
|
---|
1594 | --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
|
---|
1595 | compiler's sysroot if not specified).
|
---|
1596 | --with-zlib-prefix prefix that may have been used in installed zlib
|
---|
1597 | --with-pkgconfigdir Use the specified pkgconfig dir (default is
|
---|
1598 | libdir/pkgconfig)
|
---|
1599 | --with-binconfigs Generate shell libpng-config scripts as well as
|
---|
1600 | pkg-config data [default=yes]
|
---|
1601 | --with-libpng-prefix prefix libpng exported function (API) names with the
|
---|
1602 | given value
|
---|
1603 |
|
---|
1604 | Some influential environment variables:
|
---|
1605 | CC C compiler command
|
---|
1606 | CFLAGS C compiler flags
|
---|
1607 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
1608 | nonstandard directory <lib dir>
|
---|
1609 | LIBS libraries to pass to the linker, e.g. -l<library>
|
---|
1610 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
|
---|
1611 | you have headers in a nonstandard directory <include dir>
|
---|
1612 | CCAS assembler compiler command (defaults to CC)
|
---|
1613 | CCASFLAGS assembler compiler flags (defaults to CFLAGS)
|
---|
1614 | CPP C preprocessor
|
---|
1615 | LT_SYS_LIBRARY_PATH
|
---|
1616 | User-defined run-time library search path.
|
---|
1617 | AWK AWK language processor
|
---|
1618 | PNG_COPTS additional flags for the C compiler, to be used for options that
|
---|
1619 | would cause configure itself to fail
|
---|
1620 |
|
---|
1621 | Use these variables to override the choices made by 'configure' or to help
|
---|
1622 | it to find libraries and programs with nonstandard names/locations.
|
---|
1623 |
|
---|
1624 | Report bugs to <[email protected]>.
|
---|
1625 | _ACEOF
|
---|
1626 | ac_status=$?
|
---|
1627 | fi
|
---|
1628 |
|
---|
1629 | if test "$ac_init_help" = "recursive"; then
|
---|
1630 | # If there are subdirs, report their specific --help.
|
---|
1631 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
1632 | test -d "$ac_dir" ||
|
---|
1633 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
|
---|
1634 | continue
|
---|
1635 | ac_builddir=.
|
---|
1636 |
|
---|
1637 | case "$ac_dir" in
|
---|
1638 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1639 | *)
|
---|
1640 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
1641 | # A ".." for each directory in $ac_dir_suffix.
|
---|
1642 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
1643 | case $ac_top_builddir_sub in
|
---|
1644 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1645 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
1646 | esac ;;
|
---|
1647 | esac
|
---|
1648 | ac_abs_top_builddir=$ac_pwd
|
---|
1649 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
1650 | # for backward compatibility:
|
---|
1651 | ac_top_builddir=$ac_top_build_prefix
|
---|
1652 |
|
---|
1653 | case $srcdir in
|
---|
1654 | .) # We are building in place.
|
---|
1655 | ac_srcdir=.
|
---|
1656 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
1657 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
1658 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
1659 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
1660 | ac_top_srcdir=$srcdir
|
---|
1661 | ac_abs_top_srcdir=$srcdir ;;
|
---|
1662 | *) # Relative name.
|
---|
1663 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
1664 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
1665 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
1666 | esac
|
---|
1667 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
1668 |
|
---|
1669 | cd "$ac_dir" || { ac_status=$?; continue; }
|
---|
1670 | # Check for configure.gnu first; this name is used for a wrapper for
|
---|
1671 | # Metaconfig's "Configure" on case-insensitive file systems.
|
---|
1672 | if test -f "$ac_srcdir/configure.gnu"; then
|
---|
1673 | echo &&
|
---|
1674 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
---|
1675 | elif test -f "$ac_srcdir/configure"; then
|
---|
1676 | echo &&
|
---|
1677 | $SHELL "$ac_srcdir/configure" --help=recursive
|
---|
1678 | else
|
---|
1679 | printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
1680 | fi || ac_status=$?
|
---|
1681 | cd "$ac_pwd" || { ac_status=$?; break; }
|
---|
1682 | done
|
---|
1683 | fi
|
---|
1684 |
|
---|
1685 | test -n "$ac_init_help" && exit $ac_status
|
---|
1686 | if $ac_init_version; then
|
---|
1687 | cat <<\_ACEOF
|
---|
1688 | libpng configure 1.6.43
|
---|
1689 | generated by GNU Autoconf 2.72
|
---|
1690 |
|
---|
1691 | Copyright (C) 2023 Free Software Foundation, Inc.
|
---|
1692 | This configure script is free software; the Free Software Foundation
|
---|
1693 | gives unlimited permission to copy, distribute and modify it.
|
---|
1694 | _ACEOF
|
---|
1695 | exit
|
---|
1696 | fi
|
---|
1697 |
|
---|
1698 | ## ------------------------ ##
|
---|
1699 | ## Autoconf initialization. ##
|
---|
1700 | ## ------------------------ ##
|
---|
1701 |
|
---|
1702 | # ac_fn_c_try_compile LINENO
|
---|
1703 | # --------------------------
|
---|
1704 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
1705 | ac_fn_c_try_compile ()
|
---|
1706 | {
|
---|
1707 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1708 | rm -f conftest.$ac_objext conftest.beam
|
---|
1709 | if { { ac_try="$ac_compile"
|
---|
1710 | case "(($ac_try" in
|
---|
1711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1712 | *) ac_try_echo=$ac_try;;
|
---|
1713 | esac
|
---|
1714 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1715 | printf "%s\n" "$ac_try_echo"; } >&5
|
---|
1716 | (eval "$ac_compile") 2>conftest.err
|
---|
1717 | ac_status=$?
|
---|
1718 | if test -s conftest.err; then
|
---|
1719 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1720 | cat conftest.er1 >&5
|
---|
1721 | mv -f conftest.er1 conftest.err
|
---|
1722 | fi
|
---|
1723 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1724 | test $ac_status = 0; } && {
|
---|
1725 | test -z "$ac_c_werror_flag" ||
|
---|
1726 | test ! -s conftest.err
|
---|
1727 | } && test -s conftest.$ac_objext
|
---|
1728 | then :
|
---|
1729 | ac_retval=0
|
---|
1730 | else case e in #(
|
---|
1731 | e) printf "%s\n" "$as_me: failed program was:" >&5
|
---|
1732 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1733 |
|
---|
1734 | ac_retval=1 ;;
|
---|
1735 | esac
|
---|
1736 | fi
|
---|
1737 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1738 | as_fn_set_status $ac_retval
|
---|
1739 |
|
---|
1740 | } # ac_fn_c_try_compile
|
---|
1741 |
|
---|
1742 | # ac_fn_c_try_cpp LINENO
|
---|
1743 | # ----------------------
|
---|
1744 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
|
---|
1745 | ac_fn_c_try_cpp ()
|
---|
1746 | {
|
---|
1747 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1748 | if { { ac_try="$ac_cpp conftest.$ac_ext"
|
---|
1749 | case "(($ac_try" in
|
---|
1750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1751 | *) ac_try_echo=$ac_try;;
|
---|
1752 | esac
|
---|
1753 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1754 | printf "%s\n" "$ac_try_echo"; } >&5
|
---|
1755 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
|
---|
1756 | ac_status=$?
|
---|
1757 | if test -s conftest.err; then
|
---|
1758 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1759 | cat conftest.er1 >&5
|
---|
1760 | mv -f conftest.er1 conftest.err
|
---|
1761 | fi
|
---|
1762 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1763 | test $ac_status = 0; } > conftest.i && {
|
---|
1764 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
1765 | test ! -s conftest.err
|
---|
1766 | }
|
---|
1767 | then :
|
---|
1768 | ac_retval=0
|
---|
1769 | else case e in #(
|
---|
1770 | e) printf "%s\n" "$as_me: failed program was:" >&5
|
---|
1771 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1772 |
|
---|
1773 | ac_retval=1 ;;
|
---|
1774 | esac
|
---|
1775 | fi
|
---|
1776 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1777 | as_fn_set_status $ac_retval
|
---|
1778 |
|
---|
1779 | } # ac_fn_c_try_cpp
|
---|
1780 |
|
---|
1781 | # ac_fn_c_try_link LINENO
|
---|
1782 | # -----------------------
|
---|
1783 | # Try to link conftest.$ac_ext, and return whether this succeeded.
|
---|
1784 | ac_fn_c_try_link ()
|
---|
1785 | {
|
---|
1786 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1787 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
|
---|
1788 | if { { ac_try="$ac_link"
|
---|
1789 | case "(($ac_try" in
|
---|
1790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1791 | *) ac_try_echo=$ac_try;;
|
---|
1792 | esac
|
---|
1793 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1794 | printf "%s\n" "$ac_try_echo"; } >&5
|
---|
1795 | (eval "$ac_link") 2>conftest.err
|
---|
1796 | ac_status=$?
|
---|
1797 | if test -s conftest.err; then
|
---|
1798 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1799 | cat conftest.er1 >&5
|
---|
1800 | mv -f conftest.er1 conftest.err
|
---|
1801 | fi
|
---|
1802 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1803 | test $ac_status = 0; } && {
|
---|
1804 | test -z "$ac_c_werror_flag" ||
|
---|
1805 | test ! -s conftest.err
|
---|
1806 | } && test -s conftest$ac_exeext && {
|
---|
1807 | test "$cross_compiling" = yes ||
|
---|
1808 | test -x conftest$ac_exeext
|
---|
1809 | }
|
---|
1810 | then :
|
---|
1811 | ac_retval=0
|
---|
1812 | else case e in #(
|
---|
1813 | e) printf "%s\n" "$as_me: failed program was:" >&5
|
---|
1814 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1815 |
|
---|
1816 | ac_retval=1 ;;
|
---|
1817 | esac
|
---|
1818 | fi
|
---|
1819 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
|
---|
1820 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
|
---|
1821 | # interfere with the next link command; also delete a directory that is
|
---|
1822 | # left behind by Apple's compiler. We do this before executing the actions.
|
---|
1823 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
1824 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1825 | as_fn_set_status $ac_retval
|
---|
1826 |
|
---|
1827 | } # ac_fn_c_try_link
|
---|
1828 |
|
---|
1829 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
|
---|
1830 | # -------------------------------------------------------
|
---|
1831 | # Tests whether HEADER exists and can be compiled using the include files in
|
---|
1832 | # INCLUDES, setting the cache variable VAR accordingly.
|
---|
1833 | ac_fn_c_check_header_compile ()
|
---|
1834 | {
|
---|
1835 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1836 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1837 | printf %s "checking for $2... " >&6; }
|
---|
1838 | if eval test \${$3+y}
|
---|
1839 | then :
|
---|
1840 | printf %s "(cached) " >&6
|
---|
1841 | else case e in #(
|
---|
1842 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1843 | /* end confdefs.h. */
|
---|
1844 | $4
|
---|
1845 | #include <$2>
|
---|
1846 | _ACEOF
|
---|
1847 | if ac_fn_c_try_compile "$LINENO"
|
---|
1848 | then :
|
---|
1849 | eval "$3=yes"
|
---|
1850 | else case e in #(
|
---|
1851 | e) eval "$3=no" ;;
|
---|
1852 | esac
|
---|
1853 | fi
|
---|
1854 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
|
---|
1855 | esac
|
---|
1856 | fi
|
---|
1857 | eval ac_res=\$$3
|
---|
1858 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1859 | printf "%s\n" "$ac_res" >&6; }
|
---|
1860 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1861 |
|
---|
1862 | } # ac_fn_c_check_header_compile
|
---|
1863 |
|
---|
1864 | # ac_fn_c_check_func LINENO FUNC VAR
|
---|
1865 | # ----------------------------------
|
---|
1866 | # Tests whether FUNC exists, setting the cache variable VAR accordingly
|
---|
1867 | ac_fn_c_check_func ()
|
---|
1868 | {
|
---|
1869 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1870 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1871 | printf %s "checking for $2... " >&6; }
|
---|
1872 | if eval test \${$3+y}
|
---|
1873 | then :
|
---|
1874 | printf %s "(cached) " >&6
|
---|
1875 | else case e in #(
|
---|
1876 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1877 | /* end confdefs.h. */
|
---|
1878 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
|
---|
1879 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
1880 | #define $2 innocuous_$2
|
---|
1881 |
|
---|
1882 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
1883 | which can conflict with char $2 (void); below. */
|
---|
1884 |
|
---|
1885 | #include <limits.h>
|
---|
1886 | #undef $2
|
---|
1887 |
|
---|
1888 | /* Override any GCC internal prototype to avoid an error.
|
---|
1889 | Use char because int might match the return type of a GCC
|
---|
1890 | builtin and then its argument prototype would still apply. */
|
---|
1891 | #ifdef __cplusplus
|
---|
1892 | extern "C"
|
---|
1893 | #endif
|
---|
1894 | char $2 (void);
|
---|
1895 | /* The GNU C library defines this for functions which it implements
|
---|
1896 | to always fail with ENOSYS. Some functions are actually named
|
---|
1897 | something starting with __ and the normal name is an alias. */
|
---|
1898 | #if defined __stub_$2 || defined __stub___$2
|
---|
1899 | choke me
|
---|
1900 | #endif
|
---|
1901 |
|
---|
1902 | int
|
---|
1903 | main (void)
|
---|
1904 | {
|
---|
1905 | return $2 ();
|
---|
1906 | ;
|
---|
1907 | return 0;
|
---|
1908 | }
|
---|
1909 | _ACEOF
|
---|
1910 | if ac_fn_c_try_link "$LINENO"
|
---|
1911 | then :
|
---|
1912 | eval "$3=yes"
|
---|
1913 | else case e in #(
|
---|
1914 | e) eval "$3=no" ;;
|
---|
1915 | esac
|
---|
1916 | fi
|
---|
1917 | rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
---|
1918 | conftest$ac_exeext conftest.$ac_ext ;;
|
---|
1919 | esac
|
---|
1920 | fi
|
---|
1921 | eval ac_res=\$$3
|
---|
1922 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1923 | printf "%s\n" "$ac_res" >&6; }
|
---|
1924 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1925 |
|
---|
1926 | } # ac_fn_c_check_func
|
---|
1927 | ac_configure_args_raw=
|
---|
1928 | for ac_arg
|
---|
1929 | do
|
---|
1930 | case $ac_arg in
|
---|
1931 | *\'*)
|
---|
1932 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
1933 | esac
|
---|
1934 | as_fn_append ac_configure_args_raw " '$ac_arg'"
|
---|
1935 | done
|
---|
1936 |
|
---|
1937 | case $ac_configure_args_raw in
|
---|
1938 | *$as_nl*)
|
---|
1939 | ac_safe_unquote= ;;
|
---|
1940 | *)
|
---|
1941 | ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
|
---|
1942 | ac_unsafe_a="$ac_unsafe_z#~"
|
---|
1943 | ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
|
---|
1944 | ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
|
---|
1945 | esac
|
---|
1946 |
|
---|
1947 | cat >config.log <<_ACEOF
|
---|
1948 | This file contains any messages produced by compilers while
|
---|
1949 | running configure, to aid debugging if configure makes a mistake.
|
---|
1950 |
|
---|
1951 | It was created by libpng $as_me 1.6.43, which was
|
---|
1952 | generated by GNU Autoconf 2.72. Invocation command line was
|
---|
1953 |
|
---|
1954 | $ $0$ac_configure_args_raw
|
---|
1955 |
|
---|
1956 | _ACEOF
|
---|
1957 | exec 5>>config.log
|
---|
1958 | {
|
---|
1959 | cat <<_ASUNAME
|
---|
1960 | ## --------- ##
|
---|
1961 | ## Platform. ##
|
---|
1962 | ## --------- ##
|
---|
1963 |
|
---|
1964 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
1965 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
1966 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
1967 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
1968 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
1969 |
|
---|
1970 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
1971 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
1972 |
|
---|
1973 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
1974 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
1975 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
1976 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
---|
1977 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
1978 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
1979 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
1980 |
|
---|
1981 | _ASUNAME
|
---|
1982 |
|
---|
1983 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1984 | for as_dir in $PATH
|
---|
1985 | do
|
---|
1986 | IFS=$as_save_IFS
|
---|
1987 | case $as_dir in #(((
|
---|
1988 | '') as_dir=./ ;;
|
---|
1989 | */) ;;
|
---|
1990 | *) as_dir=$as_dir/ ;;
|
---|
1991 | esac
|
---|
1992 | printf "%s\n" "PATH: $as_dir"
|
---|
1993 | done
|
---|
1994 | IFS=$as_save_IFS
|
---|
1995 |
|
---|
1996 | } >&5
|
---|
1997 |
|
---|
1998 | cat >&5 <<_ACEOF
|
---|
1999 |
|
---|
2000 |
|
---|
2001 | ## ----------- ##
|
---|
2002 | ## Core tests. ##
|
---|
2003 | ## ----------- ##
|
---|
2004 |
|
---|
2005 | _ACEOF
|
---|
2006 |
|
---|
2007 |
|
---|
2008 | # Keep a trace of the command line.
|
---|
2009 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
2010 | # Strip out --silent because we don't want to record it for future runs.
|
---|
2011 | # Also quote any args containing shell meta-characters.
|
---|
2012 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
2013 | ac_configure_args=
|
---|
2014 | ac_configure_args0=
|
---|
2015 | ac_configure_args1=
|
---|
2016 | ac_must_keep_next=false
|
---|
2017 | for ac_pass in 1 2
|
---|
2018 | do
|
---|
2019 | for ac_arg
|
---|
2020 | do
|
---|
2021 | case $ac_arg in
|
---|
2022 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
2023 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
2024 | | -silent | --silent | --silen | --sile | --sil)
|
---|
2025 | continue ;;
|
---|
2026 | *\'*)
|
---|
2027 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
2028 | esac
|
---|
2029 | case $ac_pass in
|
---|
2030 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
|
---|
2031 | 2)
|
---|
2032 | as_fn_append ac_configure_args1 " '$ac_arg'"
|
---|
2033 | if test $ac_must_keep_next = true; then
|
---|
2034 | ac_must_keep_next=false # Got value, back to normal.
|
---|
2035 | else
|
---|
2036 | case $ac_arg in
|
---|
2037 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
2038 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
2039 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
2040 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
2041 | case "$ac_configure_args0 " in
|
---|
2042 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
2043 | esac
|
---|
2044 | ;;
|
---|
2045 | -* ) ac_must_keep_next=true ;;
|
---|
2046 | esac
|
---|
2047 | fi
|
---|
2048 | as_fn_append ac_configure_args " '$ac_arg'"
|
---|
2049 | ;;
|
---|
2050 | esac
|
---|
2051 | done
|
---|
2052 | done
|
---|
2053 | { ac_configure_args0=; unset ac_configure_args0;}
|
---|
2054 | { ac_configure_args1=; unset ac_configure_args1;}
|
---|
2055 |
|
---|
2056 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
2057 | # config.log. We remove comments because anyway the quotes in there
|
---|
2058 | # would cause problems or look ugly.
|
---|
2059 | # WARNING: Use '\'' to represent an apostrophe within the trap.
|
---|
2060 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
---|
2061 | trap 'exit_status=$?
|
---|
2062 | # Sanitize IFS.
|
---|
2063 | IFS=" "" $as_nl"
|
---|
2064 | # Save into config.log some information that might help in debugging.
|
---|
2065 | {
|
---|
2066 | echo
|
---|
2067 |
|
---|
2068 | printf "%s\n" "## ---------------- ##
|
---|
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_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
2080 | printf "%s\n" "$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 | printf "%s\n" "## ----------------- ##
|
---|
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=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
2113 | esac
|
---|
2114 | printf "%s\n" "$ac_var='\''$ac_val'\''"
|
---|
2115 | done | sort
|
---|
2116 | echo
|
---|
2117 |
|
---|
2118 | if test -n "$ac_subst_files"; then
|
---|
2119 | printf "%s\n" "## ------------------- ##
|
---|
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=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
2128 | esac
|
---|
2129 | printf "%s\n" "$ac_var='\''$ac_val'\''"
|
---|
2130 | done | sort
|
---|
2131 | echo
|
---|
2132 | fi
|
---|
2133 |
|
---|
2134 | if test -s confdefs.h; then
|
---|
2135 | printf "%s\n" "## ----------- ##
|
---|
2136 | ## confdefs.h. ##
|
---|
2137 | ## ----------- ##"
|
---|
2138 | echo
|
---|
2139 | cat confdefs.h
|
---|
2140 | echo
|
---|
2141 | fi
|
---|
2142 | test "$ac_signal" != 0 &&
|
---|
2143 | printf "%s\n" "$as_me: caught signal $ac_signal"
|
---|
2144 | printf "%s\n" "$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 | printf "%s\n" "/* confdefs.h */" > confdefs.h
|
---|
2159 |
|
---|
2160 | # Predefined preprocessor variables.
|
---|
2161 |
|
---|
2162 | printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
|
---|
2163 |
|
---|
2164 | printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
|
---|
2165 |
|
---|
2166 | printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
|
---|
2167 |
|
---|
2168 | printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
|
---|
2169 |
|
---|
2170 | printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
|
---|
2171 |
|
---|
2172 | printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
|
---|
2173 |
|
---|
2174 |
|
---|
2175 | # Let the site file select an alternate cache file if it wants to.
|
---|
2176 | # Prefer an explicitly selected file to automatically selected ones.
|
---|
2177 | if test -n "$CONFIG_SITE"; then
|
---|
2178 | ac_site_files="$CONFIG_SITE"
|
---|
2179 | elif test "x$prefix" != xNONE; then
|
---|
2180 | ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
|
---|
2181 | else
|
---|
2182 | ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
2183 | fi
|
---|
2184 |
|
---|
2185 | for ac_site_file in $ac_site_files
|
---|
2186 | do
|
---|
2187 | case $ac_site_file in #(
|
---|
2188 | */*) :
|
---|
2189 | ;; #(
|
---|
2190 | *) :
|
---|
2191 | ac_site_file=./$ac_site_file ;;
|
---|
2192 | esac
|
---|
2193 | if test -f "$ac_site_file" && test -r "$ac_site_file"; then
|
---|
2194 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
|
---|
2195 | printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
|
---|
2196 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
2197 | . "$ac_site_file" \
|
---|
2198 | || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
|
---|
2199 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
|
---|
2200 | as_fn_error $? "failed to load site script $ac_site_file
|
---|
2201 | See 'config.log' for more details" "$LINENO" 5; }
|
---|
2202 | fi
|
---|
2203 | done
|
---|
2204 |
|
---|
2205 | if test -r "$cache_file"; then
|
---|
2206 | # Some versions of bash will fail to source /dev/null (special files
|
---|
2207 | # actually), so we avoid doing that. DJGPP emulates it as a regular file.
|
---|
2208 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then
|
---|
2209 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
|
---|
2210 | printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
|
---|
2211 | case $cache_file in
|
---|
2212 | [\\/]* | ?:[\\/]* ) . "$cache_file";;
|
---|
2213 | *) . "./$cache_file";;
|
---|
2214 | esac
|
---|
2215 | fi
|
---|
2216 | else
|
---|
2217 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
|
---|
2218 | printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
|
---|
2219 | >$cache_file
|
---|
2220 | fi
|
---|
2221 |
|
---|
2222 | # Test code for whether the C compiler supports C89 (global declarations)
|
---|
2223 | ac_c_conftest_c89_globals='
|
---|
2224 | /* Does the compiler advertise C89 conformance?
|
---|
2225 | Do not test the value of __STDC__, because some compilers set it to 0
|
---|
2226 | while being otherwise adequately conformant. */
|
---|
2227 | #if !defined __STDC__
|
---|
2228 | # error "Compiler does not advertise C89 conformance"
|
---|
2229 | #endif
|
---|
2230 |
|
---|
2231 | #include <stddef.h>
|
---|
2232 | #include <stdarg.h>
|
---|
2233 | struct stat;
|
---|
2234 | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
|
---|
2235 | struct buf { int x; };
|
---|
2236 | struct buf * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
2237 | static char *e (char **p, int i)
|
---|
2238 | {
|
---|
2239 | return p[i];
|
---|
2240 | }
|
---|
2241 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
2242 | {
|
---|
2243 | char *s;
|
---|
2244 | va_list v;
|
---|
2245 | va_start (v,p);
|
---|
2246 | s = g (p, va_arg (v,int));
|
---|
2247 | va_end (v);
|
---|
2248 | return s;
|
---|
2249 | }
|
---|
2250 |
|
---|
2251 | /* C89 style stringification. */
|
---|
2252 | #define noexpand_stringify(a) #a
|
---|
2253 | const char *stringified = noexpand_stringify(arbitrary+token=sequence);
|
---|
2254 |
|
---|
2255 | /* C89 style token pasting. Exercises some of the corner cases that
|
---|
2256 | e.g. old MSVC gets wrong, but not very hard. */
|
---|
2257 | #define noexpand_concat(a,b) a##b
|
---|
2258 | #define expand_concat(a,b) noexpand_concat(a,b)
|
---|
2259 | extern int vA;
|
---|
2260 | extern int vbee;
|
---|
2261 | #define aye A
|
---|
2262 | #define bee B
|
---|
2263 | int *pvA = &expand_concat(v,aye);
|
---|
2264 | int *pvbee = &noexpand_concat(v,bee);
|
---|
2265 |
|
---|
2266 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
2267 | function prototypes and stuff, but not \xHH hex character constants.
|
---|
2268 | These do not provoke an error unfortunately, instead are silently treated
|
---|
2269 | as an "x". The following induces an error, until -std is added to get
|
---|
2270 | proper ANSI mode. Curiously \x00 != x always comes out true, for an
|
---|
2271 | array size at least. It is necessary to write \x00 == 0 to get something
|
---|
2272 | that is true only with -std. */
|
---|
2273 | int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
|
---|
2274 |
|
---|
2275 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
---|
2276 | inside strings and character constants. */
|
---|
2277 | #define FOO(x) '\''x'\''
|
---|
2278 | int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
|
---|
2279 |
|
---|
2280 | int test (int i, double x);
|
---|
2281 | struct s1 {int (*f) (int a);};
|
---|
2282 | struct s2 {int (*f) (double a);};
|
---|
2283 | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
|
---|
2284 | int, int);'
|
---|
2285 |
|
---|
2286 | # Test code for whether the C compiler supports C89 (body of main).
|
---|
2287 | ac_c_conftest_c89_main='
|
---|
2288 | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
|
---|
2289 | '
|
---|
2290 |
|
---|
2291 | # Test code for whether the C compiler supports C99 (global declarations)
|
---|
2292 | ac_c_conftest_c99_globals='
|
---|
2293 | /* Does the compiler advertise C99 conformance? */
|
---|
2294 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
|
---|
2295 | # error "Compiler does not advertise C99 conformance"
|
---|
2296 | #endif
|
---|
2297 |
|
---|
2298 | // See if C++-style comments work.
|
---|
2299 |
|
---|
2300 | #include <stdbool.h>
|
---|
2301 | extern int puts (const char *);
|
---|
2302 | extern int printf (const char *, ...);
|
---|
2303 | extern int dprintf (int, const char *, ...);
|
---|
2304 | extern void *malloc (size_t);
|
---|
2305 | extern void free (void *);
|
---|
2306 |
|
---|
2307 | // Check varargs macros. These examples are taken from C99 6.10.3.5.
|
---|
2308 | // dprintf is used instead of fprintf to avoid needing to declare
|
---|
2309 | // FILE and stderr.
|
---|
2310 | #define debug(...) dprintf (2, __VA_ARGS__)
|
---|
2311 | #define showlist(...) puts (#__VA_ARGS__)
|
---|
2312 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
|
---|
2313 | static void
|
---|
2314 | test_varargs_macros (void)
|
---|
2315 | {
|
---|
2316 | int x = 1234;
|
---|
2317 | int y = 5678;
|
---|
2318 | debug ("Flag");
|
---|
2319 | debug ("X = %d\n", x);
|
---|
2320 | showlist (The first, second, and third items.);
|
---|
2321 | report (x>y, "x is %d but y is %d", x, y);
|
---|
2322 | }
|
---|
2323 |
|
---|
2324 | // Check long long types.
|
---|
2325 | #define BIG64 18446744073709551615ull
|
---|
2326 | #define BIG32 4294967295ul
|
---|
2327 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
|
---|
2328 | #if !BIG_OK
|
---|
2329 | #error "your preprocessor is broken"
|
---|
2330 | #endif
|
---|
2331 | #if BIG_OK
|
---|
2332 | #else
|
---|
2333 | #error "your preprocessor is broken"
|
---|
2334 | #endif
|
---|
2335 | static long long int bignum = -9223372036854775807LL;
|
---|
2336 | static unsigned long long int ubignum = BIG64;
|
---|
2337 |
|
---|
2338 | struct incomplete_array
|
---|
2339 | {
|
---|
2340 | int datasize;
|
---|
2341 | double data[];
|
---|
2342 | };
|
---|
2343 |
|
---|
2344 | struct named_init {
|
---|
2345 | int number;
|
---|
2346 | const wchar_t *name;
|
---|
2347 | double average;
|
---|
2348 | };
|
---|
2349 |
|
---|
2350 | typedef const char *ccp;
|
---|
2351 |
|
---|
2352 | static inline int
|
---|
2353 | test_restrict (ccp restrict text)
|
---|
2354 | {
|
---|
2355 | // Iterate through items via the restricted pointer.
|
---|
2356 | // Also check for declarations in for loops.
|
---|
2357 | for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
|
---|
2358 | continue;
|
---|
2359 | return 0;
|
---|
2360 | }
|
---|
2361 |
|
---|
2362 | // Check varargs and va_copy.
|
---|
2363 | static bool
|
---|
2364 | test_varargs (const char *format, ...)
|
---|
2365 | {
|
---|
2366 | va_list args;
|
---|
2367 | va_start (args, format);
|
---|
2368 | va_list args_copy;
|
---|
2369 | va_copy (args_copy, args);
|
---|
2370 |
|
---|
2371 | const char *str = "";
|
---|
2372 | int number = 0;
|
---|
2373 | float fnumber = 0;
|
---|
2374 |
|
---|
2375 | while (*format)
|
---|
2376 | {
|
---|
2377 | switch (*format++)
|
---|
2378 | {
|
---|
2379 | case '\''s'\'': // string
|
---|
2380 | str = va_arg (args_copy, const char *);
|
---|
2381 | break;
|
---|
2382 | case '\''d'\'': // int
|
---|
2383 | number = va_arg (args_copy, int);
|
---|
2384 | break;
|
---|
2385 | case '\''f'\'': // float
|
---|
2386 | fnumber = va_arg (args_copy, double);
|
---|
2387 | break;
|
---|
2388 | default:
|
---|
2389 | break;
|
---|
2390 | }
|
---|
2391 | }
|
---|
2392 | va_end (args_copy);
|
---|
2393 | va_end (args);
|
---|
2394 |
|
---|
2395 | return *str && number && fnumber;
|
---|
2396 | }
|
---|
2397 | '
|
---|
2398 |
|
---|
2399 | # Test code for whether the C compiler supports C99 (body of main).
|
---|
2400 | ac_c_conftest_c99_main='
|
---|
2401 | // Check bool.
|
---|
2402 | _Bool success = false;
|
---|
2403 | success |= (argc != 0);
|
---|
2404 |
|
---|
2405 | // Check restrict.
|
---|
2406 | if (test_restrict ("String literal") == 0)
|
---|
2407 | success = true;
|
---|
2408 | char *restrict newvar = "Another string";
|
---|
2409 |
|
---|
2410 | // Check varargs.
|
---|
2411 | success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
|
---|
2412 | test_varargs_macros ();
|
---|
2413 |
|
---|
2414 | // Check flexible array members.
|
---|
2415 | struct incomplete_array *ia =
|
---|
2416 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
|
---|
2417 | ia->datasize = 10;
|
---|
2418 | for (int i = 0; i < ia->datasize; ++i)
|
---|
2419 | ia->data[i] = i * 1.234;
|
---|
2420 | // Work around memory leak warnings.
|
---|
2421 | free (ia);
|
---|
2422 |
|
---|
2423 | // Check named initializers.
|
---|
2424 | struct named_init ni = {
|
---|
2425 | .number = 34,
|
---|
2426 | .name = L"Test wide string",
|
---|
2427 | .average = 543.34343,
|
---|
2428 | };
|
---|
2429 |
|
---|
2430 | ni.number = 58;
|
---|
2431 |
|
---|
2432 | int dynamic_array[ni.number];
|
---|
2433 | dynamic_array[0] = argv[0][0];
|
---|
2434 | dynamic_array[ni.number - 1] = 543;
|
---|
2435 |
|
---|
2436 | // work around unused variable warnings
|
---|
2437 | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
|
---|
2438 | || dynamic_array[ni.number - 1] != 543);
|
---|
2439 | '
|
---|
2440 |
|
---|
2441 | # Test code for whether the C compiler supports C11 (global declarations)
|
---|
2442 | ac_c_conftest_c11_globals='
|
---|
2443 | /* Does the compiler advertise C11 conformance? */
|
---|
2444 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
|
---|
2445 | # error "Compiler does not advertise C11 conformance"
|
---|
2446 | #endif
|
---|
2447 |
|
---|
2448 | // Check _Alignas.
|
---|
2449 | char _Alignas (double) aligned_as_double;
|
---|
2450 | char _Alignas (0) no_special_alignment;
|
---|
2451 | extern char aligned_as_int;
|
---|
2452 | char _Alignas (0) _Alignas (int) aligned_as_int;
|
---|
2453 |
|
---|
2454 | // Check _Alignof.
|
---|
2455 | enum
|
---|
2456 | {
|
---|
2457 | int_alignment = _Alignof (int),
|
---|
2458 | int_array_alignment = _Alignof (int[100]),
|
---|
2459 | char_alignment = _Alignof (char)
|
---|
2460 | };
|
---|
2461 | _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
|
---|
2462 |
|
---|
2463 | // Check _Noreturn.
|
---|
2464 | int _Noreturn does_not_return (void) { for (;;) continue; }
|
---|
2465 |
|
---|
2466 | // Check _Static_assert.
|
---|
2467 | struct test_static_assert
|
---|
2468 | {
|
---|
2469 | int x;
|
---|
2470 | _Static_assert (sizeof (int) <= sizeof (long int),
|
---|
2471 | "_Static_assert does not work in struct");
|
---|
2472 | long int y;
|
---|
2473 | };
|
---|
2474 |
|
---|
2475 | // Check UTF-8 literals.
|
---|
2476 | #define u8 syntax error!
|
---|
2477 | char const utf8_literal[] = u8"happens to be ASCII" "another string";
|
---|
2478 |
|
---|
2479 | // Check duplicate typedefs.
|
---|
2480 | typedef long *long_ptr;
|
---|
2481 | typedef long int *long_ptr;
|
---|
2482 | typedef long_ptr long_ptr;
|
---|
2483 |
|
---|
2484 | // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
|
---|
2485 | struct anonymous
|
---|
2486 | {
|
---|
2487 | union {
|
---|
2488 | struct { int i; int j; };
|
---|
2489 | struct { int k; long int l; } w;
|
---|
2490 | };
|
---|
2491 | int m;
|
---|
2492 | } v1;
|
---|
2493 | '
|
---|
2494 |
|
---|
2495 | # Test code for whether the C compiler supports C11 (body of main).
|
---|
2496 | ac_c_conftest_c11_main='
|
---|
2497 | _Static_assert ((offsetof (struct anonymous, i)
|
---|
2498 | == offsetof (struct anonymous, w.k)),
|
---|
2499 | "Anonymous union alignment botch");
|
---|
2500 | v1.i = 2;
|
---|
2501 | v1.w.k = 5;
|
---|
2502 | ok |= v1.i != 5;
|
---|
2503 | '
|
---|
2504 |
|
---|
2505 | # Test code for whether the C compiler supports C11 (complete).
|
---|
2506 | ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
|
---|
2507 | ${ac_c_conftest_c99_globals}
|
---|
2508 | ${ac_c_conftest_c11_globals}
|
---|
2509 |
|
---|
2510 | int
|
---|
2511 | main (int argc, char **argv)
|
---|
2512 | {
|
---|
2513 | int ok = 0;
|
---|
2514 | ${ac_c_conftest_c89_main}
|
---|
2515 | ${ac_c_conftest_c99_main}
|
---|
2516 | ${ac_c_conftest_c11_main}
|
---|
2517 | return ok;
|
---|
2518 | }
|
---|
2519 | "
|
---|
2520 |
|
---|
2521 | # Test code for whether the C compiler supports C99 (complete).
|
---|
2522 | ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
|
---|
2523 | ${ac_c_conftest_c99_globals}
|
---|
2524 |
|
---|
2525 | int
|
---|
2526 | main (int argc, char **argv)
|
---|
2527 | {
|
---|
2528 | int ok = 0;
|
---|
2529 | ${ac_c_conftest_c89_main}
|
---|
2530 | ${ac_c_conftest_c99_main}
|
---|
2531 | return ok;
|
---|
2532 | }
|
---|
2533 | "
|
---|
2534 |
|
---|
2535 | # Test code for whether the C compiler supports C89 (complete).
|
---|
2536 | ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
|
---|
2537 |
|
---|
2538 | int
|
---|
2539 | main (int argc, char **argv)
|
---|
2540 | {
|
---|
2541 | int ok = 0;
|
---|
2542 | ${ac_c_conftest_c89_main}
|
---|
2543 | return ok;
|
---|
2544 | }
|
---|
2545 | "
|
---|
2546 |
|
---|
2547 | as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
|
---|
2548 | as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
|
---|
2549 | as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
|
---|
2550 | as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
|
---|
2551 | as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
|
---|
2552 | as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
|
---|
2553 | as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
|
---|
2554 | as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
|
---|
2555 | as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
|
---|
2556 |
|
---|
2557 | # Auxiliary files required by this configure script.
|
---|
2558 | ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
|
---|
2559 |
|
---|
2560 | # Locations in which to look for auxiliary files.
|
---|
2561 | ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
|
---|
2562 |
|
---|
2563 | # Search for a directory containing all of the required auxiliary files,
|
---|
2564 | # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
|
---|
2565 | # If we don't find one directory that contains all the files we need,
|
---|
2566 | # we report the set of missing files from the *first* directory in
|
---|
2567 | # $ac_aux_dir_candidates and give up.
|
---|
2568 | ac_missing_aux_files=""
|
---|
2569 | ac_first_candidate=:
|
---|
2570 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
|
---|
2571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2572 | as_found=false
|
---|
2573 | for as_dir in $ac_aux_dir_candidates
|
---|
2574 | do
|
---|
2575 | IFS=$as_save_IFS
|
---|
2576 | case $as_dir in #(((
|
---|
2577 | '') as_dir=./ ;;
|
---|
2578 | */) ;;
|
---|
2579 | *) as_dir=$as_dir/ ;;
|
---|
2580 | esac
|
---|
2581 | as_found=:
|
---|
2582 |
|
---|
2583 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
|
---|
2584 | ac_aux_dir_found=yes
|
---|
2585 | ac_install_sh=
|
---|
2586 | for ac_aux in $ac_aux_files
|
---|
2587 | do
|
---|
2588 | # As a special case, if "install-sh" is required, that requirement
|
---|
2589 | # can be satisfied by any of "install-sh", "install.sh", or "shtool",
|
---|
2590 | # and $ac_install_sh is set appropriately for whichever one is found.
|
---|
2591 | if test x"$ac_aux" = x"install-sh"
|
---|
2592 | then
|
---|
2593 | if test -f "${as_dir}install-sh"; then
|
---|
2594 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
|
---|
2595 | ac_install_sh="${as_dir}install-sh -c"
|
---|
2596 | elif test -f "${as_dir}install.sh"; then
|
---|
2597 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
|
---|
2598 | ac_install_sh="${as_dir}install.sh -c"
|
---|
2599 | elif test -f "${as_dir}shtool"; then
|
---|
2600 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
|
---|
2601 | ac_install_sh="${as_dir}shtool install -c"
|
---|
2602 | else
|
---|
2603 | ac_aux_dir_found=no
|
---|
2604 | if $ac_first_candidate; then
|
---|
2605 | ac_missing_aux_files="${ac_missing_aux_files} install-sh"
|
---|
2606 | else
|
---|
2607 | break
|
---|
2608 | fi
|
---|
2609 | fi
|
---|
2610 | else
|
---|
2611 | if test -f "${as_dir}${ac_aux}"; then
|
---|
2612 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
|
---|
2613 | else
|
---|
2614 | ac_aux_dir_found=no
|
---|
2615 | if $ac_first_candidate; then
|
---|
2616 | ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
|
---|
2617 | else
|
---|
2618 | break
|
---|
2619 | fi
|
---|
2620 | fi
|
---|
2621 | fi
|
---|
2622 | done
|
---|
2623 | if test "$ac_aux_dir_found" = yes; then
|
---|
2624 | ac_aux_dir="$as_dir"
|
---|
2625 | break
|
---|
2626 | fi
|
---|
2627 | ac_first_candidate=false
|
---|
2628 |
|
---|
2629 | as_found=false
|
---|
2630 | done
|
---|
2631 | IFS=$as_save_IFS
|
---|
2632 | if $as_found
|
---|
2633 | then :
|
---|
2634 |
|
---|
2635 | else case e in #(
|
---|
2636 | e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
|
---|
2637 | esac
|
---|
2638 | fi
|
---|
2639 |
|
---|
2640 |
|
---|
2641 | # These three variables are undocumented and unsupported,
|
---|
2642 | # and are intended to be withdrawn in a future Autoconf release.
|
---|
2643 | # They can cause serious problems if a builder's source tree is in a directory
|
---|
2644 | # whose full name contains unusual characters.
|
---|
2645 | if test -f "${ac_aux_dir}config.guess"; then
|
---|
2646 | ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
|
---|
2647 | fi
|
---|
2648 | if test -f "${ac_aux_dir}config.sub"; then
|
---|
2649 | ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
|
---|
2650 | fi
|
---|
2651 | if test -f "$ac_aux_dir/configure"; then
|
---|
2652 | ac_configure="$SHELL ${ac_aux_dir}configure"
|
---|
2653 | fi
|
---|
2654 |
|
---|
2655 | # Check that the precious variables saved in the cache have kept the same
|
---|
2656 | # value.
|
---|
2657 | ac_cache_corrupted=false
|
---|
2658 | for ac_var in $ac_precious_vars; do
|
---|
2659 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
2660 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
2661 | eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
---|
2662 | eval ac_new_val=\$ac_env_${ac_var}_value
|
---|
2663 | case $ac_old_set,$ac_new_set in
|
---|
2664 | set,)
|
---|
2665 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
|
---|
2666 | printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
|
---|
2667 | ac_cache_corrupted=: ;;
|
---|
2668 | ,set)
|
---|
2669 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
|
---|
2670 | printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
|
---|
2671 | ac_cache_corrupted=: ;;
|
---|
2672 | ,);;
|
---|
2673 | *)
|
---|
2674 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
2675 | # differences in whitespace do not lead to failure.
|
---|
2676 | ac_old_val_w=`echo x $ac_old_val`
|
---|
2677 | ac_new_val_w=`echo x $ac_new_val`
|
---|
2678 | if test "$ac_old_val_w" != "$ac_new_val_w"; then
|
---|
2679 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
|
---|
2680 | printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
|
---|
2681 | ac_cache_corrupted=:
|
---|
2682 | else
|
---|
2683 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
|
---|
2684 | printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
|
---|
2685 | eval $ac_var=\$ac_old_val
|
---|
2686 | fi
|
---|
2687 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
|
---|
2688 | printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
|
---|
2689 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
|
---|
2690 | printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
|
---|
2691 | fi;;
|
---|
2692 | esac
|
---|
2693 | # Pass precious variables to config.status.
|
---|
2694 | if test "$ac_new_set" = set; then
|
---|
2695 | case $ac_new_val in
|
---|
2696 | *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
2697 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
2698 | esac
|
---|
2699 | case " $ac_configure_args " in
|
---|
2700 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
2701 | *) as_fn_append ac_configure_args " '$ac_arg'" ;;
|
---|
2702 | esac
|
---|
2703 | fi
|
---|
2704 | done
|
---|
2705 | if $ac_cache_corrupted; then
|
---|
2706 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
|
---|
2707 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
|
---|
2708 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
|
---|
2709 | printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
2710 | as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
|
---|
2711 | and start over" "$LINENO" 5
|
---|
2712 | fi
|
---|
2713 | ## -------------------- ##
|
---|
2714 | ## Main body of script. ##
|
---|
2715 | ## -------------------- ##
|
---|
2716 |
|
---|
2717 | ac_ext=c
|
---|
2718 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2719 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2720 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2721 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2722 |
|
---|
2723 |
|
---|
2724 |
|
---|
2725 |
|
---|
2726 | # libpng does not follow GNU file name conventions (hence 'foreign')
|
---|
2727 | # color-tests requires automake 1.11 or later
|
---|
2728 | # silent-rules requires automake 1.11 or later
|
---|
2729 | # dist-xz requires automake 1.11 or later
|
---|
2730 | # 1.12.2 fixes a security issue in 1.11.2 and 1.12.1
|
---|
2731 | # 1.13 is required for parallel tests
|
---|
2732 | am__api_version='1.16'
|
---|
2733 |
|
---|
2734 |
|
---|
2735 |
|
---|
2736 | # Find a good install program. We prefer a C program (faster),
|
---|
2737 | # so one script is as good as another. But avoid the broken or
|
---|
2738 | # incompatible versions:
|
---|
2739 | # SysV /etc/install, /usr/sbin/install
|
---|
2740 | # SunOS /usr/etc/install
|
---|
2741 | # IRIX /sbin/install
|
---|
2742 | # AIX /bin/install
|
---|
2743 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
2744 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
2745 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
2746 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
2747 | # OS/2's system install, which has a completely different semantic
|
---|
2748 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
2749 | # Reject install programs that cannot install multiple files.
|
---|
2750 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
|
---|
2751 | printf %s "checking for a BSD-compatible install... " >&6; }
|
---|
2752 | if test -z "$INSTALL"; then
|
---|
2753 | if test ${ac_cv_path_install+y}
|
---|
2754 | then :
|
---|
2755 | printf %s "(cached) " >&6
|
---|
2756 | else case e in #(
|
---|
2757 | e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2758 | for as_dir in $PATH
|
---|
2759 | do
|
---|
2760 | IFS=$as_save_IFS
|
---|
2761 | case $as_dir in #(((
|
---|
2762 | '') as_dir=./ ;;
|
---|
2763 | */) ;;
|
---|
2764 | *) as_dir=$as_dir/ ;;
|
---|
2765 | esac
|
---|
2766 | # Account for fact that we put trailing slashes in our PATH walk.
|
---|
2767 | case $as_dir in #((
|
---|
2768 | ./ | /[cC]/* | \
|
---|
2769 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
2770 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
|
---|
2771 | /usr/ucb/* ) ;;
|
---|
2772 | *)
|
---|
2773 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
2774 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
2775 | # by default.
|
---|
2776 | for ac_prog in ginstall scoinst install; do
|
---|
2777 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2778 | if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
|
---|
2779 | if test $ac_prog = install &&
|
---|
2780 | grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
2781 | # AIX install. It has an incompatible calling convention.
|
---|
2782 | :
|
---|
2783 | elif test $ac_prog = install &&
|
---|
2784 | grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
2785 | # program-specific install script used by HP pwplus--don't use.
|
---|
2786 | :
|
---|
2787 | else
|
---|
2788 | rm -rf conftest.one conftest.two conftest.dir
|
---|
2789 | echo one > conftest.one
|
---|
2790 | echo two > conftest.two
|
---|
2791 | mkdir conftest.dir
|
---|
2792 | if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
|
---|
2793 | test -s conftest.one && test -s conftest.two &&
|
---|
2794 | test -s conftest.dir/conftest.one &&
|
---|
2795 | test -s conftest.dir/conftest.two
|
---|
2796 | then
|
---|
2797 | ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
|
---|
2798 | break 3
|
---|
2799 | fi
|
---|
2800 | fi
|
---|
2801 | fi
|
---|
2802 | done
|
---|
2803 | done
|
---|
2804 | ;;
|
---|
2805 | esac
|
---|
2806 |
|
---|
2807 | done
|
---|
2808 | IFS=$as_save_IFS
|
---|
2809 |
|
---|
2810 | rm -rf conftest.one conftest.two conftest.dir
|
---|
2811 | ;;
|
---|
2812 | esac
|
---|
2813 | fi
|
---|
2814 | if test ${ac_cv_path_install+y}; then
|
---|
2815 | INSTALL=$ac_cv_path_install
|
---|
2816 | else
|
---|
2817 | # As a last resort, use the slow shell script. Don't cache a
|
---|
2818 | # value for INSTALL within a source directory, because that will
|
---|
2819 | # break other packages using the cache if that directory is
|
---|
2820 | # removed, or if the value is a relative name.
|
---|
2821 | INSTALL=$ac_install_sh
|
---|
2822 | fi
|
---|
2823 | fi
|
---|
2824 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
|
---|
2825 | printf "%s\n" "$INSTALL" >&6; }
|
---|
2826 |
|
---|
2827 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
2828 | # It thinks the first close brace ends the variable substitution.
|
---|
2829 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
2830 |
|
---|
2831 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
2832 |
|
---|
2833 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
2834 |
|
---|
2835 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
|
---|
2836 | printf %s "checking whether build environment is sane... " >&6; }
|
---|
2837 | # Reject unsafe characters in $srcdir or the absolute working directory
|
---|
2838 | # name. Accept space and tab only in the latter.
|
---|
2839 | am_lf='
|
---|
2840 | '
|
---|
2841 | case `pwd` in
|
---|
2842 | *[\\\"\#\$\&\'\`$am_lf]*)
|
---|
2843 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
|
---|
2844 | esac
|
---|
2845 | case $srcdir in
|
---|
2846 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
|
---|
2847 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
|
---|
2848 | esac
|
---|
2849 |
|
---|
2850 | # Do 'set' in a subshell so we don't clobber the current shell's
|
---|
2851 | # arguments. Must try -L first in case configure is actually a
|
---|
2852 | # symlink; some systems play weird games with the mod time of symlinks
|
---|
2853 | # (eg FreeBSD returns the mod time of the symlink's containing
|
---|
2854 | # directory).
|
---|
2855 | if (
|
---|
2856 | am_has_slept=no
|
---|
2857 | for am_try in 1 2; do
|
---|
2858 | echo "timestamp, slept: $am_has_slept" > conftest.file
|
---|
2859 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
|
---|
2860 | if test "$*" = "X"; then
|
---|
2861 | # -L didn't work.
|
---|
2862 | set X `ls -t "$srcdir/configure" conftest.file`
|
---|
2863 | fi
|
---|
2864 | if test "$*" != "X $srcdir/configure conftest.file" \
|
---|
2865 | && test "$*" != "X conftest.file $srcdir/configure"; then
|
---|
2866 |
|
---|
2867 | # If neither matched, then we have a broken ls. This can happen
|
---|
2868 | # if, for instance, CONFIG_SHELL is bash and it inherits a
|
---|
2869 | # broken ls alias from the environment. This has actually
|
---|
2870 | # happened. Such a system could not be considered "sane".
|
---|
2871 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
|
---|
2872 | alias in your environment" "$LINENO" 5
|
---|
2873 | fi
|
---|
2874 | if test "$2" = conftest.file || test $am_try -eq 2; then
|
---|
2875 | break
|
---|
2876 | fi
|
---|
2877 | # Just in case.
|
---|
2878 | sleep 1
|
---|
2879 | am_has_slept=yes
|
---|
2880 | done
|
---|
2881 | test "$2" = conftest.file
|
---|
2882 | )
|
---|
2883 | then
|
---|
2884 | # Ok.
|
---|
2885 | :
|
---|
2886 | else
|
---|
2887 | as_fn_error $? "newly created file is older than distributed files!
|
---|
2888 | Check your system clock" "$LINENO" 5
|
---|
2889 | fi
|
---|
2890 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
2891 | printf "%s\n" "yes" >&6; }
|
---|
2892 | # If we didn't sleep, we still need to ensure time stamps of config.status and
|
---|
2893 | # generated files are strictly newer.
|
---|
2894 | am_sleep_pid=
|
---|
2895 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then
|
---|
2896 | ( sleep 1 ) &
|
---|
2897 | am_sleep_pid=$!
|
---|
2898 | fi
|
---|
2899 |
|
---|
2900 | rm -f conftest.file
|
---|
2901 |
|
---|
2902 | test "$program_prefix" != NONE &&
|
---|
2903 | program_transform_name="s&^&$program_prefix&;$program_transform_name"
|
---|
2904 | # Use a double $ so make ignores it.
|
---|
2905 | test "$program_suffix" != NONE &&
|
---|
2906 | program_transform_name="s&\$&$program_suffix&;$program_transform_name"
|
---|
2907 | # Double any \ or $.
|
---|
2908 | # By default was 's,x,x', remove it if useless.
|
---|
2909 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
|
---|
2910 | program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
|
---|
2911 |
|
---|
2912 |
|
---|
2913 | # Expand $ac_aux_dir to an absolute path.
|
---|
2914 | am_aux_dir=`cd "$ac_aux_dir" && pwd`
|
---|
2915 |
|
---|
2916 |
|
---|
2917 | if test x"${MISSING+set}" != xset; then
|
---|
2918 | MISSING="\${SHELL} '$am_aux_dir/missing'"
|
---|
2919 | fi
|
---|
2920 | # Use eval to expand $SHELL
|
---|
2921 | if eval "$MISSING --is-lightweight"; then
|
---|
2922 | am_missing_run="$MISSING "
|
---|
2923 | else
|
---|
2924 | am_missing_run=
|
---|
2925 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
|
---|
2926 | printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
|
---|
2927 | fi
|
---|
2928 |
|
---|
2929 | if test x"${install_sh+set}" != xset; then
|
---|
2930 | case $am_aux_dir in
|
---|
2931 | *\ * | *\ *)
|
---|
2932 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
|
---|
2933 | *)
|
---|
2934 | install_sh="\${SHELL} $am_aux_dir/install-sh"
|
---|
2935 | esac
|
---|
2936 | fi
|
---|
2937 |
|
---|
2938 | # Installed binaries are usually stripped using 'strip' when the user
|
---|
2939 | # run "make install-strip". However 'strip' might not be the right
|
---|
2940 | # tool to use in cross-compilation environments, therefore Automake
|
---|
2941 | # will honor the 'STRIP' environment variable to overrule this program.
|
---|
2942 | if test "$cross_compiling" != no; then
|
---|
2943 | if test -n "$ac_tool_prefix"; then
|
---|
2944 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
---|
2945 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
---|
2946 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2947 | printf %s "checking for $ac_word... " >&6; }
|
---|
2948 | if test ${ac_cv_prog_STRIP+y}
|
---|
2949 | then :
|
---|
2950 | printf %s "(cached) " >&6
|
---|
2951 | else case e in #(
|
---|
2952 | e) if test -n "$STRIP"; then
|
---|
2953 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
2954 | else
|
---|
2955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2956 | for as_dir in $PATH
|
---|
2957 | do
|
---|
2958 | IFS=$as_save_IFS
|
---|
2959 | case $as_dir in #(((
|
---|
2960 | '') as_dir=./ ;;
|
---|
2961 | */) ;;
|
---|
2962 | *) as_dir=$as_dir/ ;;
|
---|
2963 | esac
|
---|
2964 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2965 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
2966 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
---|
2967 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
2968 | break 2
|
---|
2969 | fi
|
---|
2970 | done
|
---|
2971 | done
|
---|
2972 | IFS=$as_save_IFS
|
---|
2973 |
|
---|
2974 | fi ;;
|
---|
2975 | esac
|
---|
2976 | fi
|
---|
2977 | STRIP=$ac_cv_prog_STRIP
|
---|
2978 | if test -n "$STRIP"; then
|
---|
2979 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
|
---|
2980 | printf "%s\n" "$STRIP" >&6; }
|
---|
2981 | else
|
---|
2982 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2983 | printf "%s\n" "no" >&6; }
|
---|
2984 | fi
|
---|
2985 |
|
---|
2986 |
|
---|
2987 | fi
|
---|
2988 | if test -z "$ac_cv_prog_STRIP"; then
|
---|
2989 | ac_ct_STRIP=$STRIP
|
---|
2990 | # Extract the first word of "strip", so it can be a program name with args.
|
---|
2991 | set dummy strip; ac_word=$2
|
---|
2992 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2993 | printf %s "checking for $ac_word... " >&6; }
|
---|
2994 | if test ${ac_cv_prog_ac_ct_STRIP+y}
|
---|
2995 | then :
|
---|
2996 | printf %s "(cached) " >&6
|
---|
2997 | else case e in #(
|
---|
2998 | e) if test -n "$ac_ct_STRIP"; then
|
---|
2999 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
---|
3000 | else
|
---|
3001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3002 | for as_dir in $PATH
|
---|
3003 | do
|
---|
3004 | IFS=$as_save_IFS
|
---|
3005 | case $as_dir in #(((
|
---|
3006 | '') as_dir=./ ;;
|
---|
3007 | */) ;;
|
---|
3008 | *) as_dir=$as_dir/ ;;
|
---|
3009 | esac
|
---|
3010 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3011 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
3012 | ac_cv_prog_ac_ct_STRIP="strip"
|
---|
3013 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
3014 | break 2
|
---|
3015 | fi
|
---|
3016 | done
|
---|
3017 | done
|
---|
3018 | IFS=$as_save_IFS
|
---|
3019 |
|
---|
3020 | fi ;;
|
---|
3021 | esac
|
---|
3022 | fi
|
---|
3023 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
---|
3024 | if test -n "$ac_ct_STRIP"; then
|
---|
3025 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
|
---|
3026 | printf "%s\n" "$ac_ct_STRIP" >&6; }
|
---|
3027 | else
|
---|
3028 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3029 | printf "%s\n" "no" >&6; }
|
---|
3030 | fi
|
---|
3031 |
|
---|
3032 | if test "x$ac_ct_STRIP" = x; then
|
---|
3033 | STRIP=":"
|
---|
3034 | else
|
---|
3035 | case $cross_compiling:$ac_tool_warned in
|
---|
3036 | yes:)
|
---|
3037 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
3038 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
3039 | ac_tool_warned=yes ;;
|
---|
3040 | esac
|
---|
3041 | STRIP=$ac_ct_STRIP
|
---|
3042 | fi
|
---|
3043 | else
|
---|
3044 | STRIP="$ac_cv_prog_STRIP"
|
---|
3045 | fi
|
---|
3046 |
|
---|
3047 | fi
|
---|
3048 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
|
---|
3049 |
|
---|
3050 |
|
---|
3051 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
|
---|
3052 | printf %s "checking for a race-free mkdir -p... " >&6; }
|
---|
3053 | if test -z "$MKDIR_P"; then
|
---|
3054 | if test ${ac_cv_path_mkdir+y}
|
---|
3055 | then :
|
---|
3056 | printf %s "(cached) " >&6
|
---|
3057 | else case e in #(
|
---|
3058 | e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3059 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
|
---|
3060 | do
|
---|
3061 | IFS=$as_save_IFS
|
---|
3062 | case $as_dir in #(((
|
---|
3063 | '') as_dir=./ ;;
|
---|
3064 | */) ;;
|
---|
3065 | *) as_dir=$as_dir/ ;;
|
---|
3066 | esac
|
---|
3067 | for ac_prog in mkdir gmkdir; do
|
---|
3068 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3069 | as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
|
---|
3070 | case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
|
---|
3071 | 'mkdir ('*'coreutils) '* | \
|
---|
3072 | *'BusyBox '* | \
|
---|
3073 | 'mkdir (fileutils) '4.1*)
|
---|
3074 | ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
|
---|
3075 | break 3;;
|
---|
3076 | esac
|
---|
3077 | done
|
---|
3078 | done
|
---|
3079 | done
|
---|
3080 | IFS=$as_save_IFS
|
---|
3081 | ;;
|
---|
3082 | esac
|
---|
3083 | fi
|
---|
3084 |
|
---|
3085 | test -d ./--version && rmdir ./--version
|
---|
3086 | if test ${ac_cv_path_mkdir+y}; then
|
---|
3087 | MKDIR_P="$ac_cv_path_mkdir -p"
|
---|
3088 | else
|
---|
3089 | # As a last resort, use plain mkdir -p,
|
---|
3090 | # in the hope it doesn't have the bugs of ancient mkdir.
|
---|
3091 | MKDIR_P='mkdir -p'
|
---|
3092 | fi
|
---|
3093 | fi
|
---|
3094 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
|
---|
3095 | printf "%s\n" "$MKDIR_P" >&6; }
|
---|
3096 |
|
---|
3097 | for ac_prog in gawk mawk nawk awk
|
---|
3098 | do
|
---|
3099 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3100 | set dummy $ac_prog; ac_word=$2
|
---|
3101 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3102 | printf %s "checking for $ac_word... " >&6; }
|
---|
3103 | if test ${ac_cv_prog_AWK+y}
|
---|
3104 | then :
|
---|
3105 | printf %s "(cached) " >&6
|
---|
3106 | else case e in #(
|
---|
3107 | e) if test -n "$AWK"; then
|
---|
3108 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
3109 | else
|
---|
3110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3111 | for as_dir in $PATH
|
---|
3112 | do
|
---|
3113 | IFS=$as_save_IFS
|
---|
3114 | case $as_dir in #(((
|
---|
3115 | '') as_dir=./ ;;
|
---|
3116 | */) ;;
|
---|
3117 | *) as_dir=$as_dir/ ;;
|
---|
3118 | esac
|
---|
3119 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3120 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
3121 | ac_cv_prog_AWK="$ac_prog"
|
---|
3122 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
3123 | break 2
|
---|
3124 | fi
|
---|
3125 | done
|
---|
3126 | done
|
---|
3127 | IFS=$as_save_IFS
|
---|
3128 |
|
---|
3129 | fi ;;
|
---|
3130 | esac
|
---|
3131 | fi
|
---|
3132 | AWK=$ac_cv_prog_AWK
|
---|
3133 | if test -n "$AWK"; then
|
---|
3134 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
|
---|
3135 | printf "%s\n" "$AWK" >&6; }
|
---|
3136 | else
|
---|
3137 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3138 | printf "%s\n" "no" >&6; }
|
---|
3139 | fi
|
---|
3140 |
|
---|
3141 |
|
---|
3142 | test -n "$AWK" && break
|
---|
3143 | done
|
---|
3144 |
|
---|
3145 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
3146 | printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
|
---|
3147 | set x ${MAKE-make}
|
---|
3148 | ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
---|
3149 | if eval test \${ac_cv_prog_make_${ac_make}_set+y}
|
---|
3150 | then :
|
---|
3151 | printf %s "(cached) " >&6
|
---|
3152 | else case e in #(
|
---|
3153 | e) cat >conftest.make <<\_ACEOF
|
---|
3154 | SHELL = /bin/sh
|
---|
3155 | all:
|
---|
3156 | @echo '@@@%%%=$(MAKE)=@@@%%%'
|
---|
3157 | _ACEOF
|
---|
3158 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
|
---|
3159 | case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
---|
3160 | *@@@%%%=?*=@@@%%%*)
|
---|
3161 | eval ac_cv_prog_make_${ac_make}_set=yes;;
|
---|
3162 | *)
|
---|
3163 | eval ac_cv_prog_make_${ac_make}_set=no;;
|
---|
3164 | esac
|
---|
3165 | rm -f conftest.make ;;
|
---|
3166 | esac
|
---|
3167 | fi
|
---|
3168 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
---|
3169 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
3170 | printf "%s\n" "yes" >&6; }
|
---|
3171 | SET_MAKE=
|
---|
3172 | else
|
---|
3173 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3174 | printf "%s\n" "no" >&6; }
|
---|
3175 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
3176 | fi
|
---|
3177 |
|
---|
3178 | rm -rf .tst 2>/dev/null
|
---|
3179 | mkdir .tst 2>/dev/null
|
---|
3180 | if test -d .tst; then
|
---|
3181 | am__leading_dot=.
|
---|
3182 | else
|
---|
3183 | am__leading_dot=_
|
---|
3184 | fi
|
---|
3185 | rmdir .tst 2>/dev/null
|
---|
3186 |
|
---|
3187 | # Check whether --enable-silent-rules was given.
|
---|
3188 | if test ${enable_silent_rules+y}
|
---|
3189 | then :
|
---|
3190 | enableval=$enable_silent_rules;
|
---|
3191 | fi
|
---|
3192 |
|
---|
3193 | case $enable_silent_rules in # (((
|
---|
3194 | yes) AM_DEFAULT_VERBOSITY=0;;
|
---|
3195 | no) AM_DEFAULT_VERBOSITY=1;;
|
---|
3196 | *) AM_DEFAULT_VERBOSITY=1;;
|
---|
3197 | esac
|
---|
3198 | am_make=${MAKE-make}
|
---|
3199 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
|
---|
3200 | printf %s "checking whether $am_make supports nested variables... " >&6; }
|
---|
3201 | if test ${am_cv_make_support_nested_variables+y}
|
---|
3202 | then :
|
---|
3203 | printf %s "(cached) " >&6
|
---|
3204 | else case e in #(
|
---|
3205 | e) if printf "%s\n" 'TRUE=$(BAR$(V))
|
---|
3206 | BAR0=false
|
---|
3207 | BAR1=true
|
---|
3208 | V=1
|
---|
3209 | am__doit:
|
---|
3210 | @$(TRUE)
|
---|
3211 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
|
---|
3212 | am_cv_make_support_nested_variables=yes
|
---|
3213 | else
|
---|
3214 | am_cv_make_support_nested_variables=no
|
---|
3215 | fi ;;
|
---|
3216 | esac
|
---|
3217 | fi
|
---|
3218 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
|
---|
3219 | printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
|
---|
3220 | if test $am_cv_make_support_nested_variables = yes; then
|
---|
3221 | AM_V='$(V)'
|
---|
3222 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
|
---|
3223 | else
|
---|
3224 | AM_V=$AM_DEFAULT_VERBOSITY
|
---|
3225 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
|
---|
3226 | fi
|
---|
3227 | AM_BACKSLASH='\'
|
---|
3228 |
|
---|
3229 | if test "`cd $srcdir && pwd`" != "`pwd`"; then
|
---|
3230 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
|
---|
3231 | # is not polluted with repeated "-I."
|
---|
3232 | am__isrc=' -I$(srcdir)'
|
---|
3233 | # test to see if srcdir already configured
|
---|
3234 | if test -f $srcdir/config.status; then
|
---|
3235 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
|
---|
3236 | fi
|
---|
3237 | fi
|
---|
3238 |
|
---|
3239 | # test whether we have cygpath
|
---|
3240 | if test -z "$CYGPATH_W"; then
|
---|
3241 | if (cygpath --version) >/dev/null 2>/dev/null; then
|
---|
3242 | CYGPATH_W='cygpath -w'
|
---|
3243 | else
|
---|
3244 | CYGPATH_W=echo
|
---|
3245 | fi
|
---|
3246 | fi
|
---|
3247 |
|
---|
3248 |
|
---|
3249 | # Define the identity of the package.
|
---|
3250 | PACKAGE='libpng'
|
---|
3251 | VERSION='1.6.43'
|
---|
3252 |
|
---|
3253 |
|
---|
3254 | printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
|
---|
3255 |
|
---|
3256 |
|
---|
3257 | printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
|
---|
3258 |
|
---|
3259 | # Some tools Automake needs.
|
---|
3260 |
|
---|
3261 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
|
---|
3262 |
|
---|
3263 |
|
---|
3264 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
|
---|
3265 |
|
---|
3266 |
|
---|
3267 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
|
---|
3268 |
|
---|
3269 |
|
---|
3270 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
|
---|
3271 |
|
---|
3272 |
|
---|
3273 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
|
---|
3274 |
|
---|
3275 | # For better backward compatibility. To be removed once Automake 1.9.x
|
---|
3276 | # dies out for good. For more background, see:
|
---|
3277 | # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
|
---|
3278 | # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
|
---|
3279 | mkdir_p='$(MKDIR_P)'
|
---|
3280 |
|
---|
3281 | # We need awk for the "check" target (and possibly the TAP driver). The
|
---|
3282 | # system "awk" is bad on some platforms.
|
---|
3283 | # Always define AMTAR for backward compatibility. Yes, it's still used
|
---|
3284 | # in the wild :-( We should find a proper way to deprecate it ...
|
---|
3285 | AMTAR='$${TAR-tar}'
|
---|
3286 |
|
---|
3287 |
|
---|
3288 | # We'll loop over all known methods to create a tar archive until one works.
|
---|
3289 | _am_tools='gnutar pax cpio none'
|
---|
3290 |
|
---|
3291 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
|
---|
3292 |
|
---|
3293 |
|
---|
3294 |
|
---|
3295 |
|
---|
3296 |
|
---|
3297 | # Variables for tags utilities; see am/tags.am
|
---|
3298 | if test -z "$CTAGS"; then
|
---|
3299 | CTAGS=ctags
|
---|
3300 | fi
|
---|
3301 |
|
---|
3302 | if test -z "$ETAGS"; then
|
---|
3303 | ETAGS=etags
|
---|
3304 | fi
|
---|
3305 |
|
---|
3306 | if test -z "$CSCOPE"; then
|
---|
3307 | CSCOPE=cscope
|
---|
3308 | fi
|
---|
3309 |
|
---|
3310 |
|
---|
3311 |
|
---|
3312 | # POSIX will say in a future version that running "rm -f" with no argument
|
---|
3313 | # is OK; and we want to be able to make that assumption in our Makefile
|
---|
3314 | # recipes. So use an aggressive probe to check that the usage we want is
|
---|
3315 | # actually supported "in the wild" to an acceptable degree.
|
---|
3316 | # See automake bug#10828.
|
---|
3317 | # To make any issue more visible, cause the running configure to be aborted
|
---|
3318 | # by default if the 'rm' program in use doesn't match our expectations; the
|
---|
3319 | # user can still override this though.
|
---|
3320 | if rm -f && rm -fr && rm -rf; then : OK; else
|
---|
3321 | cat >&2 <<'END'
|
---|
3322 | Oops!
|
---|
3323 |
|
---|
3324 | Your 'rm' program seems unable to run without file operands specified
|
---|
3325 | on the command line, even when the '-f' option is present. This is contrary
|
---|
3326 | to the behaviour of most rm programs out there, and not conforming with
|
---|
3327 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
|
---|
3328 |
|
---|
3329 | Please tell [email protected] about your system, including the value
|
---|
3330 | of your $PATH and any error possibly output before this message. This
|
---|
3331 | can help us improve future automake versions.
|
---|
3332 |
|
---|
3333 | END
|
---|
3334 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
|
---|
3335 | echo 'Configuration will proceed anyway, since you have set the' >&2
|
---|
3336 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
|
---|
3337 | echo >&2
|
---|
3338 | else
|
---|
3339 | cat >&2 <<'END'
|
---|
3340 | Aborting the configuration process, to ensure you take notice of the issue.
|
---|
3341 |
|
---|
3342 | You can download and install GNU coreutils to get an 'rm' implementation
|
---|
3343 | that behaves properly: <https://www.gnu.org/software/coreutils/>.
|
---|
3344 |
|
---|
3345 | If you want to complete the configuration process using your problematic
|
---|
3346 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
|
---|
3347 | to "yes", and re-run configure.
|
---|
3348 |
|
---|
3349 | END
|
---|
3350 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
|
---|
3351 | fi
|
---|
3352 | fi
|
---|
3353 |
|
---|
3354 | # The following line causes --disable-maintainer-mode to be the default to
|
---|
3355 | # configure. This is necessary because libpng distributions cannot rely on the
|
---|
3356 | # time stamps of the autotools generated files being correct
|
---|
3357 |
|
---|
3358 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
|
---|
3359 | printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
|
---|
3360 | # Check whether --enable-maintainer-mode was given.
|
---|
3361 | if test ${enable_maintainer_mode+y}
|
---|
3362 | then :
|
---|
3363 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
|
---|
3364 | else case e in #(
|
---|
3365 | e) USE_MAINTAINER_MODE=no ;;
|
---|
3366 | esac
|
---|
3367 | fi
|
---|
3368 |
|
---|
3369 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
|
---|
3370 | printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
|
---|
3371 | if test $USE_MAINTAINER_MODE = yes; then
|
---|
3372 | MAINTAINER_MODE_TRUE=
|
---|
3373 | MAINTAINER_MODE_FALSE='#'
|
---|
3374 | else
|
---|
3375 | MAINTAINER_MODE_TRUE='#'
|
---|
3376 | MAINTAINER_MODE_FALSE=
|
---|
3377 | fi
|
---|
3378 |
|
---|
3379 | MAINT=$MAINTAINER_MODE_TRUE
|
---|
3380 |
|
---|
3381 |
|
---|
3382 |
|
---|
3383 |
|
---|
3384 | PNGLIB_VERSION=1.6.43
|
---|
3385 | PNGLIB_MAJOR=1
|
---|
3386 | PNGLIB_MINOR=6
|
---|
3387 | PNGLIB_RELEASE=43
|
---|
3388 |
|
---|
3389 |
|
---|
3390 |
|
---|
3391 | ac_config_headers="$ac_config_headers config.h"
|
---|
3392 |
|
---|
3393 |
|
---|
3394 | # Check for basic programs.
|
---|
3395 | ac_ext=c
|
---|
3396 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3397 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3398 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3399 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3400 |
|
---|
3401 |
|
---|
3402 |
|
---|
3403 |
|
---|
3404 |
|
---|
3405 |
|
---|
3406 |
|
---|
3407 |
|
---|
3408 |
|
---|
3409 |
|
---|
3410 | ac_ext=c
|
---|
3411 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3412 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3413 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3414 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3415 | if test -n "$ac_tool_prefix"; then
|
---|
3416 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
3417 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
3418 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3419 | printf %s "checking for $ac_word... " >&6; }
|
---|
3420 | if test ${ac_cv_prog_CC+y}
|
---|
3421 | then :
|
---|
3422 | printf %s "(cached) " >&6
|
---|
3423 | else case e in #(
|
---|
3424 | e) if test -n "$CC"; then
|
---|
3425 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
3426 | else
|
---|
3427 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3428 | for as_dir in $PATH
|
---|
3429 | do
|
---|
3430 | IFS=$as_save_IFS
|
---|
3431 | case $as_dir in #(((
|
---|
3432 | '') as_dir=./ ;;
|
---|
3433 | */) ;;
|
---|
3434 | *) as_dir=$as_dir/ ;;
|
---|
3435 | esac
|
---|
3436 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3437 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
3438 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
3439 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
3440 | break 2
|
---|
3441 | fi
|
---|
3442 | done
|
---|
3443 | done
|
---|
3444 | IFS=$as_save_IFS
|
---|
3445 |
|
---|
3446 | fi ;;
|
---|
3447 | esac
|
---|
3448 | fi
|
---|
3449 | CC=$ac_cv_prog_CC
|
---|
3450 | if test -n "$CC"; then
|
---|
3451 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
3452 | printf "%s\n" "$CC" >&6; }
|
---|
3453 | else
|
---|
3454 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3455 | printf "%s\n" "no" >&6; }
|
---|
3456 | fi
|
---|
3457 |
|
---|
3458 |
|
---|
3459 | fi
|
---|
3460 | if test -z "$ac_cv_prog_CC"; then
|
---|
3461 | ac_ct_CC=$CC
|
---|
3462 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
3463 | set dummy gcc; ac_word=$2
|
---|
3464 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3465 | printf %s "checking for $ac_word... " >&6; }
|
---|
3466 | if test ${ac_cv_prog_ac_ct_CC+y}
|
---|
3467 | then :
|
---|
3468 | printf %s "(cached) " >&6
|
---|
3469 | else case e in #(
|
---|
3470 | e) if test -n "$ac_ct_CC"; then
|
---|
3471 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
3472 | else
|
---|
3473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3474 | for as_dir in $PATH
|
---|
3475 | do
|
---|
3476 | IFS=$as_save_IFS
|
---|
3477 | case $as_dir in #(((
|
---|
3478 | '') as_dir=./ ;;
|
---|
3479 | */) ;;
|
---|
3480 | *) as_dir=$as_dir/ ;;
|
---|
3481 | esac
|
---|
3482 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3483 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
3484 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
3485 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
3486 | break 2
|
---|
3487 | fi
|
---|
3488 | done
|
---|
3489 | done
|
---|
3490 | IFS=$as_save_IFS
|
---|
3491 |
|
---|
3492 | fi ;;
|
---|
3493 | esac
|
---|
3494 | fi
|
---|
3495 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
3496 | if test -n "$ac_ct_CC"; then
|
---|
3497 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
3498 | printf "%s\n" "$ac_ct_CC" >&6; }
|
---|
3499 | else
|
---|
3500 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3501 | printf "%s\n" "no" >&6; }
|
---|
3502 | fi
|
---|
3503 |
|
---|
3504 | if test "x$ac_ct_CC" = x; then
|
---|
3505 | CC=""
|
---|
3506 | else
|
---|
3507 | case $cross_compiling:$ac_tool_warned in
|
---|
3508 | yes:)
|
---|
3509 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
3510 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
3511 | ac_tool_warned=yes ;;
|
---|
3512 | esac
|
---|
3513 | CC=$ac_ct_CC
|
---|
3514 | fi
|
---|
3515 | else
|
---|
3516 | CC="$ac_cv_prog_CC"
|
---|
3517 | fi
|
---|
3518 |
|
---|
3519 | if test -z "$CC"; then
|
---|
3520 | if test -n "$ac_tool_prefix"; then
|
---|
3521 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
3522 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
3523 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3524 | printf %s "checking for $ac_word... " >&6; }
|
---|
3525 | if test ${ac_cv_prog_CC+y}
|
---|
3526 | then :
|
---|
3527 | printf %s "(cached) " >&6
|
---|
3528 | else case e in #(
|
---|
3529 | e) if test -n "$CC"; then
|
---|
3530 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
3531 | else
|
---|
3532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3533 | for as_dir in $PATH
|
---|
3534 | do
|
---|
3535 | IFS=$as_save_IFS
|
---|
3536 | case $as_dir in #(((
|
---|
3537 | '') as_dir=./ ;;
|
---|
3538 | */) ;;
|
---|
3539 | *) as_dir=$as_dir/ ;;
|
---|
3540 | esac
|
---|
3541 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3542 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
3543 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
3544 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
3545 | break 2
|
---|
3546 | fi
|
---|
3547 | done
|
---|
3548 | done
|
---|
3549 | IFS=$as_save_IFS
|
---|
3550 |
|
---|
3551 | fi ;;
|
---|
3552 | esac
|
---|
3553 | fi
|
---|
3554 | CC=$ac_cv_prog_CC
|
---|
3555 | if test -n "$CC"; then
|
---|
3556 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
3557 | printf "%s\n" "$CC" >&6; }
|
---|
3558 | else
|
---|
3559 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3560 | printf "%s\n" "no" >&6; }
|
---|
3561 | fi
|
---|
3562 |
|
---|
3563 |
|
---|
3564 | fi
|
---|
3565 | fi
|
---|
3566 | if test -z "$CC"; then
|
---|
3567 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
3568 | set dummy cc; ac_word=$2
|
---|
3569 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3570 | printf %s "checking for $ac_word... " >&6; }
|
---|
3571 | if test ${ac_cv_prog_CC+y}
|
---|
3572 | then :
|
---|
3573 | printf %s "(cached) " >&6
|
---|
3574 | else case e in #(
|
---|
3575 | e) if test -n "$CC"; then
|
---|
3576 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
3577 | else
|
---|
3578 | ac_prog_rejected=no
|
---|
3579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3580 | for as_dir in $PATH
|
---|
3581 | do
|
---|
3582 | IFS=$as_save_IFS
|
---|
3583 | case $as_dir in #(((
|
---|
3584 | '') as_dir=./ ;;
|
---|
3585 | */) ;;
|
---|
3586 | *) as_dir=$as_dir/ ;;
|
---|
3587 | esac
|
---|
3588 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3589 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
3590 | if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
3591 | ac_prog_rejected=yes
|
---|
3592 | continue
|
---|
3593 | fi
|
---|
3594 | ac_cv_prog_CC="cc"
|
---|
3595 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
3596 | break 2
|
---|
3597 | fi
|
---|
3598 | done
|
---|
3599 | done
|
---|
3600 | IFS=$as_save_IFS
|
---|
3601 |
|
---|
3602 | if test $ac_prog_rejected = yes; then
|
---|
3603 | # We found a bogon in the path, so make sure we never use it.
|
---|
3604 | set dummy $ac_cv_prog_CC
|
---|
3605 | shift
|
---|
3606 | if test $# != 0; then
|
---|
3607 | # We chose a different compiler from the bogus one.
|
---|
3608 | # However, it has the same basename, so the bogon will be chosen
|
---|
3609 | # first if we set CC to just the basename; use the full file name.
|
---|
3610 | shift
|
---|
3611 | ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
|
---|
3612 | fi
|
---|
3613 | fi
|
---|
3614 | fi ;;
|
---|
3615 | esac
|
---|
3616 | fi
|
---|
3617 | CC=$ac_cv_prog_CC
|
---|
3618 | if test -n "$CC"; then
|
---|
3619 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
3620 | printf "%s\n" "$CC" >&6; }
|
---|
3621 | else
|
---|
3622 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3623 | printf "%s\n" "no" >&6; }
|
---|
3624 | fi
|
---|
3625 |
|
---|
3626 |
|
---|
3627 | fi
|
---|
3628 | if test -z "$CC"; then
|
---|
3629 | if test -n "$ac_tool_prefix"; then
|
---|
3630 | for ac_prog in cl.exe
|
---|
3631 | do
|
---|
3632 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
3633 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
3634 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3635 | printf %s "checking for $ac_word... " >&6; }
|
---|
3636 | if test ${ac_cv_prog_CC+y}
|
---|
3637 | then :
|
---|
3638 | printf %s "(cached) " >&6
|
---|
3639 | else case e in #(
|
---|
3640 | e) if test -n "$CC"; then
|
---|
3641 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
3642 | else
|
---|
3643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3644 | for as_dir in $PATH
|
---|
3645 | do
|
---|
3646 | IFS=$as_save_IFS
|
---|
3647 | case $as_dir in #(((
|
---|
3648 | '') as_dir=./ ;;
|
---|
3649 | */) ;;
|
---|
3650 | *) as_dir=$as_dir/ ;;
|
---|
3651 | esac
|
---|
3652 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3653 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
3654 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
3655 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
3656 | break 2
|
---|
3657 | fi
|
---|
3658 | done
|
---|
3659 | done
|
---|
3660 | IFS=$as_save_IFS
|
---|
3661 |
|
---|
3662 | fi ;;
|
---|
3663 | esac
|
---|
3664 | fi
|
---|
3665 | CC=$ac_cv_prog_CC
|
---|
3666 | if test -n "$CC"; then
|
---|
3667 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
3668 | printf "%s\n" "$CC" >&6; }
|
---|
3669 | else
|
---|
3670 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3671 | printf "%s\n" "no" >&6; }
|
---|
3672 | fi
|
---|
3673 |
|
---|
3674 |
|
---|
3675 | test -n "$CC" && break
|
---|
3676 | done
|
---|
3677 | fi
|
---|
3678 | if test -z "$CC"; then
|
---|
3679 | ac_ct_CC=$CC
|
---|
3680 | for ac_prog in cl.exe
|
---|
3681 | do
|
---|
3682 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3683 | set dummy $ac_prog; ac_word=$2
|
---|
3684 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3685 | printf %s "checking for $ac_word... " >&6; }
|
---|
3686 | if test ${ac_cv_prog_ac_ct_CC+y}
|
---|
3687 | then :
|
---|
3688 | printf %s "(cached) " >&6
|
---|
3689 | else case e in #(
|
---|
3690 | e) if test -n "$ac_ct_CC"; then
|
---|
3691 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
3692 | else
|
---|
3693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3694 | for as_dir in $PATH
|
---|
3695 | do
|
---|
3696 | IFS=$as_save_IFS
|
---|
3697 | case $as_dir in #(((
|
---|
3698 | '') as_dir=./ ;;
|
---|
3699 | */) ;;
|
---|
3700 | *) as_dir=$as_dir/ ;;
|
---|
3701 | esac
|
---|
3702 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3703 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
3704 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
3705 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
3706 | break 2
|
---|
3707 | fi
|
---|
3708 | done
|
---|
3709 | done
|
---|
3710 | IFS=$as_save_IFS
|
---|
3711 |
|
---|
3712 | fi ;;
|
---|
3713 | esac
|
---|
3714 | fi
|
---|
3715 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
3716 | if test -n "$ac_ct_CC"; then
|
---|
3717 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
3718 | printf "%s\n" "$ac_ct_CC" >&6; }
|
---|
3719 | else
|
---|
3720 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3721 | printf "%s\n" "no" >&6; }
|
---|
3722 | fi
|
---|
3723 |
|
---|
3724 |
|
---|
3725 | test -n "$ac_ct_CC" && break
|
---|
3726 | done
|
---|
3727 |
|
---|
3728 | if test "x$ac_ct_CC" = x; then
|
---|
3729 | CC=""
|
---|
3730 | else
|
---|
3731 | case $cross_compiling:$ac_tool_warned in
|
---|
3732 | yes:)
|
---|
3733 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
3734 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
3735 | ac_tool_warned=yes ;;
|
---|
3736 | esac
|
---|
3737 | CC=$ac_ct_CC
|
---|
3738 | fi
|
---|
3739 | fi
|
---|
3740 |
|
---|
3741 | fi
|
---|
3742 | if test -z "$CC"; then
|
---|
3743 | if test -n "$ac_tool_prefix"; then
|
---|
3744 | # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
|
---|
3745 | set dummy ${ac_tool_prefix}clang; ac_word=$2
|
---|
3746 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3747 | printf %s "checking for $ac_word... " >&6; }
|
---|
3748 | if test ${ac_cv_prog_CC+y}
|
---|
3749 | then :
|
---|
3750 | printf %s "(cached) " >&6
|
---|
3751 | else case e in #(
|
---|
3752 | e) if test -n "$CC"; then
|
---|
3753 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
3754 | else
|
---|
3755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3756 | for as_dir in $PATH
|
---|
3757 | do
|
---|
3758 | IFS=$as_save_IFS
|
---|
3759 | case $as_dir in #(((
|
---|
3760 | '') as_dir=./ ;;
|
---|
3761 | */) ;;
|
---|
3762 | *) as_dir=$as_dir/ ;;
|
---|
3763 | esac
|
---|
3764 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3765 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
3766 | ac_cv_prog_CC="${ac_tool_prefix}clang"
|
---|
3767 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
3768 | break 2
|
---|
3769 | fi
|
---|
3770 | done
|
---|
3771 | done
|
---|
3772 | IFS=$as_save_IFS
|
---|
3773 |
|
---|
3774 | fi ;;
|
---|
3775 | esac
|
---|
3776 | fi
|
---|
3777 | CC=$ac_cv_prog_CC
|
---|
3778 | if test -n "$CC"; then
|
---|
3779 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
3780 | printf "%s\n" "$CC" >&6; }
|
---|
3781 | else
|
---|
3782 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3783 | printf "%s\n" "no" >&6; }
|
---|
3784 | fi
|
---|
3785 |
|
---|
3786 |
|
---|
3787 | fi
|
---|
3788 | if test -z "$ac_cv_prog_CC"; then
|
---|
3789 | ac_ct_CC=$CC
|
---|
3790 | # Extract the first word of "clang", so it can be a program name with args.
|
---|
3791 | set dummy clang; ac_word=$2
|
---|
3792 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3793 | printf %s "checking for $ac_word... " >&6; }
|
---|
3794 | if test ${ac_cv_prog_ac_ct_CC+y}
|
---|
3795 | then :
|
---|
3796 | printf %s "(cached) " >&6
|
---|
3797 | else case e in #(
|
---|
3798 | e) if test -n "$ac_ct_CC"; then
|
---|
3799 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
3800 | else
|
---|
3801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3802 | for as_dir in $PATH
|
---|
3803 | do
|
---|
3804 | IFS=$as_save_IFS
|
---|
3805 | case $as_dir in #(((
|
---|
3806 | '') as_dir=./ ;;
|
---|
3807 | */) ;;
|
---|
3808 | *) as_dir=$as_dir/ ;;
|
---|
3809 | esac
|
---|
3810 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3811 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
3812 | ac_cv_prog_ac_ct_CC="clang"
|
---|
3813 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
3814 | break 2
|
---|
3815 | fi
|
---|
3816 | done
|
---|
3817 | done
|
---|
3818 | IFS=$as_save_IFS
|
---|
3819 |
|
---|
3820 | fi ;;
|
---|
3821 | esac
|
---|
3822 | fi
|
---|
3823 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
3824 | if test -n "$ac_ct_CC"; then
|
---|
3825 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
3826 | printf "%s\n" "$ac_ct_CC" >&6; }
|
---|
3827 | else
|
---|
3828 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3829 | printf "%s\n" "no" >&6; }
|
---|
3830 | fi
|
---|
3831 |
|
---|
3832 | if test "x$ac_ct_CC" = x; then
|
---|
3833 | CC=""
|
---|
3834 | else
|
---|
3835 | case $cross_compiling:$ac_tool_warned in
|
---|
3836 | yes:)
|
---|
3837 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
3838 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
3839 | ac_tool_warned=yes ;;
|
---|
3840 | esac
|
---|
3841 | CC=$ac_ct_CC
|
---|
3842 | fi
|
---|
3843 | else
|
---|
3844 | CC="$ac_cv_prog_CC"
|
---|
3845 | fi
|
---|
3846 |
|
---|
3847 | fi
|
---|
3848 |
|
---|
3849 |
|
---|
3850 | test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
|
---|
3851 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
|
---|
3852 | as_fn_error $? "no acceptable C compiler found in \$PATH
|
---|
3853 | See 'config.log' for more details" "$LINENO" 5; }
|
---|
3854 |
|
---|
3855 | # Provide some information about the compiler.
|
---|
3856 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
---|
3857 | set X $ac_compile
|
---|
3858 | ac_compiler=$2
|
---|
3859 | for ac_option in --version -v -V -qversion -version; do
|
---|
3860 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
3861 | case "(($ac_try" in
|
---|
3862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3863 | *) ac_try_echo=$ac_try;;
|
---|
3864 | esac
|
---|
3865 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3866 | printf "%s\n" "$ac_try_echo"; } >&5
|
---|
3867 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
3868 | ac_status=$?
|
---|
3869 | if test -s conftest.err; then
|
---|
3870 | sed '10a\
|
---|
3871 | ... rest of stderr output deleted ...
|
---|
3872 | 10q' conftest.err >conftest.er1
|
---|
3873 | cat conftest.er1 >&5
|
---|
3874 | fi
|
---|
3875 | rm -f conftest.er1 conftest.err
|
---|
3876 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3877 | test $ac_status = 0; }
|
---|
3878 | done
|
---|
3879 |
|
---|
3880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3881 | /* end confdefs.h. */
|
---|
3882 |
|
---|
3883 | int
|
---|
3884 | main (void)
|
---|
3885 | {
|
---|
3886 |
|
---|
3887 | ;
|
---|
3888 | return 0;
|
---|
3889 | }
|
---|
3890 | _ACEOF
|
---|
3891 | ac_clean_files_save=$ac_clean_files
|
---|
3892 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
|
---|
3893 | # Try to create an executable without -o first, disregard a.out.
|
---|
3894 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
3895 | # of exeext.
|
---|
3896 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
|
---|
3897 | printf %s "checking whether the C compiler works... " >&6; }
|
---|
3898 | ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
3899 |
|
---|
3900 | # The possible output files:
|
---|
3901 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
|
---|
3902 |
|
---|
3903 | ac_rmfiles=
|
---|
3904 | for ac_file in $ac_files
|
---|
3905 | do
|
---|
3906 | case $ac_file in
|
---|
3907 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
3908 | * ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
---|
3909 | esac
|
---|
3910 | done
|
---|
3911 | rm -f $ac_rmfiles
|
---|
3912 |
|
---|
3913 | if { { ac_try="$ac_link_default"
|
---|
3914 | case "(($ac_try" in
|
---|
3915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3916 | *) ac_try_echo=$ac_try;;
|
---|
3917 | esac
|
---|
3918 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3919 | printf "%s\n" "$ac_try_echo"; } >&5
|
---|
3920 | (eval "$ac_link_default") 2>&5
|
---|
3921 | ac_status=$?
|
---|
3922 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3923 | test $ac_status = 0; }
|
---|
3924 | then :
|
---|
3925 | # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
|
---|
3926 | # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
|
---|
3927 | # in a Makefile. We should not override ac_cv_exeext if it was cached,
|
---|
3928 | # so that the user can short-circuit this test for compilers unknown to
|
---|
3929 | # Autoconf.
|
---|
3930 | for ac_file in $ac_files ''
|
---|
3931 | do
|
---|
3932 | test -f "$ac_file" || continue
|
---|
3933 | case $ac_file in
|
---|
3934 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
|
---|
3935 | ;;
|
---|
3936 | [ab].out )
|
---|
3937 | # We found the default executable, but exeext='' is most
|
---|
3938 | # certainly right.
|
---|
3939 | break;;
|
---|
3940 | *.* )
|
---|
3941 | if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
|
---|
3942 | then :; else
|
---|
3943 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
3944 | fi
|
---|
3945 | # We set ac_cv_exeext here because the later test for it is not
|
---|
3946 | # safe: cross compilers may not add the suffix if given an '-o'
|
---|
3947 | # argument, so we may need to know it at that point already.
|
---|
3948 | # Even if this section looks crufty: it has the advantage of
|
---|
3949 | # actually working.
|
---|
3950 | break;;
|
---|
3951 | * )
|
---|
3952 | break;;
|
---|
3953 | esac
|
---|
3954 | done
|
---|
3955 | test "$ac_cv_exeext" = no && ac_cv_exeext=
|
---|
3956 |
|
---|
3957 | else case e in #(
|
---|
3958 | e) ac_file='' ;;
|
---|
3959 | esac
|
---|
3960 | fi
|
---|
3961 | if test -z "$ac_file"
|
---|
3962 | then :
|
---|
3963 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3964 | printf "%s\n" "no" >&6; }
|
---|
3965 | printf "%s\n" "$as_me: failed program was:" >&5
|
---|
3966 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3967 |
|
---|
3968 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
|
---|
3969 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
|
---|
3970 | as_fn_error 77 "C compiler cannot create executables
|
---|
3971 | See 'config.log' for more details" "$LINENO" 5; }
|
---|
3972 | else case e in #(
|
---|
3973 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
3974 | printf "%s\n" "yes" >&6; } ;;
|
---|
3975 | esac
|
---|
3976 | fi
|
---|
3977 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
|
---|
3978 | printf %s "checking for C compiler default output file name... " >&6; }
|
---|
3979 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
---|
3980 | printf "%s\n" "$ac_file" >&6; }
|
---|
3981 | ac_exeext=$ac_cv_exeext
|
---|
3982 |
|
---|
3983 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
|
---|
3984 | ac_clean_files=$ac_clean_files_save
|
---|
3985 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
|
---|
3986 | printf %s "checking for suffix of executables... " >&6; }
|
---|
3987 | if { { ac_try="$ac_link"
|
---|
3988 | case "(($ac_try" in
|
---|
3989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3990 | *) ac_try_echo=$ac_try;;
|
---|
3991 | esac
|
---|
3992 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3993 | printf "%s\n" "$ac_try_echo"; } >&5
|
---|
3994 | (eval "$ac_link") 2>&5
|
---|
3995 | ac_status=$?
|
---|
3996 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3997 | test $ac_status = 0; }
|
---|
3998 | then :
|
---|
3999 | # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
|
---|
4000 | # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
|
---|
4001 | # work properly (i.e., refer to 'conftest.exe'), while it won't with
|
---|
4002 | # 'rm'.
|
---|
4003 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
4004 | test -f "$ac_file" || continue
|
---|
4005 | case $ac_file in
|
---|
4006 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
4007 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
4008 | break;;
|
---|
4009 | * ) break;;
|
---|
4010 | esac
|
---|
4011 | done
|
---|
4012 | else case e in #(
|
---|
4013 | e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
|
---|
4014 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
|
---|
4015 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link
|
---|
4016 | See 'config.log' for more details" "$LINENO" 5; } ;;
|
---|
4017 | esac
|
---|
4018 | fi
|
---|
4019 | rm -f conftest conftest$ac_cv_exeext
|
---|
4020 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
|
---|
4021 | printf "%s\n" "$ac_cv_exeext" >&6; }
|
---|
4022 |
|
---|
4023 | rm -f conftest.$ac_ext
|
---|
4024 | EXEEXT=$ac_cv_exeext
|
---|
4025 | ac_exeext=$EXEEXT
|
---|
4026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4027 | /* end confdefs.h. */
|
---|
4028 | #include <stdio.h>
|
---|
4029 | int
|
---|
4030 | main (void)
|
---|
4031 | {
|
---|
4032 | FILE *f = fopen ("conftest.out", "w");
|
---|
4033 | if (!f)
|
---|
4034 | return 1;
|
---|
4035 | return ferror (f) || fclose (f) != 0;
|
---|
4036 |
|
---|
4037 | ;
|
---|
4038 | return 0;
|
---|
4039 | }
|
---|
4040 | _ACEOF
|
---|
4041 | ac_clean_files="$ac_clean_files conftest.out"
|
---|
4042 | # Check that the compiler produces executables we can run. If not, either
|
---|
4043 | # the compiler is broken, or we cross compile.
|
---|
4044 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
---|
4045 | printf %s "checking whether we are cross compiling... " >&6; }
|
---|
4046 | if test "$cross_compiling" != yes; then
|
---|
4047 | { { ac_try="$ac_link"
|
---|
4048 | case "(($ac_try" in
|
---|
4049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4050 | *) ac_try_echo=$ac_try;;
|
---|
4051 | esac
|
---|
4052 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
4053 | printf "%s\n" "$ac_try_echo"; } >&5
|
---|
4054 | (eval "$ac_link") 2>&5
|
---|
4055 | ac_status=$?
|
---|
4056 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
4057 | test $ac_status = 0; }
|
---|
4058 | if { ac_try='./conftest$ac_cv_exeext'
|
---|
4059 | { { case "(($ac_try" in
|
---|
4060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4061 | *) ac_try_echo=$ac_try;;
|
---|
4062 | esac
|
---|
4063 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
4064 | printf "%s\n" "$ac_try_echo"; } >&5
|
---|
4065 | (eval "$ac_try") 2>&5
|
---|
4066 | ac_status=$?
|
---|
4067 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
4068 | test $ac_status = 0; }; }; then
|
---|
4069 | cross_compiling=no
|
---|
4070 | else
|
---|
4071 | if test "$cross_compiling" = maybe; then
|
---|
4072 | cross_compiling=yes
|
---|
4073 | else
|
---|
4074 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
|
---|
4075 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
|
---|
4076 | as_fn_error 77 "cannot run C compiled programs.
|
---|
4077 | If you meant to cross compile, use '--host'.
|
---|
4078 | See 'config.log' for more details" "$LINENO" 5; }
|
---|
4079 | fi
|
---|
4080 | fi
|
---|
4081 | fi
|
---|
4082 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
---|
4083 | printf "%s\n" "$cross_compiling" >&6; }
|
---|
4084 |
|
---|
4085 | rm -f conftest.$ac_ext conftest$ac_cv_exeext \
|
---|
4086 | conftest.o conftest.obj conftest.out
|
---|
4087 | ac_clean_files=$ac_clean_files_save
|
---|
4088 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
|
---|
4089 | printf %s "checking for suffix of object files... " >&6; }
|
---|
4090 | if test ${ac_cv_objext+y}
|
---|
4091 | then :
|
---|
4092 | printf %s "(cached) " >&6
|
---|
4093 | else case e in #(
|
---|
4094 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4095 | /* end confdefs.h. */
|
---|
4096 |
|
---|
4097 | int
|
---|
4098 | main (void)
|
---|
4099 | {
|
---|
4100 |
|
---|
4101 | ;
|
---|
4102 | return 0;
|
---|
4103 | }
|
---|
4104 | _ACEOF
|
---|
4105 | rm -f conftest.o conftest.obj
|
---|
4106 | if { { ac_try="$ac_compile"
|
---|
4107 | case "(($ac_try" in
|
---|
4108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4109 | *) ac_try_echo=$ac_try;;
|
---|
4110 | esac
|
---|
4111 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
4112 | printf "%s\n" "$ac_try_echo"; } >&5
|
---|
4113 | (eval "$ac_compile") 2>&5
|
---|
4114 | ac_status=$?
|
---|
4115 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
4116 | test $ac_status = 0; }
|
---|
4117 | then :
|
---|
4118 | for ac_file in conftest.o conftest.obj conftest.*; do
|
---|
4119 | test -f "$ac_file" || continue;
|
---|
4120 | case $ac_file in
|
---|
4121 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
|
---|
4122 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
4123 | break;;
|
---|
4124 | esac
|
---|
4125 | done
|
---|
4126 | else case e in #(
|
---|
4127 | e) printf "%s\n" "$as_me: failed program was:" >&5
|
---|
4128 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4129 |
|
---|
4130 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
|
---|
4131 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
|
---|
4132 | as_fn_error $? "cannot compute suffix of object files: cannot compile
|
---|
4133 | See 'config.log' for more details" "$LINENO" 5; } ;;
|
---|
4134 | esac
|
---|
4135 | fi
|
---|
4136 | rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
|
---|
4137 | esac
|
---|
4138 | fi
|
---|
4139 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
|
---|
4140 | printf "%s\n" "$ac_cv_objext" >&6; }
|
---|
4141 | OBJEXT=$ac_cv_objext
|
---|
4142 | ac_objext=$OBJEXT
|
---|
4143 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
|
---|
4144 | printf %s "checking whether the compiler supports GNU C... " >&6; }
|
---|
4145 | if test ${ac_cv_c_compiler_gnu+y}
|
---|
4146 | then :
|
---|
4147 | printf %s "(cached) " >&6
|
---|
4148 | else case e in #(
|
---|
4149 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4150 | /* end confdefs.h. */
|
---|
4151 |
|
---|
4152 | int
|
---|
4153 | main (void)
|
---|
4154 | {
|
---|
4155 | #ifndef __GNUC__
|
---|
4156 | choke me
|
---|
4157 | #endif
|
---|
4158 |
|
---|
4159 | ;
|
---|
4160 | return 0;
|
---|
4161 | }
|
---|
4162 | _ACEOF
|
---|
4163 | if ac_fn_c_try_compile "$LINENO"
|
---|
4164 | then :
|
---|
4165 | ac_compiler_gnu=yes
|
---|
4166 | else case e in #(
|
---|
4167 | e) ac_compiler_gnu=no ;;
|
---|
4168 | esac
|
---|
4169 | fi
|
---|
4170 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
4171 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
4172 | ;;
|
---|
4173 | esac
|
---|
4174 | fi
|
---|
4175 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
---|
4176 | printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
|
---|
4177 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
4178 |
|
---|
4179 | if test $ac_compiler_gnu = yes; then
|
---|
4180 | GCC=yes
|
---|
4181 | else
|
---|
4182 | GCC=
|
---|
4183 | fi
|
---|
4184 | ac_test_CFLAGS=${CFLAGS+y}
|
---|
4185 | ac_save_CFLAGS=$CFLAGS
|
---|
4186 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
---|
4187 | printf %s "checking whether $CC accepts -g... " >&6; }
|
---|
4188 | if test ${ac_cv_prog_cc_g+y}
|
---|
4189 | then :
|
---|
4190 | printf %s "(cached) " >&6
|
---|
4191 | else case e in #(
|
---|
4192 | e) ac_save_c_werror_flag=$ac_c_werror_flag
|
---|
4193 | ac_c_werror_flag=yes
|
---|
4194 | ac_cv_prog_cc_g=no
|
---|
4195 | CFLAGS="-g"
|
---|
4196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4197 | /* end confdefs.h. */
|
---|
4198 |
|
---|
4199 | int
|
---|
4200 | main (void)
|
---|
4201 | {
|
---|
4202 |
|
---|
4203 | ;
|
---|
4204 | return 0;
|
---|
4205 | }
|
---|
4206 | _ACEOF
|
---|
4207 | if ac_fn_c_try_compile "$LINENO"
|
---|
4208 | then :
|
---|
4209 | ac_cv_prog_cc_g=yes
|
---|
4210 | else case e in #(
|
---|
4211 | e) CFLAGS=""
|
---|
4212 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4213 | /* end confdefs.h. */
|
---|
4214 |
|
---|
4215 | int
|
---|
4216 | main (void)
|
---|
4217 | {
|
---|
4218 |
|
---|
4219 | ;
|
---|
4220 | return 0;
|
---|
4221 | }
|
---|
4222 | _ACEOF
|
---|
4223 | if ac_fn_c_try_compile "$LINENO"
|
---|
4224 | then :
|
---|
4225 |
|
---|
4226 | else case e in #(
|
---|
4227 | e) ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
4228 | CFLAGS="-g"
|
---|
4229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4230 | /* end confdefs.h. */
|
---|
4231 |
|
---|
4232 | int
|
---|
4233 | main (void)
|
---|
4234 | {
|
---|
4235 |
|
---|
4236 | ;
|
---|
4237 | return 0;
|
---|
4238 | }
|
---|
4239 | _ACEOF
|
---|
4240 | if ac_fn_c_try_compile "$LINENO"
|
---|
4241 | then :
|
---|
4242 | ac_cv_prog_cc_g=yes
|
---|
4243 | fi
|
---|
4244 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
|
---|
4245 | esac
|
---|
4246 | fi
|
---|
4247 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
|
---|
4248 | esac
|
---|
4249 | fi
|
---|
4250 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
4251 | ac_c_werror_flag=$ac_save_c_werror_flag ;;
|
---|
4252 | esac
|
---|
4253 | fi
|
---|
4254 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
---|
4255 | printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
|
---|
4256 | if test $ac_test_CFLAGS; then
|
---|
4257 | CFLAGS=$ac_save_CFLAGS
|
---|
4258 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
4259 | if test "$GCC" = yes; then
|
---|
4260 | CFLAGS="-g -O2"
|
---|
4261 | else
|
---|
4262 | CFLAGS="-g"
|
---|
4263 | fi
|
---|
4264 | else
|
---|
4265 | if test "$GCC" = yes; then
|
---|
4266 | CFLAGS="-O2"
|
---|
4267 | else
|
---|
4268 | CFLAGS=
|
---|
4269 | fi
|
---|
4270 | fi
|
---|
4271 | ac_prog_cc_stdc=no
|
---|
4272 | if test x$ac_prog_cc_stdc = xno
|
---|
4273 | then :
|
---|
4274 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
|
---|
4275 | printf %s "checking for $CC option to enable C11 features... " >&6; }
|
---|
4276 | if test ${ac_cv_prog_cc_c11+y}
|
---|
4277 | then :
|
---|
4278 | printf %s "(cached) " >&6
|
---|
4279 | else case e in #(
|
---|
4280 | e) ac_cv_prog_cc_c11=no
|
---|
4281 | ac_save_CC=$CC
|
---|
4282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4283 | /* end confdefs.h. */
|
---|
4284 | $ac_c_conftest_c11_program
|
---|
4285 | _ACEOF
|
---|
4286 | for ac_arg in '' -std=gnu11
|
---|
4287 | do
|
---|
4288 | CC="$ac_save_CC $ac_arg"
|
---|
4289 | if ac_fn_c_try_compile "$LINENO"
|
---|
4290 | then :
|
---|
4291 | ac_cv_prog_cc_c11=$ac_arg
|
---|
4292 | fi
|
---|
4293 | rm -f core conftest.err conftest.$ac_objext conftest.beam
|
---|
4294 | test "x$ac_cv_prog_cc_c11" != "xno" && break
|
---|
4295 | done
|
---|
4296 | rm -f conftest.$ac_ext
|
---|
4297 | CC=$ac_save_CC ;;
|
---|
4298 | esac
|
---|
4299 | fi
|
---|
4300 |
|
---|
4301 | if test "x$ac_cv_prog_cc_c11" = xno
|
---|
4302 | then :
|
---|
4303 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
---|
4304 | printf "%s\n" "unsupported" >&6; }
|
---|
4305 | else case e in #(
|
---|
4306 | e) if test "x$ac_cv_prog_cc_c11" = x
|
---|
4307 | then :
|
---|
4308 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
---|
4309 | printf "%s\n" "none needed" >&6; }
|
---|
4310 | else case e in #(
|
---|
4311 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
|
---|
4312 | printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
|
---|
4313 | CC="$CC $ac_cv_prog_cc_c11" ;;
|
---|
4314 | esac
|
---|
4315 | fi
|
---|
4316 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
|
---|
4317 | ac_prog_cc_stdc=c11 ;;
|
---|
4318 | esac
|
---|
4319 | fi
|
---|
4320 | fi
|
---|
4321 | if test x$ac_prog_cc_stdc = xno
|
---|
4322 | then :
|
---|
4323 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
|
---|
4324 | printf %s "checking for $CC option to enable C99 features... " >&6; }
|
---|
4325 | if test ${ac_cv_prog_cc_c99+y}
|
---|
4326 | then :
|
---|
4327 | printf %s "(cached) " >&6
|
---|
4328 | else case e in #(
|
---|
4329 | e) ac_cv_prog_cc_c99=no
|
---|
4330 | ac_save_CC=$CC
|
---|
4331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4332 | /* end confdefs.h. */
|
---|
4333 | $ac_c_conftest_c99_program
|
---|
4334 | _ACEOF
|
---|
4335 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
|
---|
4336 | do
|
---|
4337 | CC="$ac_save_CC $ac_arg"
|
---|
4338 | if ac_fn_c_try_compile "$LINENO"
|
---|
4339 | then :
|
---|
4340 | ac_cv_prog_cc_c99=$ac_arg
|
---|
4341 | fi
|
---|
4342 | rm -f core conftest.err conftest.$ac_objext conftest.beam
|
---|
4343 | test "x$ac_cv_prog_cc_c99" != "xno" && break
|
---|
4344 | done
|
---|
4345 | rm -f conftest.$ac_ext
|
---|
4346 | CC=$ac_save_CC ;;
|
---|
4347 | esac
|
---|
4348 | fi
|
---|
4349 |
|
---|
4350 | if test "x$ac_cv_prog_cc_c99" = xno
|
---|
4351 | then :
|
---|
4352 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
---|
4353 | printf "%s\n" "unsupported" >&6; }
|
---|
4354 | else case e in #(
|
---|
4355 | e) if test "x$ac_cv_prog_cc_c99" = x
|
---|
4356 | then :
|
---|
4357 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
---|
4358 | printf "%s\n" "none needed" >&6; }
|
---|
4359 | else case e in #(
|
---|
4360 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
|
---|
4361 | printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
|
---|
4362 | CC="$CC $ac_cv_prog_cc_c99" ;;
|
---|
4363 | esac
|
---|
4364 | fi
|
---|
4365 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
|
---|
4366 | ac_prog_cc_stdc=c99 ;;
|
---|
4367 | esac
|
---|
4368 | fi
|
---|
4369 | fi
|
---|
4370 | if test x$ac_prog_cc_stdc = xno
|
---|
4371 | then :
|
---|
4372 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
|
---|
4373 | printf %s "checking for $CC option to enable C89 features... " >&6; }
|
---|
4374 | if test ${ac_cv_prog_cc_c89+y}
|
---|
4375 | then :
|
---|
4376 | printf %s "(cached) " >&6
|
---|
4377 | else case e in #(
|
---|
4378 | e) ac_cv_prog_cc_c89=no
|
---|
4379 | ac_save_CC=$CC
|
---|
4380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4381 | /* end confdefs.h. */
|
---|
4382 | $ac_c_conftest_c89_program
|
---|
4383 | _ACEOF
|
---|
4384 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
4385 | do
|
---|
4386 | CC="$ac_save_CC $ac_arg"
|
---|
4387 | if ac_fn_c_try_compile "$LINENO"
|
---|
4388 | then :
|
---|
4389 | ac_cv_prog_cc_c89=$ac_arg
|
---|
4390 | fi
|
---|
4391 | rm -f core conftest.err conftest.$ac_objext conftest.beam
|
---|
4392 | test "x$ac_cv_prog_cc_c89" != "xno" && break
|
---|
4393 | done
|
---|
4394 | rm -f conftest.$ac_ext
|
---|
4395 | CC=$ac_save_CC ;;
|
---|
4396 | esac
|
---|
4397 | fi
|
---|
4398 |
|
---|
4399 | if test "x$ac_cv_prog_cc_c89" = xno
|
---|
4400 | then :
|
---|
4401 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
---|
4402 | printf "%s\n" "unsupported" >&6; }
|
---|
4403 | else case e in #(
|
---|
4404 | e) if test "x$ac_cv_prog_cc_c89" = x
|
---|
4405 | then :
|
---|
4406 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
---|
4407 | printf "%s\n" "none needed" >&6; }
|
---|
4408 | else case e in #(
|
---|
4409 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
---|
4410 | printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
|
---|
4411 | CC="$CC $ac_cv_prog_cc_c89" ;;
|
---|
4412 | esac
|
---|
4413 | fi
|
---|
4414 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
|
---|
4415 | ac_prog_cc_stdc=c89 ;;
|
---|
4416 | esac
|
---|
4417 | fi
|
---|
4418 | fi
|
---|
4419 |
|
---|
4420 | ac_ext=c
|
---|
4421 | ac_cpp='$CPP $CPPFLAGS'
|
---|
4422 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
4423 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
4424 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
4425 |
|
---|
4426 |
|
---|
4427 | ac_ext=c
|
---|
4428 | ac_cpp='$CPP $CPPFLAGS'
|
---|
4429 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
4430 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
4431 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
4432 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
|
---|
4433 | printf %s "checking whether $CC understands -c and -o together... " >&6; }
|
---|
4434 | if test ${am_cv_prog_cc_c_o+y}
|
---|
4435 | then :
|
---|
4436 | printf %s "(cached) " >&6
|
---|
4437 | else case e in #(
|
---|
4438 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4439 | /* end confdefs.h. */
|
---|
4440 |
|
---|
4441 | int
|
---|
4442 | main (void)
|
---|
4443 | {
|
---|
4444 |
|
---|
4445 | ;
|
---|
4446 | return 0;
|
---|
4447 | }
|
---|
4448 | _ACEOF
|
---|
4449 | # Make sure it works both with $CC and with simple cc.
|
---|
4450 | # Following AC_PROG_CC_C_O, we do the test twice because some
|
---|
4451 | # compilers refuse to overwrite an existing .o file with -o,
|
---|
4452 | # though they will create one.
|
---|
4453 | am_cv_prog_cc_c_o=yes
|
---|
4454 | for am_i in 1 2; do
|
---|
4455 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
|
---|
4456 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
|
---|
4457 | ac_status=$?
|
---|
4458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4459 | (exit $ac_status); } \
|
---|
4460 | && test -f conftest2.$ac_objext; then
|
---|
4461 | : OK
|
---|
4462 | else
|
---|
4463 | am_cv_prog_cc_c_o=no
|
---|
4464 | break
|
---|
4465 | fi
|
---|
4466 | done
|
---|
4467 | rm -f core conftest*
|
---|
4468 | unset am_i ;;
|
---|
4469 | esac
|
---|
4470 | fi
|
---|
4471 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
|
---|
4472 | printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
|
---|
4473 | if test "$am_cv_prog_cc_c_o" != yes; then
|
---|
4474 | # Losing compiler, so override with the script.
|
---|
4475 | # FIXME: It is wrong to rewrite CC.
|
---|
4476 | # But if we don't then we get into trouble of one sort or another.
|
---|
4477 | # A longer-term fix would be to have automake use am__CC in this case,
|
---|
4478 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
|
---|
4479 | CC="$am_aux_dir/compile $CC"
|
---|
4480 | fi
|
---|
4481 | ac_ext=c
|
---|
4482 | ac_cpp='$CPP $CPPFLAGS'
|
---|
4483 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
4484 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
4485 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
4486 |
|
---|
4487 | DEPDIR="${am__leading_dot}deps"
|
---|
4488 |
|
---|
4489 | ac_config_commands="$ac_config_commands depfiles"
|
---|
4490 |
|
---|
4491 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
|
---|
4492 | printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
|
---|
4493 | cat > confinc.mk << 'END'
|
---|
4494 | am__doit:
|
---|
4495 | @echo this is the am__doit target >confinc.out
|
---|
4496 | .PHONY: am__doit
|
---|
4497 | END
|
---|
4498 | am__include="#"
|
---|
4499 | am__quote=
|
---|
4500 | # BSD make does it like this.
|
---|
4501 | echo '.include "confinc.mk" # ignored' > confmf.BSD
|
---|
4502 | # Other make implementations (GNU, Solaris 10, AIX) do it like this.
|
---|
4503 | echo 'include confinc.mk # ignored' > confmf.GNU
|
---|
4504 | _am_result=no
|
---|
4505 | for s in GNU BSD; do
|
---|
4506 | { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
|
---|
4507 | (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
|
---|
4508 | ac_status=$?
|
---|
4509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4510 | (exit $ac_status); }
|
---|
4511 | case $?:`cat confinc.out 2>/dev/null` in #(
|
---|
4512 | '0:this is the am__doit target') :
|
---|
4513 | case $s in #(
|
---|
4514 | BSD) :
|
---|
4515 | am__include='.include' am__quote='"' ;; #(
|
---|
4516 | *) :
|
---|
4517 | am__include='include' am__quote='' ;;
|
---|
4518 | esac ;; #(
|
---|
4519 | *) :
|
---|
4520 | ;;
|
---|
4521 | esac
|
---|
4522 | if test "$am__include" != "#"; then
|
---|
4523 | _am_result="yes ($s style)"
|
---|
4524 | break
|
---|
4525 | fi
|
---|
4526 | done
|
---|
4527 | rm -f confinc.* confmf.*
|
---|
4528 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
|
---|
4529 | printf "%s\n" "${_am_result}" >&6; }
|
---|
4530 |
|
---|
4531 | # Check whether --enable-dependency-tracking was given.
|
---|
4532 | if test ${enable_dependency_tracking+y}
|
---|
4533 | then :
|
---|
4534 | enableval=$enable_dependency_tracking;
|
---|
4535 | fi
|
---|
4536 |
|
---|
4537 | if test "x$enable_dependency_tracking" != xno; then
|
---|
4538 | am_depcomp="$ac_aux_dir/depcomp"
|
---|
4539 | AMDEPBACKSLASH='\'
|
---|
4540 | am__nodep='_no'
|
---|
4541 | fi
|
---|
4542 | if test "x$enable_dependency_tracking" != xno; then
|
---|
4543 | AMDEP_TRUE=
|
---|
4544 | AMDEP_FALSE='#'
|
---|
4545 | else
|
---|
4546 | AMDEP_TRUE='#'
|
---|
4547 | AMDEP_FALSE=
|
---|
4548 | fi
|
---|
4549 |
|
---|
4550 |
|
---|
4551 |
|
---|
4552 | depcc="$CC" am_compiler_list=
|
---|
4553 |
|
---|
4554 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
|
---|
4555 | printf %s "checking dependency style of $depcc... " >&6; }
|
---|
4556 | if test ${am_cv_CC_dependencies_compiler_type+y}
|
---|
4557 | then :
|
---|
4558 | printf %s "(cached) " >&6
|
---|
4559 | else case e in #(
|
---|
4560 | e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
---|
4561 | # We make a subdir and do the tests there. Otherwise we can end up
|
---|
4562 | # making bogus files that we don't know about and never remove. For
|
---|
4563 | # instance it was reported that on HP-UX the gcc test will end up
|
---|
4564 | # making a dummy file named 'D' -- because '-MD' means "put the output
|
---|
4565 | # in D".
|
---|
4566 | rm -rf conftest.dir
|
---|
4567 | mkdir conftest.dir
|
---|
4568 | # Copy depcomp to subdir because otherwise we won't find it if we're
|
---|
4569 | # using a relative directory.
|
---|
4570 | cp "$am_depcomp" conftest.dir
|
---|
4571 | cd conftest.dir
|
---|
4572 | # We will build objects and dependencies in a subdirectory because
|
---|
4573 | # it helps to detect inapplicable dependency modes. For instance
|
---|
4574 | # both Tru64's cc and ICC support -MD to output dependencies as a
|
---|
4575 | # side effect of compilation, but ICC will put the dependencies in
|
---|
4576 | # the current directory while Tru64 will put them in the object
|
---|
4577 | # directory.
|
---|
4578 | mkdir sub
|
---|
4579 |
|
---|
4580 | am_cv_CC_dependencies_compiler_type=none
|
---|
4581 | if test "$am_compiler_list" = ""; then
|
---|
4582 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
|
---|
4583 | fi
|
---|
4584 | am__universal=false
|
---|
4585 | case " $depcc " in #(
|
---|
4586 | *\ -arch\ *\ -arch\ *) am__universal=true ;;
|
---|
4587 | esac
|
---|
4588 |
|
---|
4589 | for depmode in $am_compiler_list; do
|
---|
4590 | # Setup a source with many dependencies, because some compilers
|
---|
4591 | # like to wrap large dependency lists on column 80 (with \), and
|
---|
4592 | # we should not choose a depcomp mode which is confused by this.
|
---|
4593 | #
|
---|
4594 | # We need to recreate these files for each test, as the compiler may
|
---|
4595 | # overwrite some of them when testing with obscure command lines.
|
---|
4596 | # This happens at least with the AIX C compiler.
|
---|
4597 | : > sub/conftest.c
|
---|
4598 | for i in 1 2 3 4 5 6; do
|
---|
4599 | echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
---|
4600 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
|
---|
4601 | # Solaris 10 /bin/sh.
|
---|
4602 | echo '/* dummy */' > sub/conftst$i.h
|
---|
4603 | done
|
---|
4604 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
---|
4605 |
|
---|
4606 | # We check with '-c' and '-o' for the sake of the "dashmstdout"
|
---|
4607 | # mode. It turns out that the SunPro C++ compiler does not properly
|
---|
4608 | # handle '-M -o', and we need to detect this. Also, some Intel
|
---|
4609 | # versions had trouble with output in subdirs.
|
---|
4610 | am__obj=sub/conftest.${OBJEXT-o}
|
---|
4611 | am__minus_obj="-o $am__obj"
|
---|
4612 | case $depmode in
|
---|
4613 | gcc)
|
---|
4614 | # This depmode causes a compiler race in universal mode.
|
---|
4615 | test "$am__universal" = false || continue
|
---|
4616 | ;;
|
---|
4617 | nosideeffect)
|
---|
4618 | # After this tag, mechanisms are not by side-effect, so they'll
|
---|
4619 | # only be used when explicitly requested.
|
---|
4620 | if test "x$enable_dependency_tracking" = xyes; then
|
---|
4621 | continue
|
---|
4622 | else
|
---|
4623 | break
|
---|
4624 | fi
|
---|
4625 | ;;
|
---|
4626 | msvc7 | msvc7msys | msvisualcpp | msvcmsys)
|
---|
4627 | # This compiler won't grok '-c -o', but also, the minuso test has
|
---|
4628 | # not run yet. These depmodes are late enough in the game, and
|
---|
4629 | # so weak that their functioning should not be impacted.
|
---|
4630 | am__obj=conftest.${OBJEXT-o}
|
---|
4631 | am__minus_obj=
|
---|
4632 | ;;
|
---|
4633 | none) break ;;
|
---|
4634 | esac
|
---|
4635 | if depmode=$depmode \
|
---|
4636 | source=sub/conftest.c object=$am__obj \
|
---|
4637 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
---|
4638 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
|
---|
4639 | >/dev/null 2>conftest.err &&
|
---|
4640 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
---|
4641 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
---|
4642 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
|
---|
4643 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
---|
4644 | # icc doesn't choke on unknown options, it will just issue warnings
|
---|
4645 | # or remarks (even with -Werror). So we grep stderr for any message
|
---|
4646 | # that says an option was ignored or not supported.
|
---|
4647 | # When given -MP, icc 7.0 and 7.1 complain thusly:
|
---|
4648 | # icc: Command line warning: ignoring option '-M'; no argument required
|
---|
4649 | # The diagnosis changed in icc 8.0:
|
---|
4650 | # icc: Command line remark: option '-MP' not supported
|
---|
4651 | if (grep 'ignoring option' conftest.err ||
|
---|
4652 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
---|
4653 | am_cv_CC_dependencies_compiler_type=$depmode
|
---|
4654 | break
|
---|
4655 | fi
|
---|
4656 | fi
|
---|
4657 | done
|
---|
4658 |
|
---|
4659 | cd ..
|
---|
4660 | rm -rf conftest.dir
|
---|
4661 | else
|
---|
4662 | am_cv_CC_dependencies_compiler_type=none
|
---|
4663 | fi
|
---|
4664 | ;;
|
---|
4665 | esac
|
---|
4666 | fi
|
---|
4667 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
|
---|
4668 | printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
|
---|
4669 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
|
---|
4670 |
|
---|
4671 | if
|
---|
4672 | test "x$enable_dependency_tracking" != xno \
|
---|
4673 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
|
---|
4674 | am__fastdepCC_TRUE=
|
---|
4675 | am__fastdepCC_FALSE='#'
|
---|
4676 | else
|
---|
4677 | am__fastdepCC_TRUE='#'
|
---|
4678 | am__fastdepCC_FALSE=
|
---|
4679 | fi
|
---|
4680 |
|
---|
4681 |
|
---|
4682 | # By default we simply use the C compiler to build assembly code.
|
---|
4683 |
|
---|
4684 | test "${CCAS+set}" = set || CCAS=$CC
|
---|
4685 | test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
|
---|
4686 |
|
---|
4687 |
|
---|
4688 |
|
---|
4689 | depcc="$CCAS" am_compiler_list=
|
---|
4690 |
|
---|
4691 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
|
---|
4692 | printf %s "checking dependency style of $depcc... " >&6; }
|
---|
4693 | if test ${am_cv_CCAS_dependencies_compiler_type+y}
|
---|
4694 | then :
|
---|
4695 | printf %s "(cached) " >&6
|
---|
4696 | else case e in #(
|
---|
4697 | e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
---|
4698 | # We make a subdir and do the tests there. Otherwise we can end up
|
---|
4699 | # making bogus files that we don't know about and never remove. For
|
---|
4700 | # instance it was reported that on HP-UX the gcc test will end up
|
---|
4701 | # making a dummy file named 'D' -- because '-MD' means "put the output
|
---|
4702 | # in D".
|
---|
4703 | rm -rf conftest.dir
|
---|
4704 | mkdir conftest.dir
|
---|
4705 | # Copy depcomp to subdir because otherwise we won't find it if we're
|
---|
4706 | # using a relative directory.
|
---|
4707 | cp "$am_depcomp" conftest.dir
|
---|
4708 | cd conftest.dir
|
---|
4709 | # We will build objects and dependencies in a subdirectory because
|
---|
4710 | # it helps to detect inapplicable dependency modes. For instance
|
---|
4711 | # both Tru64's cc and ICC support -MD to output dependencies as a
|
---|
4712 | # side effect of compilation, but ICC will put the dependencies in
|
---|
4713 | # the current directory while Tru64 will put them in the object
|
---|
4714 | # directory.
|
---|
4715 | mkdir sub
|
---|
4716 |
|
---|
4717 | am_cv_CCAS_dependencies_compiler_type=none
|
---|
4718 | if test "$am_compiler_list" = ""; then
|
---|
4719 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
|
---|
4720 | fi
|
---|
4721 | am__universal=false
|
---|
4722 |
|
---|
4723 |
|
---|
4724 | for depmode in $am_compiler_list; do
|
---|
4725 | # Setup a source with many dependencies, because some compilers
|
---|
4726 | # like to wrap large dependency lists on column 80 (with \), and
|
---|
4727 | # we should not choose a depcomp mode which is confused by this.
|
---|
4728 | #
|
---|
4729 | # We need to recreate these files for each test, as the compiler may
|
---|
4730 | # overwrite some of them when testing with obscure command lines.
|
---|
4731 | # This happens at least with the AIX C compiler.
|
---|
4732 | : > sub/conftest.c
|
---|
4733 | for i in 1 2 3 4 5 6; do
|
---|
4734 | echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
---|
4735 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
|
---|
4736 | # Solaris 10 /bin/sh.
|
---|
4737 | echo '/* dummy */' > sub/conftst$i.h
|
---|
4738 | done
|
---|
4739 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
---|
4740 |
|
---|
4741 | # We check with '-c' and '-o' for the sake of the "dashmstdout"
|
---|
4742 | # mode. It turns out that the SunPro C++ compiler does not properly
|
---|
4743 | # handle '-M -o', and we need to detect this. Also, some Intel
|
---|
4744 | # versions had trouble with output in subdirs.
|
---|
4745 | am__obj=sub/conftest.${OBJEXT-o}
|
---|
4746 | am__minus_obj="-o $am__obj"
|
---|
4747 | case $depmode in
|
---|
4748 | gcc)
|
---|
4749 | # This depmode causes a compiler race in universal mode.
|
---|
4750 | test "$am__universal" = false || continue
|
---|
4751 | ;;
|
---|
4752 | nosideeffect)
|
---|
4753 | # After this tag, mechanisms are not by side-effect, so they'll
|
---|
4754 | # only be used when explicitly requested.
|
---|
4755 | if test "x$enable_dependency_tracking" = xyes; then
|
---|
4756 | continue
|
---|
4757 | else
|
---|
4758 | break
|
---|
4759 | fi
|
---|
4760 | ;;
|
---|
4761 | msvc7 | msvc7msys | msvisualcpp | msvcmsys)
|
---|
4762 | # This compiler won't grok '-c -o', but also, the minuso test has
|
---|
4763 | # not run yet. These depmodes are late enough in the game, and
|
---|
4764 | # so weak that their functioning should not be impacted.
|
---|
4765 | am__obj=conftest.${OBJEXT-o}
|
---|
4766 | am__minus_obj=
|
---|
4767 | ;;
|
---|
4768 | none) break ;;
|
---|
4769 | esac
|
---|
4770 | if depmode=$depmode \
|
---|
4771 | source=sub/conftest.c object=$am__obj \
|
---|
4772 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
---|
4773 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
|
---|
4774 | >/dev/null 2>conftest.err &&
|
---|
4775 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
---|
4776 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
---|
4777 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
|
---|
4778 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
---|
4779 | # icc doesn't choke on unknown options, it will just issue warnings
|
---|
4780 | # or remarks (even with -Werror). So we grep stderr for any message
|
---|
4781 | # that says an option was ignored or not supported.
|
---|
4782 | # When given -MP, icc 7.0 and 7.1 complain thusly:
|
---|
4783 | # icc: Command line warning: ignoring option '-M'; no argument required
|
---|
4784 | # The diagnosis changed in icc 8.0:
|
---|
4785 | # icc: Command line remark: option '-MP' not supported
|
---|
4786 | if (grep 'ignoring option' conftest.err ||
|
---|
4787 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
---|
4788 | am_cv_CCAS_dependencies_compiler_type=$depmode
|
---|
4789 | break
|
---|
4790 | fi
|
---|
4791 | fi
|
---|
4792 | done
|
---|
4793 |
|
---|
4794 | cd ..
|
---|
4795 | rm -rf conftest.dir
|
---|
4796 | else
|
---|
4797 | am_cv_CCAS_dependencies_compiler_type=none
|
---|
4798 | fi
|
---|
4799 | ;;
|
---|
4800 | esac
|
---|
4801 | fi
|
---|
4802 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
|
---|
4803 | printf "%s\n" "$am_cv_CCAS_dependencies_compiler_type" >&6; }
|
---|
4804 | CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
|
---|
4805 |
|
---|
4806 | if
|
---|
4807 | test "x$enable_dependency_tracking" != xno \
|
---|
4808 | && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
|
---|
4809 | am__fastdepCCAS_TRUE=
|
---|
4810 | am__fastdepCCAS_FALSE='#'
|
---|
4811 | else
|
---|
4812 | am__fastdepCCAS_TRUE='#'
|
---|
4813 | am__fastdepCCAS_FALSE=
|
---|
4814 | fi
|
---|
4815 |
|
---|
4816 |
|
---|
4817 |
|
---|
4818 |
|
---|
4819 | # Make sure we can run config.sub.
|
---|
4820 | $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
|
---|
4821 | as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
|
---|
4822 |
|
---|
4823 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
|
---|
4824 | printf %s "checking build system type... " >&6; }
|
---|
4825 | if test ${ac_cv_build+y}
|
---|
4826 | then :
|
---|
4827 | printf %s "(cached) " >&6
|
---|
4828 | else case e in #(
|
---|
4829 | e) ac_build_alias=$build_alias
|
---|
4830 | test "x$ac_build_alias" = x &&
|
---|
4831 | ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
|
---|
4832 | test "x$ac_build_alias" = x &&
|
---|
4833 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
|
---|
4834 | ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
|
---|
4835 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
|
---|
4836 | ;;
|
---|
4837 | esac
|
---|
4838 | fi
|
---|
4839 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
|
---|
4840 | printf "%s\n" "$ac_cv_build" >&6; }
|
---|
4841 | case $ac_cv_build in
|
---|
4842 | *-*-*) ;;
|
---|
4843 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
|
---|
4844 | esac
|
---|
4845 | build=$ac_cv_build
|
---|
4846 | ac_save_IFS=$IFS; IFS='-'
|
---|
4847 | set x $ac_cv_build
|
---|
4848 | shift
|
---|
4849 | build_cpu=$1
|
---|
4850 | build_vendor=$2
|
---|
4851 | shift; shift
|
---|
4852 | # Remember, the first character of IFS is used to create $*,
|
---|
4853 | # except with old shells:
|
---|
4854 | build_os=$*
|
---|
4855 | IFS=$ac_save_IFS
|
---|
4856 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
---|
4857 |
|
---|
4858 |
|
---|
4859 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
|
---|
4860 | printf %s "checking host system type... " >&6; }
|
---|
4861 | if test ${ac_cv_host+y}
|
---|
4862 | then :
|
---|
4863 | printf %s "(cached) " >&6
|
---|
4864 | else case e in #(
|
---|
4865 | e) if test "x$host_alias" = x; then
|
---|
4866 | ac_cv_host=$ac_cv_build
|
---|
4867 | else
|
---|
4868 | ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
|
---|
4869 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
|
---|
4870 | fi
|
---|
4871 | ;;
|
---|
4872 | esac
|
---|
4873 | fi
|
---|
4874 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
|
---|
4875 | printf "%s\n" "$ac_cv_host" >&6; }
|
---|
4876 | case $ac_cv_host in
|
---|
4877 | *-*-*) ;;
|
---|
4878 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
|
---|
4879 | esac
|
---|
4880 | host=$ac_cv_host
|
---|
4881 | ac_save_IFS=$IFS; IFS='-'
|
---|
4882 | set x $ac_cv_host
|
---|
4883 | shift
|
---|
4884 | host_cpu=$1
|
---|
4885 | host_vendor=$2
|
---|
4886 | shift; shift
|
---|
4887 | # Remember, the first character of IFS is used to create $*,
|
---|
4888 | # except with old shells:
|
---|
4889 | host_os=$*
|
---|
4890 | IFS=$ac_save_IFS
|
---|
4891 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
---|
4892 |
|
---|
4893 |
|
---|
4894 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
|
---|
4895 | printf %s "checking for a sed that does not truncate output... " >&6; }
|
---|
4896 | if test ${ac_cv_path_SED+y}
|
---|
4897 | then :
|
---|
4898 | printf %s "(cached) " >&6
|
---|
4899 | else case e in #(
|
---|
4900 | e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
|
---|
4901 | for ac_i in 1 2 3 4 5 6 7; do
|
---|
4902 | ac_script="$ac_script$as_nl$ac_script"
|
---|
4903 | done
|
---|
4904 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
|
---|
4905 | { ac_script=; unset ac_script;}
|
---|
4906 | if test -z "$SED"; then
|
---|
4907 | ac_path_SED_found=false
|
---|
4908 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
4909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4910 | for as_dir in $PATH
|
---|
4911 | do
|
---|
4912 | IFS=$as_save_IFS
|
---|
4913 | case $as_dir in #(((
|
---|
4914 | '') as_dir=./ ;;
|
---|
4915 | */) ;;
|
---|
4916 | *) as_dir=$as_dir/ ;;
|
---|
4917 | esac
|
---|
4918 | for ac_prog in sed gsed
|
---|
4919 | do
|
---|
4920 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4921 | ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
|
---|
4922 | as_fn_executable_p "$ac_path_SED" || continue
|
---|
4923 | # Check for GNU ac_path_SED and select it if it is found.
|
---|
4924 | # Check for GNU $ac_path_SED
|
---|
4925 | case `"$ac_path_SED" --version 2>&1` in #(
|
---|
4926 | *GNU*)
|
---|
4927 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
|
---|
4928 | #(
|
---|
4929 | *)
|
---|
4930 | ac_count=0
|
---|
4931 | printf %s 0123456789 >"conftest.in"
|
---|
4932 | while :
|
---|
4933 | do
|
---|
4934 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
4935 | mv "conftest.tmp" "conftest.in"
|
---|
4936 | cp "conftest.in" "conftest.nl"
|
---|
4937 | printf "%s\n" '' >> "conftest.nl"
|
---|
4938 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
4939 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
4940 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
4941 | if test $ac_count -gt ${ac_path_SED_max-0}; then
|
---|
4942 | # Best one so far, save it but keep looking for a better one
|
---|
4943 | ac_cv_path_SED="$ac_path_SED"
|
---|
4944 | ac_path_SED_max=$ac_count
|
---|
4945 | fi
|
---|
4946 | # 10*(2^10) chars as input seems more than enough
|
---|
4947 | test $ac_count -gt 10 && break
|
---|
4948 | done
|
---|
4949 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
4950 | esac
|
---|
4951 |
|
---|
4952 | $ac_path_SED_found && break 3
|
---|
4953 | done
|
---|
4954 | done
|
---|
4955 | done
|
---|
4956 | IFS=$as_save_IFS
|
---|
4957 | if test -z "$ac_cv_path_SED"; then
|
---|
4958 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
|
---|
4959 | fi
|
---|
4960 | else
|
---|
4961 | ac_cv_path_SED=$SED
|
---|
4962 | fi
|
---|
4963 | ;;
|
---|
4964 | esac
|
---|
4965 | fi
|
---|
4966 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
|
---|
4967 | printf "%s\n" "$ac_cv_path_SED" >&6; }
|
---|
4968 | SED="$ac_cv_path_SED"
|
---|
4969 | rm -f conftest.sed
|
---|
4970 |
|
---|
4971 | test -z "$SED" && SED=sed
|
---|
4972 | Xsed="$SED -e 1s/^X//"
|
---|
4973 |
|
---|
4974 |
|
---|
4975 |
|
---|
4976 |
|
---|
4977 |
|
---|
4978 |
|
---|
4979 |
|
---|
4980 |
|
---|
4981 |
|
---|
4982 |
|
---|
4983 |
|
---|
4984 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
|
---|
4985 | printf %s "checking for grep that handles long lines and -e... " >&6; }
|
---|
4986 | if test ${ac_cv_path_GREP+y}
|
---|
4987 | then :
|
---|
4988 | printf %s "(cached) " >&6
|
---|
4989 | else case e in #(
|
---|
4990 | e) if test -z "$GREP"; then
|
---|
4991 | ac_path_GREP_found=false
|
---|
4992 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
4993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4994 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
4995 | do
|
---|
4996 | IFS=$as_save_IFS
|
---|
4997 | case $as_dir in #(((
|
---|
4998 | '') as_dir=./ ;;
|
---|
4999 | */) ;;
|
---|
5000 | *) as_dir=$as_dir/ ;;
|
---|
5001 | esac
|
---|
5002 | for ac_prog in grep ggrep
|
---|
5003 | do
|
---|
5004 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5005 | ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
|
---|
5006 | as_fn_executable_p "$ac_path_GREP" || continue
|
---|
5007 | # Check for GNU ac_path_GREP and select it if it is found.
|
---|
5008 | # Check for GNU $ac_path_GREP
|
---|
5009 | case `"$ac_path_GREP" --version 2>&1` in #(
|
---|
5010 | *GNU*)
|
---|
5011 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
---|
5012 | #(
|
---|
5013 | *)
|
---|
5014 | ac_count=0
|
---|
5015 | printf %s 0123456789 >"conftest.in"
|
---|
5016 | while :
|
---|
5017 | do
|
---|
5018 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
5019 | mv "conftest.tmp" "conftest.in"
|
---|
5020 | cp "conftest.in" "conftest.nl"
|
---|
5021 | printf "%s\n" 'GREP' >> "conftest.nl"
|
---|
5022 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
5023 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
5024 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
5025 | if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
---|
5026 | # Best one so far, save it but keep looking for a better one
|
---|
5027 | ac_cv_path_GREP="$ac_path_GREP"
|
---|
5028 | ac_path_GREP_max=$ac_count
|
---|
5029 | fi
|
---|
5030 | # 10*(2^10) chars as input seems more than enough
|
---|
5031 | test $ac_count -gt 10 && break
|
---|
5032 | done
|
---|
5033 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
5034 | esac
|
---|
5035 |
|
---|
5036 | $ac_path_GREP_found && break 3
|
---|
5037 | done
|
---|
5038 | done
|
---|
5039 | done
|
---|
5040 | IFS=$as_save_IFS
|
---|
5041 | if test -z "$ac_cv_path_GREP"; then
|
---|
5042 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
5043 | fi
|
---|
5044 | else
|
---|
5045 | ac_cv_path_GREP=$GREP
|
---|
5046 | fi
|
---|
5047 | ;;
|
---|
5048 | esac
|
---|
5049 | fi
|
---|
5050 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
|
---|
5051 | printf "%s\n" "$ac_cv_path_GREP" >&6; }
|
---|
5052 | GREP="$ac_cv_path_GREP"
|
---|
5053 |
|
---|
5054 |
|
---|
5055 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
|
---|
5056 | printf %s "checking for egrep... " >&6; }
|
---|
5057 | if test ${ac_cv_path_EGREP+y}
|
---|
5058 | then :
|
---|
5059 | printf %s "(cached) " >&6
|
---|
5060 | else case e in #(
|
---|
5061 | e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
---|
5062 | then ac_cv_path_EGREP="$GREP -E"
|
---|
5063 | else
|
---|
5064 | if test -z "$EGREP"; then
|
---|
5065 | ac_path_EGREP_found=false
|
---|
5066 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
5067 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5068 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
5069 | do
|
---|
5070 | IFS=$as_save_IFS
|
---|
5071 | case $as_dir in #(((
|
---|
5072 | '') as_dir=./ ;;
|
---|
5073 | */) ;;
|
---|
5074 | *) as_dir=$as_dir/ ;;
|
---|
5075 | esac
|
---|
5076 | for ac_prog in egrep
|
---|
5077 | do
|
---|
5078 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5079 | ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
|
---|
5080 | as_fn_executable_p "$ac_path_EGREP" || continue
|
---|
5081 | # Check for GNU ac_path_EGREP and select it if it is found.
|
---|
5082 | # Check for GNU $ac_path_EGREP
|
---|
5083 | case `"$ac_path_EGREP" --version 2>&1` in #(
|
---|
5084 | *GNU*)
|
---|
5085 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
---|
5086 | #(
|
---|
5087 | *)
|
---|
5088 | ac_count=0
|
---|
5089 | printf %s 0123456789 >"conftest.in"
|
---|
5090 | while :
|
---|
5091 | do
|
---|
5092 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
5093 | mv "conftest.tmp" "conftest.in"
|
---|
5094 | cp "conftest.in" "conftest.nl"
|
---|
5095 | printf "%s\n" 'EGREP' >> "conftest.nl"
|
---|
5096 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
5097 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
5098 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
5099 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
---|
5100 | # Best one so far, save it but keep looking for a better one
|
---|
5101 | ac_cv_path_EGREP="$ac_path_EGREP"
|
---|
5102 | ac_path_EGREP_max=$ac_count
|
---|
5103 | fi
|
---|
5104 | # 10*(2^10) chars as input seems more than enough
|
---|
5105 | test $ac_count -gt 10 && break
|
---|
5106 | done
|
---|
5107 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
5108 | esac
|
---|
5109 |
|
---|
5110 | $ac_path_EGREP_found && break 3
|
---|
5111 | done
|
---|
5112 | done
|
---|
5113 | done
|
---|
5114 | IFS=$as_save_IFS
|
---|
5115 | if test -z "$ac_cv_path_EGREP"; then
|
---|
5116 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
5117 | fi
|
---|
5118 | else
|
---|
5119 | ac_cv_path_EGREP=$EGREP
|
---|
5120 | fi
|
---|
5121 |
|
---|
5122 | fi ;;
|
---|
5123 | esac
|
---|
5124 | fi
|
---|
5125 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
|
---|
5126 | printf "%s\n" "$ac_cv_path_EGREP" >&6; }
|
---|
5127 | EGREP="$ac_cv_path_EGREP"
|
---|
5128 |
|
---|
5129 | EGREP_TRADITIONAL=$EGREP
|
---|
5130 | ac_cv_path_EGREP_TRADITIONAL=$EGREP
|
---|
5131 |
|
---|
5132 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
|
---|
5133 | printf %s "checking for fgrep... " >&6; }
|
---|
5134 | if test ${ac_cv_path_FGREP+y}
|
---|
5135 | then :
|
---|
5136 | printf %s "(cached) " >&6
|
---|
5137 | else case e in #(
|
---|
5138 | e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
|
---|
5139 | then ac_cv_path_FGREP="$GREP -F"
|
---|
5140 | else
|
---|
5141 | if test -z "$FGREP"; then
|
---|
5142 | ac_path_FGREP_found=false
|
---|
5143 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
5144 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5145 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
5146 | do
|
---|
5147 | IFS=$as_save_IFS
|
---|
5148 | case $as_dir in #(((
|
---|
5149 | '') as_dir=./ ;;
|
---|
5150 | */) ;;
|
---|
5151 | *) as_dir=$as_dir/ ;;
|
---|
5152 | esac
|
---|
5153 | for ac_prog in fgrep
|
---|
5154 | do
|
---|
5155 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5156 | ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
|
---|
5157 | as_fn_executable_p "$ac_path_FGREP" || continue
|
---|
5158 | # Check for GNU ac_path_FGREP and select it if it is found.
|
---|
5159 | # Check for GNU $ac_path_FGREP
|
---|
5160 | case `"$ac_path_FGREP" --version 2>&1` in #(
|
---|
5161 | *GNU*)
|
---|
5162 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
|
---|
5163 | #(
|
---|
5164 | *)
|
---|
5165 | ac_count=0
|
---|
5166 | printf %s 0123456789 >"conftest.in"
|
---|
5167 | while :
|
---|
5168 | do
|
---|
5169 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
5170 | mv "conftest.tmp" "conftest.in"
|
---|
5171 | cp "conftest.in" "conftest.nl"
|
---|
5172 | printf "%s\n" 'FGREP' >> "conftest.nl"
|
---|
5173 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
5174 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
5175 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
5176 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then
|
---|
5177 | # Best one so far, save it but keep looking for a better one
|
---|
5178 | ac_cv_path_FGREP="$ac_path_FGREP"
|
---|
5179 | ac_path_FGREP_max=$ac_count
|
---|
5180 | fi
|
---|
5181 | # 10*(2^10) chars as input seems more than enough
|
---|
5182 | test $ac_count -gt 10 && break
|
---|
5183 | done
|
---|
5184 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
5185 | esac
|
---|
5186 |
|
---|
5187 | $ac_path_FGREP_found && break 3
|
---|
5188 | done
|
---|
5189 | done
|
---|
5190 | done
|
---|
5191 | IFS=$as_save_IFS
|
---|
5192 | if test -z "$ac_cv_path_FGREP"; then
|
---|
5193 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
5194 | fi
|
---|
5195 | else
|
---|
5196 | ac_cv_path_FGREP=$FGREP
|
---|
5197 | fi
|
---|
5198 |
|
---|
5199 | fi ;;
|
---|
5200 | esac
|
---|
5201 | fi
|
---|
5202 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
|
---|
5203 | printf "%s\n" "$ac_cv_path_FGREP" >&6; }
|
---|
5204 | FGREP="$ac_cv_path_FGREP"
|
---|
5205 |
|
---|
5206 |
|
---|
5207 | test -z "$GREP" && GREP=grep
|
---|
5208 |
|
---|
5209 |
|
---|
5210 |
|
---|
5211 |
|
---|
5212 |
|
---|
5213 |
|
---|
5214 |
|
---|
5215 |
|
---|
5216 |
|
---|
5217 |
|
---|
5218 |
|
---|
5219 |
|
---|
5220 |
|
---|
5221 |
|
---|
5222 |
|
---|
5223 |
|
---|
5224 |
|
---|
5225 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
5226 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
|
---|
5227 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
|
---|
5228 |
|
---|
5229 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
|
---|
5230 | printf %s "checking how to print strings... " >&6; }
|
---|
5231 | # Test print first, because it will be a builtin if present.
|
---|
5232 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
|
---|
5233 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
|
---|
5234 | ECHO='print -r --'
|
---|
5235 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
|
---|
5236 | ECHO='printf %s\n'
|
---|
5237 | else
|
---|
5238 | # Use this function as a fallback that always works.
|
---|
5239 | func_fallback_echo ()
|
---|
5240 | {
|
---|
5241 | eval 'cat <<_LTECHO_EOF
|
---|
5242 | $1
|
---|
5243 | _LTECHO_EOF'
|
---|
5244 | }
|
---|
5245 | ECHO='func_fallback_echo'
|
---|
5246 | fi
|
---|
5247 |
|
---|
5248 | # func_echo_all arg...
|
---|
5249 | # Invoke $ECHO with all args, space-separated.
|
---|
5250 | func_echo_all ()
|
---|
5251 | {
|
---|
5252 | $ECHO ""
|
---|
5253 | }
|
---|
5254 |
|
---|
5255 | case $ECHO in
|
---|
5256 | printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
|
---|
5257 | printf "%s\n" "printf" >&6; } ;;
|
---|
5258 | print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
|
---|
5259 | printf "%s\n" "print -r" >&6; } ;;
|
---|
5260 | *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
|
---|
5261 | printf "%s\n" "cat" >&6; } ;;
|
---|
5262 | esac
|
---|
5263 |
|
---|
5264 |
|
---|
5265 |
|
---|
5266 |
|
---|
5267 |
|
---|
5268 |
|
---|
5269 |
|
---|
5270 |
|
---|
5271 |
|
---|
5272 |
|
---|
5273 |
|
---|
5274 |
|
---|
5275 |
|
---|
5276 |
|
---|
5277 |
|
---|
5278 |
|
---|
5279 | # Check whether --with-gnu-ld was given.
|
---|
5280 | if test ${with_gnu_ld+y}
|
---|
5281 | then :
|
---|
5282 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
|
---|
5283 | else case e in #(
|
---|
5284 | e) with_gnu_ld=no ;;
|
---|
5285 | esac
|
---|
5286 | fi
|
---|
5287 |
|
---|
5288 | ac_prog=ld
|
---|
5289 | if test yes = "$GCC"; then
|
---|
5290 | # Check if gcc -print-prog-name=ld gives a path.
|
---|
5291 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
|
---|
5292 | printf %s "checking for ld used by $CC... " >&6; }
|
---|
5293 | case $host in
|
---|
5294 | *-*-mingw*)
|
---|
5295 | # gcc leaves a trailing carriage return, which upsets mingw
|
---|
5296 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
---|
5297 | *)
|
---|
5298 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
---|
5299 | esac
|
---|
5300 | case $ac_prog in
|
---|
5301 | # Accept absolute paths.
|
---|
5302 | [\\/]* | ?:[\\/]*)
|
---|
5303 | re_direlt='/[^/][^/]*/\.\./'
|
---|
5304 | # Canonicalize the pathname of ld
|
---|
5305 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
|
---|
5306 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
|
---|
5307 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
|
---|
5308 | done
|
---|
5309 | test -z "$LD" && LD=$ac_prog
|
---|
5310 | ;;
|
---|
5311 | "")
|
---|
5312 | # If it fails, then pretend we aren't using GCC.
|
---|
5313 | ac_prog=ld
|
---|
5314 | ;;
|
---|
5315 | *)
|
---|
5316 | # If it is relative, then search for the first ld in PATH.
|
---|
5317 | with_gnu_ld=unknown
|
---|
5318 | ;;
|
---|
5319 | esac
|
---|
5320 | elif test yes = "$with_gnu_ld"; then
|
---|
5321 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
|
---|
5322 | printf %s "checking for GNU ld... " >&6; }
|
---|
5323 | else
|
---|
5324 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
|
---|
5325 | printf %s "checking for non-GNU ld... " >&6; }
|
---|
5326 | fi
|
---|
5327 | if test ${lt_cv_path_LD+y}
|
---|
5328 | then :
|
---|
5329 | printf %s "(cached) " >&6
|
---|
5330 | else case e in #(
|
---|
5331 | e) if test -z "$LD"; then
|
---|
5332 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
|
---|
5333 | for ac_dir in $PATH; do
|
---|
5334 | IFS=$lt_save_ifs
|
---|
5335 | test -z "$ac_dir" && ac_dir=.
|
---|
5336 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
---|
5337 | lt_cv_path_LD=$ac_dir/$ac_prog
|
---|
5338 | # Check to see if the program is GNU ld. I'd rather use --version,
|
---|
5339 | # but apparently some variants of GNU ld only accept -v.
|
---|
5340 | # Break only if it was the GNU/non-GNU ld that we prefer.
|
---|
5341 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
|
---|
5342 | *GNU* | *'with BFD'*)
|
---|
5343 | test no != "$with_gnu_ld" && break
|
---|
5344 | ;;
|
---|
5345 | *)
|
---|
5346 | test yes != "$with_gnu_ld" && break
|
---|
5347 | ;;
|
---|
5348 | esac
|
---|
5349 | fi
|
---|
5350 | done
|
---|
5351 | IFS=$lt_save_ifs
|
---|
5352 | else
|
---|
5353 | lt_cv_path_LD=$LD # Let the user override the test with a path.
|
---|
5354 | fi ;;
|
---|
5355 | esac
|
---|
5356 | fi
|
---|
5357 |
|
---|
5358 | LD=$lt_cv_path_LD
|
---|
5359 | if test -n "$LD"; then
|
---|
5360 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
|
---|
5361 | printf "%s\n" "$LD" >&6; }
|
---|
5362 | else
|
---|
5363 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5364 | printf "%s\n" "no" >&6; }
|
---|
5365 | fi
|
---|
5366 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
|
---|
5367 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
|
---|
5368 | printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
|
---|
5369 | if test ${lt_cv_prog_gnu_ld+y}
|
---|
5370 | then :
|
---|
5371 | printf %s "(cached) " >&6
|
---|
5372 | else case e in #(
|
---|
5373 | e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
|
---|
5374 | case `$LD -v 2>&1 </dev/null` in
|
---|
5375 | *GNU* | *'with BFD'*)
|
---|
5376 | lt_cv_prog_gnu_ld=yes
|
---|
5377 | ;;
|
---|
5378 | *)
|
---|
5379 | lt_cv_prog_gnu_ld=no
|
---|
5380 | ;;
|
---|
5381 | esac ;;
|
---|
5382 | esac
|
---|
5383 | fi
|
---|
5384 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
|
---|
5385 | printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
|
---|
5386 | with_gnu_ld=$lt_cv_prog_gnu_ld
|
---|
5387 |
|
---|
5388 |
|
---|
5389 |
|
---|
5390 |
|
---|
5391 |
|
---|
5392 |
|
---|
5393 |
|
---|
5394 |
|
---|
5395 |
|
---|
5396 | ac_ext=c
|
---|
5397 | ac_cpp='$CPP $CPPFLAGS'
|
---|
5398 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
5399 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
5400 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
5401 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
|
---|
5402 | printf %s "checking how to run the C preprocessor... " >&6; }
|
---|
5403 | # On Suns, sometimes $CPP names a directory.
|
---|
5404 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
5405 | CPP=
|
---|
5406 | fi
|
---|
5407 | if test -z "$CPP"; then
|
---|
5408 | if test ${ac_cv_prog_CPP+y}
|
---|
5409 | then :
|
---|
5410 | printf %s "(cached) " >&6
|
---|
5411 | else case e in #(
|
---|
5412 | e) # Double quotes because $CC needs to be expanded
|
---|
5413 | for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
|
---|
5414 | do
|
---|
5415 | ac_preproc_ok=false
|
---|
5416 | for ac_c_preproc_warn_flag in '' yes
|
---|
5417 | do
|
---|
5418 | # Use a header file that comes with gcc, so configuring glibc
|
---|
5419 | # with a fresh cross-compiler works.
|
---|
5420 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
5421 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
5422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5423 | /* end confdefs.h. */
|
---|
5424 | #include <limits.h>
|
---|
5425 | Syntax error
|
---|
5426 | _ACEOF
|
---|
5427 | if ac_fn_c_try_cpp "$LINENO"
|
---|
5428 | then :
|
---|
5429 |
|
---|
5430 | else case e in #(
|
---|
5431 | e) # Broken: fails on valid input.
|
---|
5432 | continue ;;
|
---|
5433 | esac
|
---|
5434 | fi
|
---|
5435 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
5436 |
|
---|
5437 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
5438 | # can be detected and how.
|
---|
5439 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5440 | /* end confdefs.h. */
|
---|
5441 | #include <ac_nonexistent.h>
|
---|
5442 | _ACEOF
|
---|
5443 | if ac_fn_c_try_cpp "$LINENO"
|
---|
5444 | then :
|
---|
5445 | # Broken: success on invalid input.
|
---|
5446 | continue
|
---|
5447 | else case e in #(
|
---|
5448 | e) # Passes both tests.
|
---|
5449 | ac_preproc_ok=:
|
---|
5450 | break ;;
|
---|
5451 | esac
|
---|
5452 | fi
|
---|
5453 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
5454 |
|
---|
5455 | done
|
---|
5456 | # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
5457 | rm -f conftest.i conftest.err conftest.$ac_ext
|
---|
5458 | if $ac_preproc_ok
|
---|
5459 | then :
|
---|
5460 | break
|
---|
5461 | fi
|
---|
5462 |
|
---|
5463 | done
|
---|
5464 | ac_cv_prog_CPP=$CPP
|
---|
5465 | ;;
|
---|
5466 | esac
|
---|
5467 | fi
|
---|
5468 | CPP=$ac_cv_prog_CPP
|
---|
5469 | else
|
---|
5470 | ac_cv_prog_CPP=$CPP
|
---|
5471 | fi
|
---|
5472 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
|
---|
5473 | printf "%s\n" "$CPP" >&6; }
|
---|
5474 | ac_preproc_ok=false
|
---|
5475 | for ac_c_preproc_warn_flag in '' yes
|
---|
5476 | do
|
---|
5477 | # Use a header file that comes with gcc, so configuring glibc
|
---|
5478 | # with a fresh cross-compiler works.
|
---|
5479 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
5480 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
5481 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5482 | /* end confdefs.h. */
|
---|
5483 | #include <limits.h>
|
---|
5484 | Syntax error
|
---|
5485 | _ACEOF
|
---|
5486 | if ac_fn_c_try_cpp "$LINENO"
|
---|
5487 | then :
|
---|
5488 |
|
---|
5489 | else case e in #(
|
---|
5490 | e) # Broken: fails on valid input.
|
---|
5491 | continue ;;
|
---|
5492 | esac
|
---|
5493 | fi
|
---|
5494 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
5495 |
|
---|
5496 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
5497 | # can be detected and how.
|
---|
5498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5499 | /* end confdefs.h. */
|
---|
5500 | #include <ac_nonexistent.h>
|
---|
5501 | _ACEOF
|
---|
5502 | if ac_fn_c_try_cpp "$LINENO"
|
---|
5503 | then :
|
---|
5504 | # Broken: success on invalid input.
|
---|
5505 | continue
|
---|
5506 | else case e in #(
|
---|
5507 | e) # Passes both tests.
|
---|
5508 | ac_preproc_ok=:
|
---|
5509 | break ;;
|
---|
5510 | esac
|
---|
5511 | fi
|
---|
5512 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
5513 |
|
---|
5514 | done
|
---|
5515 | # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
5516 | rm -f conftest.i conftest.err conftest.$ac_ext
|
---|
5517 | if $ac_preproc_ok
|
---|
5518 | then :
|
---|
5519 |
|
---|
5520 | else case e in #(
|
---|
5521 | e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
|
---|
5522 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
|
---|
5523 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
|
---|
5524 | See 'config.log' for more details" "$LINENO" 5; } ;;
|
---|
5525 | esac
|
---|
5526 | fi
|
---|
5527 |
|
---|
5528 | ac_ext=c
|
---|
5529 | ac_cpp='$CPP $CPPFLAGS'
|
---|
5530 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
5531 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
5532 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
5533 |
|
---|
5534 | for ac_prog in gawk mawk nawk awk
|
---|
5535 | do
|
---|
5536 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
5537 | set dummy $ac_prog; ac_word=$2
|
---|
5538 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
5539 | printf %s "checking for $ac_word... " >&6; }
|
---|
5540 | if test ${ac_cv_prog_AWK+y}
|
---|
5541 | then :
|
---|
5542 | printf %s "(cached) " >&6
|
---|
5543 | else case e in #(
|
---|
5544 | e) if test -n "$AWK"; then
|
---|
5545 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
5546 | else
|
---|
5547 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5548 | for as_dir in $PATH
|
---|
5549 | do
|
---|
5550 | IFS=$as_save_IFS
|
---|
5551 | case $as_dir in #(((
|
---|
5552 | '') as_dir=./ ;;
|
---|
5553 | */) ;;
|
---|
5554 | *) as_dir=$as_dir/ ;;
|
---|
5555 | esac
|
---|
5556 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5557 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
5558 | ac_cv_prog_AWK="$ac_prog"
|
---|
5559 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
5560 | break 2
|
---|
5561 | fi
|
---|
5562 | done
|
---|
5563 | done
|
---|
5564 | IFS=$as_save_IFS
|
---|
5565 |
|
---|
5566 | fi ;;
|
---|
5567 | esac
|
---|
5568 | fi
|
---|
5569 | AWK=$ac_cv_prog_AWK
|
---|
5570 | if test -n "$AWK"; then
|
---|
5571 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
|
---|
5572 | printf "%s\n" "$AWK" >&6; }
|
---|
5573 | else
|
---|
5574 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5575 | printf "%s\n" "no" >&6; }
|
---|
5576 | fi
|
---|
5577 |
|
---|
5578 |
|
---|
5579 | test -n "$AWK" && break
|
---|
5580 | done
|
---|
5581 |
|
---|
5582 |
|
---|
5583 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
|
---|
5584 | printf %s "checking whether ln -s works... " >&6; }
|
---|
5585 | LN_S=$as_ln_s
|
---|
5586 | if test "$LN_S" = "ln -s"; then
|
---|
5587 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
5588 | printf "%s\n" "yes" >&6; }
|
---|
5589 | else
|
---|
5590 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
|
---|
5591 | printf "%s\n" "no, using $LN_S" >&6; }
|
---|
5592 | fi
|
---|
5593 |
|
---|
5594 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
5595 | printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
|
---|
5596 | set x ${MAKE-make}
|
---|
5597 | ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
---|
5598 | if eval test \${ac_cv_prog_make_${ac_make}_set+y}
|
---|
5599 | then :
|
---|
5600 | printf %s "(cached) " >&6
|
---|
5601 | else case e in #(
|
---|
5602 | e) cat >conftest.make <<\_ACEOF
|
---|
5603 | SHELL = /bin/sh
|
---|
5604 | all:
|
---|
5605 | @echo '@@@%%%=$(MAKE)=@@@%%%'
|
---|
5606 | _ACEOF
|
---|
5607 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
|
---|
5608 | case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
---|
5609 | *@@@%%%=?*=@@@%%%*)
|
---|
5610 | eval ac_cv_prog_make_${ac_make}_set=yes;;
|
---|
5611 | *)
|
---|
5612 | eval ac_cv_prog_make_${ac_make}_set=no;;
|
---|
5613 | esac
|
---|
5614 | rm -f conftest.make ;;
|
---|
5615 | esac
|
---|
5616 | fi
|
---|
5617 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
---|
5618 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
5619 | printf "%s\n" "yes" >&6; }
|
---|
5620 | SET_MAKE=
|
---|
5621 | else
|
---|
5622 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5623 | printf "%s\n" "no" >&6; }
|
---|
5624 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
5625 | fi
|
---|
5626 |
|
---|
5627 |
|
---|
5628 | case `pwd` in
|
---|
5629 | *\ * | *\ *)
|
---|
5630 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
|
---|
5631 | printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
|
---|
5632 | esac
|
---|
5633 |
|
---|
5634 |
|
---|
5635 |
|
---|
5636 | macro_version='2.4.7'
|
---|
5637 | macro_revision='2.4.7'
|
---|
5638 |
|
---|
5639 |
|
---|
5640 |
|
---|
5641 |
|
---|
5642 |
|
---|
5643 |
|
---|
5644 |
|
---|
5645 |
|
---|
5646 |
|
---|
5647 |
|
---|
5648 |
|
---|
5649 |
|
---|
5650 |
|
---|
5651 |
|
---|
5652 | ltmain=$ac_aux_dir/ltmain.sh
|
---|
5653 |
|
---|
5654 | # Backslashify metacharacters that are still active within
|
---|
5655 | # double-quoted strings.
|
---|
5656 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
|
---|
5657 |
|
---|
5658 | # Same as above, but do not quote variable references.
|
---|
5659 | double_quote_subst='s/\(["`\\]\)/\\\1/g'
|
---|
5660 |
|
---|
5661 | # Sed substitution to delay expansion of an escaped shell variable in a
|
---|
5662 | # double_quote_subst'ed string.
|
---|
5663 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
|
---|
5664 |
|
---|
5665 | # Sed substitution to delay expansion of an escaped single quote.
|
---|
5666 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
|
---|
5667 |
|
---|
5668 | # Sed substitution to avoid accidental globbing in evaled expressions
|
---|
5669 | no_glob_subst='s/\*/\\\*/g'
|
---|
5670 |
|
---|
5671 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
|
---|
5672 | printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
|
---|
5673 | if test ${lt_cv_path_NM+y}
|
---|
5674 | then :
|
---|
5675 | printf %s "(cached) " >&6
|
---|
5676 | else case e in #(
|
---|
5677 | e) if test -n "$NM"; then
|
---|
5678 | # Let the user override the test.
|
---|
5679 | lt_cv_path_NM=$NM
|
---|
5680 | else
|
---|
5681 | lt_nm_to_check=${ac_tool_prefix}nm
|
---|
5682 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
|
---|
5683 | lt_nm_to_check="$lt_nm_to_check nm"
|
---|
5684 | fi
|
---|
5685 | for lt_tmp_nm in $lt_nm_to_check; do
|
---|
5686 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
|
---|
5687 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
|
---|
5688 | IFS=$lt_save_ifs
|
---|
5689 | test -z "$ac_dir" && ac_dir=.
|
---|
5690 | tmp_nm=$ac_dir/$lt_tmp_nm
|
---|
5691 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
|
---|
5692 | # Check to see if the nm accepts a BSD-compat flag.
|
---|
5693 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
|
---|
5694 | # nm: unknown option "B" ignored
|
---|
5695 | # Tru64's nm complains that /dev/null is an invalid object file
|
---|
5696 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
|
---|
5697 | case $build_os in
|
---|
5698 | mingw*) lt_bad_file=conftest.nm/nofile ;;
|
---|
5699 | *) lt_bad_file=/dev/null ;;
|
---|
5700 | esac
|
---|
5701 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
|
---|
5702 | *$lt_bad_file* | *'Invalid file or object type'*)
|
---|
5703 | lt_cv_path_NM="$tmp_nm -B"
|
---|
5704 | break 2
|
---|
5705 | ;;
|
---|
5706 | *)
|
---|
5707 | case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
|
---|
5708 | */dev/null*)
|
---|
5709 | lt_cv_path_NM="$tmp_nm -p"
|
---|
5710 | break 2
|
---|
5711 | ;;
|
---|
5712 | *)
|
---|
5713 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
---|
5714 | continue # so that we can try to find one that supports BSD flags
|
---|
5715 | ;;
|
---|
5716 | esac
|
---|
5717 | ;;
|
---|
5718 | esac
|
---|
5719 | fi
|
---|
5720 | done
|
---|
5721 | IFS=$lt_save_ifs
|
---|
5722 | done
|
---|
5723 | : ${lt_cv_path_NM=no}
|
---|
5724 | fi ;;
|
---|
5725 | esac
|
---|
5726 | fi
|
---|
5727 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
|
---|
5728 | printf "%s\n" "$lt_cv_path_NM" >&6; }
|
---|
5729 | if test no != "$lt_cv_path_NM"; then
|
---|
5730 | NM=$lt_cv_path_NM
|
---|
5731 | else
|
---|
5732 | # Didn't find any BSD compatible name lister, look for dumpbin.
|
---|
5733 | if test -n "$DUMPBIN"; then :
|
---|
5734 | # Let the user override the test.
|
---|
5735 | else
|
---|
5736 | if test -n "$ac_tool_prefix"; then
|
---|
5737 | for ac_prog in dumpbin "link -dump"
|
---|
5738 | do
|
---|
5739 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
5740 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
5741 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
5742 | printf %s "checking for $ac_word... " >&6; }
|
---|
5743 | if test ${ac_cv_prog_DUMPBIN+y}
|
---|
5744 | then :
|
---|
5745 | printf %s "(cached) " >&6
|
---|
5746 | else case e in #(
|
---|
5747 | e) if test -n "$DUMPBIN"; then
|
---|
5748 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
|
---|
5749 | else
|
---|
5750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5751 | for as_dir in $PATH
|
---|
5752 | do
|
---|
5753 | IFS=$as_save_IFS
|
---|
5754 | case $as_dir in #(((
|
---|
5755 | '') as_dir=./ ;;
|
---|
5756 | */) ;;
|
---|
5757 | *) as_dir=$as_dir/ ;;
|
---|
5758 | esac
|
---|
5759 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5760 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
5761 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
|
---|
5762 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
5763 | break 2
|
---|
5764 | fi
|
---|
5765 | done
|
---|
5766 | done
|
---|
5767 | IFS=$as_save_IFS
|
---|
5768 |
|
---|
5769 | fi ;;
|
---|
5770 | esac
|
---|
5771 | fi
|
---|
5772 | DUMPBIN=$ac_cv_prog_DUMPBIN
|
---|
5773 | if test -n "$DUMPBIN"; then
|
---|
5774 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
|
---|
5775 | printf "%s\n" "$DUMPBIN" >&6; }
|
---|
5776 | else
|
---|
5777 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5778 | printf "%s\n" "no" >&6; }
|
---|
5779 | fi
|
---|
5780 |
|
---|
5781 |
|
---|
5782 | test -n "$DUMPBIN" && break
|
---|
5783 | done
|
---|
5784 | fi
|
---|
5785 | if test -z "$DUMPBIN"; then
|
---|
5786 | ac_ct_DUMPBIN=$DUMPBIN
|
---|
5787 | for ac_prog in dumpbin "link -dump"
|
---|
5788 | do
|
---|
5789 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
5790 | set dummy $ac_prog; ac_word=$2
|
---|
5791 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
5792 | printf %s "checking for $ac_word... " >&6; }
|
---|
5793 | if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
|
---|
5794 | then :
|
---|
5795 | printf %s "(cached) " >&6
|
---|
5796 | else case e in #(
|
---|
5797 | e) if test -n "$ac_ct_DUMPBIN"; then
|
---|
5798 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
|
---|
5799 | else
|
---|
5800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5801 | for as_dir in $PATH
|
---|
5802 | do
|
---|
5803 | IFS=$as_save_IFS
|
---|
5804 | case $as_dir in #(((
|
---|
5805 | '') as_dir=./ ;;
|
---|
5806 | */) ;;
|
---|
5807 | *) as_dir=$as_dir/ ;;
|
---|
5808 | esac
|
---|
5809 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5810 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
5811 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
|
---|
5812 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
5813 | break 2
|
---|
5814 | fi
|
---|
5815 | done
|
---|
5816 | done
|
---|
5817 | IFS=$as_save_IFS
|
---|
5818 |
|
---|
5819 | fi ;;
|
---|
5820 | esac
|
---|
5821 | fi
|
---|
5822 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
|
---|
5823 | if test -n "$ac_ct_DUMPBIN"; then
|
---|
5824 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
|
---|
5825 | printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
|
---|
5826 | else
|
---|
5827 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5828 | printf "%s\n" "no" >&6; }
|
---|
5829 | fi
|
---|
5830 |
|
---|
5831 |
|
---|
5832 | test -n "$ac_ct_DUMPBIN" && break
|
---|
5833 | done
|
---|
5834 |
|
---|
5835 | if test "x$ac_ct_DUMPBIN" = x; then
|
---|
5836 | DUMPBIN=":"
|
---|
5837 | else
|
---|
5838 | case $cross_compiling:$ac_tool_warned in
|
---|
5839 | yes:)
|
---|
5840 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
5841 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
5842 | ac_tool_warned=yes ;;
|
---|
5843 | esac
|
---|
5844 | DUMPBIN=$ac_ct_DUMPBIN
|
---|
5845 | fi
|
---|
5846 | fi
|
---|
5847 |
|
---|
5848 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
|
---|
5849 | *COFF*)
|
---|
5850 | DUMPBIN="$DUMPBIN -symbols -headers"
|
---|
5851 | ;;
|
---|
5852 | *)
|
---|
5853 | DUMPBIN=:
|
---|
5854 | ;;
|
---|
5855 | esac
|
---|
5856 | fi
|
---|
5857 |
|
---|
5858 | if test : != "$DUMPBIN"; then
|
---|
5859 | NM=$DUMPBIN
|
---|
5860 | fi
|
---|
5861 | fi
|
---|
5862 | test -z "$NM" && NM=nm
|
---|
5863 |
|
---|
5864 |
|
---|
5865 |
|
---|
5866 |
|
---|
5867 |
|
---|
5868 |
|
---|
5869 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
|
---|
5870 | printf %s "checking the name lister ($NM) interface... " >&6; }
|
---|
5871 | if test ${lt_cv_nm_interface+y}
|
---|
5872 | then :
|
---|
5873 | printf %s "(cached) " >&6
|
---|
5874 | else case e in #(
|
---|
5875 | e) lt_cv_nm_interface="BSD nm"
|
---|
5876 | echo "int some_variable = 0;" > conftest.$ac_ext
|
---|
5877 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
|
---|
5878 | (eval "$ac_compile" 2>conftest.err)
|
---|
5879 | cat conftest.err >&5
|
---|
5880 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
|
---|
5881 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
|
---|
5882 | cat conftest.err >&5
|
---|
5883 | (eval echo "\"\$as_me:$LINENO: output\"" >&5)
|
---|
5884 | cat conftest.out >&5
|
---|
5885 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then
|
---|
5886 | lt_cv_nm_interface="MS dumpbin"
|
---|
5887 | fi
|
---|
5888 | rm -f conftest* ;;
|
---|
5889 | esac
|
---|
5890 | fi
|
---|
5891 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
|
---|
5892 | printf "%s\n" "$lt_cv_nm_interface" >&6; }
|
---|
5893 |
|
---|
5894 | # find the maximum length of command line arguments
|
---|
5895 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
|
---|
5896 | printf %s "checking the maximum length of command line arguments... " >&6; }
|
---|
5897 | if test ${lt_cv_sys_max_cmd_len+y}
|
---|
5898 | then :
|
---|
5899 | printf %s "(cached) " >&6
|
---|
5900 | else case e in #(
|
---|
5901 | e) i=0
|
---|
5902 | teststring=ABCD
|
---|
5903 |
|
---|
5904 | case $build_os in
|
---|
5905 | msdosdjgpp*)
|
---|
5906 | # On DJGPP, this test can blow up pretty badly due to problems in libc
|
---|
5907 | # (any single argument exceeding 2000 bytes causes a buffer overrun
|
---|
5908 | # during glob expansion). Even if it were fixed, the result of this
|
---|
5909 | # check would be larger than it should be.
|
---|
5910 | lt_cv_sys_max_cmd_len=12288; # 12K is about right
|
---|
5911 | ;;
|
---|
5912 |
|
---|
5913 | gnu*)
|
---|
5914 | # Under GNU Hurd, this test is not required because there is
|
---|
5915 | # no limit to the length of command line arguments.
|
---|
5916 | # Libtool will interpret -1 as no limit whatsoever
|
---|
5917 | lt_cv_sys_max_cmd_len=-1;
|
---|
5918 | ;;
|
---|
5919 |
|
---|
5920 | cygwin* | mingw* | cegcc*)
|
---|
5921 | # On Win9x/ME, this test blows up -- it succeeds, but takes
|
---|
5922 | # about 5 minutes as the teststring grows exponentially.
|
---|
5923 | # Worse, since 9x/ME are not pre-emptively multitasking,
|
---|
5924 | # you end up with a "frozen" computer, even though with patience
|
---|
5925 | # the test eventually succeeds (with a max line length of 256k).
|
---|
5926 | # Instead, let's just punt: use the minimum linelength reported by
|
---|
5927 | # all of the supported platforms: 8192 (on NT/2K/XP).
|
---|
5928 | lt_cv_sys_max_cmd_len=8192;
|
---|
5929 | ;;
|
---|
5930 |
|
---|
5931 | mint*)
|
---|
5932 | # On MiNT this can take a long time and run out of memory.
|
---|
5933 | lt_cv_sys_max_cmd_len=8192;
|
---|
5934 | ;;
|
---|
5935 |
|
---|
5936 | amigaos*)
|
---|
5937 | # On AmigaOS with pdksh, this test takes hours, literally.
|
---|
5938 | # So we just punt and use a minimum line length of 8192.
|
---|
5939 | lt_cv_sys_max_cmd_len=8192;
|
---|
5940 | ;;
|
---|
5941 |
|
---|
5942 | bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
|
---|
5943 | # This has been around since 386BSD, at least. Likely further.
|
---|
5944 | if test -x /sbin/sysctl; then
|
---|
5945 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
|
---|
5946 | elif test -x /usr/sbin/sysctl; then
|
---|
5947 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
|
---|
5948 | else
|
---|
5949 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
|
---|
5950 | fi
|
---|
5951 | # And add a safety zone
|
---|
5952 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
---|
5953 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
---|
5954 | ;;
|
---|
5955 |
|
---|
5956 | interix*)
|
---|
5957 | # We know the value 262144 and hardcode it with a safety zone (like BSD)
|
---|
5958 | lt_cv_sys_max_cmd_len=196608
|
---|
5959 | ;;
|
---|
5960 |
|
---|
5961 | os2*)
|
---|
5962 | # The test takes a long time on OS/2.
|
---|
5963 | lt_cv_sys_max_cmd_len=8192
|
---|
5964 | ;;
|
---|
5965 |
|
---|
5966 | osf*)
|
---|
5967 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
|
---|
5968 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
|
---|
5969 | # nice to cause kernel panics so lets avoid the loop below.
|
---|
5970 | # First set a reasonable default.
|
---|
5971 | lt_cv_sys_max_cmd_len=16384
|
---|
5972 | #
|
---|
5973 | if test -x /sbin/sysconfig; then
|
---|
5974 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
|
---|
5975 | *1*) lt_cv_sys_max_cmd_len=-1 ;;
|
---|
5976 | esac
|
---|
5977 | fi
|
---|
5978 | ;;
|
---|
5979 | sco3.2v5*)
|
---|
5980 | lt_cv_sys_max_cmd_len=102400
|
---|
5981 | ;;
|
---|
5982 | sysv5* | sco5v6* | sysv4.2uw2*)
|
---|
5983 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
|
---|
5984 | if test -n "$kargmax"; then
|
---|
5985 | lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
|
---|
5986 | else
|
---|
5987 | lt_cv_sys_max_cmd_len=32768
|
---|
5988 | fi
|
---|
5989 | ;;
|
---|
5990 | *)
|
---|
5991 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
|
---|
5992 | if test -n "$lt_cv_sys_max_cmd_len" && \
|
---|
5993 | test undefined != "$lt_cv_sys_max_cmd_len"; then
|
---|
5994 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
---|
5995 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
---|
5996 | else
|
---|
5997 | # Make teststring a little bigger before we do anything with it.
|
---|
5998 | # a 1K string should be a reasonable start.
|
---|
5999 | for i in 1 2 3 4 5 6 7 8; do
|
---|
6000 | teststring=$teststring$teststring
|
---|
6001 | done
|
---|
6002 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
|
---|
6003 | # If test is not a shell built-in, we'll probably end up computing a
|
---|
6004 | # maximum length that is only half of the actual maximum length, but
|
---|
6005 | # we can't tell.
|
---|
6006 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \
|
---|
6007 | = "X$teststring$teststring"; } >/dev/null 2>&1 &&
|
---|
6008 | test 17 != "$i" # 1/2 MB should be enough
|
---|
6009 | do
|
---|
6010 | i=`expr $i + 1`
|
---|
6011 | teststring=$teststring$teststring
|
---|
6012 | done
|
---|
6013 | # Only check the string length outside the loop.
|
---|
6014 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
|
---|
6015 | teststring=
|
---|
6016 | # Add a significant safety factor because C++ compilers can tack on
|
---|
6017 | # massive amounts of additional arguments before passing them to the
|
---|
6018 | # linker. It appears as though 1/2 is a usable value.
|
---|
6019 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
|
---|
6020 | fi
|
---|
6021 | ;;
|
---|
6022 | esac
|
---|
6023 | ;;
|
---|
6024 | esac
|
---|
6025 | fi
|
---|
6026 |
|
---|
6027 | if test -n "$lt_cv_sys_max_cmd_len"; then
|
---|
6028 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
|
---|
6029 | printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
|
---|
6030 | else
|
---|
6031 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
|
---|
6032 | printf "%s\n" "none" >&6; }
|
---|
6033 | fi
|
---|
6034 | max_cmd_len=$lt_cv_sys_max_cmd_len
|
---|
6035 |
|
---|
6036 |
|
---|
6037 |
|
---|
6038 |
|
---|
6039 |
|
---|
6040 |
|
---|
6041 | : ${CP="cp -f"}
|
---|
6042 | : ${MV="mv -f"}
|
---|
6043 | : ${RM="rm -f"}
|
---|
6044 |
|
---|
6045 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
6046 | lt_unset=unset
|
---|
6047 | else
|
---|
6048 | lt_unset=false
|
---|
6049 | fi
|
---|
6050 |
|
---|
6051 |
|
---|
6052 |
|
---|
6053 |
|
---|
6054 |
|
---|
6055 | # test EBCDIC or ASCII
|
---|
6056 | case `echo X|tr X '\101'` in
|
---|
6057 | A) # ASCII based system
|
---|
6058 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
|
---|
6059 | lt_SP2NL='tr \040 \012'
|
---|
6060 | lt_NL2SP='tr \015\012 \040\040'
|
---|
6061 | ;;
|
---|
6062 | *) # EBCDIC based system
|
---|
6063 | lt_SP2NL='tr \100 \n'
|
---|
6064 | lt_NL2SP='tr \r\n \100\100'
|
---|
6065 | ;;
|
---|
6066 | esac
|
---|
6067 |
|
---|
6068 |
|
---|
6069 |
|
---|
6070 |
|
---|
6071 |
|
---|
6072 |
|
---|
6073 |
|
---|
6074 |
|
---|
6075 |
|
---|
6076 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
|
---|
6077 | printf %s "checking how to convert $build file names to $host format... " >&6; }
|
---|
6078 | if test ${lt_cv_to_host_file_cmd+y}
|
---|
6079 | then :
|
---|
6080 | printf %s "(cached) " >&6
|
---|
6081 | else case e in #(
|
---|
6082 | e) case $host in
|
---|
6083 | *-*-mingw* )
|
---|
6084 | case $build in
|
---|
6085 | *-*-mingw* ) # actually msys
|
---|
6086 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
|
---|
6087 | ;;
|
---|
6088 | *-*-cygwin* )
|
---|
6089 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
|
---|
6090 | ;;
|
---|
6091 | * ) # otherwise, assume *nix
|
---|
6092 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
|
---|
6093 | ;;
|
---|
6094 | esac
|
---|
6095 | ;;
|
---|
6096 | *-*-cygwin* )
|
---|
6097 | case $build in
|
---|
6098 | *-*-mingw* ) # actually msys
|
---|
6099 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
|
---|
6100 | ;;
|
---|
6101 | *-*-cygwin* )
|
---|
6102 | lt_cv_to_host_file_cmd=func_convert_file_noop
|
---|
6103 | ;;
|
---|
6104 | * ) # otherwise, assume *nix
|
---|
6105 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
|
---|
6106 | ;;
|
---|
6107 | esac
|
---|
6108 | ;;
|
---|
6109 | * ) # unhandled hosts (and "normal" native builds)
|
---|
6110 | lt_cv_to_host_file_cmd=func_convert_file_noop
|
---|
6111 | ;;
|
---|
6112 | esac
|
---|
6113 | ;;
|
---|
6114 | esac
|
---|
6115 | fi
|
---|
6116 |
|
---|
6117 | to_host_file_cmd=$lt_cv_to_host_file_cmd
|
---|
6118 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
|
---|
6119 | printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
|
---|
6120 |
|
---|
6121 |
|
---|
6122 |
|
---|
6123 |
|
---|
6124 |
|
---|
6125 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
|
---|
6126 | printf %s "checking how to convert $build file names to toolchain format... " >&6; }
|
---|
6127 | if test ${lt_cv_to_tool_file_cmd+y}
|
---|
6128 | then :
|
---|
6129 | printf %s "(cached) " >&6
|
---|
6130 | else case e in #(
|
---|
6131 | e) #assume ordinary cross tools, or native build.
|
---|
6132 | lt_cv_to_tool_file_cmd=func_convert_file_noop
|
---|
6133 | case $host in
|
---|
6134 | *-*-mingw* )
|
---|
6135 | case $build in
|
---|
6136 | *-*-mingw* ) # actually msys
|
---|
6137 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
|
---|
6138 | ;;
|
---|
6139 | esac
|
---|
6140 | ;;
|
---|
6141 | esac
|
---|
6142 | ;;
|
---|
6143 | esac
|
---|
6144 | fi
|
---|
6145 |
|
---|
6146 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
---|
6147 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
|
---|
6148 | printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
|
---|
6149 |
|
---|
6150 |
|
---|
6151 |
|
---|
6152 |
|
---|
6153 |
|
---|
6154 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
|
---|
6155 | printf %s "checking for $LD option to reload object files... " >&6; }
|
---|
6156 | if test ${lt_cv_ld_reload_flag+y}
|
---|
6157 | then :
|
---|
6158 | printf %s "(cached) " >&6
|
---|
6159 | else case e in #(
|
---|
6160 | e) lt_cv_ld_reload_flag='-r' ;;
|
---|
6161 | esac
|
---|
6162 | fi
|
---|
6163 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
|
---|
6164 | printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
|
---|
6165 | reload_flag=$lt_cv_ld_reload_flag
|
---|
6166 | case $reload_flag in
|
---|
6167 | "" | " "*) ;;
|
---|
6168 | *) reload_flag=" $reload_flag" ;;
|
---|
6169 | esac
|
---|
6170 | reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
---|
6171 | case $host_os in
|
---|
6172 | cygwin* | mingw* | pw32* | cegcc*)
|
---|
6173 | if test yes != "$GCC"; then
|
---|
6174 | reload_cmds=false
|
---|
6175 | fi
|
---|
6176 | ;;
|
---|
6177 | darwin*)
|
---|
6178 | if test yes = "$GCC"; then
|
---|
6179 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
|
---|
6180 | else
|
---|
6181 | reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
---|
6182 | fi
|
---|
6183 | ;;
|
---|
6184 | esac
|
---|
6185 |
|
---|
6186 |
|
---|
6187 |
|
---|
6188 |
|
---|
6189 |
|
---|
6190 |
|
---|
6191 |
|
---|
6192 |
|
---|
6193 |
|
---|
6194 | if test -n "$ac_tool_prefix"; then
|
---|
6195 | # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
|
---|
6196 | set dummy ${ac_tool_prefix}file; ac_word=$2
|
---|
6197 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
6198 | printf %s "checking for $ac_word... " >&6; }
|
---|
6199 | if test ${ac_cv_prog_FILECMD+y}
|
---|
6200 | then :
|
---|
6201 | printf %s "(cached) " >&6
|
---|
6202 | else case e in #(
|
---|
6203 | e) if test -n "$FILECMD"; then
|
---|
6204 | ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
|
---|
6205 | else
|
---|
6206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6207 | for as_dir in $PATH
|
---|
6208 | do
|
---|
6209 | IFS=$as_save_IFS
|
---|
6210 | case $as_dir in #(((
|
---|
6211 | '') as_dir=./ ;;
|
---|
6212 | */) ;;
|
---|
6213 | *) as_dir=$as_dir/ ;;
|
---|
6214 | esac
|
---|
6215 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6216 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
6217 | ac_cv_prog_FILECMD="${ac_tool_prefix}file"
|
---|
6218 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
6219 | break 2
|
---|
6220 | fi
|
---|
6221 | done
|
---|
6222 | done
|
---|
6223 | IFS=$as_save_IFS
|
---|
6224 |
|
---|
6225 | fi ;;
|
---|
6226 | esac
|
---|
6227 | fi
|
---|
6228 | FILECMD=$ac_cv_prog_FILECMD
|
---|
6229 | if test -n "$FILECMD"; then
|
---|
6230 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
|
---|
6231 | printf "%s\n" "$FILECMD" >&6; }
|
---|
6232 | else
|
---|
6233 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6234 | printf "%s\n" "no" >&6; }
|
---|
6235 | fi
|
---|
6236 |
|
---|
6237 |
|
---|
6238 | fi
|
---|
6239 | if test -z "$ac_cv_prog_FILECMD"; then
|
---|
6240 | ac_ct_FILECMD=$FILECMD
|
---|
6241 | # Extract the first word of "file", so it can be a program name with args.
|
---|
6242 | set dummy file; ac_word=$2
|
---|
6243 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
6244 | printf %s "checking for $ac_word... " >&6; }
|
---|
6245 | if test ${ac_cv_prog_ac_ct_FILECMD+y}
|
---|
6246 | then :
|
---|
6247 | printf %s "(cached) " >&6
|
---|
6248 | else case e in #(
|
---|
6249 | e) if test -n "$ac_ct_FILECMD"; then
|
---|
6250 | ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
|
---|
6251 | else
|
---|
6252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6253 | for as_dir in $PATH
|
---|
6254 | do
|
---|
6255 | IFS=$as_save_IFS
|
---|
6256 | case $as_dir in #(((
|
---|
6257 | '') as_dir=./ ;;
|
---|
6258 | */) ;;
|
---|
6259 | *) as_dir=$as_dir/ ;;
|
---|
6260 | esac
|
---|
6261 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6262 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
6263 | ac_cv_prog_ac_ct_FILECMD="file"
|
---|
6264 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
6265 | break 2
|
---|
6266 | fi
|
---|
6267 | done
|
---|
6268 | done
|
---|
6269 | IFS=$as_save_IFS
|
---|
6270 |
|
---|
6271 | fi ;;
|
---|
6272 | esac
|
---|
6273 | fi
|
---|
6274 | ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
|
---|
6275 | if test -n "$ac_ct_FILECMD"; then
|
---|
6276 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
|
---|
6277 | printf "%s\n" "$ac_ct_FILECMD" >&6; }
|
---|
6278 | else
|
---|
6279 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6280 | printf "%s\n" "no" >&6; }
|
---|
6281 | fi
|
---|
6282 |
|
---|
6283 | if test "x$ac_ct_FILECMD" = x; then
|
---|
6284 | FILECMD=":"
|
---|
6285 | else
|
---|
6286 | case $cross_compiling:$ac_tool_warned in
|
---|
6287 | yes:)
|
---|
6288 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
6289 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
6290 | ac_tool_warned=yes ;;
|
---|
6291 | esac
|
---|
6292 | FILECMD=$ac_ct_FILECMD
|
---|
6293 | fi
|
---|
6294 | else
|
---|
6295 | FILECMD="$ac_cv_prog_FILECMD"
|
---|
6296 | fi
|
---|
6297 |
|
---|
6298 |
|
---|
6299 |
|
---|
6300 |
|
---|
6301 |
|
---|
6302 |
|
---|
6303 |
|
---|
6304 | if test -n "$ac_tool_prefix"; then
|
---|
6305 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
|
---|
6306 | set dummy ${ac_tool_prefix}objdump; ac_word=$2
|
---|
6307 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
6308 | printf %s "checking for $ac_word... " >&6; }
|
---|
6309 | if test ${ac_cv_prog_OBJDUMP+y}
|
---|
6310 | then :
|
---|
6311 | printf %s "(cached) " >&6
|
---|
6312 | else case e in #(
|
---|
6313 | e) if test -n "$OBJDUMP"; then
|
---|
6314 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
|
---|
6315 | else
|
---|
6316 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6317 | for as_dir in $PATH
|
---|
6318 | do
|
---|
6319 | IFS=$as_save_IFS
|
---|
6320 | case $as_dir in #(((
|
---|
6321 | '') as_dir=./ ;;
|
---|
6322 | */) ;;
|
---|
6323 | *) as_dir=$as_dir/ ;;
|
---|
6324 | esac
|
---|
6325 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6326 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
6327 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
|
---|
6328 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
6329 | break 2
|
---|
6330 | fi
|
---|
6331 | done
|
---|
6332 | done
|
---|
6333 | IFS=$as_save_IFS
|
---|
6334 |
|
---|
6335 | fi ;;
|
---|
6336 | esac
|
---|
6337 | fi
|
---|
6338 | OBJDUMP=$ac_cv_prog_OBJDUMP
|
---|
6339 | if test -n "$OBJDUMP"; then
|
---|
6340 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
|
---|
6341 | printf "%s\n" "$OBJDUMP" >&6; }
|
---|
6342 | else
|
---|
6343 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6344 | printf "%s\n" "no" >&6; }
|
---|
6345 | fi
|
---|
6346 |
|
---|
6347 |
|
---|
6348 | fi
|
---|
6349 | if test -z "$ac_cv_prog_OBJDUMP"; then
|
---|
6350 | ac_ct_OBJDUMP=$OBJDUMP
|
---|
6351 | # Extract the first word of "objdump", so it can be a program name with args.
|
---|
6352 | set dummy objdump; ac_word=$2
|
---|
6353 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
6354 | printf %s "checking for $ac_word... " >&6; }
|
---|
6355 | if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
|
---|
6356 | then :
|
---|
6357 | printf %s "(cached) " >&6
|
---|
6358 | else case e in #(
|
---|
6359 | e) if test -n "$ac_ct_OBJDUMP"; then
|
---|
6360 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
|
---|
6361 | else
|
---|
6362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6363 | for as_dir in $PATH
|
---|
6364 | do
|
---|
6365 | IFS=$as_save_IFS
|
---|
6366 | case $as_dir in #(((
|
---|
6367 | '') as_dir=./ ;;
|
---|
6368 | */) ;;
|
---|
6369 | *) as_dir=$as_dir/ ;;
|
---|
6370 | esac
|
---|
6371 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6372 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
6373 | ac_cv_prog_ac_ct_OBJDUMP="objdump"
|
---|
6374 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
6375 | break 2
|
---|
6376 | fi
|
---|
6377 | done
|
---|
6378 | done
|
---|
6379 | IFS=$as_save_IFS
|
---|
6380 |
|
---|
6381 | fi ;;
|
---|
6382 | esac
|
---|
6383 | fi
|
---|
6384 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
|
---|
6385 | if test -n "$ac_ct_OBJDUMP"; then
|
---|
6386 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
|
---|
6387 | printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
|
---|
6388 | else
|
---|
6389 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6390 | printf "%s\n" "no" >&6; }
|
---|
6391 | fi
|
---|
6392 |
|
---|
6393 | if test "x$ac_ct_OBJDUMP" = x; then
|
---|
6394 | OBJDUMP="false"
|
---|
6395 | else
|
---|
6396 | case $cross_compiling:$ac_tool_warned in
|
---|
6397 | yes:)
|
---|
6398 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
6399 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
6400 | ac_tool_warned=yes ;;
|
---|
6401 | esac
|
---|
6402 | OBJDUMP=$ac_ct_OBJDUMP
|
---|
6403 | fi
|
---|
6404 | else
|
---|
6405 | OBJDUMP="$ac_cv_prog_OBJDUMP"
|
---|
6406 | fi
|
---|
6407 |
|
---|
6408 | test -z "$OBJDUMP" && OBJDUMP=objdump
|
---|
6409 |
|
---|
6410 |
|
---|
6411 |
|
---|
6412 |
|
---|
6413 |
|
---|
6414 |
|
---|
6415 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
|
---|
6416 | printf %s "checking how to recognize dependent libraries... " >&6; }
|
---|
6417 | if test ${lt_cv_deplibs_check_method+y}
|
---|
6418 | then :
|
---|
6419 | printf %s "(cached) " >&6
|
---|
6420 | else case e in #(
|
---|
6421 | e) lt_cv_file_magic_cmd='$MAGIC_CMD'
|
---|
6422 | lt_cv_file_magic_test_file=
|
---|
6423 | lt_cv_deplibs_check_method='unknown'
|
---|
6424 | # Need to set the preceding variable on all platforms that support
|
---|
6425 | # interlibrary dependencies.
|
---|
6426 | # 'none' -- dependencies not supported.
|
---|
6427 | # 'unknown' -- same as none, but documents that we really don't know.
|
---|
6428 | # 'pass_all' -- all dependencies passed with no checks.
|
---|
6429 | # 'test_compile' -- check by making test program.
|
---|
6430 | # 'file_magic [[regex]]' -- check by looking for files in library path
|
---|
6431 | # that responds to the $file_magic_cmd with a given extended regex.
|
---|
6432 | # If you have 'file' or equivalent on your system and you're not sure
|
---|
6433 | # whether 'pass_all' will *always* work, you probably want this one.
|
---|
6434 |
|
---|
6435 | case $host_os in
|
---|
6436 | aix[4-9]*)
|
---|
6437 | lt_cv_deplibs_check_method=pass_all
|
---|
6438 | ;;
|
---|
6439 |
|
---|
6440 | beos*)
|
---|
6441 | lt_cv_deplibs_check_method=pass_all
|
---|
6442 | ;;
|
---|
6443 |
|
---|
6444 | bsdi[45]*)
|
---|
6445 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
---|
6446 | lt_cv_file_magic_cmd='$FILECMD -L'
|
---|
6447 | lt_cv_file_magic_test_file=/shlib/libc.so
|
---|
6448 | ;;
|
---|
6449 |
|
---|
6450 | cygwin*)
|
---|
6451 | # func_win32_libid is a shell function defined in ltmain.sh
|
---|
6452 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
---|
6453 | lt_cv_file_magic_cmd='func_win32_libid'
|
---|
6454 | ;;
|
---|
6455 |
|
---|
6456 | mingw* | pw32*)
|
---|
6457 | # Base MSYS/MinGW do not provide the 'file' command needed by
|
---|
6458 | # func_win32_libid shell function, so use a weaker test based on 'objdump',
|
---|
6459 | # unless we find 'file', for example because we are cross-compiling.
|
---|
6460 | if ( file / ) >/dev/null 2>&1; then
|
---|
6461 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
---|
6462 | lt_cv_file_magic_cmd='func_win32_libid'
|
---|
6463 | else
|
---|
6464 | # Keep this pattern in sync with the one in func_win32_libid.
|
---|
6465 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
|
---|
6466 | lt_cv_file_magic_cmd='$OBJDUMP -f'
|
---|
6467 | fi
|
---|
6468 | ;;
|
---|
6469 |
|
---|
6470 | cegcc*)
|
---|
6471 | # use the weaker test based on 'objdump'. See mingw*.
|
---|
6472 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
|
---|
6473 | lt_cv_file_magic_cmd='$OBJDUMP -f'
|
---|
6474 | ;;
|
---|
6475 |
|
---|
6476 | darwin* | rhapsody*)
|
---|
6477 | lt_cv_deplibs_check_method=pass_all
|
---|
6478 | ;;
|
---|
6479 |
|
---|
6480 | freebsd* | dragonfly* | midnightbsd*)
|
---|
6481 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
|
---|
6482 | case $host_cpu in
|
---|
6483 | i*86 )
|
---|
6484 | # Not sure whether the presence of OpenBSD here was a mistake.
|
---|
6485 | # Let's accept both of them until this is cleared up.
|
---|
6486 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
|
---|
6487 | lt_cv_file_magic_cmd=$FILECMD
|
---|
6488 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
---|
6489 | ;;
|
---|
6490 | esac
|
---|
6491 | else
|
---|
6492 | lt_cv_deplibs_check_method=pass_all
|
---|
6493 | fi
|
---|
6494 | ;;
|
---|
6495 |
|
---|
6496 | haiku*)
|
---|
6497 | lt_cv_deplibs_check_method=pass_all
|
---|
6498 | ;;
|
---|
6499 |
|
---|
6500 | hpux10.20* | hpux11*)
|
---|
6501 | lt_cv_file_magic_cmd=$FILECMD
|
---|
6502 | case $host_cpu in
|
---|
6503 | ia64*)
|
---|
6504 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
|
---|
6505 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
---|
6506 | ;;
|
---|
6507 | hppa*64*)
|
---|
6508 | 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]'
|
---|
6509 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
|
---|
6510 | ;;
|
---|
6511 | *)
|
---|
6512 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
|
---|
6513 | lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
---|
6514 | ;;
|
---|
6515 | esac
|
---|
6516 | ;;
|
---|
6517 |
|
---|
6518 | interix[3-9]*)
|
---|
6519 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
|
---|
6520 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
|
---|
6521 | ;;
|
---|
6522 |
|
---|
6523 | irix5* | irix6* | nonstopux*)
|
---|
6524 | case $LD in
|
---|
6525 | *-32|*"-32 ") libmagic=32-bit;;
|
---|
6526 | *-n32|*"-n32 ") libmagic=N32;;
|
---|
6527 | *-64|*"-64 ") libmagic=64-bit;;
|
---|
6528 | *) libmagic=never-match;;
|
---|
6529 | esac
|
---|
6530 | lt_cv_deplibs_check_method=pass_all
|
---|
6531 | ;;
|
---|
6532 |
|
---|
6533 | # This must be glibc/ELF.
|
---|
6534 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
|
---|
6535 | lt_cv_deplibs_check_method=pass_all
|
---|
6536 | ;;
|
---|
6537 |
|
---|
6538 | netbsd*)
|
---|
6539 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
|
---|
6540 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
|
---|
6541 | else
|
---|
6542 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
|
---|
6543 | fi
|
---|
6544 | ;;
|
---|
6545 |
|
---|
6546 | newos6*)
|
---|
6547 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
|
---|
6548 | lt_cv_file_magic_cmd=$FILECMD
|
---|
6549 | lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
---|
6550 | ;;
|
---|
6551 |
|
---|
6552 | *nto* | *qnx*)
|
---|
6553 | lt_cv_deplibs_check_method=pass_all
|
---|
6554 | ;;
|
---|
6555 |
|
---|
6556 | openbsd* | bitrig*)
|
---|
6557 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
|
---|
6558 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
|
---|
6559 | else
|
---|
6560 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
|
---|
6561 | fi
|
---|
6562 | ;;
|
---|
6563 |
|
---|
6564 | osf3* | osf4* | osf5*)
|
---|
6565 | lt_cv_deplibs_check_method=pass_all
|
---|
6566 | ;;
|
---|
6567 |
|
---|
6568 | rdos*)
|
---|
6569 | lt_cv_deplibs_check_method=pass_all
|
---|
6570 | ;;
|
---|
6571 |
|
---|
6572 | solaris*)
|
---|
6573 | lt_cv_deplibs_check_method=pass_all
|
---|
6574 | ;;
|
---|
6575 |
|
---|
6576 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
---|
6577 | lt_cv_deplibs_check_method=pass_all
|
---|
6578 | ;;
|
---|
6579 |
|
---|
6580 | sysv4 | sysv4.3*)
|
---|
6581 | case $host_vendor in
|
---|
6582 | motorola)
|
---|
6583 | 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]'
|
---|
6584 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
---|
6585 | ;;
|
---|
6586 | ncr)
|
---|
6587 | lt_cv_deplibs_check_method=pass_all
|
---|
6588 | ;;
|
---|
6589 | sequent)
|
---|
6590 | lt_cv_file_magic_cmd='/bin/file'
|
---|
6591 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
|
---|
6592 | ;;
|
---|
6593 | sni)
|
---|
6594 | lt_cv_file_magic_cmd='/bin/file'
|
---|
6595 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
|
---|
6596 | lt_cv_file_magic_test_file=/lib/libc.so
|
---|
6597 | ;;
|
---|
6598 | siemens)
|
---|
6599 | lt_cv_deplibs_check_method=pass_all
|
---|
6600 | ;;
|
---|
6601 | pc)
|
---|
6602 | lt_cv_deplibs_check_method=pass_all
|
---|
6603 | ;;
|
---|
6604 | esac
|
---|
6605 | ;;
|
---|
6606 |
|
---|
6607 | tpf*)
|
---|
6608 | lt_cv_deplibs_check_method=pass_all
|
---|
6609 | ;;
|
---|
6610 | os2*)
|
---|
6611 | lt_cv_deplibs_check_method=pass_all
|
---|
6612 | ;;
|
---|
6613 | esac
|
---|
6614 | ;;
|
---|
6615 | esac
|
---|
6616 | fi
|
---|
6617 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
|
---|
6618 | printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
|
---|
6619 |
|
---|
6620 | file_magic_glob=
|
---|
6621 | want_nocaseglob=no
|
---|
6622 | if test "$build" = "$host"; then
|
---|
6623 | case $host_os in
|
---|
6624 | mingw* | pw32*)
|
---|
6625 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
|
---|
6626 | want_nocaseglob=yes
|
---|
6627 | else
|
---|
6628 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
|
---|
6629 | fi
|
---|
6630 | ;;
|
---|
6631 | esac
|
---|
6632 | fi
|
---|
6633 |
|
---|
6634 | file_magic_cmd=$lt_cv_file_magic_cmd
|
---|
6635 | deplibs_check_method=$lt_cv_deplibs_check_method
|
---|
6636 | test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
---|
6637 |
|
---|
6638 |
|
---|
6639 |
|
---|
6640 |
|
---|
6641 |
|
---|
6642 |
|
---|
6643 |
|
---|
6644 |
|
---|
6645 |
|
---|
6646 |
|
---|
6647 |
|
---|
6648 |
|
---|
6649 |
|
---|
6650 |
|
---|
6651 |
|
---|
6652 |
|
---|
6653 |
|
---|
6654 |
|
---|
6655 |
|
---|
6656 |
|
---|
6657 |
|
---|
6658 |
|
---|
6659 | if test -n "$ac_tool_prefix"; then
|
---|
6660 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
|
---|
6661 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2
|
---|
6662 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
6663 | printf %s "checking for $ac_word... " >&6; }
|
---|
6664 | if test ${ac_cv_prog_DLLTOOL+y}
|
---|
6665 | then :
|
---|
6666 | printf %s "(cached) " >&6
|
---|
6667 | else case e in #(
|
---|
6668 | e) if test -n "$DLLTOOL"; then
|
---|
6669 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
|
---|
6670 | else
|
---|
6671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6672 | for as_dir in $PATH
|
---|
6673 | do
|
---|
6674 | IFS=$as_save_IFS
|
---|
6675 | case $as_dir in #(((
|
---|
6676 | '') as_dir=./ ;;
|
---|
6677 | */) ;;
|
---|
6678 | *) as_dir=$as_dir/ ;;
|
---|
6679 | esac
|
---|
6680 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6681 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
6682 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
|
---|
6683 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
6684 | break 2
|
---|
6685 | fi
|
---|
6686 | done
|
---|
6687 | done
|
---|
6688 | IFS=$as_save_IFS
|
---|
6689 |
|
---|
6690 | fi ;;
|
---|
6691 | esac
|
---|
6692 | fi
|
---|
6693 | DLLTOOL=$ac_cv_prog_DLLTOOL
|
---|
6694 | if test -n "$DLLTOOL"; then
|
---|
6695 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
|
---|
6696 | printf "%s\n" "$DLLTOOL" >&6; }
|
---|
6697 | else
|
---|
6698 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6699 | printf "%s\n" "no" >&6; }
|
---|
6700 | fi
|
---|
6701 |
|
---|
6702 |
|
---|
6703 | fi
|
---|
6704 | if test -z "$ac_cv_prog_DLLTOOL"; then
|
---|
6705 | ac_ct_DLLTOOL=$DLLTOOL
|
---|
6706 | # Extract the first word of "dlltool", so it can be a program name with args.
|
---|
6707 | set dummy dlltool; ac_word=$2
|
---|
6708 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
6709 | printf %s "checking for $ac_word... " >&6; }
|
---|
6710 | if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
|
---|
6711 | then :
|
---|
6712 | printf %s "(cached) " >&6
|
---|
6713 | else case e in #(
|
---|
6714 | e) if test -n "$ac_ct_DLLTOOL"; then
|
---|
6715 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
|
---|
6716 | else
|
---|
6717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6718 | for as_dir in $PATH
|
---|
6719 | do
|
---|
6720 | IFS=$as_save_IFS
|
---|
6721 | case $as_dir in #(((
|
---|
6722 | '') as_dir=./ ;;
|
---|
6723 | */) ;;
|
---|
6724 | *) as_dir=$as_dir/ ;;
|
---|
6725 | esac
|
---|
6726 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6727 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
6728 | ac_cv_prog_ac_ct_DLLTOOL="dlltool"
|
---|
6729 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
6730 | break 2
|
---|
6731 | fi
|
---|
6732 | done
|
---|
6733 | done
|
---|
6734 | IFS=$as_save_IFS
|
---|
6735 |
|
---|
6736 | fi ;;
|
---|
6737 | esac
|
---|
6738 | fi
|
---|
6739 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
|
---|
6740 | if test -n "$ac_ct_DLLTOOL"; then
|
---|
6741 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
|
---|
6742 | printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
|
---|
6743 | else
|
---|
6744 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6745 | printf "%s\n" "no" >&6; }
|
---|
6746 | fi
|
---|
6747 |
|
---|
6748 | if test "x$ac_ct_DLLTOOL" = x; then
|
---|
6749 | DLLTOOL="false"
|
---|
6750 | else
|
---|
6751 | case $cross_compiling:$ac_tool_warned in
|
---|
6752 | yes:)
|
---|
6753 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
6754 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
6755 | ac_tool_warned=yes ;;
|
---|
6756 | esac
|
---|
6757 | DLLTOOL=$ac_ct_DLLTOOL
|
---|
6758 | fi
|
---|
6759 | else
|
---|
6760 | DLLTOOL="$ac_cv_prog_DLLTOOL"
|
---|
6761 | fi
|
---|
6762 |
|
---|
6763 | test -z "$DLLTOOL" && DLLTOOL=dlltool
|
---|
6764 |
|
---|
6765 |
|
---|
6766 |
|
---|
6767 |
|
---|
6768 |
|
---|
6769 |
|
---|
6770 |
|
---|
6771 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
|
---|
6772 | printf %s "checking how to associate runtime and link libraries... " >&6; }
|
---|
6773 | if test ${lt_cv_sharedlib_from_linklib_cmd+y}
|
---|
6774 | then :
|
---|
6775 | printf %s "(cached) " >&6
|
---|
6776 | else case e in #(
|
---|
6777 | e) lt_cv_sharedlib_from_linklib_cmd='unknown'
|
---|
6778 |
|
---|
6779 | case $host_os in
|
---|
6780 | cygwin* | mingw* | pw32* | cegcc*)
|
---|
6781 | # two different shell functions defined in ltmain.sh;
|
---|
6782 | # decide which one to use based on capabilities of $DLLTOOL
|
---|
6783 | case `$DLLTOOL --help 2>&1` in
|
---|
6784 | *--identify-strict*)
|
---|
6785 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
|
---|
6786 | ;;
|
---|
6787 | *)
|
---|
6788 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
|
---|
6789 | ;;
|
---|
6790 | esac
|
---|
6791 | ;;
|
---|
6792 | *)
|
---|
6793 | # fallback: assume linklib IS sharedlib
|
---|
6794 | lt_cv_sharedlib_from_linklib_cmd=$ECHO
|
---|
6795 | ;;
|
---|
6796 | esac
|
---|
6797 | ;;
|
---|
6798 | esac
|
---|
6799 | fi
|
---|
6800 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
|
---|
6801 | printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
|
---|
6802 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
|
---|
6803 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
|
---|
6804 |
|
---|
6805 |
|
---|
6806 |
|
---|
6807 |
|
---|
6808 |
|
---|
6809 |
|
---|
6810 |
|
---|
6811 |
|
---|
6812 | if test -n "$ac_tool_prefix"; then
|
---|
6813 | for ac_prog in ar
|
---|
6814 | do
|
---|
6815 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
6816 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
6817 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
6818 | printf %s "checking for $ac_word... " >&6; }
|
---|
6819 | if test ${ac_cv_prog_AR+y}
|
---|
6820 | then :
|
---|
6821 | printf %s "(cached) " >&6
|
---|
6822 | else case e in #(
|
---|
6823 | e) if test -n "$AR"; then
|
---|
6824 | ac_cv_prog_AR="$AR" # Let the user override the test.
|
---|
6825 | else
|
---|
6826 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6827 | for as_dir in $PATH
|
---|
6828 | do
|
---|
6829 | IFS=$as_save_IFS
|
---|
6830 | case $as_dir in #(((
|
---|
6831 | '') as_dir=./ ;;
|
---|
6832 | */) ;;
|
---|
6833 | *) as_dir=$as_dir/ ;;
|
---|
6834 | esac
|
---|
6835 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6836 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
6837 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
|
---|
6838 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
6839 | break 2
|
---|
6840 | fi
|
---|
6841 | done
|
---|
6842 | done
|
---|
6843 | IFS=$as_save_IFS
|
---|
6844 |
|
---|
6845 | fi ;;
|
---|
6846 | esac
|
---|
6847 | fi
|
---|
6848 | AR=$ac_cv_prog_AR
|
---|
6849 | if test -n "$AR"; then
|
---|
6850 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
|
---|
6851 | printf "%s\n" "$AR" >&6; }
|
---|
6852 | else
|
---|
6853 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6854 | printf "%s\n" "no" >&6; }
|
---|
6855 | fi
|
---|
6856 |
|
---|
6857 |
|
---|
6858 | test -n "$AR" && break
|
---|
6859 | done
|
---|
6860 | fi
|
---|
6861 | if test -z "$AR"; then
|
---|
6862 | ac_ct_AR=$AR
|
---|
6863 | for ac_prog in ar
|
---|
6864 | do
|
---|
6865 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
6866 | set dummy $ac_prog; ac_word=$2
|
---|
6867 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
6868 | printf %s "checking for $ac_word... " >&6; }
|
---|
6869 | if test ${ac_cv_prog_ac_ct_AR+y}
|
---|
6870 | then :
|
---|
6871 | printf %s "(cached) " >&6
|
---|
6872 | else case e in #(
|
---|
6873 | e) if test -n "$ac_ct_AR"; then
|
---|
6874 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
|
---|
6875 | else
|
---|
6876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6877 | for as_dir in $PATH
|
---|
6878 | do
|
---|
6879 | IFS=$as_save_IFS
|
---|
6880 | case $as_dir in #(((
|
---|
6881 | '') as_dir=./ ;;
|
---|
6882 | */) ;;
|
---|
6883 | *) as_dir=$as_dir/ ;;
|
---|
6884 | esac
|
---|
6885 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6886 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
6887 | ac_cv_prog_ac_ct_AR="$ac_prog"
|
---|
6888 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
6889 | break 2
|
---|
6890 | fi
|
---|
6891 | done
|
---|
6892 | done
|
---|
6893 | IFS=$as_save_IFS
|
---|
6894 |
|
---|
6895 | fi ;;
|
---|
6896 | esac
|
---|
6897 | fi
|
---|
6898 | ac_ct_AR=$ac_cv_prog_ac_ct_AR
|
---|
6899 | if test -n "$ac_ct_AR"; then
|
---|
6900 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
|
---|
6901 | printf "%s\n" "$ac_ct_AR" >&6; }
|
---|
6902 | else
|
---|
6903 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6904 | printf "%s\n" "no" >&6; }
|
---|
6905 | fi
|
---|
6906 |
|
---|
6907 |
|
---|
6908 | test -n "$ac_ct_AR" && break
|
---|
6909 | done
|
---|
6910 |
|
---|
6911 | if test "x$ac_ct_AR" = x; then
|
---|
6912 | AR="false"
|
---|
6913 | else
|
---|
6914 | case $cross_compiling:$ac_tool_warned in
|
---|
6915 | yes:)
|
---|
6916 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
6917 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
6918 | ac_tool_warned=yes ;;
|
---|
6919 | esac
|
---|
6920 | AR=$ac_ct_AR
|
---|
6921 | fi
|
---|
6922 | fi
|
---|
6923 |
|
---|
6924 | : ${AR=ar}
|
---|
6925 |
|
---|
6926 |
|
---|
6927 |
|
---|
6928 |
|
---|
6929 |
|
---|
6930 |
|
---|
6931 | # Use ARFLAGS variable as AR's operation code to sync the variable naming with
|
---|
6932 | # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
|
---|
6933 | # higher priority because thats what people were doing historically (setting
|
---|
6934 | # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
|
---|
6935 | # variable obsoleted/removed.
|
---|
6936 |
|
---|
6937 | test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
|
---|
6938 | lt_ar_flags=$AR_FLAGS
|
---|
6939 |
|
---|
6940 |
|
---|
6941 |
|
---|
6942 |
|
---|
6943 |
|
---|
6944 |
|
---|
6945 | # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
|
---|
6946 | # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
|
---|
6947 |
|
---|
6948 |
|
---|
6949 |
|
---|
6950 |
|
---|
6951 |
|
---|
6952 |
|
---|
6953 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
|
---|
6954 | printf %s "checking for archiver @FILE support... " >&6; }
|
---|
6955 | if test ${lt_cv_ar_at_file+y}
|
---|
6956 | then :
|
---|
6957 | printf %s "(cached) " >&6
|
---|
6958 | else case e in #(
|
---|
6959 | e) lt_cv_ar_at_file=no
|
---|
6960 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6961 | /* end confdefs.h. */
|
---|
6962 |
|
---|
6963 | int
|
---|
6964 | main (void)
|
---|
6965 | {
|
---|
6966 |
|
---|
6967 | ;
|
---|
6968 | return 0;
|
---|
6969 | }
|
---|
6970 | _ACEOF
|
---|
6971 | if ac_fn_c_try_compile "$LINENO"
|
---|
6972 | then :
|
---|
6973 | echo conftest.$ac_objext > conftest.lst
|
---|
6974 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
|
---|
6975 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
---|
6976 | (eval $lt_ar_try) 2>&5
|
---|
6977 | ac_status=$?
|
---|
6978 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
6979 | test $ac_status = 0; }
|
---|
6980 | if test 0 -eq "$ac_status"; then
|
---|
6981 | # Ensure the archiver fails upon bogus file names.
|
---|
6982 | rm -f conftest.$ac_objext libconftest.a
|
---|
6983 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
---|
6984 | (eval $lt_ar_try) 2>&5
|
---|
6985 | ac_status=$?
|
---|
6986 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
6987 | test $ac_status = 0; }
|
---|
6988 | if test 0 -ne "$ac_status"; then
|
---|
6989 | lt_cv_ar_at_file=@
|
---|
6990 | fi
|
---|
6991 | fi
|
---|
6992 | rm -f conftest.* libconftest.a
|
---|
6993 |
|
---|
6994 | fi
|
---|
6995 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
6996 | ;;
|
---|
6997 | esac
|
---|
6998 | fi
|
---|
6999 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
|
---|
7000 | printf "%s\n" "$lt_cv_ar_at_file" >&6; }
|
---|
7001 |
|
---|
7002 | if test no = "$lt_cv_ar_at_file"; then
|
---|
7003 | archiver_list_spec=
|
---|
7004 | else
|
---|
7005 | archiver_list_spec=$lt_cv_ar_at_file
|
---|
7006 | fi
|
---|
7007 |
|
---|
7008 |
|
---|
7009 |
|
---|
7010 |
|
---|
7011 |
|
---|
7012 |
|
---|
7013 |
|
---|
7014 | if test -n "$ac_tool_prefix"; then
|
---|
7015 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
---|
7016 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
---|
7017 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
7018 | printf %s "checking for $ac_word... " >&6; }
|
---|
7019 | if test ${ac_cv_prog_STRIP+y}
|
---|
7020 | then :
|
---|
7021 | printf %s "(cached) " >&6
|
---|
7022 | else case e in #(
|
---|
7023 | e) if test -n "$STRIP"; then
|
---|
7024 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
7025 | else
|
---|
7026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7027 | for as_dir in $PATH
|
---|
7028 | do
|
---|
7029 | IFS=$as_save_IFS
|
---|
7030 | case $as_dir in #(((
|
---|
7031 | '') as_dir=./ ;;
|
---|
7032 | */) ;;
|
---|
7033 | *) as_dir=$as_dir/ ;;
|
---|
7034 | esac
|
---|
7035 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
7036 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
7037 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
---|
7038 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
7039 | break 2
|
---|
7040 | fi
|
---|
7041 | done
|
---|
7042 | done
|
---|
7043 | IFS=$as_save_IFS
|
---|
7044 |
|
---|
7045 | fi ;;
|
---|
7046 | esac
|
---|
7047 | fi
|
---|
7048 | STRIP=$ac_cv_prog_STRIP
|
---|
7049 | if test -n "$STRIP"; then
|
---|
7050 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
|
---|
7051 | printf "%s\n" "$STRIP" >&6; }
|
---|
7052 | else
|
---|
7053 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
7054 | printf "%s\n" "no" >&6; }
|
---|
7055 | fi
|
---|
7056 |
|
---|
7057 |
|
---|
7058 | fi
|
---|
7059 | if test -z "$ac_cv_prog_STRIP"; then
|
---|
7060 | ac_ct_STRIP=$STRIP
|
---|
7061 | # Extract the first word of "strip", so it can be a program name with args.
|
---|
7062 | set dummy strip; ac_word=$2
|
---|
7063 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
7064 | printf %s "checking for $ac_word... " >&6; }
|
---|
7065 | if test ${ac_cv_prog_ac_ct_STRIP+y}
|
---|
7066 | then :
|
---|
7067 | printf %s "(cached) " >&6
|
---|
7068 | else case e in #(
|
---|
7069 | e) if test -n "$ac_ct_STRIP"; then
|
---|
7070 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
---|
7071 | else
|
---|
7072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7073 | for as_dir in $PATH
|
---|
7074 | do
|
---|
7075 | IFS=$as_save_IFS
|
---|
7076 | case $as_dir in #(((
|
---|
7077 | '') as_dir=./ ;;
|
---|
7078 | */) ;;
|
---|
7079 | *) as_dir=$as_dir/ ;;
|
---|
7080 | esac
|
---|
7081 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
7082 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
7083 | ac_cv_prog_ac_ct_STRIP="strip"
|
---|
7084 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
7085 | break 2
|
---|
7086 | fi
|
---|
7087 | done
|
---|
7088 | done
|
---|
7089 | IFS=$as_save_IFS
|
---|
7090 |
|
---|
7091 | fi ;;
|
---|
7092 | esac
|
---|
7093 | fi
|
---|
7094 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
---|
7095 | if test -n "$ac_ct_STRIP"; then
|
---|
7096 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
|
---|
7097 | printf "%s\n" "$ac_ct_STRIP" >&6; }
|
---|
7098 | else
|
---|
7099 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
7100 | printf "%s\n" "no" >&6; }
|
---|
7101 | fi
|
---|
7102 |
|
---|
7103 | if test "x$ac_ct_STRIP" = x; then
|
---|
7104 | STRIP=":"
|
---|
7105 | else
|
---|
7106 | case $cross_compiling:$ac_tool_warned in
|
---|
7107 | yes:)
|
---|
7108 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
7109 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
7110 | ac_tool_warned=yes ;;
|
---|
7111 | esac
|
---|
7112 | STRIP=$ac_ct_STRIP
|
---|
7113 | fi
|
---|
7114 | else
|
---|
7115 | STRIP="$ac_cv_prog_STRIP"
|
---|
7116 | fi
|
---|
7117 |
|
---|
7118 | test -z "$STRIP" && STRIP=:
|
---|
7119 |
|
---|
7120 |
|
---|
7121 |
|
---|
7122 |
|
---|
7123 |
|
---|
7124 |
|
---|
7125 | if test -n "$ac_tool_prefix"; then
|
---|
7126 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
7127 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
7128 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
7129 | printf %s "checking for $ac_word... " >&6; }
|
---|
7130 | if test ${ac_cv_prog_RANLIB+y}
|
---|
7131 | then :
|
---|
7132 | printf %s "(cached) " >&6
|
---|
7133 | else case e in #(
|
---|
7134 | e) if test -n "$RANLIB"; then
|
---|
7135 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
7136 | else
|
---|
7137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7138 | for as_dir in $PATH
|
---|
7139 | do
|
---|
7140 | IFS=$as_save_IFS
|
---|
7141 | case $as_dir in #(((
|
---|
7142 | '') as_dir=./ ;;
|
---|
7143 | */) ;;
|
---|
7144 | *) as_dir=$as_dir/ ;;
|
---|
7145 | esac
|
---|
7146 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
7147 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
7148 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
7149 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
7150 | break 2
|
---|
7151 | fi
|
---|
7152 | done
|
---|
7153 | done
|
---|
7154 | IFS=$as_save_IFS
|
---|
7155 |
|
---|
7156 | fi ;;
|
---|
7157 | esac
|
---|
7158 | fi
|
---|
7159 | RANLIB=$ac_cv_prog_RANLIB
|
---|
7160 | if test -n "$RANLIB"; then
|
---|
7161 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
|
---|
7162 | printf "%s\n" "$RANLIB" >&6; }
|
---|
7163 | else
|
---|
7164 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
7165 | printf "%s\n" "no" >&6; }
|
---|
7166 | fi
|
---|
7167 |
|
---|
7168 |
|
---|
7169 | fi
|
---|
7170 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
7171 | ac_ct_RANLIB=$RANLIB
|
---|
7172 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
7173 | set dummy ranlib; ac_word=$2
|
---|
7174 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
7175 | printf %s "checking for $ac_word... " >&6; }
|
---|
7176 | if test ${ac_cv_prog_ac_ct_RANLIB+y}
|
---|
7177 | then :
|
---|
7178 | printf %s "(cached) " >&6
|
---|
7179 | else case e in #(
|
---|
7180 | e) if test -n "$ac_ct_RANLIB"; then
|
---|
7181 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
7182 | else
|
---|
7183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7184 | for as_dir in $PATH
|
---|
7185 | do
|
---|
7186 | IFS=$as_save_IFS
|
---|
7187 | case $as_dir in #(((
|
---|
7188 | '') as_dir=./ ;;
|
---|
7189 | */) ;;
|
---|
7190 | *) as_dir=$as_dir/ ;;
|
---|
7191 | esac
|
---|
7192 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
7193 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
7194 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
7195 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
7196 | break 2
|
---|
7197 | fi
|
---|
7198 | done
|
---|
7199 | done
|
---|
7200 | IFS=$as_save_IFS
|
---|
7201 |
|
---|
7202 | fi ;;
|
---|
7203 | esac
|
---|
7204 | fi
|
---|
7205 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
7206 | if test -n "$ac_ct_RANLIB"; then
|
---|
7207 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
|
---|
7208 | printf "%s\n" "$ac_ct_RANLIB" >&6; }
|
---|
7209 | else
|
---|
7210 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
7211 | printf "%s\n" "no" >&6; }
|
---|
7212 | fi
|
---|
7213 |
|
---|
7214 | if test "x$ac_ct_RANLIB" = x; then
|
---|
7215 | RANLIB=":"
|
---|
7216 | else
|
---|
7217 | case $cross_compiling:$ac_tool_warned in
|
---|
7218 | yes:)
|
---|
7219 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
7220 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
7221 | ac_tool_warned=yes ;;
|
---|
7222 | esac
|
---|
7223 | RANLIB=$ac_ct_RANLIB
|
---|
7224 | fi
|
---|
7225 | else
|
---|
7226 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
7227 | fi
|
---|
7228 |
|
---|
7229 | test -z "$RANLIB" && RANLIB=:
|
---|
7230 |
|
---|
7231 |
|
---|
7232 |
|
---|
7233 |
|
---|
7234 |
|
---|
7235 |
|
---|
7236 | # Determine commands to create old-style static archives.
|
---|
7237 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
|
---|
7238 | old_postinstall_cmds='chmod 644 $oldlib'
|
---|
7239 | old_postuninstall_cmds=
|
---|
7240 |
|
---|
7241 | if test -n "$RANLIB"; then
|
---|
7242 | case $host_os in
|
---|
7243 | bitrig* | openbsd*)
|
---|
7244 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
|
---|
7245 | ;;
|
---|
7246 | *)
|
---|
7247 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
|
---|
7248 | ;;
|
---|
7249 | esac
|
---|
7250 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
|
---|
7251 | fi
|
---|
7252 |
|
---|
7253 | case $host_os in
|
---|
7254 | darwin*)
|
---|
7255 | lock_old_archive_extraction=yes ;;
|
---|
7256 | *)
|
---|
7257 | lock_old_archive_extraction=no ;;
|
---|
7258 | esac
|
---|
7259 |
|
---|
7260 |
|
---|
7261 |
|
---|
7262 |
|
---|
7263 |
|
---|
7264 |
|
---|
7265 |
|
---|
7266 |
|
---|
7267 |
|
---|
7268 |
|
---|
7269 |
|
---|
7270 |
|
---|
7271 |
|
---|
7272 |
|
---|
7273 |
|
---|
7274 |
|
---|
7275 |
|
---|
7276 |
|
---|
7277 |
|
---|
7278 |
|
---|
7279 |
|
---|
7280 |
|
---|
7281 |
|
---|
7282 |
|
---|
7283 |
|
---|
7284 |
|
---|
7285 |
|
---|
7286 |
|
---|
7287 |
|
---|
7288 |
|
---|
7289 |
|
---|
7290 |
|
---|
7291 |
|
---|
7292 |
|
---|
7293 |
|
---|
7294 |
|
---|
7295 |
|
---|
7296 |
|
---|
7297 |
|
---|
7298 | # If no C compiler was specified, use CC.
|
---|
7299 | LTCC=${LTCC-"$CC"}
|
---|
7300 |
|
---|
7301 | # If no C compiler flags were specified, use CFLAGS.
|
---|
7302 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
---|
7303 |
|
---|
7304 | # Allow CC to be a program name with arguments.
|
---|
7305 | compiler=$CC
|
---|
7306 |
|
---|
7307 |
|
---|
7308 | # Check for command to grab the raw symbol name followed by C symbol from nm.
|
---|
7309 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
|
---|
7310 | printf %s "checking command to parse $NM output from $compiler object... " >&6; }
|
---|
7311 | if test ${lt_cv_sys_global_symbol_pipe+y}
|
---|
7312 | then :
|
---|
7313 | printf %s "(cached) " >&6
|
---|
7314 | else case e in #(
|
---|
7315 | e)
|
---|
7316 | # These are sane defaults that work on at least a few old systems.
|
---|
7317 | # [They come from Ultrix. What could be older than Ultrix?!! ;)]
|
---|
7318 |
|
---|
7319 | # Character class describing NM global symbol codes.
|
---|
7320 | symcode='[BCDEGRST]'
|
---|
7321 |
|
---|
7322 | # Regexp to match symbols that can be accessed directly from C.
|
---|
7323 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
|
---|
7324 |
|
---|
7325 | # Define system-specific variables.
|
---|
7326 | case $host_os in
|
---|
7327 | aix*)
|
---|
7328 | symcode='[BCDT]'
|
---|
7329 | ;;
|
---|
7330 | cygwin* | mingw* | pw32* | cegcc*)
|
---|
7331 | symcode='[ABCDGISTW]'
|
---|
7332 | ;;
|
---|
7333 | hpux*)
|
---|
7334 | if test ia64 = "$host_cpu"; then
|
---|
7335 | symcode='[ABCDEGRST]'
|
---|
7336 | fi
|
---|
7337 | ;;
|
---|
7338 | irix* | nonstopux*)
|
---|
7339 | symcode='[BCDEGRST]'
|
---|
7340 | ;;
|
---|
7341 | osf*)
|
---|
7342 | symcode='[BCDEGQRST]'
|
---|
7343 | ;;
|
---|
7344 | solaris*)
|
---|
7345 | symcode='[BDRT]'
|
---|
7346 | ;;
|
---|
7347 | sco3.2v5*)
|
---|
7348 | symcode='[DT]'
|
---|
7349 | ;;
|
---|
7350 | sysv4.2uw2*)
|
---|
7351 | symcode='[DT]'
|
---|
7352 | ;;
|
---|
7353 | sysv5* | sco5v6* | unixware* | OpenUNIX*)
|
---|
7354 | symcode='[ABDT]'
|
---|
7355 | ;;
|
---|
7356 | sysv4)
|
---|
7357 | symcode='[DFNSTU]'
|
---|
7358 | ;;
|
---|
7359 | esac
|
---|
7360 |
|
---|
7361 | # If we're using GNU nm, then use its standard symbol codes.
|
---|
7362 | case `$NM -V 2>&1` in
|
---|
7363 | *GNU* | *'with BFD'*)
|
---|
7364 | symcode='[ABCDGIRSTW]' ;;
|
---|
7365 | esac
|
---|
7366 |
|
---|
7367 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
---|
7368 | # Gets list of data symbols to import.
|
---|
7369 | lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
|
---|
7370 | # Adjust the below global symbol transforms to fixup imported variables.
|
---|
7371 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
|
---|
7372 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
|
---|
7373 | lt_c_name_lib_hook="\
|
---|
7374 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
|
---|
7375 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
|
---|
7376 | else
|
---|
7377 | # Disable hooks by default.
|
---|
7378 | lt_cv_sys_global_symbol_to_import=
|
---|
7379 | lt_cdecl_hook=
|
---|
7380 | lt_c_name_hook=
|
---|
7381 | lt_c_name_lib_hook=
|
---|
7382 | fi
|
---|
7383 |
|
---|
7384 | # Transform an extracted symbol line into a proper C declaration.
|
---|
7385 | # Some systems (esp. on ia64) link data and code symbols differently,
|
---|
7386 | # so use this general approach.
|
---|
7387 | lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
|
---|
7388 | $lt_cdecl_hook\
|
---|
7389 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
|
---|
7390 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
|
---|
7391 |
|
---|
7392 | # Transform an extracted symbol line into symbol name and symbol address
|
---|
7393 | lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
|
---|
7394 | $lt_c_name_hook\
|
---|
7395 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
|
---|
7396 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
|
---|
7397 |
|
---|
7398 | # Transform an extracted symbol line into symbol name with lib prefix and
|
---|
7399 | # symbol address.
|
---|
7400 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
|
---|
7401 | $lt_c_name_lib_hook\
|
---|
7402 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
|
---|
7403 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
|
---|
7404 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
|
---|
7405 |
|
---|
7406 | # Handle CRLF in mingw tool chain
|
---|
7407 | opt_cr=
|
---|
7408 | case $build_os in
|
---|
7409 | mingw*)
|
---|
7410 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
|
---|
7411 | ;;
|
---|
7412 | esac
|
---|
7413 |
|
---|
7414 | # Try without a prefix underscore, then with it.
|
---|
7415 | for ac_symprfx in "" "_"; do
|
---|
7416 |
|
---|
7417 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
|
---|
7418 | symxfrm="\\1 $ac_symprfx\\2 \\2"
|
---|
7419 |
|
---|
7420 | # Write the raw and C identifiers.
|
---|
7421 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
---|
7422 | # Fake it for dumpbin and say T for any non-static function,
|
---|
7423 | # D for any global variable and I for any imported variable.
|
---|
7424 | # Also find C++ and __fastcall symbols from MSVC++ or ICC,
|
---|
7425 | # which start with @ or ?.
|
---|
7426 | lt_cv_sys_global_symbol_pipe="$AWK '"\
|
---|
7427 | " {last_section=section; section=\$ 3};"\
|
---|
7428 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
|
---|
7429 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
|
---|
7430 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
|
---|
7431 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
|
---|
7432 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
|
---|
7433 | " \$ 0!~/External *\|/{next};"\
|
---|
7434 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
|
---|
7435 | " {if(hide[section]) next};"\
|
---|
7436 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
|
---|
7437 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
|
---|
7438 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
|
---|
7439 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
|
---|
7440 | " ' prfx=^$ac_symprfx"
|
---|
7441 | else
|
---|
7442 | lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
---|
7443 | fi
|
---|
7444 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
|
---|
7445 |
|
---|
7446 | # Check to see that the pipe works correctly.
|
---|
7447 | pipe_works=no
|
---|
7448 |
|
---|
7449 | rm -f conftest*
|
---|
7450 | cat > conftest.$ac_ext <<_LT_EOF
|
---|
7451 | #ifdef __cplusplus
|
---|
7452 | extern "C" {
|
---|
7453 | #endif
|
---|
7454 | char nm_test_var;
|
---|
7455 | void nm_test_func(void);
|
---|
7456 | void nm_test_func(void){}
|
---|
7457 | #ifdef __cplusplus
|
---|
7458 | }
|
---|
7459 | #endif
|
---|
7460 | int main(){nm_test_var='a';nm_test_func();return(0);}
|
---|
7461 | _LT_EOF
|
---|
7462 |
|
---|
7463 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
---|
7464 | (eval $ac_compile) 2>&5
|
---|
7465 | ac_status=$?
|
---|
7466 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
7467 | test $ac_status = 0; }; then
|
---|
7468 | # Now try to grab the symbols.
|
---|
7469 | nlist=conftest.nm
|
---|
7470 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
|
---|
7471 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
|
---|
7472 | ac_status=$?
|
---|
7473 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
7474 | test $ac_status = 0; } && test -s "$nlist"; then
|
---|
7475 | # Try sorting and uniquifying the output.
|
---|
7476 | if sort "$nlist" | uniq > "$nlist"T; then
|
---|
7477 | mv -f "$nlist"T "$nlist"
|
---|
7478 | else
|
---|
7479 | rm -f "$nlist"T
|
---|
7480 | fi
|
---|
7481 |
|
---|
7482 | # Make sure that we snagged all the symbols we need.
|
---|
7483 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
|
---|
7484 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
|
---|
7485 | cat <<_LT_EOF > conftest.$ac_ext
|
---|
7486 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
|
---|
7487 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
|
---|
7488 | /* DATA imports from DLLs on WIN32 can't be const, because runtime
|
---|
7489 | relocations are performed -- see ld's documentation on pseudo-relocs. */
|
---|
7490 | # define LT_DLSYM_CONST
|
---|
7491 | #elif defined __osf__
|
---|
7492 | /* This system does not cope well with relocations in const data. */
|
---|
7493 | # define LT_DLSYM_CONST
|
---|
7494 | #else
|
---|
7495 | # define LT_DLSYM_CONST const
|
---|
7496 | #endif
|
---|
7497 |
|
---|
7498 | #ifdef __cplusplus
|
---|
7499 | extern "C" {
|
---|
7500 | #endif
|
---|
7501 |
|
---|
7502 | _LT_EOF
|
---|
7503 | # Now generate the symbol file.
|
---|
7504 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
|
---|
7505 |
|
---|
7506 | cat <<_LT_EOF >> conftest.$ac_ext
|
---|
7507 |
|
---|
7508 | /* The mapping between symbol names and symbols. */
|
---|
7509 | LT_DLSYM_CONST struct {
|
---|
7510 | const char *name;
|
---|
7511 | void *address;
|
---|
7512 | }
|
---|
7513 | lt__PROGRAM__LTX_preloaded_symbols[] =
|
---|
7514 | {
|
---|
7515 | { "@PROGRAM@", (void *) 0 },
|
---|
7516 | _LT_EOF
|
---|
7517 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
|
---|
7518 | cat <<\_LT_EOF >> conftest.$ac_ext
|
---|
7519 | {0, (void *) 0}
|
---|
7520 | };
|
---|
7521 |
|
---|
7522 | /* This works around a problem in FreeBSD linker */
|
---|
7523 | #ifdef FREEBSD_WORKAROUND
|
---|
7524 | static const void *lt_preloaded_setup() {
|
---|
7525 | return lt__PROGRAM__LTX_preloaded_symbols;
|
---|
7526 | }
|
---|
7527 | #endif
|
---|
7528 |
|
---|
7529 | #ifdef __cplusplus
|
---|
7530 | }
|
---|
7531 | #endif
|
---|
7532 | _LT_EOF
|
---|
7533 | # Now try linking the two files.
|
---|
7534 | mv conftest.$ac_objext conftstm.$ac_objext
|
---|
7535 | lt_globsym_save_LIBS=$LIBS
|
---|
7536 | lt_globsym_save_CFLAGS=$CFLAGS
|
---|
7537 | LIBS=conftstm.$ac_objext
|
---|
7538 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
|
---|
7539 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
|
---|
7540 | (eval $ac_link) 2>&5
|
---|
7541 | ac_status=$?
|
---|
7542 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
7543 | test $ac_status = 0; } && test -s conftest$ac_exeext; then
|
---|
7544 | pipe_works=yes
|
---|
7545 | fi
|
---|
7546 | LIBS=$lt_globsym_save_LIBS
|
---|
7547 | CFLAGS=$lt_globsym_save_CFLAGS
|
---|
7548 | else
|
---|
7549 | echo "cannot find nm_test_func in $nlist" >&5
|
---|
7550 | fi
|
---|
7551 | else
|
---|
7552 | echo "cannot find nm_test_var in $nlist" >&5
|
---|
7553 | fi
|
---|
7554 | else
|
---|
7555 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
|
---|
7556 | fi
|
---|
7557 | else
|
---|
7558 | echo "$progname: failed program was:" >&5
|
---|
7559 | cat conftest.$ac_ext >&5
|
---|
7560 | fi
|
---|
7561 | rm -rf conftest* conftst*
|
---|
7562 |
|
---|
7563 | # Do not use the global_symbol_pipe unless it works.
|
---|
7564 | if test yes = "$pipe_works"; then
|
---|
7565 | break
|
---|
7566 | else
|
---|
7567 | lt_cv_sys_global_symbol_pipe=
|
---|
7568 | fi
|
---|
7569 | done
|
---|
7570 | ;;
|
---|
7571 | esac
|
---|
7572 | fi
|
---|
7573 |
|
---|
7574 | if test -z "$lt_cv_sys_global_symbol_pipe"; then
|
---|
7575 | lt_cv_sys_global_symbol_to_cdecl=
|
---|
7576 | fi
|
---|
7577 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
|
---|
7578 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
|
---|
7579 | printf "%s\n" "failed" >&6; }
|
---|
7580 | else
|
---|
7581 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
|
---|
7582 | printf "%s\n" "ok" >&6; }
|
---|
7583 | fi
|
---|
7584 |
|
---|
7585 | # Response file support.
|
---|
7586 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
---|
7587 | nm_file_list_spec='@'
|
---|
7588 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
|
---|
7589 | nm_file_list_spec='@'
|
---|
7590 | fi
|
---|
7591 |
|
---|
7592 |
|
---|
7593 |
|
---|
7594 |
|
---|
7595 |
|
---|
7596 |
|
---|
7597 |
|
---|
7598 |
|
---|
7599 |
|
---|
7600 |
|
---|
7601 |
|
---|
7602 |
|
---|
7603 |
|
---|
7604 |
|
---|
7605 |
|
---|
7606 |
|
---|
7607 |
|
---|
7608 |
|
---|
7609 |
|
---|
7610 |
|
---|
7611 |
|
---|
7612 |
|
---|
7613 |
|
---|
7614 |
|
---|
7615 |
|
---|
7616 |
|
---|
7617 |
|
---|
7618 |
|
---|
7619 |
|
---|
7620 |
|
---|
7621 |
|
---|
7622 |
|
---|
7623 |
|
---|
7624 |
|
---|
7625 |
|
---|
7626 |
|
---|
7627 |
|
---|
7628 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
|
---|
7629 | printf %s "checking for sysroot... " >&6; }
|
---|
7630 |
|
---|
7631 | # Check whether --with-sysroot was given.
|
---|
7632 | if test ${with_sysroot+y}
|
---|
7633 | then :
|
---|
7634 | withval=$with_sysroot;
|
---|
7635 | else case e in #(
|
---|
7636 | e) with_sysroot=no ;;
|
---|
7637 | esac
|
---|
7638 | fi
|
---|
7639 |
|
---|
7640 |
|
---|
7641 | lt_sysroot=
|
---|
7642 | case $with_sysroot in #(
|
---|
7643 | yes)
|
---|
7644 | if test yes = "$GCC"; then
|
---|
7645 | lt_sysroot=`$CC --print-sysroot 2>/dev/null`
|
---|
7646 | fi
|
---|
7647 | ;; #(
|
---|
7648 | /*)
|
---|
7649 | lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
|
---|
7650 | ;; #(
|
---|
7651 | no|'')
|
---|
7652 | ;; #(
|
---|
7653 | *)
|
---|
7654 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
|
---|
7655 | printf "%s\n" "$with_sysroot" >&6; }
|
---|
7656 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
|
---|
7657 | ;;
|
---|
7658 | esac
|
---|
7659 |
|
---|
7660 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
|
---|
7661 | printf "%s\n" "${lt_sysroot:-no}" >&6; }
|
---|
7662 |
|
---|
7663 |
|
---|
7664 |
|
---|
7665 |
|
---|
7666 |
|
---|
7667 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
|
---|
7668 | printf %s "checking for a working dd... " >&6; }
|
---|
7669 | if test ${ac_cv_path_lt_DD+y}
|
---|
7670 | then :
|
---|
7671 | printf %s "(cached) " >&6
|
---|
7672 | else case e in #(
|
---|
7673 | e) printf 0123456789abcdef0123456789abcdef >conftest.i
|
---|
7674 | cat conftest.i conftest.i >conftest2.i
|
---|
7675 | : ${lt_DD:=$DD}
|
---|
7676 | if test -z "$lt_DD"; then
|
---|
7677 | ac_path_lt_DD_found=false
|
---|
7678 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
7679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7680 | for as_dir in $PATH
|
---|
7681 | do
|
---|
7682 | IFS=$as_save_IFS
|
---|
7683 | case $as_dir in #(((
|
---|
7684 | '') as_dir=./ ;;
|
---|
7685 | */) ;;
|
---|
7686 | *) as_dir=$as_dir/ ;;
|
---|
7687 | esac
|
---|
7688 | for ac_prog in dd
|
---|
7689 | do
|
---|
7690 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
7691 | ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
|
---|
7692 | as_fn_executable_p "$ac_path_lt_DD" || continue
|
---|
7693 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
|
---|
7694 | cmp -s conftest.i conftest.out \
|
---|
7695 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
|
---|
7696 | fi
|
---|
7697 | $ac_path_lt_DD_found && break 3
|
---|
7698 | done
|
---|
7699 | done
|
---|
7700 | done
|
---|
7701 | IFS=$as_save_IFS
|
---|
7702 | if test -z "$ac_cv_path_lt_DD"; then
|
---|
7703 | :
|
---|
7704 | fi
|
---|
7705 | else
|
---|
7706 | ac_cv_path_lt_DD=$lt_DD
|
---|
7707 | fi
|
---|
7708 |
|
---|
7709 | rm -f conftest.i conftest2.i conftest.out ;;
|
---|
7710 | esac
|
---|
7711 | fi
|
---|
7712 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
|
---|
7713 | printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
|
---|
7714 |
|
---|
7715 |
|
---|
7716 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
|
---|
7717 | printf %s "checking how to truncate binary pipes... " >&6; }
|
---|
7718 | if test ${lt_cv_truncate_bin+y}
|
---|
7719 | then :
|
---|
7720 | printf %s "(cached) " >&6
|
---|
7721 | else case e in #(
|
---|
7722 | e) printf 0123456789abcdef0123456789abcdef >conftest.i
|
---|
7723 | cat conftest.i conftest.i >conftest2.i
|
---|
7724 | lt_cv_truncate_bin=
|
---|
7725 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
|
---|
7726 | cmp -s conftest.i conftest.out \
|
---|
7727 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
|
---|
7728 | fi
|
---|
7729 | rm -f conftest.i conftest2.i conftest.out
|
---|
7730 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
|
---|
7731 | esac
|
---|
7732 | fi
|
---|
7733 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
|
---|
7734 | printf "%s\n" "$lt_cv_truncate_bin" >&6; }
|
---|
7735 |
|
---|
7736 |
|
---|
7737 |
|
---|
7738 |
|
---|
7739 |
|
---|
7740 |
|
---|
7741 |
|
---|
7742 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
|
---|
7743 | func_cc_basename ()
|
---|
7744 | {
|
---|
7745 | for cc_temp in $*""; do
|
---|
7746 | case $cc_temp in
|
---|
7747 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
---|
7748 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
---|
7749 | \-*) ;;
|
---|
7750 | *) break;;
|
---|
7751 | esac
|
---|
7752 | done
|
---|
7753 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
|
---|
7754 | }
|
---|
7755 |
|
---|
7756 | # Check whether --enable-libtool-lock was given.
|
---|
7757 | if test ${enable_libtool_lock+y}
|
---|
7758 | then :
|
---|
7759 | enableval=$enable_libtool_lock;
|
---|
7760 | fi
|
---|
7761 |
|
---|
7762 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes
|
---|
7763 |
|
---|
7764 | # Some flags need to be propagated to the compiler or linker for good
|
---|
7765 | # libtool support.
|
---|
7766 | case $host in
|
---|
7767 | ia64-*-hpux*)
|
---|
7768 | # Find out what ABI is being produced by ac_compile, and set mode
|
---|
7769 | # options accordingly.
|
---|
7770 | echo 'int i;' > conftest.$ac_ext
|
---|
7771 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
---|
7772 | (eval $ac_compile) 2>&5
|
---|
7773 | ac_status=$?
|
---|
7774 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
7775 | test $ac_status = 0; }; then
|
---|
7776 | case `$FILECMD conftest.$ac_objext` in
|
---|
7777 | *ELF-32*)
|
---|
7778 | HPUX_IA64_MODE=32
|
---|
7779 | ;;
|
---|
7780 | *ELF-64*)
|
---|
7781 | HPUX_IA64_MODE=64
|
---|
7782 | ;;
|
---|
7783 | esac
|
---|
7784 | fi
|
---|
7785 | rm -rf conftest*
|
---|
7786 | ;;
|
---|
7787 | *-*-irix6*)
|
---|
7788 | # Find out what ABI is being produced by ac_compile, and set linker
|
---|
7789 | # options accordingly.
|
---|
7790 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext
|
---|
7791 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
---|
7792 | (eval $ac_compile) 2>&5
|
---|
7793 | ac_status=$?
|
---|
7794 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
7795 | test $ac_status = 0; }; then
|
---|
7796 | if test yes = "$lt_cv_prog_gnu_ld"; then
|
---|
7797 | case `$FILECMD conftest.$ac_objext` in
|
---|
7798 | *32-bit*)
|
---|
7799 | LD="${LD-ld} -melf32bsmip"
|
---|
7800 | ;;
|
---|
7801 | *N32*)
|
---|
7802 | LD="${LD-ld} -melf32bmipn32"
|
---|
7803 | ;;
|
---|
7804 | *64-bit*)
|
---|
7805 | LD="${LD-ld} -melf64bmip"
|
---|
7806 | ;;
|
---|
7807 | esac
|
---|
7808 | else
|
---|
7809 | case `$FILECMD conftest.$ac_objext` in
|
---|
7810 | *32-bit*)
|
---|
7811 | LD="${LD-ld} -32"
|
---|
7812 | ;;
|
---|
7813 | *N32*)
|
---|
7814 | LD="${LD-ld} -n32"
|
---|
7815 | ;;
|
---|
7816 | *64-bit*)
|
---|
7817 | LD="${LD-ld} -64"
|
---|
7818 | ;;
|
---|
7819 | esac
|
---|
7820 | fi
|
---|
7821 | fi
|
---|
7822 | rm -rf conftest*
|
---|
7823 | ;;
|
---|
7824 |
|
---|
7825 | mips64*-*linux*)
|
---|
7826 | # Find out what ABI is being produced by ac_compile, and set linker
|
---|
7827 | # options accordingly.
|
---|
7828 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext
|
---|
7829 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
---|
7830 | (eval $ac_compile) 2>&5
|
---|
7831 | ac_status=$?
|
---|
7832 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
7833 | test $ac_status = 0; }; then
|
---|
7834 | emul=elf
|
---|
7835 | case `$FILECMD conftest.$ac_objext` in
|
---|
7836 | *32-bit*)
|
---|
7837 | emul="${emul}32"
|
---|
7838 | ;;
|
---|
7839 | *64-bit*)
|
---|
7840 | emul="${emul}64"
|
---|
7841 | ;;
|
---|
7842 | esac
|
---|
7843 | case `$FILECMD conftest.$ac_objext` in
|
---|
7844 | *MSB*)
|
---|
7845 | emul="${emul}btsmip"
|
---|
7846 | ;;
|
---|
7847 | *LSB*)
|
---|
7848 | emul="${emul}ltsmip"
|
---|
7849 | ;;
|
---|
7850 | esac
|
---|
7851 | case `$FILECMD conftest.$ac_objext` in
|
---|
7852 | *N32*)
|
---|
7853 | emul="${emul}n32"
|
---|
7854 | ;;
|
---|
7855 | esac
|
---|
7856 | LD="${LD-ld} -m $emul"
|
---|
7857 | fi
|
---|
7858 | rm -rf conftest*
|
---|
7859 | ;;
|
---|
7860 |
|
---|
7861 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
|
---|
7862 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
|
---|
7863 | # Find out what ABI is being produced by ac_compile, and set linker
|
---|
7864 | # options accordingly. Note that the listed cases only cover the
|
---|
7865 | # situations where additional linker options are needed (such as when
|
---|
7866 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or
|
---|
7867 | # vice versa); the common cases where no linker options are needed do
|
---|
7868 | # not appear in the list.
|
---|
7869 | echo 'int i;' > conftest.$ac_ext
|
---|
7870 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
---|
7871 | (eval $ac_compile) 2>&5
|
---|
7872 | ac_status=$?
|
---|
7873 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
7874 | test $ac_status = 0; }; then
|
---|
7875 | case `$FILECMD conftest.o` in
|
---|
7876 | *32-bit*)
|
---|
7877 | case $host in
|
---|
7878 | x86_64-*kfreebsd*-gnu)
|
---|
7879 | LD="${LD-ld} -m elf_i386_fbsd"
|
---|
7880 | ;;
|
---|
7881 | x86_64-*linux*)
|
---|
7882 | case `$FILECMD conftest.o` in
|
---|
7883 | *x86-64*)
|
---|
7884 | LD="${LD-ld} -m elf32_x86_64"
|
---|
7885 | ;;
|
---|
7886 | *)
|
---|
7887 | LD="${LD-ld} -m elf_i386"
|
---|
7888 | ;;
|
---|
7889 | esac
|
---|
7890 | ;;
|
---|
7891 | powerpc64le-*linux*)
|
---|
7892 | LD="${LD-ld} -m elf32lppclinux"
|
---|
7893 | ;;
|
---|
7894 | powerpc64-*linux*)
|
---|
7895 | LD="${LD-ld} -m elf32ppclinux"
|
---|
7896 | ;;
|
---|
7897 | s390x-*linux*)
|
---|
7898 | LD="${LD-ld} -m elf_s390"
|
---|
7899 | ;;
|
---|
7900 | sparc64-*linux*)
|
---|
7901 | LD="${LD-ld} -m elf32_sparc"
|
---|
7902 | ;;
|
---|
7903 | esac
|
---|
7904 | ;;
|
---|
7905 | *64-bit*)
|
---|
7906 | case $host in
|
---|
7907 | x86_64-*kfreebsd*-gnu)
|
---|
7908 | LD="${LD-ld} -m elf_x86_64_fbsd"
|
---|
7909 | ;;
|
---|
7910 | x86_64-*linux*)
|
---|
7911 | LD="${LD-ld} -m elf_x86_64"
|
---|
7912 | ;;
|
---|
7913 | powerpcle-*linux*)
|
---|
7914 | LD="${LD-ld} -m elf64lppc"
|
---|
7915 | ;;
|
---|
7916 | powerpc-*linux*)
|
---|
7917 | LD="${LD-ld} -m elf64ppc"
|
---|
7918 | ;;
|
---|
7919 | s390*-*linux*|s390*-*tpf*)
|
---|
7920 | LD="${LD-ld} -m elf64_s390"
|
---|
7921 | ;;
|
---|
7922 | sparc*-*linux*)
|
---|
7923 | LD="${LD-ld} -m elf64_sparc"
|
---|
7924 | ;;
|
---|
7925 | esac
|
---|
7926 | ;;
|
---|
7927 | esac
|
---|
7928 | fi
|
---|
7929 | rm -rf conftest*
|
---|
7930 | ;;
|
---|
7931 |
|
---|
7932 | *-*-sco3.2v5*)
|
---|
7933 | # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
---|
7934 | SAVE_CFLAGS=$CFLAGS
|
---|
7935 | CFLAGS="$CFLAGS -belf"
|
---|
7936 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
|
---|
7937 | printf %s "checking whether the C compiler needs -belf... " >&6; }
|
---|
7938 | if test ${lt_cv_cc_needs_belf+y}
|
---|
7939 | then :
|
---|
7940 | printf %s "(cached) " >&6
|
---|
7941 | else case e in #(
|
---|
7942 | e) ac_ext=c
|
---|
7943 | ac_cpp='$CPP $CPPFLAGS'
|
---|
7944 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
7945 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
7946 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
7947 |
|
---|
7948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
7949 | /* end confdefs.h. */
|
---|
7950 |
|
---|
7951 | int
|
---|
7952 | main (void)
|
---|
7953 | {
|
---|
7954 |
|
---|
7955 | ;
|
---|
7956 | return 0;
|
---|
7957 | }
|
---|
7958 | _ACEOF
|
---|
7959 | if ac_fn_c_try_link "$LINENO"
|
---|
7960 | then :
|
---|
7961 | lt_cv_cc_needs_belf=yes
|
---|
7962 | else case e in #(
|
---|
7963 | e) lt_cv_cc_needs_belf=no ;;
|
---|
7964 | esac
|
---|
7965 | fi
|
---|
7966 | rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
---|
7967 | conftest$ac_exeext conftest.$ac_ext
|
---|
7968 | ac_ext=c
|
---|
7969 | ac_cpp='$CPP $CPPFLAGS'
|
---|
7970 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
7971 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
7972 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
7973 | ;;
|
---|
7974 | esac
|
---|
7975 | fi
|
---|
7976 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
|
---|
7977 | printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
|
---|
7978 | if test yes != "$lt_cv_cc_needs_belf"; then
|
---|
7979 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
---|
7980 | CFLAGS=$SAVE_CFLAGS
|
---|
7981 | fi
|
---|
7982 | ;;
|
---|
7983 | *-*solaris*)
|
---|
7984 | # Find out what ABI is being produced by ac_compile, and set linker
|
---|
7985 | # options accordingly.
|
---|
7986 | echo 'int i;' > conftest.$ac_ext
|
---|
7987 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
---|
7988 | (eval $ac_compile) 2>&5
|
---|
7989 | ac_status=$?
|
---|
7990 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
7991 | test $ac_status = 0; }; then
|
---|
7992 | case `$FILECMD conftest.o` in
|
---|
7993 | *64-bit*)
|
---|
7994 | case $lt_cv_prog_gnu_ld in
|
---|
7995 | yes*)
|
---|
7996 | case $host in
|
---|
7997 | i?86-*-solaris*|x86_64-*-solaris*)
|
---|
7998 | LD="${LD-ld} -m elf_x86_64"
|
---|
7999 | ;;
|
---|
8000 | sparc*-*-solaris*)
|
---|
8001 | LD="${LD-ld} -m elf64_sparc"
|
---|
8002 | ;;
|
---|
8003 | esac
|
---|
8004 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
|
---|
8005 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
|
---|
8006 | LD=${LD-ld}_sol2
|
---|
8007 | fi
|
---|
8008 | ;;
|
---|
8009 | *)
|
---|
8010 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
|
---|
8011 | LD="${LD-ld} -64"
|
---|
8012 | fi
|
---|
8013 | ;;
|
---|
8014 | esac
|
---|
8015 | ;;
|
---|
8016 | esac
|
---|
8017 | fi
|
---|
8018 | rm -rf conftest*
|
---|
8019 | ;;
|
---|
8020 | esac
|
---|
8021 |
|
---|
8022 | need_locks=$enable_libtool_lock
|
---|
8023 |
|
---|
8024 | if test -n "$ac_tool_prefix"; then
|
---|
8025 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
|
---|
8026 | set dummy ${ac_tool_prefix}mt; ac_word=$2
|
---|
8027 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
8028 | printf %s "checking for $ac_word... " >&6; }
|
---|
8029 | if test ${ac_cv_prog_MANIFEST_TOOL+y}
|
---|
8030 | then :
|
---|
8031 | printf %s "(cached) " >&6
|
---|
8032 | else case e in #(
|
---|
8033 | e) if test -n "$MANIFEST_TOOL"; then
|
---|
8034 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # 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 | case $as_dir in #(((
|
---|
8041 | '') as_dir=./ ;;
|
---|
8042 | */) ;;
|
---|
8043 | *) as_dir=$as_dir/ ;;
|
---|
8044 | esac
|
---|
8045 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
8046 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
8047 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
|
---|
8048 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
8049 | break 2
|
---|
8050 | fi
|
---|
8051 | done
|
---|
8052 | done
|
---|
8053 | IFS=$as_save_IFS
|
---|
8054 |
|
---|
8055 | fi ;;
|
---|
8056 | esac
|
---|
8057 | fi
|
---|
8058 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
|
---|
8059 | if test -n "$MANIFEST_TOOL"; then
|
---|
8060 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
|
---|
8061 | printf "%s\n" "$MANIFEST_TOOL" >&6; }
|
---|
8062 | else
|
---|
8063 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
8064 | printf "%s\n" "no" >&6; }
|
---|
8065 | fi
|
---|
8066 |
|
---|
8067 |
|
---|
8068 | fi
|
---|
8069 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
|
---|
8070 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
|
---|
8071 | # Extract the first word of "mt", so it can be a program name with args.
|
---|
8072 | set dummy mt; ac_word=$2
|
---|
8073 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
8074 | printf %s "checking for $ac_word... " >&6; }
|
---|
8075 | if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
|
---|
8076 | then :
|
---|
8077 | printf %s "(cached) " >&6
|
---|
8078 | else case e in #(
|
---|
8079 | e) if test -n "$ac_ct_MANIFEST_TOOL"; then
|
---|
8080 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
|
---|
8081 | else
|
---|
8082 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
8083 | for as_dir in $PATH
|
---|
8084 | do
|
---|
8085 | IFS=$as_save_IFS
|
---|
8086 | case $as_dir in #(((
|
---|
8087 | '') as_dir=./ ;;
|
---|
8088 | */) ;;
|
---|
8089 | *) as_dir=$as_dir/ ;;
|
---|
8090 | esac
|
---|
8091 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
8092 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
8093 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
|
---|
8094 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
8095 | break 2
|
---|
8096 | fi
|
---|
8097 | done
|
---|
8098 | done
|
---|
8099 | IFS=$as_save_IFS
|
---|
8100 |
|
---|
8101 | fi ;;
|
---|
8102 | esac
|
---|
8103 | fi
|
---|
8104 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
|
---|
8105 | if test -n "$ac_ct_MANIFEST_TOOL"; then
|
---|
8106 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
|
---|
8107 | printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
|
---|
8108 | else
|
---|
8109 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
8110 | printf "%s\n" "no" >&6; }
|
---|
8111 | fi
|
---|
8112 |
|
---|
8113 | if test "x$ac_ct_MANIFEST_TOOL" = x; then
|
---|
8114 | MANIFEST_TOOL=":"
|
---|
8115 | else
|
---|
8116 | case $cross_compiling:$ac_tool_warned in
|
---|
8117 | yes:)
|
---|
8118 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
8119 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
8120 | ac_tool_warned=yes ;;
|
---|
8121 | esac
|
---|
8122 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
|
---|
8123 | fi
|
---|
8124 | else
|
---|
8125 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
|
---|
8126 | fi
|
---|
8127 |
|
---|
8128 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
|
---|
8129 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
|
---|
8130 | printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
|
---|
8131 | if test ${lt_cv_path_mainfest_tool+y}
|
---|
8132 | then :
|
---|
8133 | printf %s "(cached) " >&6
|
---|
8134 | else case e in #(
|
---|
8135 | e) lt_cv_path_mainfest_tool=no
|
---|
8136 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
|
---|
8137 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
|
---|
8138 | cat conftest.err >&5
|
---|
8139 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then
|
---|
8140 | lt_cv_path_mainfest_tool=yes
|
---|
8141 | fi
|
---|
8142 | rm -f conftest* ;;
|
---|
8143 | esac
|
---|
8144 | fi
|
---|
8145 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
|
---|
8146 | printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
|
---|
8147 | if test yes != "$lt_cv_path_mainfest_tool"; then
|
---|
8148 | MANIFEST_TOOL=:
|
---|
8149 | fi
|
---|
8150 |
|
---|
8151 |
|
---|
8152 |
|
---|
8153 |
|
---|
8154 |
|
---|
8155 |
|
---|
8156 | case $host_os in
|
---|
8157 | rhapsody* | darwin*)
|
---|
8158 | if test -n "$ac_tool_prefix"; then
|
---|
8159 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
|
---|
8160 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
|
---|
8161 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
8162 | printf %s "checking for $ac_word... " >&6; }
|
---|
8163 | if test ${ac_cv_prog_DSYMUTIL+y}
|
---|
8164 | then :
|
---|
8165 | printf %s "(cached) " >&6
|
---|
8166 | else case e in #(
|
---|
8167 | e) if test -n "$DSYMUTIL"; then
|
---|
8168 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
|
---|
8169 | else
|
---|
8170 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
8171 | for as_dir in $PATH
|
---|
8172 | do
|
---|
8173 | IFS=$as_save_IFS
|
---|
8174 | case $as_dir in #(((
|
---|
8175 | '') as_dir=./ ;;
|
---|
8176 | */) ;;
|
---|
8177 | *) as_dir=$as_dir/ ;;
|
---|
8178 | esac
|
---|
8179 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
8180 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
8181 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
|
---|
8182 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
8183 | break 2
|
---|
8184 | fi
|
---|
8185 | done
|
---|
8186 | done
|
---|
8187 | IFS=$as_save_IFS
|
---|
8188 |
|
---|
8189 | fi ;;
|
---|
8190 | esac
|
---|
8191 | fi
|
---|
8192 | DSYMUTIL=$ac_cv_prog_DSYMUTIL
|
---|
8193 | if test -n "$DSYMUTIL"; then
|
---|
8194 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
|
---|
8195 | printf "%s\n" "$DSYMUTIL" >&6; }
|
---|
8196 | else
|
---|
8197 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
8198 | printf "%s\n" "no" >&6; }
|
---|
8199 | fi
|
---|
8200 |
|
---|
8201 |
|
---|
8202 | fi
|
---|
8203 | if test -z "$ac_cv_prog_DSYMUTIL"; then
|
---|
8204 | ac_ct_DSYMUTIL=$DSYMUTIL
|
---|
8205 | # Extract the first word of "dsymutil", so it can be a program name with args.
|
---|
8206 | set dummy dsymutil; ac_word=$2
|
---|
8207 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
8208 | printf %s "checking for $ac_word... " >&6; }
|
---|
8209 | if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
|
---|
8210 | then :
|
---|
8211 | printf %s "(cached) " >&6
|
---|
8212 | else case e in #(
|
---|
8213 | e) if test -n "$ac_ct_DSYMUTIL"; then
|
---|
8214 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
|
---|
8215 | else
|
---|
8216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
8217 | for as_dir in $PATH
|
---|
8218 | do
|
---|
8219 | IFS=$as_save_IFS
|
---|
8220 | case $as_dir in #(((
|
---|
8221 | '') as_dir=./ ;;
|
---|
8222 | */) ;;
|
---|
8223 | *) as_dir=$as_dir/ ;;
|
---|
8224 | esac
|
---|
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_DSYMUTIL="dsymutil"
|
---|
8228 | printf "%s\n" "$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 | esac
|
---|
8237 | fi
|
---|
8238 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
|
---|
8239 | if test -n "$ac_ct_DSYMUTIL"; then
|
---|
8240 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
|
---|
8241 | printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
|
---|
8242 | else
|
---|
8243 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
8244 | printf "%s\n" "no" >&6; }
|
---|
8245 | fi
|
---|
8246 |
|
---|
8247 | if test "x$ac_ct_DSYMUTIL" = x; then
|
---|
8248 | DSYMUTIL=":"
|
---|
8249 | else
|
---|
8250 | case $cross_compiling:$ac_tool_warned in
|
---|
8251 | yes:)
|
---|
8252 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
8253 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
8254 | ac_tool_warned=yes ;;
|
---|
8255 | esac
|
---|
8256 | DSYMUTIL=$ac_ct_DSYMUTIL
|
---|
8257 | fi
|
---|
8258 | else
|
---|
8259 | DSYMUTIL="$ac_cv_prog_DSYMUTIL"
|
---|
8260 | fi
|
---|
8261 |
|
---|
8262 | if test -n "$ac_tool_prefix"; then
|
---|
8263 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
|
---|
8264 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2
|
---|
8265 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
8266 | printf %s "checking for $ac_word... " >&6; }
|
---|
8267 | if test ${ac_cv_prog_NMEDIT+y}
|
---|
8268 | then :
|
---|
8269 | printf %s "(cached) " >&6
|
---|
8270 | else case e in #(
|
---|
8271 | e) if test -n "$NMEDIT"; then
|
---|
8272 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
|
---|
8273 | else
|
---|
8274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
8275 | for as_dir in $PATH
|
---|
8276 | do
|
---|
8277 | IFS=$as_save_IFS
|
---|
8278 | case $as_dir in #(((
|
---|
8279 | '') as_dir=./ ;;
|
---|
8280 | */) ;;
|
---|
8281 | *) as_dir=$as_dir/ ;;
|
---|
8282 | esac
|
---|
8283 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
8284 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
8285 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
|
---|
8286 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
8287 | break 2
|
---|
8288 | fi
|
---|
8289 | done
|
---|
8290 | done
|
---|
8291 | IFS=$as_save_IFS
|
---|
8292 |
|
---|
8293 | fi ;;
|
---|
8294 | esac
|
---|
8295 | fi
|
---|
8296 | NMEDIT=$ac_cv_prog_NMEDIT
|
---|
8297 | if test -n "$NMEDIT"; then
|
---|
8298 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
|
---|
8299 | printf "%s\n" "$NMEDIT" >&6; }
|
---|
8300 | else
|
---|
8301 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
8302 | printf "%s\n" "no" >&6; }
|
---|
8303 | fi
|
---|
8304 |
|
---|
8305 |
|
---|
8306 | fi
|
---|
8307 | if test -z "$ac_cv_prog_NMEDIT"; then
|
---|
8308 | ac_ct_NMEDIT=$NMEDIT
|
---|
8309 | # Extract the first word of "nmedit", so it can be a program name with args.
|
---|
8310 | set dummy nmedit; ac_word=$2
|
---|
8311 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
8312 | printf %s "checking for $ac_word... " >&6; }
|
---|
8313 | if test ${ac_cv_prog_ac_ct_NMEDIT+y}
|
---|
8314 | then :
|
---|
8315 | printf %s "(cached) " >&6
|
---|
8316 | else case e in #(
|
---|
8317 | e) if test -n "$ac_ct_NMEDIT"; then
|
---|
8318 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
|
---|
8319 | else
|
---|
8320 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
8321 | for as_dir in $PATH
|
---|
8322 | do
|
---|
8323 | IFS=$as_save_IFS
|
---|
8324 | case $as_dir in #(((
|
---|
8325 | '') as_dir=./ ;;
|
---|
8326 | */) ;;
|
---|
8327 | *) as_dir=$as_dir/ ;;
|
---|
8328 | esac
|
---|
8329 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
8330 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
8331 | ac_cv_prog_ac_ct_NMEDIT="nmedit"
|
---|
8332 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
8333 | break 2
|
---|
8334 | fi
|
---|
8335 | done
|
---|
8336 | done
|
---|
8337 | IFS=$as_save_IFS
|
---|
8338 |
|
---|
8339 | fi ;;
|
---|
8340 | esac
|
---|
8341 | fi
|
---|
8342 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
|
---|
8343 | if test -n "$ac_ct_NMEDIT"; then
|
---|
8344 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
|
---|
8345 | printf "%s\n" "$ac_ct_NMEDIT" >&6; }
|
---|
8346 | else
|
---|
8347 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
8348 | printf "%s\n" "no" >&6; }
|
---|
8349 | fi
|
---|
8350 |
|
---|
8351 | if test "x$ac_ct_NMEDIT" = x; then
|
---|
8352 | NMEDIT=":"
|
---|
8353 | else
|
---|
8354 | case $cross_compiling:$ac_tool_warned in
|
---|
8355 | yes:)
|
---|
8356 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
8357 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
8358 | ac_tool_warned=yes ;;
|
---|
8359 | esac
|
---|
8360 | NMEDIT=$ac_ct_NMEDIT
|
---|
8361 | fi
|
---|
8362 | else
|
---|
8363 | NMEDIT="$ac_cv_prog_NMEDIT"
|
---|
8364 | fi
|
---|
8365 |
|
---|
8366 | if test -n "$ac_tool_prefix"; then
|
---|
8367 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
|
---|
8368 | set dummy ${ac_tool_prefix}lipo; ac_word=$2
|
---|
8369 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
8370 | printf %s "checking for $ac_word... " >&6; }
|
---|
8371 | if test ${ac_cv_prog_LIPO+y}
|
---|
8372 | then :
|
---|
8373 | printf %s "(cached) " >&6
|
---|
8374 | else case e in #(
|
---|
8375 | e) if test -n "$LIPO"; then
|
---|
8376 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
|
---|
8377 | else
|
---|
8378 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
8379 | for as_dir in $PATH
|
---|
8380 | do
|
---|
8381 | IFS=$as_save_IFS
|
---|
8382 | case $as_dir in #(((
|
---|
8383 | '') as_dir=./ ;;
|
---|
8384 | */) ;;
|
---|
8385 | *) as_dir=$as_dir/ ;;
|
---|
8386 | esac
|
---|
8387 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
8388 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
8389 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
|
---|
8390 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
8391 | break 2
|
---|
8392 | fi
|
---|
8393 | done
|
---|
8394 | done
|
---|
8395 | IFS=$as_save_IFS
|
---|
8396 |
|
---|
8397 | fi ;;
|
---|
8398 | esac
|
---|
8399 | fi
|
---|
8400 | LIPO=$ac_cv_prog_LIPO
|
---|
8401 | if test -n "$LIPO"; then
|
---|
8402 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
|
---|
8403 | printf "%s\n" "$LIPO" >&6; }
|
---|
8404 | else
|
---|
8405 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
8406 | printf "%s\n" "no" >&6; }
|
---|
8407 | fi
|
---|
8408 |
|
---|
8409 |
|
---|
8410 | fi
|
---|
8411 | if test -z "$ac_cv_prog_LIPO"; then
|
---|
8412 | ac_ct_LIPO=$LIPO
|
---|
8413 | # Extract the first word of "lipo", so it can be a program name with args.
|
---|
8414 | set dummy lipo; ac_word=$2
|
---|
8415 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
8416 | printf %s "checking for $ac_word... " >&6; }
|
---|
8417 | if test ${ac_cv_prog_ac_ct_LIPO+y}
|
---|
8418 | then :
|
---|
8419 | printf %s "(cached) " >&6
|
---|
8420 | else case e in #(
|
---|
8421 | e) if test -n "$ac_ct_LIPO"; then
|
---|
8422 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
|
---|
8423 | else
|
---|
8424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
8425 | for as_dir in $PATH
|
---|
8426 | do
|
---|
8427 | IFS=$as_save_IFS
|
---|
8428 | case $as_dir in #(((
|
---|
8429 | '') as_dir=./ ;;
|
---|
8430 | */) ;;
|
---|
8431 | *) as_dir=$as_dir/ ;;
|
---|
8432 | esac
|
---|
8433 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
8434 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
8435 | ac_cv_prog_ac_ct_LIPO="lipo"
|
---|
8436 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
8437 | break 2
|
---|
8438 | fi
|
---|
8439 | done
|
---|
8440 | done
|
---|
8441 | IFS=$as_save_IFS
|
---|
8442 |
|
---|
8443 | fi ;;
|
---|
8444 | esac
|
---|
8445 | fi
|
---|
8446 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
|
---|
8447 | if test -n "$ac_ct_LIPO"; then
|
---|
8448 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
|
---|
8449 | printf "%s\n" "$ac_ct_LIPO" >&6; }
|
---|
8450 | else
|
---|
8451 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
8452 | printf "%s\n" "no" >&6; }
|
---|
8453 | fi
|
---|
8454 |
|
---|
8455 | if test "x$ac_ct_LIPO" = x; then
|
---|
8456 | LIPO=":"
|
---|
8457 | else
|
---|
8458 | case $cross_compiling:$ac_tool_warned in
|
---|
8459 | yes:)
|
---|
8460 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
8461 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
8462 | ac_tool_warned=yes ;;
|
---|
8463 | esac
|
---|
8464 | LIPO=$ac_ct_LIPO
|
---|
8465 | fi
|
---|
8466 | else
|
---|
8467 | LIPO="$ac_cv_prog_LIPO"
|
---|
8468 | fi
|
---|
8469 |
|
---|
8470 | if test -n "$ac_tool_prefix"; then
|
---|
8471 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
|
---|
8472 | set dummy ${ac_tool_prefix}otool; ac_word=$2
|
---|
8473 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
8474 | printf %s "checking for $ac_word... " >&6; }
|
---|
8475 | if test ${ac_cv_prog_OTOOL+y}
|
---|
8476 | then :
|
---|
8477 | printf %s "(cached) " >&6
|
---|
8478 | else case e in #(
|
---|
8479 | e) if test -n "$OTOOL"; then
|
---|
8480 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
|
---|
8481 | else
|
---|
8482 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
8483 | for as_dir in $PATH
|
---|
8484 | do
|
---|
8485 | IFS=$as_save_IFS
|
---|
8486 | case $as_dir in #(((
|
---|
8487 | '') as_dir=./ ;;
|
---|
8488 | */) ;;
|
---|
8489 | *) as_dir=$as_dir/ ;;
|
---|
8490 | esac
|
---|
8491 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
8492 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
8493 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
|
---|
8494 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
8495 | break 2
|
---|
8496 | fi
|
---|
8497 | done
|
---|
8498 | done
|
---|
8499 | IFS=$as_save_IFS
|
---|
8500 |
|
---|
8501 | fi ;;
|
---|
8502 | esac
|
---|
8503 | fi
|
---|
8504 | OTOOL=$ac_cv_prog_OTOOL
|
---|
8505 | if test -n "$OTOOL"; then
|
---|
8506 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
|
---|
8507 | printf "%s\n" "$OTOOL" >&6; }
|
---|
8508 | else
|
---|
8509 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
8510 | printf "%s\n" "no" >&6; }
|
---|
8511 | fi
|
---|
8512 |
|
---|
8513 |
|
---|
8514 | fi
|
---|
8515 | if test -z "$ac_cv_prog_OTOOL"; then
|
---|
8516 | ac_ct_OTOOL=$OTOOL
|
---|
8517 | # Extract the first word of "otool", so it can be a program name with args.
|
---|
8518 | set dummy otool; ac_word=$2
|
---|
8519 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
8520 | printf %s "checking for $ac_word... " >&6; }
|
---|
8521 | if test ${ac_cv_prog_ac_ct_OTOOL+y}
|
---|
8522 | then :
|
---|
8523 | printf %s "(cached) " >&6
|
---|
8524 | else case e in #(
|
---|
8525 | e) if test -n "$ac_ct_OTOOL"; then
|
---|
8526 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
|
---|
8527 | else
|
---|
8528 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
8529 | for as_dir in $PATH
|
---|
8530 | do
|
---|
8531 | IFS=$as_save_IFS
|
---|
8532 | case $as_dir in #(((
|
---|
8533 | '') as_dir=./ ;;
|
---|
8534 | */) ;;
|
---|
8535 | *) as_dir=$as_dir/ ;;
|
---|
8536 | esac
|
---|
8537 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
8538 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
8539 | ac_cv_prog_ac_ct_OTOOL="otool"
|
---|
8540 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
8541 | break 2
|
---|
8542 | fi
|
---|
8543 | done
|
---|
8544 | done
|
---|
8545 | IFS=$as_save_IFS
|
---|
8546 |
|
---|
8547 | fi ;;
|
---|
8548 | esac
|
---|
8549 | fi
|
---|
8550 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
|
---|
8551 | if test -n "$ac_ct_OTOOL"; then
|
---|
8552 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
|
---|
8553 | printf "%s\n" "$ac_ct_OTOOL" >&6; }
|
---|
8554 | else
|
---|
8555 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
8556 | printf "%s\n" "no" >&6; }
|
---|
8557 | fi
|
---|
8558 |
|
---|
8559 | if test "x$ac_ct_OTOOL" = x; then
|
---|
8560 | OTOOL=":"
|
---|
8561 | else
|
---|
8562 | case $cross_compiling:$ac_tool_warned in
|
---|
8563 | yes:)
|
---|
8564 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
8565 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
8566 | ac_tool_warned=yes ;;
|
---|
8567 | esac
|
---|
8568 | OTOOL=$ac_ct_OTOOL
|
---|
8569 | fi
|
---|
8570 | else
|
---|
8571 | OTOOL="$ac_cv_prog_OTOOL"
|
---|
8572 | fi
|
---|
8573 |
|
---|
8574 | if test -n "$ac_tool_prefix"; then
|
---|
8575 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
|
---|
8576 | set dummy ${ac_tool_prefix}otool64; ac_word=$2
|
---|
8577 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
8578 | printf %s "checking for $ac_word... " >&6; }
|
---|
8579 | if test ${ac_cv_prog_OTOOL64+y}
|
---|
8580 | then :
|
---|
8581 | printf %s "(cached) " >&6
|
---|
8582 | else case e in #(
|
---|
8583 | e) if test -n "$OTOOL64"; then
|
---|
8584 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
|
---|
8585 | else
|
---|
8586 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
8587 | for as_dir in $PATH
|
---|
8588 | do
|
---|
8589 | IFS=$as_save_IFS
|
---|
8590 | case $as_dir in #(((
|
---|
8591 | '') as_dir=./ ;;
|
---|
8592 | */) ;;
|
---|
8593 | *) as_dir=$as_dir/ ;;
|
---|
8594 | esac
|
---|
8595 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
8596 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
8597 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
|
---|
8598 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
8599 | break 2
|
---|
8600 | fi
|
---|
8601 | done
|
---|
8602 | done
|
---|
8603 | IFS=$as_save_IFS
|
---|
8604 |
|
---|
8605 | fi ;;
|
---|
8606 | esac
|
---|
8607 | fi
|
---|
8608 | OTOOL64=$ac_cv_prog_OTOOL64
|
---|
8609 | if test -n "$OTOOL64"; then
|
---|
8610 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
|
---|
8611 | printf "%s\n" "$OTOOL64" >&6; }
|
---|
8612 | else
|
---|
8613 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
8614 | printf "%s\n" "no" >&6; }
|
---|
8615 | fi
|
---|
8616 |
|
---|
8617 |
|
---|
8618 | fi
|
---|
8619 | if test -z "$ac_cv_prog_OTOOL64"; then
|
---|
8620 | ac_ct_OTOOL64=$OTOOL64
|
---|
8621 | # Extract the first word of "otool64", so it can be a program name with args.
|
---|
8622 | set dummy otool64; ac_word=$2
|
---|
8623 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
8624 | printf %s "checking for $ac_word... " >&6; }
|
---|
8625 | if test ${ac_cv_prog_ac_ct_OTOOL64+y}
|
---|
8626 | then :
|
---|
8627 | printf %s "(cached) " >&6
|
---|
8628 | else case e in #(
|
---|
8629 | e) if test -n "$ac_ct_OTOOL64"; then
|
---|
8630 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
|
---|
8631 | else
|
---|
8632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
8633 | for as_dir in $PATH
|
---|
8634 | do
|
---|
8635 | IFS=$as_save_IFS
|
---|
8636 | case $as_dir in #(((
|
---|
8637 | '') as_dir=./ ;;
|
---|
8638 | */) ;;
|
---|
8639 | *) as_dir=$as_dir/ ;;
|
---|
8640 | esac
|
---|
8641 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
8642 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
8643 | ac_cv_prog_ac_ct_OTOOL64="otool64"
|
---|
8644 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
8645 | break 2
|
---|
8646 | fi
|
---|
8647 | done
|
---|
8648 | done
|
---|
8649 | IFS=$as_save_IFS
|
---|
8650 |
|
---|
8651 | fi ;;
|
---|
8652 | esac
|
---|
8653 | fi
|
---|
8654 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
|
---|
8655 | if test -n "$ac_ct_OTOOL64"; then
|
---|
8656 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
|
---|
8657 | printf "%s\n" "$ac_ct_OTOOL64" >&6; }
|
---|
8658 | else
|
---|
8659 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
8660 | printf "%s\n" "no" >&6; }
|
---|
8661 | fi
|
---|
8662 |
|
---|
8663 | if test "x$ac_ct_OTOOL64" = x; then
|
---|
8664 | OTOOL64=":"
|
---|
8665 | else
|
---|
8666 | case $cross_compiling:$ac_tool_warned in
|
---|
8667 | yes:)
|
---|
8668 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
8669 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
8670 | ac_tool_warned=yes ;;
|
---|
8671 | esac
|
---|
8672 | OTOOL64=$ac_ct_OTOOL64
|
---|
8673 | fi
|
---|
8674 | else
|
---|
8675 | OTOOL64="$ac_cv_prog_OTOOL64"
|
---|
8676 | fi
|
---|
8677 |
|
---|
8678 |
|
---|
8679 |
|
---|
8680 |
|
---|
8681 |
|
---|
8682 |
|
---|
8683 |
|
---|
8684 |
|
---|
8685 |
|
---|
8686 |
|
---|
8687 |
|
---|
8688 |
|
---|
8689 |
|
---|
8690 |
|
---|
8691 |
|
---|
8692 |
|
---|
8693 |
|
---|
8694 |
|
---|
8695 |
|
---|
8696 |
|
---|
8697 |
|
---|
8698 |
|
---|
8699 |
|
---|
8700 |
|
---|
8701 |
|
---|
8702 |
|
---|
8703 |
|
---|
8704 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
|
---|
8705 | printf %s "checking for -single_module linker flag... " >&6; }
|
---|
8706 | if test ${lt_cv_apple_cc_single_mod+y}
|
---|
8707 | then :
|
---|
8708 | printf %s "(cached) " >&6
|
---|
8709 | else case e in #(
|
---|
8710 | e) lt_cv_apple_cc_single_mod=no
|
---|
8711 | if test -z "$LT_MULTI_MODULE"; then
|
---|
8712 | # By default we will add the -single_module flag. You can override
|
---|
8713 | # by either setting the environment variable LT_MULTI_MODULE
|
---|
8714 | # non-empty at configure time, or by adding -multi_module to the
|
---|
8715 | # link flags.
|
---|
8716 | rm -rf libconftest.dylib*
|
---|
8717 | echo "int foo(void){return 1;}" > conftest.c
|
---|
8718 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
---|
8719 | -dynamiclib -Wl,-single_module conftest.c" >&5
|
---|
8720 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
---|
8721 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
|
---|
8722 | _lt_result=$?
|
---|
8723 | # If there is a non-empty error log, and "single_module"
|
---|
8724 | # appears in it, assume the flag caused a linker warning
|
---|
8725 | if test -s conftest.err && $GREP single_module conftest.err; then
|
---|
8726 | cat conftest.err >&5
|
---|
8727 | # Otherwise, if the output was created with a 0 exit code from
|
---|
8728 | # the compiler, it worked.
|
---|
8729 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
|
---|
8730 | lt_cv_apple_cc_single_mod=yes
|
---|
8731 | else
|
---|
8732 | cat conftest.err >&5
|
---|
8733 | fi
|
---|
8734 | rm -rf libconftest.dylib*
|
---|
8735 | rm -f conftest.*
|
---|
8736 | fi ;;
|
---|
8737 | esac
|
---|
8738 | fi
|
---|
8739 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
|
---|
8740 | printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
|
---|
8741 |
|
---|
8742 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
|
---|
8743 | printf %s "checking for -exported_symbols_list linker flag... " >&6; }
|
---|
8744 | if test ${lt_cv_ld_exported_symbols_list+y}
|
---|
8745 | then :
|
---|
8746 | printf %s "(cached) " >&6
|
---|
8747 | else case e in #(
|
---|
8748 | e) lt_cv_ld_exported_symbols_list=no
|
---|
8749 | save_LDFLAGS=$LDFLAGS
|
---|
8750 | echo "_main" > conftest.sym
|
---|
8751 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
|
---|
8752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
8753 | /* end confdefs.h. */
|
---|
8754 |
|
---|
8755 | int
|
---|
8756 | main (void)
|
---|
8757 | {
|
---|
8758 |
|
---|
8759 | ;
|
---|
8760 | return 0;
|
---|
8761 | }
|
---|
8762 | _ACEOF
|
---|
8763 | if ac_fn_c_try_link "$LINENO"
|
---|
8764 | then :
|
---|
8765 | lt_cv_ld_exported_symbols_list=yes
|
---|
8766 | else case e in #(
|
---|
8767 | e) lt_cv_ld_exported_symbols_list=no ;;
|
---|
8768 | esac
|
---|
8769 | fi
|
---|
8770 | rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
---|
8771 | conftest$ac_exeext conftest.$ac_ext
|
---|
8772 | LDFLAGS=$save_LDFLAGS
|
---|
8773 | ;;
|
---|
8774 | esac
|
---|
8775 | fi
|
---|
8776 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
|
---|
8777 | printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
|
---|
8778 |
|
---|
8779 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
|
---|
8780 | printf %s "checking for -force_load linker flag... " >&6; }
|
---|
8781 | if test ${lt_cv_ld_force_load+y}
|
---|
8782 | then :
|
---|
8783 | printf %s "(cached) " >&6
|
---|
8784 | else case e in #(
|
---|
8785 | e) lt_cv_ld_force_load=no
|
---|
8786 | cat > conftest.c << _LT_EOF
|
---|
8787 | int forced_loaded() { return 2;}
|
---|
8788 | _LT_EOF
|
---|
8789 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
|
---|
8790 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
|
---|
8791 | echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
|
---|
8792 | $AR $AR_FLAGS libconftest.a conftest.o 2>&5
|
---|
8793 | echo "$RANLIB libconftest.a" >&5
|
---|
8794 | $RANLIB libconftest.a 2>&5
|
---|
8795 | cat > conftest.c << _LT_EOF
|
---|
8796 | int main() { return 0;}
|
---|
8797 | _LT_EOF
|
---|
8798 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
|
---|
8799 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
|
---|
8800 | _lt_result=$?
|
---|
8801 | if test -s conftest.err && $GREP force_load conftest.err; then
|
---|
8802 | cat conftest.err >&5
|
---|
8803 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
|
---|
8804 | lt_cv_ld_force_load=yes
|
---|
8805 | else
|
---|
8806 | cat conftest.err >&5
|
---|
8807 | fi
|
---|
8808 | rm -f conftest.err libconftest.a conftest conftest.c
|
---|
8809 | rm -rf conftest.dSYM
|
---|
8810 | ;;
|
---|
8811 | esac
|
---|
8812 | fi
|
---|
8813 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
|
---|
8814 | printf "%s\n" "$lt_cv_ld_force_load" >&6; }
|
---|
8815 | case $host_os in
|
---|
8816 | rhapsody* | darwin1.[012])
|
---|
8817 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
|
---|
8818 | darwin1.*)
|
---|
8819 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
|
---|
8820 | darwin*)
|
---|
8821 | case $MACOSX_DEPLOYMENT_TARGET,$host in
|
---|
8822 | 10.[012],*|,*powerpc*-darwin[5-8]*)
|
---|
8823 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
|
---|
8824 | *)
|
---|
8825 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
|
---|
8826 | esac
|
---|
8827 | ;;
|
---|
8828 | esac
|
---|
8829 | if test yes = "$lt_cv_apple_cc_single_mod"; then
|
---|
8830 | _lt_dar_single_mod='$single_module'
|
---|
8831 | fi
|
---|
8832 | if test yes = "$lt_cv_ld_exported_symbols_list"; then
|
---|
8833 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
|
---|
8834 | else
|
---|
8835 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
|
---|
8836 | fi
|
---|
8837 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
|
---|
8838 | _lt_dsymutil='~$DSYMUTIL $lib || :'
|
---|
8839 | else
|
---|
8840 | _lt_dsymutil=
|
---|
8841 | fi
|
---|
8842 | ;;
|
---|
8843 | esac
|
---|
8844 |
|
---|
8845 | # func_munge_path_list VARIABLE PATH
|
---|
8846 | # -----------------------------------
|
---|
8847 | # VARIABLE is name of variable containing _space_ separated list of
|
---|
8848 | # directories to be munged by the contents of PATH, which is string
|
---|
8849 | # having a format:
|
---|
8850 | # "DIR[:DIR]:"
|
---|
8851 | # string "DIR[ DIR]" will be prepended to VARIABLE
|
---|
8852 | # ":DIR[:DIR]"
|
---|
8853 | # string "DIR[ DIR]" will be appended to VARIABLE
|
---|
8854 | # "DIRP[:DIRP]::[DIRA:]DIRA"
|
---|
8855 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
|
---|
8856 | # "DIRA[ DIRA]" will be appended to VARIABLE
|
---|
8857 | # "DIR[:DIR]"
|
---|
8858 | # VARIABLE will be replaced by "DIR[ DIR]"
|
---|
8859 | func_munge_path_list ()
|
---|
8860 | {
|
---|
8861 | case x$2 in
|
---|
8862 | x)
|
---|
8863 | ;;
|
---|
8864 | *:)
|
---|
8865 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
|
---|
8866 | ;;
|
---|
8867 | x:*)
|
---|
8868 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
|
---|
8869 | ;;
|
---|
8870 | *::*)
|
---|
8871 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
|
---|
8872 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
|
---|
8873 | ;;
|
---|
8874 | *)
|
---|
8875 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
|
---|
8876 | ;;
|
---|
8877 | esac
|
---|
8878 | }
|
---|
8879 |
|
---|
8880 | ac_header= ac_cache=
|
---|
8881 | for ac_item in $ac_header_c_list
|
---|
8882 | do
|
---|
8883 | if test $ac_cache; then
|
---|
8884 | ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
|
---|
8885 | if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
|
---|
8886 | printf "%s\n" "#define $ac_item 1" >> confdefs.h
|
---|
8887 | fi
|
---|
8888 | ac_header= ac_cache=
|
---|
8889 | elif test $ac_header; then
|
---|
8890 | ac_cache=$ac_item
|
---|
8891 | else
|
---|
8892 | ac_header=$ac_item
|
---|
8893 | fi
|
---|
8894 | done
|
---|
8895 |
|
---|
8896 |
|
---|
8897 |
|
---|
8898 |
|
---|
8899 |
|
---|
8900 |
|
---|
8901 |
|
---|
8902 |
|
---|
8903 | if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
|
---|
8904 | then :
|
---|
8905 |
|
---|
8906 | printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
|
---|
8907 |
|
---|
8908 | fi
|
---|
8909 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
|
---|
8910 | "
|
---|
8911 | if test "x$ac_cv_header_dlfcn_h" = xyes
|
---|
8912 | then :
|
---|
8913 | printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
|
---|
8914 |
|
---|
8915 | fi
|
---|
8916 |
|
---|
8917 |
|
---|
8918 |
|
---|
8919 |
|
---|
8920 |
|
---|
8921 | # Set options
|
---|
8922 | enable_win32_dll=yes
|
---|
8923 |
|
---|
8924 | case $host in
|
---|
8925 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
|
---|
8926 | if test -n "$ac_tool_prefix"; then
|
---|
8927 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
|
---|
8928 | set dummy ${ac_tool_prefix}as; ac_word=$2
|
---|
8929 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
8930 | printf %s "checking for $ac_word... " >&6; }
|
---|
8931 | if test ${ac_cv_prog_AS+y}
|
---|
8932 | then :
|
---|
8933 | printf %s "(cached) " >&6
|
---|
8934 | else case e in #(
|
---|
8935 | e) if test -n "$AS"; then
|
---|
8936 | ac_cv_prog_AS="$AS" # Let the user override the test.
|
---|
8937 | else
|
---|
8938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
8939 | for as_dir in $PATH
|
---|
8940 | do
|
---|
8941 | IFS=$as_save_IFS
|
---|
8942 | case $as_dir in #(((
|
---|
8943 | '') as_dir=./ ;;
|
---|
8944 | */) ;;
|
---|
8945 | *) as_dir=$as_dir/ ;;
|
---|
8946 | esac
|
---|
8947 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
8948 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
8949 | ac_cv_prog_AS="${ac_tool_prefix}as"
|
---|
8950 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
8951 | break 2
|
---|
8952 | fi
|
---|
8953 | done
|
---|
8954 | done
|
---|
8955 | IFS=$as_save_IFS
|
---|
8956 |
|
---|
8957 | fi ;;
|
---|
8958 | esac
|
---|
8959 | fi
|
---|
8960 | AS=$ac_cv_prog_AS
|
---|
8961 | if test -n "$AS"; then
|
---|
8962 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
|
---|
8963 | printf "%s\n" "$AS" >&6; }
|
---|
8964 | else
|
---|
8965 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
8966 | printf "%s\n" "no" >&6; }
|
---|
8967 | fi
|
---|
8968 |
|
---|
8969 |
|
---|
8970 | fi
|
---|
8971 | if test -z "$ac_cv_prog_AS"; then
|
---|
8972 | ac_ct_AS=$AS
|
---|
8973 | # Extract the first word of "as", so it can be a program name with args.
|
---|
8974 | set dummy as; ac_word=$2
|
---|
8975 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
8976 | printf %s "checking for $ac_word... " >&6; }
|
---|
8977 | if test ${ac_cv_prog_ac_ct_AS+y}
|
---|
8978 | then :
|
---|
8979 | printf %s "(cached) " >&6
|
---|
8980 | else case e in #(
|
---|
8981 | e) if test -n "$ac_ct_AS"; then
|
---|
8982 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
|
---|
8983 | else
|
---|
8984 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
8985 | for as_dir in $PATH
|
---|
8986 | do
|
---|
8987 | IFS=$as_save_IFS
|
---|
8988 | case $as_dir in #(((
|
---|
8989 | '') as_dir=./ ;;
|
---|
8990 | */) ;;
|
---|
8991 | *) as_dir=$as_dir/ ;;
|
---|
8992 | esac
|
---|
8993 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
8994 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
8995 | ac_cv_prog_ac_ct_AS="as"
|
---|
8996 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
8997 | break 2
|
---|
8998 | fi
|
---|
8999 | done
|
---|
9000 | done
|
---|
9001 | IFS=$as_save_IFS
|
---|
9002 |
|
---|
9003 | fi ;;
|
---|
9004 | esac
|
---|
9005 | fi
|
---|
9006 | ac_ct_AS=$ac_cv_prog_ac_ct_AS
|
---|
9007 | if test -n "$ac_ct_AS"; then
|
---|
9008 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
|
---|
9009 | printf "%s\n" "$ac_ct_AS" >&6; }
|
---|
9010 | else
|
---|
9011 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
9012 | printf "%s\n" "no" >&6; }
|
---|
9013 | fi
|
---|
9014 |
|
---|
9015 | if test "x$ac_ct_AS" = x; then
|
---|
9016 | AS="false"
|
---|
9017 | else
|
---|
9018 | case $cross_compiling:$ac_tool_warned in
|
---|
9019 | yes:)
|
---|
9020 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
9021 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
9022 | ac_tool_warned=yes ;;
|
---|
9023 | esac
|
---|
9024 | AS=$ac_ct_AS
|
---|
9025 | fi
|
---|
9026 | else
|
---|
9027 | AS="$ac_cv_prog_AS"
|
---|
9028 | fi
|
---|
9029 |
|
---|
9030 | if test -n "$ac_tool_prefix"; then
|
---|
9031 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
|
---|
9032 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2
|
---|
9033 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
9034 | printf %s "checking for $ac_word... " >&6; }
|
---|
9035 | if test ${ac_cv_prog_DLLTOOL+y}
|
---|
9036 | then :
|
---|
9037 | printf %s "(cached) " >&6
|
---|
9038 | else case e in #(
|
---|
9039 | e) if test -n "$DLLTOOL"; then
|
---|
9040 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
|
---|
9041 | else
|
---|
9042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
9043 | for as_dir in $PATH
|
---|
9044 | do
|
---|
9045 | IFS=$as_save_IFS
|
---|
9046 | case $as_dir in #(((
|
---|
9047 | '') as_dir=./ ;;
|
---|
9048 | */) ;;
|
---|
9049 | *) as_dir=$as_dir/ ;;
|
---|
9050 | esac
|
---|
9051 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
9052 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
9053 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
|
---|
9054 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
9055 | break 2
|
---|
9056 | fi
|
---|
9057 | done
|
---|
9058 | done
|
---|
9059 | IFS=$as_save_IFS
|
---|
9060 |
|
---|
9061 | fi ;;
|
---|
9062 | esac
|
---|
9063 | fi
|
---|
9064 | DLLTOOL=$ac_cv_prog_DLLTOOL
|
---|
9065 | if test -n "$DLLTOOL"; then
|
---|
9066 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
|
---|
9067 | printf "%s\n" "$DLLTOOL" >&6; }
|
---|
9068 | else
|
---|
9069 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
9070 | printf "%s\n" "no" >&6; }
|
---|
9071 | fi
|
---|
9072 |
|
---|
9073 |
|
---|
9074 | fi
|
---|
9075 | if test -z "$ac_cv_prog_DLLTOOL"; then
|
---|
9076 | ac_ct_DLLTOOL=$DLLTOOL
|
---|
9077 | # Extract the first word of "dlltool", so it can be a program name with args.
|
---|
9078 | set dummy dlltool; ac_word=$2
|
---|
9079 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
9080 | printf %s "checking for $ac_word... " >&6; }
|
---|
9081 | if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
|
---|
9082 | then :
|
---|
9083 | printf %s "(cached) " >&6
|
---|
9084 | else case e in #(
|
---|
9085 | e) if test -n "$ac_ct_DLLTOOL"; then
|
---|
9086 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
|
---|
9087 | else
|
---|
9088 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
9089 | for as_dir in $PATH
|
---|
9090 | do
|
---|
9091 | IFS=$as_save_IFS
|
---|
9092 | case $as_dir in #(((
|
---|
9093 | '') as_dir=./ ;;
|
---|
9094 | */) ;;
|
---|
9095 | *) as_dir=$as_dir/ ;;
|
---|
9096 | esac
|
---|
9097 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
9098 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
9099 | ac_cv_prog_ac_ct_DLLTOOL="dlltool"
|
---|
9100 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
9101 | break 2
|
---|
9102 | fi
|
---|
9103 | done
|
---|
9104 | done
|
---|
9105 | IFS=$as_save_IFS
|
---|
9106 |
|
---|
9107 | fi ;;
|
---|
9108 | esac
|
---|
9109 | fi
|
---|
9110 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
|
---|
9111 | if test -n "$ac_ct_DLLTOOL"; then
|
---|
9112 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
|
---|
9113 | printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
|
---|
9114 | else
|
---|
9115 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
9116 | printf "%s\n" "no" >&6; }
|
---|
9117 | fi
|
---|
9118 |
|
---|
9119 | if test "x$ac_ct_DLLTOOL" = x; then
|
---|
9120 | DLLTOOL="false"
|
---|
9121 | else
|
---|
9122 | case $cross_compiling:$ac_tool_warned in
|
---|
9123 | yes:)
|
---|
9124 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
9125 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
9126 | ac_tool_warned=yes ;;
|
---|
9127 | esac
|
---|
9128 | DLLTOOL=$ac_ct_DLLTOOL
|
---|
9129 | fi
|
---|
9130 | else
|
---|
9131 | DLLTOOL="$ac_cv_prog_DLLTOOL"
|
---|
9132 | fi
|
---|
9133 |
|
---|
9134 | if test -n "$ac_tool_prefix"; then
|
---|
9135 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
|
---|
9136 | set dummy ${ac_tool_prefix}objdump; ac_word=$2
|
---|
9137 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
9138 | printf %s "checking for $ac_word... " >&6; }
|
---|
9139 | if test ${ac_cv_prog_OBJDUMP+y}
|
---|
9140 | then :
|
---|
9141 | printf %s "(cached) " >&6
|
---|
9142 | else case e in #(
|
---|
9143 | e) if test -n "$OBJDUMP"; then
|
---|
9144 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
|
---|
9145 | else
|
---|
9146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
9147 | for as_dir in $PATH
|
---|
9148 | do
|
---|
9149 | IFS=$as_save_IFS
|
---|
9150 | case $as_dir in #(((
|
---|
9151 | '') as_dir=./ ;;
|
---|
9152 | */) ;;
|
---|
9153 | *) as_dir=$as_dir/ ;;
|
---|
9154 | esac
|
---|
9155 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
9156 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
9157 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
|
---|
9158 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
9159 | break 2
|
---|
9160 | fi
|
---|
9161 | done
|
---|
9162 | done
|
---|
9163 | IFS=$as_save_IFS
|
---|
9164 |
|
---|
9165 | fi ;;
|
---|
9166 | esac
|
---|
9167 | fi
|
---|
9168 | OBJDUMP=$ac_cv_prog_OBJDUMP
|
---|
9169 | if test -n "$OBJDUMP"; then
|
---|
9170 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
|
---|
9171 | printf "%s\n" "$OBJDUMP" >&6; }
|
---|
9172 | else
|
---|
9173 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
9174 | printf "%s\n" "no" >&6; }
|
---|
9175 | fi
|
---|
9176 |
|
---|
9177 |
|
---|
9178 | fi
|
---|
9179 | if test -z "$ac_cv_prog_OBJDUMP"; then
|
---|
9180 | ac_ct_OBJDUMP=$OBJDUMP
|
---|
9181 | # Extract the first word of "objdump", so it can be a program name with args.
|
---|
9182 | set dummy objdump; ac_word=$2
|
---|
9183 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
9184 | printf %s "checking for $ac_word... " >&6; }
|
---|
9185 | if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
|
---|
9186 | then :
|
---|
9187 | printf %s "(cached) " >&6
|
---|
9188 | else case e in #(
|
---|
9189 | e) if test -n "$ac_ct_OBJDUMP"; then
|
---|
9190 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
|
---|
9191 | else
|
---|
9192 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
9193 | for as_dir in $PATH
|
---|
9194 | do
|
---|
9195 | IFS=$as_save_IFS
|
---|
9196 | case $as_dir in #(((
|
---|
9197 | '') as_dir=./ ;;
|
---|
9198 | */) ;;
|
---|
9199 | *) as_dir=$as_dir/ ;;
|
---|
9200 | esac
|
---|
9201 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
9202 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
9203 | ac_cv_prog_ac_ct_OBJDUMP="objdump"
|
---|
9204 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
9205 | break 2
|
---|
9206 | fi
|
---|
9207 | done
|
---|
9208 | done
|
---|
9209 | IFS=$as_save_IFS
|
---|
9210 |
|
---|
9211 | fi ;;
|
---|
9212 | esac
|
---|
9213 | fi
|
---|
9214 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
|
---|
9215 | if test -n "$ac_ct_OBJDUMP"; then
|
---|
9216 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
|
---|
9217 | printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
|
---|
9218 | else
|
---|
9219 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
9220 | printf "%s\n" "no" >&6; }
|
---|
9221 | fi
|
---|
9222 |
|
---|
9223 | if test "x$ac_ct_OBJDUMP" = x; then
|
---|
9224 | OBJDUMP="false"
|
---|
9225 | else
|
---|
9226 | case $cross_compiling:$ac_tool_warned in
|
---|
9227 | yes:)
|
---|
9228 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
9229 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
9230 | ac_tool_warned=yes ;;
|
---|
9231 | esac
|
---|
9232 | OBJDUMP=$ac_ct_OBJDUMP
|
---|
9233 | fi
|
---|
9234 | else
|
---|
9235 | OBJDUMP="$ac_cv_prog_OBJDUMP"
|
---|
9236 | fi
|
---|
9237 |
|
---|
9238 | ;;
|
---|
9239 | esac
|
---|
9240 |
|
---|
9241 | test -z "$AS" && AS=as
|
---|
9242 |
|
---|
9243 |
|
---|
9244 |
|
---|
9245 |
|
---|
9246 |
|
---|
9247 | test -z "$DLLTOOL" && DLLTOOL=dlltool
|
---|
9248 |
|
---|
9249 |
|
---|
9250 |
|
---|
9251 |
|
---|
9252 |
|
---|
9253 | test -z "$OBJDUMP" && OBJDUMP=objdump
|
---|
9254 |
|
---|
9255 |
|
---|
9256 |
|
---|
9257 |
|
---|
9258 |
|
---|
9259 |
|
---|
9260 |
|
---|
9261 | enable_dlopen=no
|
---|
9262 |
|
---|
9263 |
|
---|
9264 |
|
---|
9265 | # Check whether --enable-shared was given.
|
---|
9266 | if test ${enable_shared+y}
|
---|
9267 | then :
|
---|
9268 | enableval=$enable_shared; p=${PACKAGE-default}
|
---|
9269 | case $enableval in
|
---|
9270 | yes) enable_shared=yes ;;
|
---|
9271 | no) enable_shared=no ;;
|
---|
9272 | *)
|
---|
9273 | enable_shared=no
|
---|
9274 | # Look at the argument we got. We use all the common list separators.
|
---|
9275 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
|
---|
9276 | for pkg in $enableval; do
|
---|
9277 | IFS=$lt_save_ifs
|
---|
9278 | if test "X$pkg" = "X$p"; then
|
---|
9279 | enable_shared=yes
|
---|
9280 | fi
|
---|
9281 | done
|
---|
9282 | IFS=$lt_save_ifs
|
---|
9283 | ;;
|
---|
9284 | esac
|
---|
9285 | else case e in #(
|
---|
9286 | e) enable_shared=yes ;;
|
---|
9287 | esac
|
---|
9288 | fi
|
---|
9289 |
|
---|
9290 |
|
---|
9291 |
|
---|
9292 |
|
---|
9293 |
|
---|
9294 |
|
---|
9295 |
|
---|
9296 |
|
---|
9297 |
|
---|
9298 | # Check whether --enable-static was given.
|
---|
9299 | if test ${enable_static+y}
|
---|
9300 | then :
|
---|
9301 | enableval=$enable_static; p=${PACKAGE-default}
|
---|
9302 | case $enableval in
|
---|
9303 | yes) enable_static=yes ;;
|
---|
9304 | no) enable_static=no ;;
|
---|
9305 | *)
|
---|
9306 | enable_static=no
|
---|
9307 | # Look at the argument we got. We use all the common list separators.
|
---|
9308 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
|
---|
9309 | for pkg in $enableval; do
|
---|
9310 | IFS=$lt_save_ifs
|
---|
9311 | if test "X$pkg" = "X$p"; then
|
---|
9312 | enable_static=yes
|
---|
9313 | fi
|
---|
9314 | done
|
---|
9315 | IFS=$lt_save_ifs
|
---|
9316 | ;;
|
---|
9317 | esac
|
---|
9318 | else case e in #(
|
---|
9319 | e) enable_static=yes ;;
|
---|
9320 | esac
|
---|
9321 | fi
|
---|
9322 |
|
---|
9323 |
|
---|
9324 |
|
---|
9325 |
|
---|
9326 |
|
---|
9327 |
|
---|
9328 |
|
---|
9329 |
|
---|
9330 |
|
---|
9331 |
|
---|
9332 | # Check whether --with-pic was given.
|
---|
9333 | if test ${with_pic+y}
|
---|
9334 | then :
|
---|
9335 | withval=$with_pic; lt_p=${PACKAGE-default}
|
---|
9336 | case $withval in
|
---|
9337 | yes|no) pic_mode=$withval ;;
|
---|
9338 | *)
|
---|
9339 | pic_mode=default
|
---|
9340 | # Look at the argument we got. We use all the common list separators.
|
---|
9341 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
|
---|
9342 | for lt_pkg in $withval; do
|
---|
9343 | IFS=$lt_save_ifs
|
---|
9344 | if test "X$lt_pkg" = "X$lt_p"; then
|
---|
9345 | pic_mode=yes
|
---|
9346 | fi
|
---|
9347 | done
|
---|
9348 | IFS=$lt_save_ifs
|
---|
9349 | ;;
|
---|
9350 | esac
|
---|
9351 | else case e in #(
|
---|
9352 | e) pic_mode=default ;;
|
---|
9353 | esac
|
---|
9354 | fi
|
---|
9355 |
|
---|
9356 |
|
---|
9357 |
|
---|
9358 |
|
---|
9359 |
|
---|
9360 |
|
---|
9361 |
|
---|
9362 |
|
---|
9363 | # Check whether --enable-fast-install was given.
|
---|
9364 | if test ${enable_fast_install+y}
|
---|
9365 | then :
|
---|
9366 | enableval=$enable_fast_install; p=${PACKAGE-default}
|
---|
9367 | case $enableval in
|
---|
9368 | yes) enable_fast_install=yes ;;
|
---|
9369 | no) enable_fast_install=no ;;
|
---|
9370 | *)
|
---|
9371 | enable_fast_install=no
|
---|
9372 | # Look at the argument we got. We use all the common list separators.
|
---|
9373 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
|
---|
9374 | for pkg in $enableval; do
|
---|
9375 | IFS=$lt_save_ifs
|
---|
9376 | if test "X$pkg" = "X$p"; then
|
---|
9377 | enable_fast_install=yes
|
---|
9378 | fi
|
---|
9379 | done
|
---|
9380 | IFS=$lt_save_ifs
|
---|
9381 | ;;
|
---|
9382 | esac
|
---|
9383 | else case e in #(
|
---|
9384 | e) enable_fast_install=yes ;;
|
---|
9385 | esac
|
---|
9386 | fi
|
---|
9387 |
|
---|
9388 |
|
---|
9389 |
|
---|
9390 |
|
---|
9391 |
|
---|
9392 |
|
---|
9393 |
|
---|
9394 |
|
---|
9395 | shared_archive_member_spec=
|
---|
9396 | case $host,$enable_shared in
|
---|
9397 | power*-*-aix[5-9]*,yes)
|
---|
9398 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
|
---|
9399 | printf %s "checking which variant of shared library versioning to provide... " >&6; }
|
---|
9400 |
|
---|
9401 | # Check whether --with-aix-soname was given.
|
---|
9402 | if test ${with_aix_soname+y}
|
---|
9403 | then :
|
---|
9404 | withval=$with_aix_soname; case $withval in
|
---|
9405 | aix|svr4|both)
|
---|
9406 | ;;
|
---|
9407 | *)
|
---|
9408 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
|
---|
9409 | ;;
|
---|
9410 | esac
|
---|
9411 | lt_cv_with_aix_soname=$with_aix_soname
|
---|
9412 | else case e in #(
|
---|
9413 | e) if test ${lt_cv_with_aix_soname+y}
|
---|
9414 | then :
|
---|
9415 | printf %s "(cached) " >&6
|
---|
9416 | else case e in #(
|
---|
9417 | e) lt_cv_with_aix_soname=aix ;;
|
---|
9418 | esac
|
---|
9419 | fi
|
---|
9420 |
|
---|
9421 | with_aix_soname=$lt_cv_with_aix_soname ;;
|
---|
9422 | esac
|
---|
9423 | fi
|
---|
9424 |
|
---|
9425 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
|
---|
9426 | printf "%s\n" "$with_aix_soname" >&6; }
|
---|
9427 | if test aix != "$with_aix_soname"; then
|
---|
9428 | # For the AIX way of multilib, we name the shared archive member
|
---|
9429 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
|
---|
9430 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
|
---|
9431 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
|
---|
9432 | # the AIX toolchain works better with OBJECT_MODE set (default 32).
|
---|
9433 | if test 64 = "${OBJECT_MODE-32}"; then
|
---|
9434 | shared_archive_member_spec=shr_64
|
---|
9435 | else
|
---|
9436 | shared_archive_member_spec=shr
|
---|
9437 | fi
|
---|
9438 | fi
|
---|
9439 | ;;
|
---|
9440 | *)
|
---|
9441 | with_aix_soname=aix
|
---|
9442 | ;;
|
---|
9443 | esac
|
---|
9444 |
|
---|
9445 |
|
---|
9446 |
|
---|
9447 |
|
---|
9448 |
|
---|
9449 |
|
---|
9450 |
|
---|
9451 |
|
---|
9452 |
|
---|
9453 |
|
---|
9454 | # This can be used to rebuild libtool when needed
|
---|
9455 | LIBTOOL_DEPS=$ltmain
|
---|
9456 |
|
---|
9457 | # Always use our own libtool.
|
---|
9458 | LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
---|
9459 |
|
---|
9460 |
|
---|
9461 |
|
---|
9462 |
|
---|
9463 |
|
---|
9464 |
|
---|
9465 |
|
---|
9466 |
|
---|
9467 |
|
---|
9468 |
|
---|
9469 |
|
---|
9470 |
|
---|
9471 |
|
---|
9472 |
|
---|
9473 |
|
---|
9474 |
|
---|
9475 |
|
---|
9476 |
|
---|
9477 |
|
---|
9478 |
|
---|
9479 |
|
---|
9480 |
|
---|
9481 |
|
---|
9482 |
|
---|
9483 |
|
---|
9484 |
|
---|
9485 |
|
---|
9486 |
|
---|
9487 |
|
---|
9488 |
|
---|
9489 | test -z "$LN_S" && LN_S="ln -s"
|
---|
9490 |
|
---|
9491 |
|
---|
9492 |
|
---|
9493 |
|
---|
9494 |
|
---|
9495 |
|
---|
9496 |
|
---|
9497 |
|
---|
9498 |
|
---|
9499 |
|
---|
9500 |
|
---|
9501 |
|
---|
9502 |
|
---|
9503 |
|
---|
9504 | if test -n "${ZSH_VERSION+set}"; then
|
---|
9505 | setopt NO_GLOB_SUBST
|
---|
9506 | fi
|
---|
9507 |
|
---|
9508 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
|
---|
9509 | printf %s "checking for objdir... " >&6; }
|
---|
9510 | if test ${lt_cv_objdir+y}
|
---|
9511 | then :
|
---|
9512 | printf %s "(cached) " >&6
|
---|
9513 | else case e in #(
|
---|
9514 | e) rm -f .libs 2>/dev/null
|
---|
9515 | mkdir .libs 2>/dev/null
|
---|
9516 | if test -d .libs; then
|
---|
9517 | lt_cv_objdir=.libs
|
---|
9518 | else
|
---|
9519 | # MS-DOS does not allow filenames that begin with a dot.
|
---|
9520 | lt_cv_objdir=_libs
|
---|
9521 | fi
|
---|
9522 | rmdir .libs 2>/dev/null ;;
|
---|
9523 | esac
|
---|
9524 | fi
|
---|
9525 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
|
---|
9526 | printf "%s\n" "$lt_cv_objdir" >&6; }
|
---|
9527 | objdir=$lt_cv_objdir
|
---|
9528 |
|
---|
9529 |
|
---|
9530 |
|
---|
9531 |
|
---|
9532 |
|
---|
9533 | printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
|
---|
9534 |
|
---|
9535 |
|
---|
9536 |
|
---|
9537 |
|
---|
9538 | case $host_os in
|
---|
9539 | aix3*)
|
---|
9540 | # AIX sometimes has problems with the GCC collect2 program. For some
|
---|
9541 | # reason, if we set the COLLECT_NAMES environment variable, the problems
|
---|
9542 | # vanish in a puff of smoke.
|
---|
9543 | if test set != "${COLLECT_NAMES+set}"; then
|
---|
9544 | COLLECT_NAMES=
|
---|
9545 | export COLLECT_NAMES
|
---|
9546 | fi
|
---|
9547 | ;;
|
---|
9548 | esac
|
---|
9549 |
|
---|
9550 | # Global variables:
|
---|
9551 | ofile=libtool
|
---|
9552 | can_build_shared=yes
|
---|
9553 |
|
---|
9554 | # All known linkers require a '.a' archive for static linking (except MSVC and
|
---|
9555 | # ICC, which need '.lib').
|
---|
9556 | libext=a
|
---|
9557 |
|
---|
9558 | with_gnu_ld=$lt_cv_prog_gnu_ld
|
---|
9559 |
|
---|
9560 | old_CC=$CC
|
---|
9561 | old_CFLAGS=$CFLAGS
|
---|
9562 |
|
---|
9563 | # Set sane defaults for various variables
|
---|
9564 | test -z "$CC" && CC=cc
|
---|
9565 | test -z "$LTCC" && LTCC=$CC
|
---|
9566 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
|
---|
9567 | test -z "$LD" && LD=ld
|
---|
9568 | test -z "$ac_objext" && ac_objext=o
|
---|
9569 |
|
---|
9570 | func_cc_basename $compiler
|
---|
9571 | cc_basename=$func_cc_basename_result
|
---|
9572 |
|
---|
9573 |
|
---|
9574 | # Only perform the check for file, if the check method requires it
|
---|
9575 | test -z "$MAGIC_CMD" && MAGIC_CMD=file
|
---|
9576 | case $deplibs_check_method in
|
---|
9577 | file_magic*)
|
---|
9578 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
---|
9579 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
|
---|
9580 | printf %s "checking for ${ac_tool_prefix}file... " >&6; }
|
---|
9581 | if test ${lt_cv_path_MAGIC_CMD+y}
|
---|
9582 | then :
|
---|
9583 | printf %s "(cached) " >&6
|
---|
9584 | else case e in #(
|
---|
9585 | e) case $MAGIC_CMD in
|
---|
9586 | [\\/*] | ?:[\\/]*)
|
---|
9587 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
|
---|
9588 | ;;
|
---|
9589 | *)
|
---|
9590 | lt_save_MAGIC_CMD=$MAGIC_CMD
|
---|
9591 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
|
---|
9592 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
|
---|
9593 | for ac_dir in $ac_dummy; do
|
---|
9594 | IFS=$lt_save_ifs
|
---|
9595 | test -z "$ac_dir" && ac_dir=.
|
---|
9596 | if test -f "$ac_dir/${ac_tool_prefix}file"; then
|
---|
9597 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
|
---|
9598 | if test -n "$file_magic_test_file"; then
|
---|
9599 | case $deplibs_check_method in
|
---|
9600 | "file_magic "*)
|
---|
9601 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
|
---|
9602 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD
|
---|
9603 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
---|
9604 | $EGREP "$file_magic_regex" > /dev/null; then
|
---|
9605 | :
|
---|
9606 | else
|
---|
9607 | cat <<_LT_EOF 1>&2
|
---|
9608 |
|
---|
9609 | *** Warning: the command libtool uses to detect shared libraries,
|
---|
9610 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
---|
9611 | *** The result is that libtool may fail to recognize shared libraries
|
---|
9612 | *** as such. This will affect the creation of libtool libraries that
|
---|
9613 | *** depend on shared libraries, but programs linked with such libtool
|
---|
9614 | *** libraries will work regardless of this problem. Nevertheless, you
|
---|
9615 | *** may want to report the problem to your system manager and/or to
|
---|
9616 | *** [email protected]
|
---|
9617 |
|
---|
9618 | _LT_EOF
|
---|
9619 | fi ;;
|
---|
9620 | esac
|
---|
9621 | fi
|
---|
9622 | break
|
---|
9623 | fi
|
---|
9624 | done
|
---|
9625 | IFS=$lt_save_ifs
|
---|
9626 | MAGIC_CMD=$lt_save_MAGIC_CMD
|
---|
9627 | ;;
|
---|
9628 | esac ;;
|
---|
9629 | esac
|
---|
9630 | fi
|
---|
9631 |
|
---|
9632 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD
|
---|
9633 | if test -n "$MAGIC_CMD"; then
|
---|
9634 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
|
---|
9635 | printf "%s\n" "$MAGIC_CMD" >&6; }
|
---|
9636 | else
|
---|
9637 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
9638 | printf "%s\n" "no" >&6; }
|
---|
9639 | fi
|
---|
9640 |
|
---|
9641 |
|
---|
9642 |
|
---|
9643 |
|
---|
9644 |
|
---|
9645 | if test -z "$lt_cv_path_MAGIC_CMD"; then
|
---|
9646 | if test -n "$ac_tool_prefix"; then
|
---|
9647 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
|
---|
9648 | printf %s "checking for file... " >&6; }
|
---|
9649 | if test ${lt_cv_path_MAGIC_CMD+y}
|
---|
9650 | then :
|
---|
9651 | printf %s "(cached) " >&6
|
---|
9652 | else case e in #(
|
---|
9653 | e) case $MAGIC_CMD in
|
---|
9654 | [\\/*] | ?:[\\/]*)
|
---|
9655 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
|
---|
9656 | ;;
|
---|
9657 | *)
|
---|
9658 | lt_save_MAGIC_CMD=$MAGIC_CMD
|
---|
9659 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
|
---|
9660 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
|
---|
9661 | for ac_dir in $ac_dummy; do
|
---|
9662 | IFS=$lt_save_ifs
|
---|
9663 | test -z "$ac_dir" && ac_dir=.
|
---|
9664 | if test -f "$ac_dir/file"; then
|
---|
9665 | lt_cv_path_MAGIC_CMD=$ac_dir/"file"
|
---|
9666 | if test -n "$file_magic_test_file"; then
|
---|
9667 | case $deplibs_check_method in
|
---|
9668 | "file_magic "*)
|
---|
9669 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
|
---|
9670 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD
|
---|
9671 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
---|
9672 | $EGREP "$file_magic_regex" > /dev/null; then
|
---|
9673 | :
|
---|
9674 | else
|
---|
9675 | cat <<_LT_EOF 1>&2
|
---|
9676 |
|
---|
9677 | *** Warning: the command libtool uses to detect shared libraries,
|
---|
9678 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
---|
9679 | *** The result is that libtool may fail to recognize shared libraries
|
---|
9680 | *** as such. This will affect the creation of libtool libraries that
|
---|
9681 | *** depend on shared libraries, but programs linked with such libtool
|
---|
9682 | *** libraries will work regardless of this problem. Nevertheless, you
|
---|
9683 | *** may want to report the problem to your system manager and/or to
|
---|
9684 | *** [email protected]
|
---|
9685 |
|
---|
9686 | _LT_EOF
|
---|
9687 | fi ;;
|
---|
9688 | esac
|
---|
9689 | fi
|
---|
9690 | break
|
---|
9691 | fi
|
---|
9692 | done
|
---|
9693 | IFS=$lt_save_ifs
|
---|
9694 | MAGIC_CMD=$lt_save_MAGIC_CMD
|
---|
9695 | ;;
|
---|
9696 | esac ;;
|
---|
9697 | esac
|
---|
9698 | fi
|
---|
9699 |
|
---|
9700 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD
|
---|
9701 | if test -n "$MAGIC_CMD"; then
|
---|
9702 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
|
---|
9703 | printf "%s\n" "$MAGIC_CMD" >&6; }
|
---|
9704 | else
|
---|
9705 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
9706 | printf "%s\n" "no" >&6; }
|
---|
9707 | fi
|
---|
9708 |
|
---|
9709 |
|
---|
9710 | else
|
---|
9711 | MAGIC_CMD=:
|
---|
9712 | fi
|
---|
9713 | fi
|
---|
9714 |
|
---|
9715 | fi
|
---|
9716 | ;;
|
---|
9717 | esac
|
---|
9718 |
|
---|
9719 | # Use C for the default configuration in the libtool script
|
---|
9720 |
|
---|
9721 | lt_save_CC=$CC
|
---|
9722 | ac_ext=c
|
---|
9723 | ac_cpp='$CPP $CPPFLAGS'
|
---|
9724 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
9725 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
9726 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
9727 |
|
---|
9728 |
|
---|
9729 | # Source file extension for C test sources.
|
---|
9730 | ac_ext=c
|
---|
9731 |
|
---|
9732 | # Object file extension for compiled C test sources.
|
---|
9733 | objext=o
|
---|
9734 | objext=$objext
|
---|
9735 |
|
---|
9736 | # Code to be used in simple compile tests
|
---|
9737 | lt_simple_compile_test_code="int some_variable = 0;"
|
---|
9738 |
|
---|
9739 | # Code to be used in simple link tests
|
---|
9740 | lt_simple_link_test_code='int main(){return(0);}'
|
---|
9741 |
|
---|
9742 |
|
---|
9743 |
|
---|
9744 |
|
---|
9745 |
|
---|
9746 |
|
---|
9747 |
|
---|
9748 | # If no C compiler was specified, use CC.
|
---|
9749 | LTCC=${LTCC-"$CC"}
|
---|
9750 |
|
---|
9751 | # If no C compiler flags were specified, use CFLAGS.
|
---|
9752 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
---|
9753 |
|
---|
9754 | # Allow CC to be a program name with arguments.
|
---|
9755 | compiler=$CC
|
---|
9756 |
|
---|
9757 | # Save the default compiler, since it gets overwritten when the other
|
---|
9758 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
|
---|
9759 | compiler_DEFAULT=$CC
|
---|
9760 |
|
---|
9761 | # save warnings/boilerplate of simple test code
|
---|
9762 | ac_outfile=conftest.$ac_objext
|
---|
9763 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext
|
---|
9764 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
---|
9765 | _lt_compiler_boilerplate=`cat conftest.err`
|
---|
9766 | $RM conftest*
|
---|
9767 |
|
---|
9768 | ac_outfile=conftest.$ac_objext
|
---|
9769 | echo "$lt_simple_link_test_code" >conftest.$ac_ext
|
---|
9770 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
---|
9771 | _lt_linker_boilerplate=`cat conftest.err`
|
---|
9772 | $RM -r conftest*
|
---|
9773 |
|
---|
9774 |
|
---|
9775 | ## CAVEAT EMPTOR:
|
---|
9776 | ## There is no encapsulation within the following macros, do not change
|
---|
9777 | ## the running order or otherwise move them around unless you know exactly
|
---|
9778 | ## what you are doing...
|
---|
9779 | if test -n "$compiler"; then
|
---|
9780 |
|
---|
9781 | lt_prog_compiler_no_builtin_flag=
|
---|
9782 |
|
---|
9783 | if test yes = "$GCC"; then
|
---|
9784 | case $cc_basename in
|
---|
9785 | nvcc*)
|
---|
9786 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
|
---|
9787 | *)
|
---|
9788 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
|
---|
9789 | esac
|
---|
9790 |
|
---|
9791 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
|
---|
9792 | printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
|
---|
9793 | if test ${lt_cv_prog_compiler_rtti_exceptions+y}
|
---|
9794 | then :
|
---|
9795 | printf %s "(cached) " >&6
|
---|
9796 | else case e in #(
|
---|
9797 | e) lt_cv_prog_compiler_rtti_exceptions=no
|
---|
9798 | ac_outfile=conftest.$ac_objext
|
---|
9799 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
---|
9800 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
|
---|
9801 | # Insert the option either (1) after the last *FLAGS variable, or
|
---|
9802 | # (2) before a word containing "conftest.", or (3) at the end.
|
---|
9803 | # Note that $ac_compile itself does not contain backslashes and begins
|
---|
9804 | # with a dollar sign (not a hyphen), so the echo should work correctly.
|
---|
9805 | # The option is referenced via a variable to avoid confusing sed.
|
---|
9806 | lt_compile=`echo "$ac_compile" | $SED \
|
---|
9807 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
---|
9808 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
---|
9809 | -e 's:$: $lt_compiler_flag:'`
|
---|
9810 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
|
---|
9811 | (eval "$lt_compile" 2>conftest.err)
|
---|
9812 | ac_status=$?
|
---|
9813 | cat conftest.err >&5
|
---|
9814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9815 | if (exit $ac_status) && test -s "$ac_outfile"; then
|
---|
9816 | # The compiler can only warn and ignore the option if not recognized
|
---|
9817 | # So say no if there are warnings other than the usual output.
|
---|
9818 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
|
---|
9819 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
---|
9820 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
---|
9821 | lt_cv_prog_compiler_rtti_exceptions=yes
|
---|
9822 | fi
|
---|
9823 | fi
|
---|
9824 | $RM conftest*
|
---|
9825 | ;;
|
---|
9826 | esac
|
---|
9827 | fi
|
---|
9828 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
|
---|
9829 | printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
|
---|
9830 |
|
---|
9831 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
|
---|
9832 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
|
---|
9833 | else
|
---|
9834 | :
|
---|
9835 | fi
|
---|
9836 |
|
---|
9837 | fi
|
---|
9838 |
|
---|
9839 |
|
---|
9840 |
|
---|
9841 |
|
---|
9842 |
|
---|
9843 |
|
---|
9844 | lt_prog_compiler_wl=
|
---|
9845 | lt_prog_compiler_pic=
|
---|
9846 | lt_prog_compiler_static=
|
---|
9847 |
|
---|
9848 |
|
---|
9849 | if test yes = "$GCC"; then
|
---|
9850 | lt_prog_compiler_wl='-Wl,'
|
---|
9851 | lt_prog_compiler_static='-static'
|
---|
9852 |
|
---|
9853 | case $host_os in
|
---|
9854 | aix*)
|
---|
9855 | # All AIX code is PIC.
|
---|
9856 | if test ia64 = "$host_cpu"; then
|
---|
9857 | # AIX 5 now supports IA64 processor
|
---|
9858 | lt_prog_compiler_static='-Bstatic'
|
---|
9859 | fi
|
---|
9860 | lt_prog_compiler_pic='-fPIC'
|
---|
9861 | ;;
|
---|
9862 |
|
---|
9863 | amigaos*)
|
---|
9864 | case $host_cpu in
|
---|
9865 | powerpc)
|
---|
9866 | # see comment about AmigaOS4 .so support
|
---|
9867 | lt_prog_compiler_pic='-fPIC'
|
---|
9868 | ;;
|
---|
9869 | m68k)
|
---|
9870 | # FIXME: we need at least 68020 code to build shared libraries, but
|
---|
9871 | # adding the '-m68020' flag to GCC prevents building anything better,
|
---|
9872 | # like '-m68040'.
|
---|
9873 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
|
---|
9874 | ;;
|
---|
9875 | esac
|
---|
9876 | ;;
|
---|
9877 |
|
---|
9878 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
---|
9879 | # PIC is the default for these OSes.
|
---|
9880 | ;;
|
---|
9881 |
|
---|
9882 | mingw* | cygwin* | pw32* | os2* | cegcc*)
|
---|
9883 | # This hack is so that the source file can tell whether it is being
|
---|
9884 | # built for inclusion in a dll (and should export symbols for example).
|
---|
9885 | # Although the cygwin gcc ignores -fPIC, still need this for old-style
|
---|
9886 | # (--disable-auto-import) libraries
|
---|
9887 | lt_prog_compiler_pic='-DDLL_EXPORT'
|
---|
9888 | case $host_os in
|
---|
9889 | os2*)
|
---|
9890 | lt_prog_compiler_static='$wl-static'
|
---|
9891 | ;;
|
---|
9892 | esac
|
---|
9893 | ;;
|
---|
9894 |
|
---|
9895 | darwin* | rhapsody*)
|
---|
9896 | # PIC is the default on this platform
|
---|
9897 | # Common symbols not allowed in MH_DYLIB files
|
---|
9898 | lt_prog_compiler_pic='-fno-common'
|
---|
9899 | ;;
|
---|
9900 |
|
---|
9901 | haiku*)
|
---|
9902 | # PIC is the default for Haiku.
|
---|
9903 | # The "-static" flag exists, but is broken.
|
---|
9904 | lt_prog_compiler_static=
|
---|
9905 | ;;
|
---|
9906 |
|
---|
9907 | hpux*)
|
---|
9908 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
|
---|
9909 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
|
---|
9910 | # sets the default TLS model and affects inlining.
|
---|
9911 | case $host_cpu in
|
---|
9912 | hppa*64*)
|
---|
9913 | # +Z the default
|
---|
9914 | ;;
|
---|
9915 | *)
|
---|
9916 | lt_prog_compiler_pic='-fPIC'
|
---|
9917 | ;;
|
---|
9918 | esac
|
---|
9919 | ;;
|
---|
9920 |
|
---|
9921 | interix[3-9]*)
|
---|
9922 | # Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
---|
9923 | # Instead, we relocate shared libraries at runtime.
|
---|
9924 | ;;
|
---|
9925 |
|
---|
9926 | msdosdjgpp*)
|
---|
9927 | # Just because we use GCC doesn't mean we suddenly get shared libraries
|
---|
9928 | # on systems that don't support them.
|
---|
9929 | lt_prog_compiler_can_build_shared=no
|
---|
9930 | enable_shared=no
|
---|
9931 | ;;
|
---|
9932 |
|
---|
9933 | *nto* | *qnx*)
|
---|
9934 | # QNX uses GNU C++, but need to define -shared option too, otherwise
|
---|
9935 | # it will coredump.
|
---|
9936 | lt_prog_compiler_pic='-fPIC -shared'
|
---|
9937 | ;;
|
---|
9938 |
|
---|
9939 | sysv4*MP*)
|
---|
9940 | if test -d /usr/nec; then
|
---|
9941 | lt_prog_compiler_pic=-Kconform_pic
|
---|
9942 | fi
|
---|
9943 | ;;
|
---|
9944 |
|
---|
9945 | *)
|
---|
9946 | lt_prog_compiler_pic='-fPIC'
|
---|
9947 | ;;
|
---|
9948 | esac
|
---|
9949 |
|
---|
9950 | case $cc_basename in
|
---|
9951 | nvcc*) # Cuda Compiler Driver 2.2
|
---|
9952 | lt_prog_compiler_wl='-Xlinker '
|
---|
9953 | if test -n "$lt_prog_compiler_pic"; then
|
---|
9954 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
|
---|
9955 | fi
|
---|
9956 | ;;
|
---|
9957 | esac
|
---|
9958 | else
|
---|
9959 | # PORTME Check for flag to pass linker flags through the system compiler.
|
---|
9960 | case $host_os in
|
---|
9961 | aix*)
|
---|
9962 | lt_prog_compiler_wl='-Wl,'
|
---|
9963 | if test ia64 = "$host_cpu"; then
|
---|
9964 | # AIX 5 now supports IA64 processor
|
---|
9965 | lt_prog_compiler_static='-Bstatic'
|
---|
9966 | else
|
---|
9967 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
|
---|
9968 | fi
|
---|
9969 | ;;
|
---|
9970 |
|
---|
9971 | darwin* | rhapsody*)
|
---|
9972 | # PIC is the default on this platform
|
---|
9973 | # Common symbols not allowed in MH_DYLIB files
|
---|
9974 | lt_prog_compiler_pic='-fno-common'
|
---|
9975 | case $cc_basename in
|
---|
9976 | nagfor*)
|
---|
9977 | # NAG Fortran compiler
|
---|
9978 | lt_prog_compiler_wl='-Wl,-Wl,,'
|
---|
9979 | lt_prog_compiler_pic='-PIC'
|
---|
9980 | lt_prog_compiler_static='-Bstatic'
|
---|
9981 | ;;
|
---|
9982 | esac
|
---|
9983 | ;;
|
---|
9984 |
|
---|
9985 | mingw* | cygwin* | pw32* | os2* | cegcc*)
|
---|
9986 | # This hack is so that the source file can tell whether it is being
|
---|
9987 | # built for inclusion in a dll (and should export symbols for example).
|
---|
9988 | lt_prog_compiler_pic='-DDLL_EXPORT'
|
---|
9989 | case $host_os in
|
---|
9990 | os2*)
|
---|
9991 | lt_prog_compiler_static='$wl-static'
|
---|
9992 | ;;
|
---|
9993 | esac
|
---|
9994 | ;;
|
---|
9995 |
|
---|
9996 | hpux9* | hpux10* | hpux11*)
|
---|
9997 | lt_prog_compiler_wl='-Wl,'
|
---|
9998 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
---|
9999 | # not for PA HP-UX.
|
---|
10000 | case $host_cpu in
|
---|
10001 | hppa*64*|ia64*)
|
---|
10002 | # +Z the default
|
---|
10003 | ;;
|
---|
10004 | *)
|
---|
10005 | lt_prog_compiler_pic='+Z'
|
---|
10006 | ;;
|
---|
10007 | esac
|
---|
10008 | # Is there a better lt_prog_compiler_static that works with the bundled CC?
|
---|
10009 | lt_prog_compiler_static='$wl-a ${wl}archive'
|
---|
10010 | ;;
|
---|
10011 |
|
---|
10012 | irix5* | irix6* | nonstopux*)
|
---|
10013 | lt_prog_compiler_wl='-Wl,'
|
---|
10014 | # PIC (with -KPIC) is the default.
|
---|
10015 | lt_prog_compiler_static='-non_shared'
|
---|
10016 | ;;
|
---|
10017 |
|
---|
10018 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
|
---|
10019 | case $cc_basename in
|
---|
10020 | # old Intel for x86_64, which still supported -KPIC.
|
---|
10021 | ecc*)
|
---|
10022 | lt_prog_compiler_wl='-Wl,'
|
---|
10023 | lt_prog_compiler_pic='-KPIC'
|
---|
10024 | lt_prog_compiler_static='-static'
|
---|
10025 | ;;
|
---|
10026 | # icc used to be incompatible with GCC.
|
---|
10027 | # ICC 10 doesn't accept -KPIC any more.
|
---|
10028 | icc* | ifort*)
|
---|
10029 | lt_prog_compiler_wl='-Wl,'
|
---|
10030 | lt_prog_compiler_pic='-fPIC'
|
---|
10031 | lt_prog_compiler_static='-static'
|
---|
10032 | ;;
|
---|
10033 | # Lahey Fortran 8.1.
|
---|
10034 | lf95*)
|
---|
10035 | lt_prog_compiler_wl='-Wl,'
|
---|
10036 | lt_prog_compiler_pic='--shared'
|
---|
10037 | lt_prog_compiler_static='--static'
|
---|
10038 | ;;
|
---|
10039 | nagfor*)
|
---|
10040 | # NAG Fortran compiler
|
---|
10041 | lt_prog_compiler_wl='-Wl,-Wl,,'
|
---|
10042 | lt_prog_compiler_pic='-PIC'
|
---|
10043 | lt_prog_compiler_static='-Bstatic'
|
---|
10044 | ;;
|
---|
10045 | tcc*)
|
---|
10046 | # Fabrice Bellard et al's Tiny C Compiler
|
---|
10047 | lt_prog_compiler_wl='-Wl,'
|
---|
10048 | lt_prog_compiler_pic='-fPIC'
|
---|
10049 | lt_prog_compiler_static='-static'
|
---|
10050 | ;;
|
---|
10051 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
|
---|
10052 | # Portland Group compilers (*not* the Pentium gcc compiler,
|
---|
10053 | # which looks to be a dead project)
|
---|
10054 | lt_prog_compiler_wl='-Wl,'
|
---|
10055 | lt_prog_compiler_pic='-fpic'
|
---|
10056 | lt_prog_compiler_static='-Bstatic'
|
---|
10057 | ;;
|
---|
10058 | ccc*)
|
---|
10059 | lt_prog_compiler_wl='-Wl,'
|
---|
10060 | # All Alpha code is PIC.
|
---|
10061 | lt_prog_compiler_static='-non_shared'
|
---|
10062 | ;;
|
---|
10063 | xl* | bgxl* | bgf* | mpixl*)
|
---|
10064 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
|
---|
10065 | lt_prog_compiler_wl='-Wl,'
|
---|
10066 | lt_prog_compiler_pic='-qpic'
|
---|
10067 | lt_prog_compiler_static='-qstaticlink'
|
---|
10068 | ;;
|
---|
10069 | *)
|
---|
10070 | case `$CC -V 2>&1 | $SED 5q` in
|
---|
10071 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
|
---|
10072 | # Sun Fortran 8.3 passes all unrecognized flags to the linker
|
---|
10073 | lt_prog_compiler_pic='-KPIC'
|
---|
10074 | lt_prog_compiler_static='-Bstatic'
|
---|
10075 | lt_prog_compiler_wl=''
|
---|
10076 | ;;
|
---|
10077 | *Sun\ F* | *Sun*Fortran*)
|
---|
10078 | lt_prog_compiler_pic='-KPIC'
|
---|
10079 | lt_prog_compiler_static='-Bstatic'
|
---|
10080 | lt_prog_compiler_wl='-Qoption ld '
|
---|
10081 | ;;
|
---|
10082 | *Sun\ C*)
|
---|
10083 | # Sun C 5.9
|
---|
10084 | lt_prog_compiler_pic='-KPIC'
|
---|
10085 | lt_prog_compiler_static='-Bstatic'
|
---|
10086 | lt_prog_compiler_wl='-Wl,'
|
---|
10087 | ;;
|
---|
10088 | *Intel*\ [CF]*Compiler*)
|
---|
10089 | lt_prog_compiler_wl='-Wl,'
|
---|
10090 | lt_prog_compiler_pic='-fPIC'
|
---|
10091 | lt_prog_compiler_static='-static'
|
---|
10092 | ;;
|
---|
10093 | *Portland\ Group*)
|
---|
10094 | lt_prog_compiler_wl='-Wl,'
|
---|
10095 | lt_prog_compiler_pic='-fpic'
|
---|
10096 | lt_prog_compiler_static='-Bstatic'
|
---|
10097 | ;;
|
---|
10098 | esac
|
---|
10099 | ;;
|
---|
10100 | esac
|
---|
10101 | ;;
|
---|
10102 |
|
---|
10103 | newsos6)
|
---|
10104 | lt_prog_compiler_pic='-KPIC'
|
---|
10105 | lt_prog_compiler_static='-Bstatic'
|
---|
10106 | ;;
|
---|
10107 |
|
---|
10108 | *nto* | *qnx*)
|
---|
10109 | # QNX uses GNU C++, but need to define -shared option too, otherwise
|
---|
10110 | # it will coredump.
|
---|
10111 | lt_prog_compiler_pic='-fPIC -shared'
|
---|
10112 | ;;
|
---|
10113 |
|
---|
10114 | osf3* | osf4* | osf5*)
|
---|
10115 | lt_prog_compiler_wl='-Wl,'
|
---|
10116 | # All OSF/1 code is PIC.
|
---|
10117 | lt_prog_compiler_static='-non_shared'
|
---|
10118 | ;;
|
---|
10119 |
|
---|
10120 | rdos*)
|
---|
10121 | lt_prog_compiler_static='-non_shared'
|
---|
10122 | ;;
|
---|
10123 |
|
---|
10124 | solaris*)
|
---|
10125 | lt_prog_compiler_pic='-KPIC'
|
---|
10126 | lt_prog_compiler_static='-Bstatic'
|
---|
10127 | case $cc_basename in
|
---|
10128 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
|
---|
10129 | lt_prog_compiler_wl='-Qoption ld ';;
|
---|
10130 | *)
|
---|
10131 | lt_prog_compiler_wl='-Wl,';;
|
---|
10132 | esac
|
---|
10133 | ;;
|
---|
10134 |
|
---|
10135 | sunos4*)
|
---|
10136 | lt_prog_compiler_wl='-Qoption ld '
|
---|
10137 | lt_prog_compiler_pic='-PIC'
|
---|
10138 | lt_prog_compiler_static='-Bstatic'
|
---|
10139 | ;;
|
---|
10140 |
|
---|
10141 | sysv4 | sysv4.2uw2* | sysv4.3*)
|
---|
10142 | lt_prog_compiler_wl='-Wl,'
|
---|
10143 | lt_prog_compiler_pic='-KPIC'
|
---|
10144 | lt_prog_compiler_static='-Bstatic'
|
---|
10145 | ;;
|
---|
10146 |
|
---|
10147 | sysv4*MP*)
|
---|
10148 | if test -d /usr/nec; then
|
---|
10149 | lt_prog_compiler_pic='-Kconform_pic'
|
---|
10150 | lt_prog_compiler_static='-Bstatic'
|
---|
10151 | fi
|
---|
10152 | ;;
|
---|
10153 |
|
---|
10154 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
---|
10155 | lt_prog_compiler_wl='-Wl,'
|
---|
10156 | lt_prog_compiler_pic='-KPIC'
|
---|
10157 | lt_prog_compiler_static='-Bstatic'
|
---|
10158 | ;;
|
---|
10159 |
|
---|
10160 | unicos*)
|
---|
10161 | lt_prog_compiler_wl='-Wl,'
|
---|
10162 | lt_prog_compiler_can_build_shared=no
|
---|
10163 | ;;
|
---|
10164 |
|
---|
10165 | uts4*)
|
---|
10166 | lt_prog_compiler_pic='-pic'
|
---|
10167 | lt_prog_compiler_static='-Bstatic'
|
---|
10168 | ;;
|
---|
10169 |
|
---|
10170 | *)
|
---|
10171 | lt_prog_compiler_can_build_shared=no
|
---|
10172 | ;;
|
---|
10173 | esac
|
---|
10174 | fi
|
---|
10175 |
|
---|
10176 | case $host_os in
|
---|
10177 | # For platforms that do not support PIC, -DPIC is meaningless:
|
---|
10178 | *djgpp*)
|
---|
10179 | lt_prog_compiler_pic=
|
---|
10180 | ;;
|
---|
10181 | *)
|
---|
10182 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
|
---|
10183 | ;;
|
---|
10184 | esac
|
---|
10185 |
|
---|
10186 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
---|
10187 | printf %s "checking for $compiler option to produce PIC... " >&6; }
|
---|
10188 | if test ${lt_cv_prog_compiler_pic+y}
|
---|
10189 | then :
|
---|
10190 | printf %s "(cached) " >&6
|
---|
10191 | else case e in #(
|
---|
10192 | e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
|
---|
10193 | esac
|
---|
10194 | fi
|
---|
10195 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
|
---|
10196 | printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
|
---|
10197 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
|
---|
10198 |
|
---|
10199 | #
|
---|
10200 | # Check to make sure the PIC flag actually works.
|
---|
10201 | #
|
---|
10202 | if test -n "$lt_prog_compiler_pic"; then
|
---|
10203 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
|
---|
10204 | printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
|
---|
10205 | if test ${lt_cv_prog_compiler_pic_works+y}
|
---|
10206 | then :
|
---|
10207 | printf %s "(cached) " >&6
|
---|
10208 | else case e in #(
|
---|
10209 | e) lt_cv_prog_compiler_pic_works=no
|
---|
10210 | ac_outfile=conftest.$ac_objext
|
---|
10211 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
---|
10212 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
|
---|
10213 | # Insert the option either (1) after the last *FLAGS variable, or
|
---|
10214 | # (2) before a word containing "conftest.", or (3) at the end.
|
---|
10215 | # Note that $ac_compile itself does not contain backslashes and begins
|
---|
10216 | # with a dollar sign (not a hyphen), so the echo should work correctly.
|
---|
10217 | # The option is referenced via a variable to avoid confusing sed.
|
---|
10218 | lt_compile=`echo "$ac_compile" | $SED \
|
---|
10219 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
---|
10220 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
---|
10221 | -e 's:$: $lt_compiler_flag:'`
|
---|
10222 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
|
---|
10223 | (eval "$lt_compile" 2>conftest.err)
|
---|
10224 | ac_status=$?
|
---|
10225 | cat conftest.err >&5
|
---|
10226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10227 | if (exit $ac_status) && test -s "$ac_outfile"; then
|
---|
10228 | # The compiler can only warn and ignore the option if not recognized
|
---|
10229 | # So say no if there are warnings other than the usual output.
|
---|
10230 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
|
---|
10231 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
---|
10232 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
---|
10233 | lt_cv_prog_compiler_pic_works=yes
|
---|
10234 | fi
|
---|
10235 | fi
|
---|
10236 | $RM conftest*
|
---|
10237 | ;;
|
---|
10238 | esac
|
---|
10239 | fi
|
---|
10240 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
|
---|
10241 | printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
|
---|
10242 |
|
---|
10243 | if test yes = "$lt_cv_prog_compiler_pic_works"; then
|
---|
10244 | case $lt_prog_compiler_pic in
|
---|
10245 | "" | " "*) ;;
|
---|
10246 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
|
---|
10247 | esac
|
---|
10248 | else
|
---|
10249 | lt_prog_compiler_pic=
|
---|
10250 | lt_prog_compiler_can_build_shared=no
|
---|
10251 | fi
|
---|
10252 |
|
---|
10253 | fi
|
---|
10254 |
|
---|
10255 |
|
---|
10256 |
|
---|
10257 |
|
---|
10258 |
|
---|
10259 |
|
---|
10260 |
|
---|
10261 |
|
---|
10262 |
|
---|
10263 |
|
---|
10264 |
|
---|
10265 | #
|
---|
10266 | # Check to make sure the static flag actually works.
|
---|
10267 | #
|
---|
10268 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
|
---|
10269 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
|
---|
10270 | printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
|
---|
10271 | if test ${lt_cv_prog_compiler_static_works+y}
|
---|
10272 | then :
|
---|
10273 | printf %s "(cached) " >&6
|
---|
10274 | else case e in #(
|
---|
10275 | e) lt_cv_prog_compiler_static_works=no
|
---|
10276 | save_LDFLAGS=$LDFLAGS
|
---|
10277 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
|
---|
10278 | echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
---|
10279 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
---|
10280 | # The linker can only warn and ignore the option if not recognized
|
---|
10281 | # So say no if there are warnings
|
---|
10282 | if test -s conftest.err; then
|
---|
10283 | # Append any errors to the config.log.
|
---|
10284 | cat conftest.err 1>&5
|
---|
10285 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
|
---|
10286 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
---|
10287 | if diff conftest.exp conftest.er2 >/dev/null; then
|
---|
10288 | lt_cv_prog_compiler_static_works=yes
|
---|
10289 | fi
|
---|
10290 | else
|
---|
10291 | lt_cv_prog_compiler_static_works=yes
|
---|
10292 | fi
|
---|
10293 | fi
|
---|
10294 | $RM -r conftest*
|
---|
10295 | LDFLAGS=$save_LDFLAGS
|
---|
10296 | ;;
|
---|
10297 | esac
|
---|
10298 | fi
|
---|
10299 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
|
---|
10300 | printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
|
---|
10301 |
|
---|
10302 | if test yes = "$lt_cv_prog_compiler_static_works"; then
|
---|
10303 | :
|
---|
10304 | else
|
---|
10305 | lt_prog_compiler_static=
|
---|
10306 | fi
|
---|
10307 |
|
---|
10308 |
|
---|
10309 |
|
---|
10310 |
|
---|
10311 |
|
---|
10312 |
|
---|
10313 |
|
---|
10314 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
|
---|
10315 | printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
|
---|
10316 | if test ${lt_cv_prog_compiler_c_o+y}
|
---|
10317 | then :
|
---|
10318 | printf %s "(cached) " >&6
|
---|
10319 | else case e in #(
|
---|
10320 | e) lt_cv_prog_compiler_c_o=no
|
---|
10321 | $RM -r conftest 2>/dev/null
|
---|
10322 | mkdir conftest
|
---|
10323 | cd conftest
|
---|
10324 | mkdir out
|
---|
10325 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
---|
10326 |
|
---|
10327 | lt_compiler_flag="-o out/conftest2.$ac_objext"
|
---|
10328 | # Insert the option either (1) after the last *FLAGS variable, or
|
---|
10329 | # (2) before a word containing "conftest.", or (3) at the end.
|
---|
10330 | # Note that $ac_compile itself does not contain backslashes and begins
|
---|
10331 | # with a dollar sign (not a hyphen), so the echo should work correctly.
|
---|
10332 | lt_compile=`echo "$ac_compile" | $SED \
|
---|
10333 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
---|
10334 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
---|
10335 | -e 's:$: $lt_compiler_flag:'`
|
---|
10336 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
|
---|
10337 | (eval "$lt_compile" 2>out/conftest.err)
|
---|
10338 | ac_status=$?
|
---|
10339 | cat out/conftest.err >&5
|
---|
10340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10341 | if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
---|
10342 | then
|
---|
10343 | # The compiler can only warn and ignore the option if not recognized
|
---|
10344 | # So say no if there are warnings
|
---|
10345 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
|
---|
10346 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
---|
10347 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
---|
10348 | lt_cv_prog_compiler_c_o=yes
|
---|
10349 | fi
|
---|
10350 | fi
|
---|
10351 | chmod u+w . 2>&5
|
---|
10352 | $RM conftest*
|
---|
10353 | # SGI C++ compiler will create directory out/ii_files/ for
|
---|
10354 | # template instantiation
|
---|
10355 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
|
---|
10356 | $RM out/* && rmdir out
|
---|
10357 | cd ..
|
---|
10358 | $RM -r conftest
|
---|
10359 | $RM conftest*
|
---|
10360 | ;;
|
---|
10361 | esac
|
---|
10362 | fi
|
---|
10363 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
|
---|
10364 | printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
|
---|
10365 |
|
---|
10366 |
|
---|
10367 |
|
---|
10368 |
|
---|
10369 |
|
---|
10370 |
|
---|
10371 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
|
---|
10372 | printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
|
---|
10373 | if test ${lt_cv_prog_compiler_c_o+y}
|
---|
10374 | then :
|
---|
10375 | printf %s "(cached) " >&6
|
---|
10376 | else case e in #(
|
---|
10377 | e) lt_cv_prog_compiler_c_o=no
|
---|
10378 | $RM -r conftest 2>/dev/null
|
---|
10379 | mkdir conftest
|
---|
10380 | cd conftest
|
---|
10381 | mkdir out
|
---|
10382 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
---|
10383 |
|
---|
10384 | lt_compiler_flag="-o out/conftest2.$ac_objext"
|
---|
10385 | # Insert the option either (1) after the last *FLAGS variable, or
|
---|
10386 | # (2) before a word containing "conftest.", or (3) at the end.
|
---|
10387 | # Note that $ac_compile itself does not contain backslashes and begins
|
---|
10388 | # with a dollar sign (not a hyphen), so the echo should work correctly.
|
---|
10389 | lt_compile=`echo "$ac_compile" | $SED \
|
---|
10390 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
---|
10391 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
---|
10392 | -e 's:$: $lt_compiler_flag:'`
|
---|
10393 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
|
---|
10394 | (eval "$lt_compile" 2>out/conftest.err)
|
---|
10395 | ac_status=$?
|
---|
10396 | cat out/conftest.err >&5
|
---|
10397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10398 | if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
---|
10399 | then
|
---|
10400 | # The compiler can only warn and ignore the option if not recognized
|
---|
10401 | # So say no if there are warnings
|
---|
10402 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
|
---|
10403 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
---|
10404 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
---|
10405 | lt_cv_prog_compiler_c_o=yes
|
---|
10406 | fi
|
---|
10407 | fi
|
---|
10408 | chmod u+w . 2>&5
|
---|
10409 | $RM conftest*
|
---|
10410 | # SGI C++ compiler will create directory out/ii_files/ for
|
---|
10411 | # template instantiation
|
---|
10412 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
|
---|
10413 | $RM out/* && rmdir out
|
---|
10414 | cd ..
|
---|
10415 | $RM -r conftest
|
---|
10416 | $RM conftest*
|
---|
10417 | ;;
|
---|
10418 | esac
|
---|
10419 | fi
|
---|
10420 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
|
---|
10421 | printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
|
---|
10422 |
|
---|
10423 |
|
---|
10424 |
|
---|
10425 |
|
---|
10426 | hard_links=nottested
|
---|
10427 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
|
---|
10428 | # do not overwrite the value of need_locks provided by the user
|
---|
10429 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
|
---|
10430 | printf %s "checking if we can lock with hard links... " >&6; }
|
---|
10431 | hard_links=yes
|
---|
10432 | $RM conftest*
|
---|
10433 | ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
---|
10434 | touch conftest.a
|
---|
10435 | ln conftest.a conftest.b 2>&5 || hard_links=no
|
---|
10436 | ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
---|
10437 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
|
---|
10438 | printf "%s\n" "$hard_links" >&6; }
|
---|
10439 | if test no = "$hard_links"; then
|
---|
10440 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
|
---|
10441 | printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
|
---|
10442 | need_locks=warn
|
---|
10443 | fi
|
---|
10444 | else
|
---|
10445 | need_locks=no
|
---|
10446 | fi
|
---|
10447 |
|
---|
10448 |
|
---|
10449 |
|
---|
10450 |
|
---|
10451 |
|
---|
10452 |
|
---|
10453 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
|
---|
10454 | printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
|
---|
10455 |
|
---|
10456 | runpath_var=
|
---|
10457 | allow_undefined_flag=
|
---|
10458 | always_export_symbols=no
|
---|
10459 | archive_cmds=
|
---|
10460 | archive_expsym_cmds=
|
---|
10461 | compiler_needs_object=no
|
---|
10462 | enable_shared_with_static_runtimes=no
|
---|
10463 | export_dynamic_flag_spec=
|
---|
10464 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
---|
10465 | hardcode_automatic=no
|
---|
10466 | hardcode_direct=no
|
---|
10467 | hardcode_direct_absolute=no
|
---|
10468 | hardcode_libdir_flag_spec=
|
---|
10469 | hardcode_libdir_separator=
|
---|
10470 | hardcode_minus_L=no
|
---|
10471 | hardcode_shlibpath_var=unsupported
|
---|
10472 | inherit_rpath=no
|
---|
10473 | link_all_deplibs=unknown
|
---|
10474 | module_cmds=
|
---|
10475 | module_expsym_cmds=
|
---|
10476 | old_archive_from_new_cmds=
|
---|
10477 | old_archive_from_expsyms_cmds=
|
---|
10478 | thread_safe_flag_spec=
|
---|
10479 | whole_archive_flag_spec=
|
---|
10480 | # include_expsyms should be a list of space-separated symbols to be *always*
|
---|
10481 | # included in the symbol list
|
---|
10482 | include_expsyms=
|
---|
10483 | # exclude_expsyms can be an extended regexp of symbols to exclude
|
---|
10484 | # it will be wrapped by ' (' and ')$', so one must not match beginning or
|
---|
10485 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
|
---|
10486 | # as well as any symbol that contains 'd'.
|
---|
10487 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
|
---|
10488 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
|
---|
10489 | # platforms (ab)use it in PIC code, but their linkers get confused if
|
---|
10490 | # the symbol is explicitly referenced. Since portable code cannot
|
---|
10491 | # rely on this symbol name, it's probably fine to never include it in
|
---|
10492 | # preloaded symbol tables.
|
---|
10493 | # Exclude shared library initialization/finalization symbols.
|
---|
10494 | extract_expsyms_cmds=
|
---|
10495 |
|
---|
10496 | case $host_os in
|
---|
10497 | cygwin* | mingw* | pw32* | cegcc*)
|
---|
10498 | # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
|
---|
10499 | # When not using gcc, we currently assume that we are using
|
---|
10500 | # Microsoft Visual C++ or Intel C++ Compiler.
|
---|
10501 | if test yes != "$GCC"; then
|
---|
10502 | with_gnu_ld=no
|
---|
10503 | fi
|
---|
10504 | ;;
|
---|
10505 | interix*)
|
---|
10506 | # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
|
---|
10507 | with_gnu_ld=yes
|
---|
10508 | ;;
|
---|
10509 | openbsd* | bitrig*)
|
---|
10510 | with_gnu_ld=no
|
---|
10511 | ;;
|
---|
10512 | esac
|
---|
10513 |
|
---|
10514 | ld_shlibs=yes
|
---|
10515 |
|
---|
10516 | # On some targets, GNU ld is compatible enough with the native linker
|
---|
10517 | # that we're better off using the native interface for both.
|
---|
10518 | lt_use_gnu_ld_interface=no
|
---|
10519 | if test yes = "$with_gnu_ld"; then
|
---|
10520 | case $host_os in
|
---|
10521 | aix*)
|
---|
10522 | # The AIX port of GNU ld has always aspired to compatibility
|
---|
10523 | # with the native linker. However, as the warning in the GNU ld
|
---|
10524 | # block says, versions before 2.19.5* couldn't really create working
|
---|
10525 | # shared libraries, regardless of the interface used.
|
---|
10526 | case `$LD -v 2>&1` in
|
---|
10527 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
|
---|
10528 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
|
---|
10529 | *\ \(GNU\ Binutils\)\ [3-9]*) ;;
|
---|
10530 | *)
|
---|
10531 | lt_use_gnu_ld_interface=yes
|
---|
10532 | ;;
|
---|
10533 | esac
|
---|
10534 | ;;
|
---|
10535 | *)
|
---|
10536 | lt_use_gnu_ld_interface=yes
|
---|
10537 | ;;
|
---|
10538 | esac
|
---|
10539 | fi
|
---|
10540 |
|
---|
10541 | if test yes = "$lt_use_gnu_ld_interface"; then
|
---|
10542 | # If archive_cmds runs LD, not CC, wlarc should be empty
|
---|
10543 | wlarc='$wl'
|
---|
10544 |
|
---|
10545 | # Set some defaults for GNU ld with shared library support. These
|
---|
10546 | # are reset later if shared libraries are not supported. Putting them
|
---|
10547 | # here allows them to be overridden if necessary.
|
---|
10548 | runpath_var=LD_RUN_PATH
|
---|
10549 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
---|
10550 | export_dynamic_flag_spec='$wl--export-dynamic'
|
---|
10551 | # ancient GNU ld didn't support --whole-archive et. al.
|
---|
10552 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
|
---|
10553 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
|
---|
10554 | else
|
---|
10555 | whole_archive_flag_spec=
|
---|
10556 | fi
|
---|
10557 | supports_anon_versioning=no
|
---|
10558 | case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
|
---|
10559 | *GNU\ gold*) supports_anon_versioning=yes ;;
|
---|
10560 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
|
---|
10561 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
|
---|
10562 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
|
---|
10563 | *\ 2.11.*) ;; # other 2.11 versions
|
---|
10564 | *) supports_anon_versioning=yes ;;
|
---|
10565 | esac
|
---|
10566 |
|
---|
10567 | # See if GNU ld supports shared libraries.
|
---|
10568 | case $host_os in
|
---|
10569 | aix[3-9]*)
|
---|
10570 | # On AIX/PPC, the GNU linker is very broken
|
---|
10571 | if test ia64 != "$host_cpu"; then
|
---|
10572 | ld_shlibs=no
|
---|
10573 | cat <<_LT_EOF 1>&2
|
---|
10574 |
|
---|
10575 | *** Warning: the GNU linker, at least up to release 2.19, is reported
|
---|
10576 | *** to be unable to reliably create shared libraries on AIX.
|
---|
10577 | *** Therefore, libtool is disabling shared libraries support. If you
|
---|
10578 | *** really care for shared libraries, you may want to install binutils
|
---|
10579 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
|
---|
10580 | *** You will then need to restart the configuration process.
|
---|
10581 |
|
---|
10582 | _LT_EOF
|
---|
10583 | fi
|
---|
10584 | ;;
|
---|
10585 |
|
---|
10586 | amigaos*)
|
---|
10587 | case $host_cpu in
|
---|
10588 | powerpc)
|
---|
10589 | # see comment about AmigaOS4 .so support
|
---|
10590 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
10591 | archive_expsym_cmds=''
|
---|
10592 | ;;
|
---|
10593 | m68k)
|
---|
10594 | 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)'
|
---|
10595 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
10596 | hardcode_minus_L=yes
|
---|
10597 | ;;
|
---|
10598 | esac
|
---|
10599 | ;;
|
---|
10600 |
|
---|
10601 | beos*)
|
---|
10602 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
---|
10603 | allow_undefined_flag=unsupported
|
---|
10604 | # Joseph Beckenbach <[email protected]> says some releases of gcc
|
---|
10605 | # support --undefined. This deserves some investigation. FIXME
|
---|
10606 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
10607 | else
|
---|
10608 | ld_shlibs=no
|
---|
10609 | fi
|
---|
10610 | ;;
|
---|
10611 |
|
---|
10612 | cygwin* | mingw* | pw32* | cegcc*)
|
---|
10613 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
|
---|
10614 | # as there is no search path for DLLs.
|
---|
10615 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
10616 | export_dynamic_flag_spec='$wl--export-all-symbols'
|
---|
10617 | allow_undefined_flag=unsupported
|
---|
10618 | always_export_symbols=no
|
---|
10619 | enable_shared_with_static_runtimes=yes
|
---|
10620 | 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'
|
---|
10621 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
|
---|
10622 |
|
---|
10623 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
---|
10624 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
---|
10625 | # If the export-symbols file already is a .def file, use it as
|
---|
10626 | # is; otherwise, prepend EXPORTS...
|
---|
10627 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
|
---|
10628 | cp $export_symbols $output_objdir/$soname.def;
|
---|
10629 | else
|
---|
10630 | echo EXPORTS > $output_objdir/$soname.def;
|
---|
10631 | cat $export_symbols >> $output_objdir/$soname.def;
|
---|
10632 | fi~
|
---|
10633 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
---|
10634 | else
|
---|
10635 | ld_shlibs=no
|
---|
10636 | fi
|
---|
10637 | ;;
|
---|
10638 |
|
---|
10639 | haiku*)
|
---|
10640 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
10641 | link_all_deplibs=yes
|
---|
10642 | ;;
|
---|
10643 |
|
---|
10644 | os2*)
|
---|
10645 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
10646 | hardcode_minus_L=yes
|
---|
10647 | allow_undefined_flag=unsupported
|
---|
10648 | shrext_cmds=.dll
|
---|
10649 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
|
---|
10650 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
|
---|
10651 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
|
---|
10652 | $ECHO EXPORTS >> $output_objdir/$libname.def~
|
---|
10653 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
|
---|
10654 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
|
---|
10655 | emximp -o $lib $output_objdir/$libname.def'
|
---|
10656 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
|
---|
10657 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
|
---|
10658 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
|
---|
10659 | $ECHO EXPORTS >> $output_objdir/$libname.def~
|
---|
10660 | prefix_cmds="$SED"~
|
---|
10661 | if test EXPORTS = "`$SED 1q $export_symbols`"; then
|
---|
10662 | prefix_cmds="$prefix_cmds -e 1d";
|
---|
10663 | fi~
|
---|
10664 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
|
---|
10665 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
|
---|
10666 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
|
---|
10667 | emximp -o $lib $output_objdir/$libname.def'
|
---|
10668 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
|
---|
10669 | enable_shared_with_static_runtimes=yes
|
---|
10670 | file_list_spec='@'
|
---|
10671 | ;;
|
---|
10672 |
|
---|
10673 | interix[3-9]*)
|
---|
10674 | hardcode_direct=no
|
---|
10675 | hardcode_shlibpath_var=no
|
---|
10676 | hardcode_libdir_flag_spec='$wl-rpath,$libdir'
|
---|
10677 | export_dynamic_flag_spec='$wl-E'
|
---|
10678 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
---|
10679 | # Instead, shared libraries are loaded at an image base (0x10000000 by
|
---|
10680 | # default) and relocated if they conflict, which is a slow very memory
|
---|
10681 | # consuming and fragmenting process. To avoid this, we pick a random,
|
---|
10682 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
---|
10683 | # time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
---|
10684 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
---|
10685 | 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'
|
---|
10686 | ;;
|
---|
10687 |
|
---|
10688 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
|
---|
10689 | tmp_diet=no
|
---|
10690 | if test linux-dietlibc = "$host_os"; then
|
---|
10691 | case $cc_basename in
|
---|
10692 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
|
---|
10693 | esac
|
---|
10694 | fi
|
---|
10695 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
|
---|
10696 | && test no = "$tmp_diet"
|
---|
10697 | then
|
---|
10698 | tmp_addflag=' $pic_flag'
|
---|
10699 | tmp_sharedflag='-shared'
|
---|
10700 | case $cc_basename,$host_cpu in
|
---|
10701 | pgcc*) # Portland Group C compiler
|
---|
10702 | 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'
|
---|
10703 | tmp_addflag=' $pic_flag'
|
---|
10704 | ;;
|
---|
10705 | pgf77* | pgf90* | pgf95* | pgfortran*)
|
---|
10706 | # Portland Group f77 and f90 compilers
|
---|
10707 | 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'
|
---|
10708 | tmp_addflag=' $pic_flag -Mnomain' ;;
|
---|
10709 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
---|
10710 | tmp_addflag=' -i_dynamic' ;;
|
---|
10711 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
|
---|
10712 | tmp_addflag=' -i_dynamic -nofor_main' ;;
|
---|
10713 | ifc* | ifort*) # Intel Fortran compiler
|
---|
10714 | tmp_addflag=' -nofor_main' ;;
|
---|
10715 | lf95*) # Lahey Fortran 8.1
|
---|
10716 | whole_archive_flag_spec=
|
---|
10717 | tmp_sharedflag='--shared' ;;
|
---|
10718 | nagfor*) # NAGFOR 5.3
|
---|
10719 | tmp_sharedflag='-Wl,-shared' ;;
|
---|
10720 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
|
---|
10721 | tmp_sharedflag='-qmkshrobj'
|
---|
10722 | tmp_addflag= ;;
|
---|
10723 | nvcc*) # Cuda Compiler Driver 2.2
|
---|
10724 | 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'
|
---|
10725 | compiler_needs_object=yes
|
---|
10726 | ;;
|
---|
10727 | esac
|
---|
10728 | case `$CC -V 2>&1 | $SED 5q` in
|
---|
10729 | *Sun\ C*) # Sun C 5.9
|
---|
10730 | 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'
|
---|
10731 | compiler_needs_object=yes
|
---|
10732 | tmp_sharedflag='-G' ;;
|
---|
10733 | *Sun\ F*) # Sun Fortran 8.3
|
---|
10734 | tmp_sharedflag='-G' ;;
|
---|
10735 | esac
|
---|
10736 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
10737 |
|
---|
10738 | if test yes = "$supports_anon_versioning"; then
|
---|
10739 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
|
---|
10740 | cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
---|
10741 | echo "local: *; };" >> $output_objdir/$libname.ver~
|
---|
10742 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
|
---|
10743 | fi
|
---|
10744 |
|
---|
10745 | case $cc_basename in
|
---|
10746 | tcc*)
|
---|
10747 | export_dynamic_flag_spec='-rdynamic'
|
---|
10748 | ;;
|
---|
10749 | xlf* | bgf* | bgxlf* | mpixlf*)
|
---|
10750 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
|
---|
10751 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
|
---|
10752 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
---|
10753 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
|
---|
10754 | if test yes = "$supports_anon_versioning"; then
|
---|
10755 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
|
---|
10756 | cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
---|
10757 | echo "local: *; };" >> $output_objdir/$libname.ver~
|
---|
10758 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
---|
10759 | fi
|
---|
10760 | ;;
|
---|
10761 | esac
|
---|
10762 | else
|
---|
10763 | ld_shlibs=no
|
---|
10764 | fi
|
---|
10765 | ;;
|
---|
10766 |
|
---|
10767 | netbsd*)
|
---|
10768 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
---|
10769 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
---|
10770 | wlarc=
|
---|
10771 | else
|
---|
10772 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
10773 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
|
---|
10774 | fi
|
---|
10775 | ;;
|
---|
10776 |
|
---|
10777 | solaris*)
|
---|
10778 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
|
---|
10779 | ld_shlibs=no
|
---|
10780 | cat <<_LT_EOF 1>&2
|
---|
10781 |
|
---|
10782 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably
|
---|
10783 | *** create shared libraries on Solaris systems. Therefore, libtool
|
---|
10784 | *** is disabling shared libraries support. We urge you to upgrade GNU
|
---|
10785 | *** binutils to release 2.9.1 or newer. Another option is to modify
|
---|
10786 | *** your PATH or compiler configuration so that the native linker is
|
---|
10787 | *** used, and then restart.
|
---|
10788 |
|
---|
10789 | _LT_EOF
|
---|
10790 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
---|
10791 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
10792 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
|
---|
10793 | else
|
---|
10794 | ld_shlibs=no
|
---|
10795 | fi
|
---|
10796 | ;;
|
---|
10797 |
|
---|
10798 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
|
---|
10799 | case `$LD -v 2>&1` in
|
---|
10800 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
|
---|
10801 | ld_shlibs=no
|
---|
10802 | cat <<_LT_EOF 1>&2
|
---|
10803 |
|
---|
10804 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
|
---|
10805 | *** reliably create shared libraries on SCO systems. Therefore, libtool
|
---|
10806 | *** is disabling shared libraries support. We urge you to upgrade GNU
|
---|
10807 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
|
---|
10808 | *** your PATH or compiler configuration so that the native linker is
|
---|
10809 | *** used, and then restart.
|
---|
10810 |
|
---|
10811 | _LT_EOF
|
---|
10812 | ;;
|
---|
10813 | *)
|
---|
10814 | # For security reasons, it is highly recommended that you always
|
---|
10815 | # use absolute paths for naming shared libraries, and exclude the
|
---|
10816 | # DT_RUNPATH tag from executables and libraries. But doing so
|
---|
10817 | # requires that you compile everything twice, which is a pain.
|
---|
10818 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
---|
10819 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
---|
10820 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
10821 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
|
---|
10822 | else
|
---|
10823 | ld_shlibs=no
|
---|
10824 | fi
|
---|
10825 | ;;
|
---|
10826 | esac
|
---|
10827 | ;;
|
---|
10828 |
|
---|
10829 | sunos4*)
|
---|
10830 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
---|
10831 | wlarc=
|
---|
10832 | hardcode_direct=yes
|
---|
10833 | hardcode_shlibpath_var=no
|
---|
10834 | ;;
|
---|
10835 |
|
---|
10836 | *)
|
---|
10837 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
---|
10838 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
10839 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
|
---|
10840 | else
|
---|
10841 | ld_shlibs=no
|
---|
10842 | fi
|
---|
10843 | ;;
|
---|
10844 | esac
|
---|
10845 |
|
---|
10846 | if test no = "$ld_shlibs"; then
|
---|
10847 | runpath_var=
|
---|
10848 | hardcode_libdir_flag_spec=
|
---|
10849 | export_dynamic_flag_spec=
|
---|
10850 | whole_archive_flag_spec=
|
---|
10851 | fi
|
---|
10852 | else
|
---|
10853 | # PORTME fill in a description of your system's linker (not GNU ld)
|
---|
10854 | case $host_os in
|
---|
10855 | aix3*)
|
---|
10856 | allow_undefined_flag=unsupported
|
---|
10857 | always_export_symbols=yes
|
---|
10858 | 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'
|
---|
10859 | # Note: this linker hardcodes the directories in LIBPATH if there
|
---|
10860 | # are no directories specified by -L.
|
---|
10861 | hardcode_minus_L=yes
|
---|
10862 | if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
|
---|
10863 | # Neither direct hardcoding nor static linking is supported with a
|
---|
10864 | # broken collect2.
|
---|
10865 | hardcode_direct=unsupported
|
---|
10866 | fi
|
---|
10867 | ;;
|
---|
10868 |
|
---|
10869 | aix[4-9]*)
|
---|
10870 | if test ia64 = "$host_cpu"; then
|
---|
10871 | # On IA64, the linker does run time linking by default, so we don't
|
---|
10872 | # have to do anything special.
|
---|
10873 | aix_use_runtimelinking=no
|
---|
10874 | exp_sym_flag='-Bexport'
|
---|
10875 | no_entry_flag=
|
---|
10876 | else
|
---|
10877 | # If we're using GNU nm, then we don't want the "-C" option.
|
---|
10878 | # -C means demangle to GNU nm, but means don't demangle to AIX nm.
|
---|
10879 | # Without the "-l" option, or with the "-B" option, AIX nm treats
|
---|
10880 | # weak defined symbols like other global defined symbols, whereas
|
---|
10881 | # GNU nm marks them as "W".
|
---|
10882 | # While the 'weak' keyword is ignored in the Export File, we need
|
---|
10883 | # it in the Import File for the 'aix-soname' feature, so we have
|
---|
10884 | # to replace the "-B" option with "-P" for AIX nm.
|
---|
10885 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
|
---|
10886 | 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'
|
---|
10887 | else
|
---|
10888 | 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 == "L") || (\$ 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'
|
---|
10889 | fi
|
---|
10890 | aix_use_runtimelinking=no
|
---|
10891 |
|
---|
10892 | # Test if we are trying to use run time linking or normal
|
---|
10893 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
---|
10894 | # have runtime linking enabled, and use it for executables.
|
---|
10895 | # For shared libraries, we enable/disable runtime linking
|
---|
10896 | # depending on the kind of the shared library created -
|
---|
10897 | # when "with_aix_soname,aix_use_runtimelinking" is:
|
---|
10898 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
|
---|
10899 | # "aix,yes" lib.so shared, rtl:yes, for executables
|
---|
10900 | # lib.a static archive
|
---|
10901 | # "both,no" lib.so.V(shr.o) shared, rtl:yes
|
---|
10902 | # lib.a(lib.so.V) shared, rtl:no, for executables
|
---|
10903 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
|
---|
10904 | # lib.a(lib.so.V) shared, rtl:no
|
---|
10905 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
|
---|
10906 | # lib.a static archive
|
---|
10907 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
|
---|
10908 | for ld_flag in $LDFLAGS; do
|
---|
10909 | if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
|
---|
10910 | aix_use_runtimelinking=yes
|
---|
10911 | break
|
---|
10912 | fi
|
---|
10913 | done
|
---|
10914 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
|
---|
10915 | # With aix-soname=svr4, we create the lib.so.V shared archives only,
|
---|
10916 | # so we don't have lib.a shared libs to link our executables.
|
---|
10917 | # We have to force runtime linking in this case.
|
---|
10918 | aix_use_runtimelinking=yes
|
---|
10919 | LDFLAGS="$LDFLAGS -Wl,-brtl"
|
---|
10920 | fi
|
---|
10921 | ;;
|
---|
10922 | esac
|
---|
10923 |
|
---|
10924 | exp_sym_flag='-bexport'
|
---|
10925 | no_entry_flag='-bnoentry'
|
---|
10926 | fi
|
---|
10927 |
|
---|
10928 | # When large executables or shared objects are built, AIX ld can
|
---|
10929 | # have problems creating the table of contents. If linking a library
|
---|
10930 | # or program results in "error TOC overflow" add -mminimal-toc to
|
---|
10931 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
---|
10932 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
---|
10933 |
|
---|
10934 | archive_cmds=''
|
---|
10935 | hardcode_direct=yes
|
---|
10936 | hardcode_direct_absolute=yes
|
---|
10937 | hardcode_libdir_separator=':'
|
---|
10938 | link_all_deplibs=yes
|
---|
10939 | file_list_spec='$wl-f,'
|
---|
10940 | case $with_aix_soname,$aix_use_runtimelinking in
|
---|
10941 | aix,*) ;; # traditional, no import file
|
---|
10942 | svr4,* | *,yes) # use import file
|
---|
10943 | # The Import File defines what to hardcode.
|
---|
10944 | hardcode_direct=no
|
---|
10945 | hardcode_direct_absolute=no
|
---|
10946 | ;;
|
---|
10947 | esac
|
---|
10948 |
|
---|
10949 | if test yes = "$GCC"; then
|
---|
10950 | case $host_os in aix4.[012]|aix4.[012].*)
|
---|
10951 | # We only want to do this on AIX 4.2 and lower, the check
|
---|
10952 | # below for broken collect2 doesn't work under 4.3+
|
---|
10953 | collect2name=`$CC -print-prog-name=collect2`
|
---|
10954 | if test -f "$collect2name" &&
|
---|
10955 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null
|
---|
10956 | then
|
---|
10957 | # We have reworked collect2
|
---|
10958 | :
|
---|
10959 | else
|
---|
10960 | # We have old collect2
|
---|
10961 | hardcode_direct=unsupported
|
---|
10962 | # It fails to find uninstalled libraries when the uninstalled
|
---|
10963 | # path is not listed in the libpath. Setting hardcode_minus_L
|
---|
10964 | # to unsupported forces relinking
|
---|
10965 | hardcode_minus_L=yes
|
---|
10966 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
10967 | hardcode_libdir_separator=
|
---|
10968 | fi
|
---|
10969 | ;;
|
---|
10970 | esac
|
---|
10971 | shared_flag='-shared'
|
---|
10972 | if test yes = "$aix_use_runtimelinking"; then
|
---|
10973 | shared_flag="$shared_flag "'$wl-G'
|
---|
10974 | fi
|
---|
10975 | # Need to ensure runtime linking is disabled for the traditional
|
---|
10976 | # shared library, or the linker may eventually find shared libraries
|
---|
10977 | # /with/ Import File - we do not want to mix them.
|
---|
10978 | shared_flag_aix='-shared'
|
---|
10979 | shared_flag_svr4='-shared $wl-G'
|
---|
10980 | else
|
---|
10981 | # not using gcc
|
---|
10982 | if test ia64 = "$host_cpu"; then
|
---|
10983 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
---|
10984 | # chokes on -Wl,-G. The following line is correct:
|
---|
10985 | shared_flag='-G'
|
---|
10986 | else
|
---|
10987 | if test yes = "$aix_use_runtimelinking"; then
|
---|
10988 | shared_flag='$wl-G'
|
---|
10989 | else
|
---|
10990 | shared_flag='$wl-bM:SRE'
|
---|
10991 | fi
|
---|
10992 | shared_flag_aix='$wl-bM:SRE'
|
---|
10993 | shared_flag_svr4='$wl-G'
|
---|
10994 | fi
|
---|
10995 | fi
|
---|
10996 |
|
---|
10997 | export_dynamic_flag_spec='$wl-bexpall'
|
---|
10998 | # It seems that -bexpall does not export symbols beginning with
|
---|
10999 | # underscore (_), so it is better to generate a list of symbols to export.
|
---|
11000 | always_export_symbols=yes
|
---|
11001 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
|
---|
11002 | # Warning - without using the other runtime loading flags (-brtl),
|
---|
11003 | # -berok will link without error, but may produce a broken library.
|
---|
11004 | allow_undefined_flag='-berok'
|
---|
11005 | # Determine the default libpath from the value encoded in an
|
---|
11006 | # empty executable.
|
---|
11007 | if test set = "${lt_cv_aix_libpath+set}"; then
|
---|
11008 | aix_libpath=$lt_cv_aix_libpath
|
---|
11009 | else
|
---|
11010 | if test ${lt_cv_aix_libpath_+y}
|
---|
11011 | then :
|
---|
11012 | printf %s "(cached) " >&6
|
---|
11013 | else case e in #(
|
---|
11014 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
11015 | /* end confdefs.h. */
|
---|
11016 |
|
---|
11017 | int
|
---|
11018 | main (void)
|
---|
11019 | {
|
---|
11020 |
|
---|
11021 | ;
|
---|
11022 | return 0;
|
---|
11023 | }
|
---|
11024 | _ACEOF
|
---|
11025 | if ac_fn_c_try_link "$LINENO"
|
---|
11026 | then :
|
---|
11027 |
|
---|
11028 | lt_aix_libpath_sed='
|
---|
11029 | /Import File Strings/,/^$/ {
|
---|
11030 | /^0/ {
|
---|
11031 | s/^0 *\([^ ]*\) *$/\1/
|
---|
11032 | p
|
---|
11033 | }
|
---|
11034 | }'
|
---|
11035 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
---|
11036 | # Check for a 64-bit object if we didn't find anything.
|
---|
11037 | if test -z "$lt_cv_aix_libpath_"; then
|
---|
11038 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
---|
11039 | fi
|
---|
11040 | fi
|
---|
11041 | rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
---|
11042 | conftest$ac_exeext conftest.$ac_ext
|
---|
11043 | if test -z "$lt_cv_aix_libpath_"; then
|
---|
11044 | lt_cv_aix_libpath_=/usr/lib:/lib
|
---|
11045 | fi
|
---|
11046 | ;;
|
---|
11047 | esac
|
---|
11048 | fi
|
---|
11049 |
|
---|
11050 | aix_libpath=$lt_cv_aix_libpath_
|
---|
11051 | fi
|
---|
11052 |
|
---|
11053 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
|
---|
11054 | 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
|
---|
11055 | else
|
---|
11056 | if test ia64 = "$host_cpu"; then
|
---|
11057 | hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
|
---|
11058 | allow_undefined_flag="-z nodefs"
|
---|
11059 | 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"
|
---|
11060 | else
|
---|
11061 | # Determine the default libpath from the value encoded in an
|
---|
11062 | # empty executable.
|
---|
11063 | if test set = "${lt_cv_aix_libpath+set}"; then
|
---|
11064 | aix_libpath=$lt_cv_aix_libpath
|
---|
11065 | else
|
---|
11066 | if test ${lt_cv_aix_libpath_+y}
|
---|
11067 | then :
|
---|
11068 | printf %s "(cached) " >&6
|
---|
11069 | else case e in #(
|
---|
11070 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
11071 | /* end confdefs.h. */
|
---|
11072 |
|
---|
11073 | int
|
---|
11074 | main (void)
|
---|
11075 | {
|
---|
11076 |
|
---|
11077 | ;
|
---|
11078 | return 0;
|
---|
11079 | }
|
---|
11080 | _ACEOF
|
---|
11081 | if ac_fn_c_try_link "$LINENO"
|
---|
11082 | then :
|
---|
11083 |
|
---|
11084 | lt_aix_libpath_sed='
|
---|
11085 | /Import File Strings/,/^$/ {
|
---|
11086 | /^0/ {
|
---|
11087 | s/^0 *\([^ ]*\) *$/\1/
|
---|
11088 | p
|
---|
11089 | }
|
---|
11090 | }'
|
---|
11091 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
---|
11092 | # Check for a 64-bit object if we didn't find anything.
|
---|
11093 | if test -z "$lt_cv_aix_libpath_"; then
|
---|
11094 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
---|
11095 | fi
|
---|
11096 | fi
|
---|
11097 | rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
---|
11098 | conftest$ac_exeext conftest.$ac_ext
|
---|
11099 | if test -z "$lt_cv_aix_libpath_"; then
|
---|
11100 | lt_cv_aix_libpath_=/usr/lib:/lib
|
---|
11101 | fi
|
---|
11102 | ;;
|
---|
11103 | esac
|
---|
11104 | fi
|
---|
11105 |
|
---|
11106 | aix_libpath=$lt_cv_aix_libpath_
|
---|
11107 | fi
|
---|
11108 |
|
---|
11109 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
|
---|
11110 | # Warning - without using the other run time loading flags,
|
---|
11111 | # -berok will link without error, but may produce a broken library.
|
---|
11112 | no_undefined_flag=' $wl-bernotok'
|
---|
11113 | allow_undefined_flag=' $wl-berok'
|
---|
11114 | if test yes = "$with_gnu_ld"; then
|
---|
11115 | # We only use this code for GNU lds that support --whole-archive.
|
---|
11116 | whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
|
---|
11117 | else
|
---|
11118 | # Exported symbols can be pulled into shared objects from archives
|
---|
11119 | whole_archive_flag_spec='$convenience'
|
---|
11120 | fi
|
---|
11121 | archive_cmds_need_lc=yes
|
---|
11122 | archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
|
---|
11123 | # -brtl affects multiple linker settings, -berok does not and is overridden later
|
---|
11124 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
|
---|
11125 | if test svr4 != "$with_aix_soname"; then
|
---|
11126 | # This is similar to how AIX traditionally builds its shared libraries.
|
---|
11127 | 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'
|
---|
11128 | fi
|
---|
11129 | if test aix != "$with_aix_soname"; then
|
---|
11130 | 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'
|
---|
11131 | else
|
---|
11132 | # used by -dlpreopen to get the symbols
|
---|
11133 | archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
|
---|
11134 | fi
|
---|
11135 | archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
|
---|
11136 | fi
|
---|
11137 | fi
|
---|
11138 | ;;
|
---|
11139 |
|
---|
11140 | amigaos*)
|
---|
11141 | case $host_cpu in
|
---|
11142 | powerpc)
|
---|
11143 | # see comment about AmigaOS4 .so support
|
---|
11144 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
11145 | archive_expsym_cmds=''
|
---|
11146 | ;;
|
---|
11147 | m68k)
|
---|
11148 | 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)'
|
---|
11149 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
11150 | hardcode_minus_L=yes
|
---|
11151 | ;;
|
---|
11152 | esac
|
---|
11153 | ;;
|
---|
11154 |
|
---|
11155 | bsdi[45]*)
|
---|
11156 | export_dynamic_flag_spec=-rdynamic
|
---|
11157 | ;;
|
---|
11158 |
|
---|
11159 | cygwin* | mingw* | pw32* | cegcc*)
|
---|
11160 | # When not using gcc, we currently assume that we are using
|
---|
11161 | # Microsoft Visual C++ or Intel C++ Compiler.
|
---|
11162 | # hardcode_libdir_flag_spec is actually meaningless, as there is
|
---|
11163 | # no search path for DLLs.
|
---|
11164 | case $cc_basename in
|
---|
11165 | cl* | icl*)
|
---|
11166 | # Native MSVC or ICC
|
---|
11167 | hardcode_libdir_flag_spec=' '
|
---|
11168 | allow_undefined_flag=unsupported
|
---|
11169 | always_export_symbols=yes
|
---|
11170 | file_list_spec='@'
|
---|
11171 | # Tell ltmain to make .lib files, not .a files.
|
---|
11172 | libext=lib
|
---|
11173 | # Tell ltmain to make .dll files, not .so files.
|
---|
11174 | shrext_cmds=.dll
|
---|
11175 | # FIXME: Setting linknames here is a bad hack.
|
---|
11176 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
|
---|
11177 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
|
---|
11178 | cp "$export_symbols" "$output_objdir/$soname.def";
|
---|
11179 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
|
---|
11180 | else
|
---|
11181 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
|
---|
11182 | fi~
|
---|
11183 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
|
---|
11184 | linknames='
|
---|
11185 | # The linker will not automatically build a static lib if we build a DLL.
|
---|
11186 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
|
---|
11187 | enable_shared_with_static_runtimes=yes
|
---|
11188 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
|
---|
11189 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
---|
11190 | # Don't use ranlib
|
---|
11191 | old_postinstall_cmds='chmod 644 $oldlib'
|
---|
11192 | postlink_cmds='lt_outputfile="@OUTPUT@"~
|
---|
11193 | lt_tool_outputfile="@TOOL_OUTPUT@"~
|
---|
11194 | case $lt_outputfile in
|
---|
11195 | *.exe|*.EXE) ;;
|
---|
11196 | *)
|
---|
11197 | lt_outputfile=$lt_outputfile.exe
|
---|
11198 | lt_tool_outputfile=$lt_tool_outputfile.exe
|
---|
11199 | ;;
|
---|
11200 | esac~
|
---|
11201 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
|
---|
11202 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
|
---|
11203 | $RM "$lt_outputfile.manifest";
|
---|
11204 | fi'
|
---|
11205 | ;;
|
---|
11206 | *)
|
---|
11207 | # Assume MSVC and ICC wrapper
|
---|
11208 | hardcode_libdir_flag_spec=' '
|
---|
11209 | allow_undefined_flag=unsupported
|
---|
11210 | # Tell ltmain to make .lib files, not .a files.
|
---|
11211 | libext=lib
|
---|
11212 | # Tell ltmain to make .dll files, not .so files.
|
---|
11213 | shrext_cmds=.dll
|
---|
11214 | # FIXME: Setting linknames here is a bad hack.
|
---|
11215 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
|
---|
11216 | # The linker will automatically build a .lib file if we build a DLL.
|
---|
11217 | old_archive_from_new_cmds='true'
|
---|
11218 | # FIXME: Should let the user specify the lib program.
|
---|
11219 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
---|
11220 | enable_shared_with_static_runtimes=yes
|
---|
11221 | ;;
|
---|
11222 | esac
|
---|
11223 | ;;
|
---|
11224 |
|
---|
11225 | darwin* | rhapsody*)
|
---|
11226 |
|
---|
11227 |
|
---|
11228 | archive_cmds_need_lc=no
|
---|
11229 | hardcode_direct=no
|
---|
11230 | hardcode_automatic=yes
|
---|
11231 | hardcode_shlibpath_var=unsupported
|
---|
11232 | if test yes = "$lt_cv_ld_force_load"; then
|
---|
11233 | 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\"`'
|
---|
11234 |
|
---|
11235 | else
|
---|
11236 | whole_archive_flag_spec=''
|
---|
11237 | fi
|
---|
11238 | link_all_deplibs=yes
|
---|
11239 | allow_undefined_flag=$_lt_dar_allow_undefined
|
---|
11240 | case $cc_basename in
|
---|
11241 | ifort*|nagfor*) _lt_dar_can_shared=yes ;;
|
---|
11242 | *) _lt_dar_can_shared=$GCC ;;
|
---|
11243 | esac
|
---|
11244 | if test yes = "$_lt_dar_can_shared"; then
|
---|
11245 | output_verbose_link_cmd=func_echo_all
|
---|
11246 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
|
---|
11247 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
|
---|
11248 | 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"
|
---|
11249 | 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"
|
---|
11250 |
|
---|
11251 | else
|
---|
11252 | ld_shlibs=no
|
---|
11253 | fi
|
---|
11254 |
|
---|
11255 | ;;
|
---|
11256 |
|
---|
11257 | dgux*)
|
---|
11258 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
11259 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
11260 | hardcode_shlibpath_var=no
|
---|
11261 | ;;
|
---|
11262 |
|
---|
11263 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
---|
11264 | # support. Future versions do this automatically, but an explicit c++rt0.o
|
---|
11265 | # does not break anything, and helps significantly (at the cost of a little
|
---|
11266 | # extra space).
|
---|
11267 | freebsd2.2*)
|
---|
11268 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
|
---|
11269 | hardcode_libdir_flag_spec='-R$libdir'
|
---|
11270 | hardcode_direct=yes
|
---|
11271 | hardcode_shlibpath_var=no
|
---|
11272 | ;;
|
---|
11273 |
|
---|
11274 | # Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
---|
11275 | freebsd2.*)
|
---|
11276 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
---|
11277 | hardcode_direct=yes
|
---|
11278 | hardcode_minus_L=yes
|
---|
11279 | hardcode_shlibpath_var=no
|
---|
11280 | ;;
|
---|
11281 |
|
---|
11282 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
---|
11283 | freebsd* | dragonfly* | midnightbsd*)
|
---|
11284 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11285 | hardcode_libdir_flag_spec='-R$libdir'
|
---|
11286 | hardcode_direct=yes
|
---|
11287 | hardcode_shlibpath_var=no
|
---|
11288 | ;;
|
---|
11289 |
|
---|
11290 | hpux9*)
|
---|
11291 | if test yes = "$GCC"; then
|
---|
11292 | 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'
|
---|
11293 | else
|
---|
11294 | 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'
|
---|
11295 | fi
|
---|
11296 | hardcode_libdir_flag_spec='$wl+b $wl$libdir'
|
---|
11297 | hardcode_libdir_separator=:
|
---|
11298 | hardcode_direct=yes
|
---|
11299 |
|
---|
11300 | # hardcode_minus_L: Not really in the search PATH,
|
---|
11301 | # but as the default location of the library.
|
---|
11302 | hardcode_minus_L=yes
|
---|
11303 | export_dynamic_flag_spec='$wl-E'
|
---|
11304 | ;;
|
---|
11305 |
|
---|
11306 | hpux10*)
|
---|
11307 | if test yes,no = "$GCC,$with_gnu_ld"; then
|
---|
11308 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11309 | else
|
---|
11310 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
---|
11311 | fi
|
---|
11312 | if test no = "$with_gnu_ld"; then
|
---|
11313 | hardcode_libdir_flag_spec='$wl+b $wl$libdir'
|
---|
11314 | hardcode_libdir_separator=:
|
---|
11315 | hardcode_direct=yes
|
---|
11316 | hardcode_direct_absolute=yes
|
---|
11317 | export_dynamic_flag_spec='$wl-E'
|
---|
11318 | # hardcode_minus_L: Not really in the search PATH,
|
---|
11319 | # but as the default location of the library.
|
---|
11320 | hardcode_minus_L=yes
|
---|
11321 | fi
|
---|
11322 | ;;
|
---|
11323 |
|
---|
11324 | hpux11*)
|
---|
11325 | if test yes,no = "$GCC,$with_gnu_ld"; then
|
---|
11326 | case $host_cpu in
|
---|
11327 | hppa*64*)
|
---|
11328 | archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11329 | ;;
|
---|
11330 | ia64*)
|
---|
11331 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11332 | ;;
|
---|
11333 | *)
|
---|
11334 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11335 | ;;
|
---|
11336 | esac
|
---|
11337 | else
|
---|
11338 | case $host_cpu in
|
---|
11339 | hppa*64*)
|
---|
11340 | archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11341 | ;;
|
---|
11342 | ia64*)
|
---|
11343 | archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11344 | ;;
|
---|
11345 | *)
|
---|
11346 |
|
---|
11347 | # Older versions of the 11.00 compiler do not understand -b yet
|
---|
11348 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
|
---|
11349 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
|
---|
11350 | printf %s "checking if $CC understands -b... " >&6; }
|
---|
11351 | if test ${lt_cv_prog_compiler__b+y}
|
---|
11352 | then :
|
---|
11353 | printf %s "(cached) " >&6
|
---|
11354 | else case e in #(
|
---|
11355 | e) lt_cv_prog_compiler__b=no
|
---|
11356 | save_LDFLAGS=$LDFLAGS
|
---|
11357 | LDFLAGS="$LDFLAGS -b"
|
---|
11358 | echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
---|
11359 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
---|
11360 | # The linker can only warn and ignore the option if not recognized
|
---|
11361 | # So say no if there are warnings
|
---|
11362 | if test -s conftest.err; then
|
---|
11363 | # Append any errors to the config.log.
|
---|
11364 | cat conftest.err 1>&5
|
---|
11365 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
|
---|
11366 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
---|
11367 | if diff conftest.exp conftest.er2 >/dev/null; then
|
---|
11368 | lt_cv_prog_compiler__b=yes
|
---|
11369 | fi
|
---|
11370 | else
|
---|
11371 | lt_cv_prog_compiler__b=yes
|
---|
11372 | fi
|
---|
11373 | fi
|
---|
11374 | $RM -r conftest*
|
---|
11375 | LDFLAGS=$save_LDFLAGS
|
---|
11376 | ;;
|
---|
11377 | esac
|
---|
11378 | fi
|
---|
11379 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
|
---|
11380 | printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
|
---|
11381 |
|
---|
11382 | if test yes = "$lt_cv_prog_compiler__b"; then
|
---|
11383 | archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11384 | else
|
---|
11385 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
---|
11386 | fi
|
---|
11387 |
|
---|
11388 | ;;
|
---|
11389 | esac
|
---|
11390 | fi
|
---|
11391 | if test no = "$with_gnu_ld"; then
|
---|
11392 | hardcode_libdir_flag_spec='$wl+b $wl$libdir'
|
---|
11393 | hardcode_libdir_separator=:
|
---|
11394 |
|
---|
11395 | case $host_cpu in
|
---|
11396 | hppa*64*|ia64*)
|
---|
11397 | hardcode_direct=no
|
---|
11398 | hardcode_shlibpath_var=no
|
---|
11399 | ;;
|
---|
11400 | *)
|
---|
11401 | hardcode_direct=yes
|
---|
11402 | hardcode_direct_absolute=yes
|
---|
11403 | export_dynamic_flag_spec='$wl-E'
|
---|
11404 |
|
---|
11405 | # hardcode_minus_L: Not really in the search PATH,
|
---|
11406 | # but as the default location of the library.
|
---|
11407 | hardcode_minus_L=yes
|
---|
11408 | ;;
|
---|
11409 | esac
|
---|
11410 | fi
|
---|
11411 | ;;
|
---|
11412 |
|
---|
11413 | irix5* | irix6* | nonstopux*)
|
---|
11414 | if test yes = "$GCC"; then
|
---|
11415 | 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'
|
---|
11416 | # Try to use the -exported_symbol ld option, if it does not
|
---|
11417 | # work, assume that -exports_file does not work either and
|
---|
11418 | # implicitly export all symbols.
|
---|
11419 | # This should be the same for all languages, so no per-tag cache variable.
|
---|
11420 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
|
---|
11421 | printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
|
---|
11422 | if test ${lt_cv_irix_exported_symbol+y}
|
---|
11423 | then :
|
---|
11424 | printf %s "(cached) " >&6
|
---|
11425 | else case e in #(
|
---|
11426 | e) save_LDFLAGS=$LDFLAGS
|
---|
11427 | LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
|
---|
11428 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
11429 | /* end confdefs.h. */
|
---|
11430 | int foo (void) { return 0; }
|
---|
11431 | _ACEOF
|
---|
11432 | if ac_fn_c_try_link "$LINENO"
|
---|
11433 | then :
|
---|
11434 | lt_cv_irix_exported_symbol=yes
|
---|
11435 | else case e in #(
|
---|
11436 | e) lt_cv_irix_exported_symbol=no ;;
|
---|
11437 | esac
|
---|
11438 | fi
|
---|
11439 | rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
---|
11440 | conftest$ac_exeext conftest.$ac_ext
|
---|
11441 | LDFLAGS=$save_LDFLAGS ;;
|
---|
11442 | esac
|
---|
11443 | fi
|
---|
11444 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
|
---|
11445 | printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
|
---|
11446 | if test yes = "$lt_cv_irix_exported_symbol"; then
|
---|
11447 | 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'
|
---|
11448 | fi
|
---|
11449 | else
|
---|
11450 | 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'
|
---|
11451 | 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'
|
---|
11452 | fi
|
---|
11453 | archive_cmds_need_lc='no'
|
---|
11454 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
---|
11455 | hardcode_libdir_separator=:
|
---|
11456 | inherit_rpath=yes
|
---|
11457 | link_all_deplibs=yes
|
---|
11458 | ;;
|
---|
11459 |
|
---|
11460 | linux*)
|
---|
11461 | case $cc_basename in
|
---|
11462 | tcc*)
|
---|
11463 | # Fabrice Bellard et al's Tiny C Compiler
|
---|
11464 | ld_shlibs=yes
|
---|
11465 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11466 | ;;
|
---|
11467 | esac
|
---|
11468 | ;;
|
---|
11469 |
|
---|
11470 | netbsd*)
|
---|
11471 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
---|
11472 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
---|
11473 | else
|
---|
11474 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
|
---|
11475 | fi
|
---|
11476 | hardcode_libdir_flag_spec='-R$libdir'
|
---|
11477 | hardcode_direct=yes
|
---|
11478 | hardcode_shlibpath_var=no
|
---|
11479 | ;;
|
---|
11480 |
|
---|
11481 | newsos6)
|
---|
11482 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
11483 | hardcode_direct=yes
|
---|
11484 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
---|
11485 | hardcode_libdir_separator=:
|
---|
11486 | hardcode_shlibpath_var=no
|
---|
11487 | ;;
|
---|
11488 |
|
---|
11489 | *nto* | *qnx*)
|
---|
11490 | ;;
|
---|
11491 |
|
---|
11492 | openbsd* | bitrig*)
|
---|
11493 | if test -f /usr/libexec/ld.so; then
|
---|
11494 | hardcode_direct=yes
|
---|
11495 | hardcode_shlibpath_var=no
|
---|
11496 | hardcode_direct_absolute=yes
|
---|
11497 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
|
---|
11498 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11499 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
|
---|
11500 | hardcode_libdir_flag_spec='$wl-rpath,$libdir'
|
---|
11501 | export_dynamic_flag_spec='$wl-E'
|
---|
11502 | else
|
---|
11503 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11504 | hardcode_libdir_flag_spec='$wl-rpath,$libdir'
|
---|
11505 | fi
|
---|
11506 | else
|
---|
11507 | ld_shlibs=no
|
---|
11508 | fi
|
---|
11509 | ;;
|
---|
11510 |
|
---|
11511 | os2*)
|
---|
11512 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
11513 | hardcode_minus_L=yes
|
---|
11514 | allow_undefined_flag=unsupported
|
---|
11515 | shrext_cmds=.dll
|
---|
11516 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
|
---|
11517 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
|
---|
11518 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
|
---|
11519 | $ECHO EXPORTS >> $output_objdir/$libname.def~
|
---|
11520 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
|
---|
11521 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
|
---|
11522 | emximp -o $lib $output_objdir/$libname.def'
|
---|
11523 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
|
---|
11524 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
|
---|
11525 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
|
---|
11526 | $ECHO EXPORTS >> $output_objdir/$libname.def~
|
---|
11527 | prefix_cmds="$SED"~
|
---|
11528 | if test EXPORTS = "`$SED 1q $export_symbols`"; then
|
---|
11529 | prefix_cmds="$prefix_cmds -e 1d";
|
---|
11530 | fi~
|
---|
11531 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
|
---|
11532 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
|
---|
11533 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
|
---|
11534 | emximp -o $lib $output_objdir/$libname.def'
|
---|
11535 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
|
---|
11536 | enable_shared_with_static_runtimes=yes
|
---|
11537 | file_list_spec='@'
|
---|
11538 | ;;
|
---|
11539 |
|
---|
11540 | osf3*)
|
---|
11541 | if test yes = "$GCC"; then
|
---|
11542 | allow_undefined_flag=' $wl-expect_unresolved $wl\*'
|
---|
11543 | 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'
|
---|
11544 | else
|
---|
11545 | allow_undefined_flag=' -expect_unresolved \*'
|
---|
11546 | 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'
|
---|
11547 | fi
|
---|
11548 | archive_cmds_need_lc='no'
|
---|
11549 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
---|
11550 | hardcode_libdir_separator=:
|
---|
11551 | ;;
|
---|
11552 |
|
---|
11553 | osf4* | osf5*) # as osf3* with the addition of -msym flag
|
---|
11554 | if test yes = "$GCC"; then
|
---|
11555 | allow_undefined_flag=' $wl-expect_unresolved $wl\*'
|
---|
11556 | 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'
|
---|
11557 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
---|
11558 | else
|
---|
11559 | allow_undefined_flag=' -expect_unresolved \*'
|
---|
11560 | 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'
|
---|
11561 | 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~
|
---|
11562 | $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'
|
---|
11563 |
|
---|
11564 | # Both c and cxx compiler support -rpath directly
|
---|
11565 | hardcode_libdir_flag_spec='-rpath $libdir'
|
---|
11566 | fi
|
---|
11567 | archive_cmds_need_lc='no'
|
---|
11568 | hardcode_libdir_separator=:
|
---|
11569 | ;;
|
---|
11570 |
|
---|
11571 | solaris*)
|
---|
11572 | no_undefined_flag=' -z defs'
|
---|
11573 | if test yes = "$GCC"; then
|
---|
11574 | wlarc='$wl'
|
---|
11575 | archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11576 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
---|
11577 | $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'
|
---|
11578 | else
|
---|
11579 | case `$CC -V 2>&1` in
|
---|
11580 | *"Compilers 5.0"*)
|
---|
11581 | wlarc=''
|
---|
11582 | archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
11583 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
---|
11584 | $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
|
---|
11585 | ;;
|
---|
11586 | *)
|
---|
11587 | wlarc='$wl'
|
---|
11588 | archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11589 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
---|
11590 | $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
---|
11591 | ;;
|
---|
11592 | esac
|
---|
11593 | fi
|
---|
11594 | hardcode_libdir_flag_spec='-R$libdir'
|
---|
11595 | hardcode_shlibpath_var=no
|
---|
11596 | case $host_os in
|
---|
11597 | solaris2.[0-5] | solaris2.[0-5].*) ;;
|
---|
11598 | *)
|
---|
11599 | # The compiler driver will combine and reorder linker options,
|
---|
11600 | # but understands '-z linker_flag'. GCC discards it without '$wl',
|
---|
11601 | # but is careful enough not to reorder.
|
---|
11602 | # Supported since Solaris 2.6 (maybe 2.5.1?)
|
---|
11603 | if test yes = "$GCC"; then
|
---|
11604 | whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
|
---|
11605 | else
|
---|
11606 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
|
---|
11607 | fi
|
---|
11608 | ;;
|
---|
11609 | esac
|
---|
11610 | link_all_deplibs=yes
|
---|
11611 | ;;
|
---|
11612 |
|
---|
11613 | sunos4*)
|
---|
11614 | if test sequent = "$host_vendor"; then
|
---|
11615 | # Use $CC to link under sequent, because it throws in some extra .o
|
---|
11616 | # files that make .init and .fini sections work.
|
---|
11617 | archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11618 | else
|
---|
11619 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
|
---|
11620 | fi
|
---|
11621 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
11622 | hardcode_direct=yes
|
---|
11623 | hardcode_minus_L=yes
|
---|
11624 | hardcode_shlibpath_var=no
|
---|
11625 | ;;
|
---|
11626 |
|
---|
11627 | sysv4)
|
---|
11628 | case $host_vendor in
|
---|
11629 | sni)
|
---|
11630 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
11631 | hardcode_direct=yes # is this really true???
|
---|
11632 | ;;
|
---|
11633 | siemens)
|
---|
11634 | ## LD is ld it makes a PLAMLIB
|
---|
11635 | ## CC just makes a GrossModule.
|
---|
11636 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
---|
11637 | reload_cmds='$CC -r -o $output$reload_objs'
|
---|
11638 | hardcode_direct=no
|
---|
11639 | ;;
|
---|
11640 | motorola)
|
---|
11641 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
11642 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie
|
---|
11643 | ;;
|
---|
11644 | esac
|
---|
11645 | runpath_var='LD_RUN_PATH'
|
---|
11646 | hardcode_shlibpath_var=no
|
---|
11647 | ;;
|
---|
11648 |
|
---|
11649 | sysv4.3*)
|
---|
11650 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
11651 | hardcode_shlibpath_var=no
|
---|
11652 | export_dynamic_flag_spec='-Bexport'
|
---|
11653 | ;;
|
---|
11654 |
|
---|
11655 | sysv4*MP*)
|
---|
11656 | if test -d /usr/nec; then
|
---|
11657 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
11658 | hardcode_shlibpath_var=no
|
---|
11659 | runpath_var=LD_RUN_PATH
|
---|
11660 | hardcode_runpath_var=yes
|
---|
11661 | ld_shlibs=yes
|
---|
11662 | fi
|
---|
11663 | ;;
|
---|
11664 |
|
---|
11665 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
|
---|
11666 | no_undefined_flag='$wl-z,text'
|
---|
11667 | archive_cmds_need_lc=no
|
---|
11668 | hardcode_shlibpath_var=no
|
---|
11669 | runpath_var='LD_RUN_PATH'
|
---|
11670 |
|
---|
11671 | if test yes = "$GCC"; then
|
---|
11672 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11673 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11674 | else
|
---|
11675 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11676 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11677 | fi
|
---|
11678 | ;;
|
---|
11679 |
|
---|
11680 | sysv5* | sco3.2v5* | sco5v6*)
|
---|
11681 | # Note: We CANNOT use -z defs as we might desire, because we do not
|
---|
11682 | # link with -lc, and that would cause any symbols used from libc to
|
---|
11683 | # always be unresolved, which means just about no library would
|
---|
11684 | # ever link correctly. If we're not using GNU ld we use -z text
|
---|
11685 | # though, which does catch some bad symbols but isn't as heavy-handed
|
---|
11686 | # as -z defs.
|
---|
11687 | no_undefined_flag='$wl-z,text'
|
---|
11688 | allow_undefined_flag='$wl-z,nodefs'
|
---|
11689 | archive_cmds_need_lc=no
|
---|
11690 | hardcode_shlibpath_var=no
|
---|
11691 | hardcode_libdir_flag_spec='$wl-R,$libdir'
|
---|
11692 | hardcode_libdir_separator=':'
|
---|
11693 | link_all_deplibs=yes
|
---|
11694 | export_dynamic_flag_spec='$wl-Bexport'
|
---|
11695 | runpath_var='LD_RUN_PATH'
|
---|
11696 |
|
---|
11697 | if test yes = "$GCC"; then
|
---|
11698 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11699 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11700 | else
|
---|
11701 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11702 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11703 | fi
|
---|
11704 | ;;
|
---|
11705 |
|
---|
11706 | uts4*)
|
---|
11707 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
11708 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
11709 | hardcode_shlibpath_var=no
|
---|
11710 | ;;
|
---|
11711 |
|
---|
11712 | *)
|
---|
11713 | ld_shlibs=no
|
---|
11714 | ;;
|
---|
11715 | esac
|
---|
11716 |
|
---|
11717 | if test sni = "$host_vendor"; then
|
---|
11718 | case $host in
|
---|
11719 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
---|
11720 | export_dynamic_flag_spec='$wl-Blargedynsym'
|
---|
11721 | ;;
|
---|
11722 | esac
|
---|
11723 | fi
|
---|
11724 | fi
|
---|
11725 |
|
---|
11726 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
|
---|
11727 | printf "%s\n" "$ld_shlibs" >&6; }
|
---|
11728 | test no = "$ld_shlibs" && can_build_shared=no
|
---|
11729 |
|
---|
11730 | with_gnu_ld=$with_gnu_ld
|
---|
11731 |
|
---|
11732 |
|
---|
11733 |
|
---|
11734 |
|
---|
11735 |
|
---|
11736 |
|
---|
11737 |
|
---|
11738 |
|
---|
11739 |
|
---|
11740 |
|
---|
11741 |
|
---|
11742 |
|
---|
11743 |
|
---|
11744 |
|
---|
11745 |
|
---|
11746 | #
|
---|
11747 | # Do we need to explicitly link libc?
|
---|
11748 | #
|
---|
11749 | case "x$archive_cmds_need_lc" in
|
---|
11750 | x|xyes)
|
---|
11751 | # Assume -lc should be added
|
---|
11752 | archive_cmds_need_lc=yes
|
---|
11753 |
|
---|
11754 | if test yes,yes = "$GCC,$enable_shared"; then
|
---|
11755 | case $archive_cmds in
|
---|
11756 | *'~'*)
|
---|
11757 | # FIXME: we may have to deal with multi-command sequences.
|
---|
11758 | ;;
|
---|
11759 | '$CC '*)
|
---|
11760 | # Test whether the compiler implicitly links with -lc since on some
|
---|
11761 | # systems, -lgcc has to come before -lc. If gcc already passes -lc
|
---|
11762 | # to ld, don't add -lc before -lgcc.
|
---|
11763 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
|
---|
11764 | printf %s "checking whether -lc should be explicitly linked in... " >&6; }
|
---|
11765 | if test ${lt_cv_archive_cmds_need_lc+y}
|
---|
11766 | then :
|
---|
11767 | printf %s "(cached) " >&6
|
---|
11768 | else case e in #(
|
---|
11769 | e) $RM conftest*
|
---|
11770 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
---|
11771 |
|
---|
11772 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
---|
11773 | (eval $ac_compile) 2>&5
|
---|
11774 | ac_status=$?
|
---|
11775 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
11776 | test $ac_status = 0; } 2>conftest.err; then
|
---|
11777 | soname=conftest
|
---|
11778 | lib=conftest
|
---|
11779 | libobjs=conftest.$ac_objext
|
---|
11780 | deplibs=
|
---|
11781 | wl=$lt_prog_compiler_wl
|
---|
11782 | pic_flag=$lt_prog_compiler_pic
|
---|
11783 | compiler_flags=-v
|
---|
11784 | linker_flags=-v
|
---|
11785 | verstring=
|
---|
11786 | output_objdir=.
|
---|
11787 | libname=conftest
|
---|
11788 | lt_save_allow_undefined_flag=$allow_undefined_flag
|
---|
11789 | allow_undefined_flag=
|
---|
11790 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
|
---|
11791 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
|
---|
11792 | ac_status=$?
|
---|
11793 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
11794 | test $ac_status = 0; }
|
---|
11795 | then
|
---|
11796 | lt_cv_archive_cmds_need_lc=no
|
---|
11797 | else
|
---|
11798 | lt_cv_archive_cmds_need_lc=yes
|
---|
11799 | fi
|
---|
11800 | allow_undefined_flag=$lt_save_allow_undefined_flag
|
---|
11801 | else
|
---|
11802 | cat conftest.err 1>&5
|
---|
11803 | fi
|
---|
11804 | $RM conftest*
|
---|
11805 | ;;
|
---|
11806 | esac
|
---|
11807 | fi
|
---|
11808 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
|
---|
11809 | printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
|
---|
11810 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
|
---|
11811 | ;;
|
---|
11812 | esac
|
---|
11813 | fi
|
---|
11814 | ;;
|
---|
11815 | esac
|
---|
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 |
|
---|
11888 |
|
---|
11889 |
|
---|
11890 |
|
---|
11891 |
|
---|
11892 |
|
---|
11893 |
|
---|
11894 |
|
---|
11895 |
|
---|
11896 |
|
---|
11897 |
|
---|
11898 |
|
---|
11899 |
|
---|
11900 |
|
---|
11901 |
|
---|
11902 |
|
---|
11903 |
|
---|
11904 |
|
---|
11905 |
|
---|
11906 |
|
---|
11907 |
|
---|
11908 |
|
---|
11909 |
|
---|
11910 |
|
---|
11911 |
|
---|
11912 |
|
---|
11913 |
|
---|
11914 |
|
---|
11915 |
|
---|
11916 |
|
---|
11917 |
|
---|
11918 |
|
---|
11919 |
|
---|
11920 |
|
---|
11921 |
|
---|
11922 |
|
---|
11923 |
|
---|
11924 |
|
---|
11925 |
|
---|
11926 |
|
---|
11927 |
|
---|
11928 |
|
---|
11929 |
|
---|
11930 |
|
---|
11931 |
|
---|
11932 |
|
---|
11933 |
|
---|
11934 |
|
---|
11935 |
|
---|
11936 |
|
---|
11937 |
|
---|
11938 |
|
---|
11939 |
|
---|
11940 |
|
---|
11941 |
|
---|
11942 |
|
---|
11943 |
|
---|
11944 |
|
---|
11945 |
|
---|
11946 |
|
---|
11947 |
|
---|
11948 |
|
---|
11949 |
|
---|
11950 |
|
---|
11951 |
|
---|
11952 |
|
---|
11953 |
|
---|
11954 |
|
---|
11955 |
|
---|
11956 |
|
---|
11957 |
|
---|
11958 |
|
---|
11959 |
|
---|
11960 |
|
---|
11961 |
|
---|
11962 |
|
---|
11963 |
|
---|
11964 |
|
---|
11965 |
|
---|
11966 |
|
---|
11967 |
|
---|
11968 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
|
---|
11969 | printf %s "checking dynamic linker characteristics... " >&6; }
|
---|
11970 |
|
---|
11971 | if test yes = "$GCC"; then
|
---|
11972 | case $host_os in
|
---|
11973 | darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
|
---|
11974 | *) lt_awk_arg='/^libraries:/' ;;
|
---|
11975 | esac
|
---|
11976 | case $host_os in
|
---|
11977 | mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
|
---|
11978 | *) lt_sed_strip_eq='s|=/|/|g' ;;
|
---|
11979 | esac
|
---|
11980 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
|
---|
11981 | case $lt_search_path_spec in
|
---|
11982 | *\;*)
|
---|
11983 | # if the path contains ";" then we assume it to be the separator
|
---|
11984 | # otherwise default to the standard path separator (i.e. ":") - it is
|
---|
11985 | # assumed that no part of a normal pathname contains ";" but that should
|
---|
11986 | # okay in the real world where ";" in dirpaths is itself problematic.
|
---|
11987 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
|
---|
11988 | ;;
|
---|
11989 | *)
|
---|
11990 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
|
---|
11991 | ;;
|
---|
11992 | esac
|
---|
11993 | # Ok, now we have the path, separated by spaces, we can step through it
|
---|
11994 | # and add multilib dir if necessary...
|
---|
11995 | lt_tmp_lt_search_path_spec=
|
---|
11996 | lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
|
---|
11997 | # ...but if some path component already ends with the multilib dir we assume
|
---|
11998 | # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
|
---|
11999 | case "$lt_multi_os_dir; $lt_search_path_spec " in
|
---|
12000 | "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
|
---|
12001 | lt_multi_os_dir=
|
---|
12002 | ;;
|
---|
12003 | esac
|
---|
12004 | for lt_sys_path in $lt_search_path_spec; do
|
---|
12005 | if test -d "$lt_sys_path$lt_multi_os_dir"; then
|
---|
12006 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
|
---|
12007 | elif test -n "$lt_multi_os_dir"; then
|
---|
12008 | test -d "$lt_sys_path" && \
|
---|
12009 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
|
---|
12010 | fi
|
---|
12011 | done
|
---|
12012 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
|
---|
12013 | BEGIN {RS = " "; FS = "/|\n";} {
|
---|
12014 | lt_foo = "";
|
---|
12015 | lt_count = 0;
|
---|
12016 | for (lt_i = NF; lt_i > 0; lt_i--) {
|
---|
12017 | if ($lt_i != "" && $lt_i != ".") {
|
---|
12018 | if ($lt_i == "..") {
|
---|
12019 | lt_count++;
|
---|
12020 | } else {
|
---|
12021 | if (lt_count == 0) {
|
---|
12022 | lt_foo = "/" $lt_i lt_foo;
|
---|
12023 | } else {
|
---|
12024 | lt_count--;
|
---|
12025 | }
|
---|
12026 | }
|
---|
12027 | }
|
---|
12028 | }
|
---|
12029 | if (lt_foo != "") { lt_freq[lt_foo]++; }
|
---|
12030 | if (lt_freq[lt_foo] == 1) { print lt_foo; }
|
---|
12031 | }'`
|
---|
12032 | # AWK program above erroneously prepends '/' to C:/dos/paths
|
---|
12033 | # for these hosts.
|
---|
12034 | case $host_os in
|
---|
12035 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
|
---|
12036 | $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
|
---|
12037 | esac
|
---|
12038 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
|
---|
12039 | else
|
---|
12040 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
---|
12041 | fi
|
---|
12042 | library_names_spec=
|
---|
12043 | libname_spec='lib$name'
|
---|
12044 | soname_spec=
|
---|
12045 | shrext_cmds=.so
|
---|
12046 | postinstall_cmds=
|
---|
12047 | postuninstall_cmds=
|
---|
12048 | finish_cmds=
|
---|
12049 | finish_eval=
|
---|
12050 | shlibpath_var=
|
---|
12051 | shlibpath_overrides_runpath=unknown
|
---|
12052 | version_type=none
|
---|
12053 | dynamic_linker="$host_os ld.so"
|
---|
12054 | sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
---|
12055 | need_lib_prefix=unknown
|
---|
12056 | hardcode_into_libs=no
|
---|
12057 |
|
---|
12058 | # when you set need_version to no, make sure it does not cause -set_version
|
---|
12059 | # flags to be left without arguments
|
---|
12060 | need_version=unknown
|
---|
12061 |
|
---|
12062 |
|
---|
12063 |
|
---|
12064 | case $host_os in
|
---|
12065 | aix3*)
|
---|
12066 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
12067 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
|
---|
12068 | shlibpath_var=LIBPATH
|
---|
12069 |
|
---|
12070 | # AIX 3 has no versioning support, so we append a major version to the name.
|
---|
12071 | soname_spec='$libname$release$shared_ext$major'
|
---|
12072 | ;;
|
---|
12073 |
|
---|
12074 | aix[4-9]*)
|
---|
12075 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
12076 | need_lib_prefix=no
|
---|
12077 | need_version=no
|
---|
12078 | hardcode_into_libs=yes
|
---|
12079 | if test ia64 = "$host_cpu"; then
|
---|
12080 | # AIX 5 supports IA64
|
---|
12081 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
|
---|
12082 | shlibpath_var=LD_LIBRARY_PATH
|
---|
12083 | else
|
---|
12084 | # With GCC up to 2.95.x, collect2 would create an import file
|
---|
12085 | # for dependence libraries. The import file would start with
|
---|
12086 | # the line '#! .'. This would cause the generated library to
|
---|
12087 | # depend on '.', always an invalid library. This was fixed in
|
---|
12088 | # development snapshots of GCC prior to 3.0.
|
---|
12089 | case $host_os in
|
---|
12090 | aix4 | aix4.[01] | aix4.[01].*)
|
---|
12091 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
---|
12092 | echo ' yes '
|
---|
12093 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
|
---|
12094 | :
|
---|
12095 | else
|
---|
12096 | can_build_shared=no
|
---|
12097 | fi
|
---|
12098 | ;;
|
---|
12099 | esac
|
---|
12100 | # Using Import Files as archive members, it is possible to support
|
---|
12101 | # filename-based versioning of shared library archives on AIX. While
|
---|
12102 | # this would work for both with and without runtime linking, it will
|
---|
12103 | # prevent static linking of such archives. So we do filename-based
|
---|
12104 | # shared library versioning with .so extension only, which is used
|
---|
12105 | # when both runtime linking and shared linking is enabled.
|
---|
12106 | # Unfortunately, runtime linking may impact performance, so we do
|
---|
12107 | # not want this to be the default eventually. Also, we use the
|
---|
12108 | # versioned .so libs for executables only if there is the -brtl
|
---|
12109 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
|
---|
12110 | # To allow for filename-based versioning support, we need to create
|
---|
12111 | # libNAME.so.V as an archive file, containing:
|
---|
12112 | # *) an Import File, referring to the versioned filename of the
|
---|
12113 | # archive as well as the shared archive member, telling the
|
---|
12114 | # bitwidth (32 or 64) of that shared object, and providing the
|
---|
12115 | # list of exported symbols of that shared object, eventually
|
---|
12116 | # decorated with the 'weak' keyword
|
---|
12117 | # *) the shared object with the F_LOADONLY flag set, to really avoid
|
---|
12118 | # it being seen by the linker.
|
---|
12119 | # At run time we better use the real file rather than another symlink,
|
---|
12120 | # but for link time we create the symlink libNAME.so -> libNAME.so.V
|
---|
12121 |
|
---|
12122 | case $with_aix_soname,$aix_use_runtimelinking in
|
---|
12123 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
|
---|
12124 | # soname into executable. Probably we can add versioning support to
|
---|
12125 | # collect2, so additional links can be useful in future.
|
---|
12126 | aix,yes) # traditional libtool
|
---|
12127 | dynamic_linker='AIX unversionable lib.so'
|
---|
12128 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so
|
---|
12129 | # instead of lib<name>.a to let people know that these are not
|
---|
12130 | # typical AIX shared libraries.
|
---|
12131 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
12132 | ;;
|
---|
12133 | aix,no) # traditional AIX only
|
---|
12134 | dynamic_linker='AIX lib.a(lib.so.V)'
|
---|
12135 | # We preserve .a as extension for shared libraries through AIX4.2
|
---|
12136 | # and later when we are not doing run time linking.
|
---|
12137 | library_names_spec='$libname$release.a $libname.a'
|
---|
12138 | soname_spec='$libname$release$shared_ext$major'
|
---|
12139 | ;;
|
---|
12140 | svr4,*) # full svr4 only
|
---|
12141 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
|
---|
12142 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
|
---|
12143 | # We do not specify a path in Import Files, so LIBPATH fires.
|
---|
12144 | shlibpath_overrides_runpath=yes
|
---|
12145 | ;;
|
---|
12146 | *,yes) # both, prefer svr4
|
---|
12147 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
|
---|
12148 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
|
---|
12149 | # unpreferred sharedlib libNAME.a needs extra handling
|
---|
12150 | 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"'
|
---|
12151 | 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"'
|
---|
12152 | # We do not specify a path in Import Files, so LIBPATH fires.
|
---|
12153 | shlibpath_overrides_runpath=yes
|
---|
12154 | ;;
|
---|
12155 | *,no) # both, prefer aix
|
---|
12156 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
|
---|
12157 | library_names_spec='$libname$release.a $libname.a'
|
---|
12158 | soname_spec='$libname$release$shared_ext$major'
|
---|
12159 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
|
---|
12160 | 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)'
|
---|
12161 | 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"'
|
---|
12162 | ;;
|
---|
12163 | esac
|
---|
12164 | shlibpath_var=LIBPATH
|
---|
12165 | fi
|
---|
12166 | ;;
|
---|
12167 |
|
---|
12168 | amigaos*)
|
---|
12169 | case $host_cpu in
|
---|
12170 | powerpc)
|
---|
12171 | # Since July 2007 AmigaOS4 officially supports .so libraries.
|
---|
12172 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
|
---|
12173 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
12174 | ;;
|
---|
12175 | m68k)
|
---|
12176 | library_names_spec='$libname.ixlibrary $libname.a'
|
---|
12177 | # Create ${libname}_ixlibrary.a entries in /sys/libs.
|
---|
12178 | 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'
|
---|
12179 | ;;
|
---|
12180 | esac
|
---|
12181 | ;;
|
---|
12182 |
|
---|
12183 | beos*)
|
---|
12184 | library_names_spec='$libname$shared_ext'
|
---|
12185 | dynamic_linker="$host_os ld.so"
|
---|
12186 | shlibpath_var=LIBRARY_PATH
|
---|
12187 | ;;
|
---|
12188 |
|
---|
12189 | bsdi[45]*)
|
---|
12190 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
12191 | need_version=no
|
---|
12192 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
12193 | soname_spec='$libname$release$shared_ext$major'
|
---|
12194 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
---|
12195 | shlibpath_var=LD_LIBRARY_PATH
|
---|
12196 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
---|
12197 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
---|
12198 | # the default ld.so.conf also contains /usr/contrib/lib and
|
---|
12199 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
---|
12200 | # libtool to hard-code these into programs
|
---|
12201 | ;;
|
---|
12202 |
|
---|
12203 | cygwin* | mingw* | pw32* | cegcc*)
|
---|
12204 | version_type=windows
|
---|
12205 | shrext_cmds=.dll
|
---|
12206 | need_version=no
|
---|
12207 | need_lib_prefix=no
|
---|
12208 |
|
---|
12209 | case $GCC,$cc_basename in
|
---|
12210 | yes,*)
|
---|
12211 | # gcc
|
---|
12212 | library_names_spec='$libname.dll.a'
|
---|
12213 | # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
---|
12214 | postinstall_cmds='base_file=`basename \$file`~
|
---|
12215 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
|
---|
12216 | dldir=$destdir/`dirname \$dlpath`~
|
---|
12217 | test -d \$dldir || mkdir -p \$dldir~
|
---|
12218 | $install_prog $dir/$dlname \$dldir/$dlname~
|
---|
12219 | chmod a+x \$dldir/$dlname~
|
---|
12220 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
|
---|
12221 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
|
---|
12222 | fi'
|
---|
12223 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
---|
12224 | dlpath=$dir/\$dldll~
|
---|
12225 | $RM \$dlpath'
|
---|
12226 | shlibpath_overrides_runpath=yes
|
---|
12227 |
|
---|
12228 | case $host_os in
|
---|
12229 | cygwin*)
|
---|
12230 | # Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
---|
12231 | soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
|
---|
12232 |
|
---|
12233 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
|
---|
12234 | ;;
|
---|
12235 | mingw* | cegcc*)
|
---|
12236 | # MinGW DLLs use traditional 'lib' prefix
|
---|
12237 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
|
---|
12238 | ;;
|
---|
12239 | pw32*)
|
---|
12240 | # pw32 DLLs use 'pw' prefix rather than 'lib'
|
---|
12241 | library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
|
---|
12242 | ;;
|
---|
12243 | esac
|
---|
12244 | dynamic_linker='Win32 ld.exe'
|
---|
12245 | ;;
|
---|
12246 |
|
---|
12247 | *,cl* | *,icl*)
|
---|
12248 | # Native MSVC or ICC
|
---|
12249 | libname_spec='$name'
|
---|
12250 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
|
---|
12251 | library_names_spec='$libname.dll.lib'
|
---|
12252 |
|
---|
12253 | case $build_os in
|
---|
12254 | mingw*)
|
---|
12255 | sys_lib_search_path_spec=
|
---|
12256 | lt_save_ifs=$IFS
|
---|
12257 | IFS=';'
|
---|
12258 | for lt_path in $LIB
|
---|
12259 | do
|
---|
12260 | IFS=$lt_save_ifs
|
---|
12261 | # Let DOS variable expansion print the short 8.3 style file name.
|
---|
12262 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
|
---|
12263 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
|
---|
12264 | done
|
---|
12265 | IFS=$lt_save_ifs
|
---|
12266 | # Convert to MSYS style.
|
---|
12267 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
|
---|
12268 | ;;
|
---|
12269 | cygwin*)
|
---|
12270 | # Convert to unix form, then to dos form, then back to unix form
|
---|
12271 | # but this time dos style (no spaces!) so that the unix form looks
|
---|
12272 | # like /cygdrive/c/PROGRA~1:/cygdr...
|
---|
12273 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
|
---|
12274 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
|
---|
12275 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
---|
12276 | ;;
|
---|
12277 | *)
|
---|
12278 | sys_lib_search_path_spec=$LIB
|
---|
12279 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
|
---|
12280 | # It is most probably a Windows format PATH.
|
---|
12281 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
---|
12282 | else
|
---|
12283 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
---|
12284 | fi
|
---|
12285 | # FIXME: find the short name or the path components, as spaces are
|
---|
12286 | # common. (e.g. "Program Files" -> "PROGRA~1")
|
---|
12287 | ;;
|
---|
12288 | esac
|
---|
12289 |
|
---|
12290 | # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
---|
12291 | postinstall_cmds='base_file=`basename \$file`~
|
---|
12292 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
|
---|
12293 | dldir=$destdir/`dirname \$dlpath`~
|
---|
12294 | test -d \$dldir || mkdir -p \$dldir~
|
---|
12295 | $install_prog $dir/$dlname \$dldir/$dlname'
|
---|
12296 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
---|
12297 | dlpath=$dir/\$dldll~
|
---|
12298 | $RM \$dlpath'
|
---|
12299 | shlibpath_overrides_runpath=yes
|
---|
12300 | dynamic_linker='Win32 link.exe'
|
---|
12301 | ;;
|
---|
12302 |
|
---|
12303 | *)
|
---|
12304 | # Assume MSVC and ICC wrapper
|
---|
12305 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
|
---|
12306 | dynamic_linker='Win32 ld.exe'
|
---|
12307 | ;;
|
---|
12308 | esac
|
---|
12309 | # FIXME: first we should search . and the directory the executable is in
|
---|
12310 | shlibpath_var=PATH
|
---|
12311 | ;;
|
---|
12312 |
|
---|
12313 | darwin* | rhapsody*)
|
---|
12314 | dynamic_linker="$host_os dyld"
|
---|
12315 | version_type=darwin
|
---|
12316 | need_lib_prefix=no
|
---|
12317 | need_version=no
|
---|
12318 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
|
---|
12319 | soname_spec='$libname$release$major$shared_ext'
|
---|
12320 | shlibpath_overrides_runpath=yes
|
---|
12321 | shlibpath_var=DYLD_LIBRARY_PATH
|
---|
12322 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
---|
12323 |
|
---|
12324 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
|
---|
12325 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
---|
12326 | ;;
|
---|
12327 |
|
---|
12328 | dgux*)
|
---|
12329 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
12330 | need_lib_prefix=no
|
---|
12331 | need_version=no
|
---|
12332 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
12333 | soname_spec='$libname$release$shared_ext$major'
|
---|
12334 | shlibpath_var=LD_LIBRARY_PATH
|
---|
12335 | ;;
|
---|
12336 |
|
---|
12337 | freebsd* | dragonfly* | midnightbsd*)
|
---|
12338 | # DragonFly does not have aout. When/if they implement a new
|
---|
12339 | # versioning mechanism, adjust this.
|
---|
12340 | if test -x /usr/bin/objformat; then
|
---|
12341 | objformat=`/usr/bin/objformat`
|
---|
12342 | else
|
---|
12343 | case $host_os in
|
---|
12344 | freebsd[23].*) objformat=aout ;;
|
---|
12345 | *) objformat=elf ;;
|
---|
12346 | esac
|
---|
12347 | fi
|
---|
12348 | version_type=freebsd-$objformat
|
---|
12349 | case $version_type in
|
---|
12350 | freebsd-elf*)
|
---|
12351 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
12352 | soname_spec='$libname$release$shared_ext$major'
|
---|
12353 | need_version=no
|
---|
12354 | need_lib_prefix=no
|
---|
12355 | ;;
|
---|
12356 | freebsd-*)
|
---|
12357 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
|
---|
12358 | need_version=yes
|
---|
12359 | ;;
|
---|
12360 | esac
|
---|
12361 | shlibpath_var=LD_LIBRARY_PATH
|
---|
12362 | case $host_os in
|
---|
12363 | freebsd2.*)
|
---|
12364 | shlibpath_overrides_runpath=yes
|
---|
12365 | ;;
|
---|
12366 | freebsd3.[01]* | freebsdelf3.[01]*)
|
---|
12367 | shlibpath_overrides_runpath=yes
|
---|
12368 | hardcode_into_libs=yes
|
---|
12369 | ;;
|
---|
12370 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
|
---|
12371 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
|
---|
12372 | shlibpath_overrides_runpath=no
|
---|
12373 | hardcode_into_libs=yes
|
---|
12374 | ;;
|
---|
12375 | *) # from 4.6 on, and DragonFly
|
---|
12376 | shlibpath_overrides_runpath=yes
|
---|
12377 | hardcode_into_libs=yes
|
---|
12378 | ;;
|
---|
12379 | esac
|
---|
12380 | ;;
|
---|
12381 |
|
---|
12382 | haiku*)
|
---|
12383 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
12384 | need_lib_prefix=no
|
---|
12385 | need_version=no
|
---|
12386 | dynamic_linker="$host_os runtime_loader"
|
---|
12387 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
12388 | soname_spec='$libname$release$shared_ext$major'
|
---|
12389 | shlibpath_var=LIBRARY_PATH
|
---|
12390 | shlibpath_overrides_runpath=no
|
---|
12391 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
|
---|
12392 | hardcode_into_libs=yes
|
---|
12393 | ;;
|
---|
12394 |
|
---|
12395 | hpux9* | hpux10* | hpux11*)
|
---|
12396 | # Give a soname corresponding to the major version so that dld.sl refuses to
|
---|
12397 | # link against other versions.
|
---|
12398 | version_type=sunos
|
---|
12399 | need_lib_prefix=no
|
---|
12400 | need_version=no
|
---|
12401 | case $host_cpu in
|
---|
12402 | ia64*)
|
---|
12403 | shrext_cmds='.so'
|
---|
12404 | hardcode_into_libs=yes
|
---|
12405 | dynamic_linker="$host_os dld.so"
|
---|
12406 | shlibpath_var=LD_LIBRARY_PATH
|
---|
12407 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
---|
12408 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
12409 | soname_spec='$libname$release$shared_ext$major'
|
---|
12410 | if test 32 = "$HPUX_IA64_MODE"; then
|
---|
12411 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
---|
12412 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32
|
---|
12413 | else
|
---|
12414 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
---|
12415 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64
|
---|
12416 | fi
|
---|
12417 | ;;
|
---|
12418 | hppa*64*)
|
---|
12419 | shrext_cmds='.sl'
|
---|
12420 | hardcode_into_libs=yes
|
---|
12421 | dynamic_linker="$host_os dld.sl"
|
---|
12422 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
---|
12423 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
---|
12424 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
12425 | soname_spec='$libname$release$shared_ext$major'
|
---|
12426 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
---|
12427 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
---|
12428 | ;;
|
---|
12429 | *)
|
---|
12430 | shrext_cmds='.sl'
|
---|
12431 | dynamic_linker="$host_os dld.sl"
|
---|
12432 | shlibpath_var=SHLIB_PATH
|
---|
12433 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
---|
12434 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
12435 | soname_spec='$libname$release$shared_ext$major'
|
---|
12436 | ;;
|
---|
12437 | esac
|
---|
12438 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
|
---|
12439 | postinstall_cmds='chmod 555 $lib'
|
---|
12440 | # or fails outright, so override atomically:
|
---|
12441 | install_override_mode=555
|
---|
12442 | ;;
|
---|
12443 |
|
---|
12444 | interix[3-9]*)
|
---|
12445 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
12446 | need_lib_prefix=no
|
---|
12447 | need_version=no
|
---|
12448 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
12449 | soname_spec='$libname$release$shared_ext$major'
|
---|
12450 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
|
---|
12451 | shlibpath_var=LD_LIBRARY_PATH
|
---|
12452 | shlibpath_overrides_runpath=no
|
---|
12453 | hardcode_into_libs=yes
|
---|
12454 | ;;
|
---|
12455 |
|
---|
12456 | irix5* | irix6* | nonstopux*)
|
---|
12457 | case $host_os in
|
---|
12458 | nonstopux*) version_type=nonstopux ;;
|
---|
12459 | *)
|
---|
12460 | if test yes = "$lt_cv_prog_gnu_ld"; then
|
---|
12461 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
12462 | else
|
---|
12463 | version_type=irix
|
---|
12464 | fi ;;
|
---|
12465 | esac
|
---|
12466 | need_lib_prefix=no
|
---|
12467 | need_version=no
|
---|
12468 | soname_spec='$libname$release$shared_ext$major'
|
---|
12469 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
|
---|
12470 | case $host_os in
|
---|
12471 | irix5* | nonstopux*)
|
---|
12472 | libsuff= shlibsuff=
|
---|
12473 | ;;
|
---|
12474 | *)
|
---|
12475 | case $LD in # libtool.m4 will add one of these switches to LD
|
---|
12476 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
---|
12477 | libsuff= shlibsuff= libmagic=32-bit;;
|
---|
12478 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
---|
12479 | libsuff=32 shlibsuff=N32 libmagic=N32;;
|
---|
12480 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
---|
12481 | libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
---|
12482 | *) libsuff= shlibsuff= libmagic=never-match;;
|
---|
12483 | esac
|
---|
12484 | ;;
|
---|
12485 | esac
|
---|
12486 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
---|
12487 | shlibpath_overrides_runpath=no
|
---|
12488 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
|
---|
12489 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
|
---|
12490 | hardcode_into_libs=yes
|
---|
12491 | ;;
|
---|
12492 |
|
---|
12493 | # No shared lib support for Linux oldld, aout, or coff.
|
---|
12494 | linux*oldld* | linux*aout* | linux*coff*)
|
---|
12495 | dynamic_linker=no
|
---|
12496 | ;;
|
---|
12497 |
|
---|
12498 | linux*android*)
|
---|
12499 | version_type=none # Android doesn't support versioned libraries.
|
---|
12500 | need_lib_prefix=no
|
---|
12501 | need_version=no
|
---|
12502 | library_names_spec='$libname$release$shared_ext'
|
---|
12503 | soname_spec='$libname$release$shared_ext'
|
---|
12504 | finish_cmds=
|
---|
12505 | shlibpath_var=LD_LIBRARY_PATH
|
---|
12506 | shlibpath_overrides_runpath=yes
|
---|
12507 |
|
---|
12508 | # This implies no fast_install, which is unacceptable.
|
---|
12509 | # Some rework will be needed to allow for fast_install
|
---|
12510 | # before this can be enabled.
|
---|
12511 | hardcode_into_libs=yes
|
---|
12512 |
|
---|
12513 | dynamic_linker='Android linker'
|
---|
12514 | # Don't embed -rpath directories since the linker doesn't support them.
|
---|
12515 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
12516 | ;;
|
---|
12517 |
|
---|
12518 | # This must be glibc/ELF.
|
---|
12519 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
|
---|
12520 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
12521 | need_lib_prefix=no
|
---|
12522 | need_version=no
|
---|
12523 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
12524 | soname_spec='$libname$release$shared_ext$major'
|
---|
12525 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
---|
12526 | shlibpath_var=LD_LIBRARY_PATH
|
---|
12527 | shlibpath_overrides_runpath=no
|
---|
12528 |
|
---|
12529 | # Some binutils ld are patched to set DT_RUNPATH
|
---|
12530 | if test ${lt_cv_shlibpath_overrides_runpath+y}
|
---|
12531 | then :
|
---|
12532 | printf %s "(cached) " >&6
|
---|
12533 | else case e in #(
|
---|
12534 | e) lt_cv_shlibpath_overrides_runpath=no
|
---|
12535 | save_LDFLAGS=$LDFLAGS
|
---|
12536 | save_libdir=$libdir
|
---|
12537 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
|
---|
12538 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
|
---|
12539 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
12540 | /* end confdefs.h. */
|
---|
12541 |
|
---|
12542 | int
|
---|
12543 | main (void)
|
---|
12544 | {
|
---|
12545 |
|
---|
12546 | ;
|
---|
12547 | return 0;
|
---|
12548 | }
|
---|
12549 | _ACEOF
|
---|
12550 | if ac_fn_c_try_link "$LINENO"
|
---|
12551 | then :
|
---|
12552 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
|
---|
12553 | then :
|
---|
12554 | lt_cv_shlibpath_overrides_runpath=yes
|
---|
12555 | fi
|
---|
12556 | fi
|
---|
12557 | rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
---|
12558 | conftest$ac_exeext conftest.$ac_ext
|
---|
12559 | LDFLAGS=$save_LDFLAGS
|
---|
12560 | libdir=$save_libdir
|
---|
12561 | ;;
|
---|
12562 | esac
|
---|
12563 | fi
|
---|
12564 |
|
---|
12565 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
|
---|
12566 |
|
---|
12567 | # This implies no fast_install, which is unacceptable.
|
---|
12568 | # Some rework will be needed to allow for fast_install
|
---|
12569 | # before this can be enabled.
|
---|
12570 | hardcode_into_libs=yes
|
---|
12571 |
|
---|
12572 | # Ideally, we could use ldconfig to report *all* directores which are
|
---|
12573 | # searched for libraries, however this is still not possible. Aside from not
|
---|
12574 | # being certain /sbin/ldconfig is available, command
|
---|
12575 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
|
---|
12576 | # even though it is searched at run-time. Try to do the best guess by
|
---|
12577 | # appending ld.so.conf contents (and includes) to the search path.
|
---|
12578 | if test -f /etc/ld.so.conf; then
|
---|
12579 | 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' ' '`
|
---|
12580 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
---|
12581 | fi
|
---|
12582 |
|
---|
12583 | # We used to test for /lib/ld.so.1 and disable shared libraries on
|
---|
12584 | # powerpc, because MkLinux only supported shared libraries with the
|
---|
12585 | # GNU dynamic linker. Since this was broken with cross compilers,
|
---|
12586 | # most powerpc-linux boxes support dynamic linking these days and
|
---|
12587 | # people can always --disable-shared, the test was removed, and we
|
---|
12588 | # assume the GNU/Linux dynamic linker is in use.
|
---|
12589 | dynamic_linker='GNU/Linux ld.so'
|
---|
12590 | ;;
|
---|
12591 |
|
---|
12592 | netbsd*)
|
---|
12593 | version_type=sunos
|
---|
12594 | need_lib_prefix=no
|
---|
12595 | need_version=no
|
---|
12596 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
---|
12597 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
|
---|
12598 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
---|
12599 | dynamic_linker='NetBSD (a.out) ld.so'
|
---|
12600 | else
|
---|
12601 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
12602 | soname_spec='$libname$release$shared_ext$major'
|
---|
12603 | dynamic_linker='NetBSD ld.elf_so'
|
---|
12604 | fi
|
---|
12605 | shlibpath_var=LD_LIBRARY_PATH
|
---|
12606 | shlibpath_overrides_runpath=yes
|
---|
12607 | hardcode_into_libs=yes
|
---|
12608 | ;;
|
---|
12609 |
|
---|
12610 | newsos6)
|
---|
12611 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
12612 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
12613 | shlibpath_var=LD_LIBRARY_PATH
|
---|
12614 | shlibpath_overrides_runpath=yes
|
---|
12615 | ;;
|
---|
12616 |
|
---|
12617 | *nto* | *qnx*)
|
---|
12618 | version_type=qnx
|
---|
12619 | need_lib_prefix=no
|
---|
12620 | need_version=no
|
---|
12621 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
12622 | soname_spec='$libname$release$shared_ext$major'
|
---|
12623 | shlibpath_var=LD_LIBRARY_PATH
|
---|
12624 | shlibpath_overrides_runpath=no
|
---|
12625 | hardcode_into_libs=yes
|
---|
12626 | dynamic_linker='ldqnx.so'
|
---|
12627 | ;;
|
---|
12628 |
|
---|
12629 | openbsd* | bitrig*)
|
---|
12630 | version_type=sunos
|
---|
12631 | sys_lib_dlsearch_path_spec=/usr/lib
|
---|
12632 | need_lib_prefix=no
|
---|
12633 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
|
---|
12634 | need_version=no
|
---|
12635 | else
|
---|
12636 | need_version=yes
|
---|
12637 | fi
|
---|
12638 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
|
---|
12639 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
---|
12640 | shlibpath_var=LD_LIBRARY_PATH
|
---|
12641 | shlibpath_overrides_runpath=yes
|
---|
12642 | ;;
|
---|
12643 |
|
---|
12644 | os2*)
|
---|
12645 | libname_spec='$name'
|
---|
12646 | version_type=windows
|
---|
12647 | shrext_cmds=.dll
|
---|
12648 | need_version=no
|
---|
12649 | need_lib_prefix=no
|
---|
12650 | # OS/2 can only load a DLL with a base name of 8 characters or less.
|
---|
12651 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
|
---|
12652 | v=$($ECHO $release$versuffix | tr -d .-);
|
---|
12653 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
|
---|
12654 | $ECHO $n$v`$shared_ext'
|
---|
12655 | library_names_spec='${libname}_dll.$libext'
|
---|
12656 | dynamic_linker='OS/2 ld.exe'
|
---|
12657 | shlibpath_var=BEGINLIBPATH
|
---|
12658 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
---|
12659 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
---|
12660 | postinstall_cmds='base_file=`basename \$file`~
|
---|
12661 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
|
---|
12662 | dldir=$destdir/`dirname \$dlpath`~
|
---|
12663 | test -d \$dldir || mkdir -p \$dldir~
|
---|
12664 | $install_prog $dir/$dlname \$dldir/$dlname~
|
---|
12665 | chmod a+x \$dldir/$dlname~
|
---|
12666 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
|
---|
12667 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
|
---|
12668 | fi'
|
---|
12669 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
|
---|
12670 | dlpath=$dir/\$dldll~
|
---|
12671 | $RM \$dlpath'
|
---|
12672 | ;;
|
---|
12673 |
|
---|
12674 | osf3* | osf4* | osf5*)
|
---|
12675 | version_type=osf
|
---|
12676 | need_lib_prefix=no
|
---|
12677 | need_version=no
|
---|
12678 | soname_spec='$libname$release$shared_ext$major'
|
---|
12679 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
12680 | shlibpath_var=LD_LIBRARY_PATH
|
---|
12681 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
---|
12682 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
---|
12683 | ;;
|
---|
12684 |
|
---|
12685 | rdos*)
|
---|
12686 | dynamic_linker=no
|
---|
12687 | ;;
|
---|
12688 |
|
---|
12689 | solaris*)
|
---|
12690 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
12691 | need_lib_prefix=no
|
---|
12692 | need_version=no
|
---|
12693 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
12694 | soname_spec='$libname$release$shared_ext$major'
|
---|
12695 | shlibpath_var=LD_LIBRARY_PATH
|
---|
12696 | shlibpath_overrides_runpath=yes
|
---|
12697 | hardcode_into_libs=yes
|
---|
12698 | # ldd complains unless libraries are executable
|
---|
12699 | postinstall_cmds='chmod +x $lib'
|
---|
12700 | ;;
|
---|
12701 |
|
---|
12702 | sunos4*)
|
---|
12703 | version_type=sunos
|
---|
12704 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
|
---|
12705 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
---|
12706 | shlibpath_var=LD_LIBRARY_PATH
|
---|
12707 | shlibpath_overrides_runpath=yes
|
---|
12708 | if test yes = "$with_gnu_ld"; then
|
---|
12709 | need_lib_prefix=no
|
---|
12710 | fi
|
---|
12711 | need_version=yes
|
---|
12712 | ;;
|
---|
12713 |
|
---|
12714 | sysv4 | sysv4.3*)
|
---|
12715 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
12716 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
12717 | soname_spec='$libname$release$shared_ext$major'
|
---|
12718 | shlibpath_var=LD_LIBRARY_PATH
|
---|
12719 | case $host_vendor in
|
---|
12720 | sni)
|
---|
12721 | shlibpath_overrides_runpath=no
|
---|
12722 | need_lib_prefix=no
|
---|
12723 | runpath_var=LD_RUN_PATH
|
---|
12724 | ;;
|
---|
12725 | siemens)
|
---|
12726 | need_lib_prefix=no
|
---|
12727 | ;;
|
---|
12728 | motorola)
|
---|
12729 | need_lib_prefix=no
|
---|
12730 | need_version=no
|
---|
12731 | shlibpath_overrides_runpath=no
|
---|
12732 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
---|
12733 | ;;
|
---|
12734 | esac
|
---|
12735 | ;;
|
---|
12736 |
|
---|
12737 | sysv4*MP*)
|
---|
12738 | if test -d /usr/nec; then
|
---|
12739 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
12740 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
|
---|
12741 | soname_spec='$libname$shared_ext.$major'
|
---|
12742 | shlibpath_var=LD_LIBRARY_PATH
|
---|
12743 | fi
|
---|
12744 | ;;
|
---|
12745 |
|
---|
12746 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
---|
12747 | version_type=sco
|
---|
12748 | need_lib_prefix=no
|
---|
12749 | need_version=no
|
---|
12750 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
|
---|
12751 | soname_spec='$libname$release$shared_ext$major'
|
---|
12752 | shlibpath_var=LD_LIBRARY_PATH
|
---|
12753 | shlibpath_overrides_runpath=yes
|
---|
12754 | hardcode_into_libs=yes
|
---|
12755 | if test yes = "$with_gnu_ld"; then
|
---|
12756 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
|
---|
12757 | else
|
---|
12758 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
|
---|
12759 | case $host_os in
|
---|
12760 | sco3.2v5*)
|
---|
12761 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
|
---|
12762 | ;;
|
---|
12763 | esac
|
---|
12764 | fi
|
---|
12765 | sys_lib_dlsearch_path_spec='/usr/lib'
|
---|
12766 | ;;
|
---|
12767 |
|
---|
12768 | tpf*)
|
---|
12769 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
|
---|
12770 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
12771 | need_lib_prefix=no
|
---|
12772 | need_version=no
|
---|
12773 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
12774 | shlibpath_var=LD_LIBRARY_PATH
|
---|
12775 | shlibpath_overrides_runpath=no
|
---|
12776 | hardcode_into_libs=yes
|
---|
12777 | ;;
|
---|
12778 |
|
---|
12779 | uts4*)
|
---|
12780 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
12781 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
12782 | soname_spec='$libname$release$shared_ext$major'
|
---|
12783 | shlibpath_var=LD_LIBRARY_PATH
|
---|
12784 | ;;
|
---|
12785 |
|
---|
12786 | *)
|
---|
12787 | dynamic_linker=no
|
---|
12788 | ;;
|
---|
12789 | esac
|
---|
12790 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
|
---|
12791 | printf "%s\n" "$dynamic_linker" >&6; }
|
---|
12792 | test no = "$dynamic_linker" && can_build_shared=no
|
---|
12793 |
|
---|
12794 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
---|
12795 | if test yes = "$GCC"; then
|
---|
12796 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
---|
12797 | fi
|
---|
12798 |
|
---|
12799 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
|
---|
12800 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
|
---|
12801 | fi
|
---|
12802 |
|
---|
12803 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
|
---|
12804 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
|
---|
12805 | fi
|
---|
12806 |
|
---|
12807 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
|
---|
12808 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
|
---|
12809 |
|
---|
12810 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
|
---|
12811 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
|
---|
12812 |
|
---|
12813 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
|
---|
12814 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
|
---|
12815 |
|
---|
12816 |
|
---|
12817 |
|
---|
12818 |
|
---|
12819 |
|
---|
12820 |
|
---|
12821 |
|
---|
12822 |
|
---|
12823 |
|
---|
12824 |
|
---|
12825 |
|
---|
12826 |
|
---|
12827 |
|
---|
12828 |
|
---|
12829 |
|
---|
12830 |
|
---|
12831 |
|
---|
12832 |
|
---|
12833 |
|
---|
12834 |
|
---|
12835 |
|
---|
12836 |
|
---|
12837 |
|
---|
12838 |
|
---|
12839 |
|
---|
12840 |
|
---|
12841 |
|
---|
12842 |
|
---|
12843 |
|
---|
12844 |
|
---|
12845 |
|
---|
12846 |
|
---|
12847 |
|
---|
12848 |
|
---|
12849 |
|
---|
12850 |
|
---|
12851 |
|
---|
12852 |
|
---|
12853 |
|
---|
12854 |
|
---|
12855 |
|
---|
12856 |
|
---|
12857 |
|
---|
12858 |
|
---|
12859 |
|
---|
12860 |
|
---|
12861 |
|
---|
12862 |
|
---|
12863 |
|
---|
12864 |
|
---|
12865 |
|
---|
12866 |
|
---|
12867 |
|
---|
12868 |
|
---|
12869 |
|
---|
12870 |
|
---|
12871 |
|
---|
12872 |
|
---|
12873 |
|
---|
12874 |
|
---|
12875 |
|
---|
12876 |
|
---|
12877 |
|
---|
12878 |
|
---|
12879 |
|
---|
12880 |
|
---|
12881 |
|
---|
12882 |
|
---|
12883 |
|
---|
12884 |
|
---|
12885 |
|
---|
12886 |
|
---|
12887 |
|
---|
12888 |
|
---|
12889 |
|
---|
12890 |
|
---|
12891 |
|
---|
12892 |
|
---|
12893 |
|
---|
12894 |
|
---|
12895 |
|
---|
12896 |
|
---|
12897 |
|
---|
12898 |
|
---|
12899 |
|
---|
12900 |
|
---|
12901 |
|
---|
12902 |
|
---|
12903 |
|
---|
12904 |
|
---|
12905 |
|
---|
12906 |
|
---|
12907 |
|
---|
12908 |
|
---|
12909 |
|
---|
12910 |
|
---|
12911 |
|
---|
12912 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
|
---|
12913 | printf %s "checking how to hardcode library paths into programs... " >&6; }
|
---|
12914 | hardcode_action=
|
---|
12915 | if test -n "$hardcode_libdir_flag_spec" ||
|
---|
12916 | test -n "$runpath_var" ||
|
---|
12917 | test yes = "$hardcode_automatic"; then
|
---|
12918 |
|
---|
12919 | # We can hardcode non-existent directories.
|
---|
12920 | if test no != "$hardcode_direct" &&
|
---|
12921 | # If the only mechanism to avoid hardcoding is shlibpath_var, we
|
---|
12922 | # have to relink, otherwise we might link with an installed library
|
---|
12923 | # when we should be linking with a yet-to-be-installed one
|
---|
12924 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
|
---|
12925 | test no != "$hardcode_minus_L"; then
|
---|
12926 | # Linking always hardcodes the temporary library directory.
|
---|
12927 | hardcode_action=relink
|
---|
12928 | else
|
---|
12929 | # We can link without hardcoding, and we can hardcode nonexisting dirs.
|
---|
12930 | hardcode_action=immediate
|
---|
12931 | fi
|
---|
12932 | else
|
---|
12933 | # We cannot hardcode anything, or else we can only hardcode existing
|
---|
12934 | # directories.
|
---|
12935 | hardcode_action=unsupported
|
---|
12936 | fi
|
---|
12937 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
|
---|
12938 | printf "%s\n" "$hardcode_action" >&6; }
|
---|
12939 |
|
---|
12940 | if test relink = "$hardcode_action" ||
|
---|
12941 | test yes = "$inherit_rpath"; then
|
---|
12942 | # Fast installation is not supported
|
---|
12943 | enable_fast_install=no
|
---|
12944 | elif test yes = "$shlibpath_overrides_runpath" ||
|
---|
12945 | test no = "$enable_shared"; then
|
---|
12946 | # Fast installation is not necessary
|
---|
12947 | enable_fast_install=needless
|
---|
12948 | fi
|
---|
12949 |
|
---|
12950 |
|
---|
12951 |
|
---|
12952 |
|
---|
12953 |
|
---|
12954 |
|
---|
12955 | if test yes != "$enable_dlopen"; then
|
---|
12956 | enable_dlopen=unknown
|
---|
12957 | enable_dlopen_self=unknown
|
---|
12958 | enable_dlopen_self_static=unknown
|
---|
12959 | else
|
---|
12960 | lt_cv_dlopen=no
|
---|
12961 | lt_cv_dlopen_libs=
|
---|
12962 |
|
---|
12963 | case $host_os in
|
---|
12964 | beos*)
|
---|
12965 | lt_cv_dlopen=load_add_on
|
---|
12966 | lt_cv_dlopen_libs=
|
---|
12967 | lt_cv_dlopen_self=yes
|
---|
12968 | ;;
|
---|
12969 |
|
---|
12970 | mingw* | pw32* | cegcc*)
|
---|
12971 | lt_cv_dlopen=LoadLibrary
|
---|
12972 | lt_cv_dlopen_libs=
|
---|
12973 | ;;
|
---|
12974 |
|
---|
12975 | cygwin*)
|
---|
12976 | lt_cv_dlopen=dlopen
|
---|
12977 | lt_cv_dlopen_libs=
|
---|
12978 | ;;
|
---|
12979 |
|
---|
12980 | darwin*)
|
---|
12981 | # if libdl is installed we need to link against it
|
---|
12982 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
|
---|
12983 | printf %s "checking for dlopen in -ldl... " >&6; }
|
---|
12984 | if test ${ac_cv_lib_dl_dlopen+y}
|
---|
12985 | then :
|
---|
12986 | printf %s "(cached) " >&6
|
---|
12987 | else case e in #(
|
---|
12988 | e) ac_check_lib_save_LIBS=$LIBS
|
---|
12989 | LIBS="-ldl $LIBS"
|
---|
12990 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
12991 | /* end confdefs.h. */
|
---|
12992 |
|
---|
12993 | /* Override any GCC internal prototype to avoid an error.
|
---|
12994 | Use char because int might match the return type of a GCC
|
---|
12995 | builtin and then its argument prototype would still apply.
|
---|
12996 | The 'extern "C"' is for builds by C++ compilers;
|
---|
12997 | although this is not generally supported in C code supporting it here
|
---|
12998 | has little cost and some practical benefit (sr 110532). */
|
---|
12999 | #ifdef __cplusplus
|
---|
13000 | extern "C"
|
---|
13001 | #endif
|
---|
13002 | char dlopen (void);
|
---|
13003 | int
|
---|
13004 | main (void)
|
---|
13005 | {
|
---|
13006 | return dlopen ();
|
---|
13007 | ;
|
---|
13008 | return 0;
|
---|
13009 | }
|
---|
13010 | _ACEOF
|
---|
13011 | if ac_fn_c_try_link "$LINENO"
|
---|
13012 | then :
|
---|
13013 | ac_cv_lib_dl_dlopen=yes
|
---|
13014 | else case e in #(
|
---|
13015 | e) ac_cv_lib_dl_dlopen=no ;;
|
---|
13016 | esac
|
---|
13017 | fi
|
---|
13018 | rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
---|
13019 | conftest$ac_exeext conftest.$ac_ext
|
---|
13020 | LIBS=$ac_check_lib_save_LIBS ;;
|
---|
13021 | esac
|
---|
13022 | fi
|
---|
13023 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
|
---|
13024 | printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
|
---|
13025 | if test "x$ac_cv_lib_dl_dlopen" = xyes
|
---|
13026 | then :
|
---|
13027 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
|
---|
13028 | else case e in #(
|
---|
13029 | e)
|
---|
13030 | lt_cv_dlopen=dyld
|
---|
13031 | lt_cv_dlopen_libs=
|
---|
13032 | lt_cv_dlopen_self=yes
|
---|
13033 | ;;
|
---|
13034 | esac
|
---|
13035 | fi
|
---|
13036 |
|
---|
13037 | ;;
|
---|
13038 |
|
---|
13039 | tpf*)
|
---|
13040 | # Don't try to run any link tests for TPF. We know it's impossible
|
---|
13041 | # because TPF is a cross-compiler, and we know how we open DSOs.
|
---|
13042 | lt_cv_dlopen=dlopen
|
---|
13043 | lt_cv_dlopen_libs=
|
---|
13044 | lt_cv_dlopen_self=no
|
---|
13045 | ;;
|
---|
13046 |
|
---|
13047 | *)
|
---|
13048 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
|
---|
13049 | if test "x$ac_cv_func_shl_load" = xyes
|
---|
13050 | then :
|
---|
13051 | lt_cv_dlopen=shl_load
|
---|
13052 | else case e in #(
|
---|
13053 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
|
---|
13054 | printf %s "checking for shl_load in -ldld... " >&6; }
|
---|
13055 | if test ${ac_cv_lib_dld_shl_load+y}
|
---|
13056 | then :
|
---|
13057 | printf %s "(cached) " >&6
|
---|
13058 | else case e in #(
|
---|
13059 | e) ac_check_lib_save_LIBS=$LIBS
|
---|
13060 | LIBS="-ldld $LIBS"
|
---|
13061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
13062 | /* end confdefs.h. */
|
---|
13063 |
|
---|
13064 | /* Override any GCC internal prototype to avoid an error.
|
---|
13065 | Use char because int might match the return type of a GCC
|
---|
13066 | builtin and then its argument prototype would still apply.
|
---|
13067 | The 'extern "C"' is for builds by C++ compilers;
|
---|
13068 | although this is not generally supported in C code supporting it here
|
---|
13069 | has little cost and some practical benefit (sr 110532). */
|
---|
13070 | #ifdef __cplusplus
|
---|
13071 | extern "C"
|
---|
13072 | #endif
|
---|
13073 | char shl_load (void);
|
---|
13074 | int
|
---|
13075 | main (void)
|
---|
13076 | {
|
---|
13077 | return shl_load ();
|
---|
13078 | ;
|
---|
13079 | return 0;
|
---|
13080 | }
|
---|
13081 | _ACEOF
|
---|
13082 | if ac_fn_c_try_link "$LINENO"
|
---|
13083 | then :
|
---|
13084 | ac_cv_lib_dld_shl_load=yes
|
---|
13085 | else case e in #(
|
---|
13086 | e) ac_cv_lib_dld_shl_load=no ;;
|
---|
13087 | esac
|
---|
13088 | fi
|
---|
13089 | rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
---|
13090 | conftest$ac_exeext conftest.$ac_ext
|
---|
13091 | LIBS=$ac_check_lib_save_LIBS ;;
|
---|
13092 | esac
|
---|
13093 | fi
|
---|
13094 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
|
---|
13095 | printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
|
---|
13096 | if test "x$ac_cv_lib_dld_shl_load" = xyes
|
---|
13097 | then :
|
---|
13098 | lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
|
---|
13099 | else case e in #(
|
---|
13100 | e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
|
---|
13101 | if test "x$ac_cv_func_dlopen" = xyes
|
---|
13102 | then :
|
---|
13103 | lt_cv_dlopen=dlopen
|
---|
13104 | else case e in #(
|
---|
13105 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
|
---|
13106 | printf %s "checking for dlopen in -ldl... " >&6; }
|
---|
13107 | if test ${ac_cv_lib_dl_dlopen+y}
|
---|
13108 | then :
|
---|
13109 | printf %s "(cached) " >&6
|
---|
13110 | else case e in #(
|
---|
13111 | e) ac_check_lib_save_LIBS=$LIBS
|
---|
13112 | LIBS="-ldl $LIBS"
|
---|
13113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
13114 | /* end confdefs.h. */
|
---|
13115 |
|
---|
13116 | /* Override any GCC internal prototype to avoid an error.
|
---|
13117 | Use char because int might match the return type of a GCC
|
---|
13118 | builtin and then its argument prototype would still apply.
|
---|
13119 | The 'extern "C"' is for builds by C++ compilers;
|
---|
13120 | although this is not generally supported in C code supporting it here
|
---|
13121 | has little cost and some practical benefit (sr 110532). */
|
---|
13122 | #ifdef __cplusplus
|
---|
13123 | extern "C"
|
---|
13124 | #endif
|
---|
13125 | char dlopen (void);
|
---|
13126 | int
|
---|
13127 | main (void)
|
---|
13128 | {
|
---|
13129 | return dlopen ();
|
---|
13130 | ;
|
---|
13131 | return 0;
|
---|
13132 | }
|
---|
13133 | _ACEOF
|
---|
13134 | if ac_fn_c_try_link "$LINENO"
|
---|
13135 | then :
|
---|
13136 | ac_cv_lib_dl_dlopen=yes
|
---|
13137 | else case e in #(
|
---|
13138 | e) ac_cv_lib_dl_dlopen=no ;;
|
---|
13139 | esac
|
---|
13140 | fi
|
---|
13141 | rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
---|
13142 | conftest$ac_exeext conftest.$ac_ext
|
---|
13143 | LIBS=$ac_check_lib_save_LIBS ;;
|
---|
13144 | esac
|
---|
13145 | fi
|
---|
13146 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
|
---|
13147 | printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
|
---|
13148 | if test "x$ac_cv_lib_dl_dlopen" = xyes
|
---|
13149 | then :
|
---|
13150 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
|
---|
13151 | else case e in #(
|
---|
13152 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
|
---|
13153 | printf %s "checking for dlopen in -lsvld... " >&6; }
|
---|
13154 | if test ${ac_cv_lib_svld_dlopen+y}
|
---|
13155 | then :
|
---|
13156 | printf %s "(cached) " >&6
|
---|
13157 | else case e in #(
|
---|
13158 | e) ac_check_lib_save_LIBS=$LIBS
|
---|
13159 | LIBS="-lsvld $LIBS"
|
---|
13160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
13161 | /* end confdefs.h. */
|
---|
13162 |
|
---|
13163 | /* Override any GCC internal prototype to avoid an error.
|
---|
13164 | Use char because int might match the return type of a GCC
|
---|
13165 | builtin and then its argument prototype would still apply.
|
---|
13166 | The 'extern "C"' is for builds by C++ compilers;
|
---|
13167 | although this is not generally supported in C code supporting it here
|
---|
13168 | has little cost and some practical benefit (sr 110532). */
|
---|
13169 | #ifdef __cplusplus
|
---|
13170 | extern "C"
|
---|
13171 | #endif
|
---|
13172 | char dlopen (void);
|
---|
13173 | int
|
---|
13174 | main (void)
|
---|
13175 | {
|
---|
13176 | return dlopen ();
|
---|
13177 | ;
|
---|
13178 | return 0;
|
---|
13179 | }
|
---|
13180 | _ACEOF
|
---|
13181 | if ac_fn_c_try_link "$LINENO"
|
---|
13182 | then :
|
---|
13183 | ac_cv_lib_svld_dlopen=yes
|
---|
13184 | else case e in #(
|
---|
13185 | e) ac_cv_lib_svld_dlopen=no ;;
|
---|
13186 | esac
|
---|
13187 | fi
|
---|
13188 | rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
---|
13189 | conftest$ac_exeext conftest.$ac_ext
|
---|
13190 | LIBS=$ac_check_lib_save_LIBS ;;
|
---|
13191 | esac
|
---|
13192 | fi
|
---|
13193 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
|
---|
13194 | printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
|
---|
13195 | if test "x$ac_cv_lib_svld_dlopen" = xyes
|
---|
13196 | then :
|
---|
13197 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
|
---|
13198 | else case e in #(
|
---|
13199 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
|
---|
13200 | printf %s "checking for dld_link in -ldld... " >&6; }
|
---|
13201 | if test ${ac_cv_lib_dld_dld_link+y}
|
---|
13202 | then :
|
---|
13203 | printf %s "(cached) " >&6
|
---|
13204 | else case e in #(
|
---|
13205 | e) ac_check_lib_save_LIBS=$LIBS
|
---|
13206 | LIBS="-ldld $LIBS"
|
---|
13207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
13208 | /* end confdefs.h. */
|
---|
13209 |
|
---|
13210 | /* Override any GCC internal prototype to avoid an error.
|
---|
13211 | Use char because int might match the return type of a GCC
|
---|
13212 | builtin and then its argument prototype would still apply.
|
---|
13213 | The 'extern "C"' is for builds by C++ compilers;
|
---|
13214 | although this is not generally supported in C code supporting it here
|
---|
13215 | has little cost and some practical benefit (sr 110532). */
|
---|
13216 | #ifdef __cplusplus
|
---|
13217 | extern "C"
|
---|
13218 | #endif
|
---|
13219 | char dld_link (void);
|
---|
13220 | int
|
---|
13221 | main (void)
|
---|
13222 | {
|
---|
13223 | return dld_link ();
|
---|
13224 | ;
|
---|
13225 | return 0;
|
---|
13226 | }
|
---|
13227 | _ACEOF
|
---|
13228 | if ac_fn_c_try_link "$LINENO"
|
---|
13229 | then :
|
---|
13230 | ac_cv_lib_dld_dld_link=yes
|
---|
13231 | else case e in #(
|
---|
13232 | e) ac_cv_lib_dld_dld_link=no ;;
|
---|
13233 | esac
|
---|
13234 | fi
|
---|
13235 | rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
---|
13236 | conftest$ac_exeext conftest.$ac_ext
|
---|
13237 | LIBS=$ac_check_lib_save_LIBS ;;
|
---|
13238 | esac
|
---|
13239 | fi
|
---|
13240 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
|
---|
13241 | printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
|
---|
13242 | if test "x$ac_cv_lib_dld_dld_link" = xyes
|
---|
13243 | then :
|
---|
13244 | lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
|
---|
13245 | fi
|
---|
13246 |
|
---|
13247 | ;;
|
---|
13248 | esac
|
---|
13249 | fi
|
---|
13250 |
|
---|
13251 | ;;
|
---|
13252 | esac
|
---|
13253 | fi
|
---|
13254 |
|
---|
13255 | ;;
|
---|
13256 | esac
|
---|
13257 | fi
|
---|
13258 |
|
---|
13259 | ;;
|
---|
13260 | esac
|
---|
13261 | fi
|
---|
13262 |
|
---|
13263 | ;;
|
---|
13264 | esac
|
---|
13265 | fi
|
---|
13266 |
|
---|
13267 | ;;
|
---|
13268 | esac
|
---|
13269 |
|
---|
13270 | if test no = "$lt_cv_dlopen"; then
|
---|
13271 | enable_dlopen=no
|
---|
13272 | else
|
---|
13273 | enable_dlopen=yes
|
---|
13274 | fi
|
---|
13275 |
|
---|
13276 | case $lt_cv_dlopen in
|
---|
13277 | dlopen)
|
---|
13278 | save_CPPFLAGS=$CPPFLAGS
|
---|
13279 | test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
|
---|
13280 |
|
---|
13281 | save_LDFLAGS=$LDFLAGS
|
---|
13282 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
|
---|
13283 |
|
---|
13284 | save_LIBS=$LIBS
|
---|
13285 | LIBS="$lt_cv_dlopen_libs $LIBS"
|
---|
13286 |
|
---|
13287 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
|
---|
13288 | printf %s "checking whether a program can dlopen itself... " >&6; }
|
---|
13289 | if test ${lt_cv_dlopen_self+y}
|
---|
13290 | then :
|
---|
13291 | printf %s "(cached) " >&6
|
---|
13292 | else case e in #(
|
---|
13293 | e) if test yes = "$cross_compiling"; then :
|
---|
13294 | lt_cv_dlopen_self=cross
|
---|
13295 | else
|
---|
13296 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
---|
13297 | lt_status=$lt_dlunknown
|
---|
13298 | cat > conftest.$ac_ext <<_LT_EOF
|
---|
13299 | #line $LINENO "configure"
|
---|
13300 | #include "confdefs.h"
|
---|
13301 |
|
---|
13302 | #if HAVE_DLFCN_H
|
---|
13303 | #include <dlfcn.h>
|
---|
13304 | #endif
|
---|
13305 |
|
---|
13306 | #include <stdio.h>
|
---|
13307 |
|
---|
13308 | #ifdef RTLD_GLOBAL
|
---|
13309 | # define LT_DLGLOBAL RTLD_GLOBAL
|
---|
13310 | #else
|
---|
13311 | # ifdef DL_GLOBAL
|
---|
13312 | # define LT_DLGLOBAL DL_GLOBAL
|
---|
13313 | # else
|
---|
13314 | # define LT_DLGLOBAL 0
|
---|
13315 | # endif
|
---|
13316 | #endif
|
---|
13317 |
|
---|
13318 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
---|
13319 | find out it does not work in some platform. */
|
---|
13320 | #ifndef LT_DLLAZY_OR_NOW
|
---|
13321 | # ifdef RTLD_LAZY
|
---|
13322 | # define LT_DLLAZY_OR_NOW RTLD_LAZY
|
---|
13323 | # else
|
---|
13324 | # ifdef DL_LAZY
|
---|
13325 | # define LT_DLLAZY_OR_NOW DL_LAZY
|
---|
13326 | # else
|
---|
13327 | # ifdef RTLD_NOW
|
---|
13328 | # define LT_DLLAZY_OR_NOW RTLD_NOW
|
---|
13329 | # else
|
---|
13330 | # ifdef DL_NOW
|
---|
13331 | # define LT_DLLAZY_OR_NOW DL_NOW
|
---|
13332 | # else
|
---|
13333 | # define LT_DLLAZY_OR_NOW 0
|
---|
13334 | # endif
|
---|
13335 | # endif
|
---|
13336 | # endif
|
---|
13337 | # endif
|
---|
13338 | #endif
|
---|
13339 |
|
---|
13340 | /* When -fvisibility=hidden is used, assume the code has been annotated
|
---|
13341 | correspondingly for the symbols needed. */
|
---|
13342 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
---|
13343 | int fnord () __attribute__((visibility("default")));
|
---|
13344 | #endif
|
---|
13345 |
|
---|
13346 | int fnord () { return 42; }
|
---|
13347 | int main ()
|
---|
13348 | {
|
---|
13349 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
---|
13350 | int status = $lt_dlunknown;
|
---|
13351 |
|
---|
13352 | if (self)
|
---|
13353 | {
|
---|
13354 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
---|
13355 | else
|
---|
13356 | {
|
---|
13357 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
---|
13358 | else puts (dlerror ());
|
---|
13359 | }
|
---|
13360 | /* dlclose (self); */
|
---|
13361 | }
|
---|
13362 | else
|
---|
13363 | puts (dlerror ());
|
---|
13364 |
|
---|
13365 | return status;
|
---|
13366 | }
|
---|
13367 | _LT_EOF
|
---|
13368 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
|
---|
13369 | (eval $ac_link) 2>&5
|
---|
13370 | ac_status=$?
|
---|
13371 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
13372 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
|
---|
13373 | (./conftest; exit; ) >&5 2>/dev/null
|
---|
13374 | lt_status=$?
|
---|
13375 | case x$lt_status in
|
---|
13376 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
|
---|
13377 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
|
---|
13378 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
|
---|
13379 | esac
|
---|
13380 | else :
|
---|
13381 | # compilation failed
|
---|
13382 | lt_cv_dlopen_self=no
|
---|
13383 | fi
|
---|
13384 | fi
|
---|
13385 | rm -fr conftest*
|
---|
13386 |
|
---|
13387 | ;;
|
---|
13388 | esac
|
---|
13389 | fi
|
---|
13390 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
|
---|
13391 | printf "%s\n" "$lt_cv_dlopen_self" >&6; }
|
---|
13392 |
|
---|
13393 | if test yes = "$lt_cv_dlopen_self"; then
|
---|
13394 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
|
---|
13395 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
|
---|
13396 | printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
|
---|
13397 | if test ${lt_cv_dlopen_self_static+y}
|
---|
13398 | then :
|
---|
13399 | printf %s "(cached) " >&6
|
---|
13400 | else case e in #(
|
---|
13401 | e) if test yes = "$cross_compiling"; then :
|
---|
13402 | lt_cv_dlopen_self_static=cross
|
---|
13403 | else
|
---|
13404 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
---|
13405 | lt_status=$lt_dlunknown
|
---|
13406 | cat > conftest.$ac_ext <<_LT_EOF
|
---|
13407 | #line $LINENO "configure"
|
---|
13408 | #include "confdefs.h"
|
---|
13409 |
|
---|
13410 | #if HAVE_DLFCN_H
|
---|
13411 | #include <dlfcn.h>
|
---|
13412 | #endif
|
---|
13413 |
|
---|
13414 | #include <stdio.h>
|
---|
13415 |
|
---|
13416 | #ifdef RTLD_GLOBAL
|
---|
13417 | # define LT_DLGLOBAL RTLD_GLOBAL
|
---|
13418 | #else
|
---|
13419 | # ifdef DL_GLOBAL
|
---|
13420 | # define LT_DLGLOBAL DL_GLOBAL
|
---|
13421 | # else
|
---|
13422 | # define LT_DLGLOBAL 0
|
---|
13423 | # endif
|
---|
13424 | #endif
|
---|
13425 |
|
---|
13426 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
---|
13427 | find out it does not work in some platform. */
|
---|
13428 | #ifndef LT_DLLAZY_OR_NOW
|
---|
13429 | # ifdef RTLD_LAZY
|
---|
13430 | # define LT_DLLAZY_OR_NOW RTLD_LAZY
|
---|
13431 | # else
|
---|
13432 | # ifdef DL_LAZY
|
---|
13433 | # define LT_DLLAZY_OR_NOW DL_LAZY
|
---|
13434 | # else
|
---|
13435 | # ifdef RTLD_NOW
|
---|
13436 | # define LT_DLLAZY_OR_NOW RTLD_NOW
|
---|
13437 | # else
|
---|
13438 | # ifdef DL_NOW
|
---|
13439 | # define LT_DLLAZY_OR_NOW DL_NOW
|
---|
13440 | # else
|
---|
13441 | # define LT_DLLAZY_OR_NOW 0
|
---|
13442 | # endif
|
---|
13443 | # endif
|
---|
13444 | # endif
|
---|
13445 | # endif
|
---|
13446 | #endif
|
---|
13447 |
|
---|
13448 | /* When -fvisibility=hidden is used, assume the code has been annotated
|
---|
13449 | correspondingly for the symbols needed. */
|
---|
13450 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
---|
13451 | int fnord () __attribute__((visibility("default")));
|
---|
13452 | #endif
|
---|
13453 |
|
---|
13454 | int fnord () { return 42; }
|
---|
13455 | int main ()
|
---|
13456 | {
|
---|
13457 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
---|
13458 | int status = $lt_dlunknown;
|
---|
13459 |
|
---|
13460 | if (self)
|
---|
13461 | {
|
---|
13462 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
---|
13463 | else
|
---|
13464 | {
|
---|
13465 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
---|
13466 | else puts (dlerror ());
|
---|
13467 | }
|
---|
13468 | /* dlclose (self); */
|
---|
13469 | }
|
---|
13470 | else
|
---|
13471 | puts (dlerror ());
|
---|
13472 |
|
---|
13473 | return status;
|
---|
13474 | }
|
---|
13475 | _LT_EOF
|
---|
13476 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
|
---|
13477 | (eval $ac_link) 2>&5
|
---|
13478 | ac_status=$?
|
---|
13479 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
13480 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
|
---|
13481 | (./conftest; exit; ) >&5 2>/dev/null
|
---|
13482 | lt_status=$?
|
---|
13483 | case x$lt_status in
|
---|
13484 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
|
---|
13485 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
|
---|
13486 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
|
---|
13487 | esac
|
---|
13488 | else :
|
---|
13489 | # compilation failed
|
---|
13490 | lt_cv_dlopen_self_static=no
|
---|
13491 | fi
|
---|
13492 | fi
|
---|
13493 | rm -fr conftest*
|
---|
13494 |
|
---|
13495 | ;;
|
---|
13496 | esac
|
---|
13497 | fi
|
---|
13498 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
|
---|
13499 | printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
|
---|
13500 | fi
|
---|
13501 |
|
---|
13502 | CPPFLAGS=$save_CPPFLAGS
|
---|
13503 | LDFLAGS=$save_LDFLAGS
|
---|
13504 | LIBS=$save_LIBS
|
---|
13505 | ;;
|
---|
13506 | esac
|
---|
13507 |
|
---|
13508 | case $lt_cv_dlopen_self in
|
---|
13509 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
|
---|
13510 | *) enable_dlopen_self=unknown ;;
|
---|
13511 | esac
|
---|
13512 |
|
---|
13513 | case $lt_cv_dlopen_self_static in
|
---|
13514 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
|
---|
13515 | *) enable_dlopen_self_static=unknown ;;
|
---|
13516 | esac
|
---|
13517 | fi
|
---|
13518 |
|
---|
13519 |
|
---|
13520 |
|
---|
13521 |
|
---|
13522 |
|
---|
13523 |
|
---|
13524 |
|
---|
13525 |
|
---|
13526 |
|
---|
13527 |
|
---|
13528 |
|
---|
13529 |
|
---|
13530 |
|
---|
13531 |
|
---|
13532 |
|
---|
13533 |
|
---|
13534 |
|
---|
13535 | striplib=
|
---|
13536 | old_striplib=
|
---|
13537 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
|
---|
13538 | printf %s "checking whether stripping libraries is possible... " >&6; }
|
---|
13539 | if test -z "$STRIP"; then
|
---|
13540 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
13541 | printf "%s\n" "no" >&6; }
|
---|
13542 | else
|
---|
13543 | if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
|
---|
13544 | old_striplib="$STRIP --strip-debug"
|
---|
13545 | striplib="$STRIP --strip-unneeded"
|
---|
13546 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
13547 | printf "%s\n" "yes" >&6; }
|
---|
13548 | else
|
---|
13549 | case $host_os in
|
---|
13550 | darwin*)
|
---|
13551 | # FIXME - insert some real tests, host_os isn't really good enough
|
---|
13552 | striplib="$STRIP -x"
|
---|
13553 | old_striplib="$STRIP -S"
|
---|
13554 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
13555 | printf "%s\n" "yes" >&6; }
|
---|
13556 | ;;
|
---|
13557 | freebsd*)
|
---|
13558 | if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
|
---|
13559 | old_striplib="$STRIP --strip-debug"
|
---|
13560 | striplib="$STRIP --strip-unneeded"
|
---|
13561 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
13562 | printf "%s\n" "yes" >&6; }
|
---|
13563 | else
|
---|
13564 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
13565 | printf "%s\n" "no" >&6; }
|
---|
13566 | fi
|
---|
13567 | ;;
|
---|
13568 | *)
|
---|
13569 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
13570 | printf "%s\n" "no" >&6; }
|
---|
13571 | ;;
|
---|
13572 | esac
|
---|
13573 | fi
|
---|
13574 | fi
|
---|
13575 |
|
---|
13576 |
|
---|
13577 |
|
---|
13578 |
|
---|
13579 |
|
---|
13580 |
|
---|
13581 |
|
---|
13582 |
|
---|
13583 |
|
---|
13584 |
|
---|
13585 |
|
---|
13586 |
|
---|
13587 | # Report what library types will actually be built
|
---|
13588 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
|
---|
13589 | printf %s "checking if libtool supports shared libraries... " >&6; }
|
---|
13590 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
|
---|
13591 | printf "%s\n" "$can_build_shared" >&6; }
|
---|
13592 |
|
---|
13593 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
|
---|
13594 | printf %s "checking whether to build shared libraries... " >&6; }
|
---|
13595 | test no = "$can_build_shared" && enable_shared=no
|
---|
13596 |
|
---|
13597 | # On AIX, shared libraries and static libraries use the same namespace, and
|
---|
13598 | # are all built from PIC.
|
---|
13599 | case $host_os in
|
---|
13600 | aix3*)
|
---|
13601 | test yes = "$enable_shared" && enable_static=no
|
---|
13602 | if test -n "$RANLIB"; then
|
---|
13603 | archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
---|
13604 | postinstall_cmds='$RANLIB $lib'
|
---|
13605 | fi
|
---|
13606 | ;;
|
---|
13607 |
|
---|
13608 | aix[4-9]*)
|
---|
13609 | if test ia64 != "$host_cpu"; then
|
---|
13610 | case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
|
---|
13611 | yes,aix,yes) ;; # shared object as lib.so file only
|
---|
13612 | yes,svr4,*) ;; # shared object as lib.so archive member only
|
---|
13613 | yes,*) enable_static=no ;; # shared object in lib.a archive as well
|
---|
13614 | esac
|
---|
13615 | fi
|
---|
13616 | ;;
|
---|
13617 | esac
|
---|
13618 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
|
---|
13619 | printf "%s\n" "$enable_shared" >&6; }
|
---|
13620 |
|
---|
13621 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
|
---|
13622 | printf %s "checking whether to build static libraries... " >&6; }
|
---|
13623 | # Make sure either enable_shared or enable_static is yes.
|
---|
13624 | test yes = "$enable_shared" || enable_static=yes
|
---|
13625 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
|
---|
13626 | printf "%s\n" "$enable_static" >&6; }
|
---|
13627 |
|
---|
13628 |
|
---|
13629 |
|
---|
13630 |
|
---|
13631 | fi
|
---|
13632 | ac_ext=c
|
---|
13633 | ac_cpp='$CPP $CPPFLAGS'
|
---|
13634 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
13635 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
13636 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
13637 |
|
---|
13638 | CC=$lt_save_CC
|
---|
13639 |
|
---|
13640 |
|
---|
13641 |
|
---|
13642 |
|
---|
13643 |
|
---|
13644 |
|
---|
13645 |
|
---|
13646 |
|
---|
13647 |
|
---|
13648 |
|
---|
13649 |
|
---|
13650 |
|
---|
13651 |
|
---|
13652 |
|
---|
13653 |
|
---|
13654 | ac_config_commands="$ac_config_commands libtool"
|
---|
13655 |
|
---|
13656 |
|
---|
13657 |
|
---|
13658 |
|
---|
13659 | # Only expand once:
|
---|
13660 |
|
---|
13661 |
|
---|
13662 |
|
---|
13663 |
|
---|
13664 |
|
---|
13665 |
|
---|
13666 | # Some awk implementations crash when confronted with pnglibconf.dfa.
|
---|
13667 | # Run a test now, to make sure this doesn't happen.
|
---|
13668 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if awk ($AWK) works" >&5
|
---|
13669 | printf %s "checking if awk ($AWK) works... " >&6; }
|
---|
13670 | if ${AWK} -f ${srcdir}/scripts/options.awk out="/dev/null" version=search\
|
---|
13671 | ${srcdir}/pngconf.h ${srcdir}/scripts/pnglibconf.dfa\
|
---|
13672 | ${srcdir}/pngusr.dfa 1>&2
|
---|
13673 | then
|
---|
13674 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
13675 | printf "%s\n" "yes" >&6; }
|
---|
13676 | else
|
---|
13677 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
|
---|
13678 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
|
---|
13679 | as_fn_error 1 "no
|
---|
13680 | See 'config.log' for more details" "$LINENO" 5; }
|
---|
13681 | fi
|
---|
13682 |
|
---|
13683 | # This is a remnant of the old cc -E validation, where it may have been
|
---|
13684 | # necessary to use a different preprocessor for .dfn files
|
---|
13685 | DFNCPP="$CPP"
|
---|
13686 |
|
---|
13687 |
|
---|
13688 | # Check whether --enable-tests was given.
|
---|
13689 | if test ${enable_tests+y}
|
---|
13690 | then :
|
---|
13691 | enableval=$enable_tests; enable_tests="$enableval"
|
---|
13692 | else case e in #(
|
---|
13693 | e) enable_tests=yes ;;
|
---|
13694 | esac
|
---|
13695 | fi
|
---|
13696 |
|
---|
13697 |
|
---|
13698 | if test "$enable_tests" != "no"; then
|
---|
13699 | ENABLE_TESTS_TRUE=
|
---|
13700 | ENABLE_TESTS_FALSE='#'
|
---|
13701 | else
|
---|
13702 | ENABLE_TESTS_TRUE='#'
|
---|
13703 | ENABLE_TESTS_FALSE=
|
---|
13704 | fi
|
---|
13705 |
|
---|
13706 |
|
---|
13707 | # Check whether --enable-tools was given.
|
---|
13708 | if test ${enable_tools+y}
|
---|
13709 | then :
|
---|
13710 | enableval=$enable_tools; enable_tools="$enableval"
|
---|
13711 | else case e in #(
|
---|
13712 | e) enable_tools=yes ;;
|
---|
13713 | esac
|
---|
13714 | fi
|
---|
13715 |
|
---|
13716 |
|
---|
13717 | if test "$enable_tools" != "no"; then
|
---|
13718 | ENABLE_TOOLS_TRUE=
|
---|
13719 | ENABLE_TOOLS_FALSE='#'
|
---|
13720 | else
|
---|
13721 | ENABLE_TOOLS_TRUE='#'
|
---|
13722 | ENABLE_TOOLS_FALSE=
|
---|
13723 | fi
|
---|
13724 |
|
---|
13725 |
|
---|
13726 | # -Werror cannot be passed to GCC in CFLAGS because configure will fail
|
---|
13727 | # (it checks the compiler with a program that generates a warning).
|
---|
13728 | # Add the following option to deal with this:
|
---|
13729 |
|
---|
13730 | # Check whether --enable-werror was given.
|
---|
13731 | if test ${enable_werror+y}
|
---|
13732 | then :
|
---|
13733 | enableval=$enable_werror; test "$enable_werror" = "yes" && enable_werror="-Werror"
|
---|
13734 | if test "$enable_werror" != "no"; then
|
---|
13735 | sav_CFLAGS="$CFLAGS"
|
---|
13736 | CFLAGS="$enable_werror $CFLAGS"
|
---|
13737 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler allows $enable_werror" >&5
|
---|
13738 | printf %s "checking if the compiler allows $enable_werror... " >&6; }
|
---|
13739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
13740 | /* end confdefs.h. */
|
---|
13741 |
|
---|
13742 | int main(int argc, char **argv){
|
---|
13743 | return argv[argc-1][0];
|
---|
13744 | }
|
---|
13745 | _ACEOF
|
---|
13746 | if ac_fn_c_try_compile "$LINENO"
|
---|
13747 | then :
|
---|
13748 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
13749 | printf "%s\n" "yes" >&6; }
|
---|
13750 | PNG_COPTS="$PNG_COPTS $enable_werror"
|
---|
13751 | else case e in #(
|
---|
13752 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
13753 | printf "%s\n" "no" >&6; } ;;
|
---|
13754 | esac
|
---|
13755 | fi
|
---|
13756 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
13757 | CFLAGS="$sav_CFLAGS"
|
---|
13758 | fi
|
---|
13759 | fi
|
---|
13760 |
|
---|
13761 |
|
---|
13762 | # For GCC 5 the default mode for C is -std=gnu11 instead of -std=gnu89.
|
---|
13763 | # In pngpriv.h we request just the POSIX 1003.1 and C89 APIs by defining
|
---|
13764 | # _POSIX_SOURCE to 1. This is incompatible with the new default mode, so
|
---|
13765 | # we test for that and force the "-std=c89" compiler option:
|
---|
13766 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we need to force back C standard to C89" >&5
|
---|
13767 | printf %s "checking if we need to force back C standard to C89... " >&6; }
|
---|
13768 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
13769 | /* end confdefs.h. */
|
---|
13770 |
|
---|
13771 | #define _POSIX_SOURCE 1
|
---|
13772 | #include <stdio.h>
|
---|
13773 |
|
---|
13774 | int
|
---|
13775 | main (void)
|
---|
13776 | {
|
---|
13777 |
|
---|
13778 | ;
|
---|
13779 | return 0;
|
---|
13780 | }
|
---|
13781 | _ACEOF
|
---|
13782 | if ac_fn_c_try_compile "$LINENO"
|
---|
13783 | then :
|
---|
13784 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
13785 | printf "%s\n" "no" >&6; }
|
---|
13786 | else case e in #(
|
---|
13787 | e)
|
---|
13788 | if test "x$GCC" != "xyes"; then
|
---|
13789 | as_fn_error $? "Forcing back to C89 is required but the flags are only known for GCC" "$LINENO" 5
|
---|
13790 | fi
|
---|
13791 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
13792 | printf "%s\n" "yes" >&6; }
|
---|
13793 | CFLAGS="$CFLAGS -std=c89"
|
---|
13794 | ;;
|
---|
13795 | esac
|
---|
13796 | fi
|
---|
13797 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
13798 |
|
---|
13799 | # Checks for structures and compiler characteristics.
|
---|
13800 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
13801 | printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
|
---|
13802 | if test ${ac_cv_struct_tm+y}
|
---|
13803 | then :
|
---|
13804 | printf %s "(cached) " >&6
|
---|
13805 | else case e in #(
|
---|
13806 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
13807 | /* end confdefs.h. */
|
---|
13808 | #include <sys/types.h>
|
---|
13809 | #include <time.h>
|
---|
13810 |
|
---|
13811 | int
|
---|
13812 | main (void)
|
---|
13813 | {
|
---|
13814 | struct tm tm;
|
---|
13815 | int *p = &tm.tm_sec;
|
---|
13816 | return !p;
|
---|
13817 | ;
|
---|
13818 | return 0;
|
---|
13819 | }
|
---|
13820 | _ACEOF
|
---|
13821 | if ac_fn_c_try_compile "$LINENO"
|
---|
13822 | then :
|
---|
13823 | ac_cv_struct_tm=time.h
|
---|
13824 | else case e in #(
|
---|
13825 | e) ac_cv_struct_tm=sys/time.h ;;
|
---|
13826 | esac
|
---|
13827 | fi
|
---|
13828 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
|
---|
13829 | esac
|
---|
13830 | fi
|
---|
13831 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
|
---|
13832 | printf "%s\n" "$ac_cv_struct_tm" >&6; }
|
---|
13833 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
13834 |
|
---|
13835 | printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
|
---|
13836 |
|
---|
13837 | fi
|
---|
13838 |
|
---|
13839 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
|
---|
13840 | printf %s "checking for C/C++ restrict keyword... " >&6; }
|
---|
13841 | if test ${ac_cv_c_restrict+y}
|
---|
13842 | then :
|
---|
13843 | printf %s "(cached) " >&6
|
---|
13844 | else case e in #(
|
---|
13845 | e) ac_cv_c_restrict=no
|
---|
13846 | # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
|
---|
13847 | # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
|
---|
13848 | # Put 'restrict' last, because C++ lacks it.
|
---|
13849 | for ac_kw in __restrict__ __restrict _Restrict restrict; do
|
---|
13850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
13851 | /* end confdefs.h. */
|
---|
13852 | typedef int *int_ptr;
|
---|
13853 | int foo (int_ptr $ac_kw ip) { return ip[0]; }
|
---|
13854 | int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
|
---|
13855 | int bar (int ip[$ac_kw]) { return ip[0]; }
|
---|
13856 |
|
---|
13857 | int
|
---|
13858 | main (void)
|
---|
13859 | {
|
---|
13860 | int s[1];
|
---|
13861 | int *$ac_kw t = s;
|
---|
13862 | t[0] = 0;
|
---|
13863 | return foo (t) + bar (t);
|
---|
13864 |
|
---|
13865 | ;
|
---|
13866 | return 0;
|
---|
13867 | }
|
---|
13868 | _ACEOF
|
---|
13869 | if ac_fn_c_try_compile "$LINENO"
|
---|
13870 | then :
|
---|
13871 | ac_cv_c_restrict=$ac_kw
|
---|
13872 | fi
|
---|
13873 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
13874 | test "$ac_cv_c_restrict" != no && break
|
---|
13875 | done
|
---|
13876 | ;;
|
---|
13877 | esac
|
---|
13878 | fi
|
---|
13879 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
|
---|
13880 | printf "%s\n" "$ac_cv_c_restrict" >&6; }
|
---|
13881 |
|
---|
13882 | case $ac_cv_c_restrict in
|
---|
13883 | restrict) ;;
|
---|
13884 | no) printf "%s\n" "#define restrict /**/" >>confdefs.h
|
---|
13885 | ;;
|
---|
13886 | *) printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h
|
---|
13887 | ;;
|
---|
13888 | esac
|
---|
13889 |
|
---|
13890 |
|
---|
13891 | # Checks for library functions.
|
---|
13892 |
|
---|
13893 | for ac_func in pow
|
---|
13894 | do :
|
---|
13895 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
|
---|
13896 | if test "x$ac_cv_func_pow" = xyes
|
---|
13897 | then :
|
---|
13898 | printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
|
---|
13899 |
|
---|
13900 | else case e in #(
|
---|
13901 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
|
---|
13902 | printf %s "checking for pow in -lm... " >&6; }
|
---|
13903 | if test ${ac_cv_lib_m_pow+y}
|
---|
13904 | then :
|
---|
13905 | printf %s "(cached) " >&6
|
---|
13906 | else case e in #(
|
---|
13907 | e) ac_check_lib_save_LIBS=$LIBS
|
---|
13908 | LIBS="-lm $LIBS"
|
---|
13909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
13910 | /* end confdefs.h. */
|
---|
13911 |
|
---|
13912 | /* Override any GCC internal prototype to avoid an error.
|
---|
13913 | Use char because int might match the return type of a GCC
|
---|
13914 | builtin and then its argument prototype would still apply.
|
---|
13915 | The 'extern "C"' is for builds by C++ compilers;
|
---|
13916 | although this is not generally supported in C code supporting it here
|
---|
13917 | has little cost and some practical benefit (sr 110532). */
|
---|
13918 | #ifdef __cplusplus
|
---|
13919 | extern "C"
|
---|
13920 | #endif
|
---|
13921 | char pow (void);
|
---|
13922 | int
|
---|
13923 | main (void)
|
---|
13924 | {
|
---|
13925 | return pow ();
|
---|
13926 | ;
|
---|
13927 | return 0;
|
---|
13928 | }
|
---|
13929 | _ACEOF
|
---|
13930 | if ac_fn_c_try_link "$LINENO"
|
---|
13931 | then :
|
---|
13932 | ac_cv_lib_m_pow=yes
|
---|
13933 | else case e in #(
|
---|
13934 | e) ac_cv_lib_m_pow=no ;;
|
---|
13935 | esac
|
---|
13936 | fi
|
---|
13937 | rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
---|
13938 | conftest$ac_exeext conftest.$ac_ext
|
---|
13939 | LIBS=$ac_check_lib_save_LIBS ;;
|
---|
13940 | esac
|
---|
13941 | fi
|
---|
13942 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
|
---|
13943 | printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
|
---|
13944 | if test "x$ac_cv_lib_m_pow" = xyes
|
---|
13945 | then :
|
---|
13946 | printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
|
---|
13947 |
|
---|
13948 | LIBS="-lm $LIBS"
|
---|
13949 |
|
---|
13950 | else case e in #(
|
---|
13951 | e) as_fn_error $? "cannot find pow" "$LINENO" 5 ;;
|
---|
13952 | esac
|
---|
13953 | fi
|
---|
13954 | ;;
|
---|
13955 | esac
|
---|
13956 | fi
|
---|
13957 |
|
---|
13958 | done
|
---|
13959 |
|
---|
13960 | # Some later POSIX 1003.1 functions are required for test programs, failure
|
---|
13961 | # here is soft (the corresponding test program is not built).
|
---|
13962 | ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
|
---|
13963 | if test "x$ac_cv_func_clock_gettime" = xyes
|
---|
13964 | then :
|
---|
13965 |
|
---|
13966 | else case e in #(
|
---|
13967 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: not building timepng" >&5
|
---|
13968 | printf "%s\n" "$as_me: WARNING: not building timepng" >&2;} ;;
|
---|
13969 | esac
|
---|
13970 | fi
|
---|
13971 |
|
---|
13972 | if test "$ac_cv_func_clock_gettime" = "yes"; then
|
---|
13973 | HAVE_CLOCK_GETTIME_TRUE=
|
---|
13974 | HAVE_CLOCK_GETTIME_FALSE='#'
|
---|
13975 | else
|
---|
13976 | HAVE_CLOCK_GETTIME_TRUE='#'
|
---|
13977 | HAVE_CLOCK_GETTIME_FALSE=
|
---|
13978 | fi
|
---|
13979 |
|
---|
13980 |
|
---|
13981 |
|
---|
13982 | # Check whether --with-zlib-prefix was given.
|
---|
13983 | if test ${with_zlib_prefix+y}
|
---|
13984 | then :
|
---|
13985 | withval=$with_zlib_prefix; ZPREFIX=${withval}
|
---|
13986 | else case e in #(
|
---|
13987 | e) ZPREFIX='z_' ;;
|
---|
13988 | esac
|
---|
13989 | fi
|
---|
13990 |
|
---|
13991 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
|
---|
13992 | printf %s "checking for zlibVersion in -lz... " >&6; }
|
---|
13993 | if test ${ac_cv_lib_z_zlibVersion+y}
|
---|
13994 | then :
|
---|
13995 | printf %s "(cached) " >&6
|
---|
13996 | else case e in #(
|
---|
13997 | e) ac_check_lib_save_LIBS=$LIBS
|
---|
13998 | LIBS="-lz $LIBS"
|
---|
13999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
14000 | /* end confdefs.h. */
|
---|
14001 |
|
---|
14002 | /* Override any GCC internal prototype to avoid an error.
|
---|
14003 | Use char because int might match the return type of a GCC
|
---|
14004 | builtin and then its argument prototype would still apply.
|
---|
14005 | The 'extern "C"' is for builds by C++ compilers;
|
---|
14006 | although this is not generally supported in C code supporting it here
|
---|
14007 | has little cost and some practical benefit (sr 110532). */
|
---|
14008 | #ifdef __cplusplus
|
---|
14009 | extern "C"
|
---|
14010 | #endif
|
---|
14011 | char zlibVersion (void);
|
---|
14012 | int
|
---|
14013 | main (void)
|
---|
14014 | {
|
---|
14015 | return zlibVersion ();
|
---|
14016 | ;
|
---|
14017 | return 0;
|
---|
14018 | }
|
---|
14019 | _ACEOF
|
---|
14020 | if ac_fn_c_try_link "$LINENO"
|
---|
14021 | then :
|
---|
14022 | ac_cv_lib_z_zlibVersion=yes
|
---|
14023 | else case e in #(
|
---|
14024 | e) ac_cv_lib_z_zlibVersion=no ;;
|
---|
14025 | esac
|
---|
14026 | fi
|
---|
14027 | rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
---|
14028 | conftest$ac_exeext conftest.$ac_ext
|
---|
14029 | LIBS=$ac_check_lib_save_LIBS ;;
|
---|
14030 | esac
|
---|
14031 | fi
|
---|
14032 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
|
---|
14033 | printf "%s\n" "$ac_cv_lib_z_zlibVersion" >&6; }
|
---|
14034 | if test "x$ac_cv_lib_z_zlibVersion" = xyes
|
---|
14035 | then :
|
---|
14036 | printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
|
---|
14037 |
|
---|
14038 | LIBS="-lz $LIBS"
|
---|
14039 |
|
---|
14040 | else case e in #(
|
---|
14041 | e) as_ac_Lib=`printf "%s\n" "ac_cv_lib_z_${ZPREFIX}zlibVersion" | sed "$as_sed_sh"`
|
---|
14042 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ZPREFIX}zlibVersion in -lz" >&5
|
---|
14043 | printf %s "checking for ${ZPREFIX}zlibVersion in -lz... " >&6; }
|
---|
14044 | if eval test \${$as_ac_Lib+y}
|
---|
14045 | then :
|
---|
14046 | printf %s "(cached) " >&6
|
---|
14047 | else case e in #(
|
---|
14048 | e) ac_check_lib_save_LIBS=$LIBS
|
---|
14049 | LIBS="-lz $LIBS"
|
---|
14050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
14051 | /* end confdefs.h. */
|
---|
14052 |
|
---|
14053 | /* Override any GCC internal prototype to avoid an error.
|
---|
14054 | Use char because int might match the return type of a GCC
|
---|
14055 | builtin and then its argument prototype would still apply.
|
---|
14056 | The 'extern "C"' is for builds by C++ compilers;
|
---|
14057 | although this is not generally supported in C code supporting it here
|
---|
14058 | has little cost and some practical benefit (sr 110532). */
|
---|
14059 | #ifdef __cplusplus
|
---|
14060 | extern "C"
|
---|
14061 | #endif
|
---|
14062 | char ${ZPREFIX}zlibVersion (void);
|
---|
14063 | int
|
---|
14064 | main (void)
|
---|
14065 | {
|
---|
14066 | return ${ZPREFIX}zlibVersion ();
|
---|
14067 | ;
|
---|
14068 | return 0;
|
---|
14069 | }
|
---|
14070 | _ACEOF
|
---|
14071 | if ac_fn_c_try_link "$LINENO"
|
---|
14072 | then :
|
---|
14073 | eval "$as_ac_Lib=yes"
|
---|
14074 | else case e in #(
|
---|
14075 | e) eval "$as_ac_Lib=no" ;;
|
---|
14076 | esac
|
---|
14077 | fi
|
---|
14078 | rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
---|
14079 | conftest$ac_exeext conftest.$ac_ext
|
---|
14080 | LIBS=$ac_check_lib_save_LIBS ;;
|
---|
14081 | esac
|
---|
14082 | fi
|
---|
14083 | eval ac_res=\$$as_ac_Lib
|
---|
14084 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
14085 | printf "%s\n" "$ac_res" >&6; }
|
---|
14086 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"
|
---|
14087 | then :
|
---|
14088 | printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
|
---|
14089 |
|
---|
14090 | LIBS="-lz $LIBS"
|
---|
14091 |
|
---|
14092 | else case e in #(
|
---|
14093 | e) as_fn_error $? "zlib not installed" "$LINENO" 5 ;;
|
---|
14094 | esac
|
---|
14095 | fi
|
---|
14096 | ;;
|
---|
14097 | esac
|
---|
14098 | fi
|
---|
14099 |
|
---|
14100 |
|
---|
14101 | # The following is for pngvalid, to ensure it catches FP errors even on
|
---|
14102 | # platforms that don't enable FP exceptions, the function appears in the math
|
---|
14103 | # library (typically), it's not an error if it is not found.
|
---|
14104 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
|
---|
14105 | printf %s "checking for feenableexcept in -lm... " >&6; }
|
---|
14106 | if test ${ac_cv_lib_m_feenableexcept+y}
|
---|
14107 | then :
|
---|
14108 | printf %s "(cached) " >&6
|
---|
14109 | else case e in #(
|
---|
14110 | e) ac_check_lib_save_LIBS=$LIBS
|
---|
14111 | LIBS="-lm $LIBS"
|
---|
14112 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
14113 | /* end confdefs.h. */
|
---|
14114 |
|
---|
14115 | /* Override any GCC internal prototype to avoid an error.
|
---|
14116 | Use char because int might match the return type of a GCC
|
---|
14117 | builtin and then its argument prototype would still apply.
|
---|
14118 | The 'extern "C"' is for builds by C++ compilers;
|
---|
14119 | although this is not generally supported in C code supporting it here
|
---|
14120 | has little cost and some practical benefit (sr 110532). */
|
---|
14121 | #ifdef __cplusplus
|
---|
14122 | extern "C"
|
---|
14123 | #endif
|
---|
14124 | char feenableexcept (void);
|
---|
14125 | int
|
---|
14126 | main (void)
|
---|
14127 | {
|
---|
14128 | return feenableexcept ();
|
---|
14129 | ;
|
---|
14130 | return 0;
|
---|
14131 | }
|
---|
14132 | _ACEOF
|
---|
14133 | if ac_fn_c_try_link "$LINENO"
|
---|
14134 | then :
|
---|
14135 | ac_cv_lib_m_feenableexcept=yes
|
---|
14136 | else case e in #(
|
---|
14137 | e) ac_cv_lib_m_feenableexcept=no ;;
|
---|
14138 | esac
|
---|
14139 | fi
|
---|
14140 | rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
---|
14141 | conftest$ac_exeext conftest.$ac_ext
|
---|
14142 | LIBS=$ac_check_lib_save_LIBS ;;
|
---|
14143 | esac
|
---|
14144 | fi
|
---|
14145 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
|
---|
14146 | printf "%s\n" "$ac_cv_lib_m_feenableexcept" >&6; }
|
---|
14147 | if test "x$ac_cv_lib_m_feenableexcept" = xyes
|
---|
14148 | then :
|
---|
14149 | printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
|
---|
14150 |
|
---|
14151 | LIBS="-lm $LIBS"
|
---|
14152 |
|
---|
14153 | fi
|
---|
14154 |
|
---|
14155 | ac_fn_c_check_func "$LINENO" "feenableexcept" "ac_cv_func_feenableexcept"
|
---|
14156 | if test "x$ac_cv_func_feenableexcept" = xyes
|
---|
14157 | then :
|
---|
14158 | printf "%s\n" "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
|
---|
14159 |
|
---|
14160 | fi
|
---|
14161 |
|
---|
14162 |
|
---|
14163 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if using Solaris linker" >&5
|
---|
14164 | printf %s "checking if using Solaris linker... " >&6; }
|
---|
14165 | SLD=`$LD --version 2>&1 | grep Solaris`
|
---|
14166 | if test "$SLD"; then
|
---|
14167 | have_solaris_ld=yes
|
---|
14168 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
14169 | printf "%s\n" "yes" >&6; }
|
---|
14170 | else
|
---|
14171 | have_solaris_ld=no
|
---|
14172 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
14173 | printf "%s\n" "no" >&6; }
|
---|
14174 | fi
|
---|
14175 | if test "$have_solaris_ld" = "yes"; then
|
---|
14176 | HAVE_SOLARIS_LD_TRUE=
|
---|
14177 | HAVE_SOLARIS_LD_FALSE='#'
|
---|
14178 | else
|
---|
14179 | HAVE_SOLARIS_LD_TRUE='#'
|
---|
14180 | HAVE_SOLARIS_LD_FALSE=
|
---|
14181 | fi
|
---|
14182 |
|
---|
14183 |
|
---|
14184 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
|
---|
14185 | printf %s "checking if libraries can be versioned... " >&6; }
|
---|
14186 | # Special case for PE/COFF platforms: ld reports
|
---|
14187 | # support for version-script, but doesn't actually
|
---|
14188 | # DO anything with it.
|
---|
14189 | case $host in
|
---|
14190 | *cygwin* | *mingw32* | *interix* )
|
---|
14191 | have_ld_version_script=no
|
---|
14192 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
14193 | printf "%s\n" "no" >&6; }
|
---|
14194 | ;;
|
---|
14195 | * )
|
---|
14196 |
|
---|
14197 | if test "$have_solaris_ld" = "yes"; then
|
---|
14198 | GLD=`$LD --help < /dev/null 2>&1 | grep 'M mapfile'`
|
---|
14199 | else
|
---|
14200 | GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
|
---|
14201 | fi
|
---|
14202 |
|
---|
14203 | if test "$GLD"; then
|
---|
14204 | have_ld_version_script=yes
|
---|
14205 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
14206 | printf "%s\n" "yes" >&6; }
|
---|
14207 | else
|
---|
14208 | have_ld_version_script=no
|
---|
14209 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
14210 | printf "%s\n" "no" >&6; }
|
---|
14211 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** You have not enabled versioned symbols." >&5
|
---|
14212 | printf "%s\n" "$as_me: WARNING: *** You have not enabled versioned symbols." >&2;}
|
---|
14213 | fi
|
---|
14214 | ;;
|
---|
14215 | esac
|
---|
14216 |
|
---|
14217 | if test "$have_ld_version_script" = "yes"; then
|
---|
14218 | HAVE_LD_VERSION_SCRIPT_TRUE=
|
---|
14219 | HAVE_LD_VERSION_SCRIPT_FALSE='#'
|
---|
14220 | else
|
---|
14221 | HAVE_LD_VERSION_SCRIPT_TRUE='#'
|
---|
14222 | HAVE_LD_VERSION_SCRIPT_FALSE=
|
---|
14223 | fi
|
---|
14224 |
|
---|
14225 |
|
---|
14226 | if test "$have_ld_version_script" = "yes"; then
|
---|
14227 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for symbol prefix" >&5
|
---|
14228 | printf %s "checking for symbol prefix... " >&6; }
|
---|
14229 | SYMBOL_PREFIX=`echo "PREFIX=__USER_LABEL_PREFIX__" \
|
---|
14230 | | ${CPP:-${CC:-gcc} -E} - 2>&1 \
|
---|
14231 | | ${EGREP:-grep} "^PREFIX=" \
|
---|
14232 | | ${SED:-sed} -e "s:^PREFIX=::" -e "s:__USER_LABEL_PREFIX__::"`
|
---|
14233 |
|
---|
14234 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYMBOL_PREFIX" >&5
|
---|
14235 | printf "%s\n" "$SYMBOL_PREFIX" >&6; }
|
---|
14236 | fi
|
---|
14237 |
|
---|
14238 | # Substitutions for .in files
|
---|
14239 |
|
---|
14240 |
|
---|
14241 |
|
---|
14242 |
|
---|
14243 |
|
---|
14244 | # Additional arguments (and substitutions)
|
---|
14245 | # Allow the pkg-config directory to be set
|
---|
14246 |
|
---|
14247 | # Check whether --with-pkgconfigdir was given.
|
---|
14248 | if test ${with_pkgconfigdir+y}
|
---|
14249 | then :
|
---|
14250 | withval=$with_pkgconfigdir; pkgconfigdir=${withval}
|
---|
14251 | else case e in #(
|
---|
14252 | e) pkgconfigdir='${libdir}/pkgconfig' ;;
|
---|
14253 | esac
|
---|
14254 | fi
|
---|
14255 |
|
---|
14256 |
|
---|
14257 |
|
---|
14258 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkgconfig directory is ${pkgconfigdir}" >&5
|
---|
14259 | printf "%s\n" "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;}
|
---|
14260 |
|
---|
14261 | # Make the *-config binary config scripts optional
|
---|
14262 |
|
---|
14263 | # Check whether --with-binconfigs was given.
|
---|
14264 | if test ${with_binconfigs+y}
|
---|
14265 | then :
|
---|
14266 | withval=$with_binconfigs; if test "${withval}" = no; then
|
---|
14267 | binconfigs=
|
---|
14268 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libpng-config scripts will not be built" >&5
|
---|
14269 | printf "%s\n" "$as_me: libpng-config scripts will not be built" >&6;}
|
---|
14270 | else
|
---|
14271 | binconfigs='${binconfigs}'
|
---|
14272 | fi
|
---|
14273 | else case e in #(
|
---|
14274 | e) binconfigs='${binconfigs}' ;;
|
---|
14275 | esac
|
---|
14276 | fi
|
---|
14277 |
|
---|
14278 |
|
---|
14279 |
|
---|
14280 | # Support for prefixes to the API function names; this will generate defines
|
---|
14281 | # at the start of the build to rename exported library functions
|
---|
14282 |
|
---|
14283 | # Check whether --with-libpng-prefix was given.
|
---|
14284 | if test ${with_libpng_prefix+y}
|
---|
14285 | then :
|
---|
14286 | withval=$with_libpng_prefix; if test "${withval:-no}" != "no"; then
|
---|
14287 | PNG_PREFIX=${withval}
|
---|
14288 |
|
---|
14289 | fi
|
---|
14290 | fi
|
---|
14291 |
|
---|
14292 | if test "${with_libpng_prefix:-no}" != "no"; then
|
---|
14293 | DO_PNG_PREFIX_TRUE=
|
---|
14294 | DO_PNG_PREFIX_FALSE='#'
|
---|
14295 | else
|
---|
14296 | DO_PNG_PREFIX_TRUE='#'
|
---|
14297 | DO_PNG_PREFIX_FALSE=
|
---|
14298 | fi
|
---|
14299 |
|
---|
14300 |
|
---|
14301 | # Control over what links are made for installed files. Versioned files are
|
---|
14302 | # always installed, when the following options are turned on corresponding
|
---|
14303 | # unversioned links are also created (normally as symbolic links):
|
---|
14304 | # Check whether --enable-unversioned-links was given.
|
---|
14305 | if test ${enable_unversioned_links+y}
|
---|
14306 | then :
|
---|
14307 | enableval=$enable_unversioned_links;
|
---|
14308 | fi
|
---|
14309 |
|
---|
14310 |
|
---|
14311 | # The AM_CONDITIONAL test is written so that the default is enabled;
|
---|
14312 | # --disable-unversioned-links must be given to turn the option off.
|
---|
14313 | if test "$enable_unversioned_links" != "no"; then
|
---|
14314 | DO_INSTALL_LINKS_TRUE=
|
---|
14315 | DO_INSTALL_LINKS_FALSE='#'
|
---|
14316 | else
|
---|
14317 | DO_INSTALL_LINKS_TRUE='#'
|
---|
14318 | DO_INSTALL_LINKS_FALSE=
|
---|
14319 | fi
|
---|
14320 |
|
---|
14321 |
|
---|
14322 | # Check whether --enable-unversioned-libpng-pc was given.
|
---|
14323 | if test ${enable_unversioned_libpng_pc+y}
|
---|
14324 | then :
|
---|
14325 | enableval=$enable_unversioned_libpng_pc;
|
---|
14326 | fi
|
---|
14327 |
|
---|
14328 | if test "$enable_unversioned_libpng_pc" != "no"; then
|
---|
14329 | DO_INSTALL_LIBPNG_PC_TRUE=
|
---|
14330 | DO_INSTALL_LIBPNG_PC_FALSE='#'
|
---|
14331 | else
|
---|
14332 | DO_INSTALL_LIBPNG_PC_TRUE='#'
|
---|
14333 | DO_INSTALL_LIBPNG_PC_FALSE=
|
---|
14334 | fi
|
---|
14335 |
|
---|
14336 |
|
---|
14337 | # Check whether --enable-unversioned-libpng-config was given.
|
---|
14338 | if test ${enable_unversioned_libpng_config+y}
|
---|
14339 | then :
|
---|
14340 | enableval=$enable_unversioned_libpng_config;
|
---|
14341 | fi
|
---|
14342 |
|
---|
14343 | if test "$enable_unversioned_libpng_config" != "no"; then
|
---|
14344 | DO_INSTALL_LIBPNG_CONFIG_TRUE=
|
---|
14345 | DO_INSTALL_LIBPNG_CONFIG_FALSE='#'
|
---|
14346 | else
|
---|
14347 | DO_INSTALL_LIBPNG_CONFIG_TRUE='#'
|
---|
14348 | DO_INSTALL_LIBPNG_CONFIG_FALSE=
|
---|
14349 | fi
|
---|
14350 |
|
---|
14351 |
|
---|
14352 | # HOST-SPECIFIC OPTIONS
|
---|
14353 | # =====================
|
---|
14354 | #
|
---|
14355 | # DEFAULT
|
---|
14356 | # =======
|
---|
14357 | #
|
---|
14358 | # Check whether --enable-hardware-optimizations was given.
|
---|
14359 | if test ${enable_hardware_optimizations+y}
|
---|
14360 | then :
|
---|
14361 | enableval=$enable_hardware_optimizations; case "$enableval" in
|
---|
14362 | no|off)
|
---|
14363 | # disable hardware optimization on all systems:
|
---|
14364 | enable_arm_neon=no
|
---|
14365 |
|
---|
14366 | printf "%s\n" "#define PNG_ARM_NEON_OPT 0" >>confdefs.h
|
---|
14367 |
|
---|
14368 | enable_mips_msa=no
|
---|
14369 |
|
---|
14370 | printf "%s\n" "#define PNG_MIPS_MSA_OPT 0" >>confdefs.h
|
---|
14371 |
|
---|
14372 | enable_mips_mmi=no
|
---|
14373 |
|
---|
14374 | printf "%s\n" "#define PNG_MIPS_MMI_OPT 0" >>confdefs.h
|
---|
14375 |
|
---|
14376 | enable_powerpc_vsx=no
|
---|
14377 |
|
---|
14378 | printf "%s\n" "#define PNG_POWERPC_VSX_OPT 0" >>confdefs.h
|
---|
14379 |
|
---|
14380 | enable_intel_sse=no
|
---|
14381 |
|
---|
14382 | printf "%s\n" "#define PNG_INTEL_SSE_OPT 0" >>confdefs.h
|
---|
14383 |
|
---|
14384 | enable_loongarch_lsx=no
|
---|
14385 |
|
---|
14386 | printf "%s\n" "#define PNG_LOONGARCH_LSX_OPT 0" >>confdefs.h
|
---|
14387 |
|
---|
14388 | ;;
|
---|
14389 | *)
|
---|
14390 | # allow enabling hardware optimization on any system:
|
---|
14391 | case "$host_cpu" in
|
---|
14392 | arm*|aarch64*)
|
---|
14393 | enable_arm_neon=yes
|
---|
14394 |
|
---|
14395 | printf "%s\n" "#define PNG_ARM_NEON_OPT 2" >>confdefs.h
|
---|
14396 |
|
---|
14397 | ;;
|
---|
14398 | mipsel*|mips64el*)
|
---|
14399 | enable_mips_mmi=yes
|
---|
14400 | enable_mips_msa=yes
|
---|
14401 |
|
---|
14402 | printf "%s\n" "#define PNG_MIPS_MMI_OPT 1" >>confdefs.h
|
---|
14403 |
|
---|
14404 |
|
---|
14405 | printf "%s\n" "#define PNG_MIPS_MSA_OPT 2" >>confdefs.h
|
---|
14406 |
|
---|
14407 | ;;
|
---|
14408 | i?86|x86_64)
|
---|
14409 | enable_intel_sse=yes
|
---|
14410 |
|
---|
14411 | printf "%s\n" "#define PNG_INTEL_SSE_OPT 1" >>confdefs.h
|
---|
14412 |
|
---|
14413 | ;;
|
---|
14414 | powerpc*|ppc64*)
|
---|
14415 | enable_powerpc_vsx=yes
|
---|
14416 |
|
---|
14417 | printf "%s\n" "#define PNG_POWERPC_VSX_OPT 2" >>confdefs.h
|
---|
14418 |
|
---|
14419 | ;;
|
---|
14420 | loongarch*)
|
---|
14421 | enable_loongarch_lsx=yes
|
---|
14422 |
|
---|
14423 | printf "%s\n" "#define PNG_LOONGARCH_LSX_OPT 1" >>confdefs.h
|
---|
14424 |
|
---|
14425 | ;;
|
---|
14426 | esac
|
---|
14427 | ;;
|
---|
14428 | esac
|
---|
14429 | fi
|
---|
14430 |
|
---|
14431 |
|
---|
14432 | # ARM NEON
|
---|
14433 | # ========
|
---|
14434 |
|
---|
14435 | # Check whether --enable-arm-neon was given.
|
---|
14436 | if test ${enable_arm_neon+y}
|
---|
14437 | then :
|
---|
14438 | enableval=$enable_arm_neon; case "$enableval" in
|
---|
14439 | no|off)
|
---|
14440 | # disable the default enabling on __ARM_NEON__ systems:
|
---|
14441 |
|
---|
14442 | printf "%s\n" "#define PNG_ARM_NEON_OPT 0" >>confdefs.h
|
---|
14443 |
|
---|
14444 | # Prevent inclusion of the assembler files below:
|
---|
14445 | enable_arm_neon=no ;;
|
---|
14446 | check)
|
---|
14447 |
|
---|
14448 | printf "%s\n" "#define PNG_ARM_NEON_CHECK_SUPPORTED /**/" >>confdefs.h
|
---|
14449 | ;;
|
---|
14450 | api)
|
---|
14451 |
|
---|
14452 | printf "%s\n" "#define PNG_ARM_NEON_API_SUPPORTED /**/" >>confdefs.h
|
---|
14453 | ;;
|
---|
14454 | yes|on)
|
---|
14455 |
|
---|
14456 | printf "%s\n" "#define PNG_ARM_NEON_OPT 2" >>confdefs.h
|
---|
14457 |
|
---|
14458 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-arm-neon: please specify 'check' or 'api';
|
---|
14459 | if you want the optimizations unconditionally,
|
---|
14460 | pass '-mfpu=neon' to the compiler." >&5
|
---|
14461 | printf "%s\n" "$as_me: WARNING: --enable-arm-neon: please specify 'check' or 'api';
|
---|
14462 | if you want the optimizations unconditionally,
|
---|
14463 | pass '-mfpu=neon' to the compiler." >&2;};;
|
---|
14464 | *)
|
---|
14465 | as_fn_error $? "--enable-arm-neon=${enable_arm_neon}:
|
---|
14466 | invalid argument" "$LINENO" 5
|
---|
14467 | esac
|
---|
14468 | fi
|
---|
14469 |
|
---|
14470 |
|
---|
14471 | # Add ARM-specific files to all builds where $host_cpu is arm ('arm*') or
|
---|
14472 | # where ARM optimizations were explicitly requested. (This allows a fallback
|
---|
14473 | # if a future host CPU does not match 'arm*'.)
|
---|
14474 |
|
---|
14475 | if test "$enable_arm_neon" != 'no' &&
|
---|
14476 | case "$host_cpu" in
|
---|
14477 | arm*|aarch64*) : ;;
|
---|
14478 | *) test "$enable_arm_neon" != '' ;;
|
---|
14479 | esac; then
|
---|
14480 | PNG_ARM_NEON_TRUE=
|
---|
14481 | PNG_ARM_NEON_FALSE='#'
|
---|
14482 | else
|
---|
14483 | PNG_ARM_NEON_TRUE='#'
|
---|
14484 | PNG_ARM_NEON_FALSE=
|
---|
14485 | fi
|
---|
14486 |
|
---|
14487 |
|
---|
14488 | # MIPS MSA
|
---|
14489 | # ========
|
---|
14490 |
|
---|
14491 | # Check whether --enable-mips-msa was given.
|
---|
14492 | if test ${enable_mips_msa+y}
|
---|
14493 | then :
|
---|
14494 | enableval=$enable_mips_msa; case "$enableval" in
|
---|
14495 | no|off)
|
---|
14496 | # disable the default enabling on __mips_msa systems:
|
---|
14497 |
|
---|
14498 | printf "%s\n" "#define PNG_MIPS_MSA_OPT 0" >>confdefs.h
|
---|
14499 |
|
---|
14500 | # Prevent inclusion of the assembler files below:
|
---|
14501 | enable_mips_msa=no ;;
|
---|
14502 | check)
|
---|
14503 |
|
---|
14504 | printf "%s\n" "#define PNG_MIPS_MSA_CHECK_SUPPORTED /**/" >>confdefs.h
|
---|
14505 | ;;
|
---|
14506 | api)
|
---|
14507 |
|
---|
14508 | printf "%s\n" "#define PNG_MIPS_MSA_API_SUPPORTED /**/" >>confdefs.h
|
---|
14509 | ;;
|
---|
14510 | yes|on)
|
---|
14511 |
|
---|
14512 | printf "%s\n" "#define PNG_MIPS_MSA_OPT 2" >>confdefs.h
|
---|
14513 |
|
---|
14514 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-mips-msa: please specify 'check' or 'api';
|
---|
14515 | if you want the optimizations unconditionally,
|
---|
14516 | pass '-mmsa -mfp64' to the compiler." >&5
|
---|
14517 | printf "%s\n" "$as_me: WARNING: --enable-mips-msa: please specify 'check' or 'api';
|
---|
14518 | if you want the optimizations unconditionally,
|
---|
14519 | pass '-mmsa -mfp64' to the compiler." >&2;};;
|
---|
14520 | *)
|
---|
14521 | as_fn_error $? "--enable-mips-msa=${enable_mips_msa}:
|
---|
14522 | invalid argument" "$LINENO" 5
|
---|
14523 | esac
|
---|
14524 | fi
|
---|
14525 |
|
---|
14526 |
|
---|
14527 | # Add MIPS-specific files to all builds where $host_cpu is mips ('mips*') or
|
---|
14528 | # where MIPS optimizations were explicitly requested. (This allows a fallback
|
---|
14529 | # if a future host CPU does not match 'mips*'.)
|
---|
14530 |
|
---|
14531 | if test "$enable_mips_msa" != 'no' &&
|
---|
14532 | case "$host_cpu" in
|
---|
14533 | mipsel*|mips64el*) : ;;
|
---|
14534 | esac; then
|
---|
14535 | PNG_MIPS_MSA_TRUE=
|
---|
14536 | PNG_MIPS_MSA_FALSE='#'
|
---|
14537 | else
|
---|
14538 | PNG_MIPS_MSA_TRUE='#'
|
---|
14539 | PNG_MIPS_MSA_FALSE=
|
---|
14540 | fi
|
---|
14541 |
|
---|
14542 |
|
---|
14543 | # MIPS MMI
|
---|
14544 | # ========
|
---|
14545 |
|
---|
14546 | # Check whether --enable-mips-mmi was given.
|
---|
14547 | if test ${enable_mips_mmi+y}
|
---|
14548 | then :
|
---|
14549 | enableval=$enable_mips_mmi; case "$enableval" in
|
---|
14550 | no|off)
|
---|
14551 | # disable the default enabling on __mips_mmi systems:
|
---|
14552 |
|
---|
14553 | printf "%s\n" "#define PNG_MIPS_MMI_OPT 0" >>confdefs.h
|
---|
14554 |
|
---|
14555 | # Prevent inclusion of the assembler files below:
|
---|
14556 | enable_mips_mmi=no;;
|
---|
14557 | check)
|
---|
14558 |
|
---|
14559 | printf "%s\n" "#define PNG_MIPS_MMI_CHECK_SUPPORTED /**/" >>confdefs.h
|
---|
14560 | ;;
|
---|
14561 | api)
|
---|
14562 |
|
---|
14563 | printf "%s\n" "#define PNG_MIPS_MMI_API_SUPPORTED /**/" >>confdefs.h
|
---|
14564 | ;;
|
---|
14565 | yes|on)
|
---|
14566 |
|
---|
14567 | printf "%s\n" "#define PNG_MIPS_MMI_OPT 1" >>confdefs.h
|
---|
14568 |
|
---|
14569 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-mips-mmi: please specify 'check' or 'api';
|
---|
14570 | if you want the optimizations unconditionally
|
---|
14571 | pass '-mloongson-mmi -march=loongson3a' to the compiler." >&5
|
---|
14572 | printf "%s\n" "$as_me: WARNING: --enable-mips-mmi: please specify 'check' or 'api';
|
---|
14573 | if you want the optimizations unconditionally
|
---|
14574 | pass '-mloongson-mmi -march=loongson3a' to the compiler." >&2;};;
|
---|
14575 | *)
|
---|
14576 | as_fn_error $? "--enable-mips-mmi=${enable_mips_mmi}:
|
---|
14577 | invalid argument" "$LINENO" 5
|
---|
14578 | esac
|
---|
14579 | fi
|
---|
14580 |
|
---|
14581 |
|
---|
14582 | # Add MIPS specific files to all builds where the host_cpu is mips ('mips*') or
|
---|
14583 | # where MIPS optimizations were explicitly requested. (This allows a fallback
|
---|
14584 | # if a future host CPU does not match 'mips*'.)
|
---|
14585 |
|
---|
14586 | if test "$enable_mips_mmi" != 'no' &&
|
---|
14587 | case "$host_cpu" in
|
---|
14588 | mipsel*|mips64el*) : ;;
|
---|
14589 | esac; then
|
---|
14590 | PNG_MIPS_MMI_TRUE=
|
---|
14591 | PNG_MIPS_MMI_FALSE='#'
|
---|
14592 | else
|
---|
14593 | PNG_MIPS_MMI_TRUE='#'
|
---|
14594 | PNG_MIPS_MMI_FALSE=
|
---|
14595 | fi
|
---|
14596 |
|
---|
14597 |
|
---|
14598 | # INTEL SSE
|
---|
14599 | # =========
|
---|
14600 |
|
---|
14601 | # Check whether --enable-intel-sse was given.
|
---|
14602 | if test ${enable_intel_sse+y}
|
---|
14603 | then :
|
---|
14604 | enableval=$enable_intel_sse; case "$enableval" in
|
---|
14605 | no|off)
|
---|
14606 | # disable the default enabling:
|
---|
14607 |
|
---|
14608 | printf "%s\n" "#define PNG_INTEL_SSE_OPT 0" >>confdefs.h
|
---|
14609 |
|
---|
14610 | # Prevent inclusion of the assembler files below:
|
---|
14611 | enable_intel_sse=no ;;
|
---|
14612 | yes|on)
|
---|
14613 |
|
---|
14614 | printf "%s\n" "#define PNG_INTEL_SSE_OPT 1" >>confdefs.h
|
---|
14615 | ;;
|
---|
14616 | *)
|
---|
14617 | as_fn_error $? "--enable-intel-sse=${enable_intel_sse}:
|
---|
14618 | invalid argument" "$LINENO" 5
|
---|
14619 | esac
|
---|
14620 | fi
|
---|
14621 |
|
---|
14622 |
|
---|
14623 | # Add Intel-specific files to all builds where $host_cpu is Intel ('x86*') or
|
---|
14624 | # where Intel optimizations were explicitly requested. (This allows a fallback
|
---|
14625 | # if a future host CPU does not match 'x86*'.)
|
---|
14626 | if test "$enable_intel_sse" != 'no' &&
|
---|
14627 | case "$host_cpu" in
|
---|
14628 | i?86|x86_64) : ;;
|
---|
14629 | *) test "$enable_intel_sse" != '' ;;
|
---|
14630 | esac; then
|
---|
14631 | PNG_INTEL_SSE_TRUE=
|
---|
14632 | PNG_INTEL_SSE_FALSE='#'
|
---|
14633 | else
|
---|
14634 | PNG_INTEL_SSE_TRUE='#'
|
---|
14635 | PNG_INTEL_SSE_FALSE=
|
---|
14636 | fi
|
---|
14637 |
|
---|
14638 |
|
---|
14639 | # POWERPC VSX
|
---|
14640 | # ===========
|
---|
14641 |
|
---|
14642 | # Check whether --enable-powerpc-vsx was given.
|
---|
14643 | if test ${enable_powerpc_vsx+y}
|
---|
14644 | then :
|
---|
14645 | enableval=$enable_powerpc_vsx; case "$enableval" in
|
---|
14646 | no|off)
|
---|
14647 | # disable the default enabling on __ppc64__ systems:
|
---|
14648 |
|
---|
14649 | printf "%s\n" "#define PNG_POWERPC_VSX_OPT 0" >>confdefs.h
|
---|
14650 |
|
---|
14651 | # Prevent inclusion of the platform-specific files below:
|
---|
14652 | enable_powerpc_vsx=no ;;
|
---|
14653 | check)
|
---|
14654 |
|
---|
14655 | printf "%s\n" "#define PNG_POWERPC_VSX_CHECK_SUPPORTED /**/" >>confdefs.h
|
---|
14656 |
|
---|
14657 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-powerpc-vsx: please see contrib/powerpc/README
|
---|
14658 | for the list of supported systems." >&5
|
---|
14659 | printf "%s\n" "$as_me: WARNING: --enable-powerpc-vsx: please see contrib/powerpc/README
|
---|
14660 | for the list of supported systems." >&2;};;
|
---|
14661 | api)
|
---|
14662 |
|
---|
14663 | printf "%s\n" "#define PNG_POWERPC_VSX_API_SUPPORTED /**/" >>confdefs.h
|
---|
14664 | ;;
|
---|
14665 | yes|on)
|
---|
14666 |
|
---|
14667 | printf "%s\n" "#define PNG_POWERPC_VSX_OPT 2" >>confdefs.h
|
---|
14668 |
|
---|
14669 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-powerpc-vsx: please specify 'check' or 'api';
|
---|
14670 | if you want the optimizations unconditionally,
|
---|
14671 | pass '-maltivec -mvsx' or '-mcpu=power8' to the compiler." >&5
|
---|
14672 | printf "%s\n" "$as_me: WARNING: --enable-powerpc-vsx: please specify 'check' or 'api';
|
---|
14673 | if you want the optimizations unconditionally,
|
---|
14674 | pass '-maltivec -mvsx' or '-mcpu=power8' to the compiler." >&2;};;
|
---|
14675 | *)
|
---|
14676 | as_fn_error $? "--enable-powerpc-vsx=${enable_powerpc_vsx}:
|
---|
14677 | invalid argument" "$LINENO" 5
|
---|
14678 | esac
|
---|
14679 | fi
|
---|
14680 |
|
---|
14681 |
|
---|
14682 | # Add PowerPC-specific files to all builds where $host_cpu is powerpc
|
---|
14683 | # ('powerpc*') or where PowerPC optimizations were explicitly requested.
|
---|
14684 | # (This allows a fallback if a future host CPU does not match 'powerpc*'.)
|
---|
14685 |
|
---|
14686 | if test "$enable_powerpc_vsx" != 'no' &&
|
---|
14687 | case "$host_cpu" in
|
---|
14688 | powerpc*|ppc64*) : ;;
|
---|
14689 | esac; then
|
---|
14690 | PNG_POWERPC_VSX_TRUE=
|
---|
14691 | PNG_POWERPC_VSX_FALSE='#'
|
---|
14692 | else
|
---|
14693 | PNG_POWERPC_VSX_TRUE='#'
|
---|
14694 | PNG_POWERPC_VSX_FALSE=
|
---|
14695 | fi
|
---|
14696 |
|
---|
14697 |
|
---|
14698 | # LOONGARCH LSX
|
---|
14699 | # =============
|
---|
14700 |
|
---|
14701 | # Check whether --enable-loongarch-lsx was given.
|
---|
14702 | if test ${enable_loongarch_lsx+y}
|
---|
14703 | then :
|
---|
14704 | enableval=$enable_loongarch_lsx; case "$enableval" in
|
---|
14705 | no|off)
|
---|
14706 | # disable the default enabling on __loongarch_simd systems:
|
---|
14707 |
|
---|
14708 | printf "%s\n" "#define PNG_LOONGARCH_LSX_OPT 0" >>confdefs.h
|
---|
14709 |
|
---|
14710 | # Prevent inclusion of the assembler files below:
|
---|
14711 | enable_loongarch_lsx=no;;
|
---|
14712 | yes|on)
|
---|
14713 |
|
---|
14714 | printf "%s\n" "#define PNG_LOONGARCH_LSX_OPT 1" >>confdefs.h
|
---|
14715 |
|
---|
14716 | ;;
|
---|
14717 | *)
|
---|
14718 | as_fn_error $? "--enable-loongarch-lsx=${enable_loongarch_lsx}:
|
---|
14719 | invalid argument" "$LINENO" 5
|
---|
14720 | esac
|
---|
14721 | fi
|
---|
14722 |
|
---|
14723 |
|
---|
14724 | if test "$enable_loongarch_lsx" != "no" &&
|
---|
14725 | case "$host_cpu" in
|
---|
14726 | loongarch*) : ;;
|
---|
14727 | *) test "$enable_loongarch_lsx" != '' ;;
|
---|
14728 | esac
|
---|
14729 | then
|
---|
14730 | compiler_support_loongarch_lsx=no
|
---|
14731 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use LoongArch LSX intrinsics" >&5
|
---|
14732 | printf %s "checking whether to use LoongArch LSX intrinsics... " >&6; }
|
---|
14733 | save_CFLAGS="$CFLAGS"
|
---|
14734 | LSX_CFLAGS="${LSX_CFLAGS:-"-mlsx"}"
|
---|
14735 | CFLAGS="$CFLAGS $LSX_CFLAGS"
|
---|
14736 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
14737 | /* end confdefs.h. */
|
---|
14738 |
|
---|
14739 | #include <lsxintrin.h>
|
---|
14740 | int main(){
|
---|
14741 | __m128i a, b, c;
|
---|
14742 | a = __lsx_vadd_w(b, c);
|
---|
14743 | return 0;
|
---|
14744 | }
|
---|
14745 | _ACEOF
|
---|
14746 | if ac_fn_c_try_compile "$LINENO"
|
---|
14747 | then :
|
---|
14748 | compiler_support_loongarch_lsx=yes
|
---|
14749 | fi
|
---|
14750 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
14751 | CFLAGS="$save_CFLAGS"
|
---|
14752 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $compiler_support_loongarch_lsx" >&5
|
---|
14753 | printf "%s\n" "$compiler_support_loongarch_lsx" >&6; }
|
---|
14754 | if test "$compiler_support_loongarch_lsx" = "yes"; then
|
---|
14755 |
|
---|
14756 | printf "%s\n" "#define PNG_LOONGARCH_LSX_OPT 1" >>confdefs.h
|
---|
14757 |
|
---|
14758 | else
|
---|
14759 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support loongarch LSX." >&5
|
---|
14760 | printf "%s\n" "$as_me: WARNING: Compiler does not support loongarch LSX." >&2;}
|
---|
14761 | fi
|
---|
14762 | fi
|
---|
14763 |
|
---|
14764 | # Add LoongArch specific files to all builds where the host_cpu is loongarch
|
---|
14765 | # ('loongarch*') or where LoongArch optimizations were explicitly requested.
|
---|
14766 | # (This allows a fallback if a future host CPU does not match 'loongarch*'.)
|
---|
14767 |
|
---|
14768 | if test "$enable_loongarch_lsx" != "no" &&
|
---|
14769 | test "$compiler_support_loongarch_lsx" = "yes" &&
|
---|
14770 | case "$host_cpu" in
|
---|
14771 | loongarch*) : ;;
|
---|
14772 | *) test "$enable_loongarch_lsx" != '' ;;
|
---|
14773 | esac; then
|
---|
14774 | PNG_LOONGARCH_LSX_TRUE=
|
---|
14775 | PNG_LOONGARCH_LSX_FALSE='#'
|
---|
14776 | else
|
---|
14777 | PNG_LOONGARCH_LSX_TRUE='#'
|
---|
14778 | PNG_LOONGARCH_LSX_FALSE=
|
---|
14779 | fi
|
---|
14780 |
|
---|
14781 |
|
---|
14782 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Extra options for compiler: $PNG_COPTS" >&5
|
---|
14783 | printf "%s\n" "$as_me: Extra options for compiler: $PNG_COPTS" >&6;}
|
---|
14784 |
|
---|
14785 | # Config files, substituting as above
|
---|
14786 | ac_config_files="$ac_config_files Makefile libpng.pc:libpng.pc.in"
|
---|
14787 |
|
---|
14788 | ac_config_files="$ac_config_files libpng-config:libpng-config.in"
|
---|
14789 |
|
---|
14790 |
|
---|
14791 | cat >confcache <<\_ACEOF
|
---|
14792 | # This file is a shell script that caches the results of configure
|
---|
14793 | # tests run on this system so they can be shared between configure
|
---|
14794 | # scripts and configure runs, see configure's option --config-cache.
|
---|
14795 | # It is not useful on other systems. If it contains results you don't
|
---|
14796 | # want to keep, you may remove or edit it.
|
---|
14797 | #
|
---|
14798 | # config.status only pays attention to the cache file if you give it
|
---|
14799 | # the --recheck option to rerun configure.
|
---|
14800 | #
|
---|
14801 | # 'ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
14802 | # loading this file, other *unset* 'ac_cv_foo' will be assigned the
|
---|
14803 | # following values.
|
---|
14804 |
|
---|
14805 | _ACEOF
|
---|
14806 |
|
---|
14807 | # The following way of writing the cache mishandles newlines in values,
|
---|
14808 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
14809 | # So, we kill variables containing newlines.
|
---|
14810 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
14811 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
14812 | (
|
---|
14813 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
---|
14814 | eval ac_val=\$$ac_var
|
---|
14815 | case $ac_val in #(
|
---|
14816 | *${as_nl}*)
|
---|
14817 | case $ac_var in #(
|
---|
14818 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
14819 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
14820 | esac
|
---|
14821 | case $ac_var in #(
|
---|
14822 | _ | IFS | as_nl) ;; #(
|
---|
14823 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
14824 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
14825 | esac ;;
|
---|
14826 | esac
|
---|
14827 | done
|
---|
14828 |
|
---|
14829 | (set) 2>&1 |
|
---|
14830 | case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
---|
14831 | *${as_nl}ac_space=\ *)
|
---|
14832 | # 'set' does not quote correctly, so add quotes: double-quote
|
---|
14833 | # substitution turns \\\\ into \\, and sed turns \\ into \.
|
---|
14834 | sed -n \
|
---|
14835 | "s/'/'\\\\''/g;
|
---|
14836 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
14837 | ;; #(
|
---|
14838 | *)
|
---|
14839 | # 'set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
14840 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
14841 | ;;
|
---|
14842 | esac |
|
---|
14843 | sort
|
---|
14844 | ) |
|
---|
14845 | sed '
|
---|
14846 | /^ac_cv_env_/b end
|
---|
14847 | t clear
|
---|
14848 | :clear
|
---|
14849 | s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
|
---|
14850 | t end
|
---|
14851 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
14852 | :end' >>confcache
|
---|
14853 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
---|
14854 | if test -w "$cache_file"; then
|
---|
14855 | if test "x$cache_file" != "x/dev/null"; then
|
---|
14856 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
|
---|
14857 | printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
|
---|
14858 | if test ! -f "$cache_file" || test -h "$cache_file"; then
|
---|
14859 | cat confcache >"$cache_file"
|
---|
14860 | else
|
---|
14861 | case $cache_file in #(
|
---|
14862 | */* | ?:*)
|
---|
14863 | mv -f confcache "$cache_file"$$ &&
|
---|
14864 | mv -f "$cache_file"$$ "$cache_file" ;; #(
|
---|
14865 | *)
|
---|
14866 | mv -f confcache "$cache_file" ;;
|
---|
14867 | esac
|
---|
14868 | fi
|
---|
14869 | fi
|
---|
14870 | else
|
---|
14871 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
|
---|
14872 | printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
|
---|
14873 | fi
|
---|
14874 | fi
|
---|
14875 | rm -f confcache
|
---|
14876 |
|
---|
14877 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
14878 | # Let make expand exec_prefix.
|
---|
14879 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
14880 |
|
---|
14881 | DEFS=-DHAVE_CONFIG_H
|
---|
14882 |
|
---|
14883 | ac_libobjs=
|
---|
14884 | ac_ltlibobjs=
|
---|
14885 | U=
|
---|
14886 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
14887 | # 1. Remove the extension, and $U if already installed.
|
---|
14888 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
---|
14889 | ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
|
---|
14890 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
---|
14891 | # will be set to the directory where LIBOBJS objects are built.
|
---|
14892 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
---|
14893 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
|
---|
14894 | done
|
---|
14895 | LIBOBJS=$ac_libobjs
|
---|
14896 |
|
---|
14897 | LTLIBOBJS=$ac_ltlibobjs
|
---|
14898 |
|
---|
14899 |
|
---|
14900 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
|
---|
14901 | printf %s "checking that generated files are newer than configure... " >&6; }
|
---|
14902 | if test -n "$am_sleep_pid"; then
|
---|
14903 | # Hide warnings about reused PIDs.
|
---|
14904 | wait $am_sleep_pid 2>/dev/null
|
---|
14905 | fi
|
---|
14906 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
|
---|
14907 | printf "%s\n" "done" >&6; }
|
---|
14908 | if test -n "$EXEEXT"; then
|
---|
14909 | am__EXEEXT_TRUE=
|
---|
14910 | am__EXEEXT_FALSE='#'
|
---|
14911 | else
|
---|
14912 | am__EXEEXT_TRUE='#'
|
---|
14913 | am__EXEEXT_FALSE=
|
---|
14914 | fi
|
---|
14915 |
|
---|
14916 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
|
---|
14917 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
|
---|
14918 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
14919 | fi
|
---|
14920 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
|
---|
14921 | as_fn_error $? "conditional \"AMDEP\" was never defined.
|
---|
14922 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
14923 | fi
|
---|
14924 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
|
---|
14925 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
|
---|
14926 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
14927 | fi
|
---|
14928 | if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
|
---|
14929 | as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
|
---|
14930 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
14931 | fi
|
---|
14932 | if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then
|
---|
14933 | as_fn_error $? "conditional \"ENABLE_TESTS\" was never defined.
|
---|
14934 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
14935 | fi
|
---|
14936 | if test -z "${ENABLE_TOOLS_TRUE}" && test -z "${ENABLE_TOOLS_FALSE}"; then
|
---|
14937 | as_fn_error $? "conditional \"ENABLE_TOOLS\" was never defined.
|
---|
14938 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
14939 | fi
|
---|
14940 | if test -z "${HAVE_CLOCK_GETTIME_TRUE}" && test -z "${HAVE_CLOCK_GETTIME_FALSE}"; then
|
---|
14941 | as_fn_error $? "conditional \"HAVE_CLOCK_GETTIME\" was never defined.
|
---|
14942 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
14943 | fi
|
---|
14944 | if test -z "${HAVE_SOLARIS_LD_TRUE}" && test -z "${HAVE_SOLARIS_LD_FALSE}"; then
|
---|
14945 | as_fn_error $? "conditional \"HAVE_SOLARIS_LD\" was never defined.
|
---|
14946 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
14947 | fi
|
---|
14948 | if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
|
---|
14949 | as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
|
---|
14950 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
14951 | fi
|
---|
14952 | if test -z "${DO_PNG_PREFIX_TRUE}" && test -z "${DO_PNG_PREFIX_FALSE}"; then
|
---|
14953 | as_fn_error $? "conditional \"DO_PNG_PREFIX\" was never defined.
|
---|
14954 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
14955 | fi
|
---|
14956 | if test -z "${DO_INSTALL_LINKS_TRUE}" && test -z "${DO_INSTALL_LINKS_FALSE}"; then
|
---|
14957 | as_fn_error $? "conditional \"DO_INSTALL_LINKS\" was never defined.
|
---|
14958 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
14959 | fi
|
---|
14960 | if test -z "${DO_INSTALL_LIBPNG_PC_TRUE}" && test -z "${DO_INSTALL_LIBPNG_PC_FALSE}"; then
|
---|
14961 | as_fn_error $? "conditional \"DO_INSTALL_LIBPNG_PC\" was never defined.
|
---|
14962 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
14963 | fi
|
---|
14964 | if test -z "${DO_INSTALL_LIBPNG_CONFIG_TRUE}" && test -z "${DO_INSTALL_LIBPNG_CONFIG_FALSE}"; then
|
---|
14965 | as_fn_error $? "conditional \"DO_INSTALL_LIBPNG_CONFIG\" was never defined.
|
---|
14966 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
14967 | fi
|
---|
14968 | if test -z "${PNG_ARM_NEON_TRUE}" && test -z "${PNG_ARM_NEON_FALSE}"; then
|
---|
14969 | as_fn_error $? "conditional \"PNG_ARM_NEON\" was never defined.
|
---|
14970 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
14971 | fi
|
---|
14972 | if test -z "${PNG_MIPS_MSA_TRUE}" && test -z "${PNG_MIPS_MSA_FALSE}"; then
|
---|
14973 | as_fn_error $? "conditional \"PNG_MIPS_MSA\" was never defined.
|
---|
14974 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
14975 | fi
|
---|
14976 | if test -z "${PNG_MIPS_MMI_TRUE}" && test -z "${PNG_MIPS_MMI_FALSE}"; then
|
---|
14977 | as_fn_error $? "conditional \"PNG_MIPS_MMI\" was never defined.
|
---|
14978 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
14979 | fi
|
---|
14980 | if test -z "${PNG_INTEL_SSE_TRUE}" && test -z "${PNG_INTEL_SSE_FALSE}"; then
|
---|
14981 | as_fn_error $? "conditional \"PNG_INTEL_SSE\" was never defined.
|
---|
14982 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
14983 | fi
|
---|
14984 | if test -z "${PNG_POWERPC_VSX_TRUE}" && test -z "${PNG_POWERPC_VSX_FALSE}"; then
|
---|
14985 | as_fn_error $? "conditional \"PNG_POWERPC_VSX\" was never defined.
|
---|
14986 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
14987 | fi
|
---|
14988 | if test -z "${PNG_LOONGARCH_LSX_TRUE}" && test -z "${PNG_LOONGARCH_LSX_FALSE}"; then
|
---|
14989 | as_fn_error $? "conditional \"PNG_LOONGARCH_LSX\" was never defined.
|
---|
14990 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
14991 | fi
|
---|
14992 |
|
---|
14993 | : "${CONFIG_STATUS=./config.status}"
|
---|
14994 | ac_write_fail=0
|
---|
14995 | ac_clean_files_save=$ac_clean_files
|
---|
14996 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
14997 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
|
---|
14998 | printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
14999 | as_write_fail=0
|
---|
15000 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
|
---|
15001 | #! $SHELL
|
---|
15002 | # Generated by $as_me.
|
---|
15003 | # Run this file to recreate the current configuration.
|
---|
15004 | # Compiler output produced by configure, useful for debugging
|
---|
15005 | # configure, is in config.log if it exists.
|
---|
15006 |
|
---|
15007 | debug=false
|
---|
15008 | ac_cs_recheck=false
|
---|
15009 | ac_cs_silent=false
|
---|
15010 |
|
---|
15011 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
15012 | export SHELL
|
---|
15013 | _ASEOF
|
---|
15014 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
|
---|
15015 | ## -------------------- ##
|
---|
15016 | ## M4sh Initialization. ##
|
---|
15017 | ## -------------------- ##
|
---|
15018 |
|
---|
15019 | # Be more Bourne compatible
|
---|
15020 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
15021 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
|
---|
15022 | then :
|
---|
15023 | emulate sh
|
---|
15024 | NULLCMD=:
|
---|
15025 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
15026 | # is contrary to our usage. Disable this feature.
|
---|
15027 | alias -g '${1+"$@"}'='"$@"'
|
---|
15028 | setopt NO_GLOB_SUBST
|
---|
15029 | else case e in #(
|
---|
15030 | e) case `(set -o) 2>/dev/null` in #(
|
---|
15031 | *posix*) :
|
---|
15032 | set -o posix ;; #(
|
---|
15033 | *) :
|
---|
15034 | ;;
|
---|
15035 | esac ;;
|
---|
15036 | esac
|
---|
15037 | fi
|
---|
15038 |
|
---|
15039 |
|
---|
15040 |
|
---|
15041 | # Reset variables that may have inherited troublesome values from
|
---|
15042 | # the environment.
|
---|
15043 |
|
---|
15044 | # IFS needs to be set, to space, tab, and newline, in precisely that order.
|
---|
15045 | # (If _AS_PATH_WALK were called with IFS unset, it would have the
|
---|
15046 | # side effect of setting IFS to empty, thus disabling word splitting.)
|
---|
15047 | # Quoting is to prevent editors from complaining about space-tab.
|
---|
15048 | as_nl='
|
---|
15049 | '
|
---|
15050 | export as_nl
|
---|
15051 | IFS=" "" $as_nl"
|
---|
15052 |
|
---|
15053 | PS1='$ '
|
---|
15054 | PS2='> '
|
---|
15055 | PS4='+ '
|
---|
15056 |
|
---|
15057 | # Ensure predictable behavior from utilities with locale-dependent output.
|
---|
15058 | LC_ALL=C
|
---|
15059 | export LC_ALL
|
---|
15060 | LANGUAGE=C
|
---|
15061 | export LANGUAGE
|
---|
15062 |
|
---|
15063 | # We cannot yet rely on "unset" to work, but we need these variables
|
---|
15064 | # to be unset--not just set to an empty or harmless value--now, to
|
---|
15065 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
|
---|
15066 | # also avoids known problems related to "unset" and subshell syntax
|
---|
15067 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
|
---|
15068 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
|
---|
15069 | do eval test \${$as_var+y} \
|
---|
15070 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
15071 | done
|
---|
15072 |
|
---|
15073 | # Ensure that fds 0, 1, and 2 are open.
|
---|
15074 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
|
---|
15075 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
|
---|
15076 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
|
---|
15077 |
|
---|
15078 | # The user is always right.
|
---|
15079 | if ${PATH_SEPARATOR+false} :; then
|
---|
15080 | PATH_SEPARATOR=:
|
---|
15081 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
---|
15082 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
---|
15083 | PATH_SEPARATOR=';'
|
---|
15084 | }
|
---|
15085 | fi
|
---|
15086 |
|
---|
15087 |
|
---|
15088 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
15089 | as_myself=
|
---|
15090 | case $0 in #((
|
---|
15091 | *[\\/]* ) as_myself=$0 ;;
|
---|
15092 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
15093 | for as_dir in $PATH
|
---|
15094 | do
|
---|
15095 | IFS=$as_save_IFS
|
---|
15096 | case $as_dir in #(((
|
---|
15097 | '') as_dir=./ ;;
|
---|
15098 | */) ;;
|
---|
15099 | *) as_dir=$as_dir/ ;;
|
---|
15100 | esac
|
---|
15101 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break
|
---|
15102 | done
|
---|
15103 | IFS=$as_save_IFS
|
---|
15104 |
|
---|
15105 | ;;
|
---|
15106 | esac
|
---|
15107 | # We did not find ourselves, most probably we were run as 'sh COMMAND'
|
---|
15108 | # in which case we are not to be found in the path.
|
---|
15109 | if test "x$as_myself" = x; then
|
---|
15110 | as_myself=$0
|
---|
15111 | fi
|
---|
15112 | if test ! -f "$as_myself"; then
|
---|
15113 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
15114 | exit 1
|
---|
15115 | fi
|
---|
15116 |
|
---|
15117 |
|
---|
15118 |
|
---|
15119 | # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
---|
15120 | # ----------------------------------------
|
---|
15121 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
15122 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
15123 | # script with STATUS, using 1 if that was 0.
|
---|
15124 | as_fn_error ()
|
---|
15125 | {
|
---|
15126 | as_status=$1; test $as_status -eq 0 && as_status=1
|
---|
15127 | if test "$4"; then
|
---|
15128 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
15129 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
---|
15130 | fi
|
---|
15131 | printf "%s\n" "$as_me: error: $2" >&2
|
---|
15132 | as_fn_exit $as_status
|
---|
15133 | } # as_fn_error
|
---|
15134 |
|
---|
15135 |
|
---|
15136 | # as_fn_set_status STATUS
|
---|
15137 | # -----------------------
|
---|
15138 | # Set $? to STATUS, without forking.
|
---|
15139 | as_fn_set_status ()
|
---|
15140 | {
|
---|
15141 | return $1
|
---|
15142 | } # as_fn_set_status
|
---|
15143 |
|
---|
15144 | # as_fn_exit STATUS
|
---|
15145 | # -----------------
|
---|
15146 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
15147 | as_fn_exit ()
|
---|
15148 | {
|
---|
15149 | set +e
|
---|
15150 | as_fn_set_status $1
|
---|
15151 | exit $1
|
---|
15152 | } # as_fn_exit
|
---|
15153 |
|
---|
15154 | # as_fn_unset VAR
|
---|
15155 | # ---------------
|
---|
15156 | # Portably unset VAR.
|
---|
15157 | as_fn_unset ()
|
---|
15158 | {
|
---|
15159 | { eval $1=; unset $1;}
|
---|
15160 | }
|
---|
15161 | as_unset=as_fn_unset
|
---|
15162 |
|
---|
15163 | # as_fn_append VAR VALUE
|
---|
15164 | # ----------------------
|
---|
15165 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
15166 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
15167 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
15168 | # implementations.
|
---|
15169 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
|
---|
15170 | then :
|
---|
15171 | eval 'as_fn_append ()
|
---|
15172 | {
|
---|
15173 | eval $1+=\$2
|
---|
15174 | }'
|
---|
15175 | else case e in #(
|
---|
15176 | e) as_fn_append ()
|
---|
15177 | {
|
---|
15178 | eval $1=\$$1\$2
|
---|
15179 | } ;;
|
---|
15180 | esac
|
---|
15181 | fi # as_fn_append
|
---|
15182 |
|
---|
15183 | # as_fn_arith ARG...
|
---|
15184 | # ------------------
|
---|
15185 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
15186 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
15187 | # must be portable across $(()) and expr.
|
---|
15188 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
|
---|
15189 | then :
|
---|
15190 | eval 'as_fn_arith ()
|
---|
15191 | {
|
---|
15192 | as_val=$(( $* ))
|
---|
15193 | }'
|
---|
15194 | else case e in #(
|
---|
15195 | e) as_fn_arith ()
|
---|
15196 | {
|
---|
15197 | as_val=`expr "$@" || test $? -eq 1`
|
---|
15198 | } ;;
|
---|
15199 | esac
|
---|
15200 | fi # as_fn_arith
|
---|
15201 |
|
---|
15202 |
|
---|
15203 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
15204 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
15205 | as_expr=expr
|
---|
15206 | else
|
---|
15207 | as_expr=false
|
---|
15208 | fi
|
---|
15209 |
|
---|
15210 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
15211 | as_basename=basename
|
---|
15212 | else
|
---|
15213 | as_basename=false
|
---|
15214 | fi
|
---|
15215 |
|
---|
15216 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
15217 | as_dirname=dirname
|
---|
15218 | else
|
---|
15219 | as_dirname=false
|
---|
15220 | fi
|
---|
15221 |
|
---|
15222 | as_me=`$as_basename -- "$0" ||
|
---|
15223 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
15224 | X"$0" : 'X\(//\)$' \| \
|
---|
15225 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
15226 | printf "%s\n" X/"$0" |
|
---|
15227 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
15228 | s//\1/
|
---|
15229 | q
|
---|
15230 | }
|
---|
15231 | /^X\/\(\/\/\)$/{
|
---|
15232 | s//\1/
|
---|
15233 | q
|
---|
15234 | }
|
---|
15235 | /^X\/\(\/\).*/{
|
---|
15236 | s//\1/
|
---|
15237 | q
|
---|
15238 | }
|
---|
15239 | s/.*/./; q'`
|
---|
15240 |
|
---|
15241 | # Avoid depending upon Character Ranges.
|
---|
15242 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
15243 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
15244 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
15245 | as_cr_digits='0123456789'
|
---|
15246 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
15247 |
|
---|
15248 |
|
---|
15249 | # Determine whether it's possible to make 'echo' print without a newline.
|
---|
15250 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
|
---|
15251 | # for compatibility with existing Makefiles.
|
---|
15252 | ECHO_C= ECHO_N= ECHO_T=
|
---|
15253 | case `echo -n x` in #(((((
|
---|
15254 | -n*)
|
---|
15255 | case `echo 'xy\c'` in
|
---|
15256 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
15257 | xy) ECHO_C='\c';;
|
---|
15258 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
15259 | ECHO_T=' ';;
|
---|
15260 | esac;;
|
---|
15261 | *)
|
---|
15262 | ECHO_N='-n';;
|
---|
15263 | esac
|
---|
15264 |
|
---|
15265 | # For backward compatibility with old third-party macros, we provide
|
---|
15266 | # the shell variables $as_echo and $as_echo_n. New code should use
|
---|
15267 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
|
---|
15268 | as_echo='printf %s\n'
|
---|
15269 | as_echo_n='printf %s'
|
---|
15270 |
|
---|
15271 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
15272 | if test -d conf$$.dir; then
|
---|
15273 | rm -f conf$$.dir/conf$$.file
|
---|
15274 | else
|
---|
15275 | rm -f conf$$.dir
|
---|
15276 | mkdir conf$$.dir 2>/dev/null
|
---|
15277 | fi
|
---|
15278 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
15279 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
15280 | as_ln_s='ln -s'
|
---|
15281 | # ... but there are two gotchas:
|
---|
15282 | # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
|
---|
15283 | # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
|
---|
15284 | # In both cases, we have to default to 'cp -pR'.
|
---|
15285 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
15286 | as_ln_s='cp -pR'
|
---|
15287 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
15288 | as_ln_s=ln
|
---|
15289 | else
|
---|
15290 | as_ln_s='cp -pR'
|
---|
15291 | fi
|
---|
15292 | else
|
---|
15293 | as_ln_s='cp -pR'
|
---|
15294 | fi
|
---|
15295 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
15296 | rmdir conf$$.dir 2>/dev/null
|
---|
15297 |
|
---|
15298 |
|
---|
15299 | # as_fn_mkdir_p
|
---|
15300 | # -------------
|
---|
15301 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
15302 | as_fn_mkdir_p ()
|
---|
15303 | {
|
---|
15304 |
|
---|
15305 | case $as_dir in #(
|
---|
15306 | -*) as_dir=./$as_dir;;
|
---|
15307 | esac
|
---|
15308 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
15309 | as_dirs=
|
---|
15310 | while :; do
|
---|
15311 | case $as_dir in #(
|
---|
15312 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
15313 | *) as_qdir=$as_dir;;
|
---|
15314 | esac
|
---|
15315 | as_dirs="'$as_qdir' $as_dirs"
|
---|
15316 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
15317 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
15318 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
15319 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
15320 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
15321 | printf "%s\n" X"$as_dir" |
|
---|
15322 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
15323 | s//\1/
|
---|
15324 | q
|
---|
15325 | }
|
---|
15326 | /^X\(\/\/\)[^/].*/{
|
---|
15327 | s//\1/
|
---|
15328 | q
|
---|
15329 | }
|
---|
15330 | /^X\(\/\/\)$/{
|
---|
15331 | s//\1/
|
---|
15332 | q
|
---|
15333 | }
|
---|
15334 | /^X\(\/\).*/{
|
---|
15335 | s//\1/
|
---|
15336 | q
|
---|
15337 | }
|
---|
15338 | s/.*/./; q'`
|
---|
15339 | test -d "$as_dir" && break
|
---|
15340 | done
|
---|
15341 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
15342 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
---|
15343 |
|
---|
15344 |
|
---|
15345 | } # as_fn_mkdir_p
|
---|
15346 | if mkdir -p . 2>/dev/null; then
|
---|
15347 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
15348 | else
|
---|
15349 | test -d ./-p && rmdir ./-p
|
---|
15350 | as_mkdir_p=false
|
---|
15351 | fi
|
---|
15352 |
|
---|
15353 |
|
---|
15354 | # as_fn_executable_p FILE
|
---|
15355 | # -----------------------
|
---|
15356 | # Test if FILE is an executable regular file.
|
---|
15357 | as_fn_executable_p ()
|
---|
15358 | {
|
---|
15359 | test -f "$1" && test -x "$1"
|
---|
15360 | } # as_fn_executable_p
|
---|
15361 | as_test_x='test -x'
|
---|
15362 | as_executable_p=as_fn_executable_p
|
---|
15363 |
|
---|
15364 | # Sed expression to map a string onto a valid CPP name.
|
---|
15365 | as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
|
---|
15366 | as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
|
---|
15367 |
|
---|
15368 | # Sed expression to map a string onto a valid variable name.
|
---|
15369 | as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
|
---|
15370 | as_tr_sh="eval sed '$as_sed_sh'" # deprecated
|
---|
15371 |
|
---|
15372 |
|
---|
15373 | exec 6>&1
|
---|
15374 | ## ----------------------------------- ##
|
---|
15375 | ## Main body of $CONFIG_STATUS script. ##
|
---|
15376 | ## ----------------------------------- ##
|
---|
15377 | _ASEOF
|
---|
15378 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
|
---|
15379 |
|
---|
15380 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
15381 | # Save the log message, to keep $0 and so on meaningful, and to
|
---|
15382 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
15383 | # values after options handling.
|
---|
15384 | ac_log="
|
---|
15385 | This file was extended by libpng $as_me 1.6.43, which was
|
---|
15386 | generated by GNU Autoconf 2.72. Invocation command line was
|
---|
15387 |
|
---|
15388 | CONFIG_FILES = $CONFIG_FILES
|
---|
15389 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
15390 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
15391 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
15392 | $ $0 $@
|
---|
15393 |
|
---|
15394 | on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
15395 | "
|
---|
15396 |
|
---|
15397 | _ACEOF
|
---|
15398 |
|
---|
15399 | case $ac_config_files in *"
|
---|
15400 | "*) set x $ac_config_files; shift; ac_config_files=$*;;
|
---|
15401 | esac
|
---|
15402 |
|
---|
15403 | case $ac_config_headers in *"
|
---|
15404 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
|
---|
15405 | esac
|
---|
15406 |
|
---|
15407 |
|
---|
15408 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
15409 | # Files that config.status was made for.
|
---|
15410 | config_files="$ac_config_files"
|
---|
15411 | config_headers="$ac_config_headers"
|
---|
15412 | config_commands="$ac_config_commands"
|
---|
15413 |
|
---|
15414 | _ACEOF
|
---|
15415 |
|
---|
15416 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
15417 | ac_cs_usage="\
|
---|
15418 | '$as_me' instantiates files and other configuration actions
|
---|
15419 | from templates according to the current configuration. Unless the files
|
---|
15420 | and actions are specified as TAGs, all are instantiated by default.
|
---|
15421 |
|
---|
15422 | Usage: $0 [OPTION]... [TAG]...
|
---|
15423 |
|
---|
15424 | -h, --help print this help, then exit
|
---|
15425 | -V, --version print version number and configuration settings, then exit
|
---|
15426 | --config print configuration, then exit
|
---|
15427 | -q, --quiet, --silent
|
---|
15428 | do not print progress messages
|
---|
15429 | -d, --debug don't remove temporary files
|
---|
15430 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
15431 | --file=FILE[:TEMPLATE]
|
---|
15432 | instantiate the configuration file FILE
|
---|
15433 | --header=FILE[:TEMPLATE]
|
---|
15434 | instantiate the configuration header FILE
|
---|
15435 |
|
---|
15436 | Configuration files:
|
---|
15437 | $config_files
|
---|
15438 |
|
---|
15439 | Configuration headers:
|
---|
15440 | $config_headers
|
---|
15441 |
|
---|
15442 | Configuration commands:
|
---|
15443 | $config_commands
|
---|
15444 |
|
---|
15445 | Report bugs to <[email protected]>."
|
---|
15446 |
|
---|
15447 | _ACEOF
|
---|
15448 | ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
|
---|
15449 | ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
|
---|
15450 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
15451 | ac_cs_config='$ac_cs_config_escaped'
|
---|
15452 | ac_cs_version="\\
|
---|
15453 | libpng config.status 1.6.43
|
---|
15454 | configured by $0, generated by GNU Autoconf 2.72,
|
---|
15455 | with options \\"\$ac_cs_config\\"
|
---|
15456 |
|
---|
15457 | Copyright (C) 2023 Free Software Foundation, Inc.
|
---|
15458 | This config.status script is free software; the Free Software Foundation
|
---|
15459 | gives unlimited permission to copy, distribute and modify it."
|
---|
15460 |
|
---|
15461 | ac_pwd='$ac_pwd'
|
---|
15462 | srcdir='$srcdir'
|
---|
15463 | INSTALL='$INSTALL'
|
---|
15464 | MKDIR_P='$MKDIR_P'
|
---|
15465 | AWK='$AWK'
|
---|
15466 | test -n "\$AWK" || AWK=awk
|
---|
15467 | _ACEOF
|
---|
15468 |
|
---|
15469 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
15470 | # The default lists apply if the user does not specify any file.
|
---|
15471 | ac_need_defaults=:
|
---|
15472 | while test $# != 0
|
---|
15473 | do
|
---|
15474 | case $1 in
|
---|
15475 | --*=?*)
|
---|
15476 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
15477 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
---|
15478 | ac_shift=:
|
---|
15479 | ;;
|
---|
15480 | --*=)
|
---|
15481 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
15482 | ac_optarg=
|
---|
15483 | ac_shift=:
|
---|
15484 | ;;
|
---|
15485 | *)
|
---|
15486 | ac_option=$1
|
---|
15487 | ac_optarg=$2
|
---|
15488 | ac_shift=shift
|
---|
15489 | ;;
|
---|
15490 | esac
|
---|
15491 |
|
---|
15492 | case $ac_option in
|
---|
15493 | # Handling of the options.
|
---|
15494 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
15495 | ac_cs_recheck=: ;;
|
---|
15496 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
---|
15497 | printf "%s\n" "$ac_cs_version"; exit ;;
|
---|
15498 | --config | --confi | --conf | --con | --co | --c )
|
---|
15499 | printf "%s\n" "$ac_cs_config"; exit ;;
|
---|
15500 | --debug | --debu | --deb | --de | --d | -d )
|
---|
15501 | debug=: ;;
|
---|
15502 | --file | --fil | --fi | --f )
|
---|
15503 | $ac_shift
|
---|
15504 | case $ac_optarg in
|
---|
15505 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
15506 | '') as_fn_error $? "missing file argument" ;;
|
---|
15507 | esac
|
---|
15508 | as_fn_append CONFIG_FILES " '$ac_optarg'"
|
---|
15509 | ac_need_defaults=false;;
|
---|
15510 | --header | --heade | --head | --hea )
|
---|
15511 | $ac_shift
|
---|
15512 | case $ac_optarg in
|
---|
15513 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
15514 | esac
|
---|
15515 | as_fn_append CONFIG_HEADERS " '$ac_optarg'"
|
---|
15516 | ac_need_defaults=false;;
|
---|
15517 | --he | --h)
|
---|
15518 | # Conflict between --help and --header
|
---|
15519 | as_fn_error $? "ambiguous option: '$1'
|
---|
15520 | Try '$0 --help' for more information.";;
|
---|
15521 | --help | --hel | -h )
|
---|
15522 | printf "%s\n" "$ac_cs_usage"; exit ;;
|
---|
15523 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
15524 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
15525 | ac_cs_silent=: ;;
|
---|
15526 |
|
---|
15527 | # This is an error.
|
---|
15528 | -*) as_fn_error $? "unrecognized option: '$1'
|
---|
15529 | Try '$0 --help' for more information." ;;
|
---|
15530 |
|
---|
15531 | *) as_fn_append ac_config_targets " $1"
|
---|
15532 | ac_need_defaults=false ;;
|
---|
15533 |
|
---|
15534 | esac
|
---|
15535 | shift
|
---|
15536 | done
|
---|
15537 |
|
---|
15538 | ac_configure_extra_args=
|
---|
15539 |
|
---|
15540 | if $ac_cs_silent; then
|
---|
15541 | exec 6>/dev/null
|
---|
15542 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
15543 | fi
|
---|
15544 |
|
---|
15545 | _ACEOF
|
---|
15546 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
15547 | if \$ac_cs_recheck; then
|
---|
15548 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
15549 | shift
|
---|
15550 | \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
|
---|
15551 | CONFIG_SHELL='$SHELL'
|
---|
15552 | export CONFIG_SHELL
|
---|
15553 | exec "\$@"
|
---|
15554 | fi
|
---|
15555 |
|
---|
15556 | _ACEOF
|
---|
15557 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
15558 | exec 5>>config.log
|
---|
15559 | {
|
---|
15560 | echo
|
---|
15561 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
15562 | ## Running $as_me. ##
|
---|
15563 | _ASBOX
|
---|
15564 | printf "%s\n" "$ac_log"
|
---|
15565 | } >&5
|
---|
15566 |
|
---|
15567 | _ACEOF
|
---|
15568 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
15569 | #
|
---|
15570 | # INIT-COMMANDS
|
---|
15571 | #
|
---|
15572 | AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
|
---|
15573 |
|
---|
15574 |
|
---|
15575 | # The HP-UX ksh and POSIX shell print the target directory to stdout
|
---|
15576 | # if CDPATH is set.
|
---|
15577 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
15578 |
|
---|
15579 | sed_quote_subst='$sed_quote_subst'
|
---|
15580 | double_quote_subst='$double_quote_subst'
|
---|
15581 | delay_variable_subst='$delay_variable_subst'
|
---|
15582 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
|
---|
15583 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
|
---|
15584 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
|
---|
15585 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
|
---|
15586 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
|
---|
15587 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
|
---|
15588 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
|
---|
15589 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
|
---|
15590 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
|
---|
15591 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
|
---|
15592 | AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
|
---|
15593 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
|
---|
15594 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
|
---|
15595 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
|
---|
15596 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
|
---|
15597 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
|
---|
15598 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
|
---|
15599 | shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
|
---|
15600 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
|
---|
15601 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
|
---|
15602 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
|
---|
15603 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
|
---|
15604 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
|
---|
15605 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
|
---|
15606 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
|
---|
15607 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
|
---|
15608 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
|
---|
15609 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
|
---|
15610 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
|
---|
15611 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
|
---|
15612 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
|
---|
15613 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
|
---|
15614 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
|
---|
15615 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
|
---|
15616 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
|
---|
15617 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
|
---|
15618 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
15619 | FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
|
---|
15620 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
|
---|
15621 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
|
---|
15622 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
|
---|
15623 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
|
---|
15624 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
|
---|
15625 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
|
---|
15626 | lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
|
---|
15627 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
|
---|
15628 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
|
---|
15629 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
|
---|
15630 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
|
---|
15631 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
15632 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
15633 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
15634 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
|
---|
15635 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
|
---|
15636 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
|
---|
15637 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
|
---|
15638 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
|
---|
15639 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
|
---|
15640 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
|
---|
15641 | lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
|
---|
15642 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
|
---|
15643 | 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"`'
|
---|
15644 | lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
|
---|
15645 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
|
---|
15646 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
|
---|
15647 | lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
|
---|
15648 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
|
---|
15649 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
|
---|
15650 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
|
---|
15651 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
|
---|
15652 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
|
---|
15653 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
|
---|
15654 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
|
---|
15655 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
|
---|
15656 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
|
---|
15657 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
|
---|
15658 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
|
---|
15659 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
|
---|
15660 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
|
---|
15661 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
|
---|
15662 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
|
---|
15663 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
15664 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
15665 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
|
---|
15666 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
|
---|
15667 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
|
---|
15668 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
|
---|
15669 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
|
---|
15670 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
15671 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
15672 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
15673 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
15674 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
15675 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
15676 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
|
---|
15677 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
|
---|
15678 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
|
---|
15679 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
|
---|
15680 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
|
---|
15681 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
|
---|
15682 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
|
---|
15683 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
|
---|
15684 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
|
---|
15685 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
|
---|
15686 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
|
---|
15687 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
|
---|
15688 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
|
---|
15689 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
15690 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
|
---|
15691 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
|
---|
15692 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
15693 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
15694 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
|
---|
15695 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
|
---|
15696 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
|
---|
15697 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
|
---|
15698 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
|
---|
15699 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
|
---|
15700 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
|
---|
15701 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
|
---|
15702 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
|
---|
15703 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
|
---|
15704 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
|
---|
15705 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
|
---|
15706 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
15707 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
15708 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
15709 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
|
---|
15710 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
|
---|
15711 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
|
---|
15712 | configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
|
---|
15713 | configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
|
---|
15714 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
|
---|
15715 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
|
---|
15716 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
|
---|
15717 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
|
---|
15718 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
|
---|
15719 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
|
---|
15720 |
|
---|
15721 | LTCC='$LTCC'
|
---|
15722 | LTCFLAGS='$LTCFLAGS'
|
---|
15723 | compiler='$compiler_DEFAULT'
|
---|
15724 |
|
---|
15725 | # A function that is used when there is no print builtin or printf.
|
---|
15726 | func_fallback_echo ()
|
---|
15727 | {
|
---|
15728 | eval 'cat <<_LTECHO_EOF
|
---|
15729 | \$1
|
---|
15730 | _LTECHO_EOF'
|
---|
15731 | }
|
---|
15732 |
|
---|
15733 | # Quote evaled strings.
|
---|
15734 | for var in SED \
|
---|
15735 | GREP \
|
---|
15736 | EGREP \
|
---|
15737 | FGREP \
|
---|
15738 | SHELL \
|
---|
15739 | ECHO \
|
---|
15740 | LD \
|
---|
15741 | AS \
|
---|
15742 | DLLTOOL \
|
---|
15743 | OBJDUMP \
|
---|
15744 | PATH_SEPARATOR \
|
---|
15745 | NM \
|
---|
15746 | LN_S \
|
---|
15747 | lt_SP2NL \
|
---|
15748 | lt_NL2SP \
|
---|
15749 | reload_flag \
|
---|
15750 | FILECMD \
|
---|
15751 | deplibs_check_method \
|
---|
15752 | file_magic_cmd \
|
---|
15753 | file_magic_glob \
|
---|
15754 | want_nocaseglob \
|
---|
15755 | sharedlib_from_linklib_cmd \
|
---|
15756 | AR \
|
---|
15757 | archiver_list_spec \
|
---|
15758 | STRIP \
|
---|
15759 | RANLIB \
|
---|
15760 | CC \
|
---|
15761 | CFLAGS \
|
---|
15762 | compiler \
|
---|
15763 | lt_cv_sys_global_symbol_pipe \
|
---|
15764 | lt_cv_sys_global_symbol_to_cdecl \
|
---|
15765 | lt_cv_sys_global_symbol_to_import \
|
---|
15766 | lt_cv_sys_global_symbol_to_c_name_address \
|
---|
15767 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
|
---|
15768 | lt_cv_nm_interface \
|
---|
15769 | nm_file_list_spec \
|
---|
15770 | lt_cv_truncate_bin \
|
---|
15771 | lt_prog_compiler_no_builtin_flag \
|
---|
15772 | lt_prog_compiler_pic \
|
---|
15773 | lt_prog_compiler_wl \
|
---|
15774 | lt_prog_compiler_static \
|
---|
15775 | lt_cv_prog_compiler_c_o \
|
---|
15776 | need_locks \
|
---|
15777 | MANIFEST_TOOL \
|
---|
15778 | DSYMUTIL \
|
---|
15779 | NMEDIT \
|
---|
15780 | LIPO \
|
---|
15781 | OTOOL \
|
---|
15782 | OTOOL64 \
|
---|
15783 | shrext_cmds \
|
---|
15784 | export_dynamic_flag_spec \
|
---|
15785 | whole_archive_flag_spec \
|
---|
15786 | compiler_needs_object \
|
---|
15787 | with_gnu_ld \
|
---|
15788 | allow_undefined_flag \
|
---|
15789 | no_undefined_flag \
|
---|
15790 | hardcode_libdir_flag_spec \
|
---|
15791 | hardcode_libdir_separator \
|
---|
15792 | exclude_expsyms \
|
---|
15793 | include_expsyms \
|
---|
15794 | file_list_spec \
|
---|
15795 | variables_saved_for_relink \
|
---|
15796 | libname_spec \
|
---|
15797 | library_names_spec \
|
---|
15798 | soname_spec \
|
---|
15799 | install_override_mode \
|
---|
15800 | finish_eval \
|
---|
15801 | old_striplib \
|
---|
15802 | striplib; do
|
---|
15803 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
|
---|
15804 | *[\\\\\\\`\\"\\\$]*)
|
---|
15805 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
|
---|
15806 | ;;
|
---|
15807 | *)
|
---|
15808 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
|
---|
15809 | ;;
|
---|
15810 | esac
|
---|
15811 | done
|
---|
15812 |
|
---|
15813 | # Double-quote double-evaled strings.
|
---|
15814 | for var in reload_cmds \
|
---|
15815 | old_postinstall_cmds \
|
---|
15816 | old_postuninstall_cmds \
|
---|
15817 | old_archive_cmds \
|
---|
15818 | extract_expsyms_cmds \
|
---|
15819 | old_archive_from_new_cmds \
|
---|
15820 | old_archive_from_expsyms_cmds \
|
---|
15821 | archive_cmds \
|
---|
15822 | archive_expsym_cmds \
|
---|
15823 | module_cmds \
|
---|
15824 | module_expsym_cmds \
|
---|
15825 | export_symbols_cmds \
|
---|
15826 | prelink_cmds \
|
---|
15827 | postlink_cmds \
|
---|
15828 | postinstall_cmds \
|
---|
15829 | postuninstall_cmds \
|
---|
15830 | finish_cmds \
|
---|
15831 | sys_lib_search_path_spec \
|
---|
15832 | configure_time_dlsearch_path \
|
---|
15833 | configure_time_lt_sys_library_path; do
|
---|
15834 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
|
---|
15835 | *[\\\\\\\`\\"\\\$]*)
|
---|
15836 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
|
---|
15837 | ;;
|
---|
15838 | *)
|
---|
15839 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
|
---|
15840 | ;;
|
---|
15841 | esac
|
---|
15842 | done
|
---|
15843 |
|
---|
15844 | ac_aux_dir='$ac_aux_dir'
|
---|
15845 |
|
---|
15846 | # See if we are running on zsh, and set the options that allow our
|
---|
15847 | # commands through without removal of \ escapes INIT.
|
---|
15848 | if test -n "\${ZSH_VERSION+set}"; then
|
---|
15849 | setopt NO_GLOB_SUBST
|
---|
15850 | fi
|
---|
15851 |
|
---|
15852 |
|
---|
15853 | PACKAGE='$PACKAGE'
|
---|
15854 | VERSION='$VERSION'
|
---|
15855 | RM='$RM'
|
---|
15856 | ofile='$ofile'
|
---|
15857 |
|
---|
15858 |
|
---|
15859 |
|
---|
15860 |
|
---|
15861 | _ACEOF
|
---|
15862 |
|
---|
15863 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
15864 |
|
---|
15865 | # Handling of arguments.
|
---|
15866 | for ac_config_target in $ac_config_targets
|
---|
15867 | do
|
---|
15868 | case $ac_config_target in
|
---|
15869 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
15870 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
|
---|
15871 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
|
---|
15872 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
15873 | "libpng.pc") CONFIG_FILES="$CONFIG_FILES libpng.pc:libpng.pc.in" ;;
|
---|
15874 | "libpng-config") CONFIG_FILES="$CONFIG_FILES libpng-config:libpng-config.in" ;;
|
---|
15875 |
|
---|
15876 | *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
|
---|
15877 | esac
|
---|
15878 | done
|
---|
15879 |
|
---|
15880 |
|
---|
15881 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
15882 | # then the envvar interface is used. Set only those that are not.
|
---|
15883 | # We use the long form for the default assignment because of an extremely
|
---|
15884 | # bizarre bug on SunOS 4.1.3.
|
---|
15885 | if $ac_need_defaults; then
|
---|
15886 | test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
|
---|
15887 | test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
|
---|
15888 | test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
|
---|
15889 | fi
|
---|
15890 |
|
---|
15891 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
15892 | # simply because there is no reason against having it here, and in addition,
|
---|
15893 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
15894 | # Hook for its removal unless debugging.
|
---|
15895 | # Note that there is a small window in which the directory will not be cleaned:
|
---|
15896 | # after its creation but before its name has been assigned to '$tmp'.
|
---|
15897 | $debug ||
|
---|
15898 | {
|
---|
15899 | tmp= ac_tmp=
|
---|
15900 | trap 'exit_status=$?
|
---|
15901 | : "${ac_tmp:=$tmp}"
|
---|
15902 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
|
---|
15903 | ' 0
|
---|
15904 | trap 'as_fn_exit 1' 1 2 13 15
|
---|
15905 | }
|
---|
15906 | # Create a (secure) tmp directory for tmp files.
|
---|
15907 |
|
---|
15908 | {
|
---|
15909 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
---|
15910 | test -d "$tmp"
|
---|
15911 | } ||
|
---|
15912 | {
|
---|
15913 | tmp=./conf$$-$RANDOM
|
---|
15914 | (umask 077 && mkdir "$tmp")
|
---|
15915 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
|
---|
15916 | ac_tmp=$tmp
|
---|
15917 |
|
---|
15918 | # Set up the scripts for CONFIG_FILES section.
|
---|
15919 | # No need to generate them if there are no CONFIG_FILES.
|
---|
15920 | # This happens for instance with './config.status config.h'.
|
---|
15921 | if test -n "$CONFIG_FILES"; then
|
---|
15922 |
|
---|
15923 |
|
---|
15924 | ac_cr=`echo X | tr X '\015'`
|
---|
15925 | # On cygwin, bash can eat \r inside `` if the user requested igncr.
|
---|
15926 | # But we know of no other shell where ac_cr would be empty at this
|
---|
15927 | # point, so we can use a bashism as a fallback.
|
---|
15928 | if test "x$ac_cr" = x; then
|
---|
15929 | eval ac_cr=\$\'\\r\'
|
---|
15930 | fi
|
---|
15931 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
|
---|
15932 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
|
---|
15933 | ac_cs_awk_cr='\\r'
|
---|
15934 | else
|
---|
15935 | ac_cs_awk_cr=$ac_cr
|
---|
15936 | fi
|
---|
15937 |
|
---|
15938 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
|
---|
15939 | _ACEOF
|
---|
15940 |
|
---|
15941 |
|
---|
15942 | {
|
---|
15943 | echo "cat >conf$$subs.awk <<_ACEOF" &&
|
---|
15944 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
|
---|
15945 | echo "_ACEOF"
|
---|
15946 | } >conf$$subs.sh ||
|
---|
15947 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
15948 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
|
---|
15949 | ac_delim='%!_!# '
|
---|
15950 | for ac_last_try in false false false false false :; do
|
---|
15951 | . ./conf$$subs.sh ||
|
---|
15952 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
15953 |
|
---|
15954 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
|
---|
15955 | if test $ac_delim_n = $ac_delim_num; then
|
---|
15956 | break
|
---|
15957 | elif $ac_last_try; then
|
---|
15958 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
15959 | else
|
---|
15960 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
15961 | fi
|
---|
15962 | done
|
---|
15963 | rm -f conf$$subs.sh
|
---|
15964 |
|
---|
15965 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
15966 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
|
---|
15967 | _ACEOF
|
---|
15968 | sed -n '
|
---|
15969 | h
|
---|
15970 | s/^/S["/; s/!.*/"]=/
|
---|
15971 | p
|
---|
15972 | g
|
---|
15973 | s/^[^!]*!//
|
---|
15974 | :repl
|
---|
15975 | t repl
|
---|
15976 | s/'"$ac_delim"'$//
|
---|
15977 | t delim
|
---|
15978 | :nl
|
---|
15979 | h
|
---|
15980 | s/\(.\{148\}\)..*/\1/
|
---|
15981 | t more1
|
---|
15982 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
|
---|
15983 | p
|
---|
15984 | n
|
---|
15985 | b repl
|
---|
15986 | :more1
|
---|
15987 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
15988 | p
|
---|
15989 | g
|
---|
15990 | s/.\{148\}//
|
---|
15991 | t nl
|
---|
15992 | :delim
|
---|
15993 | h
|
---|
15994 | s/\(.\{148\}\)..*/\1/
|
---|
15995 | t more2
|
---|
15996 | s/["\\]/\\&/g; s/^/"/; s/$/"/
|
---|
15997 | p
|
---|
15998 | b
|
---|
15999 | :more2
|
---|
16000 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
16001 | p
|
---|
16002 | g
|
---|
16003 | s/.\{148\}//
|
---|
16004 | t delim
|
---|
16005 | ' <conf$$subs.awk | sed '
|
---|
16006 | /^[^""]/{
|
---|
16007 | N
|
---|
16008 | s/\n//
|
---|
16009 | }
|
---|
16010 | ' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
16011 | rm -f conf$$subs.awk
|
---|
16012 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
16013 | _ACAWK
|
---|
16014 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
|
---|
16015 | for (key in S) S_is_set[key] = 1
|
---|
16016 | FS = ""
|
---|
16017 |
|
---|
16018 | }
|
---|
16019 | {
|
---|
16020 | line = $ 0
|
---|
16021 | nfields = split(line, field, "@")
|
---|
16022 | substed = 0
|
---|
16023 | len = length(field[1])
|
---|
16024 | for (i = 2; i < nfields; i++) {
|
---|
16025 | key = field[i]
|
---|
16026 | keylen = length(key)
|
---|
16027 | if (S_is_set[key]) {
|
---|
16028 | value = S[key]
|
---|
16029 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
|
---|
16030 | len += length(value) + length(field[++i])
|
---|
16031 | substed = 1
|
---|
16032 | } else
|
---|
16033 | len += 1 + keylen
|
---|
16034 | }
|
---|
16035 |
|
---|
16036 | print line
|
---|
16037 | }
|
---|
16038 |
|
---|
16039 | _ACAWK
|
---|
16040 | _ACEOF
|
---|
16041 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
16042 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
|
---|
16043 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
|
---|
16044 | else
|
---|
16045 | cat
|
---|
16046 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
|
---|
16047 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
|
---|
16048 | _ACEOF
|
---|
16049 |
|
---|
16050 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
|
---|
16051 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
|
---|
16052 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
16053 | # (actually we leave an empty line to preserve line numbers).
|
---|
16054 | if test "x$srcdir" = x.; then
|
---|
16055 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
|
---|
16056 | h
|
---|
16057 | s///
|
---|
16058 | s/^/:/
|
---|
16059 | s/[ ]*$/:/
|
---|
16060 | s/:\$(srcdir):/:/g
|
---|
16061 | s/:\${srcdir}:/:/g
|
---|
16062 | s/:@srcdir@:/:/g
|
---|
16063 | s/^:*//
|
---|
16064 | s/:*$//
|
---|
16065 | x
|
---|
16066 | s/\(=[ ]*\).*/\1/
|
---|
16067 | G
|
---|
16068 | s/\n//
|
---|
16069 | s/^[^=]*=[ ]*$//
|
---|
16070 | }'
|
---|
16071 | fi
|
---|
16072 |
|
---|
16073 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
16074 | fi # test -n "$CONFIG_FILES"
|
---|
16075 |
|
---|
16076 | # Set up the scripts for CONFIG_HEADERS section.
|
---|
16077 | # No need to generate them if there are no CONFIG_HEADERS.
|
---|
16078 | # This happens for instance with './config.status Makefile'.
|
---|
16079 | if test -n "$CONFIG_HEADERS"; then
|
---|
16080 | cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
|
---|
16081 | BEGIN {
|
---|
16082 | _ACEOF
|
---|
16083 |
|
---|
16084 | # Transform confdefs.h into an awk script 'defines.awk', embedded as
|
---|
16085 | # here-document in config.status, that substitutes the proper values into
|
---|
16086 | # config.h.in to produce config.h.
|
---|
16087 |
|
---|
16088 | # Create a delimiter string that does not exist in confdefs.h, to ease
|
---|
16089 | # handling of long lines.
|
---|
16090 | ac_delim='%!_!# '
|
---|
16091 | for ac_last_try in false false :; do
|
---|
16092 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
|
---|
16093 | if test -z "$ac_tt"; then
|
---|
16094 | break
|
---|
16095 | elif $ac_last_try; then
|
---|
16096 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
|
---|
16097 | else
|
---|
16098 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
16099 | fi
|
---|
16100 | done
|
---|
16101 |
|
---|
16102 | # For the awk script, D is an array of macro values keyed by name,
|
---|
16103 | # likewise P contains macro parameters if any. Preserve backslash
|
---|
16104 | # newline sequences.
|
---|
16105 |
|
---|
16106 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
|
---|
16107 | sed -n '
|
---|
16108 | s/.\{148\}/&'"$ac_delim"'/g
|
---|
16109 | t rset
|
---|
16110 | :rset
|
---|
16111 | s/^[ ]*#[ ]*define[ ][ ]*/ /
|
---|
16112 | t def
|
---|
16113 | d
|
---|
16114 | :def
|
---|
16115 | s/\\$//
|
---|
16116 | t bsnl
|
---|
16117 | s/["\\]/\\&/g
|
---|
16118 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
---|
16119 | D["\1"]=" \3"/p
|
---|
16120 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
|
---|
16121 | d
|
---|
16122 | :bsnl
|
---|
16123 | s/["\\]/\\&/g
|
---|
16124 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
---|
16125 | D["\1"]=" \3\\\\\\n"\\/p
|
---|
16126 | t cont
|
---|
16127 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
|
---|
16128 | t cont
|
---|
16129 | d
|
---|
16130 | :cont
|
---|
16131 | n
|
---|
16132 | s/.\{148\}/&'"$ac_delim"'/g
|
---|
16133 | t clear
|
---|
16134 | :clear
|
---|
16135 | s/\\$//
|
---|
16136 | t bsnlc
|
---|
16137 | s/["\\]/\\&/g; s/^/"/; s/$/"/p
|
---|
16138 | d
|
---|
16139 | :bsnlc
|
---|
16140 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
|
---|
16141 | b cont
|
---|
16142 | ' <confdefs.h | sed '
|
---|
16143 | s/'"$ac_delim"'/"\\\
|
---|
16144 | "/g' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
16145 |
|
---|
16146 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
16147 | for (key in D) D_is_set[key] = 1
|
---|
16148 | FS = ""
|
---|
16149 | }
|
---|
16150 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
|
---|
16151 | line = \$ 0
|
---|
16152 | split(line, arg, " ")
|
---|
16153 | if (arg[1] == "#") {
|
---|
16154 | defundef = arg[2]
|
---|
16155 | mac1 = arg[3]
|
---|
16156 | } else {
|
---|
16157 | defundef = substr(arg[1], 2)
|
---|
16158 | mac1 = arg[2]
|
---|
16159 | }
|
---|
16160 | split(mac1, mac2, "(") #)
|
---|
16161 | macro = mac2[1]
|
---|
16162 | prefix = substr(line, 1, index(line, defundef) - 1)
|
---|
16163 | if (D_is_set[macro]) {
|
---|
16164 | # Preserve the white space surrounding the "#".
|
---|
16165 | print prefix "define", macro P[macro] D[macro]
|
---|
16166 | next
|
---|
16167 | } else {
|
---|
16168 | # Replace #undef with comments. This is necessary, for example,
|
---|
16169 | # in the case of _POSIX_SOURCE, which is predefined and required
|
---|
16170 | # on some systems where configure will not decide to define it.
|
---|
16171 | if (defundef == "undef") {
|
---|
16172 | print "/*", prefix defundef, macro, "*/"
|
---|
16173 | next
|
---|
16174 | }
|
---|
16175 | }
|
---|
16176 | }
|
---|
16177 | { print }
|
---|
16178 | _ACAWK
|
---|
16179 | _ACEOF
|
---|
16180 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
16181 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
|
---|
16182 | fi # test -n "$CONFIG_HEADERS"
|
---|
16183 |
|
---|
16184 |
|
---|
16185 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
|
---|
16186 | shift
|
---|
16187 | for ac_tag
|
---|
16188 | do
|
---|
16189 | case $ac_tag in
|
---|
16190 | :[FHLC]) ac_mode=$ac_tag; continue;;
|
---|
16191 | esac
|
---|
16192 | case $ac_mode$ac_tag in
|
---|
16193 | :[FHL]*:*);;
|
---|
16194 | :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
|
---|
16195 | :[FH]-) ac_tag=-:-;;
|
---|
16196 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
---|
16197 | esac
|
---|
16198 | ac_save_IFS=$IFS
|
---|
16199 | IFS=:
|
---|
16200 | set x $ac_tag
|
---|
16201 | IFS=$ac_save_IFS
|
---|
16202 | shift
|
---|
16203 | ac_file=$1
|
---|
16204 | shift
|
---|
16205 |
|
---|
16206 | case $ac_mode in
|
---|
16207 | :L) ac_source=$1;;
|
---|
16208 | :[FH])
|
---|
16209 | ac_file_inputs=
|
---|
16210 | for ac_f
|
---|
16211 | do
|
---|
16212 | case $ac_f in
|
---|
16213 | -) ac_f="$ac_tmp/stdin";;
|
---|
16214 | *) # Look for the file first in the build tree, then in the source tree
|
---|
16215 | # (if the path is not absolute). The absolute path cannot be DOS-style,
|
---|
16216 | # because $ac_f cannot contain ':'.
|
---|
16217 | test -f "$ac_f" ||
|
---|
16218 | case $ac_f in
|
---|
16219 | [\\/$]*) false;;
|
---|
16220 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
---|
16221 | esac ||
|
---|
16222 | as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
|
---|
16223 | esac
|
---|
16224 | case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
|
---|
16225 | as_fn_append ac_file_inputs " '$ac_f'"
|
---|
16226 | done
|
---|
16227 |
|
---|
16228 | # Let's still pretend it is 'configure' which instantiates (i.e., don't
|
---|
16229 | # use $as_me), people would be surprised to read:
|
---|
16230 | # /* config.h. Generated by config.status. */
|
---|
16231 | configure_input='Generated from '`
|
---|
16232 | printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
|
---|
16233 | `' by configure.'
|
---|
16234 | if test x"$ac_file" != x-; then
|
---|
16235 | configure_input="$ac_file. $configure_input"
|
---|
16236 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
|
---|
16237 | printf "%s\n" "$as_me: creating $ac_file" >&6;}
|
---|
16238 | fi
|
---|
16239 | # Neutralize special characters interpreted by sed in replacement strings.
|
---|
16240 | case $configure_input in #(
|
---|
16241 | *\&* | *\|* | *\\* )
|
---|
16242 | ac_sed_conf_input=`printf "%s\n" "$configure_input" |
|
---|
16243 | sed 's/[\\\\&|]/\\\\&/g'`;; #(
|
---|
16244 | *) ac_sed_conf_input=$configure_input;;
|
---|
16245 | esac
|
---|
16246 |
|
---|
16247 | case $ac_tag in
|
---|
16248 | *:-:* | *:-) cat >"$ac_tmp/stdin" \
|
---|
16249 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
|
---|
16250 | esac
|
---|
16251 | ;;
|
---|
16252 | esac
|
---|
16253 |
|
---|
16254 | ac_dir=`$as_dirname -- "$ac_file" ||
|
---|
16255 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
16256 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
16257 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
16258 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
16259 | printf "%s\n" X"$ac_file" |
|
---|
16260 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
16261 | s//\1/
|
---|
16262 | q
|
---|
16263 | }
|
---|
16264 | /^X\(\/\/\)[^/].*/{
|
---|
16265 | s//\1/
|
---|
16266 | q
|
---|
16267 | }
|
---|
16268 | /^X\(\/\/\)$/{
|
---|
16269 | s//\1/
|
---|
16270 | q
|
---|
16271 | }
|
---|
16272 | /^X\(\/\).*/{
|
---|
16273 | s//\1/
|
---|
16274 | q
|
---|
16275 | }
|
---|
16276 | s/.*/./; q'`
|
---|
16277 | as_dir="$ac_dir"; as_fn_mkdir_p
|
---|
16278 | ac_builddir=.
|
---|
16279 |
|
---|
16280 | case "$ac_dir" in
|
---|
16281 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
16282 | *)
|
---|
16283 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
16284 | # A ".." for each directory in $ac_dir_suffix.
|
---|
16285 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
16286 | case $ac_top_builddir_sub in
|
---|
16287 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
16288 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
16289 | esac ;;
|
---|
16290 | esac
|
---|
16291 | ac_abs_top_builddir=$ac_pwd
|
---|
16292 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
16293 | # for backward compatibility:
|
---|
16294 | ac_top_builddir=$ac_top_build_prefix
|
---|
16295 |
|
---|
16296 | case $srcdir in
|
---|
16297 | .) # We are building in place.
|
---|
16298 | ac_srcdir=.
|
---|
16299 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
16300 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
16301 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
16302 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
16303 | ac_top_srcdir=$srcdir
|
---|
16304 | ac_abs_top_srcdir=$srcdir ;;
|
---|
16305 | *) # Relative name.
|
---|
16306 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
16307 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
16308 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
16309 | esac
|
---|
16310 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
16311 |
|
---|
16312 |
|
---|
16313 | case $ac_mode in
|
---|
16314 | :F)
|
---|
16315 | #
|
---|
16316 | # CONFIG_FILE
|
---|
16317 | #
|
---|
16318 |
|
---|
16319 | case $INSTALL in
|
---|
16320 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
16321 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
---|
16322 | esac
|
---|
16323 | ac_MKDIR_P=$MKDIR_P
|
---|
16324 | case $MKDIR_P in
|
---|
16325 | [\\/$]* | ?:[\\/]* ) ;;
|
---|
16326 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
|
---|
16327 | esac
|
---|
16328 | _ACEOF
|
---|
16329 |
|
---|
16330 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
16331 | # If the template does not know about datarootdir, expand it.
|
---|
16332 | # FIXME: This hack should be removed a few years after 2.60.
|
---|
16333 | ac_datarootdir_hack=; ac_datarootdir_seen=
|
---|
16334 | ac_sed_dataroot='
|
---|
16335 | /datarootdir/ {
|
---|
16336 | p
|
---|
16337 | q
|
---|
16338 | }
|
---|
16339 | /@datadir@/p
|
---|
16340 | /@docdir@/p
|
---|
16341 | /@infodir@/p
|
---|
16342 | /@localedir@/p
|
---|
16343 | /@mandir@/p'
|
---|
16344 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
|
---|
16345 | *datarootdir*) ac_datarootdir_seen=yes;;
|
---|
16346 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
---|
16347 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
---|
16348 | printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
---|
16349 | _ACEOF
|
---|
16350 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
16351 | ac_datarootdir_hack='
|
---|
16352 | s&@datadir@&$datadir&g
|
---|
16353 | s&@docdir@&$docdir&g
|
---|
16354 | s&@infodir@&$infodir&g
|
---|
16355 | s&@localedir@&$localedir&g
|
---|
16356 | s&@mandir@&$mandir&g
|
---|
16357 | s&\\\${datarootdir}&$datarootdir&g' ;;
|
---|
16358 | esac
|
---|
16359 | _ACEOF
|
---|
16360 |
|
---|
16361 | # Neutralize VPATH when '$srcdir' = '.'.
|
---|
16362 | # Shell code in configure.ac might set extrasub.
|
---|
16363 | # FIXME: do we really want to maintain this feature?
|
---|
16364 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
16365 | ac_sed_extra="$ac_vpsub
|
---|
16366 | $extrasub
|
---|
16367 | _ACEOF
|
---|
16368 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
16369 | :t
|
---|
16370 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
16371 | s|@configure_input@|$ac_sed_conf_input|;t t
|
---|
16372 | s&@top_builddir@&$ac_top_builddir_sub&;t t
|
---|
16373 | s&@top_build_prefix@&$ac_top_build_prefix&;t t
|
---|
16374 | s&@srcdir@&$ac_srcdir&;t t
|
---|
16375 | s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
---|
16376 | s&@top_srcdir@&$ac_top_srcdir&;t t
|
---|
16377 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
---|
16378 | s&@builddir@&$ac_builddir&;t t
|
---|
16379 | s&@abs_builddir@&$ac_abs_builddir&;t t
|
---|
16380 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
---|
16381 | s&@INSTALL@&$ac_INSTALL&;t t
|
---|
16382 | s&@MKDIR_P@&$ac_MKDIR_P&;t t
|
---|
16383 | $ac_datarootdir_hack
|
---|
16384 | "
|
---|
16385 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
|
---|
16386 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
16387 |
|
---|
16388 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
---|
16389 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
|
---|
16390 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
|
---|
16391 | "$ac_tmp/out"`; test -z "$ac_out"; } &&
|
---|
16392 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
|
---|
16393 | which seems to be undefined. Please make sure it is defined" >&5
|
---|
16394 | printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
|
---|
16395 | which seems to be undefined. Please make sure it is defined" >&2;}
|
---|
16396 |
|
---|
16397 | rm -f "$ac_tmp/stdin"
|
---|
16398 | case $ac_file in
|
---|
16399 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
|
---|
16400 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
|
---|
16401 | esac \
|
---|
16402 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
16403 | ;;
|
---|
16404 | :H)
|
---|
16405 | #
|
---|
16406 | # CONFIG_HEADER
|
---|
16407 | #
|
---|
16408 | if test x"$ac_file" != x-; then
|
---|
16409 | {
|
---|
16410 | printf "%s\n" "/* $configure_input */" >&1 \
|
---|
16411 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
|
---|
16412 | } >"$ac_tmp/config.h" \
|
---|
16413 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
16414 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
|
---|
16415 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
|
---|
16416 | printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
|
---|
16417 | else
|
---|
16418 | rm -f "$ac_file"
|
---|
16419 | mv "$ac_tmp/config.h" "$ac_file" \
|
---|
16420 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
16421 | fi
|
---|
16422 | else
|
---|
16423 | printf "%s\n" "/* $configure_input */" >&1 \
|
---|
16424 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
|
---|
16425 | || as_fn_error $? "could not create -" "$LINENO" 5
|
---|
16426 | fi
|
---|
16427 | # Compute "$ac_file"'s index in $config_headers.
|
---|
16428 | _am_arg="$ac_file"
|
---|
16429 | _am_stamp_count=1
|
---|
16430 | for _am_header in $config_headers :; do
|
---|
16431 | case $_am_header in
|
---|
16432 | $_am_arg | $_am_arg:* )
|
---|
16433 | break ;;
|
---|
16434 | * )
|
---|
16435 | _am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
---|
16436 | esac
|
---|
16437 | done
|
---|
16438 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
|
---|
16439 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
16440 | X"$_am_arg" : 'X\(//\)[^/]' \| \
|
---|
16441 | X"$_am_arg" : 'X\(//\)$' \| \
|
---|
16442 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
16443 | printf "%s\n" X"$_am_arg" |
|
---|
16444 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
16445 | s//\1/
|
---|
16446 | q
|
---|
16447 | }
|
---|
16448 | /^X\(\/\/\)[^/].*/{
|
---|
16449 | s//\1/
|
---|
16450 | q
|
---|
16451 | }
|
---|
16452 | /^X\(\/\/\)$/{
|
---|
16453 | s//\1/
|
---|
16454 | q
|
---|
16455 | }
|
---|
16456 | /^X\(\/\).*/{
|
---|
16457 | s//\1/
|
---|
16458 | q
|
---|
16459 | }
|
---|
16460 | s/.*/./; q'`/stamp-h$_am_stamp_count
|
---|
16461 | ;;
|
---|
16462 |
|
---|
16463 | :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
|
---|
16464 | printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
|
---|
16465 | ;;
|
---|
16466 | esac
|
---|
16467 |
|
---|
16468 |
|
---|
16469 | case $ac_file$ac_mode in
|
---|
16470 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
|
---|
16471 | # Older Autoconf quotes --file arguments for eval, but not when files
|
---|
16472 | # are listed without --file. Let's play safe and only enable the eval
|
---|
16473 | # if we detect the quoting.
|
---|
16474 | # TODO: see whether this extra hack can be removed once we start
|
---|
16475 | # requiring Autoconf 2.70 or later.
|
---|
16476 | case $CONFIG_FILES in #(
|
---|
16477 | *\'*) :
|
---|
16478 | eval set x "$CONFIG_FILES" ;; #(
|
---|
16479 | *) :
|
---|
16480 | set x $CONFIG_FILES ;; #(
|
---|
16481 | *) :
|
---|
16482 | ;;
|
---|
16483 | esac
|
---|
16484 | shift
|
---|
16485 | # Used to flag and report bootstrapping failures.
|
---|
16486 | am_rc=0
|
---|
16487 | for am_mf
|
---|
16488 | do
|
---|
16489 | # Strip MF so we end up with the name of the file.
|
---|
16490 | am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
|
---|
16491 | # Check whether this is an Automake generated Makefile which includes
|
---|
16492 | # dependency-tracking related rules and includes.
|
---|
16493 | # Grep'ing the whole file directly is not great: AIX grep has a line
|
---|
16494 | # limit of 2048, but all sed's we know have understand at least 4000.
|
---|
16495 | sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
|
---|
16496 | || continue
|
---|
16497 | am_dirpart=`$as_dirname -- "$am_mf" ||
|
---|
16498 | $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
16499 | X"$am_mf" : 'X\(//\)[^/]' \| \
|
---|
16500 | X"$am_mf" : 'X\(//\)$' \| \
|
---|
16501 | X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
16502 | printf "%s\n" X"$am_mf" |
|
---|
16503 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
16504 | s//\1/
|
---|
16505 | q
|
---|
16506 | }
|
---|
16507 | /^X\(\/\/\)[^/].*/{
|
---|
16508 | s//\1/
|
---|
16509 | q
|
---|
16510 | }
|
---|
16511 | /^X\(\/\/\)$/{
|
---|
16512 | s//\1/
|
---|
16513 | q
|
---|
16514 | }
|
---|
16515 | /^X\(\/\).*/{
|
---|
16516 | s//\1/
|
---|
16517 | q
|
---|
16518 | }
|
---|
16519 | s/.*/./; q'`
|
---|
16520 | am_filepart=`$as_basename -- "$am_mf" ||
|
---|
16521 | $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
16522 | X"$am_mf" : 'X\(//\)$' \| \
|
---|
16523 | X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
16524 | printf "%s\n" X/"$am_mf" |
|
---|
16525 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
16526 | s//\1/
|
---|
16527 | q
|
---|
16528 | }
|
---|
16529 | /^X\/\(\/\/\)$/{
|
---|
16530 | s//\1/
|
---|
16531 | q
|
---|
16532 | }
|
---|
16533 | /^X\/\(\/\).*/{
|
---|
16534 | s//\1/
|
---|
16535 | q
|
---|
16536 | }
|
---|
16537 | s/.*/./; q'`
|
---|
16538 | { echo "$as_me:$LINENO: cd "$am_dirpart" \
|
---|
16539 | && sed -e '/# am--include-marker/d' "$am_filepart" \
|
---|
16540 | | $MAKE -f - am--depfiles" >&5
|
---|
16541 | (cd "$am_dirpart" \
|
---|
16542 | && sed -e '/# am--include-marker/d' "$am_filepart" \
|
---|
16543 | | $MAKE -f - am--depfiles) >&5 2>&5
|
---|
16544 | ac_status=$?
|
---|
16545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
16546 | (exit $ac_status); } || am_rc=$?
|
---|
16547 | done
|
---|
16548 | if test $am_rc -ne 0; then
|
---|
16549 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
|
---|
16550 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
|
---|
16551 | as_fn_error $? "Something went wrong bootstrapping makefile fragments
|
---|
16552 | for automatic dependency tracking. If GNU make was not used, consider
|
---|
16553 | re-running the configure script with MAKE=\"gmake\" (or whatever is
|
---|
16554 | necessary). You can also try re-running configure with the
|
---|
16555 | '--disable-dependency-tracking' option to at least be able to build
|
---|
16556 | the package (albeit without support for automatic dependency tracking).
|
---|
16557 | See 'config.log' for more details" "$LINENO" 5; }
|
---|
16558 | fi
|
---|
16559 | { am_dirpart=; unset am_dirpart;}
|
---|
16560 | { am_filepart=; unset am_filepart;}
|
---|
16561 | { am_mf=; unset am_mf;}
|
---|
16562 | { am_rc=; unset am_rc;}
|
---|
16563 | rm -f conftest-deps.mk
|
---|
16564 | }
|
---|
16565 | ;;
|
---|
16566 | "libtool":C)
|
---|
16567 |
|
---|
16568 | # See if we are running on zsh, and set the options that allow our
|
---|
16569 | # commands through without removal of \ escapes.
|
---|
16570 | if test -n "${ZSH_VERSION+set}"; then
|
---|
16571 | setopt NO_GLOB_SUBST
|
---|
16572 | fi
|
---|
16573 |
|
---|
16574 | cfgfile=${ofile}T
|
---|
16575 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15
|
---|
16576 | $RM "$cfgfile"
|
---|
16577 |
|
---|
16578 | cat <<_LT_EOF >> "$cfgfile"
|
---|
16579 | #! $SHELL
|
---|
16580 | # Generated automatically by $as_me ($PACKAGE) $VERSION
|
---|
16581 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
---|
16582 | # NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
---|
16583 |
|
---|
16584 | # Provide generalized library-building support services.
|
---|
16585 | # Written by Gordon Matzigkeit, 1996
|
---|
16586 |
|
---|
16587 | # Copyright (C) 2014 Free Software Foundation, Inc.
|
---|
16588 | # This is free software; see the source for copying conditions. There is NO
|
---|
16589 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
---|
16590 |
|
---|
16591 | # GNU Libtool is free software; you can redistribute it and/or modify
|
---|
16592 | # it under the terms of the GNU General Public License as published by
|
---|
16593 | # the Free Software Foundation; either version 2 of of the License, or
|
---|
16594 | # (at your option) any later version.
|
---|
16595 | #
|
---|
16596 | # As a special exception to the GNU General Public License, if you
|
---|
16597 | # distribute this file as part of a program or library that is built
|
---|
16598 | # using GNU Libtool, you may include this file under the same
|
---|
16599 | # distribution terms that you use for the rest of that program.
|
---|
16600 | #
|
---|
16601 | # GNU Libtool is distributed in the hope that it will be useful, but
|
---|
16602 | # WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
16603 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
16604 | # GNU General Public License for more details.
|
---|
16605 | #
|
---|
16606 | # You should have received a copy of the GNU General Public License
|
---|
16607 | # along with this program. If not, see <http://www.gnu.org/licenses/>.
|
---|
16608 |
|
---|
16609 |
|
---|
16610 | # The names of the tagged configurations supported by this script.
|
---|
16611 | available_tags=''
|
---|
16612 |
|
---|
16613 | # Configured defaults for sys_lib_dlsearch_path munging.
|
---|
16614 | : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
|
---|
16615 |
|
---|
16616 | # ### BEGIN LIBTOOL CONFIG
|
---|
16617 |
|
---|
16618 | # A sed program that does not truncate output.
|
---|
16619 | SED=$lt_SED
|
---|
16620 |
|
---|
16621 | # Sed that helps us avoid accidentally triggering echo(1) options like -n.
|
---|
16622 | Xsed="\$SED -e 1s/^X//"
|
---|
16623 |
|
---|
16624 | # A grep program that handles long lines.
|
---|
16625 | GREP=$lt_GREP
|
---|
16626 |
|
---|
16627 | # An ERE matcher.
|
---|
16628 | EGREP=$lt_EGREP
|
---|
16629 |
|
---|
16630 | # A literal string matcher.
|
---|
16631 | FGREP=$lt_FGREP
|
---|
16632 |
|
---|
16633 | # Shell to use when invoking shell scripts.
|
---|
16634 | SHELL=$lt_SHELL
|
---|
16635 |
|
---|
16636 | # An echo program that protects backslashes.
|
---|
16637 | ECHO=$lt_ECHO
|
---|
16638 |
|
---|
16639 | # Which release of libtool.m4 was used?
|
---|
16640 | macro_version=$macro_version
|
---|
16641 | macro_revision=$macro_revision
|
---|
16642 |
|
---|
16643 | # Assembler program.
|
---|
16644 | AS=$lt_AS
|
---|
16645 |
|
---|
16646 | # DLL creation program.
|
---|
16647 | DLLTOOL=$lt_DLLTOOL
|
---|
16648 |
|
---|
16649 | # Object dumper program.
|
---|
16650 | OBJDUMP=$lt_OBJDUMP
|
---|
16651 |
|
---|
16652 | # Whether or not to build shared libraries.
|
---|
16653 | build_libtool_libs=$enable_shared
|
---|
16654 |
|
---|
16655 | # Whether or not to build static libraries.
|
---|
16656 | build_old_libs=$enable_static
|
---|
16657 |
|
---|
16658 | # What type of objects to build.
|
---|
16659 | pic_mode=$pic_mode
|
---|
16660 |
|
---|
16661 | # Whether or not to optimize for fast installation.
|
---|
16662 | fast_install=$enable_fast_install
|
---|
16663 |
|
---|
16664 | # Shared archive member basename,for filename based shared library versioning on AIX.
|
---|
16665 | shared_archive_member_spec=$shared_archive_member_spec
|
---|
16666 |
|
---|
16667 | # The PATH separator for the build system.
|
---|
16668 | PATH_SEPARATOR=$lt_PATH_SEPARATOR
|
---|
16669 |
|
---|
16670 | # The host system.
|
---|
16671 | host_alias=$host_alias
|
---|
16672 | host=$host
|
---|
16673 | host_os=$host_os
|
---|
16674 |
|
---|
16675 | # The build system.
|
---|
16676 | build_alias=$build_alias
|
---|
16677 | build=$build
|
---|
16678 | build_os=$build_os
|
---|
16679 |
|
---|
16680 | # A BSD- or MS-compatible name lister.
|
---|
16681 | NM=$lt_NM
|
---|
16682 |
|
---|
16683 | # Whether we need soft or hard links.
|
---|
16684 | LN_S=$lt_LN_S
|
---|
16685 |
|
---|
16686 | # What is the maximum length of a command?
|
---|
16687 | max_cmd_len=$max_cmd_len
|
---|
16688 |
|
---|
16689 | # Object file suffix (normally "o").
|
---|
16690 | objext=$ac_objext
|
---|
16691 |
|
---|
16692 | # Executable file suffix (normally "").
|
---|
16693 | exeext=$exeext
|
---|
16694 |
|
---|
16695 | # whether the shell understands "unset".
|
---|
16696 | lt_unset=$lt_unset
|
---|
16697 |
|
---|
16698 | # turn spaces into newlines.
|
---|
16699 | SP2NL=$lt_lt_SP2NL
|
---|
16700 |
|
---|
16701 | # turn newlines into spaces.
|
---|
16702 | NL2SP=$lt_lt_NL2SP
|
---|
16703 |
|
---|
16704 | # convert \$build file names to \$host format.
|
---|
16705 | to_host_file_cmd=$lt_cv_to_host_file_cmd
|
---|
16706 |
|
---|
16707 | # convert \$build files to toolchain format.
|
---|
16708 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
---|
16709 |
|
---|
16710 | # A file(cmd) program that detects file types.
|
---|
16711 | FILECMD=$lt_FILECMD
|
---|
16712 |
|
---|
16713 | # Method to check whether dependent libraries are shared objects.
|
---|
16714 | deplibs_check_method=$lt_deplibs_check_method
|
---|
16715 |
|
---|
16716 | # Command to use when deplibs_check_method = "file_magic".
|
---|
16717 | file_magic_cmd=$lt_file_magic_cmd
|
---|
16718 |
|
---|
16719 | # How to find potential files when deplibs_check_method = "file_magic".
|
---|
16720 | file_magic_glob=$lt_file_magic_glob
|
---|
16721 |
|
---|
16722 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
|
---|
16723 | want_nocaseglob=$lt_want_nocaseglob
|
---|
16724 |
|
---|
16725 | # Command to associate shared and link libraries.
|
---|
16726 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
|
---|
16727 |
|
---|
16728 | # The archiver.
|
---|
16729 | AR=$lt_AR
|
---|
16730 |
|
---|
16731 | # Flags to create an archive (by configure).
|
---|
16732 | lt_ar_flags=$lt_ar_flags
|
---|
16733 |
|
---|
16734 | # Flags to create an archive.
|
---|
16735 | AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
|
---|
16736 |
|
---|
16737 | # How to feed a file listing to the archiver.
|
---|
16738 | archiver_list_spec=$lt_archiver_list_spec
|
---|
16739 |
|
---|
16740 | # A symbol stripping program.
|
---|
16741 | STRIP=$lt_STRIP
|
---|
16742 |
|
---|
16743 | # Commands used to install an old-style archive.
|
---|
16744 | RANLIB=$lt_RANLIB
|
---|
16745 | old_postinstall_cmds=$lt_old_postinstall_cmds
|
---|
16746 | old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
---|
16747 |
|
---|
16748 | # Whether to use a lock for old archive extraction.
|
---|
16749 | lock_old_archive_extraction=$lock_old_archive_extraction
|
---|
16750 |
|
---|
16751 | # A C compiler.
|
---|
16752 | LTCC=$lt_CC
|
---|
16753 |
|
---|
16754 | # LTCC compiler flags.
|
---|
16755 | LTCFLAGS=$lt_CFLAGS
|
---|
16756 |
|
---|
16757 | # Take the output of nm and produce a listing of raw symbols and C names.
|
---|
16758 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
|
---|
16759 |
|
---|
16760 | # Transform the output of nm in a proper C declaration.
|
---|
16761 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
|
---|
16762 |
|
---|
16763 | # Transform the output of nm into a list of symbols to manually relocate.
|
---|
16764 | global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
|
---|
16765 |
|
---|
16766 | # Transform the output of nm in a C name address pair.
|
---|
16767 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
---|
16768 |
|
---|
16769 | # Transform the output of nm in a C name address pair when lib prefix is needed.
|
---|
16770 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
|
---|
16771 |
|
---|
16772 | # The name lister interface.
|
---|
16773 | nm_interface=$lt_lt_cv_nm_interface
|
---|
16774 |
|
---|
16775 | # Specify filename containing input files for \$NM.
|
---|
16776 | nm_file_list_spec=$lt_nm_file_list_spec
|
---|
16777 |
|
---|
16778 | # The root where to search for dependent libraries,and where our libraries should be installed.
|
---|
16779 | lt_sysroot=$lt_sysroot
|
---|
16780 |
|
---|
16781 | # Command to truncate a binary pipe.
|
---|
16782 | lt_truncate_bin=$lt_lt_cv_truncate_bin
|
---|
16783 |
|
---|
16784 | # The name of the directory that contains temporary libtool files.
|
---|
16785 | objdir=$objdir
|
---|
16786 |
|
---|
16787 | # Used to examine libraries when file_magic_cmd begins with "file".
|
---|
16788 | MAGIC_CMD=$MAGIC_CMD
|
---|
16789 |
|
---|
16790 | # Must we lock files when doing compilation?
|
---|
16791 | need_locks=$lt_need_locks
|
---|
16792 |
|
---|
16793 | # Manifest tool.
|
---|
16794 | MANIFEST_TOOL=$lt_MANIFEST_TOOL
|
---|
16795 |
|
---|
16796 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
|
---|
16797 | DSYMUTIL=$lt_DSYMUTIL
|
---|
16798 |
|
---|
16799 | # Tool to change global to local symbols on Mac OS X.
|
---|
16800 | NMEDIT=$lt_NMEDIT
|
---|
16801 |
|
---|
16802 | # Tool to manipulate fat objects and archives on Mac OS X.
|
---|
16803 | LIPO=$lt_LIPO
|
---|
16804 |
|
---|
16805 | # ldd/readelf like tool for Mach-O binaries on Mac OS X.
|
---|
16806 | OTOOL=$lt_OTOOL
|
---|
16807 |
|
---|
16808 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
|
---|
16809 | OTOOL64=$lt_OTOOL64
|
---|
16810 |
|
---|
16811 | # Old archive suffix (normally "a").
|
---|
16812 | libext=$libext
|
---|
16813 |
|
---|
16814 | # Shared library suffix (normally ".so").
|
---|
16815 | shrext_cmds=$lt_shrext_cmds
|
---|
16816 |
|
---|
16817 | # The commands to extract the exported symbol list from a shared archive.
|
---|
16818 | extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
---|
16819 |
|
---|
16820 | # Variables whose values should be saved in libtool wrapper scripts and
|
---|
16821 | # restored at link time.
|
---|
16822 | variables_saved_for_relink=$lt_variables_saved_for_relink
|
---|
16823 |
|
---|
16824 | # Do we need the "lib" prefix for modules?
|
---|
16825 | need_lib_prefix=$need_lib_prefix
|
---|
16826 |
|
---|
16827 | # Do we need a version for libraries?
|
---|
16828 | need_version=$need_version
|
---|
16829 |
|
---|
16830 | # Library versioning type.
|
---|
16831 | version_type=$version_type
|
---|
16832 |
|
---|
16833 | # Shared library runtime path variable.
|
---|
16834 | runpath_var=$runpath_var
|
---|
16835 |
|
---|
16836 | # Shared library path variable.
|
---|
16837 | shlibpath_var=$shlibpath_var
|
---|
16838 |
|
---|
16839 | # Is shlibpath searched before the hard-coded library search path?
|
---|
16840 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
---|
16841 |
|
---|
16842 | # Format of library name prefix.
|
---|
16843 | libname_spec=$lt_libname_spec
|
---|
16844 |
|
---|
16845 | # List of archive names. First name is the real one, the rest are links.
|
---|
16846 | # The last name is the one that the linker finds with -lNAME
|
---|
16847 | library_names_spec=$lt_library_names_spec
|
---|
16848 |
|
---|
16849 | # The coded name of the library, if different from the real name.
|
---|
16850 | soname_spec=$lt_soname_spec
|
---|
16851 |
|
---|
16852 | # Permission mode override for installation of shared libraries.
|
---|
16853 | install_override_mode=$lt_install_override_mode
|
---|
16854 |
|
---|
16855 | # Command to use after installation of a shared archive.
|
---|
16856 | postinstall_cmds=$lt_postinstall_cmds
|
---|
16857 |
|
---|
16858 | # Command to use after uninstallation of a shared archive.
|
---|
16859 | postuninstall_cmds=$lt_postuninstall_cmds
|
---|
16860 |
|
---|
16861 | # Commands used to finish a libtool library installation in a directory.
|
---|
16862 | finish_cmds=$lt_finish_cmds
|
---|
16863 |
|
---|
16864 | # As "finish_cmds", except a single script fragment to be evaled but
|
---|
16865 | # not shown.
|
---|
16866 | finish_eval=$lt_finish_eval
|
---|
16867 |
|
---|
16868 | # Whether we should hardcode library paths into libraries.
|
---|
16869 | hardcode_into_libs=$hardcode_into_libs
|
---|
16870 |
|
---|
16871 | # Compile-time system search path for libraries.
|
---|
16872 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
|
---|
16873 |
|
---|
16874 | # Detected run-time system search path for libraries.
|
---|
16875 | sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
|
---|
16876 |
|
---|
16877 | # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
|
---|
16878 | configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
|
---|
16879 |
|
---|
16880 | # Whether dlopen is supported.
|
---|
16881 | dlopen_support=$enable_dlopen
|
---|
16882 |
|
---|
16883 | # Whether dlopen of programs is supported.
|
---|
16884 | dlopen_self=$enable_dlopen_self
|
---|
16885 |
|
---|
16886 | # Whether dlopen of statically linked programs is supported.
|
---|
16887 | dlopen_self_static=$enable_dlopen_self_static
|
---|
16888 |
|
---|
16889 | # Commands to strip libraries.
|
---|
16890 | old_striplib=$lt_old_striplib
|
---|
16891 | striplib=$lt_striplib
|
---|
16892 |
|
---|
16893 |
|
---|
16894 | # The linker used to build libraries.
|
---|
16895 | LD=$lt_LD
|
---|
16896 |
|
---|
16897 | # How to create reloadable object files.
|
---|
16898 | reload_flag=$lt_reload_flag
|
---|
16899 | reload_cmds=$lt_reload_cmds
|
---|
16900 |
|
---|
16901 | # Commands used to build an old-style archive.
|
---|
16902 | old_archive_cmds=$lt_old_archive_cmds
|
---|
16903 |
|
---|
16904 | # A language specific compiler.
|
---|
16905 | CC=$lt_compiler
|
---|
16906 |
|
---|
16907 | # Is the compiler the GNU compiler?
|
---|
16908 | with_gcc=$GCC
|
---|
16909 |
|
---|
16910 | # Compiler flag to turn off builtin functions.
|
---|
16911 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
|
---|
16912 |
|
---|
16913 | # Additional compiler flags for building library objects.
|
---|
16914 | pic_flag=$lt_lt_prog_compiler_pic
|
---|
16915 |
|
---|
16916 | # How to pass a linker flag through the compiler.
|
---|
16917 | wl=$lt_lt_prog_compiler_wl
|
---|
16918 |
|
---|
16919 | # Compiler flag to prevent dynamic linking.
|
---|
16920 | link_static_flag=$lt_lt_prog_compiler_static
|
---|
16921 |
|
---|
16922 | # Does compiler simultaneously support -c and -o options?
|
---|
16923 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o
|
---|
16924 |
|
---|
16925 | # Whether or not to add -lc for building shared libraries.
|
---|
16926 | build_libtool_need_lc=$archive_cmds_need_lc
|
---|
16927 |
|
---|
16928 | # Whether or not to disallow shared libs when runtime libs are static.
|
---|
16929 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
|
---|
16930 |
|
---|
16931 | # Compiler flag to allow reflexive dlopens.
|
---|
16932 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
|
---|
16933 |
|
---|
16934 | # Compiler flag to generate shared objects directly from archives.
|
---|
16935 | whole_archive_flag_spec=$lt_whole_archive_flag_spec
|
---|
16936 |
|
---|
16937 | # Whether the compiler copes with passing no objects directly.
|
---|
16938 | compiler_needs_object=$lt_compiler_needs_object
|
---|
16939 |
|
---|
16940 | # Create an old-style archive from a shared archive.
|
---|
16941 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
|
---|
16942 |
|
---|
16943 | # Create a temporary old-style archive to link instead of a shared archive.
|
---|
16944 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
|
---|
16945 |
|
---|
16946 | # Commands used to build a shared archive.
|
---|
16947 | archive_cmds=$lt_archive_cmds
|
---|
16948 | archive_expsym_cmds=$lt_archive_expsym_cmds
|
---|
16949 |
|
---|
16950 | # Commands used to build a loadable module if different from building
|
---|
16951 | # a shared archive.
|
---|
16952 | module_cmds=$lt_module_cmds
|
---|
16953 | module_expsym_cmds=$lt_module_expsym_cmds
|
---|
16954 |
|
---|
16955 | # Whether we are building with GNU ld or not.
|
---|
16956 | with_gnu_ld=$lt_with_gnu_ld
|
---|
16957 |
|
---|
16958 | # Flag that allows shared libraries with undefined symbols to be built.
|
---|
16959 | allow_undefined_flag=$lt_allow_undefined_flag
|
---|
16960 |
|
---|
16961 | # Flag that enforces no undefined symbols.
|
---|
16962 | no_undefined_flag=$lt_no_undefined_flag
|
---|
16963 |
|
---|
16964 | # Flag to hardcode \$libdir into a binary during linking.
|
---|
16965 | # This must work even if \$libdir does not exist
|
---|
16966 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
|
---|
16967 |
|
---|
16968 | # Whether we need a single "-rpath" flag with a separated argument.
|
---|
16969 | hardcode_libdir_separator=$lt_hardcode_libdir_separator
|
---|
16970 |
|
---|
16971 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
|
---|
16972 | # DIR into the resulting binary.
|
---|
16973 | hardcode_direct=$hardcode_direct
|
---|
16974 |
|
---|
16975 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
|
---|
16976 | # DIR into the resulting binary and the resulting library dependency is
|
---|
16977 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the
|
---|
16978 | # library is relocated.
|
---|
16979 | hardcode_direct_absolute=$hardcode_direct_absolute
|
---|
16980 |
|
---|
16981 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
|
---|
16982 | # into the resulting binary.
|
---|
16983 | hardcode_minus_L=$hardcode_minus_L
|
---|
16984 |
|
---|
16985 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
|
---|
16986 | # into the resulting binary.
|
---|
16987 | hardcode_shlibpath_var=$hardcode_shlibpath_var
|
---|
16988 |
|
---|
16989 | # Set to "yes" if building a shared library automatically hardcodes DIR
|
---|
16990 | # into the library and all subsequent libraries and executables linked
|
---|
16991 | # against it.
|
---|
16992 | hardcode_automatic=$hardcode_automatic
|
---|
16993 |
|
---|
16994 | # Set to yes if linker adds runtime paths of dependent libraries
|
---|
16995 | # to runtime path list.
|
---|
16996 | inherit_rpath=$inherit_rpath
|
---|
16997 |
|
---|
16998 | # Whether libtool must link a program against all its dependency libraries.
|
---|
16999 | link_all_deplibs=$link_all_deplibs
|
---|
17000 |
|
---|
17001 | # Set to "yes" if exported symbols are required.
|
---|
17002 | always_export_symbols=$always_export_symbols
|
---|
17003 |
|
---|
17004 | # The commands to list exported symbols.
|
---|
17005 | export_symbols_cmds=$lt_export_symbols_cmds
|
---|
17006 |
|
---|
17007 | # Symbols that should not be listed in the preloaded symbols.
|
---|
17008 | exclude_expsyms=$lt_exclude_expsyms
|
---|
17009 |
|
---|
17010 | # Symbols that must always be exported.
|
---|
17011 | include_expsyms=$lt_include_expsyms
|
---|
17012 |
|
---|
17013 | # Commands necessary for linking programs (against libraries) with templates.
|
---|
17014 | prelink_cmds=$lt_prelink_cmds
|
---|
17015 |
|
---|
17016 | # Commands necessary for finishing linking programs.
|
---|
17017 | postlink_cmds=$lt_postlink_cmds
|
---|
17018 |
|
---|
17019 | # Specify filename containing input files.
|
---|
17020 | file_list_spec=$lt_file_list_spec
|
---|
17021 |
|
---|
17022 | # How to hardcode a shared library path into an executable.
|
---|
17023 | hardcode_action=$hardcode_action
|
---|
17024 |
|
---|
17025 | # ### END LIBTOOL CONFIG
|
---|
17026 |
|
---|
17027 | _LT_EOF
|
---|
17028 |
|
---|
17029 | cat <<'_LT_EOF' >> "$cfgfile"
|
---|
17030 |
|
---|
17031 | # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
|
---|
17032 |
|
---|
17033 | # func_munge_path_list VARIABLE PATH
|
---|
17034 | # -----------------------------------
|
---|
17035 | # VARIABLE is name of variable containing _space_ separated list of
|
---|
17036 | # directories to be munged by the contents of PATH, which is string
|
---|
17037 | # having a format:
|
---|
17038 | # "DIR[:DIR]:"
|
---|
17039 | # string "DIR[ DIR]" will be prepended to VARIABLE
|
---|
17040 | # ":DIR[:DIR]"
|
---|
17041 | # string "DIR[ DIR]" will be appended to VARIABLE
|
---|
17042 | # "DIRP[:DIRP]::[DIRA:]DIRA"
|
---|
17043 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
|
---|
17044 | # "DIRA[ DIRA]" will be appended to VARIABLE
|
---|
17045 | # "DIR[:DIR]"
|
---|
17046 | # VARIABLE will be replaced by "DIR[ DIR]"
|
---|
17047 | func_munge_path_list ()
|
---|
17048 | {
|
---|
17049 | case x$2 in
|
---|
17050 | x)
|
---|
17051 | ;;
|
---|
17052 | *:)
|
---|
17053 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
|
---|
17054 | ;;
|
---|
17055 | x:*)
|
---|
17056 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
|
---|
17057 | ;;
|
---|
17058 | *::*)
|
---|
17059 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
|
---|
17060 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
|
---|
17061 | ;;
|
---|
17062 | *)
|
---|
17063 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
|
---|
17064 | ;;
|
---|
17065 | esac
|
---|
17066 | }
|
---|
17067 |
|
---|
17068 |
|
---|
17069 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
|
---|
17070 | func_cc_basename ()
|
---|
17071 | {
|
---|
17072 | for cc_temp in $*""; do
|
---|
17073 | case $cc_temp in
|
---|
17074 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
---|
17075 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
---|
17076 | \-*) ;;
|
---|
17077 | *) break;;
|
---|
17078 | esac
|
---|
17079 | done
|
---|
17080 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
|
---|
17081 | }
|
---|
17082 |
|
---|
17083 |
|
---|
17084 | # ### END FUNCTIONS SHARED WITH CONFIGURE
|
---|
17085 |
|
---|
17086 | _LT_EOF
|
---|
17087 |
|
---|
17088 | case $host_os in
|
---|
17089 | aix3*)
|
---|
17090 | cat <<\_LT_EOF >> "$cfgfile"
|
---|
17091 | # AIX sometimes has problems with the GCC collect2 program. For some
|
---|
17092 | # reason, if we set the COLLECT_NAMES environment variable, the problems
|
---|
17093 | # vanish in a puff of smoke.
|
---|
17094 | if test set != "${COLLECT_NAMES+set}"; then
|
---|
17095 | COLLECT_NAMES=
|
---|
17096 | export COLLECT_NAMES
|
---|
17097 | fi
|
---|
17098 | _LT_EOF
|
---|
17099 | ;;
|
---|
17100 | esac
|
---|
17101 |
|
---|
17102 |
|
---|
17103 |
|
---|
17104 | ltmain=$ac_aux_dir/ltmain.sh
|
---|
17105 |
|
---|
17106 |
|
---|
17107 | # We use sed instead of cat because bash on DJGPP gets confused if
|
---|
17108 | # if finds mixed CR/LF and LF-only lines. Since sed operates in
|
---|
17109 | # text mode, it properly converts lines to CR/LF. This bash problem
|
---|
17110 | # is reportedly fixed, but why not run on old versions too?
|
---|
17111 | $SED '$q' "$ltmain" >> "$cfgfile" \
|
---|
17112 | || (rm -f "$cfgfile"; exit 1)
|
---|
17113 |
|
---|
17114 | mv -f "$cfgfile" "$ofile" ||
|
---|
17115 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
---|
17116 | chmod +x "$ofile"
|
---|
17117 |
|
---|
17118 | ;;
|
---|
17119 | "libpng-config":F) chmod +x libpng-config ;;
|
---|
17120 |
|
---|
17121 | esac
|
---|
17122 | done # for ac_tag
|
---|
17123 |
|
---|
17124 |
|
---|
17125 | as_fn_exit 0
|
---|
17126 | _ACEOF
|
---|
17127 | ac_clean_files=$ac_clean_files_save
|
---|
17128 |
|
---|
17129 | test $ac_write_fail = 0 ||
|
---|
17130 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
|
---|
17131 |
|
---|
17132 |
|
---|
17133 | # configure is writing to config.log, and then calls config.status.
|
---|
17134 | # config.status does its own redirection, appending to config.log.
|
---|
17135 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
17136 | # by configure, so config.status won't be able to write to it; its
|
---|
17137 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
17138 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
17139 | # appended to by config.status. When coming back to configure, we
|
---|
17140 | # need to make the FD available again.
|
---|
17141 | if test "$no_create" != yes; then
|
---|
17142 | ac_cs_success=:
|
---|
17143 | ac_config_status_args=
|
---|
17144 | test "$silent" = yes &&
|
---|
17145 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
17146 | exec 5>/dev/null
|
---|
17147 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
17148 | exec 5>>config.log
|
---|
17149 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
17150 | # would make configure fail if this is the last instruction.
|
---|
17151 | $ac_cs_success || as_fn_exit 1
|
---|
17152 | fi
|
---|
17153 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
|
---|
17154 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
---|
17155 | printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
---|
17156 | fi
|
---|
17157 |
|
---|
17158 |
|
---|