]>
Commit | Line | Data |
---|---|---|
48310492 RH |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
22e05272 JM |
3 | # Generated by GNU Autoconf 2.69 for GNU Atomic Library 1.0. |
4 | # | |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
48310492 | 7 | # |
48310492 RH |
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= |
48310492 RH |
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;} | |
48310492 RH |
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" | |
48310492 RH |
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 | |
199 | ||
200 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
201 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
202 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
203 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
204 | PATH=/empty FPATH=/empty; export PATH FPATH | |
205 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
206 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 | |
207 | test \$(( 1 + 1 )) = 2 || exit 1" | |
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 | |
48310492 RH |
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" |
48310492 RH |
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 | |
48310492 RH |
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 | # ---------------------------------------- | |
48310492 RH |
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. |
48310492 RH |
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 | |
48310492 | 422 | fi |
22e05272 | 423 | $as_echo "$as_me: error: $2" >&2 |
48310492 RH |
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 | |
48310492 RH |
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'. |
48310492 | 535 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 536 | as_ln_s='cp -pR' |
48310492 RH |
537 | elif ln conf$$.file conf$$ 2>/dev/null; then |
538 | as_ln_s=ln | |
539 | else | |
22e05272 | 540 | as_ln_s='cp -pR' |
48310492 RH |
541 | fi |
542 | else | |
22e05272 | 543 | as_ln_s='cp -pR' |
48310492 RH |
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 | |
48310492 RH |
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 | |
48310492 RH |
569 | |
570 | # Name of the host. | |
22e05272 | 571 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
48310492 RH |
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='GNU Atomic Library' | |
589 | PACKAGE_TARNAME='libatomic' | |
590 | PACKAGE_VERSION='1.0' | |
591 | PACKAGE_STRING='GNU Atomic Library 1.0' | |
592 | PACKAGE_BUGREPORT='' | |
593 | PACKAGE_URL='http://www.gnu.org/software/libatomic/' | |
594 | ||
595 | # Factoring default headers for most tests. | |
596 | ac_includes_default="\ | |
597 | #include <stdio.h> | |
598 | #ifdef HAVE_SYS_TYPES_H | |
599 | # include <sys/types.h> | |
600 | #endif | |
601 | #ifdef HAVE_SYS_STAT_H | |
602 | # include <sys/stat.h> | |
603 | #endif | |
604 | #ifdef STDC_HEADERS | |
605 | # include <stdlib.h> | |
606 | # include <stddef.h> | |
607 | #else | |
608 | # ifdef HAVE_STDLIB_H | |
609 | # include <stdlib.h> | |
610 | # endif | |
611 | #endif | |
612 | #ifdef HAVE_STRING_H | |
613 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
614 | # include <memory.h> | |
615 | # endif | |
616 | # include <string.h> | |
617 | #endif | |
618 | #ifdef HAVE_STRINGS_H | |
619 | # include <strings.h> | |
620 | #endif | |
621 | #ifdef HAVE_INTTYPES_H | |
622 | # include <inttypes.h> | |
623 | #endif | |
624 | #ifdef HAVE_STDINT_H | |
625 | # include <stdint.h> | |
626 | #endif | |
627 | #ifdef HAVE_UNISTD_H | |
628 | # include <unistd.h> | |
629 | #endif" | |
630 | ||
631 | ac_subst_vars='am__EXEEXT_FALSE | |
632 | am__EXEEXT_TRUE | |
633 | LTLIBOBJS | |
634 | LIBOBJS | |
3c36aa6b | 635 | get_gcc_base_ver |
48310492 RH |
636 | ARCH_X86_64_FALSE |
637 | ARCH_X86_64_TRUE | |
638 | ARCH_I386_FALSE | |
639 | ARCH_I386_TRUE | |
640 | ARCH_ARM_LINUX_FALSE | |
641 | ARCH_ARM_LINUX_TRUE | |
141abc6f SE |
642 | ARCH_AARCH64_LINUX_FALSE |
643 | ARCH_AARCH64_LINUX_TRUE | |
48310492 RH |
644 | HAVE_IFUNC_FALSE |
645 | HAVE_IFUNC_TRUE | |
47ddb895 | 646 | tmake_file |
48310492 RH |
647 | SIZES |
648 | XLDFLAGS | |
649 | XCFLAGS | |
650 | config_path | |
651 | LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE | |
652 | LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE | |
653 | LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE | |
654 | LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE | |
655 | LIBAT_BUILD_VERSIONED_SHLIB_FALSE | |
656 | LIBAT_BUILD_VERSIONED_SHLIB_TRUE | |
657 | OPT_LDFLAGS | |
658 | SECTION_LDFLAGS | |
9d0e85af | 659 | enable_aarch64_lse |
48310492 | 660 | libtool_VERSION |
fa3cd3c3 RH |
661 | MAINT |
662 | MAINTAINER_MODE_FALSE | |
663 | MAINTAINER_MODE_TRUE | |
48310492 RH |
664 | enable_static |
665 | enable_shared | |
dc3368d0 | 666 | lt_host_flags |
48310492 RH |
667 | CPP |
668 | OTOOL64 | |
669 | OTOOL | |
670 | LIPO | |
671 | NMEDIT | |
672 | DSYMUTIL | |
673 | OBJDUMP | |
674 | LN_S | |
675 | ac_ct_DUMPBIN | |
676 | DUMPBIN | |
677 | LD | |
678 | FGREP | |
679 | EGREP | |
680 | GREP | |
681 | SED | |
682 | LIBTOOL | |
48310492 RH |
683 | RANLIB |
684 | NM | |
685 | AR | |
686 | am__fastdepCCAS_FALSE | |
687 | am__fastdepCCAS_TRUE | |
688 | CCASDEPMODE | |
689 | CCASFLAGS | |
690 | CCAS | |
691 | am__fastdepCC_FALSE | |
692 | am__fastdepCC_TRUE | |
693 | CCDEPMODE | |
dc3368d0 | 694 | am__nodep |
48310492 RH |
695 | AMDEPBACKSLASH |
696 | AMDEP_FALSE | |
697 | AMDEP_TRUE | |
698 | am__quote | |
699 | am__include | |
700 | DEPDIR | |
701 | OBJEXT | |
702 | EXEEXT | |
703 | ac_ct_CC | |
704 | CPPFLAGS | |
705 | LDFLAGS | |
706 | CFLAGS | |
707 | CC | |
708 | toolexeclibdir | |
709 | toolexecdir | |
710 | multi_basedir | |
22e05272 JM |
711 | AM_BACKSLASH |
712 | AM_DEFAULT_VERBOSITY | |
713 | AM_DEFAULT_V | |
714 | AM_V | |
48310492 RH |
715 | am__untar |
716 | am__tar | |
717 | AMTAR | |
718 | am__leading_dot | |
719 | SET_MAKE | |
720 | AWK | |
721 | mkdir_p | |
722 | MKDIR_P | |
723 | INSTALL_STRIP_PROGRAM | |
724 | STRIP | |
725 | install_sh | |
726 | MAKEINFO | |
727 | AUTOHEADER | |
728 | AUTOMAKE | |
729 | AUTOCONF | |
730 | ACLOCAL | |
731 | VERSION | |
732 | PACKAGE | |
733 | CYGPATH_W | |
734 | am__isrc | |
735 | INSTALL_DATA | |
736 | INSTALL_SCRIPT | |
737 | INSTALL_PROGRAM | |
738 | target_os | |
739 | target_vendor | |
740 | target_cpu | |
741 | target | |
742 | host_os | |
743 | host_vendor | |
744 | host_cpu | |
745 | host | |
746 | build_os | |
747 | build_vendor | |
748 | build_cpu | |
749 | build | |
750 | GENINSRC_FALSE | |
751 | GENINSRC_TRUE | |
752 | target_alias | |
753 | host_alias | |
754 | build_alias | |
755 | LIBS | |
756 | ECHO_T | |
757 | ECHO_N | |
758 | ECHO_C | |
759 | DEFS | |
760 | mandir | |
761 | localedir | |
762 | libdir | |
763 | psdir | |
764 | pdfdir | |
765 | dvidir | |
766 | htmldir | |
767 | infodir | |
768 | docdir | |
769 | oldincludedir | |
770 | includedir | |
771 | localstatedir | |
772 | sharedstatedir | |
773 | sysconfdir | |
774 | datadir | |
775 | datarootdir | |
776 | libexecdir | |
777 | sbindir | |
778 | bindir | |
779 | program_transform_name | |
780 | prefix | |
781 | exec_prefix | |
782 | PACKAGE_URL | |
783 | PACKAGE_BUGREPORT | |
784 | PACKAGE_STRING | |
785 | PACKAGE_VERSION | |
786 | PACKAGE_TARNAME | |
787 | PACKAGE_NAME | |
788 | PATH_SEPARATOR | |
789 | SHELL' | |
790 | ac_subst_files='' | |
791 | ac_user_opts=' | |
792 | enable_option_checking | |
793 | enable_version_specific_runtime_libs | |
794 | enable_generated_files_in_srcdir | |
22e05272 | 795 | enable_silent_rules |
48310492 | 796 | enable_multilib |
e8e66971 | 797 | with_toolexeclibdir |
48310492 RH |
798 | enable_dependency_tracking |
799 | enable_shared | |
800 | enable_static | |
801 | with_pic | |
802 | enable_fast_install | |
803 | with_gnu_ld | |
804 | enable_libtool_lock | |
fa3cd3c3 | 805 | enable_maintainer_mode |
48310492 | 806 | enable_symvers |
45ba6bf2 | 807 | enable_werror |
efc643e9 | 808 | enable_cet |
3c36aa6b | 809 | with_gcc_major_version_only |
48310492 RH |
810 | ' |
811 | ac_precious_vars='build_alias | |
812 | host_alias | |
813 | target_alias | |
814 | CPP | |
815 | CPPFLAGS' | |
816 | ||
817 | ||
818 | # Initialize some variables set by options. | |
819 | ac_init_help= | |
820 | ac_init_version=false | |
821 | ac_unrecognized_opts= | |
822 | ac_unrecognized_sep= | |
823 | # The variables have the same names as the options, with | |
824 | # dashes changed to underlines. | |
825 | cache_file=/dev/null | |
826 | exec_prefix=NONE | |
827 | no_create= | |
828 | no_recursion= | |
829 | prefix=NONE | |
830 | program_prefix=NONE | |
831 | program_suffix=NONE | |
832 | program_transform_name=s,x,x, | |
833 | silent= | |
834 | site= | |
835 | srcdir= | |
836 | verbose= | |
837 | x_includes=NONE | |
838 | x_libraries=NONE | |
839 | ||
840 | # Installation directory options. | |
841 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
842 | # and all the variables that are supposed to be based on exec_prefix | |
843 | # by default will actually change. | |
844 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
845 | # (The list follows the same order as the GNU Coding Standards.) | |
846 | bindir='${exec_prefix}/bin' | |
847 | sbindir='${exec_prefix}/sbin' | |
848 | libexecdir='${exec_prefix}/libexec' | |
849 | datarootdir='${prefix}/share' | |
850 | datadir='${datarootdir}' | |
851 | sysconfdir='${prefix}/etc' | |
852 | sharedstatedir='${prefix}/com' | |
853 | localstatedir='${prefix}/var' | |
854 | includedir='${prefix}/include' | |
855 | oldincludedir='/usr/include' | |
856 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
857 | infodir='${datarootdir}/info' | |
858 | htmldir='${docdir}' | |
859 | dvidir='${docdir}' | |
860 | pdfdir='${docdir}' | |
861 | psdir='${docdir}' | |
862 | libdir='${exec_prefix}/lib' | |
863 | localedir='${datarootdir}/locale' | |
864 | mandir='${datarootdir}/man' | |
865 | ||
866 | ac_prev= | |
867 | ac_dashdash= | |
868 | for ac_option | |
869 | do | |
870 | # If the previous option needs an argument, assign it. | |
871 | if test -n "$ac_prev"; then | |
872 | eval $ac_prev=\$ac_option | |
873 | ac_prev= | |
874 | continue | |
875 | fi | |
876 | ||
877 | case $ac_option in | |
22e05272 JM |
878 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
879 | *=) ac_optarg= ;; | |
880 | *) ac_optarg=yes ;; | |
48310492 RH |
881 | esac |
882 | ||
883 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
884 | ||
885 | case $ac_dashdash$ac_option in | |
886 | --) | |
887 | ac_dashdash=yes ;; | |
888 | ||
889 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
890 | ac_prev=bindir ;; | |
891 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
892 | bindir=$ac_optarg ;; | |
893 | ||
894 | -build | --build | --buil | --bui | --bu) | |
895 | ac_prev=build_alias ;; | |
896 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
897 | build_alias=$ac_optarg ;; | |
898 | ||
899 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
900 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
901 | ac_prev=cache_file ;; | |
902 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
903 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
904 | cache_file=$ac_optarg ;; | |
905 | ||
906 | --config-cache | -C) | |
907 | cache_file=config.cache ;; | |
908 | ||
909 | -datadir | --datadir | --datadi | --datad) | |
910 | ac_prev=datadir ;; | |
911 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
912 | datadir=$ac_optarg ;; | |
913 | ||
914 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
915 | | --dataroo | --dataro | --datar) | |
916 | ac_prev=datarootdir ;; | |
917 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
918 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
919 | datarootdir=$ac_optarg ;; | |
920 | ||
921 | -disable-* | --disable-*) | |
922 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
923 | # Reject names that are not valid shell variable names. | |
924 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
22e05272 | 925 | as_fn_error $? "invalid feature name: $ac_useropt" |
48310492 RH |
926 | ac_useropt_orig=$ac_useropt |
927 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
928 | case $ac_user_opts in | |
929 | *" | |
930 | "enable_$ac_useropt" | |
931 | "*) ;; | |
932 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
933 | ac_unrecognized_sep=', ';; | |
934 | esac | |
935 | eval enable_$ac_useropt=no ;; | |
936 | ||
937 | -docdir | --docdir | --docdi | --doc | --do) | |
938 | ac_prev=docdir ;; | |
939 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
940 | docdir=$ac_optarg ;; | |
941 | ||
942 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
943 | ac_prev=dvidir ;; | |
944 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
945 | dvidir=$ac_optarg ;; | |
946 | ||
947 | -enable-* | --enable-*) | |
948 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
949 | # Reject names that are not valid shell variable names. | |
950 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
22e05272 | 951 | as_fn_error $? "invalid feature name: $ac_useropt" |
48310492 RH |
952 | ac_useropt_orig=$ac_useropt |
953 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
954 | case $ac_user_opts in | |
955 | *" | |
956 | "enable_$ac_useropt" | |
957 | "*) ;; | |
958 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
959 | ac_unrecognized_sep=', ';; | |
960 | esac | |
961 | eval enable_$ac_useropt=\$ac_optarg ;; | |
962 | ||
963 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
964 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
965 | | --exec | --exe | --ex) | |
966 | ac_prev=exec_prefix ;; | |
967 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
968 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
969 | | --exec=* | --exe=* | --ex=*) | |
970 | exec_prefix=$ac_optarg ;; | |
971 | ||
972 | -gas | --gas | --ga | --g) | |
973 | # Obsolete; use --with-gas. | |
974 | with_gas=yes ;; | |
975 | ||
976 | -help | --help | --hel | --he | -h) | |
977 | ac_init_help=long ;; | |
978 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
979 | ac_init_help=recursive ;; | |
980 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
981 | ac_init_help=short ;; | |
982 | ||
983 | -host | --host | --hos | --ho) | |
984 | ac_prev=host_alias ;; | |
985 | -host=* | --host=* | --hos=* | --ho=*) | |
986 | host_alias=$ac_optarg ;; | |
987 | ||
988 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
989 | ac_prev=htmldir ;; | |
990 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
991 | | --ht=*) | |
992 | htmldir=$ac_optarg ;; | |
993 | ||
994 | -includedir | --includedir | --includedi | --included | --include \ | |
995 | | --includ | --inclu | --incl | --inc) | |
996 | ac_prev=includedir ;; | |
997 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
998 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
999 | includedir=$ac_optarg ;; | |
1000 | ||
1001 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1002 | ac_prev=infodir ;; | |
1003 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1004 | infodir=$ac_optarg ;; | |
1005 | ||
1006 | -libdir | --libdir | --libdi | --libd) | |
1007 | ac_prev=libdir ;; | |
1008 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1009 | libdir=$ac_optarg ;; | |
1010 | ||
1011 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1012 | | --libexe | --libex | --libe) | |
1013 | ac_prev=libexecdir ;; | |
1014 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1015 | | --libexe=* | --libex=* | --libe=*) | |
1016 | libexecdir=$ac_optarg ;; | |
1017 | ||
1018 | -localedir | --localedir | --localedi | --localed | --locale) | |
1019 | ac_prev=localedir ;; | |
1020 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1021 | localedir=$ac_optarg ;; | |
1022 | ||
1023 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1024 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1025 | ac_prev=localstatedir ;; | |
1026 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1027 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1028 | localstatedir=$ac_optarg ;; | |
1029 | ||
1030 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1031 | ac_prev=mandir ;; | |
1032 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1033 | mandir=$ac_optarg ;; | |
1034 | ||
1035 | -nfp | --nfp | --nf) | |
1036 | # Obsolete; use --without-fp. | |
1037 | with_fp=no ;; | |
1038 | ||
1039 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1040 | | --no-cr | --no-c | -n) | |
1041 | no_create=yes ;; | |
1042 | ||
1043 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1044 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1045 | no_recursion=yes ;; | |
1046 | ||
1047 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1048 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1049 | | --oldin | --oldi | --old | --ol | --o) | |
1050 | ac_prev=oldincludedir ;; | |
1051 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1052 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1053 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1054 | oldincludedir=$ac_optarg ;; | |
1055 | ||
1056 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1057 | ac_prev=prefix ;; | |
1058 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1059 | prefix=$ac_optarg ;; | |
1060 | ||
1061 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1062 | | --program-pre | --program-pr | --program-p) | |
1063 | ac_prev=program_prefix ;; | |
1064 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1065 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1066 | program_prefix=$ac_optarg ;; | |
1067 | ||
1068 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1069 | | --program-suf | --program-su | --program-s) | |
1070 | ac_prev=program_suffix ;; | |
1071 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1072 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1073 | program_suffix=$ac_optarg ;; | |
1074 | ||
1075 | -program-transform-name | --program-transform-name \ | |
1076 | | --program-transform-nam | --program-transform-na \ | |
1077 | | --program-transform-n | --program-transform- \ | |
1078 | | --program-transform | --program-transfor \ | |
1079 | | --program-transfo | --program-transf \ | |
1080 | | --program-trans | --program-tran \ | |
1081 | | --progr-tra | --program-tr | --program-t) | |
1082 | ac_prev=program_transform_name ;; | |
1083 | -program-transform-name=* | --program-transform-name=* \ | |
1084 | | --program-transform-nam=* | --program-transform-na=* \ | |
1085 | | --program-transform-n=* | --program-transform-=* \ | |
1086 | | --program-transform=* | --program-transfor=* \ | |
1087 | | --program-transfo=* | --program-transf=* \ | |
1088 | | --program-trans=* | --program-tran=* \ | |
1089 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1090 | program_transform_name=$ac_optarg ;; | |
1091 | ||
1092 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1093 | ac_prev=pdfdir ;; | |
1094 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1095 | pdfdir=$ac_optarg ;; | |
1096 | ||
1097 | -psdir | --psdir | --psdi | --psd | --ps) | |
1098 | ac_prev=psdir ;; | |
1099 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1100 | psdir=$ac_optarg ;; | |
1101 | ||
1102 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1103 | | -silent | --silent | --silen | --sile | --sil) | |
1104 | silent=yes ;; | |
1105 | ||
1106 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1107 | ac_prev=sbindir ;; | |
1108 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1109 | | --sbi=* | --sb=*) | |
1110 | sbindir=$ac_optarg ;; | |
1111 | ||
1112 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1113 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1114 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1115 | | --sha | --sh) | |
1116 | ac_prev=sharedstatedir ;; | |
1117 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1118 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1119 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1120 | | --sha=* | --sh=*) | |
1121 | sharedstatedir=$ac_optarg ;; | |
1122 | ||
1123 | -site | --site | --sit) | |
1124 | ac_prev=site ;; | |
1125 | -site=* | --site=* | --sit=*) | |
1126 | site=$ac_optarg ;; | |
1127 | ||
1128 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1129 | ac_prev=srcdir ;; | |
1130 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1131 | srcdir=$ac_optarg ;; | |
1132 | ||
1133 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1134 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1135 | ac_prev=sysconfdir ;; | |
1136 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1137 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1138 | sysconfdir=$ac_optarg ;; | |
1139 | ||
1140 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1141 | ac_prev=target_alias ;; | |
1142 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1143 | target_alias=$ac_optarg ;; | |
1144 | ||
1145 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1146 | verbose=yes ;; | |
1147 | ||
1148 | -version | --version | --versio | --versi | --vers | -V) | |
1149 | ac_init_version=: ;; | |
1150 | ||
1151 | -with-* | --with-*) | |
1152 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1153 | # Reject names that are not valid shell variable names. | |
1154 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
22e05272 | 1155 | as_fn_error $? "invalid package name: $ac_useropt" |
48310492 RH |
1156 | ac_useropt_orig=$ac_useropt |
1157 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1158 | case $ac_user_opts in | |
1159 | *" | |
1160 | "with_$ac_useropt" | |
1161 | "*) ;; | |
1162 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1163 | ac_unrecognized_sep=', ';; | |
1164 | esac | |
1165 | eval with_$ac_useropt=\$ac_optarg ;; | |
1166 | ||
1167 | -without-* | --without-*) | |
1168 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1169 | # Reject names that are not valid shell variable names. | |
1170 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
22e05272 | 1171 | as_fn_error $? "invalid package name: $ac_useropt" |
48310492 RH |
1172 | ac_useropt_orig=$ac_useropt |
1173 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1174 | case $ac_user_opts in | |
1175 | *" | |
1176 | "with_$ac_useropt" | |
1177 | "*) ;; | |
1178 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1179 | ac_unrecognized_sep=', ';; | |
1180 | esac | |
1181 | eval with_$ac_useropt=no ;; | |
1182 | ||
1183 | --x) | |
1184 | # Obsolete; use --with-x. | |
1185 | with_x=yes ;; | |
1186 | ||
1187 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1188 | | --x-incl | --x-inc | --x-in | --x-i) | |
1189 | ac_prev=x_includes ;; | |
1190 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1191 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1192 | x_includes=$ac_optarg ;; | |
1193 | ||
1194 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1195 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1196 | ac_prev=x_libraries ;; | |
1197 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1198 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1199 | x_libraries=$ac_optarg ;; | |
1200 | ||
22e05272 JM |
1201 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1202 | Try \`$0 --help' for more information" | |
48310492 RH |
1203 | ;; |
1204 | ||
1205 | *=*) | |
1206 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1207 | # Reject names that are not valid shell variable names. | |
1208 | case $ac_envvar in #( | |
1209 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
22e05272 | 1210 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
48310492 RH |
1211 | esac |
1212 | eval $ac_envvar=\$ac_optarg | |
1213 | export $ac_envvar ;; | |
1214 | ||
1215 | *) | |
1216 | # FIXME: should be removed in autoconf 3.0. | |
1217 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1218 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1219 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
22e05272 | 1220 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
48310492 RH |
1221 | ;; |
1222 | ||
1223 | esac | |
1224 | done | |
1225 | ||
1226 | if test -n "$ac_prev"; then | |
1227 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
22e05272 | 1228 | as_fn_error $? "missing argument to $ac_option" |
48310492 RH |
1229 | fi |
1230 | ||
1231 | if test -n "$ac_unrecognized_opts"; then | |
1232 | case $enable_option_checking in | |
1233 | no) ;; | |
22e05272 | 1234 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
48310492 RH |
1235 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1236 | esac | |
1237 | fi | |
1238 | ||
1239 | # Check all directory arguments for consistency. | |
1240 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1241 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1242 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1243 | libdir localedir mandir | |
1244 | do | |
1245 | eval ac_val=\$$ac_var | |
1246 | # Remove trailing slashes. | |
1247 | case $ac_val in | |
1248 | */ ) | |
1249 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1250 | eval $ac_var=\$ac_val;; | |
1251 | esac | |
1252 | # Be sure to have absolute directory names. | |
1253 | case $ac_val in | |
1254 | [\\/$]* | ?:[\\/]* ) continue;; | |
1255 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1256 | esac | |
22e05272 | 1257 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
48310492 RH |
1258 | done |
1259 | ||
1260 | # There might be people who depend on the old broken behavior: `$host' | |
1261 | # used to hold the argument of --host etc. | |
1262 | # FIXME: To remove some day. | |
1263 | build=$build_alias | |
1264 | host=$host_alias | |
1265 | target=$target_alias | |
1266 | ||
1267 | # FIXME: To remove some day. | |
1268 | if test "x$host_alias" != x; then | |
1269 | if test "x$build_alias" = x; then | |
1270 | cross_compiling=maybe | |
48310492 RH |
1271 | elif test "x$build_alias" != "x$host_alias"; then |
1272 | cross_compiling=yes | |
1273 | fi | |
1274 | fi | |
1275 | ||
1276 | ac_tool_prefix= | |
1277 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1278 | ||
1279 | test "$silent" = yes && exec 6>/dev/null | |
1280 | ||
1281 | ||
1282 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1283 | ac_ls_di=`ls -di .` && | |
1284 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
22e05272 | 1285 | as_fn_error $? "working directory cannot be determined" |
48310492 | 1286 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
22e05272 | 1287 | as_fn_error $? "pwd does not report name of working directory" |
48310492 RH |
1288 | |
1289 | ||
1290 | # Find the source files, if location was not specified. | |
1291 | if test -z "$srcdir"; then | |
1292 | ac_srcdir_defaulted=yes | |
1293 | # Try the directory containing this script, then the parent directory. | |
1294 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1295 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1296 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1297 | X"$as_myself" : 'X\(//\)$' \| \ | |
1298 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1299 | $as_echo X"$as_myself" | | |
1300 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1301 | s//\1/ | |
1302 | q | |
1303 | } | |
1304 | /^X\(\/\/\)[^/].*/{ | |
1305 | s//\1/ | |
1306 | q | |
1307 | } | |
1308 | /^X\(\/\/\)$/{ | |
1309 | s//\1/ | |
1310 | q | |
1311 | } | |
1312 | /^X\(\/\).*/{ | |
1313 | s//\1/ | |
1314 | q | |
1315 | } | |
1316 | s/.*/./; q'` | |
1317 | srcdir=$ac_confdir | |
1318 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1319 | srcdir=.. | |
1320 | fi | |
1321 | else | |
1322 | ac_srcdir_defaulted=no | |
1323 | fi | |
1324 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1325 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
22e05272 | 1326 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
48310492 RH |
1327 | fi |
1328 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1329 | ac_abs_confdir=`( | |
22e05272 | 1330 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
48310492 RH |
1331 | pwd)` |
1332 | # When building in place, set srcdir=. | |
1333 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1334 | srcdir=. | |
1335 | fi | |
1336 | # Remove unnecessary trailing slashes from srcdir. | |
1337 | # Double slashes in file names in object file debugging info | |
1338 | # mess up M-x gdb in Emacs. | |
1339 | case $srcdir in | |
1340 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1341 | esac | |
1342 | for ac_var in $ac_precious_vars; do | |
1343 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1344 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1345 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1346 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1347 | done | |
1348 | ||
1349 | # | |
1350 | # Report the --help message. | |
1351 | # | |
1352 | if test "$ac_init_help" = "long"; then | |
1353 | # Omit some internal or obsolete options to make the list less imposing. | |
1354 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1355 | cat <<_ACEOF | |
1356 | \`configure' configures GNU Atomic Library 1.0 to adapt to many kinds of systems. | |
1357 | ||
1358 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1359 | ||
1360 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1361 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1362 | ||
1363 | Defaults for the options are specified in brackets. | |
1364 | ||
1365 | Configuration: | |
1366 | -h, --help display this help and exit | |
1367 | --help=short display options specific to this package | |
1368 | --help=recursive display the short help of all the included packages | |
1369 | -V, --version display version information and exit | |
22e05272 | 1370 | -q, --quiet, --silent do not print \`checking ...' messages |
48310492 RH |
1371 | --cache-file=FILE cache test results in FILE [disabled] |
1372 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1373 | -n, --no-create do not create output files | |
1374 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1375 | ||
1376 | Installation directories: | |
1377 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1378 | [$ac_default_prefix] | |
1379 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1380 | [PREFIX] | |
1381 | ||
1382 | By default, \`make install' will install all the files in | |
1383 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1384 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1385 | for instance \`--prefix=\$HOME'. | |
1386 | ||
1387 | For better control, use the options below. | |
1388 | ||
1389 | Fine tuning of the installation directories: | |
1390 | --bindir=DIR user executables [EPREFIX/bin] | |
1391 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1392 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1393 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1394 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1395 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1396 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1397 | --includedir=DIR C header files [PREFIX/include] | |
1398 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1399 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1400 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1401 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1402 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1403 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1404 | --docdir=DIR documentation root [DATAROOTDIR/doc/libatomic] | |
1405 | --htmldir=DIR html documentation [DOCDIR] | |
1406 | --dvidir=DIR dvi documentation [DOCDIR] | |
1407 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1408 | --psdir=DIR ps documentation [DOCDIR] | |
1409 | _ACEOF | |
1410 | ||
1411 | cat <<\_ACEOF | |
1412 | ||
1413 | Program names: | |
1414 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1415 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1416 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1417 | ||
1418 | System types: | |
1419 | --build=BUILD configure for building on BUILD [guessed] | |
1420 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1421 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1422 | _ACEOF | |
1423 | fi | |
1424 | ||
1425 | if test -n "$ac_init_help"; then | |
1426 | case $ac_init_help in | |
1427 | short | recursive ) echo "Configuration of GNU Atomic Library 1.0:";; | |
1428 | esac | |
1429 | cat <<\_ACEOF | |
1430 | ||
1431 | Optional Features: | |
1432 | --disable-option-checking ignore unrecognized --enable/--with options | |
1433 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1434 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1435 | --enable-version-specific-runtime-libs | |
1436 | Specify that runtime libraries should be installed | |
1437 | in a compiler-specific directory [default=no] | |
1438 | --enable-generated-files-in-srcdir | |
1439 | put copies of generated files in source dir intended | |
1440 | for creating source tarballs for users without | |
1441 | texinfo bison or flex. [default=no] | |
22e05272 JM |
1442 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1443 | --disable-silent-rules verbose build output (undo: "make V=0") | |
48310492 | 1444 | --enable-multilib build many library versions (default) |
22e05272 JM |
1445 | --enable-dependency-tracking |
1446 | do not reject slow dependency extractors | |
1447 | --disable-dependency-tracking | |
1448 | speeds up one-time build | |
48310492 RH |
1449 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1450 | --enable-static[=PKGS] build static libraries [default=yes] | |
1451 | --enable-fast-install[=PKGS] | |
1452 | optimize for fast installation [default=yes] | |
1453 | --disable-libtool-lock avoid locking (might break parallel builds) | |
22e05272 JM |
1454 | --enable-maintainer-mode |
1455 | enable make rules and dependencies not useful (and | |
1456 | sometimes confusing) to the casual installer | |
48310492 RH |
1457 | --enable-symvers=STYLE enables symbol versioning of the shared library |
1458 | [default=yes] | |
45ba6bf2 | 1459 | --disable-werror disable building with -Werror |
8d286dd1 | 1460 | --enable-cet enable Intel CET in target libraries [default=auto] |
48310492 RH |
1461 | |
1462 | Optional Packages: | |
1463 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1464 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
e8e66971 MR |
1465 | --with-toolexeclibdir=DIR |
1466 | install libraries built with a cross compiler within | |
1467 | DIR | |
48310492 RH |
1468 | --with-pic try to use only PIC/non-PIC objects [default=use |
1469 | both] | |
1470 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
3c36aa6b JJ |
1471 | --with-gcc-major-version-only |
1472 | use only GCC major number in filesystem paths | |
48310492 RH |
1473 | |
1474 | Some influential environment variables: | |
1475 | CC C compiler command | |
1476 | CFLAGS C compiler flags | |
1477 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1478 | nonstandard directory <lib dir> | |
1479 | LIBS libraries to pass to the linker, e.g. -l<library> | |
22e05272 | 1480 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
48310492 RH |
1481 | you have headers in a nonstandard directory <include dir> |
1482 | CCAS assembler compiler command (defaults to CC) | |
1483 | CCASFLAGS assembler compiler flags (defaults to CFLAGS) | |
1484 | CPP C preprocessor | |
1485 | ||
1486 | Use these variables to override the choices made by `configure' or to help | |
1487 | it to find libraries and programs with nonstandard names/locations. | |
1488 | ||
1489 | Report bugs to the package provider. | |
1490 | GNU Atomic Library home page: <http://www.gnu.org/software/libatomic/>. | |
1491 | General help using GNU software: <http://www.gnu.org/gethelp/>. | |
1492 | _ACEOF | |
1493 | ac_status=$? | |
1494 | fi | |
1495 | ||
1496 | if test "$ac_init_help" = "recursive"; then | |
1497 | # If there are subdirs, report their specific --help. | |
1498 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1499 | test -d "$ac_dir" || | |
1500 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1501 | continue | |
1502 | ac_builddir=. | |
1503 | ||
1504 | case "$ac_dir" in | |
1505 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1506 | *) | |
1507 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1508 | # A ".." for each directory in $ac_dir_suffix. | |
1509 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1510 | case $ac_top_builddir_sub in | |
1511 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1512 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1513 | esac ;; | |
1514 | esac | |
1515 | ac_abs_top_builddir=$ac_pwd | |
1516 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1517 | # for backward compatibility: | |
1518 | ac_top_builddir=$ac_top_build_prefix | |
1519 | ||
1520 | case $srcdir in | |
1521 | .) # We are building in place. | |
1522 | ac_srcdir=. | |
1523 | ac_top_srcdir=$ac_top_builddir_sub | |
1524 | ac_abs_top_srcdir=$ac_pwd ;; | |
1525 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1526 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1527 | ac_top_srcdir=$srcdir | |
1528 | ac_abs_top_srcdir=$srcdir ;; | |
1529 | *) # Relative name. | |
1530 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1531 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1532 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1533 | esac | |
1534 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1535 | ||
1536 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1537 | # Check for guested configure. | |
1538 | if test -f "$ac_srcdir/configure.gnu"; then | |
1539 | echo && | |
1540 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1541 | elif test -f "$ac_srcdir/configure"; then | |
1542 | echo && | |
1543 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1544 | else | |
1545 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1546 | fi || ac_status=$? | |
1547 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1548 | done | |
1549 | fi | |
1550 | ||
1551 | test -n "$ac_init_help" && exit $ac_status | |
1552 | if $ac_init_version; then | |
1553 | cat <<\_ACEOF | |
1554 | GNU Atomic Library configure 1.0 | |
22e05272 | 1555 | generated by GNU Autoconf 2.69 |
48310492 | 1556 | |
22e05272 | 1557 | Copyright (C) 2012 Free Software Foundation, Inc. |
48310492 RH |
1558 | This configure script is free software; the Free Software Foundation |
1559 | gives unlimited permission to copy, distribute and modify it. | |
1560 | _ACEOF | |
1561 | exit | |
1562 | fi | |
1563 | ||
1564 | ## ------------------------ ## | |
1565 | ## Autoconf initialization. ## | |
1566 | ## ------------------------ ## | |
1567 | ||
1568 | # ac_fn_c_try_compile LINENO | |
1569 | # -------------------------- | |
1570 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1571 | ac_fn_c_try_compile () | |
1572 | { | |
1573 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1574 | rm -f conftest.$ac_objext | |
1575 | if { { ac_try="$ac_compile" | |
1576 | case "(($ac_try" in | |
1577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1578 | *) ac_try_echo=$ac_try;; | |
1579 | esac | |
1580 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1581 | $as_echo "$ac_try_echo"; } >&5 | |
1582 | (eval "$ac_compile") 2>conftest.err | |
1583 | ac_status=$? | |
1584 | if test -s conftest.err; then | |
1585 | grep -v '^ *+' conftest.err >conftest.er1 | |
1586 | cat conftest.er1 >&5 | |
1587 | mv -f conftest.er1 conftest.err | |
1588 | fi | |
1589 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1590 | test $ac_status = 0; } && { | |
1591 | test -z "$ac_c_werror_flag" || | |
1592 | test ! -s conftest.err | |
1593 | } && test -s conftest.$ac_objext; then : | |
1594 | ac_retval=0 | |
1595 | else | |
1596 | $as_echo "$as_me: failed program was:" >&5 | |
1597 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1598 | ||
1599 | ac_retval=1 | |
1600 | fi | |
22e05272 JM |
1601 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1602 | as_fn_set_status $ac_retval | |
48310492 RH |
1603 | |
1604 | } # ac_fn_c_try_compile | |
1605 | ||
1606 | # ac_fn_c_try_link LINENO | |
1607 | # ----------------------- | |
1608 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1609 | ac_fn_c_try_link () | |
1610 | { | |
1611 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1612 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1613 | if { { ac_try="$ac_link" | |
1614 | case "(($ac_try" in | |
1615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1616 | *) ac_try_echo=$ac_try;; | |
1617 | esac | |
1618 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1619 | $as_echo "$ac_try_echo"; } >&5 | |
1620 | (eval "$ac_link") 2>conftest.err | |
1621 | ac_status=$? | |
1622 | if test -s conftest.err; then | |
1623 | grep -v '^ *+' conftest.err >conftest.er1 | |
1624 | cat conftest.er1 >&5 | |
1625 | mv -f conftest.er1 conftest.err | |
1626 | fi | |
1627 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1628 | test $ac_status = 0; } && { | |
1629 | test -z "$ac_c_werror_flag" || | |
1630 | test ! -s conftest.err | |
1631 | } && test -s conftest$ac_exeext && { | |
1632 | test "$cross_compiling" = yes || | |
22e05272 | 1633 | test -x conftest$ac_exeext |
48310492 RH |
1634 | }; then : |
1635 | ac_retval=0 | |
1636 | else | |
1637 | $as_echo "$as_me: failed program was:" >&5 | |
1638 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1639 | ||
1640 | ac_retval=1 | |
1641 | fi | |
1642 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1643 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1644 | # interfere with the next link command; also delete a directory that is | |
1645 | # left behind by Apple's compiler. We do this before executing the actions. | |
1646 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1647 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1648 | as_fn_set_status $ac_retval | |
48310492 RH |
1649 | |
1650 | } # ac_fn_c_try_link | |
1651 | ||
1652 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1653 | # ------------------------------------------------------- | |
1654 | # Tests whether HEADER exists and can be compiled using the include files in | |
1655 | # INCLUDES, setting the cache variable VAR accordingly. | |
1656 | ac_fn_c_check_header_compile () | |
1657 | { | |
1658 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1660 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1661 | if eval \${$3+:} false; then : |
48310492 RH |
1662 | $as_echo_n "(cached) " >&6 |
1663 | else | |
1664 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1665 | /* end confdefs.h. */ | |
1666 | $4 | |
1667 | #include <$2> | |
1668 | _ACEOF | |
1669 | if ac_fn_c_try_compile "$LINENO"; then : | |
1670 | eval "$3=yes" | |
1671 | else | |
1672 | eval "$3=no" | |
1673 | fi | |
1674 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1675 | fi | |
1676 | eval ac_res=\$$3 | |
1677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1678 | $as_echo "$ac_res" >&6; } | |
22e05272 | 1679 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
48310492 RH |
1680 | |
1681 | } # ac_fn_c_check_header_compile | |
1682 | ||
1683 | # ac_fn_c_try_cpp LINENO | |
1684 | # ---------------------- | |
1685 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1686 | ac_fn_c_try_cpp () | |
1687 | { | |
1688 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1689 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1690 | case "(($ac_try" in | |
1691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1692 | *) ac_try_echo=$ac_try;; | |
1693 | esac | |
1694 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1695 | $as_echo "$ac_try_echo"; } >&5 | |
1696 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1697 | ac_status=$? | |
1698 | if test -s conftest.err; then | |
1699 | grep -v '^ *+' conftest.err >conftest.er1 | |
1700 | cat conftest.er1 >&5 | |
1701 | mv -f conftest.er1 conftest.err | |
1702 | fi | |
1703 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22e05272 | 1704 | test $ac_status = 0; } > conftest.i && { |
48310492 RH |
1705 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1706 | test ! -s conftest.err | |
1707 | }; then : | |
1708 | ac_retval=0 | |
1709 | else | |
1710 | $as_echo "$as_me: failed program was:" >&5 | |
1711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1712 | ||
1713 | ac_retval=1 | |
1714 | fi | |
22e05272 JM |
1715 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1716 | as_fn_set_status $ac_retval | |
48310492 RH |
1717 | |
1718 | } # ac_fn_c_try_cpp | |
1719 | ||
1720 | # ac_fn_c_try_run LINENO | |
1721 | # ---------------------- | |
1722 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1723 | # that executables *can* be run. | |
1724 | ac_fn_c_try_run () | |
1725 | { | |
1726 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1727 | if { { ac_try="$ac_link" | |
1728 | case "(($ac_try" in | |
1729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1730 | *) ac_try_echo=$ac_try;; | |
1731 | esac | |
1732 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1733 | $as_echo "$ac_try_echo"; } >&5 | |
1734 | (eval "$ac_link") 2>&5 | |
1735 | ac_status=$? | |
1736 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1737 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1738 | { { case "(($ac_try" in | |
1739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1740 | *) ac_try_echo=$ac_try;; | |
1741 | esac | |
1742 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1743 | $as_echo "$ac_try_echo"; } >&5 | |
1744 | (eval "$ac_try") 2>&5 | |
1745 | ac_status=$? | |
1746 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1747 | test $ac_status = 0; }; }; then : | |
1748 | ac_retval=0 | |
1749 | else | |
1750 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1751 | $as_echo "$as_me: failed program was:" >&5 | |
1752 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1753 | ||
1754 | ac_retval=$ac_status | |
1755 | fi | |
1756 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1757 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1758 | as_fn_set_status $ac_retval | |
48310492 RH |
1759 | |
1760 | } # ac_fn_c_try_run | |
1761 | ||
1762 | # ac_fn_c_check_func LINENO FUNC VAR | |
1763 | # ---------------------------------- | |
1764 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1765 | ac_fn_c_check_func () | |
1766 | { | |
1767 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1769 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1770 | if eval \${$3+:} false; then : |
48310492 RH |
1771 | $as_echo_n "(cached) " >&6 |
1772 | else | |
1773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1774 | /* end confdefs.h. */ | |
1775 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1776 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1777 | #define $2 innocuous_$2 | |
1778 | ||
1779 | /* System header to define __stub macros and hopefully few prototypes, | |
1780 | which can conflict with char $2 (); below. | |
1781 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1782 | <limits.h> exists even on freestanding compilers. */ | |
1783 | ||
1784 | #ifdef __STDC__ | |
1785 | # include <limits.h> | |
1786 | #else | |
1787 | # include <assert.h> | |
1788 | #endif | |
1789 | ||
1790 | #undef $2 | |
1791 | ||
1792 | /* Override any GCC internal prototype to avoid an error. | |
1793 | Use char because int might match the return type of a GCC | |
1794 | builtin and then its argument prototype would still apply. */ | |
1795 | #ifdef __cplusplus | |
1796 | extern "C" | |
1797 | #endif | |
1798 | char $2 (); | |
1799 | /* The GNU C library defines this for functions which it implements | |
1800 | to always fail with ENOSYS. Some functions are actually named | |
1801 | something starting with __ and the normal name is an alias. */ | |
1802 | #if defined __stub_$2 || defined __stub___$2 | |
1803 | choke me | |
1804 | #endif | |
1805 | ||
1806 | int | |
1807 | main () | |
1808 | { | |
1809 | return $2 (); | |
1810 | ; | |
1811 | return 0; | |
1812 | } | |
1813 | _ACEOF | |
1814 | if ac_fn_c_try_link "$LINENO"; then : | |
1815 | eval "$3=yes" | |
1816 | else | |
1817 | eval "$3=no" | |
1818 | fi | |
1819 | rm -f core conftest.err conftest.$ac_objext \ | |
1820 | conftest$ac_exeext conftest.$ac_ext | |
1821 | fi | |
1822 | eval ac_res=\$$3 | |
1823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1824 | $as_echo "$ac_res" >&6; } | |
22e05272 | 1825 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
48310492 RH |
1826 | |
1827 | } # ac_fn_c_check_func | |
1828 | ||
1829 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
1830 | # ------------------------------------------- | |
1831 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1832 | # variable VAR accordingly. | |
1833 | ac_fn_c_check_type () | |
1834 | { | |
1835 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1837 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1838 | if eval \${$3+:} false; then : |
48310492 RH |
1839 | $as_echo_n "(cached) " >&6 |
1840 | else | |
1841 | eval "$3=no" | |
1842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1843 | /* end confdefs.h. */ | |
1844 | $4 | |
1845 | int | |
1846 | main () | |
1847 | { | |
1848 | if (sizeof ($2)) | |
1849 | return 0; | |
1850 | ; | |
1851 | return 0; | |
1852 | } | |
1853 | _ACEOF | |
1854 | if ac_fn_c_try_compile "$LINENO"; then : | |
1855 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1856 | /* end confdefs.h. */ | |
1857 | $4 | |
1858 | int | |
1859 | main () | |
1860 | { | |
1861 | if (sizeof (($2))) | |
1862 | return 0; | |
1863 | ; | |
1864 | return 0; | |
1865 | } | |
1866 | _ACEOF | |
1867 | if ac_fn_c_try_compile "$LINENO"; then : | |
1868 | ||
1869 | else | |
1870 | eval "$3=yes" | |
1871 | fi | |
1872 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1873 | fi | |
1874 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1875 | fi | |
1876 | eval ac_res=\$$3 | |
1877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1878 | $as_echo "$ac_res" >&6; } | |
22e05272 | 1879 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
48310492 RH |
1880 | |
1881 | } # ac_fn_c_check_type | |
1882 | ||
1883 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
1884 | # -------------------------------------------- | |
1885 | # Tries to find the compile-time value of EXPR in a program that includes | |
1886 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
1887 | # computed | |
1888 | ac_fn_c_compute_int () | |
1889 | { | |
1890 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1891 | if test "$cross_compiling" = yes; then | |
1892 | # Depending upon the size, compute the lo and hi bounds. | |
1893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1894 | /* end confdefs.h. */ | |
1895 | $4 | |
1896 | int | |
1897 | main () | |
1898 | { | |
1899 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
22e05272 JM |
1900 | test_array [0] = 0; |
1901 | return test_array [0]; | |
48310492 RH |
1902 | |
1903 | ; | |
1904 | return 0; | |
1905 | } | |
1906 | _ACEOF | |
1907 | if ac_fn_c_try_compile "$LINENO"; then : | |
1908 | ac_lo=0 ac_mid=0 | |
1909 | while :; do | |
1910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1911 | /* end confdefs.h. */ | |
1912 | $4 | |
1913 | int | |
1914 | main () | |
1915 | { | |
1916 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
22e05272 JM |
1917 | test_array [0] = 0; |
1918 | return test_array [0]; | |
48310492 RH |
1919 | |
1920 | ; | |
1921 | return 0; | |
1922 | } | |
1923 | _ACEOF | |
1924 | if ac_fn_c_try_compile "$LINENO"; then : | |
1925 | ac_hi=$ac_mid; break | |
1926 | else | |
1927 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
1928 | if test $ac_lo -le $ac_mid; then | |
1929 | ac_lo= ac_hi= | |
1930 | break | |
1931 | fi | |
1932 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
1933 | fi | |
1934 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1935 | done | |
1936 | else | |
1937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1938 | /* end confdefs.h. */ | |
1939 | $4 | |
1940 | int | |
1941 | main () | |
1942 | { | |
1943 | static int test_array [1 - 2 * !(($2) < 0)]; | |
22e05272 JM |
1944 | test_array [0] = 0; |
1945 | return test_array [0]; | |
48310492 RH |
1946 | |
1947 | ; | |
1948 | return 0; | |
1949 | } | |
1950 | _ACEOF | |
1951 | if ac_fn_c_try_compile "$LINENO"; then : | |
1952 | ac_hi=-1 ac_mid=-1 | |
1953 | while :; do | |
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) >= $ac_mid)]; | |
22e05272 JM |
1961 | test_array [0] = 0; |
1962 | return test_array [0]; | |
48310492 RH |
1963 | |
1964 | ; | |
1965 | return 0; | |
1966 | } | |
1967 | _ACEOF | |
1968 | if ac_fn_c_try_compile "$LINENO"; then : | |
1969 | ac_lo=$ac_mid; break | |
1970 | else | |
1971 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
1972 | if test $ac_mid -le $ac_hi; then | |
1973 | ac_lo= ac_hi= | |
1974 | break | |
1975 | fi | |
1976 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
1977 | fi | |
1978 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1979 | done | |
1980 | else | |
1981 | ac_lo= ac_hi= | |
1982 | fi | |
1983 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1984 | fi | |
1985 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1986 | # Binary search between lo and hi bounds. | |
1987 | while test "x$ac_lo" != "x$ac_hi"; do | |
1988 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
1989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1990 | /* end confdefs.h. */ | |
1991 | $4 | |
1992 | int | |
1993 | main () | |
1994 | { | |
1995 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
22e05272 JM |
1996 | test_array [0] = 0; |
1997 | return test_array [0]; | |
48310492 RH |
1998 | |
1999 | ; | |
2000 | return 0; | |
2001 | } | |
2002 | _ACEOF | |
2003 | if ac_fn_c_try_compile "$LINENO"; then : | |
2004 | ac_hi=$ac_mid | |
2005 | else | |
2006 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2007 | fi | |
2008 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2009 | done | |
2010 | case $ac_lo in #(( | |
2011 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2012 | '') ac_retval=1 ;; | |
2013 | esac | |
2014 | else | |
2015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2016 | /* end confdefs.h. */ | |
2017 | $4 | |
2018 | static long int longval () { return $2; } | |
2019 | static unsigned long int ulongval () { return $2; } | |
2020 | #include <stdio.h> | |
2021 | #include <stdlib.h> | |
2022 | int | |
2023 | main () | |
2024 | { | |
2025 | ||
2026 | FILE *f = fopen ("conftest.val", "w"); | |
2027 | if (! f) | |
2028 | return 1; | |
2029 | if (($2) < 0) | |
2030 | { | |
2031 | long int i = longval (); | |
2032 | if (i != ($2)) | |
2033 | return 1; | |
2034 | fprintf (f, "%ld", i); | |
2035 | } | |
2036 | else | |
2037 | { | |
2038 | unsigned long int i = ulongval (); | |
2039 | if (i != ($2)) | |
2040 | return 1; | |
2041 | fprintf (f, "%lu", i); | |
2042 | } | |
2043 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2044 | on some platforms. */ | |
2045 | return ferror (f) || fclose (f) != 0; | |
2046 | ||
2047 | ; | |
2048 | return 0; | |
2049 | } | |
2050 | _ACEOF | |
2051 | if ac_fn_c_try_run "$LINENO"; then : | |
2052 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2053 | else | |
2054 | ac_retval=1 | |
2055 | fi | |
2056 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2057 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2058 | rm -f conftest.val | |
2059 | ||
2060 | fi | |
22e05272 JM |
2061 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2062 | as_fn_set_status $ac_retval | |
48310492 RH |
2063 | |
2064 | } # ac_fn_c_compute_int | |
267bac10 JM |
2065 | |
2066 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
2067 | # ------------------------------------------------------- | |
2068 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2069 | # the include files in INCLUDES and setting the cache variable VAR | |
2070 | # accordingly. | |
2071 | ac_fn_c_check_header_mongrel () | |
2072 | { | |
2073 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
22e05272 | 2074 | if eval \${$3+:} false; then : |
267bac10 JM |
2075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2076 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 2077 | if eval \${$3+:} false; then : |
267bac10 JM |
2078 | $as_echo_n "(cached) " >&6 |
2079 | fi | |
2080 | eval ac_res=\$$3 | |
2081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2082 | $as_echo "$ac_res" >&6; } | |
2083 | else | |
2084 | # Is the header compilable? | |
2085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2086 | $as_echo_n "checking $2 usability... " >&6; } | |
2087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2088 | /* end confdefs.h. */ | |
2089 | $4 | |
2090 | #include <$2> | |
2091 | _ACEOF | |
2092 | if ac_fn_c_try_compile "$LINENO"; then : | |
2093 | ac_header_compiler=yes | |
2094 | else | |
2095 | ac_header_compiler=no | |
2096 | fi | |
2097 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2099 | $as_echo "$ac_header_compiler" >&6; } | |
2100 | ||
2101 | # Is the header present? | |
2102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2103 | $as_echo_n "checking $2 presence... " >&6; } | |
2104 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2105 | /* end confdefs.h. */ | |
2106 | #include <$2> | |
2107 | _ACEOF | |
2108 | if ac_fn_c_try_cpp "$LINENO"; then : | |
2109 | ac_header_preproc=yes | |
2110 | else | |
2111 | ac_header_preproc=no | |
2112 | fi | |
22e05272 | 2113 | rm -f conftest.err conftest.i conftest.$ac_ext |
267bac10 JM |
2114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
2115 | $as_echo "$ac_header_preproc" >&6; } | |
2116 | ||
2117 | # So? What about this header? | |
2118 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
2119 | yes:no: ) | |
2120 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2121 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2122 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2123 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2124 | ;; | |
2125 | no:yes:* ) | |
2126 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2127 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2128 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2129 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2130 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2131 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2132 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2133 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2134 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2135 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2136 | ;; | |
2137 | esac | |
2138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2139 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 2140 | if eval \${$3+:} false; then : |
267bac10 JM |
2141 | $as_echo_n "(cached) " >&6 |
2142 | else | |
2143 | eval "$3=\$ac_header_compiler" | |
2144 | fi | |
2145 | eval ac_res=\$$3 | |
2146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2147 | $as_echo "$ac_res" >&6; } | |
2148 | fi | |
22e05272 | 2149 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
267bac10 JM |
2150 | |
2151 | } # ac_fn_c_check_header_mongrel | |
48310492 RH |
2152 | cat >config.log <<_ACEOF |
2153 | This file contains any messages produced by compilers while | |
2154 | running configure, to aid debugging if configure makes a mistake. | |
2155 | ||
2156 | It was created by GNU Atomic Library $as_me 1.0, which was | |
22e05272 | 2157 | generated by GNU Autoconf 2.69. Invocation command line was |
48310492 RH |
2158 | |
2159 | $ $0 $@ | |
2160 | ||
2161 | _ACEOF | |
2162 | exec 5>>config.log | |
2163 | { | |
2164 | cat <<_ASUNAME | |
2165 | ## --------- ## | |
2166 | ## Platform. ## | |
2167 | ## --------- ## | |
2168 | ||
2169 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2170 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2171 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2172 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2173 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2174 | ||
2175 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2176 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2177 | ||
2178 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2179 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2180 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2181 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2182 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2183 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2184 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2185 | ||
2186 | _ASUNAME | |
2187 | ||
2188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2189 | for as_dir in $PATH | |
2190 | do | |
2191 | IFS=$as_save_IFS | |
2192 | test -z "$as_dir" && as_dir=. | |
2193 | $as_echo "PATH: $as_dir" | |
2194 | done | |
2195 | IFS=$as_save_IFS | |
2196 | ||
2197 | } >&5 | |
2198 | ||
2199 | cat >&5 <<_ACEOF | |
2200 | ||
2201 | ||
2202 | ## ----------- ## | |
2203 | ## Core tests. ## | |
2204 | ## ----------- ## | |
2205 | ||
2206 | _ACEOF | |
2207 | ||
2208 | ||
2209 | # Keep a trace of the command line. | |
2210 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2211 | # Strip out --silent because we don't want to record it for future runs. | |
2212 | # Also quote any args containing shell meta-characters. | |
2213 | # Make two passes to allow for proper duplicate-argument suppression. | |
2214 | ac_configure_args= | |
2215 | ac_configure_args0= | |
2216 | ac_configure_args1= | |
2217 | ac_must_keep_next=false | |
2218 | for ac_pass in 1 2 | |
2219 | do | |
2220 | for ac_arg | |
2221 | do | |
2222 | case $ac_arg in | |
2223 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2224 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2225 | | -silent | --silent | --silen | --sile | --sil) | |
2226 | continue ;; | |
2227 | *\'*) | |
2228 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2229 | esac | |
2230 | case $ac_pass in | |
2231 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2232 | 2) | |
2233 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2234 | if test $ac_must_keep_next = true; then | |
2235 | ac_must_keep_next=false # Got value, back to normal. | |
2236 | else | |
2237 | case $ac_arg in | |
2238 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2239 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2240 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2241 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2242 | case "$ac_configure_args0 " in | |
2243 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2244 | esac | |
2245 | ;; | |
2246 | -* ) ac_must_keep_next=true ;; | |
2247 | esac | |
2248 | fi | |
2249 | as_fn_append ac_configure_args " '$ac_arg'" | |
2250 | ;; | |
2251 | esac | |
2252 | done | |
2253 | done | |
2254 | { ac_configure_args0=; unset ac_configure_args0;} | |
2255 | { ac_configure_args1=; unset ac_configure_args1;} | |
2256 | ||
2257 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2258 | # config.log. We remove comments because anyway the quotes in there | |
2259 | # would cause problems or look ugly. | |
2260 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2261 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2262 | trap 'exit_status=$? | |
2263 | # Save into config.log some information that might help in debugging. | |
2264 | { | |
2265 | echo | |
2266 | ||
22e05272 | 2267 | $as_echo "## ---------------- ## |
48310492 | 2268 | ## Cache variables. ## |
22e05272 | 2269 | ## ---------------- ##" |
48310492 RH |
2270 | echo |
2271 | # The following way of writing the cache mishandles newlines in values, | |
2272 | ( | |
2273 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2274 | eval ac_val=\$$ac_var | |
2275 | case $ac_val in #( | |
2276 | *${as_nl}*) | |
2277 | case $ac_var in #( | |
2278 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2279 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2280 | esac | |
2281 | case $ac_var in #( | |
2282 | _ | IFS | as_nl) ;; #( | |
2283 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2284 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2285 | esac ;; | |
2286 | esac | |
2287 | done | |
2288 | (set) 2>&1 | | |
2289 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2290 | *${as_nl}ac_space=\ *) | |
2291 | sed -n \ | |
2292 | "s/'\''/'\''\\\\'\'''\''/g; | |
2293 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2294 | ;; #( | |
2295 | *) | |
2296 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2297 | ;; | |
2298 | esac | | |
2299 | sort | |
2300 | ) | |
2301 | echo | |
2302 | ||
22e05272 | 2303 | $as_echo "## ----------------- ## |
48310492 | 2304 | ## Output variables. ## |
22e05272 | 2305 | ## ----------------- ##" |
48310492 RH |
2306 | echo |
2307 | for ac_var in $ac_subst_vars | |
2308 | do | |
2309 | eval ac_val=\$$ac_var | |
2310 | case $ac_val in | |
2311 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2312 | esac | |
2313 | $as_echo "$ac_var='\''$ac_val'\''" | |
2314 | done | sort | |
2315 | echo | |
2316 | ||
2317 | if test -n "$ac_subst_files"; then | |
22e05272 | 2318 | $as_echo "## ------------------- ## |
48310492 | 2319 | ## File substitutions. ## |
22e05272 | 2320 | ## ------------------- ##" |
48310492 RH |
2321 | echo |
2322 | for ac_var in $ac_subst_files | |
2323 | do | |
2324 | eval ac_val=\$$ac_var | |
2325 | case $ac_val in | |
2326 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2327 | esac | |
2328 | $as_echo "$ac_var='\''$ac_val'\''" | |
2329 | done | sort | |
2330 | echo | |
2331 | fi | |
2332 | ||
2333 | if test -s confdefs.h; then | |
22e05272 | 2334 | $as_echo "## ----------- ## |
48310492 | 2335 | ## confdefs.h. ## |
22e05272 | 2336 | ## ----------- ##" |
48310492 RH |
2337 | echo |
2338 | cat confdefs.h | |
2339 | echo | |
2340 | fi | |
2341 | test "$ac_signal" != 0 && | |
2342 | $as_echo "$as_me: caught signal $ac_signal" | |
2343 | $as_echo "$as_me: exit $exit_status" | |
2344 | } >&5 | |
2345 | rm -f core *.core core.conftest.* && | |
2346 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2347 | exit $exit_status | |
2348 | ' 0 | |
2349 | for ac_signal in 1 2 13 15; do | |
2350 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2351 | done | |
2352 | ac_signal=0 | |
2353 | ||
2354 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2355 | rm -f -r conftest* confdefs.h | |
2356 | ||
2357 | $as_echo "/* confdefs.h */" > confdefs.h | |
2358 | ||
2359 | # Predefined preprocessor variables. | |
2360 | ||
2361 | cat >>confdefs.h <<_ACEOF | |
2362 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2363 | _ACEOF | |
2364 | ||
2365 | cat >>confdefs.h <<_ACEOF | |
2366 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2367 | _ACEOF | |
2368 | ||
2369 | cat >>confdefs.h <<_ACEOF | |
2370 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2371 | _ACEOF | |
2372 | ||
2373 | cat >>confdefs.h <<_ACEOF | |
2374 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2375 | _ACEOF | |
2376 | ||
2377 | cat >>confdefs.h <<_ACEOF | |
2378 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2379 | _ACEOF | |
2380 | ||
2381 | cat >>confdefs.h <<_ACEOF | |
2382 | #define PACKAGE_URL "$PACKAGE_URL" | |
2383 | _ACEOF | |
2384 | ||
2385 | ||
2386 | # Let the site file select an alternate cache file if it wants to. | |
2387 | # Prefer an explicitly selected file to automatically selected ones. | |
2388 | ac_site_file1=NONE | |
2389 | ac_site_file2=NONE | |
2390 | if test -n "$CONFIG_SITE"; then | |
22e05272 JM |
2391 | # We do not want a PATH search for config.site. |
2392 | case $CONFIG_SITE in #(( | |
2393 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2394 | */*) ac_site_file1=$CONFIG_SITE;; | |
2395 | *) ac_site_file1=./$CONFIG_SITE;; | |
2396 | esac | |
48310492 RH |
2397 | elif test "x$prefix" != xNONE; then |
2398 | ac_site_file1=$prefix/share/config.site | |
2399 | ac_site_file2=$prefix/etc/config.site | |
2400 | else | |
2401 | ac_site_file1=$ac_default_prefix/share/config.site | |
2402 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2403 | fi | |
2404 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2405 | do | |
2406 | test "x$ac_site_file" = xNONE && continue | |
22e05272 | 2407 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
48310492 RH |
2408 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2409 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2410 | sed 's/^/| /' "$ac_site_file" >&5 | |
22e05272 JM |
2411 | . "$ac_site_file" \ |
2412 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2413 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2414 | as_fn_error $? "failed to load site script $ac_site_file | |
2415 | See \`config.log' for more details" "$LINENO" 5; } | |
48310492 RH |
2416 | fi |
2417 | done | |
2418 | ||
2419 | if test -r "$cache_file"; then | |
22e05272 JM |
2420 | # Some versions of bash will fail to source /dev/null (special files |
2421 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2422 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
48310492 RH |
2423 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2424 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2425 | case $cache_file in | |
2426 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2427 | *) . "./$cache_file";; | |
2428 | esac | |
2429 | fi | |
2430 | else | |
2431 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2432 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2433 | >$cache_file | |
2434 | fi | |
2435 | ||
2436 | # Check that the precious variables saved in the cache have kept the same | |
2437 | # value. | |
2438 | ac_cache_corrupted=false | |
2439 | for ac_var in $ac_precious_vars; do | |
2440 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2441 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2442 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2443 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2444 | case $ac_old_set,$ac_new_set in | |
2445 | set,) | |
2446 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2447 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2448 | ac_cache_corrupted=: ;; | |
2449 | ,set) | |
2450 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2451 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2452 | ac_cache_corrupted=: ;; | |
2453 | ,);; | |
2454 | *) | |
2455 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2456 | # differences in whitespace do not lead to failure. | |
2457 | ac_old_val_w=`echo x $ac_old_val` | |
2458 | ac_new_val_w=`echo x $ac_new_val` | |
2459 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2460 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2461 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2462 | ac_cache_corrupted=: | |
2463 | else | |
2464 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2465 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2466 | eval $ac_var=\$ac_old_val | |
2467 | fi | |
2468 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2469 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2470 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2471 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2472 | fi;; | |
2473 | esac | |
2474 | # Pass precious variables to config.status. | |
2475 | if test "$ac_new_set" = set; then | |
2476 | case $ac_new_val in | |
2477 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2478 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2479 | esac | |
2480 | case " $ac_configure_args " in | |
2481 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2482 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2483 | esac | |
2484 | fi | |
2485 | done | |
2486 | if $ac_cache_corrupted; then | |
2487 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2488 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2489 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2490 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
22e05272 | 2491 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
48310492 RH |
2492 | fi |
2493 | ## -------------------- ## | |
2494 | ## Main body of script. ## | |
2495 | ## -------------------- ## | |
2496 | ||
2497 | ac_ext=c | |
2498 | ac_cpp='$CPP $CPPFLAGS' | |
2499 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2500 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2501 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2502 | ||
2503 | ||
2504 | ||
2505 | ||
2506 | ||
2507 | ac_config_headers="$ac_config_headers auto-config.h" | |
2508 | ||
2509 | ||
2510 | # ------- | |
2511 | # Options | |
2512 | # ------- | |
2513 | ||
2514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 | |
2515 | $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } | |
2516 | # Check whether --enable-version-specific-runtime-libs was given. | |
2517 | if test "${enable_version_specific_runtime_libs+set}" = set; then : | |
2518 | enableval=$enable_version_specific_runtime_libs; | |
2519 | case "$enableval" in | |
2520 | yes|no) ;; | |
22e05272 | 2521 | *) as_fn_error $? "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;; |
48310492 RH |
2522 | esac |
2523 | ||
2524 | else | |
2525 | enable_version_specific_runtime_libs=no | |
2526 | fi | |
2527 | ||
2528 | ||
2529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5 | |
2530 | $as_echo "$enable_version_specific_runtime_libs" >&6; } | |
2531 | ||
2532 | # We would like our source tree to be readonly. However when releases or | |
2533 | # pre-releases are generated, the flex/bison generated files as well as the | |
2534 | # various formats of manuals need to be included along with the rest of the | |
2535 | # sources. Therefore we have --enable-generated-files-in-srcdir to do | |
2536 | # just that. | |
2537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5 | |
2538 | $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; } | |
2539 | # Check whether --enable-generated-files-in-srcdir was given. | |
2540 | if test "${enable_generated_files_in_srcdir+set}" = set; then : | |
2541 | enableval=$enable_generated_files_in_srcdir; | |
2542 | case "$enableval" in | |
2543 | yes|no) ;; | |
22e05272 | 2544 | *) as_fn_error $? "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;; |
48310492 RH |
2545 | esac |
2546 | ||
2547 | else | |
2548 | enable_generated_files_in_srcdir=no | |
2549 | fi | |
2550 | ||
2551 | ||
2552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5 | |
2553 | $as_echo "$enable_generated_files_in_srcdir" >&6; } | |
2554 | if test "$enable_generated_files_in_srcdir" = yes; then | |
2555 | GENINSRC_TRUE= | |
2556 | GENINSRC_FALSE='#' | |
2557 | else | |
2558 | GENINSRC_TRUE='#' | |
2559 | GENINSRC_FALSE= | |
2560 | fi | |
2561 | ||
2562 | ||
2563 | ||
2564 | # ------- | |
2565 | ||
2566 | # Gets build, host, target, *_vendor, *_cpu, *_os, etc. | |
2567 | # | |
2568 | # You will slowly go insane if you do not grok the following fact: when | |
2569 | # building this library, the top-level /target/ becomes the library's /host/. | |
2570 | # | |
2571 | # configure then causes --target to default to --host, exactly like any | |
2572 | # other package using autoconf. Therefore, 'target' and 'host' will | |
2573 | # always be the same. This makes sense both for native and cross compilers | |
2574 | # just think about it for a little while. :-) | |
2575 | # | |
2576 | # Also, if this library is being configured as part of a cross compiler, the | |
2577 | # top-level configure script will pass the "real" host as $with_cross_host. | |
2578 | # | |
2579 | # Do not delete or change the following two lines. For why, see | |
2580 | # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html | |
2581 | ac_aux_dir= | |
2582 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
22e05272 JM |
2583 | if test -f "$ac_dir/install-sh"; then |
2584 | ac_aux_dir=$ac_dir | |
2585 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2586 | break | |
2587 | elif test -f "$ac_dir/install.sh"; then | |
2588 | ac_aux_dir=$ac_dir | |
2589 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2590 | break | |
2591 | elif test -f "$ac_dir/shtool"; then | |
2592 | ac_aux_dir=$ac_dir | |
2593 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2594 | break | |
2595 | fi | |
48310492 RH |
2596 | done |
2597 | if test -z "$ac_aux_dir"; then | |
22e05272 | 2598 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
48310492 RH |
2599 | fi |
2600 | ||
2601 | # These three variables are undocumented and unsupported, | |
2602 | # and are intended to be withdrawn in a future Autoconf release. | |
2603 | # They can cause serious problems if a builder's source tree is in a directory | |
2604 | # whose full name contains unusual characters. | |
2605 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2606 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2607 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2608 | ||
2609 | ||
2610 | # Make sure we can run config.sub. | |
2611 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
22e05272 | 2612 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
48310492 RH |
2613 | |
2614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2615 | $as_echo_n "checking build system type... " >&6; } | |
22e05272 | 2616 | if ${ac_cv_build+:} false; then : |
48310492 RH |
2617 | $as_echo_n "(cached) " >&6 |
2618 | else | |
2619 | ac_build_alias=$build_alias | |
2620 | test "x$ac_build_alias" = x && | |
2621 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2622 | test "x$ac_build_alias" = x && | |
22e05272 | 2623 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
48310492 | 2624 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
22e05272 | 2625 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
48310492 RH |
2626 | |
2627 | fi | |
2628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2629 | $as_echo "$ac_cv_build" >&6; } | |
2630 | case $ac_cv_build in | |
2631 | *-*-*) ;; | |
22e05272 | 2632 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
48310492 RH |
2633 | esac |
2634 | build=$ac_cv_build | |
2635 | ac_save_IFS=$IFS; IFS='-' | |
2636 | set x $ac_cv_build | |
2637 | shift | |
2638 | build_cpu=$1 | |
2639 | build_vendor=$2 | |
2640 | shift; shift | |
2641 | # Remember, the first character of IFS is used to create $*, | |
2642 | # except with old shells: | |
2643 | build_os=$* | |
2644 | IFS=$ac_save_IFS | |
2645 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2646 | ||
2647 | ||
2648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2649 | $as_echo_n "checking host system type... " >&6; } | |
22e05272 | 2650 | if ${ac_cv_host+:} false; then : |
48310492 RH |
2651 | $as_echo_n "(cached) " >&6 |
2652 | else | |
2653 | if test "x$host_alias" = x; then | |
2654 | ac_cv_host=$ac_cv_build | |
2655 | else | |
2656 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
22e05272 | 2657 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
48310492 RH |
2658 | fi |
2659 | ||
2660 | fi | |
2661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2662 | $as_echo "$ac_cv_host" >&6; } | |
2663 | case $ac_cv_host in | |
2664 | *-*-*) ;; | |
22e05272 | 2665 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
48310492 RH |
2666 | esac |
2667 | host=$ac_cv_host | |
2668 | ac_save_IFS=$IFS; IFS='-' | |
2669 | set x $ac_cv_host | |
2670 | shift | |
2671 | host_cpu=$1 | |
2672 | host_vendor=$2 | |
2673 | shift; shift | |
2674 | # Remember, the first character of IFS is used to create $*, | |
2675 | # except with old shells: | |
2676 | host_os=$* | |
2677 | IFS=$ac_save_IFS | |
2678 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2679 | ||
2680 | ||
2681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | |
2682 | $as_echo_n "checking target system type... " >&6; } | |
22e05272 | 2683 | if ${ac_cv_target+:} false; then : |
48310492 RH |
2684 | $as_echo_n "(cached) " >&6 |
2685 | else | |
2686 | if test "x$target_alias" = x; then | |
2687 | ac_cv_target=$ac_cv_host | |
2688 | else | |
2689 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
22e05272 | 2690 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
48310492 RH |
2691 | fi |
2692 | ||
2693 | fi | |
2694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
2695 | $as_echo "$ac_cv_target" >&6; } | |
2696 | case $ac_cv_target in | |
2697 | *-*-*) ;; | |
22e05272 | 2698 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
48310492 RH |
2699 | esac |
2700 | target=$ac_cv_target | |
2701 | ac_save_IFS=$IFS; IFS='-' | |
2702 | set x $ac_cv_target | |
2703 | shift | |
2704 | target_cpu=$1 | |
2705 | target_vendor=$2 | |
2706 | shift; shift | |
2707 | # Remember, the first character of IFS is used to create $*, | |
2708 | # except with old shells: | |
2709 | target_os=$* | |
2710 | IFS=$ac_save_IFS | |
2711 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
2712 | ||
2713 | ||
2714 | # The aliases save the names the user supplied, while $host etc. | |
2715 | # will get canonicalized. | |
2716 | test -n "$target_alias" && | |
2717 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2718 | NONENONEs,x,x, && | |
2719 | program_prefix=${target_alias}- | |
2720 | ||
2721 | target_alias=${target_alias-$host_alias} | |
2722 | ||
2723 | # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the | |
2724 | # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am. | |
2725 | # 1.9.0: minimum required version | |
2726 | # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch | |
2727 | # of other PACKAGE_* variables will, however, and there's nothing | |
2728 | # we can do about that; they come from AC_INIT). | |
c0758df9 | 2729 | # no-dist: we don't want 'dist' and related rules. |
48310492 RH |
2730 | # foreign: we don't follow the normal rules for GNU packages (no COPYING |
2731 | # file in the top srcdir, etc, etc), so stop complaining. | |
2732 | # -Wall: turns on all automake warnings... | |
2733 | # -Wno-portability: ...except this one, since GNU make is required. | |
2734 | # -Wno-override: ... and this one, since we do want this in testsuite. | |
22e05272 | 2735 | am__api_version='1.15' |
48310492 RH |
2736 | |
2737 | # Find a good install program. We prefer a C program (faster), | |
2738 | # so one script is as good as another. But avoid the broken or | |
2739 | # incompatible versions: | |
2740 | # SysV /etc/install, /usr/sbin/install | |
2741 | # SunOS /usr/etc/install | |
2742 | # IRIX /sbin/install | |
2743 | # AIX /bin/install | |
2744 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2745 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2746 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2747 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2748 | # OS/2's system install, which has a completely different semantic | |
2749 | # ./install, which can be erroneously created by make from ./install.sh. | |
2750 | # Reject install programs that cannot install multiple files. | |
2751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2752 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2753 | if test -z "$INSTALL"; then | |
22e05272 | 2754 | if ${ac_cv_path_install+:} false; then : |
48310492 RH |
2755 | $as_echo_n "(cached) " >&6 |
2756 | else | |
2757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2758 | for as_dir in $PATH | |
2759 | do | |
2760 | IFS=$as_save_IFS | |
2761 | test -z "$as_dir" && as_dir=. | |
2762 | # Account for people who put trailing slashes in PATH elements. | |
2763 | case $as_dir/ in #(( | |
2764 | ./ | .// | /[cC]/* | \ | |
2765 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2766 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2767 | /usr/ucb/* ) ;; | |
2768 | *) | |
2769 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2770 | # Don't use installbsd from OSF since it installs stuff as root | |
2771 | # by default. | |
2772 | for ac_prog in ginstall scoinst install; do | |
2773 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2774 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
48310492 RH |
2775 | if test $ac_prog = install && |
2776 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2777 | # AIX install. It has an incompatible calling convention. | |
2778 | : | |
2779 | elif test $ac_prog = install && | |
2780 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2781 | # program-specific install script used by HP pwplus--don't use. | |
2782 | : | |
2783 | else | |
2784 | rm -rf conftest.one conftest.two conftest.dir | |
2785 | echo one > conftest.one | |
2786 | echo two > conftest.two | |
2787 | mkdir conftest.dir | |
2788 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2789 | test -s conftest.one && test -s conftest.two && | |
2790 | test -s conftest.dir/conftest.one && | |
2791 | test -s conftest.dir/conftest.two | |
2792 | then | |
2793 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2794 | break 3 | |
2795 | fi | |
2796 | fi | |
2797 | fi | |
2798 | done | |
2799 | done | |
2800 | ;; | |
2801 | esac | |
2802 | ||
2803 | done | |
2804 | IFS=$as_save_IFS | |
2805 | ||
2806 | rm -rf conftest.one conftest.two conftest.dir | |
2807 | ||
2808 | fi | |
2809 | if test "${ac_cv_path_install+set}" = set; then | |
2810 | INSTALL=$ac_cv_path_install | |
2811 | else | |
2812 | # As a last resort, use the slow shell script. Don't cache a | |
2813 | # value for INSTALL within a source directory, because that will | |
2814 | # break other packages using the cache if that directory is | |
2815 | # removed, or if the value is a relative name. | |
2816 | INSTALL=$ac_install_sh | |
2817 | fi | |
2818 | fi | |
2819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2820 | $as_echo "$INSTALL" >&6; } | |
2821 | ||
2822 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2823 | # It thinks the first close brace ends the variable substitution. | |
2824 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2825 | ||
2826 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2827 | ||
2828 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2829 | ||
2830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
2831 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
48310492 RH |
2832 | # Reject unsafe characters in $srcdir or the absolute working directory |
2833 | # name. Accept space and tab only in the latter. | |
2834 | am_lf=' | |
2835 | ' | |
2836 | case `pwd` in | |
2837 | *[\\\"\#\$\&\'\`$am_lf]*) | |
22e05272 | 2838 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
48310492 RH |
2839 | esac |
2840 | case $srcdir in | |
2841 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
22e05272 | 2842 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
48310492 RH |
2843 | esac |
2844 | ||
22e05272 | 2845 | # Do 'set' in a subshell so we don't clobber the current shell's |
48310492 RH |
2846 | # arguments. Must try -L first in case configure is actually a |
2847 | # symlink; some systems play weird games with the mod time of symlinks | |
2848 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2849 | # directory). | |
2850 | if ( | |
22e05272 JM |
2851 | am_has_slept=no |
2852 | for am_try in 1 2; do | |
2853 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2854 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2855 | if test "$*" = "X"; then | |
2856 | # -L didn't work. | |
2857 | set X `ls -t "$srcdir/configure" conftest.file` | |
2858 | fi | |
2859 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2860 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2861 | ||
2862 | # If neither matched, then we have a broken ls. This can happen | |
2863 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2864 | # broken ls alias from the environment. This has actually | |
2865 | # happened. Such a system could not be considered "sane". | |
2866 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2867 | alias in your environment" "$LINENO" 5 | |
2868 | fi | |
2869 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2870 | break | |
2871 | fi | |
2872 | # Just in case. | |
2873 | sleep 1 | |
2874 | am_has_slept=yes | |
2875 | done | |
48310492 RH |
2876 | test "$2" = conftest.file |
2877 | ) | |
2878 | then | |
2879 | # Ok. | |
2880 | : | |
2881 | else | |
22e05272 | 2882 | as_fn_error $? "newly created file is older than distributed files! |
48310492 RH |
2883 | Check your system clock" "$LINENO" 5 |
2884 | fi | |
2885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2886 | $as_echo "yes" >&6; } | |
22e05272 JM |
2887 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
2888 | # generated files are strictly newer. | |
2889 | am_sleep_pid= | |
2890 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2891 | ( sleep 1 ) & | |
2892 | am_sleep_pid=$! | |
2893 | fi | |
2894 | ||
2895 | rm -f conftest.file | |
2896 | ||
48310492 RH |
2897 | test "$program_prefix" != NONE && |
2898 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2899 | # Use a double $ so make ignores it. | |
2900 | test "$program_suffix" != NONE && | |
2901 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2902 | # Double any \ or $. | |
2903 | # By default was `s,x,x', remove it if useless. | |
2904 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
2905 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2906 | ||
22e05272 JM |
2907 | # Expand $ac_aux_dir to an absolute path. |
2908 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
48310492 RH |
2909 | |
2910 | if test x"${MISSING+set}" != xset; then | |
2911 | case $am_aux_dir in | |
2912 | *\ * | *\ *) | |
2913 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2914 | *) | |
2915 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2916 | esac | |
2917 | fi | |
2918 | # Use eval to expand $SHELL | |
22e05272 JM |
2919 | if eval "$MISSING --is-lightweight"; then |
2920 | am_missing_run="$MISSING " | |
48310492 RH |
2921 | else |
2922 | am_missing_run= | |
22e05272 JM |
2923 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
2924 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
48310492 RH |
2925 | fi |
2926 | ||
22e05272 | 2927 | if test x"${install_sh+set}" != xset; then |
48310492 RH |
2928 | case $am_aux_dir in |
2929 | *\ * | *\ *) | |
2930 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2931 | *) | |
2932 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2933 | esac | |
2934 | fi | |
2935 | ||
22e05272 JM |
2936 | # Installed binaries are usually stripped using 'strip' when the user |
2937 | # run "make install-strip". However 'strip' might not be the right | |
48310492 | 2938 | # tool to use in cross-compilation environments, therefore Automake |
22e05272 | 2939 | # will honor the 'STRIP' environment variable to overrule this program. |
48310492 RH |
2940 | if test "$cross_compiling" != no; then |
2941 | if test -n "$ac_tool_prefix"; then | |
2942 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2943 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2945 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2946 | if ${ac_cv_prog_STRIP+:} false; then : |
48310492 RH |
2947 | $as_echo_n "(cached) " >&6 |
2948 | else | |
2949 | if test -n "$STRIP"; then | |
2950 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2951 | else | |
2952 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2953 | for as_dir in $PATH | |
2954 | do | |
2955 | IFS=$as_save_IFS | |
2956 | test -z "$as_dir" && as_dir=. | |
2957 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2958 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
48310492 RH |
2959 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2960 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2961 | break 2 | |
2962 | fi | |
2963 | done | |
2964 | done | |
2965 | IFS=$as_save_IFS | |
2966 | ||
2967 | fi | |
2968 | fi | |
2969 | STRIP=$ac_cv_prog_STRIP | |
2970 | if test -n "$STRIP"; then | |
2971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2972 | $as_echo "$STRIP" >&6; } | |
2973 | else | |
2974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2975 | $as_echo "no" >&6; } | |
2976 | fi | |
2977 | ||
2978 | ||
2979 | fi | |
2980 | if test -z "$ac_cv_prog_STRIP"; then | |
2981 | ac_ct_STRIP=$STRIP | |
2982 | # Extract the first word of "strip", so it can be a program name with args. | |
2983 | set dummy strip; ac_word=$2 | |
2984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2985 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2986 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
48310492 RH |
2987 | $as_echo_n "(cached) " >&6 |
2988 | else | |
2989 | if test -n "$ac_ct_STRIP"; then | |
2990 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2991 | else | |
2992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2993 | for as_dir in $PATH | |
2994 | do | |
2995 | IFS=$as_save_IFS | |
2996 | test -z "$as_dir" && as_dir=. | |
2997 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2998 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
48310492 RH |
2999 | ac_cv_prog_ac_ct_STRIP="strip" |
3000 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3001 | break 2 | |
3002 | fi | |
3003 | done | |
3004 | done | |
3005 | IFS=$as_save_IFS | |
3006 | ||
3007 | fi | |
3008 | fi | |
3009 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3010 | if test -n "$ac_ct_STRIP"; then | |
3011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3012 | $as_echo "$ac_ct_STRIP" >&6; } | |
3013 | else | |
3014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3015 | $as_echo "no" >&6; } | |
3016 | fi | |
3017 | ||
3018 | if test "x$ac_ct_STRIP" = x; then | |
3019 | STRIP=":" | |
3020 | else | |
3021 | case $cross_compiling:$ac_tool_warned in | |
3022 | yes:) | |
3023 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3024 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3025 | ac_tool_warned=yes ;; | |
3026 | esac | |
3027 | STRIP=$ac_ct_STRIP | |
3028 | fi | |
3029 | else | |
3030 | STRIP="$ac_cv_prog_STRIP" | |
3031 | fi | |
3032 | ||
3033 | fi | |
3034 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3035 | ||
3036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3037 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3038 | if test -z "$MKDIR_P"; then | |
22e05272 | 3039 | if ${ac_cv_path_mkdir+:} false; then : |
48310492 RH |
3040 | $as_echo_n "(cached) " >&6 |
3041 | else | |
3042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3043 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3044 | do | |
3045 | IFS=$as_save_IFS | |
3046 | test -z "$as_dir" && as_dir=. | |
3047 | for ac_prog in mkdir gmkdir; do | |
3048 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3049 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
48310492 RH |
3050 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
3051 | 'mkdir (GNU coreutils) '* | \ | |
3052 | 'mkdir (coreutils) '* | \ | |
3053 | 'mkdir (fileutils) '4.1*) | |
3054 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3055 | break 3;; | |
3056 | esac | |
3057 | done | |
3058 | done | |
3059 | done | |
3060 | IFS=$as_save_IFS | |
3061 | ||
3062 | fi | |
3063 | ||
22e05272 | 3064 | test -d ./--version && rmdir ./--version |
48310492 RH |
3065 | if test "${ac_cv_path_mkdir+set}" = set; then |
3066 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3067 | else | |
3068 | # As a last resort, use the slow shell script. Don't cache a | |
3069 | # value for MKDIR_P within a source directory, because that will | |
3070 | # break other packages using the cache if that directory is | |
3071 | # removed, or if the value is a relative name. | |
48310492 RH |
3072 | MKDIR_P="$ac_install_sh -d" |
3073 | fi | |
3074 | fi | |
3075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
3076 | $as_echo "$MKDIR_P" >&6; } | |
3077 | ||
48310492 RH |
3078 | for ac_prog in gawk mawk nawk awk |
3079 | do | |
3080 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3081 | set dummy $ac_prog; ac_word=$2 | |
3082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3083 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3084 | if ${ac_cv_prog_AWK+:} false; then : |
48310492 RH |
3085 | $as_echo_n "(cached) " >&6 |
3086 | else | |
3087 | if test -n "$AWK"; then | |
3088 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3089 | else | |
3090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3091 | for as_dir in $PATH | |
3092 | do | |
3093 | IFS=$as_save_IFS | |
3094 | test -z "$as_dir" && as_dir=. | |
3095 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3096 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
48310492 RH |
3097 | ac_cv_prog_AWK="$ac_prog" |
3098 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3099 | break 2 | |
3100 | fi | |
3101 | done | |
3102 | done | |
3103 | IFS=$as_save_IFS | |
3104 | ||
3105 | fi | |
3106 | fi | |
3107 | AWK=$ac_cv_prog_AWK | |
3108 | if test -n "$AWK"; then | |
3109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
3110 | $as_echo "$AWK" >&6; } | |
3111 | else | |
3112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3113 | $as_echo "no" >&6; } | |
3114 | fi | |
3115 | ||
3116 | ||
3117 | test -n "$AWK" && break | |
3118 | done | |
3119 | ||
3120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3121 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3122 | set x ${MAKE-make} | |
3123 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
22e05272 | 3124 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
48310492 RH |
3125 | $as_echo_n "(cached) " >&6 |
3126 | else | |
3127 | cat >conftest.make <<\_ACEOF | |
3128 | SHELL = /bin/sh | |
3129 | all: | |
3130 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3131 | _ACEOF | |
22e05272 | 3132 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
48310492 RH |
3133 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3134 | *@@@%%%=?*=@@@%%%*) | |
3135 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3136 | *) | |
3137 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3138 | esac | |
3139 | rm -f conftest.make | |
3140 | fi | |
3141 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
3142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3143 | $as_echo "yes" >&6; } | |
3144 | SET_MAKE= | |
3145 | else | |
3146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3147 | $as_echo "no" >&6; } | |
3148 | SET_MAKE="MAKE=${MAKE-make}" | |
3149 | fi | |
3150 | ||
3151 | rm -rf .tst 2>/dev/null | |
3152 | mkdir .tst 2>/dev/null | |
3153 | if test -d .tst; then | |
3154 | am__leading_dot=. | |
3155 | else | |
3156 | am__leading_dot=_ | |
3157 | fi | |
3158 | rmdir .tst 2>/dev/null | |
3159 | ||
22e05272 JM |
3160 | # Check whether --enable-silent-rules was given. |
3161 | if test "${enable_silent_rules+set}" = set; then : | |
3162 | enableval=$enable_silent_rules; | |
3163 | fi | |
3164 | ||
3165 | case $enable_silent_rules in # ((( | |
3166 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3167 | no) AM_DEFAULT_VERBOSITY=1;; | |
3168 | *) AM_DEFAULT_VERBOSITY=1;; | |
3169 | esac | |
3170 | am_make=${MAKE-make} | |
3171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3172 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3173 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3174 | $as_echo_n "(cached) " >&6 | |
3175 | else | |
3176 | if $as_echo 'TRUE=$(BAR$(V)) | |
3177 | BAR0=false | |
3178 | BAR1=true | |
3179 | V=1 | |
3180 | am__doit: | |
3181 | @$(TRUE) | |
3182 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3183 | am_cv_make_support_nested_variables=yes | |
3184 | else | |
3185 | am_cv_make_support_nested_variables=no | |
3186 | fi | |
3187 | fi | |
3188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3189 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3190 | if test $am_cv_make_support_nested_variables = yes; then | |
3191 | AM_V='$(V)' | |
3192 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3193 | else | |
3194 | AM_V=$AM_DEFAULT_VERBOSITY | |
3195 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3196 | fi | |
3197 | AM_BACKSLASH='\' | |
3198 | ||
48310492 RH |
3199 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3200 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3201 | # is not polluted with repeated "-I." | |
3202 | am__isrc=' -I$(srcdir)' | |
3203 | # test to see if srcdir already configured | |
3204 | if test -f $srcdir/config.status; then | |
22e05272 | 3205 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
48310492 RH |
3206 | fi |
3207 | fi | |
3208 | ||
3209 | # test whether we have cygpath | |
3210 | if test -z "$CYGPATH_W"; then | |
3211 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3212 | CYGPATH_W='cygpath -w' | |
3213 | else | |
3214 | CYGPATH_W=echo | |
3215 | fi | |
3216 | fi | |
3217 | ||
3218 | ||
3219 | # Define the identity of the package. | |
3220 | PACKAGE='libatomic' | |
3221 | VERSION='1.0' | |
3222 | ||
3223 | ||
3224 | cat >>confdefs.h <<_ACEOF | |
3225 | #define PACKAGE "$PACKAGE" | |
3226 | _ACEOF | |
3227 | ||
3228 | ||
3229 | cat >>confdefs.h <<_ACEOF | |
3230 | #define VERSION "$VERSION" | |
3231 | _ACEOF | |
3232 | ||
3233 | # Some tools Automake needs. | |
3234 | ||
3235 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3236 | ||
3237 | ||
3238 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3239 | ||
3240 | ||
3241 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3242 | ||
3243 | ||
3244 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3245 | ||
3246 | ||
3247 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3248 | ||
22e05272 JM |
3249 | # For better backward compatibility. To be removed once Automake 1.9.x |
3250 | # dies out for good. For more background, see: | |
3251 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3252 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3253 | mkdir_p='$(MKDIR_P)' | |
3254 | ||
3255 | # We need awk for the "check" target (and possibly the TAP driver). The | |
3256 | # system "awk" is bad on some platforms. | |
dc3368d0 KT |
3257 | # Always define AMTAR for backward compatibility. Yes, it's still used |
3258 | # in the wild :-( We should find a proper way to deprecate it ... | |
3259 | AMTAR='$${TAR-tar}' | |
48310492 | 3260 | |
22e05272 JM |
3261 | |
3262 | # We'll loop over all known methods to create a tar archive until one works. | |
3263 | _am_tools='gnutar pax cpio none' | |
3264 | ||
dc3368d0 | 3265 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
48310492 RH |
3266 | |
3267 | ||
3268 | ||
3269 | ||
3270 | ||
22e05272 JM |
3271 | |
3272 | # POSIX will say in a future version that running "rm -f" with no argument | |
3273 | # is OK; and we want to be able to make that assumption in our Makefile | |
3274 | # recipes. So use an aggressive probe to check that the usage we want is | |
3275 | # actually supported "in the wild" to an acceptable degree. | |
3276 | # See automake bug#10828. | |
3277 | # To make any issue more visible, cause the running configure to be aborted | |
3278 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3279 | # user can still override this though. | |
3280 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3281 | cat >&2 <<'END' | |
3282 | Oops! | |
3283 | ||
3284 | Your 'rm' program seems unable to run without file operands specified | |
3285 | on the command line, even when the '-f' option is present. This is contrary | |
3286 | to the behaviour of most rm programs out there, and not conforming with | |
3287 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3288 | ||
3289 | Please tell bug-automake@gnu.org about your system, including the value | |
3290 | of your $PATH and any error possibly output before this message. This | |
3291 | can help us improve future automake versions. | |
3292 | ||
3293 | END | |
3294 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3295 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3296 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3297 | echo >&2 | |
3298 | else | |
3299 | cat >&2 <<'END' | |
3300 | Aborting the configuration process, to ensure you take notice of the issue. | |
3301 | ||
3302 | You can download and install GNU coreutils to get an 'rm' implementation | |
3303 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
3304 | ||
3305 | If you want to complete the configuration process using your problematic | |
3306 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3307 | to "yes", and re-run configure. | |
3308 | ||
3309 | END | |
3310 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3311 | fi | |
3312 | fi | |
3313 | ||
48310492 RH |
3314 | # Default to --enable-multilib |
3315 | # Check whether --enable-multilib was given. | |
3316 | if test "${enable_multilib+set}" = set; then : | |
3317 | enableval=$enable_multilib; case "$enableval" in | |
3318 | yes) multilib=yes ;; | |
3319 | no) multilib=no ;; | |
22e05272 | 3320 | *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;; |
48310492 RH |
3321 | esac |
3322 | else | |
3323 | multilib=yes | |
3324 | fi | |
3325 | ||
3326 | ||
3327 | # We may get other options which we leave undocumented: | |
3328 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
3329 | # See config-ml.in if you want the gory details. | |
3330 | ||
3331 | if test "$srcdir" = "."; then | |
3332 | if test "$with_target_subdir" != "."; then | |
3333 | multi_basedir="$srcdir/$with_multisrctop../.." | |
3334 | else | |
3335 | multi_basedir="$srcdir/$with_multisrctop.." | |
3336 | fi | |
3337 | else | |
3338 | multi_basedir="$srcdir/.." | |
3339 | fi | |
3340 | ||
3341 | ||
3342 | # Even if the default multilib is not a cross compilation, | |
3343 | # it may be that some of the other multilibs are. | |
3344 | if test $cross_compiling = no && test $multilib = yes \ | |
3345 | && test "x${with_multisubdir}" != x ; then | |
3346 | cross_compiling=maybe | |
3347 | fi | |
3348 | ||
3349 | ac_config_commands="$ac_config_commands default-1" | |
3350 | ||
3351 | ||
e8e66971 MR |
3352 | |
3353 | # Check whether --with-toolexeclibdir was given. | |
3354 | if test "${with_toolexeclibdir+set}" = set; then : | |
3355 | withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in | |
3356 | /) | |
3357 | ;; | |
3358 | */) | |
3359 | with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'` | |
3360 | ;; | |
3361 | esac | |
3362 | else | |
3363 | with_toolexeclibdir=no | |
3364 | fi | |
3365 | ||
3366 | ||
3367 | ||
48310492 RH |
3368 | # Calculate toolexeclibdir |
3369 | # Also toolexecdir, though it's only used in toolexeclibdir | |
3370 | case ${enable_version_specific_runtime_libs} in | |
3371 | yes) | |
3372 | # Need the gcc compiler version to know where to install libraries | |
3373 | # and header files if --enable-version-specific-runtime-libs option | |
3374 | # is selected. | |
3375 | toolexecdir='$(libdir)/gcc/$(target_alias)' | |
3376 | toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' | |
3377 | ;; | |
3378 | no) | |
3379 | if test -n "$with_cross_host" && | |
3380 | test x"$with_cross_host" != x"no"; then | |
3381 | # Install a library built with a cross compiler in tooldir, not libdir. | |
3382 | toolexecdir='$(exec_prefix)/$(target_alias)' | |
e8e66971 MR |
3383 | case ${with_toolexeclibdir} in |
3384 | no) | |
3385 | toolexeclibdir='$(toolexecdir)/lib' | |
3386 | ;; | |
3387 | *) | |
3388 | toolexeclibdir=${with_toolexeclibdir} | |
3389 | ;; | |
3390 | esac | |
48310492 RH |
3391 | else |
3392 | toolexecdir='$(libdir)/gcc-lib/$(target_alias)' | |
3393 | toolexeclibdir='$(libdir)' | |
3394 | fi | |
3395 | multi_os_directory=`$CC -print-multi-os-directory` | |
3396 | case $multi_os_directory in | |
3397 | .) ;; # Avoid trailing /. | |
3398 | *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; | |
3399 | esac | |
3400 | ;; | |
3401 | esac | |
3402 | ||
3403 | ||
3404 | ||
3405 | # Check the compiler. | |
3406 | # The same as in boehm-gc and libstdc++. Have to borrow it from there. | |
3407 | # We must force CC to /not/ be precious variables; otherwise | |
3408 | # the wrong, non-multilib-adjusted value will be used in multilibs. | |
3409 | # As a side effect, we have to subst CFLAGS ourselves. | |
3410 | ||
3411 | ||
3412 | ||
3413 | ac_ext=c | |
3414 | ac_cpp='$CPP $CPPFLAGS' | |
3415 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3416 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3417 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3418 | if test -n "$ac_tool_prefix"; then | |
3419 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3420 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3422 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3423 | if ${ac_cv_prog_CC+:} false; then : |
48310492 RH |
3424 | $as_echo_n "(cached) " >&6 |
3425 | else | |
3426 | if test -n "$CC"; then | |
3427 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3428 | else | |
3429 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3430 | for as_dir in $PATH | |
3431 | do | |
3432 | IFS=$as_save_IFS | |
3433 | test -z "$as_dir" && as_dir=. | |
3434 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3435 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
48310492 RH |
3436 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
3437 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3438 | break 2 | |
3439 | fi | |
3440 | done | |
3441 | done | |
3442 | IFS=$as_save_IFS | |
3443 | ||
3444 | fi | |
3445 | fi | |
3446 | CC=$ac_cv_prog_CC | |
3447 | if test -n "$CC"; then | |
3448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3449 | $as_echo "$CC" >&6; } | |
3450 | else | |
3451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3452 | $as_echo "no" >&6; } | |
3453 | fi | |
3454 | ||
3455 | ||
3456 | fi | |
3457 | if test -z "$ac_cv_prog_CC"; then | |
3458 | ac_ct_CC=$CC | |
3459 | # Extract the first word of "gcc", so it can be a program name with args. | |
3460 | set dummy gcc; ac_word=$2 | |
3461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3462 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3463 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
48310492 RH |
3464 | $as_echo_n "(cached) " >&6 |
3465 | else | |
3466 | if test -n "$ac_ct_CC"; then | |
3467 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3468 | else | |
3469 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3470 | for as_dir in $PATH | |
3471 | do | |
3472 | IFS=$as_save_IFS | |
3473 | test -z "$as_dir" && as_dir=. | |
3474 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3475 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
48310492 RH |
3476 | ac_cv_prog_ac_ct_CC="gcc" |
3477 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3478 | break 2 | |
3479 | fi | |
3480 | done | |
3481 | done | |
3482 | IFS=$as_save_IFS | |
3483 | ||
3484 | fi | |
3485 | fi | |
3486 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3487 | if test -n "$ac_ct_CC"; then | |
3488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3489 | $as_echo "$ac_ct_CC" >&6; } | |
3490 | else | |
3491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3492 | $as_echo "no" >&6; } | |
3493 | fi | |
3494 | ||
3495 | if test "x$ac_ct_CC" = x; then | |
3496 | CC="" | |
3497 | else | |
3498 | case $cross_compiling:$ac_tool_warned in | |
3499 | yes:) | |
3500 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3501 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3502 | ac_tool_warned=yes ;; | |
3503 | esac | |
3504 | CC=$ac_ct_CC | |
3505 | fi | |
3506 | else | |
3507 | CC="$ac_cv_prog_CC" | |
3508 | fi | |
3509 | ||
3510 | if test -z "$CC"; then | |
3511 | if test -n "$ac_tool_prefix"; then | |
3512 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3513 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3515 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3516 | if ${ac_cv_prog_CC+:} false; then : |
48310492 RH |
3517 | $as_echo_n "(cached) " >&6 |
3518 | else | |
3519 | if test -n "$CC"; then | |
3520 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3521 | else | |
3522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3523 | for as_dir in $PATH | |
3524 | do | |
3525 | IFS=$as_save_IFS | |
3526 | test -z "$as_dir" && as_dir=. | |
3527 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3528 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
48310492 RH |
3529 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
3530 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3531 | break 2 | |
3532 | fi | |
3533 | done | |
3534 | done | |
3535 | IFS=$as_save_IFS | |
3536 | ||
3537 | fi | |
3538 | fi | |
3539 | CC=$ac_cv_prog_CC | |
3540 | if test -n "$CC"; then | |
3541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3542 | $as_echo "$CC" >&6; } | |
3543 | else | |
3544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3545 | $as_echo "no" >&6; } | |
3546 | fi | |
3547 | ||
3548 | ||
3549 | fi | |
3550 | fi | |
3551 | if test -z "$CC"; then | |
3552 | # Extract the first word of "cc", so it can be a program name with args. | |
3553 | set dummy cc; ac_word=$2 | |
3554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3555 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3556 | if ${ac_cv_prog_CC+:} false; then : |
48310492 RH |
3557 | $as_echo_n "(cached) " >&6 |
3558 | else | |
3559 | if test -n "$CC"; then | |
3560 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3561 | else | |
3562 | ac_prog_rejected=no | |
3563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3564 | for as_dir in $PATH | |
3565 | do | |
3566 | IFS=$as_save_IFS | |
3567 | test -z "$as_dir" && as_dir=. | |
3568 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3569 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
48310492 RH |
3570 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3571 | ac_prog_rejected=yes | |
3572 | continue | |
3573 | fi | |
3574 | ac_cv_prog_CC="cc" | |
3575 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3576 | break 2 | |
3577 | fi | |
3578 | done | |
3579 | done | |
3580 | IFS=$as_save_IFS | |
3581 | ||
3582 | if test $ac_prog_rejected = yes; then | |
3583 | # We found a bogon in the path, so make sure we never use it. | |
3584 | set dummy $ac_cv_prog_CC | |
3585 | shift | |
3586 | if test $# != 0; then | |
3587 | # We chose a different compiler from the bogus one. | |
3588 | # However, it has the same basename, so the bogon will be chosen | |
3589 | # first if we set CC to just the basename; use the full file name. | |
3590 | shift | |
3591 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3592 | fi | |
3593 | fi | |
3594 | fi | |
3595 | fi | |
3596 | CC=$ac_cv_prog_CC | |
3597 | if test -n "$CC"; then | |
3598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3599 | $as_echo "$CC" >&6; } | |
3600 | else | |
3601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3602 | $as_echo "no" >&6; } | |
3603 | fi | |
3604 | ||
3605 | ||
3606 | fi | |
3607 | if test -z "$CC"; then | |
3608 | if test -n "$ac_tool_prefix"; then | |
3609 | for ac_prog in cl.exe | |
3610 | do | |
3611 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3612 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3614 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3615 | if ${ac_cv_prog_CC+:} false; then : |
48310492 RH |
3616 | $as_echo_n "(cached) " >&6 |
3617 | else | |
3618 | if test -n "$CC"; then | |
3619 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3620 | else | |
3621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3622 | for as_dir in $PATH | |
3623 | do | |
3624 | IFS=$as_save_IFS | |
3625 | test -z "$as_dir" && as_dir=. | |
3626 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3627 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
48310492 RH |
3628 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3629 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3630 | break 2 | |
3631 | fi | |
3632 | done | |
3633 | done | |
3634 | IFS=$as_save_IFS | |
3635 | ||
3636 | fi | |
3637 | fi | |
3638 | CC=$ac_cv_prog_CC | |
3639 | if test -n "$CC"; then | |
3640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3641 | $as_echo "$CC" >&6; } | |
3642 | else | |
3643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3644 | $as_echo "no" >&6; } | |
3645 | fi | |
3646 | ||
3647 | ||
3648 | test -n "$CC" && break | |
3649 | done | |
3650 | fi | |
3651 | if test -z "$CC"; then | |
3652 | ac_ct_CC=$CC | |
3653 | for ac_prog in cl.exe | |
3654 | do | |
3655 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3656 | set dummy $ac_prog; ac_word=$2 | |
3657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3658 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3659 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
48310492 RH |
3660 | $as_echo_n "(cached) " >&6 |
3661 | else | |
3662 | if test -n "$ac_ct_CC"; then | |
3663 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3664 | else | |
3665 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3666 | for as_dir in $PATH | |
3667 | do | |
3668 | IFS=$as_save_IFS | |
3669 | test -z "$as_dir" && as_dir=. | |
3670 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 3671 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
48310492 RH |
3672 | ac_cv_prog_ac_ct_CC="$ac_prog" |
3673 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3674 | break 2 | |
3675 | fi | |
3676 | done | |
3677 | done | |
3678 | IFS=$as_save_IFS | |
3679 | ||
3680 | fi | |
3681 | fi | |
3682 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3683 | if test -n "$ac_ct_CC"; then | |
3684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3685 | $as_echo "$ac_ct_CC" >&6; } | |
3686 | else | |
3687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3688 | $as_echo "no" >&6; } | |
3689 | fi | |
3690 | ||
3691 | ||
3692 | test -n "$ac_ct_CC" && break | |
3693 | done | |
3694 | ||
3695 | if test "x$ac_ct_CC" = x; then | |
3696 | CC="" | |
3697 | else | |
3698 | case $cross_compiling:$ac_tool_warned in | |
3699 | yes:) | |
3700 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3701 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3702 | ac_tool_warned=yes ;; | |
3703 | esac | |
3704 | CC=$ac_ct_CC | |
3705 | fi | |
3706 | fi | |
3707 | ||
3708 | fi | |
3709 | ||
3710 | ||
3711 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3712 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3713 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3714 | See \`config.log' for more details" "$LINENO" 5; } | |
48310492 RH |
3715 | |
3716 | # Provide some information about the compiler. | |
3717 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3718 | set X $ac_compile | |
3719 | ac_compiler=$2 | |
3720 | for ac_option in --version -v -V -qversion; do | |
3721 | { { ac_try="$ac_compiler $ac_option >&5" | |
3722 | case "(($ac_try" in | |
3723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3724 | *) ac_try_echo=$ac_try;; | |
3725 | esac | |
3726 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3727 | $as_echo "$ac_try_echo"; } >&5 | |
3728 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3729 | ac_status=$? | |
3730 | if test -s conftest.err; then | |
3731 | sed '10a\ | |
3732 | ... rest of stderr output deleted ... | |
3733 | 10q' conftest.err >conftest.er1 | |
3734 | cat conftest.er1 >&5 | |
48310492 | 3735 | fi |
22e05272 | 3736 | rm -f conftest.er1 conftest.err |
48310492 RH |
3737 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3738 | test $ac_status = 0; } | |
3739 | done | |
3740 | ||
3741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3742 | /* end confdefs.h. */ | |
3743 | ||
3744 | int | |
3745 | main () | |
3746 | { | |
3747 | ||
3748 | ; | |
3749 | return 0; | |
3750 | } | |
3751 | _ACEOF | |
3752 | ac_clean_files_save=$ac_clean_files | |
22e05272 | 3753 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
48310492 RH |
3754 | # Try to create an executable without -o first, disregard a.out. |
3755 | # It will help us diagnose broken compilers, and finding out an intuition | |
3756 | # of exeext. | |
22e05272 JM |
3757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3758 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
48310492 RH |
3759 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3760 | ||
3761 | # The possible output files: | |
3762 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3763 | ||
3764 | ac_rmfiles= | |
3765 | for ac_file in $ac_files | |
3766 | do | |
3767 | case $ac_file in | |
3768 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3769 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3770 | esac | |
3771 | done | |
3772 | rm -f $ac_rmfiles | |
3773 | ||
3774 | if { { ac_try="$ac_link_default" | |
3775 | case "(($ac_try" in | |
3776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3777 | *) ac_try_echo=$ac_try;; | |
3778 | esac | |
3779 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3780 | $as_echo "$ac_try_echo"; } >&5 | |
3781 | (eval "$ac_link_default") 2>&5 | |
3782 | ac_status=$? | |
3783 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3784 | test $ac_status = 0; }; then : | |
3785 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3786 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3787 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3788 | # so that the user can short-circuit this test for compilers unknown to | |
3789 | # Autoconf. | |
3790 | for ac_file in $ac_files '' | |
3791 | do | |
3792 | test -f "$ac_file" || continue | |
3793 | case $ac_file in | |
3794 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3795 | ;; | |
3796 | [ab].out ) | |
3797 | # We found the default executable, but exeext='' is most | |
3798 | # certainly right. | |
3799 | break;; | |
3800 | *.* ) | |
3801 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3802 | then :; else | |
3803 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3804 | fi | |
3805 | # We set ac_cv_exeext here because the later test for it is not | |
3806 | # safe: cross compilers may not add the suffix if given an `-o' | |
3807 | # argument, so we may need to know it at that point already. | |
3808 | # Even if this section looks crufty: it has the advantage of | |
3809 | # actually working. | |
3810 | break;; | |
3811 | * ) | |
3812 | break;; | |
3813 | esac | |
3814 | done | |
3815 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3816 | ||
3817 | else | |
3818 | ac_file='' | |
3819 | fi | |
48310492 | 3820 | if test -z "$ac_file"; then : |
22e05272 JM |
3821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3822 | $as_echo "no" >&6; } | |
3823 | $as_echo "$as_me: failed program was:" >&5 | |
48310492 RH |
3824 | sed 's/^/| /' conftest.$ac_ext >&5 |
3825 | ||
3826 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3827 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3828 | as_fn_error 77 "C compiler cannot create executables |
3829 | See \`config.log' for more details" "$LINENO" 5; } | |
3830 | else | |
3831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3832 | $as_echo "yes" >&6; } | |
48310492 | 3833 | fi |
22e05272 JM |
3834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3835 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3837 | $as_echo "$ac_file" >&6; } | |
48310492 RH |
3838 | ac_exeext=$ac_cv_exeext |
3839 | ||
22e05272 | 3840 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
48310492 | 3841 | ac_clean_files=$ac_clean_files_save |
48310492 RH |
3842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3843 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3844 | if { { ac_try="$ac_link" | |
3845 | case "(($ac_try" in | |
3846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3847 | *) ac_try_echo=$ac_try;; | |
3848 | esac | |
3849 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3850 | $as_echo "$ac_try_echo"; } >&5 | |
3851 | (eval "$ac_link") 2>&5 | |
3852 | ac_status=$? | |
3853 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3854 | test $ac_status = 0; }; then : | |
3855 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3856 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3857 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3858 | # `rm'. | |
3859 | for ac_file in conftest.exe conftest conftest.*; do | |
3860 | test -f "$ac_file" || continue | |
3861 | case $ac_file in | |
3862 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3863 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3864 | break;; | |
3865 | * ) break;; | |
3866 | esac | |
3867 | done | |
3868 | else | |
3869 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3870 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3871 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3872 | See \`config.log' for more details" "$LINENO" 5; } | |
48310492 | 3873 | fi |
22e05272 | 3874 | rm -f conftest conftest$ac_cv_exeext |
48310492 RH |
3875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3876 | $as_echo "$ac_cv_exeext" >&6; } | |
3877 | ||
3878 | rm -f conftest.$ac_ext | |
3879 | EXEEXT=$ac_cv_exeext | |
3880 | ac_exeext=$EXEEXT | |
22e05272 JM |
3881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3882 | /* end confdefs.h. */ | |
3883 | #include <stdio.h> | |
3884 | int | |
3885 | main () | |
3886 | { | |
3887 | FILE *f = fopen ("conftest.out", "w"); | |
3888 | return ferror (f) || fclose (f) != 0; | |
3889 | ||
3890 | ; | |
3891 | return 0; | |
3892 | } | |
3893 | _ACEOF | |
3894 | ac_clean_files="$ac_clean_files conftest.out" | |
3895 | # Check that the compiler produces executables we can run. If not, either | |
3896 | # the compiler is broken, or we cross compile. | |
3897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3898 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3899 | if test "$cross_compiling" != yes; then | |
3900 | { { ac_try="$ac_link" | |
3901 | case "(($ac_try" in | |
3902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3903 | *) ac_try_echo=$ac_try;; | |
3904 | esac | |
3905 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3906 | $as_echo "$ac_try_echo"; } >&5 | |
3907 | (eval "$ac_link") 2>&5 | |
3908 | ac_status=$? | |
3909 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3910 | test $ac_status = 0; } | |
3911 | if { ac_try='./conftest$ac_cv_exeext' | |
3912 | { { case "(($ac_try" in | |
3913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3914 | *) ac_try_echo=$ac_try;; | |
3915 | esac | |
3916 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3917 | $as_echo "$ac_try_echo"; } >&5 | |
3918 | (eval "$ac_try") 2>&5 | |
3919 | ac_status=$? | |
3920 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3921 | test $ac_status = 0; }; }; then | |
3922 | cross_compiling=no | |
3923 | else | |
3924 | if test "$cross_compiling" = maybe; then | |
3925 | cross_compiling=yes | |
3926 | else | |
3927 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3928 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3929 | as_fn_error $? "cannot run C compiled programs. | |
3930 | If you meant to cross compile, use \`--host'. | |
3931 | See \`config.log' for more details" "$LINENO" 5; } | |
3932 | fi | |
3933 | fi | |
3934 | fi | |
3935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3936 | $as_echo "$cross_compiling" >&6; } | |
3937 | ||
3938 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3939 | ac_clean_files=$ac_clean_files_save | |
48310492 RH |
3940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3941 | $as_echo_n "checking for suffix of object files... " >&6; } | |
22e05272 | 3942 | if ${ac_cv_objext+:} false; then : |
48310492 RH |
3943 | $as_echo_n "(cached) " >&6 |
3944 | else | |
3945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3946 | /* end confdefs.h. */ | |
3947 | ||
3948 | int | |
3949 | main () | |
3950 | { | |
3951 | ||
3952 | ; | |
3953 | return 0; | |
3954 | } | |
3955 | _ACEOF | |
3956 | rm -f conftest.o conftest.obj | |
3957 | if { { ac_try="$ac_compile" | |
3958 | case "(($ac_try" in | |
3959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3960 | *) ac_try_echo=$ac_try;; | |
3961 | esac | |
3962 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3963 | $as_echo "$ac_try_echo"; } >&5 | |
3964 | (eval "$ac_compile") 2>&5 | |
3965 | ac_status=$? | |
3966 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3967 | test $ac_status = 0; }; then : | |
3968 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3969 | test -f "$ac_file" || continue; | |
3970 | case $ac_file in | |
3971 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3972 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3973 | break;; | |
3974 | esac | |
3975 | done | |
3976 | else | |
3977 | $as_echo "$as_me: failed program was:" >&5 | |
3978 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3979 | ||
3980 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3981 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3982 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3983 | See \`config.log' for more details" "$LINENO" 5; } | |
48310492 RH |
3984 | fi |
3985 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3986 | fi | |
3987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3988 | $as_echo "$ac_cv_objext" >&6; } | |
3989 | OBJEXT=$ac_cv_objext | |
3990 | ac_objext=$OBJEXT | |
3991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3992 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
22e05272 | 3993 | if ${ac_cv_c_compiler_gnu+:} false; then : |
48310492 RH |
3994 | $as_echo_n "(cached) " >&6 |
3995 | else | |
3996 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3997 | /* end confdefs.h. */ | |
3998 | ||
3999 | int | |
4000 | main () | |
4001 | { | |
4002 | #ifndef __GNUC__ | |
4003 | choke me | |
4004 | #endif | |
4005 | ||
4006 | ; | |
4007 | return 0; | |
4008 | } | |
4009 | _ACEOF | |
4010 | if ac_fn_c_try_compile "$LINENO"; then : | |
4011 | ac_compiler_gnu=yes | |
4012 | else | |
4013 | ac_compiler_gnu=no | |
4014 | fi | |
4015 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4016 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
4017 | ||
4018 | fi | |
4019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
4020 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4021 | if test $ac_compiler_gnu = yes; then | |
4022 | GCC=yes | |
4023 | else | |
4024 | GCC= | |
4025 | fi | |
4026 | ac_test_CFLAGS=${CFLAGS+set} | |
4027 | ac_save_CFLAGS=$CFLAGS | |
4028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4029 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
22e05272 | 4030 | if ${ac_cv_prog_cc_g+:} false; then : |
48310492 RH |
4031 | $as_echo_n "(cached) " >&6 |
4032 | else | |
4033 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4034 | ac_c_werror_flag=yes | |
4035 | ac_cv_prog_cc_g=no | |
4036 | CFLAGS="-g" | |
4037 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4038 | /* end confdefs.h. */ | |
4039 | ||
4040 | int | |
4041 | main () | |
4042 | { | |
4043 | ||
4044 | ; | |
4045 | return 0; | |
4046 | } | |
4047 | _ACEOF | |
4048 | if ac_fn_c_try_compile "$LINENO"; then : | |
4049 | ac_cv_prog_cc_g=yes | |
4050 | else | |
4051 | CFLAGS="" | |
4052 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4053 | /* end confdefs.h. */ | |
4054 | ||
4055 | int | |
4056 | main () | |
4057 | { | |
4058 | ||
4059 | ; | |
4060 | return 0; | |
4061 | } | |
4062 | _ACEOF | |
4063 | if ac_fn_c_try_compile "$LINENO"; then : | |
4064 | ||
4065 | else | |
4066 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4067 | CFLAGS="-g" | |
4068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4069 | /* end confdefs.h. */ | |
4070 | ||
4071 | int | |
4072 | main () | |
4073 | { | |
4074 | ||
4075 | ; | |
4076 | return 0; | |
4077 | } | |
4078 | _ACEOF | |
4079 | if ac_fn_c_try_compile "$LINENO"; then : | |
4080 | ac_cv_prog_cc_g=yes | |
4081 | fi | |
4082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4083 | fi | |
4084 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4085 | fi | |
4086 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4087 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4088 | fi | |
4089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4090 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4091 | if test "$ac_test_CFLAGS" = set; then | |
4092 | CFLAGS=$ac_save_CFLAGS | |
4093 | elif test $ac_cv_prog_cc_g = yes; then | |
4094 | if test "$GCC" = yes; then | |
4095 | CFLAGS="-g -O2" | |
4096 | else | |
4097 | CFLAGS="-g" | |
4098 | fi | |
4099 | else | |
4100 | if test "$GCC" = yes; then | |
4101 | CFLAGS="-O2" | |
4102 | else | |
4103 | CFLAGS= | |
4104 | fi | |
4105 | fi | |
4106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
4107 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
22e05272 | 4108 | if ${ac_cv_prog_cc_c89+:} false; then : |
48310492 RH |
4109 | $as_echo_n "(cached) " >&6 |
4110 | else | |
4111 | ac_cv_prog_cc_c89=no | |
4112 | ac_save_CC=$CC | |
4113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4114 | /* end confdefs.h. */ | |
4115 | #include <stdarg.h> | |
4116 | #include <stdio.h> | |
22e05272 | 4117 | struct stat; |
48310492 RH |
4118 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4119 | struct buf { int x; }; | |
4120 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4121 | static char *e (p, i) | |
4122 | char **p; | |
4123 | int i; | |
4124 | { | |
4125 | return p[i]; | |
4126 | } | |
4127 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4128 | { | |
4129 | char *s; | |
4130 | va_list v; | |
4131 | va_start (v,p); | |
4132 | s = g (p, va_arg (v,int)); | |
4133 | va_end (v); | |
4134 | return s; | |
4135 | } | |
4136 | ||
4137 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4138 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4139 | These don't provoke an error unfortunately, instead are silently treated | |
4140 | as 'x'. The following induces an error, until -std is added to get | |
4141 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4142 | array size at least. It's necessary to write '\x00'==0 to get something | |
4143 | that's true only with -std. */ | |
4144 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4145 | ||
4146 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
4147 | inside strings and character constants. */ | |
4148 | #define FOO(x) 'x' | |
4149 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4150 | ||
4151 | int test (int i, double x); | |
4152 | struct s1 {int (*f) (int a);}; | |
4153 | struct s2 {int (*f) (double a);}; | |
4154 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4155 | int argc; | |
4156 | char **argv; | |
4157 | int | |
4158 | main () | |
4159 | { | |
4160 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4161 | ; | |
4162 | return 0; | |
4163 | } | |
4164 | _ACEOF | |
4165 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
4166 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4167 | do | |
4168 | CC="$ac_save_CC $ac_arg" | |
4169 | if ac_fn_c_try_compile "$LINENO"; then : | |
4170 | ac_cv_prog_cc_c89=$ac_arg | |
4171 | fi | |
4172 | rm -f core conftest.err conftest.$ac_objext | |
4173 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4174 | done | |
4175 | rm -f conftest.$ac_ext | |
4176 | CC=$ac_save_CC | |
4177 | ||
4178 | fi | |
4179 | # AC_CACHE_VAL | |
4180 | case "x$ac_cv_prog_cc_c89" in | |
4181 | x) | |
4182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4183 | $as_echo "none needed" >&6; } ;; | |
4184 | xno) | |
4185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4186 | $as_echo "unsupported" >&6; } ;; | |
4187 | *) | |
4188 | CC="$CC $ac_cv_prog_cc_c89" | |
4189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4190 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4191 | esac | |
4192 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
4193 | ||
4194 | fi | |
4195 | ||
4196 | ac_ext=c | |
4197 | ac_cpp='$CPP $CPPFLAGS' | |
4198 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4199 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4200 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22e05272 JM |
4201 | |
4202 | ac_ext=c | |
4203 | ac_cpp='$CPP $CPPFLAGS' | |
4204 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4205 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4206 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
4208 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
4209 | if ${am_cv_prog_cc_c_o+:} false; then : | |
4210 | $as_echo_n "(cached) " >&6 | |
4211 | else | |
4212 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4213 | /* end confdefs.h. */ | |
4214 | ||
4215 | int | |
4216 | main () | |
4217 | { | |
4218 | ||
4219 | ; | |
4220 | return 0; | |
4221 | } | |
4222 | _ACEOF | |
4223 | # Make sure it works both with $CC and with simple cc. | |
4224 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
4225 | # compilers refuse to overwrite an existing .o file with -o, | |
4226 | # though they will create one. | |
4227 | am_cv_prog_cc_c_o=yes | |
4228 | for am_i in 1 2; do | |
4229 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
4230 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
4231 | ac_status=$? | |
4232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4233 | (exit $ac_status); } \ | |
4234 | && test -f conftest2.$ac_objext; then | |
4235 | : OK | |
4236 | else | |
4237 | am_cv_prog_cc_c_o=no | |
4238 | break | |
4239 | fi | |
4240 | done | |
4241 | rm -f core conftest* | |
4242 | unset am_i | |
4243 | fi | |
4244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4245 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4246 | if test "$am_cv_prog_cc_c_o" != yes; then | |
4247 | # Losing compiler, so override with the script. | |
4248 | # FIXME: It is wrong to rewrite CC. | |
4249 | # But if we don't then we get into trouble of one sort or another. | |
4250 | # A longer-term fix would be to have automake use am__CC in this case, | |
4251 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4252 | CC="$am_aux_dir/compile $CC" | |
4253 | fi | |
4254 | ac_ext=c | |
4255 | ac_cpp='$CPP $CPPFLAGS' | |
4256 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4257 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4258 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4259 | ||
48310492 RH |
4260 | DEPDIR="${am__leading_dot}deps" |
4261 | ||
4262 | ac_config_commands="$ac_config_commands depfiles" | |
4263 | ||
4264 | ||
4265 | am_make=${MAKE-make} | |
4266 | cat > confinc << 'END' | |
4267 | am__doit: | |
4268 | @echo this is the am__doit target | |
4269 | .PHONY: am__doit | |
4270 | END | |
4271 | # If we don't find an include directive, just comment out the code. | |
4272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4273 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
4274 | am__include="#" | |
4275 | am__quote= | |
4276 | _am_result=none | |
4277 | # First try GNU make style include. | |
4278 | echo "include confinc" > confmf | |
22e05272 | 4279 | # Ignore all kinds of additional output from 'make'. |
48310492 RH |
4280 | case `$am_make -s -f confmf 2> /dev/null` in #( |
4281 | *the\ am__doit\ target*) | |
4282 | am__include=include | |
4283 | am__quote= | |
4284 | _am_result=GNU | |
4285 | ;; | |
4286 | esac | |
4287 | # Now try BSD make style include. | |
4288 | if test "$am__include" = "#"; then | |
4289 | echo '.include "confinc"' > confmf | |
4290 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4291 | *the\ am__doit\ target*) | |
4292 | am__include=.include | |
4293 | am__quote="\"" | |
4294 | _am_result=BSD | |
4295 | ;; | |
4296 | esac | |
4297 | fi | |
4298 | ||
4299 | ||
4300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
4301 | $as_echo "$_am_result" >&6; } | |
4302 | rm -f confinc confmf | |
4303 | ||
4304 | # Check whether --enable-dependency-tracking was given. | |
4305 | if test "${enable_dependency_tracking+set}" = set; then : | |
4306 | enableval=$enable_dependency_tracking; | |
4307 | fi | |
4308 | ||
4309 | if test "x$enable_dependency_tracking" != xno; then | |
4310 | am_depcomp="$ac_aux_dir/depcomp" | |
4311 | AMDEPBACKSLASH='\' | |
dc3368d0 | 4312 | am__nodep='_no' |
48310492 RH |
4313 | fi |
4314 | if test "x$enable_dependency_tracking" != xno; then | |
4315 | AMDEP_TRUE= | |
4316 | AMDEP_FALSE='#' | |
4317 | else | |
4318 | AMDEP_TRUE='#' | |
4319 | AMDEP_FALSE= | |
4320 | fi | |
4321 | ||
4322 | ||
4323 | ||
4324 | depcc="$CC" am_compiler_list= | |
4325 | ||
4326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4327 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
22e05272 | 4328 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
48310492 RH |
4329 | $as_echo_n "(cached) " >&6 |
4330 | else | |
4331 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4332 | # We make a subdir and do the tests there. Otherwise we can end up | |
4333 | # making bogus files that we don't know about and never remove. For | |
4334 | # instance it was reported that on HP-UX the gcc test will end up | |
22e05272 JM |
4335 | # making a dummy file named 'D' -- because '-MD' means "put the output |
4336 | # in D". | |
dc3368d0 | 4337 | rm -rf conftest.dir |
48310492 RH |
4338 | mkdir conftest.dir |
4339 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4340 | # using a relative directory. | |
4341 | cp "$am_depcomp" conftest.dir | |
4342 | cd conftest.dir | |
4343 | # We will build objects and dependencies in a subdirectory because | |
4344 | # it helps to detect inapplicable dependency modes. For instance | |
4345 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4346 | # side effect of compilation, but ICC will put the dependencies in | |
4347 | # the current directory while Tru64 will put them in the object | |
4348 | # directory. | |
4349 | mkdir sub | |
4350 | ||
4351 | am_cv_CC_dependencies_compiler_type=none | |
4352 | if test "$am_compiler_list" = ""; then | |
4353 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4354 | fi | |
4355 | am__universal=false | |
4356 | case " $depcc " in #( | |
4357 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4358 | esac | |
4359 | ||
4360 | for depmode in $am_compiler_list; do | |
4361 | # Setup a source with many dependencies, because some compilers | |
4362 | # like to wrap large dependency lists on column 80 (with \), and | |
4363 | # we should not choose a depcomp mode which is confused by this. | |
4364 | # | |
4365 | # We need to recreate these files for each test, as the compiler may | |
4366 | # overwrite some of them when testing with obscure command lines. | |
4367 | # This happens at least with the AIX C compiler. | |
4368 | : > sub/conftest.c | |
4369 | for i in 1 2 3 4 5 6; do | |
4370 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
22e05272 JM |
4371 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
4372 | # Solaris 10 /bin/sh. | |
4373 | echo '/* dummy */' > sub/conftst$i.h | |
48310492 RH |
4374 | done |
4375 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4376 | ||
22e05272 | 4377 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
48310492 | 4378 | # mode. It turns out that the SunPro C++ compiler does not properly |
22e05272 JM |
4379 | # handle '-M -o', and we need to detect this. Also, some Intel |
4380 | # versions had trouble with output in subdirs. | |
48310492 RH |
4381 | am__obj=sub/conftest.${OBJEXT-o} |
4382 | am__minus_obj="-o $am__obj" | |
4383 | case $depmode in | |
4384 | gcc) | |
4385 | # This depmode causes a compiler race in universal mode. | |
4386 | test "$am__universal" = false || continue | |
4387 | ;; | |
4388 | nosideeffect) | |
22e05272 JM |
4389 | # After this tag, mechanisms are not by side-effect, so they'll |
4390 | # only be used when explicitly requested. | |
48310492 RH |
4391 | if test "x$enable_dependency_tracking" = xyes; then |
4392 | continue | |
4393 | else | |
4394 | break | |
4395 | fi | |
4396 | ;; | |
dc3368d0 | 4397 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
22e05272 | 4398 | # This compiler won't grok '-c -o', but also, the minuso test has |
48310492 RH |
4399 | # not run yet. These depmodes are late enough in the game, and |
4400 | # so weak that their functioning should not be impacted. | |
4401 | am__obj=conftest.${OBJEXT-o} | |
4402 | am__minus_obj= | |
4403 | ;; | |
4404 | none) break ;; | |
4405 | esac | |
4406 | if depmode=$depmode \ | |
4407 | source=sub/conftest.c object=$am__obj \ | |
4408 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4409 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4410 | >/dev/null 2>conftest.err && | |
4411 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4412 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4413 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4414 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4415 | # icc doesn't choke on unknown options, it will just issue warnings | |
4416 | # or remarks (even with -Werror). So we grep stderr for any message | |
4417 | # that says an option was ignored or not supported. | |
4418 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4419 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4420 | # The diagnosis changed in icc 8.0: | |
4421 | # icc: Command line remark: option '-MP' not supported | |
4422 | if (grep 'ignoring option' conftest.err || | |
4423 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4424 | am_cv_CC_dependencies_compiler_type=$depmode | |
4425 | break | |
4426 | fi | |
4427 | fi | |
4428 | done | |
4429 | ||
4430 | cd .. | |
4431 | rm -rf conftest.dir | |
4432 | else | |
4433 | am_cv_CC_dependencies_compiler_type=none | |
4434 | fi | |
4435 | ||
4436 | fi | |
4437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4438 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4439 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
4440 | ||
4441 | if | |
4442 | test "x$enable_dependency_tracking" != xno \ | |
4443 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4444 | am__fastdepCC_TRUE= | |
4445 | am__fastdepCC_FALSE='#' | |
4446 | else | |
4447 | am__fastdepCC_TRUE='#' | |
4448 | am__fastdepCC_FALSE= | |
4449 | fi | |
4450 | ||
4451 | ||
4452 | # By default we simply use the C compiler to build assembly code. | |
4453 | ||
4454 | test "${CCAS+set}" = set || CCAS=$CC | |
4455 | test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS | |
4456 | ||
4457 | ||
4458 | ||
4459 | depcc="$CCAS" am_compiler_list= | |
4460 | ||
4461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4462 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
22e05272 | 4463 | if ${am_cv_CCAS_dependencies_compiler_type+:} false; then : |
48310492 RH |
4464 | $as_echo_n "(cached) " >&6 |
4465 | else | |
4466 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4467 | # We make a subdir and do the tests there. Otherwise we can end up | |
4468 | # making bogus files that we don't know about and never remove. For | |
4469 | # instance it was reported that on HP-UX the gcc test will end up | |
22e05272 JM |
4470 | # making a dummy file named 'D' -- because '-MD' means "put the output |
4471 | # in D". | |
dc3368d0 | 4472 | rm -rf conftest.dir |
48310492 RH |
4473 | mkdir conftest.dir |
4474 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4475 | # using a relative directory. | |
4476 | cp "$am_depcomp" conftest.dir | |
4477 | cd conftest.dir | |
4478 | # We will build objects and dependencies in a subdirectory because | |
4479 | # it helps to detect inapplicable dependency modes. For instance | |
4480 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4481 | # side effect of compilation, but ICC will put the dependencies in | |
4482 | # the current directory while Tru64 will put them in the object | |
4483 | # directory. | |
4484 | mkdir sub | |
4485 | ||
4486 | am_cv_CCAS_dependencies_compiler_type=none | |
4487 | if test "$am_compiler_list" = ""; then | |
4488 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4489 | fi | |
4490 | am__universal=false | |
4491 | ||
4492 | ||
4493 | for depmode in $am_compiler_list; do | |
4494 | # Setup a source with many dependencies, because some compilers | |
4495 | # like to wrap large dependency lists on column 80 (with \), and | |
4496 | # we should not choose a depcomp mode which is confused by this. | |
4497 | # | |
4498 | # We need to recreate these files for each test, as the compiler may | |
4499 | # overwrite some of them when testing with obscure command lines. | |
4500 | # This happens at least with the AIX C compiler. | |
4501 | : > sub/conftest.c | |
4502 | for i in 1 2 3 4 5 6; do | |
4503 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
22e05272 JM |
4504 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
4505 | # Solaris 10 /bin/sh. | |
4506 | echo '/* dummy */' > sub/conftst$i.h | |
48310492 RH |
4507 | done |
4508 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4509 | ||
22e05272 | 4510 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
48310492 | 4511 | # mode. It turns out that the SunPro C++ compiler does not properly |
22e05272 JM |
4512 | # handle '-M -o', and we need to detect this. Also, some Intel |
4513 | # versions had trouble with output in subdirs. | |
48310492 RH |
4514 | am__obj=sub/conftest.${OBJEXT-o} |
4515 | am__minus_obj="-o $am__obj" | |
4516 | case $depmode in | |
4517 | gcc) | |
4518 | # This depmode causes a compiler race in universal mode. | |
4519 | test "$am__universal" = false || continue | |
4520 | ;; | |
4521 | nosideeffect) | |
22e05272 JM |
4522 | # After this tag, mechanisms are not by side-effect, so they'll |
4523 | # only be used when explicitly requested. | |
48310492 RH |
4524 | if test "x$enable_dependency_tracking" = xyes; then |
4525 | continue | |
4526 | else | |
4527 | break | |
4528 | fi | |
4529 | ;; | |
dc3368d0 | 4530 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
22e05272 | 4531 | # This compiler won't grok '-c -o', but also, the minuso test has |
48310492 RH |
4532 | # not run yet. These depmodes are late enough in the game, and |
4533 | # so weak that their functioning should not be impacted. | |
4534 | am__obj=conftest.${OBJEXT-o} | |
4535 | am__minus_obj= | |
4536 | ;; | |
4537 | none) break ;; | |
4538 | esac | |
4539 | if depmode=$depmode \ | |
4540 | source=sub/conftest.c object=$am__obj \ | |
4541 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4542 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4543 | >/dev/null 2>conftest.err && | |
4544 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4545 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4546 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4547 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4548 | # icc doesn't choke on unknown options, it will just issue warnings | |
4549 | # or remarks (even with -Werror). So we grep stderr for any message | |
4550 | # that says an option was ignored or not supported. | |
4551 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4552 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4553 | # The diagnosis changed in icc 8.0: | |
4554 | # icc: Command line remark: option '-MP' not supported | |
4555 | if (grep 'ignoring option' conftest.err || | |
4556 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4557 | am_cv_CCAS_dependencies_compiler_type=$depmode | |
4558 | break | |
4559 | fi | |
4560 | fi | |
4561 | done | |
4562 | ||
4563 | cd .. | |
4564 | rm -rf conftest.dir | |
4565 | else | |
4566 | am_cv_CCAS_dependencies_compiler_type=none | |
4567 | fi | |
4568 | ||
4569 | fi | |
4570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 | |
4571 | $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } | |
4572 | CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type | |
4573 | ||
4574 | if | |
4575 | test "x$enable_dependency_tracking" != xno \ | |
4576 | && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then | |
4577 | am__fastdepCCAS_TRUE= | |
4578 | am__fastdepCCAS_FALSE='#' | |
4579 | else | |
4580 | am__fastdepCCAS_TRUE='#' | |
4581 | am__fastdepCCAS_FALSE= | |
4582 | fi | |
4583 | ||
4584 | ||
4585 | ||
4586 | ||
4587 | ||
4588 | ||
4589 | # In order to override CFLAGS_FOR_TARGET, all of our special flags go | |
4590 | # in XCFLAGS. But we need them in CFLAGS during configury. So put them | |
4591 | # in both places for now and restore CFLAGS at the end of config. | |
4592 | save_CFLAGS="$CFLAGS" | |
4593 | ||
4594 | # Find other programs we need. | |
4595 | if test -n "$ac_tool_prefix"; then | |
4596 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
4597 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
4598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4599 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4600 | if ${ac_cv_prog_AR+:} false; then : |
48310492 RH |
4601 | $as_echo_n "(cached) " >&6 |
4602 | else | |
4603 | if test -n "$AR"; then | |
4604 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4605 | else | |
4606 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4607 | for as_dir in $PATH | |
4608 | do | |
4609 | IFS=$as_save_IFS | |
4610 | test -z "$as_dir" && as_dir=. | |
4611 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 4612 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
48310492 RH |
4613 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
4614 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4615 | break 2 | |
4616 | fi | |
4617 | done | |
4618 | done | |
4619 | IFS=$as_save_IFS | |
4620 | ||
4621 | fi | |
4622 | fi | |
4623 | AR=$ac_cv_prog_AR | |
4624 | if test -n "$AR"; then | |
4625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
4626 | $as_echo "$AR" >&6; } | |
4627 | else | |
4628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4629 | $as_echo "no" >&6; } | |
4630 | fi | |
4631 | ||
4632 | ||
4633 | fi | |
4634 | if test -z "$ac_cv_prog_AR"; then | |
4635 | ac_ct_AR=$AR | |
4636 | # Extract the first word of "ar", so it can be a program name with args. | |
4637 | set dummy ar; ac_word=$2 | |
4638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4639 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4640 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
48310492 RH |
4641 | $as_echo_n "(cached) " >&6 |
4642 | else | |
4643 | if test -n "$ac_ct_AR"; then | |
4644 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
4645 | else | |
4646 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4647 | for as_dir in $PATH | |
4648 | do | |
4649 | IFS=$as_save_IFS | |
4650 | test -z "$as_dir" && as_dir=. | |
4651 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 4652 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
48310492 RH |
4653 | ac_cv_prog_ac_ct_AR="ar" |
4654 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4655 | break 2 | |
4656 | fi | |
4657 | done | |
4658 | done | |
4659 | IFS=$as_save_IFS | |
4660 | ||
4661 | fi | |
4662 | fi | |
4663 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
4664 | if test -n "$ac_ct_AR"; then | |
4665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
4666 | $as_echo "$ac_ct_AR" >&6; } | |
4667 | else | |
4668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4669 | $as_echo "no" >&6; } | |
4670 | fi | |
4671 | ||
4672 | if test "x$ac_ct_AR" = x; then | |
4673 | AR="" | |
4674 | else | |
4675 | case $cross_compiling:$ac_tool_warned in | |
4676 | yes:) | |
4677 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4678 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4679 | ac_tool_warned=yes ;; | |
4680 | esac | |
4681 | AR=$ac_ct_AR | |
4682 | fi | |
4683 | else | |
4684 | AR="$ac_cv_prog_AR" | |
4685 | fi | |
4686 | ||
4687 | if test -n "$ac_tool_prefix"; then | |
4688 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
4689 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
4690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4691 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4692 | if ${ac_cv_prog_NM+:} false; then : |
48310492 RH |
4693 | $as_echo_n "(cached) " >&6 |
4694 | else | |
4695 | if test -n "$NM"; then | |
4696 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
4697 | else | |
4698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4699 | for as_dir in $PATH | |
4700 | do | |
4701 | IFS=$as_save_IFS | |
4702 | test -z "$as_dir" && as_dir=. | |
4703 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 4704 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
48310492 RH |
4705 | ac_cv_prog_NM="${ac_tool_prefix}nm" |
4706 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4707 | break 2 | |
4708 | fi | |
4709 | done | |
4710 | done | |
4711 | IFS=$as_save_IFS | |
4712 | ||
4713 | fi | |
4714 | fi | |
4715 | NM=$ac_cv_prog_NM | |
4716 | if test -n "$NM"; then | |
4717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 | |
4718 | $as_echo "$NM" >&6; } | |
4719 | else | |
4720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4721 | $as_echo "no" >&6; } | |
4722 | fi | |
4723 | ||
4724 | ||
4725 | fi | |
4726 | if test -z "$ac_cv_prog_NM"; then | |
4727 | ac_ct_NM=$NM | |
4728 | # Extract the first word of "nm", so it can be a program name with args. | |
4729 | set dummy nm; ac_word=$2 | |
4730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4731 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4732 | if ${ac_cv_prog_ac_ct_NM+:} false; then : |
48310492 RH |
4733 | $as_echo_n "(cached) " >&6 |
4734 | else | |
4735 | if test -n "$ac_ct_NM"; then | |
4736 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
4737 | else | |
4738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4739 | for as_dir in $PATH | |
4740 | do | |
4741 | IFS=$as_save_IFS | |
4742 | test -z "$as_dir" && as_dir=. | |
4743 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 4744 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
48310492 RH |
4745 | ac_cv_prog_ac_ct_NM="nm" |
4746 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4747 | break 2 | |
4748 | fi | |
4749 | done | |
4750 | done | |
4751 | IFS=$as_save_IFS | |
4752 | ||
4753 | fi | |
4754 | fi | |
4755 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
4756 | if test -n "$ac_ct_NM"; then | |
4757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 | |
4758 | $as_echo "$ac_ct_NM" >&6; } | |
4759 | else | |
4760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4761 | $as_echo "no" >&6; } | |
4762 | fi | |
4763 | ||
4764 | if test "x$ac_ct_NM" = x; then | |
4765 | NM="" | |
4766 | else | |
4767 | case $cross_compiling:$ac_tool_warned in | |
4768 | yes:) | |
4769 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4770 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4771 | ac_tool_warned=yes ;; | |
4772 | esac | |
4773 | NM=$ac_ct_NM | |
4774 | fi | |
4775 | else | |
4776 | NM="$ac_cv_prog_NM" | |
4777 | fi | |
4778 | ||
4779 | if test -n "$ac_tool_prefix"; then | |
4780 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4781 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4783 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4784 | if ${ac_cv_prog_RANLIB+:} false; then : |
48310492 RH |
4785 | $as_echo_n "(cached) " >&6 |
4786 | else | |
4787 | if test -n "$RANLIB"; then | |
4788 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4789 | else | |
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 |
48310492 RH |
4797 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
4798 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4799 | break 2 | |
4800 | fi | |
4801 | done | |
4802 | done | |
4803 | IFS=$as_save_IFS | |
4804 | ||
4805 | fi | |
4806 | fi | |
4807 | RANLIB=$ac_cv_prog_RANLIB | |
4808 | if test -n "$RANLIB"; then | |
4809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
4810 | $as_echo "$RANLIB" >&6; } | |
4811 | else | |
4812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4813 | $as_echo "no" >&6; } | |
4814 | fi | |
4815 | ||
4816 | ||
4817 | fi | |
4818 | if test -z "$ac_cv_prog_RANLIB"; then | |
4819 | ac_ct_RANLIB=$RANLIB | |
4820 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4821 | set dummy ranlib; ac_word=$2 | |
4822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4823 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 4824 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
48310492 RH |
4825 | $as_echo_n "(cached) " >&6 |
4826 | else | |
4827 | if test -n "$ac_ct_RANLIB"; then | |
4828 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4829 | else | |
4830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4831 | for as_dir in $PATH | |
4832 | do | |
4833 | IFS=$as_save_IFS | |
4834 | test -z "$as_dir" && as_dir=. | |
4835 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 4836 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
48310492 RH |
4837 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
4838 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4839 | break 2 | |
4840 | fi | |
4841 | done | |
4842 | done | |
4843 | IFS=$as_save_IFS | |
4844 | ||
4845 | fi | |
4846 | fi | |
4847 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4848 | if test -n "$ac_ct_RANLIB"; then | |
4849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
4850 | $as_echo "$ac_ct_RANLIB" >&6; } | |
4851 | else | |
4852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4853 | $as_echo "no" >&6; } | |
4854 | fi | |
4855 | ||
4856 | if test "x$ac_ct_RANLIB" = x; then | |
4857 | RANLIB="ranlib-not-found-in-path-error" | |
4858 | else | |
4859 | case $cross_compiling:$ac_tool_warned in | |
4860 | yes:) | |
4861 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4862 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4863 | ac_tool_warned=yes ;; | |
4864 | esac | |
4865 | RANLIB=$ac_ct_RANLIB | |
4866 | fi | |
4867 | else | |
4868 | RANLIB="$ac_cv_prog_RANLIB" | |
4869 | fi | |
4870 | ||
48310492 RH |
4871 | |
4872 | ||
4873 | # Configure libtool | |
4874 | case `pwd` in | |
4875 | *\ * | *\ *) | |
4876 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
4877 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
4878 | esac | |
4879 | ||
4880 | ||
4881 | ||
4882 | macro_version='2.2.7a' | |
4883 | macro_revision='1.3134' | |
4884 | ||
4885 | ||
4886 | ||
4887 | ||
4888 | ||
4889 | ||
4890 | ||
4891 | ||
4892 | ||
4893 | ||
4894 | ||
4895 | ||
4896 | ||
4897 | ltmain="$ac_aux_dir/ltmain.sh" | |
4898 | ||
4899 | # Backslashify metacharacters that are still active within | |
4900 | # double-quoted strings. | |
4901 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
4902 | ||
4903 | # Same as above, but do not quote variable references. | |
4904 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
4905 | ||
4906 | # Sed substitution to delay expansion of an escaped shell variable in a | |
4907 | # double_quote_subst'ed string. | |
4908 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
4909 | ||
4910 | # Sed substitution to delay expansion of an escaped single quote. | |
4911 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
4912 | ||
4913 | # Sed substitution to avoid accidental globbing in evaled expressions | |
4914 | no_glob_subst='s/\*/\\\*/g' | |
4915 | ||
4916 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4917 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
4918 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
4919 | ||
4920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
4921 | $as_echo_n "checking how to print strings... " >&6; } | |
4922 | # Test print first, because it will be a builtin if present. | |
4923 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
4924 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4925 | ECHO='print -r --' | |
4926 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4927 | ECHO='printf %s\n' | |
4928 | else | |
4929 | # Use this function as a fallback that always works. | |
4930 | func_fallback_echo () | |
4931 | { | |
4932 | eval 'cat <<_LTECHO_EOF | |
4933 | $1 | |
4934 | _LTECHO_EOF' | |
4935 | } | |
4936 | ECHO='func_fallback_echo' | |
4937 | fi | |
4938 | ||
4939 | # func_echo_all arg... | |
4940 | # Invoke $ECHO with all args, space-separated. | |
4941 | func_echo_all () | |
4942 | { | |
4943 | $ECHO "" | |
4944 | } | |
4945 | ||
4946 | case "$ECHO" in | |
4947 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
4948 | $as_echo "printf" >&6; } ;; | |
4949 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
4950 | $as_echo "print -r" >&6; } ;; | |
4951 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
4952 | $as_echo "cat" >&6; } ;; | |
4953 | esac | |
4954 | ||
4955 | ||
4956 | ||
4957 | ||
4958 | ||
4959 | ||
4960 | ||
4961 | ||
4962 | ||
4963 | ||
4964 | ||
4965 | ||
4966 | ||
4967 | ||
4968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
4969 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
22e05272 | 4970 | if ${ac_cv_path_SED+:} false; then : |
48310492 RH |
4971 | $as_echo_n "(cached) " >&6 |
4972 | else | |
4973 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4974 | for ac_i in 1 2 3 4 5 6 7; do | |
4975 | ac_script="$ac_script$as_nl$ac_script" | |
4976 | done | |
4977 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
4978 | { ac_script=; unset ac_script;} | |
4979 | if test -z "$SED"; then | |
4980 | ac_path_SED_found=false | |
4981 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4983 | for as_dir in $PATH | |
4984 | do | |
4985 | IFS=$as_save_IFS | |
4986 | test -z "$as_dir" && as_dir=. | |
4987 | for ac_prog in sed gsed; do | |
4988 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4989 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
22e05272 | 4990 | as_fn_executable_p "$ac_path_SED" || continue |
48310492 RH |
4991 | # Check for GNU ac_path_SED and select it if it is found. |
4992 | # Check for GNU $ac_path_SED | |
4993 | case `"$ac_path_SED" --version 2>&1` in | |
4994 | *GNU*) | |
4995 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4996 | *) | |
4997 | ac_count=0 | |
4998 | $as_echo_n 0123456789 >"conftest.in" | |
4999 | while : | |
5000 | do | |
5001 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5002 | mv "conftest.tmp" "conftest.in" | |
5003 | cp "conftest.in" "conftest.nl" | |
5004 | $as_echo '' >> "conftest.nl" | |
5005 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5006 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5007 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5008 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5009 | # Best one so far, save it but keep looking for a better one | |
5010 | ac_cv_path_SED="$ac_path_SED" | |
5011 | ac_path_SED_max=$ac_count | |
5012 | fi | |
5013 | # 10*(2^10) chars as input seems more than enough | |
5014 | test $ac_count -gt 10 && break | |
5015 | done | |
5016 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5017 | esac | |
5018 | ||
5019 | $ac_path_SED_found && break 3 | |
5020 | done | |
5021 | done | |
5022 | done | |
5023 | IFS=$as_save_IFS | |
5024 | if test -z "$ac_cv_path_SED"; then | |
22e05272 | 5025 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
48310492 RH |
5026 | fi |
5027 | else | |
5028 | ac_cv_path_SED=$SED | |
5029 | fi | |
5030 | ||
5031 | fi | |
5032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5033 | $as_echo "$ac_cv_path_SED" >&6; } | |
5034 | SED="$ac_cv_path_SED" | |
5035 | rm -f conftest.sed | |
5036 | ||
5037 | test -z "$SED" && SED=sed | |
5038 | Xsed="$SED -e 1s/^X//" | |
5039 | ||
5040 | ||
5041 | ||
5042 | ||
5043 | ||
5044 | ||
5045 | ||
5046 | ||
5047 | ||
5048 | ||
5049 | ||
5050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
5051 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
22e05272 | 5052 | if ${ac_cv_path_GREP+:} false; then : |
48310492 RH |
5053 | $as_echo_n "(cached) " >&6 |
5054 | else | |
5055 | if test -z "$GREP"; then | |
5056 | ac_path_GREP_found=false | |
5057 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5058 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5059 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5060 | do | |
5061 | IFS=$as_save_IFS | |
5062 | test -z "$as_dir" && as_dir=. | |
5063 | for ac_prog in grep ggrep; do | |
5064 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5065 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
22e05272 | 5066 | as_fn_executable_p "$ac_path_GREP" || continue |
48310492 RH |
5067 | # Check for GNU ac_path_GREP and select it if it is found. |
5068 | # Check for GNU $ac_path_GREP | |
5069 | case `"$ac_path_GREP" --version 2>&1` in | |
5070 | *GNU*) | |
5071 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5072 | *) | |
5073 | ac_count=0 | |
5074 | $as_echo_n 0123456789 >"conftest.in" | |
5075 | while : | |
5076 | do | |
5077 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5078 | mv "conftest.tmp" "conftest.in" | |
5079 | cp "conftest.in" "conftest.nl" | |
5080 | $as_echo 'GREP' >> "conftest.nl" | |
5081 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5082 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5083 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5084 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5085 | # Best one so far, save it but keep looking for a better one | |
5086 | ac_cv_path_GREP="$ac_path_GREP" | |
5087 | ac_path_GREP_max=$ac_count | |
5088 | fi | |
5089 | # 10*(2^10) chars as input seems more than enough | |
5090 | test $ac_count -gt 10 && break | |
5091 | done | |
5092 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5093 | esac | |
5094 | ||
5095 | $ac_path_GREP_found && break 3 | |
5096 | done | |
5097 | done | |
5098 | done | |
5099 | IFS=$as_save_IFS | |
5100 | if test -z "$ac_cv_path_GREP"; then | |
22e05272 | 5101 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
48310492 RH |
5102 | fi |
5103 | else | |
5104 | ac_cv_path_GREP=$GREP | |
5105 | fi | |
5106 | ||
5107 | fi | |
5108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
5109 | $as_echo "$ac_cv_path_GREP" >&6; } | |
5110 | GREP="$ac_cv_path_GREP" | |
5111 | ||
5112 | ||
5113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
5114 | $as_echo_n "checking for egrep... " >&6; } | |
22e05272 | 5115 | if ${ac_cv_path_EGREP+:} false; then : |
48310492 RH |
5116 | $as_echo_n "(cached) " >&6 |
5117 | else | |
5118 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
5119 | then ac_cv_path_EGREP="$GREP -E" | |
5120 | else | |
5121 | if test -z "$EGREP"; then | |
5122 | ac_path_EGREP_found=false | |
5123 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5125 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5126 | do | |
5127 | IFS=$as_save_IFS | |
5128 | test -z "$as_dir" && as_dir=. | |
5129 | for ac_prog in egrep; do | |
5130 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5131 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
22e05272 | 5132 | as_fn_executable_p "$ac_path_EGREP" || continue |
48310492 RH |
5133 | # Check for GNU ac_path_EGREP and select it if it is found. |
5134 | # Check for GNU $ac_path_EGREP | |
5135 | case `"$ac_path_EGREP" --version 2>&1` in | |
5136 | *GNU*) | |
5137 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5138 | *) | |
5139 | ac_count=0 | |
5140 | $as_echo_n 0123456789 >"conftest.in" | |
5141 | while : | |
5142 | do | |
5143 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5144 | mv "conftest.tmp" "conftest.in" | |
5145 | cp "conftest.in" "conftest.nl" | |
5146 | $as_echo 'EGREP' >> "conftest.nl" | |
5147 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5148 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5149 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5150 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5151 | # Best one so far, save it but keep looking for a better one | |
5152 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5153 | ac_path_EGREP_max=$ac_count | |
5154 | fi | |
5155 | # 10*(2^10) chars as input seems more than enough | |
5156 | test $ac_count -gt 10 && break | |
5157 | done | |
5158 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5159 | esac | |
5160 | ||
5161 | $ac_path_EGREP_found && break 3 | |
5162 | done | |
5163 | done | |
5164 | done | |
5165 | IFS=$as_save_IFS | |
5166 | if test -z "$ac_cv_path_EGREP"; then | |
22e05272 | 5167 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
48310492 RH |
5168 | fi |
5169 | else | |
5170 | ac_cv_path_EGREP=$EGREP | |
5171 | fi | |
5172 | ||
5173 | fi | |
5174 | fi | |
5175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
5176 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
5177 | EGREP="$ac_cv_path_EGREP" | |
5178 | ||
5179 | ||
5180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
5181 | $as_echo_n "checking for fgrep... " >&6; } | |
22e05272 | 5182 | if ${ac_cv_path_FGREP+:} false; then : |
48310492 RH |
5183 | $as_echo_n "(cached) " >&6 |
5184 | else | |
5185 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
5186 | then ac_cv_path_FGREP="$GREP -F" | |
5187 | else | |
5188 | if test -z "$FGREP"; then | |
5189 | ac_path_FGREP_found=false | |
5190 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5191 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5192 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5193 | do | |
5194 | IFS=$as_save_IFS | |
5195 | test -z "$as_dir" && as_dir=. | |
5196 | for ac_prog in fgrep; do | |
5197 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5198 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
22e05272 | 5199 | as_fn_executable_p "$ac_path_FGREP" || continue |
48310492 RH |
5200 | # Check for GNU ac_path_FGREP and select it if it is found. |
5201 | # Check for GNU $ac_path_FGREP | |
5202 | case `"$ac_path_FGREP" --version 2>&1` in | |
5203 | *GNU*) | |
5204 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5205 | *) | |
5206 | ac_count=0 | |
5207 | $as_echo_n 0123456789 >"conftest.in" | |
5208 | while : | |
5209 | do | |
5210 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5211 | mv "conftest.tmp" "conftest.in" | |
5212 | cp "conftest.in" "conftest.nl" | |
5213 | $as_echo 'FGREP' >> "conftest.nl" | |
5214 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5215 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5216 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5217 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5218 | # Best one so far, save it but keep looking for a better one | |
5219 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5220 | ac_path_FGREP_max=$ac_count | |
5221 | fi | |
5222 | # 10*(2^10) chars as input seems more than enough | |
5223 | test $ac_count -gt 10 && break | |
5224 | done | |
5225 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5226 | esac | |
5227 | ||
5228 | $ac_path_FGREP_found && break 3 | |
5229 | done | |
5230 | done | |
5231 | done | |
5232 | IFS=$as_save_IFS | |
5233 | if test -z "$ac_cv_path_FGREP"; then | |
22e05272 | 5234 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
48310492 RH |
5235 | fi |
5236 | else | |
5237 | ac_cv_path_FGREP=$FGREP | |
5238 | fi | |
5239 | ||
5240 | fi | |
5241 | fi | |
5242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
5243 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5244 | FGREP="$ac_cv_path_FGREP" | |
5245 | ||
5246 | ||
5247 | test -z "$GREP" && GREP=grep | |
5248 | ||
5249 | ||
5250 | ||
5251 | ||
5252 | ||
5253 | ||
5254 | ||
5255 | ||
5256 | ||
5257 | ||
5258 | ||
5259 | ||
5260 | ||
5261 | ||
5262 | ||
5263 | ||
5264 | ||
5265 | ||
5266 | ||
5267 | # Check whether --with-gnu-ld was given. | |
5268 | if test "${with_gnu_ld+set}" = set; then : | |
5269 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
5270 | else | |
5271 | with_gnu_ld=no | |
5272 | fi | |
5273 | ||
5274 | ac_prog=ld | |
5275 | if test "$GCC" = yes; then | |
5276 | # Check if gcc -print-prog-name=ld gives a path. | |
5277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
5278 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
5279 | case $host in | |
5280 | *-*-mingw*) | |
5281 | # gcc leaves a trailing carriage return which upsets mingw | |
5282 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5283 | *) | |
5284 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5285 | esac | |
5286 | case $ac_prog in | |
5287 | # Accept absolute paths. | |
5288 | [\\/]* | ?:[\\/]*) | |
5289 | re_direlt='/[^/][^/]*/\.\./' | |
5290 | # Canonicalize the pathname of ld | |
5291 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5292 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5293 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5294 | done | |
5295 | test -z "$LD" && LD="$ac_prog" | |
5296 | ;; | |
5297 | "") | |
5298 | # If it fails, then pretend we aren't using GCC. | |
5299 | ac_prog=ld | |
5300 | ;; | |
5301 | *) | |
5302 | # If it is relative, then search for the first ld in PATH. | |
5303 | with_gnu_ld=unknown | |
5304 | ;; | |
5305 | esac | |
5306 | elif test "$with_gnu_ld" = yes; then | |
5307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
5308 | $as_echo_n "checking for GNU ld... " >&6; } | |
5309 | else | |
5310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
5311 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
5312 | fi | |
22e05272 | 5313 | if ${lt_cv_path_LD+:} false; then : |
48310492 RH |
5314 | $as_echo_n "(cached) " >&6 |
5315 | else | |
5316 | if test -z "$LD"; then | |
5317 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5318 | for ac_dir in $PATH; do | |
5319 | IFS="$lt_save_ifs" | |
5320 | test -z "$ac_dir" && ac_dir=. | |
5321 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5322 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5323 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5324 | # but apparently some variants of GNU ld only accept -v. | |
5325 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5326 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5327 | *GNU* | *'with BFD'*) | |
5328 | test "$with_gnu_ld" != no && break | |
5329 | ;; | |
5330 | *) | |
5331 | test "$with_gnu_ld" != yes && break | |
5332 | ;; | |
5333 | esac | |
5334 | fi | |
5335 | done | |
5336 | IFS="$lt_save_ifs" | |
5337 | else | |
5338 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
5339 | fi | |
5340 | fi | |
5341 | ||
5342 | LD="$lt_cv_path_LD" | |
5343 | if test -n "$LD"; then | |
5344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5345 | $as_echo "$LD" >&6; } | |
5346 | else | |
5347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5348 | $as_echo "no" >&6; } | |
5349 | fi | |
22e05272 | 5350 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
48310492 RH |
5351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
5352 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
22e05272 | 5353 | if ${lt_cv_prog_gnu_ld+:} false; then : |
48310492 RH |
5354 | $as_echo_n "(cached) " >&6 |
5355 | else | |
5356 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
5357 | case `$LD -v 2>&1 </dev/null` in | |
5358 | *GNU* | *'with BFD'*) | |
5359 | lt_cv_prog_gnu_ld=yes | |
5360 | ;; | |
5361 | *) | |
5362 | lt_cv_prog_gnu_ld=no | |
5363 | ;; | |
5364 | esac | |
5365 | fi | |
5366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
5367 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
5368 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
5369 | ||
5370 | ||
5371 | ||
5372 | ||
5373 | ||
5374 | ||
5375 | ||
5376 | ||
5377 | ||
5378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
5379 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
22e05272 | 5380 | if ${lt_cv_path_NM+:} false; then : |
48310492 RH |
5381 | $as_echo_n "(cached) " >&6 |
5382 | else | |
5383 | if test -n "$NM"; then | |
5384 | # Let the user override the test. | |
5385 | lt_cv_path_NM="$NM" | |
5386 | else | |
5387 | lt_nm_to_check="${ac_tool_prefix}nm" | |
5388 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5389 | lt_nm_to_check="$lt_nm_to_check nm" | |
5390 | fi | |
5391 | for lt_tmp_nm in $lt_nm_to_check; do | |
5392 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5393 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5394 | IFS="$lt_save_ifs" | |
5395 | test -z "$ac_dir" && ac_dir=. | |
5396 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5397 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5398 | # Check to see if the nm accepts a BSD-compat flag. | |
5399 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5400 | # nm: unknown option "B" ignored | |
5401 | # Tru64's nm complains that /dev/null is an invalid object file | |
5402 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5403 | */dev/null* | *'Invalid file or object type'*) | |
5404 | lt_cv_path_NM="$tmp_nm -B" | |
5405 | break | |
5406 | ;; | |
5407 | *) | |
5408 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5409 | */dev/null*) | |
5410 | lt_cv_path_NM="$tmp_nm -p" | |
5411 | break | |
5412 | ;; | |
5413 | *) | |
5414 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5415 | continue # so that we can try to find one that supports BSD flags | |
5416 | ;; | |
5417 | esac | |
5418 | ;; | |
5419 | esac | |
5420 | fi | |
5421 | done | |
5422 | IFS="$lt_save_ifs" | |
5423 | done | |
5424 | : ${lt_cv_path_NM=no} | |
5425 | fi | |
5426 | fi | |
5427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
5428 | $as_echo "$lt_cv_path_NM" >&6; } | |
5429 | if test "$lt_cv_path_NM" != "no"; then | |
5430 | NM="$lt_cv_path_NM" | |
5431 | else | |
5432 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
5433 | if test -n "$DUMPBIN"; then : | |
5434 | # Let the user override the test. | |
5435 | else | |
5436 | if test -n "$ac_tool_prefix"; then | |
5437 | for ac_prog in dumpbin "link -dump" | |
5438 | do | |
5439 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5440 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5442 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5443 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
48310492 RH |
5444 | $as_echo_n "(cached) " >&6 |
5445 | else | |
5446 | if test -n "$DUMPBIN"; then | |
5447 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
5448 | else | |
5449 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5450 | for as_dir in $PATH | |
5451 | do | |
5452 | IFS=$as_save_IFS | |
5453 | test -z "$as_dir" && as_dir=. | |
5454 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5455 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
48310492 RH |
5456 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
5457 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5458 | break 2 | |
5459 | fi | |
5460 | done | |
5461 | done | |
5462 | IFS=$as_save_IFS | |
5463 | ||
5464 | fi | |
5465 | fi | |
5466 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
5467 | if test -n "$DUMPBIN"; then | |
5468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
5469 | $as_echo "$DUMPBIN" >&6; } | |
5470 | else | |
5471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5472 | $as_echo "no" >&6; } | |
5473 | fi | |
5474 | ||
5475 | ||
5476 | test -n "$DUMPBIN" && break | |
5477 | done | |
5478 | fi | |
5479 | if test -z "$DUMPBIN"; then | |
5480 | ac_ct_DUMPBIN=$DUMPBIN | |
5481 | for ac_prog in dumpbin "link -dump" | |
5482 | do | |
5483 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5484 | set dummy $ac_prog; ac_word=$2 | |
5485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5486 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5487 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
48310492 RH |
5488 | $as_echo_n "(cached) " >&6 |
5489 | else | |
5490 | if test -n "$ac_ct_DUMPBIN"; then | |
5491 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
5492 | else | |
5493 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5494 | for as_dir in $PATH | |
5495 | do | |
5496 | IFS=$as_save_IFS | |
5497 | test -z "$as_dir" && as_dir=. | |
5498 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5499 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
48310492 RH |
5500 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
5501 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5502 | break 2 | |
5503 | fi | |
5504 | done | |
5505 | done | |
5506 | IFS=$as_save_IFS | |
5507 | ||
5508 | fi | |
5509 | fi | |
5510 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
5511 | if test -n "$ac_ct_DUMPBIN"; then | |
5512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
5513 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
5514 | else | |
5515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5516 | $as_echo "no" >&6; } | |
5517 | fi | |
5518 | ||
5519 | ||
5520 | test -n "$ac_ct_DUMPBIN" && break | |
5521 | done | |
5522 | ||
5523 | if test "x$ac_ct_DUMPBIN" = x; then | |
5524 | DUMPBIN=":" | |
5525 | else | |
5526 | case $cross_compiling:$ac_tool_warned in | |
5527 | yes:) | |
5528 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5529 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5530 | ac_tool_warned=yes ;; | |
5531 | esac | |
5532 | DUMPBIN=$ac_ct_DUMPBIN | |
5533 | fi | |
5534 | fi | |
5535 | ||
5536 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | |
5537 | *COFF*) | |
5538 | DUMPBIN="$DUMPBIN -symbols" | |
5539 | ;; | |
5540 | *) | |
5541 | DUMPBIN=: | |
5542 | ;; | |
5543 | esac | |
5544 | fi | |
5545 | ||
5546 | if test "$DUMPBIN" != ":"; then | |
5547 | NM="$DUMPBIN" | |
5548 | fi | |
5549 | fi | |
5550 | test -z "$NM" && NM=nm | |
5551 | ||
5552 | ||
5553 | ||
5554 | ||
5555 | ||
5556 | ||
5557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
5558 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
22e05272 | 5559 | if ${lt_cv_nm_interface+:} false; then : |
48310492 RH |
5560 | $as_echo_n "(cached) " >&6 |
5561 | else | |
5562 | lt_cv_nm_interface="BSD nm" | |
5563 | echo "int some_variable = 0;" > conftest.$ac_ext | |
5564 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
5565 | (eval "$ac_compile" 2>conftest.err) | |
5566 | cat conftest.err >&5 | |
5567 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
5568 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
5569 | cat conftest.err >&5 | |
5570 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
5571 | cat conftest.out >&5 | |
5572 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5573 | lt_cv_nm_interface="MS dumpbin" | |
5574 | fi | |
5575 | rm -f conftest* | |
5576 | fi | |
5577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
5578 | $as_echo "$lt_cv_nm_interface" >&6; } | |
5579 | ||
5580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
5581 | $as_echo_n "checking whether ln -s works... " >&6; } | |
5582 | LN_S=$as_ln_s | |
5583 | if test "$LN_S" = "ln -s"; then | |
5584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5585 | $as_echo "yes" >&6; } | |
5586 | else | |
5587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
5588 | $as_echo "no, using $LN_S" >&6; } | |
5589 | fi | |
5590 | ||
5591 | # find the maximum length of command line arguments | |
5592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
5593 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
22e05272 | 5594 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
48310492 RH |
5595 | $as_echo_n "(cached) " >&6 |
5596 | else | |
5597 | i=0 | |
5598 | teststring="ABCD" | |
5599 | ||
5600 | case $build_os in | |
5601 | msdosdjgpp*) | |
5602 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5603 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5604 | # during glob expansion). Even if it were fixed, the result of this | |
5605 | # check would be larger than it should be. | |
5606 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5607 | ;; | |
5608 | ||
5609 | gnu*) | |
5610 | # Under GNU Hurd, this test is not required because there is | |
5611 | # no limit to the length of command line arguments. | |
5612 | # Libtool will interpret -1 as no limit whatsoever | |
5613 | lt_cv_sys_max_cmd_len=-1; | |
5614 | ;; | |
5615 | ||
5616 | cygwin* | mingw* | cegcc*) | |
5617 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5618 | # about 5 minutes as the teststring grows exponentially. | |
5619 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5620 | # you end up with a "frozen" computer, even though with patience | |
5621 | # the test eventually succeeds (with a max line length of 256k). | |
5622 | # Instead, let's just punt: use the minimum linelength reported by | |
5623 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5624 | lt_cv_sys_max_cmd_len=8192; | |
5625 | ;; | |
5626 | ||
5627 | mint*) | |
5628 | # On MiNT this can take a long time and run out of memory. | |
5629 | lt_cv_sys_max_cmd_len=8192; | |
5630 | ;; | |
5631 | ||
5632 | amigaos*) | |
5633 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5634 | # So we just punt and use a minimum line length of 8192. | |
5635 | lt_cv_sys_max_cmd_len=8192; | |
5636 | ;; | |
5637 | ||
5638 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
5639 | # This has been around since 386BSD, at least. Likely further. | |
5640 | if test -x /sbin/sysctl; then | |
5641 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5642 | elif test -x /usr/sbin/sysctl; then | |
5643 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5644 | else | |
5645 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5646 | fi | |
5647 | # And add a safety zone | |
5648 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5649 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5650 | ;; | |
5651 | ||
5652 | interix*) | |
5653 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5654 | lt_cv_sys_max_cmd_len=196608 | |
5655 | ;; | |
5656 | ||
5657 | osf*) | |
5658 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5659 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5660 | # nice to cause kernel panics so lets avoid the loop below. | |
5661 | # First set a reasonable default. | |
5662 | lt_cv_sys_max_cmd_len=16384 | |
5663 | # | |
5664 | if test -x /sbin/sysconfig; then | |
5665 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5666 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5667 | esac | |
5668 | fi | |
5669 | ;; | |
5670 | sco3.2v5*) | |
5671 | lt_cv_sys_max_cmd_len=102400 | |
5672 | ;; | |
5673 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5674 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5675 | if test -n "$kargmax"; then | |
5676 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5677 | else | |
5678 | lt_cv_sys_max_cmd_len=32768 | |
5679 | fi | |
5680 | ;; | |
5681 | *) | |
5682 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
5683 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
5684 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5685 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5686 | else | |
5687 | # Make teststring a little bigger before we do anything with it. | |
5688 | # a 1K string should be a reasonable start. | |
5689 | for i in 1 2 3 4 5 6 7 8 ; do | |
5690 | teststring=$teststring$teststring | |
5691 | done | |
5692 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5693 | # If test is not a shell built-in, we'll probably end up computing a | |
5694 | # maximum length that is only half of the actual maximum length, but | |
5695 | # we can't tell. | |
5696 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ | |
5697 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
5698 | test $i != 17 # 1/2 MB should be enough | |
5699 | do | |
5700 | i=`expr $i + 1` | |
5701 | teststring=$teststring$teststring | |
5702 | done | |
5703 | # Only check the string length outside the loop. | |
5704 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5705 | teststring= | |
5706 | # Add a significant safety factor because C++ compilers can tack on | |
5707 | # massive amounts of additional arguments before passing them to the | |
5708 | # linker. It appears as though 1/2 is a usable value. | |
5709 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5710 | fi | |
5711 | ;; | |
5712 | esac | |
5713 | ||
5714 | fi | |
5715 | ||
5716 | if test -n $lt_cv_sys_max_cmd_len ; then | |
5717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
5718 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
5719 | else | |
5720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
5721 | $as_echo "none" >&6; } | |
5722 | fi | |
5723 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
5724 | ||
5725 | ||
5726 | ||
5727 | ||
5728 | ||
5729 | ||
5730 | : ${CP="cp -f"} | |
5731 | : ${MV="mv -f"} | |
5732 | : ${RM="rm -f"} | |
5733 | ||
5734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
5735 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
5736 | # Try some XSI features | |
5737 | xsi_shell=no | |
5738 | ( _lt_dummy="a/b/c" | |
5739 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
5740 | = c,a/b,, \ | |
5741 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
5742 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
5743 | && xsi_shell=yes | |
5744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
5745 | $as_echo "$xsi_shell" >&6; } | |
5746 | ||
5747 | ||
5748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
5749 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
5750 | lt_shell_append=no | |
5751 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5752 | >/dev/null 2>&1 \ | |
5753 | && lt_shell_append=yes | |
5754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
5755 | $as_echo "$lt_shell_append" >&6; } | |
5756 | ||
5757 | ||
5758 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
5759 | lt_unset=unset | |
5760 | else | |
5761 | lt_unset=false | |
5762 | fi | |
5763 | ||
5764 | ||
5765 | ||
5766 | ||
5767 | ||
5768 | # test EBCDIC or ASCII | |
5769 | case `echo X|tr X '\101'` in | |
5770 | A) # ASCII based system | |
5771 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5772 | lt_SP2NL='tr \040 \012' | |
5773 | lt_NL2SP='tr \015\012 \040\040' | |
5774 | ;; | |
5775 | *) # EBCDIC based system | |
5776 | lt_SP2NL='tr \100 \n' | |
5777 | lt_NL2SP='tr \r\n \100\100' | |
5778 | ;; | |
5779 | esac | |
5780 | ||
5781 | ||
5782 | ||
5783 | ||
5784 | ||
5785 | ||
5786 | ||
5787 | ||
5788 | ||
5789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
5790 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
22e05272 | 5791 | if ${lt_cv_ld_reload_flag+:} false; then : |
48310492 RH |
5792 | $as_echo_n "(cached) " >&6 |
5793 | else | |
5794 | lt_cv_ld_reload_flag='-r' | |
5795 | fi | |
5796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
5797 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
5798 | reload_flag=$lt_cv_ld_reload_flag | |
5799 | case $reload_flag in | |
5800 | "" | " "*) ;; | |
5801 | *) reload_flag=" $reload_flag" ;; | |
5802 | esac | |
5803 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5804 | case $host_os in | |
5805 | darwin*) | |
5806 | if test "$GCC" = yes; then | |
5807 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5808 | else | |
5809 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5810 | fi | |
5811 | ;; | |
5812 | esac | |
5813 | ||
5814 | ||
5815 | ||
5816 | ||
5817 | ||
5818 | ||
5819 | ||
5820 | ||
5821 | ||
5822 | if test -n "$ac_tool_prefix"; then | |
5823 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5824 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
5825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5826 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5827 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
48310492 RH |
5828 | $as_echo_n "(cached) " >&6 |
5829 | else | |
5830 | if test -n "$OBJDUMP"; then | |
5831 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5832 | else | |
5833 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5834 | for as_dir in $PATH | |
5835 | do | |
5836 | IFS=$as_save_IFS | |
5837 | test -z "$as_dir" && as_dir=. | |
5838 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5839 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
48310492 RH |
5840 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
5841 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5842 | break 2 | |
5843 | fi | |
5844 | done | |
5845 | done | |
5846 | IFS=$as_save_IFS | |
5847 | ||
5848 | fi | |
5849 | fi | |
5850 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5851 | if test -n "$OBJDUMP"; then | |
5852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
5853 | $as_echo "$OBJDUMP" >&6; } | |
5854 | else | |
5855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5856 | $as_echo "no" >&6; } | |
5857 | fi | |
5858 | ||
5859 | ||
5860 | fi | |
5861 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5862 | ac_ct_OBJDUMP=$OBJDUMP | |
5863 | # Extract the first word of "objdump", so it can be a program name with args. | |
5864 | set dummy objdump; ac_word=$2 | |
5865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5866 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 5867 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
48310492 RH |
5868 | $as_echo_n "(cached) " >&6 |
5869 | else | |
5870 | if test -n "$ac_ct_OBJDUMP"; then | |
5871 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5872 | else | |
5873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5874 | for as_dir in $PATH | |
5875 | do | |
5876 | IFS=$as_save_IFS | |
5877 | test -z "$as_dir" && as_dir=. | |
5878 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 5879 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
48310492 RH |
5880 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
5881 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5882 | break 2 | |
5883 | fi | |
5884 | done | |
5885 | done | |
5886 | IFS=$as_save_IFS | |
5887 | ||
5888 | fi | |
5889 | fi | |
5890 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5891 | if test -n "$ac_ct_OBJDUMP"; then | |
5892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
5893 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
5894 | else | |
5895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5896 | $as_echo "no" >&6; } | |
5897 | fi | |
5898 | ||
5899 | if test "x$ac_ct_OBJDUMP" = x; then | |
5900 | OBJDUMP="false" | |
5901 | else | |
5902 | case $cross_compiling:$ac_tool_warned in | |
5903 | yes:) | |
5904 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5905 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5906 | ac_tool_warned=yes ;; | |
5907 | esac | |
5908 | OBJDUMP=$ac_ct_OBJDUMP | |
5909 | fi | |
5910 | else | |
5911 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
5912 | fi | |
5913 | ||
5914 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
5915 | ||
5916 | ||
5917 | ||
5918 | ||
5919 | ||
5920 | ||
5921 | ||
5922 | ||
5923 | ||
5924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | |
5925 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
22e05272 | 5926 | if ${lt_cv_deplibs_check_method+:} false; then : |
48310492 RH |
5927 | $as_echo_n "(cached) " >&6 |
5928 | else | |
5929 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
5930 | lt_cv_file_magic_test_file= | |
5931 | lt_cv_deplibs_check_method='unknown' | |
5932 | # Need to set the preceding variable on all platforms that support | |
5933 | # interlibrary dependencies. | |
5934 | # 'none' -- dependencies not supported. | |
5935 | # `unknown' -- same as none, but documents that we really don't know. | |
5936 | # 'pass_all' -- all dependencies passed with no checks. | |
5937 | # 'test_compile' -- check by making test program. | |
5938 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
5939 | # which responds to the $file_magic_cmd with a given extended regex. | |
5940 | # If you have `file' or equivalent on your system and you're not sure | |
5941 | # whether `pass_all' will *always* work, you probably want this one. | |
5942 | ||
5943 | case $host_os in | |
5944 | aix[4-9]*) | |
5945 | lt_cv_deplibs_check_method=pass_all | |
5946 | ;; | |
5947 | ||
5948 | beos*) | |
5949 | lt_cv_deplibs_check_method=pass_all | |
5950 | ;; | |
5951 | ||
5952 | bsdi[45]*) | |
5953 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5954 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5955 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5956 | ;; | |
5957 | ||
5958 | cygwin*) | |
5959 | # func_win32_libid is a shell function defined in ltmain.sh | |
5960 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5961 | lt_cv_file_magic_cmd='func_win32_libid' | |
5962 | ;; | |
5963 | ||
5964 | mingw* | pw32*) | |
5965 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5966 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5967 | # unless we find 'file', for example because we are cross-compiling. | |
5968 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
5969 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
5970 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5971 | lt_cv_file_magic_cmd='func_win32_libid' | |
5972 | else | |
5973 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
5974 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5975 | fi | |
5976 | ;; | |
5977 | ||
5978 | cegcc*) | |
5979 | # use the weaker test based on 'objdump'. See mingw*. | |
5980 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5981 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5982 | ;; | |
5983 | ||
5984 | darwin* | rhapsody*) | |
5985 | lt_cv_deplibs_check_method=pass_all | |
5986 | ;; | |
5987 | ||
5988 | freebsd* | dragonfly*) | |
5989 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5990 | case $host_cpu in | |
5991 | i*86 ) | |
5992 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5993 | # Let's accept both of them until this is cleared up. | |
5994 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5995 | lt_cv_file_magic_cmd=/usr/bin/file | |
5996 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5997 | ;; | |
5998 | esac | |
5999 | else | |
6000 | lt_cv_deplibs_check_method=pass_all | |
6001 | fi | |
6002 | ;; | |
6003 | ||
6004 | gnu*) | |
6005 | lt_cv_deplibs_check_method=pass_all | |
6006 | ;; | |
6007 | ||
6008 | haiku*) | |
6009 | lt_cv_deplibs_check_method=pass_all | |
6010 | ;; | |
6011 | ||
6012 | hpux10.20* | hpux11*) | |
6013 | lt_cv_file_magic_cmd=/usr/bin/file | |
6014 | case $host_cpu in | |
6015 | ia64*) | |
6016 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6017 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6018 | ;; | |
6019 | hppa*64*) | |
6020 | 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]' | |
6021 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6022 | ;; | |
6023 | *) | |
6024 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
6025 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6026 | ;; | |
6027 | esac | |
6028 | ;; | |
6029 | ||
6030 | interix[3-9]*) | |
6031 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6032 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6033 | ;; | |
6034 | ||
6035 | irix5* | irix6* | nonstopux*) | |
6036 | case $LD in | |
6037 | *-32|*"-32 ") libmagic=32-bit;; | |
6038 | *-n32|*"-n32 ") libmagic=N32;; | |
6039 | *-64|*"-64 ") libmagic=64-bit;; | |
6040 | *) libmagic=never-match;; | |
6041 | esac | |
6042 | lt_cv_deplibs_check_method=pass_all | |
6043 | ;; | |
6044 | ||
6045 | # This must be Linux ELF. | |
b1e21e5a | 6046 | linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
48310492 RH |
6047 | lt_cv_deplibs_check_method=pass_all |
6048 | ;; | |
6049 | ||
6050 | netbsd*) | |
6051 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6052 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6053 | else | |
6054 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6055 | fi | |
6056 | ;; | |
6057 | ||
6058 | newos6*) | |
6059 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6060 | lt_cv_file_magic_cmd=/usr/bin/file | |
6061 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6062 | ;; | |
6063 | ||
6064 | *nto* | *qnx*) | |
6065 | lt_cv_deplibs_check_method=pass_all | |
6066 | ;; | |
6067 | ||
6068 | openbsd*) | |
6069 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6070 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6071 | else | |
6072 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6073 | fi | |
6074 | ;; | |
6075 | ||
6076 | osf3* | osf4* | osf5*) | |
6077 | lt_cv_deplibs_check_method=pass_all | |
6078 | ;; | |
6079 | ||
6080 | rdos*) | |
6081 | lt_cv_deplibs_check_method=pass_all | |
6082 | ;; | |
6083 | ||
6084 | solaris*) | |
6085 | lt_cv_deplibs_check_method=pass_all | |
6086 | ;; | |
6087 | ||
6088 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
6089 | lt_cv_deplibs_check_method=pass_all | |
6090 | ;; | |
6091 | ||
6092 | sysv4 | sysv4.3*) | |
6093 | case $host_vendor in | |
6094 | motorola) | |
6095 | 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]' | |
6096 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6097 | ;; | |
6098 | ncr) | |
6099 | lt_cv_deplibs_check_method=pass_all | |
6100 | ;; | |
6101 | sequent) | |
6102 | lt_cv_file_magic_cmd='/bin/file' | |
6103 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6104 | ;; | |
6105 | sni) | |
6106 | lt_cv_file_magic_cmd='/bin/file' | |
6107 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6108 | lt_cv_file_magic_test_file=/lib/libc.so | |
6109 | ;; | |
6110 | siemens) | |
6111 | lt_cv_deplibs_check_method=pass_all | |
6112 | ;; | |
6113 | pc) | |
6114 | lt_cv_deplibs_check_method=pass_all | |
6115 | ;; | |
6116 | esac | |
6117 | ;; | |
6118 | ||
6119 | tpf*) | |
6120 | lt_cv_deplibs_check_method=pass_all | |
6121 | ;; | |
0ecd0f1c OH |
6122 | vxworks*) |
6123 | # Assume VxWorks cross toolchains are built on Linux, possibly | |
6124 | # as canadian for Windows hosts. | |
6125 | lt_cv_deplibs_check_method=pass_all | |
6126 | ;; | |
48310492 RH |
6127 | esac |
6128 | ||
6129 | fi | |
6130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
6131 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
6132 | file_magic_cmd=$lt_cv_file_magic_cmd | |
6133 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6134 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
6135 | ||
6136 | ||
6137 | ||
6138 | ||
6139 | ||
6140 | ||
6141 | ||
6142 | ||
6143 | ||
6144 | ||
6145 | ||
6146 | ||
126f707e L |
6147 | plugin_option= |
6148 | plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" | |
6149 | for plugin in $plugin_names; do | |
6150 | plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` | |
6151 | if test x$plugin_so = x$plugin; then | |
6152 | plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` | |
6153 | fi | |
6154 | if test x$plugin_so != x$plugin; then | |
6155 | plugin_option="--plugin $plugin_so" | |
6156 | break | |
6157 | fi | |
6158 | done | |
6159 | ||
48310492 RH |
6160 | if test -n "$ac_tool_prefix"; then |
6161 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6162 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
6163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6164 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6165 | if ${ac_cv_prog_AR+:} false; then : |
48310492 RH |
6166 | $as_echo_n "(cached) " >&6 |
6167 | else | |
6168 | if test -n "$AR"; then | |
6169 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6170 | else | |
6171 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6172 | for as_dir in $PATH | |
6173 | do | |
6174 | IFS=$as_save_IFS | |
6175 | test -z "$as_dir" && as_dir=. | |
6176 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6177 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
48310492 RH |
6178 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
6179 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6180 | break 2 | |
6181 | fi | |
6182 | done | |
6183 | done | |
6184 | IFS=$as_save_IFS | |
6185 | ||
6186 | fi | |
6187 | fi | |
6188 | AR=$ac_cv_prog_AR | |
6189 | if test -n "$AR"; then | |
6190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6191 | $as_echo "$AR" >&6; } | |
6192 | else | |
6193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6194 | $as_echo "no" >&6; } | |
6195 | fi | |
6196 | ||
6197 | ||
6198 | fi | |
6199 | if test -z "$ac_cv_prog_AR"; then | |
6200 | ac_ct_AR=$AR | |
6201 | # Extract the first word of "ar", so it can be a program name with args. | |
6202 | set dummy ar; ac_word=$2 | |
6203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6204 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6205 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
48310492 RH |
6206 | $as_echo_n "(cached) " >&6 |
6207 | else | |
6208 | if test -n "$ac_ct_AR"; then | |
6209 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6210 | else | |
6211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6212 | for as_dir in $PATH | |
6213 | do | |
6214 | IFS=$as_save_IFS | |
6215 | test -z "$as_dir" && as_dir=. | |
6216 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6217 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
48310492 RH |
6218 | ac_cv_prog_ac_ct_AR="ar" |
6219 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6220 | break 2 | |
6221 | fi | |
6222 | done | |
6223 | done | |
6224 | IFS=$as_save_IFS | |
6225 | ||
6226 | fi | |
6227 | fi | |
6228 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6229 | if test -n "$ac_ct_AR"; then | |
6230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6231 | $as_echo "$ac_ct_AR" >&6; } | |
6232 | else | |
6233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6234 | $as_echo "no" >&6; } | |
6235 | fi | |
6236 | ||
6237 | if test "x$ac_ct_AR" = x; then | |
6238 | AR="false" | |
6239 | else | |
6240 | case $cross_compiling:$ac_tool_warned in | |
6241 | yes:) | |
6242 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6243 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6244 | ac_tool_warned=yes ;; | |
6245 | esac | |
6246 | AR=$ac_ct_AR | |
6247 | fi | |
6248 | else | |
6249 | AR="$ac_cv_prog_AR" | |
6250 | fi | |
6251 | ||
6252 | test -z "$AR" && AR=ar | |
126f707e L |
6253 | if test -n "$plugin_option"; then |
6254 | if $AR --help 2>&1 | grep -q "\--plugin"; then | |
6255 | AR="$AR $plugin_option" | |
6256 | fi | |
6257 | fi | |
48310492 RH |
6258 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
6259 | ||
6260 | ||
6261 | ||
6262 | ||
6263 | ||
6264 | ||
6265 | ||
6266 | ||
6267 | ||
6268 | ||
6269 | ||
6270 | if test -n "$ac_tool_prefix"; then | |
6271 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6272 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
6273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6274 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6275 | if ${ac_cv_prog_STRIP+:} false; then : |
48310492 RH |
6276 | $as_echo_n "(cached) " >&6 |
6277 | else | |
6278 | if test -n "$STRIP"; then | |
6279 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6280 | else | |
6281 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6282 | for as_dir in $PATH | |
6283 | do | |
6284 | IFS=$as_save_IFS | |
6285 | test -z "$as_dir" && as_dir=. | |
6286 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6287 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
48310492 RH |
6288 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
6289 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6290 | break 2 | |
6291 | fi | |
6292 | done | |
6293 | done | |
6294 | IFS=$as_save_IFS | |
6295 | ||
6296 | fi | |
6297 | fi | |
6298 | STRIP=$ac_cv_prog_STRIP | |
6299 | if test -n "$STRIP"; then | |
6300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
6301 | $as_echo "$STRIP" >&6; } | |
6302 | else | |
6303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6304 | $as_echo "no" >&6; } | |
6305 | fi | |
6306 | ||
6307 | ||
6308 | fi | |
6309 | if test -z "$ac_cv_prog_STRIP"; then | |
6310 | ac_ct_STRIP=$STRIP | |
6311 | # Extract the first word of "strip", so it can be a program name with args. | |
6312 | set dummy strip; ac_word=$2 | |
6313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6314 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6315 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
48310492 RH |
6316 | $as_echo_n "(cached) " >&6 |
6317 | else | |
6318 | if test -n "$ac_ct_STRIP"; then | |
6319 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6320 | else | |
6321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6322 | for as_dir in $PATH | |
6323 | do | |
6324 | IFS=$as_save_IFS | |
6325 | test -z "$as_dir" && as_dir=. | |
6326 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6327 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
48310492 RH |
6328 | ac_cv_prog_ac_ct_STRIP="strip" |
6329 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6330 | break 2 | |
6331 | fi | |
6332 | done | |
6333 | done | |
6334 | IFS=$as_save_IFS | |
6335 | ||
6336 | fi | |
6337 | fi | |
6338 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6339 | if test -n "$ac_ct_STRIP"; then | |
6340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
6341 | $as_echo "$ac_ct_STRIP" >&6; } | |
6342 | else | |
6343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6344 | $as_echo "no" >&6; } | |
6345 | fi | |
6346 | ||
6347 | if test "x$ac_ct_STRIP" = x; then | |
6348 | STRIP=":" | |
6349 | else | |
6350 | case $cross_compiling:$ac_tool_warned in | |
6351 | yes:) | |
6352 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6353 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6354 | ac_tool_warned=yes ;; | |
6355 | esac | |
6356 | STRIP=$ac_ct_STRIP | |
6357 | fi | |
6358 | else | |
6359 | STRIP="$ac_cv_prog_STRIP" | |
6360 | fi | |
6361 | ||
6362 | test -z "$STRIP" && STRIP=: | |
6363 | ||
6364 | ||
6365 | ||
6366 | ||
6367 | ||
6368 | ||
6369 | if test -n "$ac_tool_prefix"; then | |
6370 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6371 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6373 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6374 | if ${ac_cv_prog_RANLIB+:} false; then : |
48310492 RH |
6375 | $as_echo_n "(cached) " >&6 |
6376 | else | |
6377 | if test -n "$RANLIB"; then | |
6378 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6379 | else | |
6380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6381 | for as_dir in $PATH | |
6382 | do | |
6383 | IFS=$as_save_IFS | |
6384 | test -z "$as_dir" && as_dir=. | |
6385 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6386 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
48310492 RH |
6387 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6388 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6389 | break 2 | |
6390 | fi | |
6391 | done | |
6392 | done | |
6393 | IFS=$as_save_IFS | |
6394 | ||
6395 | fi | |
6396 | fi | |
6397 | RANLIB=$ac_cv_prog_RANLIB | |
6398 | if test -n "$RANLIB"; then | |
6399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6400 | $as_echo "$RANLIB" >&6; } | |
6401 | else | |
6402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6403 | $as_echo "no" >&6; } | |
6404 | fi | |
6405 | ||
6406 | ||
6407 | fi | |
6408 | if test -z "$ac_cv_prog_RANLIB"; then | |
6409 | ac_ct_RANLIB=$RANLIB | |
6410 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6411 | set dummy ranlib; ac_word=$2 | |
6412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6413 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 6414 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
48310492 RH |
6415 | $as_echo_n "(cached) " >&6 |
6416 | else | |
6417 | if test -n "$ac_ct_RANLIB"; then | |
6418 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6419 | else | |
6420 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6421 | for as_dir in $PATH | |
6422 | do | |
6423 | IFS=$as_save_IFS | |
6424 | test -z "$as_dir" && as_dir=. | |
6425 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 6426 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
48310492 RH |
6427 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6428 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6429 | break 2 | |
6430 | fi | |
6431 | done | |
6432 | done | |
6433 | IFS=$as_save_IFS | |
6434 | ||
6435 | fi | |
6436 | fi | |
6437 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6438 | if test -n "$ac_ct_RANLIB"; then | |
6439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6440 | $as_echo "$ac_ct_RANLIB" >&6; } | |
6441 | else | |
6442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6443 | $as_echo "no" >&6; } | |
6444 | fi | |
6445 | ||
6446 | if test "x$ac_ct_RANLIB" = x; then | |
6447 | RANLIB=":" | |
6448 | else | |
6449 | case $cross_compiling:$ac_tool_warned in | |
6450 | yes:) | |
6451 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6452 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6453 | ac_tool_warned=yes ;; | |
6454 | esac | |
6455 | RANLIB=$ac_ct_RANLIB | |
6456 | fi | |
6457 | else | |
6458 | RANLIB="$ac_cv_prog_RANLIB" | |
6459 | fi | |
6460 | ||
6461 | test -z "$RANLIB" && RANLIB=: | |
126f707e L |
6462 | if test -n "$plugin_option" && test "$RANLIB" != ":"; then |
6463 | if $RANLIB --help 2>&1 | grep -q "\--plugin"; then | |
6464 | RANLIB="$RANLIB $plugin_option" | |
6465 | fi | |
6466 | fi | |
48310492 RH |
6467 | |
6468 | ||
6469 | ||
6470 | ||
6471 | ||
6472 | ||
6473 | # Determine commands to create old-style static archives. | |
6474 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
6475 | old_postinstall_cmds='chmod 644 $oldlib' | |
6476 | old_postuninstall_cmds= | |
6477 | ||
6478 | if test -n "$RANLIB"; then | |
6479 | case $host_os in | |
6480 | openbsd*) | |
6481 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
6482 | ;; | |
6483 | *) | |
6484 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
6485 | ;; | |
6486 | esac | |
6487 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
6488 | fi | |
6489 | ||
6490 | case $host_os in | |
6491 | darwin*) | |
6492 | lock_old_archive_extraction=yes ;; | |
6493 | *) | |
6494 | lock_old_archive_extraction=no ;; | |
6495 | esac | |
6496 | ||
6497 | ||
6498 | ||
6499 | ||
6500 | ||
6501 | ||
6502 | ||
6503 | ||
6504 | ||
6505 | ||
6506 | ||
6507 | ||
6508 | ||
6509 | ||
6510 | ||
6511 | ||
6512 | ||
6513 | ||
6514 | ||
6515 | ||
6516 | ||
6517 | ||
6518 | ||
6519 | ||
6520 | ||
6521 | ||
6522 | ||
6523 | ||
6524 | ||
6525 | ||
6526 | ||
6527 | ||
6528 | ||
6529 | ||
6530 | ||
6531 | ||
6532 | ||
6533 | ||
6534 | ||
6535 | # If no C compiler was specified, use CC. | |
6536 | LTCC=${LTCC-"$CC"} | |
6537 | ||
6538 | # If no C compiler flags were specified, use CFLAGS. | |
6539 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6540 | ||
6541 | # Allow CC to be a program name with arguments. | |
6542 | compiler=$CC | |
6543 | ||
6544 | ||
6545 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
6546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
6547 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
22e05272 | 6548 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
48310492 RH |
6549 | $as_echo_n "(cached) " >&6 |
6550 | else | |
6551 | ||
6552 | # These are sane defaults that work on at least a few old systems. | |
6553 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
6554 | ||
6555 | # Character class describing NM global symbol codes. | |
6556 | symcode='[BCDEGRST]' | |
6557 | ||
6558 | # Regexp to match symbols that can be accessed directly from C. | |
6559 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
6560 | ||
6561 | # Define system-specific variables. | |
6562 | case $host_os in | |
6563 | aix*) | |
6564 | symcode='[BCDT]' | |
6565 | ;; | |
6566 | cygwin* | mingw* | pw32* | cegcc*) | |
6567 | symcode='[ABCDGISTW]' | |
6568 | ;; | |
6569 | hpux*) | |
6570 | if test "$host_cpu" = ia64; then | |
6571 | symcode='[ABCDEGRST]' | |
6572 | fi | |
6573 | ;; | |
6574 | irix* | nonstopux*) | |
6575 | symcode='[BCDEGRST]' | |
6576 | ;; | |
6577 | osf*) | |
6578 | symcode='[BCDEGQRST]' | |
6579 | ;; | |
6580 | solaris*) | |
6581 | symcode='[BDRT]' | |
6582 | ;; | |
6583 | sco3.2v5*) | |
6584 | symcode='[DT]' | |
6585 | ;; | |
6586 | sysv4.2uw2*) | |
6587 | symcode='[DT]' | |
6588 | ;; | |
6589 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6590 | symcode='[ABDT]' | |
6591 | ;; | |
6592 | sysv4) | |
6593 | symcode='[DFNSTU]' | |
6594 | ;; | |
6595 | esac | |
6596 | ||
6597 | # If we're using GNU nm, then use its standard symbol codes. | |
6598 | case `$NM -V 2>&1` in | |
6599 | *GNU* | *'with BFD'*) | |
6600 | symcode='[ABCDGIRSTW]' ;; | |
6601 | esac | |
6602 | ||
6603 | # Transform an extracted symbol line into a proper C declaration. | |
6604 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6605 | # so use this general approach. | |
6606 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
6607 | ||
6608 | # Transform an extracted symbol line into symbol name and symbol address | |
6609 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
6610 | 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'" | |
6611 | ||
6612 | # Handle CRLF in mingw tool chain | |
6613 | opt_cr= | |
6614 | case $build_os in | |
6615 | mingw*) | |
6616 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6617 | ;; | |
6618 | esac | |
6619 | ||
6620 | # Try without a prefix underscore, then with it. | |
6621 | for ac_symprfx in "" "_"; do | |
6622 | ||
6623 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
6624 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
6625 | ||
6626 | # Write the raw and C identifiers. | |
6627 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6628 | # Fake it for dumpbin and say T for any non-static function | |
6629 | # and D for any global variable. | |
6630 | # Also find C++ and __fastcall symbols from MSVC++, | |
6631 | # which start with @ or ?. | |
6632 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6633 | " {last_section=section; section=\$ 3};"\ | |
6634 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6635 | " \$ 0!~/External *\|/{next};"\ | |
6636 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6637 | " {if(hide[section]) next};"\ | |
6638 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
6639 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
6640 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
6641 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
6642 | " ' prfx=^$ac_symprfx" | |
6643 | else | |
6644 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6645 | fi | |
6646 | ||
6647 | # Check to see that the pipe works correctly. | |
6648 | pipe_works=no | |
6649 | ||
6650 | rm -f conftest* | |
6651 | cat > conftest.$ac_ext <<_LT_EOF | |
6652 | #ifdef __cplusplus | |
6653 | extern "C" { | |
6654 | #endif | |
6655 | char nm_test_var; | |
6656 | void nm_test_func(void); | |
6657 | void nm_test_func(void){} | |
6658 | #ifdef __cplusplus | |
6659 | } | |
6660 | #endif | |
6661 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6662 | _LT_EOF | |
6663 | ||
6664 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6665 | (eval $ac_compile) 2>&5 | |
6666 | ac_status=$? | |
6667 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6668 | test $ac_status = 0; }; then | |
6669 | # Now try to grab the symbols. | |
6670 | nlist=conftest.nm | |
6671 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
6672 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
6673 | ac_status=$? | |
6674 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6675 | test $ac_status = 0; } && test -s "$nlist"; then | |
6676 | # Try sorting and uniquifying the output. | |
6677 | if sort "$nlist" | uniq > "$nlist"T; then | |
6678 | mv -f "$nlist"T "$nlist" | |
6679 | else | |
6680 | rm -f "$nlist"T | |
6681 | fi | |
6682 | ||
6683 | # Make sure that we snagged all the symbols we need. | |
6684 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6685 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6686 | cat <<_LT_EOF > conftest.$ac_ext | |
6687 | #ifdef __cplusplus | |
6688 | extern "C" { | |
6689 | #endif | |
6690 | ||
6691 | _LT_EOF | |
6692 | # Now generate the symbol file. | |
6693 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
6694 | ||
6695 | cat <<_LT_EOF >> conftest.$ac_ext | |
6696 | ||
6697 | /* The mapping between symbol names and symbols. */ | |
6698 | const struct { | |
6699 | const char *name; | |
6700 | void *address; | |
6701 | } | |
6702 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6703 | { | |
6704 | { "@PROGRAM@", (void *) 0 }, | |
6705 | _LT_EOF | |
6706 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6707 | cat <<\_LT_EOF >> conftest.$ac_ext | |
6708 | {0, (void *) 0} | |
6709 | }; | |
6710 | ||
6711 | /* This works around a problem in FreeBSD linker */ | |
6712 | #ifdef FREEBSD_WORKAROUND | |
6713 | static const void *lt_preloaded_setup() { | |
6714 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6715 | } | |
6716 | #endif | |
6717 | ||
6718 | #ifdef __cplusplus | |
6719 | } | |
6720 | #endif | |
6721 | _LT_EOF | |
6722 | # Now try linking the two files. | |
6723 | mv conftest.$ac_objext conftstm.$ac_objext | |
6724 | lt_save_LIBS="$LIBS" | |
6725 | lt_save_CFLAGS="$CFLAGS" | |
6726 | LIBS="conftstm.$ac_objext" | |
6727 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
6728 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
6729 | (eval $ac_link) 2>&5 | |
6730 | ac_status=$? | |
6731 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6732 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
6733 | pipe_works=yes | |
6734 | fi | |
6735 | LIBS="$lt_save_LIBS" | |
6736 | CFLAGS="$lt_save_CFLAGS" | |
6737 | else | |
6738 | echo "cannot find nm_test_func in $nlist" >&5 | |
6739 | fi | |
6740 | else | |
6741 | echo "cannot find nm_test_var in $nlist" >&5 | |
6742 | fi | |
6743 | else | |
6744 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6745 | fi | |
6746 | else | |
6747 | echo "$progname: failed program was:" >&5 | |
6748 | cat conftest.$ac_ext >&5 | |
6749 | fi | |
6750 | rm -rf conftest* conftst* | |
6751 | ||
6752 | # Do not use the global_symbol_pipe unless it works. | |
6753 | if test "$pipe_works" = yes; then | |
6754 | break | |
6755 | else | |
6756 | lt_cv_sys_global_symbol_pipe= | |
6757 | fi | |
6758 | done | |
6759 | ||
6760 | fi | |
6761 | ||
6762 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6763 | lt_cv_sys_global_symbol_to_cdecl= | |
6764 | fi | |
6765 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
6766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
6767 | $as_echo "failed" >&6; } | |
6768 | else | |
6769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
6770 | $as_echo "ok" >&6; } | |
6771 | fi | |
6772 | ||
6773 | ||
6774 | ||
6775 | ||
6776 | ||
6777 | ||
6778 | ||
6779 | ||
6780 | ||
6781 | ||
6782 | ||
6783 | ||
6784 | ||
6785 | ||
6786 | ||
6787 | ||
6788 | ||
6789 | ||
6790 | ||
6791 | ||
6792 | ||
6793 | ||
6794 | ||
6795 | # Check whether --enable-libtool-lock was given. | |
6796 | if test "${enable_libtool_lock+set}" = set; then : | |
6797 | enableval=$enable_libtool_lock; | |
6798 | fi | |
6799 | ||
6800 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
6801 | ||
6802 | # Some flags need to be propagated to the compiler or linker for good | |
6803 | # libtool support. | |
6804 | case $host in | |
6805 | ia64-*-hpux*) | |
6806 | # Find out which ABI we are using. | |
6807 | echo 'int i;' > conftest.$ac_ext | |
6808 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6809 | (eval $ac_compile) 2>&5 | |
6810 | ac_status=$? | |
6811 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6812 | test $ac_status = 0; }; then | |
6813 | case `/usr/bin/file conftest.$ac_objext` in | |
6814 | *ELF-32*) | |
6815 | HPUX_IA64_MODE="32" | |
6816 | ;; | |
6817 | *ELF-64*) | |
6818 | HPUX_IA64_MODE="64" | |
6819 | ;; | |
6820 | esac | |
6821 | fi | |
6822 | rm -rf conftest* | |
6823 | ;; | |
6824 | *-*-irix6*) | |
6825 | # Find out which ABI we are using. | |
6826 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
6827 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6828 | (eval $ac_compile) 2>&5 | |
6829 | ac_status=$? | |
6830 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6831 | test $ac_status = 0; }; then | |
6832 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
6833 | case `/usr/bin/file conftest.$ac_objext` in | |
6834 | *32-bit*) | |
6835 | LD="${LD-ld} -melf32bsmip" | |
6836 | ;; | |
6837 | *N32*) | |
6838 | LD="${LD-ld} -melf32bmipn32" | |
6839 | ;; | |
6840 | *64-bit*) | |
6841 | LD="${LD-ld} -melf64bmip" | |
6842 | ;; | |
6843 | esac | |
6844 | else | |
6845 | case `/usr/bin/file conftest.$ac_objext` in | |
6846 | *32-bit*) | |
6847 | LD="${LD-ld} -32" | |
6848 | ;; | |
6849 | *N32*) | |
6850 | LD="${LD-ld} -n32" | |
6851 | ;; | |
6852 | *64-bit*) | |
6853 | LD="${LD-ld} -64" | |
6854 | ;; | |
6855 | esac | |
6856 | fi | |
6857 | fi | |
6858 | rm -rf conftest* | |
6859 | ;; | |
6860 | ||
3cbe17f7 | 6861 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
48310492 RH |
6862 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
6863 | # Find out which ABI we are using. | |
6864 | echo 'int i;' > conftest.$ac_ext | |
6865 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6866 | (eval $ac_compile) 2>&5 | |
6867 | ac_status=$? | |
6868 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6869 | test $ac_status = 0; }; then | |
6870 | case `/usr/bin/file conftest.o` in | |
6871 | *32-bit*) | |
6872 | case $host in | |
6873 | x86_64-*kfreebsd*-gnu) | |
6874 | LD="${LD-ld} -m elf_i386_fbsd" | |
6875 | ;; | |
6876 | x86_64-*linux*) | |
e6d5f8c9 L |
6877 | case `/usr/bin/file conftest.o` in |
6878 | *x86-64*) | |
6879 | LD="${LD-ld} -m elf32_x86_64" | |
6880 | ;; | |
6881 | *) | |
6882 | LD="${LD-ld} -m elf_i386" | |
6883 | ;; | |
6884 | esac | |
48310492 | 6885 | ;; |
3cbe17f7 AM |
6886 | powerpc64le-*linux*) |
6887 | LD="${LD-ld} -m elf32lppclinux" | |
6888 | ;; | |
6889 | powerpc64-*linux*) | |
48310492 RH |
6890 | LD="${LD-ld} -m elf32ppclinux" |
6891 | ;; | |
6892 | s390x-*linux*) | |
6893 | LD="${LD-ld} -m elf_s390" | |
6894 | ;; | |
6895 | sparc64-*linux*) | |
6896 | LD="${LD-ld} -m elf32_sparc" | |
6897 | ;; | |
6898 | esac | |
6899 | ;; | |
6900 | *64-bit*) | |
6901 | case $host in | |
6902 | x86_64-*kfreebsd*-gnu) | |
6903 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6904 | ;; | |
6905 | x86_64-*linux*) | |
6906 | LD="${LD-ld} -m elf_x86_64" | |
6907 | ;; | |
3cbe17f7 AM |
6908 | powerpcle-*linux*) |
6909 | LD="${LD-ld} -m elf64lppc" | |
6910 | ;; | |
6911 | powerpc-*linux*) | |
48310492 RH |
6912 | LD="${LD-ld} -m elf64ppc" |
6913 | ;; | |
6914 | s390*-*linux*|s390*-*tpf*) | |
6915 | LD="${LD-ld} -m elf64_s390" | |
6916 | ;; | |
6917 | sparc*-*linux*) | |
6918 | LD="${LD-ld} -m elf64_sparc" | |
6919 | ;; | |
6920 | esac | |
6921 | ;; | |
6922 | esac | |
6923 | fi | |
6924 | rm -rf conftest* | |
6925 | ;; | |
6926 | ||
6927 | *-*-sco3.2v5*) | |
6928 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6929 | SAVE_CFLAGS="$CFLAGS" | |
6930 | CFLAGS="$CFLAGS -belf" | |
6931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
6932 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
22e05272 | 6933 | if ${lt_cv_cc_needs_belf+:} false; then : |
48310492 RH |
6934 | $as_echo_n "(cached) " >&6 |
6935 | else | |
6936 | ac_ext=c | |
6937 | ac_cpp='$CPP $CPPFLAGS' | |
6938 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6939 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6940 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6941 | ||
6942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6943 | /* end confdefs.h. */ | |
6944 | ||
6945 | int | |
6946 | main () | |
6947 | { | |
6948 | ||
6949 | ; | |
6950 | return 0; | |
6951 | } | |
6952 | _ACEOF | |
6953 | if ac_fn_c_try_link "$LINENO"; then : | |
6954 | lt_cv_cc_needs_belf=yes | |
6955 | else | |
6956 | lt_cv_cc_needs_belf=no | |
6957 | fi | |
6958 | rm -f core conftest.err conftest.$ac_objext \ | |
6959 | conftest$ac_exeext conftest.$ac_ext | |
6960 | ac_ext=c | |
6961 | ac_cpp='$CPP $CPPFLAGS' | |
6962 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6963 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6964 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6965 | ||
6966 | fi | |
6967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
6968 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
6969 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
6970 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6971 | CFLAGS="$SAVE_CFLAGS" | |
6972 | fi | |
6973 | ;; | |
6974 | sparc*-*solaris*) | |
6975 | # Find out which ABI we are using. | |
6976 | echo 'int i;' > conftest.$ac_ext | |
6977 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6978 | (eval $ac_compile) 2>&5 | |
6979 | ac_status=$? | |
6980 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6981 | test $ac_status = 0; }; then | |
6982 | case `/usr/bin/file conftest.o` in | |
6983 | *64-bit*) | |
6984 | case $lt_cv_prog_gnu_ld in | |
6985 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
6986 | *) | |
6987 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6988 | LD="${LD-ld} -64" | |
6989 | fi | |
6990 | ;; | |
6991 | esac | |
6992 | ;; | |
6993 | esac | |
6994 | fi | |
6995 | rm -rf conftest* | |
6996 | ;; | |
6997 | esac | |
6998 | ||
6999 | need_locks="$enable_libtool_lock" | |
7000 | ||
7001 | ||
7002 | case $host_os in | |
7003 | rhapsody* | darwin*) | |
7004 | if test -n "$ac_tool_prefix"; then | |
7005 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7006 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
7007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7008 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7009 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
48310492 RH |
7010 | $as_echo_n "(cached) " >&6 |
7011 | else | |
7012 | if test -n "$DSYMUTIL"; then | |
7013 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7014 | else | |
7015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7016 | for as_dir in $PATH | |
7017 | do | |
7018 | IFS=$as_save_IFS | |
7019 | test -z "$as_dir" && as_dir=. | |
7020 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7021 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
48310492 RH |
7022 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
7023 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7024 | break 2 | |
7025 | fi | |
7026 | done | |
7027 | done | |
7028 | IFS=$as_save_IFS | |
7029 | ||
7030 | fi | |
7031 | fi | |
7032 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7033 | if test -n "$DSYMUTIL"; then | |
7034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
7035 | $as_echo "$DSYMUTIL" >&6; } | |
7036 | else | |
7037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7038 | $as_echo "no" >&6; } | |
7039 | fi | |
7040 | ||
7041 | ||
7042 | fi | |
7043 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7044 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7045 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7046 | set dummy dsymutil; ac_word=$2 | |
7047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7048 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7049 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
48310492 RH |
7050 | $as_echo_n "(cached) " >&6 |
7051 | else | |
7052 | if test -n "$ac_ct_DSYMUTIL"; then | |
7053 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7054 | else | |
7055 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7056 | for as_dir in $PATH | |
7057 | do | |
7058 | IFS=$as_save_IFS | |
7059 | test -z "$as_dir" && as_dir=. | |
7060 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7061 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
48310492 RH |
7062 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
7063 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7064 | break 2 | |
7065 | fi | |
7066 | done | |
7067 | done | |
7068 | IFS=$as_save_IFS | |
7069 | ||
7070 | fi | |
7071 | fi | |
7072 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
7073 | if test -n "$ac_ct_DSYMUTIL"; then | |
7074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
7075 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
7076 | else | |
7077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7078 | $as_echo "no" >&6; } | |
7079 | fi | |
7080 | ||
7081 | if test "x$ac_ct_DSYMUTIL" = x; then | |
7082 | DSYMUTIL=":" | |
7083 | else | |
7084 | case $cross_compiling:$ac_tool_warned in | |
7085 | yes:) | |
7086 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7087 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7088 | ac_tool_warned=yes ;; | |
7089 | esac | |
7090 | DSYMUTIL=$ac_ct_DSYMUTIL | |
7091 | fi | |
7092 | else | |
7093 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7094 | fi | |
7095 | ||
7096 | if test -n "$ac_tool_prefix"; then | |
7097 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7098 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
7099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7100 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7101 | if ${ac_cv_prog_NMEDIT+:} false; then : |
48310492 RH |
7102 | $as_echo_n "(cached) " >&6 |
7103 | else | |
7104 | if test -n "$NMEDIT"; then | |
7105 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7106 | else | |
7107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7108 | for as_dir in $PATH | |
7109 | do | |
7110 | IFS=$as_save_IFS | |
7111 | test -z "$as_dir" && as_dir=. | |
7112 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7113 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
48310492 RH |
7114 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
7115 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7116 | break 2 | |
7117 | fi | |
7118 | done | |
7119 | done | |
7120 | IFS=$as_save_IFS | |
7121 | ||
7122 | fi | |
7123 | fi | |
7124 | NMEDIT=$ac_cv_prog_NMEDIT | |
7125 | if test -n "$NMEDIT"; then | |
7126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
7127 | $as_echo "$NMEDIT" >&6; } | |
7128 | else | |
7129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7130 | $as_echo "no" >&6; } | |
7131 | fi | |
7132 | ||
7133 | ||
7134 | fi | |
7135 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7136 | ac_ct_NMEDIT=$NMEDIT | |
7137 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7138 | set dummy nmedit; ac_word=$2 | |
7139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7140 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7141 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
48310492 RH |
7142 | $as_echo_n "(cached) " >&6 |
7143 | else | |
7144 | if test -n "$ac_ct_NMEDIT"; then | |
7145 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7146 | else | |
7147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7148 | for as_dir in $PATH | |
7149 | do | |
7150 | IFS=$as_save_IFS | |
7151 | test -z "$as_dir" && as_dir=. | |
7152 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7153 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
48310492 RH |
7154 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
7155 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7156 | break 2 | |
7157 | fi | |
7158 | done | |
7159 | done | |
7160 | IFS=$as_save_IFS | |
7161 | ||
7162 | fi | |
7163 | fi | |
7164 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7165 | if test -n "$ac_ct_NMEDIT"; then | |
7166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
7167 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
7168 | else | |
7169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7170 | $as_echo "no" >&6; } | |
7171 | fi | |
7172 | ||
7173 | if test "x$ac_ct_NMEDIT" = x; then | |
7174 | NMEDIT=":" | |
7175 | else | |
7176 | case $cross_compiling:$ac_tool_warned in | |
7177 | yes:) | |
7178 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7179 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7180 | ac_tool_warned=yes ;; | |
7181 | esac | |
7182 | NMEDIT=$ac_ct_NMEDIT | |
7183 | fi | |
7184 | else | |
7185 | NMEDIT="$ac_cv_prog_NMEDIT" | |
7186 | fi | |
7187 | ||
7188 | if test -n "$ac_tool_prefix"; then | |
7189 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7190 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
7191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7192 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7193 | if ${ac_cv_prog_LIPO+:} false; then : |
48310492 RH |
7194 | $as_echo_n "(cached) " >&6 |
7195 | else | |
7196 | if test -n "$LIPO"; then | |
7197 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7198 | else | |
7199 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7200 | for as_dir in $PATH | |
7201 | do | |
7202 | IFS=$as_save_IFS | |
7203 | test -z "$as_dir" && as_dir=. | |
7204 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7205 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
48310492 RH |
7206 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
7207 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7208 | break 2 | |
7209 | fi | |
7210 | done | |
7211 | done | |
7212 | IFS=$as_save_IFS | |
7213 | ||
7214 | fi | |
7215 | fi | |
7216 | LIPO=$ac_cv_prog_LIPO | |
7217 | if test -n "$LIPO"; then | |
7218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
7219 | $as_echo "$LIPO" >&6; } | |
7220 | else | |
7221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7222 | $as_echo "no" >&6; } | |
7223 | fi | |
7224 | ||
7225 | ||
7226 | fi | |
7227 | if test -z "$ac_cv_prog_LIPO"; then | |
7228 | ac_ct_LIPO=$LIPO | |
7229 | # Extract the first word of "lipo", so it can be a program name with args. | |
7230 | set dummy lipo; ac_word=$2 | |
7231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7232 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7233 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
48310492 RH |
7234 | $as_echo_n "(cached) " >&6 |
7235 | else | |
7236 | if test -n "$ac_ct_LIPO"; then | |
7237 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7238 | else | |
7239 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7240 | for as_dir in $PATH | |
7241 | do | |
7242 | IFS=$as_save_IFS | |
7243 | test -z "$as_dir" && as_dir=. | |
7244 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7245 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
48310492 RH |
7246 | ac_cv_prog_ac_ct_LIPO="lipo" |
7247 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7248 | break 2 | |
7249 | fi | |
7250 | done | |
7251 | done | |
7252 | IFS=$as_save_IFS | |
7253 | ||
7254 | fi | |
7255 | fi | |
7256 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7257 | if test -n "$ac_ct_LIPO"; then | |
7258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
7259 | $as_echo "$ac_ct_LIPO" >&6; } | |
7260 | else | |
7261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7262 | $as_echo "no" >&6; } | |
7263 | fi | |
7264 | ||
7265 | if test "x$ac_ct_LIPO" = x; then | |
7266 | LIPO=":" | |
7267 | else | |
7268 | case $cross_compiling:$ac_tool_warned in | |
7269 | yes:) | |
7270 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7271 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7272 | ac_tool_warned=yes ;; | |
7273 | esac | |
7274 | LIPO=$ac_ct_LIPO | |
7275 | fi | |
7276 | else | |
7277 | LIPO="$ac_cv_prog_LIPO" | |
7278 | fi | |
7279 | ||
7280 | if test -n "$ac_tool_prefix"; then | |
7281 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7282 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
7283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7284 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7285 | if ${ac_cv_prog_OTOOL+:} false; then : |
48310492 RH |
7286 | $as_echo_n "(cached) " >&6 |
7287 | else | |
7288 | if test -n "$OTOOL"; then | |
7289 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7290 | else | |
7291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7292 | for as_dir in $PATH | |
7293 | do | |
7294 | IFS=$as_save_IFS | |
7295 | test -z "$as_dir" && as_dir=. | |
7296 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7297 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
48310492 RH |
7298 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
7299 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7300 | break 2 | |
7301 | fi | |
7302 | done | |
7303 | done | |
7304 | IFS=$as_save_IFS | |
7305 | ||
7306 | fi | |
7307 | fi | |
7308 | OTOOL=$ac_cv_prog_OTOOL | |
7309 | if test -n "$OTOOL"; then | |
7310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
7311 | $as_echo "$OTOOL" >&6; } | |
7312 | else | |
7313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7314 | $as_echo "no" >&6; } | |
7315 | fi | |
7316 | ||
7317 | ||
7318 | fi | |
7319 | if test -z "$ac_cv_prog_OTOOL"; then | |
7320 | ac_ct_OTOOL=$OTOOL | |
7321 | # Extract the first word of "otool", so it can be a program name with args. | |
7322 | set dummy otool; ac_word=$2 | |
7323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7324 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7325 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
48310492 RH |
7326 | $as_echo_n "(cached) " >&6 |
7327 | else | |
7328 | if test -n "$ac_ct_OTOOL"; then | |
7329 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7330 | else | |
7331 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7332 | for as_dir in $PATH | |
7333 | do | |
7334 | IFS=$as_save_IFS | |
7335 | test -z "$as_dir" && as_dir=. | |
7336 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7337 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
48310492 RH |
7338 | ac_cv_prog_ac_ct_OTOOL="otool" |
7339 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7340 | break 2 | |
7341 | fi | |
7342 | done | |
7343 | done | |
7344 | IFS=$as_save_IFS | |
7345 | ||
7346 | fi | |
7347 | fi | |
7348 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7349 | if test -n "$ac_ct_OTOOL"; then | |
7350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
7351 | $as_echo "$ac_ct_OTOOL" >&6; } | |
7352 | else | |
7353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7354 | $as_echo "no" >&6; } | |
7355 | fi | |
7356 | ||
7357 | if test "x$ac_ct_OTOOL" = x; then | |
7358 | OTOOL=":" | |
7359 | else | |
7360 | case $cross_compiling:$ac_tool_warned in | |
7361 | yes:) | |
7362 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7363 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7364 | ac_tool_warned=yes ;; | |
7365 | esac | |
7366 | OTOOL=$ac_ct_OTOOL | |
7367 | fi | |
7368 | else | |
7369 | OTOOL="$ac_cv_prog_OTOOL" | |
7370 | fi | |
7371 | ||
7372 | if test -n "$ac_tool_prefix"; then | |
7373 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7374 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
7375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7376 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7377 | if ${ac_cv_prog_OTOOL64+:} false; then : |
48310492 RH |
7378 | $as_echo_n "(cached) " >&6 |
7379 | else | |
7380 | if test -n "$OTOOL64"; then | |
7381 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7382 | else | |
7383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7384 | for as_dir in $PATH | |
7385 | do | |
7386 | IFS=$as_save_IFS | |
7387 | test -z "$as_dir" && as_dir=. | |
7388 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7389 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
48310492 RH |
7390 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
7391 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7392 | break 2 | |
7393 | fi | |
7394 | done | |
7395 | done | |
7396 | IFS=$as_save_IFS | |
7397 | ||
7398 | fi | |
7399 | fi | |
7400 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7401 | if test -n "$OTOOL64"; then | |
7402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
7403 | $as_echo "$OTOOL64" >&6; } | |
7404 | else | |
7405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7406 | $as_echo "no" >&6; } | |
7407 | fi | |
7408 | ||
7409 | ||
7410 | fi | |
7411 | if test -z "$ac_cv_prog_OTOOL64"; then | |
7412 | ac_ct_OTOOL64=$OTOOL64 | |
7413 | # Extract the first word of "otool64", so it can be a program name with args. | |
7414 | set dummy otool64; ac_word=$2 | |
7415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7416 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 7417 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
48310492 RH |
7418 | $as_echo_n "(cached) " >&6 |
7419 | else | |
7420 | if test -n "$ac_ct_OTOOL64"; then | |
7421 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7422 | else | |
7423 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7424 | for as_dir in $PATH | |
7425 | do | |
7426 | IFS=$as_save_IFS | |
7427 | test -z "$as_dir" && as_dir=. | |
7428 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 7429 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
48310492 RH |
7430 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
7431 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7432 | break 2 | |
7433 | fi | |
7434 | done | |
7435 | done | |
7436 | IFS=$as_save_IFS | |
7437 | ||
7438 | fi | |
7439 | fi | |
7440 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7441 | if test -n "$ac_ct_OTOOL64"; then | |
7442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
7443 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
7444 | else | |
7445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7446 | $as_echo "no" >&6; } | |
7447 | fi | |
7448 | ||
7449 | if test "x$ac_ct_OTOOL64" = x; then | |
7450 | OTOOL64=":" | |
7451 | else | |
7452 | case $cross_compiling:$ac_tool_warned in | |
7453 | yes:) | |
7454 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7455 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7456 | ac_tool_warned=yes ;; | |
7457 | esac | |
7458 | OTOOL64=$ac_ct_OTOOL64 | |
7459 | fi | |
7460 | else | |
7461 | OTOOL64="$ac_cv_prog_OTOOL64" | |
7462 | fi | |
7463 | ||
7464 | ||
7465 | ||
7466 | ||
7467 | ||
7468 | ||
7469 | ||
7470 | ||
7471 | ||
7472 | ||
7473 | ||
7474 | ||
7475 | ||
7476 | ||
7477 | ||
7478 | ||
7479 | ||
7480 | ||
7481 | ||
7482 | ||
7483 | ||
7484 | ||
7485 | ||
7486 | ||
7487 | ||
7488 | ||
7489 | ||
7490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
7491 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
22e05272 | 7492 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
48310492 RH |
7493 | $as_echo_n "(cached) " >&6 |
7494 | else | |
7495 | lt_cv_apple_cc_single_mod=no | |
7496 | if test -z "${LT_MULTI_MODULE}"; then | |
7497 | # By default we will add the -single_module flag. You can override | |
7498 | # by either setting the environment variable LT_MULTI_MODULE | |
7499 | # non-empty at configure time, or by adding -multi_module to the | |
7500 | # link flags. | |
7501 | rm -rf libconftest.dylib* | |
7502 | echo "int foo(void){return 1;}" > conftest.c | |
7503 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7504 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7505 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7506 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7507 | _lt_result=$? | |
7508 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
7509 | lt_cv_apple_cc_single_mod=yes | |
7510 | else | |
7511 | cat conftest.err >&5 | |
7512 | fi | |
7513 | rm -rf libconftest.dylib* | |
7514 | rm -f conftest.* | |
7515 | fi | |
7516 | fi | |
7517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
7518 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
7519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
7520 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
22e05272 | 7521 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
48310492 RH |
7522 | $as_echo_n "(cached) " >&6 |
7523 | else | |
7524 | lt_cv_ld_exported_symbols_list=no | |
7525 | save_LDFLAGS=$LDFLAGS | |
7526 | echo "_main" > conftest.sym | |
7527 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
7528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7529 | /* end confdefs.h. */ | |
7530 | ||
7531 | int | |
7532 | main () | |
7533 | { | |
7534 | ||
7535 | ; | |
7536 | return 0; | |
7537 | } | |
7538 | _ACEOF | |
7539 | if ac_fn_c_try_link "$LINENO"; then : | |
7540 | lt_cv_ld_exported_symbols_list=yes | |
7541 | else | |
7542 | lt_cv_ld_exported_symbols_list=no | |
7543 | fi | |
7544 | rm -f core conftest.err conftest.$ac_objext \ | |
7545 | conftest$ac_exeext conftest.$ac_ext | |
7546 | LDFLAGS="$save_LDFLAGS" | |
7547 | ||
7548 | fi | |
7549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
7550 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
7551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
7552 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
22e05272 | 7553 | if ${lt_cv_ld_force_load+:} false; then : |
48310492 RH |
7554 | $as_echo_n "(cached) " >&6 |
7555 | else | |
7556 | lt_cv_ld_force_load=no | |
7557 | cat > conftest.c << _LT_EOF | |
7558 | int forced_loaded() { return 2;} | |
7559 | _LT_EOF | |
7560 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7561 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7562 | echo "$AR cru libconftest.a conftest.o" >&5 | |
7563 | $AR cru libconftest.a conftest.o 2>&5 | |
7564 | cat > conftest.c << _LT_EOF | |
7565 | int main() { return 0;} | |
7566 | _LT_EOF | |
7567 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7568 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7569 | _lt_result=$? | |
7570 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
7571 | lt_cv_ld_force_load=yes | |
7572 | else | |
7573 | cat conftest.err >&5 | |
7574 | fi | |
7575 | rm -f conftest.err libconftest.a conftest conftest.c | |
7576 | rm -rf conftest.dSYM | |
7577 | ||
7578 | fi | |
7579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
7580 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
1352bc88 IS |
7581 | # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to |
7582 | # build without first building modern cctools / linker. | |
7583 | case $host_cpu-$host_os in | |
7584 | *-rhapsody* | *-darwin1.[012]) | |
48310492 | 7585 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
1352bc88 | 7586 | *-darwin1.*) |
48310492 | 7587 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
1352bc88 IS |
7588 | *-darwin*) |
7589 | # darwin 5.x (macOS 10.1) onwards we only need to adjust when the | |
7590 | # deployment target is forced to an earlier version. | |
7591 | case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in | |
7592 | UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*) | |
7593 | ;; | |
ebf6d33b | 7594 | 10.[012][,.]*) |
1352bc88 IS |
7595 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
7596 | ;; | |
7597 | *) | |
7598 | ;; | |
7599 | esac | |
48310492 RH |
7600 | ;; |
7601 | esac | |
7602 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
7603 | _lt_dar_single_mod='$single_module' | |
7604 | fi | |
7605 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
7606 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
7607 | else | |
7608 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7609 | fi | |
7610 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
7611 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
7612 | else | |
7613 | _lt_dsymutil= | |
7614 | fi | |
7615 | ;; | |
7616 | esac | |
7617 | ||
7618 | ac_ext=c | |
7619 | ac_cpp='$CPP $CPPFLAGS' | |
7620 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7621 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7622 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
7624 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
7625 | # On Suns, sometimes $CPP names a directory. | |
7626 | if test -n "$CPP" && test -d "$CPP"; then | |
7627 | CPP= | |
7628 | fi | |
7629 | if test -z "$CPP"; then | |
22e05272 | 7630 | if ${ac_cv_prog_CPP+:} false; then : |
48310492 RH |
7631 | $as_echo_n "(cached) " >&6 |
7632 | else | |
7633 | # Double quotes because CPP needs to be expanded | |
7634 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
7635 | do | |
7636 | ac_preproc_ok=false | |
7637 | for ac_c_preproc_warn_flag in '' yes | |
7638 | do | |
7639 | # Use a header file that comes with gcc, so configuring glibc | |
7640 | # with a fresh cross-compiler works. | |
7641 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7642 | # <limits.h> exists even on freestanding compilers. | |
7643 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7644 | # not just through cpp. "Syntax error" is here to catch this case. | |
7645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7646 | /* end confdefs.h. */ | |
7647 | #ifdef __STDC__ | |
7648 | # include <limits.h> | |
7649 | #else | |
7650 | # include <assert.h> | |
7651 | #endif | |
7652 | Syntax error | |
7653 | _ACEOF | |
7654 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7655 | ||
7656 | else | |
7657 | # Broken: fails on valid input. | |
7658 | continue | |
7659 | fi | |
22e05272 | 7660 | rm -f conftest.err conftest.i conftest.$ac_ext |
48310492 RH |
7661 | |
7662 | # OK, works on sane cases. Now check whether nonexistent headers | |
7663 | # can be detected and how. | |
7664 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7665 | /* end confdefs.h. */ | |
7666 | #include <ac_nonexistent.h> | |
7667 | _ACEOF | |
7668 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7669 | # Broken: success on invalid input. | |
7670 | continue | |
7671 | else | |
7672 | # Passes both tests. | |
7673 | ac_preproc_ok=: | |
7674 | break | |
7675 | fi | |
22e05272 | 7676 | rm -f conftest.err conftest.i conftest.$ac_ext |
48310492 RH |
7677 | |
7678 | done | |
7679 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22e05272 | 7680 | rm -f conftest.i conftest.err conftest.$ac_ext |
48310492 RH |
7681 | if $ac_preproc_ok; then : |
7682 | break | |
7683 | fi | |
7684 | ||
7685 | done | |
7686 | ac_cv_prog_CPP=$CPP | |
7687 | ||
7688 | fi | |
7689 | CPP=$ac_cv_prog_CPP | |
7690 | else | |
7691 | ac_cv_prog_CPP=$CPP | |
7692 | fi | |
7693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
7694 | $as_echo "$CPP" >&6; } | |
7695 | ac_preproc_ok=false | |
7696 | for ac_c_preproc_warn_flag in '' yes | |
7697 | do | |
7698 | # Use a header file that comes with gcc, so configuring glibc | |
7699 | # with a fresh cross-compiler works. | |
7700 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7701 | # <limits.h> exists even on freestanding compilers. | |
7702 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7703 | # not just through cpp. "Syntax error" is here to catch this case. | |
7704 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7705 | /* end confdefs.h. */ | |
7706 | #ifdef __STDC__ | |
7707 | # include <limits.h> | |
7708 | #else | |
7709 | # include <assert.h> | |
7710 | #endif | |
7711 | Syntax error | |
7712 | _ACEOF | |
7713 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7714 | ||
7715 | else | |
7716 | # Broken: fails on valid input. | |
7717 | continue | |
7718 | fi | |
22e05272 | 7719 | rm -f conftest.err conftest.i conftest.$ac_ext |
48310492 RH |
7720 | |
7721 | # OK, works on sane cases. Now check whether nonexistent headers | |
7722 | # can be detected and how. | |
7723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7724 | /* end confdefs.h. */ | |
7725 | #include <ac_nonexistent.h> | |
7726 | _ACEOF | |
7727 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7728 | # Broken: success on invalid input. | |
7729 | continue | |
7730 | else | |
7731 | # Passes both tests. | |
7732 | ac_preproc_ok=: | |
7733 | break | |
7734 | fi | |
22e05272 | 7735 | rm -f conftest.err conftest.i conftest.$ac_ext |
48310492 RH |
7736 | |
7737 | done | |
7738 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22e05272 | 7739 | rm -f conftest.i conftest.err conftest.$ac_ext |
48310492 RH |
7740 | if $ac_preproc_ok; then : |
7741 | ||
7742 | else | |
7743 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
7744 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
7745 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
7746 | See \`config.log' for more details" "$LINENO" 5; } | |
48310492 RH |
7747 | fi |
7748 | ||
7749 | ac_ext=c | |
7750 | ac_cpp='$CPP $CPPFLAGS' | |
7751 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7752 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7753 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7754 | ||
7755 | ||
7756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
7757 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
22e05272 | 7758 | if ${ac_cv_header_stdc+:} false; then : |
48310492 RH |
7759 | $as_echo_n "(cached) " >&6 |
7760 | else | |
7761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7762 | /* end confdefs.h. */ | |
7763 | #include <stdlib.h> | |
7764 | #include <stdarg.h> | |
7765 | #include <string.h> | |
7766 | #include <float.h> | |
7767 | ||
7768 | int | |
7769 | main () | |
7770 | { | |
7771 | ||
7772 | ; | |
7773 | return 0; | |
7774 | } | |
7775 | _ACEOF | |
7776 | if ac_fn_c_try_compile "$LINENO"; then : | |
7777 | ac_cv_header_stdc=yes | |
7778 | else | |
7779 | ac_cv_header_stdc=no | |
7780 | fi | |
7781 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7782 | ||
7783 | if test $ac_cv_header_stdc = yes; then | |
7784 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
7785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7786 | /* end confdefs.h. */ | |
7787 | #include <string.h> | |
7788 | ||
7789 | _ACEOF | |
7790 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7791 | $EGREP "memchr" >/dev/null 2>&1; then : | |
7792 | ||
7793 | else | |
7794 | ac_cv_header_stdc=no | |
7795 | fi | |
7796 | rm -f conftest* | |
7797 | ||
7798 | fi | |
7799 | ||
7800 | if test $ac_cv_header_stdc = yes; then | |
7801 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
7802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7803 | /* end confdefs.h. */ | |
7804 | #include <stdlib.h> | |
7805 | ||
7806 | _ACEOF | |
7807 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7808 | $EGREP "free" >/dev/null 2>&1; then : | |
7809 | ||
7810 | else | |
7811 | ac_cv_header_stdc=no | |
7812 | fi | |
7813 | rm -f conftest* | |
7814 | ||
7815 | fi | |
7816 | ||
7817 | if test $ac_cv_header_stdc = yes; then | |
7818 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
7819 | if test "$cross_compiling" = yes; then : | |
7820 | : | |
7821 | else | |
7822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7823 | /* end confdefs.h. */ | |
7824 | #include <ctype.h> | |
7825 | #include <stdlib.h> | |
7826 | #if ((' ' & 0x0FF) == 0x020) | |
7827 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7828 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7829 | #else | |
7830 | # define ISLOWER(c) \ | |
7831 | (('a' <= (c) && (c) <= 'i') \ | |
7832 | || ('j' <= (c) && (c) <= 'r') \ | |
7833 | || ('s' <= (c) && (c) <= 'z')) | |
7834 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
7835 | #endif | |
7836 | ||
7837 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
7838 | int | |
7839 | main () | |
7840 | { | |
7841 | int i; | |
7842 | for (i = 0; i < 256; i++) | |
7843 | if (XOR (islower (i), ISLOWER (i)) | |
7844 | || toupper (i) != TOUPPER (i)) | |
7845 | return 2; | |
7846 | return 0; | |
7847 | } | |
7848 | _ACEOF | |
7849 | if ac_fn_c_try_run "$LINENO"; then : | |
7850 | ||
7851 | else | |
7852 | ac_cv_header_stdc=no | |
7853 | fi | |
7854 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
7855 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7856 | fi | |
7857 | ||
7858 | fi | |
7859 | fi | |
7860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
7861 | $as_echo "$ac_cv_header_stdc" >&6; } | |
7862 | if test $ac_cv_header_stdc = yes; then | |
7863 | ||
7864 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
7865 | ||
7866 | fi | |
7867 | ||
7868 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
7869 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
7870 | inttypes.h stdint.h unistd.h | |
7871 | do : | |
7872 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7873 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
7874 | " | |
22e05272 | 7875 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
48310492 RH |
7876 | cat >>confdefs.h <<_ACEOF |
7877 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7878 | _ACEOF | |
7879 | ||
7880 | fi | |
7881 | ||
7882 | done | |
7883 | ||
7884 | ||
7885 | for ac_header in dlfcn.h | |
7886 | do : | |
7887 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7888 | " | |
22e05272 | 7889 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
48310492 RH |
7890 | cat >>confdefs.h <<_ACEOF |
7891 | #define HAVE_DLFCN_H 1 | |
7892 | _ACEOF | |
7893 | ||
7894 | fi | |
7895 | ||
7896 | done | |
7897 | ||
7898 | ||
7899 | ||
7900 | ||
7901 | ||
7902 | # Set options | |
7903 | ||
7904 | ||
7905 | ||
7906 | enable_dlopen=no | |
7907 | ||
7908 | ||
7909 | enable_win32_dll=no | |
7910 | ||
7911 | ||
7912 | # Check whether --enable-shared was given. | |
7913 | if test "${enable_shared+set}" = set; then : | |
7914 | enableval=$enable_shared; p=${PACKAGE-default} | |
7915 | case $enableval in | |
7916 | yes) enable_shared=yes ;; | |
7917 | no) enable_shared=no ;; | |
7918 | *) | |
7919 | enable_shared=no | |
7920 | # Look at the argument we got. We use all the common list separators. | |
7921 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7922 | for pkg in $enableval; do | |
7923 | IFS="$lt_save_ifs" | |
7924 | if test "X$pkg" = "X$p"; then | |
7925 | enable_shared=yes | |
7926 | fi | |
7927 | done | |
7928 | IFS="$lt_save_ifs" | |
7929 | ;; | |
7930 | esac | |
7931 | else | |
7932 | enable_shared=yes | |
7933 | fi | |
7934 | ||
7935 | ||
7936 | ||
7937 | ||
7938 | ||
7939 | ||
7940 | ||
7941 | ||
7942 | ||
7943 | # Check whether --enable-static was given. | |
7944 | if test "${enable_static+set}" = set; then : | |
7945 | enableval=$enable_static; p=${PACKAGE-default} | |
7946 | case $enableval in | |
7947 | yes) enable_static=yes ;; | |
7948 | no) enable_static=no ;; | |
7949 | *) | |
7950 | enable_static=no | |
7951 | # Look at the argument we got. We use all the common list separators. | |
7952 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7953 | for pkg in $enableval; do | |
7954 | IFS="$lt_save_ifs" | |
7955 | if test "X$pkg" = "X$p"; then | |
7956 | enable_static=yes | |
7957 | fi | |
7958 | done | |
7959 | IFS="$lt_save_ifs" | |
7960 | ;; | |
7961 | esac | |
7962 | else | |
7963 | enable_static=yes | |
7964 | fi | |
7965 | ||
7966 | ||
7967 | ||
7968 | ||
7969 | ||
7970 | ||
7971 | ||
7972 | ||
7973 | ||
7974 | ||
7975 | # Check whether --with-pic was given. | |
7976 | if test "${with_pic+set}" = set; then : | |
7977 | withval=$with_pic; pic_mode="$withval" | |
7978 | else | |
7979 | pic_mode=default | |
7980 | fi | |
7981 | ||
7982 | ||
7983 | test -z "$pic_mode" && pic_mode=default | |
7984 | ||
7985 | ||
7986 | ||
7987 | ||
7988 | ||
7989 | ||
7990 | ||
7991 | # Check whether --enable-fast-install was given. | |
7992 | if test "${enable_fast_install+set}" = set; then : | |
7993 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
7994 | case $enableval in | |
7995 | yes) enable_fast_install=yes ;; | |
7996 | no) enable_fast_install=no ;; | |
7997 | *) | |
7998 | enable_fast_install=no | |
7999 | # Look at the argument we got. We use all the common list separators. | |
8000 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8001 | for pkg in $enableval; do | |
8002 | IFS="$lt_save_ifs" | |
8003 | if test "X$pkg" = "X$p"; then | |
8004 | enable_fast_install=yes | |
8005 | fi | |
8006 | done | |
8007 | IFS="$lt_save_ifs" | |
8008 | ;; | |
8009 | esac | |
8010 | else | |
8011 | enable_fast_install=yes | |
8012 | fi | |
8013 | ||
8014 | ||
8015 | ||
8016 | ||
8017 | ||
8018 | ||
8019 | ||
8020 | ||
8021 | ||
8022 | ||
8023 | ||
8024 | # This can be used to rebuild libtool when needed | |
8025 | LIBTOOL_DEPS="$ltmain" | |
8026 | ||
8027 | # Always use our own libtool. | |
8028 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
8029 | ||
8030 | ||
8031 | ||
8032 | ||
8033 | ||
8034 | ||
8035 | ||
8036 | ||
8037 | ||
8038 | ||
8039 | ||
8040 | ||
8041 | ||
8042 | ||
8043 | ||
8044 | ||
8045 | ||
8046 | ||
8047 | ||
8048 | ||
8049 | ||
8050 | ||
8051 | ||
8052 | ||
8053 | ||
8054 | ||
8055 | test -z "$LN_S" && LN_S="ln -s" | |
8056 | ||
8057 | ||
8058 | ||
8059 | ||
8060 | ||
8061 | ||
8062 | ||
8063 | ||
8064 | ||
8065 | ||
8066 | ||
8067 | ||
8068 | ||
8069 | ||
8070 | if test -n "${ZSH_VERSION+set}" ; then | |
8071 | setopt NO_GLOB_SUBST | |
8072 | fi | |
8073 | ||
8074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
8075 | $as_echo_n "checking for objdir... " >&6; } | |
22e05272 | 8076 | if ${lt_cv_objdir+:} false; then : |
48310492 RH |
8077 | $as_echo_n "(cached) " >&6 |
8078 | else | |
8079 | rm -f .libs 2>/dev/null | |
8080 | mkdir .libs 2>/dev/null | |
8081 | if test -d .libs; then | |
8082 | lt_cv_objdir=.libs | |
8083 | else | |
8084 | # MS-DOS does not allow filenames that begin with a dot. | |
8085 | lt_cv_objdir=_libs | |
8086 | fi | |
8087 | rmdir .libs 2>/dev/null | |
8088 | fi | |
8089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
8090 | $as_echo "$lt_cv_objdir" >&6; } | |
8091 | objdir=$lt_cv_objdir | |
8092 | ||
8093 | ||
8094 | ||
8095 | ||
8096 | ||
8097 | cat >>confdefs.h <<_ACEOF | |
8098 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8099 | _ACEOF | |
8100 | ||
8101 | ||
8102 | ||
8103 | ||
8104 | case $host_os in | |
8105 | aix3*) | |
8106 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8107 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8108 | # vanish in a puff of smoke. | |
8109 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8110 | COLLECT_NAMES= | |
8111 | export COLLECT_NAMES | |
8112 | fi | |
8113 | ;; | |
8114 | esac | |
8115 | ||
8116 | # Global variables: | |
8117 | ofile=libtool | |
8118 | can_build_shared=yes | |
8119 | ||
8120 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
8121 | # which needs '.lib'). | |
8122 | libext=a | |
8123 | ||
8124 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
8125 | ||
8126 | old_CC="$CC" | |
8127 | old_CFLAGS="$CFLAGS" | |
8128 | ||
8129 | # Set sane defaults for various variables | |
8130 | test -z "$CC" && CC=cc | |
8131 | test -z "$LTCC" && LTCC=$CC | |
8132 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8133 | test -z "$LD" && LD=ld | |
8134 | test -z "$ac_objext" && ac_objext=o | |
8135 | ||
8136 | for cc_temp in $compiler""; do | |
8137 | case $cc_temp in | |
8138 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8139 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8140 | \-*) ;; | |
8141 | *) break;; | |
8142 | esac | |
8143 | done | |
8144 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
8145 | ||
8146 | ||
8147 | # Only perform the check for file, if the check method requires it | |
8148 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8149 | case $deplibs_check_method in | |
8150 | file_magic*) | |
8151 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
8152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
8153 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
22e05272 | 8154 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
48310492 RH |
8155 | $as_echo_n "(cached) " >&6 |
8156 | else | |
8157 | case $MAGIC_CMD in | |
8158 | [\\/*] | ?:[\\/]*) | |
8159 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8160 | ;; | |
8161 | *) | |
8162 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8163 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8164 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8165 | for ac_dir in $ac_dummy; do | |
8166 | IFS="$lt_save_ifs" | |
8167 | test -z "$ac_dir" && ac_dir=. | |
8168 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
8169 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8170 | if test -n "$file_magic_test_file"; then | |
8171 | case $deplibs_check_method in | |
8172 | "file_magic "*) | |
8173 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8174 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8175 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8176 | $EGREP "$file_magic_regex" > /dev/null; then | |
8177 | : | |
8178 | else | |
8179 | cat <<_LT_EOF 1>&2 | |
8180 | ||
8181 | *** Warning: the command libtool uses to detect shared libraries, | |
8182 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8183 | *** The result is that libtool may fail to recognize shared libraries | |
8184 | *** as such. This will affect the creation of libtool libraries that | |
8185 | *** depend on shared libraries, but programs linked with such libtool | |
8186 | *** libraries will work regardless of this problem. Nevertheless, you | |
8187 | *** may want to report the problem to your system manager and/or to | |
8188 | *** bug-libtool@gnu.org | |
8189 | ||
8190 | _LT_EOF | |
8191 | fi ;; | |
8192 | esac | |
8193 | fi | |
8194 | break | |
8195 | fi | |
8196 | done | |
8197 | IFS="$lt_save_ifs" | |
8198 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8199 | ;; | |
8200 | esac | |
8201 | fi | |
8202 | ||
8203 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8204 | if test -n "$MAGIC_CMD"; then | |
8205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8206 | $as_echo "$MAGIC_CMD" >&6; } | |
8207 | else | |
8208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8209 | $as_echo "no" >&6; } | |
8210 | fi | |
8211 | ||
8212 | ||
8213 | ||
8214 | ||
8215 | ||
8216 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
8217 | if test -n "$ac_tool_prefix"; then | |
8218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
8219 | $as_echo_n "checking for file... " >&6; } | |
22e05272 | 8220 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
48310492 RH |
8221 | $as_echo_n "(cached) " >&6 |
8222 | else | |
8223 | case $MAGIC_CMD in | |
8224 | [\\/*] | ?:[\\/]*) | |
8225 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8226 | ;; | |
8227 | *) | |
8228 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8229 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8230 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8231 | for ac_dir in $ac_dummy; do | |
8232 | IFS="$lt_save_ifs" | |
8233 | test -z "$ac_dir" && ac_dir=. | |
8234 | if test -f $ac_dir/file; then | |
8235 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8236 | if test -n "$file_magic_test_file"; then | |
8237 | case $deplibs_check_method in | |
8238 | "file_magic "*) | |
8239 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8240 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8241 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8242 | $EGREP "$file_magic_regex" > /dev/null; then | |
8243 | : | |
8244 | else | |
8245 | cat <<_LT_EOF 1>&2 | |
8246 | ||
8247 | *** Warning: the command libtool uses to detect shared libraries, | |
8248 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8249 | *** The result is that libtool may fail to recognize shared libraries | |
8250 | *** as such. This will affect the creation of libtool libraries that | |
8251 | *** depend on shared libraries, but programs linked with such libtool | |
8252 | *** libraries will work regardless of this problem. Nevertheless, you | |
8253 | *** may want to report the problem to your system manager and/or to | |
8254 | *** bug-libtool@gnu.org | |
8255 | ||
8256 | _LT_EOF | |
8257 | fi ;; | |
8258 | esac | |
8259 | fi | |
8260 | break | |
8261 | fi | |
8262 | done | |
8263 | IFS="$lt_save_ifs" | |
8264 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8265 | ;; | |
8266 | esac | |
8267 | fi | |
8268 | ||
8269 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8270 | if test -n "$MAGIC_CMD"; then | |
8271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8272 | $as_echo "$MAGIC_CMD" >&6; } | |
8273 | else | |
8274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8275 | $as_echo "no" >&6; } | |
8276 | fi | |
8277 | ||
8278 | ||
8279 | else | |
8280 | MAGIC_CMD=: | |
8281 | fi | |
8282 | fi | |
8283 | ||
8284 | fi | |
8285 | ;; | |
8286 | esac | |
8287 | ||
8288 | # Use C for the default configuration in the libtool script | |
8289 | ||
8290 | lt_save_CC="$CC" | |
8291 | ac_ext=c | |
8292 | ac_cpp='$CPP $CPPFLAGS' | |
8293 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8294 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8295 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8296 | ||
8297 | ||
8298 | # Source file extension for C test sources. | |
8299 | ac_ext=c | |
8300 | ||
8301 | # Object file extension for compiled C test sources. | |
8302 | objext=o | |
8303 | objext=$objext | |
8304 | ||
8305 | # Code to be used in simple compile tests | |
8306 | lt_simple_compile_test_code="int some_variable = 0;" | |
8307 | ||
8308 | # Code to be used in simple link tests | |
8309 | lt_simple_link_test_code='int main(){return(0);}' | |
8310 | ||
8311 | ||
8312 | ||
8313 | ||
8314 | ||
8315 | ||
8316 | ||
8317 | # If no C compiler was specified, use CC. | |
8318 | LTCC=${LTCC-"$CC"} | |
8319 | ||
8320 | # If no C compiler flags were specified, use CFLAGS. | |
8321 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8322 | ||
8323 | # Allow CC to be a program name with arguments. | |
8324 | compiler=$CC | |
8325 | ||
8326 | # Save the default compiler, since it gets overwritten when the other | |
8327 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8328 | compiler_DEFAULT=$CC | |
8329 | ||
8330 | # save warnings/boilerplate of simple test code | |
8331 | ac_outfile=conftest.$ac_objext | |
8332 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8333 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8334 | _lt_compiler_boilerplate=`cat conftest.err` | |
8335 | $RM conftest* | |
8336 | ||
8337 | ac_outfile=conftest.$ac_objext | |
8338 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8339 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8340 | _lt_linker_boilerplate=`cat conftest.err` | |
8341 | $RM -r conftest* | |
8342 | ||
8343 | ||
8344 | ## CAVEAT EMPTOR: | |
8345 | ## There is no encapsulation within the following macros, do not change | |
8346 | ## the running order or otherwise move them around unless you know exactly | |
8347 | ## what you are doing... | |
8348 | if test -n "$compiler"; then | |
8349 | ||
8350 | lt_prog_compiler_no_builtin_flag= | |
8351 | ||
8352 | if test "$GCC" = yes; then | |
8353 | case $cc_basename in | |
8354 | nvcc*) | |
8355 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8356 | *) | |
8357 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8358 | esac | |
8359 | ||
8360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
8361 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
22e05272 | 8362 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
48310492 RH |
8363 | $as_echo_n "(cached) " >&6 |
8364 | else | |
8365 | lt_cv_prog_compiler_rtti_exceptions=no | |
8366 | ac_outfile=conftest.$ac_objext | |
8367 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8368 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8369 | # Insert the option either (1) after the last *FLAGS variable, or | |
8370 | # (2) before a word containing "conftest.", or (3) at the end. | |
8371 | # Note that $ac_compile itself does not contain backslashes and begins | |
8372 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8373 | # The option is referenced via a variable to avoid confusing sed. | |
8374 | lt_compile=`echo "$ac_compile" | $SED \ | |
8375 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8376 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8377 | -e 's:$: $lt_compiler_flag:'` | |
8378 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8379 | (eval "$lt_compile" 2>conftest.err) | |
8380 | ac_status=$? | |
8381 | cat conftest.err >&5 | |
8382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8383 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8384 | # The compiler can only warn and ignore the option if not recognized | |
8385 | # So say no if there are warnings other than the usual output. | |
8386 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8387 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8388 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8389 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8390 | fi | |
8391 | fi | |
8392 | $RM conftest* | |
8393 | ||
8394 | fi | |
8395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
8396 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
8397 | ||
8398 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
8399 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8400 | else | |
8401 | : | |
8402 | fi | |
8403 | ||
8404 | fi | |
8405 | ||
8406 | ||
8407 | ||
8408 | ||
8409 | ||
8410 | ||
8411 | lt_prog_compiler_wl= | |
8412 | lt_prog_compiler_pic= | |
8413 | lt_prog_compiler_static= | |
8414 | ||
8415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
8416 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
8417 | ||
8418 | if test "$GCC" = yes; then | |
8419 | lt_prog_compiler_wl='-Wl,' | |
8420 | lt_prog_compiler_static='-static' | |
8421 | ||
8422 | case $host_os in | |
8423 | aix*) | |
8424 | # All AIX code is PIC. | |
8425 | if test "$host_cpu" = ia64; then | |
8426 | # AIX 5 now supports IA64 processor | |
8427 | lt_prog_compiler_static='-Bstatic' | |
8428 | fi | |
00c2f0ef | 8429 | lt_prog_compiler_pic='-fPIC' |
48310492 RH |
8430 | ;; |
8431 | ||
8432 | amigaos*) | |
8433 | case $host_cpu in | |
8434 | powerpc) | |
8435 | # see comment about AmigaOS4 .so support | |
8436 | lt_prog_compiler_pic='-fPIC' | |
8437 | ;; | |
8438 | m68k) | |
8439 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8440 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8441 | # like `-m68040'. | |
8442 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8443 | ;; | |
8444 | esac | |
8445 | ;; | |
8446 | ||
8447 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
8448 | # PIC is the default for these OSes. | |
8449 | ;; | |
8450 | ||
8451 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8452 | # This hack is so that the source file can tell whether it is being | |
8453 | # built for inclusion in a dll (and should export symbols for example). | |
8454 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8455 | # (--disable-auto-import) libraries | |
8456 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8457 | ;; | |
8458 | ||
8459 | darwin* | rhapsody*) | |
8460 | # PIC is the default on this platform | |
8461 | # Common symbols not allowed in MH_DYLIB files | |
8462 | lt_prog_compiler_pic='-fno-common' | |
8463 | ;; | |
8464 | ||
8465 | haiku*) | |
8466 | # PIC is the default for Haiku. | |
8467 | # The "-static" flag exists, but is broken. | |
8468 | lt_prog_compiler_static= | |
8469 | ;; | |
8470 | ||
8471 | hpux*) | |
8472 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
8473 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8474 | # sets the default TLS model and affects inlining. | |
8475 | case $host_cpu in | |
8476 | hppa*64*) | |
8477 | # +Z the default | |
8478 | ;; | |
8479 | *) | |
8480 | lt_prog_compiler_pic='-fPIC' | |
8481 | ;; | |
8482 | esac | |
8483 | ;; | |
8484 | ||
8485 | interix[3-9]*) | |
8486 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8487 | # Instead, we relocate shared libraries at runtime. | |
8488 | ;; | |
8489 | ||
8490 | msdosdjgpp*) | |
8491 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8492 | # on systems that don't support them. | |
8493 | lt_prog_compiler_can_build_shared=no | |
8494 | enable_shared=no | |
8495 | ;; | |
8496 | ||
8497 | *nto* | *qnx*) | |
8498 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8499 | # it will coredump. | |
8500 | lt_prog_compiler_pic='-fPIC -shared' | |
8501 | ;; | |
8502 | ||
8503 | sysv4*MP*) | |
8504 | if test -d /usr/nec; then | |
8505 | lt_prog_compiler_pic=-Kconform_pic | |
8506 | fi | |
8507 | ;; | |
8508 | ||
8509 | *) | |
8510 | lt_prog_compiler_pic='-fPIC' | |
8511 | ;; | |
8512 | esac | |
8513 | ||
8514 | case $cc_basename in | |
8515 | nvcc*) # Cuda Compiler Driver 2.2 | |
8516 | lt_prog_compiler_wl='-Xlinker ' | |
8517 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
8518 | ;; | |
8519 | esac | |
8520 | else | |
8521 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8522 | case $host_os in | |
8523 | aix*) | |
8524 | lt_prog_compiler_wl='-Wl,' | |
8525 | if test "$host_cpu" = ia64; then | |
8526 | # AIX 5 now supports IA64 processor | |
8527 | lt_prog_compiler_static='-Bstatic' | |
8528 | else | |
8529 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8530 | fi | |
8531 | ;; | |
8532 | ||
8533 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8534 | # This hack is so that the source file can tell whether it is being | |
8535 | # built for inclusion in a dll (and should export symbols for example). | |
8536 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8537 | ;; | |
8538 | ||
8539 | hpux9* | hpux10* | hpux11*) | |
8540 | lt_prog_compiler_wl='-Wl,' | |
8541 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8542 | # not for PA HP-UX. | |
8543 | case $host_cpu in | |
8544 | hppa*64*|ia64*) | |
8545 | # +Z the default | |
8546 | ;; | |
8547 | *) | |
8548 | lt_prog_compiler_pic='+Z' | |
8549 | ;; | |
8550 | esac | |
8551 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8552 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
8553 | ;; | |
8554 | ||
8555 | irix5* | irix6* | nonstopux*) | |
8556 | lt_prog_compiler_wl='-Wl,' | |
8557 | # PIC (with -KPIC) is the default. | |
8558 | lt_prog_compiler_static='-non_shared' | |
8559 | ;; | |
8560 | ||
8561 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
8562 | case $cc_basename in | |
8563 | # old Intel for x86_64 which still supported -KPIC. | |
8564 | ecc*) | |
8565 | lt_prog_compiler_wl='-Wl,' | |
8566 | lt_prog_compiler_pic='-KPIC' | |
8567 | lt_prog_compiler_static='-static' | |
8568 | ;; | |
8569 | # icc used to be incompatible with GCC. | |
8570 | # ICC 10 doesn't accept -KPIC any more. | |
8571 | icc* | ifort*) | |
8572 | lt_prog_compiler_wl='-Wl,' | |
8573 | lt_prog_compiler_pic='-fPIC' | |
8574 | lt_prog_compiler_static='-static' | |
8575 | ;; | |
8576 | # Lahey Fortran 8.1. | |
8577 | lf95*) | |
8578 | lt_prog_compiler_wl='-Wl,' | |
8579 | lt_prog_compiler_pic='--shared' | |
8580 | lt_prog_compiler_static='--static' | |
8581 | ;; | |
8582 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
8583 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
8584 | # which looks to be a dead project) | |
8585 | lt_prog_compiler_wl='-Wl,' | |
8586 | lt_prog_compiler_pic='-fpic' | |
8587 | lt_prog_compiler_static='-Bstatic' | |
8588 | ;; | |
8589 | ccc*) | |
8590 | lt_prog_compiler_wl='-Wl,' | |
8591 | # All Alpha code is PIC. | |
8592 | lt_prog_compiler_static='-non_shared' | |
8593 | ;; | |
8594 | xl* | bgxl* | bgf* | mpixl*) | |
8595 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
8596 | lt_prog_compiler_wl='-Wl,' | |
8597 | lt_prog_compiler_pic='-qpic' | |
8598 | lt_prog_compiler_static='-qstaticlink' | |
8599 | ;; | |
8600 | *) | |
8601 | case `$CC -V 2>&1 | sed 5q` in | |
8602 | *Sun\ F* | *Sun*Fortran*) | |
8603 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8604 | lt_prog_compiler_pic='-KPIC' | |
8605 | lt_prog_compiler_static='-Bstatic' | |
8606 | lt_prog_compiler_wl='' | |
8607 | ;; | |
8608 | *Sun\ C*) | |
8609 | # Sun C 5.9 | |
8610 | lt_prog_compiler_pic='-KPIC' | |
8611 | lt_prog_compiler_static='-Bstatic' | |
8612 | lt_prog_compiler_wl='-Wl,' | |
8613 | ;; | |
8614 | esac | |
8615 | ;; | |
8616 | esac | |
8617 | ;; | |
8618 | ||
8619 | newsos6) | |
8620 | lt_prog_compiler_pic='-KPIC' | |
8621 | lt_prog_compiler_static='-Bstatic' | |
8622 | ;; | |
8623 | ||
8624 | *nto* | *qnx*) | |
8625 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8626 | # it will coredump. | |
8627 | lt_prog_compiler_pic='-fPIC -shared' | |
8628 | ;; | |
8629 | ||
8630 | osf3* | osf4* | osf5*) | |
8631 | lt_prog_compiler_wl='-Wl,' | |
8632 | # All OSF/1 code is PIC. | |
8633 | lt_prog_compiler_static='-non_shared' | |
8634 | ;; | |
8635 | ||
8636 | rdos*) | |
8637 | lt_prog_compiler_static='-non_shared' | |
8638 | ;; | |
8639 | ||
8640 | solaris*) | |
8641 | lt_prog_compiler_pic='-KPIC' | |
8642 | lt_prog_compiler_static='-Bstatic' | |
8643 | case $cc_basename in | |
8644 | f77* | f90* | f95*) | |
8645 | lt_prog_compiler_wl='-Qoption ld ';; | |
8646 | *) | |
8647 | lt_prog_compiler_wl='-Wl,';; | |
8648 | esac | |
8649 | ;; | |
8650 | ||
8651 | sunos4*) | |
8652 | lt_prog_compiler_wl='-Qoption ld ' | |
8653 | lt_prog_compiler_pic='-PIC' | |
8654 | lt_prog_compiler_static='-Bstatic' | |
8655 | ;; | |
8656 | ||
8657 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
8658 | lt_prog_compiler_wl='-Wl,' | |
8659 | lt_prog_compiler_pic='-KPIC' | |
8660 | lt_prog_compiler_static='-Bstatic' | |
8661 | ;; | |
8662 | ||
8663 | sysv4*MP*) | |
8664 | if test -d /usr/nec ;then | |
8665 | lt_prog_compiler_pic='-Kconform_pic' | |
8666 | lt_prog_compiler_static='-Bstatic' | |
8667 | fi | |
8668 | ;; | |
8669 | ||
8670 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8671 | lt_prog_compiler_wl='-Wl,' | |
8672 | lt_prog_compiler_pic='-KPIC' | |
8673 | lt_prog_compiler_static='-Bstatic' | |
8674 | ;; | |
8675 | ||
8676 | unicos*) | |
8677 | lt_prog_compiler_wl='-Wl,' | |
8678 | lt_prog_compiler_can_build_shared=no | |
8679 | ;; | |
8680 | ||
8681 | uts4*) | |
8682 | lt_prog_compiler_pic='-pic' | |
8683 | lt_prog_compiler_static='-Bstatic' | |
8684 | ;; | |
8685 | ||
8686 | *) | |
8687 | lt_prog_compiler_can_build_shared=no | |
8688 | ;; | |
8689 | esac | |
8690 | fi | |
8691 | ||
8692 | case $host_os in | |
8693 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8694 | *djgpp*) | |
8695 | lt_prog_compiler_pic= | |
8696 | ;; | |
8697 | *) | |
8698 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8699 | ;; | |
8700 | esac | |
8701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | |
8702 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
8703 | ||
8704 | ||
8705 | ||
8706 | ||
8707 | ||
8708 | ||
8709 | # | |
8710 | # Check to make sure the PIC flag actually works. | |
8711 | # | |
8712 | if test -n "$lt_prog_compiler_pic"; then | |
8713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
8714 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
22e05272 | 8715 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
48310492 RH |
8716 | $as_echo_n "(cached) " >&6 |
8717 | else | |
8718 | lt_cv_prog_compiler_pic_works=no | |
8719 | ac_outfile=conftest.$ac_objext | |
8720 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8721 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8722 | # Insert the option either (1) after the last *FLAGS variable, or | |
8723 | # (2) before a word containing "conftest.", or (3) at the end. | |
8724 | # Note that $ac_compile itself does not contain backslashes and begins | |
8725 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8726 | # The option is referenced via a variable to avoid confusing sed. | |
8727 | lt_compile=`echo "$ac_compile" | $SED \ | |
8728 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8729 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8730 | -e 's:$: $lt_compiler_flag:'` | |
8731 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8732 | (eval "$lt_compile" 2>conftest.err) | |
8733 | ac_status=$? | |
8734 | cat conftest.err >&5 | |
8735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8736 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8737 | # The compiler can only warn and ignore the option if not recognized | |
8738 | # So say no if there are warnings other than the usual output. | |
8739 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8740 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8741 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8742 | lt_cv_prog_compiler_pic_works=yes | |
8743 | fi | |
8744 | fi | |
8745 | $RM conftest* | |
8746 | ||
8747 | fi | |
8748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
8749 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
8750 | ||
8751 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
8752 | case $lt_prog_compiler_pic in | |
8753 | "" | " "*) ;; | |
8754 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8755 | esac | |
8756 | else | |
8757 | lt_prog_compiler_pic= | |
8758 | lt_prog_compiler_can_build_shared=no | |
8759 | fi | |
8760 | ||
8761 | fi | |
8762 | ||
8763 | ||
8764 | ||
8765 | ||
8766 | ||
8767 | ||
8768 | # | |
8769 | # Check to make sure the static flag actually works. | |
8770 | # | |
8771 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
8772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
8773 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
22e05272 | 8774 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
48310492 RH |
8775 | $as_echo_n "(cached) " >&6 |
8776 | else | |
8777 | lt_cv_prog_compiler_static_works=no | |
8778 | save_LDFLAGS="$LDFLAGS" | |
8779 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8780 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8781 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8782 | # The linker can only warn and ignore the option if not recognized | |
8783 | # So say no if there are warnings | |
8784 | if test -s conftest.err; then | |
8785 | # Append any errors to the config.log. | |
8786 | cat conftest.err 1>&5 | |
8787 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
8788 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8789 | if diff conftest.exp conftest.er2 >/dev/null; then | |
8790 | lt_cv_prog_compiler_static_works=yes | |
8791 | fi | |
8792 | else | |
8793 | lt_cv_prog_compiler_static_works=yes | |
8794 | fi | |
8795 | fi | |
8796 | $RM -r conftest* | |
8797 | LDFLAGS="$save_LDFLAGS" | |
8798 | ||
8799 | fi | |
8800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
8801 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
8802 | ||
8803 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
8804 | : | |
8805 | else | |
8806 | lt_prog_compiler_static= | |
8807 | fi | |
8808 | ||
8809 | ||
8810 | ||
8811 | ||
8812 | ||
8813 | ||
8814 | ||
8815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8816 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 8817 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
48310492 RH |
8818 | $as_echo_n "(cached) " >&6 |
8819 | else | |
8820 | lt_cv_prog_compiler_c_o=no | |
8821 | $RM -r conftest 2>/dev/null | |
8822 | mkdir conftest | |
8823 | cd conftest | |
8824 | mkdir out | |
8825 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8826 | ||
8827 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8828 | # Insert the option either (1) after the last *FLAGS variable, or | |
8829 | # (2) before a word containing "conftest.", or (3) at the end. | |
8830 | # Note that $ac_compile itself does not contain backslashes and begins | |
8831 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8832 | lt_compile=`echo "$ac_compile" | $SED \ | |
8833 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8834 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8835 | -e 's:$: $lt_compiler_flag:'` | |
8836 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8837 | (eval "$lt_compile" 2>out/conftest.err) | |
8838 | ac_status=$? | |
8839 | cat out/conftest.err >&5 | |
8840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8841 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
8842 | then | |
8843 | # The compiler can only warn and ignore the option if not recognized | |
8844 | # So say no if there are warnings | |
8845 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
8846 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8847 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8848 | lt_cv_prog_compiler_c_o=yes | |
8849 | fi | |
8850 | fi | |
8851 | chmod u+w . 2>&5 | |
8852 | $RM conftest* | |
8853 | # SGI C++ compiler will create directory out/ii_files/ for | |
8854 | # template instantiation | |
8855 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8856 | $RM out/* && rmdir out | |
8857 | cd .. | |
8858 | $RM -r conftest | |
8859 | $RM conftest* | |
8860 | ||
8861 | fi | |
8862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
8863 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
8864 | ||
8865 | ||
8866 | ||
8867 | ||
8868 | ||
8869 | ||
8870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8871 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
22e05272 | 8872 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
48310492 RH |
8873 | $as_echo_n "(cached) " >&6 |
8874 | else | |
8875 | lt_cv_prog_compiler_c_o=no | |
8876 | $RM -r conftest 2>/dev/null | |
8877 | mkdir conftest | |
8878 | cd conftest | |
8879 | mkdir out | |
8880 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8881 | ||
8882 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8883 | # Insert the option either (1) after the last *FLAGS variable, or | |
8884 | # (2) before a word containing "conftest.", or (3) at the end. | |
8885 | # Note that $ac_compile itself does not contain backslashes and begins | |
8886 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8887 | lt_compile=`echo "$ac_compile" | $SED \ | |
8888 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8889 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8890 | -e 's:$: $lt_compiler_flag:'` | |
8891 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8892 | (eval "$lt_compile" 2>out/conftest.err) | |
8893 | ac_status=$? | |
8894 | cat out/conftest.err >&5 | |
8895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8896 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
8897 | then | |
8898 | # The compiler can only warn and ignore the option if not recognized | |
8899 | # So say no if there are warnings | |
8900 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
8901 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8902 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8903 | lt_cv_prog_compiler_c_o=yes | |
8904 | fi | |
8905 | fi | |
8906 | chmod u+w . 2>&5 | |
8907 | $RM conftest* | |
8908 | # SGI C++ compiler will create directory out/ii_files/ for | |
8909 | # template instantiation | |
8910 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8911 | $RM out/* && rmdir out | |
8912 | cd .. | |
8913 | $RM -r conftest | |
8914 | $RM conftest* | |
8915 | ||
8916 | fi | |
8917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
8918 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
8919 | ||
8920 | ||
8921 | ||
8922 | ||
8923 | hard_links="nottested" | |
8924 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8925 | # do not overwrite the value of need_locks provided by the user | |
8926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
8927 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
8928 | hard_links=yes | |
8929 | $RM conftest* | |
8930 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8931 | touch conftest.a | |
8932 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8933 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
8935 | $as_echo "$hard_links" >&6; } | |
8936 | if test "$hard_links" = no; then | |
8937 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
8938 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
8939 | need_locks=warn | |
8940 | fi | |
8941 | else | |
8942 | need_locks=no | |
8943 | fi | |
8944 | ||
8945 | ||
8946 | ||
8947 | ||
8948 | ||
8949 | ||
8950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
8951 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
8952 | ||
8953 | runpath_var= | |
8954 | allow_undefined_flag= | |
8955 | always_export_symbols=no | |
8956 | archive_cmds= | |
8957 | archive_expsym_cmds= | |
8958 | compiler_needs_object=no | |
8959 | enable_shared_with_static_runtimes=no | |
8960 | export_dynamic_flag_spec= | |
8961 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8962 | hardcode_automatic=no | |
8963 | hardcode_direct=no | |
8964 | hardcode_direct_absolute=no | |
8965 | hardcode_libdir_flag_spec= | |
8966 | hardcode_libdir_flag_spec_ld= | |
8967 | hardcode_libdir_separator= | |
8968 | hardcode_minus_L=no | |
8969 | hardcode_shlibpath_var=unsupported | |
8970 | inherit_rpath=no | |
8971 | link_all_deplibs=unknown | |
8972 | module_cmds= | |
8973 | module_expsym_cmds= | |
8974 | old_archive_from_new_cmds= | |
8975 | old_archive_from_expsyms_cmds= | |
8976 | thread_safe_flag_spec= | |
8977 | whole_archive_flag_spec= | |
8978 | # include_expsyms should be a list of space-separated symbols to be *always* | |
8979 | # included in the symbol list | |
8980 | include_expsyms= | |
8981 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
8982 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8983 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8984 | # as well as any symbol that contains `d'. | |
8985 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
8986 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
8987 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8988 | # the symbol is explicitly referenced. Since portable code cannot | |
8989 | # rely on this symbol name, it's probably fine to never include it in | |
8990 | # preloaded symbol tables. | |
8991 | # Exclude shared library initialization/finalization symbols. | |
8992 | extract_expsyms_cmds= | |
8993 | ||
8994 | case $host_os in | |
8995 | cygwin* | mingw* | pw32* | cegcc*) | |
8996 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
8997 | # When not using gcc, we currently assume that we are using | |
8998 | # Microsoft Visual C++. | |
8999 | if test "$GCC" != yes; then | |
9000 | with_gnu_ld=no | |
9001 | fi | |
9002 | ;; | |
9003 | interix*) | |
9004 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9005 | with_gnu_ld=yes | |
9006 | ;; | |
9007 | openbsd*) | |
9008 | with_gnu_ld=no | |
9009 | ;; | |
9010 | esac | |
9011 | ||
9012 | ld_shlibs=yes | |
9013 | ||
9014 | # On some targets, GNU ld is compatible enough with the native linker | |
9015 | # that we're better off using the native interface for both. | |
9016 | lt_use_gnu_ld_interface=no | |
9017 | if test "$with_gnu_ld" = yes; then | |
9018 | case $host_os in | |
9019 | aix*) | |
9020 | # The AIX port of GNU ld has always aspired to compatibility | |
9021 | # with the native linker. However, as the warning in the GNU ld | |
9022 | # block says, versions before 2.19.5* couldn't really create working | |
9023 | # shared libraries, regardless of the interface used. | |
9024 | case `$LD -v 2>&1` in | |
9025 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9026 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9027 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9028 | *) | |
9029 | lt_use_gnu_ld_interface=yes | |
9030 | ;; | |
9031 | esac | |
9032 | ;; | |
9033 | *) | |
9034 | lt_use_gnu_ld_interface=yes | |
9035 | ;; | |
9036 | esac | |
9037 | fi | |
9038 | ||
9039 | if test "$lt_use_gnu_ld_interface" = yes; then | |
9040 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
9041 | wlarc='${wl}' | |
9042 | ||
9043 | # Set some defaults for GNU ld with shared library support. These | |
9044 | # are reset later if shared libraries are not supported. Putting them | |
9045 | # here allows them to be overridden if necessary. | |
9046 | runpath_var=LD_RUN_PATH | |
9047 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9048 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
9049 | # ancient GNU ld didn't support --whole-archive et. al. | |
9050 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9051 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9052 | else | |
9053 | whole_archive_flag_spec= | |
9054 | fi | |
9055 | supports_anon_versioning=no | |
9056 | case `$LD -v 2>&1` in | |
9057 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
9058 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
9059 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9060 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9061 | *\ 2.11.*) ;; # other 2.11 versions | |
9062 | *) supports_anon_versioning=yes ;; | |
9063 | esac | |
9064 | ||
9065 | # See if GNU ld supports shared libraries. | |
9066 | case $host_os in | |
9067 | aix[3-9]*) | |
9068 | # On AIX/PPC, the GNU linker is very broken | |
9069 | if test "$host_cpu" != ia64; then | |
9070 | ld_shlibs=no | |
9071 | cat <<_LT_EOF 1>&2 | |
9072 | ||
9073 | *** Warning: the GNU linker, at least up to release 2.19, is reported | |
9074 | *** to be unable to reliably create shared libraries on AIX. | |
9075 | *** Therefore, libtool is disabling shared libraries support. If you | |
9076 | *** really care for shared libraries, you may want to install binutils | |
9077 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9078 | *** You will then need to restart the configuration process. | |
9079 | ||
9080 | _LT_EOF | |
9081 | fi | |
9082 | ;; | |
9083 | ||
9084 | amigaos*) | |
9085 | case $host_cpu in | |
9086 | powerpc) | |
9087 | # see comment about AmigaOS4 .so support | |
9088 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9089 | archive_expsym_cmds='' | |
9090 | ;; | |
9091 | m68k) | |
9092 | 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)' | |
9093 | hardcode_libdir_flag_spec='-L$libdir' | |
9094 | hardcode_minus_L=yes | |
9095 | ;; | |
9096 | esac | |
9097 | ;; | |
9098 | ||
9099 | beos*) | |
9100 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9101 | allow_undefined_flag=unsupported | |
9102 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9103 | # support --undefined. This deserves some investigation. FIXME | |
9104 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9105 | else | |
9106 | ld_shlibs=no | |
9107 | fi | |
9108 | ;; | |
9109 | ||
9110 | cygwin* | mingw* | pw32* | cegcc*) | |
9111 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9112 | # as there is no search path for DLLs. | |
9113 | hardcode_libdir_flag_spec='-L$libdir' | |
9114 | export_dynamic_flag_spec='${wl}--export-all-symbols' | |
9115 | allow_undefined_flag=unsupported | |
9116 | always_export_symbols=no | |
9117 | enable_shared_with_static_runtimes=yes | |
9118 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9119 | ||
9120 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9121 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9122 | # If the export-symbols file already is a .def file (1st line | |
9123 | # is EXPORTS), use it as is; otherwise, prepend... | |
9124 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9125 | cp $export_symbols $output_objdir/$soname.def; | |
9126 | else | |
9127 | echo EXPORTS > $output_objdir/$soname.def; | |
9128 | cat $export_symbols >> $output_objdir/$soname.def; | |
9129 | fi~ | |
9130 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9131 | else | |
9132 | ld_shlibs=no | |
9133 | fi | |
9134 | ;; | |
9135 | ||
9136 | haiku*) | |
9137 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9138 | link_all_deplibs=yes | |
9139 | ;; | |
9140 | ||
9141 | interix[3-9]*) | |
9142 | hardcode_direct=no | |
9143 | hardcode_shlibpath_var=no | |
9144 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9145 | export_dynamic_flag_spec='${wl}-E' | |
9146 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9147 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9148 | # default) and relocated if they conflict, which is a slow very memory | |
9149 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9150 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9151 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9152 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9153 | 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' | |
9154 | ;; | |
9155 | ||
b1e21e5a | 9156 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) |
48310492 RH |
9157 | tmp_diet=no |
9158 | if test "$host_os" = linux-dietlibc; then | |
9159 | case $cc_basename in | |
9160 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9161 | esac | |
9162 | fi | |
9163 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9164 | && test "$tmp_diet" = no | |
9165 | then | |
a699d672 | 9166 | tmp_addflag=' $pic_flag' |
48310492 RH |
9167 | tmp_sharedflag='-shared' |
9168 | case $cc_basename,$host_cpu in | |
9169 | pgcc*) # Portland Group C compiler | |
9170 | 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' | |
9171 | tmp_addflag=' $pic_flag' | |
9172 | ;; | |
9173 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9174 | # Portland Group f77 and f90 compilers | |
9175 | 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' | |
9176 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
9177 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9178 | tmp_addflag=' -i_dynamic' ;; | |
9179 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9180 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9181 | ifc* | ifort*) # Intel Fortran compiler | |
9182 | tmp_addflag=' -nofor_main' ;; | |
9183 | lf95*) # Lahey Fortran 8.1 | |
9184 | whole_archive_flag_spec= | |
9185 | tmp_sharedflag='--shared' ;; | |
9186 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
9187 | tmp_sharedflag='-qmkshrobj' | |
9188 | tmp_addflag= ;; | |
9189 | nvcc*) # Cuda Compiler Driver 2.2 | |
9190 | 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' | |
9191 | compiler_needs_object=yes | |
9192 | ;; | |
9193 | esac | |
9194 | case `$CC -V 2>&1 | sed 5q` in | |
9195 | *Sun\ C*) # Sun C 5.9 | |
9196 | 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' | |
9197 | compiler_needs_object=yes | |
9198 | tmp_sharedflag='-G' ;; | |
9199 | *Sun\ F*) # Sun Fortran 8.3 | |
9200 | tmp_sharedflag='-G' ;; | |
9201 | esac | |
9202 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9203 | ||
9204 | if test "x$supports_anon_versioning" = xyes; then | |
9205 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9206 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9207 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9208 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9209 | fi | |
9210 | ||
9211 | case $cc_basename in | |
9212 | xlf* | bgf* | bgxlf* | mpixlf*) | |
9213 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
9214 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9215 | hardcode_libdir_flag_spec= | |
9216 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
9217 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
9218 | if test "x$supports_anon_versioning" = xyes; then | |
9219 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9220 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9221 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9222 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9223 | fi | |
9224 | ;; | |
9225 | esac | |
9226 | else | |
9227 | ld_shlibs=no | |
9228 | fi | |
9229 | ;; | |
9230 | ||
9231 | netbsd*) | |
9232 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9233 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9234 | wlarc= | |
9235 | else | |
9236 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9237 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9238 | fi | |
9239 | ;; | |
9240 | ||
9241 | solaris*) | |
9242 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9243 | ld_shlibs=no | |
9244 | cat <<_LT_EOF 1>&2 | |
9245 | ||
9246 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
9247 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9248 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9249 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9250 | *** your PATH or compiler configuration so that the native linker is | |
9251 | *** used, and then restart. | |
9252 | ||
9253 | _LT_EOF | |
9254 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9255 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9256 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9257 | else | |
9258 | ld_shlibs=no | |
9259 | fi | |
9260 | ;; | |
9261 | ||
9262 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
9263 | case `$LD -v 2>&1` in | |
9264 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9265 | ld_shlibs=no | |
9266 | cat <<_LT_EOF 1>&2 | |
9267 | ||
9268 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
9269 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9270 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9271 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9272 | *** your PATH or compiler configuration so that the native linker is | |
9273 | *** used, and then restart. | |
9274 | ||
9275 | _LT_EOF | |
9276 | ;; | |
9277 | *) | |
9278 | # For security reasons, it is highly recommended that you always | |
9279 | # use absolute paths for naming shared libraries, and exclude the | |
9280 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9281 | # requires that you compile everything twice, which is a pain. | |
9282 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9283 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9284 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9285 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9286 | else | |
9287 | ld_shlibs=no | |
9288 | fi | |
9289 | ;; | |
9290 | esac | |
9291 | ;; | |
9292 | ||
9293 | sunos4*) | |
9294 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9295 | wlarc= | |
9296 | hardcode_direct=yes | |
9297 | hardcode_shlibpath_var=no | |
9298 | ;; | |
9299 | ||
9300 | *) | |
9301 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9302 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9303 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9304 | else | |
9305 | ld_shlibs=no | |
9306 | fi | |
9307 | ;; | |
9308 | esac | |
9309 | ||
9310 | if test "$ld_shlibs" = no; then | |
9311 | runpath_var= | |
9312 | hardcode_libdir_flag_spec= | |
9313 | export_dynamic_flag_spec= | |
9314 | whole_archive_flag_spec= | |
9315 | fi | |
9316 | else | |
9317 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9318 | case $host_os in | |
9319 | aix3*) | |
9320 | allow_undefined_flag=unsupported | |
9321 | always_export_symbols=yes | |
9322 | 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' | |
9323 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9324 | # are no directories specified by -L. | |
9325 | hardcode_minus_L=yes | |
9326 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9327 | # Neither direct hardcoding nor static linking is supported with a | |
9328 | # broken collect2. | |
9329 | hardcode_direct=unsupported | |
9330 | fi | |
9331 | ;; | |
9332 | ||
9333 | aix[4-9]*) | |
9334 | if test "$host_cpu" = ia64; then | |
9335 | # On IA64, the linker does run time linking by default, so we don't | |
9336 | # have to do anything special. | |
9337 | aix_use_runtimelinking=no | |
9338 | exp_sym_flag='-Bexport' | |
9339 | no_entry_flag="" | |
9340 | else | |
9341 | # If we're using GNU nm, then we don't want the "-C" option. | |
9342 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
9343 | # Also, AIX nm treats weak defined symbols like other global | |
9344 | # defined symbols, whereas GNU nm marks them as "W". | |
9345 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
9346 | 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' | |
9347 | else | |
84c1b9d3 | 9348 | 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' |
48310492 RH |
9349 | fi |
9350 | aix_use_runtimelinking=no | |
9351 | ||
9352 | # Test if we are trying to use run time linking or normal | |
9353 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9354 | # need to do runtime linking. | |
9355 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
9356 | for ld_flag in $LDFLAGS; do | |
9357 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9358 | aix_use_runtimelinking=yes | |
9359 | break | |
9360 | fi | |
9361 | done | |
9362 | ;; | |
9363 | esac | |
9364 | ||
9365 | exp_sym_flag='-bexport' | |
9366 | no_entry_flag='-bnoentry' | |
9367 | fi | |
9368 | ||
9369 | # When large executables or shared objects are built, AIX ld can | |
9370 | # have problems creating the table of contents. If linking a library | |
9371 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9372 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9373 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9374 | ||
9375 | archive_cmds='' | |
9376 | hardcode_direct=yes | |
9377 | hardcode_direct_absolute=yes | |
9378 | hardcode_libdir_separator=':' | |
9379 | link_all_deplibs=yes | |
9380 | file_list_spec='${wl}-f,' | |
9381 | ||
9382 | if test "$GCC" = yes; then | |
9383 | case $host_os in aix4.[012]|aix4.[012].*) | |
9384 | # We only want to do this on AIX 4.2 and lower, the check | |
9385 | # below for broken collect2 doesn't work under 4.3+ | |
9386 | collect2name=`${CC} -print-prog-name=collect2` | |
9387 | if test -f "$collect2name" && | |
9388 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9389 | then | |
9390 | # We have reworked collect2 | |
9391 | : | |
9392 | else | |
9393 | # We have old collect2 | |
9394 | hardcode_direct=unsupported | |
9395 | # It fails to find uninstalled libraries when the uninstalled | |
9396 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9397 | # to unsupported forces relinking | |
9398 | hardcode_minus_L=yes | |
9399 | hardcode_libdir_flag_spec='-L$libdir' | |
9400 | hardcode_libdir_separator= | |
9401 | fi | |
9402 | ;; | |
9403 | esac | |
9404 | shared_flag='-shared' | |
9405 | if test "$aix_use_runtimelinking" = yes; then | |
9406 | shared_flag="$shared_flag "'${wl}-G' | |
9407 | fi | |
9408 | else | |
9409 | # not using gcc | |
9410 | if test "$host_cpu" = ia64; then | |
9411 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9412 | # chokes on -Wl,-G. The following line is correct: | |
9413 | shared_flag='-G' | |
9414 | else | |
9415 | if test "$aix_use_runtimelinking" = yes; then | |
9416 | shared_flag='${wl}-G' | |
9417 | else | |
9418 | shared_flag='${wl}-bM:SRE' | |
9419 | fi | |
9420 | fi | |
9421 | fi | |
9422 | ||
9423 | export_dynamic_flag_spec='${wl}-bexpall' | |
9424 | # It seems that -bexpall does not export symbols beginning with | |
9425 | # underscore (_), so it is better to generate a list of symbols to export. | |
9426 | always_export_symbols=yes | |
9427 | if test "$aix_use_runtimelinking" = yes; then | |
9428 | # Warning - without using the other runtime loading flags (-brtl), | |
9429 | # -berok will link without error, but may produce a broken library. | |
9430 | allow_undefined_flag='-berok' | |
9431 | # Determine the default libpath from the value encoded in an | |
9432 | # empty executable. | |
9433 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9434 | /* end confdefs.h. */ | |
9435 | ||
9436 | int | |
9437 | main () | |
9438 | { | |
9439 | ||
9440 | ; | |
9441 | return 0; | |
9442 | } | |
9443 | _ACEOF | |
9444 | if ac_fn_c_try_link "$LINENO"; then : | |
9445 | ||
9446 | lt_aix_libpath_sed=' | |
9447 | /Import File Strings/,/^$/ { | |
9448 | /^0/ { | |
9449 | s/^0 *\(.*\)$/\1/ | |
9450 | p | |
9451 | } | |
9452 | }' | |
9453 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9454 | # Check for a 64-bit object if we didn't find anything. | |
9455 | if test -z "$aix_libpath"; then | |
9456 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9457 | fi | |
9458 | fi | |
9459 | rm -f core conftest.err conftest.$ac_objext \ | |
9460 | conftest$ac_exeext conftest.$ac_ext | |
9461 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9462 | ||
9463 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9464 | 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" | |
9465 | else | |
9466 | if test "$host_cpu" = ia64; then | |
9467 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9468 | allow_undefined_flag="-z nodefs" | |
9469 | 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" | |
9470 | else | |
9471 | # Determine the default libpath from the value encoded in an | |
9472 | # empty executable. | |
9473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9474 | /* end confdefs.h. */ | |
9475 | ||
9476 | int | |
9477 | main () | |
9478 | { | |
9479 | ||
9480 | ; | |
9481 | return 0; | |
9482 | } | |
9483 | _ACEOF | |
9484 | if ac_fn_c_try_link "$LINENO"; then : | |
9485 | ||
9486 | lt_aix_libpath_sed=' | |
9487 | /Import File Strings/,/^$/ { | |
9488 | /^0/ { | |
9489 | s/^0 *\(.*\)$/\1/ | |
9490 | p | |
9491 | } | |
9492 | }' | |
9493 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9494 | # Check for a 64-bit object if we didn't find anything. | |
9495 | if test -z "$aix_libpath"; then | |
9496 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9497 | fi | |
9498 | fi | |
9499 | rm -f core conftest.err conftest.$ac_objext \ | |
9500 | conftest$ac_exeext conftest.$ac_ext | |
9501 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9502 | ||
9503 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9504 | # Warning - without using the other run time loading flags, | |
9505 | # -berok will link without error, but may produce a broken library. | |
9506 | no_undefined_flag=' ${wl}-bernotok' | |
9507 | allow_undefined_flag=' ${wl}-berok' | |
9508 | if test "$with_gnu_ld" = yes; then | |
9509 | # We only use this code for GNU lds that support --whole-archive. | |
9510 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
9511 | else | |
9512 | # Exported symbols can be pulled into shared objects from archives | |
9513 | whole_archive_flag_spec='$convenience' | |
9514 | fi | |
9515 | archive_cmds_need_lc=yes | |
9516 | # This is similar to how AIX traditionally builds its shared libraries. | |
9517 | 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' | |
9518 | fi | |
9519 | fi | |
9520 | ;; | |
9521 | ||
9522 | amigaos*) | |
9523 | case $host_cpu in | |
9524 | powerpc) | |
9525 | # see comment about AmigaOS4 .so support | |
9526 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9527 | archive_expsym_cmds='' | |
9528 | ;; | |
9529 | m68k) | |
9530 | 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)' | |
9531 | hardcode_libdir_flag_spec='-L$libdir' | |
9532 | hardcode_minus_L=yes | |
9533 | ;; | |
9534 | esac | |
9535 | ;; | |
9536 | ||
9537 | bsdi[45]*) | |
9538 | export_dynamic_flag_spec=-rdynamic | |
9539 | ;; | |
9540 | ||
9541 | cygwin* | mingw* | pw32* | cegcc*) | |
9542 | # When not using gcc, we currently assume that we are using | |
9543 | # Microsoft Visual C++. | |
9544 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9545 | # no search path for DLLs. | |
9546 | hardcode_libdir_flag_spec=' ' | |
9547 | allow_undefined_flag=unsupported | |
9548 | # Tell ltmain to make .lib files, not .a files. | |
9549 | libext=lib | |
9550 | # Tell ltmain to make .dll files, not .so files. | |
9551 | shrext_cmds=".dll" | |
9552 | # FIXME: Setting linknames here is a bad hack. | |
9553 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9554 | # The linker will automatically build a .lib file if we build a DLL. | |
9555 | old_archive_from_new_cmds='true' | |
9556 | # FIXME: Should let the user specify the lib program. | |
9557 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9558 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
9559 | enable_shared_with_static_runtimes=yes | |
9560 | ;; | |
9561 | ||
9562 | darwin* | rhapsody*) | |
9563 | ||
9564 | ||
9565 | archive_cmds_need_lc=no | |
9566 | hardcode_direct=no | |
9567 | hardcode_automatic=yes | |
9568 | hardcode_shlibpath_var=unsupported | |
9569 | if test "$lt_cv_ld_force_load" = "yes"; then | |
9570 | 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\"`' | |
9571 | else | |
9572 | whole_archive_flag_spec='' | |
9573 | fi | |
9574 | link_all_deplibs=yes | |
9575 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9576 | case $cc_basename in | |
9577 | ifort*) _lt_dar_can_shared=yes ;; | |
9578 | *) _lt_dar_can_shared=$GCC ;; | |
9579 | esac | |
9580 | if test "$_lt_dar_can_shared" = "yes"; then | |
9581 | output_verbose_link_cmd=func_echo_all | |
9582 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
9583 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9584 | 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}" | |
9585 | 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}" | |
9586 | ||
9587 | else | |
9588 | ld_shlibs=no | |
9589 | fi | |
9590 | ||
9591 | ;; | |
9592 | ||
9593 | dgux*) | |
9594 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9595 | hardcode_libdir_flag_spec='-L$libdir' | |
9596 | hardcode_shlibpath_var=no | |
9597 | ;; | |
9598 | ||
9599 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
9600 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9601 | # does not break anything, and helps significantly (at the cost of a little | |
9602 | # extra space). | |
9603 | freebsd2.2*) | |
9604 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9605 | hardcode_libdir_flag_spec='-R$libdir' | |
9606 | hardcode_direct=yes | |
9607 | hardcode_shlibpath_var=no | |
9608 | ;; | |
9609 | ||
9610 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
9611 | freebsd2.*) | |
9612 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9613 | hardcode_direct=yes | |
9614 | hardcode_minus_L=yes | |
9615 | hardcode_shlibpath_var=no | |
9616 | ;; | |
9617 | ||
9618 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
9619 | freebsd* | dragonfly*) | |
9620 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
9621 | hardcode_libdir_flag_spec='-R$libdir' | |
9622 | hardcode_direct=yes | |
9623 | hardcode_shlibpath_var=no | |
9624 | ;; | |
9625 | ||
9626 | hpux9*) | |
9627 | if test "$GCC" = yes; then | |
9628 | 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' | |
9629 | else | |
9630 | 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' | |
9631 | fi | |
9632 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9633 | hardcode_libdir_separator=: | |
9634 | hardcode_direct=yes | |
9635 | ||
9636 | # hardcode_minus_L: Not really in the search PATH, | |
9637 | # but as the default location of the library. | |
9638 | hardcode_minus_L=yes | |
9639 | export_dynamic_flag_spec='${wl}-E' | |
9640 | ;; | |
9641 | ||
9642 | hpux10*) | |
9643 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
9644 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9645 | else | |
9646 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9647 | fi | |
9648 | if test "$with_gnu_ld" = no; then | |
9649 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9650 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
9651 | hardcode_libdir_separator=: | |
9652 | hardcode_direct=yes | |
9653 | hardcode_direct_absolute=yes | |
9654 | export_dynamic_flag_spec='${wl}-E' | |
9655 | # hardcode_minus_L: Not really in the search PATH, | |
9656 | # but as the default location of the library. | |
9657 | hardcode_minus_L=yes | |
9658 | fi | |
9659 | ;; | |
9660 | ||
9661 | hpux11*) | |
9662 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
9663 | case $host_cpu in | |
9664 | hppa*64*) | |
4e4ba647 | 9665 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
48310492 RH |
9666 | ;; |
9667 | ia64*) | |
9668 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9669 | ;; | |
9670 | *) | |
9671 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9672 | ;; | |
9673 | esac | |
9674 | else | |
9675 | case $host_cpu in | |
9676 | hppa*64*) | |
4e4ba647 | 9677 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
48310492 RH |
9678 | ;; |
9679 | ia64*) | |
9680 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9681 | ;; | |
9682 | *) | |
9683 | ||
9684 | # Older versions of the 11.00 compiler do not understand -b yet | |
9685 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
9686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
9687 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
22e05272 | 9688 | if ${lt_cv_prog_compiler__b+:} false; then : |
48310492 RH |
9689 | $as_echo_n "(cached) " >&6 |
9690 | else | |
9691 | lt_cv_prog_compiler__b=no | |
9692 | save_LDFLAGS="$LDFLAGS" | |
9693 | LDFLAGS="$LDFLAGS -b" | |
9694 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9695 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9696 | # The linker can only warn and ignore the option if not recognized | |
9697 | # So say no if there are warnings | |
9698 | if test -s conftest.err; then | |
9699 | # Append any errors to the config.log. | |
9700 | cat conftest.err 1>&5 | |
9701 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9702 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9703 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9704 | lt_cv_prog_compiler__b=yes | |
9705 | fi | |
9706 | else | |
9707 | lt_cv_prog_compiler__b=yes | |
9708 | fi | |
9709 | fi | |
9710 | $RM -r conftest* | |
9711 | LDFLAGS="$save_LDFLAGS" | |
9712 | ||
9713 | fi | |
9714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
9715 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
9716 | ||
9717 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
9718 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9719 | else | |
9720 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9721 | fi | |
9722 | ||
9723 | ;; | |
9724 | esac | |
9725 | fi | |
9726 | if test "$with_gnu_ld" = no; then | |
9727 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9728 | hardcode_libdir_separator=: | |
9729 | ||
9730 | case $host_cpu in | |
9731 | hppa*64*|ia64*) | |
9732 | hardcode_direct=no | |
9733 | hardcode_shlibpath_var=no | |
9734 | ;; | |
9735 | *) | |
9736 | hardcode_direct=yes | |
9737 | hardcode_direct_absolute=yes | |
9738 | export_dynamic_flag_spec='${wl}-E' | |
9739 | ||
9740 | # hardcode_minus_L: Not really in the search PATH, | |
9741 | # but as the default location of the library. | |
9742 | hardcode_minus_L=yes | |
9743 | ;; | |
9744 | esac | |
9745 | fi | |
9746 | ;; | |
9747 | ||
9748 | irix5* | irix6* | nonstopux*) | |
9749 | if test "$GCC" = yes; then | |
9750 | 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' | |
9751 | # Try to use the -exported_symbol ld option, if it does not | |
9752 | # work, assume that -exports_file does not work either and | |
9753 | # implicitly export all symbols. | |
9754 | save_LDFLAGS="$LDFLAGS" | |
9755 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
9756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9757 | /* end confdefs.h. */ | |
9758 | int foo(void) {} | |
9759 | _ACEOF | |
9760 | if ac_fn_c_try_link "$LINENO"; then : | |
9761 | 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' | |
9762 | ||
9763 | fi | |
9764 | rm -f core conftest.err conftest.$ac_objext \ | |
9765 | conftest$ac_exeext conftest.$ac_ext | |
9766 | LDFLAGS="$save_LDFLAGS" | |
9767 | else | |
9768 | 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' | |
9769 | 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' | |
9770 | fi | |
9771 | archive_cmds_need_lc='no' | |
9772 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9773 | hardcode_libdir_separator=: | |
9774 | inherit_rpath=yes | |
9775 | link_all_deplibs=yes | |
9776 | ;; | |
9777 | ||
9778 | netbsd*) | |
9779 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9780 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9781 | else | |
9782 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9783 | fi | |
9784 | hardcode_libdir_flag_spec='-R$libdir' | |
9785 | hardcode_direct=yes | |
9786 | hardcode_shlibpath_var=no | |
9787 | ;; | |
9788 | ||
9789 | newsos6) | |
9790 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9791 | hardcode_direct=yes | |
9792 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9793 | hardcode_libdir_separator=: | |
9794 | hardcode_shlibpath_var=no | |
9795 | ;; | |
9796 | ||
9797 | *nto* | *qnx*) | |
9798 | ;; | |
9799 | ||
9800 | openbsd*) | |
9801 | if test -f /usr/libexec/ld.so; then | |
9802 | hardcode_direct=yes | |
9803 | hardcode_shlibpath_var=no | |
9804 | hardcode_direct_absolute=yes | |
9805 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9806 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9807 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
9808 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9809 | export_dynamic_flag_spec='${wl}-E' | |
9810 | else | |
9811 | case $host_os in | |
9812 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9813 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9814 | hardcode_libdir_flag_spec='-R$libdir' | |
9815 | ;; | |
9816 | *) | |
9817 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9818 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9819 | ;; | |
9820 | esac | |
9821 | fi | |
9822 | else | |
9823 | ld_shlibs=no | |
9824 | fi | |
9825 | ;; | |
9826 | ||
9827 | os2*) | |
9828 | hardcode_libdir_flag_spec='-L$libdir' | |
9829 | hardcode_minus_L=yes | |
9830 | allow_undefined_flag=unsupported | |
9831 | 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' | |
9832 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
9833 | ;; | |
9834 | ||
9835 | osf3*) | |
9836 | if test "$GCC" = yes; then | |
9837 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9838 | 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' | |
9839 | else | |
9840 | allow_undefined_flag=' -expect_unresolved \*' | |
9841 | 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' | |
9842 | fi | |
9843 | archive_cmds_need_lc='no' | |
9844 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9845 | hardcode_libdir_separator=: | |
9846 | ;; | |
9847 | ||
9848 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
9849 | if test "$GCC" = yes; then | |
9850 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9851 | 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' | |
9852 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9853 | else | |
9854 | allow_undefined_flag=' -expect_unresolved \*' | |
9855 | 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' | |
9856 | 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~ | |
9857 | $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' | |
9858 | ||
9859 | # Both c and cxx compiler support -rpath directly | |
9860 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9861 | fi | |
9862 | archive_cmds_need_lc='no' | |
9863 | hardcode_libdir_separator=: | |
9864 | ;; | |
9865 | ||
9866 | solaris*) | |
9867 | no_undefined_flag=' -z defs' | |
9868 | if test "$GCC" = yes; then | |
9869 | wlarc='${wl}' | |
9870 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9871 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9872 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9873 | else | |
9874 | case `$CC -V 2>&1` in | |
9875 | *"Compilers 5.0"*) | |
9876 | wlarc='' | |
9877 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9878 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9879 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9880 | ;; | |
9881 | *) | |
9882 | wlarc='${wl}' | |
9883 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9884 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9885 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9886 | ;; | |
9887 | esac | |
9888 | fi | |
9889 | hardcode_libdir_flag_spec='-R$libdir' | |
9890 | hardcode_shlibpath_var=no | |
9891 | case $host_os in | |
9892 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9893 | *) | |
9894 | # The compiler driver will combine and reorder linker options, | |
9895 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9896 | # but is careful enough not to reorder. | |
9897 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9898 | if test "$GCC" = yes; then | |
9899 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9900 | else | |
9901 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9902 | fi | |
9903 | ;; | |
9904 | esac | |
9905 | link_all_deplibs=yes | |
9906 | ;; | |
9907 | ||
9908 | sunos4*) | |
9909 | if test "x$host_vendor" = xsequent; then | |
9910 | # Use $CC to link under sequent, because it throws in some extra .o | |
9911 | # files that make .init and .fini sections work. | |
9912 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9913 | else | |
9914 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
9915 | fi | |
9916 | hardcode_libdir_flag_spec='-L$libdir' | |
9917 | hardcode_direct=yes | |
9918 | hardcode_minus_L=yes | |
9919 | hardcode_shlibpath_var=no | |
9920 | ;; | |
9921 | ||
9922 | sysv4) | |
9923 | case $host_vendor in | |
9924 | sni) | |
9925 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9926 | hardcode_direct=yes # is this really true??? | |
9927 | ;; | |
9928 | siemens) | |
9929 | ## LD is ld it makes a PLAMLIB | |
9930 | ## CC just makes a GrossModule. | |
9931 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9932 | reload_cmds='$CC -r -o $output$reload_objs' | |
9933 | hardcode_direct=no | |
9934 | ;; | |
9935 | motorola) | |
9936 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9937 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9938 | ;; | |
9939 | esac | |
9940 | runpath_var='LD_RUN_PATH' | |
9941 | hardcode_shlibpath_var=no | |
9942 | ;; | |
9943 | ||
9944 | sysv4.3*) | |
9945 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9946 | hardcode_shlibpath_var=no | |
9947 | export_dynamic_flag_spec='-Bexport' | |
9948 | ;; | |
9949 | ||
9950 | sysv4*MP*) | |
9951 | if test -d /usr/nec; then | |
9952 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9953 | hardcode_shlibpath_var=no | |
9954 | runpath_var=LD_RUN_PATH | |
9955 | hardcode_runpath_var=yes | |
9956 | ld_shlibs=yes | |
9957 | fi | |
9958 | ;; | |
9959 | ||
9960 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
9961 | no_undefined_flag='${wl}-z,text' | |
9962 | archive_cmds_need_lc=no | |
9963 | hardcode_shlibpath_var=no | |
9964 | runpath_var='LD_RUN_PATH' | |
9965 | ||
9966 | if test "$GCC" = yes; then | |
9967 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9968 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9969 | else | |
9970 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9971 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9972 | fi | |
9973 | ;; | |
9974 | ||
9975 | sysv5* | sco3.2v5* | sco5v6*) | |
9976 | # Note: We can NOT use -z defs as we might desire, because we do not | |
9977 | # link with -lc, and that would cause any symbols used from libc to | |
9978 | # always be unresolved, which means just about no library would | |
9979 | # ever link correctly. If we're not using GNU ld we use -z text | |
9980 | # though, which does catch some bad symbols but isn't as heavy-handed | |
9981 | # as -z defs. | |
9982 | no_undefined_flag='${wl}-z,text' | |
9983 | allow_undefined_flag='${wl}-z,nodefs' | |
9984 | archive_cmds_need_lc=no | |
9985 | hardcode_shlibpath_var=no | |
9986 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9987 | hardcode_libdir_separator=':' | |
9988 | link_all_deplibs=yes | |
9989 | export_dynamic_flag_spec='${wl}-Bexport' | |
9990 | runpath_var='LD_RUN_PATH' | |
9991 | ||
9992 | if test "$GCC" = yes; then | |
9993 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9994 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9995 | else | |
9996 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9997 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9998 | fi | |
9999 | ;; | |
10000 | ||
10001 | uts4*) | |
10002 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10003 | hardcode_libdir_flag_spec='-L$libdir' | |
10004 | hardcode_shlibpath_var=no | |
10005 | ;; | |
10006 | ||
10007 | *) | |
10008 | ld_shlibs=no | |
10009 | ;; | |
10010 | esac | |
10011 | ||
10012 | if test x$host_vendor = xsni; then | |
10013 | case $host in | |
10014 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10015 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
10016 | ;; | |
10017 | esac | |
10018 | fi | |
10019 | fi | |
10020 | ||
10021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
10022 | $as_echo "$ld_shlibs" >&6; } | |
10023 | test "$ld_shlibs" = no && can_build_shared=no | |
10024 | ||
10025 | with_gnu_ld=$with_gnu_ld | |
10026 | ||
10027 | ||
10028 | ||
10029 | ||
10030 | ||
10031 | ||
10032 | ||
10033 | ||
10034 | ||
10035 | ||
10036 | ||
10037 | ||
10038 | ||
10039 | ||
10040 | ||
10041 | # | |
10042 | # Do we need to explicitly link libc? | |
10043 | # | |
10044 | case "x$archive_cmds_need_lc" in | |
10045 | x|xyes) | |
10046 | # Assume -lc should be added | |
10047 | archive_cmds_need_lc=yes | |
10048 | ||
10049 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
10050 | case $archive_cmds in | |
10051 | *'~'*) | |
10052 | # FIXME: we may have to deal with multi-command sequences. | |
10053 | ;; | |
10054 | '$CC '*) | |
10055 | # Test whether the compiler implicitly links with -lc since on some | |
10056 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10057 | # to ld, don't add -lc before -lgcc. | |
10058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
10059 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
22e05272 | 10060 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
48310492 RH |
10061 | $as_echo_n "(cached) " >&6 |
10062 | else | |
10063 | $RM conftest* | |
10064 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10065 | ||
10066 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
10067 | (eval $ac_compile) 2>&5 | |
10068 | ac_status=$? | |
10069 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10070 | test $ac_status = 0; } 2>conftest.err; then | |
10071 | soname=conftest | |
10072 | lib=conftest | |
10073 | libobjs=conftest.$ac_objext | |
10074 | deplibs= | |
10075 | wl=$lt_prog_compiler_wl | |
10076 | pic_flag=$lt_prog_compiler_pic | |
10077 | compiler_flags=-v | |
10078 | linker_flags=-v | |
10079 | verstring= | |
10080 | output_objdir=. | |
10081 | libname=conftest | |
10082 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10083 | allow_undefined_flag= | |
10084 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
10085 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
10086 | ac_status=$? | |
10087 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10088 | test $ac_status = 0; } | |
10089 | then | |
10090 | lt_cv_archive_cmds_need_lc=no | |
10091 | else | |
10092 | lt_cv_archive_cmds_need_lc=yes | |
10093 | fi | |
10094 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10095 | else | |
10096 | cat conftest.err 1>&5 | |
10097 | fi | |
10098 | $RM conftest* | |
10099 | ||
10100 | fi | |
10101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
10102 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
10103 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
10104 | ;; | |
10105 | esac | |
10106 | fi | |
10107 | ;; | |
10108 | esac | |
10109 | ||
10110 | ||
10111 | ||
10112 | ||
10113 | ||
10114 | ||
10115 | ||
10116 | ||
10117 | ||
10118 | ||
10119 | ||
10120 | ||
10121 | ||
10122 | ||
10123 | ||
10124 | ||
10125 | ||
10126 | ||
10127 | ||
10128 | ||
10129 | ||
10130 | ||
10131 | ||
10132 | ||
10133 | ||
10134 | ||
10135 | ||
10136 | ||
10137 | ||
10138 | ||
10139 | ||
10140 | ||
10141 | ||
10142 | ||
10143 | ||
10144 | ||
10145 | ||
10146 | ||
10147 | ||
10148 | ||
10149 | ||
10150 | ||
10151 | ||
10152 | ||
10153 | ||
10154 | ||
10155 | ||
10156 | ||
10157 | ||
10158 | ||
10159 | ||
10160 | ||
10161 | ||
10162 | ||
10163 | ||
10164 | ||
10165 | ||
10166 | ||
10167 | ||
10168 | ||
10169 | ||
10170 | ||
10171 | ||
10172 | ||
10173 | ||
10174 | ||
10175 | ||
10176 | ||
10177 | ||
10178 | ||
10179 | ||
10180 | ||
10181 | ||
10182 | ||
10183 | ||
10184 | ||
10185 | ||
10186 | ||
10187 | ||
10188 | ||
10189 | ||
10190 | ||
10191 | ||
10192 | ||
10193 | ||
10194 | ||
10195 | ||
10196 | ||
10197 | ||
10198 | ||
10199 | ||
10200 | ||
10201 | ||
10202 | ||
10203 | ||
10204 | ||
10205 | ||
10206 | ||
10207 | ||
10208 | ||
10209 | ||
10210 | ||
10211 | ||
10212 | ||
10213 | ||
10214 | ||
10215 | ||
10216 | ||
10217 | ||
10218 | ||
10219 | ||
10220 | ||
10221 | ||
10222 | ||
10223 | ||
10224 | ||
10225 | ||
10226 | ||
10227 | ||
10228 | ||
10229 | ||
10230 | ||
10231 | ||
10232 | ||
10233 | ||
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 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
10267 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
10268 | ||
10269 | if test "$GCC" = yes; then | |
10270 | case $host_os in | |
10271 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10272 | *) lt_awk_arg="/^libraries:/" ;; | |
10273 | esac | |
10274 | case $host_os in | |
10275 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
10276 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
10277 | esac | |
10278 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10279 | case $lt_search_path_spec in | |
10280 | *\;*) | |
10281 | # if the path contains ";" then we assume it to be the separator | |
10282 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10283 | # assumed that no part of a normal pathname contains ";" but that should | |
10284 | # okay in the real world where ";" in dirpaths is itself problematic. | |
10285 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
10286 | ;; | |
10287 | *) | |
10288 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10289 | ;; | |
10290 | esac | |
10291 | # Ok, now we have the path, separated by spaces, we can step through it | |
10292 | # and add multilib dir if necessary. | |
10293 | lt_tmp_lt_search_path_spec= | |
10294 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10295 | for lt_sys_path in $lt_search_path_spec; do | |
10296 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10297 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10298 | else | |
10299 | test -d "$lt_sys_path" && \ | |
10300 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10301 | fi | |
10302 | done | |
10303 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
10304 | BEGIN {RS=" "; FS="/|\n";} { | |
10305 | lt_foo=""; | |
10306 | lt_count=0; | |
10307 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10308 | if ($lt_i != "" && $lt_i != ".") { | |
10309 | if ($lt_i == "..") { | |
10310 | lt_count++; | |
10311 | } else { | |
10312 | if (lt_count == 0) { | |
10313 | lt_foo="/" $lt_i lt_foo; | |
10314 | } else { | |
10315 | lt_count--; | |
10316 | } | |
10317 | } | |
10318 | } | |
10319 | } | |
10320 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10321 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10322 | }'` | |
10323 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
10324 | # for these hosts. | |
10325 | case $host_os in | |
10326 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
10327 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
10328 | esac | |
10329 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
10330 | else | |
10331 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10332 | fi | |
10333 | library_names_spec= | |
10334 | libname_spec='lib$name' | |
10335 | soname_spec= | |
10336 | shrext_cmds=".so" | |
10337 | postinstall_cmds= | |
10338 | postuninstall_cmds= | |
10339 | finish_cmds= | |
10340 | finish_eval= | |
10341 | shlibpath_var= | |
10342 | shlibpath_overrides_runpath=unknown | |
10343 | version_type=none | |
10344 | dynamic_linker="$host_os ld.so" | |
10345 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10346 | need_lib_prefix=unknown | |
10347 | hardcode_into_libs=no | |
10348 | ||
10349 | # when you set need_version to no, make sure it does not cause -set_version | |
10350 | # flags to be left without arguments | |
10351 | need_version=unknown | |
10352 | ||
10353 | case $host_os in | |
10354 | aix3*) | |
10355 | version_type=linux | |
10356 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10357 | shlibpath_var=LIBPATH | |
10358 | ||
10359 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10360 | soname_spec='${libname}${release}${shared_ext}$major' | |
10361 | ;; | |
10362 | ||
10363 | aix[4-9]*) | |
10364 | version_type=linux | |
10365 | need_lib_prefix=no | |
10366 | need_version=no | |
10367 | hardcode_into_libs=yes | |
10368 | if test "$host_cpu" = ia64; then | |
10369 | # AIX 5 supports IA64 | |
10370 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10371 | shlibpath_var=LD_LIBRARY_PATH | |
10372 | else | |
10373 | # With GCC up to 2.95.x, collect2 would create an import file | |
10374 | # for dependence libraries. The import file would start with | |
10375 | # the line `#! .'. This would cause the generated library to | |
10376 | # depend on `.', always an invalid library. This was fixed in | |
10377 | # development snapshots of GCC prior to 3.0. | |
10378 | case $host_os in | |
10379 | aix4 | aix4.[01] | aix4.[01].*) | |
10380 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10381 | echo ' yes ' | |
10382 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10383 | : | |
10384 | else | |
10385 | can_build_shared=no | |
10386 | fi | |
10387 | ;; | |
10388 | esac | |
10389 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10390 | # soname into executable. Probably we can add versioning support to | |
10391 | # collect2, so additional links can be useful in future. | |
10392 | if test "$aix_use_runtimelinking" = yes; then | |
10393 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10394 | # instead of lib<name>.a to let people know that these are not | |
10395 | # typical AIX shared libraries. | |
10396 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10397 | else | |
10398 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10399 | # and later when we are not doing run time linking. | |
10400 | library_names_spec='${libname}${release}.a $libname.a' | |
10401 | soname_spec='${libname}${release}${shared_ext}$major' | |
10402 | fi | |
10403 | shlibpath_var=LIBPATH | |
10404 | fi | |
10405 | ;; | |
10406 | ||
10407 | amigaos*) | |
10408 | case $host_cpu in | |
10409 | powerpc) | |
10410 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10411 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10412 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10413 | ;; | |
10414 | m68k) | |
10415 | library_names_spec='$libname.ixlibrary $libname.a' | |
10416 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
10417 | 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' | |
10418 | ;; | |
10419 | esac | |
10420 | ;; | |
10421 | ||
10422 | beos*) | |
10423 | library_names_spec='${libname}${shared_ext}' | |
10424 | dynamic_linker="$host_os ld.so" | |
10425 | shlibpath_var=LIBRARY_PATH | |
10426 | ;; | |
10427 | ||
10428 | bsdi[45]*) | |
10429 | version_type=linux | |
10430 | need_version=no | |
10431 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10432 | soname_spec='${libname}${release}${shared_ext}$major' | |
10433 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10434 | shlibpath_var=LD_LIBRARY_PATH | |
10435 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10436 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10437 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10438 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10439 | # libtool to hard-code these into programs | |
10440 | ;; | |
10441 | ||
10442 | cygwin* | mingw* | pw32* | cegcc*) | |
10443 | version_type=windows | |
10444 | shrext_cmds=".dll" | |
10445 | need_version=no | |
10446 | need_lib_prefix=no | |
10447 | ||
10448 | case $GCC,$host_os in | |
10449 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
10450 | library_names_spec='$libname.dll.a' | |
10451 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10452 | postinstall_cmds='base_file=`basename \${file}`~ | |
10453 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10454 | dldir=$destdir/`dirname \$dlpath`~ | |
10455 | test -d \$dldir || mkdir -p \$dldir~ | |
10456 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10457 | chmod a+x \$dldir/$dlname~ | |
10458 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10459 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10460 | fi' | |
10461 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10462 | dlpath=$dir/\$dldll~ | |
10463 | $RM \$dlpath' | |
10464 | shlibpath_overrides_runpath=yes | |
10465 | ||
10466 | case $host_os in | |
10467 | cygwin*) | |
10468 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10469 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10470 | ||
10471 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
10472 | ;; | |
10473 | mingw* | cegcc*) | |
10474 | # MinGW DLLs use traditional 'lib' prefix | |
10475 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10476 | ;; | |
10477 | pw32*) | |
10478 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10479 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10480 | ;; | |
10481 | esac | |
10482 | ;; | |
10483 | ||
10484 | *) | |
10485 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10486 | ;; | |
10487 | esac | |
10488 | dynamic_linker='Win32 ld.exe' | |
10489 | # FIXME: first we should search . and the directory the executable is in | |
10490 | shlibpath_var=PATH | |
10491 | ;; | |
10492 | ||
10493 | darwin* | rhapsody*) | |
10494 | dynamic_linker="$host_os dyld" | |
10495 | version_type=darwin | |
10496 | need_lib_prefix=no | |
10497 | need_version=no | |
10498 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10499 | soname_spec='${libname}${release}${major}$shared_ext' | |
10500 | shlibpath_overrides_runpath=yes | |
10501 | shlibpath_var=DYLD_LIBRARY_PATH | |
10502 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10503 | ||
10504 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10505 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10506 | ;; | |
10507 | ||
10508 | dgux*) | |
10509 | version_type=linux | |
10510 | need_lib_prefix=no | |
10511 | need_version=no | |
10512 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10513 | soname_spec='${libname}${release}${shared_ext}$major' | |
10514 | shlibpath_var=LD_LIBRARY_PATH | |
10515 | ;; | |
10516 | ||
10517 | freebsd* | dragonfly*) | |
10518 | # DragonFly does not have aout. When/if they implement a new | |
10519 | # versioning mechanism, adjust this. | |
10520 | if test -x /usr/bin/objformat; then | |
10521 | objformat=`/usr/bin/objformat` | |
10522 | else | |
10523 | case $host_os in | |
10524 | freebsd[23].*) objformat=aout ;; | |
10525 | *) objformat=elf ;; | |
10526 | esac | |
10527 | fi | |
10528 | version_type=freebsd-$objformat | |
10529 | case $version_type in | |
10530 | freebsd-elf*) | |
10531 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10532 | need_version=no | |
10533 | need_lib_prefix=no | |
10534 | ;; | |
10535 | freebsd-*) | |
10536 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10537 | need_version=yes | |
10538 | ;; | |
10539 | esac | |
10540 | shlibpath_var=LD_LIBRARY_PATH | |
10541 | case $host_os in | |
10542 | freebsd2.*) | |
10543 | shlibpath_overrides_runpath=yes | |
10544 | ;; | |
10545 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10546 | shlibpath_overrides_runpath=yes | |
10547 | hardcode_into_libs=yes | |
10548 | ;; | |
10549 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10550 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10551 | shlibpath_overrides_runpath=no | |
10552 | hardcode_into_libs=yes | |
10553 | ;; | |
10554 | *) # from 4.6 on, and DragonFly | |
10555 | shlibpath_overrides_runpath=yes | |
10556 | hardcode_into_libs=yes | |
10557 | ;; | |
10558 | esac | |
10559 | ;; | |
10560 | ||
48310492 RH |
10561 | haiku*) |
10562 | version_type=linux | |
10563 | need_lib_prefix=no | |
10564 | need_version=no | |
10565 | dynamic_linker="$host_os runtime_loader" | |
10566 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10567 | soname_spec='${libname}${release}${shared_ext}$major' | |
10568 | shlibpath_var=LIBRARY_PATH | |
10569 | shlibpath_overrides_runpath=yes | |
10570 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
10571 | hardcode_into_libs=yes | |
10572 | ;; | |
10573 | ||
10574 | hpux9* | hpux10* | hpux11*) | |
10575 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10576 | # link against other versions. | |
10577 | version_type=sunos | |
10578 | need_lib_prefix=no | |
10579 | need_version=no | |
10580 | case $host_cpu in | |
10581 | ia64*) | |
10582 | shrext_cmds='.so' | |
10583 | hardcode_into_libs=yes | |
10584 | dynamic_linker="$host_os dld.so" | |
10585 | shlibpath_var=LD_LIBRARY_PATH | |
10586 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10587 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10588 | soname_spec='${libname}${release}${shared_ext}$major' | |
10589 | if test "X$HPUX_IA64_MODE" = X32; then | |
10590 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10591 | else | |
10592 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10593 | fi | |
10594 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10595 | ;; | |
10596 | hppa*64*) | |
10597 | shrext_cmds='.sl' | |
10598 | hardcode_into_libs=yes | |
10599 | dynamic_linker="$host_os dld.sl" | |
10600 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10601 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10602 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10603 | soname_spec='${libname}${release}${shared_ext}$major' | |
10604 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10605 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10606 | ;; | |
10607 | *) | |
10608 | shrext_cmds='.sl' | |
10609 | dynamic_linker="$host_os dld.sl" | |
10610 | shlibpath_var=SHLIB_PATH | |
10611 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10612 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10613 | soname_spec='${libname}${release}${shared_ext}$major' | |
10614 | ;; | |
10615 | esac | |
10616 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
10617 | postinstall_cmds='chmod 555 $lib' | |
10618 | # or fails outright, so override atomically: | |
10619 | install_override_mode=555 | |
10620 | ;; | |
10621 | ||
10622 | interix[3-9]*) | |
10623 | version_type=linux | |
10624 | need_lib_prefix=no | |
10625 | need_version=no | |
10626 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10627 | soname_spec='${libname}${release}${shared_ext}$major' | |
10628 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10629 | shlibpath_var=LD_LIBRARY_PATH | |
10630 | shlibpath_overrides_runpath=no | |
10631 | hardcode_into_libs=yes | |
10632 | ;; | |
10633 | ||
10634 | irix5* | irix6* | nonstopux*) | |
10635 | case $host_os in | |
10636 | nonstopux*) version_type=nonstopux ;; | |
10637 | *) | |
10638 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10639 | version_type=linux | |
10640 | else | |
10641 | version_type=irix | |
10642 | fi ;; | |
10643 | esac | |
10644 | need_lib_prefix=no | |
10645 | need_version=no | |
10646 | soname_spec='${libname}${release}${shared_ext}$major' | |
10647 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10648 | case $host_os in | |
10649 | irix5* | nonstopux*) | |
10650 | libsuff= shlibsuff= | |
10651 | ;; | |
10652 | *) | |
10653 | case $LD in # libtool.m4 will add one of these switches to LD | |
10654 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10655 | libsuff= shlibsuff= libmagic=32-bit;; | |
10656 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10657 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10658 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10659 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10660 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10661 | esac | |
10662 | ;; | |
10663 | esac | |
10664 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10665 | shlibpath_overrides_runpath=no | |
10666 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10667 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10668 | hardcode_into_libs=yes | |
10669 | ;; | |
10670 | ||
10671 | # No shared lib support for Linux oldld, aout, or coff. | |
10672 | linux*oldld* | linux*aout* | linux*coff*) | |
10673 | dynamic_linker=no | |
10674 | ;; | |
10675 | ||
10676 | # This must be Linux ELF. | |
b1e21e5a CL |
10677 | |
10678 | # uclinux* changes (here and below) have been submitted to the libtool | |
10679 | # project, but have not yet been accepted: they are GCC-local changes | |
10680 | # for the time being. (See | |
10681 | # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) | |
f56de355 | 10682 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) |
48310492 RH |
10683 | version_type=linux |
10684 | need_lib_prefix=no | |
10685 | need_version=no | |
10686 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10687 | soname_spec='${libname}${release}${shared_ext}$major' | |
10688 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10689 | shlibpath_var=LD_LIBRARY_PATH | |
10690 | shlibpath_overrides_runpath=no | |
10691 | ||
10692 | # Some binutils ld are patched to set DT_RUNPATH | |
22e05272 | 10693 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
48310492 RH |
10694 | $as_echo_n "(cached) " >&6 |
10695 | else | |
10696 | lt_cv_shlibpath_overrides_runpath=no | |
10697 | save_LDFLAGS=$LDFLAGS | |
10698 | save_libdir=$libdir | |
10699 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10700 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
10701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10702 | /* end confdefs.h. */ | |
10703 | ||
10704 | int | |
10705 | main () | |
10706 | { | |
10707 | ||
10708 | ; | |
10709 | return 0; | |
10710 | } | |
10711 | _ACEOF | |
10712 | if ac_fn_c_try_link "$LINENO"; then : | |
10713 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
10714 | lt_cv_shlibpath_overrides_runpath=yes | |
10715 | fi | |
10716 | fi | |
10717 | rm -f core conftest.err conftest.$ac_objext \ | |
10718 | conftest$ac_exeext conftest.$ac_ext | |
10719 | LDFLAGS=$save_LDFLAGS | |
10720 | libdir=$save_libdir | |
10721 | ||
10722 | fi | |
10723 | ||
10724 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
10725 | ||
10726 | # This implies no fast_install, which is unacceptable. | |
10727 | # Some rework will be needed to allow for fast_install | |
10728 | # before this can be enabled. | |
10729 | hardcode_into_libs=yes | |
10730 | ||
10731 | # Append ld.so.conf contents to the search path | |
10732 | if test -f /etc/ld.so.conf; then | |
10733 | 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' ' '` | |
10734 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
10735 | fi | |
10736 | ||
10737 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10738 | # powerpc, because MkLinux only supported shared libraries with the | |
10739 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10740 | # most powerpc-linux boxes support dynamic linking these days and | |
10741 | # people can always --disable-shared, the test was removed, and we | |
10742 | # assume the GNU/Linux dynamic linker is in use. | |
10743 | dynamic_linker='GNU/Linux ld.so' | |
10744 | ;; | |
10745 | ||
10746 | netbsd*) | |
10747 | version_type=sunos | |
10748 | need_lib_prefix=no | |
10749 | need_version=no | |
10750 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10751 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10752 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10753 | dynamic_linker='NetBSD (a.out) ld.so' | |
10754 | else | |
10755 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10756 | soname_spec='${libname}${release}${shared_ext}$major' | |
10757 | dynamic_linker='NetBSD ld.elf_so' | |
10758 | fi | |
10759 | shlibpath_var=LD_LIBRARY_PATH | |
10760 | shlibpath_overrides_runpath=yes | |
10761 | hardcode_into_libs=yes | |
10762 | ;; | |
10763 | ||
10764 | newsos6) | |
10765 | version_type=linux | |
10766 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10767 | shlibpath_var=LD_LIBRARY_PATH | |
10768 | shlibpath_overrides_runpath=yes | |
10769 | ;; | |
10770 | ||
10771 | *nto* | *qnx*) | |
10772 | version_type=qnx | |
10773 | need_lib_prefix=no | |
10774 | need_version=no | |
10775 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10776 | soname_spec='${libname}${release}${shared_ext}$major' | |
10777 | shlibpath_var=LD_LIBRARY_PATH | |
10778 | shlibpath_overrides_runpath=no | |
10779 | hardcode_into_libs=yes | |
10780 | dynamic_linker='ldqnx.so' | |
10781 | ;; | |
10782 | ||
10783 | openbsd*) | |
10784 | version_type=sunos | |
10785 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10786 | need_lib_prefix=no | |
10787 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10788 | case $host_os in | |
10789 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10790 | *) need_version=no ;; | |
10791 | esac | |
10792 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10793 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10794 | shlibpath_var=LD_LIBRARY_PATH | |
10795 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10796 | case $host_os in | |
10797 | openbsd2.[89] | openbsd2.[89].*) | |
10798 | shlibpath_overrides_runpath=no | |
10799 | ;; | |
10800 | *) | |
10801 | shlibpath_overrides_runpath=yes | |
10802 | ;; | |
10803 | esac | |
10804 | else | |
10805 | shlibpath_overrides_runpath=yes | |
10806 | fi | |
10807 | ;; | |
10808 | ||
10809 | os2*) | |
10810 | libname_spec='$name' | |
10811 | shrext_cmds=".dll" | |
10812 | need_lib_prefix=no | |
10813 | library_names_spec='$libname${shared_ext} $libname.a' | |
10814 | dynamic_linker='OS/2 ld.exe' | |
10815 | shlibpath_var=LIBPATH | |
10816 | ;; | |
10817 | ||
10818 | osf3* | osf4* | osf5*) | |
10819 | version_type=osf | |
10820 | need_lib_prefix=no | |
10821 | need_version=no | |
10822 | soname_spec='${libname}${release}${shared_ext}$major' | |
10823 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10824 | shlibpath_var=LD_LIBRARY_PATH | |
10825 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10826 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10827 | ;; | |
10828 | ||
10829 | rdos*) | |
10830 | dynamic_linker=no | |
10831 | ;; | |
10832 | ||
10833 | solaris*) | |
10834 | version_type=linux | |
10835 | need_lib_prefix=no | |
10836 | need_version=no | |
10837 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10838 | soname_spec='${libname}${release}${shared_ext}$major' | |
10839 | shlibpath_var=LD_LIBRARY_PATH | |
10840 | shlibpath_overrides_runpath=yes | |
10841 | hardcode_into_libs=yes | |
10842 | # ldd complains unless libraries are executable | |
10843 | postinstall_cmds='chmod +x $lib' | |
10844 | ;; | |
10845 | ||
10846 | sunos4*) | |
10847 | version_type=sunos | |
10848 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10849 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10850 | shlibpath_var=LD_LIBRARY_PATH | |
10851 | shlibpath_overrides_runpath=yes | |
10852 | if test "$with_gnu_ld" = yes; then | |
10853 | need_lib_prefix=no | |
10854 | fi | |
10855 | need_version=yes | |
10856 | ;; | |
10857 | ||
10858 | sysv4 | sysv4.3*) | |
10859 | version_type=linux | |
10860 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10861 | soname_spec='${libname}${release}${shared_ext}$major' | |
10862 | shlibpath_var=LD_LIBRARY_PATH | |
10863 | case $host_vendor in | |
10864 | sni) | |
10865 | shlibpath_overrides_runpath=no | |
10866 | need_lib_prefix=no | |
10867 | runpath_var=LD_RUN_PATH | |
10868 | ;; | |
10869 | siemens) | |
10870 | need_lib_prefix=no | |
10871 | ;; | |
10872 | motorola) | |
10873 | need_lib_prefix=no | |
10874 | need_version=no | |
10875 | shlibpath_overrides_runpath=no | |
10876 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10877 | ;; | |
10878 | esac | |
10879 | ;; | |
10880 | ||
10881 | sysv4*MP*) | |
10882 | if test -d /usr/nec ;then | |
10883 | version_type=linux | |
10884 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10885 | soname_spec='$libname${shared_ext}.$major' | |
10886 | shlibpath_var=LD_LIBRARY_PATH | |
10887 | fi | |
10888 | ;; | |
10889 | ||
10890 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10891 | version_type=freebsd-elf | |
10892 | need_lib_prefix=no | |
10893 | need_version=no | |
10894 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10895 | soname_spec='${libname}${release}${shared_ext}$major' | |
10896 | shlibpath_var=LD_LIBRARY_PATH | |
10897 | shlibpath_overrides_runpath=yes | |
10898 | hardcode_into_libs=yes | |
10899 | if test "$with_gnu_ld" = yes; then | |
10900 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
10901 | else | |
10902 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
10903 | case $host_os in | |
10904 | sco3.2v5*) | |
10905 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10906 | ;; | |
10907 | esac | |
10908 | fi | |
10909 | sys_lib_dlsearch_path_spec='/usr/lib' | |
10910 | ;; | |
10911 | ||
10912 | tpf*) | |
10913 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10914 | version_type=linux | |
10915 | need_lib_prefix=no | |
10916 | need_version=no | |
10917 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10918 | shlibpath_var=LD_LIBRARY_PATH | |
10919 | shlibpath_overrides_runpath=no | |
10920 | hardcode_into_libs=yes | |
10921 | ;; | |
10922 | ||
10923 | uts4*) | |
10924 | version_type=linux | |
10925 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10926 | soname_spec='${libname}${release}${shared_ext}$major' | |
10927 | shlibpath_var=LD_LIBRARY_PATH | |
10928 | ;; | |
10929 | ||
0ecd0f1c OH |
10930 | # Shared libraries for VwWorks, >= 7 only at this stage |
10931 | # and (fpic) still incompatible with "large" code models | |
10932 | # in a few configurations. Only for RTP mode in any case, | |
10933 | # and upon explicit request at configure time. | |
10934 | vxworks7*) | |
10935 | dynamic_linker=no | |
10936 | case ${with_multisubdir}-${enable_shared} in | |
10937 | *large*) | |
10938 | ;; | |
10939 | *mrtp*-yes) | |
10940 | version_type=linux | |
10941 | need_lib_prefix=no | |
10942 | need_version=no | |
10943 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10944 | soname_spec='${libname}${release}${shared_ext}$major' | |
10945 | dynamic_linker="$host_os module_loader" | |
10946 | ;; | |
10947 | esac | |
10948 | ;; | |
48310492 RH |
10949 | *) |
10950 | dynamic_linker=no | |
10951 | ;; | |
10952 | esac | |
10953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
10954 | $as_echo "$dynamic_linker" >&6; } | |
10955 | test "$dynamic_linker" = no && can_build_shared=no | |
10956 | ||
10957 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
10958 | if test "$GCC" = yes; then | |
10959 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
10960 | fi | |
10961 | ||
10962 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
10963 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
10964 | fi | |
10965 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
10966 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
10967 | fi | |
10968 | ||
10969 | ||
10970 | ||
10971 | ||
10972 | ||
10973 | ||
10974 | ||
10975 | ||
10976 | ||
10977 | ||
10978 | ||
10979 | ||
10980 | ||
10981 | ||
10982 | ||
10983 | ||
10984 | ||
10985 | ||
10986 | ||
10987 | ||
10988 | ||
10989 | ||
10990 | ||
10991 | ||
10992 | ||
10993 | ||
10994 | ||
10995 | ||
10996 | ||
10997 | ||
10998 | ||
10999 | ||
11000 | ||
11001 | ||
11002 | ||
11003 | ||
11004 | ||
11005 | ||
11006 | ||
11007 | ||
11008 | ||
11009 | ||
11010 | ||
11011 | ||
11012 | ||
11013 | ||
11014 | ||
11015 | ||
11016 | ||
11017 | ||
11018 | ||
11019 | ||
11020 | ||
11021 | ||
11022 | ||
11023 | ||
11024 | ||
11025 | ||
11026 | ||
11027 | ||
11028 | ||
11029 | ||
11030 | ||
11031 | ||
11032 | ||
11033 | ||
11034 | ||
11035 | ||
11036 | ||
11037 | ||
11038 | ||
11039 | ||
11040 | ||
11041 | ||
11042 | ||
11043 | ||
11044 | ||
11045 | ||
11046 | ||
11047 | ||
11048 | ||
11049 | ||
11050 | ||
11051 | ||
11052 | ||
11053 | ||
11054 | ||
11055 | ||
11056 | ||
11057 | ||
11058 | ||
11059 | ||
11060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
11061 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
11062 | hardcode_action= | |
11063 | if test -n "$hardcode_libdir_flag_spec" || | |
11064 | test -n "$runpath_var" || | |
11065 | test "X$hardcode_automatic" = "Xyes" ; then | |
11066 | ||
11067 | # We can hardcode non-existent directories. | |
11068 | if test "$hardcode_direct" != no && | |
11069 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11070 | # have to relink, otherwise we might link with an installed library | |
11071 | # when we should be linking with a yet-to-be-installed one | |
11072 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
11073 | test "$hardcode_minus_L" != no; then | |
11074 | # Linking always hardcodes the temporary library directory. | |
11075 | hardcode_action=relink | |
11076 | else | |
11077 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11078 | hardcode_action=immediate | |
11079 | fi | |
11080 | else | |
11081 | # We cannot hardcode anything, or else we can only hardcode existing | |
11082 | # directories. | |
11083 | hardcode_action=unsupported | |
11084 | fi | |
11085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
11086 | $as_echo "$hardcode_action" >&6; } | |
11087 | ||
11088 | if test "$hardcode_action" = relink || | |
11089 | test "$inherit_rpath" = yes; then | |
11090 | # Fast installation is not supported | |
11091 | enable_fast_install=no | |
11092 | elif test "$shlibpath_overrides_runpath" = yes || | |
11093 | test "$enable_shared" = no; then | |
11094 | # Fast installation is not necessary | |
11095 | enable_fast_install=needless | |
11096 | fi | |
11097 | ||
11098 | ||
11099 | ||
11100 | ||
11101 | ||
11102 | ||
11103 | if test "x$enable_dlopen" != xyes; then | |
11104 | enable_dlopen=unknown | |
11105 | enable_dlopen_self=unknown | |
11106 | enable_dlopen_self_static=unknown | |
11107 | else | |
11108 | lt_cv_dlopen=no | |
11109 | lt_cv_dlopen_libs= | |
11110 | ||
11111 | case $host_os in | |
11112 | beos*) | |
11113 | lt_cv_dlopen="load_add_on" | |
11114 | lt_cv_dlopen_libs= | |
11115 | lt_cv_dlopen_self=yes | |
11116 | ;; | |
11117 | ||
11118 | mingw* | pw32* | cegcc*) | |
11119 | lt_cv_dlopen="LoadLibrary" | |
11120 | lt_cv_dlopen_libs= | |
11121 | ;; | |
11122 | ||
11123 | cygwin*) | |
11124 | lt_cv_dlopen="dlopen" | |
11125 | lt_cv_dlopen_libs= | |
11126 | ;; | |
11127 | ||
11128 | darwin*) | |
11129 | # if libdl is installed we need to link against it | |
11130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11131 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
22e05272 | 11132 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
48310492 RH |
11133 | $as_echo_n "(cached) " >&6 |
11134 | else | |
11135 | ac_check_lib_save_LIBS=$LIBS | |
11136 | LIBS="-ldl $LIBS" | |
11137 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11138 | /* end confdefs.h. */ | |
11139 | ||
11140 | /* Override any GCC internal prototype to avoid an error. | |
11141 | Use char because int might match the return type of a GCC | |
11142 | builtin and then its argument prototype would still apply. */ | |
11143 | #ifdef __cplusplus | |
11144 | extern "C" | |
11145 | #endif | |
11146 | char dlopen (); | |
11147 | int | |
11148 | main () | |
11149 | { | |
11150 | return dlopen (); | |
11151 | ; | |
11152 | return 0; | |
11153 | } | |
11154 | _ACEOF | |
11155 | if ac_fn_c_try_link "$LINENO"; then : | |
11156 | ac_cv_lib_dl_dlopen=yes | |
11157 | else | |
11158 | ac_cv_lib_dl_dlopen=no | |
11159 | fi | |
11160 | rm -f core conftest.err conftest.$ac_objext \ | |
11161 | conftest$ac_exeext conftest.$ac_ext | |
11162 | LIBS=$ac_check_lib_save_LIBS | |
11163 | fi | |
11164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11165 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
22e05272 | 11166 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
48310492 RH |
11167 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
11168 | else | |
11169 | ||
11170 | lt_cv_dlopen="dyld" | |
11171 | lt_cv_dlopen_libs= | |
11172 | lt_cv_dlopen_self=yes | |
11173 | ||
11174 | fi | |
11175 | ||
11176 | ;; | |
11177 | ||
11178 | *) | |
11179 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
22e05272 | 11180 | if test "x$ac_cv_func_shl_load" = xyes; then : |
48310492 RH |
11181 | lt_cv_dlopen="shl_load" |
11182 | else | |
11183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
11184 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
22e05272 | 11185 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
48310492 RH |
11186 | $as_echo_n "(cached) " >&6 |
11187 | else | |
11188 | ac_check_lib_save_LIBS=$LIBS | |
11189 | LIBS="-ldld $LIBS" | |
11190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11191 | /* end confdefs.h. */ | |
11192 | ||
11193 | /* Override any GCC internal prototype to avoid an error. | |
11194 | Use char because int might match the return type of a GCC | |
11195 | builtin and then its argument prototype would still apply. */ | |
11196 | #ifdef __cplusplus | |
11197 | extern "C" | |
11198 | #endif | |
11199 | char shl_load (); | |
11200 | int | |
11201 | main () | |
11202 | { | |
11203 | return shl_load (); | |
11204 | ; | |
11205 | return 0; | |
11206 | } | |
11207 | _ACEOF | |
11208 | if ac_fn_c_try_link "$LINENO"; then : | |
11209 | ac_cv_lib_dld_shl_load=yes | |
11210 | else | |
11211 | ac_cv_lib_dld_shl_load=no | |
11212 | fi | |
11213 | rm -f core conftest.err conftest.$ac_objext \ | |
11214 | conftest$ac_exeext conftest.$ac_ext | |
11215 | LIBS=$ac_check_lib_save_LIBS | |
11216 | fi | |
11217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
11218 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
22e05272 | 11219 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
48310492 RH |
11220 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
11221 | else | |
11222 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
22e05272 | 11223 | if test "x$ac_cv_func_dlopen" = xyes; then : |
48310492 RH |
11224 | lt_cv_dlopen="dlopen" |
11225 | else | |
11226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11227 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
22e05272 | 11228 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
48310492 RH |
11229 | $as_echo_n "(cached) " >&6 |
11230 | else | |
11231 | ac_check_lib_save_LIBS=$LIBS | |
11232 | LIBS="-ldl $LIBS" | |
11233 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11234 | /* end confdefs.h. */ | |
11235 | ||
11236 | /* Override any GCC internal prototype to avoid an error. | |
11237 | Use char because int might match the return type of a GCC | |
11238 | builtin and then its argument prototype would still apply. */ | |
11239 | #ifdef __cplusplus | |
11240 | extern "C" | |
11241 | #endif | |
11242 | char dlopen (); | |
11243 | int | |
11244 | main () | |
11245 | { | |
11246 | return dlopen (); | |
11247 | ; | |
11248 | return 0; | |
11249 | } | |
11250 | _ACEOF | |
11251 | if ac_fn_c_try_link "$LINENO"; then : | |
11252 | ac_cv_lib_dl_dlopen=yes | |
11253 | else | |
11254 | ac_cv_lib_dl_dlopen=no | |
11255 | fi | |
11256 | rm -f core conftest.err conftest.$ac_objext \ | |
11257 | conftest$ac_exeext conftest.$ac_ext | |
11258 | LIBS=$ac_check_lib_save_LIBS | |
11259 | fi | |
11260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11261 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
22e05272 | 11262 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
48310492 RH |
11263 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
11264 | else | |
11265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
11266 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
22e05272 | 11267 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
48310492 RH |
11268 | $as_echo_n "(cached) " >&6 |
11269 | else | |
11270 | ac_check_lib_save_LIBS=$LIBS | |
11271 | LIBS="-lsvld $LIBS" | |
11272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11273 | /* end confdefs.h. */ | |
11274 | ||
11275 | /* Override any GCC internal prototype to avoid an error. | |
11276 | Use char because int might match the return type of a GCC | |
11277 | builtin and then its argument prototype would still apply. */ | |
11278 | #ifdef __cplusplus | |
11279 | extern "C" | |
11280 | #endif | |
11281 | char dlopen (); | |
11282 | int | |
11283 | main () | |
11284 | { | |
11285 | return dlopen (); | |
11286 | ; | |
11287 | return 0; | |
11288 | } | |
11289 | _ACEOF | |
11290 | if ac_fn_c_try_link "$LINENO"; then : | |
11291 | ac_cv_lib_svld_dlopen=yes | |
11292 | else | |
11293 | ac_cv_lib_svld_dlopen=no | |
11294 | fi | |
11295 | rm -f core conftest.err conftest.$ac_objext \ | |
11296 | conftest$ac_exeext conftest.$ac_ext | |
11297 | LIBS=$ac_check_lib_save_LIBS | |
11298 | fi | |
11299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
11300 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
22e05272 | 11301 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
48310492 RH |
11302 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
11303 | else | |
11304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
11305 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
22e05272 | 11306 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
48310492 RH |
11307 | $as_echo_n "(cached) " >&6 |
11308 | else | |
11309 | ac_check_lib_save_LIBS=$LIBS | |
11310 | LIBS="-ldld $LIBS" | |
11311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11312 | /* end confdefs.h. */ | |
11313 | ||
11314 | /* Override any GCC internal prototype to avoid an error. | |
11315 | Use char because int might match the return type of a GCC | |
11316 | builtin and then its argument prototype would still apply. */ | |
11317 | #ifdef __cplusplus | |
11318 | extern "C" | |
11319 | #endif | |
11320 | char dld_link (); | |
11321 | int | |
11322 | main () | |
11323 | { | |
11324 | return dld_link (); | |
11325 | ; | |
11326 | return 0; | |
11327 | } | |
11328 | _ACEOF | |
11329 | if ac_fn_c_try_link "$LINENO"; then : | |
11330 | ac_cv_lib_dld_dld_link=yes | |
11331 | else | |
11332 | ac_cv_lib_dld_dld_link=no | |
11333 | fi | |
11334 | rm -f core conftest.err conftest.$ac_objext \ | |
11335 | conftest$ac_exeext conftest.$ac_ext | |
11336 | LIBS=$ac_check_lib_save_LIBS | |
11337 | fi | |
11338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
11339 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
22e05272 | 11340 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
48310492 RH |
11341 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
11342 | fi | |
11343 | ||
11344 | ||
11345 | fi | |
11346 | ||
11347 | ||
11348 | fi | |
11349 | ||
11350 | ||
11351 | fi | |
11352 | ||
11353 | ||
11354 | fi | |
11355 | ||
11356 | ||
11357 | fi | |
11358 | ||
11359 | ;; | |
11360 | esac | |
11361 | ||
11362 | if test "x$lt_cv_dlopen" != xno; then | |
11363 | enable_dlopen=yes | |
11364 | else | |
11365 | enable_dlopen=no | |
11366 | fi | |
11367 | ||
11368 | case $lt_cv_dlopen in | |
11369 | dlopen) | |
11370 | save_CPPFLAGS="$CPPFLAGS" | |
11371 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11372 | ||
11373 | save_LDFLAGS="$LDFLAGS" | |
11374 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11375 | ||
11376 | save_LIBS="$LIBS" | |
11377 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
11378 | ||
11379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
11380 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
22e05272 | 11381 | if ${lt_cv_dlopen_self+:} false; then : |
48310492 RH |
11382 | $as_echo_n "(cached) " >&6 |
11383 | else | |
11384 | if test "$cross_compiling" = yes; then : | |
11385 | lt_cv_dlopen_self=cross | |
11386 | else | |
11387 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11388 | lt_status=$lt_dlunknown | |
11389 | cat > conftest.$ac_ext <<_LT_EOF | |
126f707e | 11390 | #line 11390 "configure" |
48310492 RH |
11391 | #include "confdefs.h" |
11392 | ||
11393 | #if HAVE_DLFCN_H | |
11394 | #include <dlfcn.h> | |
11395 | #endif | |
11396 | ||
11397 | #include <stdio.h> | |
11398 | ||
11399 | #ifdef RTLD_GLOBAL | |
11400 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11401 | #else | |
11402 | # ifdef DL_GLOBAL | |
11403 | # define LT_DLGLOBAL DL_GLOBAL | |
11404 | # else | |
11405 | # define LT_DLGLOBAL 0 | |
11406 | # endif | |
11407 | #endif | |
11408 | ||
11409 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11410 | find out it does not work in some platform. */ | |
11411 | #ifndef LT_DLLAZY_OR_NOW | |
11412 | # ifdef RTLD_LAZY | |
11413 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11414 | # else | |
11415 | # ifdef DL_LAZY | |
11416 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11417 | # else | |
11418 | # ifdef RTLD_NOW | |
11419 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11420 | # else | |
11421 | # ifdef DL_NOW | |
11422 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11423 | # else | |
11424 | # define LT_DLLAZY_OR_NOW 0 | |
11425 | # endif | |
11426 | # endif | |
11427 | # endif | |
11428 | # endif | |
11429 | #endif | |
11430 | ||
11431 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
11432 | correspondingly for the symbols needed. */ | |
11433 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11434 | void fnord () __attribute__((visibility("default"))); | |
11435 | #endif | |
11436 | ||
11437 | void fnord () { int i=42; } | |
11438 | int main () | |
11439 | { | |
11440 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11441 | int status = $lt_dlunknown; | |
11442 | ||
11443 | if (self) | |
11444 | { | |
11445 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11446 | else | |
11447 | { | |
11448 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11449 | else puts (dlerror ()); | |
11450 | } | |
11451 | /* dlclose (self); */ | |
11452 | } | |
11453 | else | |
11454 | puts (dlerror ()); | |
11455 | ||
11456 | return status; | |
11457 | } | |
11458 | _LT_EOF | |
11459 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11460 | (eval $ac_link) 2>&5 | |
11461 | ac_status=$? | |
11462 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11463 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11464 | (./conftest; exit; ) >&5 2>/dev/null | |
11465 | lt_status=$? | |
11466 | case x$lt_status in | |
11467 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11468 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11469 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11470 | esac | |
11471 | else : | |
11472 | # compilation failed | |
11473 | lt_cv_dlopen_self=no | |
11474 | fi | |
11475 | fi | |
11476 | rm -fr conftest* | |
11477 | ||
11478 | ||
11479 | fi | |
11480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
11481 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
11482 | ||
11483 | if test "x$lt_cv_dlopen_self" = xyes; then | |
11484 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
11485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
11486 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
22e05272 | 11487 | if ${lt_cv_dlopen_self_static+:} false; then : |
48310492 RH |
11488 | $as_echo_n "(cached) " >&6 |
11489 | else | |
11490 | if test "$cross_compiling" = yes; then : | |
11491 | lt_cv_dlopen_self_static=cross | |
11492 | else | |
11493 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11494 | lt_status=$lt_dlunknown | |
11495 | cat > conftest.$ac_ext <<_LT_EOF | |
126f707e | 11496 | #line 11496 "configure" |
48310492 RH |
11497 | #include "confdefs.h" |
11498 | ||
11499 | #if HAVE_DLFCN_H | |
11500 | #include <dlfcn.h> | |
11501 | #endif | |
11502 | ||
11503 | #include <stdio.h> | |
11504 | ||
11505 | #ifdef RTLD_GLOBAL | |
11506 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11507 | #else | |
11508 | # ifdef DL_GLOBAL | |
11509 | # define LT_DLGLOBAL DL_GLOBAL | |
11510 | # else | |
11511 | # define LT_DLGLOBAL 0 | |
11512 | # endif | |
11513 | #endif | |
11514 | ||
11515 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11516 | find out it does not work in some platform. */ | |
11517 | #ifndef LT_DLLAZY_OR_NOW | |
11518 | # ifdef RTLD_LAZY | |
11519 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11520 | # else | |
11521 | # ifdef DL_LAZY | |
11522 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11523 | # else | |
11524 | # ifdef RTLD_NOW | |
11525 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11526 | # else | |
11527 | # ifdef DL_NOW | |
11528 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11529 | # else | |
11530 | # define LT_DLLAZY_OR_NOW 0 | |
11531 | # endif | |
11532 | # endif | |
11533 | # endif | |
11534 | # endif | |
11535 | #endif | |
11536 | ||
11537 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
11538 | correspondingly for the symbols needed. */ | |
11539 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11540 | void fnord () __attribute__((visibility("default"))); | |
11541 | #endif | |
11542 | ||
11543 | void fnord () { int i=42; } | |
11544 | int main () | |
11545 | { | |
11546 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11547 | int status = $lt_dlunknown; | |
11548 | ||
11549 | if (self) | |
11550 | { | |
11551 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11552 | else | |
11553 | { | |
11554 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11555 | else puts (dlerror ()); | |
11556 | } | |
11557 | /* dlclose (self); */ | |
11558 | } | |
11559 | else | |
11560 | puts (dlerror ()); | |
11561 | ||
11562 | return status; | |
11563 | } | |
11564 | _LT_EOF | |
11565 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11566 | (eval $ac_link) 2>&5 | |
11567 | ac_status=$? | |
11568 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11569 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11570 | (./conftest; exit; ) >&5 2>/dev/null | |
11571 | lt_status=$? | |
11572 | case x$lt_status in | |
11573 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11574 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11575 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11576 | esac | |
11577 | else : | |
11578 | # compilation failed | |
11579 | lt_cv_dlopen_self_static=no | |
11580 | fi | |
11581 | fi | |
11582 | rm -fr conftest* | |
11583 | ||
11584 | ||
11585 | fi | |
11586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
11587 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
11588 | fi | |
11589 | ||
11590 | CPPFLAGS="$save_CPPFLAGS" | |
11591 | LDFLAGS="$save_LDFLAGS" | |
11592 | LIBS="$save_LIBS" | |
11593 | ;; | |
11594 | esac | |
11595 | ||
11596 | case $lt_cv_dlopen_self in | |
11597 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11598 | *) enable_dlopen_self=unknown ;; | |
11599 | esac | |
11600 | ||
11601 | case $lt_cv_dlopen_self_static in | |
11602 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11603 | *) enable_dlopen_self_static=unknown ;; | |
11604 | esac | |
11605 | fi | |
11606 | ||
11607 | ||
11608 | ||
11609 | ||
11610 | ||
11611 | ||
11612 | ||
11613 | ||
11614 | ||
11615 | ||
11616 | ||
11617 | ||
11618 | ||
11619 | ||
11620 | ||
11621 | ||
11622 | ||
11623 | striplib= | |
11624 | old_striplib= | |
11625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
11626 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
11627 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
11628 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11629 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
11630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11631 | $as_echo "yes" >&6; } | |
11632 | else | |
11633 | # FIXME - insert some real tests, host_os isn't really good enough | |
11634 | case $host_os in | |
11635 | darwin*) | |
11636 | if test -n "$STRIP" ; then | |
11637 | striplib="$STRIP -x" | |
11638 | old_striplib="$STRIP -S" | |
11639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11640 | $as_echo "yes" >&6; } | |
11641 | else | |
11642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11643 | $as_echo "no" >&6; } | |
11644 | fi | |
11645 | ;; | |
11646 | *) | |
11647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11648 | $as_echo "no" >&6; } | |
11649 | ;; | |
11650 | esac | |
11651 | fi | |
11652 | ||
11653 | ||
11654 | ||
11655 | ||
11656 | ||
11657 | ||
11658 | ||
11659 | ||
11660 | ||
11661 | ||
11662 | ||
11663 | ||
11664 | # Report which library types will actually be built | |
11665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
11666 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
11668 | $as_echo "$can_build_shared" >&6; } | |
11669 | ||
11670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
11671 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
11672 | test "$can_build_shared" = "no" && enable_shared=no | |
11673 | ||
11674 | # On AIX, shared libraries and static libraries use the same namespace, and | |
11675 | # are all built from PIC. | |
11676 | case $host_os in | |
11677 | aix3*) | |
11678 | test "$enable_shared" = yes && enable_static=no | |
11679 | if test -n "$RANLIB"; then | |
11680 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11681 | postinstall_cmds='$RANLIB $lib' | |
11682 | fi | |
11683 | ;; | |
11684 | ||
11685 | aix[4-9]*) | |
11686 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
11687 | test "$enable_shared" = yes && enable_static=no | |
11688 | fi | |
11689 | ;; | |
11690 | esac | |
11691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
11692 | $as_echo "$enable_shared" >&6; } | |
11693 | ||
11694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
11695 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
11696 | # Make sure either enable_shared or enable_static is yes. | |
11697 | test "$enable_shared" = yes || enable_static=yes | |
11698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
11699 | $as_echo "$enable_static" >&6; } | |
11700 | ||
11701 | ||
11702 | ||
11703 | ||
11704 | fi | |
11705 | ac_ext=c | |
11706 | ac_cpp='$CPP $CPPFLAGS' | |
11707 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11708 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11709 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11710 | ||
11711 | CC="$lt_save_CC" | |
11712 | ||
11713 | ||
11714 | ||
11715 | ||
11716 | ||
11717 | ||
11718 | ||
11719 | ||
11720 | ||
11721 | ||
11722 | ||
11723 | ||
11724 | ||
11725 | ac_config_commands="$ac_config_commands libtool" | |
11726 | ||
11727 | ||
11728 | ||
11729 | ||
11730 | # Only expand once: | |
11731 | ||
11732 | ||
11733 | ||
11734 | ||
11735 | ||
dc3368d0 KT |
11736 | case $host in |
11737 | *-cygwin* | *-mingw*) | |
11738 | # 'host' will be top-level target in the case of a target lib, | |
11739 | # we must compare to with_cross_host to decide if this is a native | |
11740 | # or cross-compiler and select where to install dlls appropriately. | |
11741 | if test -n "$with_cross_host" && | |
11742 | test x"$with_cross_host" != x"no"; then | |
11743 | lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"'; | |
11744 | else | |
11745 | lt_host_flags='-no-undefined -bindir "$(bindir)"'; | |
11746 | fi | |
11747 | ;; | |
11748 | *) | |
11749 | lt_host_flags= | |
11750 | ;; | |
11751 | esac | |
11752 | ||
11753 | ||
11754 | ||
11755 | ||
11756 | ||
11757 | ||
fa3cd3c3 RH |
11758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
11759 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
11760 | # Check whether --enable-maintainer-mode was given. | |
11761 | if test "${enable_maintainer_mode+set}" = set; then : | |
11762 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
11763 | else | |
11764 | USE_MAINTAINER_MODE=no | |
11765 | fi | |
11766 | ||
11767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
11768 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
11769 | if test $USE_MAINTAINER_MODE = yes; then | |
11770 | MAINTAINER_MODE_TRUE= | |
11771 | MAINTAINER_MODE_FALSE='#' | |
11772 | else | |
11773 | MAINTAINER_MODE_TRUE='#' | |
11774 | MAINTAINER_MODE_FALSE= | |
11775 | fi | |
11776 | ||
11777 | MAINT=$MAINTAINER_MODE_TRUE | |
11778 | ||
11779 | ||
11780 | ||
48310492 | 11781 | # For libtool versioning info, format is CURRENT:REVISION:AGE |
c29c36ad | 11782 | libtool_VERSION=3:0:2 |
48310492 RH |
11783 | |
11784 | ||
dc3368d0 KT |
11785 | # Check for used threading-model |
11786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5 | |
11787 | $as_echo_n "checking for thread model used by GCC... " >&6; } | |
11788 | target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'` | |
11789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5 | |
11790 | $as_echo "$target_thread_file" >&6; } | |
11791 | ||
9d0e85af SE |
11792 | case "$target" in |
11793 | *aarch64*) | |
11794 | ac_ext=c | |
11795 | ac_cpp='$CPP $CPPFLAGS' | |
11796 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11797 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11798 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11799 | ||
11800 | enable_aarch64_lse= | |
11801 | save_CFLAGS="$CFLAGS" | |
11802 | for real_option in -march=armv8-a+lse; do | |
11803 | # Do the check with the no- prefix removed since gcc silently | |
11804 | # accepts any -Wno-* option on purpose | |
11805 | case $real_option in | |
11806 | -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; | |
11807 | *) option=$real_option ;; | |
11808 | esac | |
11809 | as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` | |
11810 | ||
11811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 | |
11812 | $as_echo_n "checking whether $CC supports $option... " >&6; } | |
22e05272 | 11813 | if eval \${$as_acx_Woption+:} false; then : |
9d0e85af SE |
11814 | $as_echo_n "(cached) " >&6 |
11815 | else | |
11816 | CFLAGS="$option" | |
11817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11818 | /* end confdefs.h. */ | |
11819 | ||
11820 | int | |
11821 | main () | |
11822 | { | |
11823 | ||
11824 | ; | |
11825 | return 0; | |
11826 | } | |
11827 | _ACEOF | |
11828 | if ac_fn_c_try_compile "$LINENO"; then : | |
11829 | eval "$as_acx_Woption=yes" | |
11830 | else | |
11831 | eval "$as_acx_Woption=no" | |
11832 | fi | |
11833 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11834 | ||
11835 | fi | |
11836 | eval ac_res=\$$as_acx_Woption | |
11837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
11838 | $as_echo "$ac_res" >&6; } | |
11839 | if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : | |
11840 | enable_aarch64_lse="$enable_aarch64_lse${enable_aarch64_lse:+ }$real_option" | |
11841 | fi | |
11842 | done | |
11843 | CFLAGS="$save_CFLAGS" | |
11844 | ac_ext=c | |
11845 | ac_cpp='$CPP $CPPFLAGS' | |
11846 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11847 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11848 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11849 | ||
11850 | ||
11851 | ;; | |
11852 | esac | |
11853 | ||
48310492 RH |
11854 | # Get target configury. |
11855 | . ${srcdir}/configure.tgt | |
11856 | if test -n "$UNSUPPORTED"; then | |
22e05272 | 11857 | as_fn_error $? "Configuration ${target} is unsupported." "$LINENO" 5 |
48310492 RH |
11858 | fi |
11859 | ||
141abc6f SE |
11860 | # Write out the ifunc resolver arg type. |
11861 | ||
11862 | cat >>confdefs.h <<_ACEOF | |
11863 | #define IFUNC_RESOLVER_ARGS $IFUNC_RESOLVER_ARGS | |
11864 | _ACEOF | |
11865 | ||
11866 | ||
48310492 RH |
11867 | # Disable fallbacks to __sync routines from libgcc. Otherwise we'll |
11868 | # make silly decisions about what the cpu can do. | |
11869 | CFLAGS="$save_CFLAGS -fno-sync-libcalls $XCFLAGS" | |
11870 | ||
11871 | # Check header files. | |
11872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
11873 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
22e05272 | 11874 | if ${ac_cv_header_stdc+:} false; then : |
48310492 RH |
11875 | $as_echo_n "(cached) " >&6 |
11876 | else | |
11877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11878 | /* end confdefs.h. */ | |
11879 | #include <stdlib.h> | |
11880 | #include <stdarg.h> | |
11881 | #include <string.h> | |
11882 | #include <float.h> | |
11883 | ||
11884 | int | |
11885 | main () | |
11886 | { | |
11887 | ||
11888 | ; | |
11889 | return 0; | |
11890 | } | |
11891 | _ACEOF | |
11892 | if ac_fn_c_try_compile "$LINENO"; then : | |
11893 | ac_cv_header_stdc=yes | |
11894 | else | |
11895 | ac_cv_header_stdc=no | |
11896 | fi | |
11897 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11898 | ||
11899 | if test $ac_cv_header_stdc = yes; then | |
11900 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
11901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11902 | /* end confdefs.h. */ | |
11903 | #include <string.h> | |
11904 | ||
11905 | _ACEOF | |
11906 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11907 | $EGREP "memchr" >/dev/null 2>&1; then : | |
11908 | ||
11909 | else | |
11910 | ac_cv_header_stdc=no | |
11911 | fi | |
11912 | rm -f conftest* | |
11913 | ||
11914 | fi | |
11915 | ||
11916 | if test $ac_cv_header_stdc = yes; then | |
11917 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
11918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11919 | /* end confdefs.h. */ | |
11920 | #include <stdlib.h> | |
11921 | ||
11922 | _ACEOF | |
11923 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11924 | $EGREP "free" >/dev/null 2>&1; then : | |
11925 | ||
11926 | else | |
11927 | ac_cv_header_stdc=no | |
11928 | fi | |
11929 | rm -f conftest* | |
11930 | ||
11931 | fi | |
11932 | ||
11933 | if test $ac_cv_header_stdc = yes; then | |
11934 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
11935 | if test "$cross_compiling" = yes; then : | |
11936 | : | |
11937 | else | |
11938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11939 | /* end confdefs.h. */ | |
11940 | #include <ctype.h> | |
11941 | #include <stdlib.h> | |
11942 | #if ((' ' & 0x0FF) == 0x020) | |
11943 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
11944 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
11945 | #else | |
11946 | # define ISLOWER(c) \ | |
11947 | (('a' <= (c) && (c) <= 'i') \ | |
11948 | || ('j' <= (c) && (c) <= 'r') \ | |
11949 | || ('s' <= (c) && (c) <= 'z')) | |
11950 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
11951 | #endif | |
11952 | ||
11953 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
11954 | int | |
11955 | main () | |
11956 | { | |
11957 | int i; | |
11958 | for (i = 0; i < 256; i++) | |
11959 | if (XOR (islower (i), ISLOWER (i)) | |
11960 | || toupper (i) != TOUPPER (i)) | |
11961 | return 2; | |
11962 | return 0; | |
11963 | } | |
11964 | _ACEOF | |
11965 | if ac_fn_c_try_run "$LINENO"; then : | |
11966 | ||
11967 | else | |
11968 | ac_cv_header_stdc=no | |
11969 | fi | |
11970 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
11971 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
11972 | fi | |
11973 | ||
11974 | fi | |
11975 | fi | |
11976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
11977 | $as_echo "$ac_cv_header_stdc" >&6; } | |
11978 | if test $ac_cv_header_stdc = yes; then | |
11979 | ||
11980 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
11981 | ||
11982 | fi | |
11983 | ||
11984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 | |
11985 | $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } | |
22e05272 | 11986 | if ${gcc_cv_header_string+:} false; then : |
48310492 RH |
11987 | $as_echo_n "(cached) " >&6 |
11988 | else | |
11989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11990 | /* end confdefs.h. */ | |
11991 | #include <string.h> | |
11992 | #include <strings.h> | |
11993 | int | |
11994 | main () | |
11995 | { | |
11996 | ||
11997 | ; | |
11998 | return 0; | |
11999 | } | |
12000 | _ACEOF | |
12001 | if ac_fn_c_try_compile "$LINENO"; then : | |
12002 | gcc_cv_header_string=yes | |
12003 | else | |
12004 | gcc_cv_header_string=no | |
12005 | fi | |
12006 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12007 | fi | |
12008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5 | |
12009 | $as_echo "$gcc_cv_header_string" >&6; } | |
12010 | if test $gcc_cv_header_string = yes; then | |
12011 | ||
12012 | $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h | |
12013 | ||
12014 | fi | |
12015 | ||
12016 | ||
12017 | ||
12018 | inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` | |
12019 | ||
12020 | acx_cv_header_stdint=stddef.h | |
12021 | acx_cv_header_stdint_kind="(already complete)" | |
12022 | for i in stdint.h $inttype_headers; do | |
12023 | unset ac_cv_type_uintptr_t | |
12024 | unset ac_cv_type_uintmax_t | |
12025 | unset ac_cv_type_int_least32_t | |
12026 | unset ac_cv_type_int_fast32_t | |
12027 | unset ac_cv_type_uint64_t | |
12028 | $as_echo_n "looking for a compliant stdint.h in $i, " >&6 | |
12029 | ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h> | |
12030 | #include <$i> | |
12031 | " | |
22e05272 | 12032 | if test "x$ac_cv_type_uintmax_t" = xyes; then : |
48310492 RH |
12033 | acx_cv_header_stdint=$i |
12034 | else | |
12035 | continue | |
12036 | fi | |
12037 | ||
12038 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> | |
12039 | #include <$i> | |
12040 | " | |
22e05272 | 12041 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
48310492 RH |
12042 | |
12043 | else | |
12044 | acx_cv_header_stdint_kind="(mostly complete)" | |
12045 | fi | |
12046 | ||
12047 | ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h> | |
12048 | #include <$i> | |
12049 | " | |
22e05272 | 12050 | if test "x$ac_cv_type_int_least32_t" = xyes; then : |
48310492 RH |
12051 | |
12052 | else | |
12053 | acx_cv_header_stdint_kind="(mostly complete)" | |
12054 | fi | |
12055 | ||
12056 | ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h> | |
12057 | #include <$i> | |
12058 | " | |
22e05272 | 12059 | if test "x$ac_cv_type_int_fast32_t" = xyes; then : |
48310492 RH |
12060 | |
12061 | else | |
12062 | acx_cv_header_stdint_kind="(mostly complete)" | |
12063 | fi | |
12064 | ||
12065 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> | |
12066 | #include <$i> | |
12067 | " | |
22e05272 | 12068 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
48310492 RH |
12069 | |
12070 | else | |
12071 | acx_cv_header_stdint_kind="(lacks uint64_t)" | |
12072 | fi | |
12073 | ||
12074 | break | |
12075 | done | |
12076 | if test "$acx_cv_header_stdint" = stddef.h; then | |
12077 | acx_cv_header_stdint_kind="(lacks uintmax_t)" | |
12078 | for i in stdint.h $inttype_headers; do | |
12079 | unset ac_cv_type_uintptr_t | |
12080 | unset ac_cv_type_uint32_t | |
12081 | unset ac_cv_type_uint64_t | |
12082 | $as_echo_n "looking for an incomplete stdint.h in $i, " >&6 | |
12083 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h> | |
12084 | #include <$i> | |
12085 | " | |
22e05272 | 12086 | if test "x$ac_cv_type_uint32_t" = xyes; then : |
48310492 RH |
12087 | acx_cv_header_stdint=$i |
12088 | else | |
12089 | continue | |
12090 | fi | |
12091 | ||
12092 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> | |
12093 | #include <$i> | |
12094 | " | |
22e05272 | 12095 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
48310492 RH |
12096 | |
12097 | fi | |
12098 | ||
12099 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> | |
12100 | #include <$i> | |
12101 | " | |
22e05272 | 12102 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
48310492 RH |
12103 | |
12104 | fi | |
12105 | ||
12106 | break | |
12107 | done | |
12108 | fi | |
12109 | if test "$acx_cv_header_stdint" = stddef.h; then | |
12110 | acx_cv_header_stdint_kind="(u_intXX_t style)" | |
12111 | for i in sys/types.h $inttype_headers; do | |
12112 | unset ac_cv_type_u_int32_t | |
12113 | unset ac_cv_type_u_int64_t | |
12114 | $as_echo_n "looking for u_intXX_t types in $i, " >&6 | |
12115 | ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h> | |
12116 | #include <$i> | |
12117 | " | |
22e05272 | 12118 | if test "x$ac_cv_type_u_int32_t" = xyes; then : |
48310492 RH |
12119 | acx_cv_header_stdint=$i |
12120 | else | |
12121 | continue | |
12122 | fi | |
12123 | ||
12124 | ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h> | |
12125 | #include <$i> | |
12126 | " | |
22e05272 | 12127 | if test "x$ac_cv_type_u_int64_t" = xyes; then : |
48310492 RH |
12128 | |
12129 | fi | |
12130 | ||
12131 | break | |
12132 | done | |
12133 | fi | |
12134 | if test "$acx_cv_header_stdint" = stddef.h; then | |
12135 | acx_cv_header_stdint_kind="(using manual detection)" | |
12136 | fi | |
12137 | ||
12138 | test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no | |
12139 | test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no | |
12140 | test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no | |
12141 | test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no | |
12142 | test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no | |
12143 | ||
12144 | # ----------------- Summarize what we found so far | |
12145 | ||
12146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5 | |
12147 | $as_echo_n "checking what to include in gstdint.h... " >&6; } | |
12148 | ||
12149 | case `$as_basename -- gstdint.h || | |
12150 | $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \ | |
12151 | Xgstdint.h : 'X\(//\)$' \| \ | |
12152 | Xgstdint.h : 'X\(/\)' \| . 2>/dev/null || | |
12153 | $as_echo X/gstdint.h | | |
12154 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
12155 | s//\1/ | |
12156 | q | |
12157 | } | |
12158 | /^X\/\(\/\/\)$/{ | |
12159 | s//\1/ | |
12160 | q | |
12161 | } | |
12162 | /^X\/\(\/\).*/{ | |
12163 | s//\1/ | |
12164 | q | |
12165 | } | |
12166 | s/.*/./; q'` in | |
12167 | stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 | |
12168 | $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
12169 | inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 | |
12170 | $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
12171 | *) ;; | |
12172 | esac | |
12173 | ||
12174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 | |
12175 | $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; } | |
12176 | ||
12177 | # ----------------- done included file, check C basic types -------- | |
12178 | ||
12179 | # Lacking an uintptr_t? Test size of void * | |
12180 | case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in | |
12181 | stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler | |
12182 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12183 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12184 | # This bug is HP SR number 8606223364. | |
12185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | |
12186 | $as_echo_n "checking size of void *... " >&6; } | |
22e05272 | 12187 | if ${ac_cv_sizeof_void_p+:} false; then : |
48310492 RH |
12188 | $as_echo_n "(cached) " >&6 |
12189 | else | |
12190 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : | |
12191 | ||
12192 | else | |
12193 | if test "$ac_cv_type_void_p" = yes; then | |
12194 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12195 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
12196 | as_fn_error 77 "cannot compute sizeof (void *) |
12197 | See \`config.log' for more details" "$LINENO" 5; } | |
48310492 RH |
12198 | else |
12199 | ac_cv_sizeof_void_p=0 | |
12200 | fi | |
12201 | fi | |
12202 | ||
12203 | fi | |
12204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | |
12205 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
12206 | ||
12207 | ||
12208 | ||
12209 | cat >>confdefs.h <<_ACEOF | |
12210 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
12211 | _ACEOF | |
12212 | ||
12213 | ;; | |
12214 | esac | |
12215 | ||
12216 | # Lacking an uint64_t? Test size of long | |
12217 | case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in | |
12218 | stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler | |
12219 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12220 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12221 | # This bug is HP SR number 8606223364. | |
12222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
12223 | $as_echo_n "checking size of long... " >&6; } | |
22e05272 | 12224 | if ${ac_cv_sizeof_long+:} false; then : |
48310492 RH |
12225 | $as_echo_n "(cached) " >&6 |
12226 | else | |
12227 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : | |
12228 | ||
12229 | else | |
12230 | if test "$ac_cv_type_long" = yes; then | |
12231 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12232 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
12233 | as_fn_error 77 "cannot compute sizeof (long) |
12234 | See \`config.log' for more details" "$LINENO" 5; } | |
48310492 RH |
12235 | else |
12236 | ac_cv_sizeof_long=0 | |
12237 | fi | |
12238 | fi | |
12239 | ||
12240 | fi | |
12241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
12242 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
12243 | ||
12244 | ||
12245 | ||
12246 | cat >>confdefs.h <<_ACEOF | |
12247 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
12248 | _ACEOF | |
12249 | ||
12250 | ;; | |
12251 | esac | |
12252 | ||
12253 | if test $acx_cv_header_stdint = stddef.h; then | |
12254 | # Lacking a good header? Test size of everything and deduce all types. | |
12255 | # The cast to long int works around a bug in the HP C Compiler | |
12256 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12257 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12258 | # This bug is HP SR number 8606223364. | |
12259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
12260 | $as_echo_n "checking size of int... " >&6; } | |
22e05272 | 12261 | if ${ac_cv_sizeof_int+:} false; then : |
48310492 RH |
12262 | $as_echo_n "(cached) " >&6 |
12263 | else | |
12264 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | |
12265 | ||
12266 | else | |
12267 | if test "$ac_cv_type_int" = yes; then | |
12268 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12269 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
12270 | as_fn_error 77 "cannot compute sizeof (int) |
12271 | See \`config.log' for more details" "$LINENO" 5; } | |
48310492 RH |
12272 | else |
12273 | ac_cv_sizeof_int=0 | |
12274 | fi | |
12275 | fi | |
12276 | ||
12277 | fi | |
12278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
12279 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
12280 | ||
12281 | ||
12282 | ||
12283 | cat >>confdefs.h <<_ACEOF | |
12284 | #define SIZEOF_INT $ac_cv_sizeof_int | |
12285 | _ACEOF | |
12286 | ||
12287 | ||
12288 | # The cast to long int works around a bug in the HP C Compiler | |
12289 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12290 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12291 | # This bug is HP SR number 8606223364. | |
12292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
12293 | $as_echo_n "checking size of short... " >&6; } | |
22e05272 | 12294 | if ${ac_cv_sizeof_short+:} false; then : |
48310492 RH |
12295 | $as_echo_n "(cached) " >&6 |
12296 | else | |
12297 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : | |
12298 | ||
12299 | else | |
12300 | if test "$ac_cv_type_short" = yes; then | |
12301 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12302 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
12303 | as_fn_error 77 "cannot compute sizeof (short) |
12304 | See \`config.log' for more details" "$LINENO" 5; } | |
48310492 RH |
12305 | else |
12306 | ac_cv_sizeof_short=0 | |
12307 | fi | |
12308 | fi | |
12309 | ||
12310 | fi | |
12311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | |
12312 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
12313 | ||
12314 | ||
12315 | ||
12316 | cat >>confdefs.h <<_ACEOF | |
12317 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
12318 | _ACEOF | |
12319 | ||
12320 | ||
12321 | # The cast to long int works around a bug in the HP C Compiler | |
12322 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12323 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12324 | # This bug is HP SR number 8606223364. | |
12325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 | |
12326 | $as_echo_n "checking size of char... " >&6; } | |
22e05272 | 12327 | if ${ac_cv_sizeof_char+:} false; then : |
48310492 RH |
12328 | $as_echo_n "(cached) " >&6 |
12329 | else | |
12330 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : | |
12331 | ||
12332 | else | |
12333 | if test "$ac_cv_type_char" = yes; then | |
12334 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12335 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
12336 | as_fn_error 77 "cannot compute sizeof (char) |
12337 | See \`config.log' for more details" "$LINENO" 5; } | |
48310492 RH |
12338 | else |
12339 | ac_cv_sizeof_char=0 | |
12340 | fi | |
12341 | fi | |
12342 | ||
12343 | fi | |
12344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 | |
12345 | $as_echo "$ac_cv_sizeof_char" >&6; } | |
12346 | ||
12347 | ||
12348 | ||
12349 | cat >>confdefs.h <<_ACEOF | |
12350 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
12351 | _ACEOF | |
12352 | ||
12353 | ||
12354 | ||
12355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5 | |
12356 | $as_echo_n "checking for type equivalent to int8_t... " >&6; } | |
12357 | case "$ac_cv_sizeof_char" in | |
12358 | 1) acx_cv_type_int8_t=char ;; | |
22e05272 | 12359 | *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5 |
48310492 RH |
12360 | esac |
12361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5 | |
12362 | $as_echo "$acx_cv_type_int8_t" >&6; } | |
12363 | ||
12364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5 | |
12365 | $as_echo_n "checking for type equivalent to int16_t... " >&6; } | |
12366 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in | |
12367 | 2:*) acx_cv_type_int16_t=int ;; | |
12368 | *:2) acx_cv_type_int16_t=short ;; | |
22e05272 | 12369 | *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5 |
48310492 RH |
12370 | esac |
12371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5 | |
12372 | $as_echo "$acx_cv_type_int16_t" >&6; } | |
12373 | ||
12374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5 | |
12375 | $as_echo_n "checking for type equivalent to int32_t... " >&6; } | |
12376 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in | |
12377 | 4:*) acx_cv_type_int32_t=int ;; | |
12378 | *:4) acx_cv_type_int32_t=long ;; | |
22e05272 | 12379 | *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5 |
48310492 RH |
12380 | esac |
12381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5 | |
12382 | $as_echo "$acx_cv_type_int32_t" >&6; } | |
12383 | fi | |
12384 | ||
12385 | # These tests are here to make the output prettier | |
12386 | ||
12387 | if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then | |
12388 | case "$ac_cv_sizeof_long" in | |
12389 | 8) acx_cv_type_int64_t=long ;; | |
12390 | esac | |
12391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5 | |
12392 | $as_echo_n "checking for type equivalent to int64_t... " >&6; } | |
12393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 | |
12394 | $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; } | |
12395 | fi | |
12396 | ||
12397 | # Now we can use the above types | |
12398 | ||
12399 | if test "$ac_cv_type_uintptr_t" != yes; then | |
12400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5 | |
12401 | $as_echo_n "checking for type equivalent to intptr_t... " >&6; } | |
12402 | case $ac_cv_sizeof_void_p in | |
12403 | 2) acx_cv_type_intptr_t=int16_t ;; | |
12404 | 4) acx_cv_type_intptr_t=int32_t ;; | |
12405 | 8) acx_cv_type_intptr_t=int64_t ;; | |
22e05272 | 12406 | *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5 |
48310492 RH |
12407 | esac |
12408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5 | |
12409 | $as_echo "$acx_cv_type_intptr_t" >&6; } | |
12410 | fi | |
12411 | ||
12412 | # ----------------- done all checks, emit header ------------- | |
12413 | ac_config_commands="$ac_config_commands gstdint.h" | |
12414 | ||
12415 | ||
12416 | ||
267bac10 JM |
12417 | for ac_header in fenv.h |
12418 | do : | |
12419 | ac_fn_c_check_header_mongrel "$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default" | |
22e05272 | 12420 | if test "x$ac_cv_header_fenv_h" = xyes; then : |
267bac10 JM |
12421 | cat >>confdefs.h <<_ACEOF |
12422 | #define HAVE_FENV_H 1 | |
12423 | _ACEOF | |
12424 | ||
12425 | fi | |
12426 | ||
12427 | done | |
12428 | ||
48310492 RH |
12429 | |
12430 | # Check for common type sizes | |
12431 | ||
12432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 1 byte integer" >&5 | |
12433 | $as_echo_n "checking for 1 byte integer... " >&6; } | |
22e05272 | 12434 | if ${libat_cv_have_mode_QI+:} false; then : |
48310492 RH |
12435 | $as_echo_n "(cached) " >&6 |
12436 | else | |
12437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12438 | /* end confdefs.h. */ | |
12439 | int x __attribute__((mode(QI))); | |
12440 | _ACEOF | |
12441 | if ac_fn_c_try_compile "$LINENO"; then : | |
12442 | libat_cv_have_mode_QI=yes | |
12443 | else | |
12444 | libat_cv_have_mode_QI=no | |
12445 | fi | |
12446 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12447 | fi | |
12448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_QI" >&5 | |
12449 | $as_echo "$libat_cv_have_mode_QI" >&6; } | |
12450 | ||
12451 | yesno=`echo $libat_cv_have_mode_QI | tr 'yesno' '1 0 '` | |
12452 | ||
12453 | cat >>confdefs.h <<_ACEOF | |
12454 | #define HAVE_INT1 $yesno | |
12455 | _ACEOF | |
12456 | ||
12457 | ||
12458 | if test x$libat_cv_have_mode_QI = xyes; then | |
12459 | SIZES="$SIZES 1" | |
12460 | fi | |
12461 | ||
12462 | ||
12463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 2 byte integer" >&5 | |
12464 | $as_echo_n "checking for 2 byte integer... " >&6; } | |
22e05272 | 12465 | if ${libat_cv_have_mode_HI+:} false; then : |
48310492 RH |
12466 | $as_echo_n "(cached) " >&6 |
12467 | else | |
12468 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12469 | /* end confdefs.h. */ | |
12470 | int x __attribute__((mode(HI))); | |
12471 | _ACEOF | |
12472 | if ac_fn_c_try_compile "$LINENO"; then : | |
12473 | libat_cv_have_mode_HI=yes | |
12474 | else | |
12475 | libat_cv_have_mode_HI=no | |
12476 | fi | |
12477 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12478 | fi | |
12479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_HI" >&5 | |
12480 | $as_echo "$libat_cv_have_mode_HI" >&6; } | |
12481 | ||
12482 | yesno=`echo $libat_cv_have_mode_HI | tr 'yesno' '1 0 '` | |
12483 | ||
12484 | cat >>confdefs.h <<_ACEOF | |
12485 | #define HAVE_INT2 $yesno | |
12486 | _ACEOF | |
12487 | ||
12488 | ||
12489 | if test x$libat_cv_have_mode_HI = xyes; then | |
12490 | SIZES="$SIZES 2" | |
12491 | fi | |
12492 | ||
12493 | ||
12494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 4 byte integer" >&5 | |
12495 | $as_echo_n "checking for 4 byte integer... " >&6; } | |
22e05272 | 12496 | if ${libat_cv_have_mode_SI+:} false; then : |
48310492 RH |
12497 | $as_echo_n "(cached) " >&6 |
12498 | else | |
12499 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12500 | /* end confdefs.h. */ | |
12501 | int x __attribute__((mode(SI))); | |
12502 | _ACEOF | |
12503 | if ac_fn_c_try_compile "$LINENO"; then : | |
12504 | libat_cv_have_mode_SI=yes | |
12505 | else | |
12506 | libat_cv_have_mode_SI=no | |
12507 | fi | |
12508 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12509 | fi | |
12510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_SI" >&5 | |
12511 | $as_echo "$libat_cv_have_mode_SI" >&6; } | |
12512 | ||
12513 | yesno=`echo $libat_cv_have_mode_SI | tr 'yesno' '1 0 '` | |
12514 | ||
12515 | cat >>confdefs.h <<_ACEOF | |
12516 | #define HAVE_INT4 $yesno | |
12517 | _ACEOF | |
12518 | ||
12519 | ||
12520 | if test x$libat_cv_have_mode_SI = xyes; then | |
12521 | SIZES="$SIZES 4" | |
12522 | fi | |
12523 | ||
12524 | ||
12525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 8 byte integer" >&5 | |
12526 | $as_echo_n "checking for 8 byte integer... " >&6; } | |
22e05272 | 12527 | if ${libat_cv_have_mode_DI+:} false; then : |
48310492 RH |
12528 | $as_echo_n "(cached) " >&6 |
12529 | else | |
12530 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12531 | /* end confdefs.h. */ | |
12532 | int x __attribute__((mode(DI))); | |
12533 | _ACEOF | |
12534 | if ac_fn_c_try_compile "$LINENO"; then : | |
12535 | libat_cv_have_mode_DI=yes | |
12536 | else | |
12537 | libat_cv_have_mode_DI=no | |
12538 | fi | |
12539 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12540 | fi | |
12541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_DI" >&5 | |
12542 | $as_echo "$libat_cv_have_mode_DI" >&6; } | |
12543 | ||
12544 | yesno=`echo $libat_cv_have_mode_DI | tr 'yesno' '1 0 '` | |
12545 | ||
12546 | cat >>confdefs.h <<_ACEOF | |
12547 | #define HAVE_INT8 $yesno | |
12548 | _ACEOF | |
12549 | ||
12550 | ||
12551 | if test x$libat_cv_have_mode_DI = xyes; then | |
12552 | SIZES="$SIZES 8" | |
12553 | fi | |
12554 | ||
12555 | ||
12556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 16 byte integer" >&5 | |
12557 | $as_echo_n "checking for 16 byte integer... " >&6; } | |
22e05272 | 12558 | if ${libat_cv_have_mode_TI+:} false; then : |
48310492 RH |
12559 | $as_echo_n "(cached) " >&6 |
12560 | else | |
12561 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12562 | /* end confdefs.h. */ | |
12563 | int x __attribute__((mode(TI))); | |
12564 | _ACEOF | |
12565 | if ac_fn_c_try_compile "$LINENO"; then : | |
12566 | libat_cv_have_mode_TI=yes | |
12567 | else | |
12568 | libat_cv_have_mode_TI=no | |
12569 | fi | |
12570 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12571 | fi | |
12572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_TI" >&5 | |
12573 | $as_echo "$libat_cv_have_mode_TI" >&6; } | |
12574 | ||
12575 | yesno=`echo $libat_cv_have_mode_TI | tr 'yesno' '1 0 '` | |
12576 | ||
12577 | cat >>confdefs.h <<_ACEOF | |
12578 | #define HAVE_INT16 $yesno | |
12579 | _ACEOF | |
12580 | ||
12581 | ||
12582 | if test x$libat_cv_have_mode_TI = xyes; then | |
12583 | SIZES="$SIZES 16" | |
12584 | fi | |
12585 | ||
12586 | ||
12587 | ||
12588 | # Check for compiler builtins of atomic operations. | |
12589 | ||
12590 | # Do link tests if possible, instead asm tests, limited to some platforms | |
12591 | # see discussion in PR target/40134, PR libstdc++/40133 and the thread | |
12592 | # starting at http://gcc.gnu.org/ml/gcc-patches/2009-07/msg00322.html | |
12593 | atomic_builtins_link_tests=no | |
12594 | if test x$gcc_no_link != xyes; then | |
12595 | # Can do link tests. Limit to some tested platforms | |
12596 | case "$host" in | |
12597 | *-*-linux* | *-*-uclinux* | *-*-kfreebsd*-gnu | *-*-gnu*) | |
12598 | atomic_builtins_link_tests=yes | |
12599 | ;; | |
12600 | esac | |
12601 | fi | |
12602 | ||
12603 | ||
12604 | ||
12605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 1" >&5 | |
12606 | $as_echo_n "checking for __atomic_load/store for size 1... " >&6; } | |
22e05272 | 12607 | if ${libat_cv_have_at_ldst_1+:} false; then : |
48310492 RH |
12608 | $as_echo_n "(cached) " >&6 |
12609 | else | |
12610 | ||
12611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12612 | /* end confdefs.h. */ | |
12613 | ||
12614 | int | |
12615 | main () | |
12616 | { | |
12617 | typedef int T __attribute__((mode(QI))); | |
12618 | T *x; volatile T sink; asm("" : "=g"(x)); | |
12619 | sink = __atomic_load_n(x, 0); | |
12620 | __atomic_store_n(x, sink, 0); | |
12621 | ; | |
12622 | return 0; | |
12623 | } | |
12624 | _ACEOF | |
12625 | if test x$atomic_builtins_link_tests = xyes; then | |
12626 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12627 | (eval $ac_link) 2>&5 | |
12628 | ac_status=$? | |
12629 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12630 | test $ac_status = 0; }; then | |
12631 | eval libat_cv_have_at_ldst_1=yes | |
12632 | else | |
12633 | eval libat_cv_have_at_ldst_1=no | |
12634 | fi | |
12635 | else | |
12636 | old_CFLAGS="$CFLAGS" | |
12637 | # Compile unoptimized. | |
aaea76b3 | 12638 | CFLAGS="$CFLAGS -O0 -S" |
48310492 RH |
12639 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
12640 | (eval $ac_compile) 2>&5 | |
12641 | ac_status=$? | |
12642 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12643 | test $ac_status = 0; }; then | |
12644 | if grep __atomic_ conftest.s >/dev/null 2>&1 ; then | |
12645 | eval libat_cv_have_at_ldst_1=no | |
12646 | else | |
12647 | eval libat_cv_have_at_ldst_1=yes | |
12648 | fi | |
0fe5522f RH |
12649 | else |
12650 | eval libat_cv_have_at_ldst_1=no | |
48310492 RH |
12651 | fi |
12652 | CFLAGS="$old_CFLAGS" | |
12653 | fi | |
12654 | rm -f conftest* | |
12655 | ||
12656 | fi | |
12657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_1" >&5 | |
12658 | $as_echo "$libat_cv_have_at_ldst_1" >&6; } | |
12659 | ||
12660 | ||
12661 | yesno=`echo $libat_cv_have_at_ldst_1 | tr 'yesno' '1 0 '` | |
12662 | ||
12663 | cat >>confdefs.h <<_ACEOF | |
12664 | #define HAVE_ATOMIC_LDST_1 $yesno | |
12665 | _ACEOF | |
12666 | ||
12667 | ||
12668 | ||
12669 | ||
12670 | ||
12671 | ||
bc437a56 | 12672 | |
48310492 RH |
12673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 2" >&5 |
12674 | $as_echo_n "checking for __atomic_load/store for size 2... " >&6; } | |
22e05272 | 12675 | if ${libat_cv_have_at_ldst_2+:} false; then : |
48310492 RH |
12676 | $as_echo_n "(cached) " >&6 |
12677 | else | |
12678 | ||
12679 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12680 | /* end confdefs.h. */ | |
12681 | ||
12682 | int | |
12683 | main () | |
12684 | { | |
12685 | typedef int T __attribute__((mode(HI))); | |
12686 | T *x; volatile T sink; asm("" : "=g"(x)); | |
12687 | sink = __atomic_load_n(x, 0); | |
12688 | __atomic_store_n(x, sink, 0); | |
12689 | ; | |
12690 | return 0; | |
12691 | } | |
12692 | _ACEOF | |
12693 | if test x$atomic_builtins_link_tests = xyes; then | |
12694 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12695 | (eval $ac_link) 2>&5 | |
12696 | ac_status=$? | |
12697 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12698 | test $ac_status = 0; }; then | |
12699 | eval libat_cv_have_at_ldst_2=yes | |
12700 | else | |
12701 | eval libat_cv_have_at_ldst_2=no | |
12702 | fi | |
12703 | else | |
12704 | old_CFLAGS="$CFLAGS" | |
12705 | # Compile unoptimized. | |
aaea76b3 | 12706 | CFLAGS="$CFLAGS -O0 -S" |
48310492 RH |
12707 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
12708 | (eval $ac_compile) 2>&5 | |
12709 | ac_status=$? | |
12710 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12711 | test $ac_status = 0; }; then | |
12712 | if grep __atomic_ conftest.s >/dev/null 2>&1 ; then | |
12713 | eval libat_cv_have_at_ldst_2=no | |
12714 | else | |
12715 | eval libat_cv_have_at_ldst_2=yes | |
12716 | fi | |
0fe5522f RH |
12717 | else |
12718 | eval libat_cv_have_at_ldst_2=no | |
48310492 RH |
12719 | fi |
12720 | CFLAGS="$old_CFLAGS" | |
12721 | fi | |
12722 | rm -f conftest* | |
12723 | ||
12724 | fi | |
12725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_2" >&5 | |
12726 | $as_echo "$libat_cv_have_at_ldst_2" >&6; } | |
12727 | ||
12728 | ||
12729 | yesno=`echo $libat_cv_have_at_ldst_2 | tr 'yesno' '1 0 '` | |
12730 | ||
12731 | cat >>confdefs.h <<_ACEOF | |
12732 | #define HAVE_ATOMIC_LDST_2 $yesno | |
12733 | _ACEOF | |
12734 | ||
12735 | ||
12736 | ||
12737 | ||
12738 | ||
12739 | ||
bc437a56 | 12740 | |
48310492 RH |
12741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 4" >&5 |
12742 | $as_echo_n "checking for __atomic_load/store for size 4... " >&6; } | |
22e05272 | 12743 | if ${libat_cv_have_at_ldst_4+:} false; then : |
48310492 RH |
12744 | $as_echo_n "(cached) " >&6 |
12745 | else | |
12746 | ||
12747 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12748 | /* end confdefs.h. */ | |
12749 | ||
12750 | int | |
12751 | main () | |
12752 | { | |
12753 | typedef int T __attribute__((mode(SI))); | |
12754 | T *x; volatile T sink; asm("" : "=g"(x)); | |
12755 | sink = __atomic_load_n(x, 0); | |
12756 | __atomic_store_n(x, sink, 0); | |
12757 | ; | |
12758 | return 0; | |
12759 | } | |
12760 | _ACEOF | |
12761 | if test x$atomic_builtins_link_tests = xyes; then | |
12762 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12763 | (eval $ac_link) 2>&5 | |
12764 | ac_status=$? | |
12765 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12766 | test $ac_status = 0; }; then | |
12767 | eval libat_cv_have_at_ldst_4=yes | |
12768 | else | |
12769 | eval libat_cv_have_at_ldst_4=no | |
12770 | fi | |
12771 | else | |
12772 | old_CFLAGS="$CFLAGS" | |
12773 | # Compile unoptimized. | |
aaea76b3 | 12774 | CFLAGS="$CFLAGS -O0 -S" |
48310492 RH |
12775 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
12776 | (eval $ac_compile) 2>&5 | |
12777 | ac_status=$? | |
12778 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12779 | test $ac_status = 0; }; then | |
12780 | if grep __atomic_ conftest.s >/dev/null 2>&1 ; then | |
12781 | eval libat_cv_have_at_ldst_4=no | |
12782 | else | |
12783 | eval libat_cv_have_at_ldst_4=yes | |
12784 | fi | |
0fe5522f RH |
12785 | else |
12786 | eval libat_cv_have_at_ldst_4=no | |
48310492 RH |
12787 | fi |
12788 | CFLAGS="$old_CFLAGS" | |
12789 | fi | |
12790 | rm -f conftest* | |
12791 | ||
12792 | fi | |
12793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_4" >&5 | |
12794 | $as_echo "$libat_cv_have_at_ldst_4" >&6; } | |
12795 | ||
12796 | ||
12797 | yesno=`echo $libat_cv_have_at_ldst_4 | tr 'yesno' '1 0 '` | |
12798 | ||
12799 | cat >>confdefs.h <<_ACEOF | |
12800 | #define HAVE_ATOMIC_LDST_4 $yesno | |
12801 | _ACEOF | |
12802 | ||
12803 | ||
12804 | ||
12805 | ||
12806 | ||
12807 | ||
bc437a56 | 12808 | |
48310492 RH |
12809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 8" >&5 |
12810 | $as_echo_n "checking for __atomic_load/store for size 8... " >&6; } | |
22e05272 | 12811 | if ${libat_cv_have_at_ldst_8+:} false; then : |
48310492 RH |
12812 | $as_echo_n "(cached) " >&6 |
12813 | else | |
12814 | ||
12815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12816 | /* end confdefs.h. */ | |
12817 | ||
12818 | int | |
12819 | main () | |
12820 | { | |
12821 | typedef int T __attribute__((mode(DI))); | |
12822 | T *x; volatile T sink; asm("" : "=g"(x)); | |
12823 | sink = __atomic_load_n(x, 0); | |
12824 | __atomic_store_n(x, sink, 0); | |
12825 | ; | |
12826 | return 0; | |
12827 | } | |
12828 | _ACEOF | |
12829 | if test x$atomic_builtins_link_tests = xyes; then | |
12830 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12831 | (eval $ac_link) 2>&5 | |
12832 | ac_status=$? | |
12833 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12834 | test $ac_status = 0; }; then | |
12835 | eval libat_cv_have_at_ldst_8=yes | |
12836 | else | |
12837 | eval libat_cv_have_at_ldst_8=no | |
12838 | fi | |
12839 | else | |
12840 | old_CFLAGS="$CFLAGS" | |
12841 | # Compile unoptimized. | |
aaea76b3 | 12842 | CFLAGS="$CFLAGS -O0 -S" |
48310492 RH |
12843 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
12844 | (eval $ac_compile) 2>&5 | |
12845 | ac_status=$? | |
12846 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12847 | test $ac_status = 0; }; then | |
12848 | if grep __atomic_ conftest.s >/dev/null 2>&1 ; then | |
12849 | eval libat_cv_have_at_ldst_8=no | |
12850 | else | |
12851 | eval libat_cv_have_at_ldst_8=yes | |
12852 | fi | |
0fe5522f RH |
12853 | else |
12854 | eval libat_cv_have_at_ldst_8=no | |
48310492 RH |
12855 | fi |
12856 | CFLAGS="$old_CFLAGS" | |
12857 | fi | |
12858 | rm -f conftest* | |
12859 | ||
12860 | fi | |
12861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_8" >&5 | |
12862 | $as_echo "$libat_cv_have_at_ldst_8" >&6; } | |
12863 | ||
12864 | ||
12865 | yesno=`echo $libat_cv_have_at_ldst_8 | tr 'yesno' '1 0 '` | |
12866 | ||
12867 | cat >>confdefs.h <<_ACEOF | |
12868 | #define HAVE_ATOMIC_LDST_8 $yesno | |
12869 | _ACEOF | |
12870 | ||
12871 | ||
12872 | ||
12873 | ||
12874 | ||
12875 | ||
bc437a56 | 12876 | |
48310492 RH |
12877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 16" >&5 |
12878 | $as_echo_n "checking for __atomic_load/store for size 16... " >&6; } | |
22e05272 | 12879 | if ${libat_cv_have_at_ldst_16+:} false; then : |
48310492 RH |
12880 | $as_echo_n "(cached) " >&6 |
12881 | else | |
12882 | ||
12883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12884 | /* end confdefs.h. */ | |
12885 | ||
12886 | int | |
12887 | main () | |
12888 | { | |
12889 | typedef int T __attribute__((mode(TI))); | |
12890 | T *x; volatile T sink; asm("" : "=g"(x)); | |
12891 | sink = __atomic_load_n(x, 0); | |
12892 | __atomic_store_n(x, sink, 0); | |
12893 | ; | |
12894 | return 0; | |
12895 | } | |
12896 | _ACEOF | |
12897 | if test x$atomic_builtins_link_tests = xyes; then | |
12898 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12899 | (eval $ac_link) 2>&5 | |
12900 | ac_status=$? | |
12901 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12902 | test $ac_status = 0; }; then | |
12903 | eval libat_cv_have_at_ldst_16=yes | |
12904 | else | |
12905 | eval libat_cv_have_at_ldst_16=no | |
12906 | fi | |
12907 | else | |
12908 | old_CFLAGS="$CFLAGS" | |
12909 | # Compile unoptimized. | |
aaea76b3 | 12910 | CFLAGS="$CFLAGS -O0 -S" |
48310492 RH |
12911 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
12912 | (eval $ac_compile) 2>&5 | |
12913 | ac_status=$? | |
12914 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12915 | test $ac_status = 0; }; then | |
12916 | if grep __atomic_ conftest.s >/dev/null 2>&1 ; then | |
12917 | eval libat_cv_have_at_ldst_16=no | |
12918 | else | |
12919 | eval libat_cv_have_at_ldst_16=yes | |
12920 | fi | |
0fe5522f RH |
12921 | else |
12922 | eval libat_cv_have_at_ldst_16=no | |
48310492 RH |
12923 | fi |
12924 | CFLAGS="$old_CFLAGS" | |
12925 | fi | |
12926 | rm -f conftest* | |
12927 | ||
12928 | fi | |
12929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_16" >&5 | |
12930 | $as_echo "$libat_cv_have_at_ldst_16" >&6; } | |
12931 | ||
12932 | ||
12933 | yesno=`echo $libat_cv_have_at_ldst_16 | tr 'yesno' '1 0 '` | |
12934 | ||
12935 | cat >>confdefs.h <<_ACEOF | |
12936 | #define HAVE_ATOMIC_LDST_16 $yesno | |
12937 | _ACEOF | |
12938 | ||
12939 | ||
12940 | ||
12941 | ||
12942 | ||
12943 | ||
12944 | ||
bc437a56 | 12945 | |
48310492 RH |
12946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 1" >&5 |
12947 | $as_echo_n "checking for __atomic_test_and_set for size 1... " >&6; } | |
22e05272 | 12948 | if ${libat_cv_have_at_tas_1+:} false; then : |
48310492 RH |
12949 | $as_echo_n "(cached) " >&6 |
12950 | else | |
12951 | ||
12952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12953 | /* end confdefs.h. */ | |
12954 | ||
12955 | int | |
12956 | main () | |
12957 | { | |
12958 | typedef int T __attribute__((mode(QI))); T *x; asm("" : "=g"(x)); | |
12959 | __atomic_test_and_set(x, 0); | |
12960 | ; | |
12961 | return 0; | |
12962 | } | |
12963 | _ACEOF | |
12964 | if test x$atomic_builtins_link_tests = xyes; then | |
12965 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12966 | (eval $ac_link) 2>&5 | |
12967 | ac_status=$? | |
12968 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12969 | test $ac_status = 0; }; then | |
12970 | eval libat_cv_have_at_tas_1=yes | |
12971 | else | |
12972 | eval libat_cv_have_at_tas_1=no | |
12973 | fi | |
12974 | else | |
12975 | old_CFLAGS="$CFLAGS" | |
12976 | # Compile unoptimized. | |
aaea76b3 | 12977 | CFLAGS="$CFLAGS -O0 -S" |
48310492 RH |
12978 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
12979 | (eval $ac_compile) 2>&5 | |
12980 | ac_status=$? | |
12981 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12982 | test $ac_status = 0; }; then | |
12983 | if grep __atomic_ conftest.s >/dev/null 2>&1 ; then | |
12984 | eval libat_cv_have_at_tas_1=no | |
12985 | else | |
12986 | eval libat_cv_have_at_tas_1=yes | |
12987 | fi | |
0fe5522f RH |
12988 | else |
12989 | eval libat_cv_have_at_tas_1=no | |
48310492 RH |
12990 | fi |
12991 | CFLAGS="$old_CFLAGS" | |
12992 | fi | |
12993 | rm -f conftest* | |
12994 | ||
12995 | fi | |
12996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_1" >&5 | |
12997 | $as_echo "$libat_cv_have_at_tas_1" >&6; } | |
12998 | ||
12999 | ||
13000 | yesno=`echo $libat_cv_have_at_tas_1 | tr 'yesno' '1 0 '` | |
13001 | ||
13002 | cat >>confdefs.h <<_ACEOF | |
13003 | #define HAVE_ATOMIC_TAS_1 $yesno | |
13004 | _ACEOF | |
13005 | ||
13006 | ||
13007 | ||
13008 | ||
13009 | ||
13010 | ||
13011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 2" >&5 | |
13012 | $as_echo_n "checking for __atomic_test_and_set for size 2... " >&6; } | |
22e05272 | 13013 | if ${libat_cv_have_at_tas_2+:} false; then : |
48310492 RH |
13014 | $as_echo_n "(cached) " >&6 |
13015 | else | |
13016 | ||
13017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13018 | /* end confdefs.h. */ | |
13019 | ||
13020 | int | |
13021 | main () | |
13022 | { | |
13023 | typedef int T __attribute__((mode(HI))); T *x; asm("" : "=g"(x)); | |
13024 | __atomic_test_and_set(x, 0); | |
13025 | ; | |
13026 | return 0; | |
13027 | } | |
13028 | _ACEOF | |
13029 | if test x$atomic_builtins_link_tests = xyes; then | |
13030 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
13031 | (eval $ac_link) 2>&5 | |
13032 | ac_status=$? | |
13033 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13034 | test $ac_status = 0; }; then | |
13035 | eval libat_cv_have_at_tas_2=yes | |
13036 | else | |
13037 | eval libat_cv_have_at_tas_2=no | |
13038 | fi | |
13039 | else | |
13040 | old_CFLAGS="$CFLAGS" | |
13041 | # Compile unoptimized. | |
aaea76b3 | 13042 | CFLAGS="$CFLAGS -O0 -S" |
48310492 RH |
13043 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
13044 | (eval $ac_compile) 2>&5 | |
13045 | ac_status=$? | |
13046 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13047 | test $ac_status = 0; }; then | |
13048 | if grep __atomic_ conftest.s >/dev/null 2>&1 ; then | |
13049 | eval libat_cv_have_at_tas_2=no | |
13050 | else | |
13051 | eval libat_cv_have_at_tas_2=yes | |
13052 | fi | |
0fe5522f RH |
13053 | else |
13054 | eval libat_cv_have_at_tas_2=no | |
48310492 RH |
13055 | fi |
13056 | CFLAGS="$old_CFLAGS" | |
13057 | fi | |
13058 | rm -f conftest* | |
13059 | ||
13060 | fi | |
13061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_2" >&5 | |
13062 | $as_echo "$libat_cv_have_at_tas_2" >&6; } | |
13063 | ||
13064 | ||
13065 | yesno=`echo $libat_cv_have_at_tas_2 | tr 'yesno' '1 0 '` | |
13066 | ||
13067 | cat >>confdefs.h <<_ACEOF | |
13068 | #define HAVE_ATOMIC_TAS_2 $yesno | |
13069 | _ACEOF | |
13070 | ||
13071 | ||
13072 | ||
13073 | ||
13074 | ||
13075 | ||
13076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 4" >&5 | |
13077 | $as_echo_n "checking for __atomic_test_and_set for size 4... " >&6; } | |
22e05272 | 13078 | if ${libat_cv_have_at_tas_4+:} false; then : |
48310492 RH |
13079 | $as_echo_n "(cached) " >&6 |
13080 | else | |
13081 | ||
13082 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13083 | /* end confdefs.h. */ | |
13084 | ||
13085 | int | |
13086 | main () | |
13087 | { | |
13088 | typedef int T __attribute__((mode(SI))); T *x; asm("" : "=g"(x)); | |
13089 | __atomic_test_and_set(x, 0); | |
13090 | ; | |
13091 | return 0; | |
13092 | } | |
13093 | _ACEOF | |
13094 | if test x$atomic_builtins_link_tests = xyes; then | |
13095 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
13096 | (eval $ac_link) 2>&5 | |
13097 | ac_status=$? | |
13098 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13099 | test $ac_status = 0; }; then | |
13100 | eval libat_cv_have_at_tas_4=yes | |
13101 | else | |
13102 | eval libat_cv_have_at_tas_4=no | |
13103 | fi | |
13104 | else | |
13105 | old_CFLAGS="$CFLAGS" | |
13106 | # Compile unoptimized. | |
aaea76b3 | 13107 | CFLAGS="$CFLAGS -O0 -S" |
48310492 RH |
13108 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
13109 | (eval $ac_compile) 2>&5 | |
13110 | ac_status=$? | |
13111 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13112 | test $ac_status = 0; }; then | |
13113 | if grep __atomic_ conftest.s >/dev/null 2>&1 ; then | |
13114 | eval libat_cv_have_at_tas_4=no | |
13115 | else | |
13116 | eval libat_cv_have_at_tas_4=yes | |
13117 | fi | |
0fe5522f RH |
13118 | else |
13119 | eval libat_cv_have_at_tas_4=no | |
48310492 RH |
13120 | fi |
13121 | CFLAGS="$old_CFLAGS" | |
13122 | fi | |
13123 | rm -f conftest* | |
13124 | ||
13125 | fi | |
13126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_4" >&5 | |
13127 | $as_echo "$libat_cv_have_at_tas_4" >&6; } | |
13128 | ||
13129 | ||
13130 | yesno=`echo $libat_cv_have_at_tas_4 | tr 'yesno' '1 0 '` | |
13131 | ||
13132 | cat >>confdefs.h <<_ACEOF | |
13133 | #define HAVE_ATOMIC_TAS_4 $yesno | |
13134 | _ACEOF | |
13135 | ||
13136 | ||
13137 | ||
13138 | ||
13139 | ||
13140 | ||
13141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 8" >&5 | |
13142 | $as_echo_n "checking for __atomic_test_and_set for size 8... " >&6; } | |
22e05272 | 13143 | if ${libat_cv_have_at_tas_8+:} false; then : |
48310492 RH |
13144 | $as_echo_n "(cached) " >&6 |
13145 | else | |
13146 | ||
13147 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13148 | /* end confdefs.h. */ | |
13149 | ||
13150 | int | |
13151 | main () | |
13152 | { | |
13153 | typedef int T __attribute__((mode(DI))); T *x; asm("" : "=g"(x)); | |
13154 | __atomic_test_and_set(x, 0); | |
13155 | ; | |
13156 | return 0; | |
13157 | } | |
13158 | _ACEOF | |
13159 | if test x$atomic_builtins_link_tests = xyes; then | |
13160 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
13161 | (eval $ac_link) 2>&5 | |
13162 | ac_status=$? | |
13163 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13164 | test $ac_status = 0; }; then | |
13165 | eval libat_cv_have_at_tas_8=yes | |
13166 | else | |
13167 | eval libat_cv_have_at_tas_8=no | |
13168 | fi | |
13169 | else | |
13170 | old_CFLAGS="$CFLAGS" | |
13171 | # Compile unoptimized. | |
aaea76b3 | 13172 | CFLAGS="$CFLAGS -O0 -S" |
48310492 RH |
13173 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
13174 | (eval $ac_compile) 2>&5 | |
13175 | ac_status=$? | |
13176 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13177 | test $ac_status = 0; }; then | |
13178 | if grep __atomic_ conftest.s >/dev/null 2>&1 ; then | |
13179 | eval libat_cv_have_at_tas_8=no | |
13180 | else | |
13181 | eval libat_cv_have_at_tas_8=yes | |
13182 | fi | |
0fe5522f RH |
13183 | else |
13184 | eval libat_cv_have_at_tas_8=no | |
48310492 RH |
13185 | fi |
13186 | CFLAGS="$old_CFLAGS" | |
13187 | fi | |
13188 | rm -f conftest* | |
13189 | ||
13190 | fi | |
13191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_8" >&5 | |
13192 | $as_echo "$libat_cv_have_at_tas_8" >&6; } | |
13193 | ||
13194 | ||
13195 | yesno=`echo $libat_cv_have_at_tas_8 | tr 'yesno' '1 0 '` | |
13196 | ||
13197 | cat >>confdefs.h <<_ACEOF | |
13198 | #define HAVE_ATOMIC_TAS_8 $yesno | |
13199 | _ACEOF | |
13200 | ||
13201 | ||
13202 | ||
13203 | ||
13204 | ||
13205 | ||
13206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 16" >&5 | |
13207 | $as_echo_n "checking for __atomic_test_and_set for size 16... " >&6; } | |
22e05272 | 13208 | if ${libat_cv_have_at_tas_16+:} false; then : |
48310492 RH |
13209 | $as_echo_n "(cached) " >&6 |
13210 | else | |
13211 | ||
13212 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13213 | /* end confdefs.h. */ | |
13214 | ||
13215 | int | |
13216 | main () | |
13217 | { | |
13218 | typedef int T __attribute__((mode(TI))); T *x; asm("" : "=g"(x)); | |
13219 | __atomic_test_and_set(x, 0); | |
13220 | ; | |
13221 | return 0; | |
13222 | } | |
13223 | _ACEOF | |
13224 | if test x$atomic_builtins_link_tests = xyes; then | |
13225 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
13226 | (eval $ac_link) 2>&5 | |
13227 | ac_status=$? | |
13228 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13229 | test $ac_status = 0; }; then | |
13230 | eval libat_cv_have_at_tas_16=yes | |
13231 | else | |
13232 | eval libat_cv_have_at_tas_16=no | |
13233 | fi | |
13234 | else | |
13235 | old_CFLAGS="$CFLAGS" | |
13236 | # Compile unoptimized. | |
aaea76b3 | 13237 | CFLAGS="$CFLAGS -O0 -S" |
48310492 RH |
13238 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
13239 | (eval $ac_compile) 2>&5 | |
13240 | ac_status=$? | |
13241 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13242 | test $ac_status = 0; }; then | |
13243 | if grep __atomic_ conftest.s >/dev/null 2>&1 ; then | |
13244 | eval libat_cv_have_at_tas_16=no | |
13245 | else | |
13246 | eval libat_cv_have_at_tas_16=yes | |
13247 | fi | |
0fe5522f RH |
13248 | else |
13249 | eval libat_cv_have_at_tas_16=no | |
48310492 RH |
13250 | fi |
13251 | CFLAGS="$old_CFLAGS" | |
13252 | fi | |
13253 | rm -f conftest* | |
13254 | ||
13255 | fi | |
13256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_16" >&5 | |
13257 | $as_echo "$libat_cv_have_at_tas_16" >&6; } | |
13258 | ||
13259 | ||
13260 | yesno=`echo $libat_cv_have_at_tas_16 | tr 'yesno' '1 0 '` | |
13261 | ||
13262 | cat >>confdefs.h <<_ACEOF | |
13263 | #define HAVE_ATOMIC_TAS_16 $yesno | |
13264 | _ACEOF | |
13265 | ||
13266 | ||
13267 | ||
13268 | ||
13269 | ||
13270 | ||
13271 | ||
13272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 1" >&5 | |
13273 | $as_echo_n "checking for __atomic_exchange for size 1... " >&6; } | |
22e05272 | 13274 | if ${libat_cv_have_at_exch_1+:} false; then : |
48310492 RH |
13275 | $as_echo_n "(cached) " >&6 |
13276 | else | |
13277 | ||
13278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13279 | /* end confdefs.h. */ | |
13280 | ||
13281 | int | |
13282 | main () | |
13283 | { | |
13284 | typedef int T __attribute__((mode(QI))); T *x; asm("" : "=g"(x)); | |
13285 | __atomic_exchange_n(x, 0, 0); | |
13286 | ; | |
13287 | return 0; | |
13288 | } | |
13289 | _ACEOF | |
13290 | if test x$atomic_builtins_link_tests = xyes; then | |
13291 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
13292 | (eval $ac_link) 2>&5 | |
13293 | ac_status=$? | |
13294 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13295 | test $ac_status = 0; }; then | |
13296 | eval libat_cv_have_at_exch_1=yes | |
13297 | else | |
13298 | eval libat_cv_have_at_exch_1=no | |
13299 | fi | |
13300 | else | |
13301 | old_CFLAGS="$CFLAGS" | |
13302 | # Compile unoptimized. | |
aaea76b3 | 13303 | CFLAGS="$CFLAGS -O0 -S" |
48310492 RH |
13304 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
13305 | (eval $ac_compile) 2>&5 | |
13306 | ac_status=$? | |
13307 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13308 | test $ac_status = 0; }; then | |
13309 | if grep __atomic_ conftest.s >/dev/null 2>&1 ; then | |
13310 | eval libat_cv_have_at_exch_1=no | |
13311 | else | |
13312 | eval libat_cv_have_at_exch_1=yes | |
13313 | fi | |
0fe5522f RH |
13314 | else |
13315 | eval libat_cv_have_at_exch_1=no | |
48310492 RH |
13316 | fi |
13317 | CFLAGS="$old_CFLAGS" | |
13318 | fi | |
13319 | rm -f conftest* | |
13320 | ||
13321 | fi | |
13322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_1" >&5 | |
13323 | $as_echo "$libat_cv_have_at_exch_1" >&6; } | |
13324 | ||
13325 | ||
13326 | yesno=`echo $libat_cv_have_at_exch_1 | tr 'yesno' '1 0 '` | |
13327 | ||
13328 | cat >>confdefs.h <<_ACEOF | |
13329 | #define HAVE_ATOMIC_EXCHANGE_1 $yesno | |
13330 | _ACEOF | |
13331 | ||
13332 | ||
13333 | ||
13334 | ||
13335 | ||
13336 | ||
13337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 2" >&5 | |
13338 | $as_echo_n "checking for __atomic_exchange for size 2... " >&6; } | |
22e05272 | 13339 | if ${libat_cv_have_at_exch_2+:} false; then : |
48310492 RH |
13340 | $as_echo_n "(cached) " >&6 |
13341 | else | |
13342 | ||
13343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13344 | /* end confdefs.h. */ | |
13345 | ||
13346 | int | |
13347 | main () | |
13348 | { | |
13349 | typedef int T __attribute__((mode(HI))); T *x; asm("" : "=g"(x)); | |
13350 | __atomic_exchange_n(x, 0, 0); | |
13351 | ; | |
13352 | return 0; | |
13353 | } | |
13354 | _ACEOF | |
13355 | if test x$atomic_builtins_link_tests = xyes; then | |
13356 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
13357 | (eval $ac_link) 2>&5 | |
13358 | ac_status=$? | |
13359 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13360 | test $ac_status = 0; }; then | |
13361 | eval libat_cv_have_at_exch_2=yes | |
13362 | else | |
13363 | eval libat_cv_have_at_exch_2=no | |
13364 | fi | |
13365 | else | |
13366 | old_CFLAGS="$CFLAGS" | |
13367 | # Compile unoptimized. | |
aaea76b3 | 13368 | CFLAGS="$CFLAGS -O0 -S" |
48310492 RH |
13369 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
13370 | (eval $ac_compile) 2>&5 | |
13371 | ac_status=$? | |
13372 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13373 | test $ac_status = 0; }; then | |
13374 | if grep __atomic_ conftest.s >/dev/null 2>&1 ; then | |
13375 | eval libat_cv_have_at_exch_2=no | |
13376 | else | |
13377 | eval libat_cv_have_at_exch_2=yes | |
13378 | fi | |
0fe5522f RH |
13379 | else |
13380 | eval libat_cv_have_at_exch_2=no | |
48310492 RH |
13381 | fi |
13382 | CFLAGS="$old_CFLAGS" | |
13383 | fi | |
13384 | rm -f conftest* | |
13385 | ||
13386 | fi | |
13387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_2" >&5 | |
13388 | $as_echo "$libat_cv_have_at_exch_2" >&6; } | |
13389 | ||
13390 | ||
13391 | yesno=`echo $libat_cv_have_at_exch_2 | tr 'yesno' '1 0 '` | |
13392 | ||
13393 | cat >>confdefs.h <<_ACEOF | |
13394 | #define HAVE_ATOMIC_EXCHANGE_2 $yesno | |
13395 | _ACEOF | |
13396 | ||
13397 | ||
13398 | ||
13399 | ||
13400 | ||
13401 | ||
13402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 4" >&5 | |
13403 | $as_echo_n "checking for __atomic_exchange for size 4... " >&6; } | |
22e05272 | 13404 | if ${libat_cv_have_at_exch_4+:} false; then : |
48310492 RH |
13405 | $as_echo_n "(cached) " >&6 |
13406 | else | |
13407 | ||
13408 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13409 | /* end confdefs.h. */ | |
13410 | ||
13411 | int | |
13412 | main () | |
13413 | { | |
13414 | typedef int T __attribute__((mode(SI))); T *x; asm("" : "=g"(x)); | |
13415 | __atomic_exchange_n(x, 0, 0); | |
13416 | ; | |
13417 | return 0; | |
13418 | } | |
13419 | _ACEOF | |
13420 | if test x$atomic_builtins_link_tests = xyes; then | |
13421 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
13422 | (eval $ac_link) 2>&5 | |
13423 | ac_status=$? | |
13424 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13425 | test $ac_status = 0; }; then | |
13426 | eval libat_cv_have_at_exch_4=yes | |
13427 | else | |
13428 | eval libat_cv_have_at_exch_4=no | |
13429 | fi | |
13430 | else | |
13431 | old_CFLAGS="$CFLAGS" | |
13432 | # Compile unoptimized. | |
aaea76b3 | 13433 | CFLAGS="$CFLAGS -O0 -S" |
48310492 RH |
13434 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
13435 | (eval $ac_compile) 2>&5 | |
13436 | ac_status=$? | |
13437 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13438 | test $ac_status = 0; }; then | |
13439 | if grep __atomic_ conftest.s >/dev/null 2>&1 ; then | |
13440 | eval libat_cv_have_at_exch_4=no | |
13441 | else | |
13442 | eval libat_cv_have_at_exch_4=yes | |
13443 | fi | |
0fe5522f RH |
13444 | else |
13445 | eval libat_cv_have_at_exch_4=no | |
48310492 RH |
13446 | fi |
13447 | CFLAGS="$old_CFLAGS" | |
13448 | fi | |
13449 | rm -f conftest* | |
13450 | ||
13451 | fi | |
13452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_4" >&5 | |
13453 | $as_echo "$libat_cv_have_at_exch_4" >&6; } | |
13454 | ||
13455 | ||
13456 | yesno=`echo $libat_cv_have_at_exch_4 | tr 'yesno' '1 0 '` | |
13457 | ||
13458 | cat >>confdefs.h <<_ACEOF | |
13459 | #define HAVE_ATOMIC_EXCHANGE_4 $yesno | |
13460 | _ACEOF | |
13461 | ||
13462 | ||
13463 | ||
13464 | ||
13465 | ||
13466 | ||
13467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 8" >&5 | |
13468 | $as_echo_n "checking for __atomic_exchange for size 8... " >&6; } | |
22e05272 | 13469 | if ${libat_cv_have_at_exch_8+:} false; then : |
48310492 RH |
13470 | $as_echo_n "(cached) " >&6 |
13471 | else | |
13472 | ||
13473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13474 | /* end confdefs.h. */ | |
13475 | ||
13476 | int | |
13477 | main () | |
13478 | { | |
13479 | typedef int T __attribute__((mode(DI))); T *x; asm("" : "=g"(x)); | |
13480 | __atomic_exchange_n(x, 0, 0); | |
13481 | ; | |
13482 | return 0; | |
13483 | } | |
13484 | _ACEOF | |
13485 | if test x$atomic_builtins_link_tests = xyes; then | |
13486 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
13487 | (eval $ac_link) 2>&5 | |
13488 | ac_status=$? | |
13489 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13490 | test $ac_status = 0; }; then | |
13491 | eval libat_cv_have_at_exch_8=yes | |
13492 | else | |
13493 | eval libat_cv_have_at_exch_8=no | |
13494 | fi | |
13495 | else | |
13496 | old_CFLAGS="$CFLAGS" | |
13497 | # Compile unoptimized. | |
aaea76b3 | 13498 | CFLAGS="$CFLAGS -O0 -S" |
48310492 RH |
13499 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
13500 | (eval $ac_compile) 2>&5 | |
13501 | ac_status=$? | |
13502 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13503 | test $ac_status = 0; }; then | |
13504 | if grep __atomic_ conftest.s >/dev/null 2>&1 ; then | |
13505 | eval libat_cv_have_at_exch_8=no | |
13506 | else | |
13507 | eval libat_cv_have_at_exch_8=yes | |
13508 | fi | |
0fe5522f RH |
13509 | else |
13510 | eval libat_cv_have_at_exch_8=no | |
48310492 RH |
13511 | fi |
13512 | CFLAGS="$old_CFLAGS" | |
13513 | fi | |
13514 | rm -f conftest* | |
13515 | ||
13516 | fi | |
13517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_8" >&5 | |
13518 | $as_echo "$libat_cv_have_at_exch_8" >&6; } | |
13519 | ||
13520 | ||
13521 | yesno=`echo $libat_cv_have_at_exch_8 | tr 'yesno' '1 0 '` | |
13522 | ||
13523 | cat >>confdefs.h <<_ACEOF | |
13524 | #define HAVE_ATOMIC_EXCHANGE_8 $yesno | |
13525 | _ACEOF | |
13526 | ||
13527 | ||
13528 | ||
13529 | ||
13530 | ||
13531 | ||
13532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 16" >&5 | |
13533 | $as_echo_n "checking for __atomic_exchange for size 16... " >&6; } | |
22e05272 | 13534 | if ${libat_cv_have_at_exch_16+:} false; then : |
48310492 RH |
13535 | $as_echo_n "(cached) " >&6 |
13536 | else | |
13537 | ||
13538 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13539 | /* end confdefs.h. */ | |
13540 | ||
13541 | int | |
13542 | main () | |
13543 | { | |
13544 | typedef int T __attribute__((mode(TI))); T *x; asm("" : "=g"(x)); | |
13545 | __atomic_exchange_n(x, 0, 0); | |
13546 | ; | |
13547 | return 0; | |
13548 | } | |
13549 | _ACEOF | |
13550 | if test x$atomic_builtins_link_tests = xyes; then | |
13551 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
13552 | (eval $ac_link) 2>&5 | |
13553 | ac_status=$? | |
13554 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13555 | test $ac_status = 0; }; then | |
13556 | eval libat_cv_have_at_exch_16=yes | |
13557 | else | |
13558 | eval libat_cv_have_at_exch_16=no | |
13559 | fi | |
13560 | else | |
13561 | old_CFLAGS="$CFLAGS" | |
13562 | # Compile unoptimized. | |
aaea76b3 | 13563 | CFLAGS="$CFLAGS -O0 -S" |
48310492 RH |
13564 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
13565 | (eval $ac_compile) 2>&5 | |
13566 | ac_status=$? | |
13567 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13568 | test $ac_status = 0; }; then | |
13569 | if grep __atomic_ conftest.s >/dev/null 2>&1 ; then | |
13570 | eval libat_cv_have_at_exch_16=no | |
13571 | else | |
13572 | eval libat_cv_have_at_exch_16=yes | |
13573 | fi | |
0fe5522f RH |
13574 | else |
13575 | eval libat_cv_have_at_exch_16=no | |
48310492 RH |
13576 | fi |
13577 | CFLAGS="$old_CFLAGS" | |
13578 | fi | |
13579 | rm -f conftest* | |
13580 | ||
13581 | fi | |
13582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_16" >&5 | |
13583 | $as_echo "$libat_cv_have_at_exch_16" >&6; } | |
13584 | ||
13585 | ||
13586 | yesno=`echo $libat_cv_have_at_exch_16 | tr 'yesno' '1 0 '` | |
13587 | ||
13588 | cat >>confdefs.h <<_ACEOF | |
13589 | #define HAVE_ATOMIC_EXCHANGE_16 $yesno | |
13590 | _ACEOF | |
13591 | ||
13592 | ||
13593 | ||
13594 | ||
13595 | ||
13596 | ||
13597 | ||
13598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 1" >&5 | |
13599 | $as_echo_n "checking for __atomic_compare_exchange for size 1... " >&6; } | |
22e05272 | 13600 | if ${libat_cv_have_at_cas_1+:} false; then : |
48310492 RH |
13601 | $as_echo_n "(cached) " >&6 |
13602 | else | |
13603 | ||
13604 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13605 | /* end confdefs.h. */ | |
13606 | ||
13607 | int | |
13608 | main () | |
13609 | { | |
13610 | typedef int T __attribute__((mode(QI))); T *x, *y; | |
13611 | asm("" : "=g"(x), "=g"(y)); | |
13612 | __atomic_compare_exchange_n(x, y, 0, 0, 0, 0); | |
13613 | ; | |
13614 | return 0; | |
13615 | } | |
13616 | _ACEOF | |
13617 | if test x$atomic_builtins_link_tests = xyes; then | |
13618 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
13619 | (eval $ac_link) 2>&5 | |
13620 | ac_status=$? | |
13621 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13622 | test $ac_status = 0; }; then | |
13623 | eval libat_cv_have_at_cas_1=yes | |
13624 | else | |
13625 | eval libat_cv_have_at_cas_1=no | |
13626 | fi | |
13627 | else | |
13628 | old_CFLAGS="$CFLAGS" | |
13629 | # Compile unoptimized. | |
aaea76b3 | 13630 | CFLAGS="$CFLAGS -O0 -S" |
48310492 RH |
13631 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
13632 | (eval $ac_compile) 2>&5 | |
13633 | ac_status=$? | |
13634 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13635 | test $ac_status = 0; }; then | |
13636 | if grep __atomic_ conftest.s >/dev/null 2>&1 ; then | |
13637 | eval libat_cv_have_at_cas_1=no | |
13638 | else | |
13639 | eval libat_cv_have_at_cas_1=yes | |
13640 | fi | |
0fe5522f RH |
13641 | else |
13642 | eval libat_cv_have_at_cas_1=no | |
48310492 RH |
13643 | fi |
13644 | CFLAGS="$old_CFLAGS" | |
13645 | fi | |
13646 | rm -f conftest* | |
13647 | ||
13648 | fi | |
13649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_1" >&5 | |
13650 | $as_echo "$libat_cv_have_at_cas_1" >&6; } | |
13651 | ||
13652 | ||
13653 | yesno=`echo $libat_cv_have_at_cas_1 | tr 'yesno' '1 0 '` | |
13654 | ||
13655 | cat >>confdefs.h <<_ACEOF | |
13656 | #define HAVE_ATOMIC_CAS_1 $yesno | |
13657 | _ACEOF | |
13658 | ||
13659 | ||
13660 | ||
13661 | ||
13662 | ||
13663 | ||
13664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 2" >&5 | |
13665 | $as_echo_n "checking for __atomic_compare_exchange for size 2... " >&6; } | |
22e05272 | 13666 | if ${libat_cv_have_at_cas_2+:} false; then : |
48310492 RH |
13667 | $as_echo_n "(cached) " >&6 |
13668 | else | |
13669 | ||
13670 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13671 | /* end confdefs.h. */ | |
13672 | ||
13673 | int | |
13674 | main () | |
13675 | { | |
13676 | typedef int T __attribute__((mode(HI))); T *x, *y; | |
13677 | asm("" : "=g"(x), "=g"(y)); | |
13678 | __atomic_compare_exchange_n(x, y, 0, 0, 0, 0); | |
13679 | ; | |
13680 | return 0; | |
13681 | } | |
13682 | _ACEOF | |
13683 | if test x$atomic_builtins_link_tests = xyes; then | |
13684 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
13685 | (eval $ac_link) 2>&5 | |
13686 | ac_status=$? | |
13687 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13688 | test $ac_status = 0; }; then | |
13689 | eval libat_cv_have_at_cas_2=yes | |
13690 | else | |
13691 | eval libat_cv_have_at_cas_2=no | |
13692 | fi | |
13693 | else | |
13694 | old_CFLAGS="$CFLAGS" | |
13695 | # Compile unoptimized. | |
aaea76b3 | 13696 | CFLAGS="$CFLAGS -O0 -S" |
48310492 RH |
13697 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
13698 | (eval $ac_compile) 2>&5 | |
13699 | ac_status=$? | |
13700 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13701 | test $ac_status = 0; }; then | |
13702 | if grep __atomic_ conftest.s >/dev/null 2>&1 ; then | |
13703 | eval libat_cv_have_at_cas_2=no | |
13704 | else | |
13705 | eval libat_cv_have_at_cas_2=yes | |
13706 | fi | |
0fe5522f RH |
13707 | else |
13708 | eval libat_cv_have_at_cas_2=no | |
48310492 RH |
13709 | fi |
13710 | CFLAGS="$old_CFLAGS" | |
13711 | fi | |
13712 | rm -f conftest* | |
13713 | ||
13714 | fi | |
13715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_2" >&5 | |
13716 | $as_echo "$libat_cv_have_at_cas_2" >&6; } | |
13717 | ||
13718 | ||
13719 | yesno=`echo $libat_cv_have_at_cas_2 | tr 'yesno' '1 0 '` | |
13720 | ||
13721 | cat >>confdefs.h <<_ACEOF | |
13722 | #define HAVE_ATOMIC_CAS_2 $yesno | |
13723 | _ACEOF | |
13724 | ||
13725 | ||
13726 | ||
13727 | ||
13728 | ||
13729 | ||
13730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 4" >&5 | |
13731 | $as_echo_n "checking for __atomic_compare_exchange for size 4... " >&6; } | |
22e05272 | 13732 | if ${libat_cv_have_at_cas_4+:} false; then : |
48310492 RH |
13733 | $as_echo_n "(cached) " >&6 |
13734 | else | |
13735 | ||
13736 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13737 | /* end confdefs.h. */ | |
13738 | ||
13739 | int | |
13740 | main () | |
13741 | { | |
13742 | typedef int T __attribute__((mode(SI))); T *x, *y; | |
13743 | asm("" : "=g"(x), "=g"(y)); | |
13744 | __atomic_compare_exchange_n(x, y, 0, 0, 0, 0); | |
13745 | ; | |
13746 | return 0; | |
13747 | } | |
13748 | _ACEOF | |
13749 | if test x$atomic_builtins_link_tests = xyes; then | |
13750 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
13751 | (eval $ac_link) 2>&5 | |
13752 | ac_status=$? | |
13753 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13754 | test $ac_status = 0; }; then | |
13755 | eval libat_cv_have_at_cas_4=yes | |
13756 | else | |
13757 | eval libat_cv_have_at_cas_4=no | |
13758 | fi | |
13759 | else | |
13760 | old_CFLAGS="$CFLAGS" | |
13761 | # Compile unoptimized. | |
aaea76b3 | 13762 | CFLAGS="$CFLAGS -O0 -S" |
48310492 RH |
13763 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
13764 | (eval $ac_compile) 2>&5 | |
13765 | ac_status=$? | |
13766 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13767 | test $ac_status = 0; }; then | |
13768 | if grep __atomic_ conftest.s >/dev/null 2>&1 ; then | |
13769 | eval libat_cv_have_at_cas_4=no | |
13770 | else | |
13771 | eval libat_cv_have_at_cas_4=yes | |
13772 | fi | |
0fe5522f RH |
13773 | else |
13774 | eval libat_cv_have_at_cas_4=no | |
48310492 RH |
13775 | fi |
13776 | CFLAGS="$old_CFLAGS" | |
13777 | fi | |
13778 | rm -f conftest* | |
13779 | ||
13780 | fi | |
13781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_4" >&5 | |
13782 | $as_echo "$libat_cv_have_at_cas_4" >&6; } | |
13783 | ||
13784 | ||
13785 | yesno=`echo $libat_cv_have_at_cas_4 | tr 'yesno' '1 0 '` | |
13786 | ||
13787 | cat >>confdefs.h <<_ACEOF | |
13788 | #define HAVE_ATOMIC_CAS_4 $yesno | |
13789 | _ACEOF | |
13790 | ||
13791 | ||
13792 | ||
13793 | ||
13794 | ||
13795 | ||
13796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 8" >&5 | |
13797 | $as_echo_n "checking for __atomic_compare_exchange for size 8... " >&6; } | |
22e05272 | 13798 | if ${libat_cv_have_at_cas_8+:} false; then : |
48310492 RH |
13799 | $as_echo_n "(cached) " >&6 |
13800 | else | |
13801 | ||
13802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13803 | /* end confdefs.h. */ | |
13804 | ||
13805 | int | |
13806 | main () | |
13807 | { | |
13808 | typedef int T __attribute__((mode(DI))); T *x, *y; | |
13809 | asm("" : "=g"(x), "=g"(y)); | |
13810 | __atomic_compare_exchange_n(x, y, 0, 0, 0, 0); | |
13811 | ; | |
13812 | return 0; | |
13813 | } | |
13814 | _ACEOF | |
13815 | if test x$atomic_builtins_link_tests = xyes; then | |
13816 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
13817 | (eval $ac_link) 2>&5 | |
13818 | ac_status=$? | |
13819 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13820 | test $ac_status = 0; }; then | |
13821 | eval libat_cv_have_at_cas_8=yes | |
13822 | else | |
13823 | eval libat_cv_have_at_cas_8=no | |
13824 | fi | |
13825 | else | |
13826 | old_CFLAGS="$CFLAGS" | |
13827 | # Compile unoptimized. | |
aaea76b3 | 13828 | CFLAGS="$CFLAGS -O0 -S" |
48310492 RH |
13829 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
13830 | (eval $ac_compile) 2>&5 | |
13831 | ac_status=$? | |
13832 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13833 | test $ac_status = 0; }; then | |
13834 | if grep __atomic_ conftest.s >/dev/null 2>&1 ; then | |
13835 | eval libat_cv_have_at_cas_8=no | |
13836 | else | |
13837 | eval libat_cv_have_at_cas_8=yes | |
13838 | fi | |
0fe5522f RH |
13839 | else |
13840 | eval libat_cv_have_at_cas_8=no | |
48310492 RH |
13841 | fi |
13842 | CFLAGS="$old_CFLAGS" | |
13843 | fi | |
13844 | rm -f conftest* | |
13845 | ||
13846 | fi | |
13847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_8" >&5 | |
13848 | $as_echo "$libat_cv_have_at_cas_8" >&6; } | |
13849 | ||
13850 | ||
13851 | yesno=`echo $libat_cv_have_at_cas_8 | tr 'yesno' '1 0 '` | |
13852 | ||
13853 | cat >>confdefs.h <<_ACEOF | |
13854 | #define HAVE_ATOMIC_CAS_8 $yesno | |
13855 | _ACEOF | |
13856 | ||
13857 | ||
13858 | ||
13859 | ||
13860 | ||
13861 | ||
13862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 16" >&5 | |
13863 | $as_echo_n "checking for __atomic_compare_exchange for size 16... " >&6; } | |
22e05272 | 13864 | if ${libat_cv_have_at_cas_16+:} false; then : |
48310492 RH |
13865 | $as_echo_n "(cached) " >&6 |
13866 | else | |
13867 | ||
13868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13869 | /* end confdefs.h. */ | |
13870 | ||
13871 | int | |
13872 | main () | |
13873 | { | |
13874 | typedef int T __attribute__((mode(TI))); T *x, *y; | |
13875 | asm("" : "=g"(x), "=g"(y)); | |
13876 | __atomic_compare_exchange_n(x, y, 0, 0, 0, 0); | |
13877 | ; | |
13878 | return 0; | |
13879 | } | |
13880 | _ACEOF | |
13881 | if test x$atomic_builtins_link_tests = xyes; then | |
13882 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
13883 | (eval $ac_link) 2>&5 | |
13884 | ac_status=$? | |
13885 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13886 | test $ac_status = 0; }; then | |
13887 | eval libat_cv_have_at_cas_16=yes | |
13888 | else | |
13889 | eval libat_cv_have_at_cas_16=no | |
13890 | fi | |
13891 | else | |
13892 | old_CFLAGS="$CFLAGS" | |
13893 | # Compile unoptimized. | |
aaea76b3 | 13894 | CFLAGS="$CFLAGS -O0 -S" |
48310492 RH |
13895 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
13896 | (eval $ac_compile) 2>&5 | |
13897 | ac_status=$? | |
13898 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13899 | test $ac_status = 0; }; then | |
13900 | if grep __atomic_ conftest.s >/dev/null 2>&1 ; then | |
13901 | eval libat_cv_have_at_cas_16=no | |
13902 | else | |
13903 | eval libat_cv_have_at_cas_16=yes | |
13904 | fi | |
0fe5522f RH |
13905 | else |
13906 | eval libat_cv_have_at_cas_16=no | |
48310492 RH |
13907 | fi |
13908 | CFLAGS="$old_CFLAGS" | |
13909 | fi | |
13910 | rm -f conftest* | |
13911 | ||
13912 | fi | |
13913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_16" >&5 | |
13914 | $as_echo "$libat_cv_have_at_cas_16" >&6; } | |
13915 | ||
13916 | ||
13917 | yesno=`echo $libat_cv_have_at_cas_16 | tr 'yesno' '1 0 '` | |
13918 | ||
13919 | cat >>confdefs.h <<_ACEOF | |
13920 | #define HAVE_ATOMIC_CAS_16 $yesno | |
13921 | _ACEOF | |
13922 | ||
13923 | ||
13924 | ||
13925 | ||
13926 | ||
13927 | ||
13928 | ||
13929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 1" >&5 | |
13930 | $as_echo_n "checking for __atomic_fetch_add for size 1... " >&6; } | |
22e05272 | 13931 | if ${libat_cv_have_at_fadd_1+:} false; then : |
48310492 RH |
13932 | $as_echo_n "(cached) " >&6 |
13933 | else | |
13934 | ||
13935 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13936 | /* end confdefs.h. */ | |
13937 | ||
13938 | int | |
13939 | main () | |
13940 | { | |
13941 | typedef int T __attribute__((mode(QI))); T *x, y; | |
13942 | asm("" : "=g"(x), "=g"(y)); | |
13943 | __atomic_fetch_add (x, y, 0); | |
13944 | __atomic_add_fetch (x, y, 0); | |
13945 | ; | |
13946 | return 0; | |
13947 | } | |
13948 | _ACEOF | |
13949 | if test x$atomic_builtins_link_tests = xyes; then | |
13950 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
13951 | (eval $ac_link) 2>&5 | |
13952 | ac_status=$? | |
13953 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13954 | test $ac_status = 0; }; then | |
13955 | eval libat_cv_have_at_fadd_1=yes | |
13956 | else | |
13957 | eval libat_cv_have_at_fadd_1=no | |
13958 | fi | |
13959 | else | |
13960 | old_CFLAGS="$CFLAGS" | |
13961 | # Compile unoptimized. | |
aaea76b3 | 13962 | CFLAGS="$CFLAGS -O0 -S" |
48310492 RH |
13963 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
13964 | (eval $ac_compile) 2>&5 | |
13965 | ac_status=$? | |
13966 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13967 | test $ac_status = 0; }; then | |
13968 | if grep __atomic_ conftest.s >/dev/null 2>&1 ; then | |
13969 | eval libat_cv_have_at_fadd_1=no | |
13970 | else | |
13971 | eval libat_cv_have_at_fadd_1=yes | |
13972 | fi | |
0fe5522f RH |
13973 | else |
13974 | eval libat_cv_have_at_fadd_1=no | |
48310492 RH |
13975 | fi |
13976 | CFLAGS="$old_CFLAGS" | |
13977 | fi | |
13978 | rm -f conftest* | |
13979 | ||
13980 | fi | |
13981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_1" >&5 | |
13982 | $as_echo "$libat_cv_have_at_fadd_1" >&6; } | |
13983 | ||
13984 | ||
13985 | yesno=`echo $libat_cv_have_at_fadd_1 | tr 'yesno' '1 0 '` | |
13986 | ||
13987 | cat >>confdefs.h <<_ACEOF | |
13988 | #define HAVE_ATOMIC_FETCH_ADD_1 $yesno | |
13989 | _ACEOF | |
13990 | ||
13991 | ||
13992 | ||
13993 | ||
13994 | ||
13995 | ||
13996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 2" >&5 | |
13997 | $as_echo_n "checking for __atomic_fetch_add for size 2... " >&6; } | |
22e05272 | 13998 | if ${libat_cv_have_at_fadd_2+:} false; then : |
48310492 RH |
13999 | $as_echo_n "(cached) " >&6 |
14000 | else | |
14001 | ||
14002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14003 | /* end confdefs.h. */ | |
14004 | ||
14005 | int | |
14006 | main () | |
14007 | { | |
14008 | typedef int T __attribute__((mode(HI))); T *x, y; | |
14009 | asm("" : "=g"(x), "=g"(y)); | |
14010 | __atomic_fetch_add (x, y, 0); | |
14011 | __atomic_add_fetch (x, y, 0); | |
14012 | ; | |
14013 | return 0; | |
14014 | } | |
14015 | _ACEOF | |
14016 | if test x$atomic_builtins_link_tests = xyes; then | |
14017 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
14018 | (eval $ac_link) 2>&5 | |
14019 | ac_status=$? | |
14020 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14021 | test $ac_status = 0; }; then | |
14022 | eval libat_cv_have_at_fadd_2=yes | |
14023 | else | |
14024 | eval libat_cv_have_at_fadd_2=no | |
14025 | fi | |
14026 | else | |
14027 | old_CFLAGS="$CFLAGS" | |
14028 | # Compile unoptimized. | |
aaea76b3 | 14029 | CFLAGS="$CFLAGS -O0 -S" |
48310492 RH |
14030 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
14031 | (eval $ac_compile) 2>&5 | |
14032 | ac_status=$? | |
14033 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14034 | test $ac_status = 0; }; then | |
14035 | if grep __atomic_ conftest.s >/dev/null 2>&1 ; then | |
14036 | eval libat_cv_have_at_fadd_2=no | |
14037 | else | |
14038 | eval libat_cv_have_at_fadd_2=yes | |
14039 | fi | |
0fe5522f RH |
14040 | else |
14041 | eval libat_cv_have_at_fadd_2=no | |
48310492 RH |
14042 | fi |
14043 | CFLAGS="$old_CFLAGS" | |
14044 | fi | |
14045 | rm -f conftest* | |
14046 | ||
14047 | fi | |
14048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_2" >&5 | |
14049 | $as_echo "$libat_cv_have_at_fadd_2" >&6; } | |
14050 | ||
14051 | ||
14052 | yesno=`echo $libat_cv_have_at_fadd_2 | tr 'yesno' '1 0 '` | |
14053 | ||
14054 | cat >>confdefs.h <<_ACEOF | |
14055 | #define HAVE_ATOMIC_FETCH_ADD_2 $yesno | |
14056 | _ACEOF | |
14057 | ||
14058 | ||
14059 | ||
14060 | ||
14061 | ||
14062 | ||
14063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 4" >&5 | |
14064 | $as_echo_n "checking for __atomic_fetch_add for size 4... " >&6; } | |
22e05272 | 14065 | if ${libat_cv_have_at_fadd_4+:} false; then : |
48310492 RH |
14066 | $as_echo_n "(cached) " >&6 |
14067 | else | |
14068 | ||
14069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14070 | /* end confdefs.h. */ | |
14071 | ||
14072 | int | |
14073 | main () | |
14074 | { | |
14075 | typedef int T __attribute__((mode(SI))); T *x, y; | |
14076 | asm("" : "=g"(x), "=g"(y)); | |
14077 | __atomic_fetch_add (x, y, 0); | |
14078 | __atomic_add_fetch (x, y, 0); | |
14079 | ; | |
14080 | return 0; | |
14081 | } | |
14082 | _ACEOF | |
14083 | if test x$atomic_builtins_link_tests = xyes; then | |
14084 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
14085 | (eval $ac_link) 2>&5 | |
14086 | ac_status=$? | |
14087 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14088 | test $ac_status = 0; }; then | |
14089 | eval libat_cv_have_at_fadd_4=yes | |
14090 | else | |
14091 | eval libat_cv_have_at_fadd_4=no | |
14092 | fi | |
14093 | else | |
14094 | old_CFLAGS="$CFLAGS" | |
14095 | # Compile unoptimized. | |
aaea76b3 | 14096 | CFLAGS="$CFLAGS -O0 -S" |
48310492 RH |
14097 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
14098 | (eval $ac_compile) 2>&5 | |
14099 | ac_status=$? | |
14100 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14101 | test $ac_status = 0; }; then | |
14102 | if grep __atomic_ conftest.s >/dev/null 2>&1 ; then | |
14103 | eval libat_cv_have_at_fadd_4=no | |
14104 | else | |
14105 | eval libat_cv_have_at_fadd_4=yes | |
14106 | fi | |
0fe5522f RH |
14107 | else |
14108 | eval libat_cv_have_at_fadd_4=no | |
48310492 RH |
14109 | fi |
14110 | CFLAGS="$old_CFLAGS" | |
14111 | fi | |
14112 | rm -f conftest* | |
14113 | ||
14114 | fi | |
14115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_4" >&5 | |
14116 | $as_echo "$libat_cv_have_at_fadd_4" >&6; } | |
14117 | ||
14118 | ||
14119 | yesno=`echo $libat_cv_have_at_fadd_4 | tr 'yesno' '1 0 '` | |
14120 | ||
14121 | cat >>confdefs.h <<_ACEOF | |
14122 | #define HAVE_ATOMIC_FETCH_ADD_4 $yesno | |
14123 | _ACEOF | |
14124 | ||
14125 | ||
14126 | ||
14127 | ||
14128 | ||
14129 | ||
14130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 8" >&5 | |
14131 | $as_echo_n "checking for __atomic_fetch_add for size 8... " >&6; } | |
22e05272 | 14132 | if ${libat_cv_have_at_fadd_8+:} false; then : |
48310492 RH |
14133 | $as_echo_n "(cached) " >&6 |
14134 | else | |
14135 | ||
14136 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14137 | /* end confdefs.h. */ | |
14138 | ||
14139 | int | |
14140 | main () | |
14141 | { | |
14142 | typedef int T __attribute__((mode(DI))); T *x, y; | |
14143 | asm("" : "=g"(x), "=g"(y)); | |
14144 | __atomic_fetch_add (x, y, 0); | |
14145 | __atomic_add_fetch (x, y, 0); | |
14146 | ; | |
14147 | return 0; | |
14148 | } | |
14149 | _ACEOF | |
14150 | if test x$atomic_builtins_link_tests = xyes; then | |
14151 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
14152 | (eval $ac_link) 2>&5 | |
14153 | ac_status=$? | |
14154 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14155 | test $ac_status = 0; }; then | |
14156 | eval libat_cv_have_at_fadd_8=yes | |
14157 | else | |
14158 | eval libat_cv_have_at_fadd_8=no | |
14159 | fi | |
14160 | else | |
14161 | old_CFLAGS="$CFLAGS" | |
14162 | # Compile unoptimized. | |
aaea76b3 | 14163 | CFLAGS="$CFLAGS -O0 -S" |
48310492 RH |
14164 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
14165 | (eval $ac_compile) 2>&5 | |
14166 | ac_status=$? | |
14167 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14168 | test $ac_status = 0; }; then | |
14169 | if grep __atomic_ conftest.s >/dev/null 2>&1 ; then | |
14170 | eval libat_cv_have_at_fadd_8=no | |
14171 | else | |
14172 | eval libat_cv_have_at_fadd_8=yes | |
14173 | fi | |
0fe5522f RH |
14174 | else |
14175 | eval libat_cv_have_at_fadd_8=no | |
48310492 RH |
14176 | fi |
14177 | CFLAGS="$old_CFLAGS" | |
14178 | fi | |
14179 | rm -f conftest* | |
14180 | ||
14181 | fi | |
14182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_8" >&5 | |
14183 | $as_echo "$libat_cv_have_at_fadd_8" >&6; } | |
14184 | ||
14185 | ||
14186 | yesno=`echo $libat_cv_have_at_fadd_8 | tr 'yesno' '1 0 '` | |
14187 | ||
14188 | cat >>confdefs.h <<_ACEOF | |
14189 | #define HAVE_ATOMIC_FETCH_ADD_8 $yesno | |
14190 | _ACEOF | |
14191 | ||
14192 | ||
14193 | ||
14194 | ||
14195 | ||
14196 | ||
14197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 16" >&5 | |
14198 | $as_echo_n "checking for __atomic_fetch_add for size 16... " >&6; } | |
22e05272 | 14199 | if ${libat_cv_have_at_fadd_16+:} false; then : |
48310492 RH |
14200 | $as_echo_n "(cached) " >&6 |
14201 | else | |
14202 | ||
14203 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14204 | /* end confdefs.h. */ | |
14205 | ||
14206 | int | |
14207 | main () | |
14208 | { | |
14209 | typedef int T __attribute__((mode(TI))); T *x, y; | |
14210 | asm("" : "=g"(x), "=g"(y)); | |
14211 | __atomic_fetch_add (x, y, 0); | |
14212 | __atomic_add_fetch (x, y, 0); | |
14213 | ; | |
14214 | return 0; | |
14215 | } | |
14216 | _ACEOF | |
14217 | if test x$atomic_builtins_link_tests = xyes; then | |
14218 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
14219 | (eval $ac_link) 2>&5 | |
14220 | ac_status=$? | |
14221 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14222 | test $ac_status = 0; }; then | |
14223 | eval libat_cv_have_at_fadd_16=yes | |
14224 | else | |
14225 | eval libat_cv_have_at_fadd_16=no | |
14226 | fi | |
14227 | else | |
14228 | old_CFLAGS="$CFLAGS" | |
14229 | # Compile unoptimized. | |
aaea76b3 | 14230 | CFLAGS="$CFLAGS -O0 -S" |
48310492 RH |
14231 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
14232 | (eval $ac_compile) 2>&5 | |
14233 | ac_status=$? | |
14234 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14235 | test $ac_status = 0; }; then | |
14236 | if grep __atomic_ conftest.s >/dev/null 2>&1 ; then | |
14237 | eval libat_cv_have_at_fadd_16=no | |
14238 | else | |
14239 | eval libat_cv_have_at_fadd_16=yes | |
14240 | fi | |
0fe5522f RH |
14241 | else |
14242 | eval libat_cv_have_at_fadd_16=no | |
48310492 RH |
14243 | fi |
14244 | CFLAGS="$old_CFLAGS" | |
14245 | fi | |
14246 | rm -f conftest* | |
14247 | ||
14248 | fi | |
14249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_16" >&5 | |
14250 | $as_echo "$libat_cv_have_at_fadd_16" >&6; } | |
14251 | ||
14252 | ||
14253 | yesno=`echo $libat_cv_have_at_fadd_16 | tr 'yesno' '1 0 '` | |
14254 | ||
14255 | cat >>confdefs.h <<_ACEOF | |
14256 | #define HAVE_ATOMIC_FETCH_ADD_16 $yesno | |
14257 | _ACEOF | |
14258 | ||
14259 | ||
14260 | ||
14261 | ||
14262 | ||
14263 | ||
14264 | ||
14265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 1" >&5 | |
14266 | $as_echo_n "checking for __atomic_fetch_op for size 1... " >&6; } | |
22e05272 | 14267 | if ${libat_cv_have_at_fop_1+:} false; then : |
48310492 RH |
14268 | $as_echo_n "(cached) " >&6 |
14269 | else | |
14270 | ||
14271 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14272 | /* end confdefs.h. */ | |
14273 | ||
14274 | int | |
14275 | main () | |
14276 | { | |
14277 | typedef int T __attribute__((mode(QI))); T *x, y; | |
14278 | asm("" : "=g"(x), "=g"(y)); | |
14279 | __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0); | |
14280 | __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0); | |
14281 | __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0); | |
14282 | __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0); | |
14283 | __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0); | |
14284 | __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0); | |
14285 | ; | |
14286 | return 0; | |
14287 | } | |
14288 | _ACEOF | |
14289 | if test x$atomic_builtins_link_tests = xyes; then | |
14290 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
14291 | (eval $ac_link) 2>&5 | |
14292 | ac_status=$? | |
14293 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14294 | test $ac_status = 0; }; then | |
14295 | eval libat_cv_have_at_fop_1=yes | |
14296 | else | |
14297 | eval libat_cv_have_at_fop_1=no | |
14298 | fi | |
14299 | else | |
14300 | old_CFLAGS="$CFLAGS" | |
14301 | # Compile unoptimized. | |
aaea76b3 | 14302 | CFLAGS="$CFLAGS -O0 -S" |
48310492 RH |
14303 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
14304 | (eval $ac_compile) 2>&5 | |
14305 | ac_status=$? | |
14306 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14307 | test $ac_status = 0; }; then | |
14308 | if grep __atomic_ conftest.s >/dev/null 2>&1 ; then | |
14309 | eval libat_cv_have_at_fop_1=no | |
14310 | else | |
14311 | eval libat_cv_have_at_fop_1=yes | |
14312 | fi | |
0fe5522f RH |
14313 | else |
14314 | eval libat_cv_have_at_fop_1=no | |
48310492 RH |
14315 | fi |
14316 | CFLAGS="$old_CFLAGS" | |
14317 | fi | |
14318 | rm -f conftest* | |
14319 | ||
14320 | fi | |
14321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_1" >&5 | |
14322 | $as_echo "$libat_cv_have_at_fop_1" >&6; } | |
14323 | ||
14324 | ||
14325 | yesno=`echo $libat_cv_have_at_fop_1 | tr 'yesno' '1 0 '` | |
14326 | ||
14327 | cat >>confdefs.h <<_ACEOF | |
14328 | #define HAVE_ATOMIC_FETCH_OP_1 $yesno | |
14329 | _ACEOF | |
14330 | ||
14331 | ||
14332 | ||
14333 | ||
14334 | ||
14335 | ||
14336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 2" >&5 | |
14337 | $as_echo_n "checking for __atomic_fetch_op for size 2... " >&6; } | |
22e05272 | 14338 | if ${libat_cv_have_at_fop_2+:} false; then : |
48310492 RH |
14339 | $as_echo_n "(cached) " >&6 |
14340 | else | |
14341 | ||
14342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14343 | /* end confdefs.h. */ | |
14344 | ||
14345 | int | |
14346 | main () | |
14347 | { | |
14348 | typedef int T __attribute__((mode(HI))); T *x, y; | |
14349 | asm("" : "=g"(x), "=g"(y)); | |
14350 | __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0); | |
14351 | __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0); | |
14352 | __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0); | |
14353 | __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0); | |
14354 | __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0); | |
14355 | __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0); | |
14356 | ; | |
14357 | return 0; | |
14358 | } | |
14359 | _ACEOF | |
14360 | if test x$atomic_builtins_link_tests = xyes; then | |
14361 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
14362 | (eval $ac_link) 2>&5 | |
14363 | ac_status=$? | |
14364 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14365 | test $ac_status = 0; }; then | |
14366 | eval libat_cv_have_at_fop_2=yes | |
14367 | else | |
14368 | eval libat_cv_have_at_fop_2=no | |
14369 | fi | |
14370 | else | |
14371 | old_CFLAGS="$CFLAGS" | |
14372 | # Compile unoptimized. | |
aaea76b3 | 14373 | CFLAGS="$CFLAGS -O0 -S" |
48310492 RH |
14374 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
14375 | (eval $ac_compile) 2>&5 | |
14376 | ac_status=$? | |
14377 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14378 | test $ac_status = 0; }; then | |
14379 | if grep __atomic_ conftest.s >/dev/null 2>&1 ; then | |
14380 | eval libat_cv_have_at_fop_2=no | |
14381 | else | |
14382 | eval libat_cv_have_at_fop_2=yes | |
14383 | fi | |
0fe5522f RH |
14384 | else |
14385 | eval libat_cv_have_at_fop_2=no | |
48310492 RH |
14386 | fi |
14387 | CFLAGS="$old_CFLAGS" | |
14388 | fi | |
14389 | rm -f conftest* | |
14390 | ||
14391 | fi | |
14392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_2" >&5 | |
14393 | $as_echo "$libat_cv_have_at_fop_2" >&6; } | |
14394 | ||
14395 | ||
14396 | yesno=`echo $libat_cv_have_at_fop_2 | tr 'yesno' '1 0 '` | |
14397 | ||
14398 | cat >>confdefs.h <<_ACEOF | |
14399 | #define HAVE_ATOMIC_FETCH_OP_2 $yesno | |
14400 | _ACEOF | |
14401 | ||
14402 | ||
14403 | ||
14404 | ||
14405 | ||
14406 | ||
14407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 4" >&5 | |
14408 | $as_echo_n "checking for __atomic_fetch_op for size 4... " >&6; } | |
22e05272 | 14409 | if ${libat_cv_have_at_fop_4+:} false; then : |
48310492 RH |
14410 | $as_echo_n "(cached) " >&6 |
14411 | else | |
14412 | ||
14413 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14414 | /* end confdefs.h. */ | |
14415 | ||
14416 | int | |
14417 | main () | |
14418 | { | |
14419 | typedef int T __attribute__((mode(SI))); T *x, y; | |
14420 | asm("" : "=g"(x), "=g"(y)); | |
14421 | __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0); | |
14422 | __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0); | |
14423 | __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0); | |
14424 | __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0); | |
14425 | __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0); | |
14426 | __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0); | |
14427 | ; | |
14428 | return 0; | |
14429 | } | |
14430 | _ACEOF | |
14431 | if test x$atomic_builtins_link_tests = xyes; then | |
14432 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
14433 | (eval $ac_link) 2>&5 | |
14434 | ac_status=$? | |
14435 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14436 | test $ac_status = 0; }; then | |
14437 | eval libat_cv_have_at_fop_4=yes | |
14438 | else | |
14439 | eval libat_cv_have_at_fop_4=no | |
14440 | fi | |
14441 | else | |
14442 | old_CFLAGS="$CFLAGS" | |
14443 | # Compile unoptimized. | |
aaea76b3 | 14444 | CFLAGS="$CFLAGS -O0 -S" |
48310492 RH |
14445 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
14446 | (eval $ac_compile) 2>&5 | |
14447 | ac_status=$? | |
14448 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14449 | test $ac_status = 0; }; then | |
14450 | if grep __atomic_ conftest.s >/dev/null 2>&1 ; then | |
14451 | eval libat_cv_have_at_fop_4=no | |
14452 | else | |
14453 | eval libat_cv_have_at_fop_4=yes | |
14454 | fi | |
0fe5522f RH |
14455 | else |
14456 | eval libat_cv_have_at_fop_4=no | |
48310492 RH |
14457 | fi |
14458 | CFLAGS="$old_CFLAGS" | |
14459 | fi | |
14460 | rm -f conftest* | |
14461 | ||
14462 | fi | |
14463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_4" >&5 | |
14464 | $as_echo "$libat_cv_have_at_fop_4" >&6; } | |
14465 | ||
14466 | ||
14467 | yesno=`echo $libat_cv_have_at_fop_4 | tr 'yesno' '1 0 '` | |
14468 | ||
14469 | cat >>confdefs.h <<_ACEOF | |
14470 | #define HAVE_ATOMIC_FETCH_OP_4 $yesno | |
14471 | _ACEOF | |
14472 | ||
14473 | ||
14474 | ||
14475 | ||
14476 | ||
14477 | ||
14478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 8" >&5 | |
14479 | $as_echo_n "checking for __atomic_fetch_op for size 8... " >&6; } | |
22e05272 | 14480 | if ${libat_cv_have_at_fop_8+:} false; then : |
48310492 RH |
14481 | $as_echo_n "(cached) " >&6 |
14482 | else | |
14483 | ||
14484 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14485 | /* end confdefs.h. */ | |
14486 | ||
14487 | int | |
14488 | main () | |
14489 | { | |
14490 | typedef int T __attribute__((mode(DI))); T *x, y; | |
14491 | asm("" : "=g"(x), "=g"(y)); | |
14492 | __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0); | |
14493 | __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0); | |
14494 | __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0); | |
14495 | __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0); | |
14496 | __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0); | |
14497 | __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0); | |
14498 | ; | |
14499 | return 0; | |
14500 | } | |
14501 | _ACEOF | |
14502 | if test x$atomic_builtins_link_tests = xyes; then | |
14503 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
14504 | (eval $ac_link) 2>&5 | |
14505 | ac_status=$? | |
14506 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14507 | test $ac_status = 0; }; then | |
14508 | eval libat_cv_have_at_fop_8=yes | |
14509 | else | |
14510 | eval libat_cv_have_at_fop_8=no | |
14511 | fi | |
14512 | else | |
14513 | old_CFLAGS="$CFLAGS" | |
14514 | # Compile unoptimized. | |
aaea76b3 | 14515 | CFLAGS="$CFLAGS -O0 -S" |
48310492 RH |
14516 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
14517 | (eval $ac_compile) 2>&5 | |
14518 | ac_status=$? | |
14519 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14520 | test $ac_status = 0; }; then | |
14521 | if grep __atomic_ conftest.s >/dev/null 2>&1 ; then | |
14522 | eval libat_cv_have_at_fop_8=no | |
14523 | else | |
14524 | eval libat_cv_have_at_fop_8=yes | |
14525 | fi | |
0fe5522f RH |
14526 | else |
14527 | eval libat_cv_have_at_fop_8=no | |
48310492 RH |
14528 | fi |
14529 | CFLAGS="$old_CFLAGS" | |
14530 | fi | |
14531 | rm -f conftest* | |
14532 | ||
14533 | fi | |
14534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_8" >&5 | |
14535 | $as_echo "$libat_cv_have_at_fop_8" >&6; } | |
14536 | ||
14537 | ||
14538 | yesno=`echo $libat_cv_have_at_fop_8 | tr 'yesno' '1 0 '` | |
14539 | ||
14540 | cat >>confdefs.h <<_ACEOF | |
14541 | #define HAVE_ATOMIC_FETCH_OP_8 $yesno | |
14542 | _ACEOF | |
14543 | ||
14544 | ||
14545 | ||
14546 | ||
14547 | ||
14548 | ||
14549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 16" >&5 | |
14550 | $as_echo_n "checking for __atomic_fetch_op for size 16... " >&6; } | |
22e05272 | 14551 | if ${libat_cv_have_at_fop_16+:} false; then : |
48310492 RH |
14552 | $as_echo_n "(cached) " >&6 |
14553 | else | |
14554 | ||
14555 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14556 | /* end confdefs.h. */ | |
14557 | ||
14558 | int | |
14559 | main () | |
14560 | { | |
14561 | typedef int T __attribute__((mode(TI))); T *x, y; | |
14562 | asm("" : "=g"(x), "=g"(y)); | |
14563 | __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0); | |
14564 | __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0); | |
14565 | __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0); | |
14566 | __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0); | |
14567 | __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0); | |
14568 | __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0); | |
14569 | ; | |
14570 | return 0; | |
14571 | } | |
14572 | _ACEOF | |
14573 | if test x$atomic_builtins_link_tests = xyes; then | |
14574 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
14575 | (eval $ac_link) 2>&5 | |
14576 | ac_status=$? | |
14577 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14578 | test $ac_status = 0; }; then | |
14579 | eval libat_cv_have_at_fop_16=yes | |
14580 | else | |
14581 | eval libat_cv_have_at_fop_16=no | |
14582 | fi | |
14583 | else | |
14584 | old_CFLAGS="$CFLAGS" | |
14585 | # Compile unoptimized. | |
aaea76b3 | 14586 | CFLAGS="$CFLAGS -O0 -S" |
48310492 RH |
14587 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
14588 | (eval $ac_compile) 2>&5 | |
14589 | ac_status=$? | |
14590 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14591 | test $ac_status = 0; }; then | |
14592 | if grep __atomic_ conftest.s >/dev/null 2>&1 ; then | |
14593 | eval libat_cv_have_at_fop_16=no | |
14594 | else | |
14595 | eval libat_cv_have_at_fop_16=yes | |
14596 | fi | |
0fe5522f RH |
14597 | else |
14598 | eval libat_cv_have_at_fop_16=no | |
48310492 RH |
14599 | fi |
14600 | CFLAGS="$old_CFLAGS" | |
14601 | fi | |
14602 | rm -f conftest* | |
14603 | ||
14604 | fi | |
14605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_16" >&5 | |
14606 | $as_echo "$libat_cv_have_at_fop_16" >&6; } | |
14607 | ||
14608 | ||
14609 | yesno=`echo $libat_cv_have_at_fop_16 | tr 'yesno' '1 0 '` | |
14610 | ||
14611 | cat >>confdefs.h <<_ACEOF | |
14612 | #define HAVE_ATOMIC_FETCH_OP_16 $yesno | |
14613 | _ACEOF | |
14614 | ||
14615 | ||
14616 | ||
14617 | ||
14618 | ||
14619 | ||
14620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | |
14621 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
22e05272 | 14622 | if ${ac_cv_c_bigendian+:} false; then : |
48310492 RH |
14623 | $as_echo_n "(cached) " >&6 |
14624 | else | |
14625 | ac_cv_c_bigendian=unknown | |
14626 | # See if we're dealing with a universal compiler. | |
14627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14628 | /* end confdefs.h. */ | |
14629 | #ifndef __APPLE_CC__ | |
14630 | not a universal capable compiler | |
14631 | #endif | |
14632 | typedef int dummy; | |
14633 | ||
14634 | _ACEOF | |
14635 | if ac_fn_c_try_compile "$LINENO"; then : | |
14636 | ||
14637 | # Check for potential -arch flags. It is not universal unless | |
14638 | # there are at least two -arch flags with different values. | |
14639 | ac_arch= | |
14640 | ac_prev= | |
14641 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
14642 | if test -n "$ac_prev"; then | |
14643 | case $ac_word in | |
14644 | i?86 | x86_64 | ppc | ppc64) | |
14645 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
14646 | ac_arch=$ac_word | |
14647 | else | |
14648 | ac_cv_c_bigendian=universal | |
14649 | break | |
14650 | fi | |
14651 | ;; | |
14652 | esac | |
14653 | ac_prev= | |
14654 | elif test "x$ac_word" = "x-arch"; then | |
14655 | ac_prev=arch | |
14656 | fi | |
14657 | done | |
14658 | fi | |
14659 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14660 | if test $ac_cv_c_bigendian = unknown; then | |
14661 | # See if sys/param.h defines the BYTE_ORDER macro. | |
14662 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14663 | /* end confdefs.h. */ | |
14664 | #include <sys/types.h> | |
14665 | #include <sys/param.h> | |
14666 | ||
14667 | int | |
14668 | main () | |
14669 | { | |
14670 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
14671 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
14672 | && LITTLE_ENDIAN) | |
14673 | bogus endian macros | |
14674 | #endif | |
14675 | ||
14676 | ; | |
14677 | return 0; | |
14678 | } | |
14679 | _ACEOF | |
14680 | if ac_fn_c_try_compile "$LINENO"; then : | |
14681 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
14682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14683 | /* end confdefs.h. */ | |
14684 | #include <sys/types.h> | |
14685 | #include <sys/param.h> | |
14686 | ||
14687 | int | |
14688 | main () | |
14689 | { | |
14690 | #if BYTE_ORDER != BIG_ENDIAN | |
14691 | not big endian | |
14692 | #endif | |
14693 | ||
14694 | ; | |
14695 | return 0; | |
14696 | } | |
14697 | _ACEOF | |
14698 | if ac_fn_c_try_compile "$LINENO"; then : | |
14699 | ac_cv_c_bigendian=yes | |
14700 | else | |
14701 | ac_cv_c_bigendian=no | |
14702 | fi | |
14703 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14704 | fi | |
14705 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14706 | fi | |
14707 | if test $ac_cv_c_bigendian = unknown; then | |
14708 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
14709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14710 | /* end confdefs.h. */ | |
14711 | #include <limits.h> | |
14712 | ||
14713 | int | |
14714 | main () | |
14715 | { | |
14716 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
14717 | bogus endian macros | |
14718 | #endif | |
14719 | ||
14720 | ; | |
14721 | return 0; | |
14722 | } | |
14723 | _ACEOF | |
14724 | if ac_fn_c_try_compile "$LINENO"; then : | |
14725 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
14726 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14727 | /* end confdefs.h. */ | |
14728 | #include <limits.h> | |
14729 | ||
14730 | int | |
14731 | main () | |
14732 | { | |
14733 | #ifndef _BIG_ENDIAN | |
14734 | not big endian | |
14735 | #endif | |
14736 | ||
14737 | ; | |
14738 | return 0; | |
14739 | } | |
14740 | _ACEOF | |
14741 | if ac_fn_c_try_compile "$LINENO"; then : | |
14742 | ac_cv_c_bigendian=yes | |
14743 | else | |
14744 | ac_cv_c_bigendian=no | |
14745 | fi | |
14746 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14747 | fi | |
14748 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14749 | fi | |
14750 | if test $ac_cv_c_bigendian = unknown; then | |
14751 | # Compile a test program. | |
14752 | if test "$cross_compiling" = yes; then : | |
14753 | # Try to guess by grepping values from an object file. | |
14754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14755 | /* end confdefs.h. */ | |
14756 | short int ascii_mm[] = | |
14757 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
14758 | short int ascii_ii[] = | |
14759 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
14760 | int use_ascii (int i) { | |
14761 | return ascii_mm[i] + ascii_ii[i]; | |
14762 | } | |
14763 | short int ebcdic_ii[] = | |
14764 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
14765 | short int ebcdic_mm[] = | |
14766 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
14767 | int use_ebcdic (int i) { | |
14768 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
14769 | } | |
14770 | extern int foo; | |
14771 | ||
14772 | int | |
14773 | main () | |
14774 | { | |
14775 | return use_ascii (foo) == use_ebcdic (foo); | |
14776 | ; | |
14777 | return 0; | |
14778 | } | |
14779 | _ACEOF | |
14780 | if ac_fn_c_try_compile "$LINENO"; then : | |
14781 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
14782 | ac_cv_c_bigendian=yes | |
14783 | fi | |
14784 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
14785 | if test "$ac_cv_c_bigendian" = unknown; then | |
14786 | ac_cv_c_bigendian=no | |
14787 | else | |
14788 | # finding both strings is unlikely to happen, but who knows? | |
14789 | ac_cv_c_bigendian=unknown | |
14790 | fi | |
14791 | fi | |
14792 | fi | |
14793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14794 | else | |
14795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14796 | /* end confdefs.h. */ | |
14797 | $ac_includes_default | |
14798 | int | |
14799 | main () | |
14800 | { | |
14801 | ||
14802 | /* Are we little or big endian? From Harbison&Steele. */ | |
14803 | union | |
14804 | { | |
14805 | long int l; | |
14806 | char c[sizeof (long int)]; | |
14807 | } u; | |
14808 | u.l = 1; | |
14809 | return u.c[sizeof (long int) - 1] == 1; | |
14810 | ||
14811 | ; | |
14812 | return 0; | |
14813 | } | |
14814 | _ACEOF | |
14815 | if ac_fn_c_try_run "$LINENO"; then : | |
14816 | ac_cv_c_bigendian=no | |
14817 | else | |
14818 | ac_cv_c_bigendian=yes | |
14819 | fi | |
14820 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14821 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14822 | fi | |
14823 | ||
14824 | fi | |
14825 | fi | |
14826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
14827 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
14828 | case $ac_cv_c_bigendian in #( | |
14829 | yes) | |
14830 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
14831 | ;; #( | |
14832 | no) | |
14833 | ;; #( | |
14834 | universal) | |
14835 | ||
14836 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
14837 | ||
14838 | ;; #( | |
14839 | *) | |
22e05272 | 14840 | as_fn_error $? "unknown endianness |
48310492 RH |
14841 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
14842 | esac | |
14843 | ||
14844 | # I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE. | |
14845 | ||
14846 | ||
14847 | ||
14848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the word size" >&5 | |
14849 | $as_echo_n "checking for the word size... " >&6; } | |
22e05272 | 14850 | if ${libat_cv_wordsize+:} false; then : |
48310492 RH |
14851 | $as_echo_n "(cached) " >&6 |
14852 | else | |
14853 | if ac_fn_c_compute_int "$LINENO" "sizeof(word)" "libat_cv_wordsize" "typedef int word __attribute__((mode(word)));"; then : | |
14854 | ||
14855 | else | |
22e05272 | 14856 | as_fn_error $? "Could not determine word size." "$LINENO" 5 |
48310492 RH |
14857 | fi |
14858 | ||
14859 | fi | |
14860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_wordsize" >&5 | |
14861 | $as_echo "$libat_cv_wordsize" >&6; } | |
14862 | ||
14863 | cat >>confdefs.h <<_ACEOF | |
14864 | #define WORDSIZE $libat_cv_wordsize | |
14865 | _ACEOF | |
14866 | ||
14867 | ||
14868 | ||
14869 | # Check to see if -pthread or -lpthread is needed. Prefer the former. | |
14870 | # In case the pthread.h system header is not found, this test will fail. | |
14871 | case " $config_path " in | |
14872 | *" posix "*) | |
14873 | XPCFLAGS="" | |
14874 | CFLAGS="$CFLAGS -pthread" | |
14875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14876 | /* end confdefs.h. */ | |
14877 | #include <pthread.h> | |
14878 | void *g(void *d) { return NULL; } | |
14879 | int | |
14880 | main () | |
14881 | { | |
14882 | pthread_t t; pthread_create(&t,NULL,g,NULL); | |
14883 | ; | |
14884 | return 0; | |
14885 | } | |
14886 | _ACEOF | |
14887 | if ac_fn_c_try_link "$LINENO"; then : | |
14888 | XPCFLAGS=" -pthread" | |
14889 | else | |
14890 | CFLAGS="$save_CFLAGS $XCFLAGS" LIBS="-lpthread $LIBS" | |
14891 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14892 | /* end confdefs.h. */ | |
14893 | #include <pthread.h> | |
14894 | void *g(void *d) { return NULL; } | |
14895 | int | |
14896 | main () | |
14897 | { | |
14898 | pthread_t t; pthread_create(&t,NULL,g,NULL); | |
14899 | ; | |
14900 | return 0; | |
14901 | } | |
14902 | _ACEOF | |
14903 | if ac_fn_c_try_link "$LINENO"; then : | |
14904 | ||
14905 | else | |
22e05272 | 14906 | as_fn_error $? "Pthreads are required to build libatomic" "$LINENO" 5 |
48310492 RH |
14907 | fi |
14908 | rm -f core conftest.err conftest.$ac_objext \ | |
14909 | conftest$ac_exeext conftest.$ac_ext | |
14910 | fi | |
14911 | rm -f core conftest.err conftest.$ac_objext \ | |
14912 | conftest$ac_exeext conftest.$ac_ext | |
e9885be5 | 14913 | CFLAGS="$save_CFLAGS $XPCFLAGS" |
48310492 RH |
14914 | ;; |
14915 | esac | |
14916 | ||
14917 | # See what sort of export controls are available. | |
14918 | ||
14919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5 | |
14920 | $as_echo_n "checking whether the target supports hidden visibility... " >&6; } | |
22e05272 | 14921 | if ${libat_cv_have_attribute_visibility+:} false; then : |
48310492 RH |
14922 | $as_echo_n "(cached) " >&6 |
14923 | else | |
14924 | ||
14925 | save_CFLAGS="$CFLAGS" | |
14926 | CFLAGS="$CFLAGS -Werror" | |
14927 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14928 | /* end confdefs.h. */ | |
14929 | void __attribute__((visibility("hidden"))) foo(void) { } | |
14930 | int | |
14931 | main () | |
14932 | { | |
14933 | ||
14934 | ; | |
14935 | return 0; | |
14936 | } | |
14937 | _ACEOF | |
14938 | if ac_fn_c_try_compile "$LINENO"; then : | |
14939 | libat_cv_have_attribute_visibility=yes | |
14940 | else | |
14941 | libat_cv_have_attribute_visibility=no | |
14942 | fi | |
14943 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14944 | CFLAGS="$save_CFLAGS" | |
14945 | fi | |
14946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_visibility" >&5 | |
14947 | $as_echo "$libat_cv_have_attribute_visibility" >&6; } | |
14948 | if test $libat_cv_have_attribute_visibility = yes; then | |
14949 | ||
14950 | $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h | |
14951 | ||
14952 | fi | |
14953 | ||
14954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5 | |
14955 | $as_echo_n "checking whether the target supports dllexport... " >&6; } | |
22e05272 | 14956 | if ${libat_cv_have_attribute_dllexport+:} false; then : |
48310492 RH |
14957 | $as_echo_n "(cached) " >&6 |
14958 | else | |
14959 | ||
14960 | save_CFLAGS="$CFLAGS" | |
14961 | CFLAGS="$CFLAGS -Werror" | |
14962 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14963 | /* end confdefs.h. */ | |
14964 | void __attribute__((dllexport)) foo(void) { } | |
14965 | int | |
14966 | main () | |
14967 | { | |
14968 | ||
14969 | ; | |
14970 | return 0; | |
14971 | } | |
14972 | _ACEOF | |
14973 | if ac_fn_c_try_compile "$LINENO"; then : | |
14974 | libat_cv_have_attribute_dllexport=yes | |
14975 | else | |
14976 | libat_cv_have_attribute_dllexport=no | |
14977 | fi | |
14978 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14979 | CFLAGS="$save_CFLAGS" | |
14980 | fi | |
14981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_dllexport" >&5 | |
14982 | $as_echo "$libat_cv_have_attribute_dllexport" >&6; } | |
14983 | if test $libat_cv_have_attribute_dllexport = yes; then | |
14984 | ||
14985 | $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h | |
14986 | ||
14987 | fi | |
14988 | ||
14989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5 | |
14990 | $as_echo_n "checking whether the target supports symbol aliases... " >&6; } | |
22e05272 | 14991 | if ${libat_cv_have_attribute_alias+:} false; then : |
48310492 RH |
14992 | $as_echo_n "(cached) " >&6 |
14993 | else | |
14994 | ||
14995 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14996 | /* end confdefs.h. */ | |
14997 | ||
14998 | void foo(void) { } | |
14999 | extern void bar(void) __attribute__((alias("foo"))); | |
15000 | int | |
15001 | main () | |
15002 | { | |
15003 | bar(); | |
15004 | ; | |
15005 | return 0; | |
15006 | } | |
15007 | _ACEOF | |
15008 | if ac_fn_c_try_link "$LINENO"; then : | |
15009 | libat_cv_have_attribute_alias=yes | |
15010 | else | |
15011 | libat_cv_have_attribute_alias=no | |
15012 | fi | |
15013 | rm -f core conftest.err conftest.$ac_objext \ | |
15014 | conftest$ac_exeext conftest.$ac_ext | |
15015 | fi | |
15016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_alias" >&5 | |
15017 | $as_echo "$libat_cv_have_attribute_alias" >&6; } | |
15018 | if test $libat_cv_have_attribute_alias = yes; then | |
15019 | ||
15020 | $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h | |
15021 | ||
15022 | fi | |
15023 | if test x$try_ifunc = xyes; then | |
15024 | ||
40448151 TS |
15025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports the ifunc attribute" >&5 |
15026 | $as_echo_n "checking whether the target supports the ifunc attribute... " >&6; } | |
22e05272 | 15027 | if ${libat_cv_have_ifunc+:} false; then : |
48310492 RH |
15028 | $as_echo_n "(cached) " >&6 |
15029 | else | |
15030 | ||
15031 | save_CFLAGS="$CFLAGS" | |
15032 | CFLAGS="$CFLAGS -Werror" | |
15033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15034 | /* end confdefs.h. */ | |
15035 | ||
15036 | int foo_alt(void) { return 0; } | |
bc437a56 MS |
15037 | typedef int F (void); |
15038 | F *foo_sel(void) { return foo_alt; } | |
48310492 RH |
15039 | int foo(void) __attribute__((ifunc("foo_sel"))); |
15040 | int | |
15041 | main () | |
15042 | { | |
15043 | return foo(); | |
15044 | ; | |
15045 | return 0; | |
15046 | } | |
15047 | _ACEOF | |
15048 | if ac_fn_c_try_link "$LINENO"; then : | |
15049 | libat_cv_have_ifunc=yes | |
15050 | else | |
15051 | libat_cv_have_ifunc=no | |
15052 | fi | |
15053 | rm -f core conftest.err conftest.$ac_objext \ | |
15054 | conftest$ac_exeext conftest.$ac_ext | |
15055 | fi | |
15056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_ifunc" >&5 | |
15057 | $as_echo "$libat_cv_have_ifunc" >&6; } | |
15058 | ||
15059 | yesno=`echo $libat_cv_have_ifunc | tr 'yesno' '1 0 '` | |
15060 | ||
15061 | cat >>confdefs.h <<_ACEOF | |
15062 | #define HAVE_IFUNC $yesno | |
15063 | _ACEOF | |
15064 | ||
15065 | ||
15066 | ||
15067 | fi | |
15068 | ||
15069 | # Check linker support. | |
15070 | ||
15071 | ||
15072 | # Check whether --with-gnu-ld was given. | |
15073 | if test "${with_gnu_ld+set}" = set; then : | |
15074 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
15075 | else | |
15076 | with_gnu_ld=no | |
15077 | fi | |
15078 | ||
15079 | ac_prog=ld | |
15080 | if test "$GCC" = yes; then | |
15081 | # Check if gcc -print-prog-name=ld gives a path. | |
15082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
15083 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
15084 | case $host in | |
15085 | *-*-mingw*) | |
15086 | # gcc leaves a trailing carriage return which upsets mingw | |
15087 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
15088 | *) | |
15089 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
15090 | esac | |
15091 | case $ac_prog in | |
15092 | # Accept absolute paths. | |
15093 | [\\/]* | ?:[\\/]*) | |
15094 | re_direlt='/[^/][^/]*/\.\./' | |
15095 | # Canonicalize the pathname of ld | |
15096 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
15097 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
15098 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
15099 | done | |
15100 | test -z "$LD" && LD="$ac_prog" | |
15101 | ;; | |
15102 | "") | |
15103 | # If it fails, then pretend we aren't using GCC. | |
15104 | ac_prog=ld | |
15105 | ;; | |
15106 | *) | |
15107 | # If it is relative, then search for the first ld in PATH. | |
15108 | with_gnu_ld=unknown | |
15109 | ;; | |
15110 | esac | |
15111 | elif test "$with_gnu_ld" = yes; then | |
15112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
15113 | $as_echo_n "checking for GNU ld... " >&6; } | |
15114 | else | |
15115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
15116 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
15117 | fi | |
22e05272 | 15118 | if ${lt_cv_path_LD+:} false; then : |
48310492 RH |
15119 | $as_echo_n "(cached) " >&6 |
15120 | else | |
15121 | if test -z "$LD"; then | |
15122 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
15123 | for ac_dir in $PATH; do | |
15124 | IFS="$lt_save_ifs" | |
15125 | test -z "$ac_dir" && ac_dir=. | |
15126 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
15127 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
15128 | # Check to see if the program is GNU ld. I'd rather use --version, | |
15129 | # but apparently some variants of GNU ld only accept -v. | |
15130 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
15131 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
15132 | *GNU* | *'with BFD'*) | |
15133 | test "$with_gnu_ld" != no && break | |
15134 | ;; | |
15135 | *) | |
15136 | test "$with_gnu_ld" != yes && break | |
15137 | ;; | |
15138 | esac | |
15139 | fi | |
15140 | done | |
15141 | IFS="$lt_save_ifs" | |
15142 | else | |
15143 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
15144 | fi | |
15145 | fi | |
15146 | ||
15147 | LD="$lt_cv_path_LD" | |
15148 | if test -n "$LD"; then | |
15149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
15150 | $as_echo "$LD" >&6; } | |
15151 | else | |
15152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15153 | $as_echo "no" >&6; } | |
15154 | fi | |
22e05272 | 15155 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
48310492 RH |
15156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
15157 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
22e05272 | 15158 | if ${lt_cv_prog_gnu_ld+:} false; then : |
48310492 RH |
15159 | $as_echo_n "(cached) " >&6 |
15160 | else | |
15161 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
15162 | case `$LD -v 2>&1 </dev/null` in | |
15163 | *GNU* | *'with BFD'*) | |
15164 | lt_cv_prog_gnu_ld=yes | |
15165 | ;; | |
15166 | *) | |
15167 | lt_cv_prog_gnu_ld=no | |
15168 | ;; | |
15169 | esac | |
15170 | fi | |
15171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
15172 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
15173 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
15174 | ||
15175 | ||
15176 | ||
15177 | ||
15178 | ||
15179 | ||
15180 | ||
15181 | # If we're not using GNU ld, then there's no point in even trying these | |
15182 | # tests. Check for that first. We should have already tested for gld | |
15183 | # by now (in libtool), but require it now just to be safe... | |
15184 | test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS='' | |
15185 | test -z "$OPT_LDFLAGS" && OPT_LDFLAGS='' | |
15186 | ||
15187 | ||
15188 | ||
15189 | # The name set by libtool depends on the version of libtool. Shame on us | |
15190 | # for depending on an impl detail, but c'est la vie. Older versions used | |
15191 | # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on | |
15192 | # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually | |
15193 | # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't | |
15194 | # set (hence we're using an older libtool), then set it. | |
15195 | if test x${with_gnu_ld+set} != xset; then | |
15196 | if test x${ac_cv_prog_gnu_ld+set} != xset; then | |
15197 | # We got through "ac_require(ac_prog_ld)" and still not set? Huh? | |
15198 | with_gnu_ld=no | |
15199 | else | |
15200 | with_gnu_ld=$ac_cv_prog_gnu_ld | |
15201 | fi | |
15202 | fi | |
15203 | ||
15204 | # Start by getting the version number. I think the libtool test already | |
15205 | # does some of this, but throws away the result. | |
15206 | libat_ld_is_gold=no | |
c99a6eb0 | 15207 | libat_ld_is_mold=no |
48310492 RH |
15208 | if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then |
15209 | libat_ld_is_gold=yes | |
c99a6eb0 ML |
15210 | elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then |
15211 | libat_ld_is_mold=yes | |
48310492 RH |
15212 | fi |
15213 | ||
15214 | ldver=`$LD --version 2>/dev/null | | |
c6c2d1bc | 15215 | sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'` |
48310492 RH |
15216 | |
15217 | libat_gnu_ld_version=`echo $ldver | \ | |
15218 | $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` | |
15219 | ||
15220 | # Set --gc-sections. | |
15221 | if test "$with_gnu_ld" = "notbroken"; then | |
15222 | # GNU ld it is! Joy and bunny rabbits! | |
15223 | ||
15224 | # All these tests are for C++; save the language and the compiler flags. | |
15225 | # Need to do this so that g++ won't try to link in libstdc++ | |
15226 | ac_test_CFLAGS="${CFLAGS+set}" | |
15227 | ac_save_CFLAGS="$CFLAGS" | |
15228 | CFLAGS='-x c++ -Wl,--gc-sections' | |
15229 | ||
15230 | # Check for -Wl,--gc-sections | |
15231 | # XXX This test is broken at the moment, as symbols required for linking | |
15232 | # are now in libsupc++ (not built yet). In addition, this test has | |
15233 | # cored on solaris in the past. In addition, --gc-sections doesn't | |
15234 | # really work at the moment (keeps on discarding used sections, first | |
15235 | # .eh_frame and now some of the glibc sections for iconv). | |
15236 | # Bzzzzt. Thanks for playing, maybe next time. | |
15237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5 | |
15238 | $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; } | |
15239 | if test "$cross_compiling" = yes; then : | |
15240 | ac_sectionLDflags=yes | |
15241 | else | |
15242 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15243 | /* end confdefs.h. */ | |
15244 | ||
15245 | int main(void) | |
15246 | { | |
15247 | try { throw 1; } | |
15248 | catch (...) { }; | |
15249 | return 0; | |
15250 | } | |
15251 | ||
15252 | _ACEOF | |
15253 | if ac_fn_c_try_run "$LINENO"; then : | |
15254 | ac_sectionLDflags=yes | |
15255 | else | |
15256 | ac_sectionLDflags=no | |
15257 | fi | |
15258 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
15259 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15260 | fi | |
15261 | ||
15262 | if test "$ac_test_CFLAGS" = set; then | |
15263 | CFLAGS="$ac_save_CFLAGS" | |
15264 | else | |
15265 | # this is the suspicious part | |
15266 | CFLAGS='' | |
15267 | fi | |
15268 | if test "$ac_sectionLDflags" = "yes"; then | |
15269 | SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS" | |
15270 | fi | |
15271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5 | |
15272 | $as_echo "$ac_sectionLDflags" >&6; } | |
15273 | fi | |
15274 | ||
15275 | # Set linker optimization flags. | |
15276 | if test x"$with_gnu_ld" = x"yes"; then | |
15277 | OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS" | |
15278 | fi | |
15279 | ||
15280 | ||
15281 | ||
15282 | ||
15283 | ||
15284 | ||
15285 | # Check whether --enable-symvers was given. | |
15286 | if test "${enable_symvers+set}" = set; then : | |
15287 | enableval=$enable_symvers; | |
15288 | case "$enableval" in | |
15289 | yes|no|gnu*|sun) ;; | |
22e05272 | 15290 | *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;; |
48310492 RH |
15291 | esac |
15292 | ||
15293 | else | |
15294 | enable_symvers=yes | |
15295 | fi | |
15296 | ||
15297 | ||
15298 | ||
15299 | # If we never went through the LIBAT_CHECK_LINKER_FEATURES macro, then we | |
15300 | # don't know enough about $LD to do tricks... | |
15301 | ||
15302 | ||
15303 | # Turn a 'yes' into a suitable default. | |
15304 | if test x$enable_symvers = xyes ; then | |
15305 | # FIXME The following test is too strict, in theory. | |
15306 | if test $enable_shared = no || test "x$LD" = x; then | |
15307 | enable_symvers=no | |
15308 | else | |
15309 | if test $with_gnu_ld = yes ; then | |
15310 | enable_symvers=gnu | |
15311 | else | |
15312 | case ${target_os} in | |
15313 | # Sun symbol versioning exists since Solaris 2.5. | |
15314 | solaris2.[5-9]* | solaris2.1[0-9]*) | |
15315 | enable_symvers=sun ;; | |
15316 | *) | |
15317 | enable_symvers=no ;; | |
15318 | esac | |
15319 | fi | |
15320 | fi | |
15321 | fi | |
15322 | ||
15323 | # Check if 'sun' was requested on non-Solaris 2 platforms. | |
15324 | if test x$enable_symvers = xsun ; then | |
15325 | case ${target_os} in | |
15326 | solaris2*) | |
15327 | # All fine. | |
15328 | ;; | |
15329 | *) | |
15330 | # Unlikely to work. | |
15331 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5 | |
15332 | $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;} | |
15333 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5 | |
15334 | $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;} | |
15335 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 | |
15336 | $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} | |
15337 | enable_symvers=no | |
15338 | ;; | |
15339 | esac | |
15340 | fi | |
15341 | ||
15342 | # Check to see if libgcc_s exists, indicating that shared libgcc is possible. | |
15343 | if test $enable_symvers != no; then | |
15344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5 | |
15345 | $as_echo_n "checking for shared libgcc... " >&6; } | |
15346 | ac_save_CFLAGS="$CFLAGS" | |
15347 | CFLAGS=' -lgcc_s' | |
15348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15349 | /* end confdefs.h. */ | |
15350 | ||
15351 | int | |
15352 | main () | |
15353 | { | |
15354 | return 0; | |
15355 | ; | |
15356 | return 0; | |
15357 | } | |
15358 | _ACEOF | |
15359 | if ac_fn_c_try_link "$LINENO"; then : | |
15360 | libat_shared_libgcc=yes | |
15361 | else | |
15362 | libat_shared_libgcc=no | |
15363 | fi | |
15364 | rm -f core conftest.err conftest.$ac_objext \ | |
15365 | conftest$ac_exeext conftest.$ac_ext | |
15366 | CFLAGS="$ac_save_CFLAGS" | |
15367 | if test $libat_shared_libgcc = no; then | |
15368 | cat > conftest.c <<EOF | |
15369 | int main (void) { return 0; } | |
15370 | EOF | |
15371 | libat_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ | |
15372 | -shared -shared-libgcc -o conftest.so \ | |
15373 | conftest.c -v 2>&1 >/dev/null \ | |
15374 | | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'` | |
15375 | rm -f conftest.c conftest.so | |
15376 | if test x${libat_libgcc_s_suffix+set} = xset; then | |
15377 | CFLAGS=" -lgcc_s$libat_libgcc_s_suffix" | |
15378 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15379 | /* end confdefs.h. */ | |
15380 | ||
15381 | int | |
15382 | main () | |
15383 | { | |
15384 | return 0; | |
15385 | ; | |
15386 | return 0; | |
15387 | } | |
15388 | _ACEOF | |
15389 | if ac_fn_c_try_link "$LINENO"; then : | |
15390 | libat_shared_libgcc=yes | |
15391 | fi | |
15392 | rm -f core conftest.err conftest.$ac_objext \ | |
15393 | conftest$ac_exeext conftest.$ac_ext | |
15394 | CFLAGS="$ac_save_CFLAGS" | |
15395 | fi | |
15396 | fi | |
15397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_shared_libgcc" >&5 | |
15398 | $as_echo "$libat_shared_libgcc" >&6; } | |
15399 | fi | |
15400 | ||
15401 | # For GNU ld, we need at least this version. The format is described in | |
15402 | # LIBAT_CHECK_LINKER_FEATURES above. | |
15403 | libat_min_gnu_ld_version=21400 | |
15404 | # XXXXXXXXXXX libat_gnu_ld_version=21390 | |
15405 | ||
15406 | # Check to see if unspecified "yes" value can win, given results above. | |
15407 | # Change "yes" into either "no" or a style name. | |
15408 | if test $enable_symvers != no && test $libat_shared_libgcc = yes; then | |
15409 | if test $with_gnu_ld = yes; then | |
15410 | if test $libat_gnu_ld_version -ge $libat_min_gnu_ld_version ; then | |
15411 | enable_symvers=gnu | |
15412 | elif test $libat_ld_is_gold = yes ; then | |
15413 | enable_symvers=gnu | |
c99a6eb0 ML |
15414 | elif test $libat_ld_is_mold = yes ; then |
15415 | enable_symvers=gnu | |
48310492 RH |
15416 | else |
15417 | # The right tools, the right setup, but too old. Fallbacks? | |
15418 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&5 | |
15419 | $as_echo "$as_me: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&2;} | |
15420 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5 | |
15421 | $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;} | |
15422 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5 | |
15423 | $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;} | |
15424 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&5 | |
15425 | $as_echo "$as_me: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&2;} | |
15426 | if test $libat_gnu_ld_version -ge 21200 ; then | |
15427 | # Globbing fix is present, proper block support is not. | |
15428 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 | |
15429 | $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} | |
15430 | enable_symvers=no | |
15431 | else | |
15432 | # 2.11 or older. | |
15433 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 | |
15434 | $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} | |
15435 | enable_symvers=no | |
15436 | fi | |
15437 | fi | |
15438 | elif test $enable_symvers = sun; then | |
15439 | : All interesting versions of Sun ld support sun style symbol versioning. | |
15440 | else | |
15441 | # just fail for now | |
15442 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5 | |
15443 | $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;} | |
15444 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5 | |
15445 | $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;} | |
15446 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5 | |
15447 | $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;} | |
15448 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 | |
15449 | $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} | |
15450 | enable_symvers=no | |
15451 | fi | |
15452 | fi | |
15453 | if test $enable_symvers = gnu; then | |
15454 | ||
15455 | $as_echo "#define LIBAT_GNU_SYMBOL_VERSIONING 1" >>confdefs.h | |
15456 | ||
15457 | fi | |
15458 | ||
15459 | if test $enable_symvers != no; then | |
15460 | LIBAT_BUILD_VERSIONED_SHLIB_TRUE= | |
15461 | LIBAT_BUILD_VERSIONED_SHLIB_FALSE='#' | |
15462 | else | |
15463 | LIBAT_BUILD_VERSIONED_SHLIB_TRUE='#' | |
15464 | LIBAT_BUILD_VERSIONED_SHLIB_FALSE= | |
15465 | fi | |
15466 | ||
15467 | if test $enable_symvers = gnu; then | |
15468 | LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE= | |
15469 | LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE='#' | |
15470 | else | |
15471 | LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE='#' | |
15472 | LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE= | |
15473 | fi | |
15474 | ||
15475 | if test $enable_symvers = sun; then | |
15476 | LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE= | |
15477 | LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE='#' | |
15478 | else | |
15479 | LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE='#' | |
15480 | LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE= | |
15481 | fi | |
15482 | ||
15483 | { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5 | |
15484 | $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;} | |
15485 | ||
15486 | ||
15487 | # Cleanup and exit. | |
15488 | CFLAGS="$save_CFLAGS" | |
15489 | cat >confcache <<\_ACEOF | |
15490 | # This file is a shell script that caches the results of configure | |
15491 | # tests run on this system so they can be shared between configure | |
15492 | # scripts and configure runs, see configure's option --config-cache. | |
15493 | # It is not useful on other systems. If it contains results you don't | |
15494 | # want to keep, you may remove or edit it. | |
15495 | # | |
15496 | # config.status only pays attention to the cache file if you give it | |
15497 | # the --recheck option to rerun configure. | |
15498 | # | |
15499 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
15500 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
15501 | # following values. | |
15502 | ||
15503 | _ACEOF | |
15504 | ||
15505 | # The following way of writing the cache mishandles newlines in values, | |
15506 | # but we know of no workaround that is simple, portable, and efficient. | |
15507 | # So, we kill variables containing newlines. | |
15508 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
15509 | # and sets the high bit in the cache file unless we assign to the vars. | |
15510 | ( | |
15511 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
15512 | eval ac_val=\$$ac_var | |
15513 | case $ac_val in #( | |
15514 | *${as_nl}*) | |
15515 | case $ac_var in #( | |
15516 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
15517 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
15518 | esac | |
15519 | case $ac_var in #( | |
15520 | _ | IFS | as_nl) ;; #( | |
15521 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
15522 | *) { eval $ac_var=; unset $ac_var;} ;; | |
15523 | esac ;; | |
15524 | esac | |
15525 | done | |
15526 | ||
15527 | (set) 2>&1 | | |
15528 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
15529 | *${as_nl}ac_space=\ *) | |
15530 | # `set' does not quote correctly, so add quotes: double-quote | |
15531 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
15532 | sed -n \ | |
15533 | "s/'/'\\\\''/g; | |
15534 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
15535 | ;; #( | |
15536 | *) | |
15537 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
15538 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
15539 | ;; | |
15540 | esac | | |
15541 | sort | |
15542 | ) | | |
15543 | sed ' | |
15544 | /^ac_cv_env_/b end | |
15545 | t clear | |
15546 | :clear | |
15547 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
15548 | t end | |
15549 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
15550 | :end' >>confcache | |
15551 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
15552 | if test -w "$cache_file"; then | |
22e05272 | 15553 | if test "x$cache_file" != "x/dev/null"; then |
48310492 RH |
15554 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
15555 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
15556 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
15557 | cat confcache >"$cache_file" | |
15558 | else | |
15559 | case $cache_file in #( | |
15560 | */* | ?:*) | |
15561 | mv -f confcache "$cache_file"$$ && | |
15562 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
15563 | *) | |
15564 | mv -f confcache "$cache_file" ;; | |
15565 | esac | |
15566 | fi | |
15567 | fi | |
48310492 RH |
15568 | else |
15569 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
15570 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
15571 | fi | |
15572 | fi | |
15573 | rm -f confcache | |
15574 | ||
45ba6bf2 DS |
15575 | # Check whether --enable-werror was given. |
15576 | if test "${enable_werror+set}" = set; then : | |
15577 | enableval=$enable_werror; | |
15578 | fi | |
15579 | ||
48310492 | 15580 | # Add -Wall -Werror if we are using GCC. |
45ba6bf2 DS |
15581 | if test "x$GCC" = "xyes"; then : |
15582 | XCFLAGS="$XCFLAGS -Wall" | |
15583 | fi | |
15584 | if test "x$enable_werror" != "xno" && test "x$GCC" = "xyes"; then : | |
15585 | XCFLAGS="$XCFLAGS -Werror" | |
48310492 RH |
15586 | fi |
15587 | ||
efc643e9 IT |
15588 | # Add CET specific flags if CET is enabled |
15589 | # Check whether --enable-cet was given. | |
15590 | if test "${enable_cet+set}" = set; then : | |
15591 | enableval=$enable_cet; | |
15592 | case "$enableval" in | |
a0e1df88 | 15593 | yes|no|auto) ;; |
22e05272 | 15594 | *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;; |
efc643e9 IT |
15595 | esac |
15596 | ||
15597 | else | |
8d286dd1 | 15598 | enable_cet=auto |
efc643e9 IT |
15599 | fi |
15600 | ||
15601 | ||
14e335ed IT |
15602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5 |
15603 | $as_echo_n "checking for CET support... " >&6; } | |
15604 | ||
9051b548 | 15605 | # NB: Avoid nested save_CFLAGS and save_LDFLAGS. |
efc643e9 IT |
15606 | case "$host" in |
15607 | i[34567]86-*-linux* | x86_64-*-linux*) | |
15608 | case "$enable_cet" in | |
a0e1df88 | 15609 | auto) |
14e335ed | 15610 | # Check if target supports multi-byte NOPs |
2755037e | 15611 | # and if compiler and assembler support CET insn. |
9051b548 | 15612 | cet_save_CFLAGS="$CFLAGS" |
4c1a5d8b | 15613 | CFLAGS="$CFLAGS -fcf-protection" |
efc643e9 IT |
15614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15615 | /* end confdefs.h. */ | |
15616 | ||
15617 | int | |
15618 | main () | |
15619 | { | |
14e335ed IT |
15620 | |
15621 | #if !defined(__SSE2__) | |
15622 | #error target does not support multi-byte NOPs | |
15623 | #else | |
efc643e9 | 15624 | asm ("setssbsy"); |
14e335ed IT |
15625 | #endif |
15626 | ||
efc643e9 IT |
15627 | ; |
15628 | return 0; | |
15629 | } | |
15630 | _ACEOF | |
15631 | if ac_fn_c_try_compile "$LINENO"; then : | |
15632 | enable_cet=yes | |
15633 | else | |
15634 | enable_cet=no | |
15635 | fi | |
15636 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9051b548 | 15637 | CFLAGS="$cet_save_CFLAGS" |
efc643e9 IT |
15638 | ;; |
15639 | yes) | |
15640 | # Check if assembler supports CET. | |
15641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15642 | /* end confdefs.h. */ | |
15643 | ||
15644 | int | |
15645 | main () | |
15646 | { | |
15647 | asm ("setssbsy"); | |
15648 | ; | |
15649 | return 0; | |
15650 | } | |
15651 | _ACEOF | |
15652 | if ac_fn_c_try_compile "$LINENO"; then : | |
15653 | ||
15654 | else | |
22e05272 | 15655 | as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5 |
efc643e9 IT |
15656 | fi |
15657 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15658 | ;; | |
15659 | esac | |
15660 | ;; | |
15661 | *) | |
15662 | enable_cet=no | |
15663 | ;; | |
15664 | esac | |
15665 | if test x$enable_cet = xyes; then | |
7b47ecf2 | 15666 | CET_FLAGS="-fcf-protection -mshstk" |
14e335ed IT |
15667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
15668 | $as_echo "yes" >&6; } | |
15669 | else | |
15670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15671 | $as_echo "no" >&6; } | |
efc643e9 IT |
15672 | fi |
15673 | ||
15674 | XCFLAGS="$XCFLAGS $CET_FLAGS" | |
15675 | ||
48310492 RH |
15676 | XCFLAGS="$XCFLAGS $XPCFLAGS" |
15677 | ||
15678 | ||
15679 | ||
15680 | ||
15681 | ||
15682 | ||
15683 | ||
47ddb895 DE |
15684 | # Conditionalize the makefile for this target machine. |
15685 | tmake_file_= | |
15686 | for f in ${tmake_file} | |
15687 | do | |
15688 | if test -f ${srcdir}/config/$f | |
15689 | then | |
15690 | tmake_file_="${tmake_file_} \$(srcdir)/config/$f" | |
15691 | fi | |
15692 | done | |
15693 | tmake_file="${tmake_file_}" | |
15694 | ||
15695 | ||
15696 | ||
48310492 RH |
15697 | if test x$libat_cv_have_ifunc = xyes; then |
15698 | HAVE_IFUNC_TRUE= | |
15699 | HAVE_IFUNC_FALSE='#' | |
15700 | else | |
15701 | HAVE_IFUNC_TRUE='#' | |
15702 | HAVE_IFUNC_FALSE= | |
15703 | fi | |
15704 | ||
141abc6f SE |
15705 | if expr "$config_path" : ".* linux/aarch64 .*" > /dev/null; then |
15706 | ARCH_AARCH64_LINUX_TRUE= | |
15707 | ARCH_AARCH64_LINUX_FALSE='#' | |
15708 | else | |
15709 | ARCH_AARCH64_LINUX_TRUE='#' | |
15710 | ARCH_AARCH64_LINUX_FALSE= | |
15711 | fi | |
15712 | ||
48310492 RH |
15713 | if expr "$config_path" : ".* linux/arm .*" > /dev/null; then |
15714 | ARCH_ARM_LINUX_TRUE= | |
15715 | ARCH_ARM_LINUX_FALSE='#' | |
15716 | else | |
15717 | ARCH_ARM_LINUX_TRUE='#' | |
15718 | ARCH_ARM_LINUX_FALSE= | |
15719 | fi | |
15720 | ||
15721 | if test "$ARCH" = x86 && test x$libat_cv_wordsize = x4; then | |
15722 | ARCH_I386_TRUE= | |
15723 | ARCH_I386_FALSE='#' | |
15724 | else | |
15725 | ARCH_I386_TRUE='#' | |
15726 | ARCH_I386_FALSE= | |
15727 | fi | |
15728 | ||
15729 | if test "$ARCH" = x86 && test x$libat_cv_wordsize = x8; then | |
15730 | ARCH_X86_64_TRUE= | |
15731 | ARCH_X86_64_FALSE='#' | |
15732 | else | |
15733 | ARCH_X86_64_TRUE='#' | |
15734 | ARCH_X86_64_FALSE= | |
15735 | fi | |
15736 | ||
15737 | ||
3c36aa6b JJ |
15738 | # Determine what GCC version number to use in filesystem paths. |
15739 | ||
15740 | get_gcc_base_ver="cat" | |
15741 | ||
15742 | # Check whether --with-gcc-major-version-only was given. | |
15743 | if test "${with_gcc_major_version_only+set}" = set; then : | |
15744 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
001ddaa8 | 15745 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
3c36aa6b JJ |
15746 | fi |
15747 | ||
15748 | fi | |
15749 | ||
15750 | ||
15751 | ||
15752 | ||
48310492 RH |
15753 | if test ${multilib} = yes; then |
15754 | multilib_arg="--enable-multilib" | |
15755 | else | |
15756 | multilib_arg= | |
15757 | fi | |
15758 | ||
15759 | ac_config_files="$ac_config_files Makefile testsuite/Makefile" | |
15760 | ||
5ff06d76 MR |
15761 | ac_config_files="$ac_config_files testsuite/libatomic-site-extra.exp" |
15762 | ||
48310492 RH |
15763 | cat >confcache <<\_ACEOF |
15764 | # This file is a shell script that caches the results of configure | |
15765 | # tests run on this system so they can be shared between configure | |
15766 | # scripts and configure runs, see configure's option --config-cache. | |
15767 | # It is not useful on other systems. If it contains results you don't | |
15768 | # want to keep, you may remove or edit it. | |
15769 | # | |
15770 | # config.status only pays attention to the cache file if you give it | |
15771 | # the --recheck option to rerun configure. | |
15772 | # | |
15773 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
15774 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
15775 | # following values. | |
15776 | ||
15777 | _ACEOF | |
15778 | ||
15779 | # The following way of writing the cache mishandles newlines in values, | |
15780 | # but we know of no workaround that is simple, portable, and efficient. | |
15781 | # So, we kill variables containing newlines. | |
15782 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
15783 | # and sets the high bit in the cache file unless we assign to the vars. | |
15784 | ( | |
15785 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
15786 | eval ac_val=\$$ac_var | |
15787 | case $ac_val in #( | |
15788 | *${as_nl}*) | |
15789 | case $ac_var in #( | |
15790 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
15791 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
15792 | esac | |
15793 | case $ac_var in #( | |
15794 | _ | IFS | as_nl) ;; #( | |
15795 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
15796 | *) { eval $ac_var=; unset $ac_var;} ;; | |
15797 | esac ;; | |
15798 | esac | |
15799 | done | |
15800 | ||
15801 | (set) 2>&1 | | |
15802 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
15803 | *${as_nl}ac_space=\ *) | |
15804 | # `set' does not quote correctly, so add quotes: double-quote | |
15805 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
15806 | sed -n \ | |
15807 | "s/'/'\\\\''/g; | |
15808 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
15809 | ;; #( | |
15810 | *) | |
15811 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
15812 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
15813 | ;; | |
15814 | esac | | |
15815 | sort | |
15816 | ) | | |
15817 | sed ' | |
15818 | /^ac_cv_env_/b end | |
15819 | t clear | |
15820 | :clear | |
15821 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
15822 | t end | |
15823 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
15824 | :end' >>confcache | |
15825 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
15826 | if test -w "$cache_file"; then | |
22e05272 | 15827 | if test "x$cache_file" != "x/dev/null"; then |
48310492 RH |
15828 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
15829 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
15830 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
15831 | cat confcache >"$cache_file" | |
15832 | else | |
15833 | case $cache_file in #( | |
15834 | */* | ?:*) | |
15835 | mv -f confcache "$cache_file"$$ && | |
15836 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
15837 | *) | |
15838 | mv -f confcache "$cache_file" ;; | |
15839 | esac | |
15840 | fi | |
15841 | fi | |
48310492 RH |
15842 | else |
15843 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
15844 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
15845 | fi | |
15846 | fi | |
15847 | rm -f confcache | |
15848 | ||
15849 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
15850 | # Let make expand exec_prefix. | |
15851 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
15852 | ||
15853 | DEFS=-DHAVE_CONFIG_H | |
15854 | ||
15855 | ac_libobjs= | |
15856 | ac_ltlibobjs= | |
22e05272 | 15857 | U= |
48310492 RH |
15858 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
15859 | # 1. Remove the extension, and $U if already installed. | |
15860 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
15861 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
15862 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
15863 | # will be set to the directory where LIBOBJS objects are built. | |
15864 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
15865 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
15866 | done | |
15867 | LIBOBJS=$ac_libobjs | |
15868 | ||
15869 | LTLIBOBJS=$ac_ltlibobjs | |
15870 | ||
15871 | ||
15872 | if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then | |
22e05272 | 15873 | as_fn_error $? "conditional \"GENINSRC\" was never defined. |
48310492 RH |
15874 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15875 | fi | |
22e05272 JM |
15876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
15877 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
15878 | if test -n "$am_sleep_pid"; then | |
15879 | # Hide warnings about reused PIDs. | |
15880 | wait $am_sleep_pid 2>/dev/null | |
15881 | fi | |
15882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
15883 | $as_echo "done" >&6; } | |
48310492 RH |
15884 | if test -n "$EXEEXT"; then |
15885 | am__EXEEXT_TRUE= | |
15886 | am__EXEEXT_FALSE='#' | |
15887 | else | |
15888 | am__EXEEXT_TRUE='#' | |
15889 | am__EXEEXT_FALSE= | |
15890 | fi | |
15891 | ||
15892 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
22e05272 | 15893 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
48310492 RH |
15894 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15895 | fi | |
15896 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
22e05272 | 15897 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
48310492 RH |
15898 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15899 | fi | |
15900 | if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then | |
22e05272 | 15901 | as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. |
48310492 RH |
15902 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15903 | fi | |
fa3cd3c3 | 15904 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
22e05272 | 15905 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
fa3cd3c3 RH |
15906 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15907 | fi | |
48310492 RH |
15908 | |
15909 | if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_FALSE}"; then | |
22e05272 | 15910 | as_fn_error $? "conditional \"LIBAT_BUILD_VERSIONED_SHLIB\" was never defined. |
48310492 RH |
15911 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15912 | fi | |
15913 | if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then | |
22e05272 | 15914 | as_fn_error $? "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_GNU\" was never defined. |
48310492 RH |
15915 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15916 | fi | |
15917 | if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then | |
22e05272 | 15918 | as_fn_error $? "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_SUN\" was never defined. |
48310492 RH |
15919 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15920 | fi | |
15921 | if test -z "${HAVE_IFUNC_TRUE}" && test -z "${HAVE_IFUNC_FALSE}"; then | |
22e05272 | 15922 | as_fn_error $? "conditional \"HAVE_IFUNC\" was never defined. |
48310492 RH |
15923 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15924 | fi | |
141abc6f | 15925 | if test -z "${ARCH_AARCH64_LINUX_TRUE}" && test -z "${ARCH_AARCH64_LINUX_FALSE}"; then |
22e05272 | 15926 | as_fn_error $? "conditional \"ARCH_AARCH64_LINUX\" was never defined. |
141abc6f SE |
15927 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15928 | fi | |
48310492 | 15929 | if test -z "${ARCH_ARM_LINUX_TRUE}" && test -z "${ARCH_ARM_LINUX_FALSE}"; then |
22e05272 | 15930 | as_fn_error $? "conditional \"ARCH_ARM_LINUX\" was never defined. |
48310492 RH |
15931 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15932 | fi | |
15933 | if test -z "${ARCH_I386_TRUE}" && test -z "${ARCH_I386_FALSE}"; then | |
22e05272 | 15934 | as_fn_error $? "conditional \"ARCH_I386\" was never defined. |
48310492 RH |
15935 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15936 | fi | |
15937 | if test -z "${ARCH_X86_64_TRUE}" && test -z "${ARCH_X86_64_FALSE}"; then | |
22e05272 | 15938 | as_fn_error $? "conditional \"ARCH_X86_64\" was never defined. |
48310492 RH |
15939 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
15940 | fi | |
15941 | ||
22e05272 | 15942 | : "${CONFIG_STATUS=./config.status}" |
48310492 RH |
15943 | ac_write_fail=0 |
15944 | ac_clean_files_save=$ac_clean_files | |
15945 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
15946 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
15947 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
15948 | as_write_fail=0 | |
15949 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
15950 | #! $SHELL | |
15951 | # Generated by $as_me. | |
15952 | # Run this file to recreate the current configuration. | |
15953 | # Compiler output produced by configure, useful for debugging | |
15954 | # configure, is in config.log if it exists. | |
15955 | ||
15956 | debug=false | |
15957 | ac_cs_recheck=false | |
15958 | ac_cs_silent=false | |
15959 | ||
15960 | SHELL=\${CONFIG_SHELL-$SHELL} | |
15961 | export SHELL | |
15962 | _ASEOF | |
15963 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
15964 | ## -------------------- ## | |
15965 | ## M4sh Initialization. ## | |
15966 | ## -------------------- ## | |
15967 | ||
15968 | # Be more Bourne compatible | |
15969 | DUALCASE=1; export DUALCASE # for MKS sh | |
15970 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
15971 | emulate sh | |
15972 | NULLCMD=: | |
15973 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
15974 | # is contrary to our usage. Disable this feature. | |
15975 | alias -g '${1+"$@"}'='"$@"' | |
15976 | setopt NO_GLOB_SUBST | |
15977 | else | |
15978 | case `(set -o) 2>/dev/null` in #( | |
15979 | *posix*) : | |
15980 | set -o posix ;; #( | |
15981 | *) : | |
15982 | ;; | |
15983 | esac | |
15984 | fi | |
15985 | ||
15986 | ||
15987 | as_nl=' | |
15988 | ' | |
15989 | export as_nl | |
15990 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
15991 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
15992 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
15993 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
15994 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
15995 | # but without wasting forks for bash or zsh. | |
15996 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
15997 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15998 | as_echo='print -r --' | |
15999 | as_echo_n='print -rn --' | |
16000 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
16001 | as_echo='printf %s\n' | |
16002 | as_echo_n='printf %s' | |
16003 | else | |
16004 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
16005 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
16006 | as_echo_n='/usr/ucb/echo -n' | |
16007 | else | |
16008 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
16009 | as_echo_n_body='eval | |
16010 | arg=$1; | |
16011 | case $arg in #( | |
16012 | *"$as_nl"*) | |
16013 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
16014 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
16015 | esac; | |
16016 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
16017 | ' | |
16018 | export as_echo_n_body | |
16019 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
16020 | fi | |
16021 | export as_echo_body | |
16022 | as_echo='sh -c $as_echo_body as_echo' | |
16023 | fi | |
16024 | ||
16025 | # The user is always right. | |
16026 | if test "${PATH_SEPARATOR+set}" != set; then | |
16027 | PATH_SEPARATOR=: | |
16028 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
16029 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
16030 | PATH_SEPARATOR=';' | |
16031 | } | |
16032 | fi | |
16033 | ||
16034 | ||
16035 | # IFS | |
16036 | # We need space, tab and new line, in precisely that order. Quoting is | |
16037 | # there to prevent editors from complaining about space-tab. | |
16038 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
16039 | # splitting by setting IFS to empty value.) | |
16040 | IFS=" "" $as_nl" | |
16041 | ||
16042 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 16043 | as_myself= |
48310492 RH |
16044 | case $0 in #(( |
16045 | *[\\/]* ) as_myself=$0 ;; | |
16046 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16047 | for as_dir in $PATH | |
16048 | do | |
16049 | IFS=$as_save_IFS | |
16050 | test -z "$as_dir" && as_dir=. | |
16051 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
16052 | done | |
16053 | IFS=$as_save_IFS | |
16054 | ||
16055 | ;; | |
16056 | esac | |
16057 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
16058 | # in which case we are not to be found in the path. | |
16059 | if test "x$as_myself" = x; then | |
16060 | as_myself=$0 | |
16061 | fi | |
16062 | if test ! -f "$as_myself"; then | |
16063 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
16064 | exit 1 | |
16065 | fi | |
16066 | ||
16067 | # Unset variables that we do not need and which cause bugs (e.g. in | |
16068 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
16069 | # suppresses any "Segmentation fault" message there. '((' could | |
16070 | # trigger a bug in pdksh 5.2.14. | |
16071 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
16072 | do eval test x\${$as_var+set} = xset \ | |
16073 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
16074 | done | |
16075 | PS1='$ ' | |
16076 | PS2='> ' | |
16077 | PS4='+ ' | |
16078 | ||
16079 | # NLS nuisances. | |
16080 | LC_ALL=C | |
16081 | export LC_ALL | |
16082 | LANGUAGE=C | |
16083 | export LANGUAGE | |
16084 | ||
16085 | # CDPATH. | |
16086 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
16087 | ||
16088 | ||
22e05272 JM |
16089 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
16090 | # ---------------------------------------- | |
48310492 RH |
16091 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
16092 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 16093 | # script with STATUS, using 1 if that was 0. |
48310492 RH |
16094 | as_fn_error () |
16095 | { | |
22e05272 JM |
16096 | as_status=$1; test $as_status -eq 0 && as_status=1 |
16097 | if test "$4"; then | |
16098 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
16099 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
48310492 | 16100 | fi |
22e05272 | 16101 | $as_echo "$as_me: error: $2" >&2 |
48310492 RH |
16102 | as_fn_exit $as_status |
16103 | } # as_fn_error | |
16104 | ||
16105 | ||
16106 | # as_fn_set_status STATUS | |
16107 | # ----------------------- | |
16108 | # Set $? to STATUS, without forking. | |
16109 | as_fn_set_status () | |
16110 | { | |
16111 | return $1 | |
16112 | } # as_fn_set_status | |
16113 | ||
16114 | # as_fn_exit STATUS | |
16115 | # ----------------- | |
16116 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
16117 | as_fn_exit () | |
16118 | { | |
16119 | set +e | |
16120 | as_fn_set_status $1 | |
16121 | exit $1 | |
16122 | } # as_fn_exit | |
16123 | ||
16124 | # as_fn_unset VAR | |
16125 | # --------------- | |
16126 | # Portably unset VAR. | |
16127 | as_fn_unset () | |
16128 | { | |
16129 | { eval $1=; unset $1;} | |
16130 | } | |
16131 | as_unset=as_fn_unset | |
16132 | # as_fn_append VAR VALUE | |
16133 | # ---------------------- | |
16134 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
16135 | # advantage of any shell optimizations that allow amortized linear growth over | |
16136 | # repeated appends, instead of the typical quadratic growth present in naive | |
16137 | # implementations. | |
16138 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
16139 | eval 'as_fn_append () | |
16140 | { | |
16141 | eval $1+=\$2 | |
16142 | }' | |
16143 | else | |
16144 | as_fn_append () | |
16145 | { | |
16146 | eval $1=\$$1\$2 | |
16147 | } | |
16148 | fi # as_fn_append | |
16149 | ||
16150 | # as_fn_arith ARG... | |
16151 | # ------------------ | |
16152 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
16153 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
16154 | # must be portable across $(()) and expr. | |
16155 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
16156 | eval 'as_fn_arith () | |
16157 | { | |
16158 | as_val=$(( $* )) | |
16159 | }' | |
16160 | else | |
16161 | as_fn_arith () | |
16162 | { | |
16163 | as_val=`expr "$@" || test $? -eq 1` | |
16164 | } | |
16165 | fi # as_fn_arith | |
16166 | ||
16167 | ||
16168 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
16169 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
16170 | as_expr=expr | |
16171 | else | |
16172 | as_expr=false | |
16173 | fi | |
16174 | ||
16175 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
16176 | as_basename=basename | |
16177 | else | |
16178 | as_basename=false | |
16179 | fi | |
16180 | ||
16181 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
16182 | as_dirname=dirname | |
16183 | else | |
16184 | as_dirname=false | |
16185 | fi | |
16186 | ||
16187 | as_me=`$as_basename -- "$0" || | |
16188 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
16189 | X"$0" : 'X\(//\)$' \| \ | |
16190 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
16191 | $as_echo X/"$0" | | |
16192 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
16193 | s//\1/ | |
16194 | q | |
16195 | } | |
16196 | /^X\/\(\/\/\)$/{ | |
16197 | s//\1/ | |
16198 | q | |
16199 | } | |
16200 | /^X\/\(\/\).*/{ | |
16201 | s//\1/ | |
16202 | q | |
16203 | } | |
16204 | s/.*/./; q'` | |
16205 | ||
16206 | # Avoid depending upon Character Ranges. | |
16207 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
16208 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
16209 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
16210 | as_cr_digits='0123456789' | |
16211 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
16212 | ||
16213 | ECHO_C= ECHO_N= ECHO_T= | |
16214 | case `echo -n x` in #((((( | |
16215 | -n*) | |
16216 | case `echo 'xy\c'` in | |
16217 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
16218 | xy) ECHO_C='\c';; | |
16219 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
16220 | ECHO_T=' ';; | |
16221 | esac;; | |
16222 | *) | |
16223 | ECHO_N='-n';; | |
16224 | esac | |
16225 | ||
16226 | rm -f conf$$ conf$$.exe conf$$.file | |
16227 | if test -d conf$$.dir; then | |
16228 | rm -f conf$$.dir/conf$$.file | |
16229 | else | |
16230 | rm -f conf$$.dir | |
16231 | mkdir conf$$.dir 2>/dev/null | |
16232 | fi | |
16233 | if (echo >conf$$.file) 2>/dev/null; then | |
16234 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
16235 | as_ln_s='ln -s' | |
16236 | # ... but there are two gotchas: | |
16237 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
16238 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 16239 | # In both cases, we have to default to `cp -pR'. |
48310492 | 16240 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 16241 | as_ln_s='cp -pR' |
48310492 RH |
16242 | elif ln conf$$.file conf$$ 2>/dev/null; then |
16243 | as_ln_s=ln | |
16244 | else | |
22e05272 | 16245 | as_ln_s='cp -pR' |
48310492 RH |
16246 | fi |
16247 | else | |
22e05272 | 16248 | as_ln_s='cp -pR' |
48310492 RH |
16249 | fi |
16250 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
16251 | rmdir conf$$.dir 2>/dev/null | |
16252 | ||
16253 | ||
16254 | # as_fn_mkdir_p | |
16255 | # ------------- | |
16256 | # Create "$as_dir" as a directory, including parents if necessary. | |
16257 | as_fn_mkdir_p () | |
16258 | { | |
16259 | ||
16260 | case $as_dir in #( | |
16261 | -*) as_dir=./$as_dir;; | |
16262 | esac | |
16263 | test -d "$as_dir" || eval $as_mkdir_p || { | |
16264 | as_dirs= | |
16265 | while :; do | |
16266 | case $as_dir in #( | |
16267 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
16268 | *) as_qdir=$as_dir;; | |
16269 | esac | |
16270 | as_dirs="'$as_qdir' $as_dirs" | |
16271 | as_dir=`$as_dirname -- "$as_dir" || | |
16272 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16273 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
16274 | X"$as_dir" : 'X\(//\)$' \| \ | |
16275 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
16276 | $as_echo X"$as_dir" | | |
16277 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16278 | s//\1/ | |
16279 | q | |
16280 | } | |
16281 | /^X\(\/\/\)[^/].*/{ | |
16282 | s//\1/ | |
16283 | q | |
16284 | } | |
16285 | /^X\(\/\/\)$/{ | |
16286 | s//\1/ | |
16287 | q | |
16288 | } | |
16289 | /^X\(\/\).*/{ | |
16290 | s//\1/ | |
16291 | q | |
16292 | } | |
16293 | s/.*/./; q'` | |
16294 | test -d "$as_dir" && break | |
16295 | done | |
16296 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 16297 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
48310492 RH |
16298 | |
16299 | ||
16300 | } # as_fn_mkdir_p | |
16301 | if mkdir -p . 2>/dev/null; then | |
16302 | as_mkdir_p='mkdir -p "$as_dir"' | |
16303 | else | |
16304 | test -d ./-p && rmdir ./-p | |
16305 | as_mkdir_p=false | |
16306 | fi | |
16307 | ||
22e05272 JM |
16308 | |
16309 | # as_fn_executable_p FILE | |
16310 | # ----------------------- | |
16311 | # Test if FILE is an executable regular file. | |
16312 | as_fn_executable_p () | |
16313 | { | |
16314 | test -f "$1" && test -x "$1" | |
16315 | } # as_fn_executable_p | |
16316 | as_test_x='test -x' | |
16317 | as_executable_p=as_fn_executable_p | |
48310492 RH |
16318 | |
16319 | # Sed expression to map a string onto a valid CPP name. | |
16320 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
16321 | ||
16322 | # Sed expression to map a string onto a valid variable name. | |
16323 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
16324 | ||
16325 | ||
16326 | exec 6>&1 | |
16327 | ## ----------------------------------- ## | |
16328 | ## Main body of $CONFIG_STATUS script. ## | |
16329 | ## ----------------------------------- ## | |
16330 | _ASEOF | |
16331 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
16332 | ||
16333 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16334 | # Save the log message, to keep $0 and so on meaningful, and to | |
16335 | # report actual input values of CONFIG_FILES etc. instead of their | |
16336 | # values after options handling. | |
16337 | ac_log=" | |
16338 | This file was extended by GNU Atomic Library $as_me 1.0, which was | |
22e05272 | 16339 | generated by GNU Autoconf 2.69. Invocation command line was |
48310492 RH |
16340 | |
16341 | CONFIG_FILES = $CONFIG_FILES | |
16342 | CONFIG_HEADERS = $CONFIG_HEADERS | |
16343 | CONFIG_LINKS = $CONFIG_LINKS | |
16344 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
16345 | $ $0 $@ | |
16346 | ||
16347 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
16348 | " | |
16349 | ||
16350 | _ACEOF | |
16351 | ||
16352 | case $ac_config_files in *" | |
16353 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
16354 | esac | |
16355 | ||
16356 | case $ac_config_headers in *" | |
16357 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
16358 | esac | |
16359 | ||
16360 | ||
16361 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16362 | # Files that config.status was made for. | |
16363 | config_files="$ac_config_files" | |
16364 | config_headers="$ac_config_headers" | |
16365 | config_commands="$ac_config_commands" | |
16366 | ||
16367 | _ACEOF | |
16368 | ||
16369 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16370 | ac_cs_usage="\ | |
16371 | \`$as_me' instantiates files and other configuration actions | |
16372 | from templates according to the current configuration. Unless the files | |
16373 | and actions are specified as TAGs, all are instantiated by default. | |
16374 | ||
16375 | Usage: $0 [OPTION]... [TAG]... | |
16376 | ||
16377 | -h, --help print this help, then exit | |
16378 | -V, --version print version number and configuration settings, then exit | |
22e05272 | 16379 | --config print configuration, then exit |
48310492 RH |
16380 | -q, --quiet, --silent |
16381 | do not print progress messages | |
16382 | -d, --debug don't remove temporary files | |
16383 | --recheck update $as_me by reconfiguring in the same conditions | |
16384 | --file=FILE[:TEMPLATE] | |
16385 | instantiate the configuration file FILE | |
16386 | --header=FILE[:TEMPLATE] | |
16387 | instantiate the configuration header FILE | |
16388 | ||
16389 | Configuration files: | |
16390 | $config_files | |
16391 | ||
16392 | Configuration headers: | |
16393 | $config_headers | |
16394 | ||
16395 | Configuration commands: | |
16396 | $config_commands | |
16397 | ||
16398 | Report bugs to the package provider. | |
16399 | GNU Atomic Library home page: <http://www.gnu.org/software/libatomic/>. | |
16400 | General help using GNU software: <http://www.gnu.org/gethelp/>." | |
16401 | ||
16402 | _ACEOF | |
16403 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 16404 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
48310492 RH |
16405 | ac_cs_version="\\ |
16406 | GNU Atomic Library config.status 1.0 | |
22e05272 JM |
16407 | configured by $0, generated by GNU Autoconf 2.69, |
16408 | with options \\"\$ac_cs_config\\" | |
48310492 | 16409 | |
22e05272 | 16410 | Copyright (C) 2012 Free Software Foundation, Inc. |
48310492 RH |
16411 | This config.status script is free software; the Free Software Foundation |
16412 | gives unlimited permission to copy, distribute and modify it." | |
16413 | ||
16414 | ac_pwd='$ac_pwd' | |
16415 | srcdir='$srcdir' | |
16416 | INSTALL='$INSTALL' | |
16417 | MKDIR_P='$MKDIR_P' | |
16418 | AWK='$AWK' | |
16419 | test -n "\$AWK" || AWK=awk | |
16420 | _ACEOF | |
16421 | ||
16422 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16423 | # The default lists apply if the user does not specify any file. | |
16424 | ac_need_defaults=: | |
16425 | while test $# != 0 | |
16426 | do | |
16427 | case $1 in | |
22e05272 | 16428 | --*=?*) |
48310492 RH |
16429 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
16430 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
16431 | ac_shift=: | |
16432 | ;; | |
22e05272 JM |
16433 | --*=) |
16434 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
16435 | ac_optarg= | |
16436 | ac_shift=: | |
16437 | ;; | |
48310492 RH |
16438 | *) |
16439 | ac_option=$1 | |
16440 | ac_optarg=$2 | |
16441 | ac_shift=shift | |
16442 | ;; | |
16443 | esac | |
16444 | ||
16445 | case $ac_option in | |
16446 | # Handling of the options. | |
16447 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
16448 | ac_cs_recheck=: ;; | |
16449 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
16450 | $as_echo "$ac_cs_version"; exit ;; | |
22e05272 JM |
16451 | --config | --confi | --conf | --con | --co | --c ) |
16452 | $as_echo "$ac_cs_config"; exit ;; | |
48310492 RH |
16453 | --debug | --debu | --deb | --de | --d | -d ) |
16454 | debug=: ;; | |
16455 | --file | --fil | --fi | --f ) | |
16456 | $ac_shift | |
16457 | case $ac_optarg in | |
16458 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
22e05272 | 16459 | '') as_fn_error $? "missing file argument" ;; |
48310492 RH |
16460 | esac |
16461 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
16462 | ac_need_defaults=false;; | |
16463 | --header | --heade | --head | --hea ) | |
16464 | $ac_shift | |
16465 | case $ac_optarg in | |
16466 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
16467 | esac | |
16468 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
16469 | ac_need_defaults=false;; | |
16470 | --he | --h) | |
16471 | # Conflict between --help and --header | |
22e05272 | 16472 | as_fn_error $? "ambiguous option: \`$1' |
48310492 RH |
16473 | Try \`$0 --help' for more information.";; |
16474 | --help | --hel | -h ) | |
16475 | $as_echo "$ac_cs_usage"; exit ;; | |
16476 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
16477 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
16478 | ac_cs_silent=: ;; | |
16479 | ||
16480 | # This is an error. | |
22e05272 | 16481 | -*) as_fn_error $? "unrecognized option: \`$1' |
48310492 RH |
16482 | Try \`$0 --help' for more information." ;; |
16483 | ||
16484 | *) as_fn_append ac_config_targets " $1" | |
16485 | ac_need_defaults=false ;; | |
16486 | ||
16487 | esac | |
16488 | shift | |
16489 | done | |
16490 | ||
16491 | ac_configure_extra_args= | |
16492 | ||
16493 | if $ac_cs_silent; then | |
16494 | exec 6>/dev/null | |
16495 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
16496 | fi | |
16497 | ||
16498 | _ACEOF | |
16499 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16500 | if \$ac_cs_recheck; then | |
22e05272 | 16501 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
48310492 RH |
16502 | shift |
16503 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
16504 | CONFIG_SHELL='$SHELL' | |
16505 | export CONFIG_SHELL | |
16506 | exec "\$@" | |
16507 | fi | |
16508 | ||
16509 | _ACEOF | |
16510 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16511 | exec 5>>config.log | |
16512 | { | |
16513 | echo | |
16514 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
16515 | ## Running $as_me. ## | |
16516 | _ASBOX | |
16517 | $as_echo "$ac_log" | |
16518 | } >&5 | |
16519 | ||
16520 | _ACEOF | |
16521 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16522 | # | |
16523 | # INIT-COMMANDS | |
16524 | # | |
16525 | ||
16526 | srcdir="$srcdir" | |
16527 | host="$host" | |
16528 | target="$target" | |
16529 | with_multisubdir="$with_multisubdir" | |
16530 | with_multisrctop="$with_multisrctop" | |
16531 | with_target_subdir="$with_target_subdir" | |
16532 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
16533 | multi_basedir="$multi_basedir" | |
16534 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
16535 | CC="$CC" | |
16536 | CXX="$CXX" | |
16537 | GFORTRAN="$GFORTRAN" | |
22e05272 | 16538 | GDC="$GDC" |
48310492 RH |
16539 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
16540 | ||
16541 | ||
16542 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
16543 | # if CDPATH is set. | |
16544 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
16545 | ||
16546 | sed_quote_subst='$sed_quote_subst' | |
16547 | double_quote_subst='$double_quote_subst' | |
16548 | delay_variable_subst='$delay_variable_subst' | |
16549 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
16550 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
16551 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
16552 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
16553 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
16554 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
16555 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
16556 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
16557 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
16558 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
16559 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
16560 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
16561 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
16562 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
16563 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
16564 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
16565 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
16566 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
16567 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
16568 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
16569 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
16570 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
16571 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
16572 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
16573 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
16574 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
16575 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
16576 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
16577 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
16578 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
16579 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
16580 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
16581 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
16582 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
16583 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
16584 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
16585 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
16586 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
16587 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
16588 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
16589 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
16590 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
16591 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
16592 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
16593 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
16594 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
16595 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
16596 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
16597 | 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"`' | |
16598 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
16599 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
16600 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
16601 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
16602 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
16603 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
16604 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
16605 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
16606 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
16607 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
16608 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
16609 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
16610 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
16611 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
16612 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
16613 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
16614 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
16615 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
16616 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
16617 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
16618 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
16619 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
16620 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
16621 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
16622 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
16623 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
16624 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
16625 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
16626 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
16627 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
16628 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
16629 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
16630 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
16631 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
16632 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
16633 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
16634 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
16635 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
16636 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
16637 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
16638 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
16639 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
16640 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
16641 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
16642 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
16643 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
16644 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
16645 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
16646 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
16647 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
16648 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
16649 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
16650 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
16651 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
16652 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
16653 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
16654 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
16655 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
16656 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
16657 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
16658 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
16659 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
16660 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
16661 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
16662 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
16663 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
16664 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
16665 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
16666 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
16667 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
16668 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
16669 | ||
16670 | LTCC='$LTCC' | |
16671 | LTCFLAGS='$LTCFLAGS' | |
16672 | compiler='$compiler_DEFAULT' | |
16673 | ||
16674 | # A function that is used when there is no print builtin or printf. | |
16675 | func_fallback_echo () | |
16676 | { | |
16677 | eval 'cat <<_LTECHO_EOF | |
16678 | \$1 | |
16679 | _LTECHO_EOF' | |
16680 | } | |
16681 | ||
16682 | # Quote evaled strings. | |
16683 | for var in SHELL \ | |
16684 | ECHO \ | |
16685 | SED \ | |
16686 | GREP \ | |
16687 | EGREP \ | |
16688 | FGREP \ | |
16689 | LD \ | |
16690 | NM \ | |
16691 | LN_S \ | |
16692 | lt_SP2NL \ | |
16693 | lt_NL2SP \ | |
16694 | reload_flag \ | |
16695 | OBJDUMP \ | |
16696 | deplibs_check_method \ | |
16697 | file_magic_cmd \ | |
16698 | AR \ | |
16699 | AR_FLAGS \ | |
16700 | STRIP \ | |
16701 | RANLIB \ | |
16702 | CC \ | |
16703 | CFLAGS \ | |
16704 | compiler \ | |
16705 | lt_cv_sys_global_symbol_pipe \ | |
16706 | lt_cv_sys_global_symbol_to_cdecl \ | |
16707 | lt_cv_sys_global_symbol_to_c_name_address \ | |
16708 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
16709 | lt_prog_compiler_no_builtin_flag \ | |
16710 | lt_prog_compiler_wl \ | |
16711 | lt_prog_compiler_pic \ | |
16712 | lt_prog_compiler_static \ | |
16713 | lt_cv_prog_compiler_c_o \ | |
16714 | need_locks \ | |
16715 | DSYMUTIL \ | |
16716 | NMEDIT \ | |
16717 | LIPO \ | |
16718 | OTOOL \ | |
16719 | OTOOL64 \ | |
16720 | shrext_cmds \ | |
16721 | export_dynamic_flag_spec \ | |
16722 | whole_archive_flag_spec \ | |
16723 | compiler_needs_object \ | |
16724 | with_gnu_ld \ | |
16725 | allow_undefined_flag \ | |
16726 | no_undefined_flag \ | |
16727 | hardcode_libdir_flag_spec \ | |
16728 | hardcode_libdir_flag_spec_ld \ | |
16729 | hardcode_libdir_separator \ | |
16730 | fix_srcfile_path \ | |
16731 | exclude_expsyms \ | |
16732 | include_expsyms \ | |
16733 | file_list_spec \ | |
16734 | variables_saved_for_relink \ | |
16735 | libname_spec \ | |
16736 | library_names_spec \ | |
16737 | soname_spec \ | |
16738 | install_override_mode \ | |
16739 | finish_eval \ | |
16740 | old_striplib \ | |
16741 | striplib; do | |
16742 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
16743 | *[\\\\\\\`\\"\\\$]*) | |
16744 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
16745 | ;; | |
16746 | *) | |
16747 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
16748 | ;; | |
16749 | esac | |
16750 | done | |
16751 | ||
16752 | # Double-quote double-evaled strings. | |
16753 | for var in reload_cmds \ | |
16754 | old_postinstall_cmds \ | |
16755 | old_postuninstall_cmds \ | |
16756 | old_archive_cmds \ | |
16757 | extract_expsyms_cmds \ | |
16758 | old_archive_from_new_cmds \ | |
16759 | old_archive_from_expsyms_cmds \ | |
16760 | archive_cmds \ | |
16761 | archive_expsym_cmds \ | |
16762 | module_cmds \ | |
16763 | module_expsym_cmds \ | |
16764 | export_symbols_cmds \ | |
16765 | prelink_cmds \ | |
16766 | postinstall_cmds \ | |
16767 | postuninstall_cmds \ | |
16768 | finish_cmds \ | |
16769 | sys_lib_search_path_spec \ | |
16770 | sys_lib_dlsearch_path_spec; do | |
16771 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
16772 | *[\\\\\\\`\\"\\\$]*) | |
16773 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
16774 | ;; | |
16775 | *) | |
16776 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
16777 | ;; | |
16778 | esac | |
16779 | done | |
16780 | ||
16781 | ac_aux_dir='$ac_aux_dir' | |
16782 | xsi_shell='$xsi_shell' | |
16783 | lt_shell_append='$lt_shell_append' | |
16784 | ||
16785 | # See if we are running on zsh, and set the options which allow our | |
16786 | # commands through without removal of \ escapes INIT. | |
16787 | if test -n "\${ZSH_VERSION+set}" ; then | |
16788 | setopt NO_GLOB_SUBST | |
16789 | fi | |
16790 | ||
16791 | ||
16792 | PACKAGE='$PACKAGE' | |
16793 | VERSION='$VERSION' | |
16794 | TIMESTAMP='$TIMESTAMP' | |
16795 | RM='$RM' | |
16796 | ofile='$ofile' | |
16797 | ||
16798 | ||
16799 | ||
16800 | ||
16801 | GCC="$GCC" | |
16802 | CC="$CC" | |
16803 | acx_cv_header_stdint="$acx_cv_header_stdint" | |
16804 | acx_cv_type_int8_t="$acx_cv_type_int8_t" | |
16805 | acx_cv_type_int16_t="$acx_cv_type_int16_t" | |
16806 | acx_cv_type_int32_t="$acx_cv_type_int32_t" | |
16807 | acx_cv_type_int64_t="$acx_cv_type_int64_t" | |
16808 | acx_cv_type_intptr_t="$acx_cv_type_intptr_t" | |
16809 | ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" | |
16810 | ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" | |
16811 | ac_cv_type_uint64_t="$ac_cv_type_uint64_t" | |
16812 | ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" | |
16813 | ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" | |
16814 | ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" | |
16815 | ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" | |
16816 | ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" | |
16817 | ||
16818 | ||
16819 | _ACEOF | |
16820 | ||
16821 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16822 | ||
16823 | # Handling of arguments. | |
16824 | for ac_config_target in $ac_config_targets | |
16825 | do | |
16826 | case $ac_config_target in | |
16827 | "auto-config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-config.h" ;; | |
16828 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
16829 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
16830 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
16831 | "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;; | |
16832 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
16833 | "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; | |
5ff06d76 | 16834 | "testsuite/libatomic-site-extra.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libatomic-site-extra.exp" ;; |
48310492 | 16835 | |
22e05272 | 16836 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
48310492 RH |
16837 | esac |
16838 | done | |
16839 | ||
16840 | ||
16841 | # If the user did not use the arguments to specify the items to instantiate, | |
16842 | # then the envvar interface is used. Set only those that are not. | |
16843 | # We use the long form for the default assignment because of an extremely | |
16844 | # bizarre bug on SunOS 4.1.3. | |
16845 | if $ac_need_defaults; then | |
16846 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
16847 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
16848 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
16849 | fi | |
16850 | ||
16851 | # Have a temporary directory for convenience. Make it in the build tree | |
16852 | # simply because there is no reason against having it here, and in addition, | |
16853 | # creating and moving files from /tmp can sometimes cause problems. | |
16854 | # Hook for its removal unless debugging. | |
16855 | # Note that there is a small window in which the directory will not be cleaned: | |
16856 | # after its creation but before its name has been assigned to `$tmp'. | |
16857 | $debug || | |
16858 | { | |
22e05272 | 16859 | tmp= ac_tmp= |
48310492 | 16860 | trap 'exit_status=$? |
22e05272 JM |
16861 | : "${ac_tmp:=$tmp}" |
16862 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
48310492 RH |
16863 | ' 0 |
16864 | trap 'as_fn_exit 1' 1 2 13 15 | |
16865 | } | |
16866 | # Create a (secure) tmp directory for tmp files. | |
16867 | ||
16868 | { | |
16869 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
22e05272 | 16870 | test -d "$tmp" |
48310492 RH |
16871 | } || |
16872 | { | |
16873 | tmp=./conf$$-$RANDOM | |
16874 | (umask 077 && mkdir "$tmp") | |
22e05272 JM |
16875 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
16876 | ac_tmp=$tmp | |
48310492 RH |
16877 | |
16878 | # Set up the scripts for CONFIG_FILES section. | |
16879 | # No need to generate them if there are no CONFIG_FILES. | |
16880 | # This happens for instance with `./config.status config.h'. | |
16881 | if test -n "$CONFIG_FILES"; then | |
16882 | ||
16883 | ||
16884 | ac_cr=`echo X | tr X '\015'` | |
16885 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
16886 | # But we know of no other shell where ac_cr would be empty at this | |
16887 | # point, so we can use a bashism as a fallback. | |
16888 | if test "x$ac_cr" = x; then | |
16889 | eval ac_cr=\$\'\\r\' | |
16890 | fi | |
16891 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
16892 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
22e05272 | 16893 | ac_cs_awk_cr='\\r' |
48310492 RH |
16894 | else |
16895 | ac_cs_awk_cr=$ac_cr | |
16896 | fi | |
16897 | ||
22e05272 | 16898 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
48310492 RH |
16899 | _ACEOF |
16900 | ||
16901 | ||
16902 | { | |
16903 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
16904 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
16905 | echo "_ACEOF" | |
16906 | } >conf$$subs.sh || | |
22e05272 JM |
16907 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
16908 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
48310492 RH |
16909 | ac_delim='%!_!# ' |
16910 | for ac_last_try in false false false false false :; do | |
16911 | . ./conf$$subs.sh || | |
22e05272 | 16912 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
48310492 RH |
16913 | |
16914 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
16915 | if test $ac_delim_n = $ac_delim_num; then | |
16916 | break | |
16917 | elif $ac_last_try; then | |
22e05272 | 16918 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
48310492 RH |
16919 | else |
16920 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16921 | fi | |
16922 | done | |
16923 | rm -f conf$$subs.sh | |
16924 | ||
16925 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 16926 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
48310492 RH |
16927 | _ACEOF |
16928 | sed -n ' | |
16929 | h | |
16930 | s/^/S["/; s/!.*/"]=/ | |
16931 | p | |
16932 | g | |
16933 | s/^[^!]*!// | |
16934 | :repl | |
16935 | t repl | |
16936 | s/'"$ac_delim"'$// | |
16937 | t delim | |
16938 | :nl | |
16939 | h | |
22e05272 | 16940 | s/\(.\{148\}\)..*/\1/ |
48310492 RH |
16941 | t more1 |
16942 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
16943 | p | |
16944 | n | |
16945 | b repl | |
16946 | :more1 | |
16947 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16948 | p | |
16949 | g | |
16950 | s/.\{148\}// | |
16951 | t nl | |
16952 | :delim | |
16953 | h | |
22e05272 | 16954 | s/\(.\{148\}\)..*/\1/ |
48310492 RH |
16955 | t more2 |
16956 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
16957 | p | |
16958 | b | |
16959 | :more2 | |
16960 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16961 | p | |
16962 | g | |
16963 | s/.\{148\}// | |
16964 | t delim | |
16965 | ' <conf$$subs.awk | sed ' | |
16966 | /^[^""]/{ | |
16967 | N | |
16968 | s/\n// | |
16969 | } | |
16970 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
16971 | rm -f conf$$subs.awk | |
16972 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16973 | _ACAWK | |
22e05272 | 16974 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
48310492 RH |
16975 | for (key in S) S_is_set[key] = 1 |
16976 | FS = "\a" | |
16977 | ||
16978 | } | |
16979 | { | |
16980 | line = $ 0 | |
16981 | nfields = split(line, field, "@") | |
16982 | substed = 0 | |
16983 | len = length(field[1]) | |
16984 | for (i = 2; i < nfields; i++) { | |
16985 | key = field[i] | |
16986 | keylen = length(key) | |
16987 | if (S_is_set[key]) { | |
16988 | value = S[key] | |
16989 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
16990 | len += length(value) + length(field[++i]) | |
16991 | substed = 1 | |
16992 | } else | |
16993 | len += 1 + keylen | |
16994 | } | |
16995 | ||
16996 | print line | |
16997 | } | |
16998 | ||
16999 | _ACAWK | |
17000 | _ACEOF | |
17001 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17002 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
17003 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
17004 | else | |
17005 | cat | |
22e05272 JM |
17006 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
17007 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
48310492 RH |
17008 | _ACEOF |
17009 | ||
22e05272 JM |
17010 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
17011 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
48310492 RH |
17012 | # trailing colons and then remove the whole line if VPATH becomes empty |
17013 | # (actually we leave an empty line to preserve line numbers). | |
17014 | if test "x$srcdir" = x.; then | |
22e05272 JM |
17015 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
17016 | h | |
17017 | s/// | |
17018 | s/^/:/ | |
17019 | s/[ ]*$/:/ | |
17020 | s/:\$(srcdir):/:/g | |
17021 | s/:\${srcdir}:/:/g | |
17022 | s/:@srcdir@:/:/g | |
17023 | s/^:*// | |
48310492 | 17024 | s/:*$// |
22e05272 JM |
17025 | x |
17026 | s/\(=[ ]*\).*/\1/ | |
17027 | G | |
17028 | s/\n// | |
48310492 RH |
17029 | s/^[^=]*=[ ]*$// |
17030 | }' | |
17031 | fi | |
17032 | ||
17033 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17034 | fi # test -n "$CONFIG_FILES" | |
17035 | ||
17036 | # Set up the scripts for CONFIG_HEADERS section. | |
17037 | # No need to generate them if there are no CONFIG_HEADERS. | |
17038 | # This happens for instance with `./config.status Makefile'. | |
17039 | if test -n "$CONFIG_HEADERS"; then | |
22e05272 | 17040 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
48310492 RH |
17041 | BEGIN { |
17042 | _ACEOF | |
17043 | ||
17044 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
17045 | # here-document in config.status, that substitutes the proper values into | |
17046 | # config.h.in to produce config.h. | |
17047 | ||
17048 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
17049 | # handling of long lines. | |
17050 | ac_delim='%!_!# ' | |
17051 | for ac_last_try in false false :; do | |
22e05272 JM |
17052 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
17053 | if test -z "$ac_tt"; then | |
48310492 RH |
17054 | break |
17055 | elif $ac_last_try; then | |
22e05272 | 17056 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
48310492 RH |
17057 | else |
17058 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
17059 | fi | |
17060 | done | |
17061 | ||
17062 | # For the awk script, D is an array of macro values keyed by name, | |
17063 | # likewise P contains macro parameters if any. Preserve backslash | |
17064 | # newline sequences. | |
17065 | ||
17066 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
17067 | sed -n ' | |
17068 | s/.\{148\}/&'"$ac_delim"'/g | |
17069 | t rset | |
17070 | :rset | |
17071 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
17072 | t def | |
17073 | d | |
17074 | :def | |
17075 | s/\\$// | |
17076 | t bsnl | |
17077 | s/["\\]/\\&/g | |
17078 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
17079 | D["\1"]=" \3"/p | |
17080 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
17081 | d | |
17082 | :bsnl | |
17083 | s/["\\]/\\&/g | |
17084 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
17085 | D["\1"]=" \3\\\\\\n"\\/p | |
17086 | t cont | |
17087 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
17088 | t cont | |
17089 | d | |
17090 | :cont | |
17091 | n | |
17092 | s/.\{148\}/&'"$ac_delim"'/g | |
17093 | t clear | |
17094 | :clear | |
17095 | s/\\$// | |
17096 | t bsnlc | |
17097 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
17098 | d | |
17099 | :bsnlc | |
17100 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
17101 | b cont | |
17102 | ' <confdefs.h | sed ' | |
17103 | s/'"$ac_delim"'/"\\\ | |
17104 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
17105 | ||
17106 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17107 | for (key in D) D_is_set[key] = 1 | |
17108 | FS = "\a" | |
17109 | } | |
17110 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
17111 | line = \$ 0 | |
17112 | split(line, arg, " ") | |
17113 | if (arg[1] == "#") { | |
17114 | defundef = arg[2] | |
17115 | mac1 = arg[3] | |
17116 | } else { | |
17117 | defundef = substr(arg[1], 2) | |
17118 | mac1 = arg[2] | |
17119 | } | |
17120 | split(mac1, mac2, "(") #) | |
17121 | macro = mac2[1] | |
17122 | prefix = substr(line, 1, index(line, defundef) - 1) | |
17123 | if (D_is_set[macro]) { | |
17124 | # Preserve the white space surrounding the "#". | |
17125 | print prefix "define", macro P[macro] D[macro] | |
17126 | next | |
17127 | } else { | |
17128 | # Replace #undef with comments. This is necessary, for example, | |
17129 | # in the case of _POSIX_SOURCE, which is predefined and required | |
17130 | # on some systems where configure will not decide to define it. | |
17131 | if (defundef == "undef") { | |
17132 | print "/*", prefix defundef, macro, "*/" | |
17133 | next | |
17134 | } | |
17135 | } | |
17136 | } | |
17137 | { print } | |
17138 | _ACAWK | |
17139 | _ACEOF | |
17140 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
22e05272 | 17141 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
48310492 RH |
17142 | fi # test -n "$CONFIG_HEADERS" |
17143 | ||
17144 | ||
17145 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
17146 | shift | |
17147 | for ac_tag | |
17148 | do | |
17149 | case $ac_tag in | |
17150 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
17151 | esac | |
17152 | case $ac_mode$ac_tag in | |
17153 | :[FHL]*:*);; | |
22e05272 | 17154 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
48310492 RH |
17155 | :[FH]-) ac_tag=-:-;; |
17156 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
17157 | esac | |
17158 | ac_save_IFS=$IFS | |
17159 | IFS=: | |
17160 | set x $ac_tag | |
17161 | IFS=$ac_save_IFS | |
17162 | shift | |
17163 | ac_file=$1 | |
17164 | shift | |
17165 | ||
17166 | case $ac_mode in | |
17167 | :L) ac_source=$1;; | |
17168 | :[FH]) | |
17169 | ac_file_inputs= | |
17170 | for ac_f | |
17171 | do | |
17172 | case $ac_f in | |
22e05272 | 17173 | -) ac_f="$ac_tmp/stdin";; |
48310492 RH |
17174 | *) # Look for the file first in the build tree, then in the source tree |
17175 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
17176 | # because $ac_f cannot contain `:'. | |
17177 | test -f "$ac_f" || | |
17178 | case $ac_f in | |
17179 | [\\/$]*) false;; | |
17180 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
17181 | esac || | |
22e05272 | 17182 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
48310492 RH |
17183 | esac |
17184 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
17185 | as_fn_append ac_file_inputs " '$ac_f'" | |
17186 | done | |
17187 | ||
17188 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
17189 | # use $as_me), people would be surprised to read: | |
17190 | # /* config.h. Generated by config.status. */ | |
17191 | configure_input='Generated from '` | |
17192 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
17193 | `' by configure.' | |
17194 | if test x"$ac_file" != x-; then | |
17195 | configure_input="$ac_file. $configure_input" | |
17196 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
17197 | $as_echo "$as_me: creating $ac_file" >&6;} | |
17198 | fi | |
17199 | # Neutralize special characters interpreted by sed in replacement strings. | |
17200 | case $configure_input in #( | |
17201 | *\&* | *\|* | *\\* ) | |
17202 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
17203 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
17204 | *) ac_sed_conf_input=$configure_input;; | |
17205 | esac | |
17206 | ||
17207 | case $ac_tag in | |
22e05272 JM |
17208 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
17209 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
48310492 RH |
17210 | esac |
17211 | ;; | |
17212 | esac | |
17213 | ||
17214 | ac_dir=`$as_dirname -- "$ac_file" || | |
17215 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17216 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
17217 | X"$ac_file" : 'X\(//\)$' \| \ | |
17218 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
17219 | $as_echo X"$ac_file" | | |
17220 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17221 | s//\1/ | |
17222 | q | |
17223 | } | |
17224 | /^X\(\/\/\)[^/].*/{ | |
17225 | s//\1/ | |
17226 | q | |
17227 | } | |
17228 | /^X\(\/\/\)$/{ | |
17229 | s//\1/ | |
17230 | q | |
17231 | } | |
17232 | /^X\(\/\).*/{ | |
17233 | s//\1/ | |
17234 | q | |
17235 | } | |
17236 | s/.*/./; q'` | |
17237 | as_dir="$ac_dir"; as_fn_mkdir_p | |
17238 | ac_builddir=. | |
17239 | ||
17240 | case "$ac_dir" in | |
17241 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
17242 | *) | |
17243 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
17244 | # A ".." for each directory in $ac_dir_suffix. | |
17245 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
17246 | case $ac_top_builddir_sub in | |
17247 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
17248 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
17249 | esac ;; | |
17250 | esac | |
17251 | ac_abs_top_builddir=$ac_pwd | |
17252 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
17253 | # for backward compatibility: | |
17254 | ac_top_builddir=$ac_top_build_prefix | |
17255 | ||
17256 | case $srcdir in | |
17257 | .) # We are building in place. | |
17258 | ac_srcdir=. | |
17259 | ac_top_srcdir=$ac_top_builddir_sub | |
17260 | ac_abs_top_srcdir=$ac_pwd ;; | |
17261 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
17262 | ac_srcdir=$srcdir$ac_dir_suffix; | |
17263 | ac_top_srcdir=$srcdir | |
17264 | ac_abs_top_srcdir=$srcdir ;; | |
17265 | *) # Relative name. | |
17266 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
17267 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
17268 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
17269 | esac | |
17270 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
17271 | ||
17272 | ||
17273 | case $ac_mode in | |
17274 | :F) | |
17275 | # | |
17276 | # CONFIG_FILE | |
17277 | # | |
17278 | ||
17279 | case $INSTALL in | |
17280 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
17281 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
17282 | esac | |
17283 | ac_MKDIR_P=$MKDIR_P | |
17284 | case $MKDIR_P in | |
17285 | [\\/$]* | ?:[\\/]* ) ;; | |
17286 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
17287 | esac | |
17288 | _ACEOF | |
17289 | ||
17290 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17291 | # If the template does not know about datarootdir, expand it. | |
17292 | # FIXME: This hack should be removed a few years after 2.60. | |
17293 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
17294 | ac_sed_dataroot=' | |
17295 | /datarootdir/ { | |
17296 | p | |
17297 | q | |
17298 | } | |
17299 | /@datadir@/p | |
17300 | /@docdir@/p | |
17301 | /@infodir@/p | |
17302 | /@localedir@/p | |
17303 | /@mandir@/p' | |
17304 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
17305 | *datarootdir*) ac_datarootdir_seen=yes;; | |
17306 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
17307 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
17308 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
17309 | _ACEOF | |
17310 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17311 | ac_datarootdir_hack=' | |
17312 | s&@datadir@&$datadir&g | |
17313 | s&@docdir@&$docdir&g | |
17314 | s&@infodir@&$infodir&g | |
17315 | s&@localedir@&$localedir&g | |
17316 | s&@mandir@&$mandir&g | |
17317 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
17318 | esac | |
17319 | _ACEOF | |
17320 | ||
17321 | # Neutralize VPATH when `$srcdir' = `.'. | |
17322 | # Shell code in configure.ac might set extrasub. | |
17323 | # FIXME: do we really want to maintain this feature? | |
17324 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17325 | ac_sed_extra="$ac_vpsub | |
17326 | $extrasub | |
17327 | _ACEOF | |
17328 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17329 | :t | |
17330 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
17331 | s|@configure_input@|$ac_sed_conf_input|;t t | |
17332 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
17333 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
17334 | s&@srcdir@&$ac_srcdir&;t t | |
17335 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
17336 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
17337 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
17338 | s&@builddir@&$ac_builddir&;t t | |
17339 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
17340 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
17341 | s&@INSTALL@&$ac_INSTALL&;t t | |
17342 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
17343 | $ac_datarootdir_hack | |
17344 | " | |
22e05272 JM |
17345 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
17346 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
48310492 RH |
17347 | |
17348 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
22e05272 JM |
17349 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
17350 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
17351 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
48310492 | 17352 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 17353 | which seems to be undefined. Please make sure it is defined" >&5 |
48310492 | 17354 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 17355 | which seems to be undefined. Please make sure it is defined" >&2;} |
48310492 | 17356 | |
22e05272 | 17357 | rm -f "$ac_tmp/stdin" |
48310492 | 17358 | case $ac_file in |
22e05272 JM |
17359 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
17360 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
48310492 | 17361 | esac \ |
22e05272 | 17362 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
48310492 RH |
17363 | ;; |
17364 | :H) | |
17365 | # | |
17366 | # CONFIG_HEADER | |
17367 | # | |
17368 | if test x"$ac_file" != x-; then | |
17369 | { | |
17370 | $as_echo "/* $configure_input */" \ | |
22e05272 JM |
17371 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
17372 | } >"$ac_tmp/config.h" \ | |
17373 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
17374 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
48310492 RH |
17375 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
17376 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
17377 | else | |
17378 | rm -f "$ac_file" | |
22e05272 JM |
17379 | mv "$ac_tmp/config.h" "$ac_file" \ |
17380 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
48310492 RH |
17381 | fi |
17382 | else | |
17383 | $as_echo "/* $configure_input */" \ | |
22e05272 JM |
17384 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
17385 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
48310492 RH |
17386 | fi |
17387 | # Compute "$ac_file"'s index in $config_headers. | |
17388 | _am_arg="$ac_file" | |
17389 | _am_stamp_count=1 | |
17390 | for _am_header in $config_headers :; do | |
17391 | case $_am_header in | |
17392 | $_am_arg | $_am_arg:* ) | |
17393 | break ;; | |
17394 | * ) | |
17395 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
17396 | esac | |
17397 | done | |
17398 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
17399 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17400 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
17401 | X"$_am_arg" : 'X\(//\)$' \| \ | |
17402 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
17403 | $as_echo X"$_am_arg" | | |
17404 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17405 | s//\1/ | |
17406 | q | |
17407 | } | |
17408 | /^X\(\/\/\)[^/].*/{ | |
17409 | s//\1/ | |
17410 | q | |
17411 | } | |
17412 | /^X\(\/\/\)$/{ | |
17413 | s//\1/ | |
17414 | q | |
17415 | } | |
17416 | /^X\(\/\).*/{ | |
17417 | s//\1/ | |
17418 | q | |
17419 | } | |
17420 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
17421 | ;; | |
17422 | ||
17423 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
17424 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
17425 | ;; | |
17426 | esac | |
17427 | ||
17428 | ||
17429 | case $ac_file$ac_mode in | |
17430 | "default-1":C) | |
17431 | # Only add multilib support code if we just rebuilt the top-level | |
17432 | # Makefile. | |
17433 | case " $CONFIG_FILES " in | |
17434 | *" Makefile "*) | |
17435 | ac_file=Makefile . ${multi_basedir}/config-ml.in | |
17436 | ;; | |
17437 | esac ;; | |
17438 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
22e05272 | 17439 | # Older Autoconf quotes --file arguments for eval, but not when files |
48310492 RH |
17440 | # are listed without --file. Let's play safe and only enable the eval |
17441 | # if we detect the quoting. | |
17442 | case $CONFIG_FILES in | |
17443 | *\'*) eval set x "$CONFIG_FILES" ;; | |
17444 | *) set x $CONFIG_FILES ;; | |
17445 | esac | |
17446 | shift | |
17447 | for mf | |
17448 | do | |
17449 | # Strip MF so we end up with the name of the file. | |
17450 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
17451 | # Check whether this is an Automake generated Makefile or not. | |
22e05272 | 17452 | # We used to match only the files named 'Makefile.in', but |
48310492 RH |
17453 | # some people rename them; so instead we look at the file content. |
17454 | # Grep'ing the first line is not enough: some people post-process | |
17455 | # each Makefile.in and add a new line on top of each file to say so. | |
17456 | # Grep'ing the whole file is not good either: AIX grep has a line | |
17457 | # limit of 2048, but all sed's we know have understand at least 4000. | |
17458 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
17459 | dirpart=`$as_dirname -- "$mf" || | |
17460 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17461 | X"$mf" : 'X\(//\)[^/]' \| \ | |
17462 | X"$mf" : 'X\(//\)$' \| \ | |
17463 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
17464 | $as_echo X"$mf" | | |
17465 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17466 | s//\1/ | |
17467 | q | |
17468 | } | |
17469 | /^X\(\/\/\)[^/].*/{ | |
17470 | s//\1/ | |
17471 | q | |
17472 | } | |
17473 | /^X\(\/\/\)$/{ | |
17474 | s//\1/ | |
17475 | q | |
17476 | } | |
17477 | /^X\(\/\).*/{ | |
17478 | s//\1/ | |
17479 | q | |
17480 | } | |
17481 | s/.*/./; q'` | |
17482 | else | |
17483 | continue | |
17484 | fi | |
17485 | # Extract the definition of DEPDIR, am__include, and am__quote | |
22e05272 | 17486 | # from the Makefile without running 'make'. |
48310492 RH |
17487 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
17488 | test -z "$DEPDIR" && continue | |
17489 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
22e05272 | 17490 | test -z "$am__include" && continue |
48310492 | 17491 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
48310492 RH |
17492 | # Find all dependency output files, they are included files with |
17493 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
17494 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
17495 | # expansion. | |
17496 | for file in `sed -n " | |
17497 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
22e05272 | 17498 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
48310492 RH |
17499 | # Make sure the directory exists. |
17500 | test -f "$dirpart/$file" && continue | |
17501 | fdir=`$as_dirname -- "$file" || | |
17502 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17503 | X"$file" : 'X\(//\)[^/]' \| \ | |
17504 | X"$file" : 'X\(//\)$' \| \ | |
17505 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
17506 | $as_echo X"$file" | | |
17507 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17508 | s//\1/ | |
17509 | q | |
17510 | } | |
17511 | /^X\(\/\/\)[^/].*/{ | |
17512 | s//\1/ | |
17513 | q | |
17514 | } | |
17515 | /^X\(\/\/\)$/{ | |
17516 | s//\1/ | |
17517 | q | |
17518 | } | |
17519 | /^X\(\/\).*/{ | |
17520 | s//\1/ | |
17521 | q | |
17522 | } | |
17523 | s/.*/./; q'` | |
17524 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
17525 | # echo "creating $dirpart/$file" | |
17526 | echo '# dummy' > "$dirpart/$file" | |
17527 | done | |
17528 | done | |
17529 | } | |
17530 | ;; | |
17531 | "libtool":C) | |
17532 | ||
17533 | # See if we are running on zsh, and set the options which allow our | |
17534 | # commands through without removal of \ escapes. | |
17535 | if test -n "${ZSH_VERSION+set}" ; then | |
17536 | setopt NO_GLOB_SUBST | |
17537 | fi | |
17538 | ||
17539 | cfgfile="${ofile}T" | |
17540 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
17541 | $RM "$cfgfile" | |
17542 | ||
17543 | cat <<_LT_EOF >> "$cfgfile" | |
17544 | #! $SHELL | |
17545 | ||
17546 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
17547 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
17548 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
17549 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
17550 | # | |
17551 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
17552 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | |
17553 | # Written by Gordon Matzigkeit, 1996 | |
17554 | # | |
17555 | # This file is part of GNU Libtool. | |
17556 | # | |
17557 | # GNU Libtool is free software; you can redistribute it and/or | |
17558 | # modify it under the terms of the GNU General Public License as | |
17559 | # published by the Free Software Foundation; either version 2 of | |
17560 | # the License, or (at your option) any later version. | |
17561 | # | |
17562 | # As a special exception to the GNU General Public License, | |
17563 | # if you distribute this file as part of a program or library that | |
17564 | # is built using GNU Libtool, you may include this file under the | |
17565 | # same distribution terms that you use for the rest of that program. | |
17566 | # | |
17567 | # GNU Libtool is distributed in the hope that it will be useful, | |
17568 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17569 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17570 | # GNU General Public License for more details. | |
17571 | # | |
17572 | # You should have received a copy of the GNU General Public License | |
17573 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
17574 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
17575 | # obtained by writing to the Free Software Foundation, Inc., | |
17576 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
17577 | ||
17578 | ||
17579 | # The names of the tagged configurations supported by this script. | |
17580 | available_tags="" | |
17581 | ||
17582 | # ### BEGIN LIBTOOL CONFIG | |
17583 | ||
17584 | # Which release of libtool.m4 was used? | |
17585 | macro_version=$macro_version | |
17586 | macro_revision=$macro_revision | |
17587 | ||
17588 | # Whether or not to build shared libraries. | |
17589 | build_libtool_libs=$enable_shared | |
17590 | ||
17591 | # Whether or not to build static libraries. | |
17592 | build_old_libs=$enable_static | |
17593 | ||
17594 | # What type of objects to build. | |
17595 | pic_mode=$pic_mode | |
17596 | ||
17597 | # Whether or not to optimize for fast installation. | |
17598 | fast_install=$enable_fast_install | |
17599 | ||
17600 | # Shell to use when invoking shell scripts. | |
17601 | SHELL=$lt_SHELL | |
17602 | ||
17603 | # An echo program that protects backslashes. | |
17604 | ECHO=$lt_ECHO | |
17605 | ||
17606 | # The host system. | |
17607 | host_alias=$host_alias | |
17608 | host=$host | |
17609 | host_os=$host_os | |
17610 | ||
17611 | # The build system. | |
17612 | build_alias=$build_alias | |
17613 | build=$build | |
17614 | build_os=$build_os | |
17615 | ||
17616 | # A sed program that does not truncate output. | |
17617 | SED=$lt_SED | |
17618 | ||
17619 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
17620 | Xsed="\$SED -e 1s/^X//" | |
17621 | ||
17622 | # A grep program that handles long lines. | |
17623 | GREP=$lt_GREP | |
17624 | ||
17625 | # An ERE matcher. | |
17626 | EGREP=$lt_EGREP | |
17627 | ||
17628 | # A literal string matcher. | |
17629 | FGREP=$lt_FGREP | |
17630 | ||
17631 | # A BSD- or MS-compatible name lister. | |
17632 | NM=$lt_NM | |
17633 | ||
17634 | # Whether we need soft or hard links. | |
17635 | LN_S=$lt_LN_S | |
17636 | ||
17637 | # What is the maximum length of a command? | |
17638 | max_cmd_len=$max_cmd_len | |
17639 | ||
17640 | # Object file suffix (normally "o"). | |
17641 | objext=$ac_objext | |
17642 | ||
17643 | # Executable file suffix (normally ""). | |
17644 | exeext=$exeext | |
17645 | ||
17646 | # whether the shell understands "unset". | |
17647 | lt_unset=$lt_unset | |
17648 | ||
17649 | # turn spaces into newlines. | |
17650 | SP2NL=$lt_lt_SP2NL | |
17651 | ||
17652 | # turn newlines into spaces. | |
17653 | NL2SP=$lt_lt_NL2SP | |
17654 | ||
17655 | # An object symbol dumper. | |
17656 | OBJDUMP=$lt_OBJDUMP | |
17657 | ||
17658 | # Method to check whether dependent libraries are shared objects. | |
17659 | deplibs_check_method=$lt_deplibs_check_method | |
17660 | ||
17661 | # Command to use when deplibs_check_method == "file_magic". | |
17662 | file_magic_cmd=$lt_file_magic_cmd | |
17663 | ||
17664 | # The archiver. | |
17665 | AR=$lt_AR | |
17666 | AR_FLAGS=$lt_AR_FLAGS | |
17667 | ||
17668 | # A symbol stripping program. | |
17669 | STRIP=$lt_STRIP | |
17670 | ||
17671 | # Commands used to install an old-style archive. | |
17672 | RANLIB=$lt_RANLIB | |
17673 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
17674 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
17675 | ||
17676 | # Whether to use a lock for old archive extraction. | |
17677 | lock_old_archive_extraction=$lock_old_archive_extraction | |
17678 | ||
17679 | # A C compiler. | |
17680 | LTCC=$lt_CC | |
17681 | ||
17682 | # LTCC compiler flags. | |
17683 | LTCFLAGS=$lt_CFLAGS | |
17684 | ||
17685 | # Take the output of nm and produce a listing of raw symbols and C names. | |
17686 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
17687 | ||
17688 | # Transform the output of nm in a proper C declaration. | |
17689 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
17690 | ||
17691 | # Transform the output of nm in a C name address pair. | |
17692 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
17693 | ||
17694 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
17695 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
17696 | ||
17697 | # The name of the directory that contains temporary libtool files. | |
17698 | objdir=$objdir | |
17699 | ||
17700 | # Used to examine libraries when file_magic_cmd begins with "file". | |
17701 | MAGIC_CMD=$MAGIC_CMD | |
17702 | ||
17703 | # Must we lock files when doing compilation? | |
17704 | need_locks=$lt_need_locks | |
17705 | ||
17706 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
17707 | DSYMUTIL=$lt_DSYMUTIL | |
17708 | ||
17709 | # Tool to change global to local symbols on Mac OS X. | |
17710 | NMEDIT=$lt_NMEDIT | |
17711 | ||
17712 | # Tool to manipulate fat objects and archives on Mac OS X. | |
17713 | LIPO=$lt_LIPO | |
17714 | ||
17715 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
17716 | OTOOL=$lt_OTOOL | |
17717 | ||
17718 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
17719 | OTOOL64=$lt_OTOOL64 | |
17720 | ||
17721 | # Old archive suffix (normally "a"). | |
17722 | libext=$libext | |
17723 | ||
17724 | # Shared library suffix (normally ".so"). | |
17725 | shrext_cmds=$lt_shrext_cmds | |
17726 | ||
17727 | # The commands to extract the exported symbol list from a shared archive. | |
17728 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
17729 | ||
17730 | # Variables whose values should be saved in libtool wrapper scripts and | |
17731 | # restored at link time. | |
17732 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
17733 | ||
17734 | # Do we need the "lib" prefix for modules? | |
17735 | need_lib_prefix=$need_lib_prefix | |
17736 | ||
17737 | # Do we need a version for libraries? | |
17738 | need_version=$need_version | |
17739 | ||
17740 | # Library versioning type. | |
17741 | version_type=$version_type | |
17742 | ||
17743 | # Shared library runtime path variable. | |
17744 | runpath_var=$runpath_var | |
17745 | ||
17746 | # Shared library path variable. | |
17747 | shlibpath_var=$shlibpath_var | |
17748 | ||
17749 | # Is shlibpath searched before the hard-coded library search path? | |
17750 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
17751 | ||
17752 | # Format of library name prefix. | |
17753 | libname_spec=$lt_libname_spec | |
17754 | ||
17755 | # List of archive names. First name is the real one, the rest are links. | |
17756 | # The last name is the one that the linker finds with -lNAME | |
17757 | library_names_spec=$lt_library_names_spec | |
17758 | ||
17759 | # The coded name of the library, if different from the real name. | |
17760 | soname_spec=$lt_soname_spec | |
17761 | ||
17762 | # Permission mode override for installation of shared libraries. | |
17763 | install_override_mode=$lt_install_override_mode | |
17764 | ||
17765 | # Command to use after installation of a shared archive. | |
17766 | postinstall_cmds=$lt_postinstall_cmds | |
17767 | ||
17768 | # Command to use after uninstallation of a shared archive. | |
17769 | postuninstall_cmds=$lt_postuninstall_cmds | |
17770 | ||
17771 | # Commands used to finish a libtool library installation in a directory. | |
17772 | finish_cmds=$lt_finish_cmds | |
17773 | ||
17774 | # As "finish_cmds", except a single script fragment to be evaled but | |
17775 | # not shown. | |
17776 | finish_eval=$lt_finish_eval | |
17777 | ||
17778 | # Whether we should hardcode library paths into libraries. | |
17779 | hardcode_into_libs=$hardcode_into_libs | |
17780 | ||
17781 | # Compile-time system search path for libraries. | |
17782 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
17783 | ||
17784 | # Run-time system search path for libraries. | |
17785 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
17786 | ||
17787 | # Whether dlopen is supported. | |
17788 | dlopen_support=$enable_dlopen | |
17789 | ||
17790 | # Whether dlopen of programs is supported. | |
17791 | dlopen_self=$enable_dlopen_self | |
17792 | ||
17793 | # Whether dlopen of statically linked programs is supported. | |
17794 | dlopen_self_static=$enable_dlopen_self_static | |
17795 | ||
17796 | # Commands to strip libraries. | |
17797 | old_striplib=$lt_old_striplib | |
17798 | striplib=$lt_striplib | |
17799 | ||
17800 | ||
17801 | # The linker used to build libraries. | |
17802 | LD=$lt_LD | |
17803 | ||
17804 | # How to create reloadable object files. | |
17805 | reload_flag=$lt_reload_flag | |
17806 | reload_cmds=$lt_reload_cmds | |
17807 | ||
17808 | # Commands used to build an old-style archive. | |
17809 | old_archive_cmds=$lt_old_archive_cmds | |
17810 | ||
17811 | # A language specific compiler. | |
17812 | CC=$lt_compiler | |
17813 | ||
17814 | # Is the compiler the GNU compiler? | |
17815 | with_gcc=$GCC | |
17816 | ||
17817 | # Compiler flag to turn off builtin functions. | |
17818 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
17819 | ||
17820 | # How to pass a linker flag through the compiler. | |
17821 | wl=$lt_lt_prog_compiler_wl | |
17822 | ||
17823 | # Additional compiler flags for building library objects. | |
17824 | pic_flag=$lt_lt_prog_compiler_pic | |
17825 | ||
17826 | # Compiler flag to prevent dynamic linking. | |
17827 | link_static_flag=$lt_lt_prog_compiler_static | |
17828 | ||
17829 | # Does compiler simultaneously support -c and -o options? | |
17830 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
17831 | ||
17832 | # Whether or not to add -lc for building shared libraries. | |
17833 | build_libtool_need_lc=$archive_cmds_need_lc | |
17834 | ||
17835 | # Whether or not to disallow shared libs when runtime libs are static. | |
17836 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
17837 | ||
17838 | # Compiler flag to allow reflexive dlopens. | |
17839 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
17840 | ||
17841 | # Compiler flag to generate shared objects directly from archives. | |
17842 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
17843 | ||
17844 | # Whether the compiler copes with passing no objects directly. | |
17845 | compiler_needs_object=$lt_compiler_needs_object | |
17846 | ||
17847 | # Create an old-style archive from a shared archive. | |
17848 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
17849 | ||
17850 | # Create a temporary old-style archive to link instead of a shared archive. | |
17851 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
17852 | ||
17853 | # Commands used to build a shared archive. | |
17854 | archive_cmds=$lt_archive_cmds | |
17855 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
17856 | ||
17857 | # Commands used to build a loadable module if different from building | |
17858 | # a shared archive. | |
17859 | module_cmds=$lt_module_cmds | |
17860 | module_expsym_cmds=$lt_module_expsym_cmds | |
17861 | ||
17862 | # Whether we are building with GNU ld or not. | |
17863 | with_gnu_ld=$lt_with_gnu_ld | |
17864 | ||
17865 | # Flag that allows shared libraries with undefined symbols to be built. | |
17866 | allow_undefined_flag=$lt_allow_undefined_flag | |
17867 | ||
17868 | # Flag that enforces no undefined symbols. | |
17869 | no_undefined_flag=$lt_no_undefined_flag | |
17870 | ||
17871 | # Flag to hardcode \$libdir into a binary during linking. | |
17872 | # This must work even if \$libdir does not exist | |
17873 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
17874 | ||
17875 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
17876 | # during linking. This must work even if \$libdir does not exist. | |
17877 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
17878 | ||
17879 | # Whether we need a single "-rpath" flag with a separated argument. | |
17880 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
17881 | ||
17882 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
17883 | # DIR into the resulting binary. | |
17884 | hardcode_direct=$hardcode_direct | |
17885 | ||
17886 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
17887 | # DIR into the resulting binary and the resulting library dependency is | |
17888 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
17889 | # library is relocated. | |
17890 | hardcode_direct_absolute=$hardcode_direct_absolute | |
17891 | ||
17892 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
17893 | # into the resulting binary. | |
17894 | hardcode_minus_L=$hardcode_minus_L | |
17895 | ||
17896 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
17897 | # into the resulting binary. | |
17898 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
17899 | ||
17900 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
17901 | # into the library and all subsequent libraries and executables linked | |
17902 | # against it. | |
17903 | hardcode_automatic=$hardcode_automatic | |
17904 | ||
17905 | # Set to yes if linker adds runtime paths of dependent libraries | |
17906 | # to runtime path list. | |
17907 | inherit_rpath=$inherit_rpath | |
17908 | ||
17909 | # Whether libtool must link a program against all its dependency libraries. | |
17910 | link_all_deplibs=$link_all_deplibs | |
17911 | ||
17912 | # Fix the shell variable \$srcfile for the compiler. | |
17913 | fix_srcfile_path=$lt_fix_srcfile_path | |
17914 | ||
17915 | # Set to "yes" if exported symbols are required. | |
17916 | always_export_symbols=$always_export_symbols | |
17917 | ||
17918 | # The commands to list exported symbols. | |
17919 | export_symbols_cmds=$lt_export_symbols_cmds | |
17920 | ||
17921 | # Symbols that should not be listed in the preloaded symbols. | |
17922 | exclude_expsyms=$lt_exclude_expsyms | |
17923 | ||
17924 | # Symbols that must always be exported. | |
17925 | include_expsyms=$lt_include_expsyms | |
17926 | ||
17927 | # Commands necessary for linking programs (against libraries) with templates. | |
17928 | prelink_cmds=$lt_prelink_cmds | |
17929 | ||
17930 | # Specify filename containing input files. | |
17931 | file_list_spec=$lt_file_list_spec | |
17932 | ||
17933 | # How to hardcode a shared library path into an executable. | |
17934 | hardcode_action=$hardcode_action | |
17935 | ||
17936 | # ### END LIBTOOL CONFIG | |
17937 | ||
17938 | _LT_EOF | |
17939 | ||
17940 | case $host_os in | |
17941 | aix3*) | |
17942 | cat <<\_LT_EOF >> "$cfgfile" | |
17943 | # AIX sometimes has problems with the GCC collect2 program. For some | |
17944 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
17945 | # vanish in a puff of smoke. | |
17946 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
17947 | COLLECT_NAMES= | |
17948 | export COLLECT_NAMES | |
17949 | fi | |
17950 | _LT_EOF | |
17951 | ;; | |
17952 | esac | |
17953 | ||
17954 | ||
17955 | ltmain="$ac_aux_dir/ltmain.sh" | |
17956 | ||
17957 | ||
17958 | # We use sed instead of cat because bash on DJGPP gets confused if | |
17959 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
17960 | # text mode, it properly converts lines to CR/LF. This bash problem | |
17961 | # is reportedly fixed, but why not run on old versions too? | |
17962 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
17963 | || (rm -f "$cfgfile"; exit 1) | |
17964 | ||
17965 | case $xsi_shell in | |
17966 | yes) | |
17967 | cat << \_LT_EOF >> "$cfgfile" | |
17968 | ||
17969 | # func_dirname file append nondir_replacement | |
17970 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
17971 | # otherwise set result to NONDIR_REPLACEMENT. | |
17972 | func_dirname () | |
17973 | { | |
17974 | case ${1} in | |
17975 | */*) func_dirname_result="${1%/*}${2}" ;; | |
17976 | * ) func_dirname_result="${3}" ;; | |
17977 | esac | |
17978 | } | |
17979 | ||
17980 | # func_basename file | |
17981 | func_basename () | |
17982 | { | |
17983 | func_basename_result="${1##*/}" | |
17984 | } | |
17985 | ||
17986 | # func_dirname_and_basename file append nondir_replacement | |
17987 | # perform func_basename and func_dirname in a single function | |
17988 | # call: | |
17989 | # dirname: Compute the dirname of FILE. If nonempty, | |
17990 | # add APPEND to the result, otherwise set result | |
17991 | # to NONDIR_REPLACEMENT. | |
17992 | # value returned in "$func_dirname_result" | |
17993 | # basename: Compute filename of FILE. | |
17994 | # value retuned in "$func_basename_result" | |
17995 | # Implementation must be kept synchronized with func_dirname | |
17996 | # and func_basename. For efficiency, we do not delegate to | |
17997 | # those functions but instead duplicate the functionality here. | |
17998 | func_dirname_and_basename () | |
17999 | { | |
18000 | case ${1} in | |
18001 | */*) func_dirname_result="${1%/*}${2}" ;; | |
18002 | * ) func_dirname_result="${3}" ;; | |
18003 | esac | |
18004 | func_basename_result="${1##*/}" | |
18005 | } | |
18006 | ||
18007 | # func_stripname prefix suffix name | |
18008 | # strip PREFIX and SUFFIX off of NAME. | |
18009 | # PREFIX and SUFFIX must not contain globbing or regex special | |
18010 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
18011 | # dot (in which case that matches only a dot). | |
18012 | func_stripname () | |
18013 | { | |
18014 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
18015 | # positional parameters, so assign one to ordinary parameter first. | |
18016 | func_stripname_result=${3} | |
18017 | func_stripname_result=${func_stripname_result#"${1}"} | |
18018 | func_stripname_result=${func_stripname_result%"${2}"} | |
18019 | } | |
18020 | ||
18021 | # func_opt_split | |
18022 | func_opt_split () | |
18023 | { | |
18024 | func_opt_split_opt=${1%%=*} | |
18025 | func_opt_split_arg=${1#*=} | |
18026 | } | |
18027 | ||
18028 | # func_lo2o object | |
18029 | func_lo2o () | |
18030 | { | |
18031 | case ${1} in | |
18032 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
18033 | *) func_lo2o_result=${1} ;; | |
18034 | esac | |
18035 | } | |
18036 | ||
18037 | # func_xform libobj-or-source | |
18038 | func_xform () | |
18039 | { | |
18040 | func_xform_result=${1%.*}.lo | |
18041 | } | |
18042 | ||
18043 | # func_arith arithmetic-term... | |
18044 | func_arith () | |
18045 | { | |
18046 | func_arith_result=$(( $* )) | |
18047 | } | |
18048 | ||
18049 | # func_len string | |
18050 | # STRING may not start with a hyphen. | |
18051 | func_len () | |
18052 | { | |
18053 | func_len_result=${#1} | |
18054 | } | |
18055 | ||
18056 | _LT_EOF | |
18057 | ;; | |
18058 | *) # Bourne compatible functions. | |
18059 | cat << \_LT_EOF >> "$cfgfile" | |
18060 | ||
18061 | # func_dirname file append nondir_replacement | |
18062 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
18063 | # otherwise set result to NONDIR_REPLACEMENT. | |
18064 | func_dirname () | |
18065 | { | |
18066 | # Extract subdirectory from the argument. | |
18067 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | |
18068 | if test "X$func_dirname_result" = "X${1}"; then | |
18069 | func_dirname_result="${3}" | |
18070 | else | |
18071 | func_dirname_result="$func_dirname_result${2}" | |
18072 | fi | |
18073 | } | |
18074 | ||
18075 | # func_basename file | |
18076 | func_basename () | |
18077 | { | |
18078 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` | |
18079 | } | |
18080 | ||
18081 | ||
18082 | # func_stripname prefix suffix name | |
18083 | # strip PREFIX and SUFFIX off of NAME. | |
18084 | # PREFIX and SUFFIX must not contain globbing or regex special | |
18085 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
18086 | # dot (in which case that matches only a dot). | |
18087 | # func_strip_suffix prefix name | |
18088 | func_stripname () | |
18089 | { | |
18090 | case ${2} in | |
18091 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | |
18092 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
18093 | esac | |
18094 | } | |
18095 | ||
18096 | # sed scripts: | |
18097 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
18098 | my_sed_long_arg='1s/^-[^=]*=//' | |
18099 | ||
18100 | # func_opt_split | |
18101 | func_opt_split () | |
18102 | { | |
18103 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` | |
18104 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
18105 | } | |
18106 | ||
18107 | # func_lo2o object | |
18108 | func_lo2o () | |
18109 | { | |
18110 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | |
18111 | } | |
18112 | ||
18113 | # func_xform libobj-or-source | |
18114 | func_xform () | |
18115 | { | |
18116 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` | |
18117 | } | |
18118 | ||
18119 | # func_arith arithmetic-term... | |
18120 | func_arith () | |
18121 | { | |
18122 | func_arith_result=`expr "$@"` | |
18123 | } | |
18124 | ||
18125 | # func_len string | |
18126 | # STRING may not start with a hyphen. | |
18127 | func_len () | |
18128 | { | |
18129 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
18130 | } | |
18131 | ||
18132 | _LT_EOF | |
18133 | esac | |
18134 | ||
18135 | case $lt_shell_append in | |
18136 | yes) | |
18137 | cat << \_LT_EOF >> "$cfgfile" | |
18138 | ||
18139 | # func_append var value | |
18140 | # Append VALUE to the end of shell variable VAR. | |
18141 | func_append () | |
18142 | { | |
18143 | eval "$1+=\$2" | |
18144 | } | |
18145 | _LT_EOF | |
18146 | ;; | |
18147 | *) | |
18148 | cat << \_LT_EOF >> "$cfgfile" | |
18149 | ||
18150 | # func_append var value | |
18151 | # Append VALUE to the end of shell variable VAR. | |
18152 | func_append () | |
18153 | { | |
18154 | eval "$1=\$$1\$2" | |
18155 | } | |
18156 | ||
18157 | _LT_EOF | |
18158 | ;; | |
18159 | esac | |
18160 | ||
18161 | ||
18162 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
18163 | || (rm -f "$cfgfile"; exit 1) | |
18164 | ||
18165 | mv -f "$cfgfile" "$ofile" || | |
18166 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
18167 | chmod +x "$ofile" | |
18168 | ||
18169 | ;; | |
18170 | "gstdint.h":C) | |
18171 | if test "$GCC" = yes; then | |
18172 | echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h | |
18173 | else | |
18174 | echo "/* generated for $CC */" > tmp-stdint.h | |
18175 | fi | |
18176 | ||
18177 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
18178 | ||
18179 | #ifndef GCC_GENERATED_STDINT_H | |
18180 | #define GCC_GENERATED_STDINT_H 1 | |
18181 | ||
18182 | #include <sys/types.h> | |
18183 | EOF | |
18184 | ||
18185 | if test "$acx_cv_header_stdint" != stdint.h; then | |
18186 | echo "#include <stddef.h>" >> tmp-stdint.h | |
18187 | fi | |
18188 | if test "$acx_cv_header_stdint" != stddef.h; then | |
18189 | echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h | |
18190 | fi | |
18191 | ||
18192 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
18193 | /* glibc uses these symbols as guards to prevent redefinitions. */ | |
18194 | #ifdef __int8_t_defined | |
18195 | #define _INT8_T | |
18196 | #define _INT16_T | |
18197 | #define _INT32_T | |
18198 | #endif | |
18199 | #ifdef __uint32_t_defined | |
18200 | #define _UINT32_T | |
18201 | #endif | |
18202 | ||
18203 | EOF | |
18204 | ||
18205 | # ----------------- done header, emit basic int types ------------- | |
18206 | if test "$acx_cv_header_stdint" = stddef.h; then | |
18207 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
18208 | ||
18209 | #ifndef _UINT8_T | |
18210 | #define _UINT8_T | |
18211 | #ifndef __uint8_t_defined | |
18212 | #define __uint8_t_defined | |
18213 | #ifndef uint8_t | |
18214 | typedef unsigned $acx_cv_type_int8_t uint8_t; | |
18215 | #endif | |
18216 | #endif | |
18217 | #endif | |
18218 | ||
18219 | #ifndef _UINT16_T | |
18220 | #define _UINT16_T | |
18221 | #ifndef __uint16_t_defined | |
18222 | #define __uint16_t_defined | |
18223 | #ifndef uint16_t | |
18224 | typedef unsigned $acx_cv_type_int16_t uint16_t; | |
18225 | #endif | |
18226 | #endif | |
18227 | #endif | |
18228 | ||
18229 | #ifndef _UINT32_T | |
18230 | #define _UINT32_T | |
18231 | #ifndef __uint32_t_defined | |
18232 | #define __uint32_t_defined | |
18233 | #ifndef uint32_t | |
18234 | typedef unsigned $acx_cv_type_int32_t uint32_t; | |
18235 | #endif | |
18236 | #endif | |
18237 | #endif | |
18238 | ||
18239 | #ifndef _INT8_T | |
18240 | #define _INT8_T | |
18241 | #ifndef __int8_t_defined | |
18242 | #define __int8_t_defined | |
18243 | #ifndef int8_t | |
18244 | typedef $acx_cv_type_int8_t int8_t; | |
18245 | #endif | |
18246 | #endif | |
18247 | #endif | |
18248 | ||
18249 | #ifndef _INT16_T | |
18250 | #define _INT16_T | |
18251 | #ifndef __int16_t_defined | |
18252 | #define __int16_t_defined | |
18253 | #ifndef int16_t | |
18254 | typedef $acx_cv_type_int16_t int16_t; | |
18255 | #endif | |
18256 | #endif | |
18257 | #endif | |
18258 | ||
18259 | #ifndef _INT32_T | |
18260 | #define _INT32_T | |
18261 | #ifndef __int32_t_defined | |
18262 | #define __int32_t_defined | |
18263 | #ifndef int32_t | |
18264 | typedef $acx_cv_type_int32_t int32_t; | |
18265 | #endif | |
18266 | #endif | |
18267 | #endif | |
18268 | EOF | |
18269 | elif test "$ac_cv_type_u_int32_t" = yes; then | |
18270 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
18271 | ||
18272 | /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ | |
18273 | #ifndef _INT8_T | |
18274 | #define _INT8_T | |
18275 | #endif | |
18276 | #ifndef _INT16_T | |
18277 | #define _INT16_T | |
18278 | #endif | |
18279 | #ifndef _INT32_T | |
18280 | #define _INT32_T | |
18281 | #endif | |
18282 | ||
18283 | #ifndef _UINT8_T | |
18284 | #define _UINT8_T | |
18285 | #ifndef __uint8_t_defined | |
18286 | #define __uint8_t_defined | |
18287 | #ifndef uint8_t | |
18288 | typedef u_int8_t uint8_t; | |
18289 | #endif | |
18290 | #endif | |
18291 | #endif | |
18292 | ||
18293 | #ifndef _UINT16_T | |
18294 | #define _UINT16_T | |
18295 | #ifndef __uint16_t_defined | |
18296 | #define __uint16_t_defined | |
18297 | #ifndef uint16_t | |
18298 | typedef u_int16_t uint16_t; | |
18299 | #endif | |
18300 | #endif | |
18301 | #endif | |
18302 | ||
18303 | #ifndef _UINT32_T | |
18304 | #define _UINT32_T | |
18305 | #ifndef __uint32_t_defined | |
18306 | #define __uint32_t_defined | |
18307 | #ifndef uint32_t | |
18308 | typedef u_int32_t uint32_t; | |
18309 | #endif | |
18310 | #endif | |
18311 | #endif | |
18312 | EOF | |
18313 | else | |
18314 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
18315 | ||
18316 | /* Some systems have guard macros to prevent redefinitions, define them. */ | |
18317 | #ifndef _INT8_T | |
18318 | #define _INT8_T | |
18319 | #endif | |
18320 | #ifndef _INT16_T | |
18321 | #define _INT16_T | |
18322 | #endif | |
18323 | #ifndef _INT32_T | |
18324 | #define _INT32_T | |
18325 | #endif | |
18326 | #ifndef _UINT8_T | |
18327 | #define _UINT8_T | |
18328 | #endif | |
18329 | #ifndef _UINT16_T | |
18330 | #define _UINT16_T | |
18331 | #endif | |
18332 | #ifndef _UINT32_T | |
18333 | #define _UINT32_T | |
18334 | #endif | |
18335 | EOF | |
18336 | fi | |
18337 | ||
18338 | # ------------- done basic int types, emit int64_t types ------------ | |
18339 | if test "$ac_cv_type_uint64_t" = yes; then | |
18340 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
18341 | ||
18342 | /* system headers have good uint64_t and int64_t */ | |
18343 | #ifndef _INT64_T | |
18344 | #define _INT64_T | |
18345 | #endif | |
18346 | #ifndef _UINT64_T | |
18347 | #define _UINT64_T | |
18348 | #endif | |
18349 | EOF | |
18350 | elif test "$ac_cv_type_u_int64_t" = yes; then | |
18351 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
18352 | ||
18353 | /* system headers have an u_int64_t (and int64_t) */ | |
18354 | #ifndef _INT64_T | |
18355 | #define _INT64_T | |
18356 | #endif | |
18357 | #ifndef _UINT64_T | |
18358 | #define _UINT64_T | |
18359 | #ifndef __uint64_t_defined | |
18360 | #define __uint64_t_defined | |
18361 | #ifndef uint64_t | |
18362 | typedef u_int64_t uint64_t; | |
18363 | #endif | |
18364 | #endif | |
18365 | #endif | |
18366 | EOF | |
18367 | elif test -n "$acx_cv_type_int64_t"; then | |
18368 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
18369 | ||
18370 | /* architecture has a 64-bit type, $acx_cv_type_int64_t */ | |
18371 | #ifndef _INT64_T | |
18372 | #define _INT64_T | |
18373 | #ifndef int64_t | |
18374 | typedef $acx_cv_type_int64_t int64_t; | |
18375 | #endif | |
18376 | #endif | |
18377 | #ifndef _UINT64_T | |
18378 | #define _UINT64_T | |
18379 | #ifndef __uint64_t_defined | |
18380 | #define __uint64_t_defined | |
18381 | #ifndef uint64_t | |
18382 | typedef unsigned $acx_cv_type_int64_t uint64_t; | |
18383 | #endif | |
18384 | #endif | |
18385 | #endif | |
18386 | EOF | |
18387 | else | |
18388 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
18389 | ||
18390 | /* some common heuristics for int64_t, using compiler-specific tests */ | |
18391 | #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L | |
18392 | #ifndef _INT64_T | |
18393 | #define _INT64_T | |
18394 | #ifndef __int64_t_defined | |
18395 | #ifndef int64_t | |
18396 | typedef long long int64_t; | |
18397 | #endif | |
18398 | #endif | |
18399 | #endif | |
18400 | #ifndef _UINT64_T | |
18401 | #define _UINT64_T | |
18402 | #ifndef uint64_t | |
18403 | typedef unsigned long long uint64_t; | |
18404 | #endif | |
18405 | #endif | |
18406 | ||
18407 | #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 | |
18408 | /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and | |
18409 | does not implement __extension__. But that compiler doesn't define | |
18410 | __GNUC_MINOR__. */ | |
18411 | # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) | |
18412 | # define __extension__ | |
18413 | # endif | |
18414 | ||
18415 | # ifndef _INT64_T | |
18416 | # define _INT64_T | |
18417 | # ifndef int64_t | |
18418 | __extension__ typedef long long int64_t; | |
18419 | # endif | |
18420 | # endif | |
18421 | # ifndef _UINT64_T | |
18422 | # define _UINT64_T | |
18423 | # ifndef uint64_t | |
18424 | __extension__ typedef unsigned long long uint64_t; | |
18425 | # endif | |
18426 | # endif | |
18427 | ||
18428 | #elif !defined __STRICT_ANSI__ | |
18429 | # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ | |
18430 | ||
18431 | # ifndef _INT64_T | |
18432 | # define _INT64_T | |
18433 | # ifndef int64_t | |
18434 | typedef __int64 int64_t; | |
18435 | # endif | |
18436 | # endif | |
18437 | # ifndef _UINT64_T | |
18438 | # define _UINT64_T | |
18439 | # ifndef uint64_t | |
18440 | typedef unsigned __int64 uint64_t; | |
18441 | # endif | |
18442 | # endif | |
18443 | # endif /* compiler */ | |
18444 | ||
18445 | #endif /* ANSI version */ | |
18446 | EOF | |
18447 | fi | |
18448 | ||
18449 | # ------------- done int64_t types, emit intptr types ------------ | |
18450 | if test "$ac_cv_type_uintptr_t" != yes; then | |
18451 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
18452 | ||
18453 | /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ | |
18454 | #ifndef __uintptr_t_defined | |
18455 | #ifndef uintptr_t | |
18456 | typedef u$acx_cv_type_intptr_t uintptr_t; | |
18457 | #endif | |
18458 | #endif | |
18459 | #ifndef __intptr_t_defined | |
18460 | #ifndef intptr_t | |
18461 | typedef $acx_cv_type_intptr_t intptr_t; | |
18462 | #endif | |
18463 | #endif | |
18464 | EOF | |
18465 | fi | |
18466 | ||
18467 | # ------------- done intptr types, emit int_least types ------------ | |
18468 | if test "$ac_cv_type_int_least32_t" != yes; then | |
18469 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
18470 | ||
18471 | /* Define int_least types */ | |
18472 | typedef int8_t int_least8_t; | |
18473 | typedef int16_t int_least16_t; | |
18474 | typedef int32_t int_least32_t; | |
18475 | #ifdef _INT64_T | |
18476 | typedef int64_t int_least64_t; | |
18477 | #endif | |
18478 | ||
18479 | typedef uint8_t uint_least8_t; | |
18480 | typedef uint16_t uint_least16_t; | |
18481 | typedef uint32_t uint_least32_t; | |
18482 | #ifdef _UINT64_T | |
18483 | typedef uint64_t uint_least64_t; | |
18484 | #endif | |
18485 | EOF | |
18486 | fi | |
18487 | ||
18488 | # ------------- done intptr types, emit int_fast types ------------ | |
18489 | if test "$ac_cv_type_int_fast32_t" != yes; then | |
18490 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
18491 | ||
18492 | /* Define int_fast types. short is often slow */ | |
18493 | typedef int8_t int_fast8_t; | |
18494 | typedef int int_fast16_t; | |
18495 | typedef int32_t int_fast32_t; | |
18496 | #ifdef _INT64_T | |
18497 | typedef int64_t int_fast64_t; | |
18498 | #endif | |
18499 | ||
18500 | typedef uint8_t uint_fast8_t; | |
18501 | typedef unsigned int uint_fast16_t; | |
18502 | typedef uint32_t uint_fast32_t; | |
18503 | #ifdef _UINT64_T | |
18504 | typedef uint64_t uint_fast64_t; | |
18505 | #endif | |
18506 | EOF | |
18507 | fi | |
18508 | ||
18509 | if test "$ac_cv_type_uintmax_t" != yes; then | |
18510 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
18511 | ||
18512 | /* Define intmax based on what we found */ | |
18513 | #ifndef intmax_t | |
18514 | #ifdef _INT64_T | |
18515 | typedef int64_t intmax_t; | |
18516 | #else | |
18517 | typedef long intmax_t; | |
18518 | #endif | |
18519 | #endif | |
18520 | #ifndef uintmax_t | |
18521 | #ifdef _UINT64_T | |
18522 | typedef uint64_t uintmax_t; | |
18523 | #else | |
18524 | typedef unsigned long uintmax_t; | |
18525 | #endif | |
18526 | #endif | |
18527 | EOF | |
18528 | fi | |
18529 | ||
18530 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
18531 | ||
18532 | #endif /* GCC_GENERATED_STDINT_H */ | |
18533 | EOF | |
18534 | ||
18535 | if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then | |
18536 | rm -f tmp-stdint.h | |
18537 | else | |
18538 | mv -f tmp-stdint.h gstdint.h | |
18539 | fi | |
18540 | ||
18541 | ;; | |
18542 | ||
18543 | esac | |
18544 | done # for ac_tag | |
18545 | ||
18546 | ||
18547 | as_fn_exit 0 | |
18548 | _ACEOF | |
18549 | ac_clean_files=$ac_clean_files_save | |
18550 | ||
18551 | test $ac_write_fail = 0 || | |
22e05272 | 18552 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
48310492 RH |
18553 | |
18554 | ||
18555 | # configure is writing to config.log, and then calls config.status. | |
18556 | # config.status does its own redirection, appending to config.log. | |
18557 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
18558 | # by configure, so config.status won't be able to write to it; its | |
18559 | # output is simply discarded. So we exec the FD to /dev/null, | |
18560 | # effectively closing config.log, so it can be properly (re)opened and | |
18561 | # appended to by config.status. When coming back to configure, we | |
18562 | # need to make the FD available again. | |
18563 | if test "$no_create" != yes; then | |
18564 | ac_cs_success=: | |
18565 | ac_config_status_args= | |
18566 | test "$silent" = yes && | |
18567 | ac_config_status_args="$ac_config_status_args --quiet" | |
18568 | exec 5>/dev/null | |
18569 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
18570 | exec 5>>config.log | |
18571 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
18572 | # would make configure fail if this is the last instruction. | |
22e05272 | 18573 | $ac_cs_success || as_fn_exit 1 |
48310492 RH |
18574 | fi |
18575 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
18576 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
18577 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
18578 | fi | |
18579 |