]>
Commit | Line | Data |
---|---|---|
eff02e4f ILT |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
22e05272 JM |
3 | # Generated by GNU Autoconf 2.69 for package-unused version-unused. |
4 | # | |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
eff02e4f | 7 | # |
eff02e4f ILT |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ## -------------------- ## | |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
14 | ||
15 | # Be more Bourne compatible | |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
18 | emulate sh | |
19 | NULLCMD=: | |
20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
21 | # is contrary to our usage. Disable this feature. | |
22 | alias -g '${1+"$@"}'='"$@"' | |
23 | setopt NO_GLOB_SUBST | |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
31 | fi | |
32 | ||
33 | ||
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
79 | fi | |
80 | ||
81 | ||
82 | # IFS | |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 90 | as_myself= |
eff02e4f ILT |
91 | case $0 in #(( |
92 | *[\\/]* ) as_myself=$0 ;; | |
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
94 | for as_dir in $PATH | |
95 | do | |
96 | IFS=$as_save_IFS | |
97 | test -z "$as_dir" && as_dir=. | |
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
99 | done | |
100 | IFS=$as_save_IFS | |
101 | ||
102 | ;; | |
103 | esac | |
104 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
105 | # in which case we are not to be found in the path. | |
106 | if test "x$as_myself" = x; then | |
107 | as_myself=$0 | |
108 | fi | |
109 | if test ! -f "$as_myself"; then | |
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
111 | exit 1 | |
112 | fi | |
113 | ||
114 | # Unset variables that we do not need and which cause bugs (e.g. in | |
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
116 | # suppresses any "Segmentation fault" message there. '((' could | |
117 | # trigger a bug in pdksh 5.2.14. | |
118 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
119 | do eval test x\${$as_var+set} = xset \ | |
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
121 | done | |
122 | PS1='$ ' | |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
127 | LC_ALL=C | |
128 | export LC_ALL | |
129 | LANGUAGE=C | |
130 | export LANGUAGE | |
131 | ||
132 | # CDPATH. | |
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
134 | ||
22e05272 JM |
135 | # Use a proper internal environment variable to ensure we don't fall |
136 | # into an infinite loop, continuously re-executing ourselves. | |
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
138 | _as_can_reexec=no; export _as_can_reexec; | |
139 | # We cannot yet assume a decent shell, so we have to provide a | |
140 | # neutralization value for shells without unset; and this also | |
141 | # works around shells that cannot unset nonexistent variables. | |
142 | # Preserve -v and -x to the replacement shell. | |
143 | BASH_ENV=/dev/null | |
144 | ENV=/dev/null | |
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
146 | case $- in # (((( | |
147 | *v*x* | *x*v* ) as_opts=-vx ;; | |
148 | *v* ) as_opts=-v ;; | |
149 | *x* ) as_opts=-x ;; | |
150 | * ) as_opts= ;; | |
151 | esac | |
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
153 | # Admittedly, this is quite paranoid, since all the known shells bail | |
154 | # out after a failed `exec'. | |
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
156 | as_fn_exit 255 | |
157 | fi | |
158 | # We don't want this to propagate to other subprocesses. | |
159 | { _as_can_reexec=; unset _as_can_reexec;} | |
eff02e4f ILT |
160 | if test "x$CONFIG_SHELL" = x; then |
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
162 | emulate sh | |
163 | NULLCMD=: | |
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
165 | # is contrary to our usage. Disable this feature. | |
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
167 | setopt NO_GLOB_SUBST | |
168 | else | |
169 | case \`(set -o) 2>/dev/null\` in #( | |
170 | *posix*) : | |
171 | set -o posix ;; #( | |
172 | *) : | |
173 | ;; | |
174 | esac | |
175 | fi | |
176 | " | |
177 | as_required="as_fn_return () { (exit \$1); } | |
178 | as_fn_success () { as_fn_return 0; } | |
179 | as_fn_failure () { as_fn_return 1; } | |
180 | as_fn_ret_success () { return 0; } | |
181 | as_fn_ret_failure () { return 1; } | |
182 | ||
183 | exitcode=0 | |
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
189 | ||
190 | else | |
191 | exitcode=1; echo positional parameters were not saved. | |
192 | fi | |
22e05272 JM |
193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
eff02e4f ILT |
195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
d4c059d5 | 199 | test \$(( 1 + 1 )) = 2 || exit 1 |
eff02e4f ILT |
200 | |
201 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
202 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
203 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
204 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
205 | PATH=/empty FPATH=/empty; export PATH FPATH | |
206 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
d4c059d5 | 207 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" |
eff02e4f ILT |
208 | if (eval "$as_required") 2>/dev/null; then : |
209 | as_have_required=yes | |
210 | else | |
211 | as_have_required=no | |
212 | fi | |
213 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
214 | ||
215 | else | |
216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
217 | as_found=false | |
218 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
219 | do | |
220 | IFS=$as_save_IFS | |
221 | test -z "$as_dir" && as_dir=. | |
222 | as_found=: | |
223 | case $as_dir in #( | |
224 | /*) | |
225 | for as_base in sh bash ksh sh5; do | |
226 | # Try only shells that exist, to save several forks. | |
227 | as_shell=$as_dir/$as_base | |
228 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
229 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
230 | CONFIG_SHELL=$as_shell as_have_required=yes | |
231 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
232 | break 2 | |
233 | fi | |
234 | fi | |
235 | done;; | |
236 | esac | |
237 | as_found=false | |
238 | done | |
239 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
240 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
241 | CONFIG_SHELL=$SHELL as_have_required=yes | |
242 | fi; } | |
243 | IFS=$as_save_IFS | |
244 | ||
245 | ||
246 | if test "x$CONFIG_SHELL" != x; then : | |
22e05272 JM |
247 | export CONFIG_SHELL |
248 | # We cannot yet assume a decent shell, so we have to provide a | |
249 | # neutralization value for shells without unset; and this also | |
250 | # works around shells that cannot unset nonexistent variables. | |
251 | # Preserve -v and -x to the replacement shell. | |
252 | BASH_ENV=/dev/null | |
253 | ENV=/dev/null | |
254 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
255 | case $- in # (((( | |
256 | *v*x* | *x*v* ) as_opts=-vx ;; | |
257 | *v* ) as_opts=-v ;; | |
258 | *x* ) as_opts=-x ;; | |
259 | * ) as_opts= ;; | |
260 | esac | |
261 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
262 | # Admittedly, this is quite paranoid, since all the known shells bail | |
263 | # out after a failed `exec'. | |
264 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
265 | exit 255 | |
eff02e4f ILT |
266 | fi |
267 | ||
268 | if test x$as_have_required = xno; then : | |
269 | $as_echo "$0: This script requires a shell more modern than all" | |
270 | $as_echo "$0: the shells that I found on your system." | |
271 | if test x${ZSH_VERSION+set} = xset ; then | |
272 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
273 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
274 | else | |
275 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | |
276 | $0: including any error possibly output before this | |
277 | $0: message. Then install a modern shell, or manually run | |
278 | $0: the script under such a shell if you do have one." | |
279 | fi | |
280 | exit 1 | |
281 | fi | |
282 | fi | |
283 | fi | |
284 | SHELL=${CONFIG_SHELL-/bin/sh} | |
285 | export SHELL | |
286 | # Unset more variables known to interfere with behavior of common tools. | |
287 | CLICOLOR_FORCE= GREP_OPTIONS= | |
288 | unset CLICOLOR_FORCE GREP_OPTIONS | |
289 | ||
290 | ## --------------------- ## | |
291 | ## M4sh Shell Functions. ## | |
292 | ## --------------------- ## | |
293 | # as_fn_unset VAR | |
294 | # --------------- | |
295 | # Portably unset VAR. | |
296 | as_fn_unset () | |
297 | { | |
298 | { eval $1=; unset $1;} | |
299 | } | |
300 | as_unset=as_fn_unset | |
301 | ||
302 | # as_fn_set_status STATUS | |
303 | # ----------------------- | |
304 | # Set $? to STATUS, without forking. | |
305 | as_fn_set_status () | |
306 | { | |
307 | return $1 | |
308 | } # as_fn_set_status | |
309 | ||
310 | # as_fn_exit STATUS | |
311 | # ----------------- | |
312 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
313 | as_fn_exit () | |
314 | { | |
315 | set +e | |
316 | as_fn_set_status $1 | |
317 | exit $1 | |
318 | } # as_fn_exit | |
319 | ||
320 | # as_fn_mkdir_p | |
321 | # ------------- | |
322 | # Create "$as_dir" as a directory, including parents if necessary. | |
323 | as_fn_mkdir_p () | |
324 | { | |
325 | ||
326 | case $as_dir in #( | |
327 | -*) as_dir=./$as_dir;; | |
328 | esac | |
329 | test -d "$as_dir" || eval $as_mkdir_p || { | |
330 | as_dirs= | |
331 | while :; do | |
332 | case $as_dir in #( | |
333 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
334 | *) as_qdir=$as_dir;; | |
335 | esac | |
336 | as_dirs="'$as_qdir' $as_dirs" | |
337 | as_dir=`$as_dirname -- "$as_dir" || | |
338 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
339 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
340 | X"$as_dir" : 'X\(//\)$' \| \ | |
341 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
342 | $as_echo X"$as_dir" | | |
343 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
344 | s//\1/ | |
345 | q | |
346 | } | |
347 | /^X\(\/\/\)[^/].*/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | /^X\(\/\/\)$/{ | |
352 | s//\1/ | |
353 | q | |
354 | } | |
355 | /^X\(\/\).*/{ | |
356 | s//\1/ | |
357 | q | |
358 | } | |
359 | s/.*/./; q'` | |
360 | test -d "$as_dir" && break | |
361 | done | |
362 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 363 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
eff02e4f ILT |
364 | |
365 | ||
366 | } # as_fn_mkdir_p | |
22e05272 JM |
367 | |
368 | # as_fn_executable_p FILE | |
369 | # ----------------------- | |
370 | # Test if FILE is an executable regular file. | |
371 | as_fn_executable_p () | |
372 | { | |
373 | test -f "$1" && test -x "$1" | |
374 | } # as_fn_executable_p | |
eff02e4f ILT |
375 | # as_fn_append VAR VALUE |
376 | # ---------------------- | |
377 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
378 | # advantage of any shell optimizations that allow amortized linear growth over | |
379 | # repeated appends, instead of the typical quadratic growth present in naive | |
380 | # implementations. | |
381 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
382 | eval 'as_fn_append () | |
383 | { | |
384 | eval $1+=\$2 | |
385 | }' | |
386 | else | |
387 | as_fn_append () | |
388 | { | |
389 | eval $1=\$$1\$2 | |
390 | } | |
391 | fi # as_fn_append | |
392 | ||
393 | # as_fn_arith ARG... | |
394 | # ------------------ | |
395 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
396 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
397 | # must be portable across $(()) and expr. | |
398 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
399 | eval 'as_fn_arith () | |
400 | { | |
401 | as_val=$(( $* )) | |
402 | }' | |
403 | else | |
404 | as_fn_arith () | |
405 | { | |
406 | as_val=`expr "$@" || test $? -eq 1` | |
407 | } | |
408 | fi # as_fn_arith | |
409 | ||
410 | ||
22e05272 JM |
411 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
412 | # ---------------------------------------- | |
eff02e4f ILT |
413 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
414 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 415 | # script with STATUS, using 1 if that was 0. |
eff02e4f ILT |
416 | as_fn_error () |
417 | { | |
22e05272 JM |
418 | as_status=$1; test $as_status -eq 0 && as_status=1 |
419 | if test "$4"; then | |
420 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
421 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
eff02e4f | 422 | fi |
22e05272 | 423 | $as_echo "$as_me: error: $2" >&2 |
eff02e4f ILT |
424 | as_fn_exit $as_status |
425 | } # as_fn_error | |
426 | ||
427 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
428 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
429 | as_expr=expr | |
430 | else | |
431 | as_expr=false | |
432 | fi | |
433 | ||
434 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
435 | as_basename=basename | |
436 | else | |
437 | as_basename=false | |
438 | fi | |
439 | ||
440 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
441 | as_dirname=dirname | |
442 | else | |
443 | as_dirname=false | |
444 | fi | |
445 | ||
446 | as_me=`$as_basename -- "$0" || | |
447 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
448 | X"$0" : 'X\(//\)$' \| \ | |
449 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
450 | $as_echo X/"$0" | | |
451 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
452 | s//\1/ | |
453 | q | |
454 | } | |
455 | /^X\/\(\/\/\)$/{ | |
456 | s//\1/ | |
457 | q | |
458 | } | |
459 | /^X\/\(\/\).*/{ | |
460 | s//\1/ | |
461 | q | |
462 | } | |
463 | s/.*/./; q'` | |
464 | ||
465 | # Avoid depending upon Character Ranges. | |
466 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
467 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
468 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
469 | as_cr_digits='0123456789' | |
470 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
471 | ||
472 | ||
473 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
474 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
475 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
476 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
477 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
478 | sed -n ' | |
479 | p | |
480 | /[$]LINENO/= | |
481 | ' <$as_myself | | |
482 | sed ' | |
483 | s/[$]LINENO.*/&-/ | |
484 | t lineno | |
485 | b | |
486 | :lineno | |
487 | N | |
488 | :loop | |
489 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
490 | t loop | |
491 | s/-\n.*// | |
492 | ' >$as_me.lineno && | |
493 | chmod +x "$as_me.lineno" || | |
494 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
495 | ||
22e05272 JM |
496 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
497 | # already done that, so ensure we don't try to do so again and fall | |
498 | # in an infinite loop. This has already happened in practice. | |
499 | _as_can_reexec=no; export _as_can_reexec | |
eff02e4f ILT |
500 | # Don't try to exec as it changes $[0], causing all sort of problems |
501 | # (the dirname of $[0] is not the place where we might find the | |
502 | # original and so on. Autoconf is especially sensitive to this). | |
503 | . "./$as_me.lineno" | |
504 | # Exit status is that of the last command. | |
505 | exit | |
506 | } | |
507 | ||
508 | ECHO_C= ECHO_N= ECHO_T= | |
509 | case `echo -n x` in #((((( | |
510 | -n*) | |
511 | case `echo 'xy\c'` in | |
512 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
513 | xy) ECHO_C='\c';; | |
514 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
515 | ECHO_T=' ';; | |
516 | esac;; | |
517 | *) | |
518 | ECHO_N='-n';; | |
519 | esac | |
520 | ||
521 | rm -f conf$$ conf$$.exe conf$$.file | |
522 | if test -d conf$$.dir; then | |
523 | rm -f conf$$.dir/conf$$.file | |
524 | else | |
525 | rm -f conf$$.dir | |
526 | mkdir conf$$.dir 2>/dev/null | |
527 | fi | |
528 | if (echo >conf$$.file) 2>/dev/null; then | |
529 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
530 | as_ln_s='ln -s' | |
531 | # ... but there are two gotchas: | |
532 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
533 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 534 | # In both cases, we have to default to `cp -pR'. |
eff02e4f | 535 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 536 | as_ln_s='cp -pR' |
eff02e4f ILT |
537 | elif ln conf$$.file conf$$ 2>/dev/null; then |
538 | as_ln_s=ln | |
539 | else | |
22e05272 | 540 | as_ln_s='cp -pR' |
eff02e4f ILT |
541 | fi |
542 | else | |
22e05272 | 543 | as_ln_s='cp -pR' |
eff02e4f ILT |
544 | fi |
545 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
546 | rmdir conf$$.dir 2>/dev/null | |
547 | ||
548 | if mkdir -p . 2>/dev/null; then | |
549 | as_mkdir_p='mkdir -p "$as_dir"' | |
550 | else | |
551 | test -d ./-p && rmdir ./-p | |
552 | as_mkdir_p=false | |
553 | fi | |
554 | ||
22e05272 JM |
555 | as_test_x='test -x' |
556 | as_executable_p=as_fn_executable_p | |
eff02e4f ILT |
557 | |
558 | # Sed expression to map a string onto a valid CPP name. | |
559 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
560 | ||
561 | # Sed expression to map a string onto a valid variable name. | |
562 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
563 | ||
564 | SHELL=${CONFIG_SHELL-/bin/sh} | |
565 | ||
566 | ||
22e05272 JM |
567 | test -n "$DJDIR" || exec 7<&0 </dev/null |
568 | exec 6>&1 | |
eff02e4f ILT |
569 | |
570 | # Name of the host. | |
22e05272 | 571 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
eff02e4f ILT |
572 | # so uname gets run too. |
573 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
574 | ||
575 | # | |
576 | # Initializations. | |
577 | # | |
578 | ac_default_prefix=/usr/local | |
579 | ac_clean_files= | |
580 | ac_config_libobj_dir=. | |
581 | LIBOBJS= | |
582 | cross_compiling=no | |
583 | subdirs= | |
584 | MFLAGS= | |
585 | MAKEFLAGS= | |
586 | ||
587 | # Identity of this package. | |
588 | PACKAGE_NAME='package-unused' | |
589 | PACKAGE_TARNAME='libbacktrace' | |
590 | PACKAGE_VERSION='version-unused' | |
591 | PACKAGE_STRING='package-unused version-unused' | |
592 | PACKAGE_BUGREPORT='' | |
593 | PACKAGE_URL='' | |
594 | ||
595 | ac_unique_file="backtrace.h" | |
596 | # Factoring default headers for most tests. | |
597 | ac_includes_default="\ | |
598 | #include <stdio.h> | |
599 | #ifdef HAVE_SYS_TYPES_H | |
600 | # include <sys/types.h> | |
601 | #endif | |
602 | #ifdef HAVE_SYS_STAT_H | |
603 | # include <sys/stat.h> | |
604 | #endif | |
605 | #ifdef STDC_HEADERS | |
606 | # include <stdlib.h> | |
607 | # include <stddef.h> | |
608 | #else | |
609 | # ifdef HAVE_STDLIB_H | |
610 | # include <stdlib.h> | |
611 | # endif | |
612 | #endif | |
613 | #ifdef HAVE_STRING_H | |
614 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
615 | # include <memory.h> | |
616 | # endif | |
617 | # include <string.h> | |
618 | #endif | |
619 | #ifdef HAVE_STRINGS_H | |
620 | # include <strings.h> | |
621 | #endif | |
622 | #ifdef HAVE_INTTYPES_H | |
623 | # include <inttypes.h> | |
624 | #endif | |
625 | #ifdef HAVE_STDINT_H | |
626 | # include <stdint.h> | |
627 | #endif | |
628 | #ifdef HAVE_UNISTD_H | |
629 | # include <unistd.h> | |
630 | #endif" | |
631 | ||
632 | ac_subst_vars='am__EXEEXT_FALSE | |
633 | am__EXEEXT_TRUE | |
634 | LTLIBOBJS | |
635 | LIBOBJS | |
636 | NATIVE_FALSE | |
637 | NATIVE_TRUE | |
dea40c94 ILT |
638 | HAVE_DSYMUTIL_FALSE |
639 | HAVE_DSYMUTIL_TRUE | |
9283471b ILT |
640 | HAVE_OBJCOPY_DEBUGLINK_FALSE |
641 | HAVE_OBJCOPY_DEBUGLINK_TRUE | |
fddbc193 | 642 | READELF |
9283471b | 643 | OBJCOPY |
8da872d9 ILT |
644 | HAVE_COMPRESSED_DEBUG_FALSE |
645 | HAVE_COMPRESSED_DEBUG_TRUE | |
646 | HAVE_ZLIB_FALSE | |
647 | HAVE_ZLIB_TRUE | |
c926fd82 ILT |
648 | HAVE_DWARF5_FALSE |
649 | HAVE_DWARF5_TRUE | |
d1609a23 ILT |
650 | HAVE_PTHREAD_FALSE |
651 | HAVE_PTHREAD_TRUE | |
652 | PTHREAD_CFLAGS | |
8398c1df | 653 | CLOCK_GETTIME_LINK |
eff02e4f ILT |
654 | BACKTRACE_USES_MALLOC |
655 | ALLOC_FILE | |
656 | VIEW_FILE | |
e24afc10 | 657 | BACKTRACE_SUPPORTS_DATA |
eff02e4f | 658 | BACKTRACE_SUPPORTED |
fddbc193 TV |
659 | HAVE_ELF_FALSE |
660 | HAVE_ELF_TRUE | |
eff02e4f ILT |
661 | FORMAT_FILE |
662 | BACKTRACE_SUPPORTS_THREADS | |
663 | PIC_FLAG | |
664 | WARN_FLAGS | |
56195009 | 665 | EXTRA_FLAGS |
eff02e4f | 666 | BACKTRACE_FILE |
eff02e4f ILT |
667 | OTOOL64 |
668 | OTOOL | |
669 | LIPO | |
670 | NMEDIT | |
671 | DSYMUTIL | |
672 | AR | |
673 | OBJDUMP | |
674 | LN_S | |
675 | NM | |
676 | ac_ct_DUMPBIN | |
677 | DUMPBIN | |
678 | LD | |
679 | FGREP | |
eff02e4f ILT |
680 | SED |
681 | LIBTOOL | |
10f48858 TV |
682 | HAVE_DWZ_FALSE |
683 | HAVE_DWZ_TRUE | |
684 | DWZ | |
eff02e4f | 685 | RANLIB |
d4c059d5 ILT |
686 | MAINT |
687 | MAINTAINER_MODE_FALSE | |
688 | MAINTAINER_MODE_TRUE | |
22e05272 JM |
689 | AM_BACKSLASH |
690 | AM_DEFAULT_VERBOSITY | |
691 | AM_DEFAULT_V | |
692 | AM_V | |
eff02e4f ILT |
693 | am__untar |
694 | am__tar | |
695 | AMTAR | |
696 | am__leading_dot | |
697 | SET_MAKE | |
698 | AWK | |
699 | mkdir_p | |
700 | MKDIR_P | |
701 | INSTALL_STRIP_PROGRAM | |
702 | STRIP | |
703 | install_sh | |
704 | MAKEINFO | |
705 | AUTOHEADER | |
706 | AUTOMAKE | |
707 | AUTOCONF | |
708 | ACLOCAL | |
709 | VERSION | |
710 | PACKAGE | |
711 | CYGPATH_W | |
712 | am__isrc | |
713 | INSTALL_DATA | |
714 | INSTALL_SCRIPT | |
715 | INSTALL_PROGRAM | |
716 | libtool_VERSION | |
d4c059d5 ILT |
717 | EGREP |
718 | GREP | |
719 | CPP | |
720 | OBJEXT | |
721 | EXEEXT | |
722 | ac_ct_CC | |
723 | CPPFLAGS | |
724 | LDFLAGS | |
725 | CFLAGS | |
726 | CC | |
eff02e4f ILT |
727 | target_os |
728 | target_vendor | |
729 | target_cpu | |
730 | target | |
731 | host_os | |
732 | host_vendor | |
733 | host_cpu | |
734 | host | |
735 | build_os | |
736 | build_vendor | |
737 | build_cpu | |
738 | build | |
405a6b1c | 739 | multi_basedir |
eff02e4f ILT |
740 | target_alias |
741 | host_alias | |
742 | build_alias | |
743 | LIBS | |
744 | ECHO_T | |
745 | ECHO_N | |
746 | ECHO_C | |
747 | DEFS | |
748 | mandir | |
749 | localedir | |
750 | libdir | |
751 | psdir | |
752 | pdfdir | |
753 | dvidir | |
754 | htmldir | |
755 | infodir | |
756 | docdir | |
757 | oldincludedir | |
758 | includedir | |
759 | localstatedir | |
760 | sharedstatedir | |
761 | sysconfdir | |
762 | datadir | |
763 | datarootdir | |
764 | libexecdir | |
765 | sbindir | |
766 | bindir | |
767 | program_transform_name | |
768 | prefix | |
769 | exec_prefix | |
770 | PACKAGE_URL | |
771 | PACKAGE_BUGREPORT | |
772 | PACKAGE_STRING | |
773 | PACKAGE_VERSION | |
774 | PACKAGE_TARNAME | |
775 | PACKAGE_NAME | |
776 | PATH_SEPARATOR | |
777 | SHELL' | |
778 | ac_subst_files='' | |
779 | ac_user_opts=' | |
780 | enable_option_checking | |
405a6b1c | 781 | enable_multilib |
22e05272 | 782 | enable_silent_rules |
eff02e4f ILT |
783 | enable_maintainer_mode |
784 | with_target_subdir | |
eff02e4f ILT |
785 | enable_shared |
786 | enable_static | |
787 | with_pic | |
788 | enable_fast_install | |
789 | with_gnu_ld | |
790 | enable_libtool_lock | |
e91a2ddc | 791 | enable_largefile |
44685d37 | 792 | enable_cet |
eff02e4f | 793 | with_system_libunwind |
459260ec | 794 | enable_host_shared |
eff02e4f ILT |
795 | ' |
796 | ac_precious_vars='build_alias | |
797 | host_alias | |
798 | target_alias | |
d4c059d5 ILT |
799 | CC |
800 | CFLAGS | |
801 | LDFLAGS | |
802 | LIBS | |
803 | CPPFLAGS | |
9283471b | 804 | CPP |
dea40c94 ILT |
805 | OBJCOPY |
806 | DSYMUTIL' | |
eff02e4f ILT |
807 | |
808 | ||
809 | # Initialize some variables set by options. | |
810 | ac_init_help= | |
811 | ac_init_version=false | |
812 | ac_unrecognized_opts= | |
813 | ac_unrecognized_sep= | |
814 | # The variables have the same names as the options, with | |
815 | # dashes changed to underlines. | |
816 | cache_file=/dev/null | |
817 | exec_prefix=NONE | |
818 | no_create= | |
819 | no_recursion= | |
820 | prefix=NONE | |
821 | program_prefix=NONE | |
822 | program_suffix=NONE | |
823 | program_transform_name=s,x,x, | |
824 | silent= | |
825 | site= | |
826 | srcdir= | |
827 | verbose= | |
828 | x_includes=NONE | |
829 | x_libraries=NONE | |
830 | ||
831 | # Installation directory options. | |
832 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
833 | # and all the variables that are supposed to be based on exec_prefix | |
834 | # by default will actually change. | |
835 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
836 | # (The list follows the same order as the GNU Coding Standards.) | |
837 | bindir='${exec_prefix}/bin' | |
838 | sbindir='${exec_prefix}/sbin' | |
839 | libexecdir='${exec_prefix}/libexec' | |
840 | datarootdir='${prefix}/share' | |
841 | datadir='${datarootdir}' | |
842 | sysconfdir='${prefix}/etc' | |
843 | sharedstatedir='${prefix}/com' | |
844 | localstatedir='${prefix}/var' | |
845 | includedir='${prefix}/include' | |
846 | oldincludedir='/usr/include' | |
847 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
848 | infodir='${datarootdir}/info' | |
849 | htmldir='${docdir}' | |
850 | dvidir='${docdir}' | |
851 | pdfdir='${docdir}' | |
852 | psdir='${docdir}' | |
853 | libdir='${exec_prefix}/lib' | |
854 | localedir='${datarootdir}/locale' | |
855 | mandir='${datarootdir}/man' | |
856 | ||
857 | ac_prev= | |
858 | ac_dashdash= | |
859 | for ac_option | |
860 | do | |
861 | # If the previous option needs an argument, assign it. | |
862 | if test -n "$ac_prev"; then | |
863 | eval $ac_prev=\$ac_option | |
864 | ac_prev= | |
865 | continue | |
866 | fi | |
867 | ||
868 | case $ac_option in | |
22e05272 JM |
869 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
870 | *=) ac_optarg= ;; | |
871 | *) ac_optarg=yes ;; | |
eff02e4f ILT |
872 | esac |
873 | ||
874 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
875 | ||
876 | case $ac_dashdash$ac_option in | |
877 | --) | |
878 | ac_dashdash=yes ;; | |
879 | ||
880 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
881 | ac_prev=bindir ;; | |
882 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
883 | bindir=$ac_optarg ;; | |
884 | ||
885 | -build | --build | --buil | --bui | --bu) | |
886 | ac_prev=build_alias ;; | |
887 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
888 | build_alias=$ac_optarg ;; | |
889 | ||
890 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
891 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
892 | ac_prev=cache_file ;; | |
893 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
894 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
895 | cache_file=$ac_optarg ;; | |
896 | ||
897 | --config-cache | -C) | |
898 | cache_file=config.cache ;; | |
899 | ||
900 | -datadir | --datadir | --datadi | --datad) | |
901 | ac_prev=datadir ;; | |
902 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
903 | datadir=$ac_optarg ;; | |
904 | ||
905 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
906 | | --dataroo | --dataro | --datar) | |
907 | ac_prev=datarootdir ;; | |
908 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
909 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
910 | datarootdir=$ac_optarg ;; | |
911 | ||
912 | -disable-* | --disable-*) | |
913 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
914 | # Reject names that are not valid shell variable names. | |
915 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
22e05272 | 916 | as_fn_error $? "invalid feature name: $ac_useropt" |
eff02e4f ILT |
917 | ac_useropt_orig=$ac_useropt |
918 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
919 | case $ac_user_opts in | |
920 | *" | |
921 | "enable_$ac_useropt" | |
922 | "*) ;; | |
923 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
924 | ac_unrecognized_sep=', ';; | |
925 | esac | |
926 | eval enable_$ac_useropt=no ;; | |
927 | ||
928 | -docdir | --docdir | --docdi | --doc | --do) | |
929 | ac_prev=docdir ;; | |
930 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
931 | docdir=$ac_optarg ;; | |
932 | ||
933 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
934 | ac_prev=dvidir ;; | |
935 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
936 | dvidir=$ac_optarg ;; | |
937 | ||
938 | -enable-* | --enable-*) | |
939 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
940 | # Reject names that are not valid shell variable names. | |
941 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
22e05272 | 942 | as_fn_error $? "invalid feature name: $ac_useropt" |
eff02e4f ILT |
943 | ac_useropt_orig=$ac_useropt |
944 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
945 | case $ac_user_opts in | |
946 | *" | |
947 | "enable_$ac_useropt" | |
948 | "*) ;; | |
949 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
950 | ac_unrecognized_sep=', ';; | |
951 | esac | |
952 | eval enable_$ac_useropt=\$ac_optarg ;; | |
953 | ||
954 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
955 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
956 | | --exec | --exe | --ex) | |
957 | ac_prev=exec_prefix ;; | |
958 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
959 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
960 | | --exec=* | --exe=* | --ex=*) | |
961 | exec_prefix=$ac_optarg ;; | |
962 | ||
963 | -gas | --gas | --ga | --g) | |
964 | # Obsolete; use --with-gas. | |
965 | with_gas=yes ;; | |
966 | ||
967 | -help | --help | --hel | --he | -h) | |
968 | ac_init_help=long ;; | |
969 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
970 | ac_init_help=recursive ;; | |
971 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
972 | ac_init_help=short ;; | |
973 | ||
974 | -host | --host | --hos | --ho) | |
975 | ac_prev=host_alias ;; | |
976 | -host=* | --host=* | --hos=* | --ho=*) | |
977 | host_alias=$ac_optarg ;; | |
978 | ||
979 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
980 | ac_prev=htmldir ;; | |
981 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
982 | | --ht=*) | |
983 | htmldir=$ac_optarg ;; | |
984 | ||
985 | -includedir | --includedir | --includedi | --included | --include \ | |
986 | | --includ | --inclu | --incl | --inc) | |
987 | ac_prev=includedir ;; | |
988 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
989 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
990 | includedir=$ac_optarg ;; | |
991 | ||
992 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
993 | ac_prev=infodir ;; | |
994 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
995 | infodir=$ac_optarg ;; | |
996 | ||
997 | -libdir | --libdir | --libdi | --libd) | |
998 | ac_prev=libdir ;; | |
999 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1000 | libdir=$ac_optarg ;; | |
1001 | ||
1002 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1003 | | --libexe | --libex | --libe) | |
1004 | ac_prev=libexecdir ;; | |
1005 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1006 | | --libexe=* | --libex=* | --libe=*) | |
1007 | libexecdir=$ac_optarg ;; | |
1008 | ||
1009 | -localedir | --localedir | --localedi | --localed | --locale) | |
1010 | ac_prev=localedir ;; | |
1011 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1012 | localedir=$ac_optarg ;; | |
1013 | ||
1014 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1015 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1016 | ac_prev=localstatedir ;; | |
1017 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1018 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1019 | localstatedir=$ac_optarg ;; | |
1020 | ||
1021 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1022 | ac_prev=mandir ;; | |
1023 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1024 | mandir=$ac_optarg ;; | |
1025 | ||
1026 | -nfp | --nfp | --nf) | |
1027 | # Obsolete; use --without-fp. | |
1028 | with_fp=no ;; | |
1029 | ||
1030 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1031 | | --no-cr | --no-c | -n) | |
1032 | no_create=yes ;; | |
1033 | ||
1034 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1035 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1036 | no_recursion=yes ;; | |
1037 | ||
1038 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1039 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1040 | | --oldin | --oldi | --old | --ol | --o) | |
1041 | ac_prev=oldincludedir ;; | |
1042 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1043 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1044 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1045 | oldincludedir=$ac_optarg ;; | |
1046 | ||
1047 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1048 | ac_prev=prefix ;; | |
1049 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1050 | prefix=$ac_optarg ;; | |
1051 | ||
1052 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1053 | | --program-pre | --program-pr | --program-p) | |
1054 | ac_prev=program_prefix ;; | |
1055 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1056 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1057 | program_prefix=$ac_optarg ;; | |
1058 | ||
1059 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1060 | | --program-suf | --program-su | --program-s) | |
1061 | ac_prev=program_suffix ;; | |
1062 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1063 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1064 | program_suffix=$ac_optarg ;; | |
1065 | ||
1066 | -program-transform-name | --program-transform-name \ | |
1067 | | --program-transform-nam | --program-transform-na \ | |
1068 | | --program-transform-n | --program-transform- \ | |
1069 | | --program-transform | --program-transfor \ | |
1070 | | --program-transfo | --program-transf \ | |
1071 | | --program-trans | --program-tran \ | |
1072 | | --progr-tra | --program-tr | --program-t) | |
1073 | ac_prev=program_transform_name ;; | |
1074 | -program-transform-name=* | --program-transform-name=* \ | |
1075 | | --program-transform-nam=* | --program-transform-na=* \ | |
1076 | | --program-transform-n=* | --program-transform-=* \ | |
1077 | | --program-transform=* | --program-transfor=* \ | |
1078 | | --program-transfo=* | --program-transf=* \ | |
1079 | | --program-trans=* | --program-tran=* \ | |
1080 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1081 | program_transform_name=$ac_optarg ;; | |
1082 | ||
1083 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1084 | ac_prev=pdfdir ;; | |
1085 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1086 | pdfdir=$ac_optarg ;; | |
1087 | ||
1088 | -psdir | --psdir | --psdi | --psd | --ps) | |
1089 | ac_prev=psdir ;; | |
1090 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1091 | psdir=$ac_optarg ;; | |
1092 | ||
1093 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1094 | | -silent | --silent | --silen | --sile | --sil) | |
1095 | silent=yes ;; | |
1096 | ||
1097 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1098 | ac_prev=sbindir ;; | |
1099 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1100 | | --sbi=* | --sb=*) | |
1101 | sbindir=$ac_optarg ;; | |
1102 | ||
1103 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1104 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1105 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1106 | | --sha | --sh) | |
1107 | ac_prev=sharedstatedir ;; | |
1108 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1109 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1110 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1111 | | --sha=* | --sh=*) | |
1112 | sharedstatedir=$ac_optarg ;; | |
1113 | ||
1114 | -site | --site | --sit) | |
1115 | ac_prev=site ;; | |
1116 | -site=* | --site=* | --sit=*) | |
1117 | site=$ac_optarg ;; | |
1118 | ||
1119 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1120 | ac_prev=srcdir ;; | |
1121 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1122 | srcdir=$ac_optarg ;; | |
1123 | ||
1124 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1125 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1126 | ac_prev=sysconfdir ;; | |
1127 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1128 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1129 | sysconfdir=$ac_optarg ;; | |
1130 | ||
1131 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1132 | ac_prev=target_alias ;; | |
1133 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1134 | target_alias=$ac_optarg ;; | |
1135 | ||
1136 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1137 | verbose=yes ;; | |
1138 | ||
1139 | -version | --version | --versio | --versi | --vers | -V) | |
1140 | ac_init_version=: ;; | |
1141 | ||
1142 | -with-* | --with-*) | |
1143 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1144 | # Reject names that are not valid shell variable names. | |
1145 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
22e05272 | 1146 | as_fn_error $? "invalid package name: $ac_useropt" |
eff02e4f ILT |
1147 | ac_useropt_orig=$ac_useropt |
1148 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1149 | case $ac_user_opts in | |
1150 | *" | |
1151 | "with_$ac_useropt" | |
1152 | "*) ;; | |
1153 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1154 | ac_unrecognized_sep=', ';; | |
1155 | esac | |
1156 | eval with_$ac_useropt=\$ac_optarg ;; | |
1157 | ||
1158 | -without-* | --without-*) | |
1159 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1160 | # Reject names that are not valid shell variable names. | |
1161 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
22e05272 | 1162 | as_fn_error $? "invalid package name: $ac_useropt" |
eff02e4f ILT |
1163 | ac_useropt_orig=$ac_useropt |
1164 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1165 | case $ac_user_opts in | |
1166 | *" | |
1167 | "with_$ac_useropt" | |
1168 | "*) ;; | |
1169 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1170 | ac_unrecognized_sep=', ';; | |
1171 | esac | |
1172 | eval with_$ac_useropt=no ;; | |
1173 | ||
1174 | --x) | |
1175 | # Obsolete; use --with-x. | |
1176 | with_x=yes ;; | |
1177 | ||
1178 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1179 | | --x-incl | --x-inc | --x-in | --x-i) | |
1180 | ac_prev=x_includes ;; | |
1181 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1182 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1183 | x_includes=$ac_optarg ;; | |
1184 | ||
1185 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1186 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1187 | ac_prev=x_libraries ;; | |
1188 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1189 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1190 | x_libraries=$ac_optarg ;; | |
1191 | ||
22e05272 JM |
1192 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1193 | Try \`$0 --help' for more information" | |
eff02e4f ILT |
1194 | ;; |
1195 | ||
1196 | *=*) | |
1197 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1198 | # Reject names that are not valid shell variable names. | |
1199 | case $ac_envvar in #( | |
1200 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
22e05272 | 1201 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
eff02e4f ILT |
1202 | esac |
1203 | eval $ac_envvar=\$ac_optarg | |
1204 | export $ac_envvar ;; | |
1205 | ||
1206 | *) | |
1207 | # FIXME: should be removed in autoconf 3.0. | |
1208 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1209 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1210 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
22e05272 | 1211 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
eff02e4f ILT |
1212 | ;; |
1213 | ||
1214 | esac | |
1215 | done | |
1216 | ||
1217 | if test -n "$ac_prev"; then | |
1218 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
22e05272 | 1219 | as_fn_error $? "missing argument to $ac_option" |
eff02e4f ILT |
1220 | fi |
1221 | ||
1222 | if test -n "$ac_unrecognized_opts"; then | |
1223 | case $enable_option_checking in | |
1224 | no) ;; | |
22e05272 | 1225 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
eff02e4f ILT |
1226 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1227 | esac | |
1228 | fi | |
1229 | ||
1230 | # Check all directory arguments for consistency. | |
1231 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1232 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1233 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1234 | libdir localedir mandir | |
1235 | do | |
1236 | eval ac_val=\$$ac_var | |
1237 | # Remove trailing slashes. | |
1238 | case $ac_val in | |
1239 | */ ) | |
1240 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1241 | eval $ac_var=\$ac_val;; | |
1242 | esac | |
1243 | # Be sure to have absolute directory names. | |
1244 | case $ac_val in | |
1245 | [\\/$]* | ?:[\\/]* ) continue;; | |
1246 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1247 | esac | |
22e05272 | 1248 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
eff02e4f ILT |
1249 | done |
1250 | ||
1251 | # There might be people who depend on the old broken behavior: `$host' | |
1252 | # used to hold the argument of --host etc. | |
1253 | # FIXME: To remove some day. | |
1254 | build=$build_alias | |
1255 | host=$host_alias | |
1256 | target=$target_alias | |
1257 | ||
1258 | # FIXME: To remove some day. | |
1259 | if test "x$host_alias" != x; then | |
1260 | if test "x$build_alias" = x; then | |
1261 | cross_compiling=maybe | |
eff02e4f ILT |
1262 | elif test "x$build_alias" != "x$host_alias"; then |
1263 | cross_compiling=yes | |
1264 | fi | |
1265 | fi | |
1266 | ||
1267 | ac_tool_prefix= | |
1268 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1269 | ||
1270 | test "$silent" = yes && exec 6>/dev/null | |
1271 | ||
1272 | ||
1273 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1274 | ac_ls_di=`ls -di .` && | |
1275 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
22e05272 | 1276 | as_fn_error $? "working directory cannot be determined" |
eff02e4f | 1277 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
22e05272 | 1278 | as_fn_error $? "pwd does not report name of working directory" |
eff02e4f ILT |
1279 | |
1280 | ||
1281 | # Find the source files, if location was not specified. | |
1282 | if test -z "$srcdir"; then | |
1283 | ac_srcdir_defaulted=yes | |
1284 | # Try the directory containing this script, then the parent directory. | |
1285 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1286 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1287 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1288 | X"$as_myself" : 'X\(//\)$' \| \ | |
1289 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1290 | $as_echo X"$as_myself" | | |
1291 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1292 | s//\1/ | |
1293 | q | |
1294 | } | |
1295 | /^X\(\/\/\)[^/].*/{ | |
1296 | s//\1/ | |
1297 | q | |
1298 | } | |
1299 | /^X\(\/\/\)$/{ | |
1300 | s//\1/ | |
1301 | q | |
1302 | } | |
1303 | /^X\(\/\).*/{ | |
1304 | s//\1/ | |
1305 | q | |
1306 | } | |
1307 | s/.*/./; q'` | |
1308 | srcdir=$ac_confdir | |
1309 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1310 | srcdir=.. | |
1311 | fi | |
1312 | else | |
1313 | ac_srcdir_defaulted=no | |
1314 | fi | |
1315 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1316 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
22e05272 | 1317 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
eff02e4f ILT |
1318 | fi |
1319 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1320 | ac_abs_confdir=`( | |
22e05272 | 1321 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
eff02e4f ILT |
1322 | pwd)` |
1323 | # When building in place, set srcdir=. | |
1324 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1325 | srcdir=. | |
1326 | fi | |
1327 | # Remove unnecessary trailing slashes from srcdir. | |
1328 | # Double slashes in file names in object file debugging info | |
1329 | # mess up M-x gdb in Emacs. | |
1330 | case $srcdir in | |
1331 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1332 | esac | |
1333 | for ac_var in $ac_precious_vars; do | |
1334 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1335 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1336 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1337 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1338 | done | |
1339 | ||
1340 | # | |
1341 | # Report the --help message. | |
1342 | # | |
1343 | if test "$ac_init_help" = "long"; then | |
1344 | # Omit some internal or obsolete options to make the list less imposing. | |
1345 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1346 | cat <<_ACEOF | |
1347 | \`configure' configures package-unused version-unused to adapt to many kinds of systems. | |
1348 | ||
1349 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1350 | ||
1351 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1352 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1353 | ||
1354 | Defaults for the options are specified in brackets. | |
1355 | ||
1356 | Configuration: | |
1357 | -h, --help display this help and exit | |
1358 | --help=short display options specific to this package | |
1359 | --help=recursive display the short help of all the included packages | |
1360 | -V, --version display version information and exit | |
22e05272 | 1361 | -q, --quiet, --silent do not print \`checking ...' messages |
eff02e4f ILT |
1362 | --cache-file=FILE cache test results in FILE [disabled] |
1363 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1364 | -n, --no-create do not create output files | |
1365 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1366 | ||
1367 | Installation directories: | |
1368 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1369 | [$ac_default_prefix] | |
1370 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1371 | [PREFIX] | |
1372 | ||
1373 | By default, \`make install' will install all the files in | |
1374 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1375 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1376 | for instance \`--prefix=\$HOME'. | |
1377 | ||
1378 | For better control, use the options below. | |
1379 | ||
1380 | Fine tuning of the installation directories: | |
1381 | --bindir=DIR user executables [EPREFIX/bin] | |
1382 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1383 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1384 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1385 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1386 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1387 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1388 | --includedir=DIR C header files [PREFIX/include] | |
1389 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1390 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1391 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1392 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1393 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1394 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1395 | --docdir=DIR documentation root [DATAROOTDIR/doc/libbacktrace] | |
1396 | --htmldir=DIR html documentation [DOCDIR] | |
1397 | --dvidir=DIR dvi documentation [DOCDIR] | |
1398 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1399 | --psdir=DIR ps documentation [DOCDIR] | |
1400 | _ACEOF | |
1401 | ||
1402 | cat <<\_ACEOF | |
1403 | ||
1404 | Program names: | |
1405 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1406 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1407 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1408 | ||
1409 | System types: | |
1410 | --build=BUILD configure for building on BUILD [guessed] | |
1411 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1412 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1413 | _ACEOF | |
1414 | fi | |
1415 | ||
1416 | if test -n "$ac_init_help"; then | |
1417 | case $ac_init_help in | |
1418 | short | recursive ) echo "Configuration of package-unused version-unused:";; | |
1419 | esac | |
1420 | cat <<\_ACEOF | |
1421 | ||
1422 | Optional Features: | |
1423 | --disable-option-checking ignore unrecognized --enable/--with options | |
1424 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1425 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
405a6b1c | 1426 | --enable-multilib build many library versions (default) |
22e05272 JM |
1427 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1428 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1429 | --enable-maintainer-mode | |
1430 | enable make rules and dependencies not useful (and | |
1431 | sometimes confusing) to the casual installer | |
7e5c7547 | 1432 | --enable-shared[=PKGS] build shared libraries [default=yes] |
eff02e4f ILT |
1433 | --enable-static[=PKGS] build static libraries [default=yes] |
1434 | --enable-fast-install[=PKGS] | |
1435 | optimize for fast installation [default=yes] | |
1436 | --disable-libtool-lock avoid locking (might break parallel builds) | |
e91a2ddc | 1437 | --disable-largefile omit support for large files |
a0e1df88 | 1438 | --enable-cet enable Intel CET in target libraries [default=no] |
459260ec | 1439 | --enable-host-shared build host code as shared libraries |
eff02e4f ILT |
1440 | |
1441 | Optional Packages: | |
1442 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1443 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1444 | --with-target-subdir=SUBDIR Configuring in a subdirectory for target | |
1445 | --with-pic try to use only PIC/non-PIC objects [default=use | |
1446 | both] | |
1447 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1448 | --with-system-libunwind use installed libunwind | |
1449 | ||
1450 | Some influential environment variables: | |
1451 | CC C compiler command | |
1452 | CFLAGS C compiler flags | |
1453 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1454 | nonstandard directory <lib dir> | |
1455 | LIBS libraries to pass to the linker, e.g. -l<library> | |
22e05272 | 1456 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
eff02e4f ILT |
1457 | you have headers in a nonstandard directory <include dir> |
1458 | CPP C preprocessor | |
9283471b | 1459 | OBJCOPY location of objcopy |
dea40c94 | 1460 | DSYMUTIL location of dsymutil |
eff02e4f ILT |
1461 | |
1462 | Use these variables to override the choices made by `configure' or to help | |
1463 | it to find libraries and programs with nonstandard names/locations. | |
1464 | ||
1465 | Report bugs to the package provider. | |
1466 | _ACEOF | |
1467 | ac_status=$? | |
1468 | fi | |
1469 | ||
1470 | if test "$ac_init_help" = "recursive"; then | |
1471 | # If there are subdirs, report their specific --help. | |
1472 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1473 | test -d "$ac_dir" || | |
1474 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1475 | continue | |
1476 | ac_builddir=. | |
1477 | ||
1478 | case "$ac_dir" in | |
1479 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1480 | *) | |
1481 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1482 | # A ".." for each directory in $ac_dir_suffix. | |
1483 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1484 | case $ac_top_builddir_sub in | |
1485 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1486 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1487 | esac ;; | |
1488 | esac | |
1489 | ac_abs_top_builddir=$ac_pwd | |
1490 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1491 | # for backward compatibility: | |
1492 | ac_top_builddir=$ac_top_build_prefix | |
1493 | ||
1494 | case $srcdir in | |
1495 | .) # We are building in place. | |
1496 | ac_srcdir=. | |
1497 | ac_top_srcdir=$ac_top_builddir_sub | |
1498 | ac_abs_top_srcdir=$ac_pwd ;; | |
1499 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1500 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1501 | ac_top_srcdir=$srcdir | |
1502 | ac_abs_top_srcdir=$srcdir ;; | |
1503 | *) # Relative name. | |
1504 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1505 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1506 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1507 | esac | |
1508 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1509 | ||
1510 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1511 | # Check for guested configure. | |
1512 | if test -f "$ac_srcdir/configure.gnu"; then | |
1513 | echo && | |
1514 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1515 | elif test -f "$ac_srcdir/configure"; then | |
1516 | echo && | |
1517 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1518 | else | |
1519 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1520 | fi || ac_status=$? | |
1521 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1522 | done | |
1523 | fi | |
1524 | ||
1525 | test -n "$ac_init_help" && exit $ac_status | |
1526 | if $ac_init_version; then | |
1527 | cat <<\_ACEOF | |
1528 | package-unused configure version-unused | |
22e05272 | 1529 | generated by GNU Autoconf 2.69 |
eff02e4f | 1530 | |
22e05272 | 1531 | Copyright (C) 2012 Free Software Foundation, Inc. |
eff02e4f ILT |
1532 | This configure script is free software; the Free Software Foundation |
1533 | gives unlimited permission to copy, distribute and modify it. | |
1534 | _ACEOF | |
1535 | exit | |
1536 | fi | |
1537 | ||
1538 | ## ------------------------ ## | |
1539 | ## Autoconf initialization. ## | |
1540 | ## ------------------------ ## | |
1541 | ||
1542 | # ac_fn_c_try_compile LINENO | |
1543 | # -------------------------- | |
1544 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1545 | ac_fn_c_try_compile () | |
1546 | { | |
1547 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1548 | rm -f conftest.$ac_objext | |
1549 | if { { ac_try="$ac_compile" | |
1550 | case "(($ac_try" in | |
1551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1552 | *) ac_try_echo=$ac_try;; | |
1553 | esac | |
1554 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1555 | $as_echo "$ac_try_echo"; } >&5 | |
1556 | (eval "$ac_compile") 2>conftest.err | |
1557 | ac_status=$? | |
1558 | if test -s conftest.err; then | |
1559 | grep -v '^ *+' conftest.err >conftest.er1 | |
1560 | cat conftest.er1 >&5 | |
1561 | mv -f conftest.er1 conftest.err | |
1562 | fi | |
1563 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1564 | test $ac_status = 0; } && { | |
1565 | test -z "$ac_c_werror_flag" || | |
1566 | test ! -s conftest.err | |
1567 | } && test -s conftest.$ac_objext; then : | |
1568 | ac_retval=0 | |
1569 | else | |
1570 | $as_echo "$as_me: failed program was:" >&5 | |
1571 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1572 | ||
1573 | ac_retval=1 | |
1574 | fi | |
22e05272 JM |
1575 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1576 | as_fn_set_status $ac_retval | |
eff02e4f ILT |
1577 | |
1578 | } # ac_fn_c_try_compile | |
1579 | ||
d4c059d5 ILT |
1580 | # ac_fn_c_try_cpp LINENO |
1581 | # ---------------------- | |
1582 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1583 | ac_fn_c_try_cpp () | |
eff02e4f ILT |
1584 | { |
1585 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
d4c059d5 | 1586 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
eff02e4f ILT |
1587 | case "(($ac_try" in |
1588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1589 | *) ac_try_echo=$ac_try;; | |
1590 | esac | |
1591 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1592 | $as_echo "$ac_try_echo"; } >&5 | |
d4c059d5 | 1593 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
eff02e4f ILT |
1594 | ac_status=$? |
1595 | if test -s conftest.err; then | |
1596 | grep -v '^ *+' conftest.err >conftest.er1 | |
1597 | cat conftest.er1 >&5 | |
1598 | mv -f conftest.er1 conftest.err | |
1599 | fi | |
1600 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22e05272 | 1601 | test $ac_status = 0; } > conftest.i && { |
d4c059d5 | 1602 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
eff02e4f | 1603 | test ! -s conftest.err |
eff02e4f ILT |
1604 | }; then : |
1605 | ac_retval=0 | |
1606 | else | |
1607 | $as_echo "$as_me: failed program was:" >&5 | |
1608 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1609 | ||
d4c059d5 | 1610 | ac_retval=1 |
eff02e4f | 1611 | fi |
22e05272 JM |
1612 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1613 | as_fn_set_status $ac_retval | |
eff02e4f | 1614 | |
d4c059d5 | 1615 | } # ac_fn_c_try_cpp |
eff02e4f | 1616 | |
d4c059d5 | 1617 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
eff02e4f | 1618 | # ------------------------------------------------------- |
d4c059d5 ILT |
1619 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
1620 | # the include files in INCLUDES and setting the cache variable VAR | |
1621 | # accordingly. | |
1622 | ac_fn_c_check_header_mongrel () | |
eff02e4f ILT |
1623 | { |
1624 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
22e05272 | 1625 | if eval \${$3+:} false; then : |
eff02e4f ILT |
1626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1627 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1628 | if eval \${$3+:} false; then : |
eff02e4f | 1629 | $as_echo_n "(cached) " >&6 |
d4c059d5 ILT |
1630 | fi |
1631 | eval ac_res=\$$3 | |
1632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1633 | $as_echo "$ac_res" >&6; } | |
eff02e4f | 1634 | else |
d4c059d5 ILT |
1635 | # Is the header compilable? |
1636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1637 | $as_echo_n "checking $2 usability... " >&6; } | |
1638 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
eff02e4f ILT |
1639 | /* end confdefs.h. */ |
1640 | $4 | |
1641 | #include <$2> | |
1642 | _ACEOF | |
1643 | if ac_fn_c_try_compile "$LINENO"; then : | |
d4c059d5 | 1644 | ac_header_compiler=yes |
eff02e4f | 1645 | else |
d4c059d5 | 1646 | ac_header_compiler=no |
eff02e4f ILT |
1647 | fi |
1648 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d4c059d5 ILT |
1649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
1650 | $as_echo "$ac_header_compiler" >&6; } | |
eff02e4f | 1651 | |
d4c059d5 ILT |
1652 | # Is the header present? |
1653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1654 | $as_echo_n "checking $2 presence... " >&6; } | |
1655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1656 | /* end confdefs.h. */ | |
1657 | #include <$2> | |
1658 | _ACEOF | |
1659 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1660 | ac_header_preproc=yes | |
1661 | else | |
1662 | ac_header_preproc=no | |
1663 | fi | |
22e05272 | 1664 | rm -f conftest.err conftest.i conftest.$ac_ext |
d4c059d5 ILT |
1665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1666 | $as_echo "$ac_header_preproc" >&6; } | |
eff02e4f | 1667 | |
d4c059d5 ILT |
1668 | # So? What about this header? |
1669 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1670 | yes:no: ) | |
1671 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1672 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1673 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1674 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1675 | ;; | |
1676 | no:yes:* ) | |
1677 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1678 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1679 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1680 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1681 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1682 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1683 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1684 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1685 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1686 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1687 | ;; | |
eff02e4f | 1688 | esac |
d4c059d5 ILT |
1689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1690 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1691 | if eval \${$3+:} false; then : |
d4c059d5 | 1692 | $as_echo_n "(cached) " >&6 |
eff02e4f | 1693 | else |
d4c059d5 ILT |
1694 | eval "$3=\$ac_header_compiler" |
1695 | fi | |
1696 | eval ac_res=\$$3 | |
1697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1698 | $as_echo "$ac_res" >&6; } | |
eff02e4f | 1699 | fi |
22e05272 | 1700 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
eff02e4f | 1701 | |
d4c059d5 | 1702 | } # ac_fn_c_check_header_mongrel |
eff02e4f ILT |
1703 | |
1704 | # ac_fn_c_try_run LINENO | |
1705 | # ---------------------- | |
1706 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1707 | # that executables *can* be run. | |
1708 | ac_fn_c_try_run () | |
1709 | { | |
1710 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1711 | if { { ac_try="$ac_link" | |
1712 | case "(($ac_try" in | |
1713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1714 | *) ac_try_echo=$ac_try;; | |
1715 | esac | |
1716 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1717 | $as_echo "$ac_try_echo"; } >&5 | |
1718 | (eval "$ac_link") 2>&5 | |
1719 | ac_status=$? | |
1720 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1721 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1722 | { { case "(($ac_try" in | |
1723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1724 | *) ac_try_echo=$ac_try;; | |
1725 | esac | |
1726 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1727 | $as_echo "$ac_try_echo"; } >&5 | |
1728 | (eval "$ac_try") 2>&5 | |
1729 | ac_status=$? | |
1730 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1731 | test $ac_status = 0; }; }; then : | |
1732 | ac_retval=0 | |
1733 | else | |
1734 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1735 | $as_echo "$as_me: failed program was:" >&5 | |
1736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1737 | ||
1738 | ac_retval=$ac_status | |
1739 | fi | |
1740 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1741 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1742 | as_fn_set_status $ac_retval | |
eff02e4f ILT |
1743 | |
1744 | } # ac_fn_c_try_run | |
1745 | ||
d4c059d5 ILT |
1746 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1747 | # ------------------------------------------------------- | |
1748 | # Tests whether HEADER exists and can be compiled using the include files in | |
1749 | # INCLUDES, setting the cache variable VAR accordingly. | |
1750 | ac_fn_c_check_header_compile () | |
1751 | { | |
1752 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1754 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1755 | if eval \${$3+:} false; then : |
d4c059d5 ILT |
1756 | $as_echo_n "(cached) " >&6 |
1757 | else | |
1758 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1759 | /* end confdefs.h. */ | |
1760 | $4 | |
1761 | #include <$2> | |
1762 | _ACEOF | |
1763 | if ac_fn_c_try_compile "$LINENO"; then : | |
1764 | eval "$3=yes" | |
1765 | else | |
1766 | eval "$3=no" | |
1767 | fi | |
1768 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1769 | fi | |
1770 | eval ac_res=\$$3 | |
1771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1772 | $as_echo "$ac_res" >&6; } | |
22e05272 | 1773 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
d4c059d5 ILT |
1774 | |
1775 | } # ac_fn_c_check_header_compile | |
1776 | ||
1777 | # ac_fn_c_try_link LINENO | |
1778 | # ----------------------- | |
1779 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1780 | ac_fn_c_try_link () | |
1781 | { | |
1782 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1783 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1784 | if { { ac_try="$ac_link" | |
1785 | case "(($ac_try" in | |
1786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1787 | *) ac_try_echo=$ac_try;; | |
1788 | esac | |
1789 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1790 | $as_echo "$ac_try_echo"; } >&5 | |
1791 | (eval "$ac_link") 2>conftest.err | |
1792 | ac_status=$? | |
1793 | if test -s conftest.err; then | |
1794 | grep -v '^ *+' conftest.err >conftest.er1 | |
1795 | cat conftest.er1 >&5 | |
1796 | mv -f conftest.er1 conftest.err | |
1797 | fi | |
1798 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1799 | test $ac_status = 0; } && { | |
1800 | test -z "$ac_c_werror_flag" || | |
1801 | test ! -s conftest.err | |
1802 | } && test -s conftest$ac_exeext && { | |
1803 | test "$cross_compiling" = yes || | |
22e05272 | 1804 | test -x conftest$ac_exeext |
d4c059d5 ILT |
1805 | }; then : |
1806 | ac_retval=0 | |
1807 | else | |
1808 | $as_echo "$as_me: failed program was:" >&5 | |
1809 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1810 | ||
1811 | ac_retval=1 | |
1812 | fi | |
1813 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1814 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1815 | # interfere with the next link command; also delete a directory that is | |
1816 | # left behind by Apple's compiler. We do this before executing the actions. | |
1817 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1818 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1819 | as_fn_set_status $ac_retval | |
d4c059d5 ILT |
1820 | |
1821 | } # ac_fn_c_try_link | |
1822 | ||
eff02e4f ILT |
1823 | # ac_fn_c_check_func LINENO FUNC VAR |
1824 | # ---------------------------------- | |
1825 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1826 | ac_fn_c_check_func () | |
1827 | { | |
1828 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1830 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1831 | if eval \${$3+:} false; then : |
eff02e4f ILT |
1832 | $as_echo_n "(cached) " >&6 |
1833 | else | |
1834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1835 | /* end confdefs.h. */ | |
1836 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1837 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1838 | #define $2 innocuous_$2 | |
1839 | ||
1840 | /* System header to define __stub macros and hopefully few prototypes, | |
1841 | which can conflict with char $2 (); below. | |
1842 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1843 | <limits.h> exists even on freestanding compilers. */ | |
1844 | ||
1845 | #ifdef __STDC__ | |
1846 | # include <limits.h> | |
1847 | #else | |
1848 | # include <assert.h> | |
1849 | #endif | |
1850 | ||
1851 | #undef $2 | |
1852 | ||
1853 | /* Override any GCC internal prototype to avoid an error. | |
1854 | Use char because int might match the return type of a GCC | |
1855 | builtin and then its argument prototype would still apply. */ | |
1856 | #ifdef __cplusplus | |
1857 | extern "C" | |
1858 | #endif | |
1859 | char $2 (); | |
1860 | /* The GNU C library defines this for functions which it implements | |
1861 | to always fail with ENOSYS. Some functions are actually named | |
1862 | something starting with __ and the normal name is an alias. */ | |
1863 | #if defined __stub_$2 || defined __stub___$2 | |
1864 | choke me | |
1865 | #endif | |
1866 | ||
1867 | int | |
1868 | main () | |
1869 | { | |
1870 | return $2 (); | |
1871 | ; | |
1872 | return 0; | |
1873 | } | |
1874 | _ACEOF | |
1875 | if ac_fn_c_try_link "$LINENO"; then : | |
1876 | eval "$3=yes" | |
1877 | else | |
1878 | eval "$3=no" | |
1879 | fi | |
1880 | rm -f core conftest.err conftest.$ac_objext \ | |
1881 | conftest$ac_exeext conftest.$ac_ext | |
1882 | fi | |
1883 | eval ac_res=\$$3 | |
1884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1885 | $as_echo "$ac_res" >&6; } | |
22e05272 | 1886 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
eff02e4f ILT |
1887 | |
1888 | } # ac_fn_c_check_func | |
1889 | ||
76850556 RO |
1890 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
1891 | # ------------------------------------------- | |
1892 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1893 | # variable VAR accordingly. | |
1894 | ac_fn_c_check_type () | |
1895 | { | |
1896 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1898 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1899 | if eval \${$3+:} false; then : |
76850556 RO |
1900 | $as_echo_n "(cached) " >&6 |
1901 | else | |
1902 | eval "$3=no" | |
1903 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1904 | /* end confdefs.h. */ | |
1905 | $4 | |
1906 | int | |
1907 | main () | |
1908 | { | |
1909 | if (sizeof ($2)) | |
1910 | return 0; | |
1911 | ; | |
1912 | return 0; | |
1913 | } | |
1914 | _ACEOF | |
1915 | if ac_fn_c_try_compile "$LINENO"; then : | |
1916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1917 | /* end confdefs.h. */ | |
1918 | $4 | |
1919 | int | |
1920 | main () | |
1921 | { | |
1922 | if (sizeof (($2))) | |
1923 | return 0; | |
1924 | ; | |
1925 | return 0; | |
1926 | } | |
1927 | _ACEOF | |
1928 | if ac_fn_c_try_compile "$LINENO"; then : | |
1929 | ||
1930 | else | |
1931 | eval "$3=yes" | |
1932 | fi | |
1933 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1934 | fi | |
1935 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1936 | fi | |
1937 | eval ac_res=\$$3 | |
1938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1939 | $as_echo "$ac_res" >&6; } | |
22e05272 | 1940 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
76850556 RO |
1941 | |
1942 | } # ac_fn_c_check_type | |
1943 | ||
1944 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
1945 | # -------------------------------------------- | |
1946 | # Tries to find the compile-time value of EXPR in a program that includes | |
1947 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
1948 | # computed | |
1949 | ac_fn_c_compute_int () | |
1950 | { | |
1951 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1952 | if test "$cross_compiling" = yes; then | |
1953 | # Depending upon the size, compute the lo and hi bounds. | |
1954 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1955 | /* end confdefs.h. */ | |
1956 | $4 | |
1957 | int | |
1958 | main () | |
1959 | { | |
1960 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
22e05272 JM |
1961 | test_array [0] = 0; |
1962 | return test_array [0]; | |
76850556 RO |
1963 | |
1964 | ; | |
1965 | return 0; | |
1966 | } | |
1967 | _ACEOF | |
1968 | if ac_fn_c_try_compile "$LINENO"; then : | |
1969 | ac_lo=0 ac_mid=0 | |
1970 | while :; do | |
1971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1972 | /* end confdefs.h. */ | |
1973 | $4 | |
1974 | int | |
1975 | main () | |
1976 | { | |
1977 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
22e05272 JM |
1978 | test_array [0] = 0; |
1979 | return test_array [0]; | |
76850556 RO |
1980 | |
1981 | ; | |
1982 | return 0; | |
1983 | } | |
1984 | _ACEOF | |
1985 | if ac_fn_c_try_compile "$LINENO"; then : | |
1986 | ac_hi=$ac_mid; break | |
1987 | else | |
1988 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
1989 | if test $ac_lo -le $ac_mid; then | |
1990 | ac_lo= ac_hi= | |
1991 | break | |
1992 | fi | |
1993 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
1994 | fi | |
1995 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1996 | done | |
1997 | else | |
1998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1999 | /* end confdefs.h. */ | |
2000 | $4 | |
2001 | int | |
2002 | main () | |
2003 | { | |
2004 | static int test_array [1 - 2 * !(($2) < 0)]; | |
22e05272 JM |
2005 | test_array [0] = 0; |
2006 | return test_array [0]; | |
76850556 RO |
2007 | |
2008 | ; | |
2009 | return 0; | |
2010 | } | |
2011 | _ACEOF | |
2012 | if ac_fn_c_try_compile "$LINENO"; then : | |
2013 | ac_hi=-1 ac_mid=-1 | |
2014 | while :; do | |
2015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2016 | /* end confdefs.h. */ | |
2017 | $4 | |
2018 | int | |
2019 | main () | |
2020 | { | |
2021 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
22e05272 JM |
2022 | test_array [0] = 0; |
2023 | return test_array [0]; | |
76850556 RO |
2024 | |
2025 | ; | |
2026 | return 0; | |
2027 | } | |
2028 | _ACEOF | |
2029 | if ac_fn_c_try_compile "$LINENO"; then : | |
2030 | ac_lo=$ac_mid; break | |
2031 | else | |
2032 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2033 | if test $ac_mid -le $ac_hi; then | |
2034 | ac_lo= ac_hi= | |
2035 | break | |
2036 | fi | |
2037 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
2038 | fi | |
2039 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2040 | done | |
2041 | else | |
2042 | ac_lo= ac_hi= | |
2043 | fi | |
2044 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2045 | fi | |
2046 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2047 | # Binary search between lo and hi bounds. | |
2048 | while test "x$ac_lo" != "x$ac_hi"; do | |
2049 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2051 | /* end confdefs.h. */ | |
2052 | $4 | |
2053 | int | |
2054 | main () | |
2055 | { | |
2056 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
22e05272 JM |
2057 | test_array [0] = 0; |
2058 | return test_array [0]; | |
76850556 RO |
2059 | |
2060 | ; | |
2061 | return 0; | |
2062 | } | |
2063 | _ACEOF | |
2064 | if ac_fn_c_try_compile "$LINENO"; then : | |
2065 | ac_hi=$ac_mid | |
2066 | else | |
2067 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2068 | fi | |
2069 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2070 | done | |
2071 | case $ac_lo in #(( | |
2072 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2073 | '') ac_retval=1 ;; | |
2074 | esac | |
2075 | else | |
2076 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2077 | /* end confdefs.h. */ | |
2078 | $4 | |
2079 | static long int longval () { return $2; } | |
2080 | static unsigned long int ulongval () { return $2; } | |
2081 | #include <stdio.h> | |
2082 | #include <stdlib.h> | |
2083 | int | |
2084 | main () | |
2085 | { | |
2086 | ||
2087 | FILE *f = fopen ("conftest.val", "w"); | |
2088 | if (! f) | |
2089 | return 1; | |
2090 | if (($2) < 0) | |
2091 | { | |
2092 | long int i = longval (); | |
2093 | if (i != ($2)) | |
2094 | return 1; | |
2095 | fprintf (f, "%ld", i); | |
2096 | } | |
2097 | else | |
2098 | { | |
2099 | unsigned long int i = ulongval (); | |
2100 | if (i != ($2)) | |
2101 | return 1; | |
2102 | fprintf (f, "%lu", i); | |
2103 | } | |
2104 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2105 | on some platforms. */ | |
2106 | return ferror (f) || fclose (f) != 0; | |
2107 | ||
2108 | ; | |
2109 | return 0; | |
2110 | } | |
2111 | _ACEOF | |
2112 | if ac_fn_c_try_run "$LINENO"; then : | |
2113 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2114 | else | |
2115 | ac_retval=1 | |
2116 | fi | |
2117 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2118 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2119 | rm -f conftest.val | |
2120 | ||
2121 | fi | |
22e05272 JM |
2122 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2123 | as_fn_set_status $ac_retval | |
76850556 RO |
2124 | |
2125 | } # ac_fn_c_compute_int | |
2126 | ||
22e05272 JM |
2127 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
2128 | # --------------------------------------------- | |
2129 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
2130 | # accordingly. | |
772a71a9 ILT |
2131 | ac_fn_c_check_decl () |
2132 | { | |
2133 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2134 | as_decl_name=`echo $2|sed 's/ *(.*//'` | |
2135 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2137 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
22e05272 | 2138 | if eval \${$3+:} false; then : |
772a71a9 ILT |
2139 | $as_echo_n "(cached) " >&6 |
2140 | else | |
2141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2142 | /* end confdefs.h. */ | |
2143 | $4 | |
2144 | int | |
2145 | main () | |
2146 | { | |
2147 | #ifndef $as_decl_name | |
2148 | #ifdef __cplusplus | |
2149 | (void) $as_decl_use; | |
2150 | #else | |
2151 | (void) $as_decl_name; | |
2152 | #endif | |
2153 | #endif | |
2154 | ||
2155 | ; | |
2156 | return 0; | |
2157 | } | |
2158 | _ACEOF | |
2159 | if ac_fn_c_try_compile "$LINENO"; then : | |
2160 | eval "$3=yes" | |
2161 | else | |
2162 | eval "$3=no" | |
2163 | fi | |
2164 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2165 | fi | |
2166 | eval ac_res=\$$3 | |
2167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2168 | $as_echo "$ac_res" >&6; } | |
22e05272 | 2169 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
772a71a9 ILT |
2170 | |
2171 | } # ac_fn_c_check_decl | |
eff02e4f ILT |
2172 | cat >config.log <<_ACEOF |
2173 | This file contains any messages produced by compilers while | |
2174 | running configure, to aid debugging if configure makes a mistake. | |
2175 | ||
2176 | It was created by package-unused $as_me version-unused, which was | |
22e05272 | 2177 | generated by GNU Autoconf 2.69. Invocation command line was |
eff02e4f ILT |
2178 | |
2179 | $ $0 $@ | |
2180 | ||
2181 | _ACEOF | |
2182 | exec 5>>config.log | |
2183 | { | |
2184 | cat <<_ASUNAME | |
2185 | ## --------- ## | |
2186 | ## Platform. ## | |
2187 | ## --------- ## | |
2188 | ||
2189 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2190 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2191 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2192 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2193 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2194 | ||
2195 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2196 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2197 | ||
2198 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2199 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2200 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2201 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2202 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2203 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2204 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2205 | ||
2206 | _ASUNAME | |
2207 | ||
2208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2209 | for as_dir in $PATH | |
2210 | do | |
2211 | IFS=$as_save_IFS | |
2212 | test -z "$as_dir" && as_dir=. | |
2213 | $as_echo "PATH: $as_dir" | |
2214 | done | |
2215 | IFS=$as_save_IFS | |
2216 | ||
2217 | } >&5 | |
2218 | ||
2219 | cat >&5 <<_ACEOF | |
2220 | ||
2221 | ||
2222 | ## ----------- ## | |
2223 | ## Core tests. ## | |
2224 | ## ----------- ## | |
2225 | ||
2226 | _ACEOF | |
2227 | ||
2228 | ||
2229 | # Keep a trace of the command line. | |
2230 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2231 | # Strip out --silent because we don't want to record it for future runs. | |
2232 | # Also quote any args containing shell meta-characters. | |
2233 | # Make two passes to allow for proper duplicate-argument suppression. | |
2234 | ac_configure_args= | |
2235 | ac_configure_args0= | |
2236 | ac_configure_args1= | |
2237 | ac_must_keep_next=false | |
2238 | for ac_pass in 1 2 | |
2239 | do | |
2240 | for ac_arg | |
2241 | do | |
2242 | case $ac_arg in | |
2243 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2244 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2245 | | -silent | --silent | --silen | --sile | --sil) | |
2246 | continue ;; | |
2247 | *\'*) | |
2248 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2249 | esac | |
2250 | case $ac_pass in | |
2251 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2252 | 2) | |
2253 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2254 | if test $ac_must_keep_next = true; then | |
2255 | ac_must_keep_next=false # Got value, back to normal. | |
2256 | else | |
2257 | case $ac_arg in | |
2258 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2259 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2260 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2261 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2262 | case "$ac_configure_args0 " in | |
2263 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2264 | esac | |
2265 | ;; | |
2266 | -* ) ac_must_keep_next=true ;; | |
2267 | esac | |
2268 | fi | |
2269 | as_fn_append ac_configure_args " '$ac_arg'" | |
2270 | ;; | |
2271 | esac | |
2272 | done | |
2273 | done | |
2274 | { ac_configure_args0=; unset ac_configure_args0;} | |
2275 | { ac_configure_args1=; unset ac_configure_args1;} | |
2276 | ||
2277 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2278 | # config.log. We remove comments because anyway the quotes in there | |
2279 | # would cause problems or look ugly. | |
2280 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2281 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2282 | trap 'exit_status=$? | |
2283 | # Save into config.log some information that might help in debugging. | |
2284 | { | |
2285 | echo | |
2286 | ||
22e05272 | 2287 | $as_echo "## ---------------- ## |
eff02e4f | 2288 | ## Cache variables. ## |
22e05272 | 2289 | ## ---------------- ##" |
eff02e4f ILT |
2290 | echo |
2291 | # The following way of writing the cache mishandles newlines in values, | |
2292 | ( | |
2293 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2294 | eval ac_val=\$$ac_var | |
2295 | case $ac_val in #( | |
2296 | *${as_nl}*) | |
2297 | case $ac_var in #( | |
2298 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2299 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2300 | esac | |
2301 | case $ac_var in #( | |
2302 | _ | IFS | as_nl) ;; #( | |
2303 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2304 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2305 | esac ;; | |
2306 | esac | |
2307 | done | |
2308 | (set) 2>&1 | | |
2309 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2310 | *${as_nl}ac_space=\ *) | |
2311 | sed -n \ | |
2312 | "s/'\''/'\''\\\\'\'''\''/g; | |
2313 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2314 | ;; #( | |
2315 | *) | |
2316 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2317 | ;; | |
2318 | esac | | |
2319 | sort | |
2320 | ) | |
2321 | echo | |
2322 | ||
22e05272 | 2323 | $as_echo "## ----------------- ## |
eff02e4f | 2324 | ## Output variables. ## |
22e05272 | 2325 | ## ----------------- ##" |
eff02e4f ILT |
2326 | echo |
2327 | for ac_var in $ac_subst_vars | |
2328 | do | |
2329 | eval ac_val=\$$ac_var | |
2330 | case $ac_val in | |
2331 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2332 | esac | |
2333 | $as_echo "$ac_var='\''$ac_val'\''" | |
2334 | done | sort | |
2335 | echo | |
2336 | ||
2337 | if test -n "$ac_subst_files"; then | |
22e05272 | 2338 | $as_echo "## ------------------- ## |
eff02e4f | 2339 | ## File substitutions. ## |
22e05272 | 2340 | ## ------------------- ##" |
eff02e4f ILT |
2341 | echo |
2342 | for ac_var in $ac_subst_files | |
2343 | do | |
2344 | eval ac_val=\$$ac_var | |
2345 | case $ac_val in | |
2346 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2347 | esac | |
2348 | $as_echo "$ac_var='\''$ac_val'\''" | |
2349 | done | sort | |
2350 | echo | |
2351 | fi | |
2352 | ||
2353 | if test -s confdefs.h; then | |
22e05272 | 2354 | $as_echo "## ----------- ## |
eff02e4f | 2355 | ## confdefs.h. ## |
22e05272 | 2356 | ## ----------- ##" |
eff02e4f ILT |
2357 | echo |
2358 | cat confdefs.h | |
2359 | echo | |
2360 | fi | |
2361 | test "$ac_signal" != 0 && | |
2362 | $as_echo "$as_me: caught signal $ac_signal" | |
2363 | $as_echo "$as_me: exit $exit_status" | |
2364 | } >&5 | |
2365 | rm -f core *.core core.conftest.* && | |
2366 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2367 | exit $exit_status | |
2368 | ' 0 | |
2369 | for ac_signal in 1 2 13 15; do | |
2370 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2371 | done | |
2372 | ac_signal=0 | |
2373 | ||
2374 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2375 | rm -f -r conftest* confdefs.h | |
2376 | ||
2377 | $as_echo "/* confdefs.h */" > confdefs.h | |
2378 | ||
2379 | # Predefined preprocessor variables. | |
2380 | ||
2381 | cat >>confdefs.h <<_ACEOF | |
2382 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2383 | _ACEOF | |
2384 | ||
2385 | cat >>confdefs.h <<_ACEOF | |
2386 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2387 | _ACEOF | |
2388 | ||
2389 | cat >>confdefs.h <<_ACEOF | |
2390 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2391 | _ACEOF | |
2392 | ||
2393 | cat >>confdefs.h <<_ACEOF | |
2394 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2395 | _ACEOF | |
2396 | ||
2397 | cat >>confdefs.h <<_ACEOF | |
2398 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2399 | _ACEOF | |
2400 | ||
2401 | cat >>confdefs.h <<_ACEOF | |
2402 | #define PACKAGE_URL "$PACKAGE_URL" | |
2403 | _ACEOF | |
2404 | ||
2405 | ||
2406 | # Let the site file select an alternate cache file if it wants to. | |
2407 | # Prefer an explicitly selected file to automatically selected ones. | |
2408 | ac_site_file1=NONE | |
2409 | ac_site_file2=NONE | |
2410 | if test -n "$CONFIG_SITE"; then | |
22e05272 JM |
2411 | # We do not want a PATH search for config.site. |
2412 | case $CONFIG_SITE in #(( | |
2413 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2414 | */*) ac_site_file1=$CONFIG_SITE;; | |
2415 | *) ac_site_file1=./$CONFIG_SITE;; | |
2416 | esac | |
eff02e4f ILT |
2417 | elif test "x$prefix" != xNONE; then |
2418 | ac_site_file1=$prefix/share/config.site | |
2419 | ac_site_file2=$prefix/etc/config.site | |
2420 | else | |
2421 | ac_site_file1=$ac_default_prefix/share/config.site | |
2422 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2423 | fi | |
2424 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2425 | do | |
2426 | test "x$ac_site_file" = xNONE && continue | |
22e05272 | 2427 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
eff02e4f ILT |
2428 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2429 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2430 | sed 's/^/| /' "$ac_site_file" >&5 | |
22e05272 JM |
2431 | . "$ac_site_file" \ |
2432 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2433 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2434 | as_fn_error $? "failed to load site script $ac_site_file | |
2435 | See \`config.log' for more details" "$LINENO" 5; } | |
eff02e4f ILT |
2436 | fi |
2437 | done | |
2438 | ||
2439 | if test -r "$cache_file"; then | |
22e05272 JM |
2440 | # Some versions of bash will fail to source /dev/null (special files |
2441 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2442 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
eff02e4f ILT |
2443 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2444 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2445 | case $cache_file in | |
2446 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2447 | *) . "./$cache_file";; | |
2448 | esac | |
2449 | fi | |
2450 | else | |
2451 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2452 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2453 | >$cache_file | |
2454 | fi | |
2455 | ||
2456 | # Check that the precious variables saved in the cache have kept the same | |
2457 | # value. | |
2458 | ac_cache_corrupted=false | |
2459 | for ac_var in $ac_precious_vars; do | |
2460 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2461 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2462 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2463 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2464 | case $ac_old_set,$ac_new_set in | |
2465 | set,) | |
2466 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2467 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2468 | ac_cache_corrupted=: ;; | |
2469 | ,set) | |
2470 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2471 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2472 | ac_cache_corrupted=: ;; | |
2473 | ,);; | |
2474 | *) | |
2475 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2476 | # differences in whitespace do not lead to failure. | |
2477 | ac_old_val_w=`echo x $ac_old_val` | |
2478 | ac_new_val_w=`echo x $ac_new_val` | |
2479 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2480 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2481 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2482 | ac_cache_corrupted=: | |
2483 | else | |
2484 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2485 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2486 | eval $ac_var=\$ac_old_val | |
2487 | fi | |
2488 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2489 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2490 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2491 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2492 | fi;; | |
2493 | esac | |
2494 | # Pass precious variables to config.status. | |
2495 | if test "$ac_new_set" = set; then | |
2496 | case $ac_new_val in | |
2497 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2498 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2499 | esac | |
2500 | case " $ac_configure_args " in | |
2501 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2502 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2503 | esac | |
2504 | fi | |
2505 | done | |
2506 | if $ac_cache_corrupted; then | |
2507 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2508 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2509 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2510 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
22e05272 | 2511 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
eff02e4f ILT |
2512 | fi |
2513 | ## -------------------- ## | |
2514 | ## Main body of script. ## | |
2515 | ## -------------------- ## | |
2516 | ||
2517 | ac_ext=c | |
2518 | ac_cpp='$CPP $CPPFLAGS' | |
2519 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2520 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2521 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2522 | ||
2523 | ||
2524 | ||
2525 | ||
2526 | ||
2527 | ||
2528 | ac_config_headers="$ac_config_headers config.h" | |
2529 | ||
2530 | ||
405a6b1c MK |
2531 | if test -n "${with_target_subdir}"; then |
2532 | # Default to --enable-multilib | |
2533 | # Check whether --enable-multilib was given. | |
2534 | if test "${enable_multilib+set}" = set; then : | |
2535 | enableval=$enable_multilib; case "$enableval" in | |
2536 | yes) multilib=yes ;; | |
2537 | no) multilib=no ;; | |
22e05272 | 2538 | *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;; |
405a6b1c MK |
2539 | esac |
2540 | else | |
2541 | multilib=yes | |
2542 | fi | |
2543 | ||
2544 | ||
2545 | # We may get other options which we leave undocumented: | |
2546 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
2547 | # See config-ml.in if you want the gory details. | |
2548 | ||
2549 | if test "$srcdir" = "."; then | |
2550 | if test "$with_target_subdir" != "."; then | |
2551 | multi_basedir="$srcdir/$with_multisrctop../.." | |
2552 | else | |
2553 | multi_basedir="$srcdir/$with_multisrctop.." | |
2554 | fi | |
2555 | else | |
2556 | multi_basedir="$srcdir/.." | |
2557 | fi | |
2558 | ||
2559 | ||
2560 | # Even if the default multilib is not a cross compilation, | |
2561 | # it may be that some of the other multilibs are. | |
2562 | if test $cross_compiling = no && test $multilib = yes \ | |
2563 | && test "x${with_multisubdir}" != x ; then | |
2564 | cross_compiling=maybe | |
2565 | fi | |
2566 | ||
2567 | ac_config_commands="$ac_config_commands default-1" | |
2568 | ||
2569 | fi | |
2570 | ||
eff02e4f ILT |
2571 | ac_aux_dir= |
2572 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
22e05272 JM |
2573 | if test -f "$ac_dir/install-sh"; then |
2574 | ac_aux_dir=$ac_dir | |
2575 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2576 | break | |
2577 | elif test -f "$ac_dir/install.sh"; then | |
2578 | ac_aux_dir=$ac_dir | |
2579 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2580 | break | |
2581 | elif test -f "$ac_dir/shtool"; then | |
2582 | ac_aux_dir=$ac_dir | |
2583 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2584 | break | |
2585 | fi | |
eff02e4f ILT |
2586 | done |
2587 | if test -z "$ac_aux_dir"; then | |
22e05272 | 2588 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
eff02e4f ILT |
2589 | fi |
2590 | ||
2591 | # These three variables are undocumented and unsupported, | |
2592 | # and are intended to be withdrawn in a future Autoconf release. | |
2593 | # They can cause serious problems if a builder's source tree is in a directory | |
2594 | # whose full name contains unusual characters. | |
2595 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2596 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2597 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2598 | ||
2599 | ||
2600 | # Make sure we can run config.sub. | |
2601 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
22e05272 | 2602 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
eff02e4f ILT |
2603 | |
2604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2605 | $as_echo_n "checking build system type... " >&6; } | |
22e05272 | 2606 | if ${ac_cv_build+:} false; then : |
eff02e4f ILT |
2607 | $as_echo_n "(cached) " >&6 |
2608 | else | |
2609 | ac_build_alias=$build_alias | |
2610 | test "x$ac_build_alias" = x && | |
2611 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2612 | test "x$ac_build_alias" = x && | |
22e05272 | 2613 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
eff02e4f | 2614 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
22e05272 | 2615 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
eff02e4f ILT |
2616 | |
2617 | fi | |
2618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2619 | $as_echo "$ac_cv_build" >&6; } | |
2620 | case $ac_cv_build in | |
2621 | *-*-*) ;; | |
22e05272 | 2622 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
eff02e4f ILT |
2623 | esac |
2624 | build=$ac_cv_build | |
2625 | ac_save_IFS=$IFS; IFS='-' | |
2626 | set x $ac_cv_build | |
2627 | shift | |
2628 | build_cpu=$1 | |
2629 | build_vendor=$2 | |
2630 | shift; shift | |
2631 | # Remember, the first character of IFS is used to create $*, | |
2632 | # except with old shells: | |
2633 | build_os=$* | |
2634 | IFS=$ac_save_IFS | |
2635 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2636 | ||
2637 | ||
2638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2639 | $as_echo_n "checking host system type... " >&6; } | |
22e05272 | 2640 | if ${ac_cv_host+:} false; then : |
eff02e4f ILT |
2641 | $as_echo_n "(cached) " >&6 |
2642 | else | |
2643 | if test "x$host_alias" = x; then | |
2644 | ac_cv_host=$ac_cv_build | |
2645 | else | |
2646 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
22e05272 | 2647 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
eff02e4f ILT |
2648 | fi |
2649 | ||
2650 | fi | |
2651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2652 | $as_echo "$ac_cv_host" >&6; } | |
2653 | case $ac_cv_host in | |
2654 | *-*-*) ;; | |
22e05272 | 2655 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
eff02e4f ILT |
2656 | esac |
2657 | host=$ac_cv_host | |
2658 | ac_save_IFS=$IFS; IFS='-' | |
2659 | set x $ac_cv_host | |
2660 | shift | |
2661 | host_cpu=$1 | |
2662 | host_vendor=$2 | |
2663 | shift; shift | |
2664 | # Remember, the first character of IFS is used to create $*, | |
2665 | # except with old shells: | |
2666 | host_os=$* | |
2667 | IFS=$ac_save_IFS | |
2668 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2669 | ||
2670 | ||
2671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | |
2672 | $as_echo_n "checking target system type... " >&6; } | |
22e05272 | 2673 | if ${ac_cv_target+:} false; then : |
eff02e4f ILT |
2674 | $as_echo_n "(cached) " >&6 |
2675 | else | |
2676 | if test "x$target_alias" = x; then | |
2677 | ac_cv_target=$ac_cv_host | |
2678 | else | |
2679 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
22e05272 | 2680 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
eff02e4f ILT |
2681 | fi |
2682 | ||
2683 | fi | |
2684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
2685 | $as_echo "$ac_cv_target" >&6; } | |
2686 | case $ac_cv_target in | |
2687 | *-*-*) ;; | |
22e05272 | 2688 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
eff02e4f ILT |
2689 | esac |
2690 | target=$ac_cv_target | |
2691 | ac_save_IFS=$IFS; IFS='-' | |
2692 | set x $ac_cv_target | |
2693 | shift | |
2694 | target_cpu=$1 | |
2695 | target_vendor=$2 | |
2696 | shift; shift | |
2697 | # Remember, the first character of IFS is used to create $*, | |
2698 | # except with old shells: | |
2699 | target_os=$* | |
2700 | IFS=$ac_save_IFS | |
2701 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
2702 | ||
2703 | ||
2704 | # The aliases save the names the user supplied, while $host etc. | |
2705 | # will get canonicalized. | |
2706 | test -n "$target_alias" && | |
2707 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2708 | NONENONEs,x,x, && | |
2709 | program_prefix=${target_alias}- | |
2710 | ||
2711 | target_alias=${target_alias-$host_alias} | |
2712 | ||
22e05272 JM |
2713 | # Expand $ac_aux_dir to an absolute path. |
2714 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
2715 | ||
d4c059d5 ILT |
2716 | ac_ext=c |
2717 | ac_cpp='$CPP $CPPFLAGS' | |
2718 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2719 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2720 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2721 | if test -n "$ac_tool_prefix"; then | |
2722 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2723 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2725 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2726 | if ${ac_cv_prog_CC+:} false; then : |
d4c059d5 ILT |
2727 | $as_echo_n "(cached) " >&6 |
2728 | else | |
2729 | if test -n "$CC"; then | |
2730 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2731 | else | |
2732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2733 | for as_dir in $PATH | |
2734 | do | |
2735 | IFS=$as_save_IFS | |
2736 | test -z "$as_dir" && as_dir=. | |
2737 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2738 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d4c059d5 ILT |
2739 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2740 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2741 | break 2 | |
2742 | fi | |
2743 | done | |
2744 | done | |
2745 | IFS=$as_save_IFS | |
eff02e4f | 2746 | |
d4c059d5 ILT |
2747 | fi |
2748 | fi | |
2749 | CC=$ac_cv_prog_CC | |
2750 | if test -n "$CC"; then | |
2751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2752 | $as_echo "$CC" >&6; } | |
2753 | else | |
2754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2755 | $as_echo "no" >&6; } | |
2756 | fi | |
eff02e4f | 2757 | |
eff02e4f | 2758 | |
d4c059d5 ILT |
2759 | fi |
2760 | if test -z "$ac_cv_prog_CC"; then | |
2761 | ac_ct_CC=$CC | |
2762 | # Extract the first word of "gcc", so it can be a program name with args. | |
2763 | set dummy gcc; ac_word=$2 | |
2764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2765 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2766 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
eff02e4f ILT |
2767 | $as_echo_n "(cached) " >&6 |
2768 | else | |
d4c059d5 ILT |
2769 | if test -n "$ac_ct_CC"; then |
2770 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2771 | else | |
2772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
eff02e4f ILT |
2773 | for as_dir in $PATH |
2774 | do | |
2775 | IFS=$as_save_IFS | |
2776 | test -z "$as_dir" && as_dir=. | |
d4c059d5 | 2777 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 2778 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d4c059d5 ILT |
2779 | ac_cv_prog_ac_ct_CC="gcc" |
2780 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2781 | break 2 | |
2782 | fi | |
2783 | done | |
eff02e4f ILT |
2784 | done |
2785 | IFS=$as_save_IFS | |
2786 | ||
eff02e4f | 2787 | fi |
d4c059d5 ILT |
2788 | fi |
2789 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2790 | if test -n "$ac_ct_CC"; then | |
2791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2792 | $as_echo "$ac_ct_CC" >&6; } | |
2793 | else | |
2794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2795 | $as_echo "no" >&6; } | |
2796 | fi | |
2797 | ||
2798 | if test "x$ac_ct_CC" = x; then | |
2799 | CC="" | |
eff02e4f | 2800 | else |
d4c059d5 ILT |
2801 | case $cross_compiling:$ac_tool_warned in |
2802 | yes:) | |
2803 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2804 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2805 | ac_tool_warned=yes ;; | |
2806 | esac | |
2807 | CC=$ac_ct_CC | |
eff02e4f | 2808 | fi |
d4c059d5 ILT |
2809 | else |
2810 | CC="$ac_cv_prog_CC" | |
eff02e4f | 2811 | fi |
eff02e4f | 2812 | |
d4c059d5 ILT |
2813 | if test -z "$CC"; then |
2814 | if test -n "$ac_tool_prefix"; then | |
2815 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2816 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
eff02e4f ILT |
2817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2818 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2819 | if ${ac_cv_prog_CC+:} false; then : |
eff02e4f ILT |
2820 | $as_echo_n "(cached) " >&6 |
2821 | else | |
d4c059d5 ILT |
2822 | if test -n "$CC"; then |
2823 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
eff02e4f ILT |
2824 | else |
2825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2826 | for as_dir in $PATH | |
2827 | do | |
2828 | IFS=$as_save_IFS | |
2829 | test -z "$as_dir" && as_dir=. | |
2830 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2831 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d4c059d5 | 2832 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
eff02e4f ILT |
2833 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2834 | break 2 | |
2835 | fi | |
2836 | done | |
2837 | done | |
2838 | IFS=$as_save_IFS | |
2839 | ||
2840 | fi | |
2841 | fi | |
d4c059d5 ILT |
2842 | CC=$ac_cv_prog_CC |
2843 | if test -n "$CC"; then | |
2844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2845 | $as_echo "$CC" >&6; } | |
eff02e4f ILT |
2846 | else |
2847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2848 | $as_echo "no" >&6; } | |
2849 | fi | |
2850 | ||
2851 | ||
d4c059d5 | 2852 | fi |
eff02e4f | 2853 | fi |
d4c059d5 ILT |
2854 | if test -z "$CC"; then |
2855 | # Extract the first word of "cc", so it can be a program name with args. | |
2856 | set dummy cc; ac_word=$2 | |
eff02e4f ILT |
2857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2858 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2859 | if ${ac_cv_prog_CC+:} false; then : |
eff02e4f ILT |
2860 | $as_echo_n "(cached) " >&6 |
2861 | else | |
d4c059d5 ILT |
2862 | if test -n "$CC"; then |
2863 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
eff02e4f | 2864 | else |
d4c059d5 | 2865 | ac_prog_rejected=no |
eff02e4f ILT |
2866 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2867 | for as_dir in $PATH | |
2868 | do | |
2869 | IFS=$as_save_IFS | |
2870 | test -z "$as_dir" && as_dir=. | |
2871 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2872 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d4c059d5 ILT |
2873 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2874 | ac_prog_rejected=yes | |
2875 | continue | |
2876 | fi | |
2877 | ac_cv_prog_CC="cc" | |
eff02e4f ILT |
2878 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2879 | break 2 | |
2880 | fi | |
2881 | done | |
2882 | done | |
2883 | IFS=$as_save_IFS | |
2884 | ||
d4c059d5 ILT |
2885 | if test $ac_prog_rejected = yes; then |
2886 | # We found a bogon in the path, so make sure we never use it. | |
2887 | set dummy $ac_cv_prog_CC | |
2888 | shift | |
2889 | if test $# != 0; then | |
2890 | # We chose a different compiler from the bogus one. | |
2891 | # However, it has the same basename, so the bogon will be chosen | |
2892 | # first if we set CC to just the basename; use the full file name. | |
2893 | shift | |
2894 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2895 | fi | |
eff02e4f ILT |
2896 | fi |
2897 | fi | |
d4c059d5 ILT |
2898 | fi |
2899 | CC=$ac_cv_prog_CC | |
2900 | if test -n "$CC"; then | |
2901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2902 | $as_echo "$CC" >&6; } | |
eff02e4f ILT |
2903 | else |
2904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2905 | $as_echo "no" >&6; } | |
2906 | fi | |
2907 | ||
eff02e4f ILT |
2908 | |
2909 | fi | |
d4c059d5 ILT |
2910 | if test -z "$CC"; then |
2911 | if test -n "$ac_tool_prefix"; then | |
2912 | for ac_prog in cl.exe | |
2913 | do | |
2914 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2915 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2917 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2918 | if ${ac_cv_prog_CC+:} false; then : |
eff02e4f ILT |
2919 | $as_echo_n "(cached) " >&6 |
2920 | else | |
d4c059d5 ILT |
2921 | if test -n "$CC"; then |
2922 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2923 | else | |
2924 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2925 | for as_dir in $PATH | |
eff02e4f ILT |
2926 | do |
2927 | IFS=$as_save_IFS | |
2928 | test -z "$as_dir" && as_dir=. | |
d4c059d5 | 2929 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 2930 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d4c059d5 ILT |
2931 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2932 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2933 | break 2 | |
2934 | fi | |
2935 | done | |
eff02e4f ILT |
2936 | done |
2937 | IFS=$as_save_IFS | |
2938 | ||
2939 | fi | |
eff02e4f | 2940 | fi |
d4c059d5 ILT |
2941 | CC=$ac_cv_prog_CC |
2942 | if test -n "$CC"; then | |
2943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2944 | $as_echo "$CC" >&6; } | |
2945 | else | |
2946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2947 | $as_echo "no" >&6; } | |
2948 | fi | |
eff02e4f | 2949 | |
eff02e4f | 2950 | |
d4c059d5 ILT |
2951 | test -n "$CC" && break |
2952 | done | |
2953 | fi | |
2954 | if test -z "$CC"; then | |
2955 | ac_ct_CC=$CC | |
2956 | for ac_prog in cl.exe | |
eff02e4f ILT |
2957 | do |
2958 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2959 | set dummy $ac_prog; ac_word=$2 | |
2960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2961 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2962 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
eff02e4f ILT |
2963 | $as_echo_n "(cached) " >&6 |
2964 | else | |
d4c059d5 ILT |
2965 | if test -n "$ac_ct_CC"; then |
2966 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
eff02e4f ILT |
2967 | else |
2968 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2969 | for as_dir in $PATH | |
2970 | do | |
2971 | IFS=$as_save_IFS | |
2972 | test -z "$as_dir" && as_dir=. | |
2973 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2974 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d4c059d5 | 2975 | ac_cv_prog_ac_ct_CC="$ac_prog" |
eff02e4f ILT |
2976 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2977 | break 2 | |
2978 | fi | |
2979 | done | |
2980 | done | |
2981 | IFS=$as_save_IFS | |
2982 | ||
2983 | fi | |
2984 | fi | |
d4c059d5 ILT |
2985 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2986 | if test -n "$ac_ct_CC"; then | |
2987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2988 | $as_echo "$ac_ct_CC" >&6; } | |
eff02e4f ILT |
2989 | else |
2990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2991 | $as_echo "no" >&6; } | |
2992 | fi | |
2993 | ||
2994 | ||
d4c059d5 | 2995 | test -n "$ac_ct_CC" && break |
eff02e4f ILT |
2996 | done |
2997 | ||
d4c059d5 ILT |
2998 | if test "x$ac_ct_CC" = x; then |
2999 | CC="" | |
3000 | else | |
3001 | case $cross_compiling:$ac_tool_warned in | |
3002 | yes:) | |
3003 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3004 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3005 | ac_tool_warned=yes ;; | |
eff02e4f | 3006 | esac |
d4c059d5 | 3007 | CC=$ac_ct_CC |
eff02e4f ILT |
3008 | fi |
3009 | fi | |
3010 | ||
eff02e4f ILT |
3011 | fi |
3012 | ||
3013 | ||
d4c059d5 ILT |
3014 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3015 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3016 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3017 | See \`config.log' for more details" "$LINENO" 5; } | |
eff02e4f | 3018 | |
d4c059d5 ILT |
3019 | # Provide some information about the compiler. |
3020 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3021 | set X $ac_compile | |
3022 | ac_compiler=$2 | |
3023 | for ac_option in --version -v -V -qversion; do | |
3024 | { { ac_try="$ac_compiler $ac_option >&5" | |
3025 | case "(($ac_try" in | |
3026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3027 | *) ac_try_echo=$ac_try;; | |
3028 | esac | |
3029 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3030 | $as_echo "$ac_try_echo"; } >&5 | |
3031 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3032 | ac_status=$? | |
3033 | if test -s conftest.err; then | |
3034 | sed '10a\ | |
3035 | ... rest of stderr output deleted ... | |
3036 | 10q' conftest.err >conftest.er1 | |
3037 | cat conftest.er1 >&5 | |
d4c059d5 | 3038 | fi |
22e05272 | 3039 | rm -f conftest.er1 conftest.err |
d4c059d5 ILT |
3040 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3041 | test $ac_status = 0; } | |
3042 | done | |
eff02e4f | 3043 | |
d4c059d5 ILT |
3044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3045 | /* end confdefs.h. */ | |
eff02e4f | 3046 | |
d4c059d5 ILT |
3047 | int |
3048 | main () | |
3049 | { | |
eff02e4f | 3050 | |
d4c059d5 ILT |
3051 | ; |
3052 | return 0; | |
3053 | } | |
3054 | _ACEOF | |
3055 | ac_clean_files_save=$ac_clean_files | |
22e05272 | 3056 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
d4c059d5 ILT |
3057 | # Try to create an executable without -o first, disregard a.out. |
3058 | # It will help us diagnose broken compilers, and finding out an intuition | |
3059 | # of exeext. | |
22e05272 JM |
3060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3061 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
d4c059d5 | 3062 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
eff02e4f | 3063 | |
d4c059d5 ILT |
3064 | # The possible output files: |
3065 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
eff02e4f | 3066 | |
d4c059d5 ILT |
3067 | ac_rmfiles= |
3068 | for ac_file in $ac_files | |
3069 | do | |
3070 | case $ac_file in | |
3071 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3072 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3073 | esac | |
3074 | done | |
3075 | rm -f $ac_rmfiles | |
eff02e4f | 3076 | |
d4c059d5 ILT |
3077 | if { { ac_try="$ac_link_default" |
3078 | case "(($ac_try" in | |
3079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3080 | *) ac_try_echo=$ac_try;; | |
3081 | esac | |
3082 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3083 | $as_echo "$ac_try_echo"; } >&5 | |
3084 | (eval "$ac_link_default") 2>&5 | |
3085 | ac_status=$? | |
3086 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3087 | test $ac_status = 0; }; then : | |
3088 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3089 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3090 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3091 | # so that the user can short-circuit this test for compilers unknown to | |
3092 | # Autoconf. | |
3093 | for ac_file in $ac_files '' | |
3094 | do | |
3095 | test -f "$ac_file" || continue | |
3096 | case $ac_file in | |
3097 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3098 | ;; | |
3099 | [ab].out ) | |
3100 | # We found the default executable, but exeext='' is most | |
3101 | # certainly right. | |
3102 | break;; | |
3103 | *.* ) | |
3104 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3105 | then :; else | |
3106 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3107 | fi | |
3108 | # We set ac_cv_exeext here because the later test for it is not | |
3109 | # safe: cross compilers may not add the suffix if given an `-o' | |
3110 | # argument, so we may need to know it at that point already. | |
3111 | # Even if this section looks crufty: it has the advantage of | |
3112 | # actually working. | |
3113 | break;; | |
3114 | * ) | |
3115 | break;; | |
3116 | esac | |
3117 | done | |
3118 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
eff02e4f | 3119 | |
eff02e4f | 3120 | else |
d4c059d5 | 3121 | ac_file='' |
eff02e4f | 3122 | fi |
d4c059d5 | 3123 | if test -z "$ac_file"; then : |
22e05272 JM |
3124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3125 | $as_echo "no" >&6; } | |
3126 | $as_echo "$as_me: failed program was:" >&5 | |
d4c059d5 | 3127 | sed 's/^/| /' conftest.$ac_ext >&5 |
eff02e4f | 3128 | |
d4c059d5 ILT |
3129 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3130 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3131 | as_fn_error 77 "C compiler cannot create executables |
3132 | See \`config.log' for more details" "$LINENO" 5; } | |
3133 | else | |
3134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3135 | $as_echo "yes" >&6; } | |
eff02e4f | 3136 | fi |
22e05272 JM |
3137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3138 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3140 | $as_echo "$ac_file" >&6; } | |
d4c059d5 | 3141 | ac_exeext=$ac_cv_exeext |
eff02e4f | 3142 | |
22e05272 | 3143 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
d4c059d5 | 3144 | ac_clean_files=$ac_clean_files_save |
d4c059d5 ILT |
3145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3146 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3147 | if { { ac_try="$ac_link" | |
3148 | case "(($ac_try" in | |
3149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3150 | *) ac_try_echo=$ac_try;; | |
3151 | esac | |
3152 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3153 | $as_echo "$ac_try_echo"; } >&5 | |
3154 | (eval "$ac_link") 2>&5 | |
3155 | ac_status=$? | |
3156 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3157 | test $ac_status = 0; }; then : | |
3158 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3159 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3160 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3161 | # `rm'. | |
3162 | for ac_file in conftest.exe conftest conftest.*; do | |
3163 | test -f "$ac_file" || continue | |
3164 | case $ac_file in | |
3165 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3166 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3167 | break;; | |
3168 | * ) break;; | |
3169 | esac | |
3170 | done | |
eff02e4f | 3171 | else |
d4c059d5 ILT |
3172 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3173 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3174 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3175 | See \`config.log' for more details" "$LINENO" 5; } | |
eff02e4f | 3176 | fi |
22e05272 | 3177 | rm -f conftest conftest$ac_cv_exeext |
d4c059d5 ILT |
3178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3179 | $as_echo "$ac_cv_exeext" >&6; } | |
eff02e4f | 3180 | |
d4c059d5 ILT |
3181 | rm -f conftest.$ac_ext |
3182 | EXEEXT=$ac_cv_exeext | |
3183 | ac_exeext=$EXEEXT | |
22e05272 JM |
3184 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3185 | /* end confdefs.h. */ | |
3186 | #include <stdio.h> | |
3187 | int | |
3188 | main () | |
3189 | { | |
3190 | FILE *f = fopen ("conftest.out", "w"); | |
3191 | return ferror (f) || fclose (f) != 0; | |
3192 | ||
3193 | ; | |
3194 | return 0; | |
3195 | } | |
3196 | _ACEOF | |
3197 | ac_clean_files="$ac_clean_files conftest.out" | |
3198 | # Check that the compiler produces executables we can run. If not, either | |
3199 | # the compiler is broken, or we cross compile. | |
3200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3201 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3202 | if test "$cross_compiling" != yes; then | |
3203 | { { ac_try="$ac_link" | |
3204 | case "(($ac_try" in | |
3205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3206 | *) ac_try_echo=$ac_try;; | |
3207 | esac | |
3208 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3209 | $as_echo "$ac_try_echo"; } >&5 | |
3210 | (eval "$ac_link") 2>&5 | |
3211 | ac_status=$? | |
3212 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3213 | test $ac_status = 0; } | |
3214 | if { ac_try='./conftest$ac_cv_exeext' | |
3215 | { { case "(($ac_try" in | |
3216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3217 | *) ac_try_echo=$ac_try;; | |
3218 | esac | |
3219 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3220 | $as_echo "$ac_try_echo"; } >&5 | |
3221 | (eval "$ac_try") 2>&5 | |
3222 | ac_status=$? | |
3223 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3224 | test $ac_status = 0; }; }; then | |
3225 | cross_compiling=no | |
3226 | else | |
3227 | if test "$cross_compiling" = maybe; then | |
3228 | cross_compiling=yes | |
3229 | else | |
3230 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3231 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3232 | as_fn_error $? "cannot run C compiled programs. | |
3233 | If you meant to cross compile, use \`--host'. | |
3234 | See \`config.log' for more details" "$LINENO" 5; } | |
3235 | fi | |
3236 | fi | |
3237 | fi | |
3238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3239 | $as_echo "$cross_compiling" >&6; } | |
3240 | ||
3241 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3242 | ac_clean_files=$ac_clean_files_save | |
d4c059d5 ILT |
3243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3244 | $as_echo_n "checking for suffix of object files... " >&6; } | |
22e05272 | 3245 | if ${ac_cv_objext+:} false; then : |
eff02e4f ILT |
3246 | $as_echo_n "(cached) " >&6 |
3247 | else | |
d4c059d5 ILT |
3248 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3249 | /* end confdefs.h. */ | |
eff02e4f | 3250 | |
d4c059d5 ILT |
3251 | int |
3252 | main () | |
3253 | { | |
eff02e4f | 3254 | |
d4c059d5 ILT |
3255 | ; |
3256 | return 0; | |
3257 | } | |
3258 | _ACEOF | |
3259 | rm -f conftest.o conftest.obj | |
3260 | if { { ac_try="$ac_compile" | |
3261 | case "(($ac_try" in | |
3262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3263 | *) ac_try_echo=$ac_try;; | |
eff02e4f | 3264 | esac |
d4c059d5 ILT |
3265 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3266 | $as_echo "$ac_try_echo"; } >&5 | |
3267 | (eval "$ac_compile") 2>&5 | |
3268 | ac_status=$? | |
3269 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3270 | test $ac_status = 0; }; then : | |
3271 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3272 | test -f "$ac_file" || continue; | |
3273 | case $ac_file in | |
3274 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3275 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3276 | break;; | |
3277 | esac | |
3278 | done | |
eff02e4f | 3279 | else |
d4c059d5 ILT |
3280 | $as_echo "$as_me: failed program was:" >&5 |
3281 | sed 's/^/| /' conftest.$ac_ext >&5 | |
eff02e4f | 3282 | |
d4c059d5 ILT |
3283 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3284 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3285 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3286 | See \`config.log' for more details" "$LINENO" 5; } | |
d4c059d5 ILT |
3287 | fi |
3288 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3289 | fi | |
3290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3291 | $as_echo "$ac_cv_objext" >&6; } | |
3292 | OBJEXT=$ac_cv_objext | |
3293 | ac_objext=$OBJEXT | |
3294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3295 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
22e05272 | 3296 | if ${ac_cv_c_compiler_gnu+:} false; then : |
eff02e4f ILT |
3297 | $as_echo_n "(cached) " >&6 |
3298 | else | |
d4c059d5 ILT |
3299 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3300 | /* end confdefs.h. */ | |
eff02e4f | 3301 | |
d4c059d5 ILT |
3302 | int |
3303 | main () | |
3304 | { | |
3305 | #ifndef __GNUC__ | |
3306 | choke me | |
3307 | #endif | |
3308 | ||
3309 | ; | |
3310 | return 0; | |
3311 | } | |
3312 | _ACEOF | |
3313 | if ac_fn_c_try_compile "$LINENO"; then : | |
3314 | ac_compiler_gnu=yes | |
eff02e4f | 3315 | else |
d4c059d5 | 3316 | ac_compiler_gnu=no |
eff02e4f | 3317 | fi |
d4c059d5 ILT |
3318 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3319 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
eff02e4f | 3320 | |
eff02e4f | 3321 | fi |
d4c059d5 ILT |
3322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3323 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3324 | if test $ac_compiler_gnu = yes; then | |
3325 | GCC=yes | |
eff02e4f | 3326 | else |
d4c059d5 ILT |
3327 | GCC= |
3328 | fi | |
3329 | ac_test_CFLAGS=${CFLAGS+set} | |
3330 | ac_save_CFLAGS=$CFLAGS | |
3331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3332 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
22e05272 | 3333 | if ${ac_cv_prog_cc_g+:} false; then : |
d4c059d5 | 3334 | $as_echo_n "(cached) " >&6 |
eff02e4f | 3335 | else |
d4c059d5 ILT |
3336 | ac_save_c_werror_flag=$ac_c_werror_flag |
3337 | ac_c_werror_flag=yes | |
3338 | ac_cv_prog_cc_g=no | |
3339 | CFLAGS="-g" | |
3340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3341 | /* end confdefs.h. */ | |
eff02e4f | 3342 | |
d4c059d5 ILT |
3343 | int |
3344 | main () | |
3345 | { | |
3346 | ||
3347 | ; | |
3348 | return 0; | |
3349 | } | |
3350 | _ACEOF | |
3351 | if ac_fn_c_try_compile "$LINENO"; then : | |
3352 | ac_cv_prog_cc_g=yes | |
eff02e4f | 3353 | else |
d4c059d5 ILT |
3354 | CFLAGS="" |
3355 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3356 | /* end confdefs.h. */ | |
eff02e4f | 3357 | |
d4c059d5 ILT |
3358 | int |
3359 | main () | |
3360 | { | |
3361 | ||
3362 | ; | |
3363 | return 0; | |
3364 | } | |
3365 | _ACEOF | |
3366 | if ac_fn_c_try_compile "$LINENO"; then : | |
eff02e4f | 3367 | |
eff02e4f | 3368 | else |
d4c059d5 ILT |
3369 | ac_c_werror_flag=$ac_save_c_werror_flag |
3370 | CFLAGS="-g" | |
3371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3372 | /* end confdefs.h. */ | |
3373 | ||
3374 | int | |
3375 | main () | |
3376 | { | |
eff02e4f | 3377 | |
d4c059d5 ILT |
3378 | ; |
3379 | return 0; | |
3380 | } | |
3381 | _ACEOF | |
3382 | if ac_fn_c_try_compile "$LINENO"; then : | |
3383 | ac_cv_prog_cc_g=yes | |
eff02e4f | 3384 | fi |
d4c059d5 | 3385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
eff02e4f | 3386 | fi |
d4c059d5 | 3387 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
eff02e4f | 3388 | fi |
d4c059d5 ILT |
3389 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3390 | ac_c_werror_flag=$ac_save_c_werror_flag | |
eff02e4f | 3391 | fi |
d4c059d5 ILT |
3392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3393 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3394 | if test "$ac_test_CFLAGS" = set; then | |
3395 | CFLAGS=$ac_save_CFLAGS | |
3396 | elif test $ac_cv_prog_cc_g = yes; then | |
3397 | if test "$GCC" = yes; then | |
3398 | CFLAGS="-g -O2" | |
3399 | else | |
3400 | CFLAGS="-g" | |
3401 | fi | |
eff02e4f | 3402 | else |
d4c059d5 ILT |
3403 | if test "$GCC" = yes; then |
3404 | CFLAGS="-O2" | |
3405 | else | |
3406 | CFLAGS= | |
eff02e4f | 3407 | fi |
eff02e4f | 3408 | fi |
d4c059d5 ILT |
3409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3410 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
22e05272 | 3411 | if ${ac_cv_prog_cc_c89+:} false; then : |
d4c059d5 | 3412 | $as_echo_n "(cached) " >&6 |
eff02e4f | 3413 | else |
d4c059d5 ILT |
3414 | ac_cv_prog_cc_c89=no |
3415 | ac_save_CC=$CC | |
3416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3417 | /* end confdefs.h. */ | |
3418 | #include <stdarg.h> | |
3419 | #include <stdio.h> | |
22e05272 | 3420 | struct stat; |
d4c059d5 ILT |
3421 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3422 | struct buf { int x; }; | |
3423 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3424 | static char *e (p, i) | |
3425 | char **p; | |
3426 | int i; | |
3427 | { | |
3428 | return p[i]; | |
3429 | } | |
3430 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3431 | { | |
3432 | char *s; | |
3433 | va_list v; | |
3434 | va_start (v,p); | |
3435 | s = g (p, va_arg (v,int)); | |
3436 | va_end (v); | |
3437 | return s; | |
3438 | } | |
eff02e4f | 3439 | |
d4c059d5 ILT |
3440 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3441 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3442 | These don't provoke an error unfortunately, instead are silently treated | |
3443 | as 'x'. The following induces an error, until -std is added to get | |
3444 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3445 | array size at least. It's necessary to write '\x00'==0 to get something | |
3446 | that's true only with -std. */ | |
3447 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
eff02e4f | 3448 | |
d4c059d5 ILT |
3449 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3450 | inside strings and character constants. */ | |
3451 | #define FOO(x) 'x' | |
3452 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
eff02e4f | 3453 | |
d4c059d5 ILT |
3454 | int test (int i, double x); |
3455 | struct s1 {int (*f) (int a);}; | |
3456 | struct s2 {int (*f) (double a);}; | |
3457 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3458 | int argc; | |
3459 | char **argv; | |
3460 | int | |
3461 | main () | |
3462 | { | |
3463 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3464 | ; | |
3465 | return 0; | |
3466 | } | |
3467 | _ACEOF | |
3468 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3469 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3470 | do | |
3471 | CC="$ac_save_CC $ac_arg" | |
3472 | if ac_fn_c_try_compile "$LINENO"; then : | |
3473 | ac_cv_prog_cc_c89=$ac_arg | |
eff02e4f | 3474 | fi |
d4c059d5 ILT |
3475 | rm -f core conftest.err conftest.$ac_objext |
3476 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3477 | done | |
3478 | rm -f conftest.$ac_ext | |
3479 | CC=$ac_save_CC | |
eff02e4f ILT |
3480 | |
3481 | fi | |
d4c059d5 ILT |
3482 | # AC_CACHE_VAL |
3483 | case "x$ac_cv_prog_cc_c89" in | |
3484 | x) | |
3485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3486 | $as_echo "none needed" >&6; } ;; | |
3487 | xno) | |
3488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3489 | $as_echo "unsupported" >&6; } ;; | |
3490 | *) | |
3491 | CC="$CC $ac_cv_prog_cc_c89" | |
3492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3493 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
eff02e4f | 3494 | esac |
d4c059d5 | 3495 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
eff02e4f | 3496 | |
d4c059d5 | 3497 | fi |
eff02e4f | 3498 | |
d4c059d5 ILT |
3499 | ac_ext=c |
3500 | ac_cpp='$CPP $CPPFLAGS' | |
3501 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3502 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3503 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
eff02e4f | 3504 | |
22e05272 JM |
3505 | ac_ext=c |
3506 | ac_cpp='$CPP $CPPFLAGS' | |
3507 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3508 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3509 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3511 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3512 | if ${am_cv_prog_cc_c_o+:} false; then : | |
3513 | $as_echo_n "(cached) " >&6 | |
3514 | else | |
3515 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3516 | /* end confdefs.h. */ | |
3517 | ||
3518 | int | |
3519 | main () | |
3520 | { | |
3521 | ||
3522 | ; | |
3523 | return 0; | |
3524 | } | |
3525 | _ACEOF | |
3526 | # Make sure it works both with $CC and with simple cc. | |
3527 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3528 | # compilers refuse to overwrite an existing .o file with -o, | |
3529 | # though they will create one. | |
3530 | am_cv_prog_cc_c_o=yes | |
3531 | for am_i in 1 2; do | |
3532 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3533 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3534 | ac_status=$? | |
3535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3536 | (exit $ac_status); } \ | |
3537 | && test -f conftest2.$ac_objext; then | |
3538 | : OK | |
3539 | else | |
3540 | am_cv_prog_cc_c_o=no | |
3541 | break | |
3542 | fi | |
3543 | done | |
3544 | rm -f core conftest* | |
3545 | unset am_i | |
3546 | fi | |
3547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
3548 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
3549 | if test "$am_cv_prog_cc_c_o" != yes; then | |
3550 | # Losing compiler, so override with the script. | |
3551 | # FIXME: It is wrong to rewrite CC. | |
3552 | # But if we don't then we get into trouble of one sort or another. | |
3553 | # A longer-term fix would be to have automake use am__CC in this case, | |
3554 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3555 | CC="$am_aux_dir/compile $CC" | |
3556 | fi | |
3557 | ac_ext=c | |
3558 | ac_cpp='$CPP $CPPFLAGS' | |
3559 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3560 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3561 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3562 | ||
3563 | ||
d4c059d5 ILT |
3564 | |
3565 | ac_ext=c | |
3566 | ac_cpp='$CPP $CPPFLAGS' | |
3567 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3568 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3569 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3571 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3572 | # On Suns, sometimes $CPP names a directory. | |
3573 | if test -n "$CPP" && test -d "$CPP"; then | |
3574 | CPP= | |
3575 | fi | |
3576 | if test -z "$CPP"; then | |
22e05272 | 3577 | if ${ac_cv_prog_CPP+:} false; then : |
d4c059d5 ILT |
3578 | $as_echo_n "(cached) " >&6 |
3579 | else | |
3580 | # Double quotes because CPP needs to be expanded | |
3581 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3582 | do | |
3583 | ac_preproc_ok=false | |
3584 | for ac_c_preproc_warn_flag in '' yes | |
3585 | do | |
3586 | # Use a header file that comes with gcc, so configuring glibc | |
3587 | # with a fresh cross-compiler works. | |
3588 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3589 | # <limits.h> exists even on freestanding compilers. | |
3590 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3591 | # not just through cpp. "Syntax error" is here to catch this case. | |
3592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3593 | /* end confdefs.h. */ | |
3594 | #ifdef __STDC__ | |
3595 | # include <limits.h> | |
3596 | #else | |
3597 | # include <assert.h> | |
3598 | #endif | |
3599 | Syntax error | |
eff02e4f | 3600 | _ACEOF |
d4c059d5 | 3601 | if ac_fn_c_try_cpp "$LINENO"; then : |
eff02e4f | 3602 | |
d4c059d5 ILT |
3603 | else |
3604 | # Broken: fails on valid input. | |
3605 | continue | |
3606 | fi | |
22e05272 | 3607 | rm -f conftest.err conftest.i conftest.$ac_ext |
d4c059d5 ILT |
3608 | |
3609 | # OK, works on sane cases. Now check whether nonexistent headers | |
3610 | # can be detected and how. | |
3611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3612 | /* end confdefs.h. */ | |
3613 | #include <ac_nonexistent.h> | |
3614 | _ACEOF | |
3615 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3616 | # Broken: success on invalid input. | |
3617 | continue | |
3618 | else | |
3619 | # Passes both tests. | |
3620 | ac_preproc_ok=: | |
3621 | break | |
3622 | fi | |
22e05272 | 3623 | rm -f conftest.err conftest.i conftest.$ac_ext |
eff02e4f | 3624 | |
eff02e4f | 3625 | done |
d4c059d5 | 3626 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
22e05272 | 3627 | rm -f conftest.i conftest.err conftest.$ac_ext |
d4c059d5 ILT |
3628 | if $ac_preproc_ok; then : |
3629 | break | |
3630 | fi | |
eff02e4f | 3631 | |
d4c059d5 ILT |
3632 | done |
3633 | ac_cv_prog_CPP=$CPP | |
3634 | ||
3635 | fi | |
3636 | CPP=$ac_cv_prog_CPP | |
3637 | else | |
3638 | ac_cv_prog_CPP=$CPP | |
3639 | fi | |
3640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
3641 | $as_echo "$CPP" >&6; } | |
3642 | ac_preproc_ok=false | |
3643 | for ac_c_preproc_warn_flag in '' yes | |
eff02e4f | 3644 | do |
d4c059d5 ILT |
3645 | # Use a header file that comes with gcc, so configuring glibc |
3646 | # with a fresh cross-compiler works. | |
3647 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3648 | # <limits.h> exists even on freestanding compilers. | |
3649 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3650 | # not just through cpp. "Syntax error" is here to catch this case. | |
3651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3652 | /* end confdefs.h. */ | |
3653 | #ifdef __STDC__ | |
3654 | # include <limits.h> | |
3655 | #else | |
3656 | # include <assert.h> | |
3657 | #endif | |
3658 | Syntax error | |
3659 | _ACEOF | |
3660 | if ac_fn_c_try_cpp "$LINENO"; then : | |
eff02e4f ILT |
3661 | |
3662 | else | |
d4c059d5 ILT |
3663 | # Broken: fails on valid input. |
3664 | continue | |
eff02e4f | 3665 | fi |
22e05272 | 3666 | rm -f conftest.err conftest.i conftest.$ac_ext |
eff02e4f | 3667 | |
d4c059d5 ILT |
3668 | # OK, works on sane cases. Now check whether nonexistent headers |
3669 | # can be detected and how. | |
3670 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3671 | /* end confdefs.h. */ | |
3672 | #include <ac_nonexistent.h> | |
3673 | _ACEOF | |
3674 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3675 | # Broken: success on invalid input. | |
3676 | continue | |
3677 | else | |
3678 | # Passes both tests. | |
3679 | ac_preproc_ok=: | |
3680 | break | |
3681 | fi | |
22e05272 | 3682 | rm -f conftest.err conftest.i conftest.$ac_ext |
d4c059d5 ILT |
3683 | |
3684 | done | |
3685 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22e05272 | 3686 | rm -f conftest.i conftest.err conftest.$ac_ext |
d4c059d5 ILT |
3687 | if $ac_preproc_ok; then : |
3688 | ||
3689 | else | |
3690 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
eff02e4f | 3691 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
22e05272 JM |
3692 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
3693 | See \`config.log' for more details" "$LINENO" 5; } | |
eff02e4f | 3694 | fi |
eff02e4f | 3695 | |
d4c059d5 ILT |
3696 | ac_ext=c |
3697 | ac_cpp='$CPP $CPPFLAGS' | |
3698 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3699 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3700 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3701 | ||
3702 | ||
3703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
3704 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
22e05272 | 3705 | if ${ac_cv_path_GREP+:} false; then : |
d4c059d5 ILT |
3706 | $as_echo_n "(cached) " >&6 |
3707 | else | |
3708 | if test -z "$GREP"; then | |
3709 | ac_path_GREP_found=false | |
3710 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3712 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3713 | do | |
3714 | IFS=$as_save_IFS | |
3715 | test -z "$as_dir" && as_dir=. | |
3716 | for ac_prog in grep ggrep; do | |
3717 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3718 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
22e05272 | 3719 | as_fn_executable_p "$ac_path_GREP" || continue |
d4c059d5 ILT |
3720 | # Check for GNU ac_path_GREP and select it if it is found. |
3721 | # Check for GNU $ac_path_GREP | |
3722 | case `"$ac_path_GREP" --version 2>&1` in | |
3723 | *GNU*) | |
3724 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3725 | *) | |
3726 | ac_count=0 | |
3727 | $as_echo_n 0123456789 >"conftest.in" | |
3728 | while : | |
3729 | do | |
3730 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3731 | mv "conftest.tmp" "conftest.in" | |
3732 | cp "conftest.in" "conftest.nl" | |
3733 | $as_echo 'GREP' >> "conftest.nl" | |
3734 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3735 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3736 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3737 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3738 | # Best one so far, save it but keep looking for a better one | |
3739 | ac_cv_path_GREP="$ac_path_GREP" | |
3740 | ac_path_GREP_max=$ac_count | |
eff02e4f | 3741 | fi |
d4c059d5 ILT |
3742 | # 10*(2^10) chars as input seems more than enough |
3743 | test $ac_count -gt 10 && break | |
3744 | done | |
3745 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3746 | esac | |
3747 | ||
3748 | $ac_path_GREP_found && break 3 | |
3749 | done | |
3750 | done | |
3751 | done | |
3752 | IFS=$as_save_IFS | |
3753 | if test -z "$ac_cv_path_GREP"; then | |
22e05272 | 3754 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
eff02e4f | 3755 | fi |
d4c059d5 ILT |
3756 | else |
3757 | ac_cv_path_GREP=$GREP | |
eff02e4f | 3758 | fi |
eff02e4f | 3759 | |
d4c059d5 ILT |
3760 | fi |
3761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
3762 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3763 | GREP="$ac_cv_path_GREP" | |
eff02e4f | 3764 | |
d4c059d5 ILT |
3765 | |
3766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
3767 | $as_echo_n "checking for egrep... " >&6; } | |
22e05272 | 3768 | if ${ac_cv_path_EGREP+:} false; then : |
d4c059d5 ILT |
3769 | $as_echo_n "(cached) " >&6 |
3770 | else | |
3771 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3772 | then ac_cv_path_EGREP="$GREP -E" | |
3773 | else | |
3774 | if test -z "$EGREP"; then | |
3775 | ac_path_EGREP_found=false | |
3776 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3778 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3779 | do | |
3780 | IFS=$as_save_IFS | |
3781 | test -z "$as_dir" && as_dir=. | |
3782 | for ac_prog in egrep; do | |
3783 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3784 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
22e05272 | 3785 | as_fn_executable_p "$ac_path_EGREP" || continue |
d4c059d5 ILT |
3786 | # Check for GNU ac_path_EGREP and select it if it is found. |
3787 | # Check for GNU $ac_path_EGREP | |
3788 | case `"$ac_path_EGREP" --version 2>&1` in | |
3789 | *GNU*) | |
3790 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3791 | *) | |
3792 | ac_count=0 | |
3793 | $as_echo_n 0123456789 >"conftest.in" | |
3794 | while : | |
3795 | do | |
3796 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3797 | mv "conftest.tmp" "conftest.in" | |
3798 | cp "conftest.in" "conftest.nl" | |
3799 | $as_echo 'EGREP' >> "conftest.nl" | |
3800 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3801 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3802 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3803 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3804 | # Best one so far, save it but keep looking for a better one | |
3805 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3806 | ac_path_EGREP_max=$ac_count | |
3807 | fi | |
3808 | # 10*(2^10) chars as input seems more than enough | |
3809 | test $ac_count -gt 10 && break | |
3810 | done | |
3811 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
eff02e4f | 3812 | esac |
d4c059d5 ILT |
3813 | |
3814 | $ac_path_EGREP_found && break 3 | |
3815 | done | |
3816 | done | |
3817 | done | |
3818 | IFS=$as_save_IFS | |
3819 | if test -z "$ac_cv_path_EGREP"; then | |
22e05272 | 3820 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
d4c059d5 | 3821 | fi |
eff02e4f | 3822 | else |
d4c059d5 ILT |
3823 | ac_cv_path_EGREP=$EGREP |
3824 | fi | |
3825 | ||
3826 | fi | |
3827 | fi | |
3828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
3829 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3830 | EGREP="$ac_cv_path_EGREP" | |
3831 | ||
3832 | ||
3833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
3834 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
22e05272 | 3835 | if ${ac_cv_header_stdc+:} false; then : |
d4c059d5 ILT |
3836 | $as_echo_n "(cached) " >&6 |
3837 | else | |
3838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3839 | /* end confdefs.h. */ | |
3840 | #include <stdlib.h> | |
3841 | #include <stdarg.h> | |
3842 | #include <string.h> | |
3843 | #include <float.h> | |
3844 | ||
3845 | int | |
3846 | main () | |
3847 | { | |
3848 | ||
3849 | ; | |
3850 | return 0; | |
3851 | } | |
3852 | _ACEOF | |
3853 | if ac_fn_c_try_compile "$LINENO"; then : | |
3854 | ac_cv_header_stdc=yes | |
3855 | else | |
3856 | ac_cv_header_stdc=no | |
3857 | fi | |
3858 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3859 | ||
3860 | if test $ac_cv_header_stdc = yes; then | |
3861 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3863 | /* end confdefs.h. */ | |
3864 | #include <string.h> | |
3865 | ||
3866 | _ACEOF | |
3867 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3868 | $EGREP "memchr" >/dev/null 2>&1; then : | |
3869 | ||
3870 | else | |
3871 | ac_cv_header_stdc=no | |
3872 | fi | |
3873 | rm -f conftest* | |
3874 | ||
3875 | fi | |
3876 | ||
3877 | if test $ac_cv_header_stdc = yes; then | |
3878 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3880 | /* end confdefs.h. */ | |
3881 | #include <stdlib.h> | |
3882 | ||
3883 | _ACEOF | |
3884 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3885 | $EGREP "free" >/dev/null 2>&1; then : | |
3886 | ||
3887 | else | |
3888 | ac_cv_header_stdc=no | |
3889 | fi | |
3890 | rm -f conftest* | |
3891 | ||
3892 | fi | |
3893 | ||
3894 | if test $ac_cv_header_stdc = yes; then | |
3895 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3896 | if test "$cross_compiling" = yes; then : | |
3897 | : | |
3898 | else | |
3899 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3900 | /* end confdefs.h. */ | |
3901 | #include <ctype.h> | |
3902 | #include <stdlib.h> | |
3903 | #if ((' ' & 0x0FF) == 0x020) | |
3904 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3905 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3906 | #else | |
3907 | # define ISLOWER(c) \ | |
3908 | (('a' <= (c) && (c) <= 'i') \ | |
3909 | || ('j' <= (c) && (c) <= 'r') \ | |
3910 | || ('s' <= (c) && (c) <= 'z')) | |
3911 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3912 | #endif | |
3913 | ||
3914 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3915 | int | |
3916 | main () | |
3917 | { | |
3918 | int i; | |
3919 | for (i = 0; i < 256; i++) | |
3920 | if (XOR (islower (i), ISLOWER (i)) | |
3921 | || toupper (i) != TOUPPER (i)) | |
3922 | return 2; | |
3923 | return 0; | |
3924 | } | |
3925 | _ACEOF | |
3926 | if ac_fn_c_try_run "$LINENO"; then : | |
3927 | ||
3928 | else | |
3929 | ac_cv_header_stdc=no | |
3930 | fi | |
3931 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
3932 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3933 | fi | |
3934 | ||
3935 | fi | |
3936 | fi | |
3937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
3938 | $as_echo "$ac_cv_header_stdc" >&6; } | |
3939 | if test $ac_cv_header_stdc = yes; then | |
3940 | ||
3941 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
3942 | ||
3943 | fi | |
3944 | ||
3945 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
3946 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3947 | inttypes.h stdint.h unistd.h | |
3948 | do : | |
3949 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3950 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
3951 | " | |
22e05272 | 3952 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
d4c059d5 ILT |
3953 | cat >>confdefs.h <<_ACEOF |
3954 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3955 | _ACEOF | |
3956 | ||
3957 | fi | |
3958 | ||
3959 | done | |
3960 | ||
3961 | ||
3962 | ||
3963 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
22e05272 | 3964 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
d4c059d5 ILT |
3965 | MINIX=yes |
3966 | else | |
3967 | MINIX= | |
3968 | fi | |
3969 | ||
3970 | ||
3971 | if test "$MINIX" = yes; then | |
3972 | ||
3973 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
3974 | ||
3975 | ||
3976 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
3977 | ||
3978 | ||
3979 | $as_echo "#define _MINIX 1" >>confdefs.h | |
3980 | ||
3981 | fi | |
3982 | ||
3983 | ||
3984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
3985 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
22e05272 | 3986 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
d4c059d5 ILT |
3987 | $as_echo_n "(cached) " >&6 |
3988 | else | |
3989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3990 | /* end confdefs.h. */ | |
3991 | ||
22e05272 JM |
3992 | # define __EXTENSIONS__ 1 |
3993 | $ac_includes_default | |
d4c059d5 ILT |
3994 | int |
3995 | main () | |
3996 | { | |
3997 | ||
3998 | ; | |
3999 | return 0; | |
4000 | } | |
4001 | _ACEOF | |
4002 | if ac_fn_c_try_compile "$LINENO"; then : | |
4003 | ac_cv_safe_to_define___extensions__=yes | |
4004 | else | |
4005 | ac_cv_safe_to_define___extensions__=no | |
4006 | fi | |
4007 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4008 | fi | |
4009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
4010 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
4011 | test $ac_cv_safe_to_define___extensions__ = yes && | |
4012 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
4013 | ||
4014 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |
4015 | ||
4016 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
4017 | ||
4018 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
4019 | ||
4020 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
4021 | ||
4022 | ||
4023 | ||
4024 | libtool_VERSION=1:0:0 | |
4025 | ||
4026 | ||
af710874 ILT |
4027 | # 1.11.1: Require that version of automake. |
4028 | # foreign: Don't require README, INSTALL, NEWS, etc. | |
4029 | # no-define: Don't define PACKAGE and VERSION. | |
4030 | # no-dependencies: Don't generate automatic dependencies. | |
4031 | # (because it breaks when using bootstrap-lean, since some of the | |
4032 | # headers are gone at "make install" time). | |
4033 | # -Wall: Issue all automake warnings. | |
4034 | # -Wno-portability: Don't warn about constructs supported by GNU make. | |
4035 | # (because GCC requires GNU make anyhow). | |
22e05272 | 4036 | am__api_version='1.15' |
d4c059d5 ILT |
4037 | |
4038 | # Find a good install program. We prefer a C program (faster), | |
4039 | # so one script is as good as another. But avoid the broken or | |
4040 | # incompatible versions: | |
4041 | # SysV /etc/install, /usr/sbin/install | |
4042 | # SunOS /usr/etc/install | |
4043 | # IRIX /sbin/install | |
4044 | # AIX /bin/install | |
4045 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4046 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4047 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4048 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4049 | # OS/2's system install, which has a completely different semantic | |
4050 | # ./install, which can be erroneously created by make from ./install.sh. | |
4051 | # Reject install programs that cannot install multiple files. | |
4052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
4053 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
4054 | if test -z "$INSTALL"; then | |
22e05272 | 4055 | if ${ac_cv_path_install+:} false; then : |
d4c059d5 ILT |
4056 | $as_echo_n "(cached) " >&6 |
4057 | else | |
4058 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4059 | for as_dir in $PATH | |
4060 | do | |
4061 | IFS=$as_save_IFS | |
4062 | test -z "$as_dir" && as_dir=. | |
4063 | # Account for people who put trailing slashes in PATH elements. | |
4064 | case $as_dir/ in #(( | |
4065 | ./ | .// | /[cC]/* | \ | |
4066 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4067 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
4068 | /usr/ucb/* ) ;; | |
4069 | *) | |
4070 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4071 | # Don't use installbsd from OSF since it installs stuff as root | |
4072 | # by default. | |
4073 | for ac_prog in ginstall scoinst install; do | |
4074 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 4075 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
d4c059d5 ILT |
4076 | if test $ac_prog = install && |
4077 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4078 | # AIX install. It has an incompatible calling convention. | |
4079 | : | |
4080 | elif test $ac_prog = install && | |
4081 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4082 | # program-specific install script used by HP pwplus--don't use. | |
4083 | : | |
4084 | else | |
4085 | rm -rf conftest.one conftest.two conftest.dir | |
4086 | echo one > conftest.one | |
4087 | echo two > conftest.two | |
4088 | mkdir conftest.dir | |
4089 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4090 | test -s conftest.one && test -s conftest.two && | |
4091 | test -s conftest.dir/conftest.one && | |
4092 | test -s conftest.dir/conftest.two | |
4093 | then | |
4094 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4095 | break 3 | |
4096 | fi | |
4097 | fi | |
4098 | fi | |
4099 | done | |
4100 | done | |
4101 | ;; | |
4102 | esac | |
4103 | ||
4104 | done | |
4105 | IFS=$as_save_IFS | |
4106 | ||
4107 | rm -rf conftest.one conftest.two conftest.dir | |
4108 | ||
4109 | fi | |
4110 | if test "${ac_cv_path_install+set}" = set; then | |
4111 | INSTALL=$ac_cv_path_install | |
4112 | else | |
4113 | # As a last resort, use the slow shell script. Don't cache a | |
4114 | # value for INSTALL within a source directory, because that will | |
4115 | # break other packages using the cache if that directory is | |
4116 | # removed, or if the value is a relative name. | |
4117 | INSTALL=$ac_install_sh | |
4118 | fi | |
4119 | fi | |
4120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
4121 | $as_echo "$INSTALL" >&6; } | |
4122 | ||
4123 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4124 | # It thinks the first close brace ends the variable substitution. | |
4125 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4126 | ||
4127 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
4128 | ||
4129 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4130 | ||
4131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
4132 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
d4c059d5 ILT |
4133 | # Reject unsafe characters in $srcdir or the absolute working directory |
4134 | # name. Accept space and tab only in the latter. | |
4135 | am_lf=' | |
4136 | ' | |
4137 | case `pwd` in | |
4138 | *[\\\"\#\$\&\'\`$am_lf]*) | |
22e05272 | 4139 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
d4c059d5 ILT |
4140 | esac |
4141 | case $srcdir in | |
4142 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
22e05272 | 4143 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
d4c059d5 ILT |
4144 | esac |
4145 | ||
22e05272 | 4146 | # Do 'set' in a subshell so we don't clobber the current shell's |
d4c059d5 ILT |
4147 | # arguments. Must try -L first in case configure is actually a |
4148 | # symlink; some systems play weird games with the mod time of symlinks | |
4149 | # (eg FreeBSD returns the mod time of the symlink's containing | |
4150 | # directory). | |
4151 | if ( | |
22e05272 JM |
4152 | am_has_slept=no |
4153 | for am_try in 1 2; do | |
4154 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
4155 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
4156 | if test "$*" = "X"; then | |
4157 | # -L didn't work. | |
4158 | set X `ls -t "$srcdir/configure" conftest.file` | |
4159 | fi | |
4160 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
4161 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
4162 | ||
4163 | # If neither matched, then we have a broken ls. This can happen | |
4164 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
4165 | # broken ls alias from the environment. This has actually | |
4166 | # happened. Such a system could not be considered "sane". | |
4167 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
4168 | alias in your environment" "$LINENO" 5 | |
4169 | fi | |
4170 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
4171 | break | |
4172 | fi | |
4173 | # Just in case. | |
4174 | sleep 1 | |
4175 | am_has_slept=yes | |
4176 | done | |
d4c059d5 ILT |
4177 | test "$2" = conftest.file |
4178 | ) | |
4179 | then | |
4180 | # Ok. | |
4181 | : | |
4182 | else | |
22e05272 | 4183 | as_fn_error $? "newly created file is older than distributed files! |
d4c059d5 ILT |
4184 | Check your system clock" "$LINENO" 5 |
4185 | fi | |
4186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4187 | $as_echo "yes" >&6; } | |
22e05272 JM |
4188 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
4189 | # generated files are strictly newer. | |
4190 | am_sleep_pid= | |
4191 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
4192 | ( sleep 1 ) & | |
4193 | am_sleep_pid=$! | |
4194 | fi | |
4195 | ||
4196 | rm -f conftest.file | |
4197 | ||
d4c059d5 ILT |
4198 | test "$program_prefix" != NONE && |
4199 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
4200 | # Use a double $ so make ignores it. | |
4201 | test "$program_suffix" != NONE && | |
4202 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
4203 | # Double any \ or $. | |
4204 | # By default was `s,x,x', remove it if useless. | |
4205 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
4206 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
4207 | ||
d4c059d5 ILT |
4208 | if test x"${MISSING+set}" != xset; then |
4209 | case $am_aux_dir in | |
4210 | *\ * | *\ *) | |
4211 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
4212 | *) | |
4213 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
4214 | esac | |
4215 | fi | |
4216 | # Use eval to expand $SHELL | |
22e05272 JM |
4217 | if eval "$MISSING --is-lightweight"; then |
4218 | am_missing_run="$MISSING " | |
d4c059d5 ILT |
4219 | else |
4220 | am_missing_run= | |
22e05272 JM |
4221 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
4222 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
d4c059d5 ILT |
4223 | fi |
4224 | ||
22e05272 | 4225 | if test x"${install_sh+set}" != xset; then |
d4c059d5 ILT |
4226 | case $am_aux_dir in |
4227 | *\ * | *\ *) | |
4228 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
4229 | *) | |
4230 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
4231 | esac | |
4232 | fi | |
4233 | ||
22e05272 JM |
4234 | # Installed binaries are usually stripped using 'strip' when the user |
4235 | # run "make install-strip". However 'strip' might not be the right | |
d4c059d5 | 4236 | # tool to use in cross-compilation environments, therefore Automake |
22e05272 | 4237 | # will honor the 'STRIP' environment variable to overrule this program. |
d4c059d5 ILT |
4238 | if test "$cross_compiling" != no; then |
4239 | if test -n "$ac_tool_prefix"; then | |
4240 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
4241 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
4242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4243 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4244 | if ${ac_cv_prog_STRIP+:} false; then : |
d4c059d5 ILT |
4245 | $as_echo_n "(cached) " >&6 |
4246 | else | |
4247 | if test -n "$STRIP"; then | |
4248 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4249 | else | |
4250 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4251 | for as_dir in $PATH | |
4252 | do | |
4253 | IFS=$as_save_IFS | |
4254 | test -z "$as_dir" && as_dir=. | |
4255 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 4256 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d4c059d5 ILT |
4257 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
4258 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4259 | break 2 | |
4260 | fi | |
4261 | done | |
4262 | done | |
4263 | IFS=$as_save_IFS | |
4264 | ||
4265 | fi | |
4266 | fi | |
4267 | STRIP=$ac_cv_prog_STRIP | |
4268 | if test -n "$STRIP"; then | |
4269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
4270 | $as_echo "$STRIP" >&6; } | |
4271 | else | |
4272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4273 | $as_echo "no" >&6; } | |
4274 | fi | |
4275 | ||
4276 | ||
4277 | fi | |
4278 | if test -z "$ac_cv_prog_STRIP"; then | |
4279 | ac_ct_STRIP=$STRIP | |
4280 | # Extract the first word of "strip", so it can be a program name with args. | |
4281 | set dummy strip; ac_word=$2 | |
4282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4283 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4284 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
d4c059d5 ILT |
4285 | $as_echo_n "(cached) " >&6 |
4286 | else | |
4287 | if test -n "$ac_ct_STRIP"; then | |
4288 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
4289 | else | |
4290 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4291 | for as_dir in $PATH | |
4292 | do | |
4293 | IFS=$as_save_IFS | |
4294 | test -z "$as_dir" && as_dir=. | |
4295 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 4296 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d4c059d5 ILT |
4297 | ac_cv_prog_ac_ct_STRIP="strip" |
4298 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4299 | break 2 | |
4300 | fi | |
4301 | done | |
4302 | done | |
4303 | IFS=$as_save_IFS | |
4304 | ||
4305 | fi | |
4306 | fi | |
4307 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
4308 | if test -n "$ac_ct_STRIP"; then | |
4309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
4310 | $as_echo "$ac_ct_STRIP" >&6; } | |
4311 | else | |
4312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4313 | $as_echo "no" >&6; } | |
4314 | fi | |
4315 | ||
4316 | if test "x$ac_ct_STRIP" = x; then | |
4317 | STRIP=":" | |
4318 | else | |
4319 | case $cross_compiling:$ac_tool_warned in | |
4320 | yes:) | |
4321 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4322 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4323 | ac_tool_warned=yes ;; | |
4324 | esac | |
4325 | STRIP=$ac_ct_STRIP | |
4326 | fi | |
4327 | else | |
4328 | STRIP="$ac_cv_prog_STRIP" | |
4329 | fi | |
4330 | ||
4331 | fi | |
4332 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
4333 | ||
4334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
4335 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
4336 | if test -z "$MKDIR_P"; then | |
22e05272 | 4337 | if ${ac_cv_path_mkdir+:} false; then : |
d4c059d5 ILT |
4338 | $as_echo_n "(cached) " >&6 |
4339 | else | |
4340 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4341 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
4342 | do | |
4343 | IFS=$as_save_IFS | |
4344 | test -z "$as_dir" && as_dir=. | |
4345 | for ac_prog in mkdir gmkdir; do | |
4346 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 4347 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
d4c059d5 ILT |
4348 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
4349 | 'mkdir (GNU coreutils) '* | \ | |
4350 | 'mkdir (coreutils) '* | \ | |
4351 | 'mkdir (fileutils) '4.1*) | |
4352 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
4353 | break 3;; | |
4354 | esac | |
4355 | done | |
4356 | done | |
4357 | done | |
4358 | IFS=$as_save_IFS | |
4359 | ||
4360 | fi | |
4361 | ||
22e05272 | 4362 | test -d ./--version && rmdir ./--version |
d4c059d5 ILT |
4363 | if test "${ac_cv_path_mkdir+set}" = set; then |
4364 | MKDIR_P="$ac_cv_path_mkdir -p" | |
4365 | else | |
4366 | # As a last resort, use the slow shell script. Don't cache a | |
4367 | # value for MKDIR_P within a source directory, because that will | |
4368 | # break other packages using the cache if that directory is | |
4369 | # removed, or if the value is a relative name. | |
d4c059d5 ILT |
4370 | MKDIR_P="$ac_install_sh -d" |
4371 | fi | |
4372 | fi | |
4373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
4374 | $as_echo "$MKDIR_P" >&6; } | |
4375 | ||
d4c059d5 ILT |
4376 | for ac_prog in gawk mawk nawk awk |
4377 | do | |
4378 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4379 | set dummy $ac_prog; ac_word=$2 | |
4380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4381 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4382 | if ${ac_cv_prog_AWK+:} false; then : |
d4c059d5 ILT |
4383 | $as_echo_n "(cached) " >&6 |
4384 | else | |
4385 | if test -n "$AWK"; then | |
4386 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
4387 | else | |
4388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4389 | for as_dir in $PATH | |
4390 | do | |
4391 | IFS=$as_save_IFS | |
4392 | test -z "$as_dir" && as_dir=. | |
4393 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 4394 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d4c059d5 ILT |
4395 | ac_cv_prog_AWK="$ac_prog" |
4396 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4397 | break 2 | |
4398 | fi | |
4399 | done | |
4400 | done | |
4401 | IFS=$as_save_IFS | |
4402 | ||
4403 | fi | |
4404 | fi | |
4405 | AWK=$ac_cv_prog_AWK | |
4406 | if test -n "$AWK"; then | |
4407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
4408 | $as_echo "$AWK" >&6; } | |
4409 | else | |
4410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4411 | $as_echo "no" >&6; } | |
4412 | fi | |
4413 | ||
4414 | ||
4415 | test -n "$AWK" && break | |
4416 | done | |
4417 | ||
4418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
4419 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
4420 | set x ${MAKE-make} | |
4421 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
22e05272 | 4422 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
d4c059d5 ILT |
4423 | $as_echo_n "(cached) " >&6 |
4424 | else | |
4425 | cat >conftest.make <<\_ACEOF | |
4426 | SHELL = /bin/sh | |
4427 | all: | |
4428 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
4429 | _ACEOF | |
22e05272 | 4430 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
d4c059d5 ILT |
4431 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
4432 | *@@@%%%=?*=@@@%%%*) | |
4433 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4434 | *) | |
4435 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
4436 | esac | |
4437 | rm -f conftest.make | |
4438 | fi | |
4439 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
4440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4441 | $as_echo "yes" >&6; } | |
4442 | SET_MAKE= | |
4443 | else | |
4444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4445 | $as_echo "no" >&6; } | |
4446 | SET_MAKE="MAKE=${MAKE-make}" | |
4447 | fi | |
4448 | ||
4449 | rm -rf .tst 2>/dev/null | |
4450 | mkdir .tst 2>/dev/null | |
4451 | if test -d .tst; then | |
4452 | am__leading_dot=. | |
4453 | else | |
4454 | am__leading_dot=_ | |
4455 | fi | |
4456 | rmdir .tst 2>/dev/null | |
4457 | ||
22e05272 JM |
4458 | # Check whether --enable-silent-rules was given. |
4459 | if test "${enable_silent_rules+set}" = set; then : | |
4460 | enableval=$enable_silent_rules; | |
4461 | fi | |
4462 | ||
4463 | case $enable_silent_rules in # ((( | |
4464 | yes) AM_DEFAULT_VERBOSITY=0;; | |
4465 | no) AM_DEFAULT_VERBOSITY=1;; | |
4466 | *) AM_DEFAULT_VERBOSITY=1;; | |
4467 | esac | |
4468 | am_make=${MAKE-make} | |
4469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
4470 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
4471 | if ${am_cv_make_support_nested_variables+:} false; then : | |
4472 | $as_echo_n "(cached) " >&6 | |
4473 | else | |
4474 | if $as_echo 'TRUE=$(BAR$(V)) | |
4475 | BAR0=false | |
4476 | BAR1=true | |
4477 | V=1 | |
4478 | am__doit: | |
4479 | @$(TRUE) | |
4480 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
4481 | am_cv_make_support_nested_variables=yes | |
4482 | else | |
4483 | am_cv_make_support_nested_variables=no | |
4484 | fi | |
4485 | fi | |
4486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
4487 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
4488 | if test $am_cv_make_support_nested_variables = yes; then | |
4489 | AM_V='$(V)' | |
4490 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
4491 | else | |
4492 | AM_V=$AM_DEFAULT_VERBOSITY | |
4493 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
4494 | fi | |
4495 | AM_BACKSLASH='\' | |
4496 | ||
d4c059d5 ILT |
4497 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
4498 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
4499 | # is not polluted with repeated "-I." | |
4500 | am__isrc=' -I$(srcdir)' | |
4501 | # test to see if srcdir already configured | |
4502 | if test -f $srcdir/config.status; then | |
22e05272 | 4503 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
d4c059d5 ILT |
4504 | fi |
4505 | fi | |
4506 | ||
4507 | # test whether we have cygpath | |
4508 | if test -z "$CYGPATH_W"; then | |
4509 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
4510 | CYGPATH_W='cygpath -w' | |
4511 | else | |
4512 | CYGPATH_W=echo | |
4513 | fi | |
4514 | fi | |
4515 | ||
4516 | ||
4517 | # Define the identity of the package. | |
4518 | PACKAGE='libbacktrace' | |
4519 | VERSION='version-unused' | |
4520 | ||
4521 | ||
4522 | # Some tools Automake needs. | |
4523 | ||
4524 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
4525 | ||
4526 | ||
4527 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
4528 | ||
4529 | ||
4530 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
4531 | ||
4532 | ||
4533 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
4534 | ||
4535 | ||
4536 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
4537 | ||
22e05272 JM |
4538 | # For better backward compatibility. To be removed once Automake 1.9.x |
4539 | # dies out for good. For more background, see: | |
4540 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
4541 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
4542 | mkdir_p='$(MKDIR_P)' | |
4543 | ||
4544 | # We need awk for the "check" target (and possibly the TAP driver). The | |
4545 | # system "awk" is bad on some platforms. | |
df96c0f7 MH |
4546 | # Always define AMTAR for backward compatibility. Yes, it's still used |
4547 | # in the wild :-( We should find a proper way to deprecate it ... | |
4548 | AMTAR='$${TAR-tar}' | |
d4c059d5 | 4549 | |
22e05272 JM |
4550 | |
4551 | # We'll loop over all known methods to create a tar archive until one works. | |
4552 | _am_tools='gnutar pax cpio none' | |
4553 | ||
df96c0f7 | 4554 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
d4c059d5 ILT |
4555 | |
4556 | ||
4557 | ||
4558 | ||
d4c059d5 ILT |
4559 | |
4560 | ||
22e05272 JM |
4561 | # POSIX will say in a future version that running "rm -f" with no argument |
4562 | # is OK; and we want to be able to make that assumption in our Makefile | |
4563 | # recipes. So use an aggressive probe to check that the usage we want is | |
4564 | # actually supported "in the wild" to an acceptable degree. | |
4565 | # See automake bug#10828. | |
4566 | # To make any issue more visible, cause the running configure to be aborted | |
4567 | # by default if the 'rm' program in use doesn't match our expectations; the | |
4568 | # user can still override this though. | |
4569 | if rm -f && rm -fr && rm -rf; then : OK; else | |
4570 | cat >&2 <<'END' | |
4571 | Oops! | |
4572 | ||
4573 | Your 'rm' program seems unable to run without file operands specified | |
4574 | on the command line, even when the '-f' option is present. This is contrary | |
4575 | to the behaviour of most rm programs out there, and not conforming with | |
4576 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
4577 | ||
4578 | Please tell bug-automake@gnu.org about your system, including the value | |
4579 | of your $PATH and any error possibly output before this message. This | |
4580 | can help us improve future automake versions. | |
4581 | ||
4582 | END | |
4583 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
4584 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
4585 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
4586 | echo >&2 | |
4587 | else | |
4588 | cat >&2 <<'END' | |
4589 | Aborting the configuration process, to ensure you take notice of the issue. | |
4590 | ||
4591 | You can download and install GNU coreutils to get an 'rm' implementation | |
4592 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
4593 | ||
4594 | If you want to complete the configuration process using your problematic | |
4595 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
4596 | to "yes", and re-run configure. | |
4597 | ||
4598 | END | |
4599 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
4600 | fi | |
4601 | fi | |
4602 | ||
4603 | ||
d4c059d5 ILT |
4604 | |
4605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
4606 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
4607 | # Check whether --enable-maintainer-mode was given. | |
4608 | if test "${enable_maintainer_mode+set}" = set; then : | |
4609 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
4610 | else | |
4611 | USE_MAINTAINER_MODE=no | |
4612 | fi | |
4613 | ||
4614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
4615 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
4616 | if test $USE_MAINTAINER_MODE = yes; then | |
4617 | MAINTAINER_MODE_TRUE= | |
4618 | MAINTAINER_MODE_FALSE='#' | |
4619 | else | |
4620 | MAINTAINER_MODE_TRUE='#' | |
4621 | MAINTAINER_MODE_FALSE= | |
4622 | fi | |
4623 | ||
4624 | MAINT=$MAINTAINER_MODE_TRUE | |
4625 | ||
4626 | ||
4627 | ||
4628 | ||
4629 | # Check whether --with-target-subdir was given. | |
4630 | if test "${with_target_subdir+set}" = set; then : | |
4631 | withval=$with_target_subdir; | |
eff02e4f | 4632 | fi |
eff02e4f | 4633 | |
eff02e4f | 4634 | |
d4c059d5 ILT |
4635 | # We must force CC to /not/ be precious variables; otherwise |
4636 | # the wrong, non-multilib-adjusted value will be used in multilibs. | |
4637 | # As a side effect, we have to subst CFLAGS ourselves. | |
eff02e4f | 4638 | |
d4c059d5 ILT |
4639 | |
4640 | ac_ext=c | |
4641 | ac_cpp='$CPP $CPPFLAGS' | |
4642 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4643 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4644 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4645 | if test -n "$ac_tool_prefix"; then | |
4646 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4647 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
4648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4649 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4650 | if ${ac_cv_prog_CC+:} false; then : |
d4c059d5 | 4651 | $as_echo_n "(cached) " >&6 |
eff02e4f | 4652 | else |
d4c059d5 ILT |
4653 | if test -n "$CC"; then |
4654 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4655 | else | |
4656 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4657 | for as_dir in $PATH | |
4658 | do | |
4659 | IFS=$as_save_IFS | |
4660 | test -z "$as_dir" && as_dir=. | |
4661 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 4662 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d4c059d5 ILT |
4663 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
4664 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4665 | break 2 | |
4666 | fi | |
4667 | done | |
4668 | done | |
4669 | IFS=$as_save_IFS | |
eff02e4f | 4670 | |
eff02e4f | 4671 | fi |
eff02e4f | 4672 | fi |
d4c059d5 ILT |
4673 | CC=$ac_cv_prog_CC |
4674 | if test -n "$CC"; then | |
4675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4676 | $as_echo "$CC" >&6; } | |
eff02e4f | 4677 | else |
d4c059d5 ILT |
4678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4679 | $as_echo "no" >&6; } | |
4680 | fi | |
eff02e4f | 4681 | |
eff02e4f | 4682 | |
eff02e4f | 4683 | fi |
d4c059d5 ILT |
4684 | if test -z "$ac_cv_prog_CC"; then |
4685 | ac_ct_CC=$CC | |
4686 | # Extract the first word of "gcc", so it can be a program name with args. | |
4687 | set dummy gcc; ac_word=$2 | |
4688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4689 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4690 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
d4c059d5 ILT |
4691 | $as_echo_n "(cached) " >&6 |
4692 | else | |
4693 | if test -n "$ac_ct_CC"; then | |
4694 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4695 | else | |
4696 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4697 | for as_dir in $PATH | |
4698 | do | |
4699 | IFS=$as_save_IFS | |
4700 | test -z "$as_dir" && as_dir=. | |
4701 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 4702 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d4c059d5 ILT |
4703 | ac_cv_prog_ac_ct_CC="gcc" |
4704 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4705 | break 2 | |
4706 | fi | |
4707 | done | |
4708 | done | |
4709 | IFS=$as_save_IFS | |
eff02e4f ILT |
4710 | |
4711 | fi | |
eff02e4f | 4712 | fi |
d4c059d5 ILT |
4713 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4714 | if test -n "$ac_ct_CC"; then | |
4715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4716 | $as_echo "$ac_ct_CC" >&6; } | |
eff02e4f | 4717 | else |
d4c059d5 ILT |
4718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4719 | $as_echo "no" >&6; } | |
4720 | fi | |
eff02e4f | 4721 | |
d4c059d5 ILT |
4722 | if test "x$ac_ct_CC" = x; then |
4723 | CC="" | |
4724 | else | |
4725 | case $cross_compiling:$ac_tool_warned in | |
4726 | yes:) | |
4727 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4728 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4729 | ac_tool_warned=yes ;; | |
4730 | esac | |
4731 | CC=$ac_ct_CC | |
4732 | fi | |
4733 | else | |
4734 | CC="$ac_cv_prog_CC" | |
4735 | fi | |
eff02e4f | 4736 | |
d4c059d5 ILT |
4737 | if test -z "$CC"; then |
4738 | if test -n "$ac_tool_prefix"; then | |
4739 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4740 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
4741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4742 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4743 | if ${ac_cv_prog_CC+:} false; then : |
d4c059d5 | 4744 | $as_echo_n "(cached) " >&6 |
eff02e4f | 4745 | else |
d4c059d5 ILT |
4746 | if test -n "$CC"; then |
4747 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4748 | else | |
4749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4750 | for as_dir in $PATH | |
4751 | do | |
4752 | IFS=$as_save_IFS | |
4753 | test -z "$as_dir" && as_dir=. | |
4754 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 4755 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d4c059d5 ILT |
4756 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
4757 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4758 | break 2 | |
4759 | fi | |
4760 | done | |
4761 | done | |
4762 | IFS=$as_save_IFS | |
eff02e4f | 4763 | |
d4c059d5 ILT |
4764 | fi |
4765 | fi | |
4766 | CC=$ac_cv_prog_CC | |
4767 | if test -n "$CC"; then | |
4768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4769 | $as_echo "$CC" >&6; } | |
4770 | else | |
4771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4772 | $as_echo "no" >&6; } | |
4773 | fi | |
eff02e4f | 4774 | |
eff02e4f | 4775 | |
d4c059d5 ILT |
4776 | fi |
4777 | fi | |
4778 | if test -z "$CC"; then | |
4779 | # Extract the first word of "cc", so it can be a program name with args. | |
4780 | set dummy cc; ac_word=$2 | |
4781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4782 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4783 | if ${ac_cv_prog_CC+:} false; then : |
d4c059d5 | 4784 | $as_echo_n "(cached) " >&6 |
eff02e4f | 4785 | else |
d4c059d5 ILT |
4786 | if test -n "$CC"; then |
4787 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4788 | else | |
4789 | ac_prog_rejected=no | |
4790 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4791 | for as_dir in $PATH | |
4792 | do | |
4793 | IFS=$as_save_IFS | |
4794 | test -z "$as_dir" && as_dir=. | |
4795 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 4796 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d4c059d5 ILT |
4797 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4798 | ac_prog_rejected=yes | |
4799 | continue | |
4800 | fi | |
4801 | ac_cv_prog_CC="cc" | |
4802 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4803 | break 2 | |
4804 | fi | |
4805 | done | |
4806 | done | |
4807 | IFS=$as_save_IFS | |
eff02e4f | 4808 | |
d4c059d5 ILT |
4809 | if test $ac_prog_rejected = yes; then |
4810 | # We found a bogon in the path, so make sure we never use it. | |
4811 | set dummy $ac_cv_prog_CC | |
4812 | shift | |
4813 | if test $# != 0; then | |
4814 | # We chose a different compiler from the bogus one. | |
4815 | # However, it has the same basename, so the bogon will be chosen | |
4816 | # first if we set CC to just the basename; use the full file name. | |
4817 | shift | |
4818 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4819 | fi | |
eff02e4f | 4820 | fi |
eff02e4f | 4821 | fi |
eff02e4f | 4822 | fi |
d4c059d5 ILT |
4823 | CC=$ac_cv_prog_CC |
4824 | if test -n "$CC"; then | |
4825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4826 | $as_echo "$CC" >&6; } | |
eff02e4f | 4827 | else |
d4c059d5 ILT |
4828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4829 | $as_echo "no" >&6; } | |
eff02e4f | 4830 | fi |
d4c059d5 ILT |
4831 | |
4832 | ||
4833 | fi | |
4834 | if test -z "$CC"; then | |
4835 | if test -n "$ac_tool_prefix"; then | |
4836 | for ac_prog in cl.exe | |
4837 | do | |
4838 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4839 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4841 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4842 | if ${ac_cv_prog_CC+:} false; then : |
eff02e4f ILT |
4843 | $as_echo_n "(cached) " >&6 |
4844 | else | |
d4c059d5 ILT |
4845 | if test -n "$CC"; then |
4846 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4847 | else | |
4848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4849 | for as_dir in $PATH | |
4850 | do | |
4851 | IFS=$as_save_IFS | |
4852 | test -z "$as_dir" && as_dir=. | |
4853 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 4854 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d4c059d5 ILT |
4855 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
4856 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4857 | break 2 | |
4858 | fi | |
4859 | done | |
4860 | done | |
4861 | IFS=$as_save_IFS | |
eff02e4f | 4862 | |
d4c059d5 ILT |
4863 | fi |
4864 | fi | |
4865 | CC=$ac_cv_prog_CC | |
4866 | if test -n "$CC"; then | |
4867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4868 | $as_echo "$CC" >&6; } | |
4869 | else | |
4870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4871 | $as_echo "no" >&6; } | |
4872 | fi | |
eff02e4f | 4873 | |
eff02e4f | 4874 | |
d4c059d5 ILT |
4875 | test -n "$CC" && break |
4876 | done | |
eff02e4f | 4877 | fi |
d4c059d5 ILT |
4878 | if test -z "$CC"; then |
4879 | ac_ct_CC=$CC | |
4880 | for ac_prog in cl.exe | |
4881 | do | |
4882 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4883 | set dummy $ac_prog; ac_word=$2 | |
4884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4885 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4886 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
d4c059d5 ILT |
4887 | $as_echo_n "(cached) " >&6 |
4888 | else | |
4889 | if test -n "$ac_ct_CC"; then | |
4890 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4891 | else | |
4892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4893 | for as_dir in $PATH | |
4894 | do | |
4895 | IFS=$as_save_IFS | |
4896 | test -z "$as_dir" && as_dir=. | |
4897 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 4898 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d4c059d5 ILT |
4899 | ac_cv_prog_ac_ct_CC="$ac_prog" |
4900 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4901 | break 2 | |
4902 | fi | |
eff02e4f | 4903 | done |
d4c059d5 ILT |
4904 | done |
4905 | IFS=$as_save_IFS | |
eff02e4f ILT |
4906 | |
4907 | fi | |
d4c059d5 ILT |
4908 | fi |
4909 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4910 | if test -n "$ac_ct_CC"; then | |
4911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4912 | $as_echo "$ac_ct_CC" >&6; } | |
4913 | else | |
4914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4915 | $as_echo "no" >&6; } | |
eff02e4f ILT |
4916 | fi |
4917 | ||
eff02e4f | 4918 | |
d4c059d5 ILT |
4919 | test -n "$ac_ct_CC" && break |
4920 | done | |
eff02e4f | 4921 | |
d4c059d5 ILT |
4922 | if test "x$ac_ct_CC" = x; then |
4923 | CC="" | |
4924 | else | |
4925 | case $cross_compiling:$ac_tool_warned in | |
4926 | yes:) | |
4927 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4928 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4929 | ac_tool_warned=yes ;; | |
eff02e4f | 4930 | esac |
d4c059d5 ILT |
4931 | CC=$ac_ct_CC |
4932 | fi | |
eff02e4f ILT |
4933 | fi |
4934 | ||
d4c059d5 | 4935 | fi |
eff02e4f | 4936 | |
eff02e4f | 4937 | |
d4c059d5 ILT |
4938 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4939 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4940 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4941 | See \`config.log' for more details" "$LINENO" 5; } | |
d4c059d5 ILT |
4942 | |
4943 | # Provide some information about the compiler. | |
4944 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
4945 | set X $ac_compile | |
4946 | ac_compiler=$2 | |
4947 | for ac_option in --version -v -V -qversion; do | |
4948 | { { ac_try="$ac_compiler $ac_option >&5" | |
4949 | case "(($ac_try" in | |
4950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4951 | *) ac_try_echo=$ac_try;; | |
4952 | esac | |
4953 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4954 | $as_echo "$ac_try_echo"; } >&5 | |
4955 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4956 | ac_status=$? | |
4957 | if test -s conftest.err; then | |
4958 | sed '10a\ | |
4959 | ... rest of stderr output deleted ... | |
4960 | 10q' conftest.err >conftest.er1 | |
4961 | cat conftest.er1 >&5 | |
d4c059d5 | 4962 | fi |
22e05272 | 4963 | rm -f conftest.er1 conftest.err |
d4c059d5 ILT |
4964 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4965 | test $ac_status = 0; } | |
4966 | done | |
4967 | ||
4968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
4969 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
22e05272 | 4970 | if ${ac_cv_c_compiler_gnu+:} false; then : |
d4c059d5 ILT |
4971 | $as_echo_n "(cached) " >&6 |
4972 | else | |
4973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4974 | /* end confdefs.h. */ | |
4975 | ||
4976 | int | |
4977 | main () | |
4978 | { | |
4979 | #ifndef __GNUC__ | |
4980 | choke me | |
4981 | #endif | |
4982 | ||
4983 | ; | |
4984 | return 0; | |
4985 | } | |
4986 | _ACEOF | |
4987 | if ac_fn_c_try_compile "$LINENO"; then : | |
4988 | ac_compiler_gnu=yes | |
4989 | else | |
4990 | ac_compiler_gnu=no | |
eff02e4f | 4991 | fi |
d4c059d5 ILT |
4992 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4993 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
eff02e4f | 4994 | |
eff02e4f | 4995 | fi |
d4c059d5 ILT |
4996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4997 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4998 | if test $ac_compiler_gnu = yes; then | |
4999 | GCC=yes | |
eff02e4f | 5000 | else |
d4c059d5 | 5001 | GCC= |
eff02e4f | 5002 | fi |
d4c059d5 ILT |
5003 | ac_test_CFLAGS=${CFLAGS+set} |
5004 | ac_save_CFLAGS=$CFLAGS | |
5005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
5006 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
22e05272 | 5007 | if ${ac_cv_prog_cc_g+:} false; then : |
d4c059d5 ILT |
5008 | $as_echo_n "(cached) " >&6 |
5009 | else | |
5010 | ac_save_c_werror_flag=$ac_c_werror_flag | |
5011 | ac_c_werror_flag=yes | |
5012 | ac_cv_prog_cc_g=no | |
5013 | CFLAGS="-g" | |
5014 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5015 | /* end confdefs.h. */ | |
eff02e4f | 5016 | |
d4c059d5 ILT |
5017 | int |
5018 | main () | |
5019 | { | |
eff02e4f | 5020 | |
d4c059d5 ILT |
5021 | ; |
5022 | return 0; | |
5023 | } | |
5024 | _ACEOF | |
5025 | if ac_fn_c_try_compile "$LINENO"; then : | |
5026 | ac_cv_prog_cc_g=yes | |
eff02e4f | 5027 | else |
d4c059d5 ILT |
5028 | CFLAGS="" |
5029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5030 | /* end confdefs.h. */ | |
eff02e4f | 5031 | |
d4c059d5 ILT |
5032 | int |
5033 | main () | |
5034 | { | |
eff02e4f | 5035 | |
d4c059d5 ILT |
5036 | ; |
5037 | return 0; | |
5038 | } | |
5039 | _ACEOF | |
5040 | if ac_fn_c_try_compile "$LINENO"; then : | |
eff02e4f | 5041 | |
d4c059d5 ILT |
5042 | else |
5043 | ac_c_werror_flag=$ac_save_c_werror_flag | |
5044 | CFLAGS="-g" | |
5045 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5046 | /* end confdefs.h. */ | |
eff02e4f | 5047 | |
d4c059d5 ILT |
5048 | int |
5049 | main () | |
5050 | { | |
5051 | ||
5052 | ; | |
5053 | return 0; | |
5054 | } | |
5055 | _ACEOF | |
5056 | if ac_fn_c_try_compile "$LINENO"; then : | |
5057 | ac_cv_prog_cc_g=yes | |
5058 | fi | |
5059 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5060 | fi | |
5061 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5062 | fi | |
5063 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5064 | ac_c_werror_flag=$ac_save_c_werror_flag | |
5065 | fi | |
5066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
5067 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
5068 | if test "$ac_test_CFLAGS" = set; then | |
5069 | CFLAGS=$ac_save_CFLAGS | |
5070 | elif test $ac_cv_prog_cc_g = yes; then | |
5071 | if test "$GCC" = yes; then | |
5072 | CFLAGS="-g -O2" | |
5073 | else | |
5074 | CFLAGS="-g" | |
5075 | fi | |
eff02e4f | 5076 | else |
d4c059d5 ILT |
5077 | if test "$GCC" = yes; then |
5078 | CFLAGS="-O2" | |
5079 | else | |
5080 | CFLAGS= | |
5081 | fi | |
5082 | fi | |
5083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
5084 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
22e05272 | 5085 | if ${ac_cv_prog_cc_c89+:} false; then : |
d4c059d5 ILT |
5086 | $as_echo_n "(cached) " >&6 |
5087 | else | |
5088 | ac_cv_prog_cc_c89=no | |
5089 | ac_save_CC=$CC | |
5090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5091 | /* end confdefs.h. */ | |
5092 | #include <stdarg.h> | |
5093 | #include <stdio.h> | |
22e05272 | 5094 | struct stat; |
d4c059d5 ILT |
5095 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
5096 | struct buf { int x; }; | |
5097 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
5098 | static char *e (p, i) | |
5099 | char **p; | |
5100 | int i; | |
5101 | { | |
5102 | return p[i]; | |
5103 | } | |
5104 | static char *f (char * (*g) (char **, int), char **p, ...) | |
5105 | { | |
5106 | char *s; | |
5107 | va_list v; | |
5108 | va_start (v,p); | |
5109 | s = g (p, va_arg (v,int)); | |
5110 | va_end (v); | |
5111 | return s; | |
5112 | } | |
5113 | ||
5114 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
5115 | function prototypes and stuff, but not '\xHH' hex character constants. | |
5116 | These don't provoke an error unfortunately, instead are silently treated | |
5117 | as 'x'. The following induces an error, until -std is added to get | |
5118 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
5119 | array size at least. It's necessary to write '\x00'==0 to get something | |
5120 | that's true only with -std. */ | |
5121 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
5122 | ||
5123 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
5124 | inside strings and character constants. */ | |
5125 | #define FOO(x) 'x' | |
5126 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
5127 | ||
5128 | int test (int i, double x); | |
5129 | struct s1 {int (*f) (int a);}; | |
5130 | struct s2 {int (*f) (double a);}; | |
5131 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
5132 | int argc; | |
5133 | char **argv; | |
5134 | int | |
5135 | main () | |
5136 | { | |
5137 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
5138 | ; | |
5139 | return 0; | |
5140 | } | |
5141 | _ACEOF | |
5142 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
5143 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
5144 | do | |
5145 | CC="$ac_save_CC $ac_arg" | |
5146 | if ac_fn_c_try_compile "$LINENO"; then : | |
5147 | ac_cv_prog_cc_c89=$ac_arg | |
eff02e4f | 5148 | fi |
d4c059d5 ILT |
5149 | rm -f core conftest.err conftest.$ac_objext |
5150 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
5151 | done | |
5152 | rm -f conftest.$ac_ext | |
5153 | CC=$ac_save_CC | |
eff02e4f ILT |
5154 | |
5155 | fi | |
d4c059d5 ILT |
5156 | # AC_CACHE_VAL |
5157 | case "x$ac_cv_prog_cc_c89" in | |
5158 | x) | |
5159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5160 | $as_echo "none needed" >&6; } ;; | |
5161 | xno) | |
5162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5163 | $as_echo "unsupported" >&6; } ;; | |
5164 | *) | |
5165 | CC="$CC $ac_cv_prog_cc_c89" | |
5166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
5167 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
5168 | esac | |
5169 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
eff02e4f | 5170 | |
eff02e4f ILT |
5171 | fi |
5172 | ||
d4c059d5 ILT |
5173 | ac_ext=c |
5174 | ac_cpp='$CPP $CPPFLAGS' | |
5175 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5176 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5177 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
eff02e4f | 5178 | |
22e05272 JM |
5179 | ac_ext=c |
5180 | ac_cpp='$CPP $CPPFLAGS' | |
5181 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5182 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5183 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
5185 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
5186 | if ${am_cv_prog_cc_c_o+:} false; then : | |
5187 | $as_echo_n "(cached) " >&6 | |
5188 | else | |
5189 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5190 | /* end confdefs.h. */ | |
5191 | ||
5192 | int | |
5193 | main () | |
5194 | { | |
5195 | ||
5196 | ; | |
5197 | return 0; | |
5198 | } | |
5199 | _ACEOF | |
5200 | # Make sure it works both with $CC and with simple cc. | |
5201 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
5202 | # compilers refuse to overwrite an existing .o file with -o, | |
5203 | # though they will create one. | |
5204 | am_cv_prog_cc_c_o=yes | |
5205 | for am_i in 1 2; do | |
5206 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
5207 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
5208 | ac_status=$? | |
5209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5210 | (exit $ac_status); } \ | |
5211 | && test -f conftest2.$ac_objext; then | |
5212 | : OK | |
5213 | else | |
5214 | am_cv_prog_cc_c_o=no | |
5215 | break | |
5216 | fi | |
5217 | done | |
5218 | rm -f core conftest* | |
5219 | unset am_i | |
5220 | fi | |
5221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
5222 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
5223 | if test "$am_cv_prog_cc_c_o" != yes; then | |
5224 | # Losing compiler, so override with the script. | |
5225 | # FIXME: It is wrong to rewrite CC. | |
5226 | # But if we don't then we get into trouble of one sort or another. | |
5227 | # A longer-term fix would be to have automake use am__CC in this case, | |
5228 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
5229 | CC="$am_aux_dir/compile $CC" | |
5230 | fi | |
5231 | ac_ext=c | |
5232 | ac_cpp='$CPP $CPPFLAGS' | |
5233 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5234 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5235 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5236 | ||
5237 | ||
eff02e4f ILT |
5238 | |
5239 | ||
5240 | ||
5241 | ||
5242 | if test -n "$ac_tool_prefix"; then | |
5243 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5244 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5246 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5247 | if ${ac_cv_prog_RANLIB+:} false; then : |
eff02e4f ILT |
5248 | $as_echo_n "(cached) " >&6 |
5249 | else | |
5250 | if test -n "$RANLIB"; then | |
5251 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5252 | else | |
5253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5254 | for as_dir in $PATH | |
5255 | do | |
5256 | IFS=$as_save_IFS | |
5257 | test -z "$as_dir" && as_dir=. | |
5258 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5259 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
eff02e4f ILT |
5260 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
5261 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5262 | break 2 | |
5263 | fi | |
5264 | done | |
5265 | done | |
5266 | IFS=$as_save_IFS | |
5267 | ||
5268 | fi | |
5269 | fi | |
5270 | RANLIB=$ac_cv_prog_RANLIB | |
5271 | if test -n "$RANLIB"; then | |
5272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
5273 | $as_echo "$RANLIB" >&6; } | |
5274 | else | |
5275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5276 | $as_echo "no" >&6; } | |
5277 | fi | |
5278 | ||
5279 | ||
5280 | fi | |
5281 | if test -z "$ac_cv_prog_RANLIB"; then | |
5282 | ac_ct_RANLIB=$RANLIB | |
5283 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5284 | set dummy ranlib; ac_word=$2 | |
5285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5286 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5287 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
eff02e4f ILT |
5288 | $as_echo_n "(cached) " >&6 |
5289 | else | |
5290 | if test -n "$ac_ct_RANLIB"; then | |
5291 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5292 | else | |
5293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5294 | for as_dir in $PATH | |
5295 | do | |
5296 | IFS=$as_save_IFS | |
5297 | test -z "$as_dir" && as_dir=. | |
5298 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5299 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
eff02e4f ILT |
5300 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
5301 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5302 | break 2 | |
5303 | fi | |
5304 | done | |
5305 | done | |
5306 | IFS=$as_save_IFS | |
5307 | ||
5308 | fi | |
5309 | fi | |
5310 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5311 | if test -n "$ac_ct_RANLIB"; then | |
5312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
5313 | $as_echo "$ac_ct_RANLIB" >&6; } | |
5314 | else | |
5315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5316 | $as_echo "no" >&6; } | |
5317 | fi | |
5318 | ||
5319 | if test "x$ac_ct_RANLIB" = x; then | |
5320 | RANLIB=":" | |
5321 | else | |
5322 | case $cross_compiling:$ac_tool_warned in | |
5323 | yes:) | |
5324 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5325 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5326 | ac_tool_warned=yes ;; | |
5327 | esac | |
5328 | RANLIB=$ac_ct_RANLIB | |
5329 | fi | |
5330 | else | |
5331 | RANLIB="$ac_cv_prog_RANLIB" | |
5332 | fi | |
5333 | ||
5334 | ||
5335 | for ac_prog in gawk mawk nawk awk | |
5336 | do | |
5337 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5338 | set dummy $ac_prog; ac_word=$2 | |
5339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5340 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5341 | if ${ac_cv_prog_AWK+:} false; then : |
eff02e4f ILT |
5342 | $as_echo_n "(cached) " >&6 |
5343 | else | |
5344 | if test -n "$AWK"; then | |
5345 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
5346 | else | |
5347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5348 | for as_dir in $PATH | |
5349 | do | |
5350 | IFS=$as_save_IFS | |
5351 | test -z "$as_dir" && as_dir=. | |
5352 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5353 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
eff02e4f ILT |
5354 | ac_cv_prog_AWK="$ac_prog" |
5355 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5356 | break 2 | |
5357 | fi | |
5358 | done | |
5359 | done | |
5360 | IFS=$as_save_IFS | |
5361 | ||
5362 | fi | |
5363 | fi | |
5364 | AWK=$ac_cv_prog_AWK | |
5365 | if test -n "$AWK"; then | |
5366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
5367 | $as_echo "$AWK" >&6; } | |
5368 | else | |
5369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5370 | $as_echo "no" >&6; } | |
5371 | fi | |
5372 | ||
5373 | ||
5374 | test -n "$AWK" && break | |
5375 | done | |
5376 | ||
5377 | case "$AWK" in | |
22e05272 | 5378 | "") as_fn_error $? "can't build without awk" "$LINENO" 5 ;; |
eff02e4f ILT |
5379 | esac |
5380 | ||
10f48858 TV |
5381 | # Extract the first word of "dwz", so it can be a program name with args. |
5382 | set dummy dwz; ac_word=$2 | |
5383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5384 | $as_echo_n "checking for $ac_word... " >&6; } | |
5385 | if ${ac_cv_prog_DWZ+:} false; then : | |
5386 | $as_echo_n "(cached) " >&6 | |
5387 | else | |
5388 | if test -n "$DWZ"; then | |
5389 | ac_cv_prog_DWZ="$DWZ" # Let the user override the test. | |
5390 | else | |
5391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5392 | for as_dir in $PATH | |
5393 | do | |
5394 | IFS=$as_save_IFS | |
5395 | test -z "$as_dir" && as_dir=. | |
5396 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5397 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5398 | ac_cv_prog_DWZ="dwz" | |
5399 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5400 | break 2 | |
5401 | fi | |
5402 | done | |
5403 | done | |
5404 | IFS=$as_save_IFS | |
5405 | ||
5406 | fi | |
5407 | fi | |
5408 | DWZ=$ac_cv_prog_DWZ | |
5409 | if test -n "$DWZ"; then | |
5410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DWZ" >&5 | |
5411 | $as_echo "$DWZ" >&6; } | |
5412 | else | |
5413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5414 | $as_echo "no" >&6; } | |
5415 | fi | |
5416 | ||
5417 | ||
5418 | if test "$DWZ" != ""; then | |
5419 | HAVE_DWZ_TRUE= | |
5420 | HAVE_DWZ_FALSE='#' | |
5421 | else | |
5422 | HAVE_DWZ_TRUE='#' | |
5423 | HAVE_DWZ_FALSE= | |
5424 | fi | |
5425 | ||
5426 | ||
eff02e4f ILT |
5427 | case `pwd` in |
5428 | *\ * | *\ *) | |
5429 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5430 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5431 | esac | |
5432 | ||
5433 | ||
5434 | ||
5435 | macro_version='2.2.7a' | |
5436 | macro_revision='1.3134' | |
5437 | ||
5438 | ||
5439 | ||
5440 | ||
5441 | ||
5442 | ||
5443 | ||
5444 | ||
5445 | ||
5446 | ||
5447 | ||
5448 | ||
5449 | ||
5450 | ltmain="$ac_aux_dir/ltmain.sh" | |
5451 | ||
5452 | # Backslashify metacharacters that are still active within | |
5453 | # double-quoted strings. | |
5454 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
5455 | ||
5456 | # Same as above, but do not quote variable references. | |
5457 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
5458 | ||
5459 | # Sed substitution to delay expansion of an escaped shell variable in a | |
5460 | # double_quote_subst'ed string. | |
5461 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
5462 | ||
5463 | # Sed substitution to delay expansion of an escaped single quote. | |
5464 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
5465 | ||
5466 | # Sed substitution to avoid accidental globbing in evaled expressions | |
5467 | no_glob_subst='s/\*/\\\*/g' | |
5468 | ||
5469 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
5470 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5471 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
5472 | ||
5473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
5474 | $as_echo_n "checking how to print strings... " >&6; } | |
5475 | # Test print first, because it will be a builtin if present. | |
5476 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
5477 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5478 | ECHO='print -r --' | |
5479 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5480 | ECHO='printf %s\n' | |
5481 | else | |
5482 | # Use this function as a fallback that always works. | |
5483 | func_fallback_echo () | |
5484 | { | |
5485 | eval 'cat <<_LTECHO_EOF | |
5486 | $1 | |
5487 | _LTECHO_EOF' | |
5488 | } | |
5489 | ECHO='func_fallback_echo' | |
5490 | fi | |
5491 | ||
5492 | # func_echo_all arg... | |
5493 | # Invoke $ECHO with all args, space-separated. | |
5494 | func_echo_all () | |
5495 | { | |
5496 | $ECHO "" | |
5497 | } | |
5498 | ||
5499 | case "$ECHO" in | |
5500 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
5501 | $as_echo "printf" >&6; } ;; | |
5502 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5503 | $as_echo "print -r" >&6; } ;; | |
5504 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5505 | $as_echo "cat" >&6; } ;; | |
5506 | esac | |
5507 | ||
5508 | ||
5509 | ||
5510 | ||
5511 | ||
5512 | ||
5513 | ||
5514 | ||
5515 | ||
5516 | ||
5517 | ||
5518 | ||
5519 | ||
5520 | ||
5521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
d4c059d5 | 5522 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
22e05272 | 5523 | if ${ac_cv_path_SED+:} false; then : |
eff02e4f ILT |
5524 | $as_echo_n "(cached) " >&6 |
5525 | else | |
d4c059d5 ILT |
5526 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
5527 | for ac_i in 1 2 3 4 5 6 7; do | |
5528 | ac_script="$ac_script$as_nl$ac_script" | |
5529 | done | |
5530 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5531 | { ac_script=; unset ac_script;} | |
5532 | if test -z "$SED"; then | |
5533 | ac_path_SED_found=false | |
eff02e4f ILT |
5534 | # Loop through the user's path and test for each of PROGNAME-LIST |
5535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d4c059d5 | 5536 | for as_dir in $PATH |
eff02e4f ILT |
5537 | do |
5538 | IFS=$as_save_IFS | |
5539 | test -z "$as_dir" && as_dir=. | |
d4c059d5 | 5540 | for ac_prog in sed gsed; do |
eff02e4f | 5541 | for ac_exec_ext in '' $ac_executable_extensions; do |
d4c059d5 | 5542 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
22e05272 | 5543 | as_fn_executable_p "$ac_path_SED" || continue |
d4c059d5 ILT |
5544 | # Check for GNU ac_path_SED and select it if it is found. |
5545 | # Check for GNU $ac_path_SED | |
5546 | case `"$ac_path_SED" --version 2>&1` in | |
eff02e4f | 5547 | *GNU*) |
d4c059d5 | 5548 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
eff02e4f ILT |
5549 | *) |
5550 | ac_count=0 | |
5551 | $as_echo_n 0123456789 >"conftest.in" | |
5552 | while : | |
5553 | do | |
5554 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5555 | mv "conftest.tmp" "conftest.in" | |
5556 | cp "conftest.in" "conftest.nl" | |
d4c059d5 ILT |
5557 | $as_echo '' >> "conftest.nl" |
5558 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
eff02e4f ILT |
5559 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
5560 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
d4c059d5 | 5561 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
eff02e4f | 5562 | # Best one so far, save it but keep looking for a better one |
d4c059d5 ILT |
5563 | ac_cv_path_SED="$ac_path_SED" |
5564 | ac_path_SED_max=$ac_count | |
eff02e4f ILT |
5565 | fi |
5566 | # 10*(2^10) chars as input seems more than enough | |
5567 | test $ac_count -gt 10 && break | |
5568 | done | |
5569 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5570 | esac | |
5571 | ||
d4c059d5 | 5572 | $ac_path_SED_found && break 3 |
eff02e4f ILT |
5573 | done |
5574 | done | |
5575 | done | |
5576 | IFS=$as_save_IFS | |
d4c059d5 | 5577 | if test -z "$ac_cv_path_SED"; then |
22e05272 | 5578 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
eff02e4f ILT |
5579 | fi |
5580 | else | |
d4c059d5 | 5581 | ac_cv_path_SED=$SED |
eff02e4f ILT |
5582 | fi |
5583 | ||
eff02e4f | 5584 | fi |
d4c059d5 ILT |
5585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
5586 | $as_echo "$ac_cv_path_SED" >&6; } | |
5587 | SED="$ac_cv_path_SED" | |
5588 | rm -f conftest.sed | |
5589 | ||
5590 | test -z "$SED" && SED=sed | |
5591 | Xsed="$SED -e 1s/^X//" | |
5592 | ||
5593 | ||
5594 | ||
5595 | ||
5596 | ||
5597 | ||
5598 | ||
5599 | ||
5600 | ||
eff02e4f ILT |
5601 | |
5602 | ||
5603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
5604 | $as_echo_n "checking for fgrep... " >&6; } | |
22e05272 | 5605 | if ${ac_cv_path_FGREP+:} false; then : |
eff02e4f ILT |
5606 | $as_echo_n "(cached) " >&6 |
5607 | else | |
5608 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
5609 | then ac_cv_path_FGREP="$GREP -F" | |
5610 | else | |
5611 | if test -z "$FGREP"; then | |
5612 | ac_path_FGREP_found=false | |
5613 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5615 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5616 | do | |
5617 | IFS=$as_save_IFS | |
5618 | test -z "$as_dir" && as_dir=. | |
5619 | for ac_prog in fgrep; do | |
5620 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5621 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
22e05272 | 5622 | as_fn_executable_p "$ac_path_FGREP" || continue |
eff02e4f ILT |
5623 | # Check for GNU ac_path_FGREP and select it if it is found. |
5624 | # Check for GNU $ac_path_FGREP | |
5625 | case `"$ac_path_FGREP" --version 2>&1` in | |
5626 | *GNU*) | |
5627 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5628 | *) | |
5629 | ac_count=0 | |
5630 | $as_echo_n 0123456789 >"conftest.in" | |
5631 | while : | |
5632 | do | |
5633 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5634 | mv "conftest.tmp" "conftest.in" | |
5635 | cp "conftest.in" "conftest.nl" | |
5636 | $as_echo 'FGREP' >> "conftest.nl" | |
5637 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5638 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5639 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5640 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5641 | # Best one so far, save it but keep looking for a better one | |
5642 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5643 | ac_path_FGREP_max=$ac_count | |
5644 | fi | |
5645 | # 10*(2^10) chars as input seems more than enough | |
5646 | test $ac_count -gt 10 && break | |
5647 | done | |
5648 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5649 | esac | |
5650 | ||
5651 | $ac_path_FGREP_found && break 3 | |
5652 | done | |
5653 | done | |
5654 | done | |
5655 | IFS=$as_save_IFS | |
5656 | if test -z "$ac_cv_path_FGREP"; then | |
22e05272 | 5657 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
eff02e4f ILT |
5658 | fi |
5659 | else | |
5660 | ac_cv_path_FGREP=$FGREP | |
5661 | fi | |
5662 | ||
5663 | fi | |
5664 | fi | |
5665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
5666 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5667 | FGREP="$ac_cv_path_FGREP" | |
5668 | ||
5669 | ||
5670 | test -z "$GREP" && GREP=grep | |
5671 | ||
5672 | ||
5673 | ||
5674 | ||
5675 | ||
5676 | ||
5677 | ||
5678 | ||
5679 | ||
5680 | ||
5681 | ||
5682 | ||
5683 | ||
5684 | ||
5685 | ||
5686 | ||
5687 | ||
5688 | ||
5689 | ||
5690 | # Check whether --with-gnu-ld was given. | |
5691 | if test "${with_gnu_ld+set}" = set; then : | |
5692 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
5693 | else | |
5694 | with_gnu_ld=no | |
5695 | fi | |
5696 | ||
5697 | ac_prog=ld | |
5698 | if test "$GCC" = yes; then | |
5699 | # Check if gcc -print-prog-name=ld gives a path. | |
5700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
5701 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
5702 | case $host in | |
5703 | *-*-mingw*) | |
5704 | # gcc leaves a trailing carriage return which upsets mingw | |
5705 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5706 | *) | |
5707 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5708 | esac | |
5709 | case $ac_prog in | |
5710 | # Accept absolute paths. | |
5711 | [\\/]* | ?:[\\/]*) | |
5712 | re_direlt='/[^/][^/]*/\.\./' | |
5713 | # Canonicalize the pathname of ld | |
5714 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5715 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5716 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5717 | done | |
5718 | test -z "$LD" && LD="$ac_prog" | |
5719 | ;; | |
5720 | "") | |
5721 | # If it fails, then pretend we aren't using GCC. | |
5722 | ac_prog=ld | |
5723 | ;; | |
5724 | *) | |
5725 | # If it is relative, then search for the first ld in PATH. | |
5726 | with_gnu_ld=unknown | |
5727 | ;; | |
5728 | esac | |
5729 | elif test "$with_gnu_ld" = yes; then | |
5730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
5731 | $as_echo_n "checking for GNU ld... " >&6; } | |
5732 | else | |
5733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
5734 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
5735 | fi | |
22e05272 | 5736 | if ${lt_cv_path_LD+:} false; then : |
eff02e4f ILT |
5737 | $as_echo_n "(cached) " >&6 |
5738 | else | |
5739 | if test -z "$LD"; then | |
5740 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5741 | for ac_dir in $PATH; do | |
5742 | IFS="$lt_save_ifs" | |
5743 | test -z "$ac_dir" && ac_dir=. | |
5744 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5745 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5746 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5747 | # but apparently some variants of GNU ld only accept -v. | |
5748 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5749 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5750 | *GNU* | *'with BFD'*) | |
5751 | test "$with_gnu_ld" != no && break | |
5752 | ;; | |
5753 | *) | |
5754 | test "$with_gnu_ld" != yes && break | |
5755 | ;; | |
5756 | esac | |
5757 | fi | |
5758 | done | |
5759 | IFS="$lt_save_ifs" | |
5760 | else | |
5761 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
5762 | fi | |
5763 | fi | |
5764 | ||
5765 | LD="$lt_cv_path_LD" | |
5766 | if test -n "$LD"; then | |
5767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5768 | $as_echo "$LD" >&6; } | |
5769 | else | |
5770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5771 | $as_echo "no" >&6; } | |
5772 | fi | |
22e05272 | 5773 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
eff02e4f ILT |
5774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
5775 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
22e05272 | 5776 | if ${lt_cv_prog_gnu_ld+:} false; then : |
eff02e4f ILT |
5777 | $as_echo_n "(cached) " >&6 |
5778 | else | |
5779 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
5780 | case `$LD -v 2>&1 </dev/null` in | |
5781 | *GNU* | *'with BFD'*) | |
5782 | lt_cv_prog_gnu_ld=yes | |
5783 | ;; | |
5784 | *) | |
5785 | lt_cv_prog_gnu_ld=no | |
5786 | ;; | |
5787 | esac | |
5788 | fi | |
5789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
5790 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
5791 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
5792 | ||
5793 | ||
5794 | ||
5795 | ||
5796 | ||
5797 | ||
5798 | ||
5799 | ||
5800 | ||
5801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
5802 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
22e05272 | 5803 | if ${lt_cv_path_NM+:} false; then : |
eff02e4f ILT |
5804 | $as_echo_n "(cached) " >&6 |
5805 | else | |
5806 | if test -n "$NM"; then | |
5807 | # Let the user override the test. | |
5808 | lt_cv_path_NM="$NM" | |
5809 | else | |
5810 | lt_nm_to_check="${ac_tool_prefix}nm" | |
5811 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5812 | lt_nm_to_check="$lt_nm_to_check nm" | |
5813 | fi | |
5814 | for lt_tmp_nm in $lt_nm_to_check; do | |
5815 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5816 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5817 | IFS="$lt_save_ifs" | |
5818 | test -z "$ac_dir" && ac_dir=. | |
5819 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5820 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5821 | # Check to see if the nm accepts a BSD-compat flag. | |
5822 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5823 | # nm: unknown option "B" ignored | |
5824 | # Tru64's nm complains that /dev/null is an invalid object file | |
5825 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5826 | */dev/null* | *'Invalid file or object type'*) | |
5827 | lt_cv_path_NM="$tmp_nm -B" | |
5828 | break | |
5829 | ;; | |
5830 | *) | |
5831 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5832 | */dev/null*) | |
5833 | lt_cv_path_NM="$tmp_nm -p" | |
5834 | break | |
5835 | ;; | |
5836 | *) | |
5837 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5838 | continue # so that we can try to find one that supports BSD flags | |
5839 | ;; | |
5840 | esac | |
5841 | ;; | |
5842 | esac | |
5843 | fi | |
5844 | done | |
5845 | IFS="$lt_save_ifs" | |
5846 | done | |
5847 | : ${lt_cv_path_NM=no} | |
5848 | fi | |
5849 | fi | |
5850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
5851 | $as_echo "$lt_cv_path_NM" >&6; } | |
5852 | if test "$lt_cv_path_NM" != "no"; then | |
5853 | NM="$lt_cv_path_NM" | |
5854 | else | |
5855 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
5856 | if test -n "$DUMPBIN"; then : | |
5857 | # Let the user override the test. | |
5858 | else | |
5859 | if test -n "$ac_tool_prefix"; then | |
5860 | for ac_prog in dumpbin "link -dump" | |
5861 | do | |
5862 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5863 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5865 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5866 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
eff02e4f ILT |
5867 | $as_echo_n "(cached) " >&6 |
5868 | else | |
5869 | if test -n "$DUMPBIN"; then | |
5870 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
5871 | else | |
5872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5873 | for as_dir in $PATH | |
5874 | do | |
5875 | IFS=$as_save_IFS | |
5876 | test -z "$as_dir" && as_dir=. | |
5877 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5878 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
eff02e4f ILT |
5879 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
5880 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5881 | break 2 | |
5882 | fi | |
5883 | done | |
5884 | done | |
5885 | IFS=$as_save_IFS | |
5886 | ||
5887 | fi | |
5888 | fi | |
5889 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
5890 | if test -n "$DUMPBIN"; then | |
5891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
5892 | $as_echo "$DUMPBIN" >&6; } | |
5893 | else | |
5894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5895 | $as_echo "no" >&6; } | |
5896 | fi | |
5897 | ||
5898 | ||
5899 | test -n "$DUMPBIN" && break | |
5900 | done | |
5901 | fi | |
5902 | if test -z "$DUMPBIN"; then | |
5903 | ac_ct_DUMPBIN=$DUMPBIN | |
5904 | for ac_prog in dumpbin "link -dump" | |
5905 | do | |
5906 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5907 | set dummy $ac_prog; ac_word=$2 | |
5908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5909 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5910 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
eff02e4f ILT |
5911 | $as_echo_n "(cached) " >&6 |
5912 | else | |
5913 | if test -n "$ac_ct_DUMPBIN"; then | |
5914 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
5915 | else | |
5916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5917 | for as_dir in $PATH | |
5918 | do | |
5919 | IFS=$as_save_IFS | |
5920 | test -z "$as_dir" && as_dir=. | |
5921 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5922 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
eff02e4f ILT |
5923 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
5924 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5925 | break 2 | |
5926 | fi | |
5927 | done | |
5928 | done | |
5929 | IFS=$as_save_IFS | |
5930 | ||
5931 | fi | |
5932 | fi | |
5933 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
5934 | if test -n "$ac_ct_DUMPBIN"; then | |
5935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
5936 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
5937 | else | |
5938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5939 | $as_echo "no" >&6; } | |
5940 | fi | |
5941 | ||
5942 | ||
5943 | test -n "$ac_ct_DUMPBIN" && break | |
5944 | done | |
5945 | ||
5946 | if test "x$ac_ct_DUMPBIN" = x; then | |
5947 | DUMPBIN=":" | |
5948 | else | |
5949 | case $cross_compiling:$ac_tool_warned in | |
5950 | yes:) | |
5951 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5952 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5953 | ac_tool_warned=yes ;; | |
5954 | esac | |
5955 | DUMPBIN=$ac_ct_DUMPBIN | |
5956 | fi | |
5957 | fi | |
5958 | ||
5959 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | |
5960 | *COFF*) | |
5961 | DUMPBIN="$DUMPBIN -symbols" | |
5962 | ;; | |
5963 | *) | |
5964 | DUMPBIN=: | |
5965 | ;; | |
5966 | esac | |
5967 | fi | |
5968 | ||
5969 | if test "$DUMPBIN" != ":"; then | |
5970 | NM="$DUMPBIN" | |
5971 | fi | |
5972 | fi | |
5973 | test -z "$NM" && NM=nm | |
5974 | ||
5975 | ||
5976 | ||
5977 | ||
5978 | ||
5979 | ||
5980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
5981 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
22e05272 | 5982 | if ${lt_cv_nm_interface+:} false; then : |
eff02e4f ILT |
5983 | $as_echo_n "(cached) " >&6 |
5984 | else | |
5985 | lt_cv_nm_interface="BSD nm" | |
5986 | echo "int some_variable = 0;" > conftest.$ac_ext | |
5987 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
5988 | (eval "$ac_compile" 2>conftest.err) | |
5989 | cat conftest.err >&5 | |
5990 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
5991 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
5992 | cat conftest.err >&5 | |
5993 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
5994 | cat conftest.out >&5 | |
5995 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5996 | lt_cv_nm_interface="MS dumpbin" | |
5997 | fi | |
5998 | rm -f conftest* | |
5999 | fi | |
6000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
6001 | $as_echo "$lt_cv_nm_interface" >&6; } | |
6002 | ||
6003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
6004 | $as_echo_n "checking whether ln -s works... " >&6; } | |
6005 | LN_S=$as_ln_s | |
6006 | if test "$LN_S" = "ln -s"; then | |
6007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6008 | $as_echo "yes" >&6; } | |
6009 | else | |
6010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
6011 | $as_echo "no, using $LN_S" >&6; } | |
6012 | fi | |
6013 | ||
6014 | # find the maximum length of command line arguments | |
6015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
6016 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
22e05272 | 6017 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
eff02e4f ILT |
6018 | $as_echo_n "(cached) " >&6 |
6019 | else | |
6020 | i=0 | |
6021 | teststring="ABCD" | |
6022 | ||
6023 | case $build_os in | |
6024 | msdosdjgpp*) | |
6025 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
6026 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
6027 | # during glob expansion). Even if it were fixed, the result of this | |
6028 | # check would be larger than it should be. | |
6029 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
6030 | ;; | |
6031 | ||
6032 | gnu*) | |
6033 | # Under GNU Hurd, this test is not required because there is | |
6034 | # no limit to the length of command line arguments. | |
6035 | # Libtool will interpret -1 as no limit whatsoever | |
6036 | lt_cv_sys_max_cmd_len=-1; | |
6037 | ;; | |
6038 | ||
6039 | cygwin* | mingw* | cegcc*) | |
6040 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
6041 | # about 5 minutes as the teststring grows exponentially. | |
6042 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
6043 | # you end up with a "frozen" computer, even though with patience | |
6044 | # the test eventually succeeds (with a max line length of 256k). | |
6045 | # Instead, let's just punt: use the minimum linelength reported by | |
6046 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
6047 | lt_cv_sys_max_cmd_len=8192; | |
6048 | ;; | |
6049 | ||
6050 | mint*) | |
6051 | # On MiNT this can take a long time and run out of memory. | |
6052 | lt_cv_sys_max_cmd_len=8192; | |
6053 | ;; | |
6054 | ||
6055 | amigaos*) | |
6056 | # On AmigaOS with pdksh, this test takes hours, literally. | |
6057 | # So we just punt and use a minimum line length of 8192. | |
6058 | lt_cv_sys_max_cmd_len=8192; | |
6059 | ;; | |
6060 | ||
6061 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
6062 | # This has been around since 386BSD, at least. Likely further. | |
6063 | if test -x /sbin/sysctl; then | |
6064 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
6065 | elif test -x /usr/sbin/sysctl; then | |
6066 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
6067 | else | |
6068 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
6069 | fi | |
6070 | # And add a safety zone | |
6071 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6072 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6073 | ;; | |
6074 | ||
6075 | interix*) | |
6076 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
6077 | lt_cv_sys_max_cmd_len=196608 | |
6078 | ;; | |
6079 | ||
6080 | osf*) | |
6081 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
6082 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
6083 | # nice to cause kernel panics so lets avoid the loop below. | |
6084 | # First set a reasonable default. | |
6085 | lt_cv_sys_max_cmd_len=16384 | |
6086 | # | |
6087 | if test -x /sbin/sysconfig; then | |
6088 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
6089 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
6090 | esac | |
6091 | fi | |
6092 | ;; | |
6093 | sco3.2v5*) | |
6094 | lt_cv_sys_max_cmd_len=102400 | |
6095 | ;; | |
6096 | sysv5* | sco5v6* | sysv4.2uw2*) | |
6097 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
6098 | if test -n "$kargmax"; then | |
6099 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
6100 | else | |
6101 | lt_cv_sys_max_cmd_len=32768 | |
6102 | fi | |
6103 | ;; | |
6104 | *) | |
6105 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
6106 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
6107 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6108 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6109 | else | |
6110 | # Make teststring a little bigger before we do anything with it. | |
6111 | # a 1K string should be a reasonable start. | |
6112 | for i in 1 2 3 4 5 6 7 8 ; do | |
6113 | teststring=$teststring$teststring | |
6114 | done | |
6115 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
6116 | # If test is not a shell built-in, we'll probably end up computing a | |
6117 | # maximum length that is only half of the actual maximum length, but | |
6118 | # we can't tell. | |
6119 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ | |
6120 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
6121 | test $i != 17 # 1/2 MB should be enough | |
6122 | do | |
6123 | i=`expr $i + 1` | |
6124 | teststring=$teststring$teststring | |
6125 | done | |
6126 | # Only check the string length outside the loop. | |
6127 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
6128 | teststring= | |
6129 | # Add a significant safety factor because C++ compilers can tack on | |
6130 | # massive amounts of additional arguments before passing them to the | |
6131 | # linker. It appears as though 1/2 is a usable value. | |
6132 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
6133 | fi | |
6134 | ;; | |
6135 | esac | |
6136 | ||
6137 | fi | |
6138 | ||
6139 | if test -n $lt_cv_sys_max_cmd_len ; then | |
6140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
6141 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
6142 | else | |
6143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
6144 | $as_echo "none" >&6; } | |
6145 | fi | |
6146 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
6147 | ||
6148 | ||
6149 | ||
6150 | ||
6151 | ||
6152 | ||
6153 | : ${CP="cp -f"} | |
6154 | : ${MV="mv -f"} | |
6155 | : ${RM="rm -f"} | |
6156 | ||
6157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
6158 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
6159 | # Try some XSI features | |
6160 | xsi_shell=no | |
6161 | ( _lt_dummy="a/b/c" | |
6162 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
6163 | = c,a/b,, \ | |
6164 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
6165 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
6166 | && xsi_shell=yes | |
6167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
6168 | $as_echo "$xsi_shell" >&6; } | |
6169 | ||
6170 | ||
6171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
6172 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
6173 | lt_shell_append=no | |
6174 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
6175 | >/dev/null 2>&1 \ | |
6176 | && lt_shell_append=yes | |
6177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
6178 | $as_echo "$lt_shell_append" >&6; } | |
6179 | ||
6180 | ||
6181 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
6182 | lt_unset=unset | |
6183 | else | |
6184 | lt_unset=false | |
6185 | fi | |
6186 | ||
6187 | ||
6188 | ||
6189 | ||
6190 | ||
6191 | # test EBCDIC or ASCII | |
6192 | case `echo X|tr X '\101'` in | |
6193 | A) # ASCII based system | |
6194 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6195 | lt_SP2NL='tr \040 \012' | |
6196 | lt_NL2SP='tr \015\012 \040\040' | |
6197 | ;; | |
6198 | *) # EBCDIC based system | |
6199 | lt_SP2NL='tr \100 \n' | |
6200 | lt_NL2SP='tr \r\n \100\100' | |
6201 | ;; | |
6202 | esac | |
6203 | ||
6204 | ||
6205 | ||
6206 | ||
6207 | ||
6208 | ||
6209 | ||
6210 | ||
6211 | ||
6212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
6213 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
22e05272 | 6214 | if ${lt_cv_ld_reload_flag+:} false; then : |
eff02e4f ILT |
6215 | $as_echo_n "(cached) " >&6 |
6216 | else | |
6217 | lt_cv_ld_reload_flag='-r' | |
6218 | fi | |
6219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
6220 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
6221 | reload_flag=$lt_cv_ld_reload_flag | |
6222 | case $reload_flag in | |
6223 | "" | " "*) ;; | |
6224 | *) reload_flag=" $reload_flag" ;; | |
6225 | esac | |
6226 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6227 | case $host_os in | |
6228 | darwin*) | |
6229 | if test "$GCC" = yes; then | |
6230 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
6231 | else | |
6232 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6233 | fi | |
6234 | ;; | |
6235 | esac | |
6236 | ||
6237 | ||
6238 | ||
6239 | ||
6240 | ||
6241 | ||
6242 | ||
6243 | ||
6244 | ||
6245 | if test -n "$ac_tool_prefix"; then | |
6246 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
6247 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
6248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6249 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6250 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
eff02e4f ILT |
6251 | $as_echo_n "(cached) " >&6 |
6252 | else | |
6253 | if test -n "$OBJDUMP"; then | |
6254 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
6255 | else | |
6256 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6257 | for as_dir in $PATH | |
6258 | do | |
6259 | IFS=$as_save_IFS | |
6260 | test -z "$as_dir" && as_dir=. | |
6261 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6262 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
eff02e4f ILT |
6263 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
6264 | $as_echo "$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 | fi | |
6273 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
6274 | if test -n "$OBJDUMP"; then | |
6275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
6276 | $as_echo "$OBJDUMP" >&6; } | |
6277 | else | |
6278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6279 | $as_echo "no" >&6; } | |
6280 | fi | |
6281 | ||
6282 | ||
6283 | fi | |
6284 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
6285 | ac_ct_OBJDUMP=$OBJDUMP | |
6286 | # Extract the first word of "objdump", so it can be a program name with args. | |
6287 | set dummy objdump; ac_word=$2 | |
6288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6289 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6290 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
eff02e4f ILT |
6291 | $as_echo_n "(cached) " >&6 |
6292 | else | |
6293 | if test -n "$ac_ct_OBJDUMP"; then | |
6294 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
6295 | else | |
6296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6297 | for as_dir in $PATH | |
6298 | do | |
6299 | IFS=$as_save_IFS | |
6300 | test -z "$as_dir" && as_dir=. | |
6301 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6302 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
eff02e4f ILT |
6303 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
6304 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6305 | break 2 | |
6306 | fi | |
6307 | done | |
6308 | done | |
6309 | IFS=$as_save_IFS | |
6310 | ||
6311 | fi | |
6312 | fi | |
6313 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
6314 | if test -n "$ac_ct_OBJDUMP"; then | |
6315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
6316 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
6317 | else | |
6318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6319 | $as_echo "no" >&6; } | |
6320 | fi | |
6321 | ||
6322 | if test "x$ac_ct_OBJDUMP" = x; then | |
6323 | OBJDUMP="false" | |
6324 | else | |
6325 | case $cross_compiling:$ac_tool_warned in | |
6326 | yes:) | |
6327 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6328 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6329 | ac_tool_warned=yes ;; | |
6330 | esac | |
6331 | OBJDUMP=$ac_ct_OBJDUMP | |
6332 | fi | |
6333 | else | |
6334 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
6335 | fi | |
6336 | ||
6337 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
6338 | ||
6339 | ||
6340 | ||
6341 | ||
6342 | ||
6343 | ||
6344 | ||
6345 | ||
6346 | ||
6347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | |
6348 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
22e05272 | 6349 | if ${lt_cv_deplibs_check_method+:} false; then : |
eff02e4f ILT |
6350 | $as_echo_n "(cached) " >&6 |
6351 | else | |
6352 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
6353 | lt_cv_file_magic_test_file= | |
6354 | lt_cv_deplibs_check_method='unknown' | |
6355 | # Need to set the preceding variable on all platforms that support | |
6356 | # interlibrary dependencies. | |
6357 | # 'none' -- dependencies not supported. | |
6358 | # `unknown' -- same as none, but documents that we really don't know. | |
6359 | # 'pass_all' -- all dependencies passed with no checks. | |
6360 | # 'test_compile' -- check by making test program. | |
6361 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6362 | # which responds to the $file_magic_cmd with a given extended regex. | |
6363 | # If you have `file' or equivalent on your system and you're not sure | |
6364 | # whether `pass_all' will *always* work, you probably want this one. | |
6365 | ||
6366 | case $host_os in | |
6367 | aix[4-9]*) | |
6368 | lt_cv_deplibs_check_method=pass_all | |
6369 | ;; | |
6370 | ||
6371 | beos*) | |
6372 | lt_cv_deplibs_check_method=pass_all | |
6373 | ;; | |
6374 | ||
6375 | bsdi[45]*) | |
6376 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6377 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6378 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6379 | ;; | |
6380 | ||
6381 | cygwin*) | |
6382 | # func_win32_libid is a shell function defined in ltmain.sh | |
6383 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6384 | lt_cv_file_magic_cmd='func_win32_libid' | |
6385 | ;; | |
6386 | ||
6387 | mingw* | pw32*) | |
6388 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6389 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6390 | # unless we find 'file', for example because we are cross-compiling. | |
6391 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
6392 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
6393 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6394 | lt_cv_file_magic_cmd='func_win32_libid' | |
6395 | else | |
6396 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
6397 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6398 | fi | |
6399 | ;; | |
6400 | ||
6401 | cegcc*) | |
6402 | # use the weaker test based on 'objdump'. See mingw*. | |
6403 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6404 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6405 | ;; | |
6406 | ||
6407 | darwin* | rhapsody*) | |
6408 | lt_cv_deplibs_check_method=pass_all | |
6409 | ;; | |
6410 | ||
6411 | freebsd* | dragonfly*) | |
6412 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6413 | case $host_cpu in | |
6414 | i*86 ) | |
6415 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6416 | # Let's accept both of them until this is cleared up. | |
6417 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6418 | lt_cv_file_magic_cmd=/usr/bin/file | |
6419 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6420 | ;; | |
6421 | esac | |
6422 | else | |
6423 | lt_cv_deplibs_check_method=pass_all | |
6424 | fi | |
6425 | ;; | |
6426 | ||
6427 | gnu*) | |
6428 | lt_cv_deplibs_check_method=pass_all | |
6429 | ;; | |
6430 | ||
6431 | haiku*) | |
6432 | lt_cv_deplibs_check_method=pass_all | |
6433 | ;; | |
6434 | ||
6435 | hpux10.20* | hpux11*) | |
6436 | lt_cv_file_magic_cmd=/usr/bin/file | |
6437 | case $host_cpu in | |
6438 | ia64*) | |
6439 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6440 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6441 | ;; | |
6442 | hppa*64*) | |
6443 | 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]' | |
6444 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6445 | ;; | |
6446 | *) | |
6447 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
6448 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6449 | ;; | |
6450 | esac | |
6451 | ;; | |
6452 | ||
6453 | interix[3-9]*) | |
6454 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6455 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6456 | ;; | |
6457 | ||
6458 | irix5* | irix6* | nonstopux*) | |
6459 | case $LD in | |
6460 | *-32|*"-32 ") libmagic=32-bit;; | |
6461 | *-n32|*"-n32 ") libmagic=N32;; | |
6462 | *-64|*"-64 ") libmagic=64-bit;; | |
6463 | *) libmagic=never-match;; | |
6464 | esac | |
6465 | lt_cv_deplibs_check_method=pass_all | |
6466 | ;; | |
6467 | ||
6468 | # This must be Linux ELF. | |
e9085da5 | 6469 | linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
eff02e4f ILT |
6470 | lt_cv_deplibs_check_method=pass_all |
6471 | ;; | |
6472 | ||
6473 | netbsd*) | |
6474 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6475 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6476 | else | |
6477 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6478 | fi | |
6479 | ;; | |
6480 | ||
6481 | newos6*) | |
6482 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6483 | lt_cv_file_magic_cmd=/usr/bin/file | |
6484 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6485 | ;; | |
6486 | ||
6487 | *nto* | *qnx*) | |
6488 | lt_cv_deplibs_check_method=pass_all | |
6489 | ;; | |
6490 | ||
6491 | openbsd*) | |
6492 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6493 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6494 | else | |
6495 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6496 | fi | |
6497 | ;; | |
6498 | ||
6499 | osf3* | osf4* | osf5*) | |
6500 | lt_cv_deplibs_check_method=pass_all | |
6501 | ;; | |
6502 | ||
6503 | rdos*) | |
6504 | lt_cv_deplibs_check_method=pass_all | |
6505 | ;; | |
6506 | ||
6507 | solaris*) | |
6508 | lt_cv_deplibs_check_method=pass_all | |
6509 | ;; | |
6510 | ||
6511 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
6512 | lt_cv_deplibs_check_method=pass_all | |
6513 | ;; | |
6514 | ||
6515 | sysv4 | sysv4.3*) | |
6516 | case $host_vendor in | |
6517 | motorola) | |
6518 | 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]' | |
6519 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6520 | ;; | |
6521 | ncr) | |
6522 | lt_cv_deplibs_check_method=pass_all | |
6523 | ;; | |
6524 | sequent) | |
6525 | lt_cv_file_magic_cmd='/bin/file' | |
6526 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6527 | ;; | |
6528 | sni) | |
6529 | lt_cv_file_magic_cmd='/bin/file' | |
6530 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6531 | lt_cv_file_magic_test_file=/lib/libc.so | |
6532 | ;; | |
6533 | siemens) | |
6534 | lt_cv_deplibs_check_method=pass_all | |
6535 | ;; | |
6536 | pc) | |
6537 | lt_cv_deplibs_check_method=pass_all | |
6538 | ;; | |
6539 | esac | |
6540 | ;; | |
6541 | ||
6542 | tpf*) | |
6543 | lt_cv_deplibs_check_method=pass_all | |
6544 | ;; | |
6545 | esac | |
6546 | ||
6547 | fi | |
6548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
6549 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
6550 | file_magic_cmd=$lt_cv_file_magic_cmd | |
6551 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6552 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
6553 | ||
6554 | ||
6555 | ||
6556 | ||
6557 | ||
6558 | ||
6559 | ||
6560 | ||
6561 | ||
6562 | ||
6563 | ||
6564 | ||
6565 | if test -n "$ac_tool_prefix"; then | |
6566 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6567 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
6568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6569 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6570 | if ${ac_cv_prog_AR+:} false; then : |
eff02e4f ILT |
6571 | $as_echo_n "(cached) " >&6 |
6572 | else | |
6573 | if test -n "$AR"; then | |
6574 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6575 | else | |
6576 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6577 | for as_dir in $PATH | |
6578 | do | |
6579 | IFS=$as_save_IFS | |
6580 | test -z "$as_dir" && as_dir=. | |
6581 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6582 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
eff02e4f ILT |
6583 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
6584 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6585 | break 2 | |
6586 | fi | |
6587 | done | |
6588 | done | |
6589 | IFS=$as_save_IFS | |
6590 | ||
6591 | fi | |
6592 | fi | |
6593 | AR=$ac_cv_prog_AR | |
6594 | if test -n "$AR"; then | |
6595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6596 | $as_echo "$AR" >&6; } | |
6597 | else | |
6598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6599 | $as_echo "no" >&6; } | |
6600 | fi | |
6601 | ||
6602 | ||
6603 | fi | |
6604 | if test -z "$ac_cv_prog_AR"; then | |
6605 | ac_ct_AR=$AR | |
6606 | # Extract the first word of "ar", so it can be a program name with args. | |
6607 | set dummy ar; ac_word=$2 | |
6608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6609 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6610 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
eff02e4f ILT |
6611 | $as_echo_n "(cached) " >&6 |
6612 | else | |
6613 | if test -n "$ac_ct_AR"; then | |
6614 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6615 | else | |
6616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6617 | for as_dir in $PATH | |
6618 | do | |
6619 | IFS=$as_save_IFS | |
6620 | test -z "$as_dir" && as_dir=. | |
6621 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6622 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
eff02e4f ILT |
6623 | ac_cv_prog_ac_ct_AR="ar" |
6624 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6625 | break 2 | |
6626 | fi | |
6627 | done | |
6628 | done | |
6629 | IFS=$as_save_IFS | |
6630 | ||
6631 | fi | |
6632 | fi | |
6633 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6634 | if test -n "$ac_ct_AR"; then | |
6635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6636 | $as_echo "$ac_ct_AR" >&6; } | |
6637 | else | |
6638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6639 | $as_echo "no" >&6; } | |
6640 | fi | |
6641 | ||
6642 | if test "x$ac_ct_AR" = x; then | |
6643 | AR="false" | |
6644 | else | |
6645 | case $cross_compiling:$ac_tool_warned in | |
6646 | yes:) | |
6647 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6648 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6649 | ac_tool_warned=yes ;; | |
6650 | esac | |
6651 | AR=$ac_ct_AR | |
6652 | fi | |
6653 | else | |
6654 | AR="$ac_cv_prog_AR" | |
6655 | fi | |
6656 | ||
6657 | test -z "$AR" && AR=ar | |
6658 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
6659 | ||
6660 | ||
6661 | ||
6662 | ||
6663 | ||
6664 | ||
6665 | ||
6666 | ||
6667 | ||
6668 | ||
6669 | ||
6670 | if test -n "$ac_tool_prefix"; then | |
6671 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6672 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
6673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6674 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6675 | if ${ac_cv_prog_STRIP+:} false; then : |
eff02e4f ILT |
6676 | $as_echo_n "(cached) " >&6 |
6677 | else | |
6678 | if test -n "$STRIP"; then | |
6679 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6680 | else | |
6681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6682 | for as_dir in $PATH | |
6683 | do | |
6684 | IFS=$as_save_IFS | |
6685 | test -z "$as_dir" && as_dir=. | |
6686 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6687 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
eff02e4f ILT |
6688 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
6689 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6690 | break 2 | |
6691 | fi | |
6692 | done | |
6693 | done | |
6694 | IFS=$as_save_IFS | |
6695 | ||
6696 | fi | |
6697 | fi | |
6698 | STRIP=$ac_cv_prog_STRIP | |
6699 | if test -n "$STRIP"; then | |
6700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
6701 | $as_echo "$STRIP" >&6; } | |
6702 | else | |
6703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6704 | $as_echo "no" >&6; } | |
6705 | fi | |
6706 | ||
6707 | ||
6708 | fi | |
6709 | if test -z "$ac_cv_prog_STRIP"; then | |
6710 | ac_ct_STRIP=$STRIP | |
6711 | # Extract the first word of "strip", so it can be a program name with args. | |
6712 | set dummy strip; ac_word=$2 | |
6713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6714 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6715 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
eff02e4f ILT |
6716 | $as_echo_n "(cached) " >&6 |
6717 | else | |
6718 | if test -n "$ac_ct_STRIP"; then | |
6719 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6720 | else | |
6721 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6722 | for as_dir in $PATH | |
6723 | do | |
6724 | IFS=$as_save_IFS | |
6725 | test -z "$as_dir" && as_dir=. | |
6726 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6727 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
eff02e4f ILT |
6728 | ac_cv_prog_ac_ct_STRIP="strip" |
6729 | $as_echo "$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 | fi | |
6738 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6739 | if test -n "$ac_ct_STRIP"; then | |
6740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
6741 | $as_echo "$ac_ct_STRIP" >&6; } | |
6742 | else | |
6743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6744 | $as_echo "no" >&6; } | |
6745 | fi | |
6746 | ||
6747 | if test "x$ac_ct_STRIP" = x; then | |
6748 | STRIP=":" | |
6749 | else | |
6750 | case $cross_compiling:$ac_tool_warned in | |
6751 | yes:) | |
6752 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6753 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6754 | ac_tool_warned=yes ;; | |
6755 | esac | |
6756 | STRIP=$ac_ct_STRIP | |
6757 | fi | |
6758 | else | |
6759 | STRIP="$ac_cv_prog_STRIP" | |
6760 | fi | |
6761 | ||
6762 | test -z "$STRIP" && STRIP=: | |
6763 | ||
6764 | ||
6765 | ||
6766 | ||
6767 | ||
6768 | ||
6769 | if test -n "$ac_tool_prefix"; then | |
6770 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6771 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6773 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6774 | if ${ac_cv_prog_RANLIB+:} false; then : |
eff02e4f ILT |
6775 | $as_echo_n "(cached) " >&6 |
6776 | else | |
6777 | if test -n "$RANLIB"; then | |
6778 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6779 | else | |
6780 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6781 | for as_dir in $PATH | |
6782 | do | |
6783 | IFS=$as_save_IFS | |
6784 | test -z "$as_dir" && as_dir=. | |
6785 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6786 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
eff02e4f ILT |
6787 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6788 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6789 | break 2 | |
6790 | fi | |
6791 | done | |
6792 | done | |
6793 | IFS=$as_save_IFS | |
6794 | ||
6795 | fi | |
6796 | fi | |
6797 | RANLIB=$ac_cv_prog_RANLIB | |
6798 | if test -n "$RANLIB"; then | |
6799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6800 | $as_echo "$RANLIB" >&6; } | |
6801 | else | |
6802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6803 | $as_echo "no" >&6; } | |
6804 | fi | |
6805 | ||
6806 | ||
6807 | fi | |
6808 | if test -z "$ac_cv_prog_RANLIB"; then | |
6809 | ac_ct_RANLIB=$RANLIB | |
6810 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6811 | set dummy ranlib; ac_word=$2 | |
6812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6813 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6814 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
eff02e4f ILT |
6815 | $as_echo_n "(cached) " >&6 |
6816 | else | |
6817 | if test -n "$ac_ct_RANLIB"; then | |
6818 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6819 | else | |
6820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6821 | for as_dir in $PATH | |
6822 | do | |
6823 | IFS=$as_save_IFS | |
6824 | test -z "$as_dir" && as_dir=. | |
6825 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6826 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
eff02e4f ILT |
6827 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6828 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6829 | break 2 | |
6830 | fi | |
6831 | done | |
6832 | done | |
6833 | IFS=$as_save_IFS | |
6834 | ||
6835 | fi | |
6836 | fi | |
6837 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6838 | if test -n "$ac_ct_RANLIB"; then | |
6839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6840 | $as_echo "$ac_ct_RANLIB" >&6; } | |
6841 | else | |
6842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6843 | $as_echo "no" >&6; } | |
6844 | fi | |
6845 | ||
6846 | if test "x$ac_ct_RANLIB" = x; then | |
6847 | RANLIB=":" | |
6848 | else | |
6849 | case $cross_compiling:$ac_tool_warned in | |
6850 | yes:) | |
6851 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6852 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6853 | ac_tool_warned=yes ;; | |
6854 | esac | |
6855 | RANLIB=$ac_ct_RANLIB | |
6856 | fi | |
6857 | else | |
6858 | RANLIB="$ac_cv_prog_RANLIB" | |
6859 | fi | |
6860 | ||
6861 | test -z "$RANLIB" && RANLIB=: | |
6862 | ||
6863 | ||
6864 | ||
6865 | ||
6866 | ||
6867 | ||
6868 | # Determine commands to create old-style static archives. | |
6869 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
6870 | old_postinstall_cmds='chmod 644 $oldlib' | |
6871 | old_postuninstall_cmds= | |
6872 | ||
6873 | if test -n "$RANLIB"; then | |
6874 | case $host_os in | |
6875 | openbsd*) | |
6876 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
6877 | ;; | |
6878 | *) | |
6879 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
6880 | ;; | |
6881 | esac | |
6882 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
6883 | fi | |
6884 | ||
6885 | case $host_os in | |
6886 | darwin*) | |
6887 | lock_old_archive_extraction=yes ;; | |
6888 | *) | |
6889 | lock_old_archive_extraction=no ;; | |
6890 | esac | |
6891 | ||
6892 | ||
6893 | ||
6894 | ||
6895 | ||
6896 | ||
6897 | ||
6898 | ||
6899 | ||
6900 | ||
6901 | ||
6902 | ||
6903 | ||
6904 | ||
6905 | ||
6906 | ||
6907 | ||
6908 | ||
6909 | ||
6910 | ||
6911 | ||
6912 | ||
6913 | ||
6914 | ||
6915 | ||
6916 | ||
6917 | ||
6918 | ||
6919 | ||
6920 | ||
6921 | ||
6922 | ||
6923 | ||
6924 | ||
6925 | ||
6926 | ||
6927 | ||
6928 | ||
6929 | ||
6930 | # If no C compiler was specified, use CC. | |
6931 | LTCC=${LTCC-"$CC"} | |
6932 | ||
6933 | # If no C compiler flags were specified, use CFLAGS. | |
6934 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6935 | ||
6936 | # Allow CC to be a program name with arguments. | |
6937 | compiler=$CC | |
6938 | ||
6939 | ||
6940 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
6941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
6942 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
22e05272 | 6943 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
eff02e4f ILT |
6944 | $as_echo_n "(cached) " >&6 |
6945 | else | |
6946 | ||
6947 | # These are sane defaults that work on at least a few old systems. | |
6948 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
6949 | ||
6950 | # Character class describing NM global symbol codes. | |
6951 | symcode='[BCDEGRST]' | |
6952 | ||
6953 | # Regexp to match symbols that can be accessed directly from C. | |
6954 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
6955 | ||
6956 | # Define system-specific variables. | |
6957 | case $host_os in | |
6958 | aix*) | |
6959 | symcode='[BCDT]' | |
6960 | ;; | |
6961 | cygwin* | mingw* | pw32* | cegcc*) | |
6962 | symcode='[ABCDGISTW]' | |
6963 | ;; | |
6964 | hpux*) | |
6965 | if test "$host_cpu" = ia64; then | |
6966 | symcode='[ABCDEGRST]' | |
6967 | fi | |
6968 | ;; | |
6969 | irix* | nonstopux*) | |
6970 | symcode='[BCDEGRST]' | |
6971 | ;; | |
6972 | osf*) | |
6973 | symcode='[BCDEGQRST]' | |
6974 | ;; | |
6975 | solaris*) | |
6976 | symcode='[BDRT]' | |
6977 | ;; | |
6978 | sco3.2v5*) | |
6979 | symcode='[DT]' | |
6980 | ;; | |
6981 | sysv4.2uw2*) | |
6982 | symcode='[DT]' | |
6983 | ;; | |
6984 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6985 | symcode='[ABDT]' | |
6986 | ;; | |
6987 | sysv4) | |
6988 | symcode='[DFNSTU]' | |
6989 | ;; | |
6990 | esac | |
6991 | ||
6992 | # If we're using GNU nm, then use its standard symbol codes. | |
6993 | case `$NM -V 2>&1` in | |
6994 | *GNU* | *'with BFD'*) | |
6995 | symcode='[ABCDGIRSTW]' ;; | |
6996 | esac | |
6997 | ||
6998 | # Transform an extracted symbol line into a proper C declaration. | |
6999 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7000 | # so use this general approach. | |
7001 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
7002 | ||
7003 | # Transform an extracted symbol line into symbol name and symbol address | |
7004 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
7005 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | |
7006 | ||
7007 | # Handle CRLF in mingw tool chain | |
7008 | opt_cr= | |
7009 | case $build_os in | |
7010 | mingw*) | |
7011 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7012 | ;; | |
7013 | esac | |
7014 | ||
7015 | # Try without a prefix underscore, then with it. | |
7016 | for ac_symprfx in "" "_"; do | |
7017 | ||
7018 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
7019 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
7020 | ||
7021 | # Write the raw and C identifiers. | |
7022 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7023 | # Fake it for dumpbin and say T for any non-static function | |
7024 | # and D for any global variable. | |
7025 | # Also find C++ and __fastcall symbols from MSVC++, | |
7026 | # which start with @ or ?. | |
7027 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7028 | " {last_section=section; section=\$ 3};"\ | |
7029 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
7030 | " \$ 0!~/External *\|/{next};"\ | |
7031 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7032 | " {if(hide[section]) next};"\ | |
7033 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
7034 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
7035 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
7036 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
7037 | " ' prfx=^$ac_symprfx" | |
7038 | else | |
7039 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7040 | fi | |
7041 | ||
7042 | # Check to see that the pipe works correctly. | |
7043 | pipe_works=no | |
7044 | ||
7045 | rm -f conftest* | |
7046 | cat > conftest.$ac_ext <<_LT_EOF | |
7047 | #ifdef __cplusplus | |
7048 | extern "C" { | |
7049 | #endif | |
7050 | char nm_test_var; | |
7051 | void nm_test_func(void); | |
7052 | void nm_test_func(void){} | |
7053 | #ifdef __cplusplus | |
7054 | } | |
7055 | #endif | |
7056 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7057 | _LT_EOF | |
7058 | ||
7059 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7060 | (eval $ac_compile) 2>&5 | |
7061 | ac_status=$? | |
7062 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7063 | test $ac_status = 0; }; then | |
7064 | # Now try to grab the symbols. | |
7065 | nlist=conftest.nm | |
7066 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
7067 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
7068 | ac_status=$? | |
7069 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7070 | test $ac_status = 0; } && test -s "$nlist"; then | |
7071 | # Try sorting and uniquifying the output. | |
7072 | if sort "$nlist" | uniq > "$nlist"T; then | |
7073 | mv -f "$nlist"T "$nlist" | |
7074 | else | |
7075 | rm -f "$nlist"T | |
7076 | fi | |
7077 | ||
7078 | # Make sure that we snagged all the symbols we need. | |
7079 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
7080 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7081 | cat <<_LT_EOF > conftest.$ac_ext | |
7082 | #ifdef __cplusplus | |
7083 | extern "C" { | |
7084 | #endif | |
7085 | ||
7086 | _LT_EOF | |
7087 | # Now generate the symbol file. | |
7088 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
7089 | ||
7090 | cat <<_LT_EOF >> conftest.$ac_ext | |
7091 | ||
7092 | /* The mapping between symbol names and symbols. */ | |
7093 | const struct { | |
7094 | const char *name; | |
7095 | void *address; | |
7096 | } | |
7097 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
7098 | { | |
7099 | { "@PROGRAM@", (void *) 0 }, | |
7100 | _LT_EOF | |
7101 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7102 | cat <<\_LT_EOF >> conftest.$ac_ext | |
7103 | {0, (void *) 0} | |
7104 | }; | |
7105 | ||
7106 | /* This works around a problem in FreeBSD linker */ | |
7107 | #ifdef FREEBSD_WORKAROUND | |
7108 | static const void *lt_preloaded_setup() { | |
7109 | return lt__PROGRAM__LTX_preloaded_symbols; | |
7110 | } | |
7111 | #endif | |
7112 | ||
7113 | #ifdef __cplusplus | |
7114 | } | |
7115 | #endif | |
7116 | _LT_EOF | |
7117 | # Now try linking the two files. | |
7118 | mv conftest.$ac_objext conftstm.$ac_objext | |
7119 | lt_save_LIBS="$LIBS" | |
7120 | lt_save_CFLAGS="$CFLAGS" | |
7121 | LIBS="conftstm.$ac_objext" | |
7122 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
7123 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
7124 | (eval $ac_link) 2>&5 | |
7125 | ac_status=$? | |
7126 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7127 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7128 | pipe_works=yes | |
7129 | fi | |
7130 | LIBS="$lt_save_LIBS" | |
7131 | CFLAGS="$lt_save_CFLAGS" | |
7132 | else | |
7133 | echo "cannot find nm_test_func in $nlist" >&5 | |
7134 | fi | |
7135 | else | |
7136 | echo "cannot find nm_test_var in $nlist" >&5 | |
7137 | fi | |
7138 | else | |
7139 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7140 | fi | |
7141 | else | |
7142 | echo "$progname: failed program was:" >&5 | |
7143 | cat conftest.$ac_ext >&5 | |
7144 | fi | |
7145 | rm -rf conftest* conftst* | |
7146 | ||
7147 | # Do not use the global_symbol_pipe unless it works. | |
7148 | if test "$pipe_works" = yes; then | |
7149 | break | |
7150 | else | |
7151 | lt_cv_sys_global_symbol_pipe= | |
7152 | fi | |
7153 | done | |
7154 | ||
7155 | fi | |
7156 | ||
7157 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
7158 | lt_cv_sys_global_symbol_to_cdecl= | |
7159 | fi | |
7160 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
7161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
7162 | $as_echo "failed" >&6; } | |
7163 | else | |
7164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
7165 | $as_echo "ok" >&6; } | |
7166 | fi | |
7167 | ||
7168 | ||
7169 | ||
7170 | ||
7171 | ||
7172 | ||
7173 | ||
7174 | ||
7175 | ||
7176 | ||
7177 | ||
7178 | ||
7179 | ||
7180 | ||
7181 | ||
7182 | ||
7183 | ||
7184 | ||
7185 | ||
7186 | ||
eff02e4f ILT |
7187 | |
7188 | ||
7189 | # Check whether --enable-libtool-lock was given. | |
7190 | if test "${enable_libtool_lock+set}" = set; then : | |
7191 | enableval=$enable_libtool_lock; | |
7192 | fi | |
7193 | ||
7194 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
7195 | ||
7196 | # Some flags need to be propagated to the compiler or linker for good | |
7197 | # libtool support. | |
7198 | case $host in | |
7199 | ia64-*-hpux*) | |
7200 | # Find out which ABI we are using. | |
7201 | echo 'int i;' > conftest.$ac_ext | |
7202 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7203 | (eval $ac_compile) 2>&5 | |
7204 | ac_status=$? | |
7205 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7206 | test $ac_status = 0; }; then | |
7207 | case `/usr/bin/file conftest.$ac_objext` in | |
7208 | *ELF-32*) | |
7209 | HPUX_IA64_MODE="32" | |
7210 | ;; | |
7211 | *ELF-64*) | |
7212 | HPUX_IA64_MODE="64" | |
7213 | ;; | |
7214 | esac | |
7215 | fi | |
7216 | rm -rf conftest* | |
7217 | ;; | |
7218 | *-*-irix6*) | |
7219 | # Find out which ABI we are using. | |
7220 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
7221 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7222 | (eval $ac_compile) 2>&5 | |
7223 | ac_status=$? | |
7224 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7225 | test $ac_status = 0; }; then | |
7226 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
7227 | case `/usr/bin/file conftest.$ac_objext` in | |
7228 | *32-bit*) | |
7229 | LD="${LD-ld} -melf32bsmip" | |
7230 | ;; | |
7231 | *N32*) | |
7232 | LD="${LD-ld} -melf32bmipn32" | |
7233 | ;; | |
7234 | *64-bit*) | |
7235 | LD="${LD-ld} -melf64bmip" | |
7236 | ;; | |
7237 | esac | |
7238 | else | |
7239 | case `/usr/bin/file conftest.$ac_objext` in | |
7240 | *32-bit*) | |
7241 | LD="${LD-ld} -32" | |
7242 | ;; | |
7243 | *N32*) | |
7244 | LD="${LD-ld} -n32" | |
7245 | ;; | |
7246 | *64-bit*) | |
7247 | LD="${LD-ld} -64" | |
7248 | ;; | |
7249 | esac | |
7250 | fi | |
7251 | fi | |
7252 | rm -rf conftest* | |
7253 | ;; | |
7254 | ||
3cbe17f7 | 7255 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
eff02e4f ILT |
7256 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
7257 | # Find out which ABI we are using. | |
7258 | echo 'int i;' > conftest.$ac_ext | |
7259 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7260 | (eval $ac_compile) 2>&5 | |
7261 | ac_status=$? | |
7262 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7263 | test $ac_status = 0; }; then | |
7264 | case `/usr/bin/file conftest.o` in | |
7265 | *32-bit*) | |
7266 | case $host in | |
7267 | x86_64-*kfreebsd*-gnu) | |
7268 | LD="${LD-ld} -m elf_i386_fbsd" | |
7269 | ;; | |
7270 | x86_64-*linux*) | |
7271 | case `/usr/bin/file conftest.o` in | |
7272 | *x86-64*) | |
7273 | LD="${LD-ld} -m elf32_x86_64" | |
7274 | ;; | |
7275 | *) | |
7276 | LD="${LD-ld} -m elf_i386" | |
7277 | ;; | |
7278 | esac | |
7279 | ;; | |
3cbe17f7 AM |
7280 | powerpc64le-*linux*) |
7281 | LD="${LD-ld} -m elf32lppclinux" | |
7282 | ;; | |
7283 | powerpc64-*linux*) | |
eff02e4f ILT |
7284 | LD="${LD-ld} -m elf32ppclinux" |
7285 | ;; | |
7286 | s390x-*linux*) | |
7287 | LD="${LD-ld} -m elf_s390" | |
7288 | ;; | |
7289 | sparc64-*linux*) | |
7290 | LD="${LD-ld} -m elf32_sparc" | |
7291 | ;; | |
7292 | esac | |
7293 | ;; | |
7294 | *64-bit*) | |
7295 | case $host in | |
7296 | x86_64-*kfreebsd*-gnu) | |
7297 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
7298 | ;; | |
7299 | x86_64-*linux*) | |
7300 | LD="${LD-ld} -m elf_x86_64" | |
7301 | ;; | |
3cbe17f7 AM |
7302 | powerpcle-*linux*) |
7303 | LD="${LD-ld} -m elf64lppc" | |
7304 | ;; | |
7305 | powerpc-*linux*) | |
eff02e4f ILT |
7306 | LD="${LD-ld} -m elf64ppc" |
7307 | ;; | |
7308 | s390*-*linux*|s390*-*tpf*) | |
7309 | LD="${LD-ld} -m elf64_s390" | |
7310 | ;; | |
7311 | sparc*-*linux*) | |
7312 | LD="${LD-ld} -m elf64_sparc" | |
7313 | ;; | |
7314 | esac | |
7315 | ;; | |
7316 | esac | |
7317 | fi | |
7318 | rm -rf conftest* | |
7319 | ;; | |
7320 | ||
7321 | *-*-sco3.2v5*) | |
7322 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
7323 | SAVE_CFLAGS="$CFLAGS" | |
7324 | CFLAGS="$CFLAGS -belf" | |
7325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
7326 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
22e05272 | 7327 | if ${lt_cv_cc_needs_belf+:} false; then : |
eff02e4f ILT |
7328 | $as_echo_n "(cached) " >&6 |
7329 | else | |
7330 | ac_ext=c | |
7331 | ac_cpp='$CPP $CPPFLAGS' | |
7332 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7333 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7334 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7335 | ||
7336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7337 | /* end confdefs.h. */ | |
7338 | ||
7339 | int | |
7340 | main () | |
7341 | { | |
7342 | ||
7343 | ; | |
7344 | return 0; | |
7345 | } | |
7346 | _ACEOF | |
7347 | if ac_fn_c_try_link "$LINENO"; then : | |
7348 | lt_cv_cc_needs_belf=yes | |
7349 | else | |
7350 | lt_cv_cc_needs_belf=no | |
7351 | fi | |
7352 | rm -f core conftest.err conftest.$ac_objext \ | |
7353 | conftest$ac_exeext conftest.$ac_ext | |
7354 | ac_ext=c | |
7355 | ac_cpp='$CPP $CPPFLAGS' | |
7356 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7357 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7358 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7359 | ||
7360 | fi | |
7361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
7362 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7363 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
7364 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7365 | CFLAGS="$SAVE_CFLAGS" | |
7366 | fi | |
7367 | ;; | |
7368 | sparc*-*solaris*) | |
7369 | # Find out which ABI we are using. | |
7370 | echo 'int i;' > conftest.$ac_ext | |
7371 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7372 | (eval $ac_compile) 2>&5 | |
7373 | ac_status=$? | |
7374 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7375 | test $ac_status = 0; }; then | |
7376 | case `/usr/bin/file conftest.o` in | |
7377 | *64-bit*) | |
7378 | case $lt_cv_prog_gnu_ld in | |
7379 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
7380 | *) | |
7381 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7382 | LD="${LD-ld} -64" | |
7383 | fi | |
7384 | ;; | |
7385 | esac | |
7386 | ;; | |
7387 | esac | |
7388 | fi | |
7389 | rm -rf conftest* | |
7390 | ;; | |
7391 | esac | |
7392 | ||
7393 | need_locks="$enable_libtool_lock" | |
7394 | ||
7395 | ||
7396 | case $host_os in | |
7397 | rhapsody* | darwin*) | |
7398 | if test -n "$ac_tool_prefix"; then | |
7399 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7400 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
7401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7402 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7403 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
eff02e4f ILT |
7404 | $as_echo_n "(cached) " >&6 |
7405 | else | |
7406 | if test -n "$DSYMUTIL"; then | |
7407 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7408 | else | |
7409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7410 | for as_dir in $PATH | |
7411 | do | |
7412 | IFS=$as_save_IFS | |
7413 | test -z "$as_dir" && as_dir=. | |
7414 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7415 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
eff02e4f ILT |
7416 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
7417 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7418 | break 2 | |
7419 | fi | |
7420 | done | |
7421 | done | |
7422 | IFS=$as_save_IFS | |
7423 | ||
7424 | fi | |
7425 | fi | |
7426 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7427 | if test -n "$DSYMUTIL"; then | |
7428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
7429 | $as_echo "$DSYMUTIL" >&6; } | |
7430 | else | |
7431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7432 | $as_echo "no" >&6; } | |
7433 | fi | |
7434 | ||
7435 | ||
7436 | fi | |
7437 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7438 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7439 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7440 | set dummy dsymutil; ac_word=$2 | |
7441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7442 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7443 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
eff02e4f ILT |
7444 | $as_echo_n "(cached) " >&6 |
7445 | else | |
d4c059d5 ILT |
7446 | if test -n "$ac_ct_DSYMUTIL"; then |
7447 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
eff02e4f ILT |
7448 | else |
7449 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7450 | for as_dir in $PATH | |
7451 | do | |
7452 | IFS=$as_save_IFS | |
7453 | test -z "$as_dir" && as_dir=. | |
7454 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7455 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d4c059d5 | 7456 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
eff02e4f ILT |
7457 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7458 | break 2 | |
7459 | fi | |
7460 | done | |
7461 | done | |
7462 | IFS=$as_save_IFS | |
7463 | ||
7464 | fi | |
7465 | fi | |
d4c059d5 ILT |
7466 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
7467 | if test -n "$ac_ct_DSYMUTIL"; then | |
7468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
7469 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
eff02e4f ILT |
7470 | else |
7471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7472 | $as_echo "no" >&6; } | |
7473 | fi | |
7474 | ||
d4c059d5 ILT |
7475 | if test "x$ac_ct_DSYMUTIL" = x; then |
7476 | DSYMUTIL=":" | |
eff02e4f ILT |
7477 | else |
7478 | case $cross_compiling:$ac_tool_warned in | |
7479 | yes:) | |
7480 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7481 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7482 | ac_tool_warned=yes ;; | |
7483 | esac | |
d4c059d5 | 7484 | DSYMUTIL=$ac_ct_DSYMUTIL |
eff02e4f ILT |
7485 | fi |
7486 | else | |
d4c059d5 | 7487 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
eff02e4f ILT |
7488 | fi |
7489 | ||
7490 | if test -n "$ac_tool_prefix"; then | |
d4c059d5 ILT |
7491 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
7492 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
eff02e4f ILT |
7493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7494 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7495 | if ${ac_cv_prog_NMEDIT+:} false; then : |
eff02e4f ILT |
7496 | $as_echo_n "(cached) " >&6 |
7497 | else | |
d4c059d5 ILT |
7498 | if test -n "$NMEDIT"; then |
7499 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
eff02e4f ILT |
7500 | else |
7501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7502 | for as_dir in $PATH | |
7503 | do | |
7504 | IFS=$as_save_IFS | |
7505 | test -z "$as_dir" && as_dir=. | |
7506 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7507 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d4c059d5 | 7508 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
eff02e4f ILT |
7509 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7510 | break 2 | |
7511 | fi | |
7512 | done | |
7513 | done | |
7514 | IFS=$as_save_IFS | |
7515 | ||
7516 | fi | |
7517 | fi | |
d4c059d5 ILT |
7518 | NMEDIT=$ac_cv_prog_NMEDIT |
7519 | if test -n "$NMEDIT"; then | |
7520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
7521 | $as_echo "$NMEDIT" >&6; } | |
eff02e4f ILT |
7522 | else |
7523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7524 | $as_echo "no" >&6; } | |
7525 | fi | |
7526 | ||
7527 | ||
7528 | fi | |
d4c059d5 ILT |
7529 | if test -z "$ac_cv_prog_NMEDIT"; then |
7530 | ac_ct_NMEDIT=$NMEDIT | |
7531 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7532 | set dummy nmedit; ac_word=$2 | |
eff02e4f ILT |
7533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7534 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7535 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
eff02e4f ILT |
7536 | $as_echo_n "(cached) " >&6 |
7537 | else | |
d4c059d5 ILT |
7538 | if test -n "$ac_ct_NMEDIT"; then |
7539 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
eff02e4f ILT |
7540 | else |
7541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7542 | for as_dir in $PATH | |
7543 | do | |
7544 | IFS=$as_save_IFS | |
7545 | test -z "$as_dir" && as_dir=. | |
7546 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7547 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d4c059d5 | 7548 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
eff02e4f ILT |
7549 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7550 | break 2 | |
7551 | fi | |
7552 | done | |
7553 | done | |
7554 | IFS=$as_save_IFS | |
7555 | ||
7556 | fi | |
7557 | fi | |
d4c059d5 ILT |
7558 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
7559 | if test -n "$ac_ct_NMEDIT"; then | |
7560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
7561 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
eff02e4f ILT |
7562 | else |
7563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7564 | $as_echo "no" >&6; } | |
7565 | fi | |
7566 | ||
d4c059d5 ILT |
7567 | if test "x$ac_ct_NMEDIT" = x; then |
7568 | NMEDIT=":" | |
eff02e4f ILT |
7569 | else |
7570 | case $cross_compiling:$ac_tool_warned in | |
7571 | yes:) | |
7572 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7573 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7574 | ac_tool_warned=yes ;; | |
7575 | esac | |
d4c059d5 | 7576 | NMEDIT=$ac_ct_NMEDIT |
eff02e4f ILT |
7577 | fi |
7578 | else | |
d4c059d5 | 7579 | NMEDIT="$ac_cv_prog_NMEDIT" |
eff02e4f ILT |
7580 | fi |
7581 | ||
7582 | if test -n "$ac_tool_prefix"; then | |
d4c059d5 ILT |
7583 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
7584 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
eff02e4f ILT |
7585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7586 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7587 | if ${ac_cv_prog_LIPO+:} false; then : |
eff02e4f ILT |
7588 | $as_echo_n "(cached) " >&6 |
7589 | else | |
d4c059d5 ILT |
7590 | if test -n "$LIPO"; then |
7591 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
eff02e4f ILT |
7592 | else |
7593 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7594 | for as_dir in $PATH | |
7595 | do | |
7596 | IFS=$as_save_IFS | |
7597 | test -z "$as_dir" && as_dir=. | |
7598 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7599 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d4c059d5 | 7600 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
eff02e4f ILT |
7601 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7602 | break 2 | |
7603 | fi | |
7604 | done | |
7605 | done | |
7606 | IFS=$as_save_IFS | |
7607 | ||
7608 | fi | |
7609 | fi | |
d4c059d5 ILT |
7610 | LIPO=$ac_cv_prog_LIPO |
7611 | if test -n "$LIPO"; then | |
7612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
7613 | $as_echo "$LIPO" >&6; } | |
eff02e4f ILT |
7614 | else |
7615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7616 | $as_echo "no" >&6; } | |
7617 | fi | |
7618 | ||
7619 | ||
7620 | fi | |
d4c059d5 ILT |
7621 | if test -z "$ac_cv_prog_LIPO"; then |
7622 | ac_ct_LIPO=$LIPO | |
7623 | # Extract the first word of "lipo", so it can be a program name with args. | |
7624 | set dummy lipo; ac_word=$2 | |
eff02e4f ILT |
7625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7626 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7627 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
eff02e4f ILT |
7628 | $as_echo_n "(cached) " >&6 |
7629 | else | |
d4c059d5 ILT |
7630 | if test -n "$ac_ct_LIPO"; then |
7631 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
eff02e4f ILT |
7632 | else |
7633 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7634 | for as_dir in $PATH | |
7635 | do | |
7636 | IFS=$as_save_IFS | |
7637 | test -z "$as_dir" && as_dir=. | |
7638 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7639 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d4c059d5 | 7640 | ac_cv_prog_ac_ct_LIPO="lipo" |
eff02e4f ILT |
7641 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7642 | break 2 | |
7643 | fi | |
7644 | done | |
7645 | done | |
7646 | IFS=$as_save_IFS | |
7647 | ||
7648 | fi | |
7649 | fi | |
d4c059d5 ILT |
7650 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
7651 | if test -n "$ac_ct_LIPO"; then | |
7652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
7653 | $as_echo "$ac_ct_LIPO" >&6; } | |
eff02e4f ILT |
7654 | else |
7655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7656 | $as_echo "no" >&6; } | |
7657 | fi | |
7658 | ||
d4c059d5 ILT |
7659 | if test "x$ac_ct_LIPO" = x; then |
7660 | LIPO=":" | |
eff02e4f ILT |
7661 | else |
7662 | case $cross_compiling:$ac_tool_warned in | |
7663 | yes:) | |
7664 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7665 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7666 | ac_tool_warned=yes ;; | |
7667 | esac | |
d4c059d5 | 7668 | LIPO=$ac_ct_LIPO |
eff02e4f ILT |
7669 | fi |
7670 | else | |
d4c059d5 | 7671 | LIPO="$ac_cv_prog_LIPO" |
eff02e4f ILT |
7672 | fi |
7673 | ||
d4c059d5 ILT |
7674 | if test -n "$ac_tool_prefix"; then |
7675 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7676 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
7677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7678 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7679 | if ${ac_cv_prog_OTOOL+:} false; then : |
eff02e4f ILT |
7680 | $as_echo_n "(cached) " >&6 |
7681 | else | |
d4c059d5 ILT |
7682 | if test -n "$OTOOL"; then |
7683 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
eff02e4f | 7684 | else |
d4c059d5 ILT |
7685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7686 | for as_dir in $PATH | |
7687 | do | |
7688 | IFS=$as_save_IFS | |
7689 | test -z "$as_dir" && as_dir=. | |
7690 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7691 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d4c059d5 ILT |
7692 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
7693 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7694 | break 2 | |
7695 | fi | |
7696 | done | |
7697 | done | |
7698 | IFS=$as_save_IFS | |
eff02e4f | 7699 | |
eff02e4f | 7700 | fi |
eff02e4f | 7701 | fi |
d4c059d5 ILT |
7702 | OTOOL=$ac_cv_prog_OTOOL |
7703 | if test -n "$OTOOL"; then | |
7704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
7705 | $as_echo "$OTOOL" >&6; } | |
7706 | else | |
7707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7708 | $as_echo "no" >&6; } | |
eff02e4f | 7709 | fi |
eff02e4f | 7710 | |
d4c059d5 | 7711 | |
eff02e4f | 7712 | fi |
d4c059d5 ILT |
7713 | if test -z "$ac_cv_prog_OTOOL"; then |
7714 | ac_ct_OTOOL=$OTOOL | |
7715 | # Extract the first word of "otool", so it can be a program name with args. | |
7716 | set dummy otool; ac_word=$2 | |
7717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7718 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7719 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
eff02e4f ILT |
7720 | $as_echo_n "(cached) " >&6 |
7721 | else | |
d4c059d5 ILT |
7722 | if test -n "$ac_ct_OTOOL"; then |
7723 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7724 | else | |
7725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7726 | for as_dir in $PATH | |
eff02e4f | 7727 | do |
d4c059d5 ILT |
7728 | IFS=$as_save_IFS |
7729 | test -z "$as_dir" && as_dir=. | |
7730 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7731 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d4c059d5 ILT |
7732 | ac_cv_prog_ac_ct_OTOOL="otool" |
7733 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7734 | break 2 | |
7735 | fi | |
7736 | done | |
7737 | done | |
7738 | IFS=$as_save_IFS | |
eff02e4f | 7739 | |
d4c059d5 ILT |
7740 | fi |
7741 | fi | |
7742 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7743 | if test -n "$ac_ct_OTOOL"; then | |
7744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
7745 | $as_echo "$ac_ct_OTOOL" >&6; } | |
eff02e4f | 7746 | else |
d4c059d5 ILT |
7747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7748 | $as_echo "no" >&6; } | |
eff02e4f | 7749 | fi |
eff02e4f | 7750 | |
d4c059d5 ILT |
7751 | if test "x$ac_ct_OTOOL" = x; then |
7752 | OTOOL=":" | |
7753 | else | |
7754 | case $cross_compiling:$ac_tool_warned in | |
7755 | yes:) | |
7756 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7757 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7758 | ac_tool_warned=yes ;; | |
7759 | esac | |
7760 | OTOOL=$ac_ct_OTOOL | |
7761 | fi | |
eff02e4f | 7762 | else |
d4c059d5 | 7763 | OTOOL="$ac_cv_prog_OTOOL" |
eff02e4f | 7764 | fi |
eff02e4f | 7765 | |
d4c059d5 ILT |
7766 | if test -n "$ac_tool_prefix"; then |
7767 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7768 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
7769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7770 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7771 | if ${ac_cv_prog_OTOOL64+:} false; then : |
d4c059d5 ILT |
7772 | $as_echo_n "(cached) " >&6 |
7773 | else | |
7774 | if test -n "$OTOOL64"; then | |
7775 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7776 | else | |
7777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7778 | for as_dir in $PATH | |
7779 | do | |
7780 | IFS=$as_save_IFS | |
7781 | test -z "$as_dir" && as_dir=. | |
7782 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7783 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d4c059d5 ILT |
7784 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
7785 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7786 | break 2 | |
7787 | fi | |
eff02e4f | 7788 | done |
d4c059d5 ILT |
7789 | done |
7790 | IFS=$as_save_IFS | |
7791 | ||
7792 | fi | |
7793 | fi | |
7794 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7795 | if test -n "$OTOOL64"; then | |
7796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
7797 | $as_echo "$OTOOL64" >&6; } | |
7798 | else | |
7799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7800 | $as_echo "no" >&6; } | |
eff02e4f ILT |
7801 | fi |
7802 | ||
eff02e4f ILT |
7803 | |
7804 | fi | |
d4c059d5 ILT |
7805 | if test -z "$ac_cv_prog_OTOOL64"; then |
7806 | ac_ct_OTOOL64=$OTOOL64 | |
7807 | # Extract the first word of "otool64", so it can be a program name with args. | |
7808 | set dummy otool64; ac_word=$2 | |
7809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7810 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7811 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
d4c059d5 | 7812 | $as_echo_n "(cached) " >&6 |
eff02e4f | 7813 | else |
d4c059d5 ILT |
7814 | if test -n "$ac_ct_OTOOL64"; then |
7815 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7816 | else | |
7817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7818 | for as_dir in $PATH | |
eff02e4f | 7819 | do |
d4c059d5 ILT |
7820 | IFS=$as_save_IFS |
7821 | test -z "$as_dir" && as_dir=. | |
7822 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7823 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d4c059d5 ILT |
7824 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
7825 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7826 | break 2 | |
7827 | fi | |
7828 | done | |
7829 | done | |
7830 | IFS=$as_save_IFS | |
eff02e4f | 7831 | |
d4c059d5 ILT |
7832 | fi |
7833 | fi | |
7834 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7835 | if test -n "$ac_ct_OTOOL64"; then | |
7836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
7837 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
eff02e4f | 7838 | else |
d4c059d5 ILT |
7839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7840 | $as_echo "no" >&6; } | |
eff02e4f | 7841 | fi |
eff02e4f | 7842 | |
d4c059d5 ILT |
7843 | if test "x$ac_ct_OTOOL64" = x; then |
7844 | OTOOL64=":" | |
7845 | else | |
7846 | case $cross_compiling:$ac_tool_warned in | |
7847 | yes:) | |
7848 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7849 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7850 | ac_tool_warned=yes ;; | |
7851 | esac | |
7852 | OTOOL64=$ac_ct_OTOOL64 | |
7853 | fi | |
eff02e4f | 7854 | else |
d4c059d5 | 7855 | OTOOL64="$ac_cv_prog_OTOOL64" |
eff02e4f | 7856 | fi |
eff02e4f | 7857 | |
eff02e4f | 7858 | |
eff02e4f | 7859 | |
eff02e4f ILT |
7860 | |
7861 | ||
eff02e4f | 7862 | |
eff02e4f | 7863 | |
eff02e4f | 7864 | |
eff02e4f | 7865 | |
eff02e4f | 7866 | |
eff02e4f | 7867 | |
eff02e4f | 7868 | |
eff02e4f | 7869 | |
eff02e4f | 7870 | |
eff02e4f | 7871 | |
eff02e4f | 7872 | |
d4c059d5 ILT |
7873 | |
7874 | ||
7875 | ||
7876 | ||
7877 | ||
7878 | ||
7879 | ||
7880 | ||
7881 | ||
7882 | ||
7883 | ||
7884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
7885 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
22e05272 | 7886 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
d4c059d5 | 7887 | $as_echo_n "(cached) " >&6 |
eff02e4f | 7888 | else |
d4c059d5 ILT |
7889 | lt_cv_apple_cc_single_mod=no |
7890 | if test -z "${LT_MULTI_MODULE}"; then | |
7891 | # By default we will add the -single_module flag. You can override | |
7892 | # by either setting the environment variable LT_MULTI_MODULE | |
7893 | # non-empty at configure time, or by adding -multi_module to the | |
7894 | # link flags. | |
7895 | rm -rf libconftest.dylib* | |
7896 | echo "int foo(void){return 1;}" > conftest.c | |
7897 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7898 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7899 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7900 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7901 | _lt_result=$? | |
7902 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
7903 | lt_cv_apple_cc_single_mod=yes | |
7904 | else | |
7905 | cat conftest.err >&5 | |
7906 | fi | |
7907 | rm -rf libconftest.dylib* | |
7908 | rm -f conftest.* | |
7909 | fi | |
7910 | fi | |
7911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
7912 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
7913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
7914 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
22e05272 | 7915 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
d4c059d5 ILT |
7916 | $as_echo_n "(cached) " >&6 |
7917 | else | |
7918 | lt_cv_ld_exported_symbols_list=no | |
7919 | save_LDFLAGS=$LDFLAGS | |
7920 | echo "_main" > conftest.sym | |
7921 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
7922 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
eff02e4f | 7923 | /* end confdefs.h. */ |
eff02e4f | 7924 | |
eff02e4f ILT |
7925 | int |
7926 | main () | |
7927 | { | |
d4c059d5 ILT |
7928 | |
7929 | ; | |
eff02e4f ILT |
7930 | return 0; |
7931 | } | |
7932 | _ACEOF | |
d4c059d5 ILT |
7933 | if ac_fn_c_try_link "$LINENO"; then : |
7934 | lt_cv_ld_exported_symbols_list=yes | |
eff02e4f | 7935 | else |
d4c059d5 | 7936 | lt_cv_ld_exported_symbols_list=no |
eff02e4f | 7937 | fi |
d4c059d5 ILT |
7938 | rm -f core conftest.err conftest.$ac_objext \ |
7939 | conftest$ac_exeext conftest.$ac_ext | |
7940 | LDFLAGS="$save_LDFLAGS" | |
eff02e4f ILT |
7941 | |
7942 | fi | |
d4c059d5 ILT |
7943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
7944 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
7945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
7946 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
22e05272 | 7947 | if ${lt_cv_ld_force_load+:} false; then : |
d4c059d5 ILT |
7948 | $as_echo_n "(cached) " >&6 |
7949 | else | |
7950 | lt_cv_ld_force_load=no | |
7951 | cat > conftest.c << _LT_EOF | |
7952 | int forced_loaded() { return 2;} | |
7953 | _LT_EOF | |
7954 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7955 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7956 | echo "$AR cru libconftest.a conftest.o" >&5 | |
7957 | $AR cru libconftest.a conftest.o 2>&5 | |
7958 | cat > conftest.c << _LT_EOF | |
7959 | int main() { return 0;} | |
7960 | _LT_EOF | |
7961 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7962 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7963 | _lt_result=$? | |
7964 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
7965 | lt_cv_ld_force_load=yes | |
7966 | else | |
7967 | cat conftest.err >&5 | |
7968 | fi | |
7969 | rm -f conftest.err libconftest.a conftest conftest.c | |
7970 | rm -rf conftest.dSYM | |
eff02e4f ILT |
7971 | |
7972 | fi | |
d4c059d5 ILT |
7973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
7974 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
7975 | case $host_os in | |
7976 | rhapsody* | darwin1.[012]) | |
7977 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
7978 | darwin1.*) | |
7979 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7980 | darwin*) # darwin 5.x on | |
7981 | # if running on 10.5 or later, the deployment target defaults | |
7982 | # to the OS version, if on x86, and 10.4, the deployment | |
7983 | # target defaults to 10.4. Don't you love it? | |
7984 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7985 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
7986 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
ebf6d33b | 7987 | 10.[012][,.]*) |
d4c059d5 ILT |
7988 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
7989 | 10.*) | |
7990 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7991 | esac | |
7992 | ;; | |
7993 | esac | |
7994 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
7995 | _lt_dar_single_mod='$single_module' | |
7996 | fi | |
7997 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
7998 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
7999 | else | |
8000 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8001 | fi | |
8002 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
8003 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
8004 | else | |
8005 | _lt_dsymutil= | |
8006 | fi | |
8007 | ;; | |
8008 | esac | |
eff02e4f ILT |
8009 | |
8010 | for ac_header in dlfcn.h | |
8011 | do : | |
8012 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8013 | " | |
22e05272 | 8014 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
eff02e4f ILT |
8015 | cat >>confdefs.h <<_ACEOF |
8016 | #define HAVE_DLFCN_H 1 | |
8017 | _ACEOF | |
8018 | ||
8019 | fi | |
8020 | ||
8021 | done | |
8022 | ||
8023 | ||
8024 | ||
8025 | ||
8026 | ||
8027 | # Set options | |
7e5c7547 UW |
8028 | |
8029 | ||
8030 | ||
8031 | enable_dlopen=no | |
8032 | ||
8033 | ||
8034 | enable_win32_dll=no | |
8035 | ||
8036 | ||
8037 | # Check whether --enable-shared was given. | |
eff02e4f ILT |
8038 | if test "${enable_shared+set}" = set; then : |
8039 | enableval=$enable_shared; p=${PACKAGE-default} | |
8040 | case $enableval in | |
8041 | yes) enable_shared=yes ;; | |
8042 | no) enable_shared=no ;; | |
8043 | *) | |
8044 | enable_shared=no | |
8045 | # Look at the argument we got. We use all the common list separators. | |
8046 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8047 | for pkg in $enableval; do | |
8048 | IFS="$lt_save_ifs" | |
8049 | if test "X$pkg" = "X$p"; then | |
8050 | enable_shared=yes | |
8051 | fi | |
8052 | done | |
8053 | IFS="$lt_save_ifs" | |
8054 | ;; | |
8055 | esac | |
8056 | else | |
7e5c7547 | 8057 | enable_shared=yes |
eff02e4f ILT |
8058 | fi |
8059 | ||
8060 | ||
8061 | ||
8062 | ||
8063 | ||
8064 | ||
8065 | ||
8066 | ||
8067 | ||
eff02e4f ILT |
8068 | # Check whether --enable-static was given. |
8069 | if test "${enable_static+set}" = set; then : | |
8070 | enableval=$enable_static; p=${PACKAGE-default} | |
8071 | case $enableval in | |
8072 | yes) enable_static=yes ;; | |
8073 | no) enable_static=no ;; | |
8074 | *) | |
8075 | enable_static=no | |
8076 | # Look at the argument we got. We use all the common list separators. | |
8077 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8078 | for pkg in $enableval; do | |
8079 | IFS="$lt_save_ifs" | |
8080 | if test "X$pkg" = "X$p"; then | |
8081 | enable_static=yes | |
8082 | fi | |
8083 | done | |
8084 | IFS="$lt_save_ifs" | |
8085 | ;; | |
8086 | esac | |
8087 | else | |
8088 | enable_static=yes | |
8089 | fi | |
8090 | ||
8091 | ||
8092 | ||
8093 | ||
8094 | ||
8095 | ||
8096 | ||
8097 | ||
8098 | ||
8099 | ||
8100 | # Check whether --with-pic was given. | |
8101 | if test "${with_pic+set}" = set; then : | |
8102 | withval=$with_pic; pic_mode="$withval" | |
8103 | else | |
8104 | pic_mode=default | |
8105 | fi | |
8106 | ||
8107 | ||
8108 | test -z "$pic_mode" && pic_mode=default | |
8109 | ||
8110 | ||
8111 | ||
8112 | ||
8113 | ||
8114 | ||
8115 | ||
8116 | # Check whether --enable-fast-install was given. | |
8117 | if test "${enable_fast_install+set}" = set; then : | |
8118 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
8119 | case $enableval in | |
8120 | yes) enable_fast_install=yes ;; | |
8121 | no) enable_fast_install=no ;; | |
8122 | *) | |
8123 | enable_fast_install=no | |
8124 | # Look at the argument we got. We use all the common list separators. | |
8125 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8126 | for pkg in $enableval; do | |
8127 | IFS="$lt_save_ifs" | |
8128 | if test "X$pkg" = "X$p"; then | |
8129 | enable_fast_install=yes | |
8130 | fi | |
8131 | done | |
8132 | IFS="$lt_save_ifs" | |
8133 | ;; | |
8134 | esac | |
8135 | else | |
8136 | enable_fast_install=yes | |
8137 | fi | |
8138 | ||
8139 | ||
8140 | ||
8141 | ||
8142 | ||
8143 | ||
8144 | ||
8145 | ||
8146 | ||
8147 | ||
8148 | ||
8149 | # This can be used to rebuild libtool when needed | |
8150 | LIBTOOL_DEPS="$ltmain" | |
8151 | ||
8152 | # Always use our own libtool. | |
8153 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
8154 | ||
8155 | ||
8156 | ||
8157 | ||
8158 | ||
8159 | ||
8160 | ||
8161 | ||
8162 | ||
8163 | ||
8164 | ||
8165 | ||
8166 | ||
8167 | ||
8168 | ||
8169 | ||
8170 | ||
8171 | ||
8172 | ||
8173 | ||
8174 | ||
8175 | ||
8176 | ||
8177 | ||
8178 | ||
8179 | ||
8180 | test -z "$LN_S" && LN_S="ln -s" | |
8181 | ||
8182 | ||
8183 | ||
8184 | ||
8185 | ||
8186 | ||
8187 | ||
8188 | ||
8189 | ||
8190 | ||
8191 | ||
8192 | ||
8193 | ||
8194 | ||
8195 | if test -n "${ZSH_VERSION+set}" ; then | |
8196 | setopt NO_GLOB_SUBST | |
8197 | fi | |
8198 | ||
8199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
8200 | $as_echo_n "checking for objdir... " >&6; } | |
22e05272 | 8201 | if ${lt_cv_objdir+:} false; then : |
eff02e4f ILT |
8202 | $as_echo_n "(cached) " >&6 |
8203 | else | |
8204 | rm -f .libs 2>/dev/null | |
8205 | mkdir .libs 2>/dev/null | |
8206 | if test -d .libs; then | |
8207 | lt_cv_objdir=.libs | |
8208 | else | |
8209 | # MS-DOS does not allow filenames that begin with a dot. | |
8210 | lt_cv_objdir=_libs | |
8211 | fi | |
8212 | rmdir .libs 2>/dev/null | |
8213 | fi | |
8214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
8215 | $as_echo "$lt_cv_objdir" >&6; } | |
8216 | objdir=$lt_cv_objdir | |
8217 | ||
8218 | ||
8219 | ||
8220 | ||
8221 | ||
8222 | cat >>confdefs.h <<_ACEOF | |
8223 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8224 | _ACEOF | |
8225 | ||
8226 | ||
8227 | ||
8228 | ||
8229 | case $host_os in | |
8230 | aix3*) | |
8231 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8232 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8233 | # vanish in a puff of smoke. | |
8234 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8235 | COLLECT_NAMES= | |
8236 | export COLLECT_NAMES | |
8237 | fi | |
8238 | ;; | |
8239 | esac | |
8240 | ||
8241 | # Global variables: | |
8242 | ofile=libtool | |
8243 | can_build_shared=yes | |
8244 | ||
8245 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
8246 | # which needs '.lib'). | |
8247 | libext=a | |
8248 | ||
8249 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
8250 | ||
8251 | old_CC="$CC" | |
8252 | old_CFLAGS="$CFLAGS" | |
8253 | ||
8254 | # Set sane defaults for various variables | |
8255 | test -z "$CC" && CC=cc | |
8256 | test -z "$LTCC" && LTCC=$CC | |
8257 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8258 | test -z "$LD" && LD=ld | |
8259 | test -z "$ac_objext" && ac_objext=o | |
8260 | ||
8261 | for cc_temp in $compiler""; do | |
8262 | case $cc_temp in | |
8263 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8264 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8265 | \-*) ;; | |
8266 | *) break;; | |
8267 | esac | |
8268 | done | |
8269 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
8270 | ||
8271 | ||
8272 | # Only perform the check for file, if the check method requires it | |
8273 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8274 | case $deplibs_check_method in | |
8275 | file_magic*) | |
8276 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
8277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
8278 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
22e05272 | 8279 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
eff02e4f ILT |
8280 | $as_echo_n "(cached) " >&6 |
8281 | else | |
8282 | case $MAGIC_CMD in | |
8283 | [\\/*] | ?:[\\/]*) | |
8284 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8285 | ;; | |
8286 | *) | |
8287 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8288 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8289 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8290 | for ac_dir in $ac_dummy; do | |
8291 | IFS="$lt_save_ifs" | |
8292 | test -z "$ac_dir" && ac_dir=. | |
8293 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
8294 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8295 | if test -n "$file_magic_test_file"; then | |
8296 | case $deplibs_check_method in | |
8297 | "file_magic "*) | |
8298 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8299 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8300 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8301 | $EGREP "$file_magic_regex" > /dev/null; then | |
8302 | : | |
8303 | else | |
8304 | cat <<_LT_EOF 1>&2 | |
8305 | ||
8306 | *** Warning: the command libtool uses to detect shared libraries, | |
8307 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8308 | *** The result is that libtool may fail to recognize shared libraries | |
8309 | *** as such. This will affect the creation of libtool libraries that | |
8310 | *** depend on shared libraries, but programs linked with such libtool | |
8311 | *** libraries will work regardless of this problem. Nevertheless, you | |
8312 | *** may want to report the problem to your system manager and/or to | |
8313 | *** bug-libtool@gnu.org | |
8314 | ||
8315 | _LT_EOF | |
8316 | fi ;; | |
8317 | esac | |
8318 | fi | |
8319 | break | |
8320 | fi | |
8321 | done | |
8322 | IFS="$lt_save_ifs" | |
8323 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8324 | ;; | |
8325 | esac | |
8326 | fi | |
8327 | ||
8328 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8329 | if test -n "$MAGIC_CMD"; then | |
8330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8331 | $as_echo "$MAGIC_CMD" >&6; } | |
8332 | else | |
8333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8334 | $as_echo "no" >&6; } | |
8335 | fi | |
8336 | ||
8337 | ||
8338 | ||
8339 | ||
8340 | ||
8341 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
8342 | if test -n "$ac_tool_prefix"; then | |
8343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
8344 | $as_echo_n "checking for file... " >&6; } | |
22e05272 | 8345 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
eff02e4f ILT |
8346 | $as_echo_n "(cached) " >&6 |
8347 | else | |
8348 | case $MAGIC_CMD in | |
8349 | [\\/*] | ?:[\\/]*) | |
8350 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8351 | ;; | |
8352 | *) | |
8353 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8354 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8355 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8356 | for ac_dir in $ac_dummy; do | |
8357 | IFS="$lt_save_ifs" | |
8358 | test -z "$ac_dir" && ac_dir=. | |
8359 | if test -f $ac_dir/file; then | |
8360 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8361 | if test -n "$file_magic_test_file"; then | |
8362 | case $deplibs_check_method in | |
8363 | "file_magic "*) | |
8364 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8365 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8366 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8367 | $EGREP "$file_magic_regex" > /dev/null; then | |
8368 | : | |
8369 | else | |
8370 | cat <<_LT_EOF 1>&2 | |
8371 | ||
8372 | *** Warning: the command libtool uses to detect shared libraries, | |
8373 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8374 | *** The result is that libtool may fail to recognize shared libraries | |
8375 | *** as such. This will affect the creation of libtool libraries that | |
8376 | *** depend on shared libraries, but programs linked with such libtool | |
8377 | *** libraries will work regardless of this problem. Nevertheless, you | |
8378 | *** may want to report the problem to your system manager and/or to | |
8379 | *** bug-libtool@gnu.org | |
8380 | ||
8381 | _LT_EOF | |
8382 | fi ;; | |
8383 | esac | |
8384 | fi | |
8385 | break | |
8386 | fi | |
8387 | done | |
8388 | IFS="$lt_save_ifs" | |
8389 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8390 | ;; | |
8391 | esac | |
8392 | fi | |
8393 | ||
8394 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8395 | if test -n "$MAGIC_CMD"; then | |
8396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8397 | $as_echo "$MAGIC_CMD" >&6; } | |
8398 | else | |
8399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8400 | $as_echo "no" >&6; } | |
8401 | fi | |
8402 | ||
8403 | ||
8404 | else | |
8405 | MAGIC_CMD=: | |
8406 | fi | |
8407 | fi | |
8408 | ||
8409 | fi | |
8410 | ;; | |
8411 | esac | |
8412 | ||
8413 | # Use C for the default configuration in the libtool script | |
8414 | ||
8415 | lt_save_CC="$CC" | |
8416 | ac_ext=c | |
8417 | ac_cpp='$CPP $CPPFLAGS' | |
8418 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8419 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8420 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8421 | ||
8422 | ||
8423 | # Source file extension for C test sources. | |
8424 | ac_ext=c | |
8425 | ||
8426 | # Object file extension for compiled C test sources. | |
8427 | objext=o | |
8428 | objext=$objext | |
8429 | ||
8430 | # Code to be used in simple compile tests | |
8431 | lt_simple_compile_test_code="int some_variable = 0;" | |
8432 | ||
8433 | # Code to be used in simple link tests | |
8434 | lt_simple_link_test_code='int main(){return(0);}' | |
8435 | ||
8436 | ||
8437 | ||
8438 | ||
8439 | ||
8440 | ||
8441 | ||
8442 | # If no C compiler was specified, use CC. | |
8443 | LTCC=${LTCC-"$CC"} | |
8444 | ||
8445 | # If no C compiler flags were specified, use CFLAGS. | |
8446 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8447 | ||
8448 | # Allow CC to be a program name with arguments. | |
8449 | compiler=$CC | |
8450 | ||
8451 | # Save the default compiler, since it gets overwritten when the other | |
8452 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8453 | compiler_DEFAULT=$CC | |
8454 | ||
8455 | # save warnings/boilerplate of simple test code | |
8456 | ac_outfile=conftest.$ac_objext | |
8457 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8458 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8459 | _lt_compiler_boilerplate=`cat conftest.err` | |
8460 | $RM conftest* | |
8461 | ||
8462 | ac_outfile=conftest.$ac_objext | |
8463 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8464 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8465 | _lt_linker_boilerplate=`cat conftest.err` | |
8466 | $RM -r conftest* | |
8467 | ||
8468 | ||
8469 | ## CAVEAT EMPTOR: | |
8470 | ## There is no encapsulation within the following macros, do not change | |
8471 | ## the running order or otherwise move them around unless you know exactly | |
8472 | ## what you are doing... | |
8473 | if test -n "$compiler"; then | |
8474 | ||
8475 | lt_prog_compiler_no_builtin_flag= | |
8476 | ||
8477 | if test "$GCC" = yes; then | |
8478 | case $cc_basename in | |
8479 | nvcc*) | |
8480 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8481 | *) | |
8482 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8483 | esac | |
8484 | ||
8485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
8486 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
22e05272 | 8487 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
eff02e4f ILT |
8488 | $as_echo_n "(cached) " >&6 |
8489 | else | |
8490 | lt_cv_prog_compiler_rtti_exceptions=no | |
8491 | ac_outfile=conftest.$ac_objext | |
8492 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8493 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8494 | # Insert the option either (1) after the last *FLAGS variable, or | |
8495 | # (2) before a word containing "conftest.", or (3) at the end. | |
8496 | # Note that $ac_compile itself does not contain backslashes and begins | |
8497 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8498 | # The option is referenced via a variable to avoid confusing sed. | |
8499 | lt_compile=`echo "$ac_compile" | $SED \ | |
8500 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8501 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8502 | -e 's:$: $lt_compiler_flag:'` | |
8503 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8504 | (eval "$lt_compile" 2>conftest.err) | |
8505 | ac_status=$? | |
8506 | cat conftest.err >&5 | |
8507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8508 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8509 | # The compiler can only warn and ignore the option if not recognized | |
8510 | # So say no if there are warnings other than the usual output. | |
8511 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8512 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8513 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8514 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8515 | fi | |
8516 | fi | |
8517 | $RM conftest* | |
8518 | ||
8519 | fi | |
8520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
8521 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
8522 | ||
8523 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
8524 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8525 | else | |
8526 | : | |
8527 | fi | |
8528 | ||
8529 | fi | |
8530 | ||
8531 | ||
8532 | ||
8533 | ||
8534 | ||
8535 | ||
8536 | lt_prog_compiler_wl= | |
8537 | lt_prog_compiler_pic= | |
8538 | lt_prog_compiler_static= | |
8539 | ||
8540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
8541 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
8542 | ||
8543 | if test "$GCC" = yes; then | |
8544 | lt_prog_compiler_wl='-Wl,' | |
8545 | lt_prog_compiler_static='-static' | |
8546 | ||
8547 | case $host_os in | |
8548 | aix*) | |
8549 | # All AIX code is PIC. | |
8550 | if test "$host_cpu" = ia64; then | |
8551 | # AIX 5 now supports IA64 processor | |
8552 | lt_prog_compiler_static='-Bstatic' | |
8553 | fi | |
772a71a9 | 8554 | lt_prog_compiler_pic='-fPIC' |
eff02e4f ILT |
8555 | ;; |
8556 | ||
8557 | amigaos*) | |
8558 | case $host_cpu in | |
8559 | powerpc) | |
8560 | # see comment about AmigaOS4 .so support | |
8561 | lt_prog_compiler_pic='-fPIC' | |
8562 | ;; | |
8563 | m68k) | |
8564 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8565 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8566 | # like `-m68040'. | |
8567 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8568 | ;; | |
8569 | esac | |
8570 | ;; | |
8571 | ||
8572 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
8573 | # PIC is the default for these OSes. | |
8574 | ;; | |
8575 | ||
8576 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8577 | # This hack is so that the source file can tell whether it is being | |
8578 | # built for inclusion in a dll (and should export symbols for example). | |
8579 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8580 | # (--disable-auto-import) libraries | |
8581 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8582 | ;; | |
8583 | ||
8584 | darwin* | rhapsody*) | |
8585 | # PIC is the default on this platform | |
8586 | # Common symbols not allowed in MH_DYLIB files | |
8587 | lt_prog_compiler_pic='-fno-common' | |
8588 | ;; | |
8589 | ||
8590 | haiku*) | |
8591 | # PIC is the default for Haiku. | |
8592 | # The "-static" flag exists, but is broken. | |
8593 | lt_prog_compiler_static= | |
8594 | ;; | |
8595 | ||
8596 | hpux*) | |
8597 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
8598 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8599 | # sets the default TLS model and affects inlining. | |
8600 | case $host_cpu in | |
8601 | hppa*64*) | |
8602 | # +Z the default | |
8603 | ;; | |
8604 | *) | |
8605 | lt_prog_compiler_pic='-fPIC' | |
8606 | ;; | |
8607 | esac | |
8608 | ;; | |
8609 | ||
8610 | interix[3-9]*) | |
8611 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8612 | # Instead, we relocate shared libraries at runtime. | |
8613 | ;; | |
8614 | ||
8615 | msdosdjgpp*) | |
8616 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8617 | # on systems that don't support them. | |
8618 | lt_prog_compiler_can_build_shared=no | |
8619 | enable_shared=no | |
8620 | ;; | |
8621 | ||
8622 | *nto* | *qnx*) | |
8623 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8624 | # it will coredump. | |
8625 | lt_prog_compiler_pic='-fPIC -shared' | |
8626 | ;; | |
8627 | ||
8628 | sysv4*MP*) | |
8629 | if test -d /usr/nec; then | |
8630 | lt_prog_compiler_pic=-Kconform_pic | |
8631 | fi | |
8632 | ;; | |
8633 | ||
8634 | *) | |
8635 | lt_prog_compiler_pic='-fPIC' | |
8636 | ;; | |
8637 | esac | |
8638 | ||
8639 | case $cc_basename in | |
8640 | nvcc*) # Cuda Compiler Driver 2.2 | |
8641 | lt_prog_compiler_wl='-Xlinker ' | |
8642 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
8643 | ;; | |
8644 | esac | |
8645 | else | |
8646 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8647 | case $host_os in | |
8648 | aix*) | |
8649 | lt_prog_compiler_wl='-Wl,' | |
8650 | if test "$host_cpu" = ia64; then | |
8651 | # AIX 5 now supports IA64 processor | |
8652 | lt_prog_compiler_static='-Bstatic' | |
8653 | else | |
8654 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8655 | fi | |
8656 | ;; | |
8657 | ||
8658 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8659 | # This hack is so that the source file can tell whether it is being | |
8660 | # built for inclusion in a dll (and should export symbols for example). | |
8661 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8662 | ;; | |
8663 | ||
8664 | hpux9* | hpux10* | hpux11*) | |
8665 | lt_prog_compiler_wl='-Wl,' | |
8666 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8667 | # not for PA HP-UX. | |
8668 | case $host_cpu in | |
8669 | hppa*64*|ia64*) | |
8670 | # +Z the default | |
8671 | ;; | |
8672 | *) | |
8673 | lt_prog_compiler_pic='+Z' | |
8674 | ;; | |
8675 | esac | |
8676 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8677 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
8678 | ;; | |
8679 | ||
8680 | irix5* | irix6* | nonstopux*) | |
8681 | lt_prog_compiler_wl='-Wl,' | |
8682 | # PIC (with -KPIC) is the default. | |
8683 | lt_prog_compiler_static='-non_shared' | |
8684 | ;; | |
8685 | ||
8686 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
8687 | case $cc_basename in | |
8688 | # old Intel for x86_64 which still supported -KPIC. | |
8689 | ecc*) | |
8690 | lt_prog_compiler_wl='-Wl,' | |
8691 | lt_prog_compiler_pic='-KPIC' | |
8692 | lt_prog_compiler_static='-static' | |
8693 | ;; | |
8694 | # icc used to be incompatible with GCC. | |
8695 | # ICC 10 doesn't accept -KPIC any more. | |
8696 | icc* | ifort*) | |
8697 | lt_prog_compiler_wl='-Wl,' | |
8698 | lt_prog_compiler_pic='-fPIC' | |
8699 | lt_prog_compiler_static='-static' | |
8700 | ;; | |
8701 | # Lahey Fortran 8.1. | |
8702 | lf95*) | |
8703 | lt_prog_compiler_wl='-Wl,' | |
8704 | lt_prog_compiler_pic='--shared' | |
8705 | lt_prog_compiler_static='--static' | |
8706 | ;; | |
8707 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
8708 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
8709 | # which looks to be a dead project) | |
8710 | lt_prog_compiler_wl='-Wl,' | |
8711 | lt_prog_compiler_pic='-fpic' | |
8712 | lt_prog_compiler_static='-Bstatic' | |
8713 | ;; | |
8714 | ccc*) | |
8715 | lt_prog_compiler_wl='-Wl,' | |
8716 | # All Alpha code is PIC. | |
8717 | lt_prog_compiler_static='-non_shared' | |
8718 | ;; | |
8719 | xl* | bgxl* | bgf* | mpixl*) | |
8720 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
8721 | lt_prog_compiler_wl='-Wl,' | |
8722 | lt_prog_compiler_pic='-qpic' | |
8723 | lt_prog_compiler_static='-qstaticlink' | |
8724 | ;; | |
8725 | *) | |
8726 | case `$CC -V 2>&1 | sed 5q` in | |
8727 | *Sun\ F* | *Sun*Fortran*) | |
8728 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8729 | lt_prog_compiler_pic='-KPIC' | |
8730 | lt_prog_compiler_static='-Bstatic' | |
8731 | lt_prog_compiler_wl='' | |
8732 | ;; | |
8733 | *Sun\ C*) | |
8734 | # Sun C 5.9 | |
8735 | lt_prog_compiler_pic='-KPIC' | |
8736 | lt_prog_compiler_static='-Bstatic' | |
8737 | lt_prog_compiler_wl='-Wl,' | |
8738 | ;; | |
8739 | esac | |
8740 | ;; | |
8741 | esac | |
8742 | ;; | |
8743 | ||
8744 | newsos6) | |
8745 | lt_prog_compiler_pic='-KPIC' | |
8746 | lt_prog_compiler_static='-Bstatic' | |
8747 | ;; | |
8748 | ||
8749 | *nto* | *qnx*) | |
8750 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8751 | # it will coredump. | |
8752 | lt_prog_compiler_pic='-fPIC -shared' | |
8753 | ;; | |
8754 | ||
8755 | osf3* | osf4* | osf5*) | |
8756 | lt_prog_compiler_wl='-Wl,' | |
8757 | # All OSF/1 code is PIC. | |
8758 | lt_prog_compiler_static='-non_shared' | |
8759 | ;; | |
8760 | ||
8761 | rdos*) | |
8762 | lt_prog_compiler_static='-non_shared' | |
8763 | ;; | |
8764 | ||
8765 | solaris*) | |
8766 | lt_prog_compiler_pic='-KPIC' | |
8767 | lt_prog_compiler_static='-Bstatic' | |
8768 | case $cc_basename in | |
8769 | f77* | f90* | f95*) | |
8770 | lt_prog_compiler_wl='-Qoption ld ';; | |
8771 | *) | |
8772 | lt_prog_compiler_wl='-Wl,';; | |
8773 | esac | |
8774 | ;; | |
8775 | ||
8776 | sunos4*) | |
8777 | lt_prog_compiler_wl='-Qoption ld ' | |
8778 | lt_prog_compiler_pic='-PIC' | |
8779 | lt_prog_compiler_static='-Bstatic' | |
8780 | ;; | |
8781 | ||
8782 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
8783 | lt_prog_compiler_wl='-Wl,' | |
8784 | lt_prog_compiler_pic='-KPIC' | |
8785 | lt_prog_compiler_static='-Bstatic' | |
8786 | ;; | |
8787 | ||
8788 | sysv4*MP*) | |
8789 | if test -d /usr/nec ;then | |
8790 | lt_prog_compiler_pic='-Kconform_pic' | |
8791 | lt_prog_compiler_static='-Bstatic' | |
8792 | fi | |
8793 | ;; | |
8794 | ||
8795 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8796 | lt_prog_compiler_wl='-Wl,' | |
8797 | lt_prog_compiler_pic='-KPIC' | |
8798 | lt_prog_compiler_static='-Bstatic' | |
8799 | ;; | |
8800 | ||
8801 | unicos*) | |
8802 | lt_prog_compiler_wl='-Wl,' | |
8803 | lt_prog_compiler_can_build_shared=no | |
8804 | ;; | |
8805 | ||
8806 | uts4*) | |
8807 | lt_prog_compiler_pic='-pic' | |
8808 | lt_prog_compiler_static='-Bstatic' | |
8809 | ;; | |
8810 | ||
8811 | *) | |
8812 | lt_prog_compiler_can_build_shared=no | |
8813 | ;; | |
8814 | esac | |
8815 | fi | |
8816 | ||
8817 | case $host_os in | |
8818 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8819 | *djgpp*) | |
8820 | lt_prog_compiler_pic= | |
8821 | ;; | |
8822 | *) | |
8823 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8824 | ;; | |
8825 | esac | |
8826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | |
8827 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
8828 | ||
8829 | ||
8830 | ||
8831 | ||
8832 | ||
8833 | ||
8834 | # | |
8835 | # Check to make sure the PIC flag actually works. | |
8836 | # | |
8837 | if test -n "$lt_prog_compiler_pic"; then | |
8838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
8839 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
22e05272 | 8840 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
eff02e4f ILT |
8841 | $as_echo_n "(cached) " >&6 |
8842 | else | |
8843 | lt_cv_prog_compiler_pic_works=no | |
8844 | ac_outfile=conftest.$ac_objext | |
8845 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8846 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8847 | # Insert the option either (1) after the last *FLAGS variable, or | |
8848 | # (2) before a word containing "conftest.", or (3) at the end. | |
8849 | # Note that $ac_compile itself does not contain backslashes and begins | |
8850 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8851 | # The option is referenced via a variable to avoid confusing sed. | |
8852 | lt_compile=`echo "$ac_compile" | $SED \ | |
8853 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8854 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8855 | -e 's:$: $lt_compiler_flag:'` | |
8856 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8857 | (eval "$lt_compile" 2>conftest.err) | |
8858 | ac_status=$? | |
8859 | cat conftest.err >&5 | |
8860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8861 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8862 | # The compiler can only warn and ignore the option if not recognized | |
8863 | # So say no if there are warnings other than the usual output. | |
8864 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8865 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8866 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8867 | lt_cv_prog_compiler_pic_works=yes | |
8868 | fi | |
8869 | fi | |
8870 | $RM conftest* | |
8871 | ||
8872 | fi | |
8873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
8874 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
8875 | ||
8876 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
8877 | case $lt_prog_compiler_pic in | |
8878 | "" | " "*) ;; | |
8879 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8880 | esac | |
8881 | else | |
8882 | lt_prog_compiler_pic= | |
8883 | lt_prog_compiler_can_build_shared=no | |
8884 | fi | |
8885 | ||
8886 | fi | |
8887 | ||
8888 | ||
8889 | ||
8890 | ||
8891 | ||
8892 | ||
8893 | # | |
8894 | # Check to make sure the static flag actually works. | |
8895 | # | |
8896 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
8897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
8898 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
22e05272 | 8899 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
eff02e4f ILT |
8900 | $as_echo_n "(cached) " >&6 |
8901 | else | |
8902 | lt_cv_prog_compiler_static_works=no | |
8903 | save_LDFLAGS="$LDFLAGS" | |
8904 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8905 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8906 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8907 | # The linker can only warn and ignore the option if not recognized | |
8908 | # So say no if there are warnings | |
8909 | if test -s conftest.err; then | |
8910 | # Append any errors to the config.log. | |
8911 | cat conftest.err 1>&5 | |
8912 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
8913 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8914 | if diff conftest.exp conftest.er2 >/dev/null; then | |
8915 | lt_cv_prog_compiler_static_works=yes | |
8916 | fi | |
8917 | else | |
8918 | lt_cv_prog_compiler_static_works=yes | |
8919 | fi | |
8920 | fi | |
8921 | $RM -r conftest* | |
8922 | LDFLAGS="$save_LDFLAGS" | |
8923 | ||
8924 | fi | |
8925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
8926 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
8927 | ||
8928 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
8929 | : | |
8930 | else | |
8931 | lt_prog_compiler_static= | |
8932 | fi | |
8933 | ||
8934 | ||
8935 | ||
8936 | ||
8937 | ||
8938 | ||
8939 | ||
8940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8941 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 8942 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
eff02e4f ILT |
8943 | $as_echo_n "(cached) " >&6 |
8944 | else | |
8945 | lt_cv_prog_compiler_c_o=no | |
8946 | $RM -r conftest 2>/dev/null | |
8947 | mkdir conftest | |
8948 | cd conftest | |
8949 | mkdir out | |
8950 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8951 | ||
8952 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8953 | # Insert the option either (1) after the last *FLAGS variable, or | |
8954 | # (2) before a word containing "conftest.", or (3) at the end. | |
8955 | # Note that $ac_compile itself does not contain backslashes and begins | |
8956 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8957 | lt_compile=`echo "$ac_compile" | $SED \ | |
8958 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8959 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8960 | -e 's:$: $lt_compiler_flag:'` | |
8961 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8962 | (eval "$lt_compile" 2>out/conftest.err) | |
8963 | ac_status=$? | |
8964 | cat out/conftest.err >&5 | |
8965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8966 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
8967 | then | |
8968 | # The compiler can only warn and ignore the option if not recognized | |
8969 | # So say no if there are warnings | |
8970 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
8971 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8972 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8973 | lt_cv_prog_compiler_c_o=yes | |
8974 | fi | |
8975 | fi | |
8976 | chmod u+w . 2>&5 | |
8977 | $RM conftest* | |
8978 | # SGI C++ compiler will create directory out/ii_files/ for | |
8979 | # template instantiation | |
8980 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8981 | $RM out/* && rmdir out | |
8982 | cd .. | |
8983 | $RM -r conftest | |
8984 | $RM conftest* | |
8985 | ||
8986 | fi | |
8987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
8988 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
8989 | ||
8990 | ||
8991 | ||
8992 | ||
8993 | ||
8994 | ||
8995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8996 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 8997 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
eff02e4f ILT |
8998 | $as_echo_n "(cached) " >&6 |
8999 | else | |
9000 | lt_cv_prog_compiler_c_o=no | |
9001 | $RM -r conftest 2>/dev/null | |
9002 | mkdir conftest | |
9003 | cd conftest | |
9004 | mkdir out | |
9005 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9006 | ||
9007 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
9008 | # Insert the option either (1) after the last *FLAGS variable, or | |
9009 | # (2) before a word containing "conftest.", or (3) at the end. | |
9010 | # Note that $ac_compile itself does not contain backslashes and begins | |
9011 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9012 | lt_compile=`echo "$ac_compile" | $SED \ | |
9013 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9014 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9015 | -e 's:$: $lt_compiler_flag:'` | |
9016 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9017 | (eval "$lt_compile" 2>out/conftest.err) | |
9018 | ac_status=$? | |
9019 | cat out/conftest.err >&5 | |
9020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9021 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9022 | then | |
9023 | # The compiler can only warn and ignore the option if not recognized | |
9024 | # So say no if there are warnings | |
9025 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9026 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9027 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9028 | lt_cv_prog_compiler_c_o=yes | |
9029 | fi | |
9030 | fi | |
9031 | chmod u+w . 2>&5 | |
9032 | $RM conftest* | |
9033 | # SGI C++ compiler will create directory out/ii_files/ for | |
9034 | # template instantiation | |
9035 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9036 | $RM out/* && rmdir out | |
9037 | cd .. | |
9038 | $RM -r conftest | |
9039 | $RM conftest* | |
9040 | ||
9041 | fi | |
9042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9043 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9044 | ||
9045 | ||
9046 | ||
9047 | ||
9048 | hard_links="nottested" | |
9049 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
9050 | # do not overwrite the value of need_locks provided by the user | |
9051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
9052 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
9053 | hard_links=yes | |
9054 | $RM conftest* | |
9055 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9056 | touch conftest.a | |
9057 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9058 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
9060 | $as_echo "$hard_links" >&6; } | |
9061 | if test "$hard_links" = no; then | |
9062 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
9063 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
9064 | need_locks=warn | |
9065 | fi | |
9066 | else | |
9067 | need_locks=no | |
9068 | fi | |
9069 | ||
9070 | ||
9071 | ||
9072 | ||
9073 | ||
9074 | ||
9075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
9076 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
9077 | ||
9078 | runpath_var= | |
9079 | allow_undefined_flag= | |
9080 | always_export_symbols=no | |
9081 | archive_cmds= | |
9082 | archive_expsym_cmds= | |
9083 | compiler_needs_object=no | |
9084 | enable_shared_with_static_runtimes=no | |
9085 | export_dynamic_flag_spec= | |
9086 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9087 | hardcode_automatic=no | |
9088 | hardcode_direct=no | |
9089 | hardcode_direct_absolute=no | |
9090 | hardcode_libdir_flag_spec= | |
9091 | hardcode_libdir_flag_spec_ld= | |
9092 | hardcode_libdir_separator= | |
9093 | hardcode_minus_L=no | |
9094 | hardcode_shlibpath_var=unsupported | |
9095 | inherit_rpath=no | |
9096 | link_all_deplibs=unknown | |
9097 | module_cmds= | |
9098 | module_expsym_cmds= | |
9099 | old_archive_from_new_cmds= | |
9100 | old_archive_from_expsyms_cmds= | |
9101 | thread_safe_flag_spec= | |
9102 | whole_archive_flag_spec= | |
9103 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9104 | # included in the symbol list | |
9105 | include_expsyms= | |
9106 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9107 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
9108 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
9109 | # as well as any symbol that contains `d'. | |
9110 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
9111 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
9112 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9113 | # the symbol is explicitly referenced. Since portable code cannot | |
9114 | # rely on this symbol name, it's probably fine to never include it in | |
9115 | # preloaded symbol tables. | |
9116 | # Exclude shared library initialization/finalization symbols. | |
9117 | extract_expsyms_cmds= | |
9118 | ||
9119 | case $host_os in | |
9120 | cygwin* | mingw* | pw32* | cegcc*) | |
9121 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
9122 | # When not using gcc, we currently assume that we are using | |
9123 | # Microsoft Visual C++. | |
9124 | if test "$GCC" != yes; then | |
9125 | with_gnu_ld=no | |
9126 | fi | |
9127 | ;; | |
9128 | interix*) | |
9129 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9130 | with_gnu_ld=yes | |
9131 | ;; | |
9132 | openbsd*) | |
9133 | with_gnu_ld=no | |
9134 | ;; | |
9135 | esac | |
9136 | ||
9137 | ld_shlibs=yes | |
9138 | ||
9139 | # On some targets, GNU ld is compatible enough with the native linker | |
9140 | # that we're better off using the native interface for both. | |
9141 | lt_use_gnu_ld_interface=no | |
9142 | if test "$with_gnu_ld" = yes; then | |
9143 | case $host_os in | |
9144 | aix*) | |
9145 | # The AIX port of GNU ld has always aspired to compatibility | |
9146 | # with the native linker. However, as the warning in the GNU ld | |
9147 | # block says, versions before 2.19.5* couldn't really create working | |
9148 | # shared libraries, regardless of the interface used. | |
9149 | case `$LD -v 2>&1` in | |
9150 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9151 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9152 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9153 | *) | |
9154 | lt_use_gnu_ld_interface=yes | |
9155 | ;; | |
9156 | esac | |
9157 | ;; | |
9158 | *) | |
9159 | lt_use_gnu_ld_interface=yes | |
9160 | ;; | |
9161 | esac | |
9162 | fi | |
9163 | ||
9164 | if test "$lt_use_gnu_ld_interface" = yes; then | |
9165 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
9166 | wlarc='${wl}' | |
9167 | ||
9168 | # Set some defaults for GNU ld with shared library support. These | |
9169 | # are reset later if shared libraries are not supported. Putting them | |
9170 | # here allows them to be overridden if necessary. | |
9171 | runpath_var=LD_RUN_PATH | |
9172 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9173 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
9174 | # ancient GNU ld didn't support --whole-archive et. al. | |
9175 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9176 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9177 | else | |
9178 | whole_archive_flag_spec= | |
9179 | fi | |
9180 | supports_anon_versioning=no | |
9181 | case `$LD -v 2>&1` in | |
9182 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
9183 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
9184 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9185 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9186 | *\ 2.11.*) ;; # other 2.11 versions | |
9187 | *) supports_anon_versioning=yes ;; | |
9188 | esac | |
9189 | ||
9190 | # See if GNU ld supports shared libraries. | |
9191 | case $host_os in | |
9192 | aix[3-9]*) | |
9193 | # On AIX/PPC, the GNU linker is very broken | |
9194 | if test "$host_cpu" != ia64; then | |
9195 | ld_shlibs=no | |
9196 | cat <<_LT_EOF 1>&2 | |
9197 | ||
9198 | *** Warning: the GNU linker, at least up to release 2.19, is reported | |
9199 | *** to be unable to reliably create shared libraries on AIX. | |
9200 | *** Therefore, libtool is disabling shared libraries support. If you | |
9201 | *** really care for shared libraries, you may want to install binutils | |
9202 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9203 | *** You will then need to restart the configuration process. | |
9204 | ||
9205 | _LT_EOF | |
9206 | fi | |
9207 | ;; | |
9208 | ||
9209 | amigaos*) | |
9210 | case $host_cpu in | |
9211 | powerpc) | |
9212 | # see comment about AmigaOS4 .so support | |
9213 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9214 | archive_expsym_cmds='' | |
9215 | ;; | |
9216 | m68k) | |
9217 | 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)' | |
9218 | hardcode_libdir_flag_spec='-L$libdir' | |
9219 | hardcode_minus_L=yes | |
9220 | ;; | |
9221 | esac | |
9222 | ;; | |
9223 | ||
9224 | beos*) | |
9225 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9226 | allow_undefined_flag=unsupported | |
9227 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9228 | # support --undefined. This deserves some investigation. FIXME | |
9229 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9230 | else | |
9231 | ld_shlibs=no | |
9232 | fi | |
9233 | ;; | |
9234 | ||
9235 | cygwin* | mingw* | pw32* | cegcc*) | |
9236 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9237 | # as there is no search path for DLLs. | |
9238 | hardcode_libdir_flag_spec='-L$libdir' | |
9239 | export_dynamic_flag_spec='${wl}--export-all-symbols' | |
9240 | allow_undefined_flag=unsupported | |
9241 | always_export_symbols=no | |
9242 | enable_shared_with_static_runtimes=yes | |
9243 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9244 | ||
9245 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9246 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9247 | # If the export-symbols file already is a .def file (1st line | |
9248 | # is EXPORTS), use it as is; otherwise, prepend... | |
9249 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9250 | cp $export_symbols $output_objdir/$soname.def; | |
9251 | else | |
9252 | echo EXPORTS > $output_objdir/$soname.def; | |
9253 | cat $export_symbols >> $output_objdir/$soname.def; | |
9254 | fi~ | |
9255 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9256 | else | |
9257 | ld_shlibs=no | |
9258 | fi | |
9259 | ;; | |
9260 | ||
9261 | haiku*) | |
9262 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9263 | link_all_deplibs=yes | |
9264 | ;; | |
9265 | ||
9266 | interix[3-9]*) | |
9267 | hardcode_direct=no | |
9268 | hardcode_shlibpath_var=no | |
9269 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9270 | export_dynamic_flag_spec='${wl}-E' | |
9271 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9272 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9273 | # default) and relocated if they conflict, which is a slow very memory | |
9274 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9275 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9276 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9277 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9278 | 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' | |
9279 | ;; | |
9280 | ||
e9085da5 | 9281 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
eff02e4f ILT |
9282 | tmp_diet=no |
9283 | if test "$host_os" = linux-dietlibc; then | |
9284 | case $cc_basename in | |
9285 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9286 | esac | |
9287 | fi | |
9288 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9289 | && test "$tmp_diet" = no | |
9290 | then | |
a699d672 | 9291 | tmp_addflag=' $pic_flag' |
eff02e4f ILT |
9292 | tmp_sharedflag='-shared' |
9293 | case $cc_basename,$host_cpu in | |
9294 | pgcc*) # Portland Group C compiler | |
9295 | 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' | |
9296 | tmp_addflag=' $pic_flag' | |
9297 | ;; | |
9298 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9299 | # Portland Group f77 and f90 compilers | |
9300 | 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' | |
9301 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
9302 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9303 | tmp_addflag=' -i_dynamic' ;; | |
9304 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9305 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9306 | ifc* | ifort*) # Intel Fortran compiler | |
9307 | tmp_addflag=' -nofor_main' ;; | |
9308 | lf95*) # Lahey Fortran 8.1 | |
9309 | whole_archive_flag_spec= | |
9310 | tmp_sharedflag='--shared' ;; | |
9311 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
9312 | tmp_sharedflag='-qmkshrobj' | |
9313 | tmp_addflag= ;; | |
9314 | nvcc*) # Cuda Compiler Driver 2.2 | |
9315 | 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' | |
9316 | compiler_needs_object=yes | |
9317 | ;; | |
9318 | esac | |
9319 | case `$CC -V 2>&1 | sed 5q` in | |
9320 | *Sun\ C*) # Sun C 5.9 | |
9321 | 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' | |
9322 | compiler_needs_object=yes | |
9323 | tmp_sharedflag='-G' ;; | |
9324 | *Sun\ F*) # Sun Fortran 8.3 | |
9325 | tmp_sharedflag='-G' ;; | |
9326 | esac | |
9327 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9328 | ||
9329 | if test "x$supports_anon_versioning" = xyes; then | |
9330 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9331 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9332 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9333 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9334 | fi | |
9335 | ||
9336 | case $cc_basename in | |
9337 | xlf* | bgf* | bgxlf* | mpixlf*) | |
9338 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
9339 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9340 | hardcode_libdir_flag_spec= | |
9341 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
9342 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
9343 | if test "x$supports_anon_versioning" = xyes; then | |
9344 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9345 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9346 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9347 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9348 | fi | |
9349 | ;; | |
9350 | esac | |
9351 | else | |
9352 | ld_shlibs=no | |
9353 | fi | |
9354 | ;; | |
9355 | ||
9356 | netbsd*) | |
9357 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9358 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9359 | wlarc= | |
9360 | else | |
9361 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9362 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9363 | fi | |
9364 | ;; | |
9365 | ||
9366 | solaris*) | |
9367 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9368 | ld_shlibs=no | |
9369 | cat <<_LT_EOF 1>&2 | |
9370 | ||
9371 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
9372 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9373 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9374 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9375 | *** your PATH or compiler configuration so that the native linker is | |
9376 | *** used, and then restart. | |
9377 | ||
9378 | _LT_EOF | |
9379 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9380 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9381 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9382 | else | |
9383 | ld_shlibs=no | |
9384 | fi | |
9385 | ;; | |
9386 | ||
9387 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
9388 | case `$LD -v 2>&1` in | |
9389 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9390 | ld_shlibs=no | |
9391 | cat <<_LT_EOF 1>&2 | |
9392 | ||
9393 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
9394 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9395 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9396 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9397 | *** your PATH or compiler configuration so that the native linker is | |
9398 | *** used, and then restart. | |
9399 | ||
9400 | _LT_EOF | |
9401 | ;; | |
9402 | *) | |
9403 | # For security reasons, it is highly recommended that you always | |
9404 | # use absolute paths for naming shared libraries, and exclude the | |
9405 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9406 | # requires that you compile everything twice, which is a pain. | |
9407 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9408 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9409 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9410 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9411 | else | |
9412 | ld_shlibs=no | |
9413 | fi | |
9414 | ;; | |
9415 | esac | |
9416 | ;; | |
9417 | ||
9418 | sunos4*) | |
9419 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9420 | wlarc= | |
9421 | hardcode_direct=yes | |
9422 | hardcode_shlibpath_var=no | |
9423 | ;; | |
9424 | ||
9425 | *) | |
9426 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9427 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9428 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9429 | else | |
9430 | ld_shlibs=no | |
9431 | fi | |
9432 | ;; | |
9433 | esac | |
9434 | ||
9435 | if test "$ld_shlibs" = no; then | |
9436 | runpath_var= | |
9437 | hardcode_libdir_flag_spec= | |
9438 | export_dynamic_flag_spec= | |
9439 | whole_archive_flag_spec= | |
9440 | fi | |
9441 | else | |
9442 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9443 | case $host_os in | |
9444 | aix3*) | |
9445 | allow_undefined_flag=unsupported | |
9446 | always_export_symbols=yes | |
9447 | archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | |
9448 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9449 | # are no directories specified by -L. | |
9450 | hardcode_minus_L=yes | |
9451 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9452 | # Neither direct hardcoding nor static linking is supported with a | |
9453 | # broken collect2. | |
9454 | hardcode_direct=unsupported | |
9455 | fi | |
9456 | ;; | |
9457 | ||
9458 | aix[4-9]*) | |
9459 | if test "$host_cpu" = ia64; then | |
9460 | # On IA64, the linker does run time linking by default, so we don't | |
9461 | # have to do anything special. | |
9462 | aix_use_runtimelinking=no | |
9463 | exp_sym_flag='-Bexport' | |
9464 | no_entry_flag="" | |
9465 | else | |
9466 | # If we're using GNU nm, then we don't want the "-C" option. | |
9467 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
9468 | # Also, AIX nm treats weak defined symbols like other global | |
9469 | # defined symbols, whereas GNU nm marks them as "W". | |
9470 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
9471 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
9472 | else | |
2f401a8f | 9473 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
eff02e4f ILT |
9474 | fi |
9475 | aix_use_runtimelinking=no | |
9476 | ||
9477 | # Test if we are trying to use run time linking or normal | |
9478 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9479 | # need to do runtime linking. | |
9480 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
9481 | for ld_flag in $LDFLAGS; do | |
9482 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9483 | aix_use_runtimelinking=yes | |
9484 | break | |
9485 | fi | |
9486 | done | |
9487 | ;; | |
9488 | esac | |
9489 | ||
9490 | exp_sym_flag='-bexport' | |
9491 | no_entry_flag='-bnoentry' | |
9492 | fi | |
9493 | ||
9494 | # When large executables or shared objects are built, AIX ld can | |
9495 | # have problems creating the table of contents. If linking a library | |
9496 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9497 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9498 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9499 | ||
9500 | archive_cmds='' | |
9501 | hardcode_direct=yes | |
9502 | hardcode_direct_absolute=yes | |
9503 | hardcode_libdir_separator=':' | |
9504 | link_all_deplibs=yes | |
9505 | file_list_spec='${wl}-f,' | |
9506 | ||
9507 | if test "$GCC" = yes; then | |
9508 | case $host_os in aix4.[012]|aix4.[012].*) | |
9509 | # We only want to do this on AIX 4.2 and lower, the check | |
9510 | # below for broken collect2 doesn't work under 4.3+ | |
9511 | collect2name=`${CC} -print-prog-name=collect2` | |
9512 | if test -f "$collect2name" && | |
9513 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9514 | then | |
9515 | # We have reworked collect2 | |
9516 | : | |
9517 | else | |
9518 | # We have old collect2 | |
9519 | hardcode_direct=unsupported | |
9520 | # It fails to find uninstalled libraries when the uninstalled | |
9521 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9522 | # to unsupported forces relinking | |
9523 | hardcode_minus_L=yes | |
9524 | hardcode_libdir_flag_spec='-L$libdir' | |
9525 | hardcode_libdir_separator= | |
9526 | fi | |
9527 | ;; | |
9528 | esac | |
9529 | shared_flag='-shared' | |
9530 | if test "$aix_use_runtimelinking" = yes; then | |
9531 | shared_flag="$shared_flag "'${wl}-G' | |
9532 | fi | |
9533 | else | |
9534 | # not using gcc | |
9535 | if test "$host_cpu" = ia64; then | |
9536 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9537 | # chokes on -Wl,-G. The following line is correct: | |
9538 | shared_flag='-G' | |
9539 | else | |
9540 | if test "$aix_use_runtimelinking" = yes; then | |
9541 | shared_flag='${wl}-G' | |
9542 | else | |
9543 | shared_flag='${wl}-bM:SRE' | |
9544 | fi | |
9545 | fi | |
9546 | fi | |
9547 | ||
9548 | export_dynamic_flag_spec='${wl}-bexpall' | |
9549 | # It seems that -bexpall does not export symbols beginning with | |
9550 | # underscore (_), so it is better to generate a list of symbols to export. | |
9551 | always_export_symbols=yes | |
9552 | if test "$aix_use_runtimelinking" = yes; then | |
9553 | # Warning - without using the other runtime loading flags (-brtl), | |
9554 | # -berok will link without error, but may produce a broken library. | |
9555 | allow_undefined_flag='-berok' | |
9556 | # Determine the default libpath from the value encoded in an | |
9557 | # empty executable. | |
9558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9559 | /* end confdefs.h. */ | |
9560 | ||
9561 | int | |
9562 | main () | |
9563 | { | |
9564 | ||
9565 | ; | |
9566 | return 0; | |
9567 | } | |
9568 | _ACEOF | |
9569 | if ac_fn_c_try_link "$LINENO"; then : | |
9570 | ||
9571 | lt_aix_libpath_sed=' | |
9572 | /Import File Strings/,/^$/ { | |
9573 | /^0/ { | |
9574 | s/^0 *\(.*\)$/\1/ | |
9575 | p | |
9576 | } | |
9577 | }' | |
9578 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9579 | # Check for a 64-bit object if we didn't find anything. | |
9580 | if test -z "$aix_libpath"; then | |
9581 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9582 | fi | |
9583 | fi | |
9584 | rm -f core conftest.err conftest.$ac_objext \ | |
9585 | conftest$ac_exeext conftest.$ac_ext | |
9586 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9587 | ||
9588 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9589 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
9590 | else | |
9591 | if test "$host_cpu" = ia64; then | |
9592 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9593 | allow_undefined_flag="-z nodefs" | |
9594 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
9595 | else | |
9596 | # Determine the default libpath from the value encoded in an | |
9597 | # empty executable. | |
9598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9599 | /* end confdefs.h. */ | |
9600 | ||
9601 | int | |
9602 | main () | |
9603 | { | |
9604 | ||
9605 | ; | |
9606 | return 0; | |
9607 | } | |
9608 | _ACEOF | |
9609 | if ac_fn_c_try_link "$LINENO"; then : | |
9610 | ||
9611 | lt_aix_libpath_sed=' | |
9612 | /Import File Strings/,/^$/ { | |
9613 | /^0/ { | |
9614 | s/^0 *\(.*\)$/\1/ | |
9615 | p | |
9616 | } | |
9617 | }' | |
9618 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9619 | # Check for a 64-bit object if we didn't find anything. | |
9620 | if test -z "$aix_libpath"; then | |
9621 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9622 | fi | |
9623 | fi | |
9624 | rm -f core conftest.err conftest.$ac_objext \ | |
9625 | conftest$ac_exeext conftest.$ac_ext | |
9626 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9627 | ||
9628 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9629 | # Warning - without using the other run time loading flags, | |
9630 | # -berok will link without error, but may produce a broken library. | |
9631 | no_undefined_flag=' ${wl}-bernotok' | |
9632 | allow_undefined_flag=' ${wl}-berok' | |
9633 | if test "$with_gnu_ld" = yes; then | |
9634 | # We only use this code for GNU lds that support --whole-archive. | |
9635 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
9636 | else | |
9637 | # Exported symbols can be pulled into shared objects from archives | |
9638 | whole_archive_flag_spec='$convenience' | |
9639 | fi | |
9640 | archive_cmds_need_lc=yes | |
9641 | # This is similar to how AIX traditionally builds its shared libraries. | |
9642 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
9643 | fi | |
9644 | fi | |
9645 | ;; | |
9646 | ||
9647 | amigaos*) | |
9648 | case $host_cpu in | |
9649 | powerpc) | |
9650 | # see comment about AmigaOS4 .so support | |
9651 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9652 | archive_expsym_cmds='' | |
9653 | ;; | |
9654 | m68k) | |
9655 | 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)' | |
9656 | hardcode_libdir_flag_spec='-L$libdir' | |
9657 | hardcode_minus_L=yes | |
9658 | ;; | |
9659 | esac | |
9660 | ;; | |
9661 | ||
9662 | bsdi[45]*) | |
9663 | export_dynamic_flag_spec=-rdynamic | |
9664 | ;; | |
9665 | ||
9666 | cygwin* | mingw* | pw32* | cegcc*) | |
9667 | # When not using gcc, we currently assume that we are using | |
9668 | # Microsoft Visual C++. | |
9669 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9670 | # no search path for DLLs. | |
9671 | hardcode_libdir_flag_spec=' ' | |
9672 | allow_undefined_flag=unsupported | |
9673 | # Tell ltmain to make .lib files, not .a files. | |
9674 | libext=lib | |
9675 | # Tell ltmain to make .dll files, not .so files. | |
9676 | shrext_cmds=".dll" | |
9677 | # FIXME: Setting linknames here is a bad hack. | |
9678 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9679 | # The linker will automatically build a .lib file if we build a DLL. | |
9680 | old_archive_from_new_cmds='true' | |
9681 | # FIXME: Should let the user specify the lib program. | |
9682 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9683 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
9684 | enable_shared_with_static_runtimes=yes | |
9685 | ;; | |
9686 | ||
9687 | darwin* | rhapsody*) | |
9688 | ||
9689 | ||
9690 | archive_cmds_need_lc=no | |
9691 | hardcode_direct=no | |
9692 | hardcode_automatic=yes | |
9693 | hardcode_shlibpath_var=unsupported | |
9694 | if test "$lt_cv_ld_force_load" = "yes"; then | |
9695 | whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
9696 | else | |
9697 | whole_archive_flag_spec='' | |
9698 | fi | |
9699 | link_all_deplibs=yes | |
9700 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9701 | case $cc_basename in | |
9702 | ifort*) _lt_dar_can_shared=yes ;; | |
9703 | *) _lt_dar_can_shared=$GCC ;; | |
9704 | esac | |
9705 | if test "$_lt_dar_can_shared" = "yes"; then | |
9706 | output_verbose_link_cmd=func_echo_all | |
9707 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
9708 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9709 | archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" | |
9710 | module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" | |
9711 | ||
9712 | else | |
9713 | ld_shlibs=no | |
9714 | fi | |
9715 | ||
9716 | ;; | |
9717 | ||
9718 | dgux*) | |
9719 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9720 | hardcode_libdir_flag_spec='-L$libdir' | |
9721 | hardcode_shlibpath_var=no | |
9722 | ;; | |
9723 | ||
9724 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
9725 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9726 | # does not break anything, and helps significantly (at the cost of a little | |
9727 | # extra space). | |
9728 | freebsd2.2*) | |
9729 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9730 | hardcode_libdir_flag_spec='-R$libdir' | |
9731 | hardcode_direct=yes | |
9732 | hardcode_shlibpath_var=no | |
9733 | ;; | |
9734 | ||
9735 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
9736 | freebsd2.*) | |
9737 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9738 | hardcode_direct=yes | |
9739 | hardcode_minus_L=yes | |
9740 | hardcode_shlibpath_var=no | |
9741 | ;; | |
9742 | ||
9743 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
9744 | freebsd* | dragonfly*) | |
9745 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
9746 | hardcode_libdir_flag_spec='-R$libdir' | |
9747 | hardcode_direct=yes | |
9748 | hardcode_shlibpath_var=no | |
9749 | ;; | |
9750 | ||
9751 | hpux9*) | |
9752 | if test "$GCC" = yes; then | |
9753 | archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
9754 | else | |
9755 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
9756 | fi | |
9757 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9758 | hardcode_libdir_separator=: | |
9759 | hardcode_direct=yes | |
9760 | ||
9761 | # hardcode_minus_L: Not really in the search PATH, | |
9762 | # but as the default location of the library. | |
9763 | hardcode_minus_L=yes | |
9764 | export_dynamic_flag_spec='${wl}-E' | |
9765 | ;; | |
9766 | ||
9767 | hpux10*) | |
9768 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
9769 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9770 | else | |
9771 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9772 | fi | |
9773 | if test "$with_gnu_ld" = no; then | |
9774 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9775 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
9776 | hardcode_libdir_separator=: | |
9777 | hardcode_direct=yes | |
9778 | hardcode_direct_absolute=yes | |
9779 | export_dynamic_flag_spec='${wl}-E' | |
9780 | # hardcode_minus_L: Not really in the search PATH, | |
9781 | # but as the default location of the library. | |
9782 | hardcode_minus_L=yes | |
9783 | fi | |
9784 | ;; | |
9785 | ||
9786 | hpux11*) | |
9787 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
9788 | case $host_cpu in | |
9789 | hppa*64*) | |
9790 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9791 | ;; | |
9792 | ia64*) | |
9793 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9794 | ;; | |
9795 | *) | |
9796 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9797 | ;; | |
9798 | esac | |
9799 | else | |
9800 | case $host_cpu in | |
9801 | hppa*64*) | |
9802 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9803 | ;; | |
9804 | ia64*) | |
9805 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9806 | ;; | |
9807 | *) | |
9808 | ||
9809 | # Older versions of the 11.00 compiler do not understand -b yet | |
9810 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
9811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
9812 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
22e05272 | 9813 | if ${lt_cv_prog_compiler__b+:} false; then : |
eff02e4f ILT |
9814 | $as_echo_n "(cached) " >&6 |
9815 | else | |
9816 | lt_cv_prog_compiler__b=no | |
9817 | save_LDFLAGS="$LDFLAGS" | |
9818 | LDFLAGS="$LDFLAGS -b" | |
9819 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9820 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9821 | # The linker can only warn and ignore the option if not recognized | |
9822 | # So say no if there are warnings | |
9823 | if test -s conftest.err; then | |
9824 | # Append any errors to the config.log. | |
9825 | cat conftest.err 1>&5 | |
9826 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9827 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9828 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9829 | lt_cv_prog_compiler__b=yes | |
9830 | fi | |
9831 | else | |
9832 | lt_cv_prog_compiler__b=yes | |
9833 | fi | |
9834 | fi | |
9835 | $RM -r conftest* | |
9836 | LDFLAGS="$save_LDFLAGS" | |
9837 | ||
9838 | fi | |
9839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
9840 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
9841 | ||
9842 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
9843 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9844 | else | |
9845 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9846 | fi | |
9847 | ||
9848 | ;; | |
9849 | esac | |
9850 | fi | |
9851 | if test "$with_gnu_ld" = no; then | |
9852 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9853 | hardcode_libdir_separator=: | |
9854 | ||
9855 | case $host_cpu in | |
9856 | hppa*64*|ia64*) | |
9857 | hardcode_direct=no | |
9858 | hardcode_shlibpath_var=no | |
9859 | ;; | |
9860 | *) | |
9861 | hardcode_direct=yes | |
9862 | hardcode_direct_absolute=yes | |
9863 | export_dynamic_flag_spec='${wl}-E' | |
9864 | ||
9865 | # hardcode_minus_L: Not really in the search PATH, | |
9866 | # but as the default location of the library. | |
9867 | hardcode_minus_L=yes | |
9868 | ;; | |
9869 | esac | |
9870 | fi | |
9871 | ;; | |
9872 | ||
9873 | irix5* | irix6* | nonstopux*) | |
9874 | if test "$GCC" = yes; then | |
9875 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
9876 | # Try to use the -exported_symbol ld option, if it does not | |
9877 | # work, assume that -exports_file does not work either and | |
9878 | # implicitly export all symbols. | |
9879 | save_LDFLAGS="$LDFLAGS" | |
9880 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
9881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9882 | /* end confdefs.h. */ | |
9883 | int foo(void) {} | |
9884 | _ACEOF | |
9885 | if ac_fn_c_try_link "$LINENO"; then : | |
9886 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | |
9887 | ||
9888 | fi | |
9889 | rm -f core conftest.err conftest.$ac_objext \ | |
9890 | conftest$ac_exeext conftest.$ac_ext | |
9891 | LDFLAGS="$save_LDFLAGS" | |
9892 | else | |
9893 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
9894 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
9895 | fi | |
9896 | archive_cmds_need_lc='no' | |
9897 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9898 | hardcode_libdir_separator=: | |
9899 | inherit_rpath=yes | |
9900 | link_all_deplibs=yes | |
9901 | ;; | |
9902 | ||
9903 | netbsd*) | |
9904 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9905 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9906 | else | |
9907 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9908 | fi | |
9909 | hardcode_libdir_flag_spec='-R$libdir' | |
9910 | hardcode_direct=yes | |
9911 | hardcode_shlibpath_var=no | |
9912 | ;; | |
9913 | ||
9914 | newsos6) | |
9915 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9916 | hardcode_direct=yes | |
9917 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9918 | hardcode_libdir_separator=: | |
9919 | hardcode_shlibpath_var=no | |
9920 | ;; | |
9921 | ||
9922 | *nto* | *qnx*) | |
9923 | ;; | |
9924 | ||
9925 | openbsd*) | |
9926 | if test -f /usr/libexec/ld.so; then | |
9927 | hardcode_direct=yes | |
9928 | hardcode_shlibpath_var=no | |
9929 | hardcode_direct_absolute=yes | |
9930 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9931 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9932 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
9933 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9934 | export_dynamic_flag_spec='${wl}-E' | |
9935 | else | |
9936 | case $host_os in | |
9937 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9938 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9939 | hardcode_libdir_flag_spec='-R$libdir' | |
9940 | ;; | |
9941 | *) | |
9942 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9943 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9944 | ;; | |
9945 | esac | |
9946 | fi | |
9947 | else | |
9948 | ld_shlibs=no | |
9949 | fi | |
9950 | ;; | |
9951 | ||
9952 | os2*) | |
9953 | hardcode_libdir_flag_spec='-L$libdir' | |
9954 | hardcode_minus_L=yes | |
9955 | allow_undefined_flag=unsupported | |
9956 | archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | |
9957 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
9958 | ;; | |
9959 | ||
9960 | osf3*) | |
9961 | if test "$GCC" = yes; then | |
9962 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9963 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
9964 | else | |
9965 | allow_undefined_flag=' -expect_unresolved \*' | |
9966 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
9967 | fi | |
9968 | archive_cmds_need_lc='no' | |
9969 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9970 | hardcode_libdir_separator=: | |
9971 | ;; | |
9972 | ||
9973 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
9974 | if test "$GCC" = yes; then | |
9975 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9976 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
9977 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9978 | else | |
9979 | allow_undefined_flag=' -expect_unresolved \*' | |
9980 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
9981 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ | |
9982 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | |
9983 | ||
9984 | # Both c and cxx compiler support -rpath directly | |
9985 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9986 | fi | |
9987 | archive_cmds_need_lc='no' | |
9988 | hardcode_libdir_separator=: | |
9989 | ;; | |
9990 | ||
9991 | solaris*) | |
9992 | no_undefined_flag=' -z defs' | |
9993 | if test "$GCC" = yes; then | |
9994 | wlarc='${wl}' | |
9995 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9996 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9997 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9998 | else | |
9999 | case `$CC -V 2>&1` in | |
10000 | *"Compilers 5.0"*) | |
10001 | wlarc='' | |
10002 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10003 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10004 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
10005 | ;; | |
10006 | *) | |
10007 | wlarc='${wl}' | |
10008 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10009 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10010 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10011 | ;; | |
10012 | esac | |
10013 | fi | |
10014 | hardcode_libdir_flag_spec='-R$libdir' | |
10015 | hardcode_shlibpath_var=no | |
10016 | case $host_os in | |
10017 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10018 | *) | |
10019 | # The compiler driver will combine and reorder linker options, | |
10020 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
10021 | # but is careful enough not to reorder. | |
10022 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10023 | if test "$GCC" = yes; then | |
10024 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
10025 | else | |
10026 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10027 | fi | |
10028 | ;; | |
10029 | esac | |
10030 | link_all_deplibs=yes | |
10031 | ;; | |
10032 | ||
10033 | sunos4*) | |
10034 | if test "x$host_vendor" = xsequent; then | |
10035 | # Use $CC to link under sequent, because it throws in some extra .o | |
10036 | # files that make .init and .fini sections work. | |
10037 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10038 | else | |
10039 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10040 | fi | |
10041 | hardcode_libdir_flag_spec='-L$libdir' | |
10042 | hardcode_direct=yes | |
10043 | hardcode_minus_L=yes | |
10044 | hardcode_shlibpath_var=no | |
10045 | ;; | |
10046 | ||
10047 | sysv4) | |
10048 | case $host_vendor in | |
10049 | sni) | |
10050 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10051 | hardcode_direct=yes # is this really true??? | |
10052 | ;; | |
10053 | siemens) | |
10054 | ## LD is ld it makes a PLAMLIB | |
10055 | ## CC just makes a GrossModule. | |
10056 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10057 | reload_cmds='$CC -r -o $output$reload_objs' | |
10058 | hardcode_direct=no | |
10059 | ;; | |
10060 | motorola) | |
10061 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10062 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10063 | ;; | |
10064 | esac | |
10065 | runpath_var='LD_RUN_PATH' | |
10066 | hardcode_shlibpath_var=no | |
10067 | ;; | |
10068 | ||
10069 | sysv4.3*) | |
10070 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10071 | hardcode_shlibpath_var=no | |
10072 | export_dynamic_flag_spec='-Bexport' | |
10073 | ;; | |
10074 | ||
10075 | sysv4*MP*) | |
10076 | if test -d /usr/nec; then | |
10077 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10078 | hardcode_shlibpath_var=no | |
10079 | runpath_var=LD_RUN_PATH | |
10080 | hardcode_runpath_var=yes | |
10081 | ld_shlibs=yes | |
10082 | fi | |
10083 | ;; | |
10084 | ||
10085 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
10086 | no_undefined_flag='${wl}-z,text' | |
10087 | archive_cmds_need_lc=no | |
10088 | hardcode_shlibpath_var=no | |
10089 | runpath_var='LD_RUN_PATH' | |
10090 | ||
10091 | if test "$GCC" = yes; then | |
10092 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10093 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10094 | else | |
10095 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10096 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10097 | fi | |
10098 | ;; | |
10099 | ||
10100 | sysv5* | sco3.2v5* | sco5v6*) | |
10101 | # Note: We can NOT use -z defs as we might desire, because we do not | |
10102 | # link with -lc, and that would cause any symbols used from libc to | |
10103 | # always be unresolved, which means just about no library would | |
10104 | # ever link correctly. If we're not using GNU ld we use -z text | |
10105 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10106 | # as -z defs. | |
10107 | no_undefined_flag='${wl}-z,text' | |
10108 | allow_undefined_flag='${wl}-z,nodefs' | |
10109 | archive_cmds_need_lc=no | |
10110 | hardcode_shlibpath_var=no | |
10111 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
10112 | hardcode_libdir_separator=':' | |
10113 | link_all_deplibs=yes | |
10114 | export_dynamic_flag_spec='${wl}-Bexport' | |
10115 | runpath_var='LD_RUN_PATH' | |
10116 | ||
10117 | if test "$GCC" = yes; then | |
10118 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10119 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10120 | else | |
10121 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10122 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10123 | fi | |
10124 | ;; | |
10125 | ||
10126 | uts4*) | |
10127 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10128 | hardcode_libdir_flag_spec='-L$libdir' | |
10129 | hardcode_shlibpath_var=no | |
10130 | ;; | |
10131 | ||
10132 | *) | |
10133 | ld_shlibs=no | |
10134 | ;; | |
10135 | esac | |
10136 | ||
10137 | if test x$host_vendor = xsni; then | |
10138 | case $host in | |
10139 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10140 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
10141 | ;; | |
10142 | esac | |
10143 | fi | |
10144 | fi | |
10145 | ||
10146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
10147 | $as_echo "$ld_shlibs" >&6; } | |
10148 | test "$ld_shlibs" = no && can_build_shared=no | |
10149 | ||
10150 | with_gnu_ld=$with_gnu_ld | |
10151 | ||
10152 | ||
10153 | ||
10154 | ||
10155 | ||
10156 | ||
10157 | ||
10158 | ||
10159 | ||
10160 | ||
10161 | ||
10162 | ||
10163 | ||
10164 | ||
10165 | ||
10166 | # | |
10167 | # Do we need to explicitly link libc? | |
10168 | # | |
10169 | case "x$archive_cmds_need_lc" in | |
10170 | x|xyes) | |
10171 | # Assume -lc should be added | |
10172 | archive_cmds_need_lc=yes | |
10173 | ||
10174 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
10175 | case $archive_cmds in | |
10176 | *'~'*) | |
10177 | # FIXME: we may have to deal with multi-command sequences. | |
10178 | ;; | |
10179 | '$CC '*) | |
10180 | # Test whether the compiler implicitly links with -lc since on some | |
10181 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10182 | # to ld, don't add -lc before -lgcc. | |
10183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
10184 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
22e05272 | 10185 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
eff02e4f ILT |
10186 | $as_echo_n "(cached) " >&6 |
10187 | else | |
10188 | $RM conftest* | |
10189 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10190 | ||
10191 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
10192 | (eval $ac_compile) 2>&5 | |
10193 | ac_status=$? | |
10194 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10195 | test $ac_status = 0; } 2>conftest.err; then | |
10196 | soname=conftest | |
10197 | lib=conftest | |
10198 | libobjs=conftest.$ac_objext | |
10199 | deplibs= | |
10200 | wl=$lt_prog_compiler_wl | |
10201 | pic_flag=$lt_prog_compiler_pic | |
10202 | compiler_flags=-v | |
10203 | linker_flags=-v | |
10204 | verstring= | |
10205 | output_objdir=. | |
10206 | libname=conftest | |
10207 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10208 | allow_undefined_flag= | |
10209 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
10210 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
10211 | ac_status=$? | |
10212 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10213 | test $ac_status = 0; } | |
10214 | then | |
10215 | lt_cv_archive_cmds_need_lc=no | |
10216 | else | |
10217 | lt_cv_archive_cmds_need_lc=yes | |
10218 | fi | |
10219 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10220 | else | |
10221 | cat conftest.err 1>&5 | |
10222 | fi | |
10223 | $RM conftest* | |
10224 | ||
10225 | fi | |
10226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
10227 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
10228 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
10229 | ;; | |
10230 | esac | |
10231 | fi | |
10232 | ;; | |
10233 | esac | |
10234 | ||
10235 | ||
10236 | ||
10237 | ||
10238 | ||
10239 | ||
10240 | ||
10241 | ||
10242 | ||
10243 | ||
10244 | ||
10245 | ||
10246 | ||
10247 | ||
10248 | ||
10249 | ||
10250 | ||
10251 | ||
10252 | ||
10253 | ||
10254 | ||
10255 | ||
10256 | ||
10257 | ||
10258 | ||
10259 | ||
10260 | ||
10261 | ||
10262 | ||
10263 | ||
10264 | ||
10265 | ||
10266 | ||
10267 | ||
10268 | ||
10269 | ||
10270 | ||
10271 | ||
10272 | ||
10273 | ||
10274 | ||
10275 | ||
10276 | ||
10277 | ||
10278 | ||
10279 | ||
10280 | ||
10281 | ||
10282 | ||
10283 | ||
10284 | ||
10285 | ||
10286 | ||
10287 | ||
10288 | ||
10289 | ||
10290 | ||
10291 | ||
10292 | ||
10293 | ||
10294 | ||
10295 | ||
10296 | ||
10297 | ||
10298 | ||
10299 | ||
10300 | ||
10301 | ||
10302 | ||
10303 | ||
10304 | ||
10305 | ||
10306 | ||
10307 | ||
10308 | ||
10309 | ||
10310 | ||
10311 | ||
10312 | ||
10313 | ||
10314 | ||
10315 | ||
10316 | ||
10317 | ||
10318 | ||
10319 | ||
10320 | ||
10321 | ||
10322 | ||
10323 | ||
10324 | ||
10325 | ||
10326 | ||
10327 | ||
10328 | ||
10329 | ||
10330 | ||
10331 | ||
10332 | ||
10333 | ||
10334 | ||
10335 | ||
10336 | ||
10337 | ||
10338 | ||
10339 | ||
10340 | ||
10341 | ||
10342 | ||
10343 | ||
10344 | ||
10345 | ||
10346 | ||
10347 | ||
10348 | ||
10349 | ||
10350 | ||
10351 | ||
10352 | ||
10353 | ||
10354 | ||
10355 | ||
10356 | ||
10357 | ||
10358 | ||
10359 | ||
10360 | ||
10361 | ||
10362 | ||
10363 | ||
10364 | ||
10365 | ||
10366 | ||
10367 | ||
10368 | ||
10369 | ||
10370 | ||
10371 | ||
10372 | ||
10373 | ||
10374 | ||
10375 | ||
10376 | ||
10377 | ||
10378 | ||
10379 | ||
10380 | ||
10381 | ||
10382 | ||
10383 | ||
10384 | ||
10385 | ||
10386 | ||
10387 | ||
10388 | ||
10389 | ||
10390 | ||
10391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
10392 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
10393 | ||
10394 | if test "$GCC" = yes; then | |
10395 | case $host_os in | |
10396 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10397 | *) lt_awk_arg="/^libraries:/" ;; | |
10398 | esac | |
10399 | case $host_os in | |
10400 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
10401 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
10402 | esac | |
10403 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10404 | case $lt_search_path_spec in | |
10405 | *\;*) | |
10406 | # if the path contains ";" then we assume it to be the separator | |
10407 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10408 | # assumed that no part of a normal pathname contains ";" but that should | |
10409 | # okay in the real world where ";" in dirpaths is itself problematic. | |
10410 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
10411 | ;; | |
10412 | *) | |
10413 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10414 | ;; | |
10415 | esac | |
10416 | # Ok, now we have the path, separated by spaces, we can step through it | |
10417 | # and add multilib dir if necessary. | |
10418 | lt_tmp_lt_search_path_spec= | |
10419 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10420 | for lt_sys_path in $lt_search_path_spec; do | |
10421 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10422 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10423 | else | |
10424 | test -d "$lt_sys_path" && \ | |
10425 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10426 | fi | |
10427 | done | |
10428 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
10429 | BEGIN {RS=" "; FS="/|\n";} { | |
10430 | lt_foo=""; | |
10431 | lt_count=0; | |
10432 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10433 | if ($lt_i != "" && $lt_i != ".") { | |
10434 | if ($lt_i == "..") { | |
10435 | lt_count++; | |
10436 | } else { | |
10437 | if (lt_count == 0) { | |
10438 | lt_foo="/" $lt_i lt_foo; | |
10439 | } else { | |
10440 | lt_count--; | |
10441 | } | |
10442 | } | |
10443 | } | |
10444 | } | |
10445 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10446 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10447 | }'` | |
10448 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
10449 | # for these hosts. | |
10450 | case $host_os in | |
10451 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
10452 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
10453 | esac | |
10454 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
10455 | else | |
10456 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10457 | fi | |
10458 | library_names_spec= | |
10459 | libname_spec='lib$name' | |
10460 | soname_spec= | |
10461 | shrext_cmds=".so" | |
10462 | postinstall_cmds= | |
10463 | postuninstall_cmds= | |
10464 | finish_cmds= | |
10465 | finish_eval= | |
10466 | shlibpath_var= | |
10467 | shlibpath_overrides_runpath=unknown | |
10468 | version_type=none | |
10469 | dynamic_linker="$host_os ld.so" | |
10470 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10471 | need_lib_prefix=unknown | |
10472 | hardcode_into_libs=no | |
10473 | ||
10474 | # when you set need_version to no, make sure it does not cause -set_version | |
10475 | # flags to be left without arguments | |
10476 | need_version=unknown | |
10477 | ||
10478 | case $host_os in | |
10479 | aix3*) | |
10480 | version_type=linux | |
10481 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10482 | shlibpath_var=LIBPATH | |
10483 | ||
10484 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10485 | soname_spec='${libname}${release}${shared_ext}$major' | |
10486 | ;; | |
10487 | ||
10488 | aix[4-9]*) | |
10489 | version_type=linux | |
10490 | need_lib_prefix=no | |
10491 | need_version=no | |
10492 | hardcode_into_libs=yes | |
10493 | if test "$host_cpu" = ia64; then | |
10494 | # AIX 5 supports IA64 | |
10495 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10496 | shlibpath_var=LD_LIBRARY_PATH | |
10497 | else | |
10498 | # With GCC up to 2.95.x, collect2 would create an import file | |
10499 | # for dependence libraries. The import file would start with | |
10500 | # the line `#! .'. This would cause the generated library to | |
10501 | # depend on `.', always an invalid library. This was fixed in | |
10502 | # development snapshots of GCC prior to 3.0. | |
10503 | case $host_os in | |
10504 | aix4 | aix4.[01] | aix4.[01].*) | |
10505 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10506 | echo ' yes ' | |
10507 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10508 | : | |
10509 | else | |
10510 | can_build_shared=no | |
10511 | fi | |
10512 | ;; | |
10513 | esac | |
10514 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10515 | # soname into executable. Probably we can add versioning support to | |
10516 | # collect2, so additional links can be useful in future. | |
10517 | if test "$aix_use_runtimelinking" = yes; then | |
10518 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10519 | # instead of lib<name>.a to let people know that these are not | |
10520 | # typical AIX shared libraries. | |
10521 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10522 | else | |
10523 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10524 | # and later when we are not doing run time linking. | |
10525 | library_names_spec='${libname}${release}.a $libname.a' | |
10526 | soname_spec='${libname}${release}${shared_ext}$major' | |
10527 | fi | |
10528 | shlibpath_var=LIBPATH | |
10529 | fi | |
10530 | ;; | |
10531 | ||
10532 | amigaos*) | |
10533 | case $host_cpu in | |
10534 | powerpc) | |
10535 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10536 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10537 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10538 | ;; | |
10539 | m68k) | |
10540 | library_names_spec='$libname.ixlibrary $libname.a' | |
10541 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
10542 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
10543 | ;; | |
10544 | esac | |
10545 | ;; | |
10546 | ||
10547 | beos*) | |
10548 | library_names_spec='${libname}${shared_ext}' | |
10549 | dynamic_linker="$host_os ld.so" | |
10550 | shlibpath_var=LIBRARY_PATH | |
10551 | ;; | |
10552 | ||
10553 | bsdi[45]*) | |
10554 | version_type=linux | |
10555 | need_version=no | |
10556 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10557 | soname_spec='${libname}${release}${shared_ext}$major' | |
10558 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10559 | shlibpath_var=LD_LIBRARY_PATH | |
10560 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10561 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10562 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10563 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10564 | # libtool to hard-code these into programs | |
10565 | ;; | |
10566 | ||
10567 | cygwin* | mingw* | pw32* | cegcc*) | |
10568 | version_type=windows | |
10569 | shrext_cmds=".dll" | |
10570 | need_version=no | |
10571 | need_lib_prefix=no | |
10572 | ||
10573 | case $GCC,$host_os in | |
10574 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
10575 | library_names_spec='$libname.dll.a' | |
10576 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10577 | postinstall_cmds='base_file=`basename \${file}`~ | |
10578 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10579 | dldir=$destdir/`dirname \$dlpath`~ | |
10580 | test -d \$dldir || mkdir -p \$dldir~ | |
10581 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10582 | chmod a+x \$dldir/$dlname~ | |
10583 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10584 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10585 | fi' | |
10586 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10587 | dlpath=$dir/\$dldll~ | |
10588 | $RM \$dlpath' | |
10589 | shlibpath_overrides_runpath=yes | |
10590 | ||
10591 | case $host_os in | |
10592 | cygwin*) | |
10593 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10594 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10595 | ||
10596 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
10597 | ;; | |
10598 | mingw* | cegcc*) | |
10599 | # MinGW DLLs use traditional 'lib' prefix | |
10600 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10601 | ;; | |
10602 | pw32*) | |
10603 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10604 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10605 | ;; | |
10606 | esac | |
10607 | ;; | |
10608 | ||
10609 | *) | |
10610 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10611 | ;; | |
10612 | esac | |
10613 | dynamic_linker='Win32 ld.exe' | |
10614 | # FIXME: first we should search . and the directory the executable is in | |
10615 | shlibpath_var=PATH | |
10616 | ;; | |
10617 | ||
10618 | darwin* | rhapsody*) | |
10619 | dynamic_linker="$host_os dyld" | |
10620 | version_type=darwin | |
10621 | need_lib_prefix=no | |
10622 | need_version=no | |
10623 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10624 | soname_spec='${libname}${release}${major}$shared_ext' | |
10625 | shlibpath_overrides_runpath=yes | |
10626 | shlibpath_var=DYLD_LIBRARY_PATH | |
10627 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10628 | ||
10629 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10630 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10631 | ;; | |
10632 | ||
10633 | dgux*) | |
10634 | version_type=linux | |
10635 | need_lib_prefix=no | |
10636 | need_version=no | |
10637 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10638 | soname_spec='${libname}${release}${shared_ext}$major' | |
10639 | shlibpath_var=LD_LIBRARY_PATH | |
10640 | ;; | |
10641 | ||
10642 | freebsd* | dragonfly*) | |
10643 | # DragonFly does not have aout. When/if they implement a new | |
10644 | # versioning mechanism, adjust this. | |
10645 | if test -x /usr/bin/objformat; then | |
10646 | objformat=`/usr/bin/objformat` | |
10647 | else | |
10648 | case $host_os in | |
10649 | freebsd[23].*) objformat=aout ;; | |
10650 | *) objformat=elf ;; | |
10651 | esac | |
10652 | fi | |
10653 | version_type=freebsd-$objformat | |
10654 | case $version_type in | |
10655 | freebsd-elf*) | |
10656 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10657 | need_version=no | |
10658 | need_lib_prefix=no | |
10659 | ;; | |
10660 | freebsd-*) | |
10661 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10662 | need_version=yes | |
10663 | ;; | |
10664 | esac | |
10665 | shlibpath_var=LD_LIBRARY_PATH | |
10666 | case $host_os in | |
10667 | freebsd2.*) | |
10668 | shlibpath_overrides_runpath=yes | |
10669 | ;; | |
10670 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10671 | shlibpath_overrides_runpath=yes | |
10672 | hardcode_into_libs=yes | |
10673 | ;; | |
10674 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10675 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10676 | shlibpath_overrides_runpath=no | |
10677 | hardcode_into_libs=yes | |
10678 | ;; | |
10679 | *) # from 4.6 on, and DragonFly | |
10680 | shlibpath_overrides_runpath=yes | |
10681 | hardcode_into_libs=yes | |
10682 | ;; | |
10683 | esac | |
10684 | ;; | |
10685 | ||
10686 | gnu*) | |
10687 | version_type=linux | |
10688 | need_lib_prefix=no | |
10689 | need_version=no | |
10690 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10691 | soname_spec='${libname}${release}${shared_ext}$major' | |
10692 | shlibpath_var=LD_LIBRARY_PATH | |
10693 | hardcode_into_libs=yes | |
10694 | ;; | |
10695 | ||
10696 | haiku*) | |
10697 | version_type=linux | |
10698 | need_lib_prefix=no | |
10699 | need_version=no | |
10700 | dynamic_linker="$host_os runtime_loader" | |
10701 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10702 | soname_spec='${libname}${release}${shared_ext}$major' | |
10703 | shlibpath_var=LIBRARY_PATH | |
10704 | shlibpath_overrides_runpath=yes | |
10705 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
10706 | hardcode_into_libs=yes | |
10707 | ;; | |
10708 | ||
10709 | hpux9* | hpux10* | hpux11*) | |
10710 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10711 | # link against other versions. | |
10712 | version_type=sunos | |
10713 | need_lib_prefix=no | |
10714 | need_version=no | |
10715 | case $host_cpu in | |
10716 | ia64*) | |
10717 | shrext_cmds='.so' | |
10718 | hardcode_into_libs=yes | |
10719 | dynamic_linker="$host_os dld.so" | |
10720 | shlibpath_var=LD_LIBRARY_PATH | |
10721 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10722 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10723 | soname_spec='${libname}${release}${shared_ext}$major' | |
10724 | if test "X$HPUX_IA64_MODE" = X32; then | |
10725 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10726 | else | |
10727 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10728 | fi | |
10729 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10730 | ;; | |
10731 | hppa*64*) | |
10732 | shrext_cmds='.sl' | |
10733 | hardcode_into_libs=yes | |
10734 | dynamic_linker="$host_os dld.sl" | |
10735 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10736 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10737 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10738 | soname_spec='${libname}${release}${shared_ext}$major' | |
10739 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10740 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10741 | ;; | |
10742 | *) | |
10743 | shrext_cmds='.sl' | |
10744 | dynamic_linker="$host_os dld.sl" | |
10745 | shlibpath_var=SHLIB_PATH | |
10746 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10747 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10748 | soname_spec='${libname}${release}${shared_ext}$major' | |
10749 | ;; | |
10750 | esac | |
10751 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
10752 | postinstall_cmds='chmod 555 $lib' | |
10753 | # or fails outright, so override atomically: | |
10754 | install_override_mode=555 | |
10755 | ;; | |
10756 | ||
10757 | interix[3-9]*) | |
10758 | version_type=linux | |
10759 | need_lib_prefix=no | |
10760 | need_version=no | |
10761 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10762 | soname_spec='${libname}${release}${shared_ext}$major' | |
10763 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10764 | shlibpath_var=LD_LIBRARY_PATH | |
10765 | shlibpath_overrides_runpath=no | |
10766 | hardcode_into_libs=yes | |
10767 | ;; | |
10768 | ||
10769 | irix5* | irix6* | nonstopux*) | |
10770 | case $host_os in | |
10771 | nonstopux*) version_type=nonstopux ;; | |
10772 | *) | |
10773 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10774 | version_type=linux | |
10775 | else | |
10776 | version_type=irix | |
10777 | fi ;; | |
10778 | esac | |
10779 | need_lib_prefix=no | |
10780 | need_version=no | |
10781 | soname_spec='${libname}${release}${shared_ext}$major' | |
10782 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10783 | case $host_os in | |
10784 | irix5* | nonstopux*) | |
10785 | libsuff= shlibsuff= | |
10786 | ;; | |
10787 | *) | |
10788 | case $LD in # libtool.m4 will add one of these switches to LD | |
10789 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10790 | libsuff= shlibsuff= libmagic=32-bit;; | |
10791 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10792 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10793 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10794 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10795 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10796 | esac | |
10797 | ;; | |
10798 | esac | |
10799 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10800 | shlibpath_overrides_runpath=no | |
10801 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10802 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10803 | hardcode_into_libs=yes | |
10804 | ;; | |
10805 | ||
10806 | # No shared lib support for Linux oldld, aout, or coff. | |
10807 | linux*oldld* | linux*aout* | linux*coff*) | |
10808 | dynamic_linker=no | |
10809 | ;; | |
10810 | ||
10811 | # This must be Linux ELF. | |
e9085da5 MR |
10812 | |
10813 | # uclinux* changes (here and below) have been submitted to the libtool | |
10814 | # project, but have not yet been accepted: they are GCC-local changes | |
10815 | # for the time being. (See | |
10816 | # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) | |
10817 | linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) | |
eff02e4f ILT |
10818 | version_type=linux |
10819 | need_lib_prefix=no | |
10820 | need_version=no | |
10821 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10822 | soname_spec='${libname}${release}${shared_ext}$major' | |
10823 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10824 | shlibpath_var=LD_LIBRARY_PATH | |
10825 | shlibpath_overrides_runpath=no | |
10826 | ||
10827 | # Some binutils ld are patched to set DT_RUNPATH | |
22e05272 | 10828 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
eff02e4f ILT |
10829 | $as_echo_n "(cached) " >&6 |
10830 | else | |
10831 | lt_cv_shlibpath_overrides_runpath=no | |
10832 | save_LDFLAGS=$LDFLAGS | |
10833 | save_libdir=$libdir | |
10834 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10835 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
10836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10837 | /* end confdefs.h. */ | |
10838 | ||
10839 | int | |
10840 | main () | |
10841 | { | |
10842 | ||
10843 | ; | |
10844 | return 0; | |
10845 | } | |
10846 | _ACEOF | |
10847 | if ac_fn_c_try_link "$LINENO"; then : | |
10848 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
10849 | lt_cv_shlibpath_overrides_runpath=yes | |
10850 | fi | |
10851 | fi | |
10852 | rm -f core conftest.err conftest.$ac_objext \ | |
10853 | conftest$ac_exeext conftest.$ac_ext | |
10854 | LDFLAGS=$save_LDFLAGS | |
10855 | libdir=$save_libdir | |
10856 | ||
10857 | fi | |
10858 | ||
10859 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
10860 | ||
10861 | # This implies no fast_install, which is unacceptable. | |
10862 | # Some rework will be needed to allow for fast_install | |
10863 | # before this can be enabled. | |
10864 | hardcode_into_libs=yes | |
10865 | ||
10866 | # Append ld.so.conf contents to the search path | |
10867 | if test -f /etc/ld.so.conf; then | |
10868 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` | |
10869 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
10870 | fi | |
10871 | ||
10872 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10873 | # powerpc, because MkLinux only supported shared libraries with the | |
10874 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10875 | # most powerpc-linux boxes support dynamic linking these days and | |
10876 | # people can always --disable-shared, the test was removed, and we | |
10877 | # assume the GNU/Linux dynamic linker is in use. | |
10878 | dynamic_linker='GNU/Linux ld.so' | |
10879 | ;; | |
10880 | ||
10881 | netbsd*) | |
10882 | version_type=sunos | |
10883 | need_lib_prefix=no | |
10884 | need_version=no | |
10885 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10886 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10887 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10888 | dynamic_linker='NetBSD (a.out) ld.so' | |
10889 | else | |
10890 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10891 | soname_spec='${libname}${release}${shared_ext}$major' | |
10892 | dynamic_linker='NetBSD ld.elf_so' | |
10893 | fi | |
10894 | shlibpath_var=LD_LIBRARY_PATH | |
10895 | shlibpath_overrides_runpath=yes | |
10896 | hardcode_into_libs=yes | |
10897 | ;; | |
10898 | ||
10899 | newsos6) | |
10900 | version_type=linux | |
10901 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10902 | shlibpath_var=LD_LIBRARY_PATH | |
10903 | shlibpath_overrides_runpath=yes | |
10904 | ;; | |
10905 | ||
10906 | *nto* | *qnx*) | |
10907 | version_type=qnx | |
10908 | need_lib_prefix=no | |
10909 | need_version=no | |
10910 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10911 | soname_spec='${libname}${release}${shared_ext}$major' | |
10912 | shlibpath_var=LD_LIBRARY_PATH | |
10913 | shlibpath_overrides_runpath=no | |
10914 | hardcode_into_libs=yes | |
10915 | dynamic_linker='ldqnx.so' | |
10916 | ;; | |
10917 | ||
10918 | openbsd*) | |
10919 | version_type=sunos | |
10920 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10921 | need_lib_prefix=no | |
10922 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10923 | case $host_os in | |
10924 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10925 | *) need_version=no ;; | |
10926 | esac | |
10927 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10928 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10929 | shlibpath_var=LD_LIBRARY_PATH | |
10930 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10931 | case $host_os in | |
10932 | openbsd2.[89] | openbsd2.[89].*) | |
10933 | shlibpath_overrides_runpath=no | |
10934 | ;; | |
10935 | *) | |
10936 | shlibpath_overrides_runpath=yes | |
10937 | ;; | |
10938 | esac | |
10939 | else | |
10940 | shlibpath_overrides_runpath=yes | |
10941 | fi | |
10942 | ;; | |
10943 | ||
10944 | os2*) | |
10945 | libname_spec='$name' | |
10946 | shrext_cmds=".dll" | |
10947 | need_lib_prefix=no | |
10948 | library_names_spec='$libname${shared_ext} $libname.a' | |
10949 | dynamic_linker='OS/2 ld.exe' | |
10950 | shlibpath_var=LIBPATH | |
10951 | ;; | |
10952 | ||
10953 | osf3* | osf4* | osf5*) | |
10954 | version_type=osf | |
10955 | need_lib_prefix=no | |
10956 | need_version=no | |
10957 | soname_spec='${libname}${release}${shared_ext}$major' | |
10958 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10959 | shlibpath_var=LD_LIBRARY_PATH | |
10960 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10961 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10962 | ;; | |
10963 | ||
10964 | rdos*) | |
10965 | dynamic_linker=no | |
10966 | ;; | |
10967 | ||
10968 | solaris*) | |
10969 | version_type=linux | |
10970 | need_lib_prefix=no | |
10971 | need_version=no | |
10972 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10973 | soname_spec='${libname}${release}${shared_ext}$major' | |
10974 | shlibpath_var=LD_LIBRARY_PATH | |
10975 | shlibpath_overrides_runpath=yes | |
10976 | hardcode_into_libs=yes | |
10977 | # ldd complains unless libraries are executable | |
10978 | postinstall_cmds='chmod +x $lib' | |
10979 | ;; | |
10980 | ||
10981 | sunos4*) | |
10982 | version_type=sunos | |
10983 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10984 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10985 | shlibpath_var=LD_LIBRARY_PATH | |
10986 | shlibpath_overrides_runpath=yes | |
10987 | if test "$with_gnu_ld" = yes; then | |
10988 | need_lib_prefix=no | |
10989 | fi | |
10990 | need_version=yes | |
10991 | ;; | |
10992 | ||
10993 | sysv4 | sysv4.3*) | |
10994 | version_type=linux | |
10995 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10996 | soname_spec='${libname}${release}${shared_ext}$major' | |
10997 | shlibpath_var=LD_LIBRARY_PATH | |
10998 | case $host_vendor in | |
10999 | sni) | |
11000 | shlibpath_overrides_runpath=no | |
11001 | need_lib_prefix=no | |
11002 | runpath_var=LD_RUN_PATH | |
11003 | ;; | |
11004 | siemens) | |
11005 | need_lib_prefix=no | |
11006 | ;; | |
11007 | motorola) | |
11008 | need_lib_prefix=no | |
11009 | need_version=no | |
11010 | shlibpath_overrides_runpath=no | |
11011 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11012 | ;; | |
11013 | esac | |
11014 | ;; | |
11015 | ||
11016 | sysv4*MP*) | |
11017 | if test -d /usr/nec ;then | |
11018 | version_type=linux | |
11019 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
11020 | soname_spec='$libname${shared_ext}.$major' | |
11021 | shlibpath_var=LD_LIBRARY_PATH | |
11022 | fi | |
11023 | ;; | |
11024 | ||
11025 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
11026 | version_type=freebsd-elf | |
11027 | need_lib_prefix=no | |
11028 | need_version=no | |
11029 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11030 | soname_spec='${libname}${release}${shared_ext}$major' | |
11031 | shlibpath_var=LD_LIBRARY_PATH | |
11032 | shlibpath_overrides_runpath=yes | |
11033 | hardcode_into_libs=yes | |
11034 | if test "$with_gnu_ld" = yes; then | |
11035 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
11036 | else | |
11037 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11038 | case $host_os in | |
11039 | sco3.2v5*) | |
11040 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11041 | ;; | |
11042 | esac | |
11043 | fi | |
11044 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11045 | ;; | |
11046 | ||
11047 | tpf*) | |
11048 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
11049 | version_type=linux | |
11050 | need_lib_prefix=no | |
11051 | need_version=no | |
11052 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11053 | shlibpath_var=LD_LIBRARY_PATH | |
11054 | shlibpath_overrides_runpath=no | |
11055 | hardcode_into_libs=yes | |
11056 | ;; | |
11057 | ||
11058 | uts4*) | |
11059 | version_type=linux | |
11060 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11061 | soname_spec='${libname}${release}${shared_ext}$major' | |
11062 | shlibpath_var=LD_LIBRARY_PATH | |
11063 | ;; | |
11064 | ||
11065 | *) | |
11066 | dynamic_linker=no | |
11067 | ;; | |
11068 | esac | |
11069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
11070 | $as_echo "$dynamic_linker" >&6; } | |
11071 | test "$dynamic_linker" = no && can_build_shared=no | |
11072 | ||
11073 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
11074 | if test "$GCC" = yes; then | |
11075 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
11076 | fi | |
11077 | ||
11078 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
11079 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
11080 | fi | |
11081 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
11082 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
11083 | fi | |
11084 | ||
11085 | ||
11086 | ||
11087 | ||
11088 | ||
11089 | ||
11090 | ||
11091 | ||
11092 | ||
11093 | ||
11094 | ||
11095 | ||
11096 | ||
11097 | ||
11098 | ||
11099 | ||
11100 | ||
11101 | ||
11102 | ||
11103 | ||
11104 | ||
11105 | ||
11106 | ||
11107 | ||
11108 | ||
11109 | ||
11110 | ||
11111 | ||
11112 | ||
11113 | ||
11114 | ||
11115 | ||
11116 | ||
11117 | ||
11118 | ||
11119 | ||
11120 | ||
11121 | ||
11122 | ||
11123 | ||
11124 | ||
11125 | ||
11126 | ||
11127 | ||
11128 | ||
11129 | ||
11130 | ||
11131 | ||
11132 | ||
11133 | ||
11134 | ||
11135 | ||
11136 | ||
11137 | ||
11138 | ||
11139 | ||
11140 | ||
11141 | ||
11142 | ||
11143 | ||
11144 | ||
11145 | ||
11146 | ||
11147 | ||
11148 | ||
11149 | ||
11150 | ||
11151 | ||
11152 | ||
11153 | ||
11154 | ||
11155 | ||
11156 | ||
11157 | ||
11158 | ||
11159 | ||
11160 | ||
11161 | ||
11162 | ||
11163 | ||
11164 | ||
11165 | ||
11166 | ||
11167 | ||
11168 | ||
11169 | ||
11170 | ||
11171 | ||
11172 | ||
11173 | ||
11174 | ||
11175 | ||
11176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
11177 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
11178 | hardcode_action= | |
11179 | if test -n "$hardcode_libdir_flag_spec" || | |
11180 | test -n "$runpath_var" || | |
11181 | test "X$hardcode_automatic" = "Xyes" ; then | |
11182 | ||
11183 | # We can hardcode non-existent directories. | |
11184 | if test "$hardcode_direct" != no && | |
11185 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11186 | # have to relink, otherwise we might link with an installed library | |
11187 | # when we should be linking with a yet-to-be-installed one | |
11188 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
11189 | test "$hardcode_minus_L" != no; then | |
11190 | # Linking always hardcodes the temporary library directory. | |
11191 | hardcode_action=relink | |
11192 | else | |
11193 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11194 | hardcode_action=immediate | |
11195 | fi | |
11196 | else | |
11197 | # We cannot hardcode anything, or else we can only hardcode existing | |
11198 | # directories. | |
11199 | hardcode_action=unsupported | |
11200 | fi | |
11201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
11202 | $as_echo "$hardcode_action" >&6; } | |
11203 | ||
11204 | if test "$hardcode_action" = relink || | |
11205 | test "$inherit_rpath" = yes; then | |
11206 | # Fast installation is not supported | |
11207 | enable_fast_install=no | |
11208 | elif test "$shlibpath_overrides_runpath" = yes || | |
11209 | test "$enable_shared" = no; then | |
11210 | # Fast installation is not necessary | |
11211 | enable_fast_install=needless | |
11212 | fi | |
11213 | ||
11214 | ||
11215 | ||
11216 | ||
11217 | ||
11218 | ||
11219 | if test "x$enable_dlopen" != xyes; then | |
11220 | enable_dlopen=unknown | |
11221 | enable_dlopen_self=unknown | |
11222 | enable_dlopen_self_static=unknown | |
11223 | else | |
11224 | lt_cv_dlopen=no | |
11225 | lt_cv_dlopen_libs= | |
11226 | ||
11227 | case $host_os in | |
11228 | beos*) | |
11229 | lt_cv_dlopen="load_add_on" | |
11230 | lt_cv_dlopen_libs= | |
11231 | lt_cv_dlopen_self=yes | |
11232 | ;; | |
11233 | ||
11234 | mingw* | pw32* | cegcc*) | |
11235 | lt_cv_dlopen="LoadLibrary" | |
11236 | lt_cv_dlopen_libs= | |
11237 | ;; | |
11238 | ||
11239 | cygwin*) | |
11240 | lt_cv_dlopen="dlopen" | |
11241 | lt_cv_dlopen_libs= | |
11242 | ;; | |
11243 | ||
11244 | darwin*) | |
11245 | # if libdl is installed we need to link against it | |
11246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11247 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
22e05272 | 11248 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
eff02e4f ILT |
11249 | $as_echo_n "(cached) " >&6 |
11250 | else | |
11251 | ac_check_lib_save_LIBS=$LIBS | |
11252 | LIBS="-ldl $LIBS" | |
11253 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11254 | /* end confdefs.h. */ | |
11255 | ||
11256 | /* Override any GCC internal prototype to avoid an error. | |
11257 | Use char because int might match the return type of a GCC | |
11258 | builtin and then its argument prototype would still apply. */ | |
11259 | #ifdef __cplusplus | |
11260 | extern "C" | |
11261 | #endif | |
11262 | char dlopen (); | |
11263 | int | |
11264 | main () | |
11265 | { | |
11266 | return dlopen (); | |
11267 | ; | |
11268 | return 0; | |
11269 | } | |
11270 | _ACEOF | |
11271 | if ac_fn_c_try_link "$LINENO"; then : | |
11272 | ac_cv_lib_dl_dlopen=yes | |
11273 | else | |
11274 | ac_cv_lib_dl_dlopen=no | |
11275 | fi | |
11276 | rm -f core conftest.err conftest.$ac_objext \ | |
11277 | conftest$ac_exeext conftest.$ac_ext | |
11278 | LIBS=$ac_check_lib_save_LIBS | |
11279 | fi | |
11280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11281 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
22e05272 | 11282 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
eff02e4f ILT |
11283 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
11284 | else | |
11285 | ||
11286 | lt_cv_dlopen="dyld" | |
11287 | lt_cv_dlopen_libs= | |
11288 | lt_cv_dlopen_self=yes | |
11289 | ||
11290 | fi | |
11291 | ||
11292 | ;; | |
11293 | ||
11294 | *) | |
11295 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
22e05272 | 11296 | if test "x$ac_cv_func_shl_load" = xyes; then : |
eff02e4f ILT |
11297 | lt_cv_dlopen="shl_load" |
11298 | else | |
11299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
11300 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
22e05272 | 11301 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
eff02e4f ILT |
11302 | $as_echo_n "(cached) " >&6 |
11303 | else | |
11304 | ac_check_lib_save_LIBS=$LIBS | |
11305 | LIBS="-ldld $LIBS" | |
11306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11307 | /* end confdefs.h. */ | |
11308 | ||
11309 | /* Override any GCC internal prototype to avoid an error. | |
11310 | Use char because int might match the return type of a GCC | |
11311 | builtin and then its argument prototype would still apply. */ | |
11312 | #ifdef __cplusplus | |
11313 | extern "C" | |
11314 | #endif | |
11315 | char shl_load (); | |
11316 | int | |
11317 | main () | |
11318 | { | |
11319 | return shl_load (); | |
11320 | ; | |
11321 | return 0; | |
11322 | } | |
11323 | _ACEOF | |
11324 | if ac_fn_c_try_link "$LINENO"; then : | |
11325 | ac_cv_lib_dld_shl_load=yes | |
11326 | else | |
11327 | ac_cv_lib_dld_shl_load=no | |
11328 | fi | |
11329 | rm -f core conftest.err conftest.$ac_objext \ | |
11330 | conftest$ac_exeext conftest.$ac_ext | |
11331 | LIBS=$ac_check_lib_save_LIBS | |
11332 | fi | |
11333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
11334 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
22e05272 | 11335 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
eff02e4f ILT |
11336 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
11337 | else | |
11338 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
22e05272 | 11339 | if test "x$ac_cv_func_dlopen" = xyes; then : |
eff02e4f ILT |
11340 | lt_cv_dlopen="dlopen" |
11341 | else | |
11342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11343 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
22e05272 | 11344 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
eff02e4f ILT |
11345 | $as_echo_n "(cached) " >&6 |
11346 | else | |
11347 | ac_check_lib_save_LIBS=$LIBS | |
11348 | LIBS="-ldl $LIBS" | |
11349 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11350 | /* end confdefs.h. */ | |
11351 | ||
11352 | /* Override any GCC internal prototype to avoid an error. | |
11353 | Use char because int might match the return type of a GCC | |
11354 | builtin and then its argument prototype would still apply. */ | |
11355 | #ifdef __cplusplus | |
11356 | extern "C" | |
11357 | #endif | |
11358 | char dlopen (); | |
11359 | int | |
11360 | main () | |
11361 | { | |
11362 | return dlopen (); | |
11363 | ; | |
11364 | return 0; | |
11365 | } | |
11366 | _ACEOF | |
11367 | if ac_fn_c_try_link "$LINENO"; then : | |
11368 | ac_cv_lib_dl_dlopen=yes | |
11369 | else | |
11370 | ac_cv_lib_dl_dlopen=no | |
11371 | fi | |
11372 | rm -f core conftest.err conftest.$ac_objext \ | |
11373 | conftest$ac_exeext conftest.$ac_ext | |
11374 | LIBS=$ac_check_lib_save_LIBS | |
11375 | fi | |
11376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11377 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
22e05272 | 11378 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
eff02e4f ILT |
11379 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
11380 | else | |
11381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
11382 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
22e05272 | 11383 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
eff02e4f ILT |
11384 | $as_echo_n "(cached) " >&6 |
11385 | else | |
11386 | ac_check_lib_save_LIBS=$LIBS | |
11387 | LIBS="-lsvld $LIBS" | |
11388 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11389 | /* end confdefs.h. */ | |
11390 | ||
11391 | /* Override any GCC internal prototype to avoid an error. | |
11392 | Use char because int might match the return type of a GCC | |
11393 | builtin and then its argument prototype would still apply. */ | |
11394 | #ifdef __cplusplus | |
11395 | extern "C" | |
11396 | #endif | |
11397 | char dlopen (); | |
11398 | int | |
11399 | main () | |
11400 | { | |
11401 | return dlopen (); | |
11402 | ; | |
11403 | return 0; | |
11404 | } | |
11405 | _ACEOF | |
11406 | if ac_fn_c_try_link "$LINENO"; then : | |
11407 | ac_cv_lib_svld_dlopen=yes | |
11408 | else | |
11409 | ac_cv_lib_svld_dlopen=no | |
11410 | fi | |
11411 | rm -f core conftest.err conftest.$ac_objext \ | |
11412 | conftest$ac_exeext conftest.$ac_ext | |
11413 | LIBS=$ac_check_lib_save_LIBS | |
11414 | fi | |
11415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
11416 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
22e05272 | 11417 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
eff02e4f ILT |
11418 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
11419 | else | |
11420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
11421 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
22e05272 | 11422 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
eff02e4f ILT |
11423 | $as_echo_n "(cached) " >&6 |
11424 | else | |
11425 | ac_check_lib_save_LIBS=$LIBS | |
11426 | LIBS="-ldld $LIBS" | |
11427 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11428 | /* end confdefs.h. */ | |
11429 | ||
11430 | /* Override any GCC internal prototype to avoid an error. | |
11431 | Use char because int might match the return type of a GCC | |
11432 | builtin and then its argument prototype would still apply. */ | |
11433 | #ifdef __cplusplus | |
11434 | extern "C" | |
11435 | #endif | |
11436 | char dld_link (); | |
11437 | int | |
11438 | main () | |
11439 | { | |
11440 | return dld_link (); | |
11441 | ; | |
11442 | return 0; | |
11443 | } | |
11444 | _ACEOF | |
11445 | if ac_fn_c_try_link "$LINENO"; then : | |
11446 | ac_cv_lib_dld_dld_link=yes | |
11447 | else | |
11448 | ac_cv_lib_dld_dld_link=no | |
11449 | fi | |
11450 | rm -f core conftest.err conftest.$ac_objext \ | |
11451 | conftest$ac_exeext conftest.$ac_ext | |
11452 | LIBS=$ac_check_lib_save_LIBS | |
11453 | fi | |
11454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
11455 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
22e05272 | 11456 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
eff02e4f ILT |
11457 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
11458 | fi | |
11459 | ||
11460 | ||
11461 | fi | |
11462 | ||
11463 | ||
11464 | fi | |
11465 | ||
11466 | ||
11467 | fi | |
11468 | ||
11469 | ||
11470 | fi | |
11471 | ||
11472 | ||
11473 | fi | |
11474 | ||
11475 | ;; | |
11476 | esac | |
11477 | ||
11478 | if test "x$lt_cv_dlopen" != xno; then | |
11479 | enable_dlopen=yes | |
11480 | else | |
11481 | enable_dlopen=no | |
11482 | fi | |
11483 | ||
11484 | case $lt_cv_dlopen in | |
11485 | dlopen) | |
11486 | save_CPPFLAGS="$CPPFLAGS" | |
11487 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11488 | ||
11489 | save_LDFLAGS="$LDFLAGS" | |
11490 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11491 | ||
11492 | save_LIBS="$LIBS" | |
11493 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
11494 | ||
11495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
11496 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
22e05272 | 11497 | if ${lt_cv_dlopen_self+:} false; then : |
eff02e4f ILT |
11498 | $as_echo_n "(cached) " >&6 |
11499 | else | |
11500 | if test "$cross_compiling" = yes; then : | |
11501 | lt_cv_dlopen_self=cross | |
11502 | else | |
11503 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11504 | lt_status=$lt_dlunknown | |
11505 | cat > conftest.$ac_ext <<_LT_EOF | |
dea40c94 | 11506 | #line 11506 "configure" |
eff02e4f ILT |
11507 | #include "confdefs.h" |
11508 | ||
11509 | #if HAVE_DLFCN_H | |
11510 | #include <dlfcn.h> | |
11511 | #endif | |
11512 | ||
11513 | #include <stdio.h> | |
11514 | ||
11515 | #ifdef RTLD_GLOBAL | |
11516 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11517 | #else | |
11518 | # ifdef DL_GLOBAL | |
11519 | # define LT_DLGLOBAL DL_GLOBAL | |
11520 | # else | |
11521 | # define LT_DLGLOBAL 0 | |
11522 | # endif | |
11523 | #endif | |
11524 | ||
11525 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11526 | find out it does not work in some platform. */ | |
11527 | #ifndef LT_DLLAZY_OR_NOW | |
11528 | # ifdef RTLD_LAZY | |
11529 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11530 | # else | |
11531 | # ifdef DL_LAZY | |
11532 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11533 | # else | |
11534 | # ifdef RTLD_NOW | |
11535 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11536 | # else | |
11537 | # ifdef DL_NOW | |
11538 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11539 | # else | |
11540 | # define LT_DLLAZY_OR_NOW 0 | |
11541 | # endif | |
11542 | # endif | |
11543 | # endif | |
11544 | # endif | |
11545 | #endif | |
11546 | ||
11547 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
11548 | correspondingly for the symbols needed. */ | |
11549 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11550 | void fnord () __attribute__((visibility("default"))); | |
11551 | #endif | |
11552 | ||
11553 | void fnord () { int i=42; } | |
11554 | int main () | |
11555 | { | |
11556 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11557 | int status = $lt_dlunknown; | |
11558 | ||
11559 | if (self) | |
11560 | { | |
11561 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11562 | else | |
11563 | { | |
11564 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11565 | else puts (dlerror ()); | |
11566 | } | |
11567 | /* dlclose (self); */ | |
11568 | } | |
11569 | else | |
11570 | puts (dlerror ()); | |
11571 | ||
11572 | return status; | |
11573 | } | |
11574 | _LT_EOF | |
11575 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11576 | (eval $ac_link) 2>&5 | |
11577 | ac_status=$? | |
11578 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11579 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11580 | (./conftest; exit; ) >&5 2>/dev/null | |
11581 | lt_status=$? | |
11582 | case x$lt_status in | |
11583 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11584 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11585 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11586 | esac | |
11587 | else : | |
11588 | # compilation failed | |
11589 | lt_cv_dlopen_self=no | |
11590 | fi | |
11591 | fi | |
11592 | rm -fr conftest* | |
11593 | ||
11594 | ||
11595 | fi | |
11596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
11597 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
11598 | ||
11599 | if test "x$lt_cv_dlopen_self" = xyes; then | |
11600 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
11601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
11602 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
22e05272 | 11603 | if ${lt_cv_dlopen_self_static+:} false; then : |
eff02e4f ILT |
11604 | $as_echo_n "(cached) " >&6 |
11605 | else | |
11606 | if test "$cross_compiling" = yes; then : | |
11607 | lt_cv_dlopen_self_static=cross | |
11608 | else | |
11609 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11610 | lt_status=$lt_dlunknown | |
11611 | cat > conftest.$ac_ext <<_LT_EOF | |
dea40c94 | 11612 | #line 11612 "configure" |
eff02e4f ILT |
11613 | #include "confdefs.h" |
11614 | ||
11615 | #if HAVE_DLFCN_H | |
11616 | #include <dlfcn.h> | |
11617 | #endif | |
11618 | ||
11619 | #include <stdio.h> | |
11620 | ||
11621 | #ifdef RTLD_GLOBAL | |
11622 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11623 | #else | |
11624 | # ifdef DL_GLOBAL | |
11625 | # define LT_DLGLOBAL DL_GLOBAL | |
11626 | # else | |
11627 | # define LT_DLGLOBAL 0 | |
11628 | # endif | |
11629 | #endif | |
11630 | ||
11631 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11632 | find out it does not work in some platform. */ | |
11633 | #ifndef LT_DLLAZY_OR_NOW | |
11634 | # ifdef RTLD_LAZY | |
11635 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11636 | # else | |
11637 | # ifdef DL_LAZY | |
11638 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11639 | # else | |
11640 | # ifdef RTLD_NOW | |
11641 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11642 | # else | |
11643 | # ifdef DL_NOW | |
11644 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11645 | # else | |
11646 | # define LT_DLLAZY_OR_NOW 0 | |
11647 | # endif | |
11648 | # endif | |
11649 | # endif | |
11650 | # endif | |
11651 | #endif | |
11652 | ||
11653 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
11654 | correspondingly for the symbols needed. */ | |
11655 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11656 | void fnord () __attribute__((visibility("default"))); | |
11657 | #endif | |
11658 | ||
11659 | void fnord () { int i=42; } | |
11660 | int main () | |
11661 | { | |
11662 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11663 | int status = $lt_dlunknown; | |
11664 | ||
11665 | if (self) | |
11666 | { | |
11667 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11668 | else | |
11669 | { | |
11670 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11671 | else puts (dlerror ()); | |
11672 | } | |
11673 | /* dlclose (self); */ | |
11674 | } | |
11675 | else | |
11676 | puts (dlerror ()); | |
11677 | ||
11678 | return status; | |
11679 | } | |
11680 | _LT_EOF | |
11681 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11682 | (eval $ac_link) 2>&5 | |
11683 | ac_status=$? | |
11684 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11685 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11686 | (./conftest; exit; ) >&5 2>/dev/null | |
11687 | lt_status=$? | |
11688 | case x$lt_status in | |
11689 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11690 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11691 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11692 | esac | |
11693 | else : | |
11694 | # compilation failed | |
11695 | lt_cv_dlopen_self_static=no | |
11696 | fi | |
11697 | fi | |
11698 | rm -fr conftest* | |
11699 | ||
11700 | ||
11701 | fi | |
11702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
11703 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
11704 | fi | |
11705 | ||
11706 | CPPFLAGS="$save_CPPFLAGS" | |
11707 | LDFLAGS="$save_LDFLAGS" | |
11708 | LIBS="$save_LIBS" | |
11709 | ;; | |
11710 | esac | |
11711 | ||
11712 | case $lt_cv_dlopen_self in | |
11713 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11714 | *) enable_dlopen_self=unknown ;; | |
11715 | esac | |
11716 | ||
11717 | case $lt_cv_dlopen_self_static in | |
11718 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11719 | *) enable_dlopen_self_static=unknown ;; | |
11720 | esac | |
11721 | fi | |
11722 | ||
11723 | ||
11724 | ||
11725 | ||
11726 | ||
11727 | ||
11728 | ||
11729 | ||
11730 | ||
11731 | ||
11732 | ||
11733 | ||
11734 | ||
11735 | ||
11736 | ||
11737 | ||
11738 | ||
11739 | striplib= | |
11740 | old_striplib= | |
11741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
11742 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
11743 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
11744 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11745 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
11746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11747 | $as_echo "yes" >&6; } | |
11748 | else | |
11749 | # FIXME - insert some real tests, host_os isn't really good enough | |
11750 | case $host_os in | |
11751 | darwin*) | |
11752 | if test -n "$STRIP" ; then | |
11753 | striplib="$STRIP -x" | |
11754 | old_striplib="$STRIP -S" | |
11755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11756 | $as_echo "yes" >&6; } | |
11757 | else | |
11758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11759 | $as_echo "no" >&6; } | |
11760 | fi | |
11761 | ;; | |
11762 | *) | |
11763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11764 | $as_echo "no" >&6; } | |
11765 | ;; | |
11766 | esac | |
11767 | fi | |
11768 | ||
11769 | ||
11770 | ||
11771 | ||
11772 | ||
11773 | ||
11774 | ||
11775 | ||
11776 | ||
11777 | ||
11778 | ||
11779 | ||
11780 | # Report which library types will actually be built | |
11781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
11782 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
11784 | $as_echo "$can_build_shared" >&6; } | |
11785 | ||
11786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
11787 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
11788 | test "$can_build_shared" = "no" && enable_shared=no | |
11789 | ||
11790 | # On AIX, shared libraries and static libraries use the same namespace, and | |
11791 | # are all built from PIC. | |
11792 | case $host_os in | |
11793 | aix3*) | |
11794 | test "$enable_shared" = yes && enable_static=no | |
11795 | if test -n "$RANLIB"; then | |
11796 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11797 | postinstall_cmds='$RANLIB $lib' | |
11798 | fi | |
11799 | ;; | |
11800 | ||
11801 | aix[4-9]*) | |
11802 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
11803 | test "$enable_shared" = yes && enable_static=no | |
11804 | fi | |
11805 | ;; | |
11806 | esac | |
11807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
11808 | $as_echo "$enable_shared" >&6; } | |
11809 | ||
11810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
11811 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
11812 | # Make sure either enable_shared or enable_static is yes. | |
11813 | test "$enable_shared" = yes || enable_static=yes | |
11814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
11815 | $as_echo "$enable_static" >&6; } | |
11816 | ||
11817 | ||
11818 | ||
11819 | ||
11820 | fi | |
11821 | ac_ext=c | |
11822 | ac_cpp='$CPP $CPPFLAGS' | |
11823 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11824 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11825 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11826 | ||
11827 | CC="$lt_save_CC" | |
11828 | ||
11829 | ||
11830 | ||
11831 | ||
11832 | ||
11833 | ||
11834 | ||
11835 | ||
11836 | ||
11837 | ||
11838 | ||
11839 | ||
11840 | ||
11841 | ac_config_commands="$ac_config_commands libtool" | |
11842 | ||
11843 | ||
11844 | ||
11845 | ||
11846 | # Only expand once: | |
11847 | ||
11848 | ||
11849 | ||
11850 | ||
e91a2ddc RB |
11851 | # Check whether --enable-largefile was given. |
11852 | if test "${enable_largefile+set}" = set; then : | |
11853 | enableval=$enable_largefile; | |
11854 | fi | |
11855 | ||
11856 | if test "$enable_largefile" != no; then | |
11857 | ||
11858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
11859 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
22e05272 | 11860 | if ${ac_cv_sys_largefile_CC+:} false; then : |
e91a2ddc RB |
11861 | $as_echo_n "(cached) " >&6 |
11862 | else | |
11863 | ac_cv_sys_largefile_CC=no | |
11864 | if test "$GCC" != yes; then | |
11865 | ac_save_CC=$CC | |
11866 | while :; do | |
11867 | # IRIX 6.2 and later do not support large files by default, | |
11868 | # so use the C compiler's -n32 option if that helps. | |
11869 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11870 | /* end confdefs.h. */ | |
11871 | #include <sys/types.h> | |
11872 | /* Check that off_t can represent 2**63 - 1 correctly. | |
11873 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
11874 | since some C++ compilers masquerading as C compilers | |
11875 | incorrectly reject 9223372036854775807. */ | |
11876 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
11877 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
11878 | && LARGE_OFF_T % 2147483647 == 1) | |
11879 | ? 1 : -1]; | |
11880 | int | |
11881 | main () | |
11882 | { | |
11883 | ||
11884 | ; | |
11885 | return 0; | |
11886 | } | |
11887 | _ACEOF | |
11888 | if ac_fn_c_try_compile "$LINENO"; then : | |
11889 | break | |
11890 | fi | |
11891 | rm -f core conftest.err conftest.$ac_objext | |
11892 | CC="$CC -n32" | |
11893 | if ac_fn_c_try_compile "$LINENO"; then : | |
11894 | ac_cv_sys_largefile_CC=' -n32'; break | |
11895 | fi | |
11896 | rm -f core conftest.err conftest.$ac_objext | |
11897 | break | |
11898 | done | |
11899 | CC=$ac_save_CC | |
11900 | rm -f conftest.$ac_ext | |
11901 | fi | |
11902 | fi | |
11903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
11904 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
11905 | if test "$ac_cv_sys_largefile_CC" != no; then | |
11906 | CC=$CC$ac_cv_sys_largefile_CC | |
11907 | fi | |
11908 | ||
11909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
11910 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
22e05272 | 11911 | if ${ac_cv_sys_file_offset_bits+:} false; then : |
e91a2ddc RB |
11912 | $as_echo_n "(cached) " >&6 |
11913 | else | |
11914 | while :; do | |
11915 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11916 | /* end confdefs.h. */ | |
11917 | #include <sys/types.h> | |
11918 | /* Check that off_t can represent 2**63 - 1 correctly. | |
11919 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
11920 | since some C++ compilers masquerading as C compilers | |
11921 | incorrectly reject 9223372036854775807. */ | |
11922 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
11923 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
11924 | && LARGE_OFF_T % 2147483647 == 1) | |
11925 | ? 1 : -1]; | |
11926 | int | |
11927 | main () | |
11928 | { | |
11929 | ||
11930 | ; | |
11931 | return 0; | |
11932 | } | |
11933 | _ACEOF | |
11934 | if ac_fn_c_try_compile "$LINENO"; then : | |
11935 | ac_cv_sys_file_offset_bits=no; break | |
11936 | fi | |
11937 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11939 | /* end confdefs.h. */ | |
11940 | #define _FILE_OFFSET_BITS 64 | |
11941 | #include <sys/types.h> | |
11942 | /* Check that off_t can represent 2**63 - 1 correctly. | |
11943 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
11944 | since some C++ compilers masquerading as C compilers | |
11945 | incorrectly reject 9223372036854775807. */ | |
11946 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
11947 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
11948 | && LARGE_OFF_T % 2147483647 == 1) | |
11949 | ? 1 : -1]; | |
11950 | int | |
11951 | main () | |
11952 | { | |
11953 | ||
11954 | ; | |
11955 | return 0; | |
11956 | } | |
11957 | _ACEOF | |
11958 | if ac_fn_c_try_compile "$LINENO"; then : | |
11959 | ac_cv_sys_file_offset_bits=64; break | |
11960 | fi | |
11961 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11962 | ac_cv_sys_file_offset_bits=unknown | |
11963 | break | |
11964 | done | |
11965 | fi | |
11966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | |
11967 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
11968 | case $ac_cv_sys_file_offset_bits in #( | |
11969 | no | unknown) ;; | |
11970 | *) | |
11971 | cat >>confdefs.h <<_ACEOF | |
11972 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
11973 | _ACEOF | |
11974 | ;; | |
11975 | esac | |
11976 | rm -rf conftest* | |
11977 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
11978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
11979 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
22e05272 | 11980 | if ${ac_cv_sys_large_files+:} false; then : |
e91a2ddc RB |
11981 | $as_echo_n "(cached) " >&6 |
11982 | else | |
11983 | while :; do | |
11984 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11985 | /* end confdefs.h. */ | |
11986 | #include <sys/types.h> | |
11987 | /* Check that off_t can represent 2**63 - 1 correctly. | |
11988 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
11989 | since some C++ compilers masquerading as C compilers | |
11990 | incorrectly reject 9223372036854775807. */ | |
11991 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
11992 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
11993 | && LARGE_OFF_T % 2147483647 == 1) | |
11994 | ? 1 : -1]; | |
11995 | int | |
11996 | main () | |
11997 | { | |
11998 | ||
11999 | ; | |
12000 | return 0; | |
12001 | } | |
12002 | _ACEOF | |
12003 | if ac_fn_c_try_compile "$LINENO"; then : | |
12004 | ac_cv_sys_large_files=no; break | |
12005 | fi | |
12006 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12008 | /* end confdefs.h. */ | |
12009 | #define _LARGE_FILES 1 | |
12010 | #include <sys/types.h> | |
12011 | /* Check that off_t can represent 2**63 - 1 correctly. | |
12012 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
12013 | since some C++ compilers masquerading as C compilers | |
12014 | incorrectly reject 9223372036854775807. */ | |
12015 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
12016 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
12017 | && LARGE_OFF_T % 2147483647 == 1) | |
12018 | ? 1 : -1]; | |
12019 | int | |
12020 | main () | |
12021 | { | |
12022 | ||
12023 | ; | |
12024 | return 0; | |
12025 | } | |
12026 | _ACEOF | |
12027 | if ac_fn_c_try_compile "$LINENO"; then : | |
12028 | ac_cv_sys_large_files=1; break | |
12029 | fi | |
12030 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12031 | ac_cv_sys_large_files=unknown | |
12032 | break | |
12033 | done | |
12034 | fi | |
12035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | |
12036 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
12037 | case $ac_cv_sys_large_files in #( | |
12038 | no | unknown) ;; | |
12039 | *) | |
12040 | cat >>confdefs.h <<_ACEOF | |
12041 | #define _LARGE_FILES $ac_cv_sys_large_files | |
12042 | _ACEOF | |
12043 | ;; | |
12044 | esac | |
12045 | rm -rf conftest* | |
12046 | fi | |
22e05272 JM |
12047 | |
12048 | ||
e91a2ddc RB |
12049 | fi |
12050 | ||
12051 | ||
eff02e4f ILT |
12052 | backtrace_supported=yes |
12053 | ||
12054 | if test -n "${with_target_subdir}"; then | |
12055 | # We are compiling a GCC library. We can assume that the unwind | |
12056 | # library exists. | |
eff02e4f ILT |
12057 | BACKTRACE_FILE="backtrace.lo simple.lo" |
12058 | else | |
12059 | ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default" | |
22e05272 | 12060 | if test "x$ac_cv_header_unwind_h" = xyes; then : |
eff02e4f | 12061 | ac_fn_c_check_func "$LINENO" "_Unwind_Backtrace" "ac_cv_func__Unwind_Backtrace" |
22e05272 | 12062 | if test "x$ac_cv_func__Unwind_Backtrace" = xyes; then : |
eff02e4f ILT |
12063 | BACKTRACE_FILE="backtrace.lo simple.lo" |
12064 | else | |
12065 | BACKTRACE_FILE="nounwind.lo" | |
12066 | backtrace_supported=no | |
12067 | fi | |
12068 | ||
12069 | else | |
12070 | BACKTRACE_FILE="nounwind.lo" | |
12071 | backtrace_supported=no | |
12072 | fi | |
12073 | ||
12074 | ||
12075 | fi | |
12076 | ||
12077 | ||
56195009 | 12078 | EXTRA_FLAGS= |
32061319 | 12079 | if test -n "${with_target_subdir}"; then |
36a58fb3 | 12080 | EXTRA_FLAGS="-funwind-tables -frandom-seed=\$@" |
32061319 ILT |
12081 | else |
12082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -funwind-tables option" >&5 | |
12083 | $as_echo_n "checking for -funwind-tables option... " >&6; } | |
22e05272 | 12084 | if ${libbacktrace_cv_c_unwind_tables+:} false; then : |
32061319 ILT |
12085 | $as_echo_n "(cached) " >&6 |
12086 | else | |
12087 | CFLAGS_hold="$CFLAGS" | |
12088 | CFLAGS="$CFLAGS -funwind-tables" | |
12089 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12090 | /* end confdefs.h. */ | |
12091 | static int f() { return 0; } | |
12092 | int | |
12093 | main () | |
12094 | { | |
12095 | return f(); | |
12096 | ; | |
12097 | return 0; | |
12098 | } | |
12099 | _ACEOF | |
12100 | if ac_fn_c_try_compile "$LINENO"; then : | |
12101 | libbacktrace_cv_c_unwind_tables=yes | |
12102 | else | |
12103 | libbacktrace_cv_c_unwind_tables=no | |
12104 | fi | |
12105 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12106 | CFLAGS="$CFLAGS_hold" | |
12107 | fi | |
12108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_unwind_tables" >&5 | |
12109 | $as_echo "$libbacktrace_cv_c_unwind_tables" >&6; } | |
36a58fb3 JJ |
12110 | if test "$libbacktrace_cv_c_unwind_tables" = "yes"; then |
12111 | EXTRA_FLAGS=-funwind-tables | |
12112 | fi | |
12113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed=string option" >&5 | |
12114 | $as_echo_n "checking for -frandom-seed=string option... " >&6; } | |
22e05272 | 12115 | if ${libbacktrace_cv_c_random_seed_string+:} false; then : |
36a58fb3 JJ |
12116 | $as_echo_n "(cached) " >&6 |
12117 | else | |
12118 | CFLAGS_hold="$CFLAGS" | |
12119 | CFLAGS="$CFLAGS -frandom-seed=conftest.lo" | |
12120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12121 | /* end confdefs.h. */ | |
12122 | ||
12123 | int | |
12124 | main () | |
12125 | { | |
12126 | return 0; | |
12127 | ; | |
12128 | return 0; | |
12129 | } | |
12130 | _ACEOF | |
12131 | if ac_fn_c_try_compile "$LINENO"; then : | |
12132 | libbacktrace_cv_c_random_seed_string=yes | |
12133 | else | |
12134 | libbacktrace_cv_c_random_seed_string=no | |
12135 | fi | |
12136 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12137 | CFLAGS="$CFLAGS_hold" | |
12138 | fi | |
12139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_random_seed_string" >&5 | |
12140 | $as_echo "$libbacktrace_cv_c_random_seed_string" >&6; } | |
12141 | if test "$libbacktrace_cv_c_random_seed_string" = "yes"; then | |
12142 | EXTRA_FLAGS="$EXTRA_FLAGS -frandom-seed=\$@" | |
12143 | fi | |
56195009 UB |
12144 | fi |
12145 | ||
44685d37 IT |
12146 | if test -n "${with_target_subdir}"; then |
12147 | # Add CET specific flags is Intel CET is enabled. | |
12148 | # Check whether --enable-cet was given. | |
12149 | if test "${enable_cet+set}" = set; then : | |
12150 | enableval=$enable_cet; | |
12151 | case "$enableval" in | |
a0e1df88 | 12152 | yes|no|auto) ;; |
22e05272 | 12153 | *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;; |
44685d37 IT |
12154 | esac |
12155 | ||
12156 | else | |
a0e1df88 | 12157 | enable_cet=no |
44685d37 IT |
12158 | fi |
12159 | ||
12160 | ||
14e335ed IT |
12161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5 |
12162 | $as_echo_n "checking for CET support... " >&6; } | |
12163 | ||
44685d37 IT |
12164 | case "$host" in |
12165 | i[34567]86-*-linux* | x86_64-*-linux*) | |
12166 | case "$enable_cet" in | |
a0e1df88 | 12167 | auto) |
14e335ed IT |
12168 | # Check if target supports multi-byte NOPs |
12169 | # and if assembler supports CET insn. | |
44685d37 IT |
12170 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12171 | /* end confdefs.h. */ | |
12172 | ||
12173 | int | |
12174 | main () | |
12175 | { | |
14e335ed IT |
12176 | |
12177 | #if !defined(__SSE2__) | |
12178 | #error target does not support multi-byte NOPs | |
12179 | #else | |
44685d37 | 12180 | asm ("setssbsy"); |
14e335ed IT |
12181 | #endif |
12182 | ||
44685d37 IT |
12183 | ; |
12184 | return 0; | |
12185 | } | |
12186 | _ACEOF | |
12187 | if ac_fn_c_try_compile "$LINENO"; then : | |
12188 | enable_cet=yes | |
12189 | else | |
12190 | enable_cet=no | |
12191 | fi | |
12192 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12193 | ;; | |
12194 | yes) | |
12195 | # Check if assembler supports CET. | |
12196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12197 | /* end confdefs.h. */ | |
12198 | ||
12199 | int | |
12200 | main () | |
12201 | { | |
12202 | asm ("setssbsy"); | |
12203 | ; | |
12204 | return 0; | |
12205 | } | |
12206 | _ACEOF | |
12207 | if ac_fn_c_try_compile "$LINENO"; then : | |
12208 | ||
12209 | else | |
22e05272 | 12210 | as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5 |
44685d37 IT |
12211 | fi |
12212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12213 | ;; | |
12214 | esac | |
12215 | ;; | |
12216 | *) | |
12217 | enable_cet=no | |
12218 | ;; | |
12219 | esac | |
12220 | if test x$enable_cet = xyes; then | |
7b47ecf2 | 12221 | CET_FLAGS="-fcf-protection -mshstk" |
14e335ed IT |
12222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12223 | $as_echo "yes" >&6; } | |
12224 | else | |
12225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12226 | $as_echo "no" >&6; } | |
44685d37 IT |
12227 | fi |
12228 | ||
12229 | EXTRA_FLAGS="$EXTRA_FLAGS $CET_FLAGS" | |
12230 | fi | |
12231 | ||
56195009 | 12232 | |
1b533361 UW |
12233 | ac_ext=c |
12234 | ac_cpp='$CPP $CPPFLAGS' | |
12235 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12236 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12237 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12238 | ||
eff02e4f ILT |
12239 | WARN_FLAGS= |
12240 | save_CFLAGS="$CFLAGS" | |
12241 | for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \ | |
12242 | -Wmissing-prototypes -Wold-style-definition \ | |
12243 | -Wmissing-format-attribute -Wcast-qual; do | |
12244 | # Do the check with the no- prefix removed since gcc silently | |
12245 | # accepts any -Wno-* option on purpose | |
12246 | case $real_option in | |
12247 | -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; | |
12248 | *) option=$real_option ;; | |
12249 | esac | |
12250 | as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` | |
12251 | ||
12252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 | |
12253 | $as_echo_n "checking whether $CC supports $option... " >&6; } | |
22e05272 | 12254 | if eval \${$as_acx_Woption+:} false; then : |
eff02e4f ILT |
12255 | $as_echo_n "(cached) " >&6 |
12256 | else | |
12257 | CFLAGS="$option" | |
12258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12259 | /* end confdefs.h. */ | |
12260 | ||
12261 | int | |
12262 | main () | |
12263 | { | |
12264 | ||
12265 | ; | |
12266 | return 0; | |
12267 | } | |
12268 | _ACEOF | |
12269 | if ac_fn_c_try_compile "$LINENO"; then : | |
12270 | eval "$as_acx_Woption=yes" | |
12271 | else | |
12272 | eval "$as_acx_Woption=no" | |
12273 | fi | |
12274 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12275 | ||
12276 | fi | |
12277 | eval ac_res=\$$as_acx_Woption | |
12278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
12279 | $as_echo "$ac_res" >&6; } | |
12280 | if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : | |
12281 | WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option" | |
12282 | fi | |
12283 | done | |
12284 | CFLAGS="$save_CFLAGS" | |
1b533361 UW |
12285 | ac_ext=c |
12286 | ac_cpp='$CPP $CPPFLAGS' | |
12287 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12288 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12289 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12290 | ||
eff02e4f ILT |
12291 | |
12292 | ||
73c3ed27 | 12293 | if test -n "${with_target_subdir}"; then |
eff02e4f ILT |
12294 | WARN_FLAGS="$WARN_FLAGS -Werror" |
12295 | fi | |
12296 | ||
12297 | ||
12298 | ||
64b89453 | 12299 | if test -n "${with_target_subdir}"; then |
eff02e4f ILT |
12300 | |
12301 | ||
12302 | # Check whether --with-system-libunwind was given. | |
12303 | if test "${with_system_libunwind+set}" = set; then : | |
12304 | withval=$with_system_libunwind; | |
12305 | fi | |
12306 | ||
12307 | # If system-libunwind was not specifically set, pick a default setting. | |
12308 | if test x$with_system_libunwind = x; then | |
12309 | case ${target} in | |
12310 | ia64-*-hpux*) with_system_libunwind=yes ;; | |
12311 | *) with_system_libunwind=no ;; | |
12312 | esac | |
12313 | fi | |
12314 | # Based on system-libunwind and target, do we have ipinfo? | |
12315 | if test x$with_system_libunwind = xyes; then | |
12316 | case ${target} in | |
12317 | ia64-*-*) have_unwind_getipinfo=no ;; | |
12318 | *) have_unwind_getipinfo=yes ;; | |
12319 | esac | |
12320 | else | |
12321 | # Darwin before version 9 does not have _Unwind_GetIPInfo. | |
12322 | ||
12323 | case ${target} in | |
12324 | *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;; | |
12325 | *) have_unwind_getipinfo=yes ;; | |
12326 | esac | |
12327 | ||
12328 | fi | |
12329 | ||
12330 | if test x$have_unwind_getipinfo = xyes; then | |
12331 | ||
12332 | $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h | |
12333 | ||
12334 | fi | |
12335 | ||
64b89453 | 12336 | else |
385710cf JH |
12337 | ac_save_CFFLAGS="$CFLAGS" |
12338 | CFLAGS="$CFLAGS -Werror-implicit-function-declaration" | |
12339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_GetIPInfo" >&5 | |
12340 | $as_echo_n "checking for _Unwind_GetIPInfo... " >&6; } | |
12341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12342 | /* end confdefs.h. */ | |
12343 | #include "unwind.h" | |
12344 | struct _Unwind_Context *context; | |
12345 | int ip_before_insn = 0; | |
12346 | int | |
12347 | main () | |
12348 | { | |
12349 | return _Unwind_GetIPInfo (context, &ip_before_insn); | |
12350 | ; | |
12351 | return 0; | |
12352 | } | |
12353 | _ACEOF | |
63fefb4b | 12354 | if ac_fn_c_try_link "$LINENO"; then : |
64b89453 ILT |
12355 | have_unwind_getipinfo=yes |
12356 | else | |
12357 | have_unwind_getipinfo=no | |
12358 | fi | |
63fefb4b MDM |
12359 | rm -f core conftest.err conftest.$ac_objext \ |
12360 | conftest$ac_exeext conftest.$ac_ext | |
385710cf JH |
12361 | CFLAGS="$ac_save_CFLAGS" |
12362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_unwind_getipinfo" >&5 | |
12363 | $as_echo "$have_unwind_getipinfo" >&6; } | |
64b89453 ILT |
12364 | if test "$have_unwind_getipinfo" = "yes"; then |
12365 | ||
12366 | $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h | |
12367 | ||
12368 | fi | |
12369 | fi | |
eff02e4f | 12370 | |
7e5c7547 | 12371 | # Enable --enable-host-shared. |
459260ec DM |
12372 | # Check whether --enable-host-shared was given. |
12373 | if test "${enable_host_shared+set}" = set; then : | |
12374 | enableval=$enable_host_shared; PIC_FLAG=-fPIC | |
7e5c7547 UW |
12375 | else |
12376 | PIC_FLAG= | |
459260ec DM |
12377 | fi |
12378 | ||
eff02e4f ILT |
12379 | |
12380 | ||
12381 | # Test for __sync support. | |
12382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5 | |
12383 | $as_echo_n "checking __sync extensions... " >&6; } | |
22e05272 | 12384 | if ${libbacktrace_cv_sys_sync+:} false; then : |
eff02e4f ILT |
12385 | $as_echo_n "(cached) " >&6 |
12386 | else | |
12387 | if test -n "${with_target_subdir}"; then | |
2f401a8f JDA |
12388 | case "${host}" in |
12389 | hppa*-*-hpux*) libbacktrace_cv_sys_sync=no ;; | |
12390 | *) libbacktrace_cv_sys_sync=yes ;; | |
12391 | esac | |
eff02e4f ILT |
12392 | else |
12393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12394 | /* end confdefs.h. */ | |
12395 | int i; | |
12396 | int | |
12397 | main () | |
12398 | { | |
12399 | __sync_bool_compare_and_swap (&i, i, i); | |
12400 | __sync_lock_test_and_set (&i, 1); | |
12401 | __sync_lock_release (&i); | |
12402 | ; | |
12403 | return 0; | |
12404 | } | |
12405 | _ACEOF | |
12406 | if ac_fn_c_try_link "$LINENO"; then : | |
12407 | libbacktrace_cv_sys_sync=yes | |
12408 | else | |
12409 | libbacktrace_cv_sys_sync=no | |
12410 | fi | |
12411 | rm -f core conftest.err conftest.$ac_objext \ | |
12412 | conftest$ac_exeext conftest.$ac_ext | |
12413 | fi | |
12414 | fi | |
12415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_sync" >&5 | |
12416 | $as_echo "$libbacktrace_cv_sys_sync" >&6; } | |
12417 | BACKTRACE_SUPPORTS_THREADS=0 | |
12418 | if test "$libbacktrace_cv_sys_sync" = "yes"; then | |
12419 | BACKTRACE_SUPPORTS_THREADS=1 | |
12420 | ||
12421 | $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h | |
12422 | ||
12423 | fi | |
12424 | ||
12425 | ||
49579c7e ILT |
12426 | # Test for __atomic support. |
12427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5 | |
12428 | $as_echo_n "checking __atomic extensions... " >&6; } | |
22e05272 | 12429 | if ${libbacktrace_cv_sys_atomic+:} false; then : |
49579c7e ILT |
12430 | $as_echo_n "(cached) " >&6 |
12431 | else | |
12432 | if test -n "${with_target_subdir}"; then | |
12433 | libbacktrace_cv_sys_atomic=yes | |
12434 | else | |
12435 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12436 | /* end confdefs.h. */ | |
12437 | int i; | |
12438 | int | |
12439 | main () | |
12440 | { | |
12441 | __atomic_load_n (&i, __ATOMIC_ACQUIRE); | |
12442 | __atomic_store_n (&i, 1, __ATOMIC_RELEASE); | |
12443 | ; | |
12444 | return 0; | |
12445 | } | |
12446 | _ACEOF | |
12447 | if ac_fn_c_try_link "$LINENO"; then : | |
12448 | libbacktrace_cv_sys_atomic=yes | |
12449 | else | |
12450 | libbacktrace_cv_sys_atomic=no | |
12451 | fi | |
12452 | rm -f core conftest.err conftest.$ac_objext \ | |
12453 | conftest$ac_exeext conftest.$ac_ext | |
12454 | fi | |
12455 | fi | |
12456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_atomic" >&5 | |
12457 | $as_echo "$libbacktrace_cv_sys_atomic" >&6; } | |
12458 | if test "$libbacktrace_cv_sys_atomic" = "yes"; then | |
12459 | ||
12460 | $as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h | |
12461 | ||
12462 | fi | |
12463 | ||
eff02e4f ILT |
12464 | # The library needs to be able to read the executable itself. Compile |
12465 | # a file to determine the executable format. The awk script | |
12466 | # filetype.awk prints out the file type. | |
12467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5 | |
12468 | $as_echo_n "checking output filetype... " >&6; } | |
22e05272 | 12469 | if ${libbacktrace_cv_sys_filetype+:} false; then : |
eff02e4f ILT |
12470 | $as_echo_n "(cached) " >&6 |
12471 | else | |
12472 | filetype= | |
12473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12474 | /* end confdefs.h. */ | |
12475 | int i; | |
12476 | int | |
12477 | main () | |
12478 | { | |
12479 | int j; | |
12480 | ; | |
12481 | return 0; | |
12482 | } | |
12483 | _ACEOF | |
12484 | if ac_fn_c_try_compile "$LINENO"; then : | |
12485 | filetype=`${AWK} -f $srcdir/filetype.awk conftest.$ac_objext` | |
12486 | else | |
12487 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12488 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
12489 | as_fn_error $? "compiler failed |
12490 | See \`config.log' for more details" "$LINENO" 5; } | |
eff02e4f ILT |
12491 | fi |
12492 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12493 | libbacktrace_cv_sys_filetype=$filetype | |
12494 | fi | |
12495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_filetype" >&5 | |
12496 | $as_echo "$libbacktrace_cv_sys_filetype" >&6; } | |
12497 | ||
12498 | # Match the file type to decide what files to compile. | |
12499 | FORMAT_FILE= | |
e24afc10 | 12500 | backtrace_supports_data=yes |
eff02e4f ILT |
12501 | case "$libbacktrace_cv_sys_filetype" in |
12502 | elf*) FORMAT_FILE="elf.lo" ;; | |
dea40c94 | 12503 | macho) FORMAT_FILE="macho.lo" ;; |
e24afc10 TG |
12504 | pecoff) FORMAT_FILE="pecoff.lo" |
12505 | backtrace_supports_data=no | |
12506 | ;; | |
7e2a8417 TR |
12507 | xcoff*) FORMAT_FILE="xcoff.lo" |
12508 | backtrace_supports_data=no | |
12509 | ;; | |
eff02e4f ILT |
12510 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5 |
12511 | $as_echo "$as_me: WARNING: could not determine output file type" >&2;} | |
12512 | FORMAT_FILE="unknown.lo" | |
12513 | backtrace_supported=no | |
12514 | ;; | |
12515 | esac | |
12516 | ||
12517 | ||
12518 | # ELF defines. | |
12519 | elfsize= | |
12520 | case "$libbacktrace_cv_sys_filetype" in | |
12521 | elf32) elfsize=32 ;; | |
12522 | elf64) elfsize=64 ;; | |
e24afc10 | 12523 | *) elfsize=unused |
eff02e4f ILT |
12524 | esac |
12525 | ||
12526 | cat >>confdefs.h <<_ACEOF | |
12527 | #define BACKTRACE_ELF_SIZE $elfsize | |
12528 | _ACEOF | |
12529 | ||
fddbc193 TV |
12530 | if test "$FORMAT_FILE" = "elf.lo"; then |
12531 | HAVE_ELF_TRUE= | |
12532 | HAVE_ELF_FALSE='#' | |
12533 | else | |
12534 | HAVE_ELF_TRUE='#' | |
12535 | HAVE_ELF_FALSE= | |
12536 | fi | |
12537 | ||
eff02e4f | 12538 | |
7e2a8417 TR |
12539 | # XCOFF defines. |
12540 | xcoffsize= | |
12541 | case "$libbacktrace_cv_sys_filetype" in | |
12542 | xcoff32) xcoffsize=32 ;; | |
12543 | xcoff64) xcoffsize=64 ;; | |
12544 | *) xcoffsize=unused | |
12545 | esac | |
12546 | ||
12547 | cat >>confdefs.h <<_ACEOF | |
12548 | #define BACKTRACE_XCOFF_SIZE $xcoffsize | |
12549 | _ACEOF | |
12550 | ||
12551 | ||
eff02e4f ILT |
12552 | BACKTRACE_SUPPORTED=0 |
12553 | if test "$backtrace_supported" = "yes"; then | |
12554 | BACKTRACE_SUPPORTED=1 | |
12555 | fi | |
12556 | ||
12557 | ||
e24afc10 TG |
12558 | BACKTRACE_SUPPORTS_DATA=0 |
12559 | if test "$backtrace_supports_data" = "yes"; then | |
12560 | BACKTRACE_SUPPORTS_DATA=1 | |
12561 | fi | |
12562 | ||
12563 | ||
76850556 RO |
12564 | |
12565 | ||
12566 | inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` | |
12567 | ||
12568 | acx_cv_header_stdint=stddef.h | |
12569 | acx_cv_header_stdint_kind="(already complete)" | |
12570 | for i in stdint.h $inttype_headers; do | |
12571 | unset ac_cv_type_uintptr_t | |
12572 | unset ac_cv_type_uintmax_t | |
12573 | unset ac_cv_type_int_least32_t | |
12574 | unset ac_cv_type_int_fast32_t | |
12575 | unset ac_cv_type_uint64_t | |
12576 | $as_echo_n "looking for a compliant stdint.h in $i, " >&6 | |
12577 | ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h> | |
12578 | #include <$i> | |
12579 | " | |
22e05272 | 12580 | if test "x$ac_cv_type_uintmax_t" = xyes; then : |
76850556 RO |
12581 | acx_cv_header_stdint=$i |
12582 | else | |
12583 | continue | |
12584 | fi | |
12585 | ||
12586 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> | |
12587 | #include <$i> | |
12588 | " | |
22e05272 | 12589 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
76850556 RO |
12590 | |
12591 | else | |
12592 | acx_cv_header_stdint_kind="(mostly complete)" | |
12593 | fi | |
12594 | ||
12595 | ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h> | |
12596 | #include <$i> | |
12597 | " | |
22e05272 | 12598 | if test "x$ac_cv_type_int_least32_t" = xyes; then : |
76850556 RO |
12599 | |
12600 | else | |
12601 | acx_cv_header_stdint_kind="(mostly complete)" | |
12602 | fi | |
12603 | ||
12604 | ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h> | |
12605 | #include <$i> | |
12606 | " | |
22e05272 | 12607 | if test "x$ac_cv_type_int_fast32_t" = xyes; then : |
76850556 RO |
12608 | |
12609 | else | |
12610 | acx_cv_header_stdint_kind="(mostly complete)" | |
12611 | fi | |
12612 | ||
12613 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> | |
12614 | #include <$i> | |
12615 | " | |
22e05272 | 12616 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
76850556 RO |
12617 | |
12618 | else | |
12619 | acx_cv_header_stdint_kind="(lacks uint64_t)" | |
12620 | fi | |
12621 | ||
12622 | break | |
12623 | done | |
12624 | if test "$acx_cv_header_stdint" = stddef.h; then | |
12625 | acx_cv_header_stdint_kind="(lacks uintmax_t)" | |
12626 | for i in stdint.h $inttype_headers; do | |
12627 | unset ac_cv_type_uintptr_t | |
12628 | unset ac_cv_type_uint32_t | |
12629 | unset ac_cv_type_uint64_t | |
12630 | $as_echo_n "looking for an incomplete stdint.h in $i, " >&6 | |
12631 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h> | |
12632 | #include <$i> | |
12633 | " | |
22e05272 | 12634 | if test "x$ac_cv_type_uint32_t" = xyes; then : |
76850556 RO |
12635 | acx_cv_header_stdint=$i |
12636 | else | |
12637 | continue | |
12638 | fi | |
12639 | ||
12640 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> | |
12641 | #include <$i> | |
12642 | " | |
22e05272 | 12643 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
76850556 RO |
12644 | |
12645 | fi | |
12646 | ||
12647 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> | |
12648 | #include <$i> | |
12649 | " | |
22e05272 | 12650 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
76850556 RO |
12651 | |
12652 | fi | |
12653 | ||
12654 | break | |
12655 | done | |
12656 | fi | |
12657 | if test "$acx_cv_header_stdint" = stddef.h; then | |
12658 | acx_cv_header_stdint_kind="(u_intXX_t style)" | |
12659 | for i in sys/types.h $inttype_headers; do | |
12660 | unset ac_cv_type_u_int32_t | |
12661 | unset ac_cv_type_u_int64_t | |
12662 | $as_echo_n "looking for u_intXX_t types in $i, " >&6 | |
12663 | ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h> | |
12664 | #include <$i> | |
12665 | " | |
22e05272 | 12666 | if test "x$ac_cv_type_u_int32_t" = xyes; then : |
76850556 RO |
12667 | acx_cv_header_stdint=$i |
12668 | else | |
12669 | continue | |
12670 | fi | |
12671 | ||
12672 | ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h> | |
12673 | #include <$i> | |
12674 | " | |
22e05272 | 12675 | if test "x$ac_cv_type_u_int64_t" = xyes; then : |
76850556 RO |
12676 | |
12677 | fi | |
12678 | ||
12679 | break | |
12680 | done | |
12681 | fi | |
12682 | if test "$acx_cv_header_stdint" = stddef.h; then | |
12683 | acx_cv_header_stdint_kind="(using manual detection)" | |
12684 | fi | |
12685 | ||
12686 | test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no | |
12687 | test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no | |
12688 | test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no | |
12689 | test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no | |
12690 | test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no | |
12691 | ||
12692 | # ----------------- Summarize what we found so far | |
12693 | ||
12694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5 | |
12695 | $as_echo_n "checking what to include in gstdint.h... " >&6; } | |
12696 | ||
12697 | case `$as_basename -- gstdint.h || | |
12698 | $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \ | |
12699 | Xgstdint.h : 'X\(//\)$' \| \ | |
12700 | Xgstdint.h : 'X\(/\)' \| . 2>/dev/null || | |
12701 | $as_echo X/gstdint.h | | |
12702 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
12703 | s//\1/ | |
12704 | q | |
12705 | } | |
12706 | /^X\/\(\/\/\)$/{ | |
12707 | s//\1/ | |
12708 | q | |
12709 | } | |
12710 | /^X\/\(\/\).*/{ | |
12711 | s//\1/ | |
12712 | q | |
12713 | } | |
12714 | s/.*/./; q'` in | |
12715 | stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 | |
12716 | $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
12717 | inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 | |
12718 | $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
12719 | *) ;; | |
12720 | esac | |
12721 | ||
12722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 | |
12723 | $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; } | |
12724 | ||
12725 | # ----------------- done included file, check C basic types -------- | |
12726 | ||
12727 | # Lacking an uintptr_t? Test size of void * | |
12728 | case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in | |
12729 | stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler | |
12730 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12731 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12732 | # This bug is HP SR number 8606223364. | |
12733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | |
12734 | $as_echo_n "checking size of void *... " >&6; } | |
22e05272 | 12735 | if ${ac_cv_sizeof_void_p+:} false; then : |
76850556 RO |
12736 | $as_echo_n "(cached) " >&6 |
12737 | else | |
12738 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : | |
12739 | ||
12740 | else | |
12741 | if test "$ac_cv_type_void_p" = yes; then | |
12742 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12743 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
12744 | as_fn_error 77 "cannot compute sizeof (void *) |
12745 | See \`config.log' for more details" "$LINENO" 5; } | |
76850556 RO |
12746 | else |
12747 | ac_cv_sizeof_void_p=0 | |
12748 | fi | |
12749 | fi | |
12750 | ||
12751 | fi | |
12752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | |
12753 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
12754 | ||
12755 | ||
12756 | ||
12757 | cat >>confdefs.h <<_ACEOF | |
12758 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
12759 | _ACEOF | |
12760 | ||
12761 | ;; | |
12762 | esac | |
12763 | ||
12764 | # Lacking an uint64_t? Test size of long | |
12765 | case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in | |
12766 | stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler | |
12767 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12768 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12769 | # This bug is HP SR number 8606223364. | |
12770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
12771 | $as_echo_n "checking size of long... " >&6; } | |
22e05272 | 12772 | if ${ac_cv_sizeof_long+:} false; then : |
76850556 RO |
12773 | $as_echo_n "(cached) " >&6 |
12774 | else | |
12775 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : | |
12776 | ||
12777 | else | |
12778 | if test "$ac_cv_type_long" = yes; then | |
12779 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12780 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
12781 | as_fn_error 77 "cannot compute sizeof (long) |
12782 | See \`config.log' for more details" "$LINENO" 5; } | |
76850556 RO |
12783 | else |
12784 | ac_cv_sizeof_long=0 | |
12785 | fi | |
12786 | fi | |
12787 | ||
12788 | fi | |
12789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
12790 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
12791 | ||
12792 | ||
12793 | ||
12794 | cat >>confdefs.h <<_ACEOF | |
12795 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
12796 | _ACEOF | |
12797 | ||
12798 | ;; | |
12799 | esac | |
12800 | ||
12801 | if test $acx_cv_header_stdint = stddef.h; then | |
12802 | # Lacking a good header? Test size of everything and deduce all types. | |
12803 | # The cast to long int works around a bug in the HP C Compiler | |
12804 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12805 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12806 | # This bug is HP SR number 8606223364. | |
12807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
12808 | $as_echo_n "checking size of int... " >&6; } | |
22e05272 | 12809 | if ${ac_cv_sizeof_int+:} false; then : |
76850556 RO |
12810 | $as_echo_n "(cached) " >&6 |
12811 | else | |
12812 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | |
12813 | ||
12814 | else | |
12815 | if test "$ac_cv_type_int" = yes; then | |
12816 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12817 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
12818 | as_fn_error 77 "cannot compute sizeof (int) |
12819 | See \`config.log' for more details" "$LINENO" 5; } | |
76850556 RO |
12820 | else |
12821 | ac_cv_sizeof_int=0 | |
12822 | fi | |
12823 | fi | |
12824 | ||
12825 | fi | |
12826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
12827 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
12828 | ||
12829 | ||
12830 | ||
12831 | cat >>confdefs.h <<_ACEOF | |
12832 | #define SIZEOF_INT $ac_cv_sizeof_int | |
12833 | _ACEOF | |
12834 | ||
12835 | ||
12836 | # The cast to long int works around a bug in the HP C Compiler | |
12837 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12838 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12839 | # This bug is HP SR number 8606223364. | |
12840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
12841 | $as_echo_n "checking size of short... " >&6; } | |
22e05272 | 12842 | if ${ac_cv_sizeof_short+:} false; then : |
76850556 RO |
12843 | $as_echo_n "(cached) " >&6 |
12844 | else | |
12845 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : | |
12846 | ||
12847 | else | |
12848 | if test "$ac_cv_type_short" = yes; then | |
12849 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12850 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
12851 | as_fn_error 77 "cannot compute sizeof (short) |
12852 | See \`config.log' for more details" "$LINENO" 5; } | |
76850556 RO |
12853 | else |
12854 | ac_cv_sizeof_short=0 | |
12855 | fi | |
12856 | fi | |
12857 | ||
12858 | fi | |
12859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | |
12860 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
12861 | ||
12862 | ||
12863 | ||
12864 | cat >>confdefs.h <<_ACEOF | |
12865 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
12866 | _ACEOF | |
12867 | ||
12868 | ||
12869 | # The cast to long int works around a bug in the HP C Compiler | |
12870 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12871 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12872 | # This bug is HP SR number 8606223364. | |
12873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 | |
12874 | $as_echo_n "checking size of char... " >&6; } | |
22e05272 | 12875 | if ${ac_cv_sizeof_char+:} false; then : |
76850556 RO |
12876 | $as_echo_n "(cached) " >&6 |
12877 | else | |
12878 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : | |
12879 | ||
12880 | else | |
12881 | if test "$ac_cv_type_char" = yes; then | |
12882 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12883 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
12884 | as_fn_error 77 "cannot compute sizeof (char) |
12885 | See \`config.log' for more details" "$LINENO" 5; } | |
76850556 RO |
12886 | else |
12887 | ac_cv_sizeof_char=0 | |
12888 | fi | |
12889 | fi | |
12890 | ||
12891 | fi | |
12892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 | |
12893 | $as_echo "$ac_cv_sizeof_char" >&6; } | |
12894 | ||
12895 | ||
12896 | ||
12897 | cat >>confdefs.h <<_ACEOF | |
12898 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
12899 | _ACEOF | |
12900 | ||
12901 | ||
12902 | ||
12903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5 | |
12904 | $as_echo_n "checking for type equivalent to int8_t... " >&6; } | |
12905 | case "$ac_cv_sizeof_char" in | |
12906 | 1) acx_cv_type_int8_t=char ;; | |
22e05272 | 12907 | *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5 |
76850556 RO |
12908 | esac |
12909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5 | |
12910 | $as_echo "$acx_cv_type_int8_t" >&6; } | |
12911 | ||
12912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5 | |
12913 | $as_echo_n "checking for type equivalent to int16_t... " >&6; } | |
12914 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in | |
12915 | 2:*) acx_cv_type_int16_t=int ;; | |
12916 | *:2) acx_cv_type_int16_t=short ;; | |
22e05272 | 12917 | *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5 |
76850556 RO |
12918 | esac |
12919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5 | |
12920 | $as_echo "$acx_cv_type_int16_t" >&6; } | |
12921 | ||
12922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5 | |
12923 | $as_echo_n "checking for type equivalent to int32_t... " >&6; } | |
12924 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in | |
12925 | 4:*) acx_cv_type_int32_t=int ;; | |
12926 | *:4) acx_cv_type_int32_t=long ;; | |
22e05272 | 12927 | *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5 |
76850556 RO |
12928 | esac |
12929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5 | |
12930 | $as_echo "$acx_cv_type_int32_t" >&6; } | |
12931 | fi | |
12932 | ||
12933 | # These tests are here to make the output prettier | |
12934 | ||
12935 | if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then | |
12936 | case "$ac_cv_sizeof_long" in | |
12937 | 8) acx_cv_type_int64_t=long ;; | |
12938 | esac | |
12939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5 | |
12940 | $as_echo_n "checking for type equivalent to int64_t... " >&6; } | |
12941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 | |
12942 | $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; } | |
12943 | fi | |
12944 | ||
12945 | # Now we can use the above types | |
12946 | ||
12947 | if test "$ac_cv_type_uintptr_t" != yes; then | |
12948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5 | |
12949 | $as_echo_n "checking for type equivalent to intptr_t... " >&6; } | |
12950 | case $ac_cv_sizeof_void_p in | |
12951 | 2) acx_cv_type_intptr_t=int16_t ;; | |
12952 | 4) acx_cv_type_intptr_t=int32_t ;; | |
12953 | 8) acx_cv_type_intptr_t=int64_t ;; | |
22e05272 | 12954 | *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5 |
76850556 RO |
12955 | esac |
12956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5 | |
12957 | $as_echo "$acx_cv_type_intptr_t" >&6; } | |
12958 | fi | |
12959 | ||
12960 | # ----------------- done all checks, emit header ------------- | |
12961 | ac_config_commands="$ac_config_commands gstdint.h" | |
12962 | ||
12963 | ||
12964 | ||
12965 | ||
eff02e4f ILT |
12966 | for ac_header in sys/mman.h |
12967 | do : | |
12968 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" | |
22e05272 | 12969 | if test "x$ac_cv_header_sys_mman_h" = xyes; then : |
eff02e4f ILT |
12970 | cat >>confdefs.h <<_ACEOF |
12971 | #define HAVE_SYS_MMAN_H 1 | |
12972 | _ACEOF | |
12973 | ||
12974 | fi | |
12975 | ||
12976 | done | |
12977 | ||
12978 | if test "$ac_cv_header_sys_mman_h" = "no"; then | |
12979 | have_mmap=no | |
12980 | else | |
12981 | if test -n "${with_target_subdir}"; then | |
12982 | # When built as a GCC target library, we can't do a link test. We | |
12983 | # simply assume that if we have mman.h, we have mmap. | |
12984 | have_mmap=yes | |
1b533361 | 12985 | case "${host}" in |
2f2aeda9 UW |
12986 | *-*-msdosdjgpp) |
12987 | # DJGPP has sys/man.h, but no mmap | |
1b533361 UW |
12988 | have_mmap=no ;; |
12989 | esac | |
eff02e4f ILT |
12990 | else |
12991 | ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" | |
22e05272 | 12992 | if test "x$ac_cv_func_mmap" = xyes; then : |
eff02e4f ILT |
12993 | have_mmap=yes |
12994 | else | |
12995 | have_mmap=no | |
12996 | fi | |
12997 | ||
12998 | fi | |
12999 | fi | |
13000 | if test "$have_mmap" = "no"; then | |
13001 | VIEW_FILE=read.lo | |
13002 | ALLOC_FILE=alloc.lo | |
13003 | else | |
13004 | VIEW_FILE=mmapio.lo | |
13005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13006 | /* end confdefs.h. */ | |
13007 | ||
13008 | #include <sys/mman.h> | |
13009 | #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON) | |
13010 | #error no MAP_ANONYMOUS | |
13011 | #endif | |
13012 | ||
13013 | _ACEOF | |
13014 | if ac_fn_c_try_cpp "$LINENO"; then : | |
13015 | ALLOC_FILE=mmap.lo | |
13016 | else | |
13017 | ALLOC_FILE=alloc.lo | |
13018 | fi | |
22e05272 | 13019 | rm -f conftest.err conftest.i conftest.$ac_ext |
eff02e4f ILT |
13020 | fi |
13021 | ||
13022 | ||
13023 | ||
13024 | BACKTRACE_USES_MALLOC=0 | |
13025 | if test "$ALLOC_FILE" = "alloc.lo"; then | |
13026 | BACKTRACE_USES_MALLOC=1 | |
13027 | fi | |
13028 | ||
13029 | ||
e561a992 ILT |
13030 | # Check for dl_iterate_phdr. |
13031 | for ac_header in link.h | |
13032 | do : | |
13033 | ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default" | |
22e05272 | 13034 | if test "x$ac_cv_header_link_h" = xyes; then : |
e561a992 ILT |
13035 | cat >>confdefs.h <<_ACEOF |
13036 | #define HAVE_LINK_H 1 | |
13037 | _ACEOF | |
13038 | ||
13039 | fi | |
13040 | ||
13041 | done | |
13042 | ||
13043 | if test "$ac_cv_header_link_h" = "no"; then | |
13044 | have_dl_iterate_phdr=no | |
13045 | else | |
13046 | if test -n "${with_target_subdir}"; then | |
13047 | # When built as a GCC target library, we can't do a link test. | |
13048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13049 | /* end confdefs.h. */ | |
13050 | #include <link.h> | |
13051 | ||
13052 | _ACEOF | |
13053 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13054 | $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then : | |
13055 | have_dl_iterate_phdr=yes | |
13056 | else | |
13057 | have_dl_iterate_phdr=no | |
13058 | fi | |
13059 | rm -f conftest* | |
13060 | ||
13061 | else | |
13062 | ac_fn_c_check_func "$LINENO" "dl_iterate_phdr" "ac_cv_func_dl_iterate_phdr" | |
22e05272 | 13063 | if test "x$ac_cv_func_dl_iterate_phdr" = xyes; then : |
e561a992 ILT |
13064 | have_dl_iterate_phdr=yes |
13065 | else | |
13066 | have_dl_iterate_phdr=no | |
13067 | fi | |
13068 | ||
13069 | fi | |
13070 | fi | |
13071 | if test "$have_dl_iterate_phdr" = "yes"; then | |
13072 | ||
13073 | $as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h | |
13074 | ||
13075 | fi | |
13076 | ||
dea40c94 ILT |
13077 | # Check for header file for Mach-O image functions. |
13078 | for ac_header in mach-o/dyld.h | |
13079 | do : | |
13080 | ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default" | |
13081 | if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then : | |
13082 | cat >>confdefs.h <<_ACEOF | |
13083 | #define HAVE_MACH_O_DYLD_H 1 | |
13084 | _ACEOF | |
13085 | ||
13086 | fi | |
13087 | ||
13088 | done | |
13089 | ||
13090 | ||
7e2a8417 TR |
13091 | # Check for loadquery. |
13092 | for ac_header in sys/ldr.h | |
13093 | do : | |
13094 | ac_fn_c_check_header_mongrel "$LINENO" "sys/ldr.h" "ac_cv_header_sys_ldr_h" "$ac_includes_default" | |
22e05272 | 13095 | if test "x$ac_cv_header_sys_ldr_h" = xyes; then : |
7e2a8417 TR |
13096 | cat >>confdefs.h <<_ACEOF |
13097 | #define HAVE_SYS_LDR_H 1 | |
13098 | _ACEOF | |
13099 | ||
13100 | fi | |
13101 | ||
13102 | done | |
13103 | ||
13104 | if test "$ac_cv_header_sys_ldr_h" = "no"; then | |
13105 | have_loadquery=no | |
13106 | else | |
13107 | if test -n "${with_target_subdir}"; then | |
13108 | # When built as a GCC target library, we can't do a link test. | |
13109 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13110 | /* end confdefs.h. */ | |
13111 | #include <sys/ldr.h> | |
13112 | ||
13113 | _ACEOF | |
13114 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13115 | $EGREP "loadquery" >/dev/null 2>&1; then : | |
13116 | have_loadquery=yes | |
13117 | else | |
13118 | have_loadquery=no | |
13119 | fi | |
13120 | rm -f conftest* | |
13121 | ||
13122 | else | |
13123 | ac_fn_c_check_func "$LINENO" "loadquery" "ac_cv_func_loadquery" | |
22e05272 | 13124 | if test "x$ac_cv_func_loadquery" = xyes; then : |
7e2a8417 TR |
13125 | have_loadquery=yes |
13126 | else | |
13127 | have_loadquery=no | |
13128 | fi | |
13129 | ||
13130 | fi | |
13131 | fi | |
13132 | if test "$have_loadquery" = "yes"; then | |
13133 | ||
13134 | $as_echo "#define HAVE_LOADQUERY 1" >>confdefs.h | |
13135 | ||
13136 | fi | |
13137 | ||
3319ef17 ILT |
13138 | # Check for the fcntl function. |
13139 | if test -n "${with_target_subdir}"; then | |
13140 | case "${host}" in | |
13141 | *-*-mingw*) have_fcntl=no ;; | |
13142 | *) have_fcntl=yes ;; | |
13143 | esac | |
13144 | else | |
13145 | ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl" | |
22e05272 | 13146 | if test "x$ac_cv_func_fcntl" = xyes; then : |
3319ef17 ILT |
13147 | have_fcntl=yes |
13148 | else | |
13149 | have_fcntl=no | |
13150 | fi | |
13151 | ||
13152 | fi | |
13153 | if test "$have_fcntl" = "yes"; then | |
13154 | ||
13155 | $as_echo "#define HAVE_FCNTL 1" >>confdefs.h | |
13156 | ||
13157 | fi | |
13158 | ||
772a71a9 | 13159 | ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default" |
22e05272 | 13160 | if test "x$ac_cv_have_decl_strnlen" = xyes; then : |
772a71a9 ILT |
13161 | ac_have_decl=1 |
13162 | else | |
13163 | ac_have_decl=0 | |
13164 | fi | |
13165 | ||
13166 | cat >>confdefs.h <<_ACEOF | |
13167 | #define HAVE_DECL_STRNLEN $ac_have_decl | |
13168 | _ACEOF | |
47f4703c ILT |
13169 | ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default" |
13170 | if test "x$ac_cv_have_decl_getpagesize" = xyes; then : | |
13171 | ac_have_decl=1 | |
13172 | else | |
13173 | ac_have_decl=0 | |
13174 | fi | |
13175 | ||
13176 | cat >>confdefs.h <<_ACEOF | |
13177 | #define HAVE_DECL_GETPAGESIZE $ac_have_decl | |
13178 | _ACEOF | |
772a71a9 | 13179 | |
8c2ea6b2 ILT |
13180 | for ac_func in lstat readlink |
13181 | do : | |
13182 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13183 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
22e05272 | 13184 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
8c2ea6b2 ILT |
13185 | cat >>confdefs.h <<_ACEOF |
13186 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13187 | _ACEOF | |
13188 | ||
13189 | fi | |
13190 | done | |
13191 | ||
772a71a9 | 13192 | |
33521509 ILT |
13193 | # Check for getexecname function. |
13194 | if test -n "${with_target_subdir}"; then | |
13195 | case "${host}" in | |
13196 | *-*-solaris2*) have_getexecname=yes ;; | |
13197 | *) have_getexecname=no ;; | |
13198 | esac | |
13199 | else | |
13200 | ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname" | |
22e05272 | 13201 | if test "x$ac_cv_func_getexecname" = xyes; then : |
33521509 ILT |
13202 | have_getexecname=yes |
13203 | else | |
13204 | have_getexecname=no | |
13205 | fi | |
13206 | ||
13207 | fi | |
13208 | if test "$have_getexecname" = "yes"; then | |
13209 | ||
13210 | $as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h | |
13211 | ||
13212 | fi | |
13213 | ||
26135684 ILT |
13214 | # Check for sysctl definitions. |
13215 | ||
13216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KERN_PROC" >&5 | |
13217 | $as_echo_n "checking for KERN_PROC... " >&6; } | |
13218 | if ${libbacktrace_cv_proc+:} false; then : | |
13219 | $as_echo_n "(cached) " >&6 | |
13220 | else | |
13221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13222 | /* end confdefs.h. */ | |
13223 | ||
13224 | #include <sys/types.h> | |
13225 | #include <sys/sysctl.h> | |
13226 | ||
13227 | int | |
13228 | main () | |
13229 | { | |
13230 | int mib0 = CTL_KERN; int mib1 = KERN_PROC; int mib2 = KERN_PROC_PATHNAME; | |
13231 | ; | |
13232 | return 0; | |
13233 | } | |
13234 | _ACEOF | |
13235 | if ac_fn_c_try_compile "$LINENO"; then : | |
13236 | libbacktrace_cv_proc=yes | |
13237 | else | |
13238 | libbacktrace_cv_proc=no | |
13239 | fi | |
13240 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13241 | fi | |
13242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_proc" >&5 | |
13243 | $as_echo "$libbacktrace_cv_proc" >&6; } | |
13244 | if test "$libbacktrace_cv_proc" = "yes"; then | |
13245 | ||
13246 | $as_echo "#define HAVE_KERN_PROC 1" >>confdefs.h | |
13247 | ||
13248 | fi | |
13249 | ||
13250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KERN_PROG_ARGS" >&5 | |
13251 | $as_echo_n "checking for KERN_PROG_ARGS... " >&6; } | |
13252 | if ${libbacktrace_cv_procargs+:} false; then : | |
13253 | $as_echo_n "(cached) " >&6 | |
13254 | else | |
13255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13256 | /* end confdefs.h. */ | |
13257 | ||
13258 | #include <sys/types.h> | |
13259 | #include <sys/sysctl.h> | |
13260 | ||
13261 | int | |
13262 | main () | |
13263 | { | |
13264 | int mib0 = CTL_KERN; int mib1 = KERN_PROC_ARGS; int mib2 = KERN_PROC_PATHNAME; | |
13265 | ; | |
13266 | return 0; | |
13267 | } | |
13268 | _ACEOF | |
13269 | if ac_fn_c_try_compile "$LINENO"; then : | |
13270 | libbacktrace_cv_procargs=yes | |
13271 | else | |
13272 | libbacktrace_cv_procargs=no | |
13273 | fi | |
13274 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13275 | fi | |
13276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_procargs" >&5 | |
13277 | $as_echo "$libbacktrace_cv_procargs" >&6; } | |
13278 | if test "$libbacktrace_cv_procargs" = "yes"; then | |
13279 | ||
13280 | $as_echo "#define HAVE_KERN_PROC_ARGS 1" >>confdefs.h | |
13281 | ||
13282 | fi | |
13283 | ||
dbc31f20 TS |
13284 | # Check for the clock_gettime function. |
13285 | for ac_func in clock_gettime | |
13286 | do : | |
13287 | ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" | |
22e05272 | 13288 | if test "x$ac_cv_func_clock_gettime" = xyes; then : |
dbc31f20 TS |
13289 | cat >>confdefs.h <<_ACEOF |
13290 | #define HAVE_CLOCK_GETTIME 1 | |
13291 | _ACEOF | |
13292 | ||
13293 | fi | |
13294 | done | |
13295 | ||
dd954c67 TS |
13296 | clock_gettime_link= |
13297 | # At least for glibc, clock_gettime is in librt. But don't | |
13298 | # pull that in if it still doesn't give us the function we want. This | |
13299 | # test is copied from libgomp, and modified to not link in -lrt as | |
13300 | # we're using this for test timing only. | |
13301 | if test "$ac_cv_func_clock_gettime" = no; then | |
13302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 | |
13303 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
22e05272 | 13304 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : |
dd954c67 TS |
13305 | $as_echo_n "(cached) " >&6 |
13306 | else | |
13307 | ac_check_lib_save_LIBS=$LIBS | |
13308 | LIBS="-lrt $LIBS" | |
13309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13310 | /* end confdefs.h. */ | |
13311 | ||
13312 | /* Override any GCC internal prototype to avoid an error. | |
13313 | Use char because int might match the return type of a GCC | |
13314 | builtin and then its argument prototype would still apply. */ | |
13315 | #ifdef __cplusplus | |
13316 | extern "C" | |
13317 | #endif | |
13318 | char clock_gettime (); | |
13319 | int | |
13320 | main () | |
13321 | { | |
13322 | return clock_gettime (); | |
13323 | ; | |
13324 | return 0; | |
13325 | } | |
13326 | _ACEOF | |
13327 | if ac_fn_c_try_link "$LINENO"; then : | |
13328 | ac_cv_lib_rt_clock_gettime=yes | |
13329 | else | |
13330 | ac_cv_lib_rt_clock_gettime=no | |
13331 | fi | |
13332 | rm -f core conftest.err conftest.$ac_objext \ | |
13333 | conftest$ac_exeext conftest.$ac_ext | |
13334 | LIBS=$ac_check_lib_save_LIBS | |
13335 | fi | |
13336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 | |
13337 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
22e05272 | 13338 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : |
8398c1df | 13339 | CLOCK_GETTIME_LINK=-lrt |
dd954c67 TS |
13340 | |
13341 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h | |
13342 | ||
13343 | fi | |
13344 | ||
13345 | fi | |
13346 | ||
dbc31f20 | 13347 | |
d1609a23 ILT |
13348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5 |
13349 | $as_echo_n "checking whether -pthread is supported... " >&6; } | |
22e05272 | 13350 | if ${libgo_cv_lib_pthread+:} false; then : |
d1609a23 ILT |
13351 | $as_echo_n "(cached) " >&6 |
13352 | else | |
13353 | CFLAGS_hold=$CFLAGS | |
13354 | CFLAGS="$CFLAGS -pthread" | |
13355 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13356 | /* end confdefs.h. */ | |
13357 | int i; | |
13358 | _ACEOF | |
13359 | if ac_fn_c_try_compile "$LINENO"; then : | |
13360 | libgo_cv_lib_pthread=yes | |
13361 | else | |
13362 | libgo_cv_lib_pthread=no | |
13363 | fi | |
13364 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13365 | CFLAGS=$CFLAGS_hold | |
13366 | fi | |
13367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5 | |
13368 | $as_echo "$libgo_cv_lib_pthread" >&6; } | |
13369 | PTHREAD_CFLAGS= | |
13370 | if test "$libgo_cv_lib_pthread" = yes; then | |
13371 | PTHREAD_CFLAGS=-pthread | |
13372 | fi | |
13373 | ||
13374 | ||
13375 | if test "$libgo_cv_lib_pthread" = yes; then | |
13376 | HAVE_PTHREAD_TRUE= | |
13377 | HAVE_PTHREAD_FALSE='#' | |
13378 | else | |
13379 | HAVE_PTHREAD_TRUE='#' | |
13380 | HAVE_PTHREAD_FALSE= | |
13381 | fi | |
13382 | ||
13383 | ||
c926fd82 ILT |
13384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -gdwarf-5 is supported" >&5 |
13385 | $as_echo_n "checking whether -gdwarf-5 is supported... " >&6; } | |
13386 | if ${libbacktrace_cv_lib_dwarf5+:} false; then : | |
13387 | $as_echo_n "(cached) " >&6 | |
13388 | else | |
13389 | CFLAGS_hold=$CFLAGS | |
13390 | CFLAGS="$CFLAGS -gdwarf-5" | |
13391 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13392 | /* end confdefs.h. */ | |
13393 | int i; | |
13394 | _ACEOF | |
13395 | if ac_fn_c_try_compile "$LINENO"; then : | |
13396 | libbacktrace_cv_lib_dwarf5=yes | |
13397 | else | |
13398 | libbacktrace_cv_lib_dwarf5=no | |
13399 | fi | |
13400 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13401 | CFLAGS=$CFLAGS_hold | |
13402 | fi | |
13403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_lib_dwarf5" >&5 | |
13404 | $as_echo "$libbacktrace_cv_lib_dwarf5" >&6; } | |
13405 | if test "$libbacktrace_cv_lib_dwarf5" = yes; then | |
13406 | HAVE_DWARF5_TRUE= | |
13407 | HAVE_DWARF5_FALSE='#' | |
13408 | else | |
13409 | HAVE_DWARF5_TRUE='#' | |
13410 | HAVE_DWARF5_FALSE= | |
13411 | fi | |
13412 | ||
13413 | ||
8da872d9 ILT |
13414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 |
13415 | $as_echo_n "checking for compress in -lz... " >&6; } | |
22e05272 | 13416 | if ${ac_cv_lib_z_compress+:} false; then : |
8da872d9 ILT |
13417 | $as_echo_n "(cached) " >&6 |
13418 | else | |
13419 | ac_check_lib_save_LIBS=$LIBS | |
13420 | LIBS="-lz $LIBS" | |
13421 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13422 | /* end confdefs.h. */ | |
13423 | ||
13424 | /* Override any GCC internal prototype to avoid an error. | |
13425 | Use char because int might match the return type of a GCC | |
13426 | builtin and then its argument prototype would still apply. */ | |
13427 | #ifdef __cplusplus | |
13428 | extern "C" | |
13429 | #endif | |
13430 | char compress (); | |
13431 | int | |
13432 | main () | |
13433 | { | |
13434 | return compress (); | |
13435 | ; | |
13436 | return 0; | |
13437 | } | |
13438 | _ACEOF | |
13439 | if ac_fn_c_try_link "$LINENO"; then : | |
13440 | ac_cv_lib_z_compress=yes | |
13441 | else | |
13442 | ac_cv_lib_z_compress=no | |
13443 | fi | |
13444 | rm -f core conftest.err conftest.$ac_objext \ | |
13445 | conftest$ac_exeext conftest.$ac_ext | |
13446 | LIBS=$ac_check_lib_save_LIBS | |
13447 | fi | |
13448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 | |
13449 | $as_echo "$ac_cv_lib_z_compress" >&6; } | |
22e05272 | 13450 | if test "x$ac_cv_lib_z_compress" = xyes; then : |
8da872d9 ILT |
13451 | |
13452 | $as_echo "#define HAVE_ZLIB 1" >>confdefs.h | |
13453 | ||
13454 | fi | |
2206fb89 | 13455 | |
8da872d9 ILT |
13456 | if test "$ac_cv_lib_z_compress" = yes; then |
13457 | HAVE_ZLIB_TRUE= | |
13458 | HAVE_ZLIB_FALSE='#' | |
13459 | else | |
13460 | HAVE_ZLIB_TRUE='#' | |
13461 | HAVE_ZLIB_FALSE= | |
13462 | fi | |
13463 | ||
13464 | ||
13465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --compress-debug-sections is supported" >&5 | |
13466 | $as_echo_n "checking whether --compress-debug-sections is supported... " >&6; } | |
22e05272 | 13467 | if ${libgo_cv_ld_compress+:} false; then : |
8da872d9 ILT |
13468 | $as_echo_n "(cached) " >&6 |
13469 | else | |
13470 | LDFLAGS_hold=$LDFLAGS | |
13471 | LDFLAGS="$LDFLAGS -Wl,--compress-debug-sections=zlib-gnu" | |
13472 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13473 | /* end confdefs.h. */ | |
13474 | ||
13475 | int | |
13476 | main () | |
13477 | { | |
13478 | ||
13479 | ; | |
13480 | return 0; | |
13481 | } | |
13482 | _ACEOF | |
13483 | if ac_fn_c_try_link "$LINENO"; then : | |
13484 | libgo_cv_ld_compress=yes | |
13485 | else | |
13486 | libgo_cv_ld_compress=no | |
13487 | fi | |
13488 | rm -f core conftest.err conftest.$ac_objext \ | |
13489 | conftest$ac_exeext conftest.$ac_ext | |
13490 | LDFLAGS=$LDFLAGS_hold | |
13491 | fi | |
13492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_compress" >&5 | |
13493 | $as_echo "$libgo_cv_ld_compress" >&6; } | |
13494 | if test "$libgo_cv_ld_compress" = yes; then | |
13495 | HAVE_COMPRESSED_DEBUG_TRUE= | |
13496 | HAVE_COMPRESSED_DEBUG_FALSE='#' | |
13497 | else | |
13498 | HAVE_COMPRESSED_DEBUG_TRUE='#' | |
13499 | HAVE_COMPRESSED_DEBUG_FALSE= | |
13500 | fi | |
13501 | ||
13502 | ||
9283471b ILT |
13503 | |
13504 | # Extract the first word of "objcopy", so it can be a program name with args. | |
13505 | set dummy objcopy; ac_word=$2 | |
13506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13507 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 13508 | if ${ac_cv_prog_OBJCOPY+:} false; then : |
9283471b ILT |
13509 | $as_echo_n "(cached) " >&6 |
13510 | else | |
13511 | if test -n "$OBJCOPY"; then | |
13512 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
13513 | else | |
13514 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13515 | for as_dir in $PATH | |
13516 | do | |
13517 | IFS=$as_save_IFS | |
13518 | test -z "$as_dir" && as_dir=. | |
13519 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 13520 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9283471b ILT |
13521 | ac_cv_prog_OBJCOPY="objcopy" |
13522 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13523 | break 2 | |
13524 | fi | |
13525 | done | |
13526 | done | |
13527 | IFS=$as_save_IFS | |
13528 | ||
13529 | fi | |
13530 | fi | |
13531 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
13532 | if test -n "$OBJCOPY"; then | |
13533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 | |
13534 | $as_echo "$OBJCOPY" >&6; } | |
13535 | else | |
13536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13537 | $as_echo "no" >&6; } | |
13538 | fi | |
13539 | ||
13540 | ||
fddbc193 TV |
13541 | # Extract the first word of "readelf", so it can be a program name with args. |
13542 | set dummy readelf; ac_word=$2 | |
13543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13544 | $as_echo_n "checking for $ac_word... " >&6; } | |
13545 | if ${ac_cv_prog_READELF+:} false; then : | |
13546 | $as_echo_n "(cached) " >&6 | |
13547 | else | |
13548 | if test -n "$READELF"; then | |
13549 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
13550 | else | |
13551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13552 | for as_dir in $PATH | |
13553 | do | |
13554 | IFS=$as_save_IFS | |
13555 | test -z "$as_dir" && as_dir=. | |
13556 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13557 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13558 | ac_cv_prog_READELF="readelf" | |
13559 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13560 | break 2 | |
13561 | fi | |
13562 | done | |
13563 | done | |
13564 | IFS=$as_save_IFS | |
13565 | ||
13566 | fi | |
13567 | fi | |
13568 | READELF=$ac_cv_prog_READELF | |
13569 | if test -n "$READELF"; then | |
13570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
13571 | $as_echo "$READELF" >&6; } | |
13572 | else | |
13573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13574 | $as_echo "no" >&6; } | |
13575 | fi | |
13576 | ||
13577 | ||
9283471b ILT |
13578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether objcopy supports debuglink" >&5 |
13579 | $as_echo_n "checking whether objcopy supports debuglink... " >&6; } | |
22e05272 | 13580 | if ${libbacktrace_cv_objcopy_debuglink+:} false; then : |
9283471b ILT |
13581 | $as_echo_n "(cached) " >&6 |
13582 | else | |
13583 | if test -n "${with_target_subdir}"; then | |
13584 | libbacktrace_cv_objcopy_debuglink=no | |
dea40c94 ILT |
13585 | elif ! test -n "${OBJCOPY}"; then |
13586 | libbacktrace_cv_objcopy_debuglink=no | |
9283471b ILT |
13587 | elif ${OBJCOPY} --add-gnu-debuglink=x /bin/ls /tmp/ls$$; then |
13588 | rm -f /tmp/ls$$ | |
13589 | libbacktrace_cv_objcopy_debuglink=yes | |
13590 | else | |
13591 | libbacktrace_cv_objcopy_debuglink=no | |
13592 | fi | |
13593 | fi | |
13594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_objcopy_debuglink" >&5 | |
13595 | $as_echo "$libbacktrace_cv_objcopy_debuglink" >&6; } | |
13596 | if test "$libbacktrace_cv_objcopy_debuglink" = yes; then | |
13597 | HAVE_OBJCOPY_DEBUGLINK_TRUE= | |
13598 | HAVE_OBJCOPY_DEBUGLINK_FALSE='#' | |
13599 | else | |
13600 | HAVE_OBJCOPY_DEBUGLINK_TRUE='#' | |
13601 | HAVE_OBJCOPY_DEBUGLINK_FALSE= | |
13602 | fi | |
13603 | ||
13604 | ||
dea40c94 ILT |
13605 | |
13606 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
13607 | set dummy dsymutil; ac_word=$2 | |
13608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13609 | $as_echo_n "checking for $ac_word... " >&6; } | |
13610 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
13611 | $as_echo_n "(cached) " >&6 | |
13612 | else | |
13613 | if test -n "$DSYMUTIL"; then | |
13614 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
13615 | else | |
13616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13617 | for as_dir in $PATH | |
13618 | do | |
13619 | IFS=$as_save_IFS | |
13620 | test -z "$as_dir" && as_dir=. | |
13621 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13622 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13623 | ac_cv_prog_DSYMUTIL="dsymutil" | |
13624 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13625 | break 2 | |
13626 | fi | |
13627 | done | |
13628 | done | |
13629 | IFS=$as_save_IFS | |
13630 | ||
13631 | fi | |
13632 | fi | |
13633 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
13634 | if test -n "$DSYMUTIL"; then | |
13635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
13636 | $as_echo "$DSYMUTIL" >&6; } | |
13637 | else | |
13638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13639 | $as_echo "no" >&6; } | |
13640 | fi | |
13641 | ||
13642 | ||
13643 | if test -n "${DSYMUTIL}"; then | |
13644 | HAVE_DSYMUTIL_TRUE= | |
13645 | HAVE_DSYMUTIL_FALSE='#' | |
13646 | else | |
13647 | HAVE_DSYMUTIL_TRUE='#' | |
13648 | HAVE_DSYMUTIL_FALSE= | |
13649 | fi | |
13650 | ||
13651 | ||
eff02e4f ILT |
13652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests can run" >&5 |
13653 | $as_echo_n "checking whether tests can run... " >&6; } | |
22e05272 | 13654 | if ${libbacktrace_cv_sys_native+:} false; then : |
eff02e4f ILT |
13655 | $as_echo_n "(cached) " >&6 |
13656 | else | |
13657 | if test "$cross_compiling" = yes; then : | |
13658 | libbacktrace_cv_sys_native=no | |
13659 | else | |
13660 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13661 | /* end confdefs.h. */ | |
13662 | ||
13663 | int | |
13664 | main () | |
13665 | { | |
13666 | return 0; | |
13667 | ; | |
13668 | return 0; | |
13669 | } | |
13670 | _ACEOF | |
13671 | if ac_fn_c_try_run "$LINENO"; then : | |
13672 | libbacktrace_cv_sys_native=yes | |
13673 | else | |
13674 | libbacktrace_cv_sys_native=no | |
13675 | fi | |
13676 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
13677 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
13678 | fi | |
13679 | ||
13680 | fi | |
13681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_native" >&5 | |
13682 | $as_echo "$libbacktrace_cv_sys_native" >&6; } | |
13683 | if test "$libbacktrace_cv_sys_native" = "yes"; then | |
13684 | NATIVE_TRUE= | |
13685 | NATIVE_FALSE='#' | |
13686 | else | |
13687 | NATIVE_TRUE='#' | |
13688 | NATIVE_FALSE= | |
13689 | fi | |
13690 | ||
13691 | ||
13692 | if test "${multilib}" = "yes"; then | |
13693 | multilib_arg="--enable-multilib" | |
13694 | else | |
13695 | multilib_arg= | |
13696 | fi | |
13697 | ||
13698 | ac_config_files="$ac_config_files Makefile backtrace-supported.h" | |
13699 | ||
fddbc193 TV |
13700 | ac_config_files="$ac_config_files install-debuginfo-for-buildid.sh" |
13701 | ||
eff02e4f ILT |
13702 | |
13703 | # We need multilib support, but only if configuring for the target. | |
13704 | ac_config_commands="$ac_config_commands default" | |
13705 | ||
13706 | ||
13707 | cat >confcache <<\_ACEOF | |
13708 | # This file is a shell script that caches the results of configure | |
13709 | # tests run on this system so they can be shared between configure | |
13710 | # scripts and configure runs, see configure's option --config-cache. | |
13711 | # It is not useful on other systems. If it contains results you don't | |
13712 | # want to keep, you may remove or edit it. | |
13713 | # | |
13714 | # config.status only pays attention to the cache file if you give it | |
13715 | # the --recheck option to rerun configure. | |
13716 | # | |
13717 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
13718 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
13719 | # following values. | |
13720 | ||
13721 | _ACEOF | |
13722 | ||
13723 | # The following way of writing the cache mishandles newlines in values, | |
13724 | # but we know of no workaround that is simple, portable, and efficient. | |
13725 | # So, we kill variables containing newlines. | |
13726 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
13727 | # and sets the high bit in the cache file unless we assign to the vars. | |
13728 | ( | |
13729 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
13730 | eval ac_val=\$$ac_var | |
13731 | case $ac_val in #( | |
13732 | *${as_nl}*) | |
13733 | case $ac_var in #( | |
13734 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
13735 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
13736 | esac | |
13737 | case $ac_var in #( | |
13738 | _ | IFS | as_nl) ;; #( | |
13739 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
13740 | *) { eval $ac_var=; unset $ac_var;} ;; | |
13741 | esac ;; | |
13742 | esac | |
13743 | done | |
13744 | ||
13745 | (set) 2>&1 | | |
13746 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
13747 | *${as_nl}ac_space=\ *) | |
13748 | # `set' does not quote correctly, so add quotes: double-quote | |
13749 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
13750 | sed -n \ | |
13751 | "s/'/'\\\\''/g; | |
13752 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
13753 | ;; #( | |
13754 | *) | |
13755 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
13756 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
13757 | ;; | |
13758 | esac | | |
13759 | sort | |
13760 | ) | | |
13761 | sed ' | |
13762 | /^ac_cv_env_/b end | |
13763 | t clear | |
13764 | :clear | |
13765 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
13766 | t end | |
13767 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
13768 | :end' >>confcache | |
13769 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
13770 | if test -w "$cache_file"; then | |
22e05272 | 13771 | if test "x$cache_file" != "x/dev/null"; then |
eff02e4f ILT |
13772 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
13773 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
13774 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
13775 | cat confcache >"$cache_file" | |
13776 | else | |
13777 | case $cache_file in #( | |
13778 | */* | ?:*) | |
13779 | mv -f confcache "$cache_file"$$ && | |
13780 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
13781 | *) | |
13782 | mv -f confcache "$cache_file" ;; | |
13783 | esac | |
13784 | fi | |
13785 | fi | |
eff02e4f ILT |
13786 | else |
13787 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
13788 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
13789 | fi | |
13790 | fi | |
13791 | rm -f confcache | |
13792 | ||
13793 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
13794 | # Let make expand exec_prefix. | |
13795 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
13796 | ||
13797 | DEFS=-DHAVE_CONFIG_H | |
13798 | ||
13799 | ac_libobjs= | |
13800 | ac_ltlibobjs= | |
22e05272 | 13801 | U= |
eff02e4f ILT |
13802 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
13803 | # 1. Remove the extension, and $U if already installed. | |
13804 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
13805 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
13806 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
13807 | # will be set to the directory where LIBOBJS objects are built. | |
13808 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
13809 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
13810 | done | |
13811 | LIBOBJS=$ac_libobjs | |
13812 | ||
13813 | LTLIBOBJS=$ac_ltlibobjs | |
13814 | ||
13815 | ||
22e05272 JM |
13816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
13817 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
13818 | if test -n "$am_sleep_pid"; then | |
13819 | # Hide warnings about reused PIDs. | |
13820 | wait $am_sleep_pid 2>/dev/null | |
13821 | fi | |
13822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
13823 | $as_echo "done" >&6; } | |
eff02e4f ILT |
13824 | if test -n "$EXEEXT"; then |
13825 | am__EXEEXT_TRUE= | |
13826 | am__EXEEXT_FALSE='#' | |
13827 | else | |
13828 | am__EXEEXT_TRUE='#' | |
13829 | am__EXEEXT_FALSE= | |
13830 | fi | |
13831 | ||
13832 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
22e05272 | 13833 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
eff02e4f ILT |
13834 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
13835 | fi | |
10f48858 TV |
13836 | if test -z "${HAVE_DWZ_TRUE}" && test -z "${HAVE_DWZ_FALSE}"; then |
13837 | as_fn_error $? "conditional \"HAVE_DWZ\" was never defined. | |
13838 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
13839 | fi | |
fddbc193 TV |
13840 | if test -z "${HAVE_ELF_TRUE}" && test -z "${HAVE_ELF_FALSE}"; then |
13841 | as_fn_error $? "conditional \"HAVE_ELF\" was never defined. | |
13842 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
13843 | fi | |
d1609a23 | 13844 | if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then |
22e05272 | 13845 | as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined. |
d1609a23 ILT |
13846 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
13847 | fi | |
c926fd82 ILT |
13848 | if test -z "${HAVE_DWARF5_TRUE}" && test -z "${HAVE_DWARF5_FALSE}"; then |
13849 | as_fn_error $? "conditional \"HAVE_DWARF5\" was never defined. | |
13850 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
13851 | fi | |
8da872d9 | 13852 | if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then |
22e05272 | 13853 | as_fn_error $? "conditional \"HAVE_ZLIB\" was never defined. |
8da872d9 ILT |
13854 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
13855 | fi | |
13856 | if test -z "${HAVE_COMPRESSED_DEBUG_TRUE}" && test -z "${HAVE_COMPRESSED_DEBUG_FALSE}"; then | |
22e05272 | 13857 | as_fn_error $? "conditional \"HAVE_COMPRESSED_DEBUG\" was never defined. |
8da872d9 ILT |
13858 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
13859 | fi | |
9283471b | 13860 | if test -z "${HAVE_OBJCOPY_DEBUGLINK_TRUE}" && test -z "${HAVE_OBJCOPY_DEBUGLINK_FALSE}"; then |
22e05272 | 13861 | as_fn_error $? "conditional \"HAVE_OBJCOPY_DEBUGLINK\" was never defined. |
9283471b ILT |
13862 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
13863 | fi | |
dea40c94 ILT |
13864 | if test -z "${HAVE_DSYMUTIL_TRUE}" && test -z "${HAVE_DSYMUTIL_FALSE}"; then |
13865 | as_fn_error $? "conditional \"HAVE_DSYMUTIL\" was never defined. | |
13866 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
13867 | fi | |
eff02e4f | 13868 | if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then |
22e05272 | 13869 | as_fn_error $? "conditional \"NATIVE\" was never defined. |
eff02e4f ILT |
13870 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
13871 | fi | |
13872 | ||
22e05272 | 13873 | : "${CONFIG_STATUS=./config.status}" |
eff02e4f ILT |
13874 | ac_write_fail=0 |
13875 | ac_clean_files_save=$ac_clean_files | |
13876 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
13877 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
13878 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
13879 | as_write_fail=0 | |
13880 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
13881 | #! $SHELL | |
13882 | # Generated by $as_me. | |
13883 | # Run this file to recreate the current configuration. | |
13884 | # Compiler output produced by configure, useful for debugging | |
13885 | # configure, is in config.log if it exists. | |
13886 | ||
13887 | debug=false | |
13888 | ac_cs_recheck=false | |
13889 | ac_cs_silent=false | |
13890 | ||
13891 | SHELL=\${CONFIG_SHELL-$SHELL} | |
13892 | export SHELL | |
13893 | _ASEOF | |
13894 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
13895 | ## -------------------- ## | |
13896 | ## M4sh Initialization. ## | |
13897 | ## -------------------- ## | |
13898 | ||
13899 | # Be more Bourne compatible | |
13900 | DUALCASE=1; export DUALCASE # for MKS sh | |
13901 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
13902 | emulate sh | |
13903 | NULLCMD=: | |
13904 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
13905 | # is contrary to our usage. Disable this feature. | |
13906 | alias -g '${1+"$@"}'='"$@"' | |
13907 | setopt NO_GLOB_SUBST | |
13908 | else | |
13909 | case `(set -o) 2>/dev/null` in #( | |
13910 | *posix*) : | |
13911 | set -o posix ;; #( | |
13912 | *) : | |
13913 | ;; | |
13914 | esac | |
13915 | fi | |
13916 | ||
13917 | ||
13918 | as_nl=' | |
13919 | ' | |
13920 | export as_nl | |
13921 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
13922 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
13923 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
13924 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
13925 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
13926 | # but without wasting forks for bash or zsh. | |
13927 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
13928 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
13929 | as_echo='print -r --' | |
13930 | as_echo_n='print -rn --' | |
13931 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
13932 | as_echo='printf %s\n' | |
13933 | as_echo_n='printf %s' | |
13934 | else | |
13935 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
13936 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
13937 | as_echo_n='/usr/ucb/echo -n' | |
13938 | else | |
13939 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
13940 | as_echo_n_body='eval | |
13941 | arg=$1; | |
13942 | case $arg in #( | |
13943 | *"$as_nl"*) | |
13944 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
13945 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
13946 | esac; | |
13947 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
13948 | ' | |
13949 | export as_echo_n_body | |
13950 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
13951 | fi | |
13952 | export as_echo_body | |
13953 | as_echo='sh -c $as_echo_body as_echo' | |
13954 | fi | |
13955 | ||
13956 | # The user is always right. | |
13957 | if test "${PATH_SEPARATOR+set}" != set; then | |
13958 | PATH_SEPARATOR=: | |
13959 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
13960 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
13961 | PATH_SEPARATOR=';' | |
13962 | } | |
13963 | fi | |
13964 | ||
13965 | ||
13966 | # IFS | |
13967 | # We need space, tab and new line, in precisely that order. Quoting is | |
13968 | # there to prevent editors from complaining about space-tab. | |
13969 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
13970 | # splitting by setting IFS to empty value.) | |
13971 | IFS=" "" $as_nl" | |
13972 | ||
13973 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 13974 | as_myself= |
eff02e4f ILT |
13975 | case $0 in #(( |
13976 | *[\\/]* ) as_myself=$0 ;; | |
13977 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13978 | for as_dir in $PATH | |
13979 | do | |
13980 | IFS=$as_save_IFS | |
13981 | test -z "$as_dir" && as_dir=. | |
13982 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
13983 | done | |
13984 | IFS=$as_save_IFS | |
13985 | ||
13986 | ;; | |
13987 | esac | |
13988 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
13989 | # in which case we are not to be found in the path. | |
13990 | if test "x$as_myself" = x; then | |
13991 | as_myself=$0 | |
13992 | fi | |
13993 | if test ! -f "$as_myself"; then | |
13994 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
13995 | exit 1 | |
13996 | fi | |
13997 | ||
13998 | # Unset variables that we do not need and which cause bugs (e.g. in | |
13999 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
14000 | # suppresses any "Segmentation fault" message there. '((' could | |
14001 | # trigger a bug in pdksh 5.2.14. | |
14002 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
14003 | do eval test x\${$as_var+set} = xset \ | |
14004 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
14005 | done | |
14006 | PS1='$ ' | |
14007 | PS2='> ' | |
14008 | PS4='+ ' | |
14009 | ||
14010 | # NLS nuisances. | |
14011 | LC_ALL=C | |
14012 | export LC_ALL | |
14013 | LANGUAGE=C | |
14014 | export LANGUAGE | |
14015 | ||
14016 | # CDPATH. | |
14017 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14018 | ||
14019 | ||
22e05272 JM |
14020 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
14021 | # ---------------------------------------- | |
eff02e4f ILT |
14022 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
14023 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 14024 | # script with STATUS, using 1 if that was 0. |
eff02e4f ILT |
14025 | as_fn_error () |
14026 | { | |
22e05272 JM |
14027 | as_status=$1; test $as_status -eq 0 && as_status=1 |
14028 | if test "$4"; then | |
14029 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
14030 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
eff02e4f | 14031 | fi |
22e05272 | 14032 | $as_echo "$as_me: error: $2" >&2 |
eff02e4f ILT |
14033 | as_fn_exit $as_status |
14034 | } # as_fn_error | |
14035 | ||
14036 | ||
14037 | # as_fn_set_status STATUS | |
14038 | # ----------------------- | |
14039 | # Set $? to STATUS, without forking. | |
14040 | as_fn_set_status () | |
14041 | { | |
14042 | return $1 | |
14043 | } # as_fn_set_status | |
14044 | ||
14045 | # as_fn_exit STATUS | |
14046 | # ----------------- | |
14047 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
14048 | as_fn_exit () | |
14049 | { | |
14050 | set +e | |
14051 | as_fn_set_status $1 | |
14052 | exit $1 | |
14053 | } # as_fn_exit | |
14054 | ||
14055 | # as_fn_unset VAR | |
14056 | # --------------- | |
14057 | # Portably unset VAR. | |
14058 | as_fn_unset () | |
14059 | { | |
14060 | { eval $1=; unset $1;} | |
14061 | } | |
14062 | as_unset=as_fn_unset | |
14063 | # as_fn_append VAR VALUE | |
14064 | # ---------------------- | |
14065 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
14066 | # advantage of any shell optimizations that allow amortized linear growth over | |
14067 | # repeated appends, instead of the typical quadratic growth present in naive | |
14068 | # implementations. | |
14069 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
14070 | eval 'as_fn_append () | |
14071 | { | |
14072 | eval $1+=\$2 | |
14073 | }' | |
14074 | else | |
14075 | as_fn_append () | |
14076 | { | |
14077 | eval $1=\$$1\$2 | |
14078 | } | |
14079 | fi # as_fn_append | |
14080 | ||
14081 | # as_fn_arith ARG... | |
14082 | # ------------------ | |
14083 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
14084 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
14085 | # must be portable across $(()) and expr. | |
14086 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
14087 | eval 'as_fn_arith () | |
14088 | { | |
14089 | as_val=$(( $* )) | |
14090 | }' | |
14091 | else | |
14092 | as_fn_arith () | |
14093 | { | |
14094 | as_val=`expr "$@" || test $? -eq 1` | |
14095 | } | |
14096 | fi # as_fn_arith | |
14097 | ||
14098 | ||
14099 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
14100 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
14101 | as_expr=expr | |
14102 | else | |
14103 | as_expr=false | |
14104 | fi | |
14105 | ||
14106 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
14107 | as_basename=basename | |
14108 | else | |
14109 | as_basename=false | |
14110 | fi | |
14111 | ||
14112 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
14113 | as_dirname=dirname | |
14114 | else | |
14115 | as_dirname=false | |
14116 | fi | |
14117 | ||
14118 | as_me=`$as_basename -- "$0" || | |
14119 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
14120 | X"$0" : 'X\(//\)$' \| \ | |
14121 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
14122 | $as_echo X/"$0" | | |
14123 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
14124 | s//\1/ | |
14125 | q | |
14126 | } | |
14127 | /^X\/\(\/\/\)$/{ | |
14128 | s//\1/ | |
14129 | q | |
14130 | } | |
14131 | /^X\/\(\/\).*/{ | |
14132 | s//\1/ | |
14133 | q | |
14134 | } | |
14135 | s/.*/./; q'` | |
14136 | ||
14137 | # Avoid depending upon Character Ranges. | |
14138 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
14139 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
14140 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
14141 | as_cr_digits='0123456789' | |
14142 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
14143 | ||
14144 | ECHO_C= ECHO_N= ECHO_T= | |
14145 | case `echo -n x` in #((((( | |
14146 | -n*) | |
14147 | case `echo 'xy\c'` in | |
14148 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
14149 | xy) ECHO_C='\c';; | |
14150 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
14151 | ECHO_T=' ';; | |
14152 | esac;; | |
14153 | *) | |
14154 | ECHO_N='-n';; | |
14155 | esac | |
14156 | ||
14157 | rm -f conf$$ conf$$.exe conf$$.file | |
14158 | if test -d conf$$.dir; then | |
14159 | rm -f conf$$.dir/conf$$.file | |
14160 | else | |
14161 | rm -f conf$$.dir | |
14162 | mkdir conf$$.dir 2>/dev/null | |
14163 | fi | |
14164 | if (echo >conf$$.file) 2>/dev/null; then | |
14165 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
14166 | as_ln_s='ln -s' | |
14167 | # ... but there are two gotchas: | |
14168 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
14169 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 14170 | # In both cases, we have to default to `cp -pR'. |
eff02e4f | 14171 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 14172 | as_ln_s='cp -pR' |
eff02e4f ILT |
14173 | elif ln conf$$.file conf$$ 2>/dev/null; then |
14174 | as_ln_s=ln | |
14175 | else | |
22e05272 | 14176 | as_ln_s='cp -pR' |
eff02e4f ILT |
14177 | fi |
14178 | else | |
22e05272 | 14179 | as_ln_s='cp -pR' |
eff02e4f ILT |
14180 | fi |
14181 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
14182 | rmdir conf$$.dir 2>/dev/null | |
14183 | ||
14184 | ||
14185 | # as_fn_mkdir_p | |
14186 | # ------------- | |
14187 | # Create "$as_dir" as a directory, including parents if necessary. | |
14188 | as_fn_mkdir_p () | |
14189 | { | |
14190 | ||
14191 | case $as_dir in #( | |
14192 | -*) as_dir=./$as_dir;; | |
14193 | esac | |
14194 | test -d "$as_dir" || eval $as_mkdir_p || { | |
14195 | as_dirs= | |
14196 | while :; do | |
14197 | case $as_dir in #( | |
14198 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
14199 | *) as_qdir=$as_dir;; | |
14200 | esac | |
14201 | as_dirs="'$as_qdir' $as_dirs" | |
14202 | as_dir=`$as_dirname -- "$as_dir" || | |
14203 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14204 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14205 | X"$as_dir" : 'X\(//\)$' \| \ | |
14206 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
14207 | $as_echo X"$as_dir" | | |
14208 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14209 | s//\1/ | |
14210 | q | |
14211 | } | |
14212 | /^X\(\/\/\)[^/].*/{ | |
14213 | s//\1/ | |
14214 | q | |
14215 | } | |
14216 | /^X\(\/\/\)$/{ | |
14217 | s//\1/ | |
14218 | q | |
14219 | } | |
14220 | /^X\(\/\).*/{ | |
14221 | s//\1/ | |
14222 | q | |
14223 | } | |
14224 | s/.*/./; q'` | |
14225 | test -d "$as_dir" && break | |
14226 | done | |
14227 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 14228 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
eff02e4f ILT |
14229 | |
14230 | ||
14231 | } # as_fn_mkdir_p | |
14232 | if mkdir -p . 2>/dev/null; then | |
14233 | as_mkdir_p='mkdir -p "$as_dir"' | |
14234 | else | |
14235 | test -d ./-p && rmdir ./-p | |
14236 | as_mkdir_p=false | |
14237 | fi | |
14238 | ||
22e05272 JM |
14239 | |
14240 | # as_fn_executable_p FILE | |
14241 | # ----------------------- | |
14242 | # Test if FILE is an executable regular file. | |
14243 | as_fn_executable_p () | |
14244 | { | |
14245 | test -f "$1" && test -x "$1" | |
14246 | } # as_fn_executable_p | |
14247 | as_test_x='test -x' | |
14248 | as_executable_p=as_fn_executable_p | |
eff02e4f ILT |
14249 | |
14250 | # Sed expression to map a string onto a valid CPP name. | |
14251 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
14252 | ||
14253 | # Sed expression to map a string onto a valid variable name. | |
14254 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
14255 | ||
14256 | ||
14257 | exec 6>&1 | |
14258 | ## ----------------------------------- ## | |
14259 | ## Main body of $CONFIG_STATUS script. ## | |
14260 | ## ----------------------------------- ## | |
14261 | _ASEOF | |
14262 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
14263 | ||
14264 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14265 | # Save the log message, to keep $0 and so on meaningful, and to | |
14266 | # report actual input values of CONFIG_FILES etc. instead of their | |
14267 | # values after options handling. | |
14268 | ac_log=" | |
14269 | This file was extended by package-unused $as_me version-unused, which was | |
22e05272 | 14270 | generated by GNU Autoconf 2.69. Invocation command line was |
eff02e4f ILT |
14271 | |
14272 | CONFIG_FILES = $CONFIG_FILES | |
14273 | CONFIG_HEADERS = $CONFIG_HEADERS | |
14274 | CONFIG_LINKS = $CONFIG_LINKS | |
14275 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
14276 | $ $0 $@ | |
14277 | ||
14278 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
14279 | " | |
14280 | ||
14281 | _ACEOF | |
14282 | ||
14283 | case $ac_config_files in *" | |
14284 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
14285 | esac | |
14286 | ||
14287 | case $ac_config_headers in *" | |
14288 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
14289 | esac | |
14290 | ||
14291 | ||
14292 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14293 | # Files that config.status was made for. | |
14294 | config_files="$ac_config_files" | |
14295 | config_headers="$ac_config_headers" | |
14296 | config_commands="$ac_config_commands" | |
14297 | ||
14298 | _ACEOF | |
14299 | ||
14300 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14301 | ac_cs_usage="\ | |
14302 | \`$as_me' instantiates files and other configuration actions | |
14303 | from templates according to the current configuration. Unless the files | |
14304 | and actions are specified as TAGs, all are instantiated by default. | |
14305 | ||
14306 | Usage: $0 [OPTION]... [TAG]... | |
14307 | ||
14308 | -h, --help print this help, then exit | |
14309 | -V, --version print version number and configuration settings, then exit | |
22e05272 | 14310 | --config print configuration, then exit |
eff02e4f ILT |
14311 | -q, --quiet, --silent |
14312 | do not print progress messages | |
14313 | -d, --debug don't remove temporary files | |
14314 | --recheck update $as_me by reconfiguring in the same conditions | |
14315 | --file=FILE[:TEMPLATE] | |
14316 | instantiate the configuration file FILE | |
14317 | --header=FILE[:TEMPLATE] | |
14318 | instantiate the configuration header FILE | |
14319 | ||
14320 | Configuration files: | |
14321 | $config_files | |
14322 | ||
14323 | Configuration headers: | |
14324 | $config_headers | |
14325 | ||
14326 | Configuration commands: | |
14327 | $config_commands | |
14328 | ||
14329 | Report bugs to the package provider." | |
14330 | ||
14331 | _ACEOF | |
14332 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 14333 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
eff02e4f ILT |
14334 | ac_cs_version="\\ |
14335 | package-unused config.status version-unused | |
22e05272 JM |
14336 | configured by $0, generated by GNU Autoconf 2.69, |
14337 | with options \\"\$ac_cs_config\\" | |
eff02e4f | 14338 | |
22e05272 | 14339 | Copyright (C) 2012 Free Software Foundation, Inc. |
eff02e4f ILT |
14340 | This config.status script is free software; the Free Software Foundation |
14341 | gives unlimited permission to copy, distribute and modify it." | |
14342 | ||
14343 | ac_pwd='$ac_pwd' | |
14344 | srcdir='$srcdir' | |
14345 | INSTALL='$INSTALL' | |
14346 | MKDIR_P='$MKDIR_P' | |
14347 | AWK='$AWK' | |
14348 | test -n "\$AWK" || AWK=awk | |
14349 | _ACEOF | |
14350 | ||
14351 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14352 | # The default lists apply if the user does not specify any file. | |
14353 | ac_need_defaults=: | |
14354 | while test $# != 0 | |
14355 | do | |
14356 | case $1 in | |
22e05272 | 14357 | --*=?*) |
eff02e4f ILT |
14358 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
14359 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
14360 | ac_shift=: | |
14361 | ;; | |
22e05272 JM |
14362 | --*=) |
14363 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
14364 | ac_optarg= | |
14365 | ac_shift=: | |
14366 | ;; | |
eff02e4f ILT |
14367 | *) |
14368 | ac_option=$1 | |
14369 | ac_optarg=$2 | |
14370 | ac_shift=shift | |
14371 | ;; | |
14372 | esac | |
14373 | ||
14374 | case $ac_option in | |
14375 | # Handling of the options. | |
14376 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
14377 | ac_cs_recheck=: ;; | |
14378 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
14379 | $as_echo "$ac_cs_version"; exit ;; | |
22e05272 JM |
14380 | --config | --confi | --conf | --con | --co | --c ) |
14381 | $as_echo "$ac_cs_config"; exit ;; | |
eff02e4f ILT |
14382 | --debug | --debu | --deb | --de | --d | -d ) |
14383 | debug=: ;; | |
14384 | --file | --fil | --fi | --f ) | |
14385 | $ac_shift | |
14386 | case $ac_optarg in | |
14387 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
22e05272 | 14388 | '') as_fn_error $? "missing file argument" ;; |
eff02e4f ILT |
14389 | esac |
14390 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
14391 | ac_need_defaults=false;; | |
14392 | --header | --heade | --head | --hea ) | |
14393 | $ac_shift | |
14394 | case $ac_optarg in | |
14395 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
14396 | esac | |
14397 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
14398 | ac_need_defaults=false;; | |
14399 | --he | --h) | |
14400 | # Conflict between --help and --header | |
22e05272 | 14401 | as_fn_error $? "ambiguous option: \`$1' |
eff02e4f ILT |
14402 | Try \`$0 --help' for more information.";; |
14403 | --help | --hel | -h ) | |
14404 | $as_echo "$ac_cs_usage"; exit ;; | |
14405 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
14406 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
14407 | ac_cs_silent=: ;; | |
14408 | ||
14409 | # This is an error. | |
22e05272 | 14410 | -*) as_fn_error $? "unrecognized option: \`$1' |
eff02e4f ILT |
14411 | Try \`$0 --help' for more information." ;; |
14412 | ||
14413 | *) as_fn_append ac_config_targets " $1" | |
14414 | ac_need_defaults=false ;; | |
14415 | ||
14416 | esac | |
14417 | shift | |
14418 | done | |
14419 | ||
14420 | ac_configure_extra_args= | |
14421 | ||
14422 | if $ac_cs_silent; then | |
14423 | exec 6>/dev/null | |
14424 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
14425 | fi | |
14426 | ||
14427 | _ACEOF | |
14428 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14429 | if \$ac_cs_recheck; then | |
22e05272 | 14430 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
eff02e4f ILT |
14431 | shift |
14432 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
14433 | CONFIG_SHELL='$SHELL' | |
14434 | export CONFIG_SHELL | |
14435 | exec "\$@" | |
14436 | fi | |
14437 | ||
14438 | _ACEOF | |
14439 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14440 | exec 5>>config.log | |
14441 | { | |
14442 | echo | |
14443 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
14444 | ## Running $as_me. ## | |
14445 | _ASBOX | |
14446 | $as_echo "$ac_log" | |
14447 | } >&5 | |
14448 | ||
14449 | _ACEOF | |
14450 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14451 | # | |
14452 | # INIT-COMMANDS | |
14453 | # | |
eff02e4f | 14454 | |
405a6b1c MK |
14455 | srcdir="$srcdir" |
14456 | host="$host" | |
14457 | target="$target" | |
14458 | with_multisubdir="$with_multisubdir" | |
14459 | with_multisrctop="$with_multisrctop" | |
14460 | with_target_subdir="$with_target_subdir" | |
14461 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
14462 | multi_basedir="$multi_basedir" | |
14463 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
14464 | CC="$CC" | |
14465 | CXX="$CXX" | |
14466 | GFORTRAN="$GFORTRAN" | |
22e05272 | 14467 | GDC="$GDC" |
405a6b1c | 14468 | |
eff02e4f ILT |
14469 | |
14470 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
14471 | # if CDPATH is set. | |
14472 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14473 | ||
14474 | sed_quote_subst='$sed_quote_subst' | |
14475 | double_quote_subst='$double_quote_subst' | |
14476 | delay_variable_subst='$delay_variable_subst' | |
14477 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
14478 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
14479 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
14480 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
14481 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
14482 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
14483 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
14484 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
14485 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
14486 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
14487 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
14488 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
14489 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
14490 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
14491 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
14492 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
14493 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
14494 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
14495 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
14496 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
14497 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
14498 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
14499 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
14500 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
14501 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
14502 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
14503 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
14504 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
14505 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
14506 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
14507 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
14508 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
14509 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
14510 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
14511 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
14512 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
14513 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
14514 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
14515 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
14516 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
14517 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
14518 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
14519 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
14520 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
14521 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
14522 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
14523 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
14524 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
14525 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
14526 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
14527 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
14528 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
14529 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
14530 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
14531 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
14532 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
14533 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
14534 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
14535 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
14536 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
14537 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
14538 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
14539 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
14540 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
14541 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
14542 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
14543 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
14544 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
14545 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
14546 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
14547 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
14548 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
14549 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
14550 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
14551 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
14552 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
14553 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
14554 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
14555 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
14556 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
14557 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
14558 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
14559 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
14560 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
14561 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
14562 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
14563 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
14564 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
14565 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
14566 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
14567 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
14568 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
14569 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
14570 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
14571 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
14572 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
14573 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
14574 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
14575 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
14576 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
14577 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
14578 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
14579 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
14580 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
14581 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
14582 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
14583 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
14584 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
14585 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
14586 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
14587 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
14588 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
14589 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
14590 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
14591 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
14592 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
14593 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
14594 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
14595 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
14596 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
14597 | ||
14598 | LTCC='$LTCC' | |
14599 | LTCFLAGS='$LTCFLAGS' | |
14600 | compiler='$compiler_DEFAULT' | |
14601 | ||
14602 | # A function that is used when there is no print builtin or printf. | |
14603 | func_fallback_echo () | |
14604 | { | |
14605 | eval 'cat <<_LTECHO_EOF | |
14606 | \$1 | |
14607 | _LTECHO_EOF' | |
14608 | } | |
14609 | ||
14610 | # Quote evaled strings. | |
14611 | for var in SHELL \ | |
14612 | ECHO \ | |
14613 | SED \ | |
14614 | GREP \ | |
14615 | EGREP \ | |
14616 | FGREP \ | |
14617 | LD \ | |
14618 | NM \ | |
14619 | LN_S \ | |
14620 | lt_SP2NL \ | |
14621 | lt_NL2SP \ | |
14622 | reload_flag \ | |
14623 | OBJDUMP \ | |
14624 | deplibs_check_method \ | |
14625 | file_magic_cmd \ | |
14626 | AR \ | |
14627 | AR_FLAGS \ | |
14628 | STRIP \ | |
14629 | RANLIB \ | |
14630 | CC \ | |
14631 | CFLAGS \ | |
14632 | compiler \ | |
14633 | lt_cv_sys_global_symbol_pipe \ | |
14634 | lt_cv_sys_global_symbol_to_cdecl \ | |
14635 | lt_cv_sys_global_symbol_to_c_name_address \ | |
14636 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
14637 | lt_prog_compiler_no_builtin_flag \ | |
14638 | lt_prog_compiler_wl \ | |
14639 | lt_prog_compiler_pic \ | |
14640 | lt_prog_compiler_static \ | |
14641 | lt_cv_prog_compiler_c_o \ | |
14642 | need_locks \ | |
14643 | DSYMUTIL \ | |
14644 | NMEDIT \ | |
14645 | LIPO \ | |
14646 | OTOOL \ | |
14647 | OTOOL64 \ | |
14648 | shrext_cmds \ | |
14649 | export_dynamic_flag_spec \ | |
14650 | whole_archive_flag_spec \ | |
14651 | compiler_needs_object \ | |
14652 | with_gnu_ld \ | |
14653 | allow_undefined_flag \ | |
14654 | no_undefined_flag \ | |
14655 | hardcode_libdir_flag_spec \ | |
14656 | hardcode_libdir_flag_spec_ld \ | |
14657 | hardcode_libdir_separator \ | |
14658 | fix_srcfile_path \ | |
14659 | exclude_expsyms \ | |
14660 | include_expsyms \ | |
14661 | file_list_spec \ | |
14662 | variables_saved_for_relink \ | |
14663 | libname_spec \ | |
14664 | library_names_spec \ | |
14665 | soname_spec \ | |
14666 | install_override_mode \ | |
14667 | finish_eval \ | |
14668 | old_striplib \ | |
14669 | striplib; do | |
14670 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
14671 | *[\\\\\\\`\\"\\\$]*) | |
14672 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
14673 | ;; | |
14674 | *) | |
14675 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
14676 | ;; | |
14677 | esac | |
14678 | done | |
14679 | ||
14680 | # Double-quote double-evaled strings. | |
14681 | for var in reload_cmds \ | |
14682 | old_postinstall_cmds \ | |
14683 | old_postuninstall_cmds \ | |
14684 | old_archive_cmds \ | |
14685 | extract_expsyms_cmds \ | |
14686 | old_archive_from_new_cmds \ | |
14687 | old_archive_from_expsyms_cmds \ | |
14688 | archive_cmds \ | |
14689 | archive_expsym_cmds \ | |
14690 | module_cmds \ | |
14691 | module_expsym_cmds \ | |
14692 | export_symbols_cmds \ | |
14693 | prelink_cmds \ | |
14694 | postinstall_cmds \ | |
14695 | postuninstall_cmds \ | |
14696 | finish_cmds \ | |
14697 | sys_lib_search_path_spec \ | |
14698 | sys_lib_dlsearch_path_spec; do | |
14699 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
14700 | *[\\\\\\\`\\"\\\$]*) | |
14701 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
14702 | ;; | |
14703 | *) | |
14704 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
14705 | ;; | |
14706 | esac | |
14707 | done | |
14708 | ||
14709 | ac_aux_dir='$ac_aux_dir' | |
14710 | xsi_shell='$xsi_shell' | |
14711 | lt_shell_append='$lt_shell_append' | |
14712 | ||
14713 | # See if we are running on zsh, and set the options which allow our | |
14714 | # commands through without removal of \ escapes INIT. | |
14715 | if test -n "\${ZSH_VERSION+set}" ; then | |
14716 | setopt NO_GLOB_SUBST | |
14717 | fi | |
14718 | ||
14719 | ||
14720 | PACKAGE='$PACKAGE' | |
14721 | VERSION='$VERSION' | |
14722 | TIMESTAMP='$TIMESTAMP' | |
14723 | RM='$RM' | |
14724 | ofile='$ofile' | |
14725 | ||
14726 | ||
14727 | ||
14728 | ||
76850556 RO |
14729 | GCC="$GCC" |
14730 | CC="$CC" | |
14731 | acx_cv_header_stdint="$acx_cv_header_stdint" | |
14732 | acx_cv_type_int8_t="$acx_cv_type_int8_t" | |
14733 | acx_cv_type_int16_t="$acx_cv_type_int16_t" | |
14734 | acx_cv_type_int32_t="$acx_cv_type_int32_t" | |
14735 | acx_cv_type_int64_t="$acx_cv_type_int64_t" | |
14736 | acx_cv_type_intptr_t="$acx_cv_type_intptr_t" | |
14737 | ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" | |
14738 | ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" | |
14739 | ac_cv_type_uint64_t="$ac_cv_type_uint64_t" | |
14740 | ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" | |
14741 | ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" | |
14742 | ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" | |
14743 | ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" | |
14744 | ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" | |
14745 | ||
14746 | ||
eff02e4f ILT |
14747 | # Variables needed in config.status (file generation) which aren't already |
14748 | # passed by autoconf. | |
14749 | SUBDIRS="$SUBDIRS" | |
14750 | ||
14751 | ||
14752 | _ACEOF | |
14753 | ||
14754 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14755 | ||
14756 | # Handling of arguments. | |
14757 | for ac_config_target in $ac_config_targets | |
14758 | do | |
14759 | case $ac_config_target in | |
14760 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
eff02e4f | 14761 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
405a6b1c | 14762 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
76850556 | 14763 | "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;; |
eff02e4f ILT |
14764 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
14765 | "backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES backtrace-supported.h" ;; | |
fddbc193 | 14766 | "install-debuginfo-for-buildid.sh") CONFIG_FILES="$CONFIG_FILES install-debuginfo-for-buildid.sh" ;; |
eff02e4f ILT |
14767 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
14768 | ||
22e05272 | 14769 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
eff02e4f ILT |
14770 | esac |
14771 | done | |
14772 | ||
14773 | ||
14774 | # If the user did not use the arguments to specify the items to instantiate, | |
14775 | # then the envvar interface is used. Set only those that are not. | |
14776 | # We use the long form for the default assignment because of an extremely | |
14777 | # bizarre bug on SunOS 4.1.3. | |
14778 | if $ac_need_defaults; then | |
14779 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
14780 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
14781 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
14782 | fi | |
14783 | ||
14784 | # Have a temporary directory for convenience. Make it in the build tree | |
14785 | # simply because there is no reason against having it here, and in addition, | |
14786 | # creating and moving files from /tmp can sometimes cause problems. | |
14787 | # Hook for its removal unless debugging. | |
14788 | # Note that there is a small window in which the directory will not be cleaned: | |
14789 | # after its creation but before its name has been assigned to `$tmp'. | |
14790 | $debug || | |
14791 | { | |
22e05272 | 14792 | tmp= ac_tmp= |
eff02e4f | 14793 | trap 'exit_status=$? |
22e05272 JM |
14794 | : "${ac_tmp:=$tmp}" |
14795 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
eff02e4f ILT |
14796 | ' 0 |
14797 | trap 'as_fn_exit 1' 1 2 13 15 | |
14798 | } | |
14799 | # Create a (secure) tmp directory for tmp files. | |
14800 | ||
14801 | { | |
14802 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
22e05272 | 14803 | test -d "$tmp" |
eff02e4f ILT |
14804 | } || |
14805 | { | |
14806 | tmp=./conf$$-$RANDOM | |
14807 | (umask 077 && mkdir "$tmp") | |
22e05272 JM |
14808 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
14809 | ac_tmp=$tmp | |
eff02e4f ILT |
14810 | |
14811 | # Set up the scripts for CONFIG_FILES section. | |
14812 | # No need to generate them if there are no CONFIG_FILES. | |
14813 | # This happens for instance with `./config.status config.h'. | |
14814 | if test -n "$CONFIG_FILES"; then | |
14815 | ||
14816 | ||
14817 | ac_cr=`echo X | tr X '\015'` | |
14818 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
14819 | # But we know of no other shell where ac_cr would be empty at this | |
14820 | # point, so we can use a bashism as a fallback. | |
14821 | if test "x$ac_cr" = x; then | |
14822 | eval ac_cr=\$\'\\r\' | |
14823 | fi | |
14824 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
14825 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
22e05272 | 14826 | ac_cs_awk_cr='\\r' |
eff02e4f ILT |
14827 | else |
14828 | ac_cs_awk_cr=$ac_cr | |
14829 | fi | |
14830 | ||
22e05272 | 14831 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
eff02e4f ILT |
14832 | _ACEOF |
14833 | ||
14834 | ||
14835 | { | |
14836 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
14837 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
14838 | echo "_ACEOF" | |
14839 | } >conf$$subs.sh || | |
22e05272 JM |
14840 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
14841 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
eff02e4f ILT |
14842 | ac_delim='%!_!# ' |
14843 | for ac_last_try in false false false false false :; do | |
14844 | . ./conf$$subs.sh || | |
22e05272 | 14845 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
eff02e4f ILT |
14846 | |
14847 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
14848 | if test $ac_delim_n = $ac_delim_num; then | |
14849 | break | |
14850 | elif $ac_last_try; then | |
22e05272 | 14851 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
eff02e4f ILT |
14852 | else |
14853 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
14854 | fi | |
14855 | done | |
14856 | rm -f conf$$subs.sh | |
14857 | ||
14858 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 14859 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
eff02e4f ILT |
14860 | _ACEOF |
14861 | sed -n ' | |
14862 | h | |
14863 | s/^/S["/; s/!.*/"]=/ | |
14864 | p | |
14865 | g | |
14866 | s/^[^!]*!// | |
14867 | :repl | |
14868 | t repl | |
14869 | s/'"$ac_delim"'$// | |
14870 | t delim | |
14871 | :nl | |
14872 | h | |
22e05272 | 14873 | s/\(.\{148\}\)..*/\1/ |
eff02e4f ILT |
14874 | t more1 |
14875 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
14876 | p | |
14877 | n | |
14878 | b repl | |
14879 | :more1 | |
14880 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
14881 | p | |
14882 | g | |
14883 | s/.\{148\}// | |
14884 | t nl | |
14885 | :delim | |
14886 | h | |
22e05272 | 14887 | s/\(.\{148\}\)..*/\1/ |
eff02e4f ILT |
14888 | t more2 |
14889 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
14890 | p | |
14891 | b | |
14892 | :more2 | |
14893 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
14894 | p | |
14895 | g | |
14896 | s/.\{148\}// | |
14897 | t delim | |
14898 | ' <conf$$subs.awk | sed ' | |
14899 | /^[^""]/{ | |
14900 | N | |
14901 | s/\n// | |
14902 | } | |
14903 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
14904 | rm -f conf$$subs.awk | |
14905 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14906 | _ACAWK | |
22e05272 | 14907 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
eff02e4f ILT |
14908 | for (key in S) S_is_set[key] = 1 |
14909 | FS = "\a" | |
14910 | ||
14911 | } | |
14912 | { | |
14913 | line = $ 0 | |
14914 | nfields = split(line, field, "@") | |
14915 | substed = 0 | |
14916 | len = length(field[1]) | |
14917 | for (i = 2; i < nfields; i++) { | |
14918 | key = field[i] | |
14919 | keylen = length(key) | |
14920 | if (S_is_set[key]) { | |
14921 | value = S[key] | |
14922 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
14923 | len += length(value) + length(field[++i]) | |
14924 | substed = 1 | |
14925 | } else | |
14926 | len += 1 + keylen | |
14927 | } | |
14928 | ||
14929 | print line | |
14930 | } | |
14931 | ||
14932 | _ACAWK | |
14933 | _ACEOF | |
14934 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14935 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
14936 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
14937 | else | |
14938 | cat | |
22e05272 JM |
14939 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
14940 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
eff02e4f ILT |
14941 | _ACEOF |
14942 | ||
22e05272 JM |
14943 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
14944 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
eff02e4f ILT |
14945 | # trailing colons and then remove the whole line if VPATH becomes empty |
14946 | # (actually we leave an empty line to preserve line numbers). | |
14947 | if test "x$srcdir" = x.; then | |
22e05272 JM |
14948 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
14949 | h | |
14950 | s/// | |
14951 | s/^/:/ | |
14952 | s/[ ]*$/:/ | |
14953 | s/:\$(srcdir):/:/g | |
14954 | s/:\${srcdir}:/:/g | |
14955 | s/:@srcdir@:/:/g | |
14956 | s/^:*// | |
eff02e4f | 14957 | s/:*$// |
22e05272 JM |
14958 | x |
14959 | s/\(=[ ]*\).*/\1/ | |
14960 | G | |
14961 | s/\n// | |
eff02e4f ILT |
14962 | s/^[^=]*=[ ]*$// |
14963 | }' | |
14964 | fi | |
14965 | ||
14966 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14967 | fi # test -n "$CONFIG_FILES" | |
14968 | ||
14969 | # Set up the scripts for CONFIG_HEADERS section. | |
14970 | # No need to generate them if there are no CONFIG_HEADERS. | |
14971 | # This happens for instance with `./config.status Makefile'. | |
14972 | if test -n "$CONFIG_HEADERS"; then | |
22e05272 | 14973 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
eff02e4f ILT |
14974 | BEGIN { |
14975 | _ACEOF | |
14976 | ||
14977 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
14978 | # here-document in config.status, that substitutes the proper values into | |
14979 | # config.h.in to produce config.h. | |
14980 | ||
14981 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
14982 | # handling of long lines. | |
14983 | ac_delim='%!_!# ' | |
14984 | for ac_last_try in false false :; do | |
22e05272 JM |
14985 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
14986 | if test -z "$ac_tt"; then | |
eff02e4f ILT |
14987 | break |
14988 | elif $ac_last_try; then | |
22e05272 | 14989 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
eff02e4f ILT |
14990 | else |
14991 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
14992 | fi | |
14993 | done | |
14994 | ||
14995 | # For the awk script, D is an array of macro values keyed by name, | |
14996 | # likewise P contains macro parameters if any. Preserve backslash | |
14997 | # newline sequences. | |
14998 | ||
14999 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
15000 | sed -n ' | |
15001 | s/.\{148\}/&'"$ac_delim"'/g | |
15002 | t rset | |
15003 | :rset | |
15004 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
15005 | t def | |
15006 | d | |
15007 | :def | |
15008 | s/\\$// | |
15009 | t bsnl | |
15010 | s/["\\]/\\&/g | |
15011 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
15012 | D["\1"]=" \3"/p | |
15013 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
15014 | d | |
15015 | :bsnl | |
15016 | s/["\\]/\\&/g | |
15017 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
15018 | D["\1"]=" \3\\\\\\n"\\/p | |
15019 | t cont | |
15020 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
15021 | t cont | |
15022 | d | |
15023 | :cont | |
15024 | n | |
15025 | s/.\{148\}/&'"$ac_delim"'/g | |
15026 | t clear | |
15027 | :clear | |
15028 | s/\\$// | |
15029 | t bsnlc | |
15030 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
15031 | d | |
15032 | :bsnlc | |
15033 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
15034 | b cont | |
15035 | ' <confdefs.h | sed ' | |
15036 | s/'"$ac_delim"'/"\\\ | |
15037 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
15038 | ||
15039 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15040 | for (key in D) D_is_set[key] = 1 | |
15041 | FS = "\a" | |
15042 | } | |
15043 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
15044 | line = \$ 0 | |
15045 | split(line, arg, " ") | |
15046 | if (arg[1] == "#") { | |
15047 | defundef = arg[2] | |
15048 | mac1 = arg[3] | |
15049 | } else { | |
15050 | defundef = substr(arg[1], 2) | |
15051 | mac1 = arg[2] | |
15052 | } | |
15053 | split(mac1, mac2, "(") #) | |
15054 | macro = mac2[1] | |
15055 | prefix = substr(line, 1, index(line, defundef) - 1) | |
15056 | if (D_is_set[macro]) { | |
15057 | # Preserve the white space surrounding the "#". | |
15058 | print prefix "define", macro P[macro] D[macro] | |
15059 | next | |
15060 | } else { | |
15061 | # Replace #undef with comments. This is necessary, for example, | |
15062 | # in the case of _POSIX_SOURCE, which is predefined and required | |
15063 | # on some systems where configure will not decide to define it. | |
15064 | if (defundef == "undef") { | |
15065 | print "/*", prefix defundef, macro, "*/" | |
15066 | next | |
15067 | } | |
15068 | } | |
15069 | } | |
15070 | { print } | |
15071 | _ACAWK | |
15072 | _ACEOF | |
15073 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
22e05272 | 15074 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
eff02e4f ILT |
15075 | fi # test -n "$CONFIG_HEADERS" |
15076 | ||
15077 | ||
15078 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
15079 | shift | |
15080 | for ac_tag | |
15081 | do | |
15082 | case $ac_tag in | |
15083 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15084 | esac | |
15085 | case $ac_mode$ac_tag in | |
15086 | :[FHL]*:*);; | |
22e05272 | 15087 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
eff02e4f ILT |
15088 | :[FH]-) ac_tag=-:-;; |
15089 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
15090 | esac | |
15091 | ac_save_IFS=$IFS | |
15092 | IFS=: | |
15093 | set x $ac_tag | |
15094 | IFS=$ac_save_IFS | |
15095 | shift | |
15096 | ac_file=$1 | |
15097 | shift | |
15098 | ||
15099 | case $ac_mode in | |
15100 | :L) ac_source=$1;; | |
15101 | :[FH]) | |
15102 | ac_file_inputs= | |
15103 | for ac_f | |
15104 | do | |
15105 | case $ac_f in | |
22e05272 | 15106 | -) ac_f="$ac_tmp/stdin";; |
eff02e4f ILT |
15107 | *) # Look for the file first in the build tree, then in the source tree |
15108 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15109 | # because $ac_f cannot contain `:'. | |
15110 | test -f "$ac_f" || | |
15111 | case $ac_f in | |
15112 | [\\/$]*) false;; | |
15113 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15114 | esac || | |
22e05272 | 15115 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
eff02e4f ILT |
15116 | esac |
15117 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15118 | as_fn_append ac_file_inputs " '$ac_f'" | |
15119 | done | |
15120 | ||
15121 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
15122 | # use $as_me), people would be surprised to read: | |
15123 | # /* config.h. Generated by config.status. */ | |
15124 | configure_input='Generated from '` | |
15125 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15126 | `' by configure.' | |
15127 | if test x"$ac_file" != x-; then | |
15128 | configure_input="$ac_file. $configure_input" | |
15129 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15130 | $as_echo "$as_me: creating $ac_file" >&6;} | |
15131 | fi | |
15132 | # Neutralize special characters interpreted by sed in replacement strings. | |
15133 | case $configure_input in #( | |
15134 | *\&* | *\|* | *\\* ) | |
15135 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15136 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15137 | *) ac_sed_conf_input=$configure_input;; | |
15138 | esac | |
15139 | ||
15140 | case $ac_tag in | |
22e05272 JM |
15141 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
15142 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
eff02e4f ILT |
15143 | esac |
15144 | ;; | |
15145 | esac | |
15146 | ||
15147 | ac_dir=`$as_dirname -- "$ac_file" || | |
15148 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15149 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15150 | X"$ac_file" : 'X\(//\)$' \| \ | |
15151 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
15152 | $as_echo X"$ac_file" | | |
15153 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15154 | s//\1/ | |
15155 | q | |
15156 | } | |
15157 | /^X\(\/\/\)[^/].*/{ | |
15158 | s//\1/ | |
15159 | q | |
15160 | } | |
15161 | /^X\(\/\/\)$/{ | |
15162 | s//\1/ | |
15163 | q | |
15164 | } | |
15165 | /^X\(\/\).*/{ | |
15166 | s//\1/ | |
15167 | q | |
15168 | } | |
15169 | s/.*/./; q'` | |
15170 | as_dir="$ac_dir"; as_fn_mkdir_p | |
15171 | ac_builddir=. | |
15172 | ||
15173 | case "$ac_dir" in | |
15174 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15175 | *) | |
15176 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15177 | # A ".." for each directory in $ac_dir_suffix. | |
15178 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15179 | case $ac_top_builddir_sub in | |
15180 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15181 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15182 | esac ;; | |
15183 | esac | |
15184 | ac_abs_top_builddir=$ac_pwd | |
15185 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15186 | # for backward compatibility: | |
15187 | ac_top_builddir=$ac_top_build_prefix | |
15188 | ||
15189 | case $srcdir in | |
15190 | .) # We are building in place. | |
15191 | ac_srcdir=. | |
15192 | ac_top_srcdir=$ac_top_builddir_sub | |
15193 | ac_abs_top_srcdir=$ac_pwd ;; | |
15194 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
15195 | ac_srcdir=$srcdir$ac_dir_suffix; | |
15196 | ac_top_srcdir=$srcdir | |
15197 | ac_abs_top_srcdir=$srcdir ;; | |
15198 | *) # Relative name. | |
15199 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15200 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15201 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
15202 | esac | |
15203 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
15204 | ||
15205 | ||
15206 | case $ac_mode in | |
15207 | :F) | |
15208 | # | |
15209 | # CONFIG_FILE | |
15210 | # | |
15211 | ||
15212 | case $INSTALL in | |
15213 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
15214 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
15215 | esac | |
15216 | ac_MKDIR_P=$MKDIR_P | |
15217 | case $MKDIR_P in | |
15218 | [\\/$]* | ?:[\\/]* ) ;; | |
15219 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
15220 | esac | |
15221 | _ACEOF | |
15222 | ||
15223 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15224 | # If the template does not know about datarootdir, expand it. | |
15225 | # FIXME: This hack should be removed a few years after 2.60. | |
15226 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15227 | ac_sed_dataroot=' | |
15228 | /datarootdir/ { | |
15229 | p | |
15230 | q | |
15231 | } | |
15232 | /@datadir@/p | |
15233 | /@docdir@/p | |
15234 | /@infodir@/p | |
15235 | /@localedir@/p | |
15236 | /@mandir@/p' | |
15237 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
15238 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15239 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15240 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15241 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
15242 | _ACEOF | |
15243 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15244 | ac_datarootdir_hack=' | |
15245 | s&@datadir@&$datadir&g | |
15246 | s&@docdir@&$docdir&g | |
15247 | s&@infodir@&$infodir&g | |
15248 | s&@localedir@&$localedir&g | |
15249 | s&@mandir@&$mandir&g | |
15250 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15251 | esac | |
15252 | _ACEOF | |
15253 | ||
15254 | # Neutralize VPATH when `$srcdir' = `.'. | |
15255 | # Shell code in configure.ac might set extrasub. | |
15256 | # FIXME: do we really want to maintain this feature? | |
15257 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15258 | ac_sed_extra="$ac_vpsub | |
15259 | $extrasub | |
15260 | _ACEOF | |
15261 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15262 | :t | |
15263 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
15264 | s|@configure_input@|$ac_sed_conf_input|;t t | |
15265 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15266 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
15267 | s&@srcdir@&$ac_srcdir&;t t | |
15268 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15269 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15270 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15271 | s&@builddir@&$ac_builddir&;t t | |
15272 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15273 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15274 | s&@INSTALL@&$ac_INSTALL&;t t | |
15275 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
15276 | $ac_datarootdir_hack | |
15277 | " | |
22e05272 JM |
15278 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
15279 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
eff02e4f ILT |
15280 | |
15281 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
22e05272 JM |
15282 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
15283 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
15284 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
eff02e4f | 15285 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 15286 | which seems to be undefined. Please make sure it is defined" >&5 |
eff02e4f | 15287 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 15288 | which seems to be undefined. Please make sure it is defined" >&2;} |
eff02e4f | 15289 | |
22e05272 | 15290 | rm -f "$ac_tmp/stdin" |
eff02e4f | 15291 | case $ac_file in |
22e05272 JM |
15292 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
15293 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
eff02e4f | 15294 | esac \ |
22e05272 | 15295 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
eff02e4f ILT |
15296 | ;; |
15297 | :H) | |
15298 | # | |
15299 | # CONFIG_HEADER | |
15300 | # | |
15301 | if test x"$ac_file" != x-; then | |
15302 | { | |
15303 | $as_echo "/* $configure_input */" \ | |
22e05272 JM |
15304 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
15305 | } >"$ac_tmp/config.h" \ | |
15306 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
15307 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
eff02e4f ILT |
15308 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
15309 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
15310 | else | |
15311 | rm -f "$ac_file" | |
22e05272 JM |
15312 | mv "$ac_tmp/config.h" "$ac_file" \ |
15313 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
eff02e4f ILT |
15314 | fi |
15315 | else | |
15316 | $as_echo "/* $configure_input */" \ | |
22e05272 JM |
15317 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
15318 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
eff02e4f ILT |
15319 | fi |
15320 | # Compute "$ac_file"'s index in $config_headers. | |
15321 | _am_arg="$ac_file" | |
15322 | _am_stamp_count=1 | |
15323 | for _am_header in $config_headers :; do | |
15324 | case $_am_header in | |
15325 | $_am_arg | $_am_arg:* ) | |
15326 | break ;; | |
15327 | * ) | |
15328 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
15329 | esac | |
15330 | done | |
15331 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
15332 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15333 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
15334 | X"$_am_arg" : 'X\(//\)$' \| \ | |
15335 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
15336 | $as_echo X"$_am_arg" | | |
15337 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15338 | s//\1/ | |
15339 | q | |
15340 | } | |
15341 | /^X\(\/\/\)[^/].*/{ | |
15342 | s//\1/ | |
15343 | q | |
15344 | } | |
15345 | /^X\(\/\/\)$/{ | |
15346 | s//\1/ | |
15347 | q | |
15348 | } | |
15349 | /^X\(\/\).*/{ | |
15350 | s//\1/ | |
15351 | q | |
15352 | } | |
15353 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
15354 | ;; | |
15355 | ||
15356 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
15357 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
15358 | ;; | |
15359 | esac | |
15360 | ||
15361 | ||
15362 | case $ac_file$ac_mode in | |
405a6b1c MK |
15363 | "default-1":C) |
15364 | # Only add multilib support code if we just rebuilt the top-level | |
15365 | # Makefile. | |
15366 | case " $CONFIG_FILES " in | |
15367 | *" Makefile "*) | |
15368 | ac_file=Makefile . ${multi_basedir}/config-ml.in | |
15369 | ;; | |
15370 | esac ;; | |
eff02e4f ILT |
15371 | "libtool":C) |
15372 | ||
15373 | # See if we are running on zsh, and set the options which allow our | |
15374 | # commands through without removal of \ escapes. | |
15375 | if test -n "${ZSH_VERSION+set}" ; then | |
15376 | setopt NO_GLOB_SUBST | |
15377 | fi | |
15378 | ||
15379 | cfgfile="${ofile}T" | |
15380 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
15381 | $RM "$cfgfile" | |
15382 | ||
15383 | cat <<_LT_EOF >> "$cfgfile" | |
15384 | #! $SHELL | |
15385 | ||
15386 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
15387 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
15388 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
15389 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
15390 | # | |
15391 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
15392 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | |
15393 | # Written by Gordon Matzigkeit, 1996 | |
15394 | # | |
15395 | # This file is part of GNU Libtool. | |
15396 | # | |
15397 | # GNU Libtool is free software; you can redistribute it and/or | |
15398 | # modify it under the terms of the GNU General Public License as | |
15399 | # published by the Free Software Foundation; either version 2 of | |
15400 | # the License, or (at your option) any later version. | |
15401 | # | |
15402 | # As a special exception to the GNU General Public License, | |
15403 | # if you distribute this file as part of a program or library that | |
15404 | # is built using GNU Libtool, you may include this file under the | |
15405 | # same distribution terms that you use for the rest of that program. | |
15406 | # | |
15407 | # GNU Libtool is distributed in the hope that it will be useful, | |
15408 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15409 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15410 | # GNU General Public License for more details. | |
15411 | # | |
15412 | # You should have received a copy of the GNU General Public License | |
15413 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
15414 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
15415 | # obtained by writing to the Free Software Foundation, Inc., | |
15416 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
15417 | ||
15418 | ||
15419 | # The names of the tagged configurations supported by this script. | |
15420 | available_tags="" | |
15421 | ||
15422 | # ### BEGIN LIBTOOL CONFIG | |
15423 | ||
15424 | # Which release of libtool.m4 was used? | |
15425 | macro_version=$macro_version | |
15426 | macro_revision=$macro_revision | |
15427 | ||
15428 | # Whether or not to build shared libraries. | |
15429 | build_libtool_libs=$enable_shared | |
15430 | ||
15431 | # Whether or not to build static libraries. | |
15432 | build_old_libs=$enable_static | |
15433 | ||
15434 | # What type of objects to build. | |
15435 | pic_mode=$pic_mode | |
15436 | ||
15437 | # Whether or not to optimize for fast installation. | |
15438 | fast_install=$enable_fast_install | |
15439 | ||
15440 | # Shell to use when invoking shell scripts. | |
15441 | SHELL=$lt_SHELL | |
15442 | ||
15443 | # An echo program that protects backslashes. | |
15444 | ECHO=$lt_ECHO | |
15445 | ||
15446 | # The host system. | |
15447 | host_alias=$host_alias | |
15448 | host=$host | |
15449 | host_os=$host_os | |
15450 | ||
15451 | # The build system. | |
15452 | build_alias=$build_alias | |
15453 | build=$build | |
15454 | build_os=$build_os | |
15455 | ||
15456 | # A sed program that does not truncate output. | |
15457 | SED=$lt_SED | |
15458 | ||
15459 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
15460 | Xsed="\$SED -e 1s/^X//" | |
15461 | ||
15462 | # A grep program that handles long lines. | |
15463 | GREP=$lt_GREP | |
15464 | ||
15465 | # An ERE matcher. | |
15466 | EGREP=$lt_EGREP | |
15467 | ||
15468 | # A literal string matcher. | |
15469 | FGREP=$lt_FGREP | |
15470 | ||
15471 | # A BSD- or MS-compatible name lister. | |
15472 | NM=$lt_NM | |
15473 | ||
15474 | # Whether we need soft or hard links. | |
15475 | LN_S=$lt_LN_S | |
15476 | ||
15477 | # What is the maximum length of a command? | |
15478 | max_cmd_len=$max_cmd_len | |
15479 | ||
15480 | # Object file suffix (normally "o"). | |
15481 | objext=$ac_objext | |
15482 | ||
15483 | # Executable file suffix (normally ""). | |
15484 | exeext=$exeext | |
15485 | ||
15486 | # whether the shell understands "unset". | |
15487 | lt_unset=$lt_unset | |
15488 | ||
15489 | # turn spaces into newlines. | |
15490 | SP2NL=$lt_lt_SP2NL | |
15491 | ||
15492 | # turn newlines into spaces. | |
15493 | NL2SP=$lt_lt_NL2SP | |
15494 | ||
15495 | # An object symbol dumper. | |
15496 | OBJDUMP=$lt_OBJDUMP | |
15497 | ||
15498 | # Method to check whether dependent libraries are shared objects. | |
15499 | deplibs_check_method=$lt_deplibs_check_method | |
15500 | ||
15501 | # Command to use when deplibs_check_method == "file_magic". | |
15502 | file_magic_cmd=$lt_file_magic_cmd | |
15503 | ||
15504 | # The archiver. | |
15505 | AR=$lt_AR | |
15506 | AR_FLAGS=$lt_AR_FLAGS | |
15507 | ||
15508 | # A symbol stripping program. | |
15509 | STRIP=$lt_STRIP | |
15510 | ||
15511 | # Commands used to install an old-style archive. | |
15512 | RANLIB=$lt_RANLIB | |
15513 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
15514 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
15515 | ||
15516 | # Whether to use a lock for old archive extraction. | |
15517 | lock_old_archive_extraction=$lock_old_archive_extraction | |
15518 | ||
15519 | # A C compiler. | |
15520 | LTCC=$lt_CC | |
15521 | ||
15522 | # LTCC compiler flags. | |
15523 | LTCFLAGS=$lt_CFLAGS | |
15524 | ||
15525 | # Take the output of nm and produce a listing of raw symbols and C names. | |
15526 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
15527 | ||
15528 | # Transform the output of nm in a proper C declaration. | |
15529 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
15530 | ||
15531 | # Transform the output of nm in a C name address pair. | |
15532 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
15533 | ||
15534 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
15535 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
15536 | ||
15537 | # The name of the directory that contains temporary libtool files. | |
15538 | objdir=$objdir | |
15539 | ||
15540 | # Used to examine libraries when file_magic_cmd begins with "file". | |
15541 | MAGIC_CMD=$MAGIC_CMD | |
15542 | ||
15543 | # Must we lock files when doing compilation? | |
15544 | need_locks=$lt_need_locks | |
15545 | ||
15546 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
15547 | DSYMUTIL=$lt_DSYMUTIL | |
15548 | ||
15549 | # Tool to change global to local symbols on Mac OS X. | |
15550 | NMEDIT=$lt_NMEDIT | |
15551 | ||
15552 | # Tool to manipulate fat objects and archives on Mac OS X. | |
15553 | LIPO=$lt_LIPO | |
15554 | ||
15555 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
15556 | OTOOL=$lt_OTOOL | |
15557 | ||
15558 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
15559 | OTOOL64=$lt_OTOOL64 | |
15560 | ||
15561 | # Old archive suffix (normally "a"). | |
15562 | libext=$libext | |
15563 | ||
15564 | # Shared library suffix (normally ".so"). | |
15565 | shrext_cmds=$lt_shrext_cmds | |
15566 | ||
15567 | # The commands to extract the exported symbol list from a shared archive. | |
15568 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
15569 | ||
15570 | # Variables whose values should be saved in libtool wrapper scripts and | |
15571 | # restored at link time. | |
15572 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
15573 | ||
15574 | # Do we need the "lib" prefix for modules? | |
15575 | need_lib_prefix=$need_lib_prefix | |
15576 | ||
15577 | # Do we need a version for libraries? | |
15578 | need_version=$need_version | |
15579 | ||
15580 | # Library versioning type. | |
15581 | version_type=$version_type | |
15582 | ||
15583 | # Shared library runtime path variable. | |
15584 | runpath_var=$runpath_var | |
15585 | ||
15586 | # Shared library path variable. | |
15587 | shlibpath_var=$shlibpath_var | |
15588 | ||
15589 | # Is shlibpath searched before the hard-coded library search path? | |
15590 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
15591 | ||
15592 | # Format of library name prefix. | |
15593 | libname_spec=$lt_libname_spec | |
15594 | ||
15595 | # List of archive names. First name is the real one, the rest are links. | |
15596 | # The last name is the one that the linker finds with -lNAME | |
15597 | library_names_spec=$lt_library_names_spec | |
15598 | ||
15599 | # The coded name of the library, if different from the real name. | |
15600 | soname_spec=$lt_soname_spec | |
15601 | ||
15602 | # Permission mode override for installation of shared libraries. | |
15603 | install_override_mode=$lt_install_override_mode | |
15604 | ||
15605 | # Command to use after installation of a shared archive. | |
15606 | postinstall_cmds=$lt_postinstall_cmds | |
15607 | ||
15608 | # Command to use after uninstallation of a shared archive. | |
15609 | postuninstall_cmds=$lt_postuninstall_cmds | |
15610 | ||
15611 | # Commands used to finish a libtool library installation in a directory. | |
15612 | finish_cmds=$lt_finish_cmds | |
15613 | ||
15614 | # As "finish_cmds", except a single script fragment to be evaled but | |
15615 | # not shown. | |
15616 | finish_eval=$lt_finish_eval | |
15617 | ||
15618 | # Whether we should hardcode library paths into libraries. | |
15619 | hardcode_into_libs=$hardcode_into_libs | |
15620 | ||
15621 | # Compile-time system search path for libraries. | |
15622 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
15623 | ||
15624 | # Run-time system search path for libraries. | |
15625 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
15626 | ||
15627 | # Whether dlopen is supported. | |
15628 | dlopen_support=$enable_dlopen | |
15629 | ||
15630 | # Whether dlopen of programs is supported. | |
15631 | dlopen_self=$enable_dlopen_self | |
15632 | ||
15633 | # Whether dlopen of statically linked programs is supported. | |
15634 | dlopen_self_static=$enable_dlopen_self_static | |
15635 | ||
15636 | # Commands to strip libraries. | |
15637 | old_striplib=$lt_old_striplib | |
15638 | striplib=$lt_striplib | |
15639 | ||
15640 | ||
15641 | # The linker used to build libraries. | |
15642 | LD=$lt_LD | |
15643 | ||
15644 | # How to create reloadable object files. | |
15645 | reload_flag=$lt_reload_flag | |
15646 | reload_cmds=$lt_reload_cmds | |
15647 | ||
15648 | # Commands used to build an old-style archive. | |
15649 | old_archive_cmds=$lt_old_archive_cmds | |
15650 | ||
15651 | # A language specific compiler. | |
15652 | CC=$lt_compiler | |
15653 | ||
15654 | # Is the compiler the GNU compiler? | |
15655 | with_gcc=$GCC | |
15656 | ||
15657 | # Compiler flag to turn off builtin functions. | |
15658 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
15659 | ||
15660 | # How to pass a linker flag through the compiler. | |
15661 | wl=$lt_lt_prog_compiler_wl | |
15662 | ||
15663 | # Additional compiler flags for building library objects. | |
15664 | pic_flag=$lt_lt_prog_compiler_pic | |
15665 | ||
15666 | # Compiler flag to prevent dynamic linking. | |
15667 | link_static_flag=$lt_lt_prog_compiler_static | |
15668 | ||
15669 | # Does compiler simultaneously support -c and -o options? | |
15670 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
15671 | ||
15672 | # Whether or not to add -lc for building shared libraries. | |
15673 | build_libtool_need_lc=$archive_cmds_need_lc | |
15674 | ||
15675 | # Whether or not to disallow shared libs when runtime libs are static. | |
15676 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
15677 | ||
15678 | # Compiler flag to allow reflexive dlopens. | |
15679 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
15680 | ||
15681 | # Compiler flag to generate shared objects directly from archives. | |
15682 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
15683 | ||
15684 | # Whether the compiler copes with passing no objects directly. | |
15685 | compiler_needs_object=$lt_compiler_needs_object | |
15686 | ||
15687 | # Create an old-style archive from a shared archive. | |
15688 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
15689 | ||
15690 | # Create a temporary old-style archive to link instead of a shared archive. | |
15691 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
15692 | ||
15693 | # Commands used to build a shared archive. | |
15694 | archive_cmds=$lt_archive_cmds | |
15695 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
15696 | ||
15697 | # Commands used to build a loadable module if different from building | |
15698 | # a shared archive. | |
15699 | module_cmds=$lt_module_cmds | |
15700 | module_expsym_cmds=$lt_module_expsym_cmds | |
15701 | ||
15702 | # Whether we are building with GNU ld or not. | |
15703 | with_gnu_ld=$lt_with_gnu_ld | |
15704 | ||
15705 | # Flag that allows shared libraries with undefined symbols to be built. | |
15706 | allow_undefined_flag=$lt_allow_undefined_flag | |
15707 | ||
15708 | # Flag that enforces no undefined symbols. | |
15709 | no_undefined_flag=$lt_no_undefined_flag | |
15710 | ||
15711 | # Flag to hardcode \$libdir into a binary during linking. | |
15712 | # This must work even if \$libdir does not exist | |
15713 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
15714 | ||
15715 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
15716 | # during linking. This must work even if \$libdir does not exist. | |
15717 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
15718 | ||
15719 | # Whether we need a single "-rpath" flag with a separated argument. | |
15720 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
15721 | ||
15722 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
15723 | # DIR into the resulting binary. | |
15724 | hardcode_direct=$hardcode_direct | |
15725 | ||
15726 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
15727 | # DIR into the resulting binary and the resulting library dependency is | |
15728 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
15729 | # library is relocated. | |
15730 | hardcode_direct_absolute=$hardcode_direct_absolute | |
15731 | ||
15732 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
15733 | # into the resulting binary. | |
15734 | hardcode_minus_L=$hardcode_minus_L | |
15735 | ||
15736 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
15737 | # into the resulting binary. | |
15738 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
15739 | ||
15740 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
15741 | # into the library and all subsequent libraries and executables linked | |
15742 | # against it. | |
15743 | hardcode_automatic=$hardcode_automatic | |
15744 | ||
15745 | # Set to yes if linker adds runtime paths of dependent libraries | |
15746 | # to runtime path list. | |
15747 | inherit_rpath=$inherit_rpath | |
15748 | ||
15749 | # Whether libtool must link a program against all its dependency libraries. | |
15750 | link_all_deplibs=$link_all_deplibs | |
15751 | ||
15752 | # Fix the shell variable \$srcfile for the compiler. | |
15753 | fix_srcfile_path=$lt_fix_srcfile_path | |
15754 | ||
15755 | # Set to "yes" if exported symbols are required. | |
15756 | always_export_symbols=$always_export_symbols | |
15757 | ||
15758 | # The commands to list exported symbols. | |
15759 | export_symbols_cmds=$lt_export_symbols_cmds | |
15760 | ||
15761 | # Symbols that should not be listed in the preloaded symbols. | |
15762 | exclude_expsyms=$lt_exclude_expsyms | |
15763 | ||
15764 | # Symbols that must always be exported. | |
15765 | include_expsyms=$lt_include_expsyms | |
15766 | ||
15767 | # Commands necessary for linking programs (against libraries) with templates. | |
15768 | prelink_cmds=$lt_prelink_cmds | |
15769 | ||
15770 | # Specify filename containing input files. | |
15771 | file_list_spec=$lt_file_list_spec | |
15772 | ||
15773 | # How to hardcode a shared library path into an executable. | |
15774 | hardcode_action=$hardcode_action | |
15775 | ||
15776 | # ### END LIBTOOL CONFIG | |
15777 | ||
15778 | _LT_EOF | |
15779 | ||
15780 | case $host_os in | |
15781 | aix3*) | |
15782 | cat <<\_LT_EOF >> "$cfgfile" | |
15783 | # AIX sometimes has problems with the GCC collect2 program. For some | |
15784 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
15785 | # vanish in a puff of smoke. | |
15786 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
15787 | COLLECT_NAMES= | |
15788 | export COLLECT_NAMES | |
15789 | fi | |
15790 | _LT_EOF | |
15791 | ;; | |
15792 | esac | |
15793 | ||
15794 | ||
15795 | ltmain="$ac_aux_dir/ltmain.sh" | |
15796 | ||
15797 | ||
15798 | # We use sed instead of cat because bash on DJGPP gets confused if | |
15799 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
15800 | # text mode, it properly converts lines to CR/LF. This bash problem | |
15801 | # is reportedly fixed, but why not run on old versions too? | |
15802 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
15803 | || (rm -f "$cfgfile"; exit 1) | |
15804 | ||
15805 | case $xsi_shell in | |
15806 | yes) | |
15807 | cat << \_LT_EOF >> "$cfgfile" | |
15808 | ||
15809 | # func_dirname file append nondir_replacement | |
15810 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
15811 | # otherwise set result to NONDIR_REPLACEMENT. | |
15812 | func_dirname () | |
15813 | { | |
15814 | case ${1} in | |
15815 | */*) func_dirname_result="${1%/*}${2}" ;; | |
15816 | * ) func_dirname_result="${3}" ;; | |
15817 | esac | |
15818 | } | |
15819 | ||
15820 | # func_basename file | |
15821 | func_basename () | |
15822 | { | |
15823 | func_basename_result="${1##*/}" | |
15824 | } | |
15825 | ||
15826 | # func_dirname_and_basename file append nondir_replacement | |
15827 | # perform func_basename and func_dirname in a single function | |
15828 | # call: | |
15829 | # dirname: Compute the dirname of FILE. If nonempty, | |
15830 | # add APPEND to the result, otherwise set result | |
15831 | # to NONDIR_REPLACEMENT. | |
15832 | # value returned in "$func_dirname_result" | |
15833 | # basename: Compute filename of FILE. | |
15834 | # value retuned in "$func_basename_result" | |
15835 | # Implementation must be kept synchronized with func_dirname | |
15836 | # and func_basename. For efficiency, we do not delegate to | |
15837 | # those functions but instead duplicate the functionality here. | |
15838 | func_dirname_and_basename () | |
15839 | { | |
15840 | case ${1} in | |
15841 | */*) func_dirname_result="${1%/*}${2}" ;; | |
15842 | * ) func_dirname_result="${3}" ;; | |
15843 | esac | |
15844 | func_basename_result="${1##*/}" | |
15845 | } | |
15846 | ||
15847 | # func_stripname prefix suffix name | |
15848 | # strip PREFIX and SUFFIX off of NAME. | |
15849 | # PREFIX and SUFFIX must not contain globbing or regex special | |
15850 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
15851 | # dot (in which case that matches only a dot). | |
15852 | func_stripname () | |
15853 | { | |
15854 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
15855 | # positional parameters, so assign one to ordinary parameter first. | |
15856 | func_stripname_result=${3} | |
15857 | func_stripname_result=${func_stripname_result#"${1}"} | |
15858 | func_stripname_result=${func_stripname_result%"${2}"} | |
15859 | } | |
15860 | ||
15861 | # func_opt_split | |
15862 | func_opt_split () | |
15863 | { | |
15864 | func_opt_split_opt=${1%%=*} | |
15865 | func_opt_split_arg=${1#*=} | |
15866 | } | |
15867 | ||
15868 | # func_lo2o object | |
15869 | func_lo2o () | |
15870 | { | |
15871 | case ${1} in | |
15872 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
15873 | *) func_lo2o_result=${1} ;; | |
15874 | esac | |
15875 | } | |
15876 | ||
15877 | # func_xform libobj-or-source | |
15878 | func_xform () | |
15879 | { | |
15880 | func_xform_result=${1%.*}.lo | |
15881 | } | |
15882 | ||
15883 | # func_arith arithmetic-term... | |
15884 | func_arith () | |
15885 | { | |
15886 | func_arith_result=$(( $* )) | |
15887 | } | |
15888 | ||
15889 | # func_len string | |
15890 | # STRING may not start with a hyphen. | |
15891 | func_len () | |
15892 | { | |
15893 | func_len_result=${#1} | |
15894 | } | |
15895 | ||
15896 | _LT_EOF | |
15897 | ;; | |
15898 | *) # Bourne compatible functions. | |
15899 | cat << \_LT_EOF >> "$cfgfile" | |
15900 | ||
15901 | # func_dirname file append nondir_replacement | |
15902 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
15903 | # otherwise set result to NONDIR_REPLACEMENT. | |
15904 | func_dirname () | |
15905 | { | |
15906 | # Extract subdirectory from the argument. | |
15907 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | |
15908 | if test "X$func_dirname_result" = "X${1}"; then | |
15909 | func_dirname_result="${3}" | |
15910 | else | |
15911 | func_dirname_result="$func_dirname_result${2}" | |
15912 | fi | |
15913 | } | |
15914 | ||
15915 | # func_basename file | |
15916 | func_basename () | |
15917 | { | |
15918 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` | |
15919 | } | |
15920 | ||
15921 | ||
15922 | # func_stripname prefix suffix name | |
15923 | # strip PREFIX and SUFFIX off of NAME. | |
15924 | # PREFIX and SUFFIX must not contain globbing or regex special | |
15925 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
15926 | # dot (in which case that matches only a dot). | |
15927 | # func_strip_suffix prefix name | |
15928 | func_stripname () | |
15929 | { | |
15930 | case ${2} in | |
15931 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | |
15932 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
15933 | esac | |
15934 | } | |
15935 | ||
15936 | # sed scripts: | |
15937 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
15938 | my_sed_long_arg='1s/^-[^=]*=//' | |
15939 | ||
15940 | # func_opt_split | |
15941 | func_opt_split () | |
15942 | { | |
15943 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` | |
15944 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
15945 | } | |
15946 | ||
15947 | # func_lo2o object | |
15948 | func_lo2o () | |
15949 | { | |
15950 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | |
15951 | } | |
15952 | ||
15953 | # func_xform libobj-or-source | |
15954 | func_xform () | |
15955 | { | |
15956 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` | |
15957 | } | |
15958 | ||
15959 | # func_arith arithmetic-term... | |
15960 | func_arith () | |
15961 | { | |
15962 | func_arith_result=`expr "$@"` | |
15963 | } | |
15964 | ||
15965 | # func_len string | |
15966 | # STRING may not start with a hyphen. | |
15967 | func_len () | |
15968 | { | |
15969 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
15970 | } | |
15971 | ||
15972 | _LT_EOF | |
15973 | esac | |
15974 | ||
15975 | case $lt_shell_append in | |
15976 | yes) | |
15977 | cat << \_LT_EOF >> "$cfgfile" | |
15978 | ||
15979 | # func_append var value | |
15980 | # Append VALUE to the end of shell variable VAR. | |
15981 | func_append () | |
15982 | { | |
15983 | eval "$1+=\$2" | |
15984 | } | |
15985 | _LT_EOF | |
15986 | ;; | |
15987 | *) | |
15988 | cat << \_LT_EOF >> "$cfgfile" | |
15989 | ||
15990 | # func_append var value | |
15991 | # Append VALUE to the end of shell variable VAR. | |
15992 | func_append () | |
15993 | { | |
15994 | eval "$1=\$$1\$2" | |
15995 | } | |
15996 | ||
15997 | _LT_EOF | |
15998 | ;; | |
15999 | esac | |
16000 | ||
16001 | ||
16002 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
16003 | || (rm -f "$cfgfile"; exit 1) | |
16004 | ||
16005 | mv -f "$cfgfile" "$ofile" || | |
16006 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
16007 | chmod +x "$ofile" | |
16008 | ||
16009 | ;; | |
76850556 RO |
16010 | "gstdint.h":C) |
16011 | if test "$GCC" = yes; then | |
16012 | echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h | |
16013 | else | |
16014 | echo "/* generated for $CC */" > tmp-stdint.h | |
16015 | fi | |
16016 | ||
16017 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
16018 | ||
16019 | #ifndef GCC_GENERATED_STDINT_H | |
16020 | #define GCC_GENERATED_STDINT_H 1 | |
16021 | ||
16022 | #include <sys/types.h> | |
16023 | EOF | |
16024 | ||
16025 | if test "$acx_cv_header_stdint" != stdint.h; then | |
16026 | echo "#include <stddef.h>" >> tmp-stdint.h | |
16027 | fi | |
16028 | if test "$acx_cv_header_stdint" != stddef.h; then | |
16029 | echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h | |
16030 | fi | |
16031 | ||
16032 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
16033 | /* glibc uses these symbols as guards to prevent redefinitions. */ | |
16034 | #ifdef __int8_t_defined | |
16035 | #define _INT8_T | |
16036 | #define _INT16_T | |
16037 | #define _INT32_T | |
16038 | #endif | |
16039 | #ifdef __uint32_t_defined | |
16040 | #define _UINT32_T | |
16041 | #endif | |
16042 | ||
16043 | EOF | |
16044 | ||
16045 | # ----------------- done header, emit basic int types ------------- | |
16046 | if test "$acx_cv_header_stdint" = stddef.h; then | |
16047 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
16048 | ||
16049 | #ifndef _UINT8_T | |
16050 | #define _UINT8_T | |
16051 | #ifndef __uint8_t_defined | |
16052 | #define __uint8_t_defined | |
16053 | #ifndef uint8_t | |
16054 | typedef unsigned $acx_cv_type_int8_t uint8_t; | |
16055 | #endif | |
16056 | #endif | |
16057 | #endif | |
16058 | ||
16059 | #ifndef _UINT16_T | |
16060 | #define _UINT16_T | |
16061 | #ifndef __uint16_t_defined | |
16062 | #define __uint16_t_defined | |
16063 | #ifndef uint16_t | |
16064 | typedef unsigned $acx_cv_type_int16_t uint16_t; | |
16065 | #endif | |
16066 | #endif | |
16067 | #endif | |
16068 | ||
16069 | #ifndef _UINT32_T | |
16070 | #define _UINT32_T | |
16071 | #ifndef __uint32_t_defined | |
16072 | #define __uint32_t_defined | |
16073 | #ifndef uint32_t | |
16074 | typedef unsigned $acx_cv_type_int32_t uint32_t; | |
16075 | #endif | |
16076 | #endif | |
16077 | #endif | |
16078 | ||
16079 | #ifndef _INT8_T | |
16080 | #define _INT8_T | |
16081 | #ifndef __int8_t_defined | |
16082 | #define __int8_t_defined | |
16083 | #ifndef int8_t | |
16084 | typedef $acx_cv_type_int8_t int8_t; | |
16085 | #endif | |
16086 | #endif | |
16087 | #endif | |
16088 | ||
16089 | #ifndef _INT16_T | |
16090 | #define _INT16_T | |
16091 | #ifndef __int16_t_defined | |
16092 | #define __int16_t_defined | |
16093 | #ifndef int16_t | |
16094 | typedef $acx_cv_type_int16_t int16_t; | |
16095 | #endif | |
16096 | #endif | |
16097 | #endif | |
16098 | ||
16099 | #ifndef _INT32_T | |
16100 | #define _INT32_T | |
16101 | #ifndef __int32_t_defined | |
16102 | #define __int32_t_defined | |
16103 | #ifndef int32_t | |
16104 | typedef $acx_cv_type_int32_t int32_t; | |
16105 | #endif | |
16106 | #endif | |
16107 | #endif | |
16108 | EOF | |
16109 | elif test "$ac_cv_type_u_int32_t" = yes; then | |
16110 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
16111 | ||
16112 | /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ | |
16113 | #ifndef _INT8_T | |
16114 | #define _INT8_T | |
16115 | #endif | |
16116 | #ifndef _INT16_T | |
16117 | #define _INT16_T | |
16118 | #endif | |
16119 | #ifndef _INT32_T | |
16120 | #define _INT32_T | |
16121 | #endif | |
16122 | ||
16123 | #ifndef _UINT8_T | |
16124 | #define _UINT8_T | |
16125 | #ifndef __uint8_t_defined | |
16126 | #define __uint8_t_defined | |
16127 | #ifndef uint8_t | |
16128 | typedef u_int8_t uint8_t; | |
16129 | #endif | |
16130 | #endif | |
16131 | #endif | |
16132 | ||
16133 | #ifndef _UINT16_T | |
16134 | #define _UINT16_T | |
16135 | #ifndef __uint16_t_defined | |
16136 | #define __uint16_t_defined | |
16137 | #ifndef uint16_t | |
16138 | typedef u_int16_t uint16_t; | |
16139 | #endif | |
16140 | #endif | |
16141 | #endif | |
16142 | ||
16143 | #ifndef _UINT32_T | |
16144 | #define _UINT32_T | |
16145 | #ifndef __uint32_t_defined | |
16146 | #define __uint32_t_defined | |
16147 | #ifndef uint32_t | |
16148 | typedef u_int32_t uint32_t; | |
16149 | #endif | |
16150 | #endif | |
16151 | #endif | |
16152 | EOF | |
16153 | else | |
16154 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
16155 | ||
16156 | /* Some systems have guard macros to prevent redefinitions, define them. */ | |
16157 | #ifndef _INT8_T | |
16158 | #define _INT8_T | |
16159 | #endif | |
16160 | #ifndef _INT16_T | |
16161 | #define _INT16_T | |
16162 | #endif | |
16163 | #ifndef _INT32_T | |
16164 | #define _INT32_T | |
16165 | #endif | |
16166 | #ifndef _UINT8_T | |
16167 | #define _UINT8_T | |
16168 | #endif | |
16169 | #ifndef _UINT16_T | |
16170 | #define _UINT16_T | |
16171 | #endif | |
16172 | #ifndef _UINT32_T | |
16173 | #define _UINT32_T | |
16174 | #endif | |
16175 | EOF | |
16176 | fi | |
16177 | ||
16178 | # ------------- done basic int types, emit int64_t types ------------ | |
16179 | if test "$ac_cv_type_uint64_t" = yes; then | |
16180 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
16181 | ||
16182 | /* system headers have good uint64_t and int64_t */ | |
16183 | #ifndef _INT64_T | |
16184 | #define _INT64_T | |
16185 | #endif | |
16186 | #ifndef _UINT64_T | |
16187 | #define _UINT64_T | |
16188 | #endif | |
16189 | EOF | |
16190 | elif test "$ac_cv_type_u_int64_t" = yes; then | |
16191 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
16192 | ||
16193 | /* system headers have an u_int64_t (and int64_t) */ | |
16194 | #ifndef _INT64_T | |
16195 | #define _INT64_T | |
16196 | #endif | |
16197 | #ifndef _UINT64_T | |
16198 | #define _UINT64_T | |
16199 | #ifndef __uint64_t_defined | |
16200 | #define __uint64_t_defined | |
16201 | #ifndef uint64_t | |
16202 | typedef u_int64_t uint64_t; | |
16203 | #endif | |
16204 | #endif | |
16205 | #endif | |
16206 | EOF | |
16207 | elif test -n "$acx_cv_type_int64_t"; then | |
16208 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
16209 | ||
16210 | /* architecture has a 64-bit type, $acx_cv_type_int64_t */ | |
16211 | #ifndef _INT64_T | |
16212 | #define _INT64_T | |
16213 | #ifndef int64_t | |
16214 | typedef $acx_cv_type_int64_t int64_t; | |
16215 | #endif | |
16216 | #endif | |
16217 | #ifndef _UINT64_T | |
16218 | #define _UINT64_T | |
16219 | #ifndef __uint64_t_defined | |
16220 | #define __uint64_t_defined | |
16221 | #ifndef uint64_t | |
16222 | typedef unsigned $acx_cv_type_int64_t uint64_t; | |
16223 | #endif | |
16224 | #endif | |
16225 | #endif | |
16226 | EOF | |
16227 | else | |
16228 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
16229 | ||
16230 | /* some common heuristics for int64_t, using compiler-specific tests */ | |
16231 | #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L | |
16232 | #ifndef _INT64_T | |
16233 | #define _INT64_T | |
16234 | #ifndef __int64_t_defined | |
16235 | #ifndef int64_t | |
16236 | typedef long long int64_t; | |
16237 | #endif | |
16238 | #endif | |
16239 | #endif | |
16240 | #ifndef _UINT64_T | |
16241 | #define _UINT64_T | |
16242 | #ifndef uint64_t | |
16243 | typedef unsigned long long uint64_t; | |
16244 | #endif | |
16245 | #endif | |
16246 | ||
16247 | #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 | |
16248 | /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and | |
16249 | does not implement __extension__. But that compiler doesn't define | |
16250 | __GNUC_MINOR__. */ | |
16251 | # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) | |
16252 | # define __extension__ | |
16253 | # endif | |
16254 | ||
16255 | # ifndef _INT64_T | |
16256 | # define _INT64_T | |
16257 | # ifndef int64_t | |
16258 | __extension__ typedef long long int64_t; | |
16259 | # endif | |
16260 | # endif | |
16261 | # ifndef _UINT64_T | |
16262 | # define _UINT64_T | |
16263 | # ifndef uint64_t | |
16264 | __extension__ typedef unsigned long long uint64_t; | |
16265 | # endif | |
16266 | # endif | |
16267 | ||
16268 | #elif !defined __STRICT_ANSI__ | |
16269 | # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ | |
16270 | ||
16271 | # ifndef _INT64_T | |
16272 | # define _INT64_T | |
16273 | # ifndef int64_t | |
16274 | typedef __int64 int64_t; | |
16275 | # endif | |
16276 | # endif | |
16277 | # ifndef _UINT64_T | |
16278 | # define _UINT64_T | |
16279 | # ifndef uint64_t | |
16280 | typedef unsigned __int64 uint64_t; | |
16281 | # endif | |
16282 | # endif | |
16283 | # endif /* compiler */ | |
16284 | ||
16285 | #endif /* ANSI version */ | |
16286 | EOF | |
16287 | fi | |
16288 | ||
16289 | # ------------- done int64_t types, emit intptr types ------------ | |
16290 | if test "$ac_cv_type_uintptr_t" != yes; then | |
16291 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
16292 | ||
16293 | /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ | |
16294 | #ifndef __uintptr_t_defined | |
16295 | #ifndef uintptr_t | |
16296 | typedef u$acx_cv_type_intptr_t uintptr_t; | |
16297 | #endif | |
16298 | #endif | |
16299 | #ifndef __intptr_t_defined | |
16300 | #ifndef intptr_t | |
16301 | typedef $acx_cv_type_intptr_t intptr_t; | |
16302 | #endif | |
16303 | #endif | |
16304 | EOF | |
16305 | fi | |
16306 | ||
16307 | # ------------- done intptr types, emit int_least types ------------ | |
16308 | if test "$ac_cv_type_int_least32_t" != yes; then | |
16309 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
16310 | ||
16311 | /* Define int_least types */ | |
16312 | typedef int8_t int_least8_t; | |
16313 | typedef int16_t int_least16_t; | |
16314 | typedef int32_t int_least32_t; | |
16315 | #ifdef _INT64_T | |
16316 | typedef int64_t int_least64_t; | |
16317 | #endif | |
16318 | ||
16319 | typedef uint8_t uint_least8_t; | |
16320 | typedef uint16_t uint_least16_t; | |
16321 | typedef uint32_t uint_least32_t; | |
16322 | #ifdef _UINT64_T | |
16323 | typedef uint64_t uint_least64_t; | |
16324 | #endif | |
16325 | EOF | |
16326 | fi | |
16327 | ||
16328 | # ------------- done intptr types, emit int_fast types ------------ | |
16329 | if test "$ac_cv_type_int_fast32_t" != yes; then | |
16330 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
16331 | ||
16332 | /* Define int_fast types. short is often slow */ | |
16333 | typedef int8_t int_fast8_t; | |
16334 | typedef int int_fast16_t; | |
16335 | typedef int32_t int_fast32_t; | |
16336 | #ifdef _INT64_T | |
16337 | typedef int64_t int_fast64_t; | |
16338 | #endif | |
16339 | ||
16340 | typedef uint8_t uint_fast8_t; | |
16341 | typedef unsigned int uint_fast16_t; | |
16342 | typedef uint32_t uint_fast32_t; | |
16343 | #ifdef _UINT64_T | |
16344 | typedef uint64_t uint_fast64_t; | |
16345 | #endif | |
16346 | EOF | |
16347 | fi | |
16348 | ||
16349 | if test "$ac_cv_type_uintmax_t" != yes; then | |
16350 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
16351 | ||
16352 | /* Define intmax based on what we found */ | |
16353 | #ifndef intmax_t | |
16354 | #ifdef _INT64_T | |
16355 | typedef int64_t intmax_t; | |
16356 | #else | |
16357 | typedef long intmax_t; | |
16358 | #endif | |
16359 | #endif | |
16360 | #ifndef uintmax_t | |
16361 | #ifdef _UINT64_T | |
16362 | typedef uint64_t uintmax_t; | |
16363 | #else | |
16364 | typedef unsigned long uintmax_t; | |
16365 | #endif | |
16366 | #endif | |
16367 | EOF | |
16368 | fi | |
16369 | ||
16370 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
16371 | ||
16372 | #endif /* GCC_GENERATED_STDINT_H */ | |
16373 | EOF | |
16374 | ||
16375 | if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then | |
16376 | rm -f tmp-stdint.h | |
16377 | else | |
16378 | mv -f tmp-stdint.h gstdint.h | |
16379 | fi | |
16380 | ||
16381 | ;; | |
fddbc193 | 16382 | "install-debuginfo-for-buildid.sh":F) chmod +x install-debuginfo-for-buildid.sh ;; |
eff02e4f ILT |
16383 | "default":C) if test -n "$CONFIG_FILES"; then |
16384 | if test -n "${with_target_subdir}"; then | |
16385 | # Multilibs need MULTISUBDIR defined correctly in certain makefiles so | |
16386 | # that multilib installs will end up installed in the correct place. | |
16387 | # The testsuite needs it for multilib-aware ABI baseline files. | |
16388 | # To work around this not being passed down from config-ml.in -> | |
16389 | # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually | |
16390 | # append it here. Only modify Makefiles that have just been created. | |
16391 | # | |
16392 | # Also, get rid of this simulated-VPATH thing that automake does. | |
16393 | cat > vpsed << \_EOF | |
16394 | s!`test -f '$<' || echo '$(srcdir)/'`!! | |
16395 | _EOF | |
16396 | for i in $SUBDIRS; do | |
16397 | case $CONFIG_FILES in | |
16398 | *${i}/Makefile*) | |
16399 | #echo "Adding MULTISUBDIR to $i/Makefile" | |
16400 | sed -f vpsed $i/Makefile > tmp | |
16401 | grep '^MULTISUBDIR =' Makefile >> tmp | |
16402 | mv tmp $i/Makefile | |
16403 | ;; | |
16404 | esac | |
16405 | done | |
16406 | rm vpsed | |
16407 | fi | |
16408 | fi | |
16409 | ;; | |
16410 | ||
16411 | esac | |
16412 | done # for ac_tag | |
16413 | ||
16414 | ||
16415 | as_fn_exit 0 | |
16416 | _ACEOF | |
16417 | ac_clean_files=$ac_clean_files_save | |
16418 | ||
16419 | test $ac_write_fail = 0 || | |
22e05272 | 16420 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
eff02e4f ILT |
16421 | |
16422 | ||
16423 | # configure is writing to config.log, and then calls config.status. | |
16424 | # config.status does its own redirection, appending to config.log. | |
16425 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
16426 | # by configure, so config.status won't be able to write to it; its | |
16427 | # output is simply discarded. So we exec the FD to /dev/null, | |
16428 | # effectively closing config.log, so it can be properly (re)opened and | |
16429 | # appended to by config.status. When coming back to configure, we | |
16430 | # need to make the FD available again. | |
16431 | if test "$no_create" != yes; then | |
16432 | ac_cs_success=: | |
16433 | ac_config_status_args= | |
16434 | test "$silent" = yes && | |
16435 | ac_config_status_args="$ac_config_status_args --quiet" | |
16436 | exec 5>/dev/null | |
16437 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
16438 | exec 5>>config.log | |
16439 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
16440 | # would make configure fail if this is the last instruction. | |
22e05272 | 16441 | $ac_cs_success || as_fn_exit 1 |
eff02e4f ILT |
16442 | fi |
16443 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
16444 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
16445 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
16446 | fi | |
16447 |