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 <png-mng-implement@lists.sourceforge.net>.
|
---|
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 bug-autoconf@gnu.org and
|
---|
282 | $0: png-mng-implement@lists.sourceforge.net 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='png-mng-implement@lists.sourceforge.net'
|
---|
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 <png-mng-implement@lists.sourceforge.net>.
|
---|
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 bug-automake@gnu.org 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 | *** bug-libtool@gnu.org
|
---|
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 | *** bug-libtool@gnu.org
|
---|
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 <jrb3@best.com> 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: *; } |
---|