Mercurial > hg > sv-dependency-builds
comparison src/fftw-3.3.5/configure @ 127:7867fa7e1b6b
Current fftw source
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Tue, 18 Oct 2016 13:40:26 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
126:4a7071416412 | 127:7867fa7e1b6b |
---|---|
1 #! /bin/sh | |
2 # Guess values for system-dependent variables and create Makefiles. | |
3 # Generated by GNU Autoconf 2.69 for fftw 3.3.5. | |
4 # | |
5 # Report bugs to <fftw@fftw.org>. | |
6 # | |
7 # | |
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
9 # | |
10 # | |
11 # This configure script is free software; the Free Software Foundation | |
12 # gives unlimited permission to copy, distribute and modify it. | |
13 ## -------------------- ## | |
14 ## M4sh Initialization. ## | |
15 ## -------------------- ## | |
16 | |
17 # Be more Bourne compatible | |
18 DUALCASE=1; export DUALCASE # for MKS sh | |
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
20 emulate sh | |
21 NULLCMD=: | |
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
23 # is contrary to our usage. Disable this feature. | |
24 alias -g '${1+"$@"}'='"$@"' | |
25 setopt NO_GLOB_SUBST | |
26 else | |
27 case `(set -o) 2>/dev/null` in #( | |
28 *posix*) : | |
29 set -o posix ;; #( | |
30 *) : | |
31 ;; | |
32 esac | |
33 fi | |
34 | |
35 | |
36 as_nl=' | |
37 ' | |
38 export as_nl | |
39 # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
43 # Prefer a ksh shell builtin over an external printf program on Solaris, | |
44 # but without wasting forks for bash or zsh. | |
45 if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 as_echo='print -r --' | |
48 as_echo_n='print -rn --' | |
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
50 as_echo='printf %s\n' | |
51 as_echo_n='printf %s' | |
52 else | |
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 as_echo_n='/usr/ucb/echo -n' | |
56 else | |
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
58 as_echo_n_body='eval | |
59 arg=$1; | |
60 case $arg in #( | |
61 *"$as_nl"*) | |
62 expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 esac; | |
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 ' | |
67 export as_echo_n_body | |
68 as_echo_n='sh -c $as_echo_n_body as_echo' | |
69 fi | |
70 export as_echo_body | |
71 as_echo='sh -c $as_echo_body as_echo' | |
72 fi | |
73 | |
74 # The user is always right. | |
75 if test "${PATH_SEPARATOR+set}" != set; then | |
76 PATH_SEPARATOR=: | |
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 PATH_SEPARATOR=';' | |
80 } | |
81 fi | |
82 | |
83 | |
84 # IFS | |
85 # We need space, tab and new line, in precisely that order. Quoting is | |
86 # there to prevent editors from complaining about space-tab. | |
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
88 # splitting by setting IFS to empty value.) | |
89 IFS=" "" $as_nl" | |
90 | |
91 # Find who we are. Look in the path if we contain no directory separator. | |
92 as_myself= | |
93 case $0 in #(( | |
94 *[\\/]* ) as_myself=$0 ;; | |
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
96 for as_dir in $PATH | |
97 do | |
98 IFS=$as_save_IFS | |
99 test -z "$as_dir" && as_dir=. | |
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
101 done | |
102 IFS=$as_save_IFS | |
103 | |
104 ;; | |
105 esac | |
106 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
107 # in which case we are not to be found in the path. | |
108 if test "x$as_myself" = x; then | |
109 as_myself=$0 | |
110 fi | |
111 if test ! -f "$as_myself"; then | |
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
113 exit 1 | |
114 fi | |
115 | |
116 # Unset variables that we do not need and which cause bugs (e.g. in | |
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
118 # suppresses any "Segmentation fault" message there. '((' could | |
119 # trigger a bug in pdksh 5.2.14. | |
120 for as_var in BASH_ENV ENV MAIL MAILPATH | |
121 do eval test x\${$as_var+set} = xset \ | |
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
123 done | |
124 PS1='$ ' | |
125 PS2='> ' | |
126 PS4='+ ' | |
127 | |
128 # NLS nuisances. | |
129 LC_ALL=C | |
130 export LC_ALL | |
131 LANGUAGE=C | |
132 export LANGUAGE | |
133 | |
134 # CDPATH. | |
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
136 | |
137 # Use a proper internal environment variable to ensure we don't fall | |
138 # into an infinite loop, continuously re-executing ourselves. | |
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
140 _as_can_reexec=no; export _as_can_reexec; | |
141 # We cannot yet assume a decent shell, so we have to provide a | |
142 # neutralization value for shells without unset; and this also | |
143 # works around shells that cannot unset nonexistent variables. | |
144 # Preserve -v and -x to the replacement shell. | |
145 BASH_ENV=/dev/null | |
146 ENV=/dev/null | |
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
148 case $- in # (((( | |
149 *v*x* | *x*v* ) as_opts=-vx ;; | |
150 *v* ) as_opts=-v ;; | |
151 *x* ) as_opts=-x ;; | |
152 * ) as_opts= ;; | |
153 esac | |
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
155 # Admittedly, this is quite paranoid, since all the known shells bail | |
156 # out after a failed `exec'. | |
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
158 as_fn_exit 255 | |
159 fi | |
160 # We don't want this to propagate to other subprocesses. | |
161 { _as_can_reexec=; unset _as_can_reexec;} | |
162 if test "x$CONFIG_SHELL" = x; then | |
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
164 emulate sh | |
165 NULLCMD=: | |
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
167 # is contrary to our usage. Disable this feature. | |
168 alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
169 setopt NO_GLOB_SUBST | |
170 else | |
171 case \`(set -o) 2>/dev/null\` in #( | |
172 *posix*) : | |
173 set -o posix ;; #( | |
174 *) : | |
175 ;; | |
176 esac | |
177 fi | |
178 " | |
179 as_required="as_fn_return () { (exit \$1); } | |
180 as_fn_success () { as_fn_return 0; } | |
181 as_fn_failure () { as_fn_return 1; } | |
182 as_fn_ret_success () { return 0; } | |
183 as_fn_ret_failure () { return 1; } | |
184 | |
185 exitcode=0 | |
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
191 | |
192 else | |
193 exitcode=1; echo positional parameters were not saved. | |
194 fi | |
195 test x\$exitcode = x0 || exit 1 | |
196 test -x / || exit 1" | |
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
201 | |
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
206 PATH=/empty FPATH=/empty; export PATH FPATH | |
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 | |
209 test \$(( 1 + 1 )) = 2 || exit 1" | |
210 if (eval "$as_required") 2>/dev/null; then : | |
211 as_have_required=yes | |
212 else | |
213 as_have_required=no | |
214 fi | |
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
216 | |
217 else | |
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
219 as_found=false | |
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
221 do | |
222 IFS=$as_save_IFS | |
223 test -z "$as_dir" && as_dir=. | |
224 as_found=: | |
225 case $as_dir in #( | |
226 /*) | |
227 for as_base in sh bash ksh sh5; do | |
228 # Try only shells that exist, to save several forks. | |
229 as_shell=$as_dir/$as_base | |
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
232 CONFIG_SHELL=$as_shell as_have_required=yes | |
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
234 break 2 | |
235 fi | |
236 fi | |
237 done;; | |
238 esac | |
239 as_found=false | |
240 done | |
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
243 CONFIG_SHELL=$SHELL as_have_required=yes | |
244 fi; } | |
245 IFS=$as_save_IFS | |
246 | |
247 | |
248 if test "x$CONFIG_SHELL" != x; then : | |
249 export CONFIG_SHELL | |
250 # We cannot yet assume a decent shell, so we have to provide a | |
251 # neutralization value for shells without unset; and this also | |
252 # works around shells that cannot unset nonexistent variables. | |
253 # Preserve -v and -x to the replacement shell. | |
254 BASH_ENV=/dev/null | |
255 ENV=/dev/null | |
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
257 case $- in # (((( | |
258 *v*x* | *x*v* ) as_opts=-vx ;; | |
259 *v* ) as_opts=-v ;; | |
260 *x* ) as_opts=-x ;; | |
261 * ) as_opts= ;; | |
262 esac | |
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
264 # Admittedly, this is quite paranoid, since all the known shells bail | |
265 # out after a failed `exec'. | |
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
267 exit 255 | |
268 fi | |
269 | |
270 if test x$as_have_required = xno; then : | |
271 $as_echo "$0: This script requires a shell more modern than all" | |
272 $as_echo "$0: the shells that I found on your system." | |
273 if test x${ZSH_VERSION+set} = xset ; then | |
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
276 else | |
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and fftw@fftw.org | |
278 $0: about your system, including any error possibly output | |
279 $0: before this message. Then install a modern shell, or | |
280 $0: manually run the script under such a shell if you do | |
281 $0: have one." | |
282 fi | |
283 exit 1 | |
284 fi | |
285 fi | |
286 fi | |
287 SHELL=${CONFIG_SHELL-/bin/sh} | |
288 export SHELL | |
289 # Unset more variables known to interfere with behavior of common tools. | |
290 CLICOLOR_FORCE= GREP_OPTIONS= | |
291 unset CLICOLOR_FORCE GREP_OPTIONS | |
292 | |
293 ## --------------------- ## | |
294 ## M4sh Shell Functions. ## | |
295 ## --------------------- ## | |
296 # as_fn_unset VAR | |
297 # --------------- | |
298 # Portably unset VAR. | |
299 as_fn_unset () | |
300 { | |
301 { eval $1=; unset $1;} | |
302 } | |
303 as_unset=as_fn_unset | |
304 | |
305 # as_fn_set_status STATUS | |
306 # ----------------------- | |
307 # Set $? to STATUS, without forking. | |
308 as_fn_set_status () | |
309 { | |
310 return $1 | |
311 } # as_fn_set_status | |
312 | |
313 # as_fn_exit STATUS | |
314 # ----------------- | |
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
316 as_fn_exit () | |
317 { | |
318 set +e | |
319 as_fn_set_status $1 | |
320 exit $1 | |
321 } # as_fn_exit | |
322 | |
323 # as_fn_mkdir_p | |
324 # ------------- | |
325 # Create "$as_dir" as a directory, including parents if necessary. | |
326 as_fn_mkdir_p () | |
327 { | |
328 | |
329 case $as_dir in #( | |
330 -*) as_dir=./$as_dir;; | |
331 esac | |
332 test -d "$as_dir" || eval $as_mkdir_p || { | |
333 as_dirs= | |
334 while :; do | |
335 case $as_dir in #( | |
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
337 *) as_qdir=$as_dir;; | |
338 esac | |
339 as_dirs="'$as_qdir' $as_dirs" | |
340 as_dir=`$as_dirname -- "$as_dir" || | |
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
342 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
343 X"$as_dir" : 'X\(//\)$' \| \ | |
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
345 $as_echo X"$as_dir" | | |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
347 s//\1/ | |
348 q | |
349 } | |
350 /^X\(\/\/\)[^/].*/{ | |
351 s//\1/ | |
352 q | |
353 } | |
354 /^X\(\/\/\)$/{ | |
355 s//\1/ | |
356 q | |
357 } | |
358 /^X\(\/\).*/{ | |
359 s//\1/ | |
360 q | |
361 } | |
362 s/.*/./; q'` | |
363 test -d "$as_dir" && break | |
364 done | |
365 test -z "$as_dirs" || eval "mkdir $as_dirs" | |
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
367 | |
368 | |
369 } # as_fn_mkdir_p | |
370 | |
371 # as_fn_executable_p FILE | |
372 # ----------------------- | |
373 # Test if FILE is an executable regular file. | |
374 as_fn_executable_p () | |
375 { | |
376 test -f "$1" && test -x "$1" | |
377 } # as_fn_executable_p | |
378 # as_fn_append VAR VALUE | |
379 # ---------------------- | |
380 # Append the text in VALUE to the end of the definition contained in VAR. Take | |
381 # advantage of any shell optimizations that allow amortized linear growth over | |
382 # repeated appends, instead of the typical quadratic growth present in naive | |
383 # implementations. | |
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
385 eval 'as_fn_append () | |
386 { | |
387 eval $1+=\$2 | |
388 }' | |
389 else | |
390 as_fn_append () | |
391 { | |
392 eval $1=\$$1\$2 | |
393 } | |
394 fi # as_fn_append | |
395 | |
396 # as_fn_arith ARG... | |
397 # ------------------ | |
398 # Perform arithmetic evaluation on the ARGs, and store the result in the | |
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
400 # must be portable across $(()) and expr. | |
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
402 eval 'as_fn_arith () | |
403 { | |
404 as_val=$(( $* )) | |
405 }' | |
406 else | |
407 as_fn_arith () | |
408 { | |
409 as_val=`expr "$@" || test $? -eq 1` | |
410 } | |
411 fi # as_fn_arith | |
412 | |
413 | |
414 # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
415 # ---------------------------------------- | |
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
418 # script with STATUS, using 1 if that was 0. | |
419 as_fn_error () | |
420 { | |
421 as_status=$1; test $as_status -eq 0 && as_status=1 | |
422 if test "$4"; then | |
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
425 fi | |
426 $as_echo "$as_me: error: $2" >&2 | |
427 as_fn_exit $as_status | |
428 } # as_fn_error | |
429 | |
430 if expr a : '\(a\)' >/dev/null 2>&1 && | |
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
432 as_expr=expr | |
433 else | |
434 as_expr=false | |
435 fi | |
436 | |
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
438 as_basename=basename | |
439 else | |
440 as_basename=false | |
441 fi | |
442 | |
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
444 as_dirname=dirname | |
445 else | |
446 as_dirname=false | |
447 fi | |
448 | |
449 as_me=`$as_basename -- "$0" || | |
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
451 X"$0" : 'X\(//\)$' \| \ | |
452 X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
453 $as_echo X/"$0" | | |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
455 s//\1/ | |
456 q | |
457 } | |
458 /^X\/\(\/\/\)$/{ | |
459 s//\1/ | |
460 q | |
461 } | |
462 /^X\/\(\/\).*/{ | |
463 s//\1/ | |
464 q | |
465 } | |
466 s/.*/./; q'` | |
467 | |
468 # Avoid depending upon Character Ranges. | |
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
472 as_cr_digits='0123456789' | |
473 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
474 | |
475 | |
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
481 sed -n ' | |
482 p | |
483 /[$]LINENO/= | |
484 ' <$as_myself | | |
485 sed ' | |
486 s/[$]LINENO.*/&-/ | |
487 t lineno | |
488 b | |
489 :lineno | |
490 N | |
491 :loop | |
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
493 t loop | |
494 s/-\n.*// | |
495 ' >$as_me.lineno && | |
496 chmod +x "$as_me.lineno" || | |
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
498 | |
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have | |
500 # already done that, so ensure we don't try to do so again and fall | |
501 # in an infinite loop. This has already happened in practice. | |
502 _as_can_reexec=no; export _as_can_reexec | |
503 # Don't try to exec as it changes $[0], causing all sort of problems | |
504 # (the dirname of $[0] is not the place where we might find the | |
505 # original and so on. Autoconf is especially sensitive to this). | |
506 . "./$as_me.lineno" | |
507 # Exit status is that of the last command. | |
508 exit | |
509 } | |
510 | |
511 ECHO_C= ECHO_N= ECHO_T= | |
512 case `echo -n x` in #((((( | |
513 -n*) | |
514 case `echo 'xy\c'` in | |
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
516 xy) ECHO_C='\c';; | |
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
518 ECHO_T=' ';; | |
519 esac;; | |
520 *) | |
521 ECHO_N='-n';; | |
522 esac | |
523 | |
524 rm -f conf$$ conf$$.exe conf$$.file | |
525 if test -d conf$$.dir; then | |
526 rm -f conf$$.dir/conf$$.file | |
527 else | |
528 rm -f conf$$.dir | |
529 mkdir conf$$.dir 2>/dev/null | |
530 fi | |
531 if (echo >conf$$.file) 2>/dev/null; then | |
532 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
533 as_ln_s='ln -s' | |
534 # ... but there are two gotchas: | |
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
537 # In both cases, we have to default to `cp -pR'. | |
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
539 as_ln_s='cp -pR' | |
540 elif ln conf$$.file conf$$ 2>/dev/null; then | |
541 as_ln_s=ln | |
542 else | |
543 as_ln_s='cp -pR' | |
544 fi | |
545 else | |
546 as_ln_s='cp -pR' | |
547 fi | |
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
549 rmdir conf$$.dir 2>/dev/null | |
550 | |
551 if mkdir -p . 2>/dev/null; then | |
552 as_mkdir_p='mkdir -p "$as_dir"' | |
553 else | |
554 test -d ./-p && rmdir ./-p | |
555 as_mkdir_p=false | |
556 fi | |
557 | |
558 as_test_x='test -x' | |
559 as_executable_p=as_fn_executable_p | |
560 | |
561 # Sed expression to map a string onto a valid CPP name. | |
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
563 | |
564 # Sed expression to map a string onto a valid variable name. | |
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
566 | |
567 SHELL=${CONFIG_SHELL-/bin/sh} | |
568 | |
569 | |
570 test -n "$DJDIR" || exec 7<&0 </dev/null | |
571 exec 6>&1 | |
572 | |
573 # Name of the host. | |
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
575 # so uname gets run too. | |
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
577 | |
578 # | |
579 # Initializations. | |
580 # | |
581 ac_default_prefix=/usr/local | |
582 ac_clean_files= | |
583 ac_config_libobj_dir=. | |
584 LIBOBJS= | |
585 cross_compiling=no | |
586 subdirs= | |
587 MFLAGS= | |
588 MAKEFLAGS= | |
589 | |
590 # Identity of this package. | |
591 PACKAGE_NAME='fftw' | |
592 PACKAGE_TARNAME='fftw' | |
593 PACKAGE_VERSION='3.3.5' | |
594 PACKAGE_STRING='fftw 3.3.5' | |
595 PACKAGE_BUGREPORT='fftw@fftw.org' | |
596 PACKAGE_URL='' | |
597 | |
598 ac_unique_file="kernel/ifftw.h" | |
599 # Factoring default headers for most tests. | |
600 ac_includes_default="\ | |
601 #include <stdio.h> | |
602 #ifdef HAVE_SYS_TYPES_H | |
603 # include <sys/types.h> | |
604 #endif | |
605 #ifdef HAVE_SYS_STAT_H | |
606 # include <sys/stat.h> | |
607 #endif | |
608 #ifdef STDC_HEADERS | |
609 # include <stdlib.h> | |
610 # include <stddef.h> | |
611 #else | |
612 # ifdef HAVE_STDLIB_H | |
613 # include <stdlib.h> | |
614 # endif | |
615 #endif | |
616 #ifdef HAVE_STRING_H | |
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
618 # include <memory.h> | |
619 # endif | |
620 # include <string.h> | |
621 #endif | |
622 #ifdef HAVE_STRINGS_H | |
623 # include <strings.h> | |
624 #endif | |
625 #ifdef HAVE_INTTYPES_H | |
626 # include <inttypes.h> | |
627 #endif | |
628 #ifdef HAVE_STDINT_H | |
629 # include <stdint.h> | |
630 #endif | |
631 #ifdef HAVE_UNISTD_H | |
632 # include <unistd.h> | |
633 #endif" | |
634 | |
635 ac_subst_vars='am__EXEEXT_FALSE | |
636 am__EXEEXT_TRUE | |
637 LTLIBOBJS | |
638 COMBINED_THREADS_FALSE | |
639 COMBINED_THREADS_TRUE | |
640 SMP_FALSE | |
641 SMP_TRUE | |
642 OPENMP_FALSE | |
643 OPENMP_TRUE | |
644 THREADS_FALSE | |
645 THREADS_TRUE | |
646 THREADLIBS | |
647 PTHREAD_CFLAGS | |
648 PTHREAD_LIBS | |
649 PTHREAD_CC | |
650 acx_pthread_config | |
651 OPENMP_CFLAGS | |
652 FLIBS | |
653 ac_ct_F77 | |
654 FFLAGS | |
655 F77 | |
656 INDENT | |
657 LIBQUADMATH | |
658 LIBOBJS | |
659 POW_LIB | |
660 ALLOCA | |
661 C_FFTW_R2R_KIND | |
662 STACK_ALIGN_CFLAGS | |
663 NEON_CFLAGS | |
664 VSX_CFLAGS | |
665 ALTIVEC_CFLAGS | |
666 KCVI_CFLAGS | |
667 AVX512_CFLAGS | |
668 AVX2_CFLAGS | |
669 AVX_CFLAGS | |
670 SSE2_CFLAGS | |
671 MPI_FALSE | |
672 MPI_TRUE | |
673 C_MPI_FINT | |
674 MPIRUN | |
675 MPILIBS | |
676 MPICC | |
677 OCAMLBUILD | |
678 CPP | |
679 OTOOL64 | |
680 OTOOL | |
681 LIPO | |
682 NMEDIT | |
683 DSYMUTIL | |
684 MANIFEST_TOOL | |
685 RANLIB | |
686 ac_ct_AR | |
687 AR | |
688 NM | |
689 ac_ct_DUMPBIN | |
690 DUMPBIN | |
691 LD | |
692 FGREP | |
693 EGREP | |
694 GREP | |
695 SED | |
696 LIBTOOL | |
697 OBJDUMP | |
698 DLLTOOL | |
699 AS | |
700 LN_S | |
701 am__fastdepCC_FALSE | |
702 am__fastdepCC_TRUE | |
703 CCDEPMODE | |
704 am__nodep | |
705 AMDEPBACKSLASH | |
706 AMDEP_FALSE | |
707 AMDEP_TRUE | |
708 am__quote | |
709 am__include | |
710 DEPDIR | |
711 OBJEXT | |
712 EXEEXT | |
713 ac_ct_CC | |
714 CPPFLAGS | |
715 LDFLAGS | |
716 CFLAGS | |
717 CC | |
718 PREC_SUFFIX | |
719 HAVE_GENERIC_SIMD256_FALSE | |
720 HAVE_GENERIC_SIMD256_TRUE | |
721 HAVE_GENERIC_SIMD128_FALSE | |
722 HAVE_GENERIC_SIMD128_TRUE | |
723 HAVE_NEON_FALSE | |
724 HAVE_NEON_TRUE | |
725 HAVE_VSX_FALSE | |
726 HAVE_VSX_TRUE | |
727 HAVE_ALTIVEC_FALSE | |
728 HAVE_ALTIVEC_TRUE | |
729 HAVE_KCVI_FALSE | |
730 HAVE_KCVI_TRUE | |
731 HAVE_AVX_128_FMA_FALSE | |
732 HAVE_AVX_128_FMA_TRUE | |
733 AVX_128_FMA_CFLAGS | |
734 HAVE_AVX512_FALSE | |
735 HAVE_AVX512_TRUE | |
736 HAVE_AVX2_FALSE | |
737 HAVE_AVX2_TRUE | |
738 HAVE_AVX_FALSE | |
739 HAVE_AVX_TRUE | |
740 HAVE_SSE2_FALSE | |
741 HAVE_SSE2_TRUE | |
742 CHECK_PL_OPTS | |
743 PRECISION | |
744 QUAD_FALSE | |
745 QUAD_TRUE | |
746 LDOUBLE_FALSE | |
747 LDOUBLE_TRUE | |
748 SINGLE_FALSE | |
749 SINGLE_TRUE | |
750 BUILD_DOC_FALSE | |
751 BUILD_DOC_TRUE | |
752 host_os | |
753 host_vendor | |
754 host_cpu | |
755 host | |
756 build_os | |
757 build_vendor | |
758 build_cpu | |
759 build | |
760 SHARED_VERSION_INFO | |
761 MAINT | |
762 MAINTAINER_MODE_FALSE | |
763 MAINTAINER_MODE_TRUE | |
764 AM_BACKSLASH | |
765 AM_DEFAULT_VERBOSITY | |
766 AM_DEFAULT_V | |
767 AM_V | |
768 am__untar | |
769 am__tar | |
770 AMTAR | |
771 am__leading_dot | |
772 SET_MAKE | |
773 AWK | |
774 mkdir_p | |
775 MKDIR_P | |
776 INSTALL_STRIP_PROGRAM | |
777 STRIP | |
778 install_sh | |
779 MAKEINFO | |
780 AUTOHEADER | |
781 AUTOMAKE | |
782 AUTOCONF | |
783 ACLOCAL | |
784 VERSION | |
785 PACKAGE | |
786 CYGPATH_W | |
787 am__isrc | |
788 INSTALL_DATA | |
789 INSTALL_SCRIPT | |
790 INSTALL_PROGRAM | |
791 target_alias | |
792 host_alias | |
793 build_alias | |
794 LIBS | |
795 ECHO_T | |
796 ECHO_N | |
797 ECHO_C | |
798 DEFS | |
799 mandir | |
800 localedir | |
801 libdir | |
802 psdir | |
803 pdfdir | |
804 dvidir | |
805 htmldir | |
806 infodir | |
807 docdir | |
808 oldincludedir | |
809 includedir | |
810 localstatedir | |
811 sharedstatedir | |
812 sysconfdir | |
813 datadir | |
814 datarootdir | |
815 libexecdir | |
816 sbindir | |
817 bindir | |
818 program_transform_name | |
819 prefix | |
820 exec_prefix | |
821 PACKAGE_URL | |
822 PACKAGE_BUGREPORT | |
823 PACKAGE_STRING | |
824 PACKAGE_VERSION | |
825 PACKAGE_TARNAME | |
826 PACKAGE_NAME | |
827 PATH_SEPARATOR | |
828 SHELL' | |
829 ac_subst_files='' | |
830 ac_user_opts=' | |
831 enable_option_checking | |
832 enable_silent_rules | |
833 enable_maintainer_mode | |
834 enable_shared | |
835 enable_debug | |
836 enable_doc | |
837 enable_debug_malloc | |
838 enable_debug_alignment | |
839 enable_random_estimator | |
840 enable_alloca | |
841 enable_single | |
842 enable_float | |
843 enable_long_double | |
844 enable_quad_precision | |
845 enable_sse | |
846 enable_sse2 | |
847 enable_avx | |
848 enable_avx2 | |
849 enable_avx512 | |
850 enable_avx_128_fma | |
851 enable_kcvi | |
852 enable_altivec | |
853 enable_vsx | |
854 enable_neon | |
855 enable_armv8cyclecounter | |
856 enable_generic_simd128 | |
857 enable_generic_simd256 | |
858 with_slow_timer | |
859 enable_mips_zbus_timer | |
860 with_our_malloc | |
861 with_our_malloc16 | |
862 with_windows_f77_mangling | |
863 with_incoming_stack_boundary | |
864 enable_fma | |
865 enable_dependency_tracking | |
866 enable_static | |
867 with_pic | |
868 enable_fast_install | |
869 with_gnu_ld | |
870 with_sysroot | |
871 enable_libtool_lock | |
872 enable_mpi | |
873 enable_fortran | |
874 with_g77_wrappers | |
875 enable_openmp | |
876 enable_threads | |
877 with_combined_threads | |
878 ' | |
879 ac_precious_vars='build_alias | |
880 host_alias | |
881 target_alias | |
882 CC | |
883 CFLAGS | |
884 LDFLAGS | |
885 LIBS | |
886 CPPFLAGS | |
887 CPP | |
888 MPICC | |
889 F77 | |
890 FFLAGS' | |
891 | |
892 | |
893 # Initialize some variables set by options. | |
894 ac_init_help= | |
895 ac_init_version=false | |
896 ac_unrecognized_opts= | |
897 ac_unrecognized_sep= | |
898 # The variables have the same names as the options, with | |
899 # dashes changed to underlines. | |
900 cache_file=/dev/null | |
901 exec_prefix=NONE | |
902 no_create= | |
903 no_recursion= | |
904 prefix=NONE | |
905 program_prefix=NONE | |
906 program_suffix=NONE | |
907 program_transform_name=s,x,x, | |
908 silent= | |
909 site= | |
910 srcdir= | |
911 verbose= | |
912 x_includes=NONE | |
913 x_libraries=NONE | |
914 | |
915 # Installation directory options. | |
916 # These are left unexpanded so users can "make install exec_prefix=/foo" | |
917 # and all the variables that are supposed to be based on exec_prefix | |
918 # by default will actually change. | |
919 # Use braces instead of parens because sh, perl, etc. also accept them. | |
920 # (The list follows the same order as the GNU Coding Standards.) | |
921 bindir='${exec_prefix}/bin' | |
922 sbindir='${exec_prefix}/sbin' | |
923 libexecdir='${exec_prefix}/libexec' | |
924 datarootdir='${prefix}/share' | |
925 datadir='${datarootdir}' | |
926 sysconfdir='${prefix}/etc' | |
927 sharedstatedir='${prefix}/com' | |
928 localstatedir='${prefix}/var' | |
929 includedir='${prefix}/include' | |
930 oldincludedir='/usr/include' | |
931 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
932 infodir='${datarootdir}/info' | |
933 htmldir='${docdir}' | |
934 dvidir='${docdir}' | |
935 pdfdir='${docdir}' | |
936 psdir='${docdir}' | |
937 libdir='${exec_prefix}/lib' | |
938 localedir='${datarootdir}/locale' | |
939 mandir='${datarootdir}/man' | |
940 | |
941 ac_prev= | |
942 ac_dashdash= | |
943 for ac_option | |
944 do | |
945 # If the previous option needs an argument, assign it. | |
946 if test -n "$ac_prev"; then | |
947 eval $ac_prev=\$ac_option | |
948 ac_prev= | |
949 continue | |
950 fi | |
951 | |
952 case $ac_option in | |
953 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
954 *=) ac_optarg= ;; | |
955 *) ac_optarg=yes ;; | |
956 esac | |
957 | |
958 # Accept the important Cygnus configure options, so we can diagnose typos. | |
959 | |
960 case $ac_dashdash$ac_option in | |
961 --) | |
962 ac_dashdash=yes ;; | |
963 | |
964 -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
965 ac_prev=bindir ;; | |
966 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
967 bindir=$ac_optarg ;; | |
968 | |
969 -build | --build | --buil | --bui | --bu) | |
970 ac_prev=build_alias ;; | |
971 -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
972 build_alias=$ac_optarg ;; | |
973 | |
974 -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
975 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
976 ac_prev=cache_file ;; | |
977 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
978 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
979 cache_file=$ac_optarg ;; | |
980 | |
981 --config-cache | -C) | |
982 cache_file=config.cache ;; | |
983 | |
984 -datadir | --datadir | --datadi | --datad) | |
985 ac_prev=datadir ;; | |
986 -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
987 datadir=$ac_optarg ;; | |
988 | |
989 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
990 | --dataroo | --dataro | --datar) | |
991 ac_prev=datarootdir ;; | |
992 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
993 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
994 datarootdir=$ac_optarg ;; | |
995 | |
996 -disable-* | --disable-*) | |
997 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
998 # Reject names that are not valid shell variable names. | |
999 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1000 as_fn_error $? "invalid feature name: $ac_useropt" | |
1001 ac_useropt_orig=$ac_useropt | |
1002 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1003 case $ac_user_opts in | |
1004 *" | |
1005 "enable_$ac_useropt" | |
1006 "*) ;; | |
1007 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1008 ac_unrecognized_sep=', ';; | |
1009 esac | |
1010 eval enable_$ac_useropt=no ;; | |
1011 | |
1012 -docdir | --docdir | --docdi | --doc | --do) | |
1013 ac_prev=docdir ;; | |
1014 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1015 docdir=$ac_optarg ;; | |
1016 | |
1017 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1018 ac_prev=dvidir ;; | |
1019 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1020 dvidir=$ac_optarg ;; | |
1021 | |
1022 -enable-* | --enable-*) | |
1023 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1024 # Reject names that are not valid shell variable names. | |
1025 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1026 as_fn_error $? "invalid feature name: $ac_useropt" | |
1027 ac_useropt_orig=$ac_useropt | |
1028 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1029 case $ac_user_opts in | |
1030 *" | |
1031 "enable_$ac_useropt" | |
1032 "*) ;; | |
1033 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1034 ac_unrecognized_sep=', ';; | |
1035 esac | |
1036 eval enable_$ac_useropt=\$ac_optarg ;; | |
1037 | |
1038 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1039 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1040 | --exec | --exe | --ex) | |
1041 ac_prev=exec_prefix ;; | |
1042 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1043 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1044 | --exec=* | --exe=* | --ex=*) | |
1045 exec_prefix=$ac_optarg ;; | |
1046 | |
1047 -gas | --gas | --ga | --g) | |
1048 # Obsolete; use --with-gas. | |
1049 with_gas=yes ;; | |
1050 | |
1051 -help | --help | --hel | --he | -h) | |
1052 ac_init_help=long ;; | |
1053 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1054 ac_init_help=recursive ;; | |
1055 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1056 ac_init_help=short ;; | |
1057 | |
1058 -host | --host | --hos | --ho) | |
1059 ac_prev=host_alias ;; | |
1060 -host=* | --host=* | --hos=* | --ho=*) | |
1061 host_alias=$ac_optarg ;; | |
1062 | |
1063 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1064 ac_prev=htmldir ;; | |
1065 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1066 | --ht=*) | |
1067 htmldir=$ac_optarg ;; | |
1068 | |
1069 -includedir | --includedir | --includedi | --included | --include \ | |
1070 | --includ | --inclu | --incl | --inc) | |
1071 ac_prev=includedir ;; | |
1072 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1073 | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1074 includedir=$ac_optarg ;; | |
1075 | |
1076 -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1077 ac_prev=infodir ;; | |
1078 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1079 infodir=$ac_optarg ;; | |
1080 | |
1081 -libdir | --libdir | --libdi | --libd) | |
1082 ac_prev=libdir ;; | |
1083 -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1084 libdir=$ac_optarg ;; | |
1085 | |
1086 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1087 | --libexe | --libex | --libe) | |
1088 ac_prev=libexecdir ;; | |
1089 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1090 | --libexe=* | --libex=* | --libe=*) | |
1091 libexecdir=$ac_optarg ;; | |
1092 | |
1093 -localedir | --localedir | --localedi | --localed | --locale) | |
1094 ac_prev=localedir ;; | |
1095 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1096 localedir=$ac_optarg ;; | |
1097 | |
1098 -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1099 | --localstate | --localstat | --localsta | --localst | --locals) | |
1100 ac_prev=localstatedir ;; | |
1101 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1102 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1103 localstatedir=$ac_optarg ;; | |
1104 | |
1105 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1106 ac_prev=mandir ;; | |
1107 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1108 mandir=$ac_optarg ;; | |
1109 | |
1110 -nfp | --nfp | --nf) | |
1111 # Obsolete; use --without-fp. | |
1112 with_fp=no ;; | |
1113 | |
1114 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1115 | --no-cr | --no-c | -n) | |
1116 no_create=yes ;; | |
1117 | |
1118 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1119 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1120 no_recursion=yes ;; | |
1121 | |
1122 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1123 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1124 | --oldin | --oldi | --old | --ol | --o) | |
1125 ac_prev=oldincludedir ;; | |
1126 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1127 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1128 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1129 oldincludedir=$ac_optarg ;; | |
1130 | |
1131 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1132 ac_prev=prefix ;; | |
1133 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1134 prefix=$ac_optarg ;; | |
1135 | |
1136 -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1137 | --program-pre | --program-pr | --program-p) | |
1138 ac_prev=program_prefix ;; | |
1139 -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1140 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1141 program_prefix=$ac_optarg ;; | |
1142 | |
1143 -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1144 | --program-suf | --program-su | --program-s) | |
1145 ac_prev=program_suffix ;; | |
1146 -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1147 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1148 program_suffix=$ac_optarg ;; | |
1149 | |
1150 -program-transform-name | --program-transform-name \ | |
1151 | --program-transform-nam | --program-transform-na \ | |
1152 | --program-transform-n | --program-transform- \ | |
1153 | --program-transform | --program-transfor \ | |
1154 | --program-transfo | --program-transf \ | |
1155 | --program-trans | --program-tran \ | |
1156 | --progr-tra | --program-tr | --program-t) | |
1157 ac_prev=program_transform_name ;; | |
1158 -program-transform-name=* | --program-transform-name=* \ | |
1159 | --program-transform-nam=* | --program-transform-na=* \ | |
1160 | --program-transform-n=* | --program-transform-=* \ | |
1161 | --program-transform=* | --program-transfor=* \ | |
1162 | --program-transfo=* | --program-transf=* \ | |
1163 | --program-trans=* | --program-tran=* \ | |
1164 | --progr-tra=* | --program-tr=* | --program-t=*) | |
1165 program_transform_name=$ac_optarg ;; | |
1166 | |
1167 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1168 ac_prev=pdfdir ;; | |
1169 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1170 pdfdir=$ac_optarg ;; | |
1171 | |
1172 -psdir | --psdir | --psdi | --psd | --ps) | |
1173 ac_prev=psdir ;; | |
1174 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1175 psdir=$ac_optarg ;; | |
1176 | |
1177 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1178 | -silent | --silent | --silen | --sile | --sil) | |
1179 silent=yes ;; | |
1180 | |
1181 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1182 ac_prev=sbindir ;; | |
1183 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1184 | --sbi=* | --sb=*) | |
1185 sbindir=$ac_optarg ;; | |
1186 | |
1187 -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1188 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1189 | --sharedst | --shareds | --shared | --share | --shar \ | |
1190 | --sha | --sh) | |
1191 ac_prev=sharedstatedir ;; | |
1192 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1193 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1194 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1195 | --sha=* | --sh=*) | |
1196 sharedstatedir=$ac_optarg ;; | |
1197 | |
1198 -site | --site | --sit) | |
1199 ac_prev=site ;; | |
1200 -site=* | --site=* | --sit=*) | |
1201 site=$ac_optarg ;; | |
1202 | |
1203 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1204 ac_prev=srcdir ;; | |
1205 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1206 srcdir=$ac_optarg ;; | |
1207 | |
1208 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1209 | --syscon | --sysco | --sysc | --sys | --sy) | |
1210 ac_prev=sysconfdir ;; | |
1211 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1212 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1213 sysconfdir=$ac_optarg ;; | |
1214 | |
1215 -target | --target | --targe | --targ | --tar | --ta | --t) | |
1216 ac_prev=target_alias ;; | |
1217 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1218 target_alias=$ac_optarg ;; | |
1219 | |
1220 -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1221 verbose=yes ;; | |
1222 | |
1223 -version | --version | --versio | --versi | --vers | -V) | |
1224 ac_init_version=: ;; | |
1225 | |
1226 -with-* | --with-*) | |
1227 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1228 # Reject names that are not valid shell variable names. | |
1229 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1230 as_fn_error $? "invalid package name: $ac_useropt" | |
1231 ac_useropt_orig=$ac_useropt | |
1232 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1233 case $ac_user_opts in | |
1234 *" | |
1235 "with_$ac_useropt" | |
1236 "*) ;; | |
1237 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1238 ac_unrecognized_sep=', ';; | |
1239 esac | |
1240 eval with_$ac_useropt=\$ac_optarg ;; | |
1241 | |
1242 -without-* | --without-*) | |
1243 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1244 # Reject names that are not valid shell variable names. | |
1245 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1246 as_fn_error $? "invalid package name: $ac_useropt" | |
1247 ac_useropt_orig=$ac_useropt | |
1248 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1249 case $ac_user_opts in | |
1250 *" | |
1251 "with_$ac_useropt" | |
1252 "*) ;; | |
1253 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1254 ac_unrecognized_sep=', ';; | |
1255 esac | |
1256 eval with_$ac_useropt=no ;; | |
1257 | |
1258 --x) | |
1259 # Obsolete; use --with-x. | |
1260 with_x=yes ;; | |
1261 | |
1262 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1263 | --x-incl | --x-inc | --x-in | --x-i) | |
1264 ac_prev=x_includes ;; | |
1265 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1266 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1267 x_includes=$ac_optarg ;; | |
1268 | |
1269 -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1270 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1271 ac_prev=x_libraries ;; | |
1272 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1273 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1274 x_libraries=$ac_optarg ;; | |
1275 | |
1276 -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
1277 Try \`$0 --help' for more information" | |
1278 ;; | |
1279 | |
1280 *=*) | |
1281 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1282 # Reject names that are not valid shell variable names. | |
1283 case $ac_envvar in #( | |
1284 '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1285 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1286 esac | |
1287 eval $ac_envvar=\$ac_optarg | |
1288 export $ac_envvar ;; | |
1289 | |
1290 *) | |
1291 # FIXME: should be removed in autoconf 3.0. | |
1292 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1293 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1294 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1295 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
1296 ;; | |
1297 | |
1298 esac | |
1299 done | |
1300 | |
1301 if test -n "$ac_prev"; then | |
1302 ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1303 as_fn_error $? "missing argument to $ac_option" | |
1304 fi | |
1305 | |
1306 if test -n "$ac_unrecognized_opts"; then | |
1307 case $enable_option_checking in | |
1308 no) ;; | |
1309 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1310 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1311 esac | |
1312 fi | |
1313 | |
1314 # Check all directory arguments for consistency. | |
1315 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1316 datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1317 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1318 libdir localedir mandir | |
1319 do | |
1320 eval ac_val=\$$ac_var | |
1321 # Remove trailing slashes. | |
1322 case $ac_val in | |
1323 */ ) | |
1324 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1325 eval $ac_var=\$ac_val;; | |
1326 esac | |
1327 # Be sure to have absolute directory names. | |
1328 case $ac_val in | |
1329 [\\/$]* | ?:[\\/]* ) continue;; | |
1330 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1331 esac | |
1332 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1333 done | |
1334 | |
1335 # There might be people who depend on the old broken behavior: `$host' | |
1336 # used to hold the argument of --host etc. | |
1337 # FIXME: To remove some day. | |
1338 build=$build_alias | |
1339 host=$host_alias | |
1340 target=$target_alias | |
1341 | |
1342 # FIXME: To remove some day. | |
1343 if test "x$host_alias" != x; then | |
1344 if test "x$build_alias" = x; then | |
1345 cross_compiling=maybe | |
1346 elif test "x$build_alias" != "x$host_alias"; then | |
1347 cross_compiling=yes | |
1348 fi | |
1349 fi | |
1350 | |
1351 ac_tool_prefix= | |
1352 test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1353 | |
1354 test "$silent" = yes && exec 6>/dev/null | |
1355 | |
1356 | |
1357 ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1358 ac_ls_di=`ls -di .` && | |
1359 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1360 as_fn_error $? "working directory cannot be determined" | |
1361 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1362 as_fn_error $? "pwd does not report name of working directory" | |
1363 | |
1364 | |
1365 # Find the source files, if location was not specified. | |
1366 if test -z "$srcdir"; then | |
1367 ac_srcdir_defaulted=yes | |
1368 # Try the directory containing this script, then the parent directory. | |
1369 ac_confdir=`$as_dirname -- "$as_myself" || | |
1370 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1371 X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1372 X"$as_myself" : 'X\(//\)$' \| \ | |
1373 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1374 $as_echo X"$as_myself" | | |
1375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1376 s//\1/ | |
1377 q | |
1378 } | |
1379 /^X\(\/\/\)[^/].*/{ | |
1380 s//\1/ | |
1381 q | |
1382 } | |
1383 /^X\(\/\/\)$/{ | |
1384 s//\1/ | |
1385 q | |
1386 } | |
1387 /^X\(\/\).*/{ | |
1388 s//\1/ | |
1389 q | |
1390 } | |
1391 s/.*/./; q'` | |
1392 srcdir=$ac_confdir | |
1393 if test ! -r "$srcdir/$ac_unique_file"; then | |
1394 srcdir=.. | |
1395 fi | |
1396 else | |
1397 ac_srcdir_defaulted=no | |
1398 fi | |
1399 if test ! -r "$srcdir/$ac_unique_file"; then | |
1400 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1401 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1402 fi | |
1403 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1404 ac_abs_confdir=`( | |
1405 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1406 pwd)` | |
1407 # When building in place, set srcdir=. | |
1408 if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1409 srcdir=. | |
1410 fi | |
1411 # Remove unnecessary trailing slashes from srcdir. | |
1412 # Double slashes in file names in object file debugging info | |
1413 # mess up M-x gdb in Emacs. | |
1414 case $srcdir in | |
1415 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1416 esac | |
1417 for ac_var in $ac_precious_vars; do | |
1418 eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1419 eval ac_env_${ac_var}_value=\$${ac_var} | |
1420 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1421 eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1422 done | |
1423 | |
1424 # | |
1425 # Report the --help message. | |
1426 # | |
1427 if test "$ac_init_help" = "long"; then | |
1428 # Omit some internal or obsolete options to make the list less imposing. | |
1429 # This message is too long to be a string in the A/UX 3.1 sh. | |
1430 cat <<_ACEOF | |
1431 \`configure' configures fftw 3.3.5 to adapt to many kinds of systems. | |
1432 | |
1433 Usage: $0 [OPTION]... [VAR=VALUE]... | |
1434 | |
1435 To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1436 VAR=VALUE. See below for descriptions of some of the useful variables. | |
1437 | |
1438 Defaults for the options are specified in brackets. | |
1439 | |
1440 Configuration: | |
1441 -h, --help display this help and exit | |
1442 --help=short display options specific to this package | |
1443 --help=recursive display the short help of all the included packages | |
1444 -V, --version display version information and exit | |
1445 -q, --quiet, --silent do not print \`checking ...' messages | |
1446 --cache-file=FILE cache test results in FILE [disabled] | |
1447 -C, --config-cache alias for \`--cache-file=config.cache' | |
1448 -n, --no-create do not create output files | |
1449 --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1450 | |
1451 Installation directories: | |
1452 --prefix=PREFIX install architecture-independent files in PREFIX | |
1453 [$ac_default_prefix] | |
1454 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1455 [PREFIX] | |
1456 | |
1457 By default, \`make install' will install all the files in | |
1458 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1459 an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1460 for instance \`--prefix=\$HOME'. | |
1461 | |
1462 For better control, use the options below. | |
1463 | |
1464 Fine tuning of the installation directories: | |
1465 --bindir=DIR user executables [EPREFIX/bin] | |
1466 --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1467 --libexecdir=DIR program executables [EPREFIX/libexec] | |
1468 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1469 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1470 --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1471 --libdir=DIR object code libraries [EPREFIX/lib] | |
1472 --includedir=DIR C header files [PREFIX/include] | |
1473 --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1474 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1475 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1476 --infodir=DIR info documentation [DATAROOTDIR/info] | |
1477 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1478 --mandir=DIR man documentation [DATAROOTDIR/man] | |
1479 --docdir=DIR documentation root [DATAROOTDIR/doc/fftw] | |
1480 --htmldir=DIR html documentation [DOCDIR] | |
1481 --dvidir=DIR dvi documentation [DOCDIR] | |
1482 --pdfdir=DIR pdf documentation [DOCDIR] | |
1483 --psdir=DIR ps documentation [DOCDIR] | |
1484 _ACEOF | |
1485 | |
1486 cat <<\_ACEOF | |
1487 | |
1488 Program names: | |
1489 --program-prefix=PREFIX prepend PREFIX to installed program names | |
1490 --program-suffix=SUFFIX append SUFFIX to installed program names | |
1491 --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1492 | |
1493 System types: | |
1494 --build=BUILD configure for building on BUILD [guessed] | |
1495 --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1496 _ACEOF | |
1497 fi | |
1498 | |
1499 if test -n "$ac_init_help"; then | |
1500 case $ac_init_help in | |
1501 short | recursive ) echo "Configuration of fftw 3.3.5:";; | |
1502 esac | |
1503 cat <<\_ACEOF | |
1504 | |
1505 Optional Features: | |
1506 --disable-option-checking ignore unrecognized --enable/--with options | |
1507 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1508 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1509 --enable-silent-rules less verbose build output (undo: "make V=1") | |
1510 --disable-silent-rules verbose build output (undo: "make V=0") | |
1511 --enable-maintainer-mode | |
1512 enable make rules and dependencies not useful (and | |
1513 sometimes confusing) to the casual installer | |
1514 --enable-shared[=PKGS] build shared libraries [default=no] | |
1515 --enable-debug compile fftw with extra runtime checks for debugging | |
1516 --disable-doc disable building the documentation | |
1517 --enable-debug-malloc enable malloc debugging version | |
1518 --enable-debug-alignment | |
1519 enable alignment debugging hacks | |
1520 --enable-random-estimator | |
1521 enable pseudorandom estimator (debugging hack) | |
1522 --disable-alloca disable use of the alloca() function (may be broken | |
1523 on mingw64) | |
1524 --enable-single compile fftw in single precision | |
1525 --enable-float synonym for --enable-single | |
1526 --enable-long-double compile fftw in long-double precision | |
1527 --enable-quad-precision compile fftw in quadruple precision if available | |
1528 --enable-sse enable SSE optimizations | |
1529 --enable-sse2 enable SSE/SSE2 optimizations | |
1530 --enable-avx enable AVX optimizations | |
1531 --enable-avx2 enable AVX2 optimizations | |
1532 --enable-avx512 enable AVX512 optimizations | |
1533 --enable-avx-128-fma enable AVX128/FMA optimizations | |
1534 --enable-kcvi enable Knights Corner vector instructions | |
1535 optimizations | |
1536 --enable-altivec enable Altivec optimizations | |
1537 --enable-vsx enable IBM VSX optimizations | |
1538 --enable-neon enable ARM NEON optimizations | |
1539 --enable-armv8cyclecounter | |
1540 enable the cycle counter on ARMv8 ; require enabling | |
1541 in kernel mode, see | |
1542 <https://github.com/rdolbeau/enable_arm_pmu> | |
1543 --enable-generic-simd128 | |
1544 enable generic (gcc) 128-bit SIMD optimizations | |
1545 --enable-generic-simd256 | |
1546 enable generic (gcc) 256-bit SIMD optimizations | |
1547 --enable-mips-zbus-timer | |
1548 use MIPS ZBus cycle-counter | |
1549 --enable-fma enable optimizations for machines with fused | |
1550 multiply-add | |
1551 --enable-dependency-tracking | |
1552 do not reject slow dependency extractors | |
1553 --disable-dependency-tracking | |
1554 speeds up one-time build | |
1555 --enable-static[=PKGS] build static libraries [default=yes] | |
1556 --enable-fast-install[=PKGS] | |
1557 optimize for fast installation [default=yes] | |
1558 --disable-libtool-lock avoid locking (might break parallel builds) | |
1559 --enable-mpi compile FFTW MPI library | |
1560 --disable-fortran don't include Fortran-callable wrappers | |
1561 --enable-openmp use OpenMP directives for parallelism | |
1562 --enable-threads compile FFTW SMP threads library | |
1563 | |
1564 Optional Packages: | |
1565 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1566 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1567 --with-slow-timer use low-precision timers (SLOW) | |
1568 --with-our-malloc use our aligned malloc (helpful for Win32) | |
1569 --with-our-malloc16 Obsolete alias for --with-our-malloc16 | |
1570 --with-windows-f77-mangling | |
1571 use common Win32 Fortran interface styles | |
1572 --with-incoming-stack-boundary=X | |
1573 Assume that stack is aligned to (1<<X) bytes | |
1574 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use | |
1575 both] | |
1576 --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1577 --with-sysroot=DIR Search for dependent libraries within DIR | |
1578 (or the compiler's sysroot if not specified). | |
1579 --with-g77-wrappers force inclusion of g77-compatible wrappers in | |
1580 addition to any other Fortran compiler that is | |
1581 detected | |
1582 --with-combined-threads combine threads into main libfftw3 | |
1583 | |
1584 Some influential environment variables: | |
1585 CC C compiler command | |
1586 CFLAGS C compiler flags | |
1587 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1588 nonstandard directory <lib dir> | |
1589 LIBS libraries to pass to the linker, e.g. -l<library> | |
1590 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1591 you have headers in a nonstandard directory <include dir> | |
1592 CPP C preprocessor | |
1593 MPICC MPI C compiler command | |
1594 F77 Fortran 77 compiler command | |
1595 FFLAGS Fortran 77 compiler flags | |
1596 | |
1597 Use these variables to override the choices made by `configure' or to help | |
1598 it to find libraries and programs with nonstandard names/locations. | |
1599 | |
1600 Report bugs to <fftw@fftw.org>. | |
1601 _ACEOF | |
1602 ac_status=$? | |
1603 fi | |
1604 | |
1605 if test "$ac_init_help" = "recursive"; then | |
1606 # If there are subdirs, report their specific --help. | |
1607 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1608 test -d "$ac_dir" || | |
1609 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1610 continue | |
1611 ac_builddir=. | |
1612 | |
1613 case "$ac_dir" in | |
1614 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1615 *) | |
1616 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1617 # A ".." for each directory in $ac_dir_suffix. | |
1618 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1619 case $ac_top_builddir_sub in | |
1620 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1621 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1622 esac ;; | |
1623 esac | |
1624 ac_abs_top_builddir=$ac_pwd | |
1625 ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1626 # for backward compatibility: | |
1627 ac_top_builddir=$ac_top_build_prefix | |
1628 | |
1629 case $srcdir in | |
1630 .) # We are building in place. | |
1631 ac_srcdir=. | |
1632 ac_top_srcdir=$ac_top_builddir_sub | |
1633 ac_abs_top_srcdir=$ac_pwd ;; | |
1634 [\\/]* | ?:[\\/]* ) # Absolute name. | |
1635 ac_srcdir=$srcdir$ac_dir_suffix; | |
1636 ac_top_srcdir=$srcdir | |
1637 ac_abs_top_srcdir=$srcdir ;; | |
1638 *) # Relative name. | |
1639 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1640 ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1641 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1642 esac | |
1643 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1644 | |
1645 cd "$ac_dir" || { ac_status=$?; continue; } | |
1646 # Check for guested configure. | |
1647 if test -f "$ac_srcdir/configure.gnu"; then | |
1648 echo && | |
1649 $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1650 elif test -f "$ac_srcdir/configure"; then | |
1651 echo && | |
1652 $SHELL "$ac_srcdir/configure" --help=recursive | |
1653 else | |
1654 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1655 fi || ac_status=$? | |
1656 cd "$ac_pwd" || { ac_status=$?; break; } | |
1657 done | |
1658 fi | |
1659 | |
1660 test -n "$ac_init_help" && exit $ac_status | |
1661 if $ac_init_version; then | |
1662 cat <<\_ACEOF | |
1663 fftw configure 3.3.5 | |
1664 generated by GNU Autoconf 2.69 | |
1665 | |
1666 Copyright (C) 2012 Free Software Foundation, Inc. | |
1667 This configure script is free software; the Free Software Foundation | |
1668 gives unlimited permission to copy, distribute and modify it. | |
1669 _ACEOF | |
1670 exit | |
1671 fi | |
1672 | |
1673 ## ------------------------ ## | |
1674 ## Autoconf initialization. ## | |
1675 ## ------------------------ ## | |
1676 | |
1677 # ac_fn_c_try_compile LINENO | |
1678 # -------------------------- | |
1679 # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1680 ac_fn_c_try_compile () | |
1681 { | |
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1683 rm -f conftest.$ac_objext | |
1684 if { { ac_try="$ac_compile" | |
1685 case "(($ac_try" in | |
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1687 *) ac_try_echo=$ac_try;; | |
1688 esac | |
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1690 $as_echo "$ac_try_echo"; } >&5 | |
1691 (eval "$ac_compile") 2>conftest.err | |
1692 ac_status=$? | |
1693 if test -s conftest.err; then | |
1694 grep -v '^ *+' conftest.err >conftest.er1 | |
1695 cat conftest.er1 >&5 | |
1696 mv -f conftest.er1 conftest.err | |
1697 fi | |
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1699 test $ac_status = 0; } && { | |
1700 test -z "$ac_c_werror_flag" || | |
1701 test ! -s conftest.err | |
1702 } && test -s conftest.$ac_objext; then : | |
1703 ac_retval=0 | |
1704 else | |
1705 $as_echo "$as_me: failed program was:" >&5 | |
1706 sed 's/^/| /' conftest.$ac_ext >&5 | |
1707 | |
1708 ac_retval=1 | |
1709 fi | |
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1711 as_fn_set_status $ac_retval | |
1712 | |
1713 } # ac_fn_c_try_compile | |
1714 | |
1715 # ac_fn_c_try_link LINENO | |
1716 # ----------------------- | |
1717 # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1718 ac_fn_c_try_link () | |
1719 { | |
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1721 rm -f conftest.$ac_objext conftest$ac_exeext | |
1722 if { { ac_try="$ac_link" | |
1723 case "(($ac_try" in | |
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1725 *) ac_try_echo=$ac_try;; | |
1726 esac | |
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1728 $as_echo "$ac_try_echo"; } >&5 | |
1729 (eval "$ac_link") 2>conftest.err | |
1730 ac_status=$? | |
1731 if test -s conftest.err; then | |
1732 grep -v '^ *+' conftest.err >conftest.er1 | |
1733 cat conftest.er1 >&5 | |
1734 mv -f conftest.er1 conftest.err | |
1735 fi | |
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1737 test $ac_status = 0; } && { | |
1738 test -z "$ac_c_werror_flag" || | |
1739 test ! -s conftest.err | |
1740 } && test -s conftest$ac_exeext && { | |
1741 test "$cross_compiling" = yes || | |
1742 test -x conftest$ac_exeext | |
1743 }; then : | |
1744 ac_retval=0 | |
1745 else | |
1746 $as_echo "$as_me: failed program was:" >&5 | |
1747 sed 's/^/| /' conftest.$ac_ext >&5 | |
1748 | |
1749 ac_retval=1 | |
1750 fi | |
1751 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1752 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1753 # interfere with the next link command; also delete a directory that is | |
1754 # left behind by Apple's compiler. We do this before executing the actions. | |
1755 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1757 as_fn_set_status $ac_retval | |
1758 | |
1759 } # ac_fn_c_try_link | |
1760 | |
1761 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1762 # ------------------------------------------------------- | |
1763 # Tests whether HEADER exists and can be compiled using the include files in | |
1764 # INCLUDES, setting the cache variable VAR accordingly. | |
1765 ac_fn_c_check_header_compile () | |
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; } | |
1770 if eval \${$3+:} false; then : | |
1771 $as_echo_n "(cached) " >&6 | |
1772 else | |
1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1774 /* end confdefs.h. */ | |
1775 $4 | |
1776 #include <$2> | |
1777 _ACEOF | |
1778 if ac_fn_c_try_compile "$LINENO"; then : | |
1779 eval "$3=yes" | |
1780 else | |
1781 eval "$3=no" | |
1782 fi | |
1783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1784 fi | |
1785 eval ac_res=\$$3 | |
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1787 $as_echo "$ac_res" >&6; } | |
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1789 | |
1790 } # ac_fn_c_check_header_compile | |
1791 | |
1792 # ac_fn_c_try_cpp LINENO | |
1793 # ---------------------- | |
1794 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1795 ac_fn_c_try_cpp () | |
1796 { | |
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1798 if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1799 case "(($ac_try" in | |
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1801 *) ac_try_echo=$ac_try;; | |
1802 esac | |
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1804 $as_echo "$ac_try_echo"; } >&5 | |
1805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1806 ac_status=$? | |
1807 if test -s conftest.err; then | |
1808 grep -v '^ *+' conftest.err >conftest.er1 | |
1809 cat conftest.er1 >&5 | |
1810 mv -f conftest.er1 conftest.err | |
1811 fi | |
1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1813 test $ac_status = 0; } > conftest.i && { | |
1814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1815 test ! -s conftest.err | |
1816 }; then : | |
1817 ac_retval=0 | |
1818 else | |
1819 $as_echo "$as_me: failed program was:" >&5 | |
1820 sed 's/^/| /' conftest.$ac_ext >&5 | |
1821 | |
1822 ac_retval=1 | |
1823 fi | |
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1825 as_fn_set_status $ac_retval | |
1826 | |
1827 } # ac_fn_c_try_cpp | |
1828 | |
1829 # ac_fn_c_try_run LINENO | |
1830 # ---------------------- | |
1831 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1832 # that executables *can* be run. | |
1833 ac_fn_c_try_run () | |
1834 { | |
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1836 if { { ac_try="$ac_link" | |
1837 case "(($ac_try" in | |
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1839 *) ac_try_echo=$ac_try;; | |
1840 esac | |
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1842 $as_echo "$ac_try_echo"; } >&5 | |
1843 (eval "$ac_link") 2>&5 | |
1844 ac_status=$? | |
1845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1846 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1847 { { case "(($ac_try" in | |
1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1849 *) ac_try_echo=$ac_try;; | |
1850 esac | |
1851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1852 $as_echo "$ac_try_echo"; } >&5 | |
1853 (eval "$ac_try") 2>&5 | |
1854 ac_status=$? | |
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1856 test $ac_status = 0; }; }; then : | |
1857 ac_retval=0 | |
1858 else | |
1859 $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1860 $as_echo "$as_me: failed program was:" >&5 | |
1861 sed 's/^/| /' conftest.$ac_ext >&5 | |
1862 | |
1863 ac_retval=$ac_status | |
1864 fi | |
1865 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1867 as_fn_set_status $ac_retval | |
1868 | |
1869 } # ac_fn_c_try_run | |
1870 | |
1871 # ac_fn_c_check_func LINENO FUNC VAR | |
1872 # ---------------------------------- | |
1873 # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1874 ac_fn_c_check_func () | |
1875 { | |
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1878 $as_echo_n "checking for $2... " >&6; } | |
1879 if eval \${$3+:} false; then : | |
1880 $as_echo_n "(cached) " >&6 | |
1881 else | |
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1883 /* end confdefs.h. */ | |
1884 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1885 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1886 #define $2 innocuous_$2 | |
1887 | |
1888 /* System header to define __stub macros and hopefully few prototypes, | |
1889 which can conflict with char $2 (); below. | |
1890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1891 <limits.h> exists even on freestanding compilers. */ | |
1892 | |
1893 #ifdef __STDC__ | |
1894 # include <limits.h> | |
1895 #else | |
1896 # include <assert.h> | |
1897 #endif | |
1898 | |
1899 #undef $2 | |
1900 | |
1901 /* Override any GCC internal prototype to avoid an error. | |
1902 Use char because int might match the return type of a GCC | |
1903 builtin and then its argument prototype would still apply. */ | |
1904 #ifdef __cplusplus | |
1905 extern "C" | |
1906 #endif | |
1907 char $2 (); | |
1908 /* The GNU C library defines this for functions which it implements | |
1909 to always fail with ENOSYS. Some functions are actually named | |
1910 something starting with __ and the normal name is an alias. */ | |
1911 #if defined __stub_$2 || defined __stub___$2 | |
1912 choke me | |
1913 #endif | |
1914 | |
1915 int | |
1916 main () | |
1917 { | |
1918 return $2 (); | |
1919 ; | |
1920 return 0; | |
1921 } | |
1922 _ACEOF | |
1923 if ac_fn_c_try_link "$LINENO"; then : | |
1924 eval "$3=yes" | |
1925 else | |
1926 eval "$3=no" | |
1927 fi | |
1928 rm -f core conftest.err conftest.$ac_objext \ | |
1929 conftest$ac_exeext conftest.$ac_ext | |
1930 fi | |
1931 eval ac_res=\$$3 | |
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1933 $as_echo "$ac_res" >&6; } | |
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1935 | |
1936 } # ac_fn_c_check_func | |
1937 | |
1938 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
1939 # -------------------------------------------- | |
1940 # Tries to find the compile-time value of EXPR in a program that includes | |
1941 # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
1942 # computed | |
1943 ac_fn_c_compute_int () | |
1944 { | |
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1946 if test "$cross_compiling" = yes; then | |
1947 # Depending upon the size, compute the lo and hi bounds. | |
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1949 /* end confdefs.h. */ | |
1950 $4 | |
1951 int | |
1952 main () | |
1953 { | |
1954 static int test_array [1 - 2 * !(($2) >= 0)]; | |
1955 test_array [0] = 0; | |
1956 return test_array [0]; | |
1957 | |
1958 ; | |
1959 return 0; | |
1960 } | |
1961 _ACEOF | |
1962 if ac_fn_c_try_compile "$LINENO"; then : | |
1963 ac_lo=0 ac_mid=0 | |
1964 while :; do | |
1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1966 /* end confdefs.h. */ | |
1967 $4 | |
1968 int | |
1969 main () | |
1970 { | |
1971 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
1972 test_array [0] = 0; | |
1973 return test_array [0]; | |
1974 | |
1975 ; | |
1976 return 0; | |
1977 } | |
1978 _ACEOF | |
1979 if ac_fn_c_try_compile "$LINENO"; then : | |
1980 ac_hi=$ac_mid; break | |
1981 else | |
1982 as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
1983 if test $ac_lo -le $ac_mid; then | |
1984 ac_lo= ac_hi= | |
1985 break | |
1986 fi | |
1987 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
1988 fi | |
1989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1990 done | |
1991 else | |
1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1993 /* end confdefs.h. */ | |
1994 $4 | |
1995 int | |
1996 main () | |
1997 { | |
1998 static int test_array [1 - 2 * !(($2) < 0)]; | |
1999 test_array [0] = 0; | |
2000 return test_array [0]; | |
2001 | |
2002 ; | |
2003 return 0; | |
2004 } | |
2005 _ACEOF | |
2006 if ac_fn_c_try_compile "$LINENO"; then : | |
2007 ac_hi=-1 ac_mid=-1 | |
2008 while :; do | |
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2010 /* end confdefs.h. */ | |
2011 $4 | |
2012 int | |
2013 main () | |
2014 { | |
2015 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
2016 test_array [0] = 0; | |
2017 return test_array [0]; | |
2018 | |
2019 ; | |
2020 return 0; | |
2021 } | |
2022 _ACEOF | |
2023 if ac_fn_c_try_compile "$LINENO"; then : | |
2024 ac_lo=$ac_mid; break | |
2025 else | |
2026 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2027 if test $ac_mid -le $ac_hi; then | |
2028 ac_lo= ac_hi= | |
2029 break | |
2030 fi | |
2031 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
2032 fi | |
2033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2034 done | |
2035 else | |
2036 ac_lo= ac_hi= | |
2037 fi | |
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2039 fi | |
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2041 # Binary search between lo and hi bounds. | |
2042 while test "x$ac_lo" != "x$ac_hi"; do | |
2043 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2045 /* end confdefs.h. */ | |
2046 $4 | |
2047 int | |
2048 main () | |
2049 { | |
2050 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2051 test_array [0] = 0; | |
2052 return test_array [0]; | |
2053 | |
2054 ; | |
2055 return 0; | |
2056 } | |
2057 _ACEOF | |
2058 if ac_fn_c_try_compile "$LINENO"; then : | |
2059 ac_hi=$ac_mid | |
2060 else | |
2061 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2062 fi | |
2063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2064 done | |
2065 case $ac_lo in #(( | |
2066 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2067 '') ac_retval=1 ;; | |
2068 esac | |
2069 else | |
2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2071 /* end confdefs.h. */ | |
2072 $4 | |
2073 static long int longval () { return $2; } | |
2074 static unsigned long int ulongval () { return $2; } | |
2075 #include <stdio.h> | |
2076 #include <stdlib.h> | |
2077 int | |
2078 main () | |
2079 { | |
2080 | |
2081 FILE *f = fopen ("conftest.val", "w"); | |
2082 if (! f) | |
2083 return 1; | |
2084 if (($2) < 0) | |
2085 { | |
2086 long int i = longval (); | |
2087 if (i != ($2)) | |
2088 return 1; | |
2089 fprintf (f, "%ld", i); | |
2090 } | |
2091 else | |
2092 { | |
2093 unsigned long int i = ulongval (); | |
2094 if (i != ($2)) | |
2095 return 1; | |
2096 fprintf (f, "%lu", i); | |
2097 } | |
2098 /* Do not output a trailing newline, as this causes \r\n confusion | |
2099 on some platforms. */ | |
2100 return ferror (f) || fclose (f) != 0; | |
2101 | |
2102 ; | |
2103 return 0; | |
2104 } | |
2105 _ACEOF | |
2106 if ac_fn_c_try_run "$LINENO"; then : | |
2107 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2108 else | |
2109 ac_retval=1 | |
2110 fi | |
2111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2112 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2113 rm -f conftest.val | |
2114 | |
2115 fi | |
2116 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2117 as_fn_set_status $ac_retval | |
2118 | |
2119 } # ac_fn_c_compute_int | |
2120 | |
2121 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
2122 # ------------------------------------------------------- | |
2123 # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2124 # the include files in INCLUDES and setting the cache variable VAR | |
2125 # accordingly. | |
2126 ac_fn_c_check_header_mongrel () | |
2127 { | |
2128 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2129 if eval \${$3+:} false; then : | |
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2131 $as_echo_n "checking for $2... " >&6; } | |
2132 if eval \${$3+:} false; then : | |
2133 $as_echo_n "(cached) " >&6 | |
2134 fi | |
2135 eval ac_res=\$$3 | |
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2137 $as_echo "$ac_res" >&6; } | |
2138 else | |
2139 # Is the header compilable? | |
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2141 $as_echo_n "checking $2 usability... " >&6; } | |
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2143 /* end confdefs.h. */ | |
2144 $4 | |
2145 #include <$2> | |
2146 _ACEOF | |
2147 if ac_fn_c_try_compile "$LINENO"; then : | |
2148 ac_header_compiler=yes | |
2149 else | |
2150 ac_header_compiler=no | |
2151 fi | |
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2154 $as_echo "$ac_header_compiler" >&6; } | |
2155 | |
2156 # Is the header present? | |
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2158 $as_echo_n "checking $2 presence... " >&6; } | |
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2160 /* end confdefs.h. */ | |
2161 #include <$2> | |
2162 _ACEOF | |
2163 if ac_fn_c_try_cpp "$LINENO"; then : | |
2164 ac_header_preproc=yes | |
2165 else | |
2166 ac_header_preproc=no | |
2167 fi | |
2168 rm -f conftest.err conftest.i conftest.$ac_ext | |
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
2170 $as_echo "$ac_header_preproc" >&6; } | |
2171 | |
2172 # So? What about this header? | |
2173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
2174 yes:no: ) | |
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2176 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2178 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2179 ;; | |
2180 no:yes:* ) | |
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2182 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2184 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2186 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2188 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2190 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2191 ( $as_echo "## ---------------------------- ## | |
2192 ## Report this to fftw@fftw.org ## | |
2193 ## ---------------------------- ##" | |
2194 ) | sed "s/^/$as_me: WARNING: /" >&2 | |
2195 ;; | |
2196 esac | |
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2198 $as_echo_n "checking for $2... " >&6; } | |
2199 if eval \${$3+:} false; then : | |
2200 $as_echo_n "(cached) " >&6 | |
2201 else | |
2202 eval "$3=\$ac_header_compiler" | |
2203 fi | |
2204 eval ac_res=\$$3 | |
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2206 $as_echo "$ac_res" >&6; } | |
2207 fi | |
2208 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2209 | |
2210 } # ac_fn_c_check_header_mongrel | |
2211 | |
2212 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
2213 # ------------------------------------------- | |
2214 # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2215 # variable VAR accordingly. | |
2216 ac_fn_c_check_type () | |
2217 { | |
2218 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2220 $as_echo_n "checking for $2... " >&6; } | |
2221 if eval \${$3+:} false; then : | |
2222 $as_echo_n "(cached) " >&6 | |
2223 else | |
2224 eval "$3=no" | |
2225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2226 /* end confdefs.h. */ | |
2227 $4 | |
2228 int | |
2229 main () | |
2230 { | |
2231 if (sizeof ($2)) | |
2232 return 0; | |
2233 ; | |
2234 return 0; | |
2235 } | |
2236 _ACEOF | |
2237 if ac_fn_c_try_compile "$LINENO"; then : | |
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2239 /* end confdefs.h. */ | |
2240 $4 | |
2241 int | |
2242 main () | |
2243 { | |
2244 if (sizeof (($2))) | |
2245 return 0; | |
2246 ; | |
2247 return 0; | |
2248 } | |
2249 _ACEOF | |
2250 if ac_fn_c_try_compile "$LINENO"; then : | |
2251 | |
2252 else | |
2253 eval "$3=yes" | |
2254 fi | |
2255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2256 fi | |
2257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2258 fi | |
2259 eval ac_res=\$$3 | |
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2261 $as_echo "$ac_res" >&6; } | |
2262 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2263 | |
2264 } # ac_fn_c_check_type | |
2265 | |
2266 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | |
2267 # --------------------------------------------- | |
2268 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
2269 # accordingly. | |
2270 ac_fn_c_check_decl () | |
2271 { | |
2272 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2273 as_decl_name=`echo $2|sed 's/ *(.*//'` | |
2274 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2276 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
2277 if eval \${$3+:} false; then : | |
2278 $as_echo_n "(cached) " >&6 | |
2279 else | |
2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2281 /* end confdefs.h. */ | |
2282 $4 | |
2283 int | |
2284 main () | |
2285 { | |
2286 #ifndef $as_decl_name | |
2287 #ifdef __cplusplus | |
2288 (void) $as_decl_use; | |
2289 #else | |
2290 (void) $as_decl_name; | |
2291 #endif | |
2292 #endif | |
2293 | |
2294 ; | |
2295 return 0; | |
2296 } | |
2297 _ACEOF | |
2298 if ac_fn_c_try_compile "$LINENO"; then : | |
2299 eval "$3=yes" | |
2300 else | |
2301 eval "$3=no" | |
2302 fi | |
2303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2304 fi | |
2305 eval ac_res=\$$3 | |
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2307 $as_echo "$ac_res" >&6; } | |
2308 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2309 | |
2310 } # ac_fn_c_check_decl | |
2311 | |
2312 # ac_fn_f77_try_compile LINENO | |
2313 # ---------------------------- | |
2314 # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
2315 ac_fn_f77_try_compile () | |
2316 { | |
2317 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2318 rm -f conftest.$ac_objext | |
2319 if { { ac_try="$ac_compile" | |
2320 case "(($ac_try" in | |
2321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2322 *) ac_try_echo=$ac_try;; | |
2323 esac | |
2324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2325 $as_echo "$ac_try_echo"; } >&5 | |
2326 (eval "$ac_compile") 2>conftest.err | |
2327 ac_status=$? | |
2328 if test -s conftest.err; then | |
2329 grep -v '^ *+' conftest.err >conftest.er1 | |
2330 cat conftest.er1 >&5 | |
2331 mv -f conftest.er1 conftest.err | |
2332 fi | |
2333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2334 test $ac_status = 0; } && { | |
2335 test -z "$ac_f77_werror_flag" || | |
2336 test ! -s conftest.err | |
2337 } && test -s conftest.$ac_objext; then : | |
2338 ac_retval=0 | |
2339 else | |
2340 $as_echo "$as_me: failed program was:" >&5 | |
2341 sed 's/^/| /' conftest.$ac_ext >&5 | |
2342 | |
2343 ac_retval=1 | |
2344 fi | |
2345 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2346 as_fn_set_status $ac_retval | |
2347 | |
2348 } # ac_fn_f77_try_compile | |
2349 | |
2350 # ac_fn_f77_try_link LINENO | |
2351 # ------------------------- | |
2352 # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2353 ac_fn_f77_try_link () | |
2354 { | |
2355 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2356 rm -f conftest.$ac_objext conftest$ac_exeext | |
2357 if { { ac_try="$ac_link" | |
2358 case "(($ac_try" in | |
2359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2360 *) ac_try_echo=$ac_try;; | |
2361 esac | |
2362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2363 $as_echo "$ac_try_echo"; } >&5 | |
2364 (eval "$ac_link") 2>conftest.err | |
2365 ac_status=$? | |
2366 if test -s conftest.err; then | |
2367 grep -v '^ *+' conftest.err >conftest.er1 | |
2368 cat conftest.er1 >&5 | |
2369 mv -f conftest.er1 conftest.err | |
2370 fi | |
2371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2372 test $ac_status = 0; } && { | |
2373 test -z "$ac_f77_werror_flag" || | |
2374 test ! -s conftest.err | |
2375 } && test -s conftest$ac_exeext && { | |
2376 test "$cross_compiling" = yes || | |
2377 test -x conftest$ac_exeext | |
2378 }; then : | |
2379 ac_retval=0 | |
2380 else | |
2381 $as_echo "$as_me: failed program was:" >&5 | |
2382 sed 's/^/| /' conftest.$ac_ext >&5 | |
2383 | |
2384 ac_retval=1 | |
2385 fi | |
2386 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2387 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2388 # interfere with the next link command; also delete a directory that is | |
2389 # left behind by Apple's compiler. We do this before executing the actions. | |
2390 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2391 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2392 as_fn_set_status $ac_retval | |
2393 | |
2394 } # ac_fn_f77_try_link | |
2395 cat >config.log <<_ACEOF | |
2396 This file contains any messages produced by compilers while | |
2397 running configure, to aid debugging if configure makes a mistake. | |
2398 | |
2399 It was created by fftw $as_me 3.3.5, which was | |
2400 generated by GNU Autoconf 2.69. Invocation command line was | |
2401 | |
2402 $ $0 $@ | |
2403 | |
2404 _ACEOF | |
2405 exec 5>>config.log | |
2406 { | |
2407 cat <<_ASUNAME | |
2408 ## --------- ## | |
2409 ## Platform. ## | |
2410 ## --------- ## | |
2411 | |
2412 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2413 uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2414 uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2415 uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2416 uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2417 | |
2418 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2419 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2420 | |
2421 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2422 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2423 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2424 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2425 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2426 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2427 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2428 | |
2429 _ASUNAME | |
2430 | |
2431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2432 for as_dir in $PATH | |
2433 do | |
2434 IFS=$as_save_IFS | |
2435 test -z "$as_dir" && as_dir=. | |
2436 $as_echo "PATH: $as_dir" | |
2437 done | |
2438 IFS=$as_save_IFS | |
2439 | |
2440 } >&5 | |
2441 | |
2442 cat >&5 <<_ACEOF | |
2443 | |
2444 | |
2445 ## ----------- ## | |
2446 ## Core tests. ## | |
2447 ## ----------- ## | |
2448 | |
2449 _ACEOF | |
2450 | |
2451 | |
2452 # Keep a trace of the command line. | |
2453 # Strip out --no-create and --no-recursion so they do not pile up. | |
2454 # Strip out --silent because we don't want to record it for future runs. | |
2455 # Also quote any args containing shell meta-characters. | |
2456 # Make two passes to allow for proper duplicate-argument suppression. | |
2457 ac_configure_args= | |
2458 ac_configure_args0= | |
2459 ac_configure_args1= | |
2460 ac_must_keep_next=false | |
2461 for ac_pass in 1 2 | |
2462 do | |
2463 for ac_arg | |
2464 do | |
2465 case $ac_arg in | |
2466 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2467 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2468 | -silent | --silent | --silen | --sile | --sil) | |
2469 continue ;; | |
2470 *\'*) | |
2471 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2472 esac | |
2473 case $ac_pass in | |
2474 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2475 2) | |
2476 as_fn_append ac_configure_args1 " '$ac_arg'" | |
2477 if test $ac_must_keep_next = true; then | |
2478 ac_must_keep_next=false # Got value, back to normal. | |
2479 else | |
2480 case $ac_arg in | |
2481 *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2482 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2483 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2484 | -with-* | --with-* | -without-* | --without-* | --x) | |
2485 case "$ac_configure_args0 " in | |
2486 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2487 esac | |
2488 ;; | |
2489 -* ) ac_must_keep_next=true ;; | |
2490 esac | |
2491 fi | |
2492 as_fn_append ac_configure_args " '$ac_arg'" | |
2493 ;; | |
2494 esac | |
2495 done | |
2496 done | |
2497 { ac_configure_args0=; unset ac_configure_args0;} | |
2498 { ac_configure_args1=; unset ac_configure_args1;} | |
2499 | |
2500 # When interrupted or exit'd, cleanup temporary files, and complete | |
2501 # config.log. We remove comments because anyway the quotes in there | |
2502 # would cause problems or look ugly. | |
2503 # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2504 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2505 trap 'exit_status=$? | |
2506 # Save into config.log some information that might help in debugging. | |
2507 { | |
2508 echo | |
2509 | |
2510 $as_echo "## ---------------- ## | |
2511 ## Cache variables. ## | |
2512 ## ---------------- ##" | |
2513 echo | |
2514 # The following way of writing the cache mishandles newlines in values, | |
2515 ( | |
2516 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2517 eval ac_val=\$$ac_var | |
2518 case $ac_val in #( | |
2519 *${as_nl}*) | |
2520 case $ac_var in #( | |
2521 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2522 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2523 esac | |
2524 case $ac_var in #( | |
2525 _ | IFS | as_nl) ;; #( | |
2526 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2527 *) { eval $ac_var=; unset $ac_var;} ;; | |
2528 esac ;; | |
2529 esac | |
2530 done | |
2531 (set) 2>&1 | | |
2532 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2533 *${as_nl}ac_space=\ *) | |
2534 sed -n \ | |
2535 "s/'\''/'\''\\\\'\'''\''/g; | |
2536 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2537 ;; #( | |
2538 *) | |
2539 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2540 ;; | |
2541 esac | | |
2542 sort | |
2543 ) | |
2544 echo | |
2545 | |
2546 $as_echo "## ----------------- ## | |
2547 ## Output variables. ## | |
2548 ## ----------------- ##" | |
2549 echo | |
2550 for ac_var in $ac_subst_vars | |
2551 do | |
2552 eval ac_val=\$$ac_var | |
2553 case $ac_val in | |
2554 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2555 esac | |
2556 $as_echo "$ac_var='\''$ac_val'\''" | |
2557 done | sort | |
2558 echo | |
2559 | |
2560 if test -n "$ac_subst_files"; then | |
2561 $as_echo "## ------------------- ## | |
2562 ## File substitutions. ## | |
2563 ## ------------------- ##" | |
2564 echo | |
2565 for ac_var in $ac_subst_files | |
2566 do | |
2567 eval ac_val=\$$ac_var | |
2568 case $ac_val in | |
2569 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2570 esac | |
2571 $as_echo "$ac_var='\''$ac_val'\''" | |
2572 done | sort | |
2573 echo | |
2574 fi | |
2575 | |
2576 if test -s confdefs.h; then | |
2577 $as_echo "## ----------- ## | |
2578 ## confdefs.h. ## | |
2579 ## ----------- ##" | |
2580 echo | |
2581 cat confdefs.h | |
2582 echo | |
2583 fi | |
2584 test "$ac_signal" != 0 && | |
2585 $as_echo "$as_me: caught signal $ac_signal" | |
2586 $as_echo "$as_me: exit $exit_status" | |
2587 } >&5 | |
2588 rm -f core *.core core.conftest.* && | |
2589 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2590 exit $exit_status | |
2591 ' 0 | |
2592 for ac_signal in 1 2 13 15; do | |
2593 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2594 done | |
2595 ac_signal=0 | |
2596 | |
2597 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2598 rm -f -r conftest* confdefs.h | |
2599 | |
2600 $as_echo "/* confdefs.h */" > confdefs.h | |
2601 | |
2602 # Predefined preprocessor variables. | |
2603 | |
2604 cat >>confdefs.h <<_ACEOF | |
2605 #define PACKAGE_NAME "$PACKAGE_NAME" | |
2606 _ACEOF | |
2607 | |
2608 cat >>confdefs.h <<_ACEOF | |
2609 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2610 _ACEOF | |
2611 | |
2612 cat >>confdefs.h <<_ACEOF | |
2613 #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2614 _ACEOF | |
2615 | |
2616 cat >>confdefs.h <<_ACEOF | |
2617 #define PACKAGE_STRING "$PACKAGE_STRING" | |
2618 _ACEOF | |
2619 | |
2620 cat >>confdefs.h <<_ACEOF | |
2621 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2622 _ACEOF | |
2623 | |
2624 cat >>confdefs.h <<_ACEOF | |
2625 #define PACKAGE_URL "$PACKAGE_URL" | |
2626 _ACEOF | |
2627 | |
2628 | |
2629 # Let the site file select an alternate cache file if it wants to. | |
2630 # Prefer an explicitly selected file to automatically selected ones. | |
2631 ac_site_file1=NONE | |
2632 ac_site_file2=NONE | |
2633 if test -n "$CONFIG_SITE"; then | |
2634 # We do not want a PATH search for config.site. | |
2635 case $CONFIG_SITE in #(( | |
2636 -*) ac_site_file1=./$CONFIG_SITE;; | |
2637 */*) ac_site_file1=$CONFIG_SITE;; | |
2638 *) ac_site_file1=./$CONFIG_SITE;; | |
2639 esac | |
2640 elif test "x$prefix" != xNONE; then | |
2641 ac_site_file1=$prefix/share/config.site | |
2642 ac_site_file2=$prefix/etc/config.site | |
2643 else | |
2644 ac_site_file1=$ac_default_prefix/share/config.site | |
2645 ac_site_file2=$ac_default_prefix/etc/config.site | |
2646 fi | |
2647 for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2648 do | |
2649 test "x$ac_site_file" = xNONE && continue | |
2650 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2652 $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2653 sed 's/^/| /' "$ac_site_file" >&5 | |
2654 . "$ac_site_file" \ | |
2655 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2657 as_fn_error $? "failed to load site script $ac_site_file | |
2658 See \`config.log' for more details" "$LINENO" 5; } | |
2659 fi | |
2660 done | |
2661 | |
2662 if test -r "$cache_file"; then | |
2663 # Some versions of bash will fail to source /dev/null (special files | |
2664 # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2665 if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2667 $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2668 case $cache_file in | |
2669 [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2670 *) . "./$cache_file";; | |
2671 esac | |
2672 fi | |
2673 else | |
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2675 $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2676 >$cache_file | |
2677 fi | |
2678 | |
2679 # Check that the precious variables saved in the cache have kept the same | |
2680 # value. | |
2681 ac_cache_corrupted=false | |
2682 for ac_var in $ac_precious_vars; do | |
2683 eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2684 eval ac_new_set=\$ac_env_${ac_var}_set | |
2685 eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2686 eval ac_new_val=\$ac_env_${ac_var}_value | |
2687 case $ac_old_set,$ac_new_set in | |
2688 set,) | |
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2690 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2691 ac_cache_corrupted=: ;; | |
2692 ,set) | |
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2694 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2695 ac_cache_corrupted=: ;; | |
2696 ,);; | |
2697 *) | |
2698 if test "x$ac_old_val" != "x$ac_new_val"; then | |
2699 # differences in whitespace do not lead to failure. | |
2700 ac_old_val_w=`echo x $ac_old_val` | |
2701 ac_new_val_w=`echo x $ac_new_val` | |
2702 if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2704 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2705 ac_cache_corrupted=: | |
2706 else | |
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2708 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2709 eval $ac_var=\$ac_old_val | |
2710 fi | |
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2712 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2714 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2715 fi;; | |
2716 esac | |
2717 # Pass precious variables to config.status. | |
2718 if test "$ac_new_set" = set; then | |
2719 case $ac_new_val in | |
2720 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2721 *) ac_arg=$ac_var=$ac_new_val ;; | |
2722 esac | |
2723 case " $ac_configure_args " in | |
2724 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2725 *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2726 esac | |
2727 fi | |
2728 done | |
2729 if $ac_cache_corrupted; then | |
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2733 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2734 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2735 fi | |
2736 ## -------------------- ## | |
2737 ## Main body of script. ## | |
2738 ## -------------------- ## | |
2739 | |
2740 ac_ext=c | |
2741 ac_cpp='$CPP $CPPFLAGS' | |
2742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2744 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2745 | |
2746 | |
2747 | |
2748 | |
2749 SHARED_VERSION_INFO="8:5:5" # CURRENT:REVISION:AGE | |
2750 | |
2751 am__api_version='1.14' | |
2752 | |
2753 ac_aux_dir= | |
2754 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2755 if test -f "$ac_dir/install-sh"; then | |
2756 ac_aux_dir=$ac_dir | |
2757 ac_install_sh="$ac_aux_dir/install-sh -c" | |
2758 break | |
2759 elif test -f "$ac_dir/install.sh"; then | |
2760 ac_aux_dir=$ac_dir | |
2761 ac_install_sh="$ac_aux_dir/install.sh -c" | |
2762 break | |
2763 elif test -f "$ac_dir/shtool"; then | |
2764 ac_aux_dir=$ac_dir | |
2765 ac_install_sh="$ac_aux_dir/shtool install -c" | |
2766 break | |
2767 fi | |
2768 done | |
2769 if test -z "$ac_aux_dir"; then | |
2770 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
2771 fi | |
2772 | |
2773 # These three variables are undocumented and unsupported, | |
2774 # and are intended to be withdrawn in a future Autoconf release. | |
2775 # They can cause serious problems if a builder's source tree is in a directory | |
2776 # whose full name contains unusual characters. | |
2777 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2778 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2779 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2780 | |
2781 | |
2782 # Find a good install program. We prefer a C program (faster), | |
2783 # so one script is as good as another. But avoid the broken or | |
2784 # incompatible versions: | |
2785 # SysV /etc/install, /usr/sbin/install | |
2786 # SunOS /usr/etc/install | |
2787 # IRIX /sbin/install | |
2788 # AIX /bin/install | |
2789 # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2790 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2791 # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2792 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2793 # OS/2's system install, which has a completely different semantic | |
2794 # ./install, which can be erroneously created by make from ./install.sh. | |
2795 # Reject install programs that cannot install multiple files. | |
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2797 $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2798 if test -z "$INSTALL"; then | |
2799 if ${ac_cv_path_install+:} false; then : | |
2800 $as_echo_n "(cached) " >&6 | |
2801 else | |
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2803 for as_dir in $PATH | |
2804 do | |
2805 IFS=$as_save_IFS | |
2806 test -z "$as_dir" && as_dir=. | |
2807 # Account for people who put trailing slashes in PATH elements. | |
2808 case $as_dir/ in #(( | |
2809 ./ | .// | /[cC]/* | \ | |
2810 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2811 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2812 /usr/ucb/* ) ;; | |
2813 *) | |
2814 # OSF1 and SCO ODT 3.0 have their own names for install. | |
2815 # Don't use installbsd from OSF since it installs stuff as root | |
2816 # by default. | |
2817 for ac_prog in ginstall scoinst install; do | |
2818 for ac_exec_ext in '' $ac_executable_extensions; do | |
2819 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2820 if test $ac_prog = install && | |
2821 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2822 # AIX install. It has an incompatible calling convention. | |
2823 : | |
2824 elif test $ac_prog = install && | |
2825 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2826 # program-specific install script used by HP pwplus--don't use. | |
2827 : | |
2828 else | |
2829 rm -rf conftest.one conftest.two conftest.dir | |
2830 echo one > conftest.one | |
2831 echo two > conftest.two | |
2832 mkdir conftest.dir | |
2833 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2834 test -s conftest.one && test -s conftest.two && | |
2835 test -s conftest.dir/conftest.one && | |
2836 test -s conftest.dir/conftest.two | |
2837 then | |
2838 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2839 break 3 | |
2840 fi | |
2841 fi | |
2842 fi | |
2843 done | |
2844 done | |
2845 ;; | |
2846 esac | |
2847 | |
2848 done | |
2849 IFS=$as_save_IFS | |
2850 | |
2851 rm -rf conftest.one conftest.two conftest.dir | |
2852 | |
2853 fi | |
2854 if test "${ac_cv_path_install+set}" = set; then | |
2855 INSTALL=$ac_cv_path_install | |
2856 else | |
2857 # As a last resort, use the slow shell script. Don't cache a | |
2858 # value for INSTALL within a source directory, because that will | |
2859 # break other packages using the cache if that directory is | |
2860 # removed, or if the value is a relative name. | |
2861 INSTALL=$ac_install_sh | |
2862 fi | |
2863 fi | |
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2865 $as_echo "$INSTALL" >&6; } | |
2866 | |
2867 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2868 # It thinks the first close brace ends the variable substitution. | |
2869 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2870 | |
2871 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2872 | |
2873 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2874 | |
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
2876 $as_echo_n "checking whether build environment is sane... " >&6; } | |
2877 # Reject unsafe characters in $srcdir or the absolute working directory | |
2878 # name. Accept space and tab only in the latter. | |
2879 am_lf=' | |
2880 ' | |
2881 case `pwd` in | |
2882 *[\\\"\#\$\&\'\`$am_lf]*) | |
2883 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
2884 esac | |
2885 case $srcdir in | |
2886 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2887 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
2888 esac | |
2889 | |
2890 # Do 'set' in a subshell so we don't clobber the current shell's | |
2891 # arguments. Must try -L first in case configure is actually a | |
2892 # symlink; some systems play weird games with the mod time of symlinks | |
2893 # (eg FreeBSD returns the mod time of the symlink's containing | |
2894 # directory). | |
2895 if ( | |
2896 am_has_slept=no | |
2897 for am_try in 1 2; do | |
2898 echo "timestamp, slept: $am_has_slept" > conftest.file | |
2899 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2900 if test "$*" = "X"; then | |
2901 # -L didn't work. | |
2902 set X `ls -t "$srcdir/configure" conftest.file` | |
2903 fi | |
2904 if test "$*" != "X $srcdir/configure conftest.file" \ | |
2905 && test "$*" != "X conftest.file $srcdir/configure"; then | |
2906 | |
2907 # If neither matched, then we have a broken ls. This can happen | |
2908 # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2909 # broken ls alias from the environment. This has actually | |
2910 # happened. Such a system could not be considered "sane". | |
2911 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2912 alias in your environment" "$LINENO" 5 | |
2913 fi | |
2914 if test "$2" = conftest.file || test $am_try -eq 2; then | |
2915 break | |
2916 fi | |
2917 # Just in case. | |
2918 sleep 1 | |
2919 am_has_slept=yes | |
2920 done | |
2921 test "$2" = conftest.file | |
2922 ) | |
2923 then | |
2924 # Ok. | |
2925 : | |
2926 else | |
2927 as_fn_error $? "newly created file is older than distributed files! | |
2928 Check your system clock" "$LINENO" 5 | |
2929 fi | |
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2931 $as_echo "yes" >&6; } | |
2932 # If we didn't sleep, we still need to ensure time stamps of config.status and | |
2933 # generated files are strictly newer. | |
2934 am_sleep_pid= | |
2935 if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2936 ( sleep 1 ) & | |
2937 am_sleep_pid=$! | |
2938 fi | |
2939 | |
2940 rm -f conftest.file | |
2941 | |
2942 test "$program_prefix" != NONE && | |
2943 program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2944 # Use a double $ so make ignores it. | |
2945 test "$program_suffix" != NONE && | |
2946 program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2947 # Double any \ or $. | |
2948 # By default was `s,x,x', remove it if useless. | |
2949 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
2950 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2951 | |
2952 # Expand $ac_aux_dir to an absolute path. | |
2953 am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
2954 | |
2955 if test x"${MISSING+set}" != xset; then | |
2956 case $am_aux_dir in | |
2957 *\ * | *\ *) | |
2958 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2959 *) | |
2960 MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2961 esac | |
2962 fi | |
2963 # Use eval to expand $SHELL | |
2964 if eval "$MISSING --is-lightweight"; then | |
2965 am_missing_run="$MISSING " | |
2966 else | |
2967 am_missing_run= | |
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
2969 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
2970 fi | |
2971 | |
2972 if test x"${install_sh}" != xset; then | |
2973 case $am_aux_dir in | |
2974 *\ * | *\ *) | |
2975 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2976 *) | |
2977 install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2978 esac | |
2979 fi | |
2980 | |
2981 # Installed binaries are usually stripped using 'strip' when the user | |
2982 # run "make install-strip". However 'strip' might not be the right | |
2983 # tool to use in cross-compilation environments, therefore Automake | |
2984 # will honor the 'STRIP' environment variable to overrule this program. | |
2985 if test "$cross_compiling" != no; then | |
2986 if test -n "$ac_tool_prefix"; then | |
2987 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2988 set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2990 $as_echo_n "checking for $ac_word... " >&6; } | |
2991 if ${ac_cv_prog_STRIP+:} false; then : | |
2992 $as_echo_n "(cached) " >&6 | |
2993 else | |
2994 if test -n "$STRIP"; then | |
2995 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2996 else | |
2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2998 for as_dir in $PATH | |
2999 do | |
3000 IFS=$as_save_IFS | |
3001 test -z "$as_dir" && as_dir=. | |
3002 for ac_exec_ext in '' $ac_executable_extensions; do | |
3003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3004 ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3006 break 2 | |
3007 fi | |
3008 done | |
3009 done | |
3010 IFS=$as_save_IFS | |
3011 | |
3012 fi | |
3013 fi | |
3014 STRIP=$ac_cv_prog_STRIP | |
3015 if test -n "$STRIP"; then | |
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
3017 $as_echo "$STRIP" >&6; } | |
3018 else | |
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3020 $as_echo "no" >&6; } | |
3021 fi | |
3022 | |
3023 | |
3024 fi | |
3025 if test -z "$ac_cv_prog_STRIP"; then | |
3026 ac_ct_STRIP=$STRIP | |
3027 # Extract the first word of "strip", so it can be a program name with args. | |
3028 set dummy strip; ac_word=$2 | |
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3030 $as_echo_n "checking for $ac_word... " >&6; } | |
3031 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
3032 $as_echo_n "(cached) " >&6 | |
3033 else | |
3034 if test -n "$ac_ct_STRIP"; then | |
3035 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3036 else | |
3037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3038 for as_dir in $PATH | |
3039 do | |
3040 IFS=$as_save_IFS | |
3041 test -z "$as_dir" && as_dir=. | |
3042 for ac_exec_ext in '' $ac_executable_extensions; do | |
3043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3044 ac_cv_prog_ac_ct_STRIP="strip" | |
3045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3046 break 2 | |
3047 fi | |
3048 done | |
3049 done | |
3050 IFS=$as_save_IFS | |
3051 | |
3052 fi | |
3053 fi | |
3054 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3055 if test -n "$ac_ct_STRIP"; then | |
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3057 $as_echo "$ac_ct_STRIP" >&6; } | |
3058 else | |
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3060 $as_echo "no" >&6; } | |
3061 fi | |
3062 | |
3063 if test "x$ac_ct_STRIP" = x; then | |
3064 STRIP=":" | |
3065 else | |
3066 case $cross_compiling:$ac_tool_warned in | |
3067 yes:) | |
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3070 ac_tool_warned=yes ;; | |
3071 esac | |
3072 STRIP=$ac_ct_STRIP | |
3073 fi | |
3074 else | |
3075 STRIP="$ac_cv_prog_STRIP" | |
3076 fi | |
3077 | |
3078 fi | |
3079 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3080 | |
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3082 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3083 if test -z "$MKDIR_P"; then | |
3084 if ${ac_cv_path_mkdir+:} false; then : | |
3085 $as_echo_n "(cached) " >&6 | |
3086 else | |
3087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3088 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3089 do | |
3090 IFS=$as_save_IFS | |
3091 test -z "$as_dir" && as_dir=. | |
3092 for ac_prog in mkdir gmkdir; do | |
3093 for ac_exec_ext in '' $ac_executable_extensions; do | |
3094 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
3095 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3096 'mkdir (GNU coreutils) '* | \ | |
3097 'mkdir (coreutils) '* | \ | |
3098 'mkdir (fileutils) '4.1*) | |
3099 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3100 break 3;; | |
3101 esac | |
3102 done | |
3103 done | |
3104 done | |
3105 IFS=$as_save_IFS | |
3106 | |
3107 fi | |
3108 | |
3109 test -d ./--version && rmdir ./--version | |
3110 if test "${ac_cv_path_mkdir+set}" = set; then | |
3111 MKDIR_P="$ac_cv_path_mkdir -p" | |
3112 else | |
3113 # As a last resort, use the slow shell script. Don't cache a | |
3114 # value for MKDIR_P within a source directory, because that will | |
3115 # break other packages using the cache if that directory is | |
3116 # removed, or if the value is a relative name. | |
3117 MKDIR_P="$ac_install_sh -d" | |
3118 fi | |
3119 fi | |
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
3121 $as_echo "$MKDIR_P" >&6; } | |
3122 | |
3123 for ac_prog in gawk mawk nawk awk | |
3124 do | |
3125 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3126 set dummy $ac_prog; ac_word=$2 | |
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3128 $as_echo_n "checking for $ac_word... " >&6; } | |
3129 if ${ac_cv_prog_AWK+:} false; then : | |
3130 $as_echo_n "(cached) " >&6 | |
3131 else | |
3132 if test -n "$AWK"; then | |
3133 ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3134 else | |
3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3136 for as_dir in $PATH | |
3137 do | |
3138 IFS=$as_save_IFS | |
3139 test -z "$as_dir" && as_dir=. | |
3140 for ac_exec_ext in '' $ac_executable_extensions; do | |
3141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3142 ac_cv_prog_AWK="$ac_prog" | |
3143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3144 break 2 | |
3145 fi | |
3146 done | |
3147 done | |
3148 IFS=$as_save_IFS | |
3149 | |
3150 fi | |
3151 fi | |
3152 AWK=$ac_cv_prog_AWK | |
3153 if test -n "$AWK"; then | |
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
3155 $as_echo "$AWK" >&6; } | |
3156 else | |
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3158 $as_echo "no" >&6; } | |
3159 fi | |
3160 | |
3161 | |
3162 test -n "$AWK" && break | |
3163 done | |
3164 | |
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3166 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3167 set x ${MAKE-make} | |
3168 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3169 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
3170 $as_echo_n "(cached) " >&6 | |
3171 else | |
3172 cat >conftest.make <<\_ACEOF | |
3173 SHELL = /bin/sh | |
3174 all: | |
3175 @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3176 _ACEOF | |
3177 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
3178 case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3179 *@@@%%%=?*=@@@%%%*) | |
3180 eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3181 *) | |
3182 eval ac_cv_prog_make_${ac_make}_set=no;; | |
3183 esac | |
3184 rm -f conftest.make | |
3185 fi | |
3186 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3188 $as_echo "yes" >&6; } | |
3189 SET_MAKE= | |
3190 else | |
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3192 $as_echo "no" >&6; } | |
3193 SET_MAKE="MAKE=${MAKE-make}" | |
3194 fi | |
3195 | |
3196 rm -rf .tst 2>/dev/null | |
3197 mkdir .tst 2>/dev/null | |
3198 if test -d .tst; then | |
3199 am__leading_dot=. | |
3200 else | |
3201 am__leading_dot=_ | |
3202 fi | |
3203 rmdir .tst 2>/dev/null | |
3204 | |
3205 # Check whether --enable-silent-rules was given. | |
3206 if test "${enable_silent_rules+set}" = set; then : | |
3207 enableval=$enable_silent_rules; | |
3208 fi | |
3209 | |
3210 case $enable_silent_rules in # ((( | |
3211 yes) AM_DEFAULT_VERBOSITY=0;; | |
3212 no) AM_DEFAULT_VERBOSITY=1;; | |
3213 *) AM_DEFAULT_VERBOSITY=1;; | |
3214 esac | |
3215 am_make=${MAKE-make} | |
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3217 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3218 if ${am_cv_make_support_nested_variables+:} false; then : | |
3219 $as_echo_n "(cached) " >&6 | |
3220 else | |
3221 if $as_echo 'TRUE=$(BAR$(V)) | |
3222 BAR0=false | |
3223 BAR1=true | |
3224 V=1 | |
3225 am__doit: | |
3226 @$(TRUE) | |
3227 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3228 am_cv_make_support_nested_variables=yes | |
3229 else | |
3230 am_cv_make_support_nested_variables=no | |
3231 fi | |
3232 fi | |
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3234 $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3235 if test $am_cv_make_support_nested_variables = yes; then | |
3236 AM_V='$(V)' | |
3237 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3238 else | |
3239 AM_V=$AM_DEFAULT_VERBOSITY | |
3240 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3241 fi | |
3242 AM_BACKSLASH='\' | |
3243 | |
3244 if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
3245 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3246 # is not polluted with repeated "-I." | |
3247 am__isrc=' -I$(srcdir)' | |
3248 # test to see if srcdir already configured | |
3249 if test -f $srcdir/config.status; then | |
3250 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3251 fi | |
3252 fi | |
3253 | |
3254 # test whether we have cygpath | |
3255 if test -z "$CYGPATH_W"; then | |
3256 if (cygpath --version) >/dev/null 2>/dev/null; then | |
3257 CYGPATH_W='cygpath -w' | |
3258 else | |
3259 CYGPATH_W=echo | |
3260 fi | |
3261 fi | |
3262 | |
3263 | |
3264 # Define the identity of the package. | |
3265 PACKAGE='fftw' | |
3266 VERSION='3.3.5' | |
3267 | |
3268 | |
3269 cat >>confdefs.h <<_ACEOF | |
3270 #define PACKAGE "$PACKAGE" | |
3271 _ACEOF | |
3272 | |
3273 | |
3274 cat >>confdefs.h <<_ACEOF | |
3275 #define VERSION "$VERSION" | |
3276 _ACEOF | |
3277 | |
3278 # Some tools Automake needs. | |
3279 | |
3280 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3281 | |
3282 | |
3283 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3284 | |
3285 | |
3286 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3287 | |
3288 | |
3289 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3290 | |
3291 | |
3292 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3293 | |
3294 # For better backward compatibility. To be removed once Automake 1.9.x | |
3295 # dies out for good. For more background, see: | |
3296 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3297 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3298 mkdir_p='$(MKDIR_P)' | |
3299 | |
3300 # We need awk for the "check" target. The system "awk" is bad on | |
3301 # some platforms. | |
3302 # Always define AMTAR for backward compatibility. Yes, it's still used | |
3303 # in the wild :-( We should find a proper way to deprecate it ... | |
3304 AMTAR='$${TAR-tar}' | |
3305 | |
3306 | |
3307 # We'll loop over all known methods to create a tar archive until one works. | |
3308 _am_tools='gnutar pax cpio none' | |
3309 | |
3310 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
3311 | |
3312 | |
3313 | |
3314 | |
3315 | |
3316 | |
3317 # POSIX will say in a future version that running "rm -f" with no argument | |
3318 # is OK; and we want to be able to make that assumption in our Makefile | |
3319 # recipes. So use an aggressive probe to check that the usage we want is | |
3320 # actually supported "in the wild" to an acceptable degree. | |
3321 # See automake bug#10828. | |
3322 # To make any issue more visible, cause the running configure to be aborted | |
3323 # by default if the 'rm' program in use doesn't match our expectations; the | |
3324 # user can still override this though. | |
3325 if rm -f && rm -fr && rm -rf; then : OK; else | |
3326 cat >&2 <<'END' | |
3327 Oops! | |
3328 | |
3329 Your 'rm' program seems unable to run without file operands specified | |
3330 on the command line, even when the '-f' option is present. This is contrary | |
3331 to the behaviour of most rm programs out there, and not conforming with | |
3332 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3333 | |
3334 Please tell bug-automake@gnu.org about your system, including the value | |
3335 of your $PATH and any error possibly output before this message. This | |
3336 can help us improve future automake versions. | |
3337 | |
3338 END | |
3339 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3340 echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3341 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3342 echo >&2 | |
3343 else | |
3344 cat >&2 <<'END' | |
3345 Aborting the configuration process, to ensure you take notice of the issue. | |
3346 | |
3347 You can download and install GNU coreutils to get an 'rm' implementation | |
3348 that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
3349 | |
3350 If you want to complete the configuration process using your problematic | |
3351 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3352 to "yes", and re-run configure. | |
3353 | |
3354 END | |
3355 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3356 fi | |
3357 fi | |
3358 | |
3359 ac_config_headers="$ac_config_headers config.h" | |
3360 | |
3361 | |
3362 | |
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
3364 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
3365 # Check whether --enable-maintainer-mode was given. | |
3366 if test "${enable_maintainer_mode+set}" = set; then : | |
3367 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3368 else | |
3369 USE_MAINTAINER_MODE=no | |
3370 fi | |
3371 | |
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
3373 $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3374 if test $USE_MAINTAINER_MODE = yes; then | |
3375 MAINTAINER_MODE_TRUE= | |
3376 MAINTAINER_MODE_FALSE='#' | |
3377 else | |
3378 MAINTAINER_MODE_TRUE='#' | |
3379 MAINTAINER_MODE_FALSE= | |
3380 fi | |
3381 | |
3382 MAINT=$MAINTAINER_MODE_TRUE | |
3383 | |
3384 | |
3385 | |
3386 # Check whether --enable-shared was given. | |
3387 if test "${enable_shared+set}" = set; then : | |
3388 enableval=$enable_shared; p=${PACKAGE-default} | |
3389 case $enableval in | |
3390 yes) enable_shared=yes ;; | |
3391 no) enable_shared=no ;; | |
3392 *) | |
3393 enable_shared=no | |
3394 # Look at the argument we got. We use all the common list separators. | |
3395 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3396 for pkg in $enableval; do | |
3397 IFS="$lt_save_ifs" | |
3398 if test "X$pkg" = "X$p"; then | |
3399 enable_shared=yes | |
3400 fi | |
3401 done | |
3402 IFS="$lt_save_ifs" | |
3403 ;; | |
3404 esac | |
3405 else | |
3406 enable_shared=no | |
3407 fi | |
3408 | |
3409 | |
3410 | |
3411 | |
3412 | |
3413 | |
3414 | |
3415 | |
3416 # Make sure we can run config.sub. | |
3417 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
3418 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
3419 | |
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
3421 $as_echo_n "checking build system type... " >&6; } | |
3422 if ${ac_cv_build+:} false; then : | |
3423 $as_echo_n "(cached) " >&6 | |
3424 else | |
3425 ac_build_alias=$build_alias | |
3426 test "x$ac_build_alias" = x && | |
3427 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
3428 test "x$ac_build_alias" = x && | |
3429 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
3430 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
3431 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
3432 | |
3433 fi | |
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
3435 $as_echo "$ac_cv_build" >&6; } | |
3436 case $ac_cv_build in | |
3437 *-*-*) ;; | |
3438 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
3439 esac | |
3440 build=$ac_cv_build | |
3441 ac_save_IFS=$IFS; IFS='-' | |
3442 set x $ac_cv_build | |
3443 shift | |
3444 build_cpu=$1 | |
3445 build_vendor=$2 | |
3446 shift; shift | |
3447 # Remember, the first character of IFS is used to create $*, | |
3448 # except with old shells: | |
3449 build_os=$* | |
3450 IFS=$ac_save_IFS | |
3451 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
3452 | |
3453 | |
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
3455 $as_echo_n "checking host system type... " >&6; } | |
3456 if ${ac_cv_host+:} false; then : | |
3457 $as_echo_n "(cached) " >&6 | |
3458 else | |
3459 if test "x$host_alias" = x; then | |
3460 ac_cv_host=$ac_cv_build | |
3461 else | |
3462 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
3463 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
3464 fi | |
3465 | |
3466 fi | |
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
3468 $as_echo "$ac_cv_host" >&6; } | |
3469 case $ac_cv_host in | |
3470 *-*-*) ;; | |
3471 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
3472 esac | |
3473 host=$ac_cv_host | |
3474 ac_save_IFS=$IFS; IFS='-' | |
3475 set x $ac_cv_host | |
3476 shift | |
3477 host_cpu=$1 | |
3478 host_vendor=$2 | |
3479 shift; shift | |
3480 # Remember, the first character of IFS is used to create $*, | |
3481 # except with old shells: | |
3482 host_os=$* | |
3483 IFS=$ac_save_IFS | |
3484 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
3485 | |
3486 | |
3487 | |
3488 case "${host_cpu}" in | |
3489 powerpc*) have_fma=yes;; | |
3490 ia64*) have_fma=yes;; | |
3491 hppa*) have_fma=yes;; | |
3492 mips64*) have_fma=yes;; | |
3493 *) have_fma=no;; | |
3494 esac | |
3495 | |
3496 # Check whether --enable-debug was given. | |
3497 if test "${enable_debug+set}" = set; then : | |
3498 enableval=$enable_debug; ok=$enableval | |
3499 else | |
3500 ok=no | |
3501 fi | |
3502 | |
3503 if test "$ok" = "yes"; then | |
3504 | |
3505 $as_echo "#define FFTW_DEBUG 1" >>confdefs.h | |
3506 | |
3507 debug_malloc=yes | |
3508 else | |
3509 debug_malloc=no | |
3510 fi | |
3511 | |
3512 # Check whether --enable-doc was given. | |
3513 if test "${enable_doc+set}" = set; then : | |
3514 enableval=$enable_doc; build_doc=$enableval | |
3515 else | |
3516 build_doc=yes | |
3517 fi | |
3518 | |
3519 if test x"$build_doc" = xyes; then | |
3520 BUILD_DOC_TRUE= | |
3521 BUILD_DOC_FALSE='#' | |
3522 else | |
3523 BUILD_DOC_TRUE='#' | |
3524 BUILD_DOC_FALSE= | |
3525 fi | |
3526 | |
3527 | |
3528 # Check whether --enable-debug-malloc was given. | |
3529 if test "${enable_debug_malloc+set}" = set; then : | |
3530 enableval=$enable_debug_malloc; ok=$enableval | |
3531 else | |
3532 ok=$debug_malloc | |
3533 fi | |
3534 | |
3535 if test "$ok" = "yes"; then | |
3536 | |
3537 $as_echo "#define FFTW_DEBUG_MALLOC 1" >>confdefs.h | |
3538 | |
3539 fi | |
3540 | |
3541 # Check whether --enable-debug-alignment was given. | |
3542 if test "${enable_debug_alignment+set}" = set; then : | |
3543 enableval=$enable_debug_alignment; ok=$enableval | |
3544 else | |
3545 ok=no | |
3546 fi | |
3547 | |
3548 if test "$ok" = "yes"; then | |
3549 | |
3550 $as_echo "#define FFTW_DEBUG_ALIGNMENT 1" >>confdefs.h | |
3551 | |
3552 fi | |
3553 | |
3554 # Check whether --enable-random-estimator was given. | |
3555 if test "${enable_random_estimator+set}" = set; then : | |
3556 enableval=$enable_random_estimator; ok=$enableval | |
3557 else | |
3558 ok=no | |
3559 fi | |
3560 | |
3561 if test "$ok" = "yes"; then | |
3562 | |
3563 $as_echo "#define FFTW_RANDOM_ESTIMATOR 1" >>confdefs.h | |
3564 | |
3565 CHECK_PL_OPTS="--estimate" | |
3566 fi | |
3567 | |
3568 # Check whether --enable-alloca was given. | |
3569 if test "${enable_alloca+set}" = set; then : | |
3570 enableval=$enable_alloca; ok=$enableval | |
3571 else | |
3572 ok=yes | |
3573 fi | |
3574 | |
3575 if test "$ok" = "yes"; then | |
3576 | |
3577 $as_echo "#define FFTW_ENABLE_ALLOCA 1" >>confdefs.h | |
3578 | |
3579 fi | |
3580 | |
3581 # Check whether --enable-single was given. | |
3582 if test "${enable_single+set}" = set; then : | |
3583 enableval=$enable_single; ok=$enableval | |
3584 else | |
3585 ok=no | |
3586 fi | |
3587 | |
3588 # Check whether --enable-float was given. | |
3589 if test "${enable_float+set}" = set; then : | |
3590 enableval=$enable_float; ok=$enableval | |
3591 fi | |
3592 | |
3593 if test "$ok" = "yes"; then | |
3594 | |
3595 $as_echo "#define FFTW_SINGLE 1" >>confdefs.h | |
3596 | |
3597 | |
3598 $as_echo "#define BENCHFFT_SINGLE 1" >>confdefs.h | |
3599 | |
3600 PRECISION=s | |
3601 else | |
3602 PRECISION=d | |
3603 fi | |
3604 if test "$ok" = "yes"; then | |
3605 SINGLE_TRUE= | |
3606 SINGLE_FALSE='#' | |
3607 else | |
3608 SINGLE_TRUE='#' | |
3609 SINGLE_FALSE= | |
3610 fi | |
3611 | |
3612 | |
3613 # Check whether --enable-long-double was given. | |
3614 if test "${enable_long_double+set}" = set; then : | |
3615 enableval=$enable_long_double; ok=$enableval | |
3616 else | |
3617 ok=no | |
3618 fi | |
3619 | |
3620 if test "$ok" = "yes"; then | |
3621 if test "$PRECISION" = "s"; then | |
3622 as_fn_error $? "--enable-single/--enable-long-double conflict" "$LINENO" 5 | |
3623 fi | |
3624 | |
3625 $as_echo "#define FFTW_LDOUBLE 1" >>confdefs.h | |
3626 | |
3627 | |
3628 $as_echo "#define BENCHFFT_LDOUBLE 1" >>confdefs.h | |
3629 | |
3630 PRECISION=l | |
3631 fi | |
3632 if test "$ok" = "yes"; then | |
3633 LDOUBLE_TRUE= | |
3634 LDOUBLE_FALSE='#' | |
3635 else | |
3636 LDOUBLE_TRUE='#' | |
3637 LDOUBLE_FALSE= | |
3638 fi | |
3639 | |
3640 | |
3641 # Check whether --enable-quad-precision was given. | |
3642 if test "${enable_quad_precision+set}" = set; then : | |
3643 enableval=$enable_quad_precision; ok=$enableval | |
3644 else | |
3645 ok=no | |
3646 fi | |
3647 | |
3648 if test "$ok" = "yes"; then | |
3649 if test "$PRECISION" != "d"; then | |
3650 as_fn_error $? "conflicting precisions specified" "$LINENO" 5 | |
3651 fi | |
3652 | |
3653 $as_echo "#define FFTW_QUAD 1" >>confdefs.h | |
3654 | |
3655 | |
3656 $as_echo "#define BENCHFFT_QUAD 1" >>confdefs.h | |
3657 | |
3658 PRECISION=q | |
3659 fi | |
3660 if test "$ok" = "yes"; then | |
3661 QUAD_TRUE= | |
3662 QUAD_FALSE='#' | |
3663 else | |
3664 QUAD_TRUE='#' | |
3665 QUAD_FALSE= | |
3666 fi | |
3667 | |
3668 | |
3669 | |
3670 | |
3671 | |
3672 # Check whether --enable-sse was given. | |
3673 if test "${enable_sse+set}" = set; then : | |
3674 enableval=$enable_sse; have_sse=$enableval | |
3675 else | |
3676 have_sse=no | |
3677 fi | |
3678 | |
3679 if test "$have_sse" = "yes"; then | |
3680 if test "$PRECISION" != "s"; then | |
3681 as_fn_error $? "SSE requires single precision" "$LINENO" 5 | |
3682 fi | |
3683 fi | |
3684 | |
3685 # Check whether --enable-sse2 was given. | |
3686 if test "${enable_sse2+set}" = set; then : | |
3687 enableval=$enable_sse2; have_sse2=$enableval | |
3688 else | |
3689 have_sse2=no | |
3690 fi | |
3691 | |
3692 if test "$have_sse" = "yes"; then have_sse2=yes; fi | |
3693 if test "$have_sse2" = "yes"; then | |
3694 | |
3695 $as_echo "#define HAVE_SSE2 1" >>confdefs.h | |
3696 | |
3697 if test "$PRECISION" != "d" -a "$PRECISION" != "s"; then | |
3698 as_fn_error $? "SSE2 requires single or double precision" "$LINENO" 5 | |
3699 fi | |
3700 fi | |
3701 if test "$have_sse2" = "yes"; then | |
3702 HAVE_SSE2_TRUE= | |
3703 HAVE_SSE2_FALSE='#' | |
3704 else | |
3705 HAVE_SSE2_TRUE='#' | |
3706 HAVE_SSE2_FALSE= | |
3707 fi | |
3708 | |
3709 | |
3710 # Check whether --enable-avx was given. | |
3711 if test "${enable_avx+set}" = set; then : | |
3712 enableval=$enable_avx; have_avx=$enableval | |
3713 else | |
3714 have_avx=no | |
3715 fi | |
3716 | |
3717 if test "$have_avx" = "yes"; then | |
3718 | |
3719 $as_echo "#define HAVE_AVX 1" >>confdefs.h | |
3720 | |
3721 if test "$PRECISION" != "d" -a "$PRECISION" != "s"; then | |
3722 as_fn_error $? "AVX requires single or double precision" "$LINENO" 5 | |
3723 fi | |
3724 fi | |
3725 if test "$have_avx" = "yes"; then | |
3726 HAVE_AVX_TRUE= | |
3727 HAVE_AVX_FALSE='#' | |
3728 else | |
3729 HAVE_AVX_TRUE='#' | |
3730 HAVE_AVX_FALSE= | |
3731 fi | |
3732 | |
3733 | |
3734 # Check whether --enable-avx2 was given. | |
3735 if test "${enable_avx2+set}" = set; then : | |
3736 enableval=$enable_avx2; have_avx2=$enableval | |
3737 else | |
3738 have_avx2=no | |
3739 fi | |
3740 | |
3741 if test "$have_avx2" = "yes"; then | |
3742 | |
3743 $as_echo "#define HAVE_AVX2 1" >>confdefs.h | |
3744 | |
3745 if test "$PRECISION" != "d" -a "$PRECISION" != "s"; then | |
3746 as_fn_error $? "AVX2 requires single or double precision" "$LINENO" 5 | |
3747 fi | |
3748 have_fma="yes" | |
3749 fi | |
3750 if test "$have_avx2" = "yes"; then | |
3751 HAVE_AVX2_TRUE= | |
3752 HAVE_AVX2_FALSE='#' | |
3753 else | |
3754 HAVE_AVX2_TRUE='#' | |
3755 HAVE_AVX2_FALSE= | |
3756 fi | |
3757 | |
3758 | |
3759 # Check whether --enable-avx512 was given. | |
3760 if test "${enable_avx512+set}" = set; then : | |
3761 enableval=$enable_avx512; have_avx512=$enableval | |
3762 else | |
3763 have_avx512=no | |
3764 fi | |
3765 | |
3766 if test "$have_avx512" = "yes"; then | |
3767 | |
3768 $as_echo "#define HAVE_AVX512 1" >>confdefs.h | |
3769 | |
3770 if test "$PRECISION" != "d" -a "$PRECISION" != "s"; then | |
3771 as_fn_error $? "AVX512 requires single or double precision" "$LINENO" 5 | |
3772 fi | |
3773 have_fma="yes" | |
3774 fi | |
3775 if test "$have_avx512" = "yes"; then | |
3776 HAVE_AVX512_TRUE= | |
3777 HAVE_AVX512_FALSE='#' | |
3778 else | |
3779 HAVE_AVX512_TRUE='#' | |
3780 HAVE_AVX512_FALSE= | |
3781 fi | |
3782 | |
3783 | |
3784 # Check whether --enable-avx-128-fma was given. | |
3785 if test "${enable_avx_128_fma+set}" = set; then : | |
3786 enableval=$enable_avx_128_fma; have_avx_128_fma=$enableval | |
3787 else | |
3788 have_avx_128_fma=no | |
3789 fi | |
3790 | |
3791 if test "$have_avx_128_fma" = "yes"; then | |
3792 | |
3793 $as_echo "#define HAVE_AVX_128_FMA 1" >>confdefs.h | |
3794 | |
3795 AVX_128_FMA_CFLAGS="${AVX_CFLAGS} -mfma4" | |
3796 | |
3797 fi | |
3798 if test "$have_avx_128_fma" = "yes"; then | |
3799 HAVE_AVX_128_FMA_TRUE= | |
3800 HAVE_AVX_128_FMA_FALSE='#' | |
3801 else | |
3802 HAVE_AVX_128_FMA_TRUE='#' | |
3803 HAVE_AVX_128_FMA_FALSE= | |
3804 fi | |
3805 | |
3806 | |
3807 # Check whether --enable-kcvi was given. | |
3808 if test "${enable_kcvi+set}" = set; then : | |
3809 enableval=$enable_kcvi; have_kcvi=$enableval | |
3810 else | |
3811 have_kcvi=no | |
3812 fi | |
3813 | |
3814 if test "$have_kcvi" = "yes"; then | |
3815 | |
3816 $as_echo "#define HAVE_KCVI 1" >>confdefs.h | |
3817 | |
3818 if test "$PRECISION" != "d" -a "$PRECISION" != "s"; then | |
3819 as_fn_error $? "Knights Corner vector instructions requires single or double precision" "$LINENO" 5 | |
3820 fi | |
3821 fi | |
3822 if test "$have_kcvi" = "yes"; then | |
3823 HAVE_KCVI_TRUE= | |
3824 HAVE_KCVI_FALSE='#' | |
3825 else | |
3826 HAVE_KCVI_TRUE='#' | |
3827 HAVE_KCVI_FALSE= | |
3828 fi | |
3829 | |
3830 | |
3831 # Check whether --enable-altivec was given. | |
3832 if test "${enable_altivec+set}" = set; then : | |
3833 enableval=$enable_altivec; have_altivec=$enableval | |
3834 else | |
3835 have_altivec=no | |
3836 fi | |
3837 | |
3838 if test "$have_altivec" = "yes"; then | |
3839 | |
3840 $as_echo "#define HAVE_ALTIVEC 1" >>confdefs.h | |
3841 | |
3842 if test "$PRECISION" != "s"; then | |
3843 as_fn_error $? "Altivec requires single precision" "$LINENO" 5 | |
3844 fi | |
3845 fi | |
3846 if test "$have_altivec" = "yes"; then | |
3847 HAVE_ALTIVEC_TRUE= | |
3848 HAVE_ALTIVEC_FALSE='#' | |
3849 else | |
3850 HAVE_ALTIVEC_TRUE='#' | |
3851 HAVE_ALTIVEC_FALSE= | |
3852 fi | |
3853 | |
3854 | |
3855 # Check whether --enable-vsx was given. | |
3856 if test "${enable_vsx+set}" = set; then : | |
3857 enableval=$enable_vsx; have_vsx=$enableval | |
3858 else | |
3859 have_vsx=no | |
3860 fi | |
3861 | |
3862 if test "$have_vsx" = "yes"; then | |
3863 | |
3864 $as_echo "#define HAVE_VSX 1" >>confdefs.h | |
3865 | |
3866 fi | |
3867 if test "$have_vsx" = "yes"; then | |
3868 HAVE_VSX_TRUE= | |
3869 HAVE_VSX_FALSE='#' | |
3870 else | |
3871 HAVE_VSX_TRUE='#' | |
3872 HAVE_VSX_FALSE= | |
3873 fi | |
3874 | |
3875 | |
3876 # Check whether --enable-neon was given. | |
3877 if test "${enable_neon+set}" = set; then : | |
3878 enableval=$enable_neon; have_neon=$enableval | |
3879 else | |
3880 have_neon=no | |
3881 fi | |
3882 | |
3883 if test "$have_neon" = "yes"; then | |
3884 | |
3885 $as_echo "#define HAVE_NEON 1" >>confdefs.h | |
3886 | |
3887 case "${host_cpu}" in | |
3888 aarch64) | |
3889 ;; | |
3890 *) | |
3891 if test "$PRECISION" != "s"; then | |
3892 as_fn_error $? "NEON requires single precision" "$LINENO" 5 | |
3893 fi | |
3894 ;; | |
3895 esac | |
3896 fi | |
3897 if test "$have_neon" = "yes"; then | |
3898 HAVE_NEON_TRUE= | |
3899 HAVE_NEON_FALSE='#' | |
3900 else | |
3901 HAVE_NEON_TRUE='#' | |
3902 HAVE_NEON_FALSE= | |
3903 fi | |
3904 | |
3905 | |
3906 # Check whether --enable-armv8cyclecounter was given. | |
3907 if test "${enable_armv8cyclecounter+set}" = set; then : | |
3908 enableval=$enable_armv8cyclecounter; have_armv8cyclecounter=$enableval | |
3909 fi | |
3910 | |
3911 if test "$have_armv8cyclecounter"x = "yes"x; then | |
3912 | |
3913 $as_echo "#define HAVE_ARMV8CC 1" >>confdefs.h | |
3914 | |
3915 fi | |
3916 | |
3917 # Check whether --enable-generic-simd128 was given. | |
3918 if test "${enable_generic_simd128+set}" = set; then : | |
3919 enableval=$enable_generic_simd128; have_generic_simd128=$enableval | |
3920 else | |
3921 have_generic_simd128=no | |
3922 fi | |
3923 | |
3924 if test "$have_generic_simd128" = "yes"; then | |
3925 | |
3926 $as_echo "#define HAVE_GENERIC_SIMD128 1" >>confdefs.h | |
3927 | |
3928 fi | |
3929 if test "$have_generic_simd128" = "yes"; then | |
3930 HAVE_GENERIC_SIMD128_TRUE= | |
3931 HAVE_GENERIC_SIMD128_FALSE='#' | |
3932 else | |
3933 HAVE_GENERIC_SIMD128_TRUE='#' | |
3934 HAVE_GENERIC_SIMD128_FALSE= | |
3935 fi | |
3936 | |
3937 | |
3938 # Check whether --enable-generic-simd256 was given. | |
3939 if test "${enable_generic_simd256+set}" = set; then : | |
3940 enableval=$enable_generic_simd256; have_generic_simd256=$enableval | |
3941 else | |
3942 have_generic_simd256=no | |
3943 fi | |
3944 | |
3945 if test "$have_generic_simd256" = "yes"; then | |
3946 | |
3947 $as_echo "#define HAVE_GENERIC_SIMD256 1" >>confdefs.h | |
3948 | |
3949 fi | |
3950 if test "$have_generic_simd256" = "yes"; then | |
3951 HAVE_GENERIC_SIMD256_TRUE= | |
3952 HAVE_GENERIC_SIMD256_FALSE='#' | |
3953 else | |
3954 HAVE_GENERIC_SIMD256_TRUE='#' | |
3955 HAVE_GENERIC_SIMD256_FALSE= | |
3956 fi | |
3957 | |
3958 | |
3959 | |
3960 | |
3961 | |
3962 # Check whether --with-slow-timer was given. | |
3963 if test "${with_slow_timer+set}" = set; then : | |
3964 withval=$with_slow_timer; with_slow_timer=$withval | |
3965 else | |
3966 with_slow_timer=no | |
3967 fi | |
3968 | |
3969 if test "$with_slow_timer" = "yes"; then | |
3970 | |
3971 $as_echo "#define WITH_SLOW_TIMER 1" >>confdefs.h | |
3972 | |
3973 fi | |
3974 | |
3975 # Check whether --enable-mips_zbus_timer was given. | |
3976 if test "${enable_mips_zbus_timer+set}" = set; then : | |
3977 enableval=$enable_mips_zbus_timer; have_mips_zbus_timer=$enableval | |
3978 else | |
3979 have_mips_zbus_timer=no | |
3980 fi | |
3981 | |
3982 if test "$have_mips_zbus_timer" = "yes"; then | |
3983 | |
3984 $as_echo "#define HAVE_MIPS_ZBUS_TIMER 1" >>confdefs.h | |
3985 | |
3986 fi | |
3987 | |
3988 | |
3989 # Check whether --with-our-malloc was given. | |
3990 if test "${with_our_malloc+set}" = set; then : | |
3991 withval=$with_our_malloc; with_our_malloc=$withval | |
3992 else | |
3993 with_our_malloc=no | |
3994 fi | |
3995 | |
3996 | |
3997 # Check whether --with-our-malloc16 was given. | |
3998 if test "${with_our_malloc16+set}" = set; then : | |
3999 withval=$with_our_malloc16; with_our_malloc=$withval | |
4000 fi | |
4001 | |
4002 if test "$with_our_malloc" = "yes"; then | |
4003 | |
4004 $as_echo "#define WITH_OUR_MALLOC 1" >>confdefs.h | |
4005 | |
4006 fi | |
4007 | |
4008 | |
4009 # Check whether --with-windows-f77-mangling was given. | |
4010 if test "${with_windows_f77_mangling+set}" = set; then : | |
4011 withval=$with_windows_f77_mangling; with_windows_f77_mangling=$withval | |
4012 else | |
4013 with_windows_f77_mangling=no | |
4014 fi | |
4015 | |
4016 if test "$with_windows_f77_mangling" = "yes"; then | |
4017 | |
4018 $as_echo "#define WINDOWS_F77_MANGLING 1" >>confdefs.h | |
4019 | |
4020 fi | |
4021 | |
4022 | |
4023 # Check whether --with-incoming-stack-boundary was given. | |
4024 if test "${with_incoming_stack_boundary+set}" = set; then : | |
4025 withval=$with_incoming_stack_boundary; with_incoming_stack_boundary=$withval | |
4026 else | |
4027 with_incoming_stack_boundary=no | |
4028 fi | |
4029 | |
4030 | |
4031 | |
4032 # Check whether --enable-fma was given. | |
4033 if test "${enable_fma+set}" = set; then : | |
4034 enableval=$enable_fma; have_fma=$enableval | |
4035 fi | |
4036 | |
4037 if test "$have_fma"x = "yes"x; then | |
4038 | |
4039 $as_echo "#define HAVE_FMA 1" >>confdefs.h | |
4040 | |
4041 fi | |
4042 | |
4043 case "$PRECISION" in | |
4044 s) PREC_SUFFIX=f;; | |
4045 d) PREC_SUFFIX=;; | |
4046 l) PREC_SUFFIX=l;; | |
4047 q) PREC_SUFFIX=q;; | |
4048 esac | |
4049 | |
4050 | |
4051 ac_ext=c | |
4052 ac_cpp='$CPP $CPPFLAGS' | |
4053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4055 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4056 if test -n "$ac_tool_prefix"; then | |
4057 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4058 set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4060 $as_echo_n "checking for $ac_word... " >&6; } | |
4061 if ${ac_cv_prog_CC+:} false; then : | |
4062 $as_echo_n "(cached) " >&6 | |
4063 else | |
4064 if test -n "$CC"; then | |
4065 ac_cv_prog_CC="$CC" # Let the user override the test. | |
4066 else | |
4067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4068 for as_dir in $PATH | |
4069 do | |
4070 IFS=$as_save_IFS | |
4071 test -z "$as_dir" && as_dir=. | |
4072 for ac_exec_ext in '' $ac_executable_extensions; do | |
4073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4074 ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
4075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4076 break 2 | |
4077 fi | |
4078 done | |
4079 done | |
4080 IFS=$as_save_IFS | |
4081 | |
4082 fi | |
4083 fi | |
4084 CC=$ac_cv_prog_CC | |
4085 if test -n "$CC"; then | |
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4087 $as_echo "$CC" >&6; } | |
4088 else | |
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4090 $as_echo "no" >&6; } | |
4091 fi | |
4092 | |
4093 | |
4094 fi | |
4095 if test -z "$ac_cv_prog_CC"; then | |
4096 ac_ct_CC=$CC | |
4097 # Extract the first word of "gcc", so it can be a program name with args. | |
4098 set dummy gcc; ac_word=$2 | |
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4100 $as_echo_n "checking for $ac_word... " >&6; } | |
4101 if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
4102 $as_echo_n "(cached) " >&6 | |
4103 else | |
4104 if test -n "$ac_ct_CC"; then | |
4105 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4106 else | |
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4108 for as_dir in $PATH | |
4109 do | |
4110 IFS=$as_save_IFS | |
4111 test -z "$as_dir" && as_dir=. | |
4112 for ac_exec_ext in '' $ac_executable_extensions; do | |
4113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4114 ac_cv_prog_ac_ct_CC="gcc" | |
4115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4116 break 2 | |
4117 fi | |
4118 done | |
4119 done | |
4120 IFS=$as_save_IFS | |
4121 | |
4122 fi | |
4123 fi | |
4124 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4125 if test -n "$ac_ct_CC"; then | |
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4127 $as_echo "$ac_ct_CC" >&6; } | |
4128 else | |
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4130 $as_echo "no" >&6; } | |
4131 fi | |
4132 | |
4133 if test "x$ac_ct_CC" = x; then | |
4134 CC="" | |
4135 else | |
4136 case $cross_compiling:$ac_tool_warned in | |
4137 yes:) | |
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4140 ac_tool_warned=yes ;; | |
4141 esac | |
4142 CC=$ac_ct_CC | |
4143 fi | |
4144 else | |
4145 CC="$ac_cv_prog_CC" | |
4146 fi | |
4147 | |
4148 if test -z "$CC"; then | |
4149 if test -n "$ac_tool_prefix"; then | |
4150 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4151 set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4153 $as_echo_n "checking for $ac_word... " >&6; } | |
4154 if ${ac_cv_prog_CC+:} false; then : | |
4155 $as_echo_n "(cached) " >&6 | |
4156 else | |
4157 if test -n "$CC"; then | |
4158 ac_cv_prog_CC="$CC" # Let the user override the test. | |
4159 else | |
4160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4161 for as_dir in $PATH | |
4162 do | |
4163 IFS=$as_save_IFS | |
4164 test -z "$as_dir" && as_dir=. | |
4165 for ac_exec_ext in '' $ac_executable_extensions; do | |
4166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4167 ac_cv_prog_CC="${ac_tool_prefix}cc" | |
4168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4169 break 2 | |
4170 fi | |
4171 done | |
4172 done | |
4173 IFS=$as_save_IFS | |
4174 | |
4175 fi | |
4176 fi | |
4177 CC=$ac_cv_prog_CC | |
4178 if test -n "$CC"; then | |
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4180 $as_echo "$CC" >&6; } | |
4181 else | |
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4183 $as_echo "no" >&6; } | |
4184 fi | |
4185 | |
4186 | |
4187 fi | |
4188 fi | |
4189 if test -z "$CC"; then | |
4190 # Extract the first word of "cc", so it can be a program name with args. | |
4191 set dummy cc; ac_word=$2 | |
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4193 $as_echo_n "checking for $ac_word... " >&6; } | |
4194 if ${ac_cv_prog_CC+:} false; then : | |
4195 $as_echo_n "(cached) " >&6 | |
4196 else | |
4197 if test -n "$CC"; then | |
4198 ac_cv_prog_CC="$CC" # Let the user override the test. | |
4199 else | |
4200 ac_prog_rejected=no | |
4201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4202 for as_dir in $PATH | |
4203 do | |
4204 IFS=$as_save_IFS | |
4205 test -z "$as_dir" && as_dir=. | |
4206 for ac_exec_ext in '' $ac_executable_extensions; do | |
4207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4208 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
4209 ac_prog_rejected=yes | |
4210 continue | |
4211 fi | |
4212 ac_cv_prog_CC="cc" | |
4213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4214 break 2 | |
4215 fi | |
4216 done | |
4217 done | |
4218 IFS=$as_save_IFS | |
4219 | |
4220 if test $ac_prog_rejected = yes; then | |
4221 # We found a bogon in the path, so make sure we never use it. | |
4222 set dummy $ac_cv_prog_CC | |
4223 shift | |
4224 if test $# != 0; then | |
4225 # We chose a different compiler from the bogus one. | |
4226 # However, it has the same basename, so the bogon will be chosen | |
4227 # first if we set CC to just the basename; use the full file name. | |
4228 shift | |
4229 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4230 fi | |
4231 fi | |
4232 fi | |
4233 fi | |
4234 CC=$ac_cv_prog_CC | |
4235 if test -n "$CC"; then | |
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4237 $as_echo "$CC" >&6; } | |
4238 else | |
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4240 $as_echo "no" >&6; } | |
4241 fi | |
4242 | |
4243 | |
4244 fi | |
4245 if test -z "$CC"; then | |
4246 if test -n "$ac_tool_prefix"; then | |
4247 for ac_prog in cl.exe | |
4248 do | |
4249 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4250 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4252 $as_echo_n "checking for $ac_word... " >&6; } | |
4253 if ${ac_cv_prog_CC+:} false; then : | |
4254 $as_echo_n "(cached) " >&6 | |
4255 else | |
4256 if test -n "$CC"; then | |
4257 ac_cv_prog_CC="$CC" # Let the user override the test. | |
4258 else | |
4259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4260 for as_dir in $PATH | |
4261 do | |
4262 IFS=$as_save_IFS | |
4263 test -z "$as_dir" && as_dir=. | |
4264 for ac_exec_ext in '' $ac_executable_extensions; do | |
4265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4266 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
4267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4268 break 2 | |
4269 fi | |
4270 done | |
4271 done | |
4272 IFS=$as_save_IFS | |
4273 | |
4274 fi | |
4275 fi | |
4276 CC=$ac_cv_prog_CC | |
4277 if test -n "$CC"; then | |
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4279 $as_echo "$CC" >&6; } | |
4280 else | |
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4282 $as_echo "no" >&6; } | |
4283 fi | |
4284 | |
4285 | |
4286 test -n "$CC" && break | |
4287 done | |
4288 fi | |
4289 if test -z "$CC"; then | |
4290 ac_ct_CC=$CC | |
4291 for ac_prog in cl.exe | |
4292 do | |
4293 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4294 set dummy $ac_prog; ac_word=$2 | |
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4296 $as_echo_n "checking for $ac_word... " >&6; } | |
4297 if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
4298 $as_echo_n "(cached) " >&6 | |
4299 else | |
4300 if test -n "$ac_ct_CC"; then | |
4301 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4302 else | |
4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4304 for as_dir in $PATH | |
4305 do | |
4306 IFS=$as_save_IFS | |
4307 test -z "$as_dir" && as_dir=. | |
4308 for ac_exec_ext in '' $ac_executable_extensions; do | |
4309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4310 ac_cv_prog_ac_ct_CC="$ac_prog" | |
4311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4312 break 2 | |
4313 fi | |
4314 done | |
4315 done | |
4316 IFS=$as_save_IFS | |
4317 | |
4318 fi | |
4319 fi | |
4320 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4321 if test -n "$ac_ct_CC"; then | |
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4323 $as_echo "$ac_ct_CC" >&6; } | |
4324 else | |
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4326 $as_echo "no" >&6; } | |
4327 fi | |
4328 | |
4329 | |
4330 test -n "$ac_ct_CC" && break | |
4331 done | |
4332 | |
4333 if test "x$ac_ct_CC" = x; then | |
4334 CC="" | |
4335 else | |
4336 case $cross_compiling:$ac_tool_warned in | |
4337 yes:) | |
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4340 ac_tool_warned=yes ;; | |
4341 esac | |
4342 CC=$ac_ct_CC | |
4343 fi | |
4344 fi | |
4345 | |
4346 fi | |
4347 | |
4348 | |
4349 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4351 as_fn_error $? "no acceptable C compiler found in \$PATH | |
4352 See \`config.log' for more details" "$LINENO" 5; } | |
4353 | |
4354 # Provide some information about the compiler. | |
4355 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
4356 set X $ac_compile | |
4357 ac_compiler=$2 | |
4358 for ac_option in --version -v -V -qversion; do | |
4359 { { ac_try="$ac_compiler $ac_option >&5" | |
4360 case "(($ac_try" in | |
4361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4362 *) ac_try_echo=$ac_try;; | |
4363 esac | |
4364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4365 $as_echo "$ac_try_echo"; } >&5 | |
4366 (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4367 ac_status=$? | |
4368 if test -s conftest.err; then | |
4369 sed '10a\ | |
4370 ... rest of stderr output deleted ... | |
4371 10q' conftest.err >conftest.er1 | |
4372 cat conftest.er1 >&5 | |
4373 fi | |
4374 rm -f conftest.er1 conftest.err | |
4375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4376 test $ac_status = 0; } | |
4377 done | |
4378 | |
4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4380 /* end confdefs.h. */ | |
4381 | |
4382 int | |
4383 main () | |
4384 { | |
4385 | |
4386 ; | |
4387 return 0; | |
4388 } | |
4389 _ACEOF | |
4390 ac_clean_files_save=$ac_clean_files | |
4391 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
4392 # Try to create an executable without -o first, disregard a.out. | |
4393 # It will help us diagnose broken compilers, and finding out an intuition | |
4394 # of exeext. | |
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
4396 $as_echo_n "checking whether the C compiler works... " >&6; } | |
4397 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
4398 | |
4399 # The possible output files: | |
4400 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4401 | |
4402 ac_rmfiles= | |
4403 for ac_file in $ac_files | |
4404 do | |
4405 case $ac_file in | |
4406 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4407 * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4408 esac | |
4409 done | |
4410 rm -f $ac_rmfiles | |
4411 | |
4412 if { { ac_try="$ac_link_default" | |
4413 case "(($ac_try" in | |
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4415 *) ac_try_echo=$ac_try;; | |
4416 esac | |
4417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4418 $as_echo "$ac_try_echo"; } >&5 | |
4419 (eval "$ac_link_default") 2>&5 | |
4420 ac_status=$? | |
4421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4422 test $ac_status = 0; }; then : | |
4423 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4424 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4425 # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4426 # so that the user can short-circuit this test for compilers unknown to | |
4427 # Autoconf. | |
4428 for ac_file in $ac_files '' | |
4429 do | |
4430 test -f "$ac_file" || continue | |
4431 case $ac_file in | |
4432 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
4433 ;; | |
4434 [ab].out ) | |
4435 # We found the default executable, but exeext='' is most | |
4436 # certainly right. | |
4437 break;; | |
4438 *.* ) | |
4439 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
4440 then :; else | |
4441 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4442 fi | |
4443 # We set ac_cv_exeext here because the later test for it is not | |
4444 # safe: cross compilers may not add the suffix if given an `-o' | |
4445 # argument, so we may need to know it at that point already. | |
4446 # Even if this section looks crufty: it has the advantage of | |
4447 # actually working. | |
4448 break;; | |
4449 * ) | |
4450 break;; | |
4451 esac | |
4452 done | |
4453 test "$ac_cv_exeext" = no && ac_cv_exeext= | |
4454 | |
4455 else | |
4456 ac_file='' | |
4457 fi | |
4458 if test -z "$ac_file"; then : | |
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4460 $as_echo "no" >&6; } | |
4461 $as_echo "$as_me: failed program was:" >&5 | |
4462 sed 's/^/| /' conftest.$ac_ext >&5 | |
4463 | |
4464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4466 as_fn_error 77 "C compiler cannot create executables | |
4467 See \`config.log' for more details" "$LINENO" 5; } | |
4468 else | |
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4470 $as_echo "yes" >&6; } | |
4471 fi | |
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
4473 $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4475 $as_echo "$ac_file" >&6; } | |
4476 ac_exeext=$ac_cv_exeext | |
4477 | |
4478 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
4479 ac_clean_files=$ac_clean_files_save | |
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
4481 $as_echo_n "checking for suffix of executables... " >&6; } | |
4482 if { { ac_try="$ac_link" | |
4483 case "(($ac_try" in | |
4484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4485 *) ac_try_echo=$ac_try;; | |
4486 esac | |
4487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4488 $as_echo "$ac_try_echo"; } >&5 | |
4489 (eval "$ac_link") 2>&5 | |
4490 ac_status=$? | |
4491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4492 test $ac_status = 0; }; then : | |
4493 # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
4494 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4495 # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4496 # `rm'. | |
4497 for ac_file in conftest.exe conftest conftest.*; do | |
4498 test -f "$ac_file" || continue | |
4499 case $ac_file in | |
4500 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4501 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4502 break;; | |
4503 * ) break;; | |
4504 esac | |
4505 done | |
4506 else | |
4507 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4509 as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
4510 See \`config.log' for more details" "$LINENO" 5; } | |
4511 fi | |
4512 rm -f conftest conftest$ac_cv_exeext | |
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
4514 $as_echo "$ac_cv_exeext" >&6; } | |
4515 | |
4516 rm -f conftest.$ac_ext | |
4517 EXEEXT=$ac_cv_exeext | |
4518 ac_exeext=$EXEEXT | |
4519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4520 /* end confdefs.h. */ | |
4521 #include <stdio.h> | |
4522 int | |
4523 main () | |
4524 { | |
4525 FILE *f = fopen ("conftest.out", "w"); | |
4526 return ferror (f) || fclose (f) != 0; | |
4527 | |
4528 ; | |
4529 return 0; | |
4530 } | |
4531 _ACEOF | |
4532 ac_clean_files="$ac_clean_files conftest.out" | |
4533 # Check that the compiler produces executables we can run. If not, either | |
4534 # the compiler is broken, or we cross compile. | |
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4536 $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4537 if test "$cross_compiling" != yes; then | |
4538 { { ac_try="$ac_link" | |
4539 case "(($ac_try" in | |
4540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4541 *) ac_try_echo=$ac_try;; | |
4542 esac | |
4543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4544 $as_echo "$ac_try_echo"; } >&5 | |
4545 (eval "$ac_link") 2>&5 | |
4546 ac_status=$? | |
4547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4548 test $ac_status = 0; } | |
4549 if { ac_try='./conftest$ac_cv_exeext' | |
4550 { { case "(($ac_try" in | |
4551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4552 *) ac_try_echo=$ac_try;; | |
4553 esac | |
4554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4555 $as_echo "$ac_try_echo"; } >&5 | |
4556 (eval "$ac_try") 2>&5 | |
4557 ac_status=$? | |
4558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4559 test $ac_status = 0; }; }; then | |
4560 cross_compiling=no | |
4561 else | |
4562 if test "$cross_compiling" = maybe; then | |
4563 cross_compiling=yes | |
4564 else | |
4565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4567 as_fn_error $? "cannot run C compiled programs. | |
4568 If you meant to cross compile, use \`--host'. | |
4569 See \`config.log' for more details" "$LINENO" 5; } | |
4570 fi | |
4571 fi | |
4572 fi | |
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4574 $as_echo "$cross_compiling" >&6; } | |
4575 | |
4576 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4577 ac_clean_files=$ac_clean_files_save | |
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
4579 $as_echo_n "checking for suffix of object files... " >&6; } | |
4580 if ${ac_cv_objext+:} false; then : | |
4581 $as_echo_n "(cached) " >&6 | |
4582 else | |
4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4584 /* end confdefs.h. */ | |
4585 | |
4586 int | |
4587 main () | |
4588 { | |
4589 | |
4590 ; | |
4591 return 0; | |
4592 } | |
4593 _ACEOF | |
4594 rm -f conftest.o conftest.obj | |
4595 if { { ac_try="$ac_compile" | |
4596 case "(($ac_try" in | |
4597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4598 *) ac_try_echo=$ac_try;; | |
4599 esac | |
4600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4601 $as_echo "$ac_try_echo"; } >&5 | |
4602 (eval "$ac_compile") 2>&5 | |
4603 ac_status=$? | |
4604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4605 test $ac_status = 0; }; then : | |
4606 for ac_file in conftest.o conftest.obj conftest.*; do | |
4607 test -f "$ac_file" || continue; | |
4608 case $ac_file in | |
4609 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
4610 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
4611 break;; | |
4612 esac | |
4613 done | |
4614 else | |
4615 $as_echo "$as_me: failed program was:" >&5 | |
4616 sed 's/^/| /' conftest.$ac_ext >&5 | |
4617 | |
4618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4620 as_fn_error $? "cannot compute suffix of object files: cannot compile | |
4621 See \`config.log' for more details" "$LINENO" 5; } | |
4622 fi | |
4623 rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
4624 fi | |
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
4626 $as_echo "$ac_cv_objext" >&6; } | |
4627 OBJEXT=$ac_cv_objext | |
4628 ac_objext=$OBJEXT | |
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
4630 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4631 if ${ac_cv_c_compiler_gnu+:} false; then : | |
4632 $as_echo_n "(cached) " >&6 | |
4633 else | |
4634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4635 /* end confdefs.h. */ | |
4636 | |
4637 int | |
4638 main () | |
4639 { | |
4640 #ifndef __GNUC__ | |
4641 choke me | |
4642 #endif | |
4643 | |
4644 ; | |
4645 return 0; | |
4646 } | |
4647 _ACEOF | |
4648 if ac_fn_c_try_compile "$LINENO"; then : | |
4649 ac_compiler_gnu=yes | |
4650 else | |
4651 ac_compiler_gnu=no | |
4652 fi | |
4653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4654 ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
4655 | |
4656 fi | |
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
4658 $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4659 if test $ac_compiler_gnu = yes; then | |
4660 GCC=yes | |
4661 else | |
4662 GCC= | |
4663 fi | |
4664 ac_test_CFLAGS=${CFLAGS+set} | |
4665 ac_save_CFLAGS=$CFLAGS | |
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4667 $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4668 if ${ac_cv_prog_cc_g+:} false; then : | |
4669 $as_echo_n "(cached) " >&6 | |
4670 else | |
4671 ac_save_c_werror_flag=$ac_c_werror_flag | |
4672 ac_c_werror_flag=yes | |
4673 ac_cv_prog_cc_g=no | |
4674 CFLAGS="-g" | |
4675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4676 /* end confdefs.h. */ | |
4677 | |
4678 int | |
4679 main () | |
4680 { | |
4681 | |
4682 ; | |
4683 return 0; | |
4684 } | |
4685 _ACEOF | |
4686 if ac_fn_c_try_compile "$LINENO"; then : | |
4687 ac_cv_prog_cc_g=yes | |
4688 else | |
4689 CFLAGS="" | |
4690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4691 /* end confdefs.h. */ | |
4692 | |
4693 int | |
4694 main () | |
4695 { | |
4696 | |
4697 ; | |
4698 return 0; | |
4699 } | |
4700 _ACEOF | |
4701 if ac_fn_c_try_compile "$LINENO"; then : | |
4702 | |
4703 else | |
4704 ac_c_werror_flag=$ac_save_c_werror_flag | |
4705 CFLAGS="-g" | |
4706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4707 /* end confdefs.h. */ | |
4708 | |
4709 int | |
4710 main () | |
4711 { | |
4712 | |
4713 ; | |
4714 return 0; | |
4715 } | |
4716 _ACEOF | |
4717 if ac_fn_c_try_compile "$LINENO"; then : | |
4718 ac_cv_prog_cc_g=yes | |
4719 fi | |
4720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4721 fi | |
4722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4723 fi | |
4724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4725 ac_c_werror_flag=$ac_save_c_werror_flag | |
4726 fi | |
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4728 $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4729 if test "$ac_test_CFLAGS" = set; then | |
4730 CFLAGS=$ac_save_CFLAGS | |
4731 elif test $ac_cv_prog_cc_g = yes; then | |
4732 if test "$GCC" = yes; then | |
4733 CFLAGS="-g -O2" | |
4734 else | |
4735 CFLAGS="-g" | |
4736 fi | |
4737 else | |
4738 if test "$GCC" = yes; then | |
4739 CFLAGS="-O2" | |
4740 else | |
4741 CFLAGS= | |
4742 fi | |
4743 fi | |
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
4745 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4746 if ${ac_cv_prog_cc_c89+:} false; then : | |
4747 $as_echo_n "(cached) " >&6 | |
4748 else | |
4749 ac_cv_prog_cc_c89=no | |
4750 ac_save_CC=$CC | |
4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4752 /* end confdefs.h. */ | |
4753 #include <stdarg.h> | |
4754 #include <stdio.h> | |
4755 struct stat; | |
4756 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4757 struct buf { int x; }; | |
4758 FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4759 static char *e (p, i) | |
4760 char **p; | |
4761 int i; | |
4762 { | |
4763 return p[i]; | |
4764 } | |
4765 static char *f (char * (*g) (char **, int), char **p, ...) | |
4766 { | |
4767 char *s; | |
4768 va_list v; | |
4769 va_start (v,p); | |
4770 s = g (p, va_arg (v,int)); | |
4771 va_end (v); | |
4772 return s; | |
4773 } | |
4774 | |
4775 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4776 function prototypes and stuff, but not '\xHH' hex character constants. | |
4777 These don't provoke an error unfortunately, instead are silently treated | |
4778 as 'x'. The following induces an error, until -std is added to get | |
4779 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4780 array size at least. It's necessary to write '\x00'==0 to get something | |
4781 that's true only with -std. */ | |
4782 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4783 | |
4784 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
4785 inside strings and character constants. */ | |
4786 #define FOO(x) 'x' | |
4787 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4788 | |
4789 int test (int i, double x); | |
4790 struct s1 {int (*f) (int a);}; | |
4791 struct s2 {int (*f) (double a);}; | |
4792 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4793 int argc; | |
4794 char **argv; | |
4795 int | |
4796 main () | |
4797 { | |
4798 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4799 ; | |
4800 return 0; | |
4801 } | |
4802 _ACEOF | |
4803 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
4804 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4805 do | |
4806 CC="$ac_save_CC $ac_arg" | |
4807 if ac_fn_c_try_compile "$LINENO"; then : | |
4808 ac_cv_prog_cc_c89=$ac_arg | |
4809 fi | |
4810 rm -f core conftest.err conftest.$ac_objext | |
4811 test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4812 done | |
4813 rm -f conftest.$ac_ext | |
4814 CC=$ac_save_CC | |
4815 | |
4816 fi | |
4817 # AC_CACHE_VAL | |
4818 case "x$ac_cv_prog_cc_c89" in | |
4819 x) | |
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4821 $as_echo "none needed" >&6; } ;; | |
4822 xno) | |
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4824 $as_echo "unsupported" >&6; } ;; | |
4825 *) | |
4826 CC="$CC $ac_cv_prog_cc_c89" | |
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4828 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4829 esac | |
4830 if test "x$ac_cv_prog_cc_c89" != xno; then : | |
4831 | |
4832 fi | |
4833 | |
4834 ac_ext=c | |
4835 ac_cpp='$CPP $CPPFLAGS' | |
4836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4838 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4839 | |
4840 ac_ext=c | |
4841 ac_cpp='$CPP $CPPFLAGS' | |
4842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4844 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
4846 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
4847 if ${am_cv_prog_cc_c_o+:} false; then : | |
4848 $as_echo_n "(cached) " >&6 | |
4849 else | |
4850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4851 /* end confdefs.h. */ | |
4852 | |
4853 int | |
4854 main () | |
4855 { | |
4856 | |
4857 ; | |
4858 return 0; | |
4859 } | |
4860 _ACEOF | |
4861 # Make sure it works both with $CC and with simple cc. | |
4862 # Following AC_PROG_CC_C_O, we do the test twice because some | |
4863 # compilers refuse to overwrite an existing .o file with -o, | |
4864 # though they will create one. | |
4865 am_cv_prog_cc_c_o=yes | |
4866 for am_i in 1 2; do | |
4867 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
4868 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
4869 ac_status=$? | |
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4871 (exit $ac_status); } \ | |
4872 && test -f conftest2.$ac_objext; then | |
4873 : OK | |
4874 else | |
4875 am_cv_prog_cc_c_o=no | |
4876 break | |
4877 fi | |
4878 done | |
4879 rm -f core conftest* | |
4880 unset am_i | |
4881 fi | |
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4883 $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4884 if test "$am_cv_prog_cc_c_o" != yes; then | |
4885 # Losing compiler, so override with the script. | |
4886 # FIXME: It is wrong to rewrite CC. | |
4887 # But if we don't then we get into trouble of one sort or another. | |
4888 # A longer-term fix would be to have automake use am__CC in this case, | |
4889 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4890 CC="$am_aux_dir/compile $CC" | |
4891 fi | |
4892 ac_ext=c | |
4893 ac_cpp='$CPP $CPPFLAGS' | |
4894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4896 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4897 | |
4898 DEPDIR="${am__leading_dot}deps" | |
4899 | |
4900 ac_config_commands="$ac_config_commands depfiles" | |
4901 | |
4902 | |
4903 am_make=${MAKE-make} | |
4904 cat > confinc << 'END' | |
4905 am__doit: | |
4906 @echo this is the am__doit target | |
4907 .PHONY: am__doit | |
4908 END | |
4909 # If we don't find an include directive, just comment out the code. | |
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4911 $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
4912 am__include="#" | |
4913 am__quote= | |
4914 _am_result=none | |
4915 # First try GNU make style include. | |
4916 echo "include confinc" > confmf | |
4917 # Ignore all kinds of additional output from 'make'. | |
4918 case `$am_make -s -f confmf 2> /dev/null` in #( | |
4919 *the\ am__doit\ target*) | |
4920 am__include=include | |
4921 am__quote= | |
4922 _am_result=GNU | |
4923 ;; | |
4924 esac | |
4925 # Now try BSD make style include. | |
4926 if test "$am__include" = "#"; then | |
4927 echo '.include "confinc"' > confmf | |
4928 case `$am_make -s -f confmf 2> /dev/null` in #( | |
4929 *the\ am__doit\ target*) | |
4930 am__include=.include | |
4931 am__quote="\"" | |
4932 _am_result=BSD | |
4933 ;; | |
4934 esac | |
4935 fi | |
4936 | |
4937 | |
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
4939 $as_echo "$_am_result" >&6; } | |
4940 rm -f confinc confmf | |
4941 | |
4942 # Check whether --enable-dependency-tracking was given. | |
4943 if test "${enable_dependency_tracking+set}" = set; then : | |
4944 enableval=$enable_dependency_tracking; | |
4945 fi | |
4946 | |
4947 if test "x$enable_dependency_tracking" != xno; then | |
4948 am_depcomp="$ac_aux_dir/depcomp" | |
4949 AMDEPBACKSLASH='\' | |
4950 am__nodep='_no' | |
4951 fi | |
4952 if test "x$enable_dependency_tracking" != xno; then | |
4953 AMDEP_TRUE= | |
4954 AMDEP_FALSE='#' | |
4955 else | |
4956 AMDEP_TRUE='#' | |
4957 AMDEP_FALSE= | |
4958 fi | |
4959 | |
4960 | |
4961 | |
4962 depcc="$CC" am_compiler_list= | |
4963 | |
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4965 $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4966 if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
4967 $as_echo_n "(cached) " >&6 | |
4968 else | |
4969 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4970 # We make a subdir and do the tests there. Otherwise we can end up | |
4971 # making bogus files that we don't know about and never remove. For | |
4972 # instance it was reported that on HP-UX the gcc test will end up | |
4973 # making a dummy file named 'D' -- because '-MD' means "put the output | |
4974 # in D". | |
4975 rm -rf conftest.dir | |
4976 mkdir conftest.dir | |
4977 # Copy depcomp to subdir because otherwise we won't find it if we're | |
4978 # using a relative directory. | |
4979 cp "$am_depcomp" conftest.dir | |
4980 cd conftest.dir | |
4981 # We will build objects and dependencies in a subdirectory because | |
4982 # it helps to detect inapplicable dependency modes. For instance | |
4983 # both Tru64's cc and ICC support -MD to output dependencies as a | |
4984 # side effect of compilation, but ICC will put the dependencies in | |
4985 # the current directory while Tru64 will put them in the object | |
4986 # directory. | |
4987 mkdir sub | |
4988 | |
4989 am_cv_CC_dependencies_compiler_type=none | |
4990 if test "$am_compiler_list" = ""; then | |
4991 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4992 fi | |
4993 am__universal=false | |
4994 case " $depcc " in #( | |
4995 *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4996 esac | |
4997 | |
4998 for depmode in $am_compiler_list; do | |
4999 # Setup a source with many dependencies, because some compilers | |
5000 # like to wrap large dependency lists on column 80 (with \), and | |
5001 # we should not choose a depcomp mode which is confused by this. | |
5002 # | |
5003 # We need to recreate these files for each test, as the compiler may | |
5004 # overwrite some of them when testing with obscure command lines. | |
5005 # This happens at least with the AIX C compiler. | |
5006 : > sub/conftest.c | |
5007 for i in 1 2 3 4 5 6; do | |
5008 echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
5009 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
5010 # Solaris 10 /bin/sh. | |
5011 echo '/* dummy */' > sub/conftst$i.h | |
5012 done | |
5013 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
5014 | |
5015 # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
5016 # mode. It turns out that the SunPro C++ compiler does not properly | |
5017 # handle '-M -o', and we need to detect this. Also, some Intel | |
5018 # versions had trouble with output in subdirs. | |
5019 am__obj=sub/conftest.${OBJEXT-o} | |
5020 am__minus_obj="-o $am__obj" | |
5021 case $depmode in | |
5022 gcc) | |
5023 # This depmode causes a compiler race in universal mode. | |
5024 test "$am__universal" = false || continue | |
5025 ;; | |
5026 nosideeffect) | |
5027 # After this tag, mechanisms are not by side-effect, so they'll | |
5028 # only be used when explicitly requested. | |
5029 if test "x$enable_dependency_tracking" = xyes; then | |
5030 continue | |
5031 else | |
5032 break | |
5033 fi | |
5034 ;; | |
5035 msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
5036 # This compiler won't grok '-c -o', but also, the minuso test has | |
5037 # not run yet. These depmodes are late enough in the game, and | |
5038 # so weak that their functioning should not be impacted. | |
5039 am__obj=conftest.${OBJEXT-o} | |
5040 am__minus_obj= | |
5041 ;; | |
5042 none) break ;; | |
5043 esac | |
5044 if depmode=$depmode \ | |
5045 source=sub/conftest.c object=$am__obj \ | |
5046 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
5047 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
5048 >/dev/null 2>conftest.err && | |
5049 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
5050 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
5051 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
5052 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
5053 # icc doesn't choke on unknown options, it will just issue warnings | |
5054 # or remarks (even with -Werror). So we grep stderr for any message | |
5055 # that says an option was ignored or not supported. | |
5056 # When given -MP, icc 7.0 and 7.1 complain thusly: | |
5057 # icc: Command line warning: ignoring option '-M'; no argument required | |
5058 # The diagnosis changed in icc 8.0: | |
5059 # icc: Command line remark: option '-MP' not supported | |
5060 if (grep 'ignoring option' conftest.err || | |
5061 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
5062 am_cv_CC_dependencies_compiler_type=$depmode | |
5063 break | |
5064 fi | |
5065 fi | |
5066 done | |
5067 | |
5068 cd .. | |
5069 rm -rf conftest.dir | |
5070 else | |
5071 am_cv_CC_dependencies_compiler_type=none | |
5072 fi | |
5073 | |
5074 fi | |
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
5076 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
5077 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
5078 | |
5079 if | |
5080 test "x$enable_dependency_tracking" != xno \ | |
5081 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
5082 am__fastdepCC_TRUE= | |
5083 am__fastdepCC_FALSE='#' | |
5084 else | |
5085 am__fastdepCC_TRUE='#' | |
5086 am__fastdepCC_FALSE= | |
5087 fi | |
5088 | |
5089 | |
5090 | |
5091 | |
5092 | |
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5 | |
5094 $as_echo_n "checking for C compiler vendor... " >&6; } | |
5095 if ${ax_cv_c_compiler_vendor+:} false; then : | |
5096 $as_echo_n "(cached) " >&6 | |
5097 else | |
5098 ax_cv_c_compiler_vendor=unknown | |
5099 # note: don't check for gcc first since some other compilers define __GNUC__ | |
5100 for ventest in intel:__ICC,__ECC,__INTEL_COMPILER ibm:__ibmxl__,__xlc__,__xlC__,__IBMC__,__IBMCPP__ pathscale:__PATHCC__,__PATHSCALE__ clang:__clang__ gnu:__GNUC__ sun:__SUNPRO_C,__SUNPRO_CC hp:__HP_cc,__HP_aCC dec:__DECC,__DECCXX,__DECC_VER,__DECCXX_VER borland:__BORLANDC__,__TURBOC__ comeau:__COMO__ cray:_CRAYC kai:__KCC lcc:__LCC__ metrowerks:__MWERKS__ sgi:__sgi,sgi microsoft:_MSC_VER watcom:__WATCOMC__ portland:__PGI; do | |
5101 vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")" | |
5102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5103 /* end confdefs.h. */ | |
5104 | |
5105 int | |
5106 main () | |
5107 { | |
5108 | |
5109 #if !($vencpp) | |
5110 thisisanerror; | |
5111 #endif | |
5112 | |
5113 ; | |
5114 return 0; | |
5115 } | |
5116 _ACEOF | |
5117 if ac_fn_c_try_compile "$LINENO"; then : | |
5118 ax_cv_c_compiler_vendor=`echo $ventest | cut -d: -f1`; break | |
5119 fi | |
5120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5121 done | |
5122 | |
5123 fi | |
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5 | |
5125 $as_echo "$ax_cv_c_compiler_vendor" >&6; } | |
5126 | |
5127 case $ac_cv_prog_cc_stdc in #( | |
5128 no) : | |
5129 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( | |
5130 *) : | |
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 | |
5132 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | |
5133 if ${ac_cv_prog_cc_c99+:} false; then : | |
5134 $as_echo_n "(cached) " >&6 | |
5135 else | |
5136 ac_cv_prog_cc_c99=no | |
5137 ac_save_CC=$CC | |
5138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5139 /* end confdefs.h. */ | |
5140 #include <stdarg.h> | |
5141 #include <stdbool.h> | |
5142 #include <stdlib.h> | |
5143 #include <wchar.h> | |
5144 #include <stdio.h> | |
5145 | |
5146 // Check varargs macros. These examples are taken from C99 6.10.3.5. | |
5147 #define debug(...) fprintf (stderr, __VA_ARGS__) | |
5148 #define showlist(...) puts (#__VA_ARGS__) | |
5149 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
5150 static void | |
5151 test_varargs_macros (void) | |
5152 { | |
5153 int x = 1234; | |
5154 int y = 5678; | |
5155 debug ("Flag"); | |
5156 debug ("X = %d\n", x); | |
5157 showlist (The first, second, and third items.); | |
5158 report (x>y, "x is %d but y is %d", x, y); | |
5159 } | |
5160 | |
5161 // Check long long types. | |
5162 #define BIG64 18446744073709551615ull | |
5163 #define BIG32 4294967295ul | |
5164 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
5165 #if !BIG_OK | |
5166 your preprocessor is broken; | |
5167 #endif | |
5168 #if BIG_OK | |
5169 #else | |
5170 your preprocessor is broken; | |
5171 #endif | |
5172 static long long int bignum = -9223372036854775807LL; | |
5173 static unsigned long long int ubignum = BIG64; | |
5174 | |
5175 struct incomplete_array | |
5176 { | |
5177 int datasize; | |
5178 double data[]; | |
5179 }; | |
5180 | |
5181 struct named_init { | |
5182 int number; | |
5183 const wchar_t *name; | |
5184 double average; | |
5185 }; | |
5186 | |
5187 typedef const char *ccp; | |
5188 | |
5189 static inline int | |
5190 test_restrict (ccp restrict text) | |
5191 { | |
5192 // See if C++-style comments work. | |
5193 // Iterate through items via the restricted pointer. | |
5194 // Also check for declarations in for loops. | |
5195 for (unsigned int i = 0; *(text+i) != '\0'; ++i) | |
5196 continue; | |
5197 return 0; | |
5198 } | |
5199 | |
5200 // Check varargs and va_copy. | |
5201 static void | |
5202 test_varargs (const char *format, ...) | |
5203 { | |
5204 va_list args; | |
5205 va_start (args, format); | |
5206 va_list args_copy; | |
5207 va_copy (args_copy, args); | |
5208 | |
5209 const char *str; | |
5210 int number; | |
5211 float fnumber; | |
5212 | |
5213 while (*format) | |
5214 { | |
5215 switch (*format++) | |
5216 { | |
5217 case 's': // string | |
5218 str = va_arg (args_copy, const char *); | |
5219 break; | |
5220 case 'd': // int | |
5221 number = va_arg (args_copy, int); | |
5222 break; | |
5223 case 'f': // float | |
5224 fnumber = va_arg (args_copy, double); | |
5225 break; | |
5226 default: | |
5227 break; | |
5228 } | |
5229 } | |
5230 va_end (args_copy); | |
5231 va_end (args); | |
5232 } | |
5233 | |
5234 int | |
5235 main () | |
5236 { | |
5237 | |
5238 // Check bool. | |
5239 _Bool success = false; | |
5240 | |
5241 // Check restrict. | |
5242 if (test_restrict ("String literal") == 0) | |
5243 success = true; | |
5244 char *restrict newvar = "Another string"; | |
5245 | |
5246 // Check varargs. | |
5247 test_varargs ("s, d' f .", "string", 65, 34.234); | |
5248 test_varargs_macros (); | |
5249 | |
5250 // Check flexible array members. | |
5251 struct incomplete_array *ia = | |
5252 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
5253 ia->datasize = 10; | |
5254 for (int i = 0; i < ia->datasize; ++i) | |
5255 ia->data[i] = i * 1.234; | |
5256 | |
5257 // Check named initializers. | |
5258 struct named_init ni = { | |
5259 .number = 34, | |
5260 .name = L"Test wide string", | |
5261 .average = 543.34343, | |
5262 }; | |
5263 | |
5264 ni.number = 58; | |
5265 | |
5266 int dynamic_array[ni.number]; | |
5267 dynamic_array[ni.number - 1] = 543; | |
5268 | |
5269 // work around unused variable warnings | |
5270 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | |
5271 || dynamic_array[ni.number - 1] != 543); | |
5272 | |
5273 ; | |
5274 return 0; | |
5275 } | |
5276 _ACEOF | |
5277 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 | |
5278 do | |
5279 CC="$ac_save_CC $ac_arg" | |
5280 if ac_fn_c_try_compile "$LINENO"; then : | |
5281 ac_cv_prog_cc_c99=$ac_arg | |
5282 fi | |
5283 rm -f core conftest.err conftest.$ac_objext | |
5284 test "x$ac_cv_prog_cc_c99" != "xno" && break | |
5285 done | |
5286 rm -f conftest.$ac_ext | |
5287 CC=$ac_save_CC | |
5288 | |
5289 fi | |
5290 # AC_CACHE_VAL | |
5291 case "x$ac_cv_prog_cc_c99" in | |
5292 x) | |
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5294 $as_echo "none needed" >&6; } ;; | |
5295 xno) | |
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5297 $as_echo "unsupported" >&6; } ;; | |
5298 *) | |
5299 CC="$CC $ac_cv_prog_cc_c99" | |
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
5301 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | |
5302 esac | |
5303 if test "x$ac_cv_prog_cc_c99" != xno; then : | |
5304 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 | |
5305 else | |
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
5307 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
5308 if ${ac_cv_prog_cc_c89+:} false; then : | |
5309 $as_echo_n "(cached) " >&6 | |
5310 else | |
5311 ac_cv_prog_cc_c89=no | |
5312 ac_save_CC=$CC | |
5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5314 /* end confdefs.h. */ | |
5315 #include <stdarg.h> | |
5316 #include <stdio.h> | |
5317 struct stat; | |
5318 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
5319 struct buf { int x; }; | |
5320 FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
5321 static char *e (p, i) | |
5322 char **p; | |
5323 int i; | |
5324 { | |
5325 return p[i]; | |
5326 } | |
5327 static char *f (char * (*g) (char **, int), char **p, ...) | |
5328 { | |
5329 char *s; | |
5330 va_list v; | |
5331 va_start (v,p); | |
5332 s = g (p, va_arg (v,int)); | |
5333 va_end (v); | |
5334 return s; | |
5335 } | |
5336 | |
5337 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
5338 function prototypes and stuff, but not '\xHH' hex character constants. | |
5339 These don't provoke an error unfortunately, instead are silently treated | |
5340 as 'x'. The following induces an error, until -std is added to get | |
5341 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
5342 array size at least. It's necessary to write '\x00'==0 to get something | |
5343 that's true only with -std. */ | |
5344 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
5345 | |
5346 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
5347 inside strings and character constants. */ | |
5348 #define FOO(x) 'x' | |
5349 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
5350 | |
5351 int test (int i, double x); | |
5352 struct s1 {int (*f) (int a);}; | |
5353 struct s2 {int (*f) (double a);}; | |
5354 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
5355 int argc; | |
5356 char **argv; | |
5357 int | |
5358 main () | |
5359 { | |
5360 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
5361 ; | |
5362 return 0; | |
5363 } | |
5364 _ACEOF | |
5365 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
5366 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
5367 do | |
5368 CC="$ac_save_CC $ac_arg" | |
5369 if ac_fn_c_try_compile "$LINENO"; then : | |
5370 ac_cv_prog_cc_c89=$ac_arg | |
5371 fi | |
5372 rm -f core conftest.err conftest.$ac_objext | |
5373 test "x$ac_cv_prog_cc_c89" != "xno" && break | |
5374 done | |
5375 rm -f conftest.$ac_ext | |
5376 CC=$ac_save_CC | |
5377 | |
5378 fi | |
5379 # AC_CACHE_VAL | |
5380 case "x$ac_cv_prog_cc_c89" in | |
5381 x) | |
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5383 $as_echo "none needed" >&6; } ;; | |
5384 xno) | |
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5386 $as_echo "unsupported" >&6; } ;; | |
5387 *) | |
5388 CC="$CC $ac_cv_prog_cc_c89" | |
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
5390 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
5391 esac | |
5392 if test "x$ac_cv_prog_cc_c89" != xno; then : | |
5393 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 | |
5394 else | |
5395 ac_cv_prog_cc_stdc=no | |
5396 fi | |
5397 | |
5398 fi | |
5399 ;; | |
5400 esac | |
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 | |
5402 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } | |
5403 if ${ac_cv_prog_cc_stdc+:} false; then : | |
5404 $as_echo_n "(cached) " >&6 | |
5405 fi | |
5406 | |
5407 case $ac_cv_prog_cc_stdc in #( | |
5408 no) : | |
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5410 $as_echo "unsupported" >&6; } ;; #( | |
5411 '') : | |
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5413 $as_echo "none needed" >&6; } ;; #( | |
5414 *) : | |
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 | |
5416 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; | |
5417 esac | |
5418 | |
5419 | |
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
5421 $as_echo_n "checking whether ln -s works... " >&6; } | |
5422 LN_S=$as_ln_s | |
5423 if test "$LN_S" = "ln -s"; then | |
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5425 $as_echo "yes" >&6; } | |
5426 else | |
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
5428 $as_echo "no, using $LN_S" >&6; } | |
5429 fi | |
5430 | |
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
5432 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
5433 set x ${MAKE-make} | |
5434 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
5435 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
5436 $as_echo_n "(cached) " >&6 | |
5437 else | |
5438 cat >conftest.make <<\_ACEOF | |
5439 SHELL = /bin/sh | |
5440 all: | |
5441 @echo '@@@%%%=$(MAKE)=@@@%%%' | |
5442 _ACEOF | |
5443 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
5444 case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
5445 *@@@%%%=?*=@@@%%%*) | |
5446 eval ac_cv_prog_make_${ac_make}_set=yes;; | |
5447 *) | |
5448 eval ac_cv_prog_make_${ac_make}_set=no;; | |
5449 esac | |
5450 rm -f conftest.make | |
5451 fi | |
5452 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5454 $as_echo "yes" >&6; } | |
5455 SET_MAKE= | |
5456 else | |
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5458 $as_echo "no" >&6; } | |
5459 SET_MAKE="MAKE=${MAKE-make}" | |
5460 fi | |
5461 | |
5462 enable_win32_dll=yes | |
5463 | |
5464 case $host in | |
5465 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) | |
5466 if test -n "$ac_tool_prefix"; then | |
5467 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
5468 set dummy ${ac_tool_prefix}as; ac_word=$2 | |
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5470 $as_echo_n "checking for $ac_word... " >&6; } | |
5471 if ${ac_cv_prog_AS+:} false; then : | |
5472 $as_echo_n "(cached) " >&6 | |
5473 else | |
5474 if test -n "$AS"; then | |
5475 ac_cv_prog_AS="$AS" # Let the user override the test. | |
5476 else | |
5477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5478 for as_dir in $PATH | |
5479 do | |
5480 IFS=$as_save_IFS | |
5481 test -z "$as_dir" && as_dir=. | |
5482 for ac_exec_ext in '' $ac_executable_extensions; do | |
5483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5484 ac_cv_prog_AS="${ac_tool_prefix}as" | |
5485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5486 break 2 | |
5487 fi | |
5488 done | |
5489 done | |
5490 IFS=$as_save_IFS | |
5491 | |
5492 fi | |
5493 fi | |
5494 AS=$ac_cv_prog_AS | |
5495 if test -n "$AS"; then | |
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 | |
5497 $as_echo "$AS" >&6; } | |
5498 else | |
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5500 $as_echo "no" >&6; } | |
5501 fi | |
5502 | |
5503 | |
5504 fi | |
5505 if test -z "$ac_cv_prog_AS"; then | |
5506 ac_ct_AS=$AS | |
5507 # Extract the first word of "as", so it can be a program name with args. | |
5508 set dummy as; ac_word=$2 | |
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5510 $as_echo_n "checking for $ac_word... " >&6; } | |
5511 if ${ac_cv_prog_ac_ct_AS+:} false; then : | |
5512 $as_echo_n "(cached) " >&6 | |
5513 else | |
5514 if test -n "$ac_ct_AS"; then | |
5515 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | |
5516 else | |
5517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5518 for as_dir in $PATH | |
5519 do | |
5520 IFS=$as_save_IFS | |
5521 test -z "$as_dir" && as_dir=. | |
5522 for ac_exec_ext in '' $ac_executable_extensions; do | |
5523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5524 ac_cv_prog_ac_ct_AS="as" | |
5525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5526 break 2 | |
5527 fi | |
5528 done | |
5529 done | |
5530 IFS=$as_save_IFS | |
5531 | |
5532 fi | |
5533 fi | |
5534 ac_ct_AS=$ac_cv_prog_ac_ct_AS | |
5535 if test -n "$ac_ct_AS"; then | |
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 | |
5537 $as_echo "$ac_ct_AS" >&6; } | |
5538 else | |
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5540 $as_echo "no" >&6; } | |
5541 fi | |
5542 | |
5543 if test "x$ac_ct_AS" = x; then | |
5544 AS="false" | |
5545 else | |
5546 case $cross_compiling:$ac_tool_warned in | |
5547 yes:) | |
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5550 ac_tool_warned=yes ;; | |
5551 esac | |
5552 AS=$ac_ct_AS | |
5553 fi | |
5554 else | |
5555 AS="$ac_cv_prog_AS" | |
5556 fi | |
5557 | |
5558 if test -n "$ac_tool_prefix"; then | |
5559 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
5560 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5562 $as_echo_n "checking for $ac_word... " >&6; } | |
5563 if ${ac_cv_prog_DLLTOOL+:} false; then : | |
5564 $as_echo_n "(cached) " >&6 | |
5565 else | |
5566 if test -n "$DLLTOOL"; then | |
5567 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
5568 else | |
5569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5570 for as_dir in $PATH | |
5571 do | |
5572 IFS=$as_save_IFS | |
5573 test -z "$as_dir" && as_dir=. | |
5574 for ac_exec_ext in '' $ac_executable_extensions; do | |
5575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5576 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
5577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5578 break 2 | |
5579 fi | |
5580 done | |
5581 done | |
5582 IFS=$as_save_IFS | |
5583 | |
5584 fi | |
5585 fi | |
5586 DLLTOOL=$ac_cv_prog_DLLTOOL | |
5587 if test -n "$DLLTOOL"; then | |
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
5589 $as_echo "$DLLTOOL" >&6; } | |
5590 else | |
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5592 $as_echo "no" >&6; } | |
5593 fi | |
5594 | |
5595 | |
5596 fi | |
5597 if test -z "$ac_cv_prog_DLLTOOL"; then | |
5598 ac_ct_DLLTOOL=$DLLTOOL | |
5599 # Extract the first word of "dlltool", so it can be a program name with args. | |
5600 set dummy dlltool; ac_word=$2 | |
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5602 $as_echo_n "checking for $ac_word... " >&6; } | |
5603 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
5604 $as_echo_n "(cached) " >&6 | |
5605 else | |
5606 if test -n "$ac_ct_DLLTOOL"; then | |
5607 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
5608 else | |
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5610 for as_dir in $PATH | |
5611 do | |
5612 IFS=$as_save_IFS | |
5613 test -z "$as_dir" && as_dir=. | |
5614 for ac_exec_ext in '' $ac_executable_extensions; do | |
5615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5616 ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
5617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5618 break 2 | |
5619 fi | |
5620 done | |
5621 done | |
5622 IFS=$as_save_IFS | |
5623 | |
5624 fi | |
5625 fi | |
5626 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
5627 if test -n "$ac_ct_DLLTOOL"; then | |
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
5629 $as_echo "$ac_ct_DLLTOOL" >&6; } | |
5630 else | |
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5632 $as_echo "no" >&6; } | |
5633 fi | |
5634 | |
5635 if test "x$ac_ct_DLLTOOL" = x; then | |
5636 DLLTOOL="false" | |
5637 else | |
5638 case $cross_compiling:$ac_tool_warned in | |
5639 yes:) | |
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5642 ac_tool_warned=yes ;; | |
5643 esac | |
5644 DLLTOOL=$ac_ct_DLLTOOL | |
5645 fi | |
5646 else | |
5647 DLLTOOL="$ac_cv_prog_DLLTOOL" | |
5648 fi | |
5649 | |
5650 if test -n "$ac_tool_prefix"; then | |
5651 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5652 set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5654 $as_echo_n "checking for $ac_word... " >&6; } | |
5655 if ${ac_cv_prog_OBJDUMP+:} false; then : | |
5656 $as_echo_n "(cached) " >&6 | |
5657 else | |
5658 if test -n "$OBJDUMP"; then | |
5659 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5660 else | |
5661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5662 for as_dir in $PATH | |
5663 do | |
5664 IFS=$as_save_IFS | |
5665 test -z "$as_dir" && as_dir=. | |
5666 for ac_exec_ext in '' $ac_executable_extensions; do | |
5667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5668 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
5669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5670 break 2 | |
5671 fi | |
5672 done | |
5673 done | |
5674 IFS=$as_save_IFS | |
5675 | |
5676 fi | |
5677 fi | |
5678 OBJDUMP=$ac_cv_prog_OBJDUMP | |
5679 if test -n "$OBJDUMP"; then | |
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
5681 $as_echo "$OBJDUMP" >&6; } | |
5682 else | |
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5684 $as_echo "no" >&6; } | |
5685 fi | |
5686 | |
5687 | |
5688 fi | |
5689 if test -z "$ac_cv_prog_OBJDUMP"; then | |
5690 ac_ct_OBJDUMP=$OBJDUMP | |
5691 # Extract the first word of "objdump", so it can be a program name with args. | |
5692 set dummy objdump; ac_word=$2 | |
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5694 $as_echo_n "checking for $ac_word... " >&6; } | |
5695 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
5696 $as_echo_n "(cached) " >&6 | |
5697 else | |
5698 if test -n "$ac_ct_OBJDUMP"; then | |
5699 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5700 else | |
5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5702 for as_dir in $PATH | |
5703 do | |
5704 IFS=$as_save_IFS | |
5705 test -z "$as_dir" && as_dir=. | |
5706 for ac_exec_ext in '' $ac_executable_extensions; do | |
5707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5708 ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
5709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5710 break 2 | |
5711 fi | |
5712 done | |
5713 done | |
5714 IFS=$as_save_IFS | |
5715 | |
5716 fi | |
5717 fi | |
5718 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5719 if test -n "$ac_ct_OBJDUMP"; then | |
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
5721 $as_echo "$ac_ct_OBJDUMP" >&6; } | |
5722 else | |
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5724 $as_echo "no" >&6; } | |
5725 fi | |
5726 | |
5727 if test "x$ac_ct_OBJDUMP" = x; then | |
5728 OBJDUMP="false" | |
5729 else | |
5730 case $cross_compiling:$ac_tool_warned in | |
5731 yes:) | |
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5734 ac_tool_warned=yes ;; | |
5735 esac | |
5736 OBJDUMP=$ac_ct_OBJDUMP | |
5737 fi | |
5738 else | |
5739 OBJDUMP="$ac_cv_prog_OBJDUMP" | |
5740 fi | |
5741 | |
5742 ;; | |
5743 esac | |
5744 | |
5745 test -z "$AS" && AS=as | |
5746 | |
5747 | |
5748 | |
5749 | |
5750 | |
5751 test -z "$DLLTOOL" && DLLTOOL=dlltool | |
5752 | |
5753 | |
5754 | |
5755 | |
5756 | |
5757 test -z "$OBJDUMP" && OBJDUMP=objdump | |
5758 | |
5759 | |
5760 | |
5761 | |
5762 | |
5763 | |
5764 | |
5765 case `pwd` in | |
5766 *\ * | *\ *) | |
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5768 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5769 esac | |
5770 | |
5771 | |
5772 | |
5773 macro_version='2.4.2' | |
5774 macro_revision='1.3337' | |
5775 | |
5776 | |
5777 | |
5778 | |
5779 | |
5780 | |
5781 | |
5782 | |
5783 | |
5784 | |
5785 | |
5786 | |
5787 | |
5788 ltmain="$ac_aux_dir/ltmain.sh" | |
5789 | |
5790 # Backslashify metacharacters that are still active within | |
5791 # double-quoted strings. | |
5792 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
5793 | |
5794 # Same as above, but do not quote variable references. | |
5795 double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
5796 | |
5797 # Sed substitution to delay expansion of an escaped shell variable in a | |
5798 # double_quote_subst'ed string. | |
5799 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
5800 | |
5801 # Sed substitution to delay expansion of an escaped single quote. | |
5802 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
5803 | |
5804 # Sed substitution to avoid accidental globbing in evaled expressions | |
5805 no_glob_subst='s/\*/\\\*/g' | |
5806 | |
5807 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
5808 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5809 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
5810 | |
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
5812 $as_echo_n "checking how to print strings... " >&6; } | |
5813 # Test print first, because it will be a builtin if present. | |
5814 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
5815 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5816 ECHO='print -r --' | |
5817 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5818 ECHO='printf %s\n' | |
5819 else | |
5820 # Use this function as a fallback that always works. | |
5821 func_fallback_echo () | |
5822 { | |
5823 eval 'cat <<_LTECHO_EOF | |
5824 $1 | |
5825 _LTECHO_EOF' | |
5826 } | |
5827 ECHO='func_fallback_echo' | |
5828 fi | |
5829 | |
5830 # func_echo_all arg... | |
5831 # Invoke $ECHO with all args, space-separated. | |
5832 func_echo_all () | |
5833 { | |
5834 $ECHO "" | |
5835 } | |
5836 | |
5837 case "$ECHO" in | |
5838 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
5839 $as_echo "printf" >&6; } ;; | |
5840 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5841 $as_echo "print -r" >&6; } ;; | |
5842 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5843 $as_echo "cat" >&6; } ;; | |
5844 esac | |
5845 | |
5846 | |
5847 | |
5848 | |
5849 | |
5850 | |
5851 | |
5852 | |
5853 | |
5854 | |
5855 | |
5856 | |
5857 | |
5858 | |
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
5860 $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5861 if ${ac_cv_path_SED+:} false; then : | |
5862 $as_echo_n "(cached) " >&6 | |
5863 else | |
5864 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
5865 for ac_i in 1 2 3 4 5 6 7; do | |
5866 ac_script="$ac_script$as_nl$ac_script" | |
5867 done | |
5868 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5869 { ac_script=; unset ac_script;} | |
5870 if test -z "$SED"; then | |
5871 ac_path_SED_found=false | |
5872 # Loop through the user's path and test for each of PROGNAME-LIST | |
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_prog in sed gsed; do | |
5879 for ac_exec_ext in '' $ac_executable_extensions; do | |
5880 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
5881 as_fn_executable_p "$ac_path_SED" || continue | |
5882 # Check for GNU ac_path_SED and select it if it is found. | |
5883 # Check for GNU $ac_path_SED | |
5884 case `"$ac_path_SED" --version 2>&1` in | |
5885 *GNU*) | |
5886 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5887 *) | |
5888 ac_count=0 | |
5889 $as_echo_n 0123456789 >"conftest.in" | |
5890 while : | |
5891 do | |
5892 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5893 mv "conftest.tmp" "conftest.in" | |
5894 cp "conftest.in" "conftest.nl" | |
5895 $as_echo '' >> "conftest.nl" | |
5896 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5897 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5898 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5899 if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5900 # Best one so far, save it but keep looking for a better one | |
5901 ac_cv_path_SED="$ac_path_SED" | |
5902 ac_path_SED_max=$ac_count | |
5903 fi | |
5904 # 10*(2^10) chars as input seems more than enough | |
5905 test $ac_count -gt 10 && break | |
5906 done | |
5907 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5908 esac | |
5909 | |
5910 $ac_path_SED_found && break 3 | |
5911 done | |
5912 done | |
5913 done | |
5914 IFS=$as_save_IFS | |
5915 if test -z "$ac_cv_path_SED"; then | |
5916 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
5917 fi | |
5918 else | |
5919 ac_cv_path_SED=$SED | |
5920 fi | |
5921 | |
5922 fi | |
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5924 $as_echo "$ac_cv_path_SED" >&6; } | |
5925 SED="$ac_cv_path_SED" | |
5926 rm -f conftest.sed | |
5927 | |
5928 test -z "$SED" && SED=sed | |
5929 Xsed="$SED -e 1s/^X//" | |
5930 | |
5931 | |
5932 | |
5933 | |
5934 | |
5935 | |
5936 | |
5937 | |
5938 | |
5939 | |
5940 | |
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
5942 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5943 if ${ac_cv_path_GREP+:} false; then : | |
5944 $as_echo_n "(cached) " >&6 | |
5945 else | |
5946 if test -z "$GREP"; then | |
5947 ac_path_GREP_found=false | |
5948 # Loop through the user's path and test for each of PROGNAME-LIST | |
5949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5950 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5951 do | |
5952 IFS=$as_save_IFS | |
5953 test -z "$as_dir" && as_dir=. | |
5954 for ac_prog in grep ggrep; do | |
5955 for ac_exec_ext in '' $ac_executable_extensions; do | |
5956 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
5957 as_fn_executable_p "$ac_path_GREP" || continue | |
5958 # Check for GNU ac_path_GREP and select it if it is found. | |
5959 # Check for GNU $ac_path_GREP | |
5960 case `"$ac_path_GREP" --version 2>&1` in | |
5961 *GNU*) | |
5962 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5963 *) | |
5964 ac_count=0 | |
5965 $as_echo_n 0123456789 >"conftest.in" | |
5966 while : | |
5967 do | |
5968 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5969 mv "conftest.tmp" "conftest.in" | |
5970 cp "conftest.in" "conftest.nl" | |
5971 $as_echo 'GREP' >> "conftest.nl" | |
5972 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5973 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5974 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5975 if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5976 # Best one so far, save it but keep looking for a better one | |
5977 ac_cv_path_GREP="$ac_path_GREP" | |
5978 ac_path_GREP_max=$ac_count | |
5979 fi | |
5980 # 10*(2^10) chars as input seems more than enough | |
5981 test $ac_count -gt 10 && break | |
5982 done | |
5983 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5984 esac | |
5985 | |
5986 $ac_path_GREP_found && break 3 | |
5987 done | |
5988 done | |
5989 done | |
5990 IFS=$as_save_IFS | |
5991 if test -z "$ac_cv_path_GREP"; then | |
5992 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5993 fi | |
5994 else | |
5995 ac_cv_path_GREP=$GREP | |
5996 fi | |
5997 | |
5998 fi | |
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
6000 $as_echo "$ac_cv_path_GREP" >&6; } | |
6001 GREP="$ac_cv_path_GREP" | |
6002 | |
6003 | |
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
6005 $as_echo_n "checking for egrep... " >&6; } | |
6006 if ${ac_cv_path_EGREP+:} false; then : | |
6007 $as_echo_n "(cached) " >&6 | |
6008 else | |
6009 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
6010 then ac_cv_path_EGREP="$GREP -E" | |
6011 else | |
6012 if test -z "$EGREP"; then | |
6013 ac_path_EGREP_found=false | |
6014 # Loop through the user's path and test for each of PROGNAME-LIST | |
6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6016 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
6017 do | |
6018 IFS=$as_save_IFS | |
6019 test -z "$as_dir" && as_dir=. | |
6020 for ac_prog in egrep; do | |
6021 for ac_exec_ext in '' $ac_executable_extensions; do | |
6022 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
6023 as_fn_executable_p "$ac_path_EGREP" || continue | |
6024 # Check for GNU ac_path_EGREP and select it if it is found. | |
6025 # Check for GNU $ac_path_EGREP | |
6026 case `"$ac_path_EGREP" --version 2>&1` in | |
6027 *GNU*) | |
6028 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
6029 *) | |
6030 ac_count=0 | |
6031 $as_echo_n 0123456789 >"conftest.in" | |
6032 while : | |
6033 do | |
6034 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6035 mv "conftest.tmp" "conftest.in" | |
6036 cp "conftest.in" "conftest.nl" | |
6037 $as_echo 'EGREP' >> "conftest.nl" | |
6038 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6039 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6040 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6041 if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
6042 # Best one so far, save it but keep looking for a better one | |
6043 ac_cv_path_EGREP="$ac_path_EGREP" | |
6044 ac_path_EGREP_max=$ac_count | |
6045 fi | |
6046 # 10*(2^10) chars as input seems more than enough | |
6047 test $ac_count -gt 10 && break | |
6048 done | |
6049 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
6050 esac | |
6051 | |
6052 $ac_path_EGREP_found && break 3 | |
6053 done | |
6054 done | |
6055 done | |
6056 IFS=$as_save_IFS | |
6057 if test -z "$ac_cv_path_EGREP"; then | |
6058 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
6059 fi | |
6060 else | |
6061 ac_cv_path_EGREP=$EGREP | |
6062 fi | |
6063 | |
6064 fi | |
6065 fi | |
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
6067 $as_echo "$ac_cv_path_EGREP" >&6; } | |
6068 EGREP="$ac_cv_path_EGREP" | |
6069 | |
6070 | |
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
6072 $as_echo_n "checking for fgrep... " >&6; } | |
6073 if ${ac_cv_path_FGREP+:} false; then : | |
6074 $as_echo_n "(cached) " >&6 | |
6075 else | |
6076 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
6077 then ac_cv_path_FGREP="$GREP -F" | |
6078 else | |
6079 if test -z "$FGREP"; then | |
6080 ac_path_FGREP_found=false | |
6081 # Loop through the user's path and test for each of PROGNAME-LIST | |
6082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6083 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
6084 do | |
6085 IFS=$as_save_IFS | |
6086 test -z "$as_dir" && as_dir=. | |
6087 for ac_prog in fgrep; do | |
6088 for ac_exec_ext in '' $ac_executable_extensions; do | |
6089 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
6090 as_fn_executable_p "$ac_path_FGREP" || continue | |
6091 # Check for GNU ac_path_FGREP and select it if it is found. | |
6092 # Check for GNU $ac_path_FGREP | |
6093 case `"$ac_path_FGREP" --version 2>&1` in | |
6094 *GNU*) | |
6095 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
6096 *) | |
6097 ac_count=0 | |
6098 $as_echo_n 0123456789 >"conftest.in" | |
6099 while : | |
6100 do | |
6101 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6102 mv "conftest.tmp" "conftest.in" | |
6103 cp "conftest.in" "conftest.nl" | |
6104 $as_echo 'FGREP' >> "conftest.nl" | |
6105 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6106 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6107 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
6108 if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
6109 # Best one so far, save it but keep looking for a better one | |
6110 ac_cv_path_FGREP="$ac_path_FGREP" | |
6111 ac_path_FGREP_max=$ac_count | |
6112 fi | |
6113 # 10*(2^10) chars as input seems more than enough | |
6114 test $ac_count -gt 10 && break | |
6115 done | |
6116 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
6117 esac | |
6118 | |
6119 $ac_path_FGREP_found && break 3 | |
6120 done | |
6121 done | |
6122 done | |
6123 IFS=$as_save_IFS | |
6124 if test -z "$ac_cv_path_FGREP"; then | |
6125 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
6126 fi | |
6127 else | |
6128 ac_cv_path_FGREP=$FGREP | |
6129 fi | |
6130 | |
6131 fi | |
6132 fi | |
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
6134 $as_echo "$ac_cv_path_FGREP" >&6; } | |
6135 FGREP="$ac_cv_path_FGREP" | |
6136 | |
6137 | |
6138 test -z "$GREP" && GREP=grep | |
6139 | |
6140 | |
6141 | |
6142 | |
6143 | |
6144 | |
6145 | |
6146 | |
6147 | |
6148 | |
6149 | |
6150 | |
6151 | |
6152 | |
6153 | |
6154 | |
6155 | |
6156 | |
6157 | |
6158 # Check whether --with-gnu-ld was given. | |
6159 if test "${with_gnu_ld+set}" = set; then : | |
6160 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
6161 else | |
6162 with_gnu_ld=no | |
6163 fi | |
6164 | |
6165 ac_prog=ld | |
6166 if test "$GCC" = yes; then | |
6167 # Check if gcc -print-prog-name=ld gives a path. | |
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
6169 $as_echo_n "checking for ld used by $CC... " >&6; } | |
6170 case $host in | |
6171 *-*-mingw*) | |
6172 # gcc leaves a trailing carriage return which upsets mingw | |
6173 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
6174 *) | |
6175 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
6176 esac | |
6177 case $ac_prog in | |
6178 # Accept absolute paths. | |
6179 [\\/]* | ?:[\\/]*) | |
6180 re_direlt='/[^/][^/]*/\.\./' | |
6181 # Canonicalize the pathname of ld | |
6182 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
6183 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
6184 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
6185 done | |
6186 test -z "$LD" && LD="$ac_prog" | |
6187 ;; | |
6188 "") | |
6189 # If it fails, then pretend we aren't using GCC. | |
6190 ac_prog=ld | |
6191 ;; | |
6192 *) | |
6193 # If it is relative, then search for the first ld in PATH. | |
6194 with_gnu_ld=unknown | |
6195 ;; | |
6196 esac | |
6197 elif test "$with_gnu_ld" = yes; then | |
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
6199 $as_echo_n "checking for GNU ld... " >&6; } | |
6200 else | |
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
6202 $as_echo_n "checking for non-GNU ld... " >&6; } | |
6203 fi | |
6204 if ${lt_cv_path_LD+:} false; then : | |
6205 $as_echo_n "(cached) " >&6 | |
6206 else | |
6207 if test -z "$LD"; then | |
6208 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6209 for ac_dir in $PATH; do | |
6210 IFS="$lt_save_ifs" | |
6211 test -z "$ac_dir" && ac_dir=. | |
6212 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
6213 lt_cv_path_LD="$ac_dir/$ac_prog" | |
6214 # Check to see if the program is GNU ld. I'd rather use --version, | |
6215 # but apparently some variants of GNU ld only accept -v. | |
6216 # Break only if it was the GNU/non-GNU ld that we prefer. | |
6217 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
6218 *GNU* | *'with BFD'*) | |
6219 test "$with_gnu_ld" != no && break | |
6220 ;; | |
6221 *) | |
6222 test "$with_gnu_ld" != yes && break | |
6223 ;; | |
6224 esac | |
6225 fi | |
6226 done | |
6227 IFS="$lt_save_ifs" | |
6228 else | |
6229 lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
6230 fi | |
6231 fi | |
6232 | |
6233 LD="$lt_cv_path_LD" | |
6234 if test -n "$LD"; then | |
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
6236 $as_echo "$LD" >&6; } | |
6237 else | |
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6239 $as_echo "no" >&6; } | |
6240 fi | |
6241 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
6243 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
6244 if ${lt_cv_prog_gnu_ld+:} false; then : | |
6245 $as_echo_n "(cached) " >&6 | |
6246 else | |
6247 # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
6248 case `$LD -v 2>&1 </dev/null` in | |
6249 *GNU* | *'with BFD'*) | |
6250 lt_cv_prog_gnu_ld=yes | |
6251 ;; | |
6252 *) | |
6253 lt_cv_prog_gnu_ld=no | |
6254 ;; | |
6255 esac | |
6256 fi | |
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
6258 $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
6259 with_gnu_ld=$lt_cv_prog_gnu_ld | |
6260 | |
6261 | |
6262 | |
6263 | |
6264 | |
6265 | |
6266 | |
6267 | |
6268 | |
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
6270 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
6271 if ${lt_cv_path_NM+:} false; then : | |
6272 $as_echo_n "(cached) " >&6 | |
6273 else | |
6274 if test -n "$NM"; then | |
6275 # Let the user override the test. | |
6276 lt_cv_path_NM="$NM" | |
6277 else | |
6278 lt_nm_to_check="${ac_tool_prefix}nm" | |
6279 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
6280 lt_nm_to_check="$lt_nm_to_check nm" | |
6281 fi | |
6282 for lt_tmp_nm in $lt_nm_to_check; do | |
6283 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6284 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
6285 IFS="$lt_save_ifs" | |
6286 test -z "$ac_dir" && ac_dir=. | |
6287 tmp_nm="$ac_dir/$lt_tmp_nm" | |
6288 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
6289 # Check to see if the nm accepts a BSD-compat flag. | |
6290 # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
6291 # nm: unknown option "B" ignored | |
6292 # Tru64's nm complains that /dev/null is an invalid object file | |
6293 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
6294 */dev/null* | *'Invalid file or object type'*) | |
6295 lt_cv_path_NM="$tmp_nm -B" | |
6296 break | |
6297 ;; | |
6298 *) | |
6299 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
6300 */dev/null*) | |
6301 lt_cv_path_NM="$tmp_nm -p" | |
6302 break | |
6303 ;; | |
6304 *) | |
6305 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
6306 continue # so that we can try to find one that supports BSD flags | |
6307 ;; | |
6308 esac | |
6309 ;; | |
6310 esac | |
6311 fi | |
6312 done | |
6313 IFS="$lt_save_ifs" | |
6314 done | |
6315 : ${lt_cv_path_NM=no} | |
6316 fi | |
6317 fi | |
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
6319 $as_echo "$lt_cv_path_NM" >&6; } | |
6320 if test "$lt_cv_path_NM" != "no"; then | |
6321 NM="$lt_cv_path_NM" | |
6322 else | |
6323 # Didn't find any BSD compatible name lister, look for dumpbin. | |
6324 if test -n "$DUMPBIN"; then : | |
6325 # Let the user override the test. | |
6326 else | |
6327 if test -n "$ac_tool_prefix"; then | |
6328 for ac_prog in dumpbin "link -dump" | |
6329 do | |
6330 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6331 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6333 $as_echo_n "checking for $ac_word... " >&6; } | |
6334 if ${ac_cv_prog_DUMPBIN+:} false; then : | |
6335 $as_echo_n "(cached) " >&6 | |
6336 else | |
6337 if test -n "$DUMPBIN"; then | |
6338 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
6339 else | |
6340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6341 for as_dir in $PATH | |
6342 do | |
6343 IFS=$as_save_IFS | |
6344 test -z "$as_dir" && as_dir=. | |
6345 for ac_exec_ext in '' $ac_executable_extensions; do | |
6346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6347 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
6348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6349 break 2 | |
6350 fi | |
6351 done | |
6352 done | |
6353 IFS=$as_save_IFS | |
6354 | |
6355 fi | |
6356 fi | |
6357 DUMPBIN=$ac_cv_prog_DUMPBIN | |
6358 if test -n "$DUMPBIN"; then | |
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
6360 $as_echo "$DUMPBIN" >&6; } | |
6361 else | |
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6363 $as_echo "no" >&6; } | |
6364 fi | |
6365 | |
6366 | |
6367 test -n "$DUMPBIN" && break | |
6368 done | |
6369 fi | |
6370 if test -z "$DUMPBIN"; then | |
6371 ac_ct_DUMPBIN=$DUMPBIN | |
6372 for ac_prog in dumpbin "link -dump" | |
6373 do | |
6374 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6375 set dummy $ac_prog; ac_word=$2 | |
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6377 $as_echo_n "checking for $ac_word... " >&6; } | |
6378 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : | |
6379 $as_echo_n "(cached) " >&6 | |
6380 else | |
6381 if test -n "$ac_ct_DUMPBIN"; then | |
6382 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
6383 else | |
6384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6385 for as_dir in $PATH | |
6386 do | |
6387 IFS=$as_save_IFS | |
6388 test -z "$as_dir" && as_dir=. | |
6389 for ac_exec_ext in '' $ac_executable_extensions; do | |
6390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6391 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
6392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6393 break 2 | |
6394 fi | |
6395 done | |
6396 done | |
6397 IFS=$as_save_IFS | |
6398 | |
6399 fi | |
6400 fi | |
6401 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
6402 if test -n "$ac_ct_DUMPBIN"; then | |
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
6404 $as_echo "$ac_ct_DUMPBIN" >&6; } | |
6405 else | |
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6407 $as_echo "no" >&6; } | |
6408 fi | |
6409 | |
6410 | |
6411 test -n "$ac_ct_DUMPBIN" && break | |
6412 done | |
6413 | |
6414 if test "x$ac_ct_DUMPBIN" = x; then | |
6415 DUMPBIN=":" | |
6416 else | |
6417 case $cross_compiling:$ac_tool_warned in | |
6418 yes:) | |
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6421 ac_tool_warned=yes ;; | |
6422 esac | |
6423 DUMPBIN=$ac_ct_DUMPBIN | |
6424 fi | |
6425 fi | |
6426 | |
6427 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | |
6428 *COFF*) | |
6429 DUMPBIN="$DUMPBIN -symbols" | |
6430 ;; | |
6431 *) | |
6432 DUMPBIN=: | |
6433 ;; | |
6434 esac | |
6435 fi | |
6436 | |
6437 if test "$DUMPBIN" != ":"; then | |
6438 NM="$DUMPBIN" | |
6439 fi | |
6440 fi | |
6441 test -z "$NM" && NM=nm | |
6442 | |
6443 | |
6444 | |
6445 | |
6446 | |
6447 | |
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
6449 $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
6450 if ${lt_cv_nm_interface+:} false; then : | |
6451 $as_echo_n "(cached) " >&6 | |
6452 else | |
6453 lt_cv_nm_interface="BSD nm" | |
6454 echo "int some_variable = 0;" > conftest.$ac_ext | |
6455 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
6456 (eval "$ac_compile" 2>conftest.err) | |
6457 cat conftest.err >&5 | |
6458 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
6459 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
6460 cat conftest.err >&5 | |
6461 (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
6462 cat conftest.out >&5 | |
6463 if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
6464 lt_cv_nm_interface="MS dumpbin" | |
6465 fi | |
6466 rm -f conftest* | |
6467 fi | |
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
6469 $as_echo "$lt_cv_nm_interface" >&6; } | |
6470 | |
6471 # find the maximum length of command line arguments | |
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
6473 $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
6474 if ${lt_cv_sys_max_cmd_len+:} false; then : | |
6475 $as_echo_n "(cached) " >&6 | |
6476 else | |
6477 i=0 | |
6478 teststring="ABCD" | |
6479 | |
6480 case $build_os in | |
6481 msdosdjgpp*) | |
6482 # On DJGPP, this test can blow up pretty badly due to problems in libc | |
6483 # (any single argument exceeding 2000 bytes causes a buffer overrun | |
6484 # during glob expansion). Even if it were fixed, the result of this | |
6485 # check would be larger than it should be. | |
6486 lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
6487 ;; | |
6488 | |
6489 gnu*) | |
6490 # Under GNU Hurd, this test is not required because there is | |
6491 # no limit to the length of command line arguments. | |
6492 # Libtool will interpret -1 as no limit whatsoever | |
6493 lt_cv_sys_max_cmd_len=-1; | |
6494 ;; | |
6495 | |
6496 cygwin* | mingw* | cegcc*) | |
6497 # On Win9x/ME, this test blows up -- it succeeds, but takes | |
6498 # about 5 minutes as the teststring grows exponentially. | |
6499 # Worse, since 9x/ME are not pre-emptively multitasking, | |
6500 # you end up with a "frozen" computer, even though with patience | |
6501 # the test eventually succeeds (with a max line length of 256k). | |
6502 # Instead, let's just punt: use the minimum linelength reported by | |
6503 # all of the supported platforms: 8192 (on NT/2K/XP). | |
6504 lt_cv_sys_max_cmd_len=8192; | |
6505 ;; | |
6506 | |
6507 mint*) | |
6508 # On MiNT this can take a long time and run out of memory. | |
6509 lt_cv_sys_max_cmd_len=8192; | |
6510 ;; | |
6511 | |
6512 amigaos*) | |
6513 # On AmigaOS with pdksh, this test takes hours, literally. | |
6514 # So we just punt and use a minimum line length of 8192. | |
6515 lt_cv_sys_max_cmd_len=8192; | |
6516 ;; | |
6517 | |
6518 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
6519 # This has been around since 386BSD, at least. Likely further. | |
6520 if test -x /sbin/sysctl; then | |
6521 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
6522 elif test -x /usr/sbin/sysctl; then | |
6523 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
6524 else | |
6525 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
6526 fi | |
6527 # And add a safety zone | |
6528 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6529 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6530 ;; | |
6531 | |
6532 interix*) | |
6533 # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
6534 lt_cv_sys_max_cmd_len=196608 | |
6535 ;; | |
6536 | |
6537 os2*) | |
6538 # The test takes a long time on OS/2. | |
6539 lt_cv_sys_max_cmd_len=8192 | |
6540 ;; | |
6541 | |
6542 osf*) | |
6543 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
6544 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
6545 # nice to cause kernel panics so lets avoid the loop below. | |
6546 # First set a reasonable default. | |
6547 lt_cv_sys_max_cmd_len=16384 | |
6548 # | |
6549 if test -x /sbin/sysconfig; then | |
6550 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
6551 *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
6552 esac | |
6553 fi | |
6554 ;; | |
6555 sco3.2v5*) | |
6556 lt_cv_sys_max_cmd_len=102400 | |
6557 ;; | |
6558 sysv5* | sco5v6* | sysv4.2uw2*) | |
6559 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
6560 if test -n "$kargmax"; then | |
6561 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
6562 else | |
6563 lt_cv_sys_max_cmd_len=32768 | |
6564 fi | |
6565 ;; | |
6566 *) | |
6567 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
6568 if test -n "$lt_cv_sys_max_cmd_len" && \ | |
6569 test undefined != "$lt_cv_sys_max_cmd_len"; then | |
6570 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6571 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6572 else | |
6573 # Make teststring a little bigger before we do anything with it. | |
6574 # a 1K string should be a reasonable start. | |
6575 for i in 1 2 3 4 5 6 7 8 ; do | |
6576 teststring=$teststring$teststring | |
6577 done | |
6578 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
6579 # If test is not a shell built-in, we'll probably end up computing a | |
6580 # maximum length that is only half of the actual maximum length, but | |
6581 # we can't tell. | |
6582 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ | |
6583 = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
6584 test $i != 17 # 1/2 MB should be enough | |
6585 do | |
6586 i=`expr $i + 1` | |
6587 teststring=$teststring$teststring | |
6588 done | |
6589 # Only check the string length outside the loop. | |
6590 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
6591 teststring= | |
6592 # Add a significant safety factor because C++ compilers can tack on | |
6593 # massive amounts of additional arguments before passing them to the | |
6594 # linker. It appears as though 1/2 is a usable value. | |
6595 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
6596 fi | |
6597 ;; | |
6598 esac | |
6599 | |
6600 fi | |
6601 | |
6602 if test -n $lt_cv_sys_max_cmd_len ; then | |
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
6604 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
6605 else | |
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
6607 $as_echo "none" >&6; } | |
6608 fi | |
6609 max_cmd_len=$lt_cv_sys_max_cmd_len | |
6610 | |
6611 | |
6612 | |
6613 | |
6614 | |
6615 | |
6616 : ${CP="cp -f"} | |
6617 : ${MV="mv -f"} | |
6618 : ${RM="rm -f"} | |
6619 | |
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
6621 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
6622 # Try some XSI features | |
6623 xsi_shell=no | |
6624 ( _lt_dummy="a/b/c" | |
6625 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | |
6626 = c,a/b,b/c, \ | |
6627 && eval 'test $(( 1 + 1 )) -eq 2 \ | |
6628 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
6629 && xsi_shell=yes | |
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
6631 $as_echo "$xsi_shell" >&6; } | |
6632 | |
6633 | |
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
6635 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
6636 lt_shell_append=no | |
6637 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
6638 >/dev/null 2>&1 \ | |
6639 && lt_shell_append=yes | |
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
6641 $as_echo "$lt_shell_append" >&6; } | |
6642 | |
6643 | |
6644 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
6645 lt_unset=unset | |
6646 else | |
6647 lt_unset=false | |
6648 fi | |
6649 | |
6650 | |
6651 | |
6652 | |
6653 | |
6654 # test EBCDIC or ASCII | |
6655 case `echo X|tr X '\101'` in | |
6656 A) # ASCII based system | |
6657 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6658 lt_SP2NL='tr \040 \012' | |
6659 lt_NL2SP='tr \015\012 \040\040' | |
6660 ;; | |
6661 *) # EBCDIC based system | |
6662 lt_SP2NL='tr \100 \n' | |
6663 lt_NL2SP='tr \r\n \100\100' | |
6664 ;; | |
6665 esac | |
6666 | |
6667 | |
6668 | |
6669 | |
6670 | |
6671 | |
6672 | |
6673 | |
6674 | |
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | |
6676 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
6677 if ${lt_cv_to_host_file_cmd+:} false; then : | |
6678 $as_echo_n "(cached) " >&6 | |
6679 else | |
6680 case $host in | |
6681 *-*-mingw* ) | |
6682 case $build in | |
6683 *-*-mingw* ) # actually msys | |
6684 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
6685 ;; | |
6686 *-*-cygwin* ) | |
6687 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
6688 ;; | |
6689 * ) # otherwise, assume *nix | |
6690 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
6691 ;; | |
6692 esac | |
6693 ;; | |
6694 *-*-cygwin* ) | |
6695 case $build in | |
6696 *-*-mingw* ) # actually msys | |
6697 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
6698 ;; | |
6699 *-*-cygwin* ) | |
6700 lt_cv_to_host_file_cmd=func_convert_file_noop | |
6701 ;; | |
6702 * ) # otherwise, assume *nix | |
6703 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
6704 ;; | |
6705 esac | |
6706 ;; | |
6707 * ) # unhandled hosts (and "normal" native builds) | |
6708 lt_cv_to_host_file_cmd=func_convert_file_noop | |
6709 ;; | |
6710 esac | |
6711 | |
6712 fi | |
6713 | |
6714 to_host_file_cmd=$lt_cv_to_host_file_cmd | |
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
6716 $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
6717 | |
6718 | |
6719 | |
6720 | |
6721 | |
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
6723 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
6724 if ${lt_cv_to_tool_file_cmd+:} false; then : | |
6725 $as_echo_n "(cached) " >&6 | |
6726 else | |
6727 #assume ordinary cross tools, or native build. | |
6728 lt_cv_to_tool_file_cmd=func_convert_file_noop | |
6729 case $host in | |
6730 *-*-mingw* ) | |
6731 case $build in | |
6732 *-*-mingw* ) # actually msys | |
6733 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
6734 ;; | |
6735 esac | |
6736 ;; | |
6737 esac | |
6738 | |
6739 fi | |
6740 | |
6741 to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
6743 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
6744 | |
6745 | |
6746 | |
6747 | |
6748 | |
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
6750 $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
6751 if ${lt_cv_ld_reload_flag+:} false; then : | |
6752 $as_echo_n "(cached) " >&6 | |
6753 else | |
6754 lt_cv_ld_reload_flag='-r' | |
6755 fi | |
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
6757 $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
6758 reload_flag=$lt_cv_ld_reload_flag | |
6759 case $reload_flag in | |
6760 "" | " "*) ;; | |
6761 *) reload_flag=" $reload_flag" ;; | |
6762 esac | |
6763 reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6764 case $host_os in | |
6765 cygwin* | mingw* | pw32* | cegcc*) | |
6766 if test "$GCC" != yes; then | |
6767 reload_cmds=false | |
6768 fi | |
6769 ;; | |
6770 darwin*) | |
6771 if test "$GCC" = yes; then | |
6772 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
6773 else | |
6774 reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6775 fi | |
6776 ;; | |
6777 esac | |
6778 | |
6779 | |
6780 | |
6781 | |
6782 | |
6783 | |
6784 | |
6785 | |
6786 | |
6787 if test -n "$ac_tool_prefix"; then | |
6788 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
6789 set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6791 $as_echo_n "checking for $ac_word... " >&6; } | |
6792 if ${ac_cv_prog_OBJDUMP+:} false; then : | |
6793 $as_echo_n "(cached) " >&6 | |
6794 else | |
6795 if test -n "$OBJDUMP"; then | |
6796 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
6797 else | |
6798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6799 for as_dir in $PATH | |
6800 do | |
6801 IFS=$as_save_IFS | |
6802 test -z "$as_dir" && as_dir=. | |
6803 for ac_exec_ext in '' $ac_executable_extensions; do | |
6804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6805 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
6806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6807 break 2 | |
6808 fi | |
6809 done | |
6810 done | |
6811 IFS=$as_save_IFS | |
6812 | |
6813 fi | |
6814 fi | |
6815 OBJDUMP=$ac_cv_prog_OBJDUMP | |
6816 if test -n "$OBJDUMP"; then | |
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
6818 $as_echo "$OBJDUMP" >&6; } | |
6819 else | |
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6821 $as_echo "no" >&6; } | |
6822 fi | |
6823 | |
6824 | |
6825 fi | |
6826 if test -z "$ac_cv_prog_OBJDUMP"; then | |
6827 ac_ct_OBJDUMP=$OBJDUMP | |
6828 # Extract the first word of "objdump", so it can be a program name with args. | |
6829 set dummy objdump; ac_word=$2 | |
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6831 $as_echo_n "checking for $ac_word... " >&6; } | |
6832 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
6833 $as_echo_n "(cached) " >&6 | |
6834 else | |
6835 if test -n "$ac_ct_OBJDUMP"; then | |
6836 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
6837 else | |
6838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6839 for as_dir in $PATH | |
6840 do | |
6841 IFS=$as_save_IFS | |
6842 test -z "$as_dir" && as_dir=. | |
6843 for ac_exec_ext in '' $ac_executable_extensions; do | |
6844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6845 ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
6846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6847 break 2 | |
6848 fi | |
6849 done | |
6850 done | |
6851 IFS=$as_save_IFS | |
6852 | |
6853 fi | |
6854 fi | |
6855 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
6856 if test -n "$ac_ct_OBJDUMP"; then | |
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
6858 $as_echo "$ac_ct_OBJDUMP" >&6; } | |
6859 else | |
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6861 $as_echo "no" >&6; } | |
6862 fi | |
6863 | |
6864 if test "x$ac_ct_OBJDUMP" = x; then | |
6865 OBJDUMP="false" | |
6866 else | |
6867 case $cross_compiling:$ac_tool_warned in | |
6868 yes:) | |
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6871 ac_tool_warned=yes ;; | |
6872 esac | |
6873 OBJDUMP=$ac_ct_OBJDUMP | |
6874 fi | |
6875 else | |
6876 OBJDUMP="$ac_cv_prog_OBJDUMP" | |
6877 fi | |
6878 | |
6879 test -z "$OBJDUMP" && OBJDUMP=objdump | |
6880 | |
6881 | |
6882 | |
6883 | |
6884 | |
6885 | |
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | |
6887 $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
6888 if ${lt_cv_deplibs_check_method+:} false; then : | |
6889 $as_echo_n "(cached) " >&6 | |
6890 else | |
6891 lt_cv_file_magic_cmd='$MAGIC_CMD' | |
6892 lt_cv_file_magic_test_file= | |
6893 lt_cv_deplibs_check_method='unknown' | |
6894 # Need to set the preceding variable on all platforms that support | |
6895 # interlibrary dependencies. | |
6896 # 'none' -- dependencies not supported. | |
6897 # `unknown' -- same as none, but documents that we really don't know. | |
6898 # 'pass_all' -- all dependencies passed with no checks. | |
6899 # 'test_compile' -- check by making test program. | |
6900 # 'file_magic [[regex]]' -- check by looking for files in library path | |
6901 # which responds to the $file_magic_cmd with a given extended regex. | |
6902 # If you have `file' or equivalent on your system and you're not sure | |
6903 # whether `pass_all' will *always* work, you probably want this one. | |
6904 | |
6905 case $host_os in | |
6906 aix[4-9]*) | |
6907 lt_cv_deplibs_check_method=pass_all | |
6908 ;; | |
6909 | |
6910 beos*) | |
6911 lt_cv_deplibs_check_method=pass_all | |
6912 ;; | |
6913 | |
6914 bsdi[45]*) | |
6915 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6916 lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6917 lt_cv_file_magic_test_file=/shlib/libc.so | |
6918 ;; | |
6919 | |
6920 cygwin*) | |
6921 # func_win32_libid is a shell function defined in ltmain.sh | |
6922 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6923 lt_cv_file_magic_cmd='func_win32_libid' | |
6924 ;; | |
6925 | |
6926 mingw* | pw32*) | |
6927 # Base MSYS/MinGW do not provide the 'file' command needed by | |
6928 # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6929 # unless we find 'file', for example because we are cross-compiling. | |
6930 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
6931 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
6932 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6933 lt_cv_file_magic_cmd='func_win32_libid' | |
6934 else | |
6935 # Keep this pattern in sync with the one in func_win32_libid. | |
6936 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
6937 lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6938 fi | |
6939 ;; | |
6940 | |
6941 cegcc*) | |
6942 # use the weaker test based on 'objdump'. See mingw*. | |
6943 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6944 lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6945 ;; | |
6946 | |
6947 darwin* | rhapsody*) | |
6948 lt_cv_deplibs_check_method=pass_all | |
6949 ;; | |
6950 | |
6951 freebsd* | dragonfly*) | |
6952 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6953 case $host_cpu in | |
6954 i*86 ) | |
6955 # Not sure whether the presence of OpenBSD here was a mistake. | |
6956 # Let's accept both of them until this is cleared up. | |
6957 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6958 lt_cv_file_magic_cmd=/usr/bin/file | |
6959 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6960 ;; | |
6961 esac | |
6962 else | |
6963 lt_cv_deplibs_check_method=pass_all | |
6964 fi | |
6965 ;; | |
6966 | |
6967 haiku*) | |
6968 lt_cv_deplibs_check_method=pass_all | |
6969 ;; | |
6970 | |
6971 hpux10.20* | hpux11*) | |
6972 lt_cv_file_magic_cmd=/usr/bin/file | |
6973 case $host_cpu in | |
6974 ia64*) | |
6975 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6976 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6977 ;; | |
6978 hppa*64*) | |
6979 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]' | |
6980 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6981 ;; | |
6982 *) | |
6983 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
6984 lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6985 ;; | |
6986 esac | |
6987 ;; | |
6988 | |
6989 interix[3-9]*) | |
6990 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6991 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6992 ;; | |
6993 | |
6994 irix5* | irix6* | nonstopux*) | |
6995 case $LD in | |
6996 *-32|*"-32 ") libmagic=32-bit;; | |
6997 *-n32|*"-n32 ") libmagic=N32;; | |
6998 *-64|*"-64 ") libmagic=64-bit;; | |
6999 *) libmagic=never-match;; | |
7000 esac | |
7001 lt_cv_deplibs_check_method=pass_all | |
7002 ;; | |
7003 | |
7004 # This must be glibc/ELF. | |
7005 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
7006 lt_cv_deplibs_check_method=pass_all | |
7007 ;; | |
7008 | |
7009 netbsd* | netbsdelf*-gnu) | |
7010 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
7011 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
7012 else | |
7013 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
7014 fi | |
7015 ;; | |
7016 | |
7017 newos6*) | |
7018 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
7019 lt_cv_file_magic_cmd=/usr/bin/file | |
7020 lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
7021 ;; | |
7022 | |
7023 *nto* | *qnx*) | |
7024 lt_cv_deplibs_check_method=pass_all | |
7025 ;; | |
7026 | |
7027 openbsd*) | |
7028 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
7029 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
7030 else | |
7031 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
7032 fi | |
7033 ;; | |
7034 | |
7035 osf3* | osf4* | osf5*) | |
7036 lt_cv_deplibs_check_method=pass_all | |
7037 ;; | |
7038 | |
7039 rdos*) | |
7040 lt_cv_deplibs_check_method=pass_all | |
7041 ;; | |
7042 | |
7043 solaris*) | |
7044 lt_cv_deplibs_check_method=pass_all | |
7045 ;; | |
7046 | |
7047 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
7048 lt_cv_deplibs_check_method=pass_all | |
7049 ;; | |
7050 | |
7051 sysv4 | sysv4.3*) | |
7052 case $host_vendor in | |
7053 motorola) | |
7054 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]' | |
7055 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
7056 ;; | |
7057 ncr) | |
7058 lt_cv_deplibs_check_method=pass_all | |
7059 ;; | |
7060 sequent) | |
7061 lt_cv_file_magic_cmd='/bin/file' | |
7062 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
7063 ;; | |
7064 sni) | |
7065 lt_cv_file_magic_cmd='/bin/file' | |
7066 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
7067 lt_cv_file_magic_test_file=/lib/libc.so | |
7068 ;; | |
7069 siemens) | |
7070 lt_cv_deplibs_check_method=pass_all | |
7071 ;; | |
7072 pc) | |
7073 lt_cv_deplibs_check_method=pass_all | |
7074 ;; | |
7075 esac | |
7076 ;; | |
7077 | |
7078 tpf*) | |
7079 lt_cv_deplibs_check_method=pass_all | |
7080 ;; | |
7081 esac | |
7082 | |
7083 fi | |
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
7085 $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
7086 | |
7087 file_magic_glob= | |
7088 want_nocaseglob=no | |
7089 if test "$build" = "$host"; then | |
7090 case $host_os in | |
7091 mingw* | pw32*) | |
7092 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
7093 want_nocaseglob=yes | |
7094 else | |
7095 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
7096 fi | |
7097 ;; | |
7098 esac | |
7099 fi | |
7100 | |
7101 file_magic_cmd=$lt_cv_file_magic_cmd | |
7102 deplibs_check_method=$lt_cv_deplibs_check_method | |
7103 test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
7104 | |
7105 | |
7106 | |
7107 | |
7108 | |
7109 | |
7110 | |
7111 | |
7112 | |
7113 | |
7114 | |
7115 | |
7116 | |
7117 | |
7118 | |
7119 | |
7120 | |
7121 | |
7122 | |
7123 | |
7124 | |
7125 | |
7126 if test -n "$ac_tool_prefix"; then | |
7127 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
7128 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7130 $as_echo_n "checking for $ac_word... " >&6; } | |
7131 if ${ac_cv_prog_DLLTOOL+:} false; then : | |
7132 $as_echo_n "(cached) " >&6 | |
7133 else | |
7134 if test -n "$DLLTOOL"; then | |
7135 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
7136 else | |
7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7138 for as_dir in $PATH | |
7139 do | |
7140 IFS=$as_save_IFS | |
7141 test -z "$as_dir" && as_dir=. | |
7142 for ac_exec_ext in '' $ac_executable_extensions; do | |
7143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7144 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
7145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7146 break 2 | |
7147 fi | |
7148 done | |
7149 done | |
7150 IFS=$as_save_IFS | |
7151 | |
7152 fi | |
7153 fi | |
7154 DLLTOOL=$ac_cv_prog_DLLTOOL | |
7155 if test -n "$DLLTOOL"; then | |
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
7157 $as_echo "$DLLTOOL" >&6; } | |
7158 else | |
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7160 $as_echo "no" >&6; } | |
7161 fi | |
7162 | |
7163 | |
7164 fi | |
7165 if test -z "$ac_cv_prog_DLLTOOL"; then | |
7166 ac_ct_DLLTOOL=$DLLTOOL | |
7167 # Extract the first word of "dlltool", so it can be a program name with args. | |
7168 set dummy dlltool; ac_word=$2 | |
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7170 $as_echo_n "checking for $ac_word... " >&6; } | |
7171 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
7172 $as_echo_n "(cached) " >&6 | |
7173 else | |
7174 if test -n "$ac_ct_DLLTOOL"; then | |
7175 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
7176 else | |
7177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7178 for as_dir in $PATH | |
7179 do | |
7180 IFS=$as_save_IFS | |
7181 test -z "$as_dir" && as_dir=. | |
7182 for ac_exec_ext in '' $ac_executable_extensions; do | |
7183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7184 ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
7185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7186 break 2 | |
7187 fi | |
7188 done | |
7189 done | |
7190 IFS=$as_save_IFS | |
7191 | |
7192 fi | |
7193 fi | |
7194 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
7195 if test -n "$ac_ct_DLLTOOL"; then | |
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
7197 $as_echo "$ac_ct_DLLTOOL" >&6; } | |
7198 else | |
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7200 $as_echo "no" >&6; } | |
7201 fi | |
7202 | |
7203 if test "x$ac_ct_DLLTOOL" = x; then | |
7204 DLLTOOL="false" | |
7205 else | |
7206 case $cross_compiling:$ac_tool_warned in | |
7207 yes:) | |
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7210 ac_tool_warned=yes ;; | |
7211 esac | |
7212 DLLTOOL=$ac_ct_DLLTOOL | |
7213 fi | |
7214 else | |
7215 DLLTOOL="$ac_cv_prog_DLLTOOL" | |
7216 fi | |
7217 | |
7218 test -z "$DLLTOOL" && DLLTOOL=dlltool | |
7219 | |
7220 | |
7221 | |
7222 | |
7223 | |
7224 | |
7225 | |
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | |
7227 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
7228 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
7229 $as_echo_n "(cached) " >&6 | |
7230 else | |
7231 lt_cv_sharedlib_from_linklib_cmd='unknown' | |
7232 | |
7233 case $host_os in | |
7234 cygwin* | mingw* | pw32* | cegcc*) | |
7235 # two different shell functions defined in ltmain.sh | |
7236 # decide which to use based on capabilities of $DLLTOOL | |
7237 case `$DLLTOOL --help 2>&1` in | |
7238 *--identify-strict*) | |
7239 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
7240 ;; | |
7241 *) | |
7242 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
7243 ;; | |
7244 esac | |
7245 ;; | |
7246 *) | |
7247 # fallback: assume linklib IS sharedlib | |
7248 lt_cv_sharedlib_from_linklib_cmd="$ECHO" | |
7249 ;; | |
7250 esac | |
7251 | |
7252 fi | |
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | |
7254 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
7255 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
7256 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
7257 | |
7258 | |
7259 | |
7260 | |
7261 | |
7262 | |
7263 | |
7264 if test -n "$ac_tool_prefix"; then | |
7265 for ac_prog in ar | |
7266 do | |
7267 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
7268 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7270 $as_echo_n "checking for $ac_word... " >&6; } | |
7271 if ${ac_cv_prog_AR+:} false; then : | |
7272 $as_echo_n "(cached) " >&6 | |
7273 else | |
7274 if test -n "$AR"; then | |
7275 ac_cv_prog_AR="$AR" # Let the user override the test. | |
7276 else | |
7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7278 for as_dir in $PATH | |
7279 do | |
7280 IFS=$as_save_IFS | |
7281 test -z "$as_dir" && as_dir=. | |
7282 for ac_exec_ext in '' $ac_executable_extensions; do | |
7283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7284 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
7285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7286 break 2 | |
7287 fi | |
7288 done | |
7289 done | |
7290 IFS=$as_save_IFS | |
7291 | |
7292 fi | |
7293 fi | |
7294 AR=$ac_cv_prog_AR | |
7295 if test -n "$AR"; then | |
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
7297 $as_echo "$AR" >&6; } | |
7298 else | |
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7300 $as_echo "no" >&6; } | |
7301 fi | |
7302 | |
7303 | |
7304 test -n "$AR" && break | |
7305 done | |
7306 fi | |
7307 if test -z "$AR"; then | |
7308 ac_ct_AR=$AR | |
7309 for ac_prog in ar | |
7310 do | |
7311 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7312 set dummy $ac_prog; ac_word=$2 | |
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7314 $as_echo_n "checking for $ac_word... " >&6; } | |
7315 if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
7316 $as_echo_n "(cached) " >&6 | |
7317 else | |
7318 if test -n "$ac_ct_AR"; then | |
7319 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
7320 else | |
7321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7322 for as_dir in $PATH | |
7323 do | |
7324 IFS=$as_save_IFS | |
7325 test -z "$as_dir" && as_dir=. | |
7326 for ac_exec_ext in '' $ac_executable_extensions; do | |
7327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7328 ac_cv_prog_ac_ct_AR="$ac_prog" | |
7329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7330 break 2 | |
7331 fi | |
7332 done | |
7333 done | |
7334 IFS=$as_save_IFS | |
7335 | |
7336 fi | |
7337 fi | |
7338 ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
7339 if test -n "$ac_ct_AR"; then | |
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
7341 $as_echo "$ac_ct_AR" >&6; } | |
7342 else | |
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7344 $as_echo "no" >&6; } | |
7345 fi | |
7346 | |
7347 | |
7348 test -n "$ac_ct_AR" && break | |
7349 done | |
7350 | |
7351 if test "x$ac_ct_AR" = x; then | |
7352 AR="false" | |
7353 else | |
7354 case $cross_compiling:$ac_tool_warned in | |
7355 yes:) | |
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7358 ac_tool_warned=yes ;; | |
7359 esac | |
7360 AR=$ac_ct_AR | |
7361 fi | |
7362 fi | |
7363 | |
7364 : ${AR=ar} | |
7365 : ${AR_FLAGS=cru} | |
7366 | |
7367 | |
7368 | |
7369 | |
7370 | |
7371 | |
7372 | |
7373 | |
7374 | |
7375 | |
7376 | |
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
7378 $as_echo_n "checking for archiver @FILE support... " >&6; } | |
7379 if ${lt_cv_ar_at_file+:} false; then : | |
7380 $as_echo_n "(cached) " >&6 | |
7381 else | |
7382 lt_cv_ar_at_file=no | |
7383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7384 /* end confdefs.h. */ | |
7385 | |
7386 int | |
7387 main () | |
7388 { | |
7389 | |
7390 ; | |
7391 return 0; | |
7392 } | |
7393 _ACEOF | |
7394 if ac_fn_c_try_compile "$LINENO"; then : | |
7395 echo conftest.$ac_objext > conftest.lst | |
7396 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
7397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
7398 (eval $lt_ar_try) 2>&5 | |
7399 ac_status=$? | |
7400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7401 test $ac_status = 0; } | |
7402 if test "$ac_status" -eq 0; then | |
7403 # Ensure the archiver fails upon bogus file names. | |
7404 rm -f conftest.$ac_objext libconftest.a | |
7405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
7406 (eval $lt_ar_try) 2>&5 | |
7407 ac_status=$? | |
7408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7409 test $ac_status = 0; } | |
7410 if test "$ac_status" -ne 0; then | |
7411 lt_cv_ar_at_file=@ | |
7412 fi | |
7413 fi | |
7414 rm -f conftest.* libconftest.a | |
7415 | |
7416 fi | |
7417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7418 | |
7419 fi | |
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
7421 $as_echo "$lt_cv_ar_at_file" >&6; } | |
7422 | |
7423 if test "x$lt_cv_ar_at_file" = xno; then | |
7424 archiver_list_spec= | |
7425 else | |
7426 archiver_list_spec=$lt_cv_ar_at_file | |
7427 fi | |
7428 | |
7429 | |
7430 | |
7431 | |
7432 | |
7433 | |
7434 | |
7435 if test -n "$ac_tool_prefix"; then | |
7436 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
7437 set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7439 $as_echo_n "checking for $ac_word... " >&6; } | |
7440 if ${ac_cv_prog_STRIP+:} false; then : | |
7441 $as_echo_n "(cached) " >&6 | |
7442 else | |
7443 if test -n "$STRIP"; then | |
7444 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
7445 else | |
7446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7447 for as_dir in $PATH | |
7448 do | |
7449 IFS=$as_save_IFS | |
7450 test -z "$as_dir" && as_dir=. | |
7451 for ac_exec_ext in '' $ac_executable_extensions; do | |
7452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7453 ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
7454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7455 break 2 | |
7456 fi | |
7457 done | |
7458 done | |
7459 IFS=$as_save_IFS | |
7460 | |
7461 fi | |
7462 fi | |
7463 STRIP=$ac_cv_prog_STRIP | |
7464 if test -n "$STRIP"; then | |
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
7466 $as_echo "$STRIP" >&6; } | |
7467 else | |
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7469 $as_echo "no" >&6; } | |
7470 fi | |
7471 | |
7472 | |
7473 fi | |
7474 if test -z "$ac_cv_prog_STRIP"; then | |
7475 ac_ct_STRIP=$STRIP | |
7476 # Extract the first word of "strip", so it can be a program name with args. | |
7477 set dummy strip; ac_word=$2 | |
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7479 $as_echo_n "checking for $ac_word... " >&6; } | |
7480 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
7481 $as_echo_n "(cached) " >&6 | |
7482 else | |
7483 if test -n "$ac_ct_STRIP"; then | |
7484 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
7485 else | |
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7487 for as_dir in $PATH | |
7488 do | |
7489 IFS=$as_save_IFS | |
7490 test -z "$as_dir" && as_dir=. | |
7491 for ac_exec_ext in '' $ac_executable_extensions; do | |
7492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7493 ac_cv_prog_ac_ct_STRIP="strip" | |
7494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7495 break 2 | |
7496 fi | |
7497 done | |
7498 done | |
7499 IFS=$as_save_IFS | |
7500 | |
7501 fi | |
7502 fi | |
7503 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
7504 if test -n "$ac_ct_STRIP"; then | |
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
7506 $as_echo "$ac_ct_STRIP" >&6; } | |
7507 else | |
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7509 $as_echo "no" >&6; } | |
7510 fi | |
7511 | |
7512 if test "x$ac_ct_STRIP" = x; then | |
7513 STRIP=":" | |
7514 else | |
7515 case $cross_compiling:$ac_tool_warned in | |
7516 yes:) | |
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7519 ac_tool_warned=yes ;; | |
7520 esac | |
7521 STRIP=$ac_ct_STRIP | |
7522 fi | |
7523 else | |
7524 STRIP="$ac_cv_prog_STRIP" | |
7525 fi | |
7526 | |
7527 test -z "$STRIP" && STRIP=: | |
7528 | |
7529 | |
7530 | |
7531 | |
7532 | |
7533 | |
7534 if test -n "$ac_tool_prefix"; then | |
7535 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
7536 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7538 $as_echo_n "checking for $ac_word... " >&6; } | |
7539 if ${ac_cv_prog_RANLIB+:} false; then : | |
7540 $as_echo_n "(cached) " >&6 | |
7541 else | |
7542 if test -n "$RANLIB"; then | |
7543 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
7544 else | |
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7546 for as_dir in $PATH | |
7547 do | |
7548 IFS=$as_save_IFS | |
7549 test -z "$as_dir" && as_dir=. | |
7550 for ac_exec_ext in '' $ac_executable_extensions; do | |
7551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7552 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
7553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7554 break 2 | |
7555 fi | |
7556 done | |
7557 done | |
7558 IFS=$as_save_IFS | |
7559 | |
7560 fi | |
7561 fi | |
7562 RANLIB=$ac_cv_prog_RANLIB | |
7563 if test -n "$RANLIB"; then | |
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
7565 $as_echo "$RANLIB" >&6; } | |
7566 else | |
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7568 $as_echo "no" >&6; } | |
7569 fi | |
7570 | |
7571 | |
7572 fi | |
7573 if test -z "$ac_cv_prog_RANLIB"; then | |
7574 ac_ct_RANLIB=$RANLIB | |
7575 # Extract the first word of "ranlib", so it can be a program name with args. | |
7576 set dummy ranlib; ac_word=$2 | |
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7578 $as_echo_n "checking for $ac_word... " >&6; } | |
7579 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
7580 $as_echo_n "(cached) " >&6 | |
7581 else | |
7582 if test -n "$ac_ct_RANLIB"; then | |
7583 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
7584 else | |
7585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7586 for as_dir in $PATH | |
7587 do | |
7588 IFS=$as_save_IFS | |
7589 test -z "$as_dir" && as_dir=. | |
7590 for ac_exec_ext in '' $ac_executable_extensions; do | |
7591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7592 ac_cv_prog_ac_ct_RANLIB="ranlib" | |
7593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7594 break 2 | |
7595 fi | |
7596 done | |
7597 done | |
7598 IFS=$as_save_IFS | |
7599 | |
7600 fi | |
7601 fi | |
7602 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
7603 if test -n "$ac_ct_RANLIB"; then | |
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
7605 $as_echo "$ac_ct_RANLIB" >&6; } | |
7606 else | |
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7608 $as_echo "no" >&6; } | |
7609 fi | |
7610 | |
7611 if test "x$ac_ct_RANLIB" = x; then | |
7612 RANLIB=":" | |
7613 else | |
7614 case $cross_compiling:$ac_tool_warned in | |
7615 yes:) | |
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7618 ac_tool_warned=yes ;; | |
7619 esac | |
7620 RANLIB=$ac_ct_RANLIB | |
7621 fi | |
7622 else | |
7623 RANLIB="$ac_cv_prog_RANLIB" | |
7624 fi | |
7625 | |
7626 test -z "$RANLIB" && RANLIB=: | |
7627 | |
7628 | |
7629 | |
7630 | |
7631 | |
7632 | |
7633 # Determine commands to create old-style static archives. | |
7634 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
7635 old_postinstall_cmds='chmod 644 $oldlib' | |
7636 old_postuninstall_cmds= | |
7637 | |
7638 if test -n "$RANLIB"; then | |
7639 case $host_os in | |
7640 openbsd*) | |
7641 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" | |
7642 ;; | |
7643 *) | |
7644 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | |
7645 ;; | |
7646 esac | |
7647 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" | |
7648 fi | |
7649 | |
7650 case $host_os in | |
7651 darwin*) | |
7652 lock_old_archive_extraction=yes ;; | |
7653 *) | |
7654 lock_old_archive_extraction=no ;; | |
7655 esac | |
7656 | |
7657 | |
7658 | |
7659 | |
7660 | |
7661 | |
7662 | |
7663 | |
7664 | |
7665 | |
7666 | |
7667 | |
7668 | |
7669 | |
7670 | |
7671 | |
7672 | |
7673 | |
7674 | |
7675 | |
7676 | |
7677 | |
7678 | |
7679 | |
7680 | |
7681 | |
7682 | |
7683 | |
7684 | |
7685 | |
7686 | |
7687 | |
7688 | |
7689 | |
7690 | |
7691 | |
7692 | |
7693 | |
7694 | |
7695 # If no C compiler was specified, use CC. | |
7696 LTCC=${LTCC-"$CC"} | |
7697 | |
7698 # If no C compiler flags were specified, use CFLAGS. | |
7699 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7700 | |
7701 # Allow CC to be a program name with arguments. | |
7702 compiler=$CC | |
7703 | |
7704 | |
7705 # Check for command to grab the raw symbol name followed by C symbol from nm. | |
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
7707 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
7708 if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
7709 $as_echo_n "(cached) " >&6 | |
7710 else | |
7711 | |
7712 # These are sane defaults that work on at least a few old systems. | |
7713 # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
7714 | |
7715 # Character class describing NM global symbol codes. | |
7716 symcode='[BCDEGRST]' | |
7717 | |
7718 # Regexp to match symbols that can be accessed directly from C. | |
7719 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
7720 | |
7721 # Define system-specific variables. | |
7722 case $host_os in | |
7723 aix*) | |
7724 symcode='[BCDT]' | |
7725 ;; | |
7726 cygwin* | mingw* | pw32* | cegcc*) | |
7727 symcode='[ABCDGISTW]' | |
7728 ;; | |
7729 hpux*) | |
7730 if test "$host_cpu" = ia64; then | |
7731 symcode='[ABCDEGRST]' | |
7732 fi | |
7733 ;; | |
7734 irix* | nonstopux*) | |
7735 symcode='[BCDEGRST]' | |
7736 ;; | |
7737 osf*) | |
7738 symcode='[BCDEGQRST]' | |
7739 ;; | |
7740 solaris*) | |
7741 symcode='[BDRT]' | |
7742 ;; | |
7743 sco3.2v5*) | |
7744 symcode='[DT]' | |
7745 ;; | |
7746 sysv4.2uw2*) | |
7747 symcode='[DT]' | |
7748 ;; | |
7749 sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7750 symcode='[ABDT]' | |
7751 ;; | |
7752 sysv4) | |
7753 symcode='[DFNSTU]' | |
7754 ;; | |
7755 esac | |
7756 | |
7757 # If we're using GNU nm, then use its standard symbol codes. | |
7758 case `$NM -V 2>&1` in | |
7759 *GNU* | *'with BFD'*) | |
7760 symcode='[ABCDGIRSTW]' ;; | |
7761 esac | |
7762 | |
7763 # Transform an extracted symbol line into a proper C declaration. | |
7764 # Some systems (esp. on ia64) link data and code symbols differently, | |
7765 # so use this general approach. | |
7766 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
7767 | |
7768 # Transform an extracted symbol line into symbol name and symbol address | |
7769 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
7770 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'" | |
7771 | |
7772 # Handle CRLF in mingw tool chain | |
7773 opt_cr= | |
7774 case $build_os in | |
7775 mingw*) | |
7776 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7777 ;; | |
7778 esac | |
7779 | |
7780 # Try without a prefix underscore, then with it. | |
7781 for ac_symprfx in "" "_"; do | |
7782 | |
7783 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
7784 symxfrm="\\1 $ac_symprfx\\2 \\2" | |
7785 | |
7786 # Write the raw and C identifiers. | |
7787 if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7788 # Fake it for dumpbin and say T for any non-static function | |
7789 # and D for any global variable. | |
7790 # Also find C++ and __fastcall symbols from MSVC++, | |
7791 # which start with @ or ?. | |
7792 lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7793 " {last_section=section; section=\$ 3};"\ | |
7794 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | |
7795 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
7796 " \$ 0!~/External *\|/{next};"\ | |
7797 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7798 " {if(hide[section]) next};"\ | |
7799 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
7800 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
7801 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
7802 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
7803 " ' prfx=^$ac_symprfx" | |
7804 else | |
7805 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7806 fi | |
7807 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | |
7808 | |
7809 # Check to see that the pipe works correctly. | |
7810 pipe_works=no | |
7811 | |
7812 rm -f conftest* | |
7813 cat > conftest.$ac_ext <<_LT_EOF | |
7814 #ifdef __cplusplus | |
7815 extern "C" { | |
7816 #endif | |
7817 char nm_test_var; | |
7818 void nm_test_func(void); | |
7819 void nm_test_func(void){} | |
7820 #ifdef __cplusplus | |
7821 } | |
7822 #endif | |
7823 int main(){nm_test_var='a';nm_test_func();return(0);} | |
7824 _LT_EOF | |
7825 | |
7826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7827 (eval $ac_compile) 2>&5 | |
7828 ac_status=$? | |
7829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7830 test $ac_status = 0; }; then | |
7831 # Now try to grab the symbols. | |
7832 nlist=conftest.nm | |
7833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
7834 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
7835 ac_status=$? | |
7836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7837 test $ac_status = 0; } && test -s "$nlist"; then | |
7838 # Try sorting and uniquifying the output. | |
7839 if sort "$nlist" | uniq > "$nlist"T; then | |
7840 mv -f "$nlist"T "$nlist" | |
7841 else | |
7842 rm -f "$nlist"T | |
7843 fi | |
7844 | |
7845 # Make sure that we snagged all the symbols we need. | |
7846 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
7847 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7848 cat <<_LT_EOF > conftest.$ac_ext | |
7849 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | |
7850 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | |
7851 /* DATA imports from DLLs on WIN32 con't be const, because runtime | |
7852 relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
7853 # define LT_DLSYM_CONST | |
7854 #elif defined(__osf__) | |
7855 /* This system does not cope well with relocations in const data. */ | |
7856 # define LT_DLSYM_CONST | |
7857 #else | |
7858 # define LT_DLSYM_CONST const | |
7859 #endif | |
7860 | |
7861 #ifdef __cplusplus | |
7862 extern "C" { | |
7863 #endif | |
7864 | |
7865 _LT_EOF | |
7866 # Now generate the symbol file. | |
7867 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
7868 | |
7869 cat <<_LT_EOF >> conftest.$ac_ext | |
7870 | |
7871 /* The mapping between symbol names and symbols. */ | |
7872 LT_DLSYM_CONST struct { | |
7873 const char *name; | |
7874 void *address; | |
7875 } | |
7876 lt__PROGRAM__LTX_preloaded_symbols[] = | |
7877 { | |
7878 { "@PROGRAM@", (void *) 0 }, | |
7879 _LT_EOF | |
7880 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7881 cat <<\_LT_EOF >> conftest.$ac_ext | |
7882 {0, (void *) 0} | |
7883 }; | |
7884 | |
7885 /* This works around a problem in FreeBSD linker */ | |
7886 #ifdef FREEBSD_WORKAROUND | |
7887 static const void *lt_preloaded_setup() { | |
7888 return lt__PROGRAM__LTX_preloaded_symbols; | |
7889 } | |
7890 #endif | |
7891 | |
7892 #ifdef __cplusplus | |
7893 } | |
7894 #endif | |
7895 _LT_EOF | |
7896 # Now try linking the two files. | |
7897 mv conftest.$ac_objext conftstm.$ac_objext | |
7898 lt_globsym_save_LIBS=$LIBS | |
7899 lt_globsym_save_CFLAGS=$CFLAGS | |
7900 LIBS="conftstm.$ac_objext" | |
7901 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
7902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
7903 (eval $ac_link) 2>&5 | |
7904 ac_status=$? | |
7905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7906 test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7907 pipe_works=yes | |
7908 fi | |
7909 LIBS=$lt_globsym_save_LIBS | |
7910 CFLAGS=$lt_globsym_save_CFLAGS | |
7911 else | |
7912 echo "cannot find nm_test_func in $nlist" >&5 | |
7913 fi | |
7914 else | |
7915 echo "cannot find nm_test_var in $nlist" >&5 | |
7916 fi | |
7917 else | |
7918 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7919 fi | |
7920 else | |
7921 echo "$progname: failed program was:" >&5 | |
7922 cat conftest.$ac_ext >&5 | |
7923 fi | |
7924 rm -rf conftest* conftst* | |
7925 | |
7926 # Do not use the global_symbol_pipe unless it works. | |
7927 if test "$pipe_works" = yes; then | |
7928 break | |
7929 else | |
7930 lt_cv_sys_global_symbol_pipe= | |
7931 fi | |
7932 done | |
7933 | |
7934 fi | |
7935 | |
7936 if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
7937 lt_cv_sys_global_symbol_to_cdecl= | |
7938 fi | |
7939 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
7941 $as_echo "failed" >&6; } | |
7942 else | |
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
7944 $as_echo "ok" >&6; } | |
7945 fi | |
7946 | |
7947 # Response file support. | |
7948 if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7949 nm_file_list_spec='@' | |
7950 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
7951 nm_file_list_spec='@' | |
7952 fi | |
7953 | |
7954 | |
7955 | |
7956 | |
7957 | |
7958 | |
7959 | |
7960 | |
7961 | |
7962 | |
7963 | |
7964 | |
7965 | |
7966 | |
7967 | |
7968 | |
7969 | |
7970 | |
7971 | |
7972 | |
7973 | |
7974 | |
7975 | |
7976 | |
7977 | |
7978 | |
7979 | |
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | |
7981 $as_echo_n "checking for sysroot... " >&6; } | |
7982 | |
7983 # Check whether --with-sysroot was given. | |
7984 if test "${with_sysroot+set}" = set; then : | |
7985 withval=$with_sysroot; | |
7986 else | |
7987 with_sysroot=no | |
7988 fi | |
7989 | |
7990 | |
7991 lt_sysroot= | |
7992 case ${with_sysroot} in #( | |
7993 yes) | |
7994 if test "$GCC" = yes; then | |
7995 lt_sysroot=`$CC --print-sysroot 2>/dev/null` | |
7996 fi | |
7997 ;; #( | |
7998 /*) | |
7999 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
8000 ;; #( | |
8001 no|'') | |
8002 ;; #( | |
8003 *) | |
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 | |
8005 $as_echo "${with_sysroot}" >&6; } | |
8006 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | |
8007 ;; | |
8008 esac | |
8009 | |
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | |
8011 $as_echo "${lt_sysroot:-no}" >&6; } | |
8012 | |
8013 | |
8014 | |
8015 | |
8016 | |
8017 # Check whether --enable-libtool-lock was given. | |
8018 if test "${enable_libtool_lock+set}" = set; then : | |
8019 enableval=$enable_libtool_lock; | |
8020 fi | |
8021 | |
8022 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
8023 | |
8024 # Some flags need to be propagated to the compiler or linker for good | |
8025 # libtool support. | |
8026 case $host in | |
8027 ia64-*-hpux*) | |
8028 # Find out which ABI we are using. | |
8029 echo 'int i;' > conftest.$ac_ext | |
8030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
8031 (eval $ac_compile) 2>&5 | |
8032 ac_status=$? | |
8033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8034 test $ac_status = 0; }; then | |
8035 case `/usr/bin/file conftest.$ac_objext` in | |
8036 *ELF-32*) | |
8037 HPUX_IA64_MODE="32" | |
8038 ;; | |
8039 *ELF-64*) | |
8040 HPUX_IA64_MODE="64" | |
8041 ;; | |
8042 esac | |
8043 fi | |
8044 rm -rf conftest* | |
8045 ;; | |
8046 *-*-irix6*) | |
8047 # Find out which ABI we are using. | |
8048 echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
8049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
8050 (eval $ac_compile) 2>&5 | |
8051 ac_status=$? | |
8052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8053 test $ac_status = 0; }; then | |
8054 if test "$lt_cv_prog_gnu_ld" = yes; then | |
8055 case `/usr/bin/file conftest.$ac_objext` in | |
8056 *32-bit*) | |
8057 LD="${LD-ld} -melf32bsmip" | |
8058 ;; | |
8059 *N32*) | |
8060 LD="${LD-ld} -melf32bmipn32" | |
8061 ;; | |
8062 *64-bit*) | |
8063 LD="${LD-ld} -melf64bmip" | |
8064 ;; | |
8065 esac | |
8066 else | |
8067 case `/usr/bin/file conftest.$ac_objext` in | |
8068 *32-bit*) | |
8069 LD="${LD-ld} -32" | |
8070 ;; | |
8071 *N32*) | |
8072 LD="${LD-ld} -n32" | |
8073 ;; | |
8074 *64-bit*) | |
8075 LD="${LD-ld} -64" | |
8076 ;; | |
8077 esac | |
8078 fi | |
8079 fi | |
8080 rm -rf conftest* | |
8081 ;; | |
8082 | |
8083 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ | |
8084 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
8085 # Find out which ABI we are using. | |
8086 echo 'int i;' > conftest.$ac_ext | |
8087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
8088 (eval $ac_compile) 2>&5 | |
8089 ac_status=$? | |
8090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8091 test $ac_status = 0; }; then | |
8092 case `/usr/bin/file conftest.o` in | |
8093 *32-bit*) | |
8094 case $host in | |
8095 x86_64-*kfreebsd*-gnu) | |
8096 LD="${LD-ld} -m elf_i386_fbsd" | |
8097 ;; | |
8098 x86_64-*linux*) | |
8099 case `/usr/bin/file conftest.o` in | |
8100 *x86-64*) | |
8101 LD="${LD-ld} -m elf32_x86_64" | |
8102 ;; | |
8103 *) | |
8104 LD="${LD-ld} -m elf_i386" | |
8105 ;; | |
8106 esac | |
8107 ;; | |
8108 powerpc64le-*) | |
8109 LD="${LD-ld} -m elf32lppclinux" | |
8110 ;; | |
8111 powerpc64-*) | |
8112 LD="${LD-ld} -m elf32ppclinux" | |
8113 ;; | |
8114 s390x-*linux*) | |
8115 LD="${LD-ld} -m elf_s390" | |
8116 ;; | |
8117 sparc64-*linux*) | |
8118 LD="${LD-ld} -m elf32_sparc" | |
8119 ;; | |
8120 esac | |
8121 ;; | |
8122 *64-bit*) | |
8123 case $host in | |
8124 x86_64-*kfreebsd*-gnu) | |
8125 LD="${LD-ld} -m elf_x86_64_fbsd" | |
8126 ;; | |
8127 x86_64-*linux*) | |
8128 LD="${LD-ld} -m elf_x86_64" | |
8129 ;; | |
8130 powerpcle-*) | |
8131 LD="${LD-ld} -m elf64lppc" | |
8132 ;; | |
8133 powerpc-*) | |
8134 LD="${LD-ld} -m elf64ppc" | |
8135 ;; | |
8136 s390*-*linux*|s390*-*tpf*) | |
8137 LD="${LD-ld} -m elf64_s390" | |
8138 ;; | |
8139 sparc*-*linux*) | |
8140 LD="${LD-ld} -m elf64_sparc" | |
8141 ;; | |
8142 esac | |
8143 ;; | |
8144 esac | |
8145 fi | |
8146 rm -rf conftest* | |
8147 ;; | |
8148 | |
8149 *-*-sco3.2v5*) | |
8150 # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
8151 SAVE_CFLAGS="$CFLAGS" | |
8152 CFLAGS="$CFLAGS -belf" | |
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
8154 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
8155 if ${lt_cv_cc_needs_belf+:} false; then : | |
8156 $as_echo_n "(cached) " >&6 | |
8157 else | |
8158 ac_ext=c | |
8159 ac_cpp='$CPP $CPPFLAGS' | |
8160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8162 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8163 | |
8164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8165 /* end confdefs.h. */ | |
8166 | |
8167 int | |
8168 main () | |
8169 { | |
8170 | |
8171 ; | |
8172 return 0; | |
8173 } | |
8174 _ACEOF | |
8175 if ac_fn_c_try_link "$LINENO"; then : | |
8176 lt_cv_cc_needs_belf=yes | |
8177 else | |
8178 lt_cv_cc_needs_belf=no | |
8179 fi | |
8180 rm -f core conftest.err conftest.$ac_objext \ | |
8181 conftest$ac_exeext conftest.$ac_ext | |
8182 ac_ext=c | |
8183 ac_cpp='$CPP $CPPFLAGS' | |
8184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8186 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8187 | |
8188 fi | |
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
8190 $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
8191 if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
8192 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
8193 CFLAGS="$SAVE_CFLAGS" | |
8194 fi | |
8195 ;; | |
8196 *-*solaris*) | |
8197 # Find out which ABI we are using. | |
8198 echo 'int i;' > conftest.$ac_ext | |
8199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
8200 (eval $ac_compile) 2>&5 | |
8201 ac_status=$? | |
8202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8203 test $ac_status = 0; }; then | |
8204 case `/usr/bin/file conftest.o` in | |
8205 *64-bit*) | |
8206 case $lt_cv_prog_gnu_ld in | |
8207 yes*) | |
8208 case $host in | |
8209 i?86-*-solaris*) | |
8210 LD="${LD-ld} -m elf_x86_64" | |
8211 ;; | |
8212 sparc*-*-solaris*) | |
8213 LD="${LD-ld} -m elf64_sparc" | |
8214 ;; | |
8215 esac | |
8216 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
8217 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
8218 LD="${LD-ld}_sol2" | |
8219 fi | |
8220 ;; | |
8221 *) | |
8222 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
8223 LD="${LD-ld} -64" | |
8224 fi | |
8225 ;; | |
8226 esac | |
8227 ;; | |
8228 esac | |
8229 fi | |
8230 rm -rf conftest* | |
8231 ;; | |
8232 esac | |
8233 | |
8234 need_locks="$enable_libtool_lock" | |
8235 | |
8236 if test -n "$ac_tool_prefix"; then | |
8237 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
8238 set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8240 $as_echo_n "checking for $ac_word... " >&6; } | |
8241 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
8242 $as_echo_n "(cached) " >&6 | |
8243 else | |
8244 if test -n "$MANIFEST_TOOL"; then | |
8245 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
8246 else | |
8247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8248 for as_dir in $PATH | |
8249 do | |
8250 IFS=$as_save_IFS | |
8251 test -z "$as_dir" && as_dir=. | |
8252 for ac_exec_ext in '' $ac_executable_extensions; do | |
8253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8254 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
8255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8256 break 2 | |
8257 fi | |
8258 done | |
8259 done | |
8260 IFS=$as_save_IFS | |
8261 | |
8262 fi | |
8263 fi | |
8264 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
8265 if test -n "$MANIFEST_TOOL"; then | |
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
8267 $as_echo "$MANIFEST_TOOL" >&6; } | |
8268 else | |
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8270 $as_echo "no" >&6; } | |
8271 fi | |
8272 | |
8273 | |
8274 fi | |
8275 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
8276 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
8277 # Extract the first word of "mt", so it can be a program name with args. | |
8278 set dummy mt; ac_word=$2 | |
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8280 $as_echo_n "checking for $ac_word... " >&6; } | |
8281 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
8282 $as_echo_n "(cached) " >&6 | |
8283 else | |
8284 if test -n "$ac_ct_MANIFEST_TOOL"; then | |
8285 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
8286 else | |
8287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8288 for as_dir in $PATH | |
8289 do | |
8290 IFS=$as_save_IFS | |
8291 test -z "$as_dir" && as_dir=. | |
8292 for ac_exec_ext in '' $ac_executable_extensions; do | |
8293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8294 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
8295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8296 break 2 | |
8297 fi | |
8298 done | |
8299 done | |
8300 IFS=$as_save_IFS | |
8301 | |
8302 fi | |
8303 fi | |
8304 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
8305 if test -n "$ac_ct_MANIFEST_TOOL"; then | |
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
8307 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
8308 else | |
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8310 $as_echo "no" >&6; } | |
8311 fi | |
8312 | |
8313 if test "x$ac_ct_MANIFEST_TOOL" = x; then | |
8314 MANIFEST_TOOL=":" | |
8315 else | |
8316 case $cross_compiling:$ac_tool_warned in | |
8317 yes:) | |
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8320 ac_tool_warned=yes ;; | |
8321 esac | |
8322 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
8323 fi | |
8324 else | |
8325 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
8326 fi | |
8327 | |
8328 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | |
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
8330 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
8331 if ${lt_cv_path_mainfest_tool+:} false; then : | |
8332 $as_echo_n "(cached) " >&6 | |
8333 else | |
8334 lt_cv_path_mainfest_tool=no | |
8335 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
8336 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
8337 cat conftest.err >&5 | |
8338 if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
8339 lt_cv_path_mainfest_tool=yes | |
8340 fi | |
8341 rm -f conftest* | |
8342 fi | |
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
8344 $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
8345 if test "x$lt_cv_path_mainfest_tool" != xyes; then | |
8346 MANIFEST_TOOL=: | |
8347 fi | |
8348 | |
8349 | |
8350 | |
8351 | |
8352 | |
8353 | |
8354 case $host_os in | |
8355 rhapsody* | darwin*) | |
8356 if test -n "$ac_tool_prefix"; then | |
8357 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
8358 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8360 $as_echo_n "checking for $ac_word... " >&6; } | |
8361 if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
8362 $as_echo_n "(cached) " >&6 | |
8363 else | |
8364 if test -n "$DSYMUTIL"; then | |
8365 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
8366 else | |
8367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8368 for as_dir in $PATH | |
8369 do | |
8370 IFS=$as_save_IFS | |
8371 test -z "$as_dir" && as_dir=. | |
8372 for ac_exec_ext in '' $ac_executable_extensions; do | |
8373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8374 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
8375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8376 break 2 | |
8377 fi | |
8378 done | |
8379 done | |
8380 IFS=$as_save_IFS | |
8381 | |
8382 fi | |
8383 fi | |
8384 DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
8385 if test -n "$DSYMUTIL"; then | |
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
8387 $as_echo "$DSYMUTIL" >&6; } | |
8388 else | |
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8390 $as_echo "no" >&6; } | |
8391 fi | |
8392 | |
8393 | |
8394 fi | |
8395 if test -z "$ac_cv_prog_DSYMUTIL"; then | |
8396 ac_ct_DSYMUTIL=$DSYMUTIL | |
8397 # Extract the first word of "dsymutil", so it can be a program name with args. | |
8398 set dummy dsymutil; ac_word=$2 | |
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8400 $as_echo_n "checking for $ac_word... " >&6; } | |
8401 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
8402 $as_echo_n "(cached) " >&6 | |
8403 else | |
8404 if test -n "$ac_ct_DSYMUTIL"; then | |
8405 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
8406 else | |
8407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8408 for as_dir in $PATH | |
8409 do | |
8410 IFS=$as_save_IFS | |
8411 test -z "$as_dir" && as_dir=. | |
8412 for ac_exec_ext in '' $ac_executable_extensions; do | |
8413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8414 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
8415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8416 break 2 | |
8417 fi | |
8418 done | |
8419 done | |
8420 IFS=$as_save_IFS | |
8421 | |
8422 fi | |
8423 fi | |
8424 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
8425 if test -n "$ac_ct_DSYMUTIL"; then | |
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
8427 $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
8428 else | |
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8430 $as_echo "no" >&6; } | |
8431 fi | |
8432 | |
8433 if test "x$ac_ct_DSYMUTIL" = x; then | |
8434 DSYMUTIL=":" | |
8435 else | |
8436 case $cross_compiling:$ac_tool_warned in | |
8437 yes:) | |
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8440 ac_tool_warned=yes ;; | |
8441 esac | |
8442 DSYMUTIL=$ac_ct_DSYMUTIL | |
8443 fi | |
8444 else | |
8445 DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
8446 fi | |
8447 | |
8448 if test -n "$ac_tool_prefix"; then | |
8449 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
8450 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8452 $as_echo_n "checking for $ac_word... " >&6; } | |
8453 if ${ac_cv_prog_NMEDIT+:} false; then : | |
8454 $as_echo_n "(cached) " >&6 | |
8455 else | |
8456 if test -n "$NMEDIT"; then | |
8457 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
8458 else | |
8459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8460 for as_dir in $PATH | |
8461 do | |
8462 IFS=$as_save_IFS | |
8463 test -z "$as_dir" && as_dir=. | |
8464 for ac_exec_ext in '' $ac_executable_extensions; do | |
8465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8466 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
8467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8468 break 2 | |
8469 fi | |
8470 done | |
8471 done | |
8472 IFS=$as_save_IFS | |
8473 | |
8474 fi | |
8475 fi | |
8476 NMEDIT=$ac_cv_prog_NMEDIT | |
8477 if test -n "$NMEDIT"; then | |
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
8479 $as_echo "$NMEDIT" >&6; } | |
8480 else | |
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8482 $as_echo "no" >&6; } | |
8483 fi | |
8484 | |
8485 | |
8486 fi | |
8487 if test -z "$ac_cv_prog_NMEDIT"; then | |
8488 ac_ct_NMEDIT=$NMEDIT | |
8489 # Extract the first word of "nmedit", so it can be a program name with args. | |
8490 set dummy nmedit; ac_word=$2 | |
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8492 $as_echo_n "checking for $ac_word... " >&6; } | |
8493 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
8494 $as_echo_n "(cached) " >&6 | |
8495 else | |
8496 if test -n "$ac_ct_NMEDIT"; then | |
8497 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
8498 else | |
8499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8500 for as_dir in $PATH | |
8501 do | |
8502 IFS=$as_save_IFS | |
8503 test -z "$as_dir" && as_dir=. | |
8504 for ac_exec_ext in '' $ac_executable_extensions; do | |
8505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8506 ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
8507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8508 break 2 | |
8509 fi | |
8510 done | |
8511 done | |
8512 IFS=$as_save_IFS | |
8513 | |
8514 fi | |
8515 fi | |
8516 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
8517 if test -n "$ac_ct_NMEDIT"; then | |
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
8519 $as_echo "$ac_ct_NMEDIT" >&6; } | |
8520 else | |
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8522 $as_echo "no" >&6; } | |
8523 fi | |
8524 | |
8525 if test "x$ac_ct_NMEDIT" = x; then | |
8526 NMEDIT=":" | |
8527 else | |
8528 case $cross_compiling:$ac_tool_warned in | |
8529 yes:) | |
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8532 ac_tool_warned=yes ;; | |
8533 esac | |
8534 NMEDIT=$ac_ct_NMEDIT | |
8535 fi | |
8536 else | |
8537 NMEDIT="$ac_cv_prog_NMEDIT" | |
8538 fi | |
8539 | |
8540 if test -n "$ac_tool_prefix"; then | |
8541 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
8542 set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8544 $as_echo_n "checking for $ac_word... " >&6; } | |
8545 if ${ac_cv_prog_LIPO+:} false; then : | |
8546 $as_echo_n "(cached) " >&6 | |
8547 else | |
8548 if test -n "$LIPO"; then | |
8549 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8550 else | |
8551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8552 for as_dir in $PATH | |
8553 do | |
8554 IFS=$as_save_IFS | |
8555 test -z "$as_dir" && as_dir=. | |
8556 for ac_exec_ext in '' $ac_executable_extensions; do | |
8557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8558 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
8559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8560 break 2 | |
8561 fi | |
8562 done | |
8563 done | |
8564 IFS=$as_save_IFS | |
8565 | |
8566 fi | |
8567 fi | |
8568 LIPO=$ac_cv_prog_LIPO | |
8569 if test -n "$LIPO"; then | |
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
8571 $as_echo "$LIPO" >&6; } | |
8572 else | |
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8574 $as_echo "no" >&6; } | |
8575 fi | |
8576 | |
8577 | |
8578 fi | |
8579 if test -z "$ac_cv_prog_LIPO"; then | |
8580 ac_ct_LIPO=$LIPO | |
8581 # Extract the first word of "lipo", so it can be a program name with args. | |
8582 set dummy lipo; ac_word=$2 | |
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8584 $as_echo_n "checking for $ac_word... " >&6; } | |
8585 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
8586 $as_echo_n "(cached) " >&6 | |
8587 else | |
8588 if test -n "$ac_ct_LIPO"; then | |
8589 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
8590 else | |
8591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8592 for as_dir in $PATH | |
8593 do | |
8594 IFS=$as_save_IFS | |
8595 test -z "$as_dir" && as_dir=. | |
8596 for ac_exec_ext in '' $ac_executable_extensions; do | |
8597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8598 ac_cv_prog_ac_ct_LIPO="lipo" | |
8599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8600 break 2 | |
8601 fi | |
8602 done | |
8603 done | |
8604 IFS=$as_save_IFS | |
8605 | |
8606 fi | |
8607 fi | |
8608 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
8609 if test -n "$ac_ct_LIPO"; then | |
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
8611 $as_echo "$ac_ct_LIPO" >&6; } | |
8612 else | |
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8614 $as_echo "no" >&6; } | |
8615 fi | |
8616 | |
8617 if test "x$ac_ct_LIPO" = x; then | |
8618 LIPO=":" | |
8619 else | |
8620 case $cross_compiling:$ac_tool_warned in | |
8621 yes:) | |
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8624 ac_tool_warned=yes ;; | |
8625 esac | |
8626 LIPO=$ac_ct_LIPO | |
8627 fi | |
8628 else | |
8629 LIPO="$ac_cv_prog_LIPO" | |
8630 fi | |
8631 | |
8632 if test -n "$ac_tool_prefix"; then | |
8633 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
8634 set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8636 $as_echo_n "checking for $ac_word... " >&6; } | |
8637 if ${ac_cv_prog_OTOOL+:} false; then : | |
8638 $as_echo_n "(cached) " >&6 | |
8639 else | |
8640 if test -n "$OTOOL"; then | |
8641 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
8642 else | |
8643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8644 for as_dir in $PATH | |
8645 do | |
8646 IFS=$as_save_IFS | |
8647 test -z "$as_dir" && as_dir=. | |
8648 for ac_exec_ext in '' $ac_executable_extensions; do | |
8649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8650 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
8651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8652 break 2 | |
8653 fi | |
8654 done | |
8655 done | |
8656 IFS=$as_save_IFS | |
8657 | |
8658 fi | |
8659 fi | |
8660 OTOOL=$ac_cv_prog_OTOOL | |
8661 if test -n "$OTOOL"; then | |
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
8663 $as_echo "$OTOOL" >&6; } | |
8664 else | |
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8666 $as_echo "no" >&6; } | |
8667 fi | |
8668 | |
8669 | |
8670 fi | |
8671 if test -z "$ac_cv_prog_OTOOL"; then | |
8672 ac_ct_OTOOL=$OTOOL | |
8673 # Extract the first word of "otool", so it can be a program name with args. | |
8674 set dummy otool; ac_word=$2 | |
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8676 $as_echo_n "checking for $ac_word... " >&6; } | |
8677 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
8678 $as_echo_n "(cached) " >&6 | |
8679 else | |
8680 if test -n "$ac_ct_OTOOL"; then | |
8681 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
8682 else | |
8683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8684 for as_dir in $PATH | |
8685 do | |
8686 IFS=$as_save_IFS | |
8687 test -z "$as_dir" && as_dir=. | |
8688 for ac_exec_ext in '' $ac_executable_extensions; do | |
8689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8690 ac_cv_prog_ac_ct_OTOOL="otool" | |
8691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8692 break 2 | |
8693 fi | |
8694 done | |
8695 done | |
8696 IFS=$as_save_IFS | |
8697 | |
8698 fi | |
8699 fi | |
8700 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
8701 if test -n "$ac_ct_OTOOL"; then | |
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
8703 $as_echo "$ac_ct_OTOOL" >&6; } | |
8704 else | |
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8706 $as_echo "no" >&6; } | |
8707 fi | |
8708 | |
8709 if test "x$ac_ct_OTOOL" = x; then | |
8710 OTOOL=":" | |
8711 else | |
8712 case $cross_compiling:$ac_tool_warned in | |
8713 yes:) | |
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8716 ac_tool_warned=yes ;; | |
8717 esac | |
8718 OTOOL=$ac_ct_OTOOL | |
8719 fi | |
8720 else | |
8721 OTOOL="$ac_cv_prog_OTOOL" | |
8722 fi | |
8723 | |
8724 if test -n "$ac_tool_prefix"; then | |
8725 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
8726 set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8728 $as_echo_n "checking for $ac_word... " >&6; } | |
8729 if ${ac_cv_prog_OTOOL64+:} false; then : | |
8730 $as_echo_n "(cached) " >&6 | |
8731 else | |
8732 if test -n "$OTOOL64"; then | |
8733 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
8734 else | |
8735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8736 for as_dir in $PATH | |
8737 do | |
8738 IFS=$as_save_IFS | |
8739 test -z "$as_dir" && as_dir=. | |
8740 for ac_exec_ext in '' $ac_executable_extensions; do | |
8741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8742 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
8743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8744 break 2 | |
8745 fi | |
8746 done | |
8747 done | |
8748 IFS=$as_save_IFS | |
8749 | |
8750 fi | |
8751 fi | |
8752 OTOOL64=$ac_cv_prog_OTOOL64 | |
8753 if test -n "$OTOOL64"; then | |
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
8755 $as_echo "$OTOOL64" >&6; } | |
8756 else | |
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8758 $as_echo "no" >&6; } | |
8759 fi | |
8760 | |
8761 | |
8762 fi | |
8763 if test -z "$ac_cv_prog_OTOOL64"; then | |
8764 ac_ct_OTOOL64=$OTOOL64 | |
8765 # Extract the first word of "otool64", so it can be a program name with args. | |
8766 set dummy otool64; ac_word=$2 | |
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8768 $as_echo_n "checking for $ac_word... " >&6; } | |
8769 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
8770 $as_echo_n "(cached) " >&6 | |
8771 else | |
8772 if test -n "$ac_ct_OTOOL64"; then | |
8773 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
8774 else | |
8775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8776 for as_dir in $PATH | |
8777 do | |
8778 IFS=$as_save_IFS | |
8779 test -z "$as_dir" && as_dir=. | |
8780 for ac_exec_ext in '' $ac_executable_extensions; do | |
8781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8782 ac_cv_prog_ac_ct_OTOOL64="otool64" | |
8783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8784 break 2 | |
8785 fi | |
8786 done | |
8787 done | |
8788 IFS=$as_save_IFS | |
8789 | |
8790 fi | |
8791 fi | |
8792 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
8793 if test -n "$ac_ct_OTOOL64"; then | |
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
8795 $as_echo "$ac_ct_OTOOL64" >&6; } | |
8796 else | |
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8798 $as_echo "no" >&6; } | |
8799 fi | |
8800 | |
8801 if test "x$ac_ct_OTOOL64" = x; then | |
8802 OTOOL64=":" | |
8803 else | |
8804 case $cross_compiling:$ac_tool_warned in | |
8805 yes:) | |
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8808 ac_tool_warned=yes ;; | |
8809 esac | |
8810 OTOOL64=$ac_ct_OTOOL64 | |
8811 fi | |
8812 else | |
8813 OTOOL64="$ac_cv_prog_OTOOL64" | |
8814 fi | |
8815 | |
8816 | |
8817 | |
8818 | |
8819 | |
8820 | |
8821 | |
8822 | |
8823 | |
8824 | |
8825 | |
8826 | |
8827 | |
8828 | |
8829 | |
8830 | |
8831 | |
8832 | |
8833 | |
8834 | |
8835 | |
8836 | |
8837 | |
8838 | |
8839 | |
8840 | |
8841 | |
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
8843 $as_echo_n "checking for -single_module linker flag... " >&6; } | |
8844 if ${lt_cv_apple_cc_single_mod+:} false; then : | |
8845 $as_echo_n "(cached) " >&6 | |
8846 else | |
8847 lt_cv_apple_cc_single_mod=no | |
8848 if test -z "${LT_MULTI_MODULE}"; then | |
8849 # By default we will add the -single_module flag. You can override | |
8850 # by either setting the environment variable LT_MULTI_MODULE | |
8851 # non-empty at configure time, or by adding -multi_module to the | |
8852 # link flags. | |
8853 rm -rf libconftest.dylib* | |
8854 echo "int foo(void){return 1;}" > conftest.c | |
8855 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8856 -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8857 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8858 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8859 _lt_result=$? | |
8860 # If there is a non-empty error log, and "single_module" | |
8861 # appears in it, assume the flag caused a linker warning | |
8862 if test -s conftest.err && $GREP single_module conftest.err; then | |
8863 cat conftest.err >&5 | |
8864 # Otherwise, if the output was created with a 0 exit code from | |
8865 # the compiler, it worked. | |
8866 elif test -f libconftest.dylib && test $_lt_result -eq 0; then | |
8867 lt_cv_apple_cc_single_mod=yes | |
8868 else | |
8869 cat conftest.err >&5 | |
8870 fi | |
8871 rm -rf libconftest.dylib* | |
8872 rm -f conftest.* | |
8873 fi | |
8874 fi | |
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
8876 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
8877 | |
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
8879 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
8880 if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
8881 $as_echo_n "(cached) " >&6 | |
8882 else | |
8883 lt_cv_ld_exported_symbols_list=no | |
8884 save_LDFLAGS=$LDFLAGS | |
8885 echo "_main" > conftest.sym | |
8886 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
8887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8888 /* end confdefs.h. */ | |
8889 | |
8890 int | |
8891 main () | |
8892 { | |
8893 | |
8894 ; | |
8895 return 0; | |
8896 } | |
8897 _ACEOF | |
8898 if ac_fn_c_try_link "$LINENO"; then : | |
8899 lt_cv_ld_exported_symbols_list=yes | |
8900 else | |
8901 lt_cv_ld_exported_symbols_list=no | |
8902 fi | |
8903 rm -f core conftest.err conftest.$ac_objext \ | |
8904 conftest$ac_exeext conftest.$ac_ext | |
8905 LDFLAGS="$save_LDFLAGS" | |
8906 | |
8907 fi | |
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
8909 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
8910 | |
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
8912 $as_echo_n "checking for -force_load linker flag... " >&6; } | |
8913 if ${lt_cv_ld_force_load+:} false; then : | |
8914 $as_echo_n "(cached) " >&6 | |
8915 else | |
8916 lt_cv_ld_force_load=no | |
8917 cat > conftest.c << _LT_EOF | |
8918 int forced_loaded() { return 2;} | |
8919 _LT_EOF | |
8920 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8921 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8922 echo "$AR cru libconftest.a conftest.o" >&5 | |
8923 $AR cru libconftest.a conftest.o 2>&5 | |
8924 echo "$RANLIB libconftest.a" >&5 | |
8925 $RANLIB libconftest.a 2>&5 | |
8926 cat > conftest.c << _LT_EOF | |
8927 int main() { return 0;} | |
8928 _LT_EOF | |
8929 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8930 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8931 _lt_result=$? | |
8932 if test -s conftest.err && $GREP force_load conftest.err; then | |
8933 cat conftest.err >&5 | |
8934 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then | |
8935 lt_cv_ld_force_load=yes | |
8936 else | |
8937 cat conftest.err >&5 | |
8938 fi | |
8939 rm -f conftest.err libconftest.a conftest conftest.c | |
8940 rm -rf conftest.dSYM | |
8941 | |
8942 fi | |
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
8944 $as_echo "$lt_cv_ld_force_load" >&6; } | |
8945 case $host_os in | |
8946 rhapsody* | darwin1.[012]) | |
8947 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
8948 darwin1.*) | |
8949 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8950 darwin*) # darwin 5.x on | |
8951 # if running on 10.5 or later, the deployment target defaults | |
8952 # to the OS version, if on x86, and 10.4, the deployment | |
8953 # target defaults to 10.4. Don't you love it? | |
8954 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
8955 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
8956 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8957 10.[012]*) | |
8958 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8959 10.*) | |
8960 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8961 esac | |
8962 ;; | |
8963 esac | |
8964 if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
8965 _lt_dar_single_mod='$single_module' | |
8966 fi | |
8967 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
8968 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
8969 else | |
8970 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8971 fi | |
8972 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
8973 _lt_dsymutil='~$DSYMUTIL $lib || :' | |
8974 else | |
8975 _lt_dsymutil= | |
8976 fi | |
8977 ;; | |
8978 esac | |
8979 | |
8980 ac_ext=c | |
8981 ac_cpp='$CPP $CPPFLAGS' | |
8982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8984 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
8986 $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
8987 # On Suns, sometimes $CPP names a directory. | |
8988 if test -n "$CPP" && test -d "$CPP"; then | |
8989 CPP= | |
8990 fi | |
8991 if test -z "$CPP"; then | |
8992 if ${ac_cv_prog_CPP+:} false; then : | |
8993 $as_echo_n "(cached) " >&6 | |
8994 else | |
8995 # Double quotes because CPP needs to be expanded | |
8996 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
8997 do | |
8998 ac_preproc_ok=false | |
8999 for ac_c_preproc_warn_flag in '' yes | |
9000 do | |
9001 # Use a header file that comes with gcc, so configuring glibc | |
9002 # with a fresh cross-compiler works. | |
9003 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9004 # <limits.h> exists even on freestanding compilers. | |
9005 # On the NeXT, cc -E runs the code through the compiler's parser, | |
9006 # not just through cpp. "Syntax error" is here to catch this case. | |
9007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9008 /* end confdefs.h. */ | |
9009 #ifdef __STDC__ | |
9010 # include <limits.h> | |
9011 #else | |
9012 # include <assert.h> | |
9013 #endif | |
9014 Syntax error | |
9015 _ACEOF | |
9016 if ac_fn_c_try_cpp "$LINENO"; then : | |
9017 | |
9018 else | |
9019 # Broken: fails on valid input. | |
9020 continue | |
9021 fi | |
9022 rm -f conftest.err conftest.i conftest.$ac_ext | |
9023 | |
9024 # OK, works on sane cases. Now check whether nonexistent headers | |
9025 # can be detected and how. | |
9026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9027 /* end confdefs.h. */ | |
9028 #include <ac_nonexistent.h> | |
9029 _ACEOF | |
9030 if ac_fn_c_try_cpp "$LINENO"; then : | |
9031 # Broken: success on invalid input. | |
9032 continue | |
9033 else | |
9034 # Passes both tests. | |
9035 ac_preproc_ok=: | |
9036 break | |
9037 fi | |
9038 rm -f conftest.err conftest.i conftest.$ac_ext | |
9039 | |
9040 done | |
9041 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
9042 rm -f conftest.i conftest.err conftest.$ac_ext | |
9043 if $ac_preproc_ok; then : | |
9044 break | |
9045 fi | |
9046 | |
9047 done | |
9048 ac_cv_prog_CPP=$CPP | |
9049 | |
9050 fi | |
9051 CPP=$ac_cv_prog_CPP | |
9052 else | |
9053 ac_cv_prog_CPP=$CPP | |
9054 fi | |
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
9056 $as_echo "$CPP" >&6; } | |
9057 ac_preproc_ok=false | |
9058 for ac_c_preproc_warn_flag in '' yes | |
9059 do | |
9060 # Use a header file that comes with gcc, so configuring glibc | |
9061 # with a fresh cross-compiler works. | |
9062 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9063 # <limits.h> exists even on freestanding compilers. | |
9064 # On the NeXT, cc -E runs the code through the compiler's parser, | |
9065 # not just through cpp. "Syntax error" is here to catch this case. | |
9066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9067 /* end confdefs.h. */ | |
9068 #ifdef __STDC__ | |
9069 # include <limits.h> | |
9070 #else | |
9071 # include <assert.h> | |
9072 #endif | |
9073 Syntax error | |
9074 _ACEOF | |
9075 if ac_fn_c_try_cpp "$LINENO"; then : | |
9076 | |
9077 else | |
9078 # Broken: fails on valid input. | |
9079 continue | |
9080 fi | |
9081 rm -f conftest.err conftest.i conftest.$ac_ext | |
9082 | |
9083 # OK, works on sane cases. Now check whether nonexistent headers | |
9084 # can be detected and how. | |
9085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9086 /* end confdefs.h. */ | |
9087 #include <ac_nonexistent.h> | |
9088 _ACEOF | |
9089 if ac_fn_c_try_cpp "$LINENO"; then : | |
9090 # Broken: success on invalid input. | |
9091 continue | |
9092 else | |
9093 # Passes both tests. | |
9094 ac_preproc_ok=: | |
9095 break | |
9096 fi | |
9097 rm -f conftest.err conftest.i conftest.$ac_ext | |
9098 | |
9099 done | |
9100 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
9101 rm -f conftest.i conftest.err conftest.$ac_ext | |
9102 if $ac_preproc_ok; then : | |
9103 | |
9104 else | |
9105 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
9106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
9107 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
9108 See \`config.log' for more details" "$LINENO" 5; } | |
9109 fi | |
9110 | |
9111 ac_ext=c | |
9112 ac_cpp='$CPP $CPPFLAGS' | |
9113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9115 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9116 | |
9117 | |
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
9119 $as_echo_n "checking for ANSI C header files... " >&6; } | |
9120 if ${ac_cv_header_stdc+:} false; then : | |
9121 $as_echo_n "(cached) " >&6 | |
9122 else | |
9123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9124 /* end confdefs.h. */ | |
9125 #include <stdlib.h> | |
9126 #include <stdarg.h> | |
9127 #include <string.h> | |
9128 #include <float.h> | |
9129 | |
9130 int | |
9131 main () | |
9132 { | |
9133 | |
9134 ; | |
9135 return 0; | |
9136 } | |
9137 _ACEOF | |
9138 if ac_fn_c_try_compile "$LINENO"; then : | |
9139 ac_cv_header_stdc=yes | |
9140 else | |
9141 ac_cv_header_stdc=no | |
9142 fi | |
9143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9144 | |
9145 if test $ac_cv_header_stdc = yes; then | |
9146 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
9147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9148 /* end confdefs.h. */ | |
9149 #include <string.h> | |
9150 | |
9151 _ACEOF | |
9152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9153 $EGREP "memchr" >/dev/null 2>&1; then : | |
9154 | |
9155 else | |
9156 ac_cv_header_stdc=no | |
9157 fi | |
9158 rm -f conftest* | |
9159 | |
9160 fi | |
9161 | |
9162 if test $ac_cv_header_stdc = yes; then | |
9163 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
9164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9165 /* end confdefs.h. */ | |
9166 #include <stdlib.h> | |
9167 | |
9168 _ACEOF | |
9169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9170 $EGREP "free" >/dev/null 2>&1; then : | |
9171 | |
9172 else | |
9173 ac_cv_header_stdc=no | |
9174 fi | |
9175 rm -f conftest* | |
9176 | |
9177 fi | |
9178 | |
9179 if test $ac_cv_header_stdc = yes; then | |
9180 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
9181 if test "$cross_compiling" = yes; then : | |
9182 : | |
9183 else | |
9184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9185 /* end confdefs.h. */ | |
9186 #include <ctype.h> | |
9187 #include <stdlib.h> | |
9188 #if ((' ' & 0x0FF) == 0x020) | |
9189 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
9190 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
9191 #else | |
9192 # define ISLOWER(c) \ | |
9193 (('a' <= (c) && (c) <= 'i') \ | |
9194 || ('j' <= (c) && (c) <= 'r') \ | |
9195 || ('s' <= (c) && (c) <= 'z')) | |
9196 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
9197 #endif | |
9198 | |
9199 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
9200 int | |
9201 main () | |
9202 { | |
9203 int i; | |
9204 for (i = 0; i < 256; i++) | |
9205 if (XOR (islower (i), ISLOWER (i)) | |
9206 || toupper (i) != TOUPPER (i)) | |
9207 return 2; | |
9208 return 0; | |
9209 } | |
9210 _ACEOF | |
9211 if ac_fn_c_try_run "$LINENO"; then : | |
9212 | |
9213 else | |
9214 ac_cv_header_stdc=no | |
9215 fi | |
9216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
9217 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
9218 fi | |
9219 | |
9220 fi | |
9221 fi | |
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
9223 $as_echo "$ac_cv_header_stdc" >&6; } | |
9224 if test $ac_cv_header_stdc = yes; then | |
9225 | |
9226 $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
9227 | |
9228 fi | |
9229 | |
9230 # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
9231 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
9232 inttypes.h stdint.h unistd.h | |
9233 do : | |
9234 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9235 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
9236 " | |
9237 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
9238 cat >>confdefs.h <<_ACEOF | |
9239 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9240 _ACEOF | |
9241 | |
9242 fi | |
9243 | |
9244 done | |
9245 | |
9246 | |
9247 for ac_header in dlfcn.h | |
9248 do : | |
9249 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
9250 " | |
9251 if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
9252 cat >>confdefs.h <<_ACEOF | |
9253 #define HAVE_DLFCN_H 1 | |
9254 _ACEOF | |
9255 | |
9256 fi | |
9257 | |
9258 done | |
9259 | |
9260 | |
9261 | |
9262 | |
9263 | |
9264 # Set options | |
9265 | |
9266 | |
9267 | |
9268 enable_dlopen=no | |
9269 | |
9270 | |
9271 | |
9272 | |
9273 # Check whether --enable-static was given. | |
9274 if test "${enable_static+set}" = set; then : | |
9275 enableval=$enable_static; p=${PACKAGE-default} | |
9276 case $enableval in | |
9277 yes) enable_static=yes ;; | |
9278 no) enable_static=no ;; | |
9279 *) | |
9280 enable_static=no | |
9281 # Look at the argument we got. We use all the common list separators. | |
9282 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9283 for pkg in $enableval; do | |
9284 IFS="$lt_save_ifs" | |
9285 if test "X$pkg" = "X$p"; then | |
9286 enable_static=yes | |
9287 fi | |
9288 done | |
9289 IFS="$lt_save_ifs" | |
9290 ;; | |
9291 esac | |
9292 else | |
9293 enable_static=yes | |
9294 fi | |
9295 | |
9296 | |
9297 | |
9298 | |
9299 | |
9300 | |
9301 | |
9302 | |
9303 | |
9304 | |
9305 # Check whether --with-pic was given. | |
9306 if test "${with_pic+set}" = set; then : | |
9307 withval=$with_pic; lt_p=${PACKAGE-default} | |
9308 case $withval in | |
9309 yes|no) pic_mode=$withval ;; | |
9310 *) | |
9311 pic_mode=default | |
9312 # Look at the argument we got. We use all the common list separators. | |
9313 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9314 for lt_pkg in $withval; do | |
9315 IFS="$lt_save_ifs" | |
9316 if test "X$lt_pkg" = "X$lt_p"; then | |
9317 pic_mode=yes | |
9318 fi | |
9319 done | |
9320 IFS="$lt_save_ifs" | |
9321 ;; | |
9322 esac | |
9323 else | |
9324 pic_mode=default | |
9325 fi | |
9326 | |
9327 | |
9328 test -z "$pic_mode" && pic_mode=default | |
9329 | |
9330 | |
9331 | |
9332 | |
9333 | |
9334 | |
9335 | |
9336 # Check whether --enable-fast-install was given. | |
9337 if test "${enable_fast_install+set}" = set; then : | |
9338 enableval=$enable_fast_install; p=${PACKAGE-default} | |
9339 case $enableval in | |
9340 yes) enable_fast_install=yes ;; | |
9341 no) enable_fast_install=no ;; | |
9342 *) | |
9343 enable_fast_install=no | |
9344 # Look at the argument we got. We use all the common list separators. | |
9345 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9346 for pkg in $enableval; do | |
9347 IFS="$lt_save_ifs" | |
9348 if test "X$pkg" = "X$p"; then | |
9349 enable_fast_install=yes | |
9350 fi | |
9351 done | |
9352 IFS="$lt_save_ifs" | |
9353 ;; | |
9354 esac | |
9355 else | |
9356 enable_fast_install=yes | |
9357 fi | |
9358 | |
9359 | |
9360 | |
9361 | |
9362 | |
9363 | |
9364 | |
9365 | |
9366 | |
9367 | |
9368 | |
9369 # This can be used to rebuild libtool when needed | |
9370 LIBTOOL_DEPS="$ltmain" | |
9371 | |
9372 # Always use our own libtool. | |
9373 LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
9374 | |
9375 | |
9376 | |
9377 | |
9378 | |
9379 | |
9380 | |
9381 | |
9382 | |
9383 | |
9384 | |
9385 | |
9386 | |
9387 | |
9388 | |
9389 | |
9390 | |
9391 | |
9392 | |
9393 | |
9394 | |
9395 | |
9396 | |
9397 | |
9398 | |
9399 | |
9400 | |
9401 | |
9402 | |
9403 | |
9404 test -z "$LN_S" && LN_S="ln -s" | |
9405 | |
9406 | |
9407 | |
9408 | |
9409 | |
9410 | |
9411 | |
9412 | |
9413 | |
9414 | |
9415 | |
9416 | |
9417 | |
9418 | |
9419 if test -n "${ZSH_VERSION+set}" ; then | |
9420 setopt NO_GLOB_SUBST | |
9421 fi | |
9422 | |
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
9424 $as_echo_n "checking for objdir... " >&6; } | |
9425 if ${lt_cv_objdir+:} false; then : | |
9426 $as_echo_n "(cached) " >&6 | |
9427 else | |
9428 rm -f .libs 2>/dev/null | |
9429 mkdir .libs 2>/dev/null | |
9430 if test -d .libs; then | |
9431 lt_cv_objdir=.libs | |
9432 else | |
9433 # MS-DOS does not allow filenames that begin with a dot. | |
9434 lt_cv_objdir=_libs | |
9435 fi | |
9436 rmdir .libs 2>/dev/null | |
9437 fi | |
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
9439 $as_echo "$lt_cv_objdir" >&6; } | |
9440 objdir=$lt_cv_objdir | |
9441 | |
9442 | |
9443 | |
9444 | |
9445 | |
9446 cat >>confdefs.h <<_ACEOF | |
9447 #define LT_OBJDIR "$lt_cv_objdir/" | |
9448 _ACEOF | |
9449 | |
9450 | |
9451 | |
9452 | |
9453 case $host_os in | |
9454 aix3*) | |
9455 # AIX sometimes has problems with the GCC collect2 program. For some | |
9456 # reason, if we set the COLLECT_NAMES environment variable, the problems | |
9457 # vanish in a puff of smoke. | |
9458 if test "X${COLLECT_NAMES+set}" != Xset; then | |
9459 COLLECT_NAMES= | |
9460 export COLLECT_NAMES | |
9461 fi | |
9462 ;; | |
9463 esac | |
9464 | |
9465 # Global variables: | |
9466 ofile=libtool | |
9467 can_build_shared=yes | |
9468 | |
9469 # All known linkers require a `.a' archive for static linking (except MSVC, | |
9470 # which needs '.lib'). | |
9471 libext=a | |
9472 | |
9473 with_gnu_ld="$lt_cv_prog_gnu_ld" | |
9474 | |
9475 old_CC="$CC" | |
9476 old_CFLAGS="$CFLAGS" | |
9477 | |
9478 # Set sane defaults for various variables | |
9479 test -z "$CC" && CC=cc | |
9480 test -z "$LTCC" && LTCC=$CC | |
9481 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
9482 test -z "$LD" && LD=ld | |
9483 test -z "$ac_objext" && ac_objext=o | |
9484 | |
9485 for cc_temp in $compiler""; do | |
9486 case $cc_temp in | |
9487 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
9488 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
9489 \-*) ;; | |
9490 *) break;; | |
9491 esac | |
9492 done | |
9493 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
9494 | |
9495 | |
9496 # Only perform the check for file, if the check method requires it | |
9497 test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
9498 case $deplibs_check_method in | |
9499 file_magic*) | |
9500 if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
9502 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
9503 if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
9504 $as_echo_n "(cached) " >&6 | |
9505 else | |
9506 case $MAGIC_CMD in | |
9507 [\\/*] | ?:[\\/]*) | |
9508 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9509 ;; | |
9510 *) | |
9511 lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9512 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9513 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9514 for ac_dir in $ac_dummy; do | |
9515 IFS="$lt_save_ifs" | |
9516 test -z "$ac_dir" && ac_dir=. | |
9517 if test -f $ac_dir/${ac_tool_prefix}file; then | |
9518 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
9519 if test -n "$file_magic_test_file"; then | |
9520 case $deplibs_check_method in | |
9521 "file_magic "*) | |
9522 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9523 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9524 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9525 $EGREP "$file_magic_regex" > /dev/null; then | |
9526 : | |
9527 else | |
9528 cat <<_LT_EOF 1>&2 | |
9529 | |
9530 *** Warning: the command libtool uses to detect shared libraries, | |
9531 *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9532 *** The result is that libtool may fail to recognize shared libraries | |
9533 *** as such. This will affect the creation of libtool libraries that | |
9534 *** depend on shared libraries, but programs linked with such libtool | |
9535 *** libraries will work regardless of this problem. Nevertheless, you | |
9536 *** may want to report the problem to your system manager and/or to | |
9537 *** bug-libtool@gnu.org | |
9538 | |
9539 _LT_EOF | |
9540 fi ;; | |
9541 esac | |
9542 fi | |
9543 break | |
9544 fi | |
9545 done | |
9546 IFS="$lt_save_ifs" | |
9547 MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9548 ;; | |
9549 esac | |
9550 fi | |
9551 | |
9552 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9553 if test -n "$MAGIC_CMD"; then | |
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
9555 $as_echo "$MAGIC_CMD" >&6; } | |
9556 else | |
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9558 $as_echo "no" >&6; } | |
9559 fi | |
9560 | |
9561 | |
9562 | |
9563 | |
9564 | |
9565 if test -z "$lt_cv_path_MAGIC_CMD"; then | |
9566 if test -n "$ac_tool_prefix"; then | |
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
9568 $as_echo_n "checking for file... " >&6; } | |
9569 if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
9570 $as_echo_n "(cached) " >&6 | |
9571 else | |
9572 case $MAGIC_CMD in | |
9573 [\\/*] | ?:[\\/]*) | |
9574 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9575 ;; | |
9576 *) | |
9577 lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9578 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9579 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9580 for ac_dir in $ac_dummy; do | |
9581 IFS="$lt_save_ifs" | |
9582 test -z "$ac_dir" && ac_dir=. | |
9583 if test -f $ac_dir/file; then | |
9584 lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
9585 if test -n "$file_magic_test_file"; then | |
9586 case $deplibs_check_method in | |
9587 "file_magic "*) | |
9588 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9589 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9590 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9591 $EGREP "$file_magic_regex" > /dev/null; then | |
9592 : | |
9593 else | |
9594 cat <<_LT_EOF 1>&2 | |
9595 | |
9596 *** Warning: the command libtool uses to detect shared libraries, | |
9597 *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9598 *** The result is that libtool may fail to recognize shared libraries | |
9599 *** as such. This will affect the creation of libtool libraries that | |
9600 *** depend on shared libraries, but programs linked with such libtool | |
9601 *** libraries will work regardless of this problem. Nevertheless, you | |
9602 *** may want to report the problem to your system manager and/or to | |
9603 *** bug-libtool@gnu.org | |
9604 | |
9605 _LT_EOF | |
9606 fi ;; | |
9607 esac | |
9608 fi | |
9609 break | |
9610 fi | |
9611 done | |
9612 IFS="$lt_save_ifs" | |
9613 MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9614 ;; | |
9615 esac | |
9616 fi | |
9617 | |
9618 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9619 if test -n "$MAGIC_CMD"; then | |
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
9621 $as_echo "$MAGIC_CMD" >&6; } | |
9622 else | |
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9624 $as_echo "no" >&6; } | |
9625 fi | |
9626 | |
9627 | |
9628 else | |
9629 MAGIC_CMD=: | |
9630 fi | |
9631 fi | |
9632 | |
9633 fi | |
9634 ;; | |
9635 esac | |
9636 | |
9637 # Use C for the default configuration in the libtool script | |
9638 | |
9639 lt_save_CC="$CC" | |
9640 ac_ext=c | |
9641 ac_cpp='$CPP $CPPFLAGS' | |
9642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9644 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9645 | |
9646 | |
9647 # Source file extension for C test sources. | |
9648 ac_ext=c | |
9649 | |
9650 # Object file extension for compiled C test sources. | |
9651 objext=o | |
9652 objext=$objext | |
9653 | |
9654 # Code to be used in simple compile tests | |
9655 lt_simple_compile_test_code="int some_variable = 0;" | |
9656 | |
9657 # Code to be used in simple link tests | |
9658 lt_simple_link_test_code='int main(){return(0);}' | |
9659 | |
9660 | |
9661 | |
9662 | |
9663 | |
9664 | |
9665 | |
9666 # If no C compiler was specified, use CC. | |
9667 LTCC=${LTCC-"$CC"} | |
9668 | |
9669 # If no C compiler flags were specified, use CFLAGS. | |
9670 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9671 | |
9672 # Allow CC to be a program name with arguments. | |
9673 compiler=$CC | |
9674 | |
9675 # Save the default compiler, since it gets overwritten when the other | |
9676 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
9677 compiler_DEFAULT=$CC | |
9678 | |
9679 # save warnings/boilerplate of simple test code | |
9680 ac_outfile=conftest.$ac_objext | |
9681 echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
9682 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9683 _lt_compiler_boilerplate=`cat conftest.err` | |
9684 $RM conftest* | |
9685 | |
9686 ac_outfile=conftest.$ac_objext | |
9687 echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
9688 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9689 _lt_linker_boilerplate=`cat conftest.err` | |
9690 $RM -r conftest* | |
9691 | |
9692 | |
9693 ## CAVEAT EMPTOR: | |
9694 ## There is no encapsulation within the following macros, do not change | |
9695 ## the running order or otherwise move them around unless you know exactly | |
9696 ## what you are doing... | |
9697 if test -n "$compiler"; then | |
9698 | |
9699 lt_prog_compiler_no_builtin_flag= | |
9700 | |
9701 if test "$GCC" = yes; then | |
9702 case $cc_basename in | |
9703 nvcc*) | |
9704 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
9705 *) | |
9706 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
9707 esac | |
9708 | |
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
9710 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
9711 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
9712 $as_echo_n "(cached) " >&6 | |
9713 else | |
9714 lt_cv_prog_compiler_rtti_exceptions=no | |
9715 ac_outfile=conftest.$ac_objext | |
9716 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9717 lt_compiler_flag="-fno-rtti -fno-exceptions" | |
9718 # Insert the option either (1) after the last *FLAGS variable, or | |
9719 # (2) before a word containing "conftest.", or (3) at the end. | |
9720 # Note that $ac_compile itself does not contain backslashes and begins | |
9721 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9722 # The option is referenced via a variable to avoid confusing sed. | |
9723 lt_compile=`echo "$ac_compile" | $SED \ | |
9724 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9726 -e 's:$: $lt_compiler_flag:'` | |
9727 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9728 (eval "$lt_compile" 2>conftest.err) | |
9729 ac_status=$? | |
9730 cat conftest.err >&5 | |
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9732 if (exit $ac_status) && test -s "$ac_outfile"; then | |
9733 # The compiler can only warn and ignore the option if not recognized | |
9734 # So say no if there are warnings other than the usual output. | |
9735 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9736 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9737 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9738 lt_cv_prog_compiler_rtti_exceptions=yes | |
9739 fi | |
9740 fi | |
9741 $RM conftest* | |
9742 | |
9743 fi | |
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
9745 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
9746 | |
9747 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
9748 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
9749 else | |
9750 : | |
9751 fi | |
9752 | |
9753 fi | |
9754 | |
9755 | |
9756 | |
9757 | |
9758 | |
9759 | |
9760 lt_prog_compiler_wl= | |
9761 lt_prog_compiler_pic= | |
9762 lt_prog_compiler_static= | |
9763 | |
9764 | |
9765 if test "$GCC" = yes; then | |
9766 lt_prog_compiler_wl='-Wl,' | |
9767 lt_prog_compiler_static='-static' | |
9768 | |
9769 case $host_os in | |
9770 aix*) | |
9771 # All AIX code is PIC. | |
9772 if test "$host_cpu" = ia64; then | |
9773 # AIX 5 now supports IA64 processor | |
9774 lt_prog_compiler_static='-Bstatic' | |
9775 fi | |
9776 ;; | |
9777 | |
9778 amigaos*) | |
9779 case $host_cpu in | |
9780 powerpc) | |
9781 # see comment about AmigaOS4 .so support | |
9782 lt_prog_compiler_pic='-fPIC' | |
9783 ;; | |
9784 m68k) | |
9785 # FIXME: we need at least 68020 code to build shared libraries, but | |
9786 # adding the `-m68020' flag to GCC prevents building anything better, | |
9787 # like `-m68040'. | |
9788 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
9789 ;; | |
9790 esac | |
9791 ;; | |
9792 | |
9793 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
9794 # PIC is the default for these OSes. | |
9795 ;; | |
9796 | |
9797 mingw* | cygwin* | pw32* | os2* | cegcc*) | |
9798 # This hack is so that the source file can tell whether it is being | |
9799 # built for inclusion in a dll (and should export symbols for example). | |
9800 # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
9801 # (--disable-auto-import) libraries | |
9802 lt_prog_compiler_pic='-DDLL_EXPORT' | |
9803 ;; | |
9804 | |
9805 darwin* | rhapsody*) | |
9806 # PIC is the default on this platform | |
9807 # Common symbols not allowed in MH_DYLIB files | |
9808 lt_prog_compiler_pic='-fno-common' | |
9809 ;; | |
9810 | |
9811 haiku*) | |
9812 # PIC is the default for Haiku. | |
9813 # The "-static" flag exists, but is broken. | |
9814 lt_prog_compiler_static= | |
9815 ;; | |
9816 | |
9817 hpux*) | |
9818 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
9819 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
9820 # sets the default TLS model and affects inlining. | |
9821 case $host_cpu in | |
9822 hppa*64*) | |
9823 # +Z the default | |
9824 ;; | |
9825 *) | |
9826 lt_prog_compiler_pic='-fPIC' | |
9827 ;; | |
9828 esac | |
9829 ;; | |
9830 | |
9831 interix[3-9]*) | |
9832 # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
9833 # Instead, we relocate shared libraries at runtime. | |
9834 ;; | |
9835 | |
9836 msdosdjgpp*) | |
9837 # Just because we use GCC doesn't mean we suddenly get shared libraries | |
9838 # on systems that don't support them. | |
9839 lt_prog_compiler_can_build_shared=no | |
9840 enable_shared=no | |
9841 ;; | |
9842 | |
9843 *nto* | *qnx*) | |
9844 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9845 # it will coredump. | |
9846 lt_prog_compiler_pic='-fPIC -shared' | |
9847 ;; | |
9848 | |
9849 sysv4*MP*) | |
9850 if test -d /usr/nec; then | |
9851 lt_prog_compiler_pic=-Kconform_pic | |
9852 fi | |
9853 ;; | |
9854 | |
9855 *) | |
9856 lt_prog_compiler_pic='-fPIC' | |
9857 ;; | |
9858 esac | |
9859 | |
9860 case $cc_basename in | |
9861 nvcc*) # Cuda Compiler Driver 2.2 | |
9862 lt_prog_compiler_wl='-Xlinker ' | |
9863 if test -n "$lt_prog_compiler_pic"; then | |
9864 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
9865 fi | |
9866 ;; | |
9867 esac | |
9868 else | |
9869 # PORTME Check for flag to pass linker flags through the system compiler. | |
9870 case $host_os in | |
9871 aix*) | |
9872 lt_prog_compiler_wl='-Wl,' | |
9873 if test "$host_cpu" = ia64; then | |
9874 # AIX 5 now supports IA64 processor | |
9875 lt_prog_compiler_static='-Bstatic' | |
9876 else | |
9877 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9878 fi | |
9879 ;; | |
9880 | |
9881 mingw* | cygwin* | pw32* | os2* | cegcc*) | |
9882 # This hack is so that the source file can tell whether it is being | |
9883 # built for inclusion in a dll (and should export symbols for example). | |
9884 lt_prog_compiler_pic='-DDLL_EXPORT' | |
9885 ;; | |
9886 | |
9887 hpux9* | hpux10* | hpux11*) | |
9888 lt_prog_compiler_wl='-Wl,' | |
9889 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9890 # not for PA HP-UX. | |
9891 case $host_cpu in | |
9892 hppa*64*|ia64*) | |
9893 # +Z the default | |
9894 ;; | |
9895 *) | |
9896 lt_prog_compiler_pic='+Z' | |
9897 ;; | |
9898 esac | |
9899 # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9900 lt_prog_compiler_static='${wl}-a ${wl}archive' | |
9901 ;; | |
9902 | |
9903 irix5* | irix6* | nonstopux*) | |
9904 lt_prog_compiler_wl='-Wl,' | |
9905 # PIC (with -KPIC) is the default. | |
9906 lt_prog_compiler_static='-non_shared' | |
9907 ;; | |
9908 | |
9909 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
9910 case $cc_basename in | |
9911 # old Intel for x86_64 which still supported -KPIC. | |
9912 ecc*) | |
9913 lt_prog_compiler_wl='-Wl,' | |
9914 lt_prog_compiler_pic='-KPIC' | |
9915 lt_prog_compiler_static='-static' | |
9916 ;; | |
9917 # icc used to be incompatible with GCC. | |
9918 # ICC 10 doesn't accept -KPIC any more. | |
9919 icc* | ifort*) | |
9920 lt_prog_compiler_wl='-Wl,' | |
9921 lt_prog_compiler_pic='-fPIC' | |
9922 lt_prog_compiler_static='-static' | |
9923 ;; | |
9924 # Lahey Fortran 8.1. | |
9925 lf95*) | |
9926 lt_prog_compiler_wl='-Wl,' | |
9927 lt_prog_compiler_pic='--shared' | |
9928 lt_prog_compiler_static='--static' | |
9929 ;; | |
9930 nagfor*) | |
9931 # NAG Fortran compiler | |
9932 lt_prog_compiler_wl='-Wl,-Wl,,' | |
9933 lt_prog_compiler_pic='-PIC' | |
9934 lt_prog_compiler_static='-Bstatic' | |
9935 ;; | |
9936 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9937 # Portland Group compilers (*not* the Pentium gcc compiler, | |
9938 # which looks to be a dead project) | |
9939 lt_prog_compiler_wl='-Wl,' | |
9940 lt_prog_compiler_pic='-fpic' | |
9941 lt_prog_compiler_static='-Bstatic' | |
9942 ;; | |
9943 ccc*) | |
9944 lt_prog_compiler_wl='-Wl,' | |
9945 # All Alpha code is PIC. | |
9946 lt_prog_compiler_static='-non_shared' | |
9947 ;; | |
9948 xl* | bgxl* | bgf* | mpixl*) | |
9949 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
9950 lt_prog_compiler_wl='-Wl,' | |
9951 lt_prog_compiler_pic='-qpic' | |
9952 lt_prog_compiler_static='-qstaticlink' | |
9953 ;; | |
9954 *) | |
9955 case `$CC -V 2>&1 | sed 5q` in | |
9956 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) | |
9957 # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
9958 lt_prog_compiler_pic='-KPIC' | |
9959 lt_prog_compiler_static='-Bstatic' | |
9960 lt_prog_compiler_wl='' | |
9961 ;; | |
9962 *Sun\ F* | *Sun*Fortran*) | |
9963 lt_prog_compiler_pic='-KPIC' | |
9964 lt_prog_compiler_static='-Bstatic' | |
9965 lt_prog_compiler_wl='-Qoption ld ' | |
9966 ;; | |
9967 *Sun\ C*) | |
9968 # Sun C 5.9 | |
9969 lt_prog_compiler_pic='-KPIC' | |
9970 lt_prog_compiler_static='-Bstatic' | |
9971 lt_prog_compiler_wl='-Wl,' | |
9972 ;; | |
9973 *Intel*\ [CF]*Compiler*) | |
9974 lt_prog_compiler_wl='-Wl,' | |
9975 lt_prog_compiler_pic='-fPIC' | |
9976 lt_prog_compiler_static='-static' | |
9977 ;; | |
9978 *Portland\ Group*) | |
9979 lt_prog_compiler_wl='-Wl,' | |
9980 lt_prog_compiler_pic='-fpic' | |
9981 lt_prog_compiler_static='-Bstatic' | |
9982 ;; | |
9983 esac | |
9984 ;; | |
9985 esac | |
9986 ;; | |
9987 | |
9988 newsos6) | |
9989 lt_prog_compiler_pic='-KPIC' | |
9990 lt_prog_compiler_static='-Bstatic' | |
9991 ;; | |
9992 | |
9993 *nto* | *qnx*) | |
9994 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9995 # it will coredump. | |
9996 lt_prog_compiler_pic='-fPIC -shared' | |
9997 ;; | |
9998 | |
9999 osf3* | osf4* | osf5*) | |
10000 lt_prog_compiler_wl='-Wl,' | |
10001 # All OSF/1 code is PIC. | |
10002 lt_prog_compiler_static='-non_shared' | |
10003 ;; | |
10004 | |
10005 rdos*) | |
10006 lt_prog_compiler_static='-non_shared' | |
10007 ;; | |
10008 | |
10009 solaris*) | |
10010 lt_prog_compiler_pic='-KPIC' | |
10011 lt_prog_compiler_static='-Bstatic' | |
10012 case $cc_basename in | |
10013 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
10014 lt_prog_compiler_wl='-Qoption ld ';; | |
10015 *) | |
10016 lt_prog_compiler_wl='-Wl,';; | |
10017 esac | |
10018 ;; | |
10019 | |
10020 sunos4*) | |
10021 lt_prog_compiler_wl='-Qoption ld ' | |
10022 lt_prog_compiler_pic='-PIC' | |
10023 lt_prog_compiler_static='-Bstatic' | |
10024 ;; | |
10025 | |
10026 sysv4 | sysv4.2uw2* | sysv4.3*) | |
10027 lt_prog_compiler_wl='-Wl,' | |
10028 lt_prog_compiler_pic='-KPIC' | |
10029 lt_prog_compiler_static='-Bstatic' | |
10030 ;; | |
10031 | |
10032 sysv4*MP*) | |
10033 if test -d /usr/nec ;then | |
10034 lt_prog_compiler_pic='-Kconform_pic' | |
10035 lt_prog_compiler_static='-Bstatic' | |
10036 fi | |
10037 ;; | |
10038 | |
10039 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
10040 lt_prog_compiler_wl='-Wl,' | |
10041 lt_prog_compiler_pic='-KPIC' | |
10042 lt_prog_compiler_static='-Bstatic' | |
10043 ;; | |
10044 | |
10045 unicos*) | |
10046 lt_prog_compiler_wl='-Wl,' | |
10047 lt_prog_compiler_can_build_shared=no | |
10048 ;; | |
10049 | |
10050 uts4*) | |
10051 lt_prog_compiler_pic='-pic' | |
10052 lt_prog_compiler_static='-Bstatic' | |
10053 ;; | |
10054 | |
10055 *) | |
10056 lt_prog_compiler_can_build_shared=no | |
10057 ;; | |
10058 esac | |
10059 fi | |
10060 | |
10061 case $host_os in | |
10062 # For platforms which do not support PIC, -DPIC is meaningless: | |
10063 *djgpp*) | |
10064 lt_prog_compiler_pic= | |
10065 ;; | |
10066 *) | |
10067 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
10068 ;; | |
10069 esac | |
10070 | |
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
10072 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
10073 if ${lt_cv_prog_compiler_pic+:} false; then : | |
10074 $as_echo_n "(cached) " >&6 | |
10075 else | |
10076 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
10077 fi | |
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
10079 $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
10080 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
10081 | |
10082 # | |
10083 # Check to make sure the PIC flag actually works. | |
10084 # | |
10085 if test -n "$lt_prog_compiler_pic"; then | |
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
10087 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
10088 if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
10089 $as_echo_n "(cached) " >&6 | |
10090 else | |
10091 lt_cv_prog_compiler_pic_works=no | |
10092 ac_outfile=conftest.$ac_objext | |
10093 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10094 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
10095 # Insert the option either (1) after the last *FLAGS variable, or | |
10096 # (2) before a word containing "conftest.", or (3) at the end. | |
10097 # Note that $ac_compile itself does not contain backslashes and begins | |
10098 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10099 # The option is referenced via a variable to avoid confusing sed. | |
10100 lt_compile=`echo "$ac_compile" | $SED \ | |
10101 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10102 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10103 -e 's:$: $lt_compiler_flag:'` | |
10104 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
10105 (eval "$lt_compile" 2>conftest.err) | |
10106 ac_status=$? | |
10107 cat conftest.err >&5 | |
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10109 if (exit $ac_status) && test -s "$ac_outfile"; then | |
10110 # The compiler can only warn and ignore the option if not recognized | |
10111 # So say no if there are warnings other than the usual output. | |
10112 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
10113 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10114 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
10115 lt_cv_prog_compiler_pic_works=yes | |
10116 fi | |
10117 fi | |
10118 $RM conftest* | |
10119 | |
10120 fi | |
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
10122 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
10123 | |
10124 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
10125 case $lt_prog_compiler_pic in | |
10126 "" | " "*) ;; | |
10127 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
10128 esac | |
10129 else | |
10130 lt_prog_compiler_pic= | |
10131 lt_prog_compiler_can_build_shared=no | |
10132 fi | |
10133 | |
10134 fi | |
10135 | |
10136 | |
10137 | |
10138 | |
10139 | |
10140 | |
10141 | |
10142 | |
10143 | |
10144 | |
10145 | |
10146 # | |
10147 # Check to make sure the static flag actually works. | |
10148 # | |
10149 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
10151 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
10152 if ${lt_cv_prog_compiler_static_works+:} false; then : | |
10153 $as_echo_n "(cached) " >&6 | |
10154 else | |
10155 lt_cv_prog_compiler_static_works=no | |
10156 save_LDFLAGS="$LDFLAGS" | |
10157 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
10158 echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10159 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10160 # The linker can only warn and ignore the option if not recognized | |
10161 # So say no if there are warnings | |
10162 if test -s conftest.err; then | |
10163 # Append any errors to the config.log. | |
10164 cat conftest.err 1>&5 | |
10165 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10166 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10167 if diff conftest.exp conftest.er2 >/dev/null; then | |
10168 lt_cv_prog_compiler_static_works=yes | |
10169 fi | |
10170 else | |
10171 lt_cv_prog_compiler_static_works=yes | |
10172 fi | |
10173 fi | |
10174 $RM -r conftest* | |
10175 LDFLAGS="$save_LDFLAGS" | |
10176 | |
10177 fi | |
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
10179 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
10180 | |
10181 if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
10182 : | |
10183 else | |
10184 lt_prog_compiler_static= | |
10185 fi | |
10186 | |
10187 | |
10188 | |
10189 | |
10190 | |
10191 | |
10192 | |
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
10194 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
10195 if ${lt_cv_prog_compiler_c_o+:} false; then : | |
10196 $as_echo_n "(cached) " >&6 | |
10197 else | |
10198 lt_cv_prog_compiler_c_o=no | |
10199 $RM -r conftest 2>/dev/null | |
10200 mkdir conftest | |
10201 cd conftest | |
10202 mkdir out | |
10203 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10204 | |
10205 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
10206 # Insert the option either (1) after the last *FLAGS variable, or | |
10207 # (2) before a word containing "conftest.", or (3) at the end. | |
10208 # Note that $ac_compile itself does not contain backslashes and begins | |
10209 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10210 lt_compile=`echo "$ac_compile" | $SED \ | |
10211 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10212 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10213 -e 's:$: $lt_compiler_flag:'` | |
10214 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
10215 (eval "$lt_compile" 2>out/conftest.err) | |
10216 ac_status=$? | |
10217 cat out/conftest.err >&5 | |
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10219 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
10220 then | |
10221 # The compiler can only warn and ignore the option if not recognized | |
10222 # So say no if there are warnings | |
10223 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
10224 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
10225 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
10226 lt_cv_prog_compiler_c_o=yes | |
10227 fi | |
10228 fi | |
10229 chmod u+w . 2>&5 | |
10230 $RM conftest* | |
10231 # SGI C++ compiler will create directory out/ii_files/ for | |
10232 # template instantiation | |
10233 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
10234 $RM out/* && rmdir out | |
10235 cd .. | |
10236 $RM -r conftest | |
10237 $RM conftest* | |
10238 | |
10239 fi | |
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
10241 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
10242 | |
10243 | |
10244 | |
10245 | |
10246 | |
10247 | |
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
10249 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
10250 if ${lt_cv_prog_compiler_c_o+:} false; then : | |
10251 $as_echo_n "(cached) " >&6 | |
10252 else | |
10253 lt_cv_prog_compiler_c_o=no | |
10254 $RM -r conftest 2>/dev/null | |
10255 mkdir conftest | |
10256 cd conftest | |
10257 mkdir out | |
10258 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10259 | |
10260 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
10261 # Insert the option either (1) after the last *FLAGS variable, or | |
10262 # (2) before a word containing "conftest.", or (3) at the end. | |
10263 # Note that $ac_compile itself does not contain backslashes and begins | |
10264 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
10265 lt_compile=`echo "$ac_compile" | $SED \ | |
10266 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
10267 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
10268 -e 's:$: $lt_compiler_flag:'` | |
10269 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
10270 (eval "$lt_compile" 2>out/conftest.err) | |
10271 ac_status=$? | |
10272 cat out/conftest.err >&5 | |
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10274 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
10275 then | |
10276 # The compiler can only warn and ignore the option if not recognized | |
10277 # So say no if there are warnings | |
10278 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
10279 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
10280 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
10281 lt_cv_prog_compiler_c_o=yes | |
10282 fi | |
10283 fi | |
10284 chmod u+w . 2>&5 | |
10285 $RM conftest* | |
10286 # SGI C++ compiler will create directory out/ii_files/ for | |
10287 # template instantiation | |
10288 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
10289 $RM out/* && rmdir out | |
10290 cd .. | |
10291 $RM -r conftest | |
10292 $RM conftest* | |
10293 | |
10294 fi | |
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
10296 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
10297 | |
10298 | |
10299 | |
10300 | |
10301 hard_links="nottested" | |
10302 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
10303 # do not overwrite the value of need_locks provided by the user | |
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
10305 $as_echo_n "checking if we can lock with hard links... " >&6; } | |
10306 hard_links=yes | |
10307 $RM conftest* | |
10308 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
10309 touch conftest.a | |
10310 ln conftest.a conftest.b 2>&5 || hard_links=no | |
10311 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
10313 $as_echo "$hard_links" >&6; } | |
10314 if test "$hard_links" = no; then | |
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
10316 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
10317 need_locks=warn | |
10318 fi | |
10319 else | |
10320 need_locks=no | |
10321 fi | |
10322 | |
10323 | |
10324 | |
10325 | |
10326 | |
10327 | |
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
10329 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
10330 | |
10331 runpath_var= | |
10332 allow_undefined_flag= | |
10333 always_export_symbols=no | |
10334 archive_cmds= | |
10335 archive_expsym_cmds= | |
10336 compiler_needs_object=no | |
10337 enable_shared_with_static_runtimes=no | |
10338 export_dynamic_flag_spec= | |
10339 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
10340 hardcode_automatic=no | |
10341 hardcode_direct=no | |
10342 hardcode_direct_absolute=no | |
10343 hardcode_libdir_flag_spec= | |
10344 hardcode_libdir_separator= | |
10345 hardcode_minus_L=no | |
10346 hardcode_shlibpath_var=unsupported | |
10347 inherit_rpath=no | |
10348 link_all_deplibs=unknown | |
10349 module_cmds= | |
10350 module_expsym_cmds= | |
10351 old_archive_from_new_cmds= | |
10352 old_archive_from_expsyms_cmds= | |
10353 thread_safe_flag_spec= | |
10354 whole_archive_flag_spec= | |
10355 # include_expsyms should be a list of space-separated symbols to be *always* | |
10356 # included in the symbol list | |
10357 include_expsyms= | |
10358 # exclude_expsyms can be an extended regexp of symbols to exclude | |
10359 # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
10360 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
10361 # as well as any symbol that contains `d'. | |
10362 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
10363 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
10364 # platforms (ab)use it in PIC code, but their linkers get confused if | |
10365 # the symbol is explicitly referenced. Since portable code cannot | |
10366 # rely on this symbol name, it's probably fine to never include it in | |
10367 # preloaded symbol tables. | |
10368 # Exclude shared library initialization/finalization symbols. | |
10369 extract_expsyms_cmds= | |
10370 | |
10371 case $host_os in | |
10372 cygwin* | mingw* | pw32* | cegcc*) | |
10373 # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
10374 # When not using gcc, we currently assume that we are using | |
10375 # Microsoft Visual C++. | |
10376 if test "$GCC" != yes; then | |
10377 with_gnu_ld=no | |
10378 fi | |
10379 ;; | |
10380 interix*) | |
10381 # we just hope/assume this is gcc and not c89 (= MSVC++) | |
10382 with_gnu_ld=yes | |
10383 ;; | |
10384 openbsd*) | |
10385 with_gnu_ld=no | |
10386 ;; | |
10387 linux* | k*bsd*-gnu | gnu*) | |
10388 link_all_deplibs=no | |
10389 ;; | |
10390 esac | |
10391 | |
10392 ld_shlibs=yes | |
10393 | |
10394 # On some targets, GNU ld is compatible enough with the native linker | |
10395 # that we're better off using the native interface for both. | |
10396 lt_use_gnu_ld_interface=no | |
10397 if test "$with_gnu_ld" = yes; then | |
10398 case $host_os in | |
10399 aix*) | |
10400 # The AIX port of GNU ld has always aspired to compatibility | |
10401 # with the native linker. However, as the warning in the GNU ld | |
10402 # block says, versions before 2.19.5* couldn't really create working | |
10403 # shared libraries, regardless of the interface used. | |
10404 case `$LD -v 2>&1` in | |
10405 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
10406 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
10407 *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
10408 *) | |
10409 lt_use_gnu_ld_interface=yes | |
10410 ;; | |
10411 esac | |
10412 ;; | |
10413 *) | |
10414 lt_use_gnu_ld_interface=yes | |
10415 ;; | |
10416 esac | |
10417 fi | |
10418 | |
10419 if test "$lt_use_gnu_ld_interface" = yes; then | |
10420 # If archive_cmds runs LD, not CC, wlarc should be empty | |
10421 wlarc='${wl}' | |
10422 | |
10423 # Set some defaults for GNU ld with shared library support. These | |
10424 # are reset later if shared libraries are not supported. Putting them | |
10425 # here allows them to be overridden if necessary. | |
10426 runpath_var=LD_RUN_PATH | |
10427 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10428 export_dynamic_flag_spec='${wl}--export-dynamic' | |
10429 # ancient GNU ld didn't support --whole-archive et. al. | |
10430 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
10431 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
10432 else | |
10433 whole_archive_flag_spec= | |
10434 fi | |
10435 supports_anon_versioning=no | |
10436 case `$LD -v 2>&1` in | |
10437 *GNU\ gold*) supports_anon_versioning=yes ;; | |
10438 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
10439 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
10440 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
10441 *\ 2.11.*) ;; # other 2.11 versions | |
10442 *) supports_anon_versioning=yes ;; | |
10443 esac | |
10444 | |
10445 # See if GNU ld supports shared libraries. | |
10446 case $host_os in | |
10447 aix[3-9]*) | |
10448 # On AIX/PPC, the GNU linker is very broken | |
10449 if test "$host_cpu" != ia64; then | |
10450 ld_shlibs=no | |
10451 cat <<_LT_EOF 1>&2 | |
10452 | |
10453 *** Warning: the GNU linker, at least up to release 2.19, is reported | |
10454 *** to be unable to reliably create shared libraries on AIX. | |
10455 *** Therefore, libtool is disabling shared libraries support. If you | |
10456 *** really care for shared libraries, you may want to install binutils | |
10457 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
10458 *** You will then need to restart the configuration process. | |
10459 | |
10460 _LT_EOF | |
10461 fi | |
10462 ;; | |
10463 | |
10464 amigaos*) | |
10465 case $host_cpu in | |
10466 powerpc) | |
10467 # see comment about AmigaOS4 .so support | |
10468 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10469 archive_expsym_cmds='' | |
10470 ;; | |
10471 m68k) | |
10472 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)' | |
10473 hardcode_libdir_flag_spec='-L$libdir' | |
10474 hardcode_minus_L=yes | |
10475 ;; | |
10476 esac | |
10477 ;; | |
10478 | |
10479 beos*) | |
10480 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10481 allow_undefined_flag=unsupported | |
10482 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
10483 # support --undefined. This deserves some investigation. FIXME | |
10484 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10485 else | |
10486 ld_shlibs=no | |
10487 fi | |
10488 ;; | |
10489 | |
10490 cygwin* | mingw* | pw32* | cegcc*) | |
10491 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
10492 # as there is no search path for DLLs. | |
10493 hardcode_libdir_flag_spec='-L$libdir' | |
10494 export_dynamic_flag_spec='${wl}--export-all-symbols' | |
10495 allow_undefined_flag=unsupported | |
10496 always_export_symbols=no | |
10497 enable_shared_with_static_runtimes=yes | |
10498 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | |
10499 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
10500 | |
10501 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
10502 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10503 # If the export-symbols file already is a .def file (1st line | |
10504 # is EXPORTS), use it as is; otherwise, prepend... | |
10505 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
10506 cp $export_symbols $output_objdir/$soname.def; | |
10507 else | |
10508 echo EXPORTS > $output_objdir/$soname.def; | |
10509 cat $export_symbols >> $output_objdir/$soname.def; | |
10510 fi~ | |
10511 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10512 else | |
10513 ld_shlibs=no | |
10514 fi | |
10515 ;; | |
10516 | |
10517 haiku*) | |
10518 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10519 link_all_deplibs=yes | |
10520 ;; | |
10521 | |
10522 interix[3-9]*) | |
10523 hardcode_direct=no | |
10524 hardcode_shlibpath_var=no | |
10525 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10526 export_dynamic_flag_spec='${wl}-E' | |
10527 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
10528 # Instead, shared libraries are loaded at an image base (0x10000000 by | |
10529 # default) and relocated if they conflict, which is a slow very memory | |
10530 # consuming and fragmenting process. To avoid this, we pick a random, | |
10531 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
10532 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
10533 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
10534 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' | |
10535 ;; | |
10536 | |
10537 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
10538 tmp_diet=no | |
10539 if test "$host_os" = linux-dietlibc; then | |
10540 case $cc_basename in | |
10541 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
10542 esac | |
10543 fi | |
10544 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
10545 && test "$tmp_diet" = no | |
10546 then | |
10547 tmp_addflag=' $pic_flag' | |
10548 tmp_sharedflag='-shared' | |
10549 case $cc_basename,$host_cpu in | |
10550 pgcc*) # Portland Group C compiler | |
10551 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' | |
10552 tmp_addflag=' $pic_flag' | |
10553 ;; | |
10554 pgf77* | pgf90* | pgf95* | pgfortran*) | |
10555 # Portland Group f77 and f90 compilers | |
10556 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' | |
10557 tmp_addflag=' $pic_flag -Mnomain' ;; | |
10558 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
10559 tmp_addflag=' -i_dynamic' ;; | |
10560 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
10561 tmp_addflag=' -i_dynamic -nofor_main' ;; | |
10562 ifc* | ifort*) # Intel Fortran compiler | |
10563 tmp_addflag=' -nofor_main' ;; | |
10564 lf95*) # Lahey Fortran 8.1 | |
10565 whole_archive_flag_spec= | |
10566 tmp_sharedflag='--shared' ;; | |
10567 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
10568 tmp_sharedflag='-qmkshrobj' | |
10569 tmp_addflag= ;; | |
10570 nvcc*) # Cuda Compiler Driver 2.2 | |
10571 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' | |
10572 compiler_needs_object=yes | |
10573 ;; | |
10574 esac | |
10575 case `$CC -V 2>&1 | sed 5q` in | |
10576 *Sun\ C*) # Sun C 5.9 | |
10577 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' | |
10578 compiler_needs_object=yes | |
10579 tmp_sharedflag='-G' ;; | |
10580 *Sun\ F*) # Sun Fortran 8.3 | |
10581 tmp_sharedflag='-G' ;; | |
10582 esac | |
10583 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10584 | |
10585 if test "x$supports_anon_versioning" = xyes; then | |
10586 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10587 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10588 echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10589 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
10590 fi | |
10591 | |
10592 case $cc_basename in | |
10593 xlf* | bgf* | bgxlf* | mpixlf*) | |
10594 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
10595 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
10596 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10597 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | |
10598 if test "x$supports_anon_versioning" = xyes; then | |
10599 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10600 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10601 echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10602 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
10603 fi | |
10604 ;; | |
10605 esac | |
10606 else | |
10607 ld_shlibs=no | |
10608 fi | |
10609 ;; | |
10610 | |
10611 netbsd* | netbsdelf*-gnu) | |
10612 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10613 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
10614 wlarc= | |
10615 else | |
10616 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10617 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10618 fi | |
10619 ;; | |
10620 | |
10621 solaris*) | |
10622 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
10623 ld_shlibs=no | |
10624 cat <<_LT_EOF 1>&2 | |
10625 | |
10626 *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
10627 *** create shared libraries on Solaris systems. Therefore, libtool | |
10628 *** is disabling shared libraries support. We urge you to upgrade GNU | |
10629 *** binutils to release 2.9.1 or newer. Another option is to modify | |
10630 *** your PATH or compiler configuration so that the native linker is | |
10631 *** used, and then restart. | |
10632 | |
10633 _LT_EOF | |
10634 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10635 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10636 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10637 else | |
10638 ld_shlibs=no | |
10639 fi | |
10640 ;; | |
10641 | |
10642 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
10643 case `$LD -v 2>&1` in | |
10644 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
10645 ld_shlibs=no | |
10646 cat <<_LT_EOF 1>&2 | |
10647 | |
10648 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
10649 *** reliably create shared libraries on SCO systems. Therefore, libtool | |
10650 *** is disabling shared libraries support. We urge you to upgrade GNU | |
10651 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
10652 *** your PATH or compiler configuration so that the native linker is | |
10653 *** used, and then restart. | |
10654 | |
10655 _LT_EOF | |
10656 ;; | |
10657 *) | |
10658 # For security reasons, it is highly recommended that you always | |
10659 # use absolute paths for naming shared libraries, and exclude the | |
10660 # DT_RUNPATH tag from executables and libraries. But doing so | |
10661 # requires that you compile everything twice, which is a pain. | |
10662 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10663 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10664 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10665 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10666 else | |
10667 ld_shlibs=no | |
10668 fi | |
10669 ;; | |
10670 esac | |
10671 ;; | |
10672 | |
10673 sunos4*) | |
10674 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10675 wlarc= | |
10676 hardcode_direct=yes | |
10677 hardcode_shlibpath_var=no | |
10678 ;; | |
10679 | |
10680 *) | |
10681 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10682 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10683 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10684 else | |
10685 ld_shlibs=no | |
10686 fi | |
10687 ;; | |
10688 esac | |
10689 | |
10690 if test "$ld_shlibs" = no; then | |
10691 runpath_var= | |
10692 hardcode_libdir_flag_spec= | |
10693 export_dynamic_flag_spec= | |
10694 whole_archive_flag_spec= | |
10695 fi | |
10696 else | |
10697 # PORTME fill in a description of your system's linker (not GNU ld) | |
10698 case $host_os in | |
10699 aix3*) | |
10700 allow_undefined_flag=unsupported | |
10701 always_export_symbols=yes | |
10702 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' | |
10703 # Note: this linker hardcodes the directories in LIBPATH if there | |
10704 # are no directories specified by -L. | |
10705 hardcode_minus_L=yes | |
10706 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
10707 # Neither direct hardcoding nor static linking is supported with a | |
10708 # broken collect2. | |
10709 hardcode_direct=unsupported | |
10710 fi | |
10711 ;; | |
10712 | |
10713 aix[4-9]*) | |
10714 if test "$host_cpu" = ia64; then | |
10715 # On IA64, the linker does run time linking by default, so we don't | |
10716 # have to do anything special. | |
10717 aix_use_runtimelinking=no | |
10718 exp_sym_flag='-Bexport' | |
10719 no_entry_flag="" | |
10720 else | |
10721 # If we're using GNU nm, then we don't want the "-C" option. | |
10722 # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
10723 # Also, AIX nm treats weak defined symbols like other global | |
10724 # defined symbols, whereas GNU nm marks them as "W". | |
10725 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
10726 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' | |
10727 else | |
10728 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
10729 fi | |
10730 aix_use_runtimelinking=no | |
10731 | |
10732 # Test if we are trying to use run time linking or normal | |
10733 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
10734 # need to do runtime linking. | |
10735 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
10736 for ld_flag in $LDFLAGS; do | |
10737 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
10738 aix_use_runtimelinking=yes | |
10739 break | |
10740 fi | |
10741 done | |
10742 ;; | |
10743 esac | |
10744 | |
10745 exp_sym_flag='-bexport' | |
10746 no_entry_flag='-bnoentry' | |
10747 fi | |
10748 | |
10749 # When large executables or shared objects are built, AIX ld can | |
10750 # have problems creating the table of contents. If linking a library | |
10751 # or program results in "error TOC overflow" add -mminimal-toc to | |
10752 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10753 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
10754 | |
10755 archive_cmds='' | |
10756 hardcode_direct=yes | |
10757 hardcode_direct_absolute=yes | |
10758 hardcode_libdir_separator=':' | |
10759 link_all_deplibs=yes | |
10760 file_list_spec='${wl}-f,' | |
10761 | |
10762 if test "$GCC" = yes; then | |
10763 case $host_os in aix4.[012]|aix4.[012].*) | |
10764 # We only want to do this on AIX 4.2 and lower, the check | |
10765 # below for broken collect2 doesn't work under 4.3+ | |
10766 collect2name=`${CC} -print-prog-name=collect2` | |
10767 if test -f "$collect2name" && | |
10768 strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
10769 then | |
10770 # We have reworked collect2 | |
10771 : | |
10772 else | |
10773 # We have old collect2 | |
10774 hardcode_direct=unsupported | |
10775 # It fails to find uninstalled libraries when the uninstalled | |
10776 # path is not listed in the libpath. Setting hardcode_minus_L | |
10777 # to unsupported forces relinking | |
10778 hardcode_minus_L=yes | |
10779 hardcode_libdir_flag_spec='-L$libdir' | |
10780 hardcode_libdir_separator= | |
10781 fi | |
10782 ;; | |
10783 esac | |
10784 shared_flag='-shared' | |
10785 if test "$aix_use_runtimelinking" = yes; then | |
10786 shared_flag="$shared_flag "'${wl}-G' | |
10787 fi | |
10788 link_all_deplibs=no | |
10789 else | |
10790 # not using gcc | |
10791 if test "$host_cpu" = ia64; then | |
10792 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
10793 # chokes on -Wl,-G. The following line is correct: | |
10794 shared_flag='-G' | |
10795 else | |
10796 if test "$aix_use_runtimelinking" = yes; then | |
10797 shared_flag='${wl}-G' | |
10798 else | |
10799 shared_flag='${wl}-bM:SRE' | |
10800 fi | |
10801 fi | |
10802 fi | |
10803 | |
10804 export_dynamic_flag_spec='${wl}-bexpall' | |
10805 # It seems that -bexpall does not export symbols beginning with | |
10806 # underscore (_), so it is better to generate a list of symbols to export. | |
10807 always_export_symbols=yes | |
10808 if test "$aix_use_runtimelinking" = yes; then | |
10809 # Warning - without using the other runtime loading flags (-brtl), | |
10810 # -berok will link without error, but may produce a broken library. | |
10811 allow_undefined_flag='-berok' | |
10812 # Determine the default libpath from the value encoded in an | |
10813 # empty executable. | |
10814 if test "${lt_cv_aix_libpath+set}" = set; then | |
10815 aix_libpath=$lt_cv_aix_libpath | |
10816 else | |
10817 if ${lt_cv_aix_libpath_+:} false; then : | |
10818 $as_echo_n "(cached) " >&6 | |
10819 else | |
10820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10821 /* end confdefs.h. */ | |
10822 | |
10823 int | |
10824 main () | |
10825 { | |
10826 | |
10827 ; | |
10828 return 0; | |
10829 } | |
10830 _ACEOF | |
10831 if ac_fn_c_try_link "$LINENO"; then : | |
10832 | |
10833 lt_aix_libpath_sed=' | |
10834 /Import File Strings/,/^$/ { | |
10835 /^0/ { | |
10836 s/^0 *\([^ ]*\) *$/\1/ | |
10837 p | |
10838 } | |
10839 }' | |
10840 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10841 # Check for a 64-bit object if we didn't find anything. | |
10842 if test -z "$lt_cv_aix_libpath_"; then | |
10843 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10844 fi | |
10845 fi | |
10846 rm -f core conftest.err conftest.$ac_objext \ | |
10847 conftest$ac_exeext conftest.$ac_ext | |
10848 if test -z "$lt_cv_aix_libpath_"; then | |
10849 lt_cv_aix_libpath_="/usr/lib:/lib" | |
10850 fi | |
10851 | |
10852 fi | |
10853 | |
10854 aix_libpath=$lt_cv_aix_libpath_ | |
10855 fi | |
10856 | |
10857 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
10858 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" | |
10859 else | |
10860 if test "$host_cpu" = ia64; then | |
10861 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
10862 allow_undefined_flag="-z nodefs" | |
10863 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" | |
10864 else | |
10865 # Determine the default libpath from the value encoded in an | |
10866 # empty executable. | |
10867 if test "${lt_cv_aix_libpath+set}" = set; then | |
10868 aix_libpath=$lt_cv_aix_libpath | |
10869 else | |
10870 if ${lt_cv_aix_libpath_+:} false; then : | |
10871 $as_echo_n "(cached) " >&6 | |
10872 else | |
10873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10874 /* end confdefs.h. */ | |
10875 | |
10876 int | |
10877 main () | |
10878 { | |
10879 | |
10880 ; | |
10881 return 0; | |
10882 } | |
10883 _ACEOF | |
10884 if ac_fn_c_try_link "$LINENO"; then : | |
10885 | |
10886 lt_aix_libpath_sed=' | |
10887 /Import File Strings/,/^$/ { | |
10888 /^0/ { | |
10889 s/^0 *\([^ ]*\) *$/\1/ | |
10890 p | |
10891 } | |
10892 }' | |
10893 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10894 # Check for a 64-bit object if we didn't find anything. | |
10895 if test -z "$lt_cv_aix_libpath_"; then | |
10896 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10897 fi | |
10898 fi | |
10899 rm -f core conftest.err conftest.$ac_objext \ | |
10900 conftest$ac_exeext conftest.$ac_ext | |
10901 if test -z "$lt_cv_aix_libpath_"; then | |
10902 lt_cv_aix_libpath_="/usr/lib:/lib" | |
10903 fi | |
10904 | |
10905 fi | |
10906 | |
10907 aix_libpath=$lt_cv_aix_libpath_ | |
10908 fi | |
10909 | |
10910 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
10911 # Warning - without using the other run time loading flags, | |
10912 # -berok will link without error, but may produce a broken library. | |
10913 no_undefined_flag=' ${wl}-bernotok' | |
10914 allow_undefined_flag=' ${wl}-berok' | |
10915 if test "$with_gnu_ld" = yes; then | |
10916 # We only use this code for GNU lds that support --whole-archive. | |
10917 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
10918 else | |
10919 # Exported symbols can be pulled into shared objects from archives | |
10920 whole_archive_flag_spec='$convenience' | |
10921 fi | |
10922 archive_cmds_need_lc=yes | |
10923 # This is similar to how AIX traditionally builds its shared libraries. | |
10924 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' | |
10925 fi | |
10926 fi | |
10927 ;; | |
10928 | |
10929 amigaos*) | |
10930 case $host_cpu in | |
10931 powerpc) | |
10932 # see comment about AmigaOS4 .so support | |
10933 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10934 archive_expsym_cmds='' | |
10935 ;; | |
10936 m68k) | |
10937 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)' | |
10938 hardcode_libdir_flag_spec='-L$libdir' | |
10939 hardcode_minus_L=yes | |
10940 ;; | |
10941 esac | |
10942 ;; | |
10943 | |
10944 bsdi[45]*) | |
10945 export_dynamic_flag_spec=-rdynamic | |
10946 ;; | |
10947 | |
10948 cygwin* | mingw* | pw32* | cegcc*) | |
10949 # When not using gcc, we currently assume that we are using | |
10950 # Microsoft Visual C++. | |
10951 # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10952 # no search path for DLLs. | |
10953 case $cc_basename in | |
10954 cl*) | |
10955 # Native MSVC | |
10956 hardcode_libdir_flag_spec=' ' | |
10957 allow_undefined_flag=unsupported | |
10958 always_export_symbols=yes | |
10959 file_list_spec='@' | |
10960 # Tell ltmain to make .lib files, not .a files. | |
10961 libext=lib | |
10962 # Tell ltmain to make .dll files, not .so files. | |
10963 shrext_cmds=".dll" | |
10964 # FIXME: Setting linknames here is a bad hack. | |
10965 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
10966 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
10967 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
10968 else | |
10969 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
10970 fi~ | |
10971 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
10972 linknames=' | |
10973 # The linker will not automatically build a static lib if we build a DLL. | |
10974 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
10975 enable_shared_with_static_runtimes=yes | |
10976 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
10977 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
10978 # Don't use ranlib | |
10979 old_postinstall_cmds='chmod 644 $oldlib' | |
10980 postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
10981 lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
10982 case $lt_outputfile in | |
10983 *.exe|*.EXE) ;; | |
10984 *) | |
10985 lt_outputfile="$lt_outputfile.exe" | |
10986 lt_tool_outputfile="$lt_tool_outputfile.exe" | |
10987 ;; | |
10988 esac~ | |
10989 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
10990 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
10991 $RM "$lt_outputfile.manifest"; | |
10992 fi' | |
10993 ;; | |
10994 *) | |
10995 # Assume MSVC wrapper | |
10996 hardcode_libdir_flag_spec=' ' | |
10997 allow_undefined_flag=unsupported | |
10998 # Tell ltmain to make .lib files, not .a files. | |
10999 libext=lib | |
11000 # Tell ltmain to make .dll files, not .so files. | |
11001 shrext_cmds=".dll" | |
11002 # FIXME: Setting linknames here is a bad hack. | |
11003 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
11004 # The linker will automatically build a .lib file if we build a DLL. | |
11005 old_archive_from_new_cmds='true' | |
11006 # FIXME: Should let the user specify the lib program. | |
11007 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
11008 enable_shared_with_static_runtimes=yes | |
11009 ;; | |
11010 esac | |
11011 ;; | |
11012 | |
11013 darwin* | rhapsody*) | |
11014 | |
11015 | |
11016 archive_cmds_need_lc=no | |
11017 hardcode_direct=no | |
11018 hardcode_automatic=yes | |
11019 hardcode_shlibpath_var=unsupported | |
11020 if test "$lt_cv_ld_force_load" = "yes"; then | |
11021 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\"`' | |
11022 | |
11023 else | |
11024 whole_archive_flag_spec='' | |
11025 fi | |
11026 link_all_deplibs=yes | |
11027 allow_undefined_flag="$_lt_dar_allow_undefined" | |
11028 case $cc_basename in | |
11029 ifort*) _lt_dar_can_shared=yes ;; | |
11030 *) _lt_dar_can_shared=$GCC ;; | |
11031 esac | |
11032 if test "$_lt_dar_can_shared" = "yes"; then | |
11033 output_verbose_link_cmd=func_echo_all | |
11034 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
11035 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
11036 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}" | |
11037 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}" | |
11038 | |
11039 else | |
11040 ld_shlibs=no | |
11041 fi | |
11042 | |
11043 ;; | |
11044 | |
11045 dgux*) | |
11046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11047 hardcode_libdir_flag_spec='-L$libdir' | |
11048 hardcode_shlibpath_var=no | |
11049 ;; | |
11050 | |
11051 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
11052 # support. Future versions do this automatically, but an explicit c++rt0.o | |
11053 # does not break anything, and helps significantly (at the cost of a little | |
11054 # extra space). | |
11055 freebsd2.2*) | |
11056 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
11057 hardcode_libdir_flag_spec='-R$libdir' | |
11058 hardcode_direct=yes | |
11059 hardcode_shlibpath_var=no | |
11060 ;; | |
11061 | |
11062 # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
11063 freebsd2.*) | |
11064 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
11065 hardcode_direct=yes | |
11066 hardcode_minus_L=yes | |
11067 hardcode_shlibpath_var=no | |
11068 ;; | |
11069 | |
11070 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
11071 freebsd* | dragonfly*) | |
11072 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
11073 hardcode_libdir_flag_spec='-R$libdir' | |
11074 hardcode_direct=yes | |
11075 hardcode_shlibpath_var=no | |
11076 ;; | |
11077 | |
11078 hpux9*) | |
11079 if test "$GCC" = yes; then | |
11080 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
11081 else | |
11082 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' | |
11083 fi | |
11084 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
11085 hardcode_libdir_separator=: | |
11086 hardcode_direct=yes | |
11087 | |
11088 # hardcode_minus_L: Not really in the search PATH, | |
11089 # but as the default location of the library. | |
11090 hardcode_minus_L=yes | |
11091 export_dynamic_flag_spec='${wl}-E' | |
11092 ;; | |
11093 | |
11094 hpux10*) | |
11095 if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
11096 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
11097 else | |
11098 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
11099 fi | |
11100 if test "$with_gnu_ld" = no; then | |
11101 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
11102 hardcode_libdir_separator=: | |
11103 hardcode_direct=yes | |
11104 hardcode_direct_absolute=yes | |
11105 export_dynamic_flag_spec='${wl}-E' | |
11106 # hardcode_minus_L: Not really in the search PATH, | |
11107 # but as the default location of the library. | |
11108 hardcode_minus_L=yes | |
11109 fi | |
11110 ;; | |
11111 | |
11112 hpux11*) | |
11113 if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
11114 case $host_cpu in | |
11115 hppa*64*) | |
11116 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11117 ;; | |
11118 ia64*) | |
11119 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
11120 ;; | |
11121 *) | |
11122 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
11123 ;; | |
11124 esac | |
11125 else | |
11126 case $host_cpu in | |
11127 hppa*64*) | |
11128 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11129 ;; | |
11130 ia64*) | |
11131 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
11132 ;; | |
11133 *) | |
11134 | |
11135 # Older versions of the 11.00 compiler do not understand -b yet | |
11136 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
11138 $as_echo_n "checking if $CC understands -b... " >&6; } | |
11139 if ${lt_cv_prog_compiler__b+:} false; then : | |
11140 $as_echo_n "(cached) " >&6 | |
11141 else | |
11142 lt_cv_prog_compiler__b=no | |
11143 save_LDFLAGS="$LDFLAGS" | |
11144 LDFLAGS="$LDFLAGS -b" | |
11145 echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
11146 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
11147 # The linker can only warn and ignore the option if not recognized | |
11148 # So say no if there are warnings | |
11149 if test -s conftest.err; then | |
11150 # Append any errors to the config.log. | |
11151 cat conftest.err 1>&5 | |
11152 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
11153 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
11154 if diff conftest.exp conftest.er2 >/dev/null; then | |
11155 lt_cv_prog_compiler__b=yes | |
11156 fi | |
11157 else | |
11158 lt_cv_prog_compiler__b=yes | |
11159 fi | |
11160 fi | |
11161 $RM -r conftest* | |
11162 LDFLAGS="$save_LDFLAGS" | |
11163 | |
11164 fi | |
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
11166 $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
11167 | |
11168 if test x"$lt_cv_prog_compiler__b" = xyes; then | |
11169 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
11170 else | |
11171 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
11172 fi | |
11173 | |
11174 ;; | |
11175 esac | |
11176 fi | |
11177 if test "$with_gnu_ld" = no; then | |
11178 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
11179 hardcode_libdir_separator=: | |
11180 | |
11181 case $host_cpu in | |
11182 hppa*64*|ia64*) | |
11183 hardcode_direct=no | |
11184 hardcode_shlibpath_var=no | |
11185 ;; | |
11186 *) | |
11187 hardcode_direct=yes | |
11188 hardcode_direct_absolute=yes | |
11189 export_dynamic_flag_spec='${wl}-E' | |
11190 | |
11191 # hardcode_minus_L: Not really in the search PATH, | |
11192 # but as the default location of the library. | |
11193 hardcode_minus_L=yes | |
11194 ;; | |
11195 esac | |
11196 fi | |
11197 ;; | |
11198 | |
11199 irix5* | irix6* | nonstopux*) | |
11200 if test "$GCC" = yes; then | |
11201 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
11202 # Try to use the -exported_symbol ld option, if it does not | |
11203 # work, assume that -exports_file does not work either and | |
11204 # implicitly export all symbols. | |
11205 # This should be the same for all languages, so no per-tag cache variable. | |
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
11207 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
11208 if ${lt_cv_irix_exported_symbol+:} false; then : | |
11209 $as_echo_n "(cached) " >&6 | |
11210 else | |
11211 save_LDFLAGS="$LDFLAGS" | |
11212 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
11213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11214 /* end confdefs.h. */ | |
11215 int foo (void) { return 0; } | |
11216 _ACEOF | |
11217 if ac_fn_c_try_link "$LINENO"; then : | |
11218 lt_cv_irix_exported_symbol=yes | |
11219 else | |
11220 lt_cv_irix_exported_symbol=no | |
11221 fi | |
11222 rm -f core conftest.err conftest.$ac_objext \ | |
11223 conftest$ac_exeext conftest.$ac_ext | |
11224 LDFLAGS="$save_LDFLAGS" | |
11225 fi | |
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
11227 $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
11228 if test "$lt_cv_irix_exported_symbol" = yes; then | |
11229 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | |
11230 fi | |
11231 else | |
11232 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' | |
11233 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' | |
11234 fi | |
11235 archive_cmds_need_lc='no' | |
11236 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11237 hardcode_libdir_separator=: | |
11238 inherit_rpath=yes | |
11239 link_all_deplibs=yes | |
11240 ;; | |
11241 | |
11242 netbsd* | netbsdelf*-gnu) | |
11243 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11244 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
11245 else | |
11246 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
11247 fi | |
11248 hardcode_libdir_flag_spec='-R$libdir' | |
11249 hardcode_direct=yes | |
11250 hardcode_shlibpath_var=no | |
11251 ;; | |
11252 | |
11253 newsos6) | |
11254 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11255 hardcode_direct=yes | |
11256 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11257 hardcode_libdir_separator=: | |
11258 hardcode_shlibpath_var=no | |
11259 ;; | |
11260 | |
11261 *nto* | *qnx*) | |
11262 ;; | |
11263 | |
11264 openbsd*) | |
11265 if test -f /usr/libexec/ld.so; then | |
11266 hardcode_direct=yes | |
11267 hardcode_shlibpath_var=no | |
11268 hardcode_direct_absolute=yes | |
11269 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11270 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
11271 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
11272 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
11273 export_dynamic_flag_spec='${wl}-E' | |
11274 else | |
11275 case $host_os in | |
11276 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
11277 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
11278 hardcode_libdir_flag_spec='-R$libdir' | |
11279 ;; | |
11280 *) | |
11281 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
11282 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
11283 ;; | |
11284 esac | |
11285 fi | |
11286 else | |
11287 ld_shlibs=no | |
11288 fi | |
11289 ;; | |
11290 | |
11291 os2*) | |
11292 hardcode_libdir_flag_spec='-L$libdir' | |
11293 hardcode_minus_L=yes | |
11294 allow_undefined_flag=unsupported | |
11295 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' | |
11296 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
11297 ;; | |
11298 | |
11299 osf3*) | |
11300 if test "$GCC" = yes; then | |
11301 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
11302 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' | |
11303 else | |
11304 allow_undefined_flag=' -expect_unresolved \*' | |
11305 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' | |
11306 fi | |
11307 archive_cmds_need_lc='no' | |
11308 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11309 hardcode_libdir_separator=: | |
11310 ;; | |
11311 | |
11312 osf4* | osf5*) # as osf3* with the addition of -msym flag | |
11313 if test "$GCC" = yes; then | |
11314 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
11315 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
11316 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11317 else | |
11318 allow_undefined_flag=' -expect_unresolved \*' | |
11319 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' | |
11320 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~ | |
11321 $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' | |
11322 | |
11323 # Both c and cxx compiler support -rpath directly | |
11324 hardcode_libdir_flag_spec='-rpath $libdir' | |
11325 fi | |
11326 archive_cmds_need_lc='no' | |
11327 hardcode_libdir_separator=: | |
11328 ;; | |
11329 | |
11330 solaris*) | |
11331 no_undefined_flag=' -z defs' | |
11332 if test "$GCC" = yes; then | |
11333 wlarc='${wl}' | |
11334 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11335 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11336 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
11337 else | |
11338 case `$CC -V 2>&1` in | |
11339 *"Compilers 5.0"*) | |
11340 wlarc='' | |
11341 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11342 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11343 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
11344 ;; | |
11345 *) | |
11346 wlarc='${wl}' | |
11347 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
11348 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11349 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
11350 ;; | |
11351 esac | |
11352 fi | |
11353 hardcode_libdir_flag_spec='-R$libdir' | |
11354 hardcode_shlibpath_var=no | |
11355 case $host_os in | |
11356 solaris2.[0-5] | solaris2.[0-5].*) ;; | |
11357 *) | |
11358 # The compiler driver will combine and reorder linker options, | |
11359 # but understands `-z linker_flag'. GCC discards it without `$wl', | |
11360 # but is careful enough not to reorder. | |
11361 # Supported since Solaris 2.6 (maybe 2.5.1?) | |
11362 if test "$GCC" = yes; then | |
11363 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
11364 else | |
11365 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
11366 fi | |
11367 ;; | |
11368 esac | |
11369 link_all_deplibs=yes | |
11370 ;; | |
11371 | |
11372 sunos4*) | |
11373 if test "x$host_vendor" = xsequent; then | |
11374 # Use $CC to link under sequent, because it throws in some extra .o | |
11375 # files that make .init and .fini sections work. | |
11376 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
11377 else | |
11378 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
11379 fi | |
11380 hardcode_libdir_flag_spec='-L$libdir' | |
11381 hardcode_direct=yes | |
11382 hardcode_minus_L=yes | |
11383 hardcode_shlibpath_var=no | |
11384 ;; | |
11385 | |
11386 sysv4) | |
11387 case $host_vendor in | |
11388 sni) | |
11389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11390 hardcode_direct=yes # is this really true??? | |
11391 ;; | |
11392 siemens) | |
11393 ## LD is ld it makes a PLAMLIB | |
11394 ## CC just makes a GrossModule. | |
11395 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
11396 reload_cmds='$CC -r -o $output$reload_objs' | |
11397 hardcode_direct=no | |
11398 ;; | |
11399 motorola) | |
11400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11401 hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
11402 ;; | |
11403 esac | |
11404 runpath_var='LD_RUN_PATH' | |
11405 hardcode_shlibpath_var=no | |
11406 ;; | |
11407 | |
11408 sysv4.3*) | |
11409 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11410 hardcode_shlibpath_var=no | |
11411 export_dynamic_flag_spec='-Bexport' | |
11412 ;; | |
11413 | |
11414 sysv4*MP*) | |
11415 if test -d /usr/nec; then | |
11416 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11417 hardcode_shlibpath_var=no | |
11418 runpath_var=LD_RUN_PATH | |
11419 hardcode_runpath_var=yes | |
11420 ld_shlibs=yes | |
11421 fi | |
11422 ;; | |
11423 | |
11424 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
11425 no_undefined_flag='${wl}-z,text' | |
11426 archive_cmds_need_lc=no | |
11427 hardcode_shlibpath_var=no | |
11428 runpath_var='LD_RUN_PATH' | |
11429 | |
11430 if test "$GCC" = yes; then | |
11431 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11432 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11433 else | |
11434 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11435 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11436 fi | |
11437 ;; | |
11438 | |
11439 sysv5* | sco3.2v5* | sco5v6*) | |
11440 # Note: We can NOT use -z defs as we might desire, because we do not | |
11441 # link with -lc, and that would cause any symbols used from libc to | |
11442 # always be unresolved, which means just about no library would | |
11443 # ever link correctly. If we're not using GNU ld we use -z text | |
11444 # though, which does catch some bad symbols but isn't as heavy-handed | |
11445 # as -z defs. | |
11446 no_undefined_flag='${wl}-z,text' | |
11447 allow_undefined_flag='${wl}-z,nodefs' | |
11448 archive_cmds_need_lc=no | |
11449 hardcode_shlibpath_var=no | |
11450 hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
11451 hardcode_libdir_separator=':' | |
11452 link_all_deplibs=yes | |
11453 export_dynamic_flag_spec='${wl}-Bexport' | |
11454 runpath_var='LD_RUN_PATH' | |
11455 | |
11456 if test "$GCC" = yes; then | |
11457 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11458 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11459 else | |
11460 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11461 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11462 fi | |
11463 ;; | |
11464 | |
11465 uts4*) | |
11466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11467 hardcode_libdir_flag_spec='-L$libdir' | |
11468 hardcode_shlibpath_var=no | |
11469 ;; | |
11470 | |
11471 *) | |
11472 ld_shlibs=no | |
11473 ;; | |
11474 esac | |
11475 | |
11476 if test x$host_vendor = xsni; then | |
11477 case $host in | |
11478 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
11479 export_dynamic_flag_spec='${wl}-Blargedynsym' | |
11480 ;; | |
11481 esac | |
11482 fi | |
11483 fi | |
11484 | |
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
11486 $as_echo "$ld_shlibs" >&6; } | |
11487 test "$ld_shlibs" = no && can_build_shared=no | |
11488 | |
11489 with_gnu_ld=$with_gnu_ld | |
11490 | |
11491 | |
11492 | |
11493 | |
11494 | |
11495 | |
11496 | |
11497 | |
11498 | |
11499 | |
11500 | |
11501 | |
11502 | |
11503 | |
11504 | |
11505 # | |
11506 # Do we need to explicitly link libc? | |
11507 # | |
11508 case "x$archive_cmds_need_lc" in | |
11509 x|xyes) | |
11510 # Assume -lc should be added | |
11511 archive_cmds_need_lc=yes | |
11512 | |
11513 if test "$enable_shared" = yes && test "$GCC" = yes; then | |
11514 case $archive_cmds in | |
11515 *'~'*) | |
11516 # FIXME: we may have to deal with multi-command sequences. | |
11517 ;; | |
11518 '$CC '*) | |
11519 # Test whether the compiler implicitly links with -lc since on some | |
11520 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
11521 # to ld, don't add -lc before -lgcc. | |
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
11523 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
11524 if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
11525 $as_echo_n "(cached) " >&6 | |
11526 else | |
11527 $RM conftest* | |
11528 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11529 | |
11530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
11531 (eval $ac_compile) 2>&5 | |
11532 ac_status=$? | |
11533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11534 test $ac_status = 0; } 2>conftest.err; then | |
11535 soname=conftest | |
11536 lib=conftest | |
11537 libobjs=conftest.$ac_objext | |
11538 deplibs= | |
11539 wl=$lt_prog_compiler_wl | |
11540 pic_flag=$lt_prog_compiler_pic | |
11541 compiler_flags=-v | |
11542 linker_flags=-v | |
11543 verstring= | |
11544 output_objdir=. | |
11545 libname=conftest | |
11546 lt_save_allow_undefined_flag=$allow_undefined_flag | |
11547 allow_undefined_flag= | |
11548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
11549 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
11550 ac_status=$? | |
11551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11552 test $ac_status = 0; } | |
11553 then | |
11554 lt_cv_archive_cmds_need_lc=no | |
11555 else | |
11556 lt_cv_archive_cmds_need_lc=yes | |
11557 fi | |
11558 allow_undefined_flag=$lt_save_allow_undefined_flag | |
11559 else | |
11560 cat conftest.err 1>&5 | |
11561 fi | |
11562 $RM conftest* | |
11563 | |
11564 fi | |
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
11566 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
11567 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
11568 ;; | |
11569 esac | |
11570 fi | |
11571 ;; | |
11572 esac | |
11573 | |
11574 | |
11575 | |
11576 | |
11577 | |
11578 | |
11579 | |
11580 | |
11581 | |
11582 | |
11583 | |
11584 | |
11585 | |
11586 | |
11587 | |
11588 | |
11589 | |
11590 | |
11591 | |
11592 | |
11593 | |
11594 | |
11595 | |
11596 | |
11597 | |
11598 | |
11599 | |
11600 | |
11601 | |
11602 | |
11603 | |
11604 | |
11605 | |
11606 | |
11607 | |
11608 | |
11609 | |
11610 | |
11611 | |
11612 | |
11613 | |
11614 | |
11615 | |
11616 | |
11617 | |
11618 | |
11619 | |
11620 | |
11621 | |
11622 | |
11623 | |
11624 | |
11625 | |
11626 | |
11627 | |
11628 | |
11629 | |
11630 | |
11631 | |
11632 | |
11633 | |
11634 | |
11635 | |
11636 | |
11637 | |
11638 | |
11639 | |
11640 | |
11641 | |
11642 | |
11643 | |
11644 | |
11645 | |
11646 | |
11647 | |
11648 | |
11649 | |
11650 | |
11651 | |
11652 | |
11653 | |
11654 | |
11655 | |
11656 | |
11657 | |
11658 | |
11659 | |
11660 | |
11661 | |
11662 | |
11663 | |
11664 | |
11665 | |
11666 | |
11667 | |
11668 | |
11669 | |
11670 | |
11671 | |
11672 | |
11673 | |
11674 | |
11675 | |
11676 | |
11677 | |
11678 | |
11679 | |
11680 | |
11681 | |
11682 | |
11683 | |
11684 | |
11685 | |
11686 | |
11687 | |
11688 | |
11689 | |
11690 | |
11691 | |
11692 | |
11693 | |
11694 | |
11695 | |
11696 | |
11697 | |
11698 | |
11699 | |
11700 | |
11701 | |
11702 | |
11703 | |
11704 | |
11705 | |
11706 | |
11707 | |
11708 | |
11709 | |
11710 | |
11711 | |
11712 | |
11713 | |
11714 | |
11715 | |
11716 | |
11717 | |
11718 | |
11719 | |
11720 | |
11721 | |
11722 | |
11723 | |
11724 | |
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
11726 $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
11727 | |
11728 if test "$GCC" = yes; then | |
11729 case $host_os in | |
11730 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
11731 *) lt_awk_arg="/^libraries:/" ;; | |
11732 esac | |
11733 case $host_os in | |
11734 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
11735 *) lt_sed_strip_eq="s,=/,/,g" ;; | |
11736 esac | |
11737 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
11738 case $lt_search_path_spec in | |
11739 *\;*) | |
11740 # if the path contains ";" then we assume it to be the separator | |
11741 # otherwise default to the standard path separator (i.e. ":") - it is | |
11742 # assumed that no part of a normal pathname contains ";" but that should | |
11743 # okay in the real world where ";" in dirpaths is itself problematic. | |
11744 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
11745 ;; | |
11746 *) | |
11747 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
11748 ;; | |
11749 esac | |
11750 # Ok, now we have the path, separated by spaces, we can step through it | |
11751 # and add multilib dir if necessary. | |
11752 lt_tmp_lt_search_path_spec= | |
11753 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
11754 for lt_sys_path in $lt_search_path_spec; do | |
11755 if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
11756 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
11757 else | |
11758 test -d "$lt_sys_path" && \ | |
11759 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
11760 fi | |
11761 done | |
11762 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
11763 BEGIN {RS=" "; FS="/|\n";} { | |
11764 lt_foo=""; | |
11765 lt_count=0; | |
11766 for (lt_i = NF; lt_i > 0; lt_i--) { | |
11767 if ($lt_i != "" && $lt_i != ".") { | |
11768 if ($lt_i == "..") { | |
11769 lt_count++; | |
11770 } else { | |
11771 if (lt_count == 0) { | |
11772 lt_foo="/" $lt_i lt_foo; | |
11773 } else { | |
11774 lt_count--; | |
11775 } | |
11776 } | |
11777 } | |
11778 } | |
11779 if (lt_foo != "") { lt_freq[lt_foo]++; } | |
11780 if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
11781 }'` | |
11782 # AWK program above erroneously prepends '/' to C:/dos/paths | |
11783 # for these hosts. | |
11784 case $host_os in | |
11785 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
11786 $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
11787 esac | |
11788 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
11789 else | |
11790 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11791 fi | |
11792 library_names_spec= | |
11793 libname_spec='lib$name' | |
11794 soname_spec= | |
11795 shrext_cmds=".so" | |
11796 postinstall_cmds= | |
11797 postuninstall_cmds= | |
11798 finish_cmds= | |
11799 finish_eval= | |
11800 shlibpath_var= | |
11801 shlibpath_overrides_runpath=unknown | |
11802 version_type=none | |
11803 dynamic_linker="$host_os ld.so" | |
11804 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11805 need_lib_prefix=unknown | |
11806 hardcode_into_libs=no | |
11807 | |
11808 # when you set need_version to no, make sure it does not cause -set_version | |
11809 # flags to be left without arguments | |
11810 need_version=unknown | |
11811 | |
11812 case $host_os in | |
11813 aix3*) | |
11814 version_type=linux # correct to gnu/linux during the next big refactor | |
11815 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
11816 shlibpath_var=LIBPATH | |
11817 | |
11818 # AIX 3 has no versioning support, so we append a major version to the name. | |
11819 soname_spec='${libname}${release}${shared_ext}$major' | |
11820 ;; | |
11821 | |
11822 aix[4-9]*) | |
11823 version_type=linux # correct to gnu/linux during the next big refactor | |
11824 need_lib_prefix=no | |
11825 need_version=no | |
11826 hardcode_into_libs=yes | |
11827 if test "$host_cpu" = ia64; then | |
11828 # AIX 5 supports IA64 | |
11829 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
11830 shlibpath_var=LD_LIBRARY_PATH | |
11831 else | |
11832 # With GCC up to 2.95.x, collect2 would create an import file | |
11833 # for dependence libraries. The import file would start with | |
11834 # the line `#! .'. This would cause the generated library to | |
11835 # depend on `.', always an invalid library. This was fixed in | |
11836 # development snapshots of GCC prior to 3.0. | |
11837 case $host_os in | |
11838 aix4 | aix4.[01] | aix4.[01].*) | |
11839 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11840 echo ' yes ' | |
11841 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
11842 : | |
11843 else | |
11844 can_build_shared=no | |
11845 fi | |
11846 ;; | |
11847 esac | |
11848 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
11849 # soname into executable. Probably we can add versioning support to | |
11850 # collect2, so additional links can be useful in future. | |
11851 if test "$aix_use_runtimelinking" = yes; then | |
11852 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
11853 # instead of lib<name>.a to let people know that these are not | |
11854 # typical AIX shared libraries. | |
11855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11856 else | |
11857 # We preserve .a as extension for shared libraries through AIX4.2 | |
11858 # and later when we are not doing run time linking. | |
11859 library_names_spec='${libname}${release}.a $libname.a' | |
11860 soname_spec='${libname}${release}${shared_ext}$major' | |
11861 fi | |
11862 shlibpath_var=LIBPATH | |
11863 fi | |
11864 ;; | |
11865 | |
11866 amigaos*) | |
11867 case $host_cpu in | |
11868 powerpc) | |
11869 # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11870 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
11871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11872 ;; | |
11873 m68k) | |
11874 library_names_spec='$libname.ixlibrary $libname.a' | |
11875 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
11876 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' | |
11877 ;; | |
11878 esac | |
11879 ;; | |
11880 | |
11881 beos*) | |
11882 library_names_spec='${libname}${shared_ext}' | |
11883 dynamic_linker="$host_os ld.so" | |
11884 shlibpath_var=LIBRARY_PATH | |
11885 ;; | |
11886 | |
11887 bsdi[45]*) | |
11888 version_type=linux # correct to gnu/linux during the next big refactor | |
11889 need_version=no | |
11890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11891 soname_spec='${libname}${release}${shared_ext}$major' | |
11892 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11893 shlibpath_var=LD_LIBRARY_PATH | |
11894 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11895 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11896 # the default ld.so.conf also contains /usr/contrib/lib and | |
11897 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11898 # libtool to hard-code these into programs | |
11899 ;; | |
11900 | |
11901 cygwin* | mingw* | pw32* | cegcc*) | |
11902 version_type=windows | |
11903 shrext_cmds=".dll" | |
11904 need_version=no | |
11905 need_lib_prefix=no | |
11906 | |
11907 case $GCC,$cc_basename in | |
11908 yes,*) | |
11909 # gcc | |
11910 library_names_spec='$libname.dll.a' | |
11911 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11912 postinstall_cmds='base_file=`basename \${file}`~ | |
11913 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11914 dldir=$destdir/`dirname \$dlpath`~ | |
11915 test -d \$dldir || mkdir -p \$dldir~ | |
11916 $install_prog $dir/$dlname \$dldir/$dlname~ | |
11917 chmod a+x \$dldir/$dlname~ | |
11918 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11919 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11920 fi' | |
11921 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11922 dlpath=$dir/\$dldll~ | |
11923 $RM \$dlpath' | |
11924 shlibpath_overrides_runpath=yes | |
11925 | |
11926 case $host_os in | |
11927 cygwin*) | |
11928 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11929 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11930 | |
11931 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
11932 ;; | |
11933 mingw* | cegcc*) | |
11934 # MinGW DLLs use traditional 'lib' prefix | |
11935 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11936 ;; | |
11937 pw32*) | |
11938 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11939 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11940 ;; | |
11941 esac | |
11942 dynamic_linker='Win32 ld.exe' | |
11943 ;; | |
11944 | |
11945 *,cl*) | |
11946 # Native MSVC | |
11947 libname_spec='$name' | |
11948 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11949 library_names_spec='${libname}.dll.lib' | |
11950 | |
11951 case $build_os in | |
11952 mingw*) | |
11953 sys_lib_search_path_spec= | |
11954 lt_save_ifs=$IFS | |
11955 IFS=';' | |
11956 for lt_path in $LIB | |
11957 do | |
11958 IFS=$lt_save_ifs | |
11959 # Let DOS variable expansion print the short 8.3 style file name. | |
11960 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
11961 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
11962 done | |
11963 IFS=$lt_save_ifs | |
11964 # Convert to MSYS style. | |
11965 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
11966 ;; | |
11967 cygwin*) | |
11968 # Convert to unix form, then to dos form, then back to unix form | |
11969 # but this time dos style (no spaces!) so that the unix form looks | |
11970 # like /cygdrive/c/PROGRA~1:/cygdr... | |
11971 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
11972 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
11973 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11974 ;; | |
11975 *) | |
11976 sys_lib_search_path_spec="$LIB" | |
11977 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
11978 # It is most probably a Windows format PATH. | |
11979 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
11980 else | |
11981 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11982 fi | |
11983 # FIXME: find the short name or the path components, as spaces are | |
11984 # common. (e.g. "Program Files" -> "PROGRA~1") | |
11985 ;; | |
11986 esac | |
11987 | |
11988 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11989 postinstall_cmds='base_file=`basename \${file}`~ | |
11990 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11991 dldir=$destdir/`dirname \$dlpath`~ | |
11992 test -d \$dldir || mkdir -p \$dldir~ | |
11993 $install_prog $dir/$dlname \$dldir/$dlname' | |
11994 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11995 dlpath=$dir/\$dldll~ | |
11996 $RM \$dlpath' | |
11997 shlibpath_overrides_runpath=yes | |
11998 dynamic_linker='Win32 link.exe' | |
11999 ;; | |
12000 | |
12001 *) | |
12002 # Assume MSVC wrapper | |
12003 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
12004 dynamic_linker='Win32 ld.exe' | |
12005 ;; | |
12006 esac | |
12007 # FIXME: first we should search . and the directory the executable is in | |
12008 shlibpath_var=PATH | |
12009 ;; | |
12010 | |
12011 darwin* | rhapsody*) | |
12012 dynamic_linker="$host_os dyld" | |
12013 version_type=darwin | |
12014 need_lib_prefix=no | |
12015 need_version=no | |
12016 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
12017 soname_spec='${libname}${release}${major}$shared_ext' | |
12018 shlibpath_overrides_runpath=yes | |
12019 shlibpath_var=DYLD_LIBRARY_PATH | |
12020 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
12021 | |
12022 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
12023 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
12024 ;; | |
12025 | |
12026 dgux*) | |
12027 version_type=linux # correct to gnu/linux during the next big refactor | |
12028 need_lib_prefix=no | |
12029 need_version=no | |
12030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
12031 soname_spec='${libname}${release}${shared_ext}$major' | |
12032 shlibpath_var=LD_LIBRARY_PATH | |
12033 ;; | |
12034 | |
12035 freebsd* | dragonfly*) | |
12036 # DragonFly does not have aout. When/if they implement a new | |
12037 # versioning mechanism, adjust this. | |
12038 if test -x /usr/bin/objformat; then | |
12039 objformat=`/usr/bin/objformat` | |
12040 else | |
12041 case $host_os in | |
12042 freebsd[23].*) objformat=aout ;; | |
12043 *) objformat=elf ;; | |
12044 esac | |
12045 fi | |
12046 version_type=freebsd-$objformat | |
12047 case $version_type in | |
12048 freebsd-elf*) | |
12049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12050 need_version=no | |
12051 need_lib_prefix=no | |
12052 ;; | |
12053 freebsd-*) | |
12054 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
12055 need_version=yes | |
12056 ;; | |
12057 esac | |
12058 shlibpath_var=LD_LIBRARY_PATH | |
12059 case $host_os in | |
12060 freebsd2.*) | |
12061 shlibpath_overrides_runpath=yes | |
12062 ;; | |
12063 freebsd3.[01]* | freebsdelf3.[01]*) | |
12064 shlibpath_overrides_runpath=yes | |
12065 hardcode_into_libs=yes | |
12066 ;; | |
12067 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
12068 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
12069 shlibpath_overrides_runpath=no | |
12070 hardcode_into_libs=yes | |
12071 ;; | |
12072 *) # from 4.6 on, and DragonFly | |
12073 shlibpath_overrides_runpath=yes | |
12074 hardcode_into_libs=yes | |
12075 ;; | |
12076 esac | |
12077 ;; | |
12078 | |
12079 haiku*) | |
12080 version_type=linux # correct to gnu/linux during the next big refactor | |
12081 need_lib_prefix=no | |
12082 need_version=no | |
12083 dynamic_linker="$host_os runtime_loader" | |
12084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
12085 soname_spec='${libname}${release}${shared_ext}$major' | |
12086 shlibpath_var=LIBRARY_PATH | |
12087 shlibpath_overrides_runpath=yes | |
12088 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
12089 hardcode_into_libs=yes | |
12090 ;; | |
12091 | |
12092 hpux9* | hpux10* | hpux11*) | |
12093 # Give a soname corresponding to the major version so that dld.sl refuses to | |
12094 # link against other versions. | |
12095 version_type=sunos | |
12096 need_lib_prefix=no | |
12097 need_version=no | |
12098 case $host_cpu in | |
12099 ia64*) | |
12100 shrext_cmds='.so' | |
12101 hardcode_into_libs=yes | |
12102 dynamic_linker="$host_os dld.so" | |
12103 shlibpath_var=LD_LIBRARY_PATH | |
12104 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
12105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12106 soname_spec='${libname}${release}${shared_ext}$major' | |
12107 if test "X$HPUX_IA64_MODE" = X32; then | |
12108 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
12109 else | |
12110 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
12111 fi | |
12112 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
12113 ;; | |
12114 hppa*64*) | |
12115 shrext_cmds='.sl' | |
12116 hardcode_into_libs=yes | |
12117 dynamic_linker="$host_os dld.sl" | |
12118 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
12119 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
12120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12121 soname_spec='${libname}${release}${shared_ext}$major' | |
12122 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
12123 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
12124 ;; | |
12125 *) | |
12126 shrext_cmds='.sl' | |
12127 dynamic_linker="$host_os dld.sl" | |
12128 shlibpath_var=SHLIB_PATH | |
12129 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
12130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12131 soname_spec='${libname}${release}${shared_ext}$major' | |
12132 ;; | |
12133 esac | |
12134 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
12135 postinstall_cmds='chmod 555 $lib' | |
12136 # or fails outright, so override atomically: | |
12137 install_override_mode=555 | |
12138 ;; | |
12139 | |
12140 interix[3-9]*) | |
12141 version_type=linux # correct to gnu/linux during the next big refactor | |
12142 need_lib_prefix=no | |
12143 need_version=no | |
12144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12145 soname_spec='${libname}${release}${shared_ext}$major' | |
12146 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
12147 shlibpath_var=LD_LIBRARY_PATH | |
12148 shlibpath_overrides_runpath=no | |
12149 hardcode_into_libs=yes | |
12150 ;; | |
12151 | |
12152 irix5* | irix6* | nonstopux*) | |
12153 case $host_os in | |
12154 nonstopux*) version_type=nonstopux ;; | |
12155 *) | |
12156 if test "$lt_cv_prog_gnu_ld" = yes; then | |
12157 version_type=linux # correct to gnu/linux during the next big refactor | |
12158 else | |
12159 version_type=irix | |
12160 fi ;; | |
12161 esac | |
12162 need_lib_prefix=no | |
12163 need_version=no | |
12164 soname_spec='${libname}${release}${shared_ext}$major' | |
12165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12166 case $host_os in | |
12167 irix5* | nonstopux*) | |
12168 libsuff= shlibsuff= | |
12169 ;; | |
12170 *) | |
12171 case $LD in # libtool.m4 will add one of these switches to LD | |
12172 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
12173 libsuff= shlibsuff= libmagic=32-bit;; | |
12174 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
12175 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
12176 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
12177 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
12178 *) libsuff= shlibsuff= libmagic=never-match;; | |
12179 esac | |
12180 ;; | |
12181 esac | |
12182 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
12183 shlibpath_overrides_runpath=no | |
12184 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
12185 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
12186 hardcode_into_libs=yes | |
12187 ;; | |
12188 | |
12189 # No shared lib support for Linux oldld, aout, or coff. | |
12190 linux*oldld* | linux*aout* | linux*coff*) | |
12191 dynamic_linker=no | |
12192 ;; | |
12193 | |
12194 # This must be glibc/ELF. | |
12195 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
12196 version_type=linux # correct to gnu/linux during the next big refactor | |
12197 need_lib_prefix=no | |
12198 need_version=no | |
12199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12200 soname_spec='${libname}${release}${shared_ext}$major' | |
12201 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
12202 shlibpath_var=LD_LIBRARY_PATH | |
12203 shlibpath_overrides_runpath=no | |
12204 | |
12205 # Some binutils ld are patched to set DT_RUNPATH | |
12206 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
12207 $as_echo_n "(cached) " >&6 | |
12208 else | |
12209 lt_cv_shlibpath_overrides_runpath=no | |
12210 save_LDFLAGS=$LDFLAGS | |
12211 save_libdir=$libdir | |
12212 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
12213 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
12214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12215 /* end confdefs.h. */ | |
12216 | |
12217 int | |
12218 main () | |
12219 { | |
12220 | |
12221 ; | |
12222 return 0; | |
12223 } | |
12224 _ACEOF | |
12225 if ac_fn_c_try_link "$LINENO"; then : | |
12226 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
12227 lt_cv_shlibpath_overrides_runpath=yes | |
12228 fi | |
12229 fi | |
12230 rm -f core conftest.err conftest.$ac_objext \ | |
12231 conftest$ac_exeext conftest.$ac_ext | |
12232 LDFLAGS=$save_LDFLAGS | |
12233 libdir=$save_libdir | |
12234 | |
12235 fi | |
12236 | |
12237 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
12238 | |
12239 # This implies no fast_install, which is unacceptable. | |
12240 # Some rework will be needed to allow for fast_install | |
12241 # before this can be enabled. | |
12242 hardcode_into_libs=yes | |
12243 | |
12244 # Append ld.so.conf contents to the search path | |
12245 if test -f /etc/ld.so.conf; then | |
12246 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' ' '` | |
12247 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
12248 fi | |
12249 | |
12250 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
12251 # powerpc, because MkLinux only supported shared libraries with the | |
12252 # GNU dynamic linker. Since this was broken with cross compilers, | |
12253 # most powerpc-linux boxes support dynamic linking these days and | |
12254 # people can always --disable-shared, the test was removed, and we | |
12255 # assume the GNU/Linux dynamic linker is in use. | |
12256 dynamic_linker='GNU/Linux ld.so' | |
12257 ;; | |
12258 | |
12259 netbsdelf*-gnu) | |
12260 version_type=linux | |
12261 need_lib_prefix=no | |
12262 need_version=no | |
12263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12264 soname_spec='${libname}${release}${shared_ext}$major' | |
12265 shlibpath_var=LD_LIBRARY_PATH | |
12266 shlibpath_overrides_runpath=no | |
12267 hardcode_into_libs=yes | |
12268 dynamic_linker='NetBSD ld.elf_so' | |
12269 ;; | |
12270 | |
12271 netbsd*) | |
12272 version_type=sunos | |
12273 need_lib_prefix=no | |
12274 need_version=no | |
12275 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
12276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12277 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12278 dynamic_linker='NetBSD (a.out) ld.so' | |
12279 else | |
12280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12281 soname_spec='${libname}${release}${shared_ext}$major' | |
12282 dynamic_linker='NetBSD ld.elf_so' | |
12283 fi | |
12284 shlibpath_var=LD_LIBRARY_PATH | |
12285 shlibpath_overrides_runpath=yes | |
12286 hardcode_into_libs=yes | |
12287 ;; | |
12288 | |
12289 newsos6) | |
12290 version_type=linux # correct to gnu/linux during the next big refactor | |
12291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12292 shlibpath_var=LD_LIBRARY_PATH | |
12293 shlibpath_overrides_runpath=yes | |
12294 ;; | |
12295 | |
12296 *nto* | *qnx*) | |
12297 version_type=qnx | |
12298 need_lib_prefix=no | |
12299 need_version=no | |
12300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12301 soname_spec='${libname}${release}${shared_ext}$major' | |
12302 shlibpath_var=LD_LIBRARY_PATH | |
12303 shlibpath_overrides_runpath=no | |
12304 hardcode_into_libs=yes | |
12305 dynamic_linker='ldqnx.so' | |
12306 ;; | |
12307 | |
12308 openbsd*) | |
12309 version_type=sunos | |
12310 sys_lib_dlsearch_path_spec="/usr/lib" | |
12311 need_lib_prefix=no | |
12312 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
12313 case $host_os in | |
12314 openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
12315 *) need_version=no ;; | |
12316 esac | |
12317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12318 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12319 shlibpath_var=LD_LIBRARY_PATH | |
12320 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
12321 case $host_os in | |
12322 openbsd2.[89] | openbsd2.[89].*) | |
12323 shlibpath_overrides_runpath=no | |
12324 ;; | |
12325 *) | |
12326 shlibpath_overrides_runpath=yes | |
12327 ;; | |
12328 esac | |
12329 else | |
12330 shlibpath_overrides_runpath=yes | |
12331 fi | |
12332 ;; | |
12333 | |
12334 os2*) | |
12335 libname_spec='$name' | |
12336 shrext_cmds=".dll" | |
12337 need_lib_prefix=no | |
12338 library_names_spec='$libname${shared_ext} $libname.a' | |
12339 dynamic_linker='OS/2 ld.exe' | |
12340 shlibpath_var=LIBPATH | |
12341 ;; | |
12342 | |
12343 osf3* | osf4* | osf5*) | |
12344 version_type=osf | |
12345 need_lib_prefix=no | |
12346 need_version=no | |
12347 soname_spec='${libname}${release}${shared_ext}$major' | |
12348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12349 shlibpath_var=LD_LIBRARY_PATH | |
12350 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
12351 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
12352 ;; | |
12353 | |
12354 rdos*) | |
12355 dynamic_linker=no | |
12356 ;; | |
12357 | |
12358 solaris*) | |
12359 version_type=linux # correct to gnu/linux during the next big refactor | |
12360 need_lib_prefix=no | |
12361 need_version=no | |
12362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12363 soname_spec='${libname}${release}${shared_ext}$major' | |
12364 shlibpath_var=LD_LIBRARY_PATH | |
12365 shlibpath_overrides_runpath=yes | |
12366 hardcode_into_libs=yes | |
12367 # ldd complains unless libraries are executable | |
12368 postinstall_cmds='chmod +x $lib' | |
12369 ;; | |
12370 | |
12371 sunos4*) | |
12372 version_type=sunos | |
12373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12374 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
12375 shlibpath_var=LD_LIBRARY_PATH | |
12376 shlibpath_overrides_runpath=yes | |
12377 if test "$with_gnu_ld" = yes; then | |
12378 need_lib_prefix=no | |
12379 fi | |
12380 need_version=yes | |
12381 ;; | |
12382 | |
12383 sysv4 | sysv4.3*) | |
12384 version_type=linux # correct to gnu/linux during the next big refactor | |
12385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12386 soname_spec='${libname}${release}${shared_ext}$major' | |
12387 shlibpath_var=LD_LIBRARY_PATH | |
12388 case $host_vendor in | |
12389 sni) | |
12390 shlibpath_overrides_runpath=no | |
12391 need_lib_prefix=no | |
12392 runpath_var=LD_RUN_PATH | |
12393 ;; | |
12394 siemens) | |
12395 need_lib_prefix=no | |
12396 ;; | |
12397 motorola) | |
12398 need_lib_prefix=no | |
12399 need_version=no | |
12400 shlibpath_overrides_runpath=no | |
12401 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
12402 ;; | |
12403 esac | |
12404 ;; | |
12405 | |
12406 sysv4*MP*) | |
12407 if test -d /usr/nec ;then | |
12408 version_type=linux # correct to gnu/linux during the next big refactor | |
12409 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
12410 soname_spec='$libname${shared_ext}.$major' | |
12411 shlibpath_var=LD_LIBRARY_PATH | |
12412 fi | |
12413 ;; | |
12414 | |
12415 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
12416 version_type=freebsd-elf | |
12417 need_lib_prefix=no | |
12418 need_version=no | |
12419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12420 soname_spec='${libname}${release}${shared_ext}$major' | |
12421 shlibpath_var=LD_LIBRARY_PATH | |
12422 shlibpath_overrides_runpath=yes | |
12423 hardcode_into_libs=yes | |
12424 if test "$with_gnu_ld" = yes; then | |
12425 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
12426 else | |
12427 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
12428 case $host_os in | |
12429 sco3.2v5*) | |
12430 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
12431 ;; | |
12432 esac | |
12433 fi | |
12434 sys_lib_dlsearch_path_spec='/usr/lib' | |
12435 ;; | |
12436 | |
12437 tpf*) | |
12438 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
12439 version_type=linux # correct to gnu/linux during the next big refactor | |
12440 need_lib_prefix=no | |
12441 need_version=no | |
12442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12443 shlibpath_var=LD_LIBRARY_PATH | |
12444 shlibpath_overrides_runpath=no | |
12445 hardcode_into_libs=yes | |
12446 ;; | |
12447 | |
12448 uts4*) | |
12449 version_type=linux # correct to gnu/linux during the next big refactor | |
12450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12451 soname_spec='${libname}${release}${shared_ext}$major' | |
12452 shlibpath_var=LD_LIBRARY_PATH | |
12453 ;; | |
12454 | |
12455 *) | |
12456 dynamic_linker=no | |
12457 ;; | |
12458 esac | |
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
12460 $as_echo "$dynamic_linker" >&6; } | |
12461 test "$dynamic_linker" = no && can_build_shared=no | |
12462 | |
12463 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
12464 if test "$GCC" = yes; then | |
12465 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
12466 fi | |
12467 | |
12468 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
12469 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
12470 fi | |
12471 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
12472 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
12473 fi | |
12474 | |
12475 | |
12476 | |
12477 | |
12478 | |
12479 | |
12480 | |
12481 | |
12482 | |
12483 | |
12484 | |
12485 | |
12486 | |
12487 | |
12488 | |
12489 | |
12490 | |
12491 | |
12492 | |
12493 | |
12494 | |
12495 | |
12496 | |
12497 | |
12498 | |
12499 | |
12500 | |
12501 | |
12502 | |
12503 | |
12504 | |
12505 | |
12506 | |
12507 | |
12508 | |
12509 | |
12510 | |
12511 | |
12512 | |
12513 | |
12514 | |
12515 | |
12516 | |
12517 | |
12518 | |
12519 | |
12520 | |
12521 | |
12522 | |
12523 | |
12524 | |
12525 | |
12526 | |
12527 | |
12528 | |
12529 | |
12530 | |
12531 | |
12532 | |
12533 | |
12534 | |
12535 | |
12536 | |
12537 | |
12538 | |
12539 | |
12540 | |
12541 | |
12542 | |
12543 | |
12544 | |
12545 | |
12546 | |
12547 | |
12548 | |
12549 | |
12550 | |
12551 | |
12552 | |
12553 | |
12554 | |
12555 | |
12556 | |
12557 | |
12558 | |
12559 | |
12560 | |
12561 | |
12562 | |
12563 | |
12564 | |
12565 | |
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
12567 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
12568 hardcode_action= | |
12569 if test -n "$hardcode_libdir_flag_spec" || | |
12570 test -n "$runpath_var" || | |
12571 test "X$hardcode_automatic" = "Xyes" ; then | |
12572 | |
12573 # We can hardcode non-existent directories. | |
12574 if test "$hardcode_direct" != no && | |
12575 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
12576 # have to relink, otherwise we might link with an installed library | |
12577 # when we should be linking with a yet-to-be-installed one | |
12578 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
12579 test "$hardcode_minus_L" != no; then | |
12580 # Linking always hardcodes the temporary library directory. | |
12581 hardcode_action=relink | |
12582 else | |
12583 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
12584 hardcode_action=immediate | |
12585 fi | |
12586 else | |
12587 # We cannot hardcode anything, or else we can only hardcode existing | |
12588 # directories. | |
12589 hardcode_action=unsupported | |
12590 fi | |
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
12592 $as_echo "$hardcode_action" >&6; } | |
12593 | |
12594 if test "$hardcode_action" = relink || | |
12595 test "$inherit_rpath" = yes; then | |
12596 # Fast installation is not supported | |
12597 enable_fast_install=no | |
12598 elif test "$shlibpath_overrides_runpath" = yes || | |
12599 test "$enable_shared" = no; then | |
12600 # Fast installation is not necessary | |
12601 enable_fast_install=needless | |
12602 fi | |
12603 | |
12604 | |
12605 | |
12606 | |
12607 | |
12608 | |
12609 if test "x$enable_dlopen" != xyes; then | |
12610 enable_dlopen=unknown | |
12611 enable_dlopen_self=unknown | |
12612 enable_dlopen_self_static=unknown | |
12613 else | |
12614 lt_cv_dlopen=no | |
12615 lt_cv_dlopen_libs= | |
12616 | |
12617 case $host_os in | |
12618 beos*) | |
12619 lt_cv_dlopen="load_add_on" | |
12620 lt_cv_dlopen_libs= | |
12621 lt_cv_dlopen_self=yes | |
12622 ;; | |
12623 | |
12624 mingw* | pw32* | cegcc*) | |
12625 lt_cv_dlopen="LoadLibrary" | |
12626 lt_cv_dlopen_libs= | |
12627 ;; | |
12628 | |
12629 cygwin*) | |
12630 lt_cv_dlopen="dlopen" | |
12631 lt_cv_dlopen_libs= | |
12632 ;; | |
12633 | |
12634 darwin*) | |
12635 # if libdl is installed we need to link against it | |
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
12637 $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
12638 if ${ac_cv_lib_dl_dlopen+:} false; then : | |
12639 $as_echo_n "(cached) " >&6 | |
12640 else | |
12641 ac_check_lib_save_LIBS=$LIBS | |
12642 LIBS="-ldl $LIBS" | |
12643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12644 /* end confdefs.h. */ | |
12645 | |
12646 /* Override any GCC internal prototype to avoid an error. | |
12647 Use char because int might match the return type of a GCC | |
12648 builtin and then its argument prototype would still apply. */ | |
12649 #ifdef __cplusplus | |
12650 extern "C" | |
12651 #endif | |
12652 char dlopen (); | |
12653 int | |
12654 main () | |
12655 { | |
12656 return dlopen (); | |
12657 ; | |
12658 return 0; | |
12659 } | |
12660 _ACEOF | |
12661 if ac_fn_c_try_link "$LINENO"; then : | |
12662 ac_cv_lib_dl_dlopen=yes | |
12663 else | |
12664 ac_cv_lib_dl_dlopen=no | |
12665 fi | |
12666 rm -f core conftest.err conftest.$ac_objext \ | |
12667 conftest$ac_exeext conftest.$ac_ext | |
12668 LIBS=$ac_check_lib_save_LIBS | |
12669 fi | |
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
12671 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12672 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
12673 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
12674 else | |
12675 | |
12676 lt_cv_dlopen="dyld" | |
12677 lt_cv_dlopen_libs= | |
12678 lt_cv_dlopen_self=yes | |
12679 | |
12680 fi | |
12681 | |
12682 ;; | |
12683 | |
12684 *) | |
12685 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
12686 if test "x$ac_cv_func_shl_load" = xyes; then : | |
12687 lt_cv_dlopen="shl_load" | |
12688 else | |
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
12690 $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
12691 if ${ac_cv_lib_dld_shl_load+:} false; then : | |
12692 $as_echo_n "(cached) " >&6 | |
12693 else | |
12694 ac_check_lib_save_LIBS=$LIBS | |
12695 LIBS="-ldld $LIBS" | |
12696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12697 /* end confdefs.h. */ | |
12698 | |
12699 /* Override any GCC internal prototype to avoid an error. | |
12700 Use char because int might match the return type of a GCC | |
12701 builtin and then its argument prototype would still apply. */ | |
12702 #ifdef __cplusplus | |
12703 extern "C" | |
12704 #endif | |
12705 char shl_load (); | |
12706 int | |
12707 main () | |
12708 { | |
12709 return shl_load (); | |
12710 ; | |
12711 return 0; | |
12712 } | |
12713 _ACEOF | |
12714 if ac_fn_c_try_link "$LINENO"; then : | |
12715 ac_cv_lib_dld_shl_load=yes | |
12716 else | |
12717 ac_cv_lib_dld_shl_load=no | |
12718 fi | |
12719 rm -f core conftest.err conftest.$ac_objext \ | |
12720 conftest$ac_exeext conftest.$ac_ext | |
12721 LIBS=$ac_check_lib_save_LIBS | |
12722 fi | |
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
12724 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
12725 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
12726 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
12727 else | |
12728 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
12729 if test "x$ac_cv_func_dlopen" = xyes; then : | |
12730 lt_cv_dlopen="dlopen" | |
12731 else | |
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
12733 $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
12734 if ${ac_cv_lib_dl_dlopen+:} false; then : | |
12735 $as_echo_n "(cached) " >&6 | |
12736 else | |
12737 ac_check_lib_save_LIBS=$LIBS | |
12738 LIBS="-ldl $LIBS" | |
12739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12740 /* end confdefs.h. */ | |
12741 | |
12742 /* Override any GCC internal prototype to avoid an error. | |
12743 Use char because int might match the return type of a GCC | |
12744 builtin and then its argument prototype would still apply. */ | |
12745 #ifdef __cplusplus | |
12746 extern "C" | |
12747 #endif | |
12748 char dlopen (); | |
12749 int | |
12750 main () | |
12751 { | |
12752 return dlopen (); | |
12753 ; | |
12754 return 0; | |
12755 } | |
12756 _ACEOF | |
12757 if ac_fn_c_try_link "$LINENO"; then : | |
12758 ac_cv_lib_dl_dlopen=yes | |
12759 else | |
12760 ac_cv_lib_dl_dlopen=no | |
12761 fi | |
12762 rm -f core conftest.err conftest.$ac_objext \ | |
12763 conftest$ac_exeext conftest.$ac_ext | |
12764 LIBS=$ac_check_lib_save_LIBS | |
12765 fi | |
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
12767 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12768 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
12769 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
12770 else | |
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
12772 $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
12773 if ${ac_cv_lib_svld_dlopen+:} false; then : | |
12774 $as_echo_n "(cached) " >&6 | |
12775 else | |
12776 ac_check_lib_save_LIBS=$LIBS | |
12777 LIBS="-lsvld $LIBS" | |
12778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12779 /* end confdefs.h. */ | |
12780 | |
12781 /* Override any GCC internal prototype to avoid an error. | |
12782 Use char because int might match the return type of a GCC | |
12783 builtin and then its argument prototype would still apply. */ | |
12784 #ifdef __cplusplus | |
12785 extern "C" | |
12786 #endif | |
12787 char dlopen (); | |
12788 int | |
12789 main () | |
12790 { | |
12791 return dlopen (); | |
12792 ; | |
12793 return 0; | |
12794 } | |
12795 _ACEOF | |
12796 if ac_fn_c_try_link "$LINENO"; then : | |
12797 ac_cv_lib_svld_dlopen=yes | |
12798 else | |
12799 ac_cv_lib_svld_dlopen=no | |
12800 fi | |
12801 rm -f core conftest.err conftest.$ac_objext \ | |
12802 conftest$ac_exeext conftest.$ac_ext | |
12803 LIBS=$ac_check_lib_save_LIBS | |
12804 fi | |
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
12806 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
12807 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
12808 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
12809 else | |
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
12811 $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
12812 if ${ac_cv_lib_dld_dld_link+:} false; then : | |
12813 $as_echo_n "(cached) " >&6 | |
12814 else | |
12815 ac_check_lib_save_LIBS=$LIBS | |
12816 LIBS="-ldld $LIBS" | |
12817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12818 /* end confdefs.h. */ | |
12819 | |
12820 /* Override any GCC internal prototype to avoid an error. | |
12821 Use char because int might match the return type of a GCC | |
12822 builtin and then its argument prototype would still apply. */ | |
12823 #ifdef __cplusplus | |
12824 extern "C" | |
12825 #endif | |
12826 char dld_link (); | |
12827 int | |
12828 main () | |
12829 { | |
12830 return dld_link (); | |
12831 ; | |
12832 return 0; | |
12833 } | |
12834 _ACEOF | |
12835 if ac_fn_c_try_link "$LINENO"; then : | |
12836 ac_cv_lib_dld_dld_link=yes | |
12837 else | |
12838 ac_cv_lib_dld_dld_link=no | |
12839 fi | |
12840 rm -f core conftest.err conftest.$ac_objext \ | |
12841 conftest$ac_exeext conftest.$ac_ext | |
12842 LIBS=$ac_check_lib_save_LIBS | |
12843 fi | |
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
12845 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
12846 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
12847 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
12848 fi | |
12849 | |
12850 | |
12851 fi | |
12852 | |
12853 | |
12854 fi | |
12855 | |
12856 | |
12857 fi | |
12858 | |
12859 | |
12860 fi | |
12861 | |
12862 | |
12863 fi | |
12864 | |
12865 ;; | |
12866 esac | |
12867 | |
12868 if test "x$lt_cv_dlopen" != xno; then | |
12869 enable_dlopen=yes | |
12870 else | |
12871 enable_dlopen=no | |
12872 fi | |
12873 | |
12874 case $lt_cv_dlopen in | |
12875 dlopen) | |
12876 save_CPPFLAGS="$CPPFLAGS" | |
12877 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
12878 | |
12879 save_LDFLAGS="$LDFLAGS" | |
12880 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
12881 | |
12882 save_LIBS="$LIBS" | |
12883 LIBS="$lt_cv_dlopen_libs $LIBS" | |
12884 | |
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
12886 $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
12887 if ${lt_cv_dlopen_self+:} false; then : | |
12888 $as_echo_n "(cached) " >&6 | |
12889 else | |
12890 if test "$cross_compiling" = yes; then : | |
12891 lt_cv_dlopen_self=cross | |
12892 else | |
12893 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12894 lt_status=$lt_dlunknown | |
12895 cat > conftest.$ac_ext <<_LT_EOF | |
12896 #line $LINENO "configure" | |
12897 #include "confdefs.h" | |
12898 | |
12899 #if HAVE_DLFCN_H | |
12900 #include <dlfcn.h> | |
12901 #endif | |
12902 | |
12903 #include <stdio.h> | |
12904 | |
12905 #ifdef RTLD_GLOBAL | |
12906 # define LT_DLGLOBAL RTLD_GLOBAL | |
12907 #else | |
12908 # ifdef DL_GLOBAL | |
12909 # define LT_DLGLOBAL DL_GLOBAL | |
12910 # else | |
12911 # define LT_DLGLOBAL 0 | |
12912 # endif | |
12913 #endif | |
12914 | |
12915 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12916 find out it does not work in some platform. */ | |
12917 #ifndef LT_DLLAZY_OR_NOW | |
12918 # ifdef RTLD_LAZY | |
12919 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12920 # else | |
12921 # ifdef DL_LAZY | |
12922 # define LT_DLLAZY_OR_NOW DL_LAZY | |
12923 # else | |
12924 # ifdef RTLD_NOW | |
12925 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12926 # else | |
12927 # ifdef DL_NOW | |
12928 # define LT_DLLAZY_OR_NOW DL_NOW | |
12929 # else | |
12930 # define LT_DLLAZY_OR_NOW 0 | |
12931 # endif | |
12932 # endif | |
12933 # endif | |
12934 # endif | |
12935 #endif | |
12936 | |
12937 /* When -fvisbility=hidden is used, assume the code has been annotated | |
12938 correspondingly for the symbols needed. */ | |
12939 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12940 int fnord () __attribute__((visibility("default"))); | |
12941 #endif | |
12942 | |
12943 int fnord () { return 42; } | |
12944 int main () | |
12945 { | |
12946 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12947 int status = $lt_dlunknown; | |
12948 | |
12949 if (self) | |
12950 { | |
12951 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12952 else | |
12953 { | |
12954 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12955 else puts (dlerror ()); | |
12956 } | |
12957 /* dlclose (self); */ | |
12958 } | |
12959 else | |
12960 puts (dlerror ()); | |
12961 | |
12962 return status; | |
12963 } | |
12964 _LT_EOF | |
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; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12970 (./conftest; exit; ) >&5 2>/dev/null | |
12971 lt_status=$? | |
12972 case x$lt_status in | |
12973 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12974 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12975 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12976 esac | |
12977 else : | |
12978 # compilation failed | |
12979 lt_cv_dlopen_self=no | |
12980 fi | |
12981 fi | |
12982 rm -fr conftest* | |
12983 | |
12984 | |
12985 fi | |
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
12987 $as_echo "$lt_cv_dlopen_self" >&6; } | |
12988 | |
12989 if test "x$lt_cv_dlopen_self" = xyes; then | |
12990 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
12992 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
12993 if ${lt_cv_dlopen_self_static+:} false; then : | |
12994 $as_echo_n "(cached) " >&6 | |
12995 else | |
12996 if test "$cross_compiling" = yes; then : | |
12997 lt_cv_dlopen_self_static=cross | |
12998 else | |
12999 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
13000 lt_status=$lt_dlunknown | |
13001 cat > conftest.$ac_ext <<_LT_EOF | |
13002 #line $LINENO "configure" | |
13003 #include "confdefs.h" | |
13004 | |
13005 #if HAVE_DLFCN_H | |
13006 #include <dlfcn.h> | |
13007 #endif | |
13008 | |
13009 #include <stdio.h> | |
13010 | |
13011 #ifdef RTLD_GLOBAL | |
13012 # define LT_DLGLOBAL RTLD_GLOBAL | |
13013 #else | |
13014 # ifdef DL_GLOBAL | |
13015 # define LT_DLGLOBAL DL_GLOBAL | |
13016 # else | |
13017 # define LT_DLGLOBAL 0 | |
13018 # endif | |
13019 #endif | |
13020 | |
13021 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
13022 find out it does not work in some platform. */ | |
13023 #ifndef LT_DLLAZY_OR_NOW | |
13024 # ifdef RTLD_LAZY | |
13025 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
13026 # else | |
13027 # ifdef DL_LAZY | |
13028 # define LT_DLLAZY_OR_NOW DL_LAZY | |
13029 # else | |
13030 # ifdef RTLD_NOW | |
13031 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
13032 # else | |
13033 # ifdef DL_NOW | |
13034 # define LT_DLLAZY_OR_NOW DL_NOW | |
13035 # else | |
13036 # define LT_DLLAZY_OR_NOW 0 | |
13037 # endif | |
13038 # endif | |
13039 # endif | |
13040 # endif | |
13041 #endif | |
13042 | |
13043 /* When -fvisbility=hidden is used, assume the code has been annotated | |
13044 correspondingly for the symbols needed. */ | |
13045 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
13046 int fnord () __attribute__((visibility("default"))); | |
13047 #endif | |
13048 | |
13049 int fnord () { return 42; } | |
13050 int main () | |
13051 { | |
13052 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
13053 int status = $lt_dlunknown; | |
13054 | |
13055 if (self) | |
13056 { | |
13057 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
13058 else | |
13059 { | |
13060 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
13061 else puts (dlerror ()); | |
13062 } | |
13063 /* dlclose (self); */ | |
13064 } | |
13065 else | |
13066 puts (dlerror ()); | |
13067 | |
13068 return status; | |
13069 } | |
13070 _LT_EOF | |
13071 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
13072 (eval $ac_link) 2>&5 | |
13073 ac_status=$? | |
13074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13075 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
13076 (./conftest; exit; ) >&5 2>/dev/null | |
13077 lt_status=$? | |
13078 case x$lt_status in | |
13079 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
13080 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
13081 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
13082 esac | |
13083 else : | |
13084 # compilation failed | |
13085 lt_cv_dlopen_self_static=no | |
13086 fi | |
13087 fi | |
13088 rm -fr conftest* | |
13089 | |
13090 | |
13091 fi | |
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
13093 $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
13094 fi | |
13095 | |
13096 CPPFLAGS="$save_CPPFLAGS" | |
13097 LDFLAGS="$save_LDFLAGS" | |
13098 LIBS="$save_LIBS" | |
13099 ;; | |
13100 esac | |
13101 | |
13102 case $lt_cv_dlopen_self in | |
13103 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
13104 *) enable_dlopen_self=unknown ;; | |
13105 esac | |
13106 | |
13107 case $lt_cv_dlopen_self_static in | |
13108 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
13109 *) enable_dlopen_self_static=unknown ;; | |
13110 esac | |
13111 fi | |
13112 | |
13113 | |
13114 | |
13115 | |
13116 | |
13117 | |
13118 | |
13119 | |
13120 | |
13121 | |
13122 | |
13123 | |
13124 | |
13125 | |
13126 | |
13127 | |
13128 | |
13129 striplib= | |
13130 old_striplib= | |
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
13132 $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
13133 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
13134 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
13135 test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13137 $as_echo "yes" >&6; } | |
13138 else | |
13139 # FIXME - insert some real tests, host_os isn't really good enough | |
13140 case $host_os in | |
13141 darwin*) | |
13142 if test -n "$STRIP" ; then | |
13143 striplib="$STRIP -x" | |
13144 old_striplib="$STRIP -S" | |
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13146 $as_echo "yes" >&6; } | |
13147 else | |
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13149 $as_echo "no" >&6; } | |
13150 fi | |
13151 ;; | |
13152 *) | |
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13154 $as_echo "no" >&6; } | |
13155 ;; | |
13156 esac | |
13157 fi | |
13158 | |
13159 | |
13160 | |
13161 | |
13162 | |
13163 | |
13164 | |
13165 | |
13166 | |
13167 | |
13168 | |
13169 | |
13170 # Report which library types will actually be built | |
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
13172 $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
13174 $as_echo "$can_build_shared" >&6; } | |
13175 | |
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
13177 $as_echo_n "checking whether to build shared libraries... " >&6; } | |
13178 test "$can_build_shared" = "no" && enable_shared=no | |
13179 | |
13180 # On AIX, shared libraries and static libraries use the same namespace, and | |
13181 # are all built from PIC. | |
13182 case $host_os in | |
13183 aix3*) | |
13184 test "$enable_shared" = yes && enable_static=no | |
13185 if test -n "$RANLIB"; then | |
13186 archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
13187 postinstall_cmds='$RANLIB $lib' | |
13188 fi | |
13189 ;; | |
13190 | |
13191 aix[4-9]*) | |
13192 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
13193 test "$enable_shared" = yes && enable_static=no | |
13194 fi | |
13195 ;; | |
13196 esac | |
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
13198 $as_echo "$enable_shared" >&6; } | |
13199 | |
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
13201 $as_echo_n "checking whether to build static libraries... " >&6; } | |
13202 # Make sure either enable_shared or enable_static is yes. | |
13203 test "$enable_shared" = yes || enable_static=yes | |
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
13205 $as_echo "$enable_static" >&6; } | |
13206 | |
13207 | |
13208 | |
13209 | |
13210 fi | |
13211 ac_ext=c | |
13212 ac_cpp='$CPP $CPPFLAGS' | |
13213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13215 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13216 | |
13217 CC="$lt_save_CC" | |
13218 | |
13219 | |
13220 | |
13221 | |
13222 | |
13223 | |
13224 | |
13225 | |
13226 | |
13227 | |
13228 | |
13229 | |
13230 | |
13231 | |
13232 | |
13233 ac_config_commands="$ac_config_commands libtool" | |
13234 | |
13235 | |
13236 | |
13237 | |
13238 # Only expand once: | |
13239 | |
13240 | |
13241 | |
13242 # Extract the first word of "ocamlbuild", so it can be a program name with args. | |
13243 set dummy ocamlbuild; ac_word=$2 | |
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13245 $as_echo_n "checking for $ac_word... " >&6; } | |
13246 if ${ac_cv_prog_OCAMLBUILD+:} false; then : | |
13247 $as_echo_n "(cached) " >&6 | |
13248 else | |
13249 if test -n "$OCAMLBUILD"; then | |
13250 ac_cv_prog_OCAMLBUILD="$OCAMLBUILD" # Let the user override the test. | |
13251 else | |
13252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13253 for as_dir in $PATH | |
13254 do | |
13255 IFS=$as_save_IFS | |
13256 test -z "$as_dir" && as_dir=. | |
13257 for ac_exec_ext in '' $ac_executable_extensions; do | |
13258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13259 ac_cv_prog_OCAMLBUILD="ocamlbuild" | |
13260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13261 break 2 | |
13262 fi | |
13263 done | |
13264 done | |
13265 IFS=$as_save_IFS | |
13266 | |
13267 fi | |
13268 fi | |
13269 OCAMLBUILD=$ac_cv_prog_OCAMLBUILD | |
13270 if test -n "$OCAMLBUILD"; then | |
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLBUILD" >&5 | |
13272 $as_echo "$OCAMLBUILD" >&6; } | |
13273 else | |
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13275 $as_echo "no" >&6; } | |
13276 fi | |
13277 | |
13278 | |
13279 | |
13280 | |
13281 # Check whether --enable-mpi was given. | |
13282 if test "${enable_mpi+set}" = set; then : | |
13283 enableval=$enable_mpi; enable_mpi=$enableval | |
13284 else | |
13285 enable_mpi=no | |
13286 fi | |
13287 | |
13288 | |
13289 if test "$enable_mpi" = "yes"; then | |
13290 if test $PRECISION = q; then | |
13291 as_fn_error $? "quad precision is not supported in MPI" "$LINENO" 5 | |
13292 fi | |
13293 | |
13294 | |
13295 | |
13296 | |
13297 | |
13298 for ac_prog in mpicc hcc mpcc mpcc_r mpxlc cmpicc | |
13299 do | |
13300 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13301 set dummy $ac_prog; ac_word=$2 | |
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13303 $as_echo_n "checking for $ac_word... " >&6; } | |
13304 if ${ac_cv_prog_MPICC+:} false; then : | |
13305 $as_echo_n "(cached) " >&6 | |
13306 else | |
13307 if test -n "$MPICC"; then | |
13308 ac_cv_prog_MPICC="$MPICC" # Let the user override the test. | |
13309 else | |
13310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13311 for as_dir in $PATH | |
13312 do | |
13313 IFS=$as_save_IFS | |
13314 test -z "$as_dir" && as_dir=. | |
13315 for ac_exec_ext in '' $ac_executable_extensions; do | |
13316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13317 ac_cv_prog_MPICC="$ac_prog" | |
13318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13319 break 2 | |
13320 fi | |
13321 done | |
13322 done | |
13323 IFS=$as_save_IFS | |
13324 | |
13325 fi | |
13326 fi | |
13327 MPICC=$ac_cv_prog_MPICC | |
13328 if test -n "$MPICC"; then | |
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5 | |
13330 $as_echo "$MPICC" >&6; } | |
13331 else | |
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13333 $as_echo "no" >&6; } | |
13334 fi | |
13335 | |
13336 | |
13337 test -n "$MPICC" && break | |
13338 done | |
13339 test -n "$MPICC" || MPICC="$CC" | |
13340 | |
13341 acx_mpi_save_CC="$CC" | |
13342 CC="$MPICC" | |
13343 | |
13344 | |
13345 | |
13346 if test x = x"$MPILIBS"; then | |
13347 ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init" | |
13348 if test "x$ac_cv_func_MPI_Init" = xyes; then : | |
13349 MPILIBS=" " | |
13350 fi | |
13351 | |
13352 fi | |
13353 if test x = x"$MPILIBS"; then | |
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5 | |
13355 $as_echo_n "checking for MPI_Init in -lmpi... " >&6; } | |
13356 if ${ac_cv_lib_mpi_MPI_Init+:} false; then : | |
13357 $as_echo_n "(cached) " >&6 | |
13358 else | |
13359 ac_check_lib_save_LIBS=$LIBS | |
13360 LIBS="-lmpi $LIBS" | |
13361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13362 /* end confdefs.h. */ | |
13363 | |
13364 /* Override any GCC internal prototype to avoid an error. | |
13365 Use char because int might match the return type of a GCC | |
13366 builtin and then its argument prototype would still apply. */ | |
13367 #ifdef __cplusplus | |
13368 extern "C" | |
13369 #endif | |
13370 char MPI_Init (); | |
13371 int | |
13372 main () | |
13373 { | |
13374 return MPI_Init (); | |
13375 ; | |
13376 return 0; | |
13377 } | |
13378 _ACEOF | |
13379 if ac_fn_c_try_link "$LINENO"; then : | |
13380 ac_cv_lib_mpi_MPI_Init=yes | |
13381 else | |
13382 ac_cv_lib_mpi_MPI_Init=no | |
13383 fi | |
13384 rm -f core conftest.err conftest.$ac_objext \ | |
13385 conftest$ac_exeext conftest.$ac_ext | |
13386 LIBS=$ac_check_lib_save_LIBS | |
13387 fi | |
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5 | |
13389 $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; } | |
13390 if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then : | |
13391 MPILIBS="-lmpi" | |
13392 fi | |
13393 | |
13394 fi | |
13395 if test x = x"$MPILIBS"; then | |
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5 | |
13397 $as_echo_n "checking for MPI_Init in -lmpich... " >&6; } | |
13398 if ${ac_cv_lib_mpich_MPI_Init+:} false; then : | |
13399 $as_echo_n "(cached) " >&6 | |
13400 else | |
13401 ac_check_lib_save_LIBS=$LIBS | |
13402 LIBS="-lmpich $LIBS" | |
13403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13404 /* end confdefs.h. */ | |
13405 | |
13406 /* Override any GCC internal prototype to avoid an error. | |
13407 Use char because int might match the return type of a GCC | |
13408 builtin and then its argument prototype would still apply. */ | |
13409 #ifdef __cplusplus | |
13410 extern "C" | |
13411 #endif | |
13412 char MPI_Init (); | |
13413 int | |
13414 main () | |
13415 { | |
13416 return MPI_Init (); | |
13417 ; | |
13418 return 0; | |
13419 } | |
13420 _ACEOF | |
13421 if ac_fn_c_try_link "$LINENO"; then : | |
13422 ac_cv_lib_mpich_MPI_Init=yes | |
13423 else | |
13424 ac_cv_lib_mpich_MPI_Init=no | |
13425 fi | |
13426 rm -f core conftest.err conftest.$ac_objext \ | |
13427 conftest$ac_exeext conftest.$ac_ext | |
13428 LIBS=$ac_check_lib_save_LIBS | |
13429 fi | |
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5 | |
13431 $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; } | |
13432 if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then : | |
13433 MPILIBS="-lmpich" | |
13434 fi | |
13435 | |
13436 fi | |
13437 | |
13438 if test x != x"$MPILIBS"; then | |
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5 | |
13440 $as_echo_n "checking for mpi.h... " >&6; } | |
13441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13442 /* end confdefs.h. */ | |
13443 #include <mpi.h> | |
13444 int | |
13445 main () | |
13446 { | |
13447 | |
13448 ; | |
13449 return 0; | |
13450 } | |
13451 _ACEOF | |
13452 if ac_fn_c_try_compile "$LINENO"; then : | |
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13454 $as_echo "yes" >&6; } | |
13455 else | |
13456 MPILIBS="" | |
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13458 $as_echo "no" >&6; } | |
13459 fi | |
13460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13461 fi | |
13462 | |
13463 CC="$acx_mpi_save_CC" | |
13464 | |
13465 | |
13466 | |
13467 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: | |
13468 if test x = x"$MPILIBS"; then | |
13469 as_fn_error $? "could not find mpi library for --enable-mpi" "$LINENO" 5 | |
13470 : | |
13471 else | |
13472 | |
13473 $as_echo "#define HAVE_MPI 1" >>confdefs.h | |
13474 | |
13475 : | |
13476 fi | |
13477 | |
13478 # Extract the first word of "mpirun", so it can be a program name with args. | |
13479 set dummy mpirun; ac_word=$2 | |
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13481 $as_echo_n "checking for $ac_word... " >&6; } | |
13482 if ${ac_cv_prog_MPIRUN+:} false; then : | |
13483 $as_echo_n "(cached) " >&6 | |
13484 else | |
13485 if test -n "$MPIRUN"; then | |
13486 ac_cv_prog_MPIRUN="$MPIRUN" # Let the user override the test. | |
13487 else | |
13488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13489 for as_dir in $PATH | |
13490 do | |
13491 IFS=$as_save_IFS | |
13492 test -z "$as_dir" && as_dir=. | |
13493 for ac_exec_ext in '' $ac_executable_extensions; do | |
13494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13495 ac_cv_prog_MPIRUN="mpirun" | |
13496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13497 break 2 | |
13498 fi | |
13499 done | |
13500 done | |
13501 IFS=$as_save_IFS | |
13502 | |
13503 fi | |
13504 fi | |
13505 MPIRUN=$ac_cv_prog_MPIRUN | |
13506 if test -n "$MPIRUN"; then | |
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIRUN" >&5 | |
13508 $as_echo "$MPIRUN" >&6; } | |
13509 else | |
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13511 $as_echo "no" >&6; } | |
13512 fi | |
13513 | |
13514 | |
13515 | |
13516 | |
13517 save_CC=$CC | |
13518 CC=$MPICC | |
13519 # The cast to long int works around a bug in the HP C Compiler | |
13520 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
13521 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13522 # This bug is HP SR number 8606223364. | |
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of MPI_Fint" >&5 | |
13524 $as_echo_n "checking size of MPI_Fint... " >&6; } | |
13525 if ${ac_cv_sizeof_MPI_Fint+:} false; then : | |
13526 $as_echo_n "(cached) " >&6 | |
13527 else | |
13528 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (MPI_Fint))" "ac_cv_sizeof_MPI_Fint" "#include <mpi.h> | |
13529 "; then : | |
13530 | |
13531 else | |
13532 if test "$ac_cv_type_MPI_Fint" = yes; then | |
13533 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13535 as_fn_error 77 "cannot compute sizeof (MPI_Fint) | |
13536 See \`config.log' for more details" "$LINENO" 5; } | |
13537 else | |
13538 ac_cv_sizeof_MPI_Fint=0 | |
13539 fi | |
13540 fi | |
13541 | |
13542 fi | |
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_MPI_Fint" >&5 | |
13544 $as_echo "$ac_cv_sizeof_MPI_Fint" >&6; } | |
13545 | |
13546 | |
13547 | |
13548 cat >>confdefs.h <<_ACEOF | |
13549 #define SIZEOF_MPI_FINT $ac_cv_sizeof_MPI_Fint | |
13550 _ACEOF | |
13551 | |
13552 | |
13553 CC=$save_CC | |
13554 if test 0 = $ac_cv_sizeof_MPI_Fint; then | |
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sizeof(MPI_Fint) test failed" >&5 | |
13556 $as_echo "$as_me: WARNING: sizeof(MPI_Fint) test failed" >&2;}; | |
13557 # The cast to long int works around a bug in the HP C Compiler | |
13558 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
13559 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13560 # This bug is HP SR number 8606223364. | |
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
13562 $as_echo_n "checking size of int... " >&6; } | |
13563 if ${ac_cv_sizeof_int+:} false; then : | |
13564 $as_echo_n "(cached) " >&6 | |
13565 else | |
13566 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | |
13567 | |
13568 else | |
13569 if test "$ac_cv_type_int" = yes; then | |
13570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13572 as_fn_error 77 "cannot compute sizeof (int) | |
13573 See \`config.log' for more details" "$LINENO" 5; } | |
13574 else | |
13575 ac_cv_sizeof_int=0 | |
13576 fi | |
13577 fi | |
13578 | |
13579 fi | |
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
13581 $as_echo "$ac_cv_sizeof_int" >&6; } | |
13582 | |
13583 | |
13584 | |
13585 cat >>confdefs.h <<_ACEOF | |
13586 #define SIZEOF_INT $ac_cv_sizeof_int | |
13587 _ACEOF | |
13588 | |
13589 | |
13590 if test 0 = $ac_cv_sizeof_int; then as_fn_error $? "sizeof(int) test failed" "$LINENO" 5; fi | |
13591 ac_cv_sizeof_MPI_Fint=$ac_cv_sizeof_int | |
13592 fi | |
13593 C_MPI_FINT=C_INT`expr $ac_cv_sizeof_MPI_Fint \* 8`_T | |
13594 | |
13595 fi | |
13596 if test "$enable_mpi" = "yes"; then | |
13597 MPI_TRUE= | |
13598 MPI_FALSE='#' | |
13599 else | |
13600 MPI_TRUE='#' | |
13601 MPI_FALSE= | |
13602 fi | |
13603 | |
13604 | |
13605 | |
13606 | |
13607 | |
13608 | |
13609 | |
13610 | |
13611 # Try to determine "good" native compiler flags if none specified via CFLAGS | |
13612 if test "$ac_test_CFLAGS" != "set"; then | |
13613 CFLAGS="" | |
13614 case $ax_cv_c_compiler_vendor in | |
13615 dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host" | |
13616 ;; | |
13617 | |
13618 sun) CFLAGS="-native -fast -xO5 -dalign" | |
13619 ;; | |
13620 | |
13621 hp) CFLAGS="+Oall +Optrs_ansi +DSnative" | |
13622 ;; | |
13623 | |
13624 ibm) xlc_opt="-qarch=auto -qtune=auto" | |
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5 | |
13626 $as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; } | |
13627 ax_save_FLAGS=$CFLAGS | |
13628 CFLAGS="$xlc_opt" | |
13629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13630 /* end confdefs.h. */ | |
13631 | |
13632 int | |
13633 main () | |
13634 { | |
13635 | |
13636 ; | |
13637 return 0; | |
13638 } | |
13639 _ACEOF | |
13640 if ac_fn_c_try_compile "$LINENO"; then : | |
13641 eval `$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`=yes | |
13642 else | |
13643 eval `$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`=no | |
13644 fi | |
13645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13646 CFLAGS=$ax_save_FLAGS | |
13647 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh` | |
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
13649 $as_echo "$ax_check_compiler_flags" >&6; } | |
13650 if test "x$ax_check_compiler_flags" = xyes; then | |
13651 CFLAGS="-O3 -qalias=ansi -w $xlc_opt" | |
13652 else | |
13653 CFLAGS="-O3 -qalias=ansi -w" | |
13654 fi | |
13655 | |
13656 ;; | |
13657 | |
13658 intel) CFLAGS="-O3" | |
13659 # Intel seems to have changed the spelling of this flag recently | |
13660 icc_ansi_alias="unknown" | |
13661 for flag in -ansi-alias -ansi_alias; do | |
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 | |
13663 $as_echo_n "checking whether C compiler accepts $flag... " >&6; } | |
13664 ax_save_FLAGS=$CFLAGS | |
13665 CFLAGS="$flag" | |
13666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13667 /* end confdefs.h. */ | |
13668 | |
13669 int | |
13670 main () | |
13671 { | |
13672 | |
13673 ; | |
13674 return 0; | |
13675 } | |
13676 _ACEOF | |
13677 if ac_fn_c_try_compile "$LINENO"; then : | |
13678 eval `$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`=yes | |
13679 else | |
13680 eval `$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`=no | |
13681 fi | |
13682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13683 CFLAGS=$ax_save_FLAGS | |
13684 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh` | |
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
13686 $as_echo "$ax_check_compiler_flags" >&6; } | |
13687 if test "x$ax_check_compiler_flags" = xyes; then | |
13688 icc_ansi_alias=$flag; break | |
13689 else | |
13690 : | |
13691 fi | |
13692 | |
13693 done | |
13694 if test "x$icc_ansi_alias" != xunknown; then | |
13695 CFLAGS="$CFLAGS $icc_ansi_alias" | |
13696 fi | |
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5 | |
13698 $as_echo_n "checking whether C compiler accepts -malign-double... " >&6; } | |
13699 if ${ax_cv_c_flags__malign_double+:} false; then : | |
13700 $as_echo_n "(cached) " >&6 | |
13701 else | |
13702 | |
13703 ax_save_FLAGS=$CFLAGS | |
13704 CFLAGS="-malign-double" | |
13705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13706 /* end confdefs.h. */ | |
13707 | |
13708 int | |
13709 main () | |
13710 { | |
13711 | |
13712 ; | |
13713 return 0; | |
13714 } | |
13715 _ACEOF | |
13716 if ac_fn_c_try_compile "$LINENO"; then : | |
13717 ax_cv_c_flags__malign_double=yes | |
13718 else | |
13719 ax_cv_c_flags__malign_double=no | |
13720 fi | |
13721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13722 CFLAGS=$ax_save_FLAGS | |
13723 fi | |
13724 | |
13725 eval ax_check_compiler_flags=$ax_cv_c_flags__malign_double | |
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
13727 $as_echo "$ax_check_compiler_flags" >&6; } | |
13728 if test "x$ax_check_compiler_flags" = xyes; then | |
13729 CFLAGS="$CFLAGS -malign-double" | |
13730 else | |
13731 : | |
13732 fi | |
13733 | |
13734 # We used to check for architecture flags here, e.g. -xHost etc., | |
13735 # but these flags are problematic. On icc-12.0.0, "-mavx -xHost" | |
13736 # overrides -mavx with -xHost, generating SSE2 code instead of AVX | |
13737 # code. ICC does not seem to support -mtune=host or equivalent | |
13738 # non-ABI changing flag. | |
13739 ;; | |
13740 | |
13741 clang) | |
13742 CFLAGS="-O3 -fomit-frame-pointer" | |
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mtune=native" >&5 | |
13744 $as_echo_n "checking whether C compiler accepts -mtune=native... " >&6; } | |
13745 if ${ax_cv_c_flags__mtune_native+:} false; then : | |
13746 $as_echo_n "(cached) " >&6 | |
13747 else | |
13748 | |
13749 ax_save_FLAGS=$CFLAGS | |
13750 CFLAGS="-mtune=native" | |
13751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13752 /* end confdefs.h. */ | |
13753 | |
13754 int | |
13755 main () | |
13756 { | |
13757 | |
13758 ; | |
13759 return 0; | |
13760 } | |
13761 _ACEOF | |
13762 if ac_fn_c_try_compile "$LINENO"; then : | |
13763 ax_cv_c_flags__mtune_native=yes | |
13764 else | |
13765 ax_cv_c_flags__mtune_native=no | |
13766 fi | |
13767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13768 CFLAGS=$ax_save_FLAGS | |
13769 fi | |
13770 | |
13771 eval ax_check_compiler_flags=$ax_cv_c_flags__mtune_native | |
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
13773 $as_echo "$ax_check_compiler_flags" >&6; } | |
13774 if test "x$ax_check_compiler_flags" = xyes; then | |
13775 CFLAGS="$CFLAGS -mtune=native" | |
13776 else | |
13777 : | |
13778 fi | |
13779 | |
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5 | |
13781 $as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; } | |
13782 if ${ax_cv_c_flags__fstrict_aliasing+:} false; then : | |
13783 $as_echo_n "(cached) " >&6 | |
13784 else | |
13785 | |
13786 ax_save_FLAGS=$CFLAGS | |
13787 CFLAGS="-fstrict-aliasing" | |
13788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13789 /* end confdefs.h. */ | |
13790 | |
13791 int | |
13792 main () | |
13793 { | |
13794 | |
13795 ; | |
13796 return 0; | |
13797 } | |
13798 _ACEOF | |
13799 if ac_fn_c_try_compile "$LINENO"; then : | |
13800 ax_cv_c_flags__fstrict_aliasing=yes | |
13801 else | |
13802 ax_cv_c_flags__fstrict_aliasing=no | |
13803 fi | |
13804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13805 CFLAGS=$ax_save_FLAGS | |
13806 fi | |
13807 | |
13808 eval ax_check_compiler_flags=$ax_cv_c_flags__fstrict_aliasing | |
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
13810 $as_echo "$ax_check_compiler_flags" >&6; } | |
13811 if test "x$ax_check_compiler_flags" = xyes; then | |
13812 CFLAGS="$CFLAGS -fstrict-aliasing" | |
13813 else | |
13814 : | |
13815 fi | |
13816 | |
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5 | |
13818 $as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; } | |
13819 if ${ax_cv_c_flags__ffast_math+:} false; then : | |
13820 $as_echo_n "(cached) " >&6 | |
13821 else | |
13822 | |
13823 ax_save_FLAGS=$CFLAGS | |
13824 CFLAGS="-ffast-math" | |
13825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13826 /* end confdefs.h. */ | |
13827 | |
13828 int | |
13829 main () | |
13830 { | |
13831 | |
13832 ; | |
13833 return 0; | |
13834 } | |
13835 _ACEOF | |
13836 if ac_fn_c_try_compile "$LINENO"; then : | |
13837 ax_cv_c_flags__ffast_math=yes | |
13838 else | |
13839 ax_cv_c_flags__ffast_math=no | |
13840 fi | |
13841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13842 CFLAGS=$ax_save_FLAGS | |
13843 fi | |
13844 | |
13845 eval ax_check_compiler_flags=$ax_cv_c_flags__ffast_math | |
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
13847 $as_echo "$ax_check_compiler_flags" >&6; } | |
13848 if test "x$ax_check_compiler_flags" = xyes; then | |
13849 CFLAGS="$CFLAGS -ffast-math" | |
13850 else | |
13851 : | |
13852 fi | |
13853 | |
13854 ;; | |
13855 | |
13856 gnu) | |
13857 # Default optimization flags for gcc on all systems. | |
13858 # Somehow -O3 does not imply -fomit-frame-pointer on ia32 | |
13859 CFLAGS="-O3 -fomit-frame-pointer" | |
13860 | |
13861 # tune for the host by default | |
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mtune=native" >&5 | |
13863 $as_echo_n "checking whether C compiler accepts -mtune=native... " >&6; } | |
13864 if ${ax_cv_c_flags__mtune_native+:} false; then : | |
13865 $as_echo_n "(cached) " >&6 | |
13866 else | |
13867 | |
13868 ax_save_FLAGS=$CFLAGS | |
13869 CFLAGS="-mtune=native" | |
13870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13871 /* end confdefs.h. */ | |
13872 | |
13873 int | |
13874 main () | |
13875 { | |
13876 | |
13877 ; | |
13878 return 0; | |
13879 } | |
13880 _ACEOF | |
13881 if ac_fn_c_try_compile "$LINENO"; then : | |
13882 ax_cv_c_flags__mtune_native=yes | |
13883 else | |
13884 ax_cv_c_flags__mtune_native=no | |
13885 fi | |
13886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13887 CFLAGS=$ax_save_FLAGS | |
13888 fi | |
13889 | |
13890 eval ax_check_compiler_flags=$ax_cv_c_flags__mtune_native | |
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
13892 $as_echo "$ax_check_compiler_flags" >&6; } | |
13893 if test "x$ax_check_compiler_flags" = xyes; then | |
13894 CFLAGS="$CFLAGS -mtune=native" | |
13895 else | |
13896 : | |
13897 fi | |
13898 | |
13899 | |
13900 # -malign-double for x86 systems | |
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5 | |
13902 $as_echo_n "checking whether C compiler accepts -malign-double... " >&6; } | |
13903 if ${ax_cv_c_flags__malign_double+:} false; then : | |
13904 $as_echo_n "(cached) " >&6 | |
13905 else | |
13906 | |
13907 ax_save_FLAGS=$CFLAGS | |
13908 CFLAGS="-malign-double" | |
13909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13910 /* end confdefs.h. */ | |
13911 | |
13912 int | |
13913 main () | |
13914 { | |
13915 | |
13916 ; | |
13917 return 0; | |
13918 } | |
13919 _ACEOF | |
13920 if ac_fn_c_try_compile "$LINENO"; then : | |
13921 ax_cv_c_flags__malign_double=yes | |
13922 else | |
13923 ax_cv_c_flags__malign_double=no | |
13924 fi | |
13925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13926 CFLAGS=$ax_save_FLAGS | |
13927 fi | |
13928 | |
13929 eval ax_check_compiler_flags=$ax_cv_c_flags__malign_double | |
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
13931 $as_echo "$ax_check_compiler_flags" >&6; } | |
13932 if test "x$ax_check_compiler_flags" = xyes; then | |
13933 CFLAGS="$CFLAGS -malign-double" | |
13934 else | |
13935 : | |
13936 fi | |
13937 | |
13938 | |
13939 # -fstrict-aliasing for gcc-2.95+ | |
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5 | |
13941 $as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; } | |
13942 if ${ax_cv_c_flags__fstrict_aliasing+:} false; then : | |
13943 $as_echo_n "(cached) " >&6 | |
13944 else | |
13945 | |
13946 ax_save_FLAGS=$CFLAGS | |
13947 CFLAGS="-fstrict-aliasing" | |
13948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13949 /* end confdefs.h. */ | |
13950 | |
13951 int | |
13952 main () | |
13953 { | |
13954 | |
13955 ; | |
13956 return 0; | |
13957 } | |
13958 _ACEOF | |
13959 if ac_fn_c_try_compile "$LINENO"; then : | |
13960 ax_cv_c_flags__fstrict_aliasing=yes | |
13961 else | |
13962 ax_cv_c_flags__fstrict_aliasing=no | |
13963 fi | |
13964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13965 CFLAGS=$ax_save_FLAGS | |
13966 fi | |
13967 | |
13968 eval ax_check_compiler_flags=$ax_cv_c_flags__fstrict_aliasing | |
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
13970 $as_echo "$ax_check_compiler_flags" >&6; } | |
13971 if test "x$ax_check_compiler_flags" = xyes; then | |
13972 CFLAGS="$CFLAGS -fstrict-aliasing" | |
13973 else | |
13974 : | |
13975 fi | |
13976 | |
13977 | |
13978 # -fno-schedule-insns is pretty much required on all risc | |
13979 # processors. | |
13980 # | |
13981 # gcc performs one pass of instruction scheduling, then a pass of | |
13982 # register allocation, then another pass of instruction | |
13983 # scheduling. The first pass reorders instructions in a way that | |
13984 # is pretty much the worst possible for the purposes of register | |
13985 # allocation. We disable the first pass. | |
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-schedule-insns" >&5 | |
13987 $as_echo_n "checking whether C compiler accepts -fno-schedule-insns... " >&6; } | |
13988 if ${ax_cv_c_flags__fno_schedule_insns+:} false; then : | |
13989 $as_echo_n "(cached) " >&6 | |
13990 else | |
13991 | |
13992 ax_save_FLAGS=$CFLAGS | |
13993 CFLAGS="-fno-schedule-insns" | |
13994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13995 /* end confdefs.h. */ | |
13996 | |
13997 int | |
13998 main () | |
13999 { | |
14000 | |
14001 ; | |
14002 return 0; | |
14003 } | |
14004 _ACEOF | |
14005 if ac_fn_c_try_compile "$LINENO"; then : | |
14006 ax_cv_c_flags__fno_schedule_insns=yes | |
14007 else | |
14008 ax_cv_c_flags__fno_schedule_insns=no | |
14009 fi | |
14010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14011 CFLAGS=$ax_save_FLAGS | |
14012 fi | |
14013 | |
14014 eval ax_check_compiler_flags=$ax_cv_c_flags__fno_schedule_insns | |
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
14016 $as_echo "$ax_check_compiler_flags" >&6; } | |
14017 if test "x$ax_check_compiler_flags" = xyes; then | |
14018 CFLAGS="$CFLAGS -fno-schedule-insns" | |
14019 else | |
14020 : | |
14021 fi | |
14022 | |
14023 | |
14024 # note that we enable "unsafe" fp optimization with other compilers, too | |
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5 | |
14026 $as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; } | |
14027 if ${ax_cv_c_flags__ffast_math+:} false; then : | |
14028 $as_echo_n "(cached) " >&6 | |
14029 else | |
14030 | |
14031 ax_save_FLAGS=$CFLAGS | |
14032 CFLAGS="-ffast-math" | |
14033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14034 /* end confdefs.h. */ | |
14035 | |
14036 int | |
14037 main () | |
14038 { | |
14039 | |
14040 ; | |
14041 return 0; | |
14042 } | |
14043 _ACEOF | |
14044 if ac_fn_c_try_compile "$LINENO"; then : | |
14045 ax_cv_c_flags__ffast_math=yes | |
14046 else | |
14047 ax_cv_c_flags__ffast_math=no | |
14048 fi | |
14049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14050 CFLAGS=$ax_save_FLAGS | |
14051 fi | |
14052 | |
14053 eval ax_check_compiler_flags=$ax_cv_c_flags__ffast_math | |
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
14055 $as_echo "$ax_check_compiler_flags" >&6; } | |
14056 if test "x$ax_check_compiler_flags" = xyes; then | |
14057 CFLAGS="$CFLAGS -ffast-math" | |
14058 else | |
14059 : | |
14060 fi | |
14061 | |
14062 | |
14063 # flags to enable power ISA 2.07 instructions with gcc (always true with vsx) | |
14064 if test "$have_vsx" = "yes"; then | |
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mcpu=power8" >&5 | |
14066 $as_echo_n "checking whether C compiler accepts -mcpu=power8... " >&6; } | |
14067 if ${ax_cv_c_flags__mcpu_power8+:} false; then : | |
14068 $as_echo_n "(cached) " >&6 | |
14069 else | |
14070 | |
14071 ax_save_FLAGS=$CFLAGS | |
14072 CFLAGS="-mcpu=power8" | |
14073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14074 /* end confdefs.h. */ | |
14075 | |
14076 int | |
14077 main () | |
14078 { | |
14079 | |
14080 ; | |
14081 return 0; | |
14082 } | |
14083 _ACEOF | |
14084 if ac_fn_c_try_compile "$LINENO"; then : | |
14085 ax_cv_c_flags__mcpu_power8=yes | |
14086 else | |
14087 ax_cv_c_flags__mcpu_power8=no | |
14088 fi | |
14089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14090 CFLAGS=$ax_save_FLAGS | |
14091 fi | |
14092 | |
14093 eval ax_check_compiler_flags=$ax_cv_c_flags__mcpu_power8 | |
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
14095 $as_echo "$ax_check_compiler_flags" >&6; } | |
14096 if test "x$ax_check_compiler_flags" = xyes; then | |
14097 CFLAGS="$CFLAGS -mcpu=power8" | |
14098 else | |
14099 : | |
14100 fi | |
14101 | |
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mpower8-fusion" >&5 | |
14103 $as_echo_n "checking whether C compiler accepts -mpower8-fusion... " >&6; } | |
14104 if ${ax_cv_c_flags__mpower8_fusion+:} false; then : | |
14105 $as_echo_n "(cached) " >&6 | |
14106 else | |
14107 | |
14108 ax_save_FLAGS=$CFLAGS | |
14109 CFLAGS="-mpower8-fusion" | |
14110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14111 /* end confdefs.h. */ | |
14112 | |
14113 int | |
14114 main () | |
14115 { | |
14116 | |
14117 ; | |
14118 return 0; | |
14119 } | |
14120 _ACEOF | |
14121 if ac_fn_c_try_compile "$LINENO"; then : | |
14122 ax_cv_c_flags__mpower8_fusion=yes | |
14123 else | |
14124 ax_cv_c_flags__mpower8_fusion=no | |
14125 fi | |
14126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14127 CFLAGS=$ax_save_FLAGS | |
14128 fi | |
14129 | |
14130 eval ax_check_compiler_flags=$ax_cv_c_flags__mpower8_fusion | |
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
14132 $as_echo "$ax_check_compiler_flags" >&6; } | |
14133 if test "x$ax_check_compiler_flags" = xyes; then | |
14134 CFLAGS="$CFLAGS -mpower8-fusion" | |
14135 else | |
14136 : | |
14137 fi | |
14138 | |
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mpower8-vector" >&5 | |
14140 $as_echo_n "checking whether C compiler accepts -mpower8-vector... " >&6; } | |
14141 if ${ax_cv_c_flags__mpower8_vector+:} false; then : | |
14142 $as_echo_n "(cached) " >&6 | |
14143 else | |
14144 | |
14145 ax_save_FLAGS=$CFLAGS | |
14146 CFLAGS="-mpower8-vector" | |
14147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14148 /* end confdefs.h. */ | |
14149 | |
14150 int | |
14151 main () | |
14152 { | |
14153 | |
14154 ; | |
14155 return 0; | |
14156 } | |
14157 _ACEOF | |
14158 if ac_fn_c_try_compile "$LINENO"; then : | |
14159 ax_cv_c_flags__mpower8_vector=yes | |
14160 else | |
14161 ax_cv_c_flags__mpower8_vector=no | |
14162 fi | |
14163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14164 CFLAGS=$ax_save_FLAGS | |
14165 fi | |
14166 | |
14167 eval ax_check_compiler_flags=$ax_cv_c_flags__mpower8_vector | |
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
14169 $as_echo "$ax_check_compiler_flags" >&6; } | |
14170 if test "x$ax_check_compiler_flags" = xyes; then | |
14171 CFLAGS="$CFLAGS -mpower8-vector" | |
14172 else | |
14173 : | |
14174 fi | |
14175 | |
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mdirect-move" >&5 | |
14177 $as_echo_n "checking whether C compiler accepts -mdirect-move... " >&6; } | |
14178 if ${ax_cv_c_flags__mdirect_move+:} false; then : | |
14179 $as_echo_n "(cached) " >&6 | |
14180 else | |
14181 | |
14182 ax_save_FLAGS=$CFLAGS | |
14183 CFLAGS="-mdirect-move" | |
14184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14185 /* end confdefs.h. */ | |
14186 | |
14187 int | |
14188 main () | |
14189 { | |
14190 | |
14191 ; | |
14192 return 0; | |
14193 } | |
14194 _ACEOF | |
14195 if ac_fn_c_try_compile "$LINENO"; then : | |
14196 ax_cv_c_flags__mdirect_move=yes | |
14197 else | |
14198 ax_cv_c_flags__mdirect_move=no | |
14199 fi | |
14200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14201 CFLAGS=$ax_save_FLAGS | |
14202 fi | |
14203 | |
14204 eval ax_check_compiler_flags=$ax_cv_c_flags__mdirect_move | |
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
14206 $as_echo "$ax_check_compiler_flags" >&6; } | |
14207 if test "x$ax_check_compiler_flags" = xyes; then | |
14208 CFLAGS="$CFLAGS -mdirect-move" | |
14209 else | |
14210 : | |
14211 fi | |
14212 | |
14213 fi | |
14214 ;; | |
14215 esac | |
14216 | |
14217 if test -z "$CFLAGS"; then | |
14218 echo "" | |
14219 echo "********************************************************" | |
14220 echo "* WARNING: Don't know the best CFLAGS for this system *" | |
14221 echo "* Use ./configure CFLAGS=... to specify your own flags *" | |
14222 echo "* (otherwise, a default of CFLAGS=-O3 will be used) *" | |
14223 echo "********************************************************" | |
14224 echo "" | |
14225 CFLAGS="-O3" | |
14226 fi | |
14227 | |
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5 | |
14229 $as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; } | |
14230 ax_save_FLAGS=$CFLAGS | |
14231 CFLAGS="$CFLAGS" | |
14232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14233 /* end confdefs.h. */ | |
14234 | |
14235 int | |
14236 main () | |
14237 { | |
14238 | |
14239 ; | |
14240 return 0; | |
14241 } | |
14242 _ACEOF | |
14243 if ac_fn_c_try_compile "$LINENO"; then : | |
14244 eval `$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`=yes | |
14245 else | |
14246 eval `$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`=no | |
14247 fi | |
14248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14249 CFLAGS=$ax_save_FLAGS | |
14250 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh` | |
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
14252 $as_echo "$ax_check_compiler_flags" >&6; } | |
14253 if test "x$ax_check_compiler_flags" = xyes; then | |
14254 : | |
14255 else | |
14256 | |
14257 echo "" | |
14258 echo "********************************************************" | |
14259 echo "* WARNING: The guessed CFLAGS don't seem to work with *" | |
14260 echo "* your compiler. *" | |
14261 echo "* Use ./configure CFLAGS=... to specify your own flags *" | |
14262 echo "********************************************************" | |
14263 echo "" | |
14264 CFLAGS="" | |
14265 | |
14266 fi | |
14267 | |
14268 | |
14269 fi | |
14270 | |
14271 | |
14272 case "${ax_cv_c_compiler_vendor}" in | |
14273 intel) # Stop icc from defining __GNUC__, except on MacOS where this fails | |
14274 case "${host_os}" in | |
14275 *darwin*) ;; # icc -no-gcc fails to compile some system headers | |
14276 *) | |
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -no-gcc" >&5 | |
14278 $as_echo_n "checking whether C compiler accepts -no-gcc... " >&6; } | |
14279 if ${ax_cv_c_flags__no_gcc+:} false; then : | |
14280 $as_echo_n "(cached) " >&6 | |
14281 else | |
14282 | |
14283 ax_save_FLAGS=$CFLAGS | |
14284 CFLAGS="-no-gcc" | |
14285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14286 /* end confdefs.h. */ | |
14287 | |
14288 int | |
14289 main () | |
14290 { | |
14291 | |
14292 ; | |
14293 return 0; | |
14294 } | |
14295 _ACEOF | |
14296 if ac_fn_c_try_compile "$LINENO"; then : | |
14297 ax_cv_c_flags__no_gcc=yes | |
14298 else | |
14299 ax_cv_c_flags__no_gcc=no | |
14300 fi | |
14301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14302 CFLAGS=$ax_save_FLAGS | |
14303 fi | |
14304 | |
14305 eval ax_check_compiler_flags=$ax_cv_c_flags__no_gcc | |
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
14307 $as_echo "$ax_check_compiler_flags" >&6; } | |
14308 if test "x$ax_check_compiler_flags" = xyes; then | |
14309 CC="$CC -no-gcc" | |
14310 else | |
14311 : | |
14312 fi | |
14313 | |
14314 ;; | |
14315 esac | |
14316 ;; | |
14317 | |
14318 hp) # must (sometimes) manually increase cpp limits to handle fftw3.h | |
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wp,-H128000" >&5 | |
14320 $as_echo_n "checking whether C compiler accepts -Wp,-H128000... " >&6; } | |
14321 if ${ax_cv_c_flags__Wp+:} false; then : | |
14322 $as_echo_n "(cached) " >&6 | |
14323 else | |
14324 | |
14325 ax_save_FLAGS=$CFLAGS | |
14326 CFLAGS="-Wp,-H128000" | |
14327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14328 /* end confdefs.h. */ | |
14329 | |
14330 int | |
14331 main () | |
14332 { | |
14333 | |
14334 ; | |
14335 return 0; | |
14336 } | |
14337 _ACEOF | |
14338 if ac_fn_c_try_compile "$LINENO"; then : | |
14339 ax_cv_c_flags__Wp=yes | |
14340 else | |
14341 ax_cv_c_flags__Wp=no | |
14342 fi | |
14343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14344 CFLAGS=$ax_save_FLAGS | |
14345 fi | |
14346 | |
14347 eval ax_check_compiler_flags=$ax_cv_c_flags__Wp | |
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
14349 $as_echo "$ax_check_compiler_flags" >&6; } | |
14350 if test "x$ax_check_compiler_flags" = xyes; then | |
14351 CC="$CC -Wp,-H128000" | |
14352 else | |
14353 : | |
14354 fi | |
14355 | |
14356 ;; | |
14357 | |
14358 portland) # -Masmkeyword required for asm("") cycle counters | |
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Masmkeyword" >&5 | |
14360 $as_echo_n "checking whether C compiler accepts -Masmkeyword... " >&6; } | |
14361 if ${ax_cv_c_flags__Masmkeyword+:} false; then : | |
14362 $as_echo_n "(cached) " >&6 | |
14363 else | |
14364 | |
14365 ax_save_FLAGS=$CFLAGS | |
14366 CFLAGS="-Masmkeyword" | |
14367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14368 /* end confdefs.h. */ | |
14369 | |
14370 int | |
14371 main () | |
14372 { | |
14373 | |
14374 ; | |
14375 return 0; | |
14376 } | |
14377 _ACEOF | |
14378 if ac_fn_c_try_compile "$LINENO"; then : | |
14379 ax_cv_c_flags__Masmkeyword=yes | |
14380 else | |
14381 ax_cv_c_flags__Masmkeyword=no | |
14382 fi | |
14383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14384 CFLAGS=$ax_save_FLAGS | |
14385 fi | |
14386 | |
14387 eval ax_check_compiler_flags=$ax_cv_c_flags__Masmkeyword | |
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
14389 $as_echo "$ax_check_compiler_flags" >&6; } | |
14390 if test "x$ax_check_compiler_flags" = xyes; then | |
14391 CC="$CC -Masmkeyword" | |
14392 else | |
14393 : | |
14394 fi | |
14395 | |
14396 ;; | |
14397 esac | |
14398 | |
14399 case "${ax_cv_c_compiler_vendor}" in | |
14400 gnu|intel) | |
14401 # SSE/SSE2 | |
14402 if test "$have_sse2" = "yes" -a "x$SSE2_CFLAGS" = x; then | |
14403 if test "$PRECISION" = d; then flag=msse2; else flag=msse; fi | |
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -$flag" >&5 | |
14405 $as_echo_n "checking whether C compiler accepts -$flag... " >&6; } | |
14406 ax_save_FLAGS=$CFLAGS | |
14407 CFLAGS="-$flag" | |
14408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14409 /* end confdefs.h. */ | |
14410 | |
14411 int | |
14412 main () | |
14413 { | |
14414 | |
14415 ; | |
14416 return 0; | |
14417 } | |
14418 _ACEOF | |
14419 if ac_fn_c_try_compile "$LINENO"; then : | |
14420 eval `$as_echo "ax_cv_c_flags_-$flag" | $as_tr_sh`=yes | |
14421 else | |
14422 eval `$as_echo "ax_cv_c_flags_-$flag" | $as_tr_sh`=no | |
14423 fi | |
14424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14425 CFLAGS=$ax_save_FLAGS | |
14426 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_-$flag" | $as_tr_sh` | |
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
14428 $as_echo "$ax_check_compiler_flags" >&6; } | |
14429 if test "x$ax_check_compiler_flags" = xyes; then | |
14430 SSE2_CFLAGS="-$flag" | |
14431 else | |
14432 as_fn_error $? "Need a version of gcc with -$flag" "$LINENO" 5 | |
14433 fi | |
14434 | |
14435 fi | |
14436 | |
14437 # AVX | |
14438 if test "$have_avx" = "yes" -a "x$AVX_CFLAGS" = x; then | |
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx" >&5 | |
14440 $as_echo_n "checking whether C compiler accepts -mavx... " >&6; } | |
14441 if ${ax_cv_c_flags__mavx+:} false; then : | |
14442 $as_echo_n "(cached) " >&6 | |
14443 else | |
14444 | |
14445 ax_save_FLAGS=$CFLAGS | |
14446 CFLAGS="-mavx" | |
14447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14448 /* end confdefs.h. */ | |
14449 | |
14450 int | |
14451 main () | |
14452 { | |
14453 | |
14454 ; | |
14455 return 0; | |
14456 } | |
14457 _ACEOF | |
14458 if ac_fn_c_try_compile "$LINENO"; then : | |
14459 ax_cv_c_flags__mavx=yes | |
14460 else | |
14461 ax_cv_c_flags__mavx=no | |
14462 fi | |
14463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14464 CFLAGS=$ax_save_FLAGS | |
14465 fi | |
14466 | |
14467 eval ax_check_compiler_flags=$ax_cv_c_flags__mavx | |
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
14469 $as_echo "$ax_check_compiler_flags" >&6; } | |
14470 if test "x$ax_check_compiler_flags" = xyes; then | |
14471 AVX_CFLAGS="-mavx" | |
14472 else | |
14473 as_fn_error $? "Need a version of gcc with -mavx" "$LINENO" 5 | |
14474 fi | |
14475 | |
14476 fi | |
14477 | |
14478 # AVX2 | |
14479 # gcc-4.8 works with -march=core-avx2, but -mavx2 is not enough. | |
14480 # Later versions seem to happy with -mavx2, so try the arch one first. | |
14481 if test "$have_avx2" = "yes" -a "x$AVX2_CFLAGS" = x; then | |
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -march=core-avx2" >&5 | |
14483 $as_echo_n "checking whether C compiler accepts -march=core-avx2... " >&6; } | |
14484 if ${ax_cv_c_flags__march_core_avx2+:} false; then : | |
14485 $as_echo_n "(cached) " >&6 | |
14486 else | |
14487 | |
14488 ax_save_FLAGS=$CFLAGS | |
14489 CFLAGS="-march=core-avx2" | |
14490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14491 /* end confdefs.h. */ | |
14492 | |
14493 int | |
14494 main () | |
14495 { | |
14496 | |
14497 ; | |
14498 return 0; | |
14499 } | |
14500 _ACEOF | |
14501 if ac_fn_c_try_compile "$LINENO"; then : | |
14502 ax_cv_c_flags__march_core_avx2=yes | |
14503 else | |
14504 ax_cv_c_flags__march_core_avx2=no | |
14505 fi | |
14506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14507 CFLAGS=$ax_save_FLAGS | |
14508 fi | |
14509 | |
14510 eval ax_check_compiler_flags=$ax_cv_c_flags__march_core_avx2 | |
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
14512 $as_echo "$ax_check_compiler_flags" >&6; } | |
14513 if test "x$ax_check_compiler_flags" = xyes; then | |
14514 AVX2_CFLAGS="-march=core-avx2" | |
14515 else | |
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx2" >&5 | |
14517 $as_echo_n "checking whether C compiler accepts -mavx2... " >&6; } | |
14518 if ${ax_cv_c_flags__mavx2+:} false; then : | |
14519 $as_echo_n "(cached) " >&6 | |
14520 else | |
14521 | |
14522 ax_save_FLAGS=$CFLAGS | |
14523 CFLAGS="-mavx2" | |
14524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14525 /* end confdefs.h. */ | |
14526 | |
14527 int | |
14528 main () | |
14529 { | |
14530 | |
14531 ; | |
14532 return 0; | |
14533 } | |
14534 _ACEOF | |
14535 if ac_fn_c_try_compile "$LINENO"; then : | |
14536 ax_cv_c_flags__mavx2=yes | |
14537 else | |
14538 ax_cv_c_flags__mavx2=no | |
14539 fi | |
14540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14541 CFLAGS=$ax_save_FLAGS | |
14542 fi | |
14543 | |
14544 eval ax_check_compiler_flags=$ax_cv_c_flags__mavx2 | |
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
14546 $as_echo "$ax_check_compiler_flags" >&6; } | |
14547 if test "x$ax_check_compiler_flags" = xyes; then | |
14548 AVX2_CFLAGS="-mavx2" | |
14549 else | |
14550 as_fn_error $? "Need a version of gcc with either -march=core-avx2 or -mavx2" "$LINENO" 5 | |
14551 fi | |
14552 | |
14553 fi | |
14554 | |
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mfma" >&5 | |
14556 $as_echo_n "checking whether C compiler accepts -mfma... " >&6; } | |
14557 if ${ax_cv_c_flags__mfma+:} false; then : | |
14558 $as_echo_n "(cached) " >&6 | |
14559 else | |
14560 | |
14561 ax_save_FLAGS=$CFLAGS | |
14562 CFLAGS="-mfma" | |
14563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14564 /* end confdefs.h. */ | |
14565 | |
14566 int | |
14567 main () | |
14568 { | |
14569 | |
14570 ; | |
14571 return 0; | |
14572 } | |
14573 _ACEOF | |
14574 if ac_fn_c_try_compile "$LINENO"; then : | |
14575 ax_cv_c_flags__mfma=yes | |
14576 else | |
14577 ax_cv_c_flags__mfma=no | |
14578 fi | |
14579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14580 CFLAGS=$ax_save_FLAGS | |
14581 fi | |
14582 | |
14583 eval ax_check_compiler_flags=$ax_cv_c_flags__mfma | |
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
14585 $as_echo "$ax_check_compiler_flags" >&6; } | |
14586 if test "x$ax_check_compiler_flags" = xyes; then | |
14587 AVX2_CFLAGS="$AVX2_CFLAGS -mfma" | |
14588 else | |
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need a version of gcc with -mfma (harmless for icc)" >&5 | |
14590 $as_echo "$as_me: WARNING: Need a version of gcc with -mfma (harmless for icc)" >&2;} | |
14591 fi | |
14592 | |
14593 fi | |
14594 | |
14595 # AVX512 | |
14596 if test "$have_avx512" = "yes" -a "x$AVX512_CFLAGS" = x; then | |
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx512f" >&5 | |
14598 $as_echo_n "checking whether C compiler accepts -mavx512f... " >&6; } | |
14599 if ${ax_cv_c_flags__mavx512f+:} false; then : | |
14600 $as_echo_n "(cached) " >&6 | |
14601 else | |
14602 | |
14603 ax_save_FLAGS=$CFLAGS | |
14604 CFLAGS="-mavx512f" | |
14605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14606 /* end confdefs.h. */ | |
14607 | |
14608 int | |
14609 main () | |
14610 { | |
14611 | |
14612 ; | |
14613 return 0; | |
14614 } | |
14615 _ACEOF | |
14616 if ac_fn_c_try_compile "$LINENO"; then : | |
14617 ax_cv_c_flags__mavx512f=yes | |
14618 else | |
14619 ax_cv_c_flags__mavx512f=no | |
14620 fi | |
14621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14622 CFLAGS=$ax_save_FLAGS | |
14623 fi | |
14624 | |
14625 eval ax_check_compiler_flags=$ax_cv_c_flags__mavx512f | |
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
14627 $as_echo "$ax_check_compiler_flags" >&6; } | |
14628 if test "x$ax_check_compiler_flags" = xyes; then | |
14629 AVX512_CFLAGS="-mavx512f" | |
14630 else | |
14631 as_fn_error $? "Need a version of gcc with -mavx512f" "$LINENO" 5 | |
14632 fi | |
14633 | |
14634 fi | |
14635 | |
14636 if test "$host_vendor" = "apple"; then | |
14637 # We need to tell gcc to use an external assembler to get AVX/AVX2 with gcc on OS X | |
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wa,-q" >&5 | |
14639 $as_echo_n "checking whether C compiler accepts -Wa,-q... " >&6; } | |
14640 if ${ax_cv_c_flags__Wa+:} false; then : | |
14641 $as_echo_n "(cached) " >&6 | |
14642 else | |
14643 | |
14644 ax_save_FLAGS=$CFLAGS | |
14645 CFLAGS="-Wa,-q" | |
14646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14647 /* end confdefs.h. */ | |
14648 | |
14649 int | |
14650 main () | |
14651 { | |
14652 | |
14653 ; | |
14654 return 0; | |
14655 } | |
14656 _ACEOF | |
14657 if ac_fn_c_try_compile "$LINENO"; then : | |
14658 ax_cv_c_flags__Wa=yes | |
14659 else | |
14660 ax_cv_c_flags__Wa=no | |
14661 fi | |
14662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14663 CFLAGS=$ax_save_FLAGS | |
14664 fi | |
14665 | |
14666 eval ax_check_compiler_flags=$ax_cv_c_flags__Wa | |
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
14668 $as_echo "$ax_check_compiler_flags" >&6; } | |
14669 if test "x$ax_check_compiler_flags" = xyes; then | |
14670 CFLAGS="$CFLAGS -Wa,-q" | |
14671 else | |
14672 : | |
14673 fi | |
14674 | |
14675 # Disable the new compact unwinding format so we avoid warnings/potential errors. | |
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wl,-no_compact_unwind" >&5 | |
14677 $as_echo_n "checking whether C compiler accepts -Wl,-no_compact_unwind... " >&6; } | |
14678 if ${ax_cv_c_flags__Wl+:} false; then : | |
14679 $as_echo_n "(cached) " >&6 | |
14680 else | |
14681 | |
14682 ax_save_FLAGS=$CFLAGS | |
14683 CFLAGS="-Wl,-no_compact_unwind" | |
14684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14685 /* end confdefs.h. */ | |
14686 | |
14687 int | |
14688 main () | |
14689 { | |
14690 | |
14691 ; | |
14692 return 0; | |
14693 } | |
14694 _ACEOF | |
14695 if ac_fn_c_try_compile "$LINENO"; then : | |
14696 ax_cv_c_flags__Wl=yes | |
14697 else | |
14698 ax_cv_c_flags__Wl=no | |
14699 fi | |
14700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14701 CFLAGS=$ax_save_FLAGS | |
14702 fi | |
14703 | |
14704 eval ax_check_compiler_flags=$ax_cv_c_flags__Wl | |
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
14706 $as_echo "$ax_check_compiler_flags" >&6; } | |
14707 if test "x$ax_check_compiler_flags" = xyes; then | |
14708 CFLAGS="$CFLAGS -Wl,-no_compact_unwind" | |
14709 else | |
14710 : | |
14711 fi | |
14712 | |
14713 fi | |
14714 | |
14715 # KCVI | |
14716 if test "$have_kcvi" = "yes" -a "x$KCVI_CFLAGS" = x; then | |
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mmic" >&5 | |
14718 $as_echo_n "checking whether C compiler accepts -mmic... " >&6; } | |
14719 if ${ax_cv_c_flags__mmic+:} false; then : | |
14720 $as_echo_n "(cached) " >&6 | |
14721 else | |
14722 | |
14723 ax_save_FLAGS=$CFLAGS | |
14724 CFLAGS="-mmic" | |
14725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14726 /* end confdefs.h. */ | |
14727 | |
14728 int | |
14729 main () | |
14730 { | |
14731 | |
14732 ; | |
14733 return 0; | |
14734 } | |
14735 _ACEOF | |
14736 if ac_fn_c_try_compile "$LINENO"; then : | |
14737 ax_cv_c_flags__mmic=yes | |
14738 else | |
14739 ax_cv_c_flags__mmic=no | |
14740 fi | |
14741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14742 CFLAGS=$ax_save_FLAGS | |
14743 fi | |
14744 | |
14745 eval ax_check_compiler_flags=$ax_cv_c_flags__mmic | |
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
14747 $as_echo "$ax_check_compiler_flags" >&6; } | |
14748 if test "x$ax_check_compiler_flags" = xyes; then | |
14749 KCVI_CFLAGS="-mmic" | |
14750 else | |
14751 as_fn_error $? "Need a version of icc with -mmic" "$LINENO" 5 | |
14752 fi | |
14753 | |
14754 fi | |
14755 | |
14756 if test "$have_altivec" = "yes" -a "x$ALTIVEC_CFLAGS" = x; then | |
14757 # -DFAKE__VEC__ is a workaround because gcc-3.3 does not | |
14758 # #define __VEC__ with -maltivec. | |
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -faltivec" >&5 | |
14760 $as_echo_n "checking whether C compiler accepts -faltivec... " >&6; } | |
14761 if ${ax_cv_c_flags__faltivec+:} false; then : | |
14762 $as_echo_n "(cached) " >&6 | |
14763 else | |
14764 | |
14765 ax_save_FLAGS=$CFLAGS | |
14766 CFLAGS="-faltivec" | |
14767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14768 /* end confdefs.h. */ | |
14769 | |
14770 int | |
14771 main () | |
14772 { | |
14773 | |
14774 ; | |
14775 return 0; | |
14776 } | |
14777 _ACEOF | |
14778 if ac_fn_c_try_compile "$LINENO"; then : | |
14779 ax_cv_c_flags__faltivec=yes | |
14780 else | |
14781 ax_cv_c_flags__faltivec=no | |
14782 fi | |
14783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14784 CFLAGS=$ax_save_FLAGS | |
14785 fi | |
14786 | |
14787 eval ax_check_compiler_flags=$ax_cv_c_flags__faltivec | |
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
14789 $as_echo "$ax_check_compiler_flags" >&6; } | |
14790 if test "x$ax_check_compiler_flags" = xyes; then | |
14791 ALTIVEC_CFLAGS="-faltivec" | |
14792 else | |
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -maltivec -mabi=altivec" >&5 | |
14794 $as_echo_n "checking whether C compiler accepts -maltivec -mabi=altivec... " >&6; } | |
14795 if ${ax_cv_c_flags__maltivec__mabi_altivec+:} false; then : | |
14796 $as_echo_n "(cached) " >&6 | |
14797 else | |
14798 | |
14799 ax_save_FLAGS=$CFLAGS | |
14800 CFLAGS="-maltivec -mabi=altivec" | |
14801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14802 /* end confdefs.h. */ | |
14803 | |
14804 int | |
14805 main () | |
14806 { | |
14807 | |
14808 ; | |
14809 return 0; | |
14810 } | |
14811 _ACEOF | |
14812 if ac_fn_c_try_compile "$LINENO"; then : | |
14813 ax_cv_c_flags__maltivec__mabi_altivec=yes | |
14814 else | |
14815 ax_cv_c_flags__maltivec__mabi_altivec=no | |
14816 fi | |
14817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14818 CFLAGS=$ax_save_FLAGS | |
14819 fi | |
14820 | |
14821 eval ax_check_compiler_flags=$ax_cv_c_flags__maltivec__mabi_altivec | |
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
14823 $as_echo "$ax_check_compiler_flags" >&6; } | |
14824 if test "x$ax_check_compiler_flags" = xyes; then | |
14825 ALTIVEC_CFLAGS="-maltivec -mabi=altivec -DFAKE__VEC__" | |
14826 else | |
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvec" >&5 | |
14828 $as_echo_n "checking whether C compiler accepts -fvec... " >&6; } | |
14829 if ${ax_cv_c_flags__fvec+:} false; then : | |
14830 $as_echo_n "(cached) " >&6 | |
14831 else | |
14832 | |
14833 ax_save_FLAGS=$CFLAGS | |
14834 CFLAGS="-fvec" | |
14835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14836 /* end confdefs.h. */ | |
14837 | |
14838 int | |
14839 main () | |
14840 { | |
14841 | |
14842 ; | |
14843 return 0; | |
14844 } | |
14845 _ACEOF | |
14846 if ac_fn_c_try_compile "$LINENO"; then : | |
14847 ax_cv_c_flags__fvec=yes | |
14848 else | |
14849 ax_cv_c_flags__fvec=no | |
14850 fi | |
14851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14852 CFLAGS=$ax_save_FLAGS | |
14853 fi | |
14854 | |
14855 eval ax_check_compiler_flags=$ax_cv_c_flags__fvec | |
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
14857 $as_echo "$ax_check_compiler_flags" >&6; } | |
14858 if test "x$ax_check_compiler_flags" = xyes; then | |
14859 ALTIVEC_CFLAGS="-fvec" | |
14860 else | |
14861 as_fn_error $? "Need a version of gcc with -maltivec" "$LINENO" 5 | |
14862 fi | |
14863 | |
14864 fi | |
14865 | |
14866 fi | |
14867 | |
14868 fi | |
14869 | |
14870 case "${host_cpu}" in | |
14871 aarch64) | |
14872 ;; | |
14873 *) | |
14874 if test "$have_neon" = "yes" -a "x$NEON_CFLAGS" = x; then | |
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mfpu=neon" >&5 | |
14876 $as_echo_n "checking whether C compiler accepts -mfpu=neon... " >&6; } | |
14877 if ${ax_cv_c_flags__mfpu_neon+:} false; then : | |
14878 $as_echo_n "(cached) " >&6 | |
14879 else | |
14880 | |
14881 ax_save_FLAGS=$CFLAGS | |
14882 CFLAGS="-mfpu=neon" | |
14883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14884 /* end confdefs.h. */ | |
14885 | |
14886 int | |
14887 main () | |
14888 { | |
14889 | |
14890 ; | |
14891 return 0; | |
14892 } | |
14893 _ACEOF | |
14894 if ac_fn_c_try_compile "$LINENO"; then : | |
14895 ax_cv_c_flags__mfpu_neon=yes | |
14896 else | |
14897 ax_cv_c_flags__mfpu_neon=no | |
14898 fi | |
14899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14900 CFLAGS=$ax_save_FLAGS | |
14901 fi | |
14902 | |
14903 eval ax_check_compiler_flags=$ax_cv_c_flags__mfpu_neon | |
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
14905 $as_echo "$ax_check_compiler_flags" >&6; } | |
14906 if test "x$ax_check_compiler_flags" = xyes; then | |
14907 NEON_CFLAGS="-mfpu=neon" | |
14908 else | |
14909 as_fn_error $? "Need a version of gcc with -mfpu=neon" "$LINENO" 5 | |
14910 fi | |
14911 | |
14912 fi | |
14913 ;; | |
14914 esac | |
14915 | |
14916 if test "$have_vsx" = "yes" -a "x$VSX_CFLAGS" = x; then | |
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mvsx" >&5 | |
14918 $as_echo_n "checking whether C compiler accepts -mvsx... " >&6; } | |
14919 if ${ax_cv_c_flags__mvsx+:} false; then : | |
14920 $as_echo_n "(cached) " >&6 | |
14921 else | |
14922 | |
14923 ax_save_FLAGS=$CFLAGS | |
14924 CFLAGS="-mvsx" | |
14925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14926 /* end confdefs.h. */ | |
14927 | |
14928 int | |
14929 main () | |
14930 { | |
14931 | |
14932 ; | |
14933 return 0; | |
14934 } | |
14935 _ACEOF | |
14936 if ac_fn_c_try_compile "$LINENO"; then : | |
14937 ax_cv_c_flags__mvsx=yes | |
14938 else | |
14939 ax_cv_c_flags__mvsx=no | |
14940 fi | |
14941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14942 CFLAGS=$ax_save_FLAGS | |
14943 fi | |
14944 | |
14945 eval ax_check_compiler_flags=$ax_cv_c_flags__mvsx | |
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
14947 $as_echo "$ax_check_compiler_flags" >&6; } | |
14948 if test "x$ax_check_compiler_flags" = xyes; then | |
14949 VSX_CFLAGS="-mvsx" | |
14950 else | |
14951 as_fn_error $? "Need a version of gcc with -mvsx" "$LINENO" 5 | |
14952 fi | |
14953 | |
14954 fi | |
14955 | |
14956 ;; | |
14957 | |
14958 clang) | |
14959 | |
14960 if test "$have_avx" = "yes" -a "x$AVX_CFLAGS" = x; then | |
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx" >&5 | |
14962 $as_echo_n "checking whether C compiler accepts -mavx... " >&6; } | |
14963 if ${ax_cv_c_flags__mavx+:} false; then : | |
14964 $as_echo_n "(cached) " >&6 | |
14965 else | |
14966 | |
14967 ax_save_FLAGS=$CFLAGS | |
14968 CFLAGS="-mavx" | |
14969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14970 /* end confdefs.h. */ | |
14971 | |
14972 int | |
14973 main () | |
14974 { | |
14975 | |
14976 ; | |
14977 return 0; | |
14978 } | |
14979 _ACEOF | |
14980 if ac_fn_c_try_compile "$LINENO"; then : | |
14981 ax_cv_c_flags__mavx=yes | |
14982 else | |
14983 ax_cv_c_flags__mavx=no | |
14984 fi | |
14985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14986 CFLAGS=$ax_save_FLAGS | |
14987 fi | |
14988 | |
14989 eval ax_check_compiler_flags=$ax_cv_c_flags__mavx | |
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
14991 $as_echo "$ax_check_compiler_flags" >&6; } | |
14992 if test "x$ax_check_compiler_flags" = xyes; then | |
14993 AVX_CFLAGS="-mavx" | |
14994 else | |
14995 as_fn_error $? "Need a version of clang with -mavx" "$LINENO" 5 | |
14996 fi | |
14997 | |
14998 fi | |
14999 | |
15000 if test "$have_avx2" = "yes" -a "x$AVX2_CFLAGS" = x; then | |
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx2" >&5 | |
15002 $as_echo_n "checking whether C compiler accepts -mavx2... " >&6; } | |
15003 if ${ax_cv_c_flags__mavx2+:} false; then : | |
15004 $as_echo_n "(cached) " >&6 | |
15005 else | |
15006 | |
15007 ax_save_FLAGS=$CFLAGS | |
15008 CFLAGS="-mavx2" | |
15009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15010 /* end confdefs.h. */ | |
15011 | |
15012 int | |
15013 main () | |
15014 { | |
15015 | |
15016 ; | |
15017 return 0; | |
15018 } | |
15019 _ACEOF | |
15020 if ac_fn_c_try_compile "$LINENO"; then : | |
15021 ax_cv_c_flags__mavx2=yes | |
15022 else | |
15023 ax_cv_c_flags__mavx2=no | |
15024 fi | |
15025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15026 CFLAGS=$ax_save_FLAGS | |
15027 fi | |
15028 | |
15029 eval ax_check_compiler_flags=$ax_cv_c_flags__mavx2 | |
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
15031 $as_echo "$ax_check_compiler_flags" >&6; } | |
15032 if test "x$ax_check_compiler_flags" = xyes; then | |
15033 AVX2_CFLAGS="-mavx2" | |
15034 else | |
15035 as_fn_error $? "Need a version of clang with -mavx2" "$LINENO" 5 | |
15036 fi | |
15037 | |
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mfma" >&5 | |
15039 $as_echo_n "checking whether C compiler accepts -mfma... " >&6; } | |
15040 if ${ax_cv_c_flags__mfma+:} false; then : | |
15041 $as_echo_n "(cached) " >&6 | |
15042 else | |
15043 | |
15044 ax_save_FLAGS=$CFLAGS | |
15045 CFLAGS="-mfma" | |
15046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15047 /* end confdefs.h. */ | |
15048 | |
15049 int | |
15050 main () | |
15051 { | |
15052 | |
15053 ; | |
15054 return 0; | |
15055 } | |
15056 _ACEOF | |
15057 if ac_fn_c_try_compile "$LINENO"; then : | |
15058 ax_cv_c_flags__mfma=yes | |
15059 else | |
15060 ax_cv_c_flags__mfma=no | |
15061 fi | |
15062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15063 CFLAGS=$ax_save_FLAGS | |
15064 fi | |
15065 | |
15066 eval ax_check_compiler_flags=$ax_cv_c_flags__mfma | |
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
15068 $as_echo "$ax_check_compiler_flags" >&6; } | |
15069 if test "x$ax_check_compiler_flags" = xyes; then | |
15070 AVX2_CFLAGS="$AVX2_CFLAGS -mfma" | |
15071 else | |
15072 : | |
15073 fi | |
15074 | |
15075 fi | |
15076 | |
15077 if test "$have_vsx" = "yes" -a "x$VSX_CFLAGS" = x; then | |
15078 # clang appears to need both -mvsx and -maltivec for VSX | |
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -maltivec" >&5 | |
15080 $as_echo_n "checking whether C compiler accepts -maltivec... " >&6; } | |
15081 if ${ax_cv_c_flags__maltivec+:} false; then : | |
15082 $as_echo_n "(cached) " >&6 | |
15083 else | |
15084 | |
15085 ax_save_FLAGS=$CFLAGS | |
15086 CFLAGS="-maltivec" | |
15087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15088 /* end confdefs.h. */ | |
15089 | |
15090 int | |
15091 main () | |
15092 { | |
15093 | |
15094 ; | |
15095 return 0; | |
15096 } | |
15097 _ACEOF | |
15098 if ac_fn_c_try_compile "$LINENO"; then : | |
15099 ax_cv_c_flags__maltivec=yes | |
15100 else | |
15101 ax_cv_c_flags__maltivec=no | |
15102 fi | |
15103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15104 CFLAGS=$ax_save_FLAGS | |
15105 fi | |
15106 | |
15107 eval ax_check_compiler_flags=$ax_cv_c_flags__maltivec | |
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
15109 $as_echo "$ax_check_compiler_flags" >&6; } | |
15110 if test "x$ax_check_compiler_flags" = xyes; then | |
15111 VSX_CFLAGS="-maltivec" | |
15112 else | |
15113 as_fn_error $? "Need a version of gcc with -maltivec" "$LINENO" 5 | |
15114 fi | |
15115 | |
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mvsx" >&5 | |
15117 $as_echo_n "checking whether C compiler accepts -mvsx... " >&6; } | |
15118 if ${ax_cv_c_flags__mvsx+:} false; then : | |
15119 $as_echo_n "(cached) " >&6 | |
15120 else | |
15121 | |
15122 ax_save_FLAGS=$CFLAGS | |
15123 CFLAGS="-mvsx" | |
15124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15125 /* end confdefs.h. */ | |
15126 | |
15127 int | |
15128 main () | |
15129 { | |
15130 | |
15131 ; | |
15132 return 0; | |
15133 } | |
15134 _ACEOF | |
15135 if ac_fn_c_try_compile "$LINENO"; then : | |
15136 ax_cv_c_flags__mvsx=yes | |
15137 else | |
15138 ax_cv_c_flags__mvsx=no | |
15139 fi | |
15140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15141 CFLAGS=$ax_save_FLAGS | |
15142 fi | |
15143 | |
15144 eval ax_check_compiler_flags=$ax_cv_c_flags__mvsx | |
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
15146 $as_echo "$ax_check_compiler_flags" >&6; } | |
15147 if test "x$ax_check_compiler_flags" = xyes; then | |
15148 VSX_CFLAGS="-mvsx $VSX_CFLAGS" | |
15149 else | |
15150 as_fn_error $? "Need a version of gcc with -mvsx" "$LINENO" 5 | |
15151 fi | |
15152 | |
15153 fi | |
15154 ;; | |
15155 | |
15156 ibm) | |
15157 if test "$have_vsx" = "yes" -a "x$VSX_CFLAGS" = x; then | |
15158 # Note that IBM xlC uses -qaltivec for VSX too. | |
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -qaltivec" >&5 | |
15160 $as_echo_n "checking whether C compiler accepts -qaltivec... " >&6; } | |
15161 if ${ax_cv_c_flags__qaltivec+:} false; then : | |
15162 $as_echo_n "(cached) " >&6 | |
15163 else | |
15164 | |
15165 ax_save_FLAGS=$CFLAGS | |
15166 CFLAGS="-qaltivec" | |
15167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15168 /* end confdefs.h. */ | |
15169 | |
15170 int | |
15171 main () | |
15172 { | |
15173 | |
15174 ; | |
15175 return 0; | |
15176 } | |
15177 _ACEOF | |
15178 if ac_fn_c_try_compile "$LINENO"; then : | |
15179 ax_cv_c_flags__qaltivec=yes | |
15180 else | |
15181 ax_cv_c_flags__qaltivec=no | |
15182 fi | |
15183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15184 CFLAGS=$ax_save_FLAGS | |
15185 fi | |
15186 | |
15187 eval ax_check_compiler_flags=$ax_cv_c_flags__qaltivec | |
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
15189 $as_echo "$ax_check_compiler_flags" >&6; } | |
15190 if test "x$ax_check_compiler_flags" = xyes; then | |
15191 VSX_CFLAGS="-qaltivec" | |
15192 else | |
15193 as_fn_error $? "Need a version of gcc with -qaltivec" "$LINENO" 5 | |
15194 fi | |
15195 | |
15196 fi | |
15197 ;; | |
15198 esac | |
15199 | |
15200 | |
15201 | |
15202 | |
15203 | |
15204 | |
15205 | |
15206 | |
15207 | |
15208 | |
15209 if test "$with_incoming_stack_boundary"x != "no"x; then | |
15210 case "${ax_cv_c_compiler_vendor}" in | |
15211 gnu) | |
15212 tentative_flags="-mincoming-stack-boundary=$with_incoming_stack_boundary"; | |
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $tentative_flags" >&5 | |
15214 $as_echo_n "checking whether C compiler accepts $tentative_flags... " >&6; } | |
15215 ax_save_FLAGS=$CFLAGS | |
15216 CFLAGS="$tentative_flags" | |
15217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15218 /* end confdefs.h. */ | |
15219 | |
15220 int | |
15221 main () | |
15222 { | |
15223 | |
15224 ; | |
15225 return 0; | |
15226 } | |
15227 _ACEOF | |
15228 if ac_fn_c_try_compile "$LINENO"; then : | |
15229 eval `$as_echo "ax_cv_c_flags_$tentative_flags" | $as_tr_sh`=yes | |
15230 else | |
15231 eval `$as_echo "ax_cv_c_flags_$tentative_flags" | $as_tr_sh`=no | |
15232 fi | |
15233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15234 CFLAGS=$ax_save_FLAGS | |
15235 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$tentative_flags" | $as_tr_sh` | |
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
15237 $as_echo "$ax_check_compiler_flags" >&6; } | |
15238 if test "x$ax_check_compiler_flags" = xyes; then | |
15239 STACK_ALIGN_CFLAGS=$tentative_flags | |
15240 else | |
15241 : | |
15242 fi | |
15243 | |
15244 ;; | |
15245 esac | |
15246 fi | |
15247 | |
15248 | |
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
15250 $as_echo_n "checking for ANSI C header files... " >&6; } | |
15251 if ${ac_cv_header_stdc+:} false; then : | |
15252 $as_echo_n "(cached) " >&6 | |
15253 else | |
15254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15255 /* end confdefs.h. */ | |
15256 #include <stdlib.h> | |
15257 #include <stdarg.h> | |
15258 #include <string.h> | |
15259 #include <float.h> | |
15260 | |
15261 int | |
15262 main () | |
15263 { | |
15264 | |
15265 ; | |
15266 return 0; | |
15267 } | |
15268 _ACEOF | |
15269 if ac_fn_c_try_compile "$LINENO"; then : | |
15270 ac_cv_header_stdc=yes | |
15271 else | |
15272 ac_cv_header_stdc=no | |
15273 fi | |
15274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15275 | |
15276 if test $ac_cv_header_stdc = yes; then | |
15277 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
15278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15279 /* end confdefs.h. */ | |
15280 #include <string.h> | |
15281 | |
15282 _ACEOF | |
15283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15284 $EGREP "memchr" >/dev/null 2>&1; then : | |
15285 | |
15286 else | |
15287 ac_cv_header_stdc=no | |
15288 fi | |
15289 rm -f conftest* | |
15290 | |
15291 fi | |
15292 | |
15293 if test $ac_cv_header_stdc = yes; then | |
15294 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
15295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15296 /* end confdefs.h. */ | |
15297 #include <stdlib.h> | |
15298 | |
15299 _ACEOF | |
15300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15301 $EGREP "free" >/dev/null 2>&1; then : | |
15302 | |
15303 else | |
15304 ac_cv_header_stdc=no | |
15305 fi | |
15306 rm -f conftest* | |
15307 | |
15308 fi | |
15309 | |
15310 if test $ac_cv_header_stdc = yes; then | |
15311 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
15312 if test "$cross_compiling" = yes; then : | |
15313 : | |
15314 else | |
15315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15316 /* end confdefs.h. */ | |
15317 #include <ctype.h> | |
15318 #include <stdlib.h> | |
15319 #if ((' ' & 0x0FF) == 0x020) | |
15320 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
15321 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
15322 #else | |
15323 # define ISLOWER(c) \ | |
15324 (('a' <= (c) && (c) <= 'i') \ | |
15325 || ('j' <= (c) && (c) <= 'r') \ | |
15326 || ('s' <= (c) && (c) <= 'z')) | |
15327 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
15328 #endif | |
15329 | |
15330 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
15331 int | |
15332 main () | |
15333 { | |
15334 int i; | |
15335 for (i = 0; i < 256; i++) | |
15336 if (XOR (islower (i), ISLOWER (i)) | |
15337 || toupper (i) != TOUPPER (i)) | |
15338 return 2; | |
15339 return 0; | |
15340 } | |
15341 _ACEOF | |
15342 if ac_fn_c_try_run "$LINENO"; then : | |
15343 | |
15344 else | |
15345 ac_cv_header_stdc=no | |
15346 fi | |
15347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
15348 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15349 fi | |
15350 | |
15351 fi | |
15352 fi | |
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
15354 $as_echo "$ac_cv_header_stdc" >&6; } | |
15355 if test $ac_cv_header_stdc = yes; then | |
15356 | |
15357 $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
15358 | |
15359 fi | |
15360 | |
15361 for ac_header in libintl.h malloc.h stddef.h stdlib.h string.h strings.h sys/time.h unistd.h limits.h c_asm.h intrinsics.h stdint.h mach/mach_time.h sys/sysctl.h | |
15362 do : | |
15363 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15364 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
15365 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
15366 cat >>confdefs.h <<_ACEOF | |
15367 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15368 _ACEOF | |
15369 | |
15370 fi | |
15371 | |
15372 done | |
15373 | |
15374 | |
15375 save_CFLAGS="$CFLAGS" | |
15376 save_CPPFLAGS="$CPPFLAGS" | |
15377 CFLAGS="$CFLAGS $ALTIVEC_CFLAGS $VSX_CFLAGS" | |
15378 CPPFLAGS="$CPPFLAGS $ALTIVEC_CFLAGS $VSX_CFLAGS" | |
15379 for ac_header in altivec.h | |
15380 do : | |
15381 ac_fn_c_check_header_mongrel "$LINENO" "altivec.h" "ac_cv_header_altivec_h" "$ac_includes_default" | |
15382 if test "x$ac_cv_header_altivec_h" = xyes; then : | |
15383 cat >>confdefs.h <<_ACEOF | |
15384 #define HAVE_ALTIVEC_H 1 | |
15385 _ACEOF | |
15386 | |
15387 fi | |
15388 | |
15389 done | |
15390 | |
15391 CFLAGS="$save_CFLAGS" | |
15392 CPPFLAGS="$save_CPPFLAGS" | |
15393 | |
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | |
15395 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
15396 if ${ac_cv_c_const+:} false; then : | |
15397 $as_echo_n "(cached) " >&6 | |
15398 else | |
15399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15400 /* end confdefs.h. */ | |
15401 | |
15402 int | |
15403 main () | |
15404 { | |
15405 | |
15406 #ifndef __cplusplus | |
15407 /* Ultrix mips cc rejects this sort of thing. */ | |
15408 typedef int charset[2]; | |
15409 const charset cs = { 0, 0 }; | |
15410 /* SunOS 4.1.1 cc rejects this. */ | |
15411 char const *const *pcpcc; | |
15412 char **ppc; | |
15413 /* NEC SVR4.0.2 mips cc rejects this. */ | |
15414 struct point {int x, y;}; | |
15415 static struct point const zero = {0,0}; | |
15416 /* AIX XL C 1.02.0.0 rejects this. | |
15417 It does not let you subtract one const X* pointer from another in | |
15418 an arm of an if-expression whose if-part is not a constant | |
15419 expression */ | |
15420 const char *g = "string"; | |
15421 pcpcc = &g + (g ? g-g : 0); | |
15422 /* HPUX 7.0 cc rejects these. */ | |
15423 ++pcpcc; | |
15424 ppc = (char**) pcpcc; | |
15425 pcpcc = (char const *const *) ppc; | |
15426 { /* SCO 3.2v4 cc rejects this sort of thing. */ | |
15427 char tx; | |
15428 char *t = &tx; | |
15429 char const *s = 0 ? (char *) 0 : (char const *) 0; | |
15430 | |
15431 *t++ = 0; | |
15432 if (s) return 0; | |
15433 } | |
15434 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
15435 int x[] = {25, 17}; | |
15436 const int *foo = &x[0]; | |
15437 ++foo; | |
15438 } | |
15439 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
15440 typedef const int *iptr; | |
15441 iptr p = 0; | |
15442 ++p; | |
15443 } | |
15444 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying | |
15445 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
15446 struct s { int j; const int *ap[3]; } bx; | |
15447 struct s *b = &bx; b->j = 5; | |
15448 } | |
15449 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
15450 const int foo = 10; | |
15451 if (!foo) return 0; | |
15452 } | |
15453 return !cs[0] && !zero.x; | |
15454 #endif | |
15455 | |
15456 ; | |
15457 return 0; | |
15458 } | |
15459 _ACEOF | |
15460 if ac_fn_c_try_compile "$LINENO"; then : | |
15461 ac_cv_c_const=yes | |
15462 else | |
15463 ac_cv_c_const=no | |
15464 fi | |
15465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15466 fi | |
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | |
15468 $as_echo "$ac_cv_c_const" >&6; } | |
15469 if test $ac_cv_c_const = no; then | |
15470 | |
15471 $as_echo "#define const /**/" >>confdefs.h | |
15472 | |
15473 fi | |
15474 | |
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | |
15476 $as_echo_n "checking for inline... " >&6; } | |
15477 if ${ac_cv_c_inline+:} false; then : | |
15478 $as_echo_n "(cached) " >&6 | |
15479 else | |
15480 ac_cv_c_inline=no | |
15481 for ac_kw in inline __inline__ __inline; do | |
15482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15483 /* end confdefs.h. */ | |
15484 #ifndef __cplusplus | |
15485 typedef int foo_t; | |
15486 static $ac_kw foo_t static_foo () {return 0; } | |
15487 $ac_kw foo_t foo () {return 0; } | |
15488 #endif | |
15489 | |
15490 _ACEOF | |
15491 if ac_fn_c_try_compile "$LINENO"; then : | |
15492 ac_cv_c_inline=$ac_kw | |
15493 fi | |
15494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15495 test "$ac_cv_c_inline" != no && break | |
15496 done | |
15497 | |
15498 fi | |
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | |
15500 $as_echo "$ac_cv_c_inline" >&6; } | |
15501 | |
15502 case $ac_cv_c_inline in | |
15503 inline | yes) ;; | |
15504 *) | |
15505 case $ac_cv_c_inline in | |
15506 no) ac_val=;; | |
15507 *) ac_val=$ac_cv_c_inline;; | |
15508 esac | |
15509 cat >>confdefs.h <<_ACEOF | |
15510 #ifndef __cplusplus | |
15511 #define inline $ac_val | |
15512 #endif | |
15513 _ACEOF | |
15514 ;; | |
15515 esac | |
15516 | |
15517 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | |
15518 if test "x$ac_cv_type_size_t" = xyes; then : | |
15519 | |
15520 else | |
15521 | |
15522 cat >>confdefs.h <<_ACEOF | |
15523 #define size_t unsigned int | |
15524 _ACEOF | |
15525 | |
15526 fi | |
15527 | |
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | |
15529 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
15530 if ${ac_cv_header_time+:} false; then : | |
15531 $as_echo_n "(cached) " >&6 | |
15532 else | |
15533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15534 /* end confdefs.h. */ | |
15535 #include <sys/types.h> | |
15536 #include <sys/time.h> | |
15537 #include <time.h> | |
15538 | |
15539 int | |
15540 main () | |
15541 { | |
15542 if ((struct tm *) 0) | |
15543 return 0; | |
15544 ; | |
15545 return 0; | |
15546 } | |
15547 _ACEOF | |
15548 if ac_fn_c_try_compile "$LINENO"; then : | |
15549 ac_cv_header_time=yes | |
15550 else | |
15551 ac_cv_header_time=no | |
15552 fi | |
15553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15554 fi | |
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | |
15556 $as_echo "$ac_cv_header_time" >&6; } | |
15557 if test $ac_cv_header_time = yes; then | |
15558 | |
15559 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | |
15560 | |
15561 fi | |
15562 | |
15563 ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default" | |
15564 if test "x$ac_cv_type_long_double" = xyes; then : | |
15565 | |
15566 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h | |
15567 | |
15568 else | |
15569 | |
15570 if test $PRECISION = l; then | |
15571 as_fn_error $? "long double is not a supported type with your compiler." "$LINENO" 5 | |
15572 fi | |
15573 | |
15574 fi | |
15575 | |
15576 ac_fn_c_check_type "$LINENO" "hrtime_t" "ac_cv_type_hrtime_t" " | |
15577 #if HAVE_SYS_TIME_H | |
15578 #include <sys/time.h> | |
15579 #endif | |
15580 | |
15581 " | |
15582 if test "x$ac_cv_type_hrtime_t" = xyes; then : | |
15583 | |
15584 $as_echo "#define HAVE_HRTIME_T 1" >>confdefs.h | |
15585 | |
15586 fi | |
15587 | |
15588 | |
15589 # The cast to long int works around a bug in the HP C Compiler | |
15590 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15591 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15592 # This bug is HP SR number 8606223364. | |
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
15594 $as_echo_n "checking size of int... " >&6; } | |
15595 if ${ac_cv_sizeof_int+:} false; then : | |
15596 $as_echo_n "(cached) " >&6 | |
15597 else | |
15598 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | |
15599 | |
15600 else | |
15601 if test "$ac_cv_type_int" = yes; then | |
15602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15604 as_fn_error 77 "cannot compute sizeof (int) | |
15605 See \`config.log' for more details" "$LINENO" 5; } | |
15606 else | |
15607 ac_cv_sizeof_int=0 | |
15608 fi | |
15609 fi | |
15610 | |
15611 fi | |
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
15613 $as_echo "$ac_cv_sizeof_int" >&6; } | |
15614 | |
15615 | |
15616 | |
15617 cat >>confdefs.h <<_ACEOF | |
15618 #define SIZEOF_INT $ac_cv_sizeof_int | |
15619 _ACEOF | |
15620 | |
15621 | |
15622 # The cast to long int works around a bug in the HP C Compiler | |
15623 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15624 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15625 # This bug is HP SR number 8606223364. | |
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 | |
15627 $as_echo_n "checking size of unsigned int... " >&6; } | |
15628 if ${ac_cv_sizeof_unsigned_int+:} false; then : | |
15629 $as_echo_n "(cached) " >&6 | |
15630 else | |
15631 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then : | |
15632 | |
15633 else | |
15634 if test "$ac_cv_type_unsigned_int" = yes; then | |
15635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15637 as_fn_error 77 "cannot compute sizeof (unsigned int) | |
15638 See \`config.log' for more details" "$LINENO" 5; } | |
15639 else | |
15640 ac_cv_sizeof_unsigned_int=0 | |
15641 fi | |
15642 fi | |
15643 | |
15644 fi | |
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5 | |
15646 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; } | |
15647 | |
15648 | |
15649 | |
15650 cat >>confdefs.h <<_ACEOF | |
15651 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int | |
15652 _ACEOF | |
15653 | |
15654 | |
15655 # The cast to long int works around a bug in the HP C Compiler | |
15656 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15657 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15658 # This bug is HP SR number 8606223364. | |
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
15660 $as_echo_n "checking size of long... " >&6; } | |
15661 if ${ac_cv_sizeof_long+:} false; then : | |
15662 $as_echo_n "(cached) " >&6 | |
15663 else | |
15664 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : | |
15665 | |
15666 else | |
15667 if test "$ac_cv_type_long" = yes; then | |
15668 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15670 as_fn_error 77 "cannot compute sizeof (long) | |
15671 See \`config.log' for more details" "$LINENO" 5; } | |
15672 else | |
15673 ac_cv_sizeof_long=0 | |
15674 fi | |
15675 fi | |
15676 | |
15677 fi | |
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
15679 $as_echo "$ac_cv_sizeof_long" >&6; } | |
15680 | |
15681 | |
15682 | |
15683 cat >>confdefs.h <<_ACEOF | |
15684 #define SIZEOF_LONG $ac_cv_sizeof_long | |
15685 _ACEOF | |
15686 | |
15687 | |
15688 # The cast to long int works around a bug in the HP C Compiler | |
15689 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15690 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15691 # This bug is HP SR number 8606223364. | |
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 | |
15693 $as_echo_n "checking size of unsigned long... " >&6; } | |
15694 if ${ac_cv_sizeof_unsigned_long+:} false; then : | |
15695 $as_echo_n "(cached) " >&6 | |
15696 else | |
15697 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : | |
15698 | |
15699 else | |
15700 if test "$ac_cv_type_unsigned_long" = yes; then | |
15701 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15703 as_fn_error 77 "cannot compute sizeof (unsigned long) | |
15704 See \`config.log' for more details" "$LINENO" 5; } | |
15705 else | |
15706 ac_cv_sizeof_unsigned_long=0 | |
15707 fi | |
15708 fi | |
15709 | |
15710 fi | |
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 | |
15712 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; } | |
15713 | |
15714 | |
15715 | |
15716 cat >>confdefs.h <<_ACEOF | |
15717 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long | |
15718 _ACEOF | |
15719 | |
15720 | |
15721 # The cast to long int works around a bug in the HP C Compiler | |
15722 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15723 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15724 # This bug is HP SR number 8606223364. | |
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | |
15726 $as_echo_n "checking size of long long... " >&6; } | |
15727 if ${ac_cv_sizeof_long_long+:} false; then : | |
15728 $as_echo_n "(cached) " >&6 | |
15729 else | |
15730 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : | |
15731 | |
15732 else | |
15733 if test "$ac_cv_type_long_long" = yes; then | |
15734 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15736 as_fn_error 77 "cannot compute sizeof (long long) | |
15737 See \`config.log' for more details" "$LINENO" 5; } | |
15738 else | |
15739 ac_cv_sizeof_long_long=0 | |
15740 fi | |
15741 fi | |
15742 | |
15743 fi | |
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 | |
15745 $as_echo "$ac_cv_sizeof_long_long" >&6; } | |
15746 | |
15747 | |
15748 | |
15749 cat >>confdefs.h <<_ACEOF | |
15750 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
15751 _ACEOF | |
15752 | |
15753 | |
15754 # The cast to long int works around a bug in the HP C Compiler | |
15755 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15756 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15757 # This bug is HP SR number 8606223364. | |
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5 | |
15759 $as_echo_n "checking size of unsigned long long... " >&6; } | |
15760 if ${ac_cv_sizeof_unsigned_long_long+:} false; then : | |
15761 $as_echo_n "(cached) " >&6 | |
15762 else | |
15763 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then : | |
15764 | |
15765 else | |
15766 if test "$ac_cv_type_unsigned_long_long" = yes; then | |
15767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15769 as_fn_error 77 "cannot compute sizeof (unsigned long long) | |
15770 See \`config.log' for more details" "$LINENO" 5; } | |
15771 else | |
15772 ac_cv_sizeof_unsigned_long_long=0 | |
15773 fi | |
15774 fi | |
15775 | |
15776 fi | |
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5 | |
15778 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } | |
15779 | |
15780 | |
15781 | |
15782 cat >>confdefs.h <<_ACEOF | |
15783 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long | |
15784 _ACEOF | |
15785 | |
15786 | |
15787 # The cast to long int works around a bug in the HP C Compiler | |
15788 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15789 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15790 # This bug is HP SR number 8606223364. | |
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 | |
15792 $as_echo_n "checking size of size_t... " >&6; } | |
15793 if ${ac_cv_sizeof_size_t+:} false; then : | |
15794 $as_echo_n "(cached) " >&6 | |
15795 else | |
15796 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : | |
15797 | |
15798 else | |
15799 if test "$ac_cv_type_size_t" = yes; then | |
15800 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15802 as_fn_error 77 "cannot compute sizeof (size_t) | |
15803 See \`config.log' for more details" "$LINENO" 5; } | |
15804 else | |
15805 ac_cv_sizeof_size_t=0 | |
15806 fi | |
15807 fi | |
15808 | |
15809 fi | |
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 | |
15811 $as_echo "$ac_cv_sizeof_size_t" >&6; } | |
15812 | |
15813 | |
15814 | |
15815 cat >>confdefs.h <<_ACEOF | |
15816 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
15817 _ACEOF | |
15818 | |
15819 | |
15820 # The cast to long int works around a bug in the HP C Compiler | |
15821 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15822 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15823 # This bug is HP SR number 8606223364. | |
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ptrdiff_t" >&5 | |
15825 $as_echo_n "checking size of ptrdiff_t... " >&6; } | |
15826 if ${ac_cv_sizeof_ptrdiff_t+:} false; then : | |
15827 $as_echo_n "(cached) " >&6 | |
15828 else | |
15829 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ptrdiff_t))" "ac_cv_sizeof_ptrdiff_t" "$ac_includes_default"; then : | |
15830 | |
15831 else | |
15832 if test "$ac_cv_type_ptrdiff_t" = yes; then | |
15833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15835 as_fn_error 77 "cannot compute sizeof (ptrdiff_t) | |
15836 See \`config.log' for more details" "$LINENO" 5; } | |
15837 else | |
15838 ac_cv_sizeof_ptrdiff_t=0 | |
15839 fi | |
15840 fi | |
15841 | |
15842 fi | |
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ptrdiff_t" >&5 | |
15844 $as_echo "$ac_cv_sizeof_ptrdiff_t" >&6; } | |
15845 | |
15846 | |
15847 | |
15848 cat >>confdefs.h <<_ACEOF | |
15849 #define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t | |
15850 _ACEOF | |
15851 | |
15852 | |
15853 | |
15854 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default | |
15855 #ifdef HAVE_STDINT_H | |
15856 # include <stdint.h> | |
15857 #endif | |
15858 " | |
15859 if test "x$ac_cv_type_uintptr_t" = xyes; then : | |
15860 | |
15861 cat >>confdefs.h <<_ACEOF | |
15862 #define HAVE_UINTPTR_T 1 | |
15863 _ACEOF | |
15864 | |
15865 | |
15866 else | |
15867 # The cast to long int works around a bug in the HP C Compiler | |
15868 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15869 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15870 # This bug is HP SR number 8606223364. | |
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | |
15872 $as_echo_n "checking size of void *... " >&6; } | |
15873 if ${ac_cv_sizeof_void_p+:} false; then : | |
15874 $as_echo_n "(cached) " >&6 | |
15875 else | |
15876 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : | |
15877 | |
15878 else | |
15879 if test "$ac_cv_type_void_p" = yes; then | |
15880 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15882 as_fn_error 77 "cannot compute sizeof (void *) | |
15883 See \`config.log' for more details" "$LINENO" 5; } | |
15884 else | |
15885 ac_cv_sizeof_void_p=0 | |
15886 fi | |
15887 fi | |
15888 | |
15889 fi | |
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | |
15891 $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
15892 | |
15893 | |
15894 | |
15895 cat >>confdefs.h <<_ACEOF | |
15896 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
15897 _ACEOF | |
15898 | |
15899 | |
15900 fi | |
15901 | |
15902 | |
15903 # The cast to long int works around a bug in the HP C Compiler | |
15904 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15905 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15906 # This bug is HP SR number 8606223364. | |
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 | |
15908 $as_echo_n "checking size of float... " >&6; } | |
15909 if ${ac_cv_sizeof_float+:} false; then : | |
15910 $as_echo_n "(cached) " >&6 | |
15911 else | |
15912 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then : | |
15913 | |
15914 else | |
15915 if test "$ac_cv_type_float" = yes; then | |
15916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15917 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15918 as_fn_error 77 "cannot compute sizeof (float) | |
15919 See \`config.log' for more details" "$LINENO" 5; } | |
15920 else | |
15921 ac_cv_sizeof_float=0 | |
15922 fi | |
15923 fi | |
15924 | |
15925 fi | |
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 | |
15927 $as_echo "$ac_cv_sizeof_float" >&6; } | |
15928 | |
15929 | |
15930 | |
15931 cat >>confdefs.h <<_ACEOF | |
15932 #define SIZEOF_FLOAT $ac_cv_sizeof_float | |
15933 _ACEOF | |
15934 | |
15935 | |
15936 # The cast to long int works around a bug in the HP C Compiler | |
15937 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15938 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15939 # This bug is HP SR number 8606223364. | |
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 | |
15941 $as_echo_n "checking size of double... " >&6; } | |
15942 if ${ac_cv_sizeof_double+:} false; then : | |
15943 $as_echo_n "(cached) " >&6 | |
15944 else | |
15945 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then : | |
15946 | |
15947 else | |
15948 if test "$ac_cv_type_double" = yes; then | |
15949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15951 as_fn_error 77 "cannot compute sizeof (double) | |
15952 See \`config.log' for more details" "$LINENO" 5; } | |
15953 else | |
15954 ac_cv_sizeof_double=0 | |
15955 fi | |
15956 fi | |
15957 | |
15958 fi | |
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 | |
15960 $as_echo "$ac_cv_sizeof_double" >&6; } | |
15961 | |
15962 | |
15963 | |
15964 cat >>confdefs.h <<_ACEOF | |
15965 #define SIZEOF_DOUBLE $ac_cv_sizeof_double | |
15966 _ACEOF | |
15967 | |
15968 | |
15969 | |
15970 # The cast to long int works around a bug in the HP C Compiler | |
15971 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15972 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15973 # This bug is HP SR number 8606223364. | |
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fftw_r2r_kind" >&5 | |
15975 $as_echo_n "checking size of fftw_r2r_kind... " >&6; } | |
15976 if ${ac_cv_sizeof_fftw_r2r_kind+:} false; then : | |
15977 $as_echo_n "(cached) " >&6 | |
15978 else | |
15979 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fftw_r2r_kind))" "ac_cv_sizeof_fftw_r2r_kind" "typedef enum { | |
15980 FFTW_R2HC=0, FFTW_HC2R=1, FFTW_DHT=2, | |
15981 FFTW_REDFT00=3, FFTW_REDFT01=4, FFTW_REDFT10=5, FFTW_REDFT11=6, | |
15982 FFTW_RODFT00=7, FFTW_RODFT01=8, FFTW_RODFT10=9, FFTW_RODFT11=10 | |
15983 } fftw_r2r_kind; | |
15984 "; then : | |
15985 | |
15986 else | |
15987 if test "$ac_cv_type_fftw_r2r_kind" = yes; then | |
15988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15990 as_fn_error 77 "cannot compute sizeof (fftw_r2r_kind) | |
15991 See \`config.log' for more details" "$LINENO" 5; } | |
15992 else | |
15993 ac_cv_sizeof_fftw_r2r_kind=0 | |
15994 fi | |
15995 fi | |
15996 | |
15997 fi | |
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fftw_r2r_kind" >&5 | |
15999 $as_echo "$ac_cv_sizeof_fftw_r2r_kind" >&6; } | |
16000 | |
16001 | |
16002 | |
16003 cat >>confdefs.h <<_ACEOF | |
16004 #define SIZEOF_FFTW_R2R_KIND $ac_cv_sizeof_fftw_r2r_kind | |
16005 _ACEOF | |
16006 | |
16007 | |
16008 if test 0 = $ac_cv_sizeof_fftw_r2r_kind; then as_fn_error $? "sizeof(fftw_r2r_kind) test failed" "$LINENO" 5; fi | |
16009 C_FFTW_R2R_KIND=C_INT`expr $ac_cv_sizeof_fftw_r2r_kind \* 8`_T | |
16010 | |
16011 | |
16012 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
16013 # for constant arguments. Useless! | |
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | |
16015 $as_echo_n "checking for working alloca.h... " >&6; } | |
16016 if ${ac_cv_working_alloca_h+:} false; then : | |
16017 $as_echo_n "(cached) " >&6 | |
16018 else | |
16019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16020 /* end confdefs.h. */ | |
16021 #include <alloca.h> | |
16022 int | |
16023 main () | |
16024 { | |
16025 char *p = (char *) alloca (2 * sizeof (int)); | |
16026 if (p) return 0; | |
16027 ; | |
16028 return 0; | |
16029 } | |
16030 _ACEOF | |
16031 if ac_fn_c_try_link "$LINENO"; then : | |
16032 ac_cv_working_alloca_h=yes | |
16033 else | |
16034 ac_cv_working_alloca_h=no | |
16035 fi | |
16036 rm -f core conftest.err conftest.$ac_objext \ | |
16037 conftest$ac_exeext conftest.$ac_ext | |
16038 fi | |
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 | |
16040 $as_echo "$ac_cv_working_alloca_h" >&6; } | |
16041 if test $ac_cv_working_alloca_h = yes; then | |
16042 | |
16043 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h | |
16044 | |
16045 fi | |
16046 | |
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 | |
16048 $as_echo_n "checking for alloca... " >&6; } | |
16049 if ${ac_cv_func_alloca_works+:} false; then : | |
16050 $as_echo_n "(cached) " >&6 | |
16051 else | |
16052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16053 /* end confdefs.h. */ | |
16054 #ifdef __GNUC__ | |
16055 # define alloca __builtin_alloca | |
16056 #else | |
16057 # ifdef _MSC_VER | |
16058 # include <malloc.h> | |
16059 # define alloca _alloca | |
16060 # else | |
16061 # ifdef HAVE_ALLOCA_H | |
16062 # include <alloca.h> | |
16063 # else | |
16064 # ifdef _AIX | |
16065 #pragma alloca | |
16066 # else | |
16067 # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
16068 void *alloca (size_t); | |
16069 # endif | |
16070 # endif | |
16071 # endif | |
16072 # endif | |
16073 #endif | |
16074 | |
16075 int | |
16076 main () | |
16077 { | |
16078 char *p = (char *) alloca (1); | |
16079 if (p) return 0; | |
16080 ; | |
16081 return 0; | |
16082 } | |
16083 _ACEOF | |
16084 if ac_fn_c_try_link "$LINENO"; then : | |
16085 ac_cv_func_alloca_works=yes | |
16086 else | |
16087 ac_cv_func_alloca_works=no | |
16088 fi | |
16089 rm -f core conftest.err conftest.$ac_objext \ | |
16090 conftest$ac_exeext conftest.$ac_ext | |
16091 fi | |
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 | |
16093 $as_echo "$ac_cv_func_alloca_works" >&6; } | |
16094 | |
16095 if test $ac_cv_func_alloca_works = yes; then | |
16096 | |
16097 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h | |
16098 | |
16099 else | |
16100 # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
16101 # that cause trouble. Some versions do not even contain alloca or | |
16102 # contain a buggy version. If you still want to use their alloca, | |
16103 # use ar to extract alloca.o from them instead of compiling alloca.c. | |
16104 | |
16105 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext | |
16106 | |
16107 $as_echo "#define C_ALLOCA 1" >>confdefs.h | |
16108 | |
16109 | |
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 | |
16111 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
16112 if ${ac_cv_os_cray+:} false; then : | |
16113 $as_echo_n "(cached) " >&6 | |
16114 else | |
16115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16116 /* end confdefs.h. */ | |
16117 #if defined CRAY && ! defined CRAY2 | |
16118 webecray | |
16119 #else | |
16120 wenotbecray | |
16121 #endif | |
16122 | |
16123 _ACEOF | |
16124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16125 $EGREP "webecray" >/dev/null 2>&1; then : | |
16126 ac_cv_os_cray=yes | |
16127 else | |
16128 ac_cv_os_cray=no | |
16129 fi | |
16130 rm -f conftest* | |
16131 | |
16132 fi | |
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 | |
16134 $as_echo "$ac_cv_os_cray" >&6; } | |
16135 if test $ac_cv_os_cray = yes; then | |
16136 for ac_func in _getb67 GETB67 getb67; do | |
16137 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16138 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
16139 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
16140 | |
16141 cat >>confdefs.h <<_ACEOF | |
16142 #define CRAY_STACKSEG_END $ac_func | |
16143 _ACEOF | |
16144 | |
16145 break | |
16146 fi | |
16147 | |
16148 done | |
16149 fi | |
16150 | |
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 | |
16152 $as_echo_n "checking stack direction for C alloca... " >&6; } | |
16153 if ${ac_cv_c_stack_direction+:} false; then : | |
16154 $as_echo_n "(cached) " >&6 | |
16155 else | |
16156 if test "$cross_compiling" = yes; then : | |
16157 ac_cv_c_stack_direction=0 | |
16158 else | |
16159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16160 /* end confdefs.h. */ | |
16161 $ac_includes_default | |
16162 int | |
16163 find_stack_direction (int *addr, int depth) | |
16164 { | |
16165 int dir, dummy = 0; | |
16166 if (! addr) | |
16167 addr = &dummy; | |
16168 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; | |
16169 dir = depth ? find_stack_direction (addr, depth - 1) : 0; | |
16170 return dir + dummy; | |
16171 } | |
16172 | |
16173 int | |
16174 main (int argc, char **argv) | |
16175 { | |
16176 return find_stack_direction (0, argc + !argv + 20) < 0; | |
16177 } | |
16178 _ACEOF | |
16179 if ac_fn_c_try_run "$LINENO"; then : | |
16180 ac_cv_c_stack_direction=1 | |
16181 else | |
16182 ac_cv_c_stack_direction=-1 | |
16183 fi | |
16184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
16185 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
16186 fi | |
16187 | |
16188 fi | |
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 | |
16190 $as_echo "$ac_cv_c_stack_direction" >&6; } | |
16191 cat >>confdefs.h <<_ACEOF | |
16192 #define STACK_DIRECTION $ac_cv_c_stack_direction | |
16193 _ACEOF | |
16194 | |
16195 | |
16196 fi | |
16197 | |
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 | |
16199 $as_echo_n "checking for working strtod... " >&6; } | |
16200 if ${ac_cv_func_strtod+:} false; then : | |
16201 $as_echo_n "(cached) " >&6 | |
16202 else | |
16203 if test "$cross_compiling" = yes; then : | |
16204 ac_cv_func_strtod=no | |
16205 else | |
16206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16207 /* end confdefs.h. */ | |
16208 | |
16209 $ac_includes_default | |
16210 #ifndef strtod | |
16211 double strtod (); | |
16212 #endif | |
16213 int | |
16214 main() | |
16215 { | |
16216 { | |
16217 /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
16218 char *string = " +69"; | |
16219 char *term; | |
16220 double value; | |
16221 value = strtod (string, &term); | |
16222 if (value != 69 || term != (string + 4)) | |
16223 return 1; | |
16224 } | |
16225 | |
16226 { | |
16227 /* Under Solaris 2.4, strtod returns the wrong value for the | |
16228 terminating character under some conditions. */ | |
16229 char *string = "NaN"; | |
16230 char *term; | |
16231 strtod (string, &term); | |
16232 if (term != string && *(term - 1) == 0) | |
16233 return 1; | |
16234 } | |
16235 return 0; | |
16236 } | |
16237 | |
16238 _ACEOF | |
16239 if ac_fn_c_try_run "$LINENO"; then : | |
16240 ac_cv_func_strtod=yes | |
16241 else | |
16242 ac_cv_func_strtod=no | |
16243 fi | |
16244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
16245 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
16246 fi | |
16247 | |
16248 fi | |
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 | |
16250 $as_echo "$ac_cv_func_strtod" >&6; } | |
16251 if test $ac_cv_func_strtod = no; then | |
16252 case " $LIBOBJS " in | |
16253 *" strtod.$ac_objext "* ) ;; | |
16254 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" | |
16255 ;; | |
16256 esac | |
16257 | |
16258 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" | |
16259 if test "x$ac_cv_func_pow" = xyes; then : | |
16260 | |
16261 fi | |
16262 | |
16263 if test $ac_cv_func_pow = no; then | |
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 | |
16265 $as_echo_n "checking for pow in -lm... " >&6; } | |
16266 if ${ac_cv_lib_m_pow+:} false; then : | |
16267 $as_echo_n "(cached) " >&6 | |
16268 else | |
16269 ac_check_lib_save_LIBS=$LIBS | |
16270 LIBS="-lm $LIBS" | |
16271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16272 /* end confdefs.h. */ | |
16273 | |
16274 /* Override any GCC internal prototype to avoid an error. | |
16275 Use char because int might match the return type of a GCC | |
16276 builtin and then its argument prototype would still apply. */ | |
16277 #ifdef __cplusplus | |
16278 extern "C" | |
16279 #endif | |
16280 char pow (); | |
16281 int | |
16282 main () | |
16283 { | |
16284 return pow (); | |
16285 ; | |
16286 return 0; | |
16287 } | |
16288 _ACEOF | |
16289 if ac_fn_c_try_link "$LINENO"; then : | |
16290 ac_cv_lib_m_pow=yes | |
16291 else | |
16292 ac_cv_lib_m_pow=no | |
16293 fi | |
16294 rm -f core conftest.err conftest.$ac_objext \ | |
16295 conftest$ac_exeext conftest.$ac_ext | |
16296 LIBS=$ac_check_lib_save_LIBS | |
16297 fi | |
16298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 | |
16299 $as_echo "$ac_cv_lib_m_pow" >&6; } | |
16300 if test "x$ac_cv_lib_m_pow" = xyes; then : | |
16301 POW_LIB=-lm | |
16302 else | |
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 | |
16304 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
16305 fi | |
16306 | |
16307 fi | |
16308 | |
16309 fi | |
16310 | |
16311 for ac_func in vprintf | |
16312 do : | |
16313 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" | |
16314 if test "x$ac_cv_func_vprintf" = xyes; then : | |
16315 cat >>confdefs.h <<_ACEOF | |
16316 #define HAVE_VPRINTF 1 | |
16317 _ACEOF | |
16318 | |
16319 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" | |
16320 if test "x$ac_cv_func__doprnt" = xyes; then : | |
16321 | |
16322 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h | |
16323 | |
16324 fi | |
16325 | |
16326 fi | |
16327 done | |
16328 | |
16329 | |
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 | |
16331 $as_echo_n "checking for sin in -lm... " >&6; } | |
16332 if ${ac_cv_lib_m_sin+:} false; then : | |
16333 $as_echo_n "(cached) " >&6 | |
16334 else | |
16335 ac_check_lib_save_LIBS=$LIBS | |
16336 LIBS="-lm $LIBS" | |
16337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16338 /* end confdefs.h. */ | |
16339 | |
16340 /* Override any GCC internal prototype to avoid an error. | |
16341 Use char because int might match the return type of a GCC | |
16342 builtin and then its argument prototype would still apply. */ | |
16343 #ifdef __cplusplus | |
16344 extern "C" | |
16345 #endif | |
16346 char sin (); | |
16347 int | |
16348 main () | |
16349 { | |
16350 return sin (); | |
16351 ; | |
16352 return 0; | |
16353 } | |
16354 _ACEOF | |
16355 if ac_fn_c_try_link "$LINENO"; then : | |
16356 ac_cv_lib_m_sin=yes | |
16357 else | |
16358 ac_cv_lib_m_sin=no | |
16359 fi | |
16360 rm -f core conftest.err conftest.$ac_objext \ | |
16361 conftest$ac_exeext conftest.$ac_ext | |
16362 LIBS=$ac_check_lib_save_LIBS | |
16363 fi | |
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 | |
16365 $as_echo "$ac_cv_lib_m_sin" >&6; } | |
16366 if test "x$ac_cv_lib_m_sin" = xyes; then : | |
16367 cat >>confdefs.h <<_ACEOF | |
16368 #define HAVE_LIBM 1 | |
16369 _ACEOF | |
16370 | |
16371 LIBS="-lm $LIBS" | |
16372 | |
16373 fi | |
16374 | |
16375 | |
16376 if test $PRECISION = q; then | |
16377 | |
16378 | |
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gcc 4.6.0 or later" >&5 | |
16380 $as_echo_n "checking whether we are using gcc 4.6.0 or later... " >&6; } | |
16381 if ${ax_cv_gcc_4_6_0+:} false; then : | |
16382 $as_echo_n "(cached) " >&6 | |
16383 else | |
16384 | |
16385 ax_cv_gcc_4_6_0=no | |
16386 if test "$GCC" = "yes"; then | |
16387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16388 /* end confdefs.h. */ | |
16389 | |
16390 #ifdef __GNUC__ | |
16391 # if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ > 6) \ | |
16392 || (__GNUC__ == 4 && __GNUC_MINOR__ == 6 && __GNUC_PATCHLEVEL__ >= 0) | |
16393 yes; | |
16394 # endif | |
16395 #endif | |
16396 | |
16397 _ACEOF | |
16398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16399 $EGREP "yes" >/dev/null 2>&1; then : | |
16400 ax_cv_gcc_4_6_0=yes | |
16401 fi | |
16402 rm -f conftest* | |
16403 | |
16404 fi | |
16405 | |
16406 fi | |
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_4_6_0" >&5 | |
16408 $as_echo "$ax_cv_gcc_4_6_0" >&6; } | |
16409 if test "$ax_cv_gcc_4_6_0" = yes; then | |
16410 : | |
16411 else | |
16412 as_fn_error $? "gcc 4.6 or later required for quad precision support" "$LINENO" 5 | |
16413 fi | |
16414 | |
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinq in -lquadmath" >&5 | |
16416 $as_echo_n "checking for sinq in -lquadmath... " >&6; } | |
16417 if ${ac_cv_lib_quadmath_sinq+:} false; then : | |
16418 $as_echo_n "(cached) " >&6 | |
16419 else | |
16420 ac_check_lib_save_LIBS=$LIBS | |
16421 LIBS="-lquadmath $LIBS" | |
16422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16423 /* end confdefs.h. */ | |
16424 | |
16425 /* Override any GCC internal prototype to avoid an error. | |
16426 Use char because int might match the return type of a GCC | |
16427 builtin and then its argument prototype would still apply. */ | |
16428 #ifdef __cplusplus | |
16429 extern "C" | |
16430 #endif | |
16431 char sinq (); | |
16432 int | |
16433 main () | |
16434 { | |
16435 return sinq (); | |
16436 ; | |
16437 return 0; | |
16438 } | |
16439 _ACEOF | |
16440 if ac_fn_c_try_link "$LINENO"; then : | |
16441 ac_cv_lib_quadmath_sinq=yes | |
16442 else | |
16443 ac_cv_lib_quadmath_sinq=no | |
16444 fi | |
16445 rm -f core conftest.err conftest.$ac_objext \ | |
16446 conftest$ac_exeext conftest.$ac_ext | |
16447 LIBS=$ac_check_lib_save_LIBS | |
16448 fi | |
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quadmath_sinq" >&5 | |
16450 $as_echo "$ac_cv_lib_quadmath_sinq" >&6; } | |
16451 if test "x$ac_cv_lib_quadmath_sinq" = xyes; then : | |
16452 cat >>confdefs.h <<_ACEOF | |
16453 #define HAVE_LIBQUADMATH 1 | |
16454 _ACEOF | |
16455 | |
16456 LIBS="-lquadmath $LIBS" | |
16457 | |
16458 else | |
16459 as_fn_error $? "quad precision requires libquadmath for quad-precision trigonometric routines" "$LINENO" 5 | |
16460 fi | |
16461 | |
16462 LIBQUADMATH=-lquadmath | |
16463 fi | |
16464 | |
16465 | |
16466 for ac_func in BSDgettimeofday gettimeofday gethrtime read_real_time time_base_to_time drand48 sqrt memset posix_memalign memalign _mm_malloc _mm_free clock_gettime mach_absolute_time sysctl abort sinl cosl snprintf | |
16467 do : | |
16468 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16469 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
16470 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
16471 cat >>confdefs.h <<_ACEOF | |
16472 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16473 _ACEOF | |
16474 | |
16475 fi | |
16476 done | |
16477 | |
16478 ac_fn_c_check_decl "$LINENO" "sinl" "ac_cv_have_decl_sinl" "#include <math.h> | |
16479 " | |
16480 if test "x$ac_cv_have_decl_sinl" = xyes; then : | |
16481 ac_have_decl=1 | |
16482 else | |
16483 ac_have_decl=0 | |
16484 fi | |
16485 | |
16486 cat >>confdefs.h <<_ACEOF | |
16487 #define HAVE_DECL_SINL $ac_have_decl | |
16488 _ACEOF | |
16489 ac_fn_c_check_decl "$LINENO" "cosl" "ac_cv_have_decl_cosl" "#include <math.h> | |
16490 " | |
16491 if test "x$ac_cv_have_decl_cosl" = xyes; then : | |
16492 ac_have_decl=1 | |
16493 else | |
16494 ac_have_decl=0 | |
16495 fi | |
16496 | |
16497 cat >>confdefs.h <<_ACEOF | |
16498 #define HAVE_DECL_COSL $ac_have_decl | |
16499 _ACEOF | |
16500 ac_fn_c_check_decl "$LINENO" "sinq" "ac_cv_have_decl_sinq" "#include <math.h> | |
16501 " | |
16502 if test "x$ac_cv_have_decl_sinq" = xyes; then : | |
16503 ac_have_decl=1 | |
16504 else | |
16505 ac_have_decl=0 | |
16506 fi | |
16507 | |
16508 cat >>confdefs.h <<_ACEOF | |
16509 #define HAVE_DECL_SINQ $ac_have_decl | |
16510 _ACEOF | |
16511 ac_fn_c_check_decl "$LINENO" "cosq" "ac_cv_have_decl_cosq" "#include <math.h> | |
16512 " | |
16513 if test "x$ac_cv_have_decl_cosq" = xyes; then : | |
16514 ac_have_decl=1 | |
16515 else | |
16516 ac_have_decl=0 | |
16517 fi | |
16518 | |
16519 cat >>confdefs.h <<_ACEOF | |
16520 #define HAVE_DECL_COSQ $ac_have_decl | |
16521 _ACEOF | |
16522 | |
16523 ac_fn_c_check_decl "$LINENO" "memalign" "ac_cv_have_decl_memalign" " | |
16524 #ifdef HAVE_MALLOC_H | |
16525 #include <malloc.h> | |
16526 #endif | |
16527 " | |
16528 if test "x$ac_cv_have_decl_memalign" = xyes; then : | |
16529 ac_have_decl=1 | |
16530 else | |
16531 ac_have_decl=0 | |
16532 fi | |
16533 | |
16534 cat >>confdefs.h <<_ACEOF | |
16535 #define HAVE_DECL_MEMALIGN $ac_have_decl | |
16536 _ACEOF | |
16537 | |
16538 ac_fn_c_check_decl "$LINENO" "drand48" "ac_cv_have_decl_drand48" "$ac_includes_default" | |
16539 if test "x$ac_cv_have_decl_drand48" = xyes; then : | |
16540 ac_have_decl=1 | |
16541 else | |
16542 ac_have_decl=0 | |
16543 fi | |
16544 | |
16545 cat >>confdefs.h <<_ACEOF | |
16546 #define HAVE_DECL_DRAND48 $ac_have_decl | |
16547 _ACEOF | |
16548 ac_fn_c_check_decl "$LINENO" "srand48" "ac_cv_have_decl_srand48" "$ac_includes_default" | |
16549 if test "x$ac_cv_have_decl_srand48" = xyes; then : | |
16550 ac_have_decl=1 | |
16551 else | |
16552 ac_have_decl=0 | |
16553 fi | |
16554 | |
16555 cat >>confdefs.h <<_ACEOF | |
16556 #define HAVE_DECL_SRAND48 $ac_have_decl | |
16557 _ACEOF | |
16558 ac_fn_c_check_decl "$LINENO" "posix_memalign" "ac_cv_have_decl_posix_memalign" "$ac_includes_default" | |
16559 if test "x$ac_cv_have_decl_posix_memalign" = xyes; then : | |
16560 ac_have_decl=1 | |
16561 else | |
16562 ac_have_decl=0 | |
16563 fi | |
16564 | |
16565 cat >>confdefs.h <<_ACEOF | |
16566 #define HAVE_DECL_POSIX_MEMALIGN $ac_have_decl | |
16567 _ACEOF | |
16568 | |
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _rtc intrinsic" >&5 | |
16570 $as_echo_n "checking for _rtc intrinsic... " >&6; } | |
16571 rtc_ok=yes | |
16572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16573 /* end confdefs.h. */ | |
16574 #ifdef HAVE_INTRINSICS_H | |
16575 #include <intrinsics.h> | |
16576 #endif | |
16577 int | |
16578 main () | |
16579 { | |
16580 _rtc() | |
16581 ; | |
16582 return 0; | |
16583 } | |
16584 _ACEOF | |
16585 if ac_fn_c_try_link "$LINENO"; then : | |
16586 | |
16587 $as_echo "#define HAVE__RTC 1" >>confdefs.h | |
16588 | |
16589 else | |
16590 rtc_ok=no | |
16591 fi | |
16592 rm -f core conftest.err conftest.$ac_objext \ | |
16593 conftest$ac_exeext conftest.$ac_ext | |
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rtc_ok" >&5 | |
16595 $as_echo "$rtc_ok" >&6; } | |
16596 | |
16597 if test "$PRECISION" = "l"; then | |
16598 for ac_func in cosl sinl tanl | |
16599 do : | |
16600 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16601 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
16602 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
16603 cat >>confdefs.h <<_ACEOF | |
16604 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16605 _ACEOF | |
16606 | |
16607 else | |
16608 as_fn_error $? "long-double precision requires long-double trigonometric routines" "$LINENO" 5 | |
16609 fi | |
16610 done | |
16611 | |
16612 fi | |
16613 | |
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5 | |
16615 $as_echo_n "checking for isnan... " >&6; } | |
16616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16617 /* end confdefs.h. */ | |
16618 #include <math.h> | |
16619 | |
16620 int | |
16621 main () | |
16622 { | |
16623 if (!isnan(3.14159)) isnan(2.7183); | |
16624 ; | |
16625 return 0; | |
16626 } | |
16627 _ACEOF | |
16628 if ac_fn_c_try_link "$LINENO"; then : | |
16629 ok=yes | |
16630 else | |
16631 ok=no | |
16632 fi | |
16633 rm -f core conftest.err conftest.$ac_objext \ | |
16634 conftest$ac_exeext conftest.$ac_ext | |
16635 if test "$ok" = "yes"; then | |
16636 | |
16637 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h | |
16638 | |
16639 fi | |
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ok}" >&5 | |
16641 $as_echo "${ok}" >&6; } | |
16642 | |
16643 | |
16644 | |
16645 ax_gcc_aligns_stack=no | |
16646 if test "$GCC" = "yes"; then | |
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mpreferred-stack-boundary=4" >&5 | |
16648 $as_echo_n "checking whether C compiler accepts -mpreferred-stack-boundary=4... " >&6; } | |
16649 if ${ax_cv_c_flags__mpreferred_stack_boundary_4+:} false; then : | |
16650 $as_echo_n "(cached) " >&6 | |
16651 else | |
16652 | |
16653 ax_save_FLAGS=$CFLAGS | |
16654 CFLAGS="-mpreferred-stack-boundary=4" | |
16655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16656 /* end confdefs.h. */ | |
16657 | |
16658 int | |
16659 main () | |
16660 { | |
16661 | |
16662 ; | |
16663 return 0; | |
16664 } | |
16665 _ACEOF | |
16666 if ac_fn_c_try_compile "$LINENO"; then : | |
16667 ax_cv_c_flags__mpreferred_stack_boundary_4=yes | |
16668 else | |
16669 ax_cv_c_flags__mpreferred_stack_boundary_4=no | |
16670 fi | |
16671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16672 CFLAGS=$ax_save_FLAGS | |
16673 fi | |
16674 | |
16675 eval ax_check_compiler_flags=$ax_cv_c_flags__mpreferred_stack_boundary_4 | |
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
16677 $as_echo "$ax_check_compiler_flags" >&6; } | |
16678 if test "x$ax_check_compiler_flags" = xyes; then | |
16679 | |
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the stack is at least 8-byte aligned by gcc" >&5 | |
16681 $as_echo_n "checking whether the stack is at least 8-byte aligned by gcc... " >&6; } | |
16682 save_CFLAGS="$CFLAGS" | |
16683 CFLAGS="-O" | |
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5 | |
16685 $as_echo_n "checking whether C compiler accepts -malign-double... " >&6; } | |
16686 if ${ax_cv_c_flags__malign_double+:} false; then : | |
16687 $as_echo_n "(cached) " >&6 | |
16688 else | |
16689 | |
16690 ax_save_FLAGS=$CFLAGS | |
16691 CFLAGS="-malign-double" | |
16692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16693 /* end confdefs.h. */ | |
16694 | |
16695 int | |
16696 main () | |
16697 { | |
16698 | |
16699 ; | |
16700 return 0; | |
16701 } | |
16702 _ACEOF | |
16703 if ac_fn_c_try_compile "$LINENO"; then : | |
16704 ax_cv_c_flags__malign_double=yes | |
16705 else | |
16706 ax_cv_c_flags__malign_double=no | |
16707 fi | |
16708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16709 CFLAGS=$ax_save_FLAGS | |
16710 fi | |
16711 | |
16712 eval ax_check_compiler_flags=$ax_cv_c_flags__malign_double | |
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
16714 $as_echo "$ax_check_compiler_flags" >&6; } | |
16715 if test "x$ax_check_compiler_flags" = xyes; then | |
16716 CFLAGS="$CFLAGS -malign-double" | |
16717 else | |
16718 : | |
16719 fi | |
16720 | |
16721 if test "$cross_compiling" = yes; then : | |
16722 | |
16723 | |
16724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gcc 3.0.0 or later" >&5 | |
16725 $as_echo_n "checking whether we are using gcc 3.0.0 or later... " >&6; } | |
16726 if ${ax_cv_gcc_3_0_0+:} false; then : | |
16727 $as_echo_n "(cached) " >&6 | |
16728 else | |
16729 | |
16730 ax_cv_gcc_3_0_0=no | |
16731 if test "$GCC" = "yes"; then | |
16732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16733 /* end confdefs.h. */ | |
16734 | |
16735 #ifdef __GNUC__ | |
16736 # if (__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ > 0) \ | |
16737 || (__GNUC__ == 3 && __GNUC_MINOR__ == 0 && __GNUC_PATCHLEVEL__ >= 0) | |
16738 yes; | |
16739 # endif | |
16740 #endif | |
16741 | |
16742 _ACEOF | |
16743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16744 $EGREP "yes" >/dev/null 2>&1; then : | |
16745 ax_cv_gcc_3_0_0=yes | |
16746 fi | |
16747 rm -f conftest* | |
16748 | |
16749 fi | |
16750 | |
16751 fi | |
16752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_3_0_0" >&5 | |
16753 $as_echo "$ax_cv_gcc_3_0_0" >&6; } | |
16754 if test "$ax_cv_gcc_3_0_0" = yes; then | |
16755 ax_gcc_stack_align_bug=no | |
16756 else | |
16757 ax_gcc_stack_align_bug=yes | |
16758 fi | |
16759 | |
16760 else | |
16761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16762 /* end confdefs.h. */ | |
16763 #include <stdlib.h> | |
16764 # include <stdio.h> | |
16765 struct yuck { int blechh; }; | |
16766 int one(void) { return 1; } | |
16767 struct yuck ick(void) { struct yuck y; y.blechh = 3; return y; } | |
16768 # define CHK_ALIGN(x) if ((((long) &(x)) & 0x7)) { fprintf(stderr, "bad alignment of " #x "\n"); exit(1); } | |
16769 void blah(int foo) { double foobar; CHK_ALIGN(foobar); } | |
16770 int main2(void) {double ok1; struct yuck y; double ok2; CHK_ALIGN(ok1); | |
16771 CHK_ALIGN(ok2); y = ick(); blah(one()); return 0;} | |
16772 int main(void) { if ((((long) (__builtin_alloca(0))) & 0x7)) __builtin_alloca(4); return main2(); } | |
16773 | |
16774 _ACEOF | |
16775 if ac_fn_c_try_run "$LINENO"; then : | |
16776 ax_gcc_aligns_stack=yes; ax_gcc_stack_align_bug=no | |
16777 else | |
16778 ax_gcc_stack_align_bug=yes | |
16779 fi | |
16780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
16781 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
16782 fi | |
16783 | |
16784 CFLAGS="$save_CFLAGS" | |
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_gcc_aligns_stack" >&5 | |
16786 $as_echo "$ax_gcc_aligns_stack" >&6; } | |
16787 | |
16788 else | |
16789 : | |
16790 fi | |
16791 | |
16792 fi | |
16793 if test "$ax_gcc_aligns_stack" = yes; then | |
16794 : | |
16795 else | |
16796 : | |
16797 fi | |
16798 | |
16799 | |
16800 if test "${enable_debug}" = "yes"; then | |
16801 CFLAGS="-g" | |
16802 fi | |
16803 | |
16804 if test "$enable_debug" = yes || test "$USE_MAINTAINER_MODE" = yes; then | |
16805 if test "$ac_test_CFLAGS" != "set"; then | |
16806 if test $ac_cv_c_compiler_gnu = yes; then | |
16807 CFLAGS="$CFLAGS -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic -Wno-long-long -Wshadow -Wbad-function-cast -Wwrite-strings -Wstrict-prototypes -Wredundant-decls -Wnested-externs" # -Wundef -Wconversion -Wmissing-prototypes -Wmissing-declarations | |
16808 fi | |
16809 fi | |
16810 fi | |
16811 | |
16812 if test "$USE_MAINTAINER_MODE" = yes; then | |
16813 # Extract the first word of "indent", so it can be a program name with args. | |
16814 set dummy indent; ac_word=$2 | |
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16816 $as_echo_n "checking for $ac_word... " >&6; } | |
16817 if ${ac_cv_path_INDENT+:} false; then : | |
16818 $as_echo_n "(cached) " >&6 | |
16819 else | |
16820 case $INDENT in | |
16821 [\\/]* | ?:[\\/]*) | |
16822 ac_cv_path_INDENT="$INDENT" # Let the user override the test with a path. | |
16823 ;; | |
16824 *) | |
16825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16826 for as_dir in $PATH | |
16827 do | |
16828 IFS=$as_save_IFS | |
16829 test -z "$as_dir" && as_dir=. | |
16830 for ac_exec_ext in '' $ac_executable_extensions; do | |
16831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16832 ac_cv_path_INDENT="$as_dir/$ac_word$ac_exec_ext" | |
16833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16834 break 2 | |
16835 fi | |
16836 done | |
16837 done | |
16838 IFS=$as_save_IFS | |
16839 | |
16840 test -z "$ac_cv_path_INDENT" && ac_cv_path_INDENT="indent" | |
16841 ;; | |
16842 esac | |
16843 fi | |
16844 INDENT=$ac_cv_path_INDENT | |
16845 if test -n "$INDENT"; then | |
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INDENT" >&5 | |
16847 $as_echo "$INDENT" >&6; } | |
16848 else | |
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16850 $as_echo "no" >&6; } | |
16851 fi | |
16852 | |
16853 | |
16854 # if INDENT is set to 'indent' then we didn't find indent | |
16855 if test "$INDENT" != indent ; then | |
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $INDENT is GNU indent" >&5 | |
16857 $as_echo_n "checking if $INDENT is GNU indent... " >&6; } | |
16858 if $INDENT --version 2>/dev/null | head -n 1|grep "GNU indent" > /dev/null ; then | |
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16860 $as_echo "yes" >&6; } | |
16861 INDENT="$INDENT -kr -cs -i5 -l800 -fca -nfc1 -sc -sob -cli4 -TR -Tplanner -TV" | |
16862 else | |
16863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16864 $as_echo "no" >&6; } | |
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $INDENT does not appear to be GNU indent." >&5 | |
16866 $as_echo "$as_me: WARNING: $INDENT does not appear to be GNU indent." >&2;} | |
16867 fi | |
16868 else | |
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no indent program found: codelets will be ugly" >&5 | |
16870 $as_echo "$as_me: WARNING: no indent program found: codelets will be ugly" >&2;} | |
16871 INDENT=cat | |
16872 fi | |
16873 fi | |
16874 | |
16875 | |
16876 # Check whether --enable-fortran was given. | |
16877 if test "${enable_fortran+set}" = set; then : | |
16878 enableval=$enable_fortran; enable_fortran=$enableval | |
16879 else | |
16880 enable_fortran=yes | |
16881 fi | |
16882 | |
16883 | |
16884 if test "$enable_fortran" = "yes"; then | |
16885 ac_ext=f | |
16886 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
16887 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16888 ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
16889 if test -n "$ac_tool_prefix"; then | |
16890 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor | |
16891 do | |
16892 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
16893 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16895 $as_echo_n "checking for $ac_word... " >&6; } | |
16896 if ${ac_cv_prog_F77+:} false; then : | |
16897 $as_echo_n "(cached) " >&6 | |
16898 else | |
16899 if test -n "$F77"; then | |
16900 ac_cv_prog_F77="$F77" # Let the user override the test. | |
16901 else | |
16902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16903 for as_dir in $PATH | |
16904 do | |
16905 IFS=$as_save_IFS | |
16906 test -z "$as_dir" && as_dir=. | |
16907 for ac_exec_ext in '' $ac_executable_extensions; do | |
16908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16909 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" | |
16910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16911 break 2 | |
16912 fi | |
16913 done | |
16914 done | |
16915 IFS=$as_save_IFS | |
16916 | |
16917 fi | |
16918 fi | |
16919 F77=$ac_cv_prog_F77 | |
16920 if test -n "$F77"; then | |
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5 | |
16922 $as_echo "$F77" >&6; } | |
16923 else | |
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16925 $as_echo "no" >&6; } | |
16926 fi | |
16927 | |
16928 | |
16929 test -n "$F77" && break | |
16930 done | |
16931 fi | |
16932 if test -z "$F77"; then | |
16933 ac_ct_F77=$F77 | |
16934 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor | |
16935 do | |
16936 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
16937 set dummy $ac_prog; ac_word=$2 | |
16938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16939 $as_echo_n "checking for $ac_word... " >&6; } | |
16940 if ${ac_cv_prog_ac_ct_F77+:} false; then : | |
16941 $as_echo_n "(cached) " >&6 | |
16942 else | |
16943 if test -n "$ac_ct_F77"; then | |
16944 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. | |
16945 else | |
16946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16947 for as_dir in $PATH | |
16948 do | |
16949 IFS=$as_save_IFS | |
16950 test -z "$as_dir" && as_dir=. | |
16951 for ac_exec_ext in '' $ac_executable_extensions; do | |
16952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16953 ac_cv_prog_ac_ct_F77="$ac_prog" | |
16954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16955 break 2 | |
16956 fi | |
16957 done | |
16958 done | |
16959 IFS=$as_save_IFS | |
16960 | |
16961 fi | |
16962 fi | |
16963 ac_ct_F77=$ac_cv_prog_ac_ct_F77 | |
16964 if test -n "$ac_ct_F77"; then | |
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5 | |
16966 $as_echo "$ac_ct_F77" >&6; } | |
16967 else | |
16968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16969 $as_echo "no" >&6; } | |
16970 fi | |
16971 | |
16972 | |
16973 test -n "$ac_ct_F77" && break | |
16974 done | |
16975 | |
16976 if test "x$ac_ct_F77" = x; then | |
16977 F77="" | |
16978 else | |
16979 case $cross_compiling:$ac_tool_warned in | |
16980 yes:) | |
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
16982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
16983 ac_tool_warned=yes ;; | |
16984 esac | |
16985 F77=$ac_ct_F77 | |
16986 fi | |
16987 fi | |
16988 | |
16989 | |
16990 # Provide some information about the compiler. | |
16991 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5 | |
16992 set X $ac_compile | |
16993 ac_compiler=$2 | |
16994 for ac_option in --version -v -V -qversion; do | |
16995 { { ac_try="$ac_compiler $ac_option >&5" | |
16996 case "(($ac_try" in | |
16997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16998 *) ac_try_echo=$ac_try;; | |
16999 esac | |
17000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
17001 $as_echo "$ac_try_echo"; } >&5 | |
17002 (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
17003 ac_status=$? | |
17004 if test -s conftest.err; then | |
17005 sed '10a\ | |
17006 ... rest of stderr output deleted ... | |
17007 10q' conftest.err >conftest.er1 | |
17008 cat conftest.er1 >&5 | |
17009 fi | |
17010 rm -f conftest.er1 conftest.err | |
17011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17012 test $ac_status = 0; } | |
17013 done | |
17014 rm -f a.out | |
17015 | |
17016 # If we don't use `.F' as extension, the preprocessor is not run on the | |
17017 # input file. (Note that this only needs to work for GNU compilers.) | |
17018 ac_save_ext=$ac_ext | |
17019 ac_ext=F | |
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5 | |
17021 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } | |
17022 if ${ac_cv_f77_compiler_gnu+:} false; then : | |
17023 $as_echo_n "(cached) " >&6 | |
17024 else | |
17025 cat > conftest.$ac_ext <<_ACEOF | |
17026 program main | |
17027 #ifndef __GNUC__ | |
17028 choke me | |
17029 #endif | |
17030 | |
17031 end | |
17032 _ACEOF | |
17033 if ac_fn_f77_try_compile "$LINENO"; then : | |
17034 ac_compiler_gnu=yes | |
17035 else | |
17036 ac_compiler_gnu=no | |
17037 fi | |
17038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17039 ac_cv_f77_compiler_gnu=$ac_compiler_gnu | |
17040 | |
17041 fi | |
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5 | |
17043 $as_echo "$ac_cv_f77_compiler_gnu" >&6; } | |
17044 ac_ext=$ac_save_ext | |
17045 ac_test_FFLAGS=${FFLAGS+set} | |
17046 ac_save_FFLAGS=$FFLAGS | |
17047 FFLAGS= | |
17048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5 | |
17049 $as_echo_n "checking whether $F77 accepts -g... " >&6; } | |
17050 if ${ac_cv_prog_f77_g+:} false; then : | |
17051 $as_echo_n "(cached) " >&6 | |
17052 else | |
17053 FFLAGS=-g | |
17054 cat > conftest.$ac_ext <<_ACEOF | |
17055 program main | |
17056 | |
17057 end | |
17058 _ACEOF | |
17059 if ac_fn_f77_try_compile "$LINENO"; then : | |
17060 ac_cv_prog_f77_g=yes | |
17061 else | |
17062 ac_cv_prog_f77_g=no | |
17063 fi | |
17064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17065 | |
17066 fi | |
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5 | |
17068 $as_echo "$ac_cv_prog_f77_g" >&6; } | |
17069 if test "$ac_test_FFLAGS" = set; then | |
17070 FFLAGS=$ac_save_FFLAGS | |
17071 elif test $ac_cv_prog_f77_g = yes; then | |
17072 if test "x$ac_cv_f77_compiler_gnu" = xyes; then | |
17073 FFLAGS="-g -O2" | |
17074 else | |
17075 FFLAGS="-g" | |
17076 fi | |
17077 else | |
17078 if test "x$ac_cv_f77_compiler_gnu" = xyes; then | |
17079 FFLAGS="-O2" | |
17080 else | |
17081 FFLAGS= | |
17082 fi | |
17083 fi | |
17084 | |
17085 if test $ac_compiler_gnu = yes; then | |
17086 G77=yes | |
17087 else | |
17088 G77= | |
17089 fi | |
17090 ac_ext=c | |
17091 ac_cpp='$CPP $CPPFLAGS' | |
17092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17094 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17095 | |
17096 ac_ext=f | |
17097 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
17098 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17099 ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
17100 | |
17101 if test -z "$F77" || test "X$F77" = "Xno"; then | |
17102 _lt_disable_F77=yes | |
17103 fi | |
17104 | |
17105 archive_cmds_need_lc_F77=no | |
17106 allow_undefined_flag_F77= | |
17107 always_export_symbols_F77=no | |
17108 archive_expsym_cmds_F77= | |
17109 export_dynamic_flag_spec_F77= | |
17110 hardcode_direct_F77=no | |
17111 hardcode_direct_absolute_F77=no | |
17112 hardcode_libdir_flag_spec_F77= | |
17113 hardcode_libdir_separator_F77= | |
17114 hardcode_minus_L_F77=no | |
17115 hardcode_automatic_F77=no | |
17116 inherit_rpath_F77=no | |
17117 module_cmds_F77= | |
17118 module_expsym_cmds_F77= | |
17119 link_all_deplibs_F77=unknown | |
17120 old_archive_cmds_F77=$old_archive_cmds | |
17121 reload_flag_F77=$reload_flag | |
17122 reload_cmds_F77=$reload_cmds | |
17123 no_undefined_flag_F77= | |
17124 whole_archive_flag_spec_F77= | |
17125 enable_shared_with_static_runtimes_F77=no | |
17126 | |
17127 # Source file extension for f77 test sources. | |
17128 ac_ext=f | |
17129 | |
17130 # Object file extension for compiled f77 test sources. | |
17131 objext=o | |
17132 objext_F77=$objext | |
17133 | |
17134 # No sense in running all these tests if we already determined that | |
17135 # the F77 compiler isn't working. Some variables (like enable_shared) | |
17136 # are currently assumed to apply to all compilers on this platform, | |
17137 # and will be corrupted by setting them based on a non-working compiler. | |
17138 if test "$_lt_disable_F77" != yes; then | |
17139 # Code to be used in simple compile tests | |
17140 lt_simple_compile_test_code="\ | |
17141 subroutine t | |
17142 return | |
17143 end | |
17144 " | |
17145 | |
17146 # Code to be used in simple link tests | |
17147 lt_simple_link_test_code="\ | |
17148 program t | |
17149 end | |
17150 " | |
17151 | |
17152 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
17153 | |
17154 | |
17155 | |
17156 | |
17157 | |
17158 | |
17159 # If no C compiler was specified, use CC. | |
17160 LTCC=${LTCC-"$CC"} | |
17161 | |
17162 # If no C compiler flags were specified, use CFLAGS. | |
17163 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
17164 | |
17165 # Allow CC to be a program name with arguments. | |
17166 compiler=$CC | |
17167 | |
17168 | |
17169 # save warnings/boilerplate of simple test code | |
17170 ac_outfile=conftest.$ac_objext | |
17171 echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
17172 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
17173 _lt_compiler_boilerplate=`cat conftest.err` | |
17174 $RM conftest* | |
17175 | |
17176 ac_outfile=conftest.$ac_objext | |
17177 echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
17178 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
17179 _lt_linker_boilerplate=`cat conftest.err` | |
17180 $RM -r conftest* | |
17181 | |
17182 | |
17183 # Allow CC to be a program name with arguments. | |
17184 lt_save_CC="$CC" | |
17185 lt_save_GCC=$GCC | |
17186 lt_save_CFLAGS=$CFLAGS | |
17187 CC=${F77-"f77"} | |
17188 CFLAGS=$FFLAGS | |
17189 compiler=$CC | |
17190 compiler_F77=$CC | |
17191 for cc_temp in $compiler""; do | |
17192 case $cc_temp in | |
17193 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
17194 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
17195 \-*) ;; | |
17196 *) break;; | |
17197 esac | |
17198 done | |
17199 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
17200 | |
17201 GCC=$G77 | |
17202 if test -n "$compiler"; then | |
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
17204 $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
17206 $as_echo "$can_build_shared" >&6; } | |
17207 | |
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
17209 $as_echo_n "checking whether to build shared libraries... " >&6; } | |
17210 test "$can_build_shared" = "no" && enable_shared=no | |
17211 | |
17212 # On AIX, shared libraries and static libraries use the same namespace, and | |
17213 # are all built from PIC. | |
17214 case $host_os in | |
17215 aix3*) | |
17216 test "$enable_shared" = yes && enable_static=no | |
17217 if test -n "$RANLIB"; then | |
17218 archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
17219 postinstall_cmds='$RANLIB $lib' | |
17220 fi | |
17221 ;; | |
17222 aix[4-9]*) | |
17223 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
17224 test "$enable_shared" = yes && enable_static=no | |
17225 fi | |
17226 ;; | |
17227 esac | |
17228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
17229 $as_echo "$enable_shared" >&6; } | |
17230 | |
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
17232 $as_echo_n "checking whether to build static libraries... " >&6; } | |
17233 # Make sure either enable_shared or enable_static is yes. | |
17234 test "$enable_shared" = yes || enable_static=yes | |
17235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
17236 $as_echo "$enable_static" >&6; } | |
17237 | |
17238 GCC_F77="$G77" | |
17239 LD_F77="$LD" | |
17240 | |
17241 ## CAVEAT EMPTOR: | |
17242 ## There is no encapsulation within the following macros, do not change | |
17243 ## the running order or otherwise move them around unless you know exactly | |
17244 ## what you are doing... | |
17245 lt_prog_compiler_wl_F77= | |
17246 lt_prog_compiler_pic_F77= | |
17247 lt_prog_compiler_static_F77= | |
17248 | |
17249 | |
17250 if test "$GCC" = yes; then | |
17251 lt_prog_compiler_wl_F77='-Wl,' | |
17252 lt_prog_compiler_static_F77='-static' | |
17253 | |
17254 case $host_os in | |
17255 aix*) | |
17256 # All AIX code is PIC. | |
17257 if test "$host_cpu" = ia64; then | |
17258 # AIX 5 now supports IA64 processor | |
17259 lt_prog_compiler_static_F77='-Bstatic' | |
17260 fi | |
17261 ;; | |
17262 | |
17263 amigaos*) | |
17264 case $host_cpu in | |
17265 powerpc) | |
17266 # see comment about AmigaOS4 .so support | |
17267 lt_prog_compiler_pic_F77='-fPIC' | |
17268 ;; | |
17269 m68k) | |
17270 # FIXME: we need at least 68020 code to build shared libraries, but | |
17271 # adding the `-m68020' flag to GCC prevents building anything better, | |
17272 # like `-m68040'. | |
17273 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' | |
17274 ;; | |
17275 esac | |
17276 ;; | |
17277 | |
17278 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
17279 # PIC is the default for these OSes. | |
17280 ;; | |
17281 | |
17282 mingw* | cygwin* | pw32* | os2* | cegcc*) | |
17283 # This hack is so that the source file can tell whether it is being | |
17284 # built for inclusion in a dll (and should export symbols for example). | |
17285 # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
17286 # (--disable-auto-import) libraries | |
17287 lt_prog_compiler_pic_F77='-DDLL_EXPORT' | |
17288 ;; | |
17289 | |
17290 darwin* | rhapsody*) | |
17291 # PIC is the default on this platform | |
17292 # Common symbols not allowed in MH_DYLIB files | |
17293 lt_prog_compiler_pic_F77='-fno-common' | |
17294 ;; | |
17295 | |
17296 haiku*) | |
17297 # PIC is the default for Haiku. | |
17298 # The "-static" flag exists, but is broken. | |
17299 lt_prog_compiler_static_F77= | |
17300 ;; | |
17301 | |
17302 hpux*) | |
17303 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
17304 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
17305 # sets the default TLS model and affects inlining. | |
17306 case $host_cpu in | |
17307 hppa*64*) | |
17308 # +Z the default | |
17309 ;; | |
17310 *) | |
17311 lt_prog_compiler_pic_F77='-fPIC' | |
17312 ;; | |
17313 esac | |
17314 ;; | |
17315 | |
17316 interix[3-9]*) | |
17317 # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
17318 # Instead, we relocate shared libraries at runtime. | |
17319 ;; | |
17320 | |
17321 msdosdjgpp*) | |
17322 # Just because we use GCC doesn't mean we suddenly get shared libraries | |
17323 # on systems that don't support them. | |
17324 lt_prog_compiler_can_build_shared_F77=no | |
17325 enable_shared=no | |
17326 ;; | |
17327 | |
17328 *nto* | *qnx*) | |
17329 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
17330 # it will coredump. | |
17331 lt_prog_compiler_pic_F77='-fPIC -shared' | |
17332 ;; | |
17333 | |
17334 sysv4*MP*) | |
17335 if test -d /usr/nec; then | |
17336 lt_prog_compiler_pic_F77=-Kconform_pic | |
17337 fi | |
17338 ;; | |
17339 | |
17340 *) | |
17341 lt_prog_compiler_pic_F77='-fPIC' | |
17342 ;; | |
17343 esac | |
17344 | |
17345 case $cc_basename in | |
17346 nvcc*) # Cuda Compiler Driver 2.2 | |
17347 lt_prog_compiler_wl_F77='-Xlinker ' | |
17348 if test -n "$lt_prog_compiler_pic_F77"; then | |
17349 lt_prog_compiler_pic_F77="-Xcompiler $lt_prog_compiler_pic_F77" | |
17350 fi | |
17351 ;; | |
17352 esac | |
17353 else | |
17354 # PORTME Check for flag to pass linker flags through the system compiler. | |
17355 case $host_os in | |
17356 aix*) | |
17357 lt_prog_compiler_wl_F77='-Wl,' | |
17358 if test "$host_cpu" = ia64; then | |
17359 # AIX 5 now supports IA64 processor | |
17360 lt_prog_compiler_static_F77='-Bstatic' | |
17361 else | |
17362 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' | |
17363 fi | |
17364 ;; | |
17365 | |
17366 mingw* | cygwin* | pw32* | os2* | cegcc*) | |
17367 # This hack is so that the source file can tell whether it is being | |
17368 # built for inclusion in a dll (and should export symbols for example). | |
17369 lt_prog_compiler_pic_F77='-DDLL_EXPORT' | |
17370 ;; | |
17371 | |
17372 hpux9* | hpux10* | hpux11*) | |
17373 lt_prog_compiler_wl_F77='-Wl,' | |
17374 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
17375 # not for PA HP-UX. | |
17376 case $host_cpu in | |
17377 hppa*64*|ia64*) | |
17378 # +Z the default | |
17379 ;; | |
17380 *) | |
17381 lt_prog_compiler_pic_F77='+Z' | |
17382 ;; | |
17383 esac | |
17384 # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
17385 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' | |
17386 ;; | |
17387 | |
17388 irix5* | irix6* | nonstopux*) | |
17389 lt_prog_compiler_wl_F77='-Wl,' | |
17390 # PIC (with -KPIC) is the default. | |
17391 lt_prog_compiler_static_F77='-non_shared' | |
17392 ;; | |
17393 | |
17394 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
17395 case $cc_basename in | |
17396 # old Intel for x86_64 which still supported -KPIC. | |
17397 ecc*) | |
17398 lt_prog_compiler_wl_F77='-Wl,' | |
17399 lt_prog_compiler_pic_F77='-KPIC' | |
17400 lt_prog_compiler_static_F77='-static' | |
17401 ;; | |
17402 # icc used to be incompatible with GCC. | |
17403 # ICC 10 doesn't accept -KPIC any more. | |
17404 icc* | ifort*) | |
17405 lt_prog_compiler_wl_F77='-Wl,' | |
17406 lt_prog_compiler_pic_F77='-fPIC' | |
17407 lt_prog_compiler_static_F77='-static' | |
17408 ;; | |
17409 # Lahey Fortran 8.1. | |
17410 lf95*) | |
17411 lt_prog_compiler_wl_F77='-Wl,' | |
17412 lt_prog_compiler_pic_F77='--shared' | |
17413 lt_prog_compiler_static_F77='--static' | |
17414 ;; | |
17415 nagfor*) | |
17416 # NAG Fortran compiler | |
17417 lt_prog_compiler_wl_F77='-Wl,-Wl,,' | |
17418 lt_prog_compiler_pic_F77='-PIC' | |
17419 lt_prog_compiler_static_F77='-Bstatic' | |
17420 ;; | |
17421 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
17422 # Portland Group compilers (*not* the Pentium gcc compiler, | |
17423 # which looks to be a dead project) | |
17424 lt_prog_compiler_wl_F77='-Wl,' | |
17425 lt_prog_compiler_pic_F77='-fpic' | |
17426 lt_prog_compiler_static_F77='-Bstatic' | |
17427 ;; | |
17428 ccc*) | |
17429 lt_prog_compiler_wl_F77='-Wl,' | |
17430 # All Alpha code is PIC. | |
17431 lt_prog_compiler_static_F77='-non_shared' | |
17432 ;; | |
17433 xl* | bgxl* | bgf* | mpixl*) | |
17434 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
17435 lt_prog_compiler_wl_F77='-Wl,' | |
17436 lt_prog_compiler_pic_F77='-qpic' | |
17437 lt_prog_compiler_static_F77='-qstaticlink' | |
17438 ;; | |
17439 *) | |
17440 case `$CC -V 2>&1 | sed 5q` in | |
17441 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) | |
17442 # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
17443 lt_prog_compiler_pic_F77='-KPIC' | |
17444 lt_prog_compiler_static_F77='-Bstatic' | |
17445 lt_prog_compiler_wl_F77='' | |
17446 ;; | |
17447 *Sun\ F* | *Sun*Fortran*) | |
17448 lt_prog_compiler_pic_F77='-KPIC' | |
17449 lt_prog_compiler_static_F77='-Bstatic' | |
17450 lt_prog_compiler_wl_F77='-Qoption ld ' | |
17451 ;; | |
17452 *Sun\ C*) | |
17453 # Sun C 5.9 | |
17454 lt_prog_compiler_pic_F77='-KPIC' | |
17455 lt_prog_compiler_static_F77='-Bstatic' | |
17456 lt_prog_compiler_wl_F77='-Wl,' | |
17457 ;; | |
17458 *Intel*\ [CF]*Compiler*) | |
17459 lt_prog_compiler_wl_F77='-Wl,' | |
17460 lt_prog_compiler_pic_F77='-fPIC' | |
17461 lt_prog_compiler_static_F77='-static' | |
17462 ;; | |
17463 *Portland\ Group*) | |
17464 lt_prog_compiler_wl_F77='-Wl,' | |
17465 lt_prog_compiler_pic_F77='-fpic' | |
17466 lt_prog_compiler_static_F77='-Bstatic' | |
17467 ;; | |
17468 esac | |
17469 ;; | |
17470 esac | |
17471 ;; | |
17472 | |
17473 newsos6) | |
17474 lt_prog_compiler_pic_F77='-KPIC' | |
17475 lt_prog_compiler_static_F77='-Bstatic' | |
17476 ;; | |
17477 | |
17478 *nto* | *qnx*) | |
17479 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
17480 # it will coredump. | |
17481 lt_prog_compiler_pic_F77='-fPIC -shared' | |
17482 ;; | |
17483 | |
17484 osf3* | osf4* | osf5*) | |
17485 lt_prog_compiler_wl_F77='-Wl,' | |
17486 # All OSF/1 code is PIC. | |
17487 lt_prog_compiler_static_F77='-non_shared' | |
17488 ;; | |
17489 | |
17490 rdos*) | |
17491 lt_prog_compiler_static_F77='-non_shared' | |
17492 ;; | |
17493 | |
17494 solaris*) | |
17495 lt_prog_compiler_pic_F77='-KPIC' | |
17496 lt_prog_compiler_static_F77='-Bstatic' | |
17497 case $cc_basename in | |
17498 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
17499 lt_prog_compiler_wl_F77='-Qoption ld ';; | |
17500 *) | |
17501 lt_prog_compiler_wl_F77='-Wl,';; | |
17502 esac | |
17503 ;; | |
17504 | |
17505 sunos4*) | |
17506 lt_prog_compiler_wl_F77='-Qoption ld ' | |
17507 lt_prog_compiler_pic_F77='-PIC' | |
17508 lt_prog_compiler_static_F77='-Bstatic' | |
17509 ;; | |
17510 | |
17511 sysv4 | sysv4.2uw2* | sysv4.3*) | |
17512 lt_prog_compiler_wl_F77='-Wl,' | |
17513 lt_prog_compiler_pic_F77='-KPIC' | |
17514 lt_prog_compiler_static_F77='-Bstatic' | |
17515 ;; | |
17516 | |
17517 sysv4*MP*) | |
17518 if test -d /usr/nec ;then | |
17519 lt_prog_compiler_pic_F77='-Kconform_pic' | |
17520 lt_prog_compiler_static_F77='-Bstatic' | |
17521 fi | |
17522 ;; | |
17523 | |
17524 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
17525 lt_prog_compiler_wl_F77='-Wl,' | |
17526 lt_prog_compiler_pic_F77='-KPIC' | |
17527 lt_prog_compiler_static_F77='-Bstatic' | |
17528 ;; | |
17529 | |
17530 unicos*) | |
17531 lt_prog_compiler_wl_F77='-Wl,' | |
17532 lt_prog_compiler_can_build_shared_F77=no | |
17533 ;; | |
17534 | |
17535 uts4*) | |
17536 lt_prog_compiler_pic_F77='-pic' | |
17537 lt_prog_compiler_static_F77='-Bstatic' | |
17538 ;; | |
17539 | |
17540 *) | |
17541 lt_prog_compiler_can_build_shared_F77=no | |
17542 ;; | |
17543 esac | |
17544 fi | |
17545 | |
17546 case $host_os in | |
17547 # For platforms which do not support PIC, -DPIC is meaningless: | |
17548 *djgpp*) | |
17549 lt_prog_compiler_pic_F77= | |
17550 ;; | |
17551 *) | |
17552 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" | |
17553 ;; | |
17554 esac | |
17555 | |
17556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
17557 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
17558 if ${lt_cv_prog_compiler_pic_F77+:} false; then : | |
17559 $as_echo_n "(cached) " >&6 | |
17560 else | |
17561 lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77 | |
17562 fi | |
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5 | |
17564 $as_echo "$lt_cv_prog_compiler_pic_F77" >&6; } | |
17565 lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77 | |
17566 | |
17567 # | |
17568 # Check to make sure the PIC flag actually works. | |
17569 # | |
17570 if test -n "$lt_prog_compiler_pic_F77"; then | |
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 | |
17572 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; } | |
17573 if ${lt_cv_prog_compiler_pic_works_F77+:} false; then : | |
17574 $as_echo_n "(cached) " >&6 | |
17575 else | |
17576 lt_cv_prog_compiler_pic_works_F77=no | |
17577 ac_outfile=conftest.$ac_objext | |
17578 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
17579 lt_compiler_flag="$lt_prog_compiler_pic_F77" | |
17580 # Insert the option either (1) after the last *FLAGS variable, or | |
17581 # (2) before a word containing "conftest.", or (3) at the end. | |
17582 # Note that $ac_compile itself does not contain backslashes and begins | |
17583 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
17584 # The option is referenced via a variable to avoid confusing sed. | |
17585 lt_compile=`echo "$ac_compile" | $SED \ | |
17586 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
17587 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
17588 -e 's:$: $lt_compiler_flag:'` | |
17589 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
17590 (eval "$lt_compile" 2>conftest.err) | |
17591 ac_status=$? | |
17592 cat conftest.err >&5 | |
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17594 if (exit $ac_status) && test -s "$ac_outfile"; then | |
17595 # The compiler can only warn and ignore the option if not recognized | |
17596 # So say no if there are warnings other than the usual output. | |
17597 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
17598 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
17599 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
17600 lt_cv_prog_compiler_pic_works_F77=yes | |
17601 fi | |
17602 fi | |
17603 $RM conftest* | |
17604 | |
17605 fi | |
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5 | |
17607 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; } | |
17608 | |
17609 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then | |
17610 case $lt_prog_compiler_pic_F77 in | |
17611 "" | " "*) ;; | |
17612 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; | |
17613 esac | |
17614 else | |
17615 lt_prog_compiler_pic_F77= | |
17616 lt_prog_compiler_can_build_shared_F77=no | |
17617 fi | |
17618 | |
17619 fi | |
17620 | |
17621 | |
17622 | |
17623 | |
17624 | |
17625 # | |
17626 # Check to make sure the static flag actually works. | |
17627 # | |
17628 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" | |
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
17630 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
17631 if ${lt_cv_prog_compiler_static_works_F77+:} false; then : | |
17632 $as_echo_n "(cached) " >&6 | |
17633 else | |
17634 lt_cv_prog_compiler_static_works_F77=no | |
17635 save_LDFLAGS="$LDFLAGS" | |
17636 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
17637 echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
17638 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
17639 # The linker can only warn and ignore the option if not recognized | |
17640 # So say no if there are warnings | |
17641 if test -s conftest.err; then | |
17642 # Append any errors to the config.log. | |
17643 cat conftest.err 1>&5 | |
17644 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
17645 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
17646 if diff conftest.exp conftest.er2 >/dev/null; then | |
17647 lt_cv_prog_compiler_static_works_F77=yes | |
17648 fi | |
17649 else | |
17650 lt_cv_prog_compiler_static_works_F77=yes | |
17651 fi | |
17652 fi | |
17653 $RM -r conftest* | |
17654 LDFLAGS="$save_LDFLAGS" | |
17655 | |
17656 fi | |
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5 | |
17658 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; } | |
17659 | |
17660 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then | |
17661 : | |
17662 else | |
17663 lt_prog_compiler_static_F77= | |
17664 fi | |
17665 | |
17666 | |
17667 | |
17668 | |
17669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
17670 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
17671 if ${lt_cv_prog_compiler_c_o_F77+:} false; then : | |
17672 $as_echo_n "(cached) " >&6 | |
17673 else | |
17674 lt_cv_prog_compiler_c_o_F77=no | |
17675 $RM -r conftest 2>/dev/null | |
17676 mkdir conftest | |
17677 cd conftest | |
17678 mkdir out | |
17679 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
17680 | |
17681 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
17682 # Insert the option either (1) after the last *FLAGS variable, or | |
17683 # (2) before a word containing "conftest.", or (3) at the end. | |
17684 # Note that $ac_compile itself does not contain backslashes and begins | |
17685 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
17686 lt_compile=`echo "$ac_compile" | $SED \ | |
17687 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
17688 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
17689 -e 's:$: $lt_compiler_flag:'` | |
17690 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
17691 (eval "$lt_compile" 2>out/conftest.err) | |
17692 ac_status=$? | |
17693 cat out/conftest.err >&5 | |
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17695 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
17696 then | |
17697 # The compiler can only warn and ignore the option if not recognized | |
17698 # So say no if there are warnings | |
17699 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
17700 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
17701 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
17702 lt_cv_prog_compiler_c_o_F77=yes | |
17703 fi | |
17704 fi | |
17705 chmod u+w . 2>&5 | |
17706 $RM conftest* | |
17707 # SGI C++ compiler will create directory out/ii_files/ for | |
17708 # template instantiation | |
17709 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
17710 $RM out/* && rmdir out | |
17711 cd .. | |
17712 $RM -r conftest | |
17713 $RM conftest* | |
17714 | |
17715 fi | |
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5 | |
17717 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } | |
17718 | |
17719 | |
17720 | |
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
17722 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
17723 if ${lt_cv_prog_compiler_c_o_F77+:} false; then : | |
17724 $as_echo_n "(cached) " >&6 | |
17725 else | |
17726 lt_cv_prog_compiler_c_o_F77=no | |
17727 $RM -r conftest 2>/dev/null | |
17728 mkdir conftest | |
17729 cd conftest | |
17730 mkdir out | |
17731 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
17732 | |
17733 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
17734 # Insert the option either (1) after the last *FLAGS variable, or | |
17735 # (2) before a word containing "conftest.", or (3) at the end. | |
17736 # Note that $ac_compile itself does not contain backslashes and begins | |
17737 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
17738 lt_compile=`echo "$ac_compile" | $SED \ | |
17739 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
17740 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
17741 -e 's:$: $lt_compiler_flag:'` | |
17742 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
17743 (eval "$lt_compile" 2>out/conftest.err) | |
17744 ac_status=$? | |
17745 cat out/conftest.err >&5 | |
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17747 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
17748 then | |
17749 # The compiler can only warn and ignore the option if not recognized | |
17750 # So say no if there are warnings | |
17751 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
17752 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
17753 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
17754 lt_cv_prog_compiler_c_o_F77=yes | |
17755 fi | |
17756 fi | |
17757 chmod u+w . 2>&5 | |
17758 $RM conftest* | |
17759 # SGI C++ compiler will create directory out/ii_files/ for | |
17760 # template instantiation | |
17761 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
17762 $RM out/* && rmdir out | |
17763 cd .. | |
17764 $RM -r conftest | |
17765 $RM conftest* | |
17766 | |
17767 fi | |
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5 | |
17769 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } | |
17770 | |
17771 | |
17772 | |
17773 | |
17774 hard_links="nottested" | |
17775 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then | |
17776 # do not overwrite the value of need_locks provided by the user | |
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
17778 $as_echo_n "checking if we can lock with hard links... " >&6; } | |
17779 hard_links=yes | |
17780 $RM conftest* | |
17781 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
17782 touch conftest.a | |
17783 ln conftest.a conftest.b 2>&5 || hard_links=no | |
17784 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
17786 $as_echo "$hard_links" >&6; } | |
17787 if test "$hard_links" = no; then | |
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
17789 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
17790 need_locks=warn | |
17791 fi | |
17792 else | |
17793 need_locks=no | |
17794 fi | |
17795 | |
17796 | |
17797 | |
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
17799 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
17800 | |
17801 runpath_var= | |
17802 allow_undefined_flag_F77= | |
17803 always_export_symbols_F77=no | |
17804 archive_cmds_F77= | |
17805 archive_expsym_cmds_F77= | |
17806 compiler_needs_object_F77=no | |
17807 enable_shared_with_static_runtimes_F77=no | |
17808 export_dynamic_flag_spec_F77= | |
17809 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
17810 hardcode_automatic_F77=no | |
17811 hardcode_direct_F77=no | |
17812 hardcode_direct_absolute_F77=no | |
17813 hardcode_libdir_flag_spec_F77= | |
17814 hardcode_libdir_separator_F77= | |
17815 hardcode_minus_L_F77=no | |
17816 hardcode_shlibpath_var_F77=unsupported | |
17817 inherit_rpath_F77=no | |
17818 link_all_deplibs_F77=unknown | |
17819 module_cmds_F77= | |
17820 module_expsym_cmds_F77= | |
17821 old_archive_from_new_cmds_F77= | |
17822 old_archive_from_expsyms_cmds_F77= | |
17823 thread_safe_flag_spec_F77= | |
17824 whole_archive_flag_spec_F77= | |
17825 # include_expsyms should be a list of space-separated symbols to be *always* | |
17826 # included in the symbol list | |
17827 include_expsyms_F77= | |
17828 # exclude_expsyms can be an extended regexp of symbols to exclude | |
17829 # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
17830 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
17831 # as well as any symbol that contains `d'. | |
17832 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
17833 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
17834 # platforms (ab)use it in PIC code, but their linkers get confused if | |
17835 # the symbol is explicitly referenced. Since portable code cannot | |
17836 # rely on this symbol name, it's probably fine to never include it in | |
17837 # preloaded symbol tables. | |
17838 # Exclude shared library initialization/finalization symbols. | |
17839 extract_expsyms_cmds= | |
17840 | |
17841 case $host_os in | |
17842 cygwin* | mingw* | pw32* | cegcc*) | |
17843 # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
17844 # When not using gcc, we currently assume that we are using | |
17845 # Microsoft Visual C++. | |
17846 if test "$GCC" != yes; then | |
17847 with_gnu_ld=no | |
17848 fi | |
17849 ;; | |
17850 interix*) | |
17851 # we just hope/assume this is gcc and not c89 (= MSVC++) | |
17852 with_gnu_ld=yes | |
17853 ;; | |
17854 openbsd*) | |
17855 with_gnu_ld=no | |
17856 ;; | |
17857 linux* | k*bsd*-gnu | gnu*) | |
17858 link_all_deplibs_F77=no | |
17859 ;; | |
17860 esac | |
17861 | |
17862 ld_shlibs_F77=yes | |
17863 | |
17864 # On some targets, GNU ld is compatible enough with the native linker | |
17865 # that we're better off using the native interface for both. | |
17866 lt_use_gnu_ld_interface=no | |
17867 if test "$with_gnu_ld" = yes; then | |
17868 case $host_os in | |
17869 aix*) | |
17870 # The AIX port of GNU ld has always aspired to compatibility | |
17871 # with the native linker. However, as the warning in the GNU ld | |
17872 # block says, versions before 2.19.5* couldn't really create working | |
17873 # shared libraries, regardless of the interface used. | |
17874 case `$LD -v 2>&1` in | |
17875 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
17876 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
17877 *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
17878 *) | |
17879 lt_use_gnu_ld_interface=yes | |
17880 ;; | |
17881 esac | |
17882 ;; | |
17883 *) | |
17884 lt_use_gnu_ld_interface=yes | |
17885 ;; | |
17886 esac | |
17887 fi | |
17888 | |
17889 if test "$lt_use_gnu_ld_interface" = yes; then | |
17890 # If archive_cmds runs LD, not CC, wlarc should be empty | |
17891 wlarc='${wl}' | |
17892 | |
17893 # Set some defaults for GNU ld with shared library support. These | |
17894 # are reset later if shared libraries are not supported. Putting them | |
17895 # here allows them to be overridden if necessary. | |
17896 runpath_var=LD_RUN_PATH | |
17897 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
17898 export_dynamic_flag_spec_F77='${wl}--export-dynamic' | |
17899 # ancient GNU ld didn't support --whole-archive et. al. | |
17900 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
17901 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
17902 else | |
17903 whole_archive_flag_spec_F77= | |
17904 fi | |
17905 supports_anon_versioning=no | |
17906 case `$LD -v 2>&1` in | |
17907 *GNU\ gold*) supports_anon_versioning=yes ;; | |
17908 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
17909 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
17910 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
17911 *\ 2.11.*) ;; # other 2.11 versions | |
17912 *) supports_anon_versioning=yes ;; | |
17913 esac | |
17914 | |
17915 # See if GNU ld supports shared libraries. | |
17916 case $host_os in | |
17917 aix[3-9]*) | |
17918 # On AIX/PPC, the GNU linker is very broken | |
17919 if test "$host_cpu" != ia64; then | |
17920 ld_shlibs_F77=no | |
17921 cat <<_LT_EOF 1>&2 | |
17922 | |
17923 *** Warning: the GNU linker, at least up to release 2.19, is reported | |
17924 *** to be unable to reliably create shared libraries on AIX. | |
17925 *** Therefore, libtool is disabling shared libraries support. If you | |
17926 *** really care for shared libraries, you may want to install binutils | |
17927 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
17928 *** You will then need to restart the configuration process. | |
17929 | |
17930 _LT_EOF | |
17931 fi | |
17932 ;; | |
17933 | |
17934 amigaos*) | |
17935 case $host_cpu in | |
17936 powerpc) | |
17937 # see comment about AmigaOS4 .so support | |
17938 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
17939 archive_expsym_cmds_F77='' | |
17940 ;; | |
17941 m68k) | |
17942 archive_cmds_F77='$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)' | |
17943 hardcode_libdir_flag_spec_F77='-L$libdir' | |
17944 hardcode_minus_L_F77=yes | |
17945 ;; | |
17946 esac | |
17947 ;; | |
17948 | |
17949 beos*) | |
17950 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
17951 allow_undefined_flag_F77=unsupported | |
17952 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
17953 # support --undefined. This deserves some investigation. FIXME | |
17954 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
17955 else | |
17956 ld_shlibs_F77=no | |
17957 fi | |
17958 ;; | |
17959 | |
17960 cygwin* | mingw* | pw32* | cegcc*) | |
17961 # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, | |
17962 # as there is no search path for DLLs. | |
17963 hardcode_libdir_flag_spec_F77='-L$libdir' | |
17964 export_dynamic_flag_spec_F77='${wl}--export-all-symbols' | |
17965 allow_undefined_flag_F77=unsupported | |
17966 always_export_symbols_F77=no | |
17967 enable_shared_with_static_runtimes_F77=yes | |
17968 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | |
17969 exclude_expsyms_F77='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
17970 | |
17971 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
17972 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
17973 # If the export-symbols file already is a .def file (1st line | |
17974 # is EXPORTS), use it as is; otherwise, prepend... | |
17975 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
17976 cp $export_symbols $output_objdir/$soname.def; | |
17977 else | |
17978 echo EXPORTS > $output_objdir/$soname.def; | |
17979 cat $export_symbols >> $output_objdir/$soname.def; | |
17980 fi~ | |
17981 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
17982 else | |
17983 ld_shlibs_F77=no | |
17984 fi | |
17985 ;; | |
17986 | |
17987 haiku*) | |
17988 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
17989 link_all_deplibs_F77=yes | |
17990 ;; | |
17991 | |
17992 interix[3-9]*) | |
17993 hardcode_direct_F77=no | |
17994 hardcode_shlibpath_var_F77=no | |
17995 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
17996 export_dynamic_flag_spec_F77='${wl}-E' | |
17997 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
17998 # Instead, shared libraries are loaded at an image base (0x10000000 by | |
17999 # default) and relocated if they conflict, which is a slow very memory | |
18000 # consuming and fragmenting process. To avoid this, we pick a random, | |
18001 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
18002 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
18003 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
18004 archive_expsym_cmds_F77='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' | |
18005 ;; | |
18006 | |
18007 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
18008 tmp_diet=no | |
18009 if test "$host_os" = linux-dietlibc; then | |
18010 case $cc_basename in | |
18011 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
18012 esac | |
18013 fi | |
18014 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
18015 && test "$tmp_diet" = no | |
18016 then | |
18017 tmp_addflag=' $pic_flag' | |
18018 tmp_sharedflag='-shared' | |
18019 case $cc_basename,$host_cpu in | |
18020 pgcc*) # Portland Group C compiler | |
18021 whole_archive_flag_spec_F77='${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' | |
18022 tmp_addflag=' $pic_flag' | |
18023 ;; | |
18024 pgf77* | pgf90* | pgf95* | pgfortran*) | |
18025 # Portland Group f77 and f90 compilers | |
18026 whole_archive_flag_spec_F77='${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' | |
18027 tmp_addflag=' $pic_flag -Mnomain' ;; | |
18028 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
18029 tmp_addflag=' -i_dynamic' ;; | |
18030 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
18031 tmp_addflag=' -i_dynamic -nofor_main' ;; | |
18032 ifc* | ifort*) # Intel Fortran compiler | |
18033 tmp_addflag=' -nofor_main' ;; | |
18034 lf95*) # Lahey Fortran 8.1 | |
18035 whole_archive_flag_spec_F77= | |
18036 tmp_sharedflag='--shared' ;; | |
18037 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
18038 tmp_sharedflag='-qmkshrobj' | |
18039 tmp_addflag= ;; | |
18040 nvcc*) # Cuda Compiler Driver 2.2 | |
18041 whole_archive_flag_spec_F77='${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' | |
18042 compiler_needs_object_F77=yes | |
18043 ;; | |
18044 esac | |
18045 case `$CC -V 2>&1 | sed 5q` in | |
18046 *Sun\ C*) # Sun C 5.9 | |
18047 whole_archive_flag_spec_F77='${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' | |
18048 compiler_needs_object_F77=yes | |
18049 tmp_sharedflag='-G' ;; | |
18050 *Sun\ F*) # Sun Fortran 8.3 | |
18051 tmp_sharedflag='-G' ;; | |
18052 esac | |
18053 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
18054 | |
18055 if test "x$supports_anon_versioning" = xyes; then | |
18056 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~ | |
18057 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
18058 echo "local: *; };" >> $output_objdir/$libname.ver~ | |
18059 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
18060 fi | |
18061 | |
18062 case $cc_basename in | |
18063 xlf* | bgf* | bgxlf* | mpixlf*) | |
18064 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
18065 whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive' | |
18066 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
18067 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | |
18068 if test "x$supports_anon_versioning" = xyes; then | |
18069 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~ | |
18070 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
18071 echo "local: *; };" >> $output_objdir/$libname.ver~ | |
18072 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
18073 fi | |
18074 ;; | |
18075 esac | |
18076 else | |
18077 ld_shlibs_F77=no | |
18078 fi | |
18079 ;; | |
18080 | |
18081 netbsd* | netbsdelf*-gnu) | |
18082 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
18083 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
18084 wlarc= | |
18085 else | |
18086 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
18087 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
18088 fi | |
18089 ;; | |
18090 | |
18091 solaris*) | |
18092 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
18093 ld_shlibs_F77=no | |
18094 cat <<_LT_EOF 1>&2 | |
18095 | |
18096 *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
18097 *** create shared libraries on Solaris systems. Therefore, libtool | |
18098 *** is disabling shared libraries support. We urge you to upgrade GNU | |
18099 *** binutils to release 2.9.1 or newer. Another option is to modify | |
18100 *** your PATH or compiler configuration so that the native linker is | |
18101 *** used, and then restart. | |
18102 | |
18103 _LT_EOF | |
18104 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
18105 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
18106 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
18107 else | |
18108 ld_shlibs_F77=no | |
18109 fi | |
18110 ;; | |
18111 | |
18112 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
18113 case `$LD -v 2>&1` in | |
18114 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
18115 ld_shlibs_F77=no | |
18116 cat <<_LT_EOF 1>&2 | |
18117 | |
18118 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
18119 *** reliably create shared libraries on SCO systems. Therefore, libtool | |
18120 *** is disabling shared libraries support. We urge you to upgrade GNU | |
18121 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
18122 *** your PATH or compiler configuration so that the native linker is | |
18123 *** used, and then restart. | |
18124 | |
18125 _LT_EOF | |
18126 ;; | |
18127 *) | |
18128 # For security reasons, it is highly recommended that you always | |
18129 # use absolute paths for naming shared libraries, and exclude the | |
18130 # DT_RUNPATH tag from executables and libraries. But doing so | |
18131 # requires that you compile everything twice, which is a pain. | |
18132 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
18133 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
18134 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
18135 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
18136 else | |
18137 ld_shlibs_F77=no | |
18138 fi | |
18139 ;; | |
18140 esac | |
18141 ;; | |
18142 | |
18143 sunos4*) | |
18144 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
18145 wlarc= | |
18146 hardcode_direct_F77=yes | |
18147 hardcode_shlibpath_var_F77=no | |
18148 ;; | |
18149 | |
18150 *) | |
18151 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
18152 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
18153 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
18154 else | |
18155 ld_shlibs_F77=no | |
18156 fi | |
18157 ;; | |
18158 esac | |
18159 | |
18160 if test "$ld_shlibs_F77" = no; then | |
18161 runpath_var= | |
18162 hardcode_libdir_flag_spec_F77= | |
18163 export_dynamic_flag_spec_F77= | |
18164 whole_archive_flag_spec_F77= | |
18165 fi | |
18166 else | |
18167 # PORTME fill in a description of your system's linker (not GNU ld) | |
18168 case $host_os in | |
18169 aix3*) | |
18170 allow_undefined_flag_F77=unsupported | |
18171 always_export_symbols_F77=yes | |
18172 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | |
18173 # Note: this linker hardcodes the directories in LIBPATH if there | |
18174 # are no directories specified by -L. | |
18175 hardcode_minus_L_F77=yes | |
18176 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
18177 # Neither direct hardcoding nor static linking is supported with a | |
18178 # broken collect2. | |
18179 hardcode_direct_F77=unsupported | |
18180 fi | |
18181 ;; | |
18182 | |
18183 aix[4-9]*) | |
18184 if test "$host_cpu" = ia64; then | |
18185 # On IA64, the linker does run time linking by default, so we don't | |
18186 # have to do anything special. | |
18187 aix_use_runtimelinking=no | |
18188 exp_sym_flag='-Bexport' | |
18189 no_entry_flag="" | |
18190 else | |
18191 # If we're using GNU nm, then we don't want the "-C" option. | |
18192 # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
18193 # Also, AIX nm treats weak defined symbols like other global | |
18194 # defined symbols, whereas GNU nm marks them as "W". | |
18195 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
18196 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
18197 else | |
18198 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
18199 fi | |
18200 aix_use_runtimelinking=no | |
18201 | |
18202 # Test if we are trying to use run time linking or normal | |
18203 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
18204 # need to do runtime linking. | |
18205 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
18206 for ld_flag in $LDFLAGS; do | |
18207 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
18208 aix_use_runtimelinking=yes | |
18209 break | |
18210 fi | |
18211 done | |
18212 ;; | |
18213 esac | |
18214 | |
18215 exp_sym_flag='-bexport' | |
18216 no_entry_flag='-bnoentry' | |
18217 fi | |
18218 | |
18219 # When large executables or shared objects are built, AIX ld can | |
18220 # have problems creating the table of contents. If linking a library | |
18221 # or program results in "error TOC overflow" add -mminimal-toc to | |
18222 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
18223 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
18224 | |
18225 archive_cmds_F77='' | |
18226 hardcode_direct_F77=yes | |
18227 hardcode_direct_absolute_F77=yes | |
18228 hardcode_libdir_separator_F77=':' | |
18229 link_all_deplibs_F77=yes | |
18230 file_list_spec_F77='${wl}-f,' | |
18231 | |
18232 if test "$GCC" = yes; then | |
18233 case $host_os in aix4.[012]|aix4.[012].*) | |
18234 # We only want to do this on AIX 4.2 and lower, the check | |
18235 # below for broken collect2 doesn't work under 4.3+ | |
18236 collect2name=`${CC} -print-prog-name=collect2` | |
18237 if test -f "$collect2name" && | |
18238 strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
18239 then | |
18240 # We have reworked collect2 | |
18241 : | |
18242 else | |
18243 # We have old collect2 | |
18244 hardcode_direct_F77=unsupported | |
18245 # It fails to find uninstalled libraries when the uninstalled | |
18246 # path is not listed in the libpath. Setting hardcode_minus_L | |
18247 # to unsupported forces relinking | |
18248 hardcode_minus_L_F77=yes | |
18249 hardcode_libdir_flag_spec_F77='-L$libdir' | |
18250 hardcode_libdir_separator_F77= | |
18251 fi | |
18252 ;; | |
18253 esac | |
18254 shared_flag='-shared' | |
18255 if test "$aix_use_runtimelinking" = yes; then | |
18256 shared_flag="$shared_flag "'${wl}-G' | |
18257 fi | |
18258 link_all_deplibs_F77=no | |
18259 else | |
18260 # not using gcc | |
18261 if test "$host_cpu" = ia64; then | |
18262 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
18263 # chokes on -Wl,-G. The following line is correct: | |
18264 shared_flag='-G' | |
18265 else | |
18266 if test "$aix_use_runtimelinking" = yes; then | |
18267 shared_flag='${wl}-G' | |
18268 else | |
18269 shared_flag='${wl}-bM:SRE' | |
18270 fi | |
18271 fi | |
18272 fi | |
18273 | |
18274 export_dynamic_flag_spec_F77='${wl}-bexpall' | |
18275 # It seems that -bexpall does not export symbols beginning with | |
18276 # underscore (_), so it is better to generate a list of symbols to export. | |
18277 always_export_symbols_F77=yes | |
18278 if test "$aix_use_runtimelinking" = yes; then | |
18279 # Warning - without using the other runtime loading flags (-brtl), | |
18280 # -berok will link without error, but may produce a broken library. | |
18281 allow_undefined_flag_F77='-berok' | |
18282 # Determine the default libpath from the value encoded in an | |
18283 # empty executable. | |
18284 if test "${lt_cv_aix_libpath+set}" = set; then | |
18285 aix_libpath=$lt_cv_aix_libpath | |
18286 else | |
18287 if ${lt_cv_aix_libpath__F77+:} false; then : | |
18288 $as_echo_n "(cached) " >&6 | |
18289 else | |
18290 cat > conftest.$ac_ext <<_ACEOF | |
18291 program main | |
18292 | |
18293 end | |
18294 _ACEOF | |
18295 if ac_fn_f77_try_link "$LINENO"; then : | |
18296 | |
18297 lt_aix_libpath_sed=' | |
18298 /Import File Strings/,/^$/ { | |
18299 /^0/ { | |
18300 s/^0 *\([^ ]*\) *$/\1/ | |
18301 p | |
18302 } | |
18303 }' | |
18304 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
18305 # Check for a 64-bit object if we didn't find anything. | |
18306 if test -z "$lt_cv_aix_libpath__F77"; then | |
18307 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
18308 fi | |
18309 fi | |
18310 rm -f core conftest.err conftest.$ac_objext \ | |
18311 conftest$ac_exeext conftest.$ac_ext | |
18312 if test -z "$lt_cv_aix_libpath__F77"; then | |
18313 lt_cv_aix_libpath__F77="/usr/lib:/lib" | |
18314 fi | |
18315 | |
18316 fi | |
18317 | |
18318 aix_libpath=$lt_cv_aix_libpath__F77 | |
18319 fi | |
18320 | |
18321 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | |
18322 archive_expsym_cmds_F77='$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" | |
18323 else | |
18324 if test "$host_cpu" = ia64; then | |
18325 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' | |
18326 allow_undefined_flag_F77="-z nodefs" | |
18327 archive_expsym_cmds_F77="\$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" | |
18328 else | |
18329 # Determine the default libpath from the value encoded in an | |
18330 # empty executable. | |
18331 if test "${lt_cv_aix_libpath+set}" = set; then | |
18332 aix_libpath=$lt_cv_aix_libpath | |
18333 else | |
18334 if ${lt_cv_aix_libpath__F77+:} false; then : | |
18335 $as_echo_n "(cached) " >&6 | |
18336 else | |
18337 cat > conftest.$ac_ext <<_ACEOF | |
18338 program main | |
18339 | |
18340 end | |
18341 _ACEOF | |
18342 if ac_fn_f77_try_link "$LINENO"; then : | |
18343 | |
18344 lt_aix_libpath_sed=' | |
18345 /Import File Strings/,/^$/ { | |
18346 /^0/ { | |
18347 s/^0 *\([^ ]*\) *$/\1/ | |
18348 p | |
18349 } | |
18350 }' | |
18351 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
18352 # Check for a 64-bit object if we didn't find anything. | |
18353 if test -z "$lt_cv_aix_libpath__F77"; then | |
18354 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
18355 fi | |
18356 fi | |
18357 rm -f core conftest.err conftest.$ac_objext \ | |
18358 conftest$ac_exeext conftest.$ac_ext | |
18359 if test -z "$lt_cv_aix_libpath__F77"; then | |
18360 lt_cv_aix_libpath__F77="/usr/lib:/lib" | |
18361 fi | |
18362 | |
18363 fi | |
18364 | |
18365 aix_libpath=$lt_cv_aix_libpath__F77 | |
18366 fi | |
18367 | |
18368 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | |
18369 # Warning - without using the other run time loading flags, | |
18370 # -berok will link without error, but may produce a broken library. | |
18371 no_undefined_flag_F77=' ${wl}-bernotok' | |
18372 allow_undefined_flag_F77=' ${wl}-berok' | |
18373 if test "$with_gnu_ld" = yes; then | |
18374 # We only use this code for GNU lds that support --whole-archive. | |
18375 whole_archive_flag_spec_F77='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
18376 else | |
18377 # Exported symbols can be pulled into shared objects from archives | |
18378 whole_archive_flag_spec_F77='$convenience' | |
18379 fi | |
18380 archive_cmds_need_lc_F77=yes | |
18381 # This is similar to how AIX traditionally builds its shared libraries. | |
18382 archive_expsym_cmds_F77="\$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' | |
18383 fi | |
18384 fi | |
18385 ;; | |
18386 | |
18387 amigaos*) | |
18388 case $host_cpu in | |
18389 powerpc) | |
18390 # see comment about AmigaOS4 .so support | |
18391 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
18392 archive_expsym_cmds_F77='' | |
18393 ;; | |
18394 m68k) | |
18395 archive_cmds_F77='$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)' | |
18396 hardcode_libdir_flag_spec_F77='-L$libdir' | |
18397 hardcode_minus_L_F77=yes | |
18398 ;; | |
18399 esac | |
18400 ;; | |
18401 | |
18402 bsdi[45]*) | |
18403 export_dynamic_flag_spec_F77=-rdynamic | |
18404 ;; | |
18405 | |
18406 cygwin* | mingw* | pw32* | cegcc*) | |
18407 # When not using gcc, we currently assume that we are using | |
18408 # Microsoft Visual C++. | |
18409 # hardcode_libdir_flag_spec is actually meaningless, as there is | |
18410 # no search path for DLLs. | |
18411 case $cc_basename in | |
18412 cl*) | |
18413 # Native MSVC | |
18414 hardcode_libdir_flag_spec_F77=' ' | |
18415 allow_undefined_flag_F77=unsupported | |
18416 always_export_symbols_F77=yes | |
18417 file_list_spec_F77='@' | |
18418 # Tell ltmain to make .lib files, not .a files. | |
18419 libext=lib | |
18420 # Tell ltmain to make .dll files, not .so files. | |
18421 shrext_cmds=".dll" | |
18422 # FIXME: Setting linknames here is a bad hack. | |
18423 archive_cmds_F77='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
18424 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
18425 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
18426 else | |
18427 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
18428 fi~ | |
18429 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
18430 linknames=' | |
18431 # The linker will not automatically build a static lib if we build a DLL. | |
18432 # _LT_TAGVAR(old_archive_from_new_cmds, F77)='true' | |
18433 enable_shared_with_static_runtimes_F77=yes | |
18434 exclude_expsyms_F77='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
18435 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
18436 # Don't use ranlib | |
18437 old_postinstall_cmds_F77='chmod 644 $oldlib' | |
18438 postlink_cmds_F77='lt_outputfile="@OUTPUT@"~ | |
18439 lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
18440 case $lt_outputfile in | |
18441 *.exe|*.EXE) ;; | |
18442 *) | |
18443 lt_outputfile="$lt_outputfile.exe" | |
18444 lt_tool_outputfile="$lt_tool_outputfile.exe" | |
18445 ;; | |
18446 esac~ | |
18447 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
18448 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
18449 $RM "$lt_outputfile.manifest"; | |
18450 fi' | |
18451 ;; | |
18452 *) | |
18453 # Assume MSVC wrapper | |
18454 hardcode_libdir_flag_spec_F77=' ' | |
18455 allow_undefined_flag_F77=unsupported | |
18456 # Tell ltmain to make .lib files, not .a files. | |
18457 libext=lib | |
18458 # Tell ltmain to make .dll files, not .so files. | |
18459 shrext_cmds=".dll" | |
18460 # FIXME: Setting linknames here is a bad hack. | |
18461 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
18462 # The linker will automatically build a .lib file if we build a DLL. | |
18463 old_archive_from_new_cmds_F77='true' | |
18464 # FIXME: Should let the user specify the lib program. | |
18465 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
18466 enable_shared_with_static_runtimes_F77=yes | |
18467 ;; | |
18468 esac | |
18469 ;; | |
18470 | |
18471 darwin* | rhapsody*) | |
18472 | |
18473 | |
18474 archive_cmds_need_lc_F77=no | |
18475 hardcode_direct_F77=no | |
18476 hardcode_automatic_F77=yes | |
18477 hardcode_shlibpath_var_F77=unsupported | |
18478 if test "$lt_cv_ld_force_load" = "yes"; then | |
18479 whole_archive_flag_spec_F77='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
18480 compiler_needs_object_F77=yes | |
18481 else | |
18482 whole_archive_flag_spec_F77='' | |
18483 fi | |
18484 link_all_deplibs_F77=yes | |
18485 allow_undefined_flag_F77="$_lt_dar_allow_undefined" | |
18486 case $cc_basename in | |
18487 ifort*) _lt_dar_can_shared=yes ;; | |
18488 *) _lt_dar_can_shared=$GCC ;; | |
18489 esac | |
18490 if test "$_lt_dar_can_shared" = "yes"; then | |
18491 output_verbose_link_cmd=func_echo_all | |
18492 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
18493 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
18494 archive_expsym_cmds_F77="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}" | |
18495 module_expsym_cmds_F77="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}" | |
18496 | |
18497 else | |
18498 ld_shlibs_F77=no | |
18499 fi | |
18500 | |
18501 ;; | |
18502 | |
18503 dgux*) | |
18504 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
18505 hardcode_libdir_flag_spec_F77='-L$libdir' | |
18506 hardcode_shlibpath_var_F77=no | |
18507 ;; | |
18508 | |
18509 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
18510 # support. Future versions do this automatically, but an explicit c++rt0.o | |
18511 # does not break anything, and helps significantly (at the cost of a little | |
18512 # extra space). | |
18513 freebsd2.2*) | |
18514 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
18515 hardcode_libdir_flag_spec_F77='-R$libdir' | |
18516 hardcode_direct_F77=yes | |
18517 hardcode_shlibpath_var_F77=no | |
18518 ;; | |
18519 | |
18520 # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
18521 freebsd2.*) | |
18522 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
18523 hardcode_direct_F77=yes | |
18524 hardcode_minus_L_F77=yes | |
18525 hardcode_shlibpath_var_F77=no | |
18526 ;; | |
18527 | |
18528 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
18529 freebsd* | dragonfly*) | |
18530 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
18531 hardcode_libdir_flag_spec_F77='-R$libdir' | |
18532 hardcode_direct_F77=yes | |
18533 hardcode_shlibpath_var_F77=no | |
18534 ;; | |
18535 | |
18536 hpux9*) | |
18537 if test "$GCC" = yes; then | |
18538 archive_cmds_F77='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
18539 else | |
18540 archive_cmds_F77='$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' | |
18541 fi | |
18542 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
18543 hardcode_libdir_separator_F77=: | |
18544 hardcode_direct_F77=yes | |
18545 | |
18546 # hardcode_minus_L: Not really in the search PATH, | |
18547 # but as the default location of the library. | |
18548 hardcode_minus_L_F77=yes | |
18549 export_dynamic_flag_spec_F77='${wl}-E' | |
18550 ;; | |
18551 | |
18552 hpux10*) | |
18553 if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
18554 archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
18555 else | |
18556 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
18557 fi | |
18558 if test "$with_gnu_ld" = no; then | |
18559 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
18560 hardcode_libdir_separator_F77=: | |
18561 hardcode_direct_F77=yes | |
18562 hardcode_direct_absolute_F77=yes | |
18563 export_dynamic_flag_spec_F77='${wl}-E' | |
18564 # hardcode_minus_L: Not really in the search PATH, | |
18565 # but as the default location of the library. | |
18566 hardcode_minus_L_F77=yes | |
18567 fi | |
18568 ;; | |
18569 | |
18570 hpux11*) | |
18571 if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
18572 case $host_cpu in | |
18573 hppa*64*) | |
18574 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18575 ;; | |
18576 ia64*) | |
18577 archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
18578 ;; | |
18579 *) | |
18580 archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
18581 ;; | |
18582 esac | |
18583 else | |
18584 case $host_cpu in | |
18585 hppa*64*) | |
18586 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18587 ;; | |
18588 ia64*) | |
18589 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
18590 ;; | |
18591 *) | |
18592 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
18593 ;; | |
18594 esac | |
18595 fi | |
18596 if test "$with_gnu_ld" = no; then | |
18597 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
18598 hardcode_libdir_separator_F77=: | |
18599 | |
18600 case $host_cpu in | |
18601 hppa*64*|ia64*) | |
18602 hardcode_direct_F77=no | |
18603 hardcode_shlibpath_var_F77=no | |
18604 ;; | |
18605 *) | |
18606 hardcode_direct_F77=yes | |
18607 hardcode_direct_absolute_F77=yes | |
18608 export_dynamic_flag_spec_F77='${wl}-E' | |
18609 | |
18610 # hardcode_minus_L: Not really in the search PATH, | |
18611 # but as the default location of the library. | |
18612 hardcode_minus_L_F77=yes | |
18613 ;; | |
18614 esac | |
18615 fi | |
18616 ;; | |
18617 | |
18618 irix5* | irix6* | nonstopux*) | |
18619 if test "$GCC" = yes; then | |
18620 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
18621 # Try to use the -exported_symbol ld option, if it does not | |
18622 # work, assume that -exports_file does not work either and | |
18623 # implicitly export all symbols. | |
18624 # This should be the same for all languages, so no per-tag cache variable. | |
18625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
18626 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
18627 if ${lt_cv_irix_exported_symbol+:} false; then : | |
18628 $as_echo_n "(cached) " >&6 | |
18629 else | |
18630 save_LDFLAGS="$LDFLAGS" | |
18631 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
18632 cat > conftest.$ac_ext <<_ACEOF | |
18633 | |
18634 subroutine foo | |
18635 end | |
18636 _ACEOF | |
18637 if ac_fn_f77_try_link "$LINENO"; then : | |
18638 lt_cv_irix_exported_symbol=yes | |
18639 else | |
18640 lt_cv_irix_exported_symbol=no | |
18641 fi | |
18642 rm -f core conftest.err conftest.$ac_objext \ | |
18643 conftest$ac_exeext conftest.$ac_ext | |
18644 LDFLAGS="$save_LDFLAGS" | |
18645 fi | |
18646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
18647 $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
18648 if test "$lt_cv_irix_exported_symbol" = yes; then | |
18649 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | |
18650 fi | |
18651 else | |
18652 archive_cmds_F77='$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' | |
18653 archive_expsym_cmds_F77='$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' | |
18654 fi | |
18655 archive_cmds_need_lc_F77='no' | |
18656 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
18657 hardcode_libdir_separator_F77=: | |
18658 inherit_rpath_F77=yes | |
18659 link_all_deplibs_F77=yes | |
18660 ;; | |
18661 | |
18662 netbsd* | netbsdelf*-gnu) | |
18663 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
18664 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
18665 else | |
18666 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
18667 fi | |
18668 hardcode_libdir_flag_spec_F77='-R$libdir' | |
18669 hardcode_direct_F77=yes | |
18670 hardcode_shlibpath_var_F77=no | |
18671 ;; | |
18672 | |
18673 newsos6) | |
18674 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
18675 hardcode_direct_F77=yes | |
18676 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
18677 hardcode_libdir_separator_F77=: | |
18678 hardcode_shlibpath_var_F77=no | |
18679 ;; | |
18680 | |
18681 *nto* | *qnx*) | |
18682 ;; | |
18683 | |
18684 openbsd*) | |
18685 if test -f /usr/libexec/ld.so; then | |
18686 hardcode_direct_F77=yes | |
18687 hardcode_shlibpath_var_F77=no | |
18688 hardcode_direct_absolute_F77=yes | |
18689 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
18690 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
18691 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
18692 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
18693 export_dynamic_flag_spec_F77='${wl}-E' | |
18694 else | |
18695 case $host_os in | |
18696 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
18697 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
18698 hardcode_libdir_flag_spec_F77='-R$libdir' | |
18699 ;; | |
18700 *) | |
18701 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
18702 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
18703 ;; | |
18704 esac | |
18705 fi | |
18706 else | |
18707 ld_shlibs_F77=no | |
18708 fi | |
18709 ;; | |
18710 | |
18711 os2*) | |
18712 hardcode_libdir_flag_spec_F77='-L$libdir' | |
18713 hardcode_minus_L_F77=yes | |
18714 allow_undefined_flag_F77=unsupported | |
18715 archive_cmds_F77='$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' | |
18716 old_archive_from_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
18717 ;; | |
18718 | |
18719 osf3*) | |
18720 if test "$GCC" = yes; then | |
18721 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | |
18722 archive_cmds_F77='$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' | |
18723 else | |
18724 allow_undefined_flag_F77=' -expect_unresolved \*' | |
18725 archive_cmds_F77='$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' | |
18726 fi | |
18727 archive_cmds_need_lc_F77='no' | |
18728 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
18729 hardcode_libdir_separator_F77=: | |
18730 ;; | |
18731 | |
18732 osf4* | osf5*) # as osf3* with the addition of -msym flag | |
18733 if test "$GCC" = yes; then | |
18734 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | |
18735 archive_cmds_F77='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
18736 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
18737 else | |
18738 allow_undefined_flag_F77=' -expect_unresolved \*' | |
18739 archive_cmds_F77='$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' | |
18740 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ | |
18741 $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' | |
18742 | |
18743 # Both c and cxx compiler support -rpath directly | |
18744 hardcode_libdir_flag_spec_F77='-rpath $libdir' | |
18745 fi | |
18746 archive_cmds_need_lc_F77='no' | |
18747 hardcode_libdir_separator_F77=: | |
18748 ;; | |
18749 | |
18750 solaris*) | |
18751 no_undefined_flag_F77=' -z defs' | |
18752 if test "$GCC" = yes; then | |
18753 wlarc='${wl}' | |
18754 archive_cmds_F77='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18755 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
18756 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
18757 else | |
18758 case `$CC -V 2>&1` in | |
18759 *"Compilers 5.0"*) | |
18760 wlarc='' | |
18761 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
18762 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
18763 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
18764 ;; | |
18765 *) | |
18766 wlarc='${wl}' | |
18767 archive_cmds_F77='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
18768 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
18769 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
18770 ;; | |
18771 esac | |
18772 fi | |
18773 hardcode_libdir_flag_spec_F77='-R$libdir' | |
18774 hardcode_shlibpath_var_F77=no | |
18775 case $host_os in | |
18776 solaris2.[0-5] | solaris2.[0-5].*) ;; | |
18777 *) | |
18778 # The compiler driver will combine and reorder linker options, | |
18779 # but understands `-z linker_flag'. GCC discards it without `$wl', | |
18780 # but is careful enough not to reorder. | |
18781 # Supported since Solaris 2.6 (maybe 2.5.1?) | |
18782 if test "$GCC" = yes; then | |
18783 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
18784 else | |
18785 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' | |
18786 fi | |
18787 ;; | |
18788 esac | |
18789 link_all_deplibs_F77=yes | |
18790 ;; | |
18791 | |
18792 sunos4*) | |
18793 if test "x$host_vendor" = xsequent; then | |
18794 # Use $CC to link under sequent, because it throws in some extra .o | |
18795 # files that make .init and .fini sections work. | |
18796 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
18797 else | |
18798 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
18799 fi | |
18800 hardcode_libdir_flag_spec_F77='-L$libdir' | |
18801 hardcode_direct_F77=yes | |
18802 hardcode_minus_L_F77=yes | |
18803 hardcode_shlibpath_var_F77=no | |
18804 ;; | |
18805 | |
18806 sysv4) | |
18807 case $host_vendor in | |
18808 sni) | |
18809 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
18810 hardcode_direct_F77=yes # is this really true??? | |
18811 ;; | |
18812 siemens) | |
18813 ## LD is ld it makes a PLAMLIB | |
18814 ## CC just makes a GrossModule. | |
18815 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
18816 reload_cmds_F77='$CC -r -o $output$reload_objs' | |
18817 hardcode_direct_F77=no | |
18818 ;; | |
18819 motorola) | |
18820 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
18821 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie | |
18822 ;; | |
18823 esac | |
18824 runpath_var='LD_RUN_PATH' | |
18825 hardcode_shlibpath_var_F77=no | |
18826 ;; | |
18827 | |
18828 sysv4.3*) | |
18829 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
18830 hardcode_shlibpath_var_F77=no | |
18831 export_dynamic_flag_spec_F77='-Bexport' | |
18832 ;; | |
18833 | |
18834 sysv4*MP*) | |
18835 if test -d /usr/nec; then | |
18836 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
18837 hardcode_shlibpath_var_F77=no | |
18838 runpath_var=LD_RUN_PATH | |
18839 hardcode_runpath_var=yes | |
18840 ld_shlibs_F77=yes | |
18841 fi | |
18842 ;; | |
18843 | |
18844 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
18845 no_undefined_flag_F77='${wl}-z,text' | |
18846 archive_cmds_need_lc_F77=no | |
18847 hardcode_shlibpath_var_F77=no | |
18848 runpath_var='LD_RUN_PATH' | |
18849 | |
18850 if test "$GCC" = yes; then | |
18851 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18852 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18853 else | |
18854 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18855 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18856 fi | |
18857 ;; | |
18858 | |
18859 sysv5* | sco3.2v5* | sco5v6*) | |
18860 # Note: We can NOT use -z defs as we might desire, because we do not | |
18861 # link with -lc, and that would cause any symbols used from libc to | |
18862 # always be unresolved, which means just about no library would | |
18863 # ever link correctly. If we're not using GNU ld we use -z text | |
18864 # though, which does catch some bad symbols but isn't as heavy-handed | |
18865 # as -z defs. | |
18866 no_undefined_flag_F77='${wl}-z,text' | |
18867 allow_undefined_flag_F77='${wl}-z,nodefs' | |
18868 archive_cmds_need_lc_F77=no | |
18869 hardcode_shlibpath_var_F77=no | |
18870 hardcode_libdir_flag_spec_F77='${wl}-R,$libdir' | |
18871 hardcode_libdir_separator_F77=':' | |
18872 link_all_deplibs_F77=yes | |
18873 export_dynamic_flag_spec_F77='${wl}-Bexport' | |
18874 runpath_var='LD_RUN_PATH' | |
18875 | |
18876 if test "$GCC" = yes; then | |
18877 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18878 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18879 else | |
18880 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18881 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
18882 fi | |
18883 ;; | |
18884 | |
18885 uts4*) | |
18886 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
18887 hardcode_libdir_flag_spec_F77='-L$libdir' | |
18888 hardcode_shlibpath_var_F77=no | |
18889 ;; | |
18890 | |
18891 *) | |
18892 ld_shlibs_F77=no | |
18893 ;; | |
18894 esac | |
18895 | |
18896 if test x$host_vendor = xsni; then | |
18897 case $host in | |
18898 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
18899 export_dynamic_flag_spec_F77='${wl}-Blargedynsym' | |
18900 ;; | |
18901 esac | |
18902 fi | |
18903 fi | |
18904 | |
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5 | |
18906 $as_echo "$ld_shlibs_F77" >&6; } | |
18907 test "$ld_shlibs_F77" = no && can_build_shared=no | |
18908 | |
18909 with_gnu_ld_F77=$with_gnu_ld | |
18910 | |
18911 | |
18912 | |
18913 | |
18914 | |
18915 | |
18916 # | |
18917 # Do we need to explicitly link libc? | |
18918 # | |
18919 case "x$archive_cmds_need_lc_F77" in | |
18920 x|xyes) | |
18921 # Assume -lc should be added | |
18922 archive_cmds_need_lc_F77=yes | |
18923 | |
18924 if test "$enable_shared" = yes && test "$GCC" = yes; then | |
18925 case $archive_cmds_F77 in | |
18926 *'~'*) | |
18927 # FIXME: we may have to deal with multi-command sequences. | |
18928 ;; | |
18929 '$CC '*) | |
18930 # Test whether the compiler implicitly links with -lc since on some | |
18931 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
18932 # to ld, don't add -lc before -lgcc. | |
18933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
18934 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
18935 if ${lt_cv_archive_cmds_need_lc_F77+:} false; then : | |
18936 $as_echo_n "(cached) " >&6 | |
18937 else | |
18938 $RM conftest* | |
18939 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
18940 | |
18941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
18942 (eval $ac_compile) 2>&5 | |
18943 ac_status=$? | |
18944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18945 test $ac_status = 0; } 2>conftest.err; then | |
18946 soname=conftest | |
18947 lib=conftest | |
18948 libobjs=conftest.$ac_objext | |
18949 deplibs= | |
18950 wl=$lt_prog_compiler_wl_F77 | |
18951 pic_flag=$lt_prog_compiler_pic_F77 | |
18952 compiler_flags=-v | |
18953 linker_flags=-v | |
18954 verstring= | |
18955 output_objdir=. | |
18956 libname=conftest | |
18957 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 | |
18958 allow_undefined_flag_F77= | |
18959 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
18960 (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
18961 ac_status=$? | |
18962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18963 test $ac_status = 0; } | |
18964 then | |
18965 lt_cv_archive_cmds_need_lc_F77=no | |
18966 else | |
18967 lt_cv_archive_cmds_need_lc_F77=yes | |
18968 fi | |
18969 allow_undefined_flag_F77=$lt_save_allow_undefined_flag | |
18970 else | |
18971 cat conftest.err 1>&5 | |
18972 fi | |
18973 $RM conftest* | |
18974 | |
18975 fi | |
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_F77" >&5 | |
18977 $as_echo "$lt_cv_archive_cmds_need_lc_F77" >&6; } | |
18978 archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77 | |
18979 ;; | |
18980 esac | |
18981 fi | |
18982 ;; | |
18983 esac | |
18984 | |
18985 | |
18986 | |
18987 | |
18988 | |
18989 | |
18990 | |
18991 | |
18992 | |
18993 | |
18994 | |
18995 | |
18996 | |
18997 | |
18998 | |
18999 | |
19000 | |
19001 | |
19002 | |
19003 | |
19004 | |
19005 | |
19006 | |
19007 | |
19008 | |
19009 | |
19010 | |
19011 | |
19012 | |
19013 | |
19014 | |
19015 | |
19016 | |
19017 | |
19018 | |
19019 | |
19020 | |
19021 | |
19022 | |
19023 | |
19024 | |
19025 | |
19026 | |
19027 | |
19028 | |
19029 | |
19030 | |
19031 | |
19032 | |
19033 | |
19034 | |
19035 | |
19036 | |
19037 | |
19038 | |
19039 | |
19040 | |
19041 | |
19042 | |
19043 | |
19044 | |
19045 | |
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
19047 $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
19048 | |
19049 library_names_spec= | |
19050 libname_spec='lib$name' | |
19051 soname_spec= | |
19052 shrext_cmds=".so" | |
19053 postinstall_cmds= | |
19054 postuninstall_cmds= | |
19055 finish_cmds= | |
19056 finish_eval= | |
19057 shlibpath_var= | |
19058 shlibpath_overrides_runpath=unknown | |
19059 version_type=none | |
19060 dynamic_linker="$host_os ld.so" | |
19061 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
19062 need_lib_prefix=unknown | |
19063 hardcode_into_libs=no | |
19064 | |
19065 # when you set need_version to no, make sure it does not cause -set_version | |
19066 # flags to be left without arguments | |
19067 need_version=unknown | |
19068 | |
19069 case $host_os in | |
19070 aix3*) | |
19071 version_type=linux # correct to gnu/linux during the next big refactor | |
19072 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
19073 shlibpath_var=LIBPATH | |
19074 | |
19075 # AIX 3 has no versioning support, so we append a major version to the name. | |
19076 soname_spec='${libname}${release}${shared_ext}$major' | |
19077 ;; | |
19078 | |
19079 aix[4-9]*) | |
19080 version_type=linux # correct to gnu/linux during the next big refactor | |
19081 need_lib_prefix=no | |
19082 need_version=no | |
19083 hardcode_into_libs=yes | |
19084 if test "$host_cpu" = ia64; then | |
19085 # AIX 5 supports IA64 | |
19086 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
19087 shlibpath_var=LD_LIBRARY_PATH | |
19088 else | |
19089 # With GCC up to 2.95.x, collect2 would create an import file | |
19090 # for dependence libraries. The import file would start with | |
19091 # the line `#! .'. This would cause the generated library to | |
19092 # depend on `.', always an invalid library. This was fixed in | |
19093 # development snapshots of GCC prior to 3.0. | |
19094 case $host_os in | |
19095 aix4 | aix4.[01] | aix4.[01].*) | |
19096 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
19097 echo ' yes ' | |
19098 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
19099 : | |
19100 else | |
19101 can_build_shared=no | |
19102 fi | |
19103 ;; | |
19104 esac | |
19105 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
19106 # soname into executable. Probably we can add versioning support to | |
19107 # collect2, so additional links can be useful in future. | |
19108 if test "$aix_use_runtimelinking" = yes; then | |
19109 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
19110 # instead of lib<name>.a to let people know that these are not | |
19111 # typical AIX shared libraries. | |
19112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19113 else | |
19114 # We preserve .a as extension for shared libraries through AIX4.2 | |
19115 # and later when we are not doing run time linking. | |
19116 library_names_spec='${libname}${release}.a $libname.a' | |
19117 soname_spec='${libname}${release}${shared_ext}$major' | |
19118 fi | |
19119 shlibpath_var=LIBPATH | |
19120 fi | |
19121 ;; | |
19122 | |
19123 amigaos*) | |
19124 case $host_cpu in | |
19125 powerpc) | |
19126 # Since July 2007 AmigaOS4 officially supports .so libraries. | |
19127 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
19128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19129 ;; | |
19130 m68k) | |
19131 library_names_spec='$libname.ixlibrary $libname.a' | |
19132 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
19133 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' | |
19134 ;; | |
19135 esac | |
19136 ;; | |
19137 | |
19138 beos*) | |
19139 library_names_spec='${libname}${shared_ext}' | |
19140 dynamic_linker="$host_os ld.so" | |
19141 shlibpath_var=LIBRARY_PATH | |
19142 ;; | |
19143 | |
19144 bsdi[45]*) | |
19145 version_type=linux # correct to gnu/linux during the next big refactor | |
19146 need_version=no | |
19147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19148 soname_spec='${libname}${release}${shared_ext}$major' | |
19149 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
19150 shlibpath_var=LD_LIBRARY_PATH | |
19151 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
19152 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
19153 # the default ld.so.conf also contains /usr/contrib/lib and | |
19154 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
19155 # libtool to hard-code these into programs | |
19156 ;; | |
19157 | |
19158 cygwin* | mingw* | pw32* | cegcc*) | |
19159 version_type=windows | |
19160 shrext_cmds=".dll" | |
19161 need_version=no | |
19162 need_lib_prefix=no | |
19163 | |
19164 case $GCC,$cc_basename in | |
19165 yes,*) | |
19166 # gcc | |
19167 library_names_spec='$libname.dll.a' | |
19168 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
19169 postinstall_cmds='base_file=`basename \${file}`~ | |
19170 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
19171 dldir=$destdir/`dirname \$dlpath`~ | |
19172 test -d \$dldir || mkdir -p \$dldir~ | |
19173 $install_prog $dir/$dlname \$dldir/$dlname~ | |
19174 chmod a+x \$dldir/$dlname~ | |
19175 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
19176 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
19177 fi' | |
19178 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
19179 dlpath=$dir/\$dldll~ | |
19180 $RM \$dlpath' | |
19181 shlibpath_overrides_runpath=yes | |
19182 | |
19183 case $host_os in | |
19184 cygwin*) | |
19185 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
19186 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
19187 | |
19188 ;; | |
19189 mingw* | cegcc*) | |
19190 # MinGW DLLs use traditional 'lib' prefix | |
19191 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
19192 ;; | |
19193 pw32*) | |
19194 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
19195 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
19196 ;; | |
19197 esac | |
19198 dynamic_linker='Win32 ld.exe' | |
19199 ;; | |
19200 | |
19201 *,cl*) | |
19202 # Native MSVC | |
19203 libname_spec='$name' | |
19204 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
19205 library_names_spec='${libname}.dll.lib' | |
19206 | |
19207 case $build_os in | |
19208 mingw*) | |
19209 sys_lib_search_path_spec= | |
19210 lt_save_ifs=$IFS | |
19211 IFS=';' | |
19212 for lt_path in $LIB | |
19213 do | |
19214 IFS=$lt_save_ifs | |
19215 # Let DOS variable expansion print the short 8.3 style file name. | |
19216 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
19217 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
19218 done | |
19219 IFS=$lt_save_ifs | |
19220 # Convert to MSYS style. | |
19221 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
19222 ;; | |
19223 cygwin*) | |
19224 # Convert to unix form, then to dos form, then back to unix form | |
19225 # but this time dos style (no spaces!) so that the unix form looks | |
19226 # like /cygdrive/c/PROGRA~1:/cygdr... | |
19227 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
19228 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
19229 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
19230 ;; | |
19231 *) | |
19232 sys_lib_search_path_spec="$LIB" | |
19233 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
19234 # It is most probably a Windows format PATH. | |
19235 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
19236 else | |
19237 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
19238 fi | |
19239 # FIXME: find the short name or the path components, as spaces are | |
19240 # common. (e.g. "Program Files" -> "PROGRA~1") | |
19241 ;; | |
19242 esac | |
19243 | |
19244 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
19245 postinstall_cmds='base_file=`basename \${file}`~ | |
19246 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
19247 dldir=$destdir/`dirname \$dlpath`~ | |
19248 test -d \$dldir || mkdir -p \$dldir~ | |
19249 $install_prog $dir/$dlname \$dldir/$dlname' | |
19250 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
19251 dlpath=$dir/\$dldll~ | |
19252 $RM \$dlpath' | |
19253 shlibpath_overrides_runpath=yes | |
19254 dynamic_linker='Win32 link.exe' | |
19255 ;; | |
19256 | |
19257 *) | |
19258 # Assume MSVC wrapper | |
19259 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
19260 dynamic_linker='Win32 ld.exe' | |
19261 ;; | |
19262 esac | |
19263 # FIXME: first we should search . and the directory the executable is in | |
19264 shlibpath_var=PATH | |
19265 ;; | |
19266 | |
19267 darwin* | rhapsody*) | |
19268 dynamic_linker="$host_os dyld" | |
19269 version_type=darwin | |
19270 need_lib_prefix=no | |
19271 need_version=no | |
19272 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
19273 soname_spec='${libname}${release}${major}$shared_ext' | |
19274 shlibpath_overrides_runpath=yes | |
19275 shlibpath_var=DYLD_LIBRARY_PATH | |
19276 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
19277 | |
19278 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
19279 ;; | |
19280 | |
19281 dgux*) | |
19282 version_type=linux # correct to gnu/linux during the next big refactor | |
19283 need_lib_prefix=no | |
19284 need_version=no | |
19285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
19286 soname_spec='${libname}${release}${shared_ext}$major' | |
19287 shlibpath_var=LD_LIBRARY_PATH | |
19288 ;; | |
19289 | |
19290 freebsd* | dragonfly*) | |
19291 # DragonFly does not have aout. When/if they implement a new | |
19292 # versioning mechanism, adjust this. | |
19293 if test -x /usr/bin/objformat; then | |
19294 objformat=`/usr/bin/objformat` | |
19295 else | |
19296 case $host_os in | |
19297 freebsd[23].*) objformat=aout ;; | |
19298 *) objformat=elf ;; | |
19299 esac | |
19300 fi | |
19301 version_type=freebsd-$objformat | |
19302 case $version_type in | |
19303 freebsd-elf*) | |
19304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
19305 need_version=no | |
19306 need_lib_prefix=no | |
19307 ;; | |
19308 freebsd-*) | |
19309 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
19310 need_version=yes | |
19311 ;; | |
19312 esac | |
19313 shlibpath_var=LD_LIBRARY_PATH | |
19314 case $host_os in | |
19315 freebsd2.*) | |
19316 shlibpath_overrides_runpath=yes | |
19317 ;; | |
19318 freebsd3.[01]* | freebsdelf3.[01]*) | |
19319 shlibpath_overrides_runpath=yes | |
19320 hardcode_into_libs=yes | |
19321 ;; | |
19322 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
19323 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
19324 shlibpath_overrides_runpath=no | |
19325 hardcode_into_libs=yes | |
19326 ;; | |
19327 *) # from 4.6 on, and DragonFly | |
19328 shlibpath_overrides_runpath=yes | |
19329 hardcode_into_libs=yes | |
19330 ;; | |
19331 esac | |
19332 ;; | |
19333 | |
19334 haiku*) | |
19335 version_type=linux # correct to gnu/linux during the next big refactor | |
19336 need_lib_prefix=no | |
19337 need_version=no | |
19338 dynamic_linker="$host_os runtime_loader" | |
19339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
19340 soname_spec='${libname}${release}${shared_ext}$major' | |
19341 shlibpath_var=LIBRARY_PATH | |
19342 shlibpath_overrides_runpath=yes | |
19343 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
19344 hardcode_into_libs=yes | |
19345 ;; | |
19346 | |
19347 hpux9* | hpux10* | hpux11*) | |
19348 # Give a soname corresponding to the major version so that dld.sl refuses to | |
19349 # link against other versions. | |
19350 version_type=sunos | |
19351 need_lib_prefix=no | |
19352 need_version=no | |
19353 case $host_cpu in | |
19354 ia64*) | |
19355 shrext_cmds='.so' | |
19356 hardcode_into_libs=yes | |
19357 dynamic_linker="$host_os dld.so" | |
19358 shlibpath_var=LD_LIBRARY_PATH | |
19359 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
19360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19361 soname_spec='${libname}${release}${shared_ext}$major' | |
19362 if test "X$HPUX_IA64_MODE" = X32; then | |
19363 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
19364 else | |
19365 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
19366 fi | |
19367 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
19368 ;; | |
19369 hppa*64*) | |
19370 shrext_cmds='.sl' | |
19371 hardcode_into_libs=yes | |
19372 dynamic_linker="$host_os dld.sl" | |
19373 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
19374 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
19375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19376 soname_spec='${libname}${release}${shared_ext}$major' | |
19377 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
19378 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
19379 ;; | |
19380 *) | |
19381 shrext_cmds='.sl' | |
19382 dynamic_linker="$host_os dld.sl" | |
19383 shlibpath_var=SHLIB_PATH | |
19384 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
19385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19386 soname_spec='${libname}${release}${shared_ext}$major' | |
19387 ;; | |
19388 esac | |
19389 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
19390 postinstall_cmds='chmod 555 $lib' | |
19391 # or fails outright, so override atomically: | |
19392 install_override_mode=555 | |
19393 ;; | |
19394 | |
19395 interix[3-9]*) | |
19396 version_type=linux # correct to gnu/linux during the next big refactor | |
19397 need_lib_prefix=no | |
19398 need_version=no | |
19399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
19400 soname_spec='${libname}${release}${shared_ext}$major' | |
19401 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
19402 shlibpath_var=LD_LIBRARY_PATH | |
19403 shlibpath_overrides_runpath=no | |
19404 hardcode_into_libs=yes | |
19405 ;; | |
19406 | |
19407 irix5* | irix6* | nonstopux*) | |
19408 case $host_os in | |
19409 nonstopux*) version_type=nonstopux ;; | |
19410 *) | |
19411 if test "$lt_cv_prog_gnu_ld" = yes; then | |
19412 version_type=linux # correct to gnu/linux during the next big refactor | |
19413 else | |
19414 version_type=irix | |
19415 fi ;; | |
19416 esac | |
19417 need_lib_prefix=no | |
19418 need_version=no | |
19419 soname_spec='${libname}${release}${shared_ext}$major' | |
19420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
19421 case $host_os in | |
19422 irix5* | nonstopux*) | |
19423 libsuff= shlibsuff= | |
19424 ;; | |
19425 *) | |
19426 case $LD in # libtool.m4 will add one of these switches to LD | |
19427 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
19428 libsuff= shlibsuff= libmagic=32-bit;; | |
19429 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
19430 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
19431 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
19432 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
19433 *) libsuff= shlibsuff= libmagic=never-match;; | |
19434 esac | |
19435 ;; | |
19436 esac | |
19437 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
19438 shlibpath_overrides_runpath=no | |
19439 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
19440 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
19441 hardcode_into_libs=yes | |
19442 ;; | |
19443 | |
19444 # No shared lib support for Linux oldld, aout, or coff. | |
19445 linux*oldld* | linux*aout* | linux*coff*) | |
19446 dynamic_linker=no | |
19447 ;; | |
19448 | |
19449 # This must be glibc/ELF. | |
19450 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
19451 version_type=linux # correct to gnu/linux during the next big refactor | |
19452 need_lib_prefix=no | |
19453 need_version=no | |
19454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19455 soname_spec='${libname}${release}${shared_ext}$major' | |
19456 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
19457 shlibpath_var=LD_LIBRARY_PATH | |
19458 shlibpath_overrides_runpath=no | |
19459 | |
19460 # Some binutils ld are patched to set DT_RUNPATH | |
19461 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
19462 $as_echo_n "(cached) " >&6 | |
19463 else | |
19464 lt_cv_shlibpath_overrides_runpath=no | |
19465 save_LDFLAGS=$LDFLAGS | |
19466 save_libdir=$libdir | |
19467 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \ | |
19468 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\"" | |
19469 cat > conftest.$ac_ext <<_ACEOF | |
19470 program main | |
19471 | |
19472 end | |
19473 _ACEOF | |
19474 if ac_fn_f77_try_link "$LINENO"; then : | |
19475 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
19476 lt_cv_shlibpath_overrides_runpath=yes | |
19477 fi | |
19478 fi | |
19479 rm -f core conftest.err conftest.$ac_objext \ | |
19480 conftest$ac_exeext conftest.$ac_ext | |
19481 LDFLAGS=$save_LDFLAGS | |
19482 libdir=$save_libdir | |
19483 | |
19484 fi | |
19485 | |
19486 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
19487 | |
19488 # This implies no fast_install, which is unacceptable. | |
19489 # Some rework will be needed to allow for fast_install | |
19490 # before this can be enabled. | |
19491 hardcode_into_libs=yes | |
19492 | |
19493 # Append ld.so.conf contents to the search path | |
19494 if test -f /etc/ld.so.conf; then | |
19495 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' ' '` | |
19496 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
19497 fi | |
19498 | |
19499 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
19500 # powerpc, because MkLinux only supported shared libraries with the | |
19501 # GNU dynamic linker. Since this was broken with cross compilers, | |
19502 # most powerpc-linux boxes support dynamic linking these days and | |
19503 # people can always --disable-shared, the test was removed, and we | |
19504 # assume the GNU/Linux dynamic linker is in use. | |
19505 dynamic_linker='GNU/Linux ld.so' | |
19506 ;; | |
19507 | |
19508 netbsdelf*-gnu) | |
19509 version_type=linux | |
19510 need_lib_prefix=no | |
19511 need_version=no | |
19512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
19513 soname_spec='${libname}${release}${shared_ext}$major' | |
19514 shlibpath_var=LD_LIBRARY_PATH | |
19515 shlibpath_overrides_runpath=no | |
19516 hardcode_into_libs=yes | |
19517 dynamic_linker='NetBSD ld.elf_so' | |
19518 ;; | |
19519 | |
19520 netbsd*) | |
19521 version_type=sunos | |
19522 need_lib_prefix=no | |
19523 need_version=no | |
19524 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
19525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
19526 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
19527 dynamic_linker='NetBSD (a.out) ld.so' | |
19528 else | |
19529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
19530 soname_spec='${libname}${release}${shared_ext}$major' | |
19531 dynamic_linker='NetBSD ld.elf_so' | |
19532 fi | |
19533 shlibpath_var=LD_LIBRARY_PATH | |
19534 shlibpath_overrides_runpath=yes | |
19535 hardcode_into_libs=yes | |
19536 ;; | |
19537 | |
19538 newsos6) | |
19539 version_type=linux # correct to gnu/linux during the next big refactor | |
19540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19541 shlibpath_var=LD_LIBRARY_PATH | |
19542 shlibpath_overrides_runpath=yes | |
19543 ;; | |
19544 | |
19545 *nto* | *qnx*) | |
19546 version_type=qnx | |
19547 need_lib_prefix=no | |
19548 need_version=no | |
19549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19550 soname_spec='${libname}${release}${shared_ext}$major' | |
19551 shlibpath_var=LD_LIBRARY_PATH | |
19552 shlibpath_overrides_runpath=no | |
19553 hardcode_into_libs=yes | |
19554 dynamic_linker='ldqnx.so' | |
19555 ;; | |
19556 | |
19557 openbsd*) | |
19558 version_type=sunos | |
19559 sys_lib_dlsearch_path_spec="/usr/lib" | |
19560 need_lib_prefix=no | |
19561 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
19562 case $host_os in | |
19563 openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
19564 *) need_version=no ;; | |
19565 esac | |
19566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
19567 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
19568 shlibpath_var=LD_LIBRARY_PATH | |
19569 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
19570 case $host_os in | |
19571 openbsd2.[89] | openbsd2.[89].*) | |
19572 shlibpath_overrides_runpath=no | |
19573 ;; | |
19574 *) | |
19575 shlibpath_overrides_runpath=yes | |
19576 ;; | |
19577 esac | |
19578 else | |
19579 shlibpath_overrides_runpath=yes | |
19580 fi | |
19581 ;; | |
19582 | |
19583 os2*) | |
19584 libname_spec='$name' | |
19585 shrext_cmds=".dll" | |
19586 need_lib_prefix=no | |
19587 library_names_spec='$libname${shared_ext} $libname.a' | |
19588 dynamic_linker='OS/2 ld.exe' | |
19589 shlibpath_var=LIBPATH | |
19590 ;; | |
19591 | |
19592 osf3* | osf4* | osf5*) | |
19593 version_type=osf | |
19594 need_lib_prefix=no | |
19595 need_version=no | |
19596 soname_spec='${libname}${release}${shared_ext}$major' | |
19597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19598 shlibpath_var=LD_LIBRARY_PATH | |
19599 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
19600 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
19601 ;; | |
19602 | |
19603 rdos*) | |
19604 dynamic_linker=no | |
19605 ;; | |
19606 | |
19607 solaris*) | |
19608 version_type=linux # correct to gnu/linux during the next big refactor | |
19609 need_lib_prefix=no | |
19610 need_version=no | |
19611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19612 soname_spec='${libname}${release}${shared_ext}$major' | |
19613 shlibpath_var=LD_LIBRARY_PATH | |
19614 shlibpath_overrides_runpath=yes | |
19615 hardcode_into_libs=yes | |
19616 # ldd complains unless libraries are executable | |
19617 postinstall_cmds='chmod +x $lib' | |
19618 ;; | |
19619 | |
19620 sunos4*) | |
19621 version_type=sunos | |
19622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
19623 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
19624 shlibpath_var=LD_LIBRARY_PATH | |
19625 shlibpath_overrides_runpath=yes | |
19626 if test "$with_gnu_ld" = yes; then | |
19627 need_lib_prefix=no | |
19628 fi | |
19629 need_version=yes | |
19630 ;; | |
19631 | |
19632 sysv4 | sysv4.3*) | |
19633 version_type=linux # correct to gnu/linux during the next big refactor | |
19634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19635 soname_spec='${libname}${release}${shared_ext}$major' | |
19636 shlibpath_var=LD_LIBRARY_PATH | |
19637 case $host_vendor in | |
19638 sni) | |
19639 shlibpath_overrides_runpath=no | |
19640 need_lib_prefix=no | |
19641 runpath_var=LD_RUN_PATH | |
19642 ;; | |
19643 siemens) | |
19644 need_lib_prefix=no | |
19645 ;; | |
19646 motorola) | |
19647 need_lib_prefix=no | |
19648 need_version=no | |
19649 shlibpath_overrides_runpath=no | |
19650 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
19651 ;; | |
19652 esac | |
19653 ;; | |
19654 | |
19655 sysv4*MP*) | |
19656 if test -d /usr/nec ;then | |
19657 version_type=linux # correct to gnu/linux during the next big refactor | |
19658 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
19659 soname_spec='$libname${shared_ext}.$major' | |
19660 shlibpath_var=LD_LIBRARY_PATH | |
19661 fi | |
19662 ;; | |
19663 | |
19664 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
19665 version_type=freebsd-elf | |
19666 need_lib_prefix=no | |
19667 need_version=no | |
19668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
19669 soname_spec='${libname}${release}${shared_ext}$major' | |
19670 shlibpath_var=LD_LIBRARY_PATH | |
19671 shlibpath_overrides_runpath=yes | |
19672 hardcode_into_libs=yes | |
19673 if test "$with_gnu_ld" = yes; then | |
19674 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
19675 else | |
19676 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
19677 case $host_os in | |
19678 sco3.2v5*) | |
19679 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
19680 ;; | |
19681 esac | |
19682 fi | |
19683 sys_lib_dlsearch_path_spec='/usr/lib' | |
19684 ;; | |
19685 | |
19686 tpf*) | |
19687 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
19688 version_type=linux # correct to gnu/linux during the next big refactor | |
19689 need_lib_prefix=no | |
19690 need_version=no | |
19691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19692 shlibpath_var=LD_LIBRARY_PATH | |
19693 shlibpath_overrides_runpath=no | |
19694 hardcode_into_libs=yes | |
19695 ;; | |
19696 | |
19697 uts4*) | |
19698 version_type=linux # correct to gnu/linux during the next big refactor | |
19699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19700 soname_spec='${libname}${release}${shared_ext}$major' | |
19701 shlibpath_var=LD_LIBRARY_PATH | |
19702 ;; | |
19703 | |
19704 *) | |
19705 dynamic_linker=no | |
19706 ;; | |
19707 esac | |
19708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
19709 $as_echo "$dynamic_linker" >&6; } | |
19710 test "$dynamic_linker" = no && can_build_shared=no | |
19711 | |
19712 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
19713 if test "$GCC" = yes; then | |
19714 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
19715 fi | |
19716 | |
19717 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
19718 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
19719 fi | |
19720 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
19721 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
19722 fi | |
19723 | |
19724 | |
19725 | |
19726 | |
19727 | |
19728 | |
19729 | |
19730 | |
19731 | |
19732 | |
19733 | |
19734 | |
19735 | |
19736 | |
19737 | |
19738 | |
19739 | |
19740 | |
19741 | |
19742 | |
19743 | |
19744 | |
19745 | |
19746 | |
19747 | |
19748 | |
19749 | |
19750 | |
19751 | |
19752 | |
19753 | |
19754 | |
19755 | |
19756 | |
19757 | |
19758 | |
19759 | |
19760 | |
19761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
19762 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
19763 hardcode_action_F77= | |
19764 if test -n "$hardcode_libdir_flag_spec_F77" || | |
19765 test -n "$runpath_var_F77" || | |
19766 test "X$hardcode_automatic_F77" = "Xyes" ; then | |
19767 | |
19768 # We can hardcode non-existent directories. | |
19769 if test "$hardcode_direct_F77" != no && | |
19770 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
19771 # have to relink, otherwise we might link with an installed library | |
19772 # when we should be linking with a yet-to-be-installed one | |
19773 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" != no && | |
19774 test "$hardcode_minus_L_F77" != no; then | |
19775 # Linking always hardcodes the temporary library directory. | |
19776 hardcode_action_F77=relink | |
19777 else | |
19778 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
19779 hardcode_action_F77=immediate | |
19780 fi | |
19781 else | |
19782 # We cannot hardcode anything, or else we can only hardcode existing | |
19783 # directories. | |
19784 hardcode_action_F77=unsupported | |
19785 fi | |
19786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5 | |
19787 $as_echo "$hardcode_action_F77" >&6; } | |
19788 | |
19789 if test "$hardcode_action_F77" = relink || | |
19790 test "$inherit_rpath_F77" = yes; then | |
19791 # Fast installation is not supported | |
19792 enable_fast_install=no | |
19793 elif test "$shlibpath_overrides_runpath" = yes || | |
19794 test "$enable_shared" = no; then | |
19795 # Fast installation is not necessary | |
19796 enable_fast_install=needless | |
19797 fi | |
19798 | |
19799 | |
19800 | |
19801 | |
19802 | |
19803 | |
19804 | |
19805 fi # test -n "$compiler" | |
19806 | |
19807 GCC=$lt_save_GCC | |
19808 CC="$lt_save_CC" | |
19809 CFLAGS="$lt_save_CFLAGS" | |
19810 fi # test "$_lt_disable_F77" != yes | |
19811 | |
19812 ac_ext=c | |
19813 ac_cpp='$CPP $CPPFLAGS' | |
19814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19816 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19817 | |
19818 | |
19819 if test -z "$F77"; then | |
19820 enable_fortran=no | |
19821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Couldn't find f77 compiler; using default Fortran wrappers." >&5 | |
19822 $as_echo "$as_me: WARNING: *** Couldn't find f77 compiler; using default Fortran wrappers." >&2;} | |
19823 else | |
19824 ac_ext=f | |
19825 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
19826 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19827 ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
19828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $F77" >&5 | |
19829 $as_echo_n "checking how to get verbose linking output from $F77... " >&6; } | |
19830 if ${ac_cv_prog_f77_v+:} false; then : | |
19831 $as_echo_n "(cached) " >&6 | |
19832 else | |
19833 cat > conftest.$ac_ext <<_ACEOF | |
19834 program main | |
19835 | |
19836 end | |
19837 _ACEOF | |
19838 if ac_fn_f77_try_compile "$LINENO"; then : | |
19839 ac_cv_prog_f77_v= | |
19840 # Try some options frequently used verbose output | |
19841 for ac_verb in -v -verbose --verbose -V -\#\#\#; do | |
19842 cat > conftest.$ac_ext <<_ACEOF | |
19843 program main | |
19844 | |
19845 end | |
19846 _ACEOF | |
19847 | |
19848 # Compile and link our simple test program by passing a flag (argument | |
19849 # 1 to this macro) to the Fortran compiler in order to get | |
19850 # "verbose" output that we can then parse for the Fortran linker | |
19851 # flags. | |
19852 ac_save_FFLAGS=$FFLAGS | |
19853 FFLAGS="$FFLAGS $ac_verb" | |
19854 eval "set x $ac_link" | |
19855 shift | |
19856 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5 | |
19857 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, | |
19858 # LIBRARY_PATH; skip all such settings. | |
19859 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | | |
19860 sed '/^Driving:/d; /^Configured with:/d; | |
19861 '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` | |
19862 $as_echo "$ac_f77_v_output" >&5 | |
19863 FFLAGS=$ac_save_FFLAGS | |
19864 | |
19865 rm -rf conftest* | |
19866 | |
19867 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where | |
19868 # /foo, /bar, and /baz are search directories for the Fortran linker. | |
19869 # Here, we change these into -L/foo -L/bar -L/baz (and put it first): | |
19870 ac_f77_v_output="`echo $ac_f77_v_output | | |
19871 grep 'LPATH is:' | | |
19872 sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output" | |
19873 | |
19874 # FIXME: we keep getting bitten by quoted arguments; a more general fix | |
19875 # that detects unbalanced quotes in FLIBS should be implemented | |
19876 # and (ugh) tested at some point. | |
19877 case $ac_f77_v_output in | |
19878 # With xlf replace commas with spaces, | |
19879 # and remove "-link" and closing parenthesis. | |
19880 *xlfentry*) | |
19881 ac_f77_v_output=`echo $ac_f77_v_output | | |
19882 sed ' | |
19883 s/,/ /g | |
19884 s/ -link / /g | |
19885 s/) *$// | |
19886 ' | |
19887 ` ;; | |
19888 | |
19889 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted | |
19890 # $LIBS confuse us, and the libraries appear later in the output anyway). | |
19891 *mGLOB_options_string*) | |
19892 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; | |
19893 | |
19894 # Portland Group compiler has singly- or doubly-quoted -cmdline argument | |
19895 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. | |
19896 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". | |
19897 *-cmdline\ * | *-ignore\ * | *-def\ *) | |
19898 ac_f77_v_output=`echo $ac_f77_v_output | sed "\ | |
19899 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g | |
19900 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g | |
19901 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; | |
19902 | |
19903 # If we are using fort77 (the f2c wrapper) then filter output and delete quotes. | |
19904 *fort77*f2c*gcc*) | |
19905 ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n ' | |
19906 /:[ ]\+Running[ ]\{1,\}"gcc"/{ | |
19907 /"-c"/d | |
19908 /[.]c"*/d | |
19909 s/^.*"gcc"/"gcc"/ | |
19910 s/"//gp | |
19911 }'` ;; | |
19912 | |
19913 # If we are using Cray Fortran then delete quotes. | |
19914 *cft90*) | |
19915 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;; | |
19916 esac | |
19917 | |
19918 | |
19919 # look for -l* and *.a constructs in the output | |
19920 for ac_arg in $ac_f77_v_output; do | |
19921 case $ac_arg in | |
19922 [\\/]*.a | ?:[\\/]*.a | -[lLRu]*) | |
19923 ac_cv_prog_f77_v=$ac_verb | |
19924 break 2 ;; | |
19925 esac | |
19926 done | |
19927 done | |
19928 if test -z "$ac_cv_prog_f77_v"; then | |
19929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $F77" >&5 | |
19930 $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;} | |
19931 fi | |
19932 else | |
19933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5 | |
19934 $as_echo "$as_me: WARNING: compilation failed" >&2;} | |
19935 fi | |
19936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19937 | |
19938 fi | |
19939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_v" >&5 | |
19940 $as_echo "$ac_cv_prog_f77_v" >&6; } | |
19941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5 | |
19942 $as_echo_n "checking for Fortran 77 libraries of $F77... " >&6; } | |
19943 if ${ac_cv_f77_libs+:} false; then : | |
19944 $as_echo_n "(cached) " >&6 | |
19945 else | |
19946 if test "x$FLIBS" != "x"; then | |
19947 ac_cv_f77_libs="$FLIBS" # Let the user override the test. | |
19948 else | |
19949 | |
19950 cat > conftest.$ac_ext <<_ACEOF | |
19951 program main | |
19952 | |
19953 end | |
19954 _ACEOF | |
19955 | |
19956 # Compile and link our simple test program by passing a flag (argument | |
19957 # 1 to this macro) to the Fortran compiler in order to get | |
19958 # "verbose" output that we can then parse for the Fortran linker | |
19959 # flags. | |
19960 ac_save_FFLAGS=$FFLAGS | |
19961 FFLAGS="$FFLAGS $ac_cv_prog_f77_v" | |
19962 eval "set x $ac_link" | |
19963 shift | |
19964 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5 | |
19965 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, | |
19966 # LIBRARY_PATH; skip all such settings. | |
19967 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | | |
19968 sed '/^Driving:/d; /^Configured with:/d; | |
19969 '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` | |
19970 $as_echo "$ac_f77_v_output" >&5 | |
19971 FFLAGS=$ac_save_FFLAGS | |
19972 | |
19973 rm -rf conftest* | |
19974 | |
19975 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where | |
19976 # /foo, /bar, and /baz are search directories for the Fortran linker. | |
19977 # Here, we change these into -L/foo -L/bar -L/baz (and put it first): | |
19978 ac_f77_v_output="`echo $ac_f77_v_output | | |
19979 grep 'LPATH is:' | | |
19980 sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output" | |
19981 | |
19982 # FIXME: we keep getting bitten by quoted arguments; a more general fix | |
19983 # that detects unbalanced quotes in FLIBS should be implemented | |
19984 # and (ugh) tested at some point. | |
19985 case $ac_f77_v_output in | |
19986 # With xlf replace commas with spaces, | |
19987 # and remove "-link" and closing parenthesis. | |
19988 *xlfentry*) | |
19989 ac_f77_v_output=`echo $ac_f77_v_output | | |
19990 sed ' | |
19991 s/,/ /g | |
19992 s/ -link / /g | |
19993 s/) *$// | |
19994 ' | |
19995 ` ;; | |
19996 | |
19997 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted | |
19998 # $LIBS confuse us, and the libraries appear later in the output anyway). | |
19999 *mGLOB_options_string*) | |
20000 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; | |
20001 | |
20002 # Portland Group compiler has singly- or doubly-quoted -cmdline argument | |
20003 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. | |
20004 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". | |
20005 *-cmdline\ * | *-ignore\ * | *-def\ *) | |
20006 ac_f77_v_output=`echo $ac_f77_v_output | sed "\ | |
20007 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g | |
20008 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g | |
20009 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; | |
20010 | |
20011 # If we are using fort77 (the f2c wrapper) then filter output and delete quotes. | |
20012 *fort77*f2c*gcc*) | |
20013 ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n ' | |
20014 /:[ ]\+Running[ ]\{1,\}"gcc"/{ | |
20015 /"-c"/d | |
20016 /[.]c"*/d | |
20017 s/^.*"gcc"/"gcc"/ | |
20018 s/"//gp | |
20019 }'` ;; | |
20020 | |
20021 # If we are using Cray Fortran then delete quotes. | |
20022 *cft90*) | |
20023 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;; | |
20024 esac | |
20025 | |
20026 | |
20027 | |
20028 ac_cv_f77_libs= | |
20029 | |
20030 # Save positional arguments (if any) | |
20031 ac_save_positional="$@" | |
20032 | |
20033 set X $ac_f77_v_output | |
20034 while test $# != 1; do | |
20035 shift | |
20036 ac_arg=$1 | |
20037 case $ac_arg in | |
20038 [\\/]*.a | ?:[\\/]*.a) | |
20039 ac_exists=false | |
20040 for ac_i in $ac_cv_f77_libs; do | |
20041 if test x"$ac_arg" = x"$ac_i"; then | |
20042 ac_exists=true | |
20043 break | |
20044 fi | |
20045 done | |
20046 | |
20047 if test x"$ac_exists" = xtrue; then : | |
20048 | |
20049 else | |
20050 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" | |
20051 fi | |
20052 ;; | |
20053 -bI:*) | |
20054 ac_exists=false | |
20055 for ac_i in $ac_cv_f77_libs; do | |
20056 if test x"$ac_arg" = x"$ac_i"; then | |
20057 ac_exists=true | |
20058 break | |
20059 fi | |
20060 done | |
20061 | |
20062 if test x"$ac_exists" = xtrue; then : | |
20063 | |
20064 else | |
20065 if test "$ac_compiler_gnu" = yes; then | |
20066 for ac_link_opt in $ac_arg; do | |
20067 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" | |
20068 done | |
20069 else | |
20070 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" | |
20071 fi | |
20072 fi | |
20073 ;; | |
20074 # Ignore these flags. | |
20075 -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \ | |
20076 |-LANG:=* | -LIST:* | -LNO:* | -link) | |
20077 ;; | |
20078 -lkernel32) | |
20079 case $host_os in | |
20080 *cygwin*) ;; | |
20081 *) ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" | |
20082 ;; | |
20083 esac | |
20084 ;; | |
20085 -[LRuYz]) | |
20086 # These flags, when seen by themselves, take an argument. | |
20087 # We remove the space between option and argument and re-iterate | |
20088 # unless we find an empty arg or a new option (starting with -) | |
20089 case $2 in | |
20090 "" | -*);; | |
20091 *) | |
20092 ac_arg="$ac_arg$2" | |
20093 shift; shift | |
20094 set X $ac_arg "$@" | |
20095 ;; | |
20096 esac | |
20097 ;; | |
20098 -YP,*) | |
20099 for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do | |
20100 ac_exists=false | |
20101 for ac_i in $ac_cv_f77_libs; do | |
20102 if test x"$ac_j" = x"$ac_i"; then | |
20103 ac_exists=true | |
20104 break | |
20105 fi | |
20106 done | |
20107 | |
20108 if test x"$ac_exists" = xtrue; then : | |
20109 | |
20110 else | |
20111 ac_arg="$ac_arg $ac_j" | |
20112 ac_cv_f77_libs="$ac_cv_f77_libs $ac_j" | |
20113 fi | |
20114 done | |
20115 ;; | |
20116 -[lLR]*) | |
20117 ac_exists=false | |
20118 for ac_i in $ac_cv_f77_libs; do | |
20119 if test x"$ac_arg" = x"$ac_i"; then | |
20120 ac_exists=true | |
20121 break | |
20122 fi | |
20123 done | |
20124 | |
20125 if test x"$ac_exists" = xtrue; then : | |
20126 | |
20127 else | |
20128 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" | |
20129 fi | |
20130 ;; | |
20131 -zallextract*| -zdefaultextract) | |
20132 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" | |
20133 ;; | |
20134 # Ignore everything else. | |
20135 esac | |
20136 done | |
20137 # restore positional arguments | |
20138 set X $ac_save_positional; shift | |
20139 | |
20140 # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, | |
20141 # then we insist that the "run path" must be an absolute path (i.e. it | |
20142 # must begin with a "/"). | |
20143 case `(uname -sr) 2>/dev/null` in | |
20144 "SunOS 5"*) | |
20145 ac_ld_run_path=`$as_echo "$ac_f77_v_output" | | |
20146 sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` | |
20147 test "x$ac_ld_run_path" != x && | |
20148 if test "$ac_compiler_gnu" = yes; then | |
20149 for ac_link_opt in $ac_ld_run_path; do | |
20150 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" | |
20151 done | |
20152 else | |
20153 ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path" | |
20154 fi | |
20155 ;; | |
20156 esac | |
20157 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" | |
20158 | |
20159 fi | |
20160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_libs" >&5 | |
20161 $as_echo "$ac_cv_f77_libs" >&6; } | |
20162 FLIBS="$ac_cv_f77_libs" | |
20163 | |
20164 | |
20165 ac_ext=c | |
20166 ac_cpp='$CPP $CPPFLAGS' | |
20167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20169 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20170 | |
20171 ac_ext=f | |
20172 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
20173 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20174 ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
20175 | |
20176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran 77 libraries" >&5 | |
20177 $as_echo_n "checking for dummy main to link with Fortran 77 libraries... " >&6; } | |
20178 if ${ac_cv_f77_dummy_main+:} false; then : | |
20179 $as_echo_n "(cached) " >&6 | |
20180 else | |
20181 ac_f77_dm_save_LIBS=$LIBS | |
20182 LIBS="$LIBS $FLIBS" | |
20183 ac_fortran_dm_var=F77_DUMMY_MAIN | |
20184 ac_ext=c | |
20185 ac_cpp='$CPP $CPPFLAGS' | |
20186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20188 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20189 | |
20190 # First, try linking without a dummy main: | |
20191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20192 /* end confdefs.h. */ | |
20193 | |
20194 #ifdef F77_DUMMY_MAIN | |
20195 | |
20196 # ifdef __cplusplus | |
20197 extern "C" | |
20198 # endif | |
20199 int F77_DUMMY_MAIN() { return 1; } | |
20200 | |
20201 #endif | |
20202 int | |
20203 main () | |
20204 { | |
20205 | |
20206 ; | |
20207 return 0; | |
20208 } | |
20209 _ACEOF | |
20210 if ac_fn_c_try_link "$LINENO"; then : | |
20211 ac_cv_fortran_dummy_main=none | |
20212 else | |
20213 ac_cv_fortran_dummy_main=unknown | |
20214 fi | |
20215 rm -f core conftest.err conftest.$ac_objext \ | |
20216 conftest$ac_exeext conftest.$ac_ext | |
20217 | |
20218 if test $ac_cv_fortran_dummy_main = unknown; then | |
20219 for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do | |
20220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20221 /* end confdefs.h. */ | |
20222 #define $ac_fortran_dm_var $ac_func | |
20223 #ifdef F77_DUMMY_MAIN | |
20224 | |
20225 # ifdef __cplusplus | |
20226 extern "C" | |
20227 # endif | |
20228 int F77_DUMMY_MAIN() { return 1; } | |
20229 | |
20230 #endif | |
20231 int | |
20232 main () | |
20233 { | |
20234 | |
20235 ; | |
20236 return 0; | |
20237 } | |
20238 _ACEOF | |
20239 if ac_fn_c_try_link "$LINENO"; then : | |
20240 ac_cv_fortran_dummy_main=$ac_func; break | |
20241 fi | |
20242 rm -f core conftest.err conftest.$ac_objext \ | |
20243 conftest$ac_exeext conftest.$ac_ext | |
20244 done | |
20245 fi | |
20246 ac_ext=f | |
20247 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
20248 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20249 ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
20250 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main | |
20251 rm -rf conftest* | |
20252 LIBS=$ac_f77_dm_save_LIBS | |
20253 | |
20254 fi | |
20255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_dummy_main" >&5 | |
20256 $as_echo "$ac_cv_f77_dummy_main" >&6; } | |
20257 F77_DUMMY_MAIN=$ac_cv_f77_dummy_main | |
20258 if test "$F77_DUMMY_MAIN" != unknown; then : | |
20259 if test $F77_DUMMY_MAIN != none; then | |
20260 | |
20261 cat >>confdefs.h <<_ACEOF | |
20262 #define F77_DUMMY_MAIN $F77_DUMMY_MAIN | |
20263 _ACEOF | |
20264 | |
20265 if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then | |
20266 | |
20267 $as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h | |
20268 | |
20269 fi | |
20270 fi | |
20271 else | |
20272 enable_fortran=no | |
20273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Couldn't figure out how to link C and Fortran; using default Fortran wrappers." >&5 | |
20274 $as_echo "$as_me: WARNING: *** Couldn't figure out how to link C and Fortran; using default Fortran wrappers." >&2;} | |
20275 fi | |
20276 | |
20277 ac_ext=c | |
20278 ac_cpp='$CPP $CPPFLAGS' | |
20279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20281 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20282 | |
20283 fi | |
20284 else | |
20285 | |
20286 $as_echo "#define DISABLE_FORTRAN 1" >>confdefs.h | |
20287 | |
20288 fi | |
20289 | |
20290 if test "x$enable_fortran" = xyes; then | |
20291 ac_ext=f | |
20292 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
20293 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20294 ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
20295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 name-mangling scheme" >&5 | |
20296 $as_echo_n "checking for Fortran 77 name-mangling scheme... " >&6; } | |
20297 if ${ac_cv_f77_mangling+:} false; then : | |
20298 $as_echo_n "(cached) " >&6 | |
20299 else | |
20300 cat > conftest.$ac_ext <<_ACEOF | |
20301 subroutine foobar() | |
20302 return | |
20303 end | |
20304 subroutine foo_bar() | |
20305 return | |
20306 end | |
20307 _ACEOF | |
20308 if ac_fn_f77_try_compile "$LINENO"; then : | |
20309 mv conftest.$ac_objext cfortran_test.$ac_objext | |
20310 | |
20311 ac_save_LIBS=$LIBS | |
20312 LIBS="cfortran_test.$ac_objext $LIBS $FLIBS" | |
20313 | |
20314 ac_ext=c | |
20315 ac_cpp='$CPP $CPPFLAGS' | |
20316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20318 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20319 ac_success=no | |
20320 for ac_foobar in foobar FOOBAR; do | |
20321 for ac_underscore in "" "_"; do | |
20322 ac_func="$ac_foobar$ac_underscore" | |
20323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20324 /* end confdefs.h. */ | |
20325 | |
20326 /* Override any GCC internal prototype to avoid an error. | |
20327 Use char because int might match the return type of a GCC | |
20328 builtin and then its argument prototype would still apply. */ | |
20329 #ifdef __cplusplus | |
20330 extern "C" | |
20331 #endif | |
20332 char $ac_func (); | |
20333 #ifdef F77_DUMMY_MAIN | |
20334 | |
20335 # ifdef __cplusplus | |
20336 extern "C" | |
20337 # endif | |
20338 int F77_DUMMY_MAIN() { return 1; } | |
20339 | |
20340 #endif | |
20341 int | |
20342 main () | |
20343 { | |
20344 return $ac_func (); | |
20345 ; | |
20346 return 0; | |
20347 } | |
20348 _ACEOF | |
20349 if ac_fn_c_try_link "$LINENO"; then : | |
20350 ac_success=yes; break 2 | |
20351 fi | |
20352 rm -f core conftest.err conftest.$ac_objext \ | |
20353 conftest$ac_exeext conftest.$ac_ext | |
20354 done | |
20355 done | |
20356 ac_ext=f | |
20357 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
20358 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20359 ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
20360 | |
20361 if test "$ac_success" = "yes"; then | |
20362 case $ac_foobar in | |
20363 foobar) | |
20364 ac_case=lower | |
20365 ac_foo_bar=foo_bar | |
20366 ;; | |
20367 FOOBAR) | |
20368 ac_case=upper | |
20369 ac_foo_bar=FOO_BAR | |
20370 ;; | |
20371 esac | |
20372 | |
20373 ac_ext=c | |
20374 ac_cpp='$CPP $CPPFLAGS' | |
20375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20377 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20378 ac_success_extra=no | |
20379 for ac_extra in "" "_"; do | |
20380 ac_func="$ac_foo_bar$ac_underscore$ac_extra" | |
20381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20382 /* end confdefs.h. */ | |
20383 | |
20384 /* Override any GCC internal prototype to avoid an error. | |
20385 Use char because int might match the return type of a GCC | |
20386 builtin and then its argument prototype would still apply. */ | |
20387 #ifdef __cplusplus | |
20388 extern "C" | |
20389 #endif | |
20390 char $ac_func (); | |
20391 #ifdef F77_DUMMY_MAIN | |
20392 | |
20393 # ifdef __cplusplus | |
20394 extern "C" | |
20395 # endif | |
20396 int F77_DUMMY_MAIN() { return 1; } | |
20397 | |
20398 #endif | |
20399 int | |
20400 main () | |
20401 { | |
20402 return $ac_func (); | |
20403 ; | |
20404 return 0; | |
20405 } | |
20406 _ACEOF | |
20407 if ac_fn_c_try_link "$LINENO"; then : | |
20408 ac_success_extra=yes; break | |
20409 fi | |
20410 rm -f core conftest.err conftest.$ac_objext \ | |
20411 conftest$ac_exeext conftest.$ac_ext | |
20412 done | |
20413 ac_ext=f | |
20414 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
20415 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20416 ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
20417 | |
20418 if test "$ac_success_extra" = "yes"; then | |
20419 ac_cv_f77_mangling="$ac_case case" | |
20420 if test -z "$ac_underscore"; then | |
20421 ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore" | |
20422 else | |
20423 ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore" | |
20424 fi | |
20425 if test -z "$ac_extra"; then | |
20426 ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore" | |
20427 else | |
20428 ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore" | |
20429 fi | |
20430 else | |
20431 ac_cv_f77_mangling="unknown" | |
20432 fi | |
20433 else | |
20434 ac_cv_f77_mangling="unknown" | |
20435 fi | |
20436 | |
20437 LIBS=$ac_save_LIBS | |
20438 rm -rf conftest* | |
20439 rm -f cfortran_test* | |
20440 else | |
20441 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
20442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
20443 as_fn_error $? "cannot compile a simple Fortran program | |
20444 See \`config.log' for more details" "$LINENO" 5; } | |
20445 fi | |
20446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20447 | |
20448 fi | |
20449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_mangling" >&5 | |
20450 $as_echo "$ac_cv_f77_mangling" >&6; } | |
20451 | |
20452 ac_ext=c | |
20453 ac_cpp='$CPP $CPPFLAGS' | |
20454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20456 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20457 | |
20458 ac_ext=f | |
20459 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
20460 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20461 ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
20462 case $ac_cv_f77_mangling in | |
20463 "lower case, no underscore, no extra underscore") | |
20464 $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h | |
20465 | |
20466 $as_echo "#define F77_FUNC_(name,NAME) name" >>confdefs.h | |
20467 ;; | |
20468 "lower case, no underscore, extra underscore") | |
20469 $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h | |
20470 | |
20471 $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h | |
20472 ;; | |
20473 "lower case, underscore, no extra underscore") | |
20474 $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h | |
20475 | |
20476 $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h | |
20477 ;; | |
20478 "lower case, underscore, extra underscore") | |
20479 $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h | |
20480 | |
20481 $as_echo "#define F77_FUNC_(name,NAME) name ## __" >>confdefs.h | |
20482 ;; | |
20483 "upper case, no underscore, no extra underscore") | |
20484 $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h | |
20485 | |
20486 $as_echo "#define F77_FUNC_(name,NAME) NAME" >>confdefs.h | |
20487 ;; | |
20488 "upper case, no underscore, extra underscore") | |
20489 $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h | |
20490 | |
20491 $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h | |
20492 ;; | |
20493 "upper case, underscore, no extra underscore") | |
20494 $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h | |
20495 | |
20496 $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h | |
20497 ;; | |
20498 "upper case, underscore, extra underscore") | |
20499 $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h | |
20500 | |
20501 $as_echo "#define F77_FUNC_(name,NAME) NAME ## __" >>confdefs.h | |
20502 ;; | |
20503 *) | |
20504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5 | |
20505 $as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;} | |
20506 ;; | |
20507 esac | |
20508 | |
20509 ac_ext=c | |
20510 ac_cpp='$CPP $CPPFLAGS' | |
20511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20513 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20514 | |
20515 ac_ext=f | |
20516 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
20517 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20518 ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
20519 case $ac_cv_f77_mangling in | |
20520 upper*) ac_val="F77FOO" ;; | |
20521 lower*) ac_val="f77foo" ;; | |
20522 *) ac_val="unknown" ;; | |
20523 esac | |
20524 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac | |
20525 | |
20526 f77foo="$ac_val" | |
20527 | |
20528 ac_ext=c | |
20529 ac_cpp='$CPP $CPPFLAGS' | |
20530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20532 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20533 | |
20534 ac_ext=f | |
20535 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
20536 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20537 ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
20538 case $ac_cv_f77_mangling in | |
20539 upper*) ac_val="F77_FOO" ;; | |
20540 lower*) ac_val="f77_foo" ;; | |
20541 *) ac_val="unknown" ;; | |
20542 esac | |
20543 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac | |
20544 case $ac_cv_f77_mangling in *," extra underscore"*) ac_val="$ac_val"_ ;; esac | |
20545 | |
20546 f77_foo="$ac_val" | |
20547 | |
20548 ac_ext=c | |
20549 ac_cpp='$CPP $CPPFLAGS' | |
20550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20552 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20553 | |
20554 f77_foo2=`echo $f77foo | sed 's/77/77_/'` | |
20555 if test "$f77_foo" = "$f77_foo2"; then | |
20556 | |
20557 $as_echo "#define F77_FUNC_EQUIV 1" >>confdefs.h | |
20558 | |
20559 | |
20560 # Include g77 wrappers by default for GNU systems or gfortran | |
20561 with_g77_wrappers=$ac_cv_f77_compiler_gnu | |
20562 case $host_os in *gnu*) with_g77_wrappers=yes ;; esac | |
20563 fi | |
20564 else | |
20565 with_g77_wrappers=no | |
20566 fi | |
20567 | |
20568 | |
20569 # Check whether --with-g77-wrappers was given. | |
20570 if test "${with_g77_wrappers+set}" = set; then : | |
20571 withval=$with_g77_wrappers; with_g77_wrappers=$withval | |
20572 fi | |
20573 | |
20574 if test "x$with_g77_wrappers" = "xyes"; then | |
20575 | |
20576 $as_echo "#define WITH_G77_WRAPPERS 1" >>confdefs.h | |
20577 | |
20578 fi | |
20579 | |
20580 have_smp="no" | |
20581 # Check whether --enable-openmp was given. | |
20582 if test "${enable_openmp+set}" = set; then : | |
20583 enableval=$enable_openmp; enable_openmp=$enableval | |
20584 else | |
20585 enable_openmp=no | |
20586 fi | |
20587 | |
20588 | |
20589 if test "$enable_openmp" = "yes"; then | |
20590 | |
20591 $as_echo "#define HAVE_OPENMP 1" >>confdefs.h | |
20592 | |
20593 | |
20594 | |
20595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMP flag of C compiler" >&5 | |
20596 $as_echo_n "checking for OpenMP flag of C compiler... " >&6; } | |
20597 if ${ax_cv_c_openmp+:} false; then : | |
20598 $as_echo_n "(cached) " >&6 | |
20599 else | |
20600 saveCFLAGS=$CFLAGS | |
20601 ax_cv_c_openmp=unknown | |
20602 # Flags to try: -fopenmp (gcc), -openmp (icc), -mp (SGI & PGI), | |
20603 # -xopenmp (Sun), -omp (Tru64), -qsmp=omp (AIX), none | |
20604 ax_openmp_flags="-fopenmp -openmp -mp -xopenmp -omp -qsmp=omp none" | |
20605 if test "x$OPENMP_CFLAGS" != x; then | |
20606 ax_openmp_flags="$OPENMP_CFLAGS $ax_openmp_flags" | |
20607 fi | |
20608 for ax_openmp_flag in $ax_openmp_flags; do | |
20609 case $ax_openmp_flag in | |
20610 none) CFLAGS=$saveC ;; | |
20611 *) CFLAGS="$saveCFLAGS $ax_openmp_flag" ;; | |
20612 esac | |
20613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20614 /* end confdefs.h. */ | |
20615 | |
20616 /* Override any GCC internal prototype to avoid an error. | |
20617 Use char because int might match the return type of a GCC | |
20618 builtin and then its argument prototype would still apply. */ | |
20619 #ifdef __cplusplus | |
20620 extern "C" | |
20621 #endif | |
20622 char omp_set_num_threads (); | |
20623 #ifdef F77_DUMMY_MAIN | |
20624 | |
20625 # ifdef __cplusplus | |
20626 extern "C" | |
20627 # endif | |
20628 int F77_DUMMY_MAIN() { return 1; } | |
20629 | |
20630 #endif | |
20631 int | |
20632 main () | |
20633 { | |
20634 return omp_set_num_threads (); | |
20635 ; | |
20636 return 0; | |
20637 } | |
20638 _ACEOF | |
20639 if ac_fn_c_try_link "$LINENO"; then : | |
20640 ax_cv_c_openmp=$ax_openmp_flag; break | |
20641 fi | |
20642 rm -f core conftest.err conftest.$ac_objext \ | |
20643 conftest$ac_exeext conftest.$ac_ext | |
20644 done | |
20645 CFLAGS=$saveCFLAGS | |
20646 | |
20647 fi | |
20648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_openmp" >&5 | |
20649 $as_echo "$ax_cv_c_openmp" >&6; } | |
20650 if test "x$ax_cv_c_openmp" = "xunknown"; then | |
20651 as_fn_error $? "don't know how to enable OpenMP" "$LINENO" 5 | |
20652 else | |
20653 if test "x$ax_cv_c_openmp" != "xnone"; then | |
20654 OPENMP_CFLAGS=$ax_cv_c_openmp | |
20655 fi | |
20656 | |
20657 $as_echo "#define HAVE_OPENMP 1" >>confdefs.h | |
20658 | |
20659 fi | |
20660 | |
20661 | |
20662 fi | |
20663 | |
20664 # Check whether --enable-threads was given. | |
20665 if test "${enable_threads+set}" = set; then : | |
20666 enableval=$enable_threads; enable_threads=$enableval | |
20667 else | |
20668 enable_threads=no | |
20669 fi | |
20670 | |
20671 | |
20672 if test "$enable_threads" = "yes"; then | |
20673 | |
20674 $as_echo "#define HAVE_THREADS 1" >>confdefs.h | |
20675 | |
20676 fi | |
20677 | |
20678 | |
20679 # Check whether --with-combined-threads was given. | |
20680 if test "${with_combined_threads+set}" = set; then : | |
20681 withval=$with_combined_threads; with_combined_threads=$withval | |
20682 else | |
20683 with_combined_threads=no | |
20684 fi | |
20685 | |
20686 | |
20687 if test "$with_combined_threads" = yes; then | |
20688 if test "$enable_openmp" = "yes"; then | |
20689 as_fn_error $? "--with-combined-threads incompatible with --enable-openmp" "$LINENO" 5 | |
20690 fi | |
20691 if test "$enable_threads" != "yes"; then | |
20692 as_fn_error $? "--with-combined-threads requires --enable-threads" "$LINENO" 5 | |
20693 fi | |
20694 fi | |
20695 | |
20696 THREADLIBS="" | |
20697 if test "$enable_threads" = "yes"; then | |
20698 # Win32 threads are the default on Windows: | |
20699 if test -z "$THREADLIBS"; then | |
20700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Win32 threads" >&5 | |
20701 $as_echo_n "checking for Win32 threads... " >&6; } | |
20702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20703 /* end confdefs.h. */ | |
20704 #include <windows.h> | |
20705 #ifdef F77_DUMMY_MAIN | |
20706 | |
20707 # ifdef __cplusplus | |
20708 extern "C" | |
20709 # endif | |
20710 int F77_DUMMY_MAIN() { return 1; } | |
20711 | |
20712 #endif | |
20713 int | |
20714 main () | |
20715 { | |
20716 _beginthreadex(0,0,0,0,0,0); | |
20717 ; | |
20718 return 0; | |
20719 } | |
20720 _ACEOF | |
20721 if ac_fn_c_try_link "$LINENO"; then : | |
20722 THREADLIBS=" "; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
20723 $as_echo "yes" >&6; } | |
20724 else | |
20725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20726 $as_echo "no" >&6; } | |
20727 fi | |
20728 rm -f core conftest.err conftest.$ac_objext \ | |
20729 conftest$ac_exeext conftest.$ac_ext | |
20730 fi | |
20731 | |
20732 # POSIX threads, the default choice everywhere else: | |
20733 if test -z "$THREADLIBS"; then | |
20734 | |
20735 | |
20736 | |
20737 ac_ext=c | |
20738 ac_cpp='$CPP $CPPFLAGS' | |
20739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20741 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20742 | |
20743 acx_pthread_ok=no | |
20744 | |
20745 # We used to check for pthread.h first, but this fails if pthread.h | |
20746 # requires special compiler flags (e.g. on True64 or Sequent). | |
20747 # It gets checked for in the link test anyway. | |
20748 | |
20749 # First of all, check if the user has set any of the PTHREAD_LIBS, | |
20750 # etcetera environment variables, and if threads linking works using | |
20751 # them: | |
20752 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then | |
20753 save_CFLAGS="$CFLAGS" | |
20754 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | |
20755 save_LIBS="$LIBS" | |
20756 LIBS="$PTHREAD_LIBS $LIBS" | |
20757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 | |
20758 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } | |
20759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20760 /* end confdefs.h. */ | |
20761 | |
20762 /* Override any GCC internal prototype to avoid an error. | |
20763 Use char because int might match the return type of a GCC | |
20764 builtin and then its argument prototype would still apply. */ | |
20765 #ifdef __cplusplus | |
20766 extern "C" | |
20767 #endif | |
20768 char pthread_join (); | |
20769 #ifdef F77_DUMMY_MAIN | |
20770 | |
20771 # ifdef __cplusplus | |
20772 extern "C" | |
20773 # endif | |
20774 int F77_DUMMY_MAIN() { return 1; } | |
20775 | |
20776 #endif | |
20777 int | |
20778 main () | |
20779 { | |
20780 return pthread_join (); | |
20781 ; | |
20782 return 0; | |
20783 } | |
20784 _ACEOF | |
20785 if ac_fn_c_try_link "$LINENO"; then : | |
20786 acx_pthread_ok=yes | |
20787 fi | |
20788 rm -f core conftest.err conftest.$ac_objext \ | |
20789 conftest$ac_exeext conftest.$ac_ext | |
20790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 | |
20791 $as_echo "$acx_pthread_ok" >&6; } | |
20792 if test x"$acx_pthread_ok" = xno; then | |
20793 PTHREAD_LIBS="" | |
20794 PTHREAD_CFLAGS="" | |
20795 fi | |
20796 LIBS="$save_LIBS" | |
20797 CFLAGS="$save_CFLAGS" | |
20798 fi | |
20799 | |
20800 # We must check for the threads library under a number of different | |
20801 # names; the ordering is very important because some systems | |
20802 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the | |
20803 # libraries is broken (non-POSIX). | |
20804 | |
20805 # Create a list of thread flags to try. Items starting with a "-" are | |
20806 # C compiler flags, and other items are library names, except for "none" | |
20807 # which indicates that we try without any flags at all, and "pthread-config" | |
20808 # which is a program returning the flags for the Pth emulation library. | |
20809 | |
20810 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config" | |
20811 | |
20812 # The ordering *is* (sometimes) important. Some notes on the | |
20813 # individual items follow: | |
20814 | |
20815 # pthreads: AIX (must check this before -lpthread) | |
20816 # none: in case threads are in libc; should be tried before -Kthread and | |
20817 # other compiler flags to prevent continual compiler warnings | |
20818 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) | |
20819 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) | |
20820 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) | |
20821 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) | |
20822 # -pthreads: Solaris/gcc | |
20823 # -mthreads: Mingw32/gcc, Lynx/gcc | |
20824 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it | |
20825 # doesn't hurt to check since this sometimes defines pthreads too; | |
20826 # also defines -D_REENTRANT) | |
20827 # ... -mt is also the pthreads flag for HP/aCC | |
20828 # (where it should come before -mthreads to avoid spurious warnings) | |
20829 # pthread: Linux, etcetera | |
20830 # --thread-safe: KAI C++ | |
20831 # pthread-config: use pthread-config program (for GNU Pth library) | |
20832 | |
20833 case "${host_cpu}-${host_os}" in | |
20834 *solaris*) | |
20835 | |
20836 # On Solaris (at least, for some versions), libc contains stubbed | |
20837 # (non-functional) versions of the pthreads routines, so link-based | |
20838 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ | |
20839 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather | |
20840 # a function called by this macro, so we could check for that, but | |
20841 # who knows whether they'll stub that too in a future libc.) So, | |
20842 # we'll just look for -pthreads and -lpthread first: | |
20843 | |
20844 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" | |
20845 ;; | |
20846 esac | |
20847 | |
20848 if test x"$acx_pthread_ok" = xno; then | |
20849 for flag in $acx_pthread_flags; do | |
20850 | |
20851 case $flag in | |
20852 none) | |
20853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 | |
20854 $as_echo_n "checking whether pthreads work without any flags... " >&6; } | |
20855 ;; | |
20856 | |
20857 -*) | |
20858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 | |
20859 $as_echo_n "checking whether pthreads work with $flag... " >&6; } | |
20860 PTHREAD_CFLAGS="$flag" | |
20861 ;; | |
20862 | |
20863 pthread-config) | |
20864 # Extract the first word of "pthread-config", so it can be a program name with args. | |
20865 set dummy pthread-config; ac_word=$2 | |
20866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
20867 $as_echo_n "checking for $ac_word... " >&6; } | |
20868 if ${ac_cv_prog_acx_pthread_config+:} false; then : | |
20869 $as_echo_n "(cached) " >&6 | |
20870 else | |
20871 if test -n "$acx_pthread_config"; then | |
20872 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. | |
20873 else | |
20874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20875 for as_dir in $PATH | |
20876 do | |
20877 IFS=$as_save_IFS | |
20878 test -z "$as_dir" && as_dir=. | |
20879 for ac_exec_ext in '' $ac_executable_extensions; do | |
20880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20881 ac_cv_prog_acx_pthread_config="yes" | |
20882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20883 break 2 | |
20884 fi | |
20885 done | |
20886 done | |
20887 IFS=$as_save_IFS | |
20888 | |
20889 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" | |
20890 fi | |
20891 fi | |
20892 acx_pthread_config=$ac_cv_prog_acx_pthread_config | |
20893 if test -n "$acx_pthread_config"; then | |
20894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5 | |
20895 $as_echo "$acx_pthread_config" >&6; } | |
20896 else | |
20897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
20898 $as_echo "no" >&6; } | |
20899 fi | |
20900 | |
20901 | |
20902 if test x"$acx_pthread_config" = xno; then continue; fi | |
20903 PTHREAD_CFLAGS="`pthread-config --cflags`" | |
20904 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" | |
20905 ;; | |
20906 | |
20907 *) | |
20908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 | |
20909 $as_echo_n "checking for the pthreads library -l$flag... " >&6; } | |
20910 PTHREAD_LIBS="-l$flag" | |
20911 ;; | |
20912 esac | |
20913 | |
20914 save_LIBS="$LIBS" | |
20915 save_CFLAGS="$CFLAGS" | |
20916 LIBS="$PTHREAD_LIBS $LIBS" | |
20917 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | |
20918 | |
20919 # Check for various functions. We must include pthread.h, | |
20920 # since some functions may be macros. (On the Sequent, we | |
20921 # need a special flag -Kthread to make this header compile.) | |
20922 # We check for pthread_join because it is in -lpthread on IRIX | |
20923 # while pthread_create is in libc. We check for pthread_attr_init | |
20924 # due to DEC craziness with -lpthreads. We check for | |
20925 # pthread_cleanup_push because it is one of the few pthread | |
20926 # functions on Solaris that doesn't have a non-functional libc stub. | |
20927 # We try pthread_create on general principles. | |
20928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20929 /* end confdefs.h. */ | |
20930 #include <pthread.h> | |
20931 #ifdef F77_DUMMY_MAIN | |
20932 | |
20933 # ifdef __cplusplus | |
20934 extern "C" | |
20935 # endif | |
20936 int F77_DUMMY_MAIN() { return 1; } | |
20937 | |
20938 #endif | |
20939 int | |
20940 main () | |
20941 { | |
20942 pthread_t th; pthread_join(th, (void**) 0); | |
20943 pthread_attr_init((pthread_attr_t*) 0); | |
20944 pthread_cleanup_push((void(*)(void *)) 0, (void*) 0); | |
20945 pthread_create((pthread_t*) 0, (pthread_attr_t*) 0, | |
20946 (void*(*)(void *)) 0, (void*) 0); | |
20947 pthread_cleanup_pop(0); | |
20948 ; | |
20949 return 0; | |
20950 } | |
20951 _ACEOF | |
20952 if ac_fn_c_try_link "$LINENO"; then : | |
20953 acx_pthread_ok=yes | |
20954 fi | |
20955 rm -f core conftest.err conftest.$ac_objext \ | |
20956 conftest$ac_exeext conftest.$ac_ext | |
20957 | |
20958 LIBS="$save_LIBS" | |
20959 CFLAGS="$save_CFLAGS" | |
20960 | |
20961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 | |
20962 $as_echo "$acx_pthread_ok" >&6; } | |
20963 if test "x$acx_pthread_ok" = xyes; then | |
20964 break; | |
20965 fi | |
20966 | |
20967 PTHREAD_LIBS="" | |
20968 PTHREAD_CFLAGS="" | |
20969 done | |
20970 fi | |
20971 | |
20972 # Various other checks: | |
20973 if test "x$acx_pthread_ok" = xyes; then | |
20974 save_LIBS="$LIBS" | |
20975 LIBS="$PTHREAD_LIBS $LIBS" | |
20976 save_CFLAGS="$CFLAGS" | |
20977 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | |
20978 | |
20979 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. | |
20980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 | |
20981 $as_echo_n "checking for joinable pthread attribute... " >&6; } | |
20982 attr_name=unknown | |
20983 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do | |
20984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
20985 /* end confdefs.h. */ | |
20986 #include <pthread.h> | |
20987 #ifdef F77_DUMMY_MAIN | |
20988 | |
20989 # ifdef __cplusplus | |
20990 extern "C" | |
20991 # endif | |
20992 int F77_DUMMY_MAIN() { return 1; } | |
20993 | |
20994 #endif | |
20995 int | |
20996 main () | |
20997 { | |
20998 int attr=$attr; return attr; | |
20999 ; | |
21000 return 0; | |
21001 } | |
21002 _ACEOF | |
21003 if ac_fn_c_try_link "$LINENO"; then : | |
21004 attr_name=$attr; break | |
21005 fi | |
21006 rm -f core conftest.err conftest.$ac_objext \ | |
21007 conftest$ac_exeext conftest.$ac_ext | |
21008 done | |
21009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 | |
21010 $as_echo "$attr_name" >&6; } | |
21011 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then | |
21012 | |
21013 cat >>confdefs.h <<_ACEOF | |
21014 #define PTHREAD_CREATE_JOINABLE $attr_name | |
21015 _ACEOF | |
21016 | |
21017 fi | |
21018 | |
21019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 | |
21020 $as_echo_n "checking if more special flags are required for pthreads... " >&6; } | |
21021 flag=no | |
21022 case "${host_cpu}-${host_os}" in | |
21023 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; | |
21024 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; | |
21025 esac | |
21026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 | |
21027 $as_echo "${flag}" >&6; } | |
21028 if test "x$flag" != xno; then | |
21029 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" | |
21030 fi | |
21031 | |
21032 LIBS="$save_LIBS" | |
21033 CFLAGS="$save_CFLAGS" | |
21034 | |
21035 # More AIX lossage: must compile with xlc_r or cc_r | |
21036 if test x"$GCC" != xyes; then | |
21037 for ac_prog in xlc_r cc_r | |
21038 do | |
21039 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
21040 set dummy $ac_prog; ac_word=$2 | |
21041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
21042 $as_echo_n "checking for $ac_word... " >&6; } | |
21043 if ${ac_cv_prog_PTHREAD_CC+:} false; then : | |
21044 $as_echo_n "(cached) " >&6 | |
21045 else | |
21046 if test -n "$PTHREAD_CC"; then | |
21047 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. | |
21048 else | |
21049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21050 for as_dir in $PATH | |
21051 do | |
21052 IFS=$as_save_IFS | |
21053 test -z "$as_dir" && as_dir=. | |
21054 for ac_exec_ext in '' $ac_executable_extensions; do | |
21055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
21056 ac_cv_prog_PTHREAD_CC="$ac_prog" | |
21057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
21058 break 2 | |
21059 fi | |
21060 done | |
21061 done | |
21062 IFS=$as_save_IFS | |
21063 | |
21064 fi | |
21065 fi | |
21066 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC | |
21067 if test -n "$PTHREAD_CC"; then | |
21068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 | |
21069 $as_echo "$PTHREAD_CC" >&6; } | |
21070 else | |
21071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21072 $as_echo "no" >&6; } | |
21073 fi | |
21074 | |
21075 | |
21076 test -n "$PTHREAD_CC" && break | |
21077 done | |
21078 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" | |
21079 | |
21080 else | |
21081 PTHREAD_CC=$CC | |
21082 fi | |
21083 else | |
21084 PTHREAD_CC="$CC" | |
21085 fi | |
21086 | |
21087 | |
21088 | |
21089 | |
21090 | |
21091 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: | |
21092 if test x"$acx_pthread_ok" = xyes; then | |
21093 THREADLIBS="$PTHREAD_LIBS " | |
21094 CC="$PTHREAD_CC" | |
21095 | |
21096 $as_echo "#define USING_POSIX_THREADS 1" >>confdefs.h | |
21097 | |
21098 : | |
21099 else | |
21100 acx_pthread_ok=no | |
21101 | |
21102 fi | |
21103 ac_ext=c | |
21104 ac_cpp='$CPP $CPPFLAGS' | |
21105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21107 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21108 | |
21109 | |
21110 fi | |
21111 | |
21112 if test -z "$THREADLIBS"; then | |
21113 as_fn_error $? "couldn't find threads library for --enable-threads" "$LINENO" 5 | |
21114 fi | |
21115 | |
21116 $as_echo "#define HAVE_THREADS 1" >>confdefs.h | |
21117 | |
21118 fi | |
21119 | |
21120 if test "$enable_threads" = "yes"; then | |
21121 THREADS_TRUE= | |
21122 THREADS_FALSE='#' | |
21123 else | |
21124 THREADS_TRUE='#' | |
21125 THREADS_FALSE= | |
21126 fi | |
21127 | |
21128 if test "$enable_openmp" = "yes"; then | |
21129 OPENMP_TRUE= | |
21130 OPENMP_FALSE='#' | |
21131 else | |
21132 OPENMP_TRUE='#' | |
21133 OPENMP_FALSE= | |
21134 fi | |
21135 | |
21136 if test "$enable_threads" = "yes" -o "$enable_openmp" = "yes"; then | |
21137 SMP_TRUE= | |
21138 SMP_FALSE='#' | |
21139 else | |
21140 SMP_TRUE='#' | |
21141 SMP_FALSE= | |
21142 fi | |
21143 | |
21144 if test x"$with_combined_threads" = xyes; then | |
21145 COMBINED_THREADS_TRUE= | |
21146 COMBINED_THREADS_FALSE='#' | |
21147 else | |
21148 COMBINED_THREADS_TRUE='#' | |
21149 COMBINED_THREADS_FALSE= | |
21150 fi | |
21151 | |
21152 | |
21153 | |
21154 case "${host_cpu}" in | |
21155 armv7*) | |
21156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking armv7a has 64 bits readable CNTVCT" >&5 | |
21157 $as_echo_n "checking armv7a has 64 bits readable CNTVCT... " >&6; } | |
21158 if test "$cross_compiling" = yes; then : | |
21159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
21160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
21161 as_fn_error $? "cannot run test program while cross compiling | |
21162 See \`config.log' for more details" "$LINENO" 5; } | |
21163 else | |
21164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21165 /* end confdefs.h. */ | |
21166 #include <stdint.h> | |
21167 #ifdef F77_DUMMY_MAIN | |
21168 | |
21169 # ifdef __cplusplus | |
21170 extern "C" | |
21171 # endif | |
21172 int F77_DUMMY_MAIN() { return 1; } | |
21173 | |
21174 #endif | |
21175 int | |
21176 main () | |
21177 { | |
21178 uint32_t Rt, Rt2 = 0;asm volatile("mrrc p15, 1, %0, %1, c14" : "=r"(Rt), "=r"(Rt2)); | |
21179 | |
21180 ; | |
21181 return 0; | |
21182 } | |
21183 _ACEOF | |
21184 if ac_fn_c_try_run "$LINENO"; then : | |
21185 | |
21186 $as_echo "#define ARMV7A_HAS_CNTCVT 1" >>confdefs.h | |
21187 | |
21188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21189 $as_echo "yes" >&6; } | |
21190 else | |
21191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21192 $as_echo "no" >&6; } | |
21193 | |
21194 fi | |
21195 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
21196 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
21197 fi | |
21198 | |
21199 ;; | |
21200 aarch64) | |
21201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking armv8 has 64 bits readable CNTVCT_EL0" >&5 | |
21202 $as_echo_n "checking armv8 has 64 bits readable CNTVCT_EL0... " >&6; } | |
21203 if test "$cross_compiling" = yes; then : | |
21204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
21205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
21206 as_fn_error $? "cannot run test program while cross compiling | |
21207 See \`config.log' for more details" "$LINENO" 5; } | |
21208 else | |
21209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21210 /* end confdefs.h. */ | |
21211 #include <stdint.h> | |
21212 #ifdef F77_DUMMY_MAIN | |
21213 | |
21214 # ifdef __cplusplus | |
21215 extern "C" | |
21216 # endif | |
21217 int F77_DUMMY_MAIN() { return 1; } | |
21218 | |
21219 #endif | |
21220 int | |
21221 main () | |
21222 { | |
21223 uint64_t Rt;asm volatile("mrs %0, CNTVCT_EL0" : "=r" (Rt)); | |
21224 | |
21225 ; | |
21226 return 0; | |
21227 } | |
21228 _ACEOF | |
21229 if ac_fn_c_try_run "$LINENO"; then : | |
21230 | |
21231 $as_echo "#define ARMV8_HAS_CNTCVT_EL0 1" >>confdefs.h | |
21232 | |
21233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
21234 $as_echo "yes" >&6; } | |
21235 else | |
21236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
21237 $as_echo "no" >&6; } | |
21238 | |
21239 fi | |
21240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
21241 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
21242 fi | |
21243 | |
21244 ;; | |
21245 *) | |
21246 ;; | |
21247 esac | |
21248 | |
21249 | |
21250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a cycle counter is available" >&5 | |
21251 $as_echo_n "checking whether a cycle counter is available... " >&6; } | |
21252 save_CPPFLAGS=$CPPFLAGS | |
21253 CPPFLAGS="$CPPFLAGS -I$srcdir/kernel" | |
21254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21255 /* end confdefs.h. */ | |
21256 #include "cycle.h" | |
21257 #ifndef HAVE_TICK_COUNTER | |
21258 # error No cycle counter | |
21259 #endif | |
21260 _ACEOF | |
21261 if ac_fn_c_try_cpp "$LINENO"; then : | |
21262 ok=yes | |
21263 else | |
21264 ok=no | |
21265 fi | |
21266 rm -f conftest.err conftest.i conftest.$ac_ext | |
21267 CPPFLAGS=$save_CPPFLAGS | |
21268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ok" >&5 | |
21269 $as_echo "$ok" >&6; } | |
21270 if test $ok = no && test "x$with_slow_timer" = xno; then | |
21271 echo "***************************************************************" | |
21272 echo "WARNING: No cycle counter found. FFTW will use ESTIMATE mode " | |
21273 echo " for all plans. See the manual for more information." | |
21274 echo "***************************************************************" | |
21275 fi | |
21276 | |
21277 | |
21278 | |
21279 cat >>confdefs.h <<_ACEOF | |
21280 #define FFTW_CC "$CC $CFLAGS" | |
21281 _ACEOF | |
21282 | |
21283 | |
21284 ac_config_files="$ac_config_files Makefile support/Makefile genfft/Makefile kernel/Makefile simd-support/Makefile dft/Makefile dft/scalar/Makefile dft/scalar/codelets/Makefile dft/simd/Makefile dft/simd/common/Makefile dft/simd/sse2/Makefile dft/simd/avx/Makefile dft/simd/avx-128-fma/Makefile dft/simd/avx2/Makefile dft/simd/avx2-128/Makefile dft/simd/avx512/Makefile dft/simd/kcvi/Makefile dft/simd/altivec/Makefile dft/simd/vsx/Makefile dft/simd/neon/Makefile dft/simd/generic-simd128/Makefile dft/simd/generic-simd256/Makefile rdft/Makefile rdft/scalar/Makefile rdft/scalar/r2cf/Makefile rdft/scalar/r2cb/Makefile rdft/scalar/r2r/Makefile rdft/simd/Makefile rdft/simd/common/Makefile rdft/simd/sse2/Makefile rdft/simd/avx/Makefile rdft/simd/avx-128-fma/Makefile rdft/simd/avx2/Makefile rdft/simd/avx2-128/Makefile rdft/simd/avx512/Makefile rdft/simd/kcvi/Makefile rdft/simd/altivec/Makefile rdft/simd/vsx/Makefile rdft/simd/neon/Makefile rdft/simd/generic-simd128/Makefile rdft/simd/generic-simd256/Makefile reodft/Makefile threads/Makefile api/Makefile mpi/Makefile libbench2/Makefile tests/Makefile doc/Makefile doc/FAQ/Makefile tools/Makefile tools/fftw_wisdom.1 tools/fftw-wisdom-to-conf m4/Makefile fftw.pc" | |
21285 | |
21286 | |
21287 cat >confcache <<\_ACEOF | |
21288 # This file is a shell script that caches the results of configure | |
21289 # tests run on this system so they can be shared between configure | |
21290 # scripts and configure runs, see configure's option --config-cache. | |
21291 # It is not useful on other systems. If it contains results you don't | |
21292 # want to keep, you may remove or edit it. | |
21293 # | |
21294 # config.status only pays attention to the cache file if you give it | |
21295 # the --recheck option to rerun configure. | |
21296 # | |
21297 # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
21298 # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
21299 # following values. | |
21300 | |
21301 _ACEOF | |
21302 | |
21303 # The following way of writing the cache mishandles newlines in values, | |
21304 # but we know of no workaround that is simple, portable, and efficient. | |
21305 # So, we kill variables containing newlines. | |
21306 # Ultrix sh set writes to stderr and can't be redirected directly, | |
21307 # and sets the high bit in the cache file unless we assign to the vars. | |
21308 ( | |
21309 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
21310 eval ac_val=\$$ac_var | |
21311 case $ac_val in #( | |
21312 *${as_nl}*) | |
21313 case $ac_var in #( | |
21314 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
21315 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
21316 esac | |
21317 case $ac_var in #( | |
21318 _ | IFS | as_nl) ;; #( | |
21319 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
21320 *) { eval $ac_var=; unset $ac_var;} ;; | |
21321 esac ;; | |
21322 esac | |
21323 done | |
21324 | |
21325 (set) 2>&1 | | |
21326 case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
21327 *${as_nl}ac_space=\ *) | |
21328 # `set' does not quote correctly, so add quotes: double-quote | |
21329 # substitution turns \\\\ into \\, and sed turns \\ into \. | |
21330 sed -n \ | |
21331 "s/'/'\\\\''/g; | |
21332 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
21333 ;; #( | |
21334 *) | |
21335 # `set' quotes correctly as required by POSIX, so do not add quotes. | |
21336 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
21337 ;; | |
21338 esac | | |
21339 sort | |
21340 ) | | |
21341 sed ' | |
21342 /^ac_cv_env_/b end | |
21343 t clear | |
21344 :clear | |
21345 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
21346 t end | |
21347 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
21348 :end' >>confcache | |
21349 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
21350 if test -w "$cache_file"; then | |
21351 if test "x$cache_file" != "x/dev/null"; then | |
21352 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
21353 $as_echo "$as_me: updating cache $cache_file" >&6;} | |
21354 if test ! -f "$cache_file" || test -h "$cache_file"; then | |
21355 cat confcache >"$cache_file" | |
21356 else | |
21357 case $cache_file in #( | |
21358 */* | ?:*) | |
21359 mv -f confcache "$cache_file"$$ && | |
21360 mv -f "$cache_file"$$ "$cache_file" ;; #( | |
21361 *) | |
21362 mv -f confcache "$cache_file" ;; | |
21363 esac | |
21364 fi | |
21365 fi | |
21366 else | |
21367 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
21368 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
21369 fi | |
21370 fi | |
21371 rm -f confcache | |
21372 | |
21373 test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
21374 # Let make expand exec_prefix. | |
21375 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
21376 | |
21377 DEFS=-DHAVE_CONFIG_H | |
21378 | |
21379 ac_libobjs= | |
21380 ac_ltlibobjs= | |
21381 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
21382 # 1. Remove the extension, and $U if already installed. | |
21383 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
21384 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
21385 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
21386 # will be set to the directory where LIBOBJS objects are built. | |
21387 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
21388 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
21389 done | |
21390 LIBOBJS=$ac_libobjs | |
21391 | |
21392 LTLIBOBJS=$ac_ltlibobjs | |
21393 | |
21394 | |
21395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 | |
21396 $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
21397 if test -n "$am_sleep_pid"; then | |
21398 # Hide warnings about reused PIDs. | |
21399 wait $am_sleep_pid 2>/dev/null | |
21400 fi | |
21401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
21402 $as_echo "done" >&6; } | |
21403 if test -n "$EXEEXT"; then | |
21404 am__EXEEXT_TRUE= | |
21405 am__EXEEXT_FALSE='#' | |
21406 else | |
21407 am__EXEEXT_TRUE='#' | |
21408 am__EXEEXT_FALSE= | |
21409 fi | |
21410 | |
21411 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
21412 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. | |
21413 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
21414 fi | |
21415 if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then | |
21416 as_fn_error $? "conditional \"BUILD_DOC\" was never defined. | |
21417 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
21418 fi | |
21419 if test -z "${SINGLE_TRUE}" && test -z "${SINGLE_FALSE}"; then | |
21420 as_fn_error $? "conditional \"SINGLE\" was never defined. | |
21421 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
21422 fi | |
21423 if test -z "${LDOUBLE_TRUE}" && test -z "${LDOUBLE_FALSE}"; then | |
21424 as_fn_error $? "conditional \"LDOUBLE\" was never defined. | |
21425 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
21426 fi | |
21427 if test -z "${QUAD_TRUE}" && test -z "${QUAD_FALSE}"; then | |
21428 as_fn_error $? "conditional \"QUAD\" was never defined. | |
21429 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
21430 fi | |
21431 if test -z "${HAVE_SSE2_TRUE}" && test -z "${HAVE_SSE2_FALSE}"; then | |
21432 as_fn_error $? "conditional \"HAVE_SSE2\" was never defined. | |
21433 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
21434 fi | |
21435 if test -z "${HAVE_AVX_TRUE}" && test -z "${HAVE_AVX_FALSE}"; then | |
21436 as_fn_error $? "conditional \"HAVE_AVX\" was never defined. | |
21437 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
21438 fi | |
21439 if test -z "${HAVE_AVX2_TRUE}" && test -z "${HAVE_AVX2_FALSE}"; then | |
21440 as_fn_error $? "conditional \"HAVE_AVX2\" was never defined. | |
21441 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
21442 fi | |
21443 if test -z "${HAVE_AVX512_TRUE}" && test -z "${HAVE_AVX512_FALSE}"; then | |
21444 as_fn_error $? "conditional \"HAVE_AVX512\" was never defined. | |
21445 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
21446 fi | |
21447 if test -z "${HAVE_AVX_128_FMA_TRUE}" && test -z "${HAVE_AVX_128_FMA_FALSE}"; then | |
21448 as_fn_error $? "conditional \"HAVE_AVX_128_FMA\" was never defined. | |
21449 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
21450 fi | |
21451 if test -z "${HAVE_KCVI_TRUE}" && test -z "${HAVE_KCVI_FALSE}"; then | |
21452 as_fn_error $? "conditional \"HAVE_KCVI\" was never defined. | |
21453 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
21454 fi | |
21455 if test -z "${HAVE_ALTIVEC_TRUE}" && test -z "${HAVE_ALTIVEC_FALSE}"; then | |
21456 as_fn_error $? "conditional \"HAVE_ALTIVEC\" was never defined. | |
21457 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
21458 fi | |
21459 if test -z "${HAVE_VSX_TRUE}" && test -z "${HAVE_VSX_FALSE}"; then | |
21460 as_fn_error $? "conditional \"HAVE_VSX\" was never defined. | |
21461 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
21462 fi | |
21463 if test -z "${HAVE_NEON_TRUE}" && test -z "${HAVE_NEON_FALSE}"; then | |
21464 as_fn_error $? "conditional \"HAVE_NEON\" was never defined. | |
21465 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
21466 fi | |
21467 if test -z "${HAVE_GENERIC_SIMD128_TRUE}" && test -z "${HAVE_GENERIC_SIMD128_FALSE}"; then | |
21468 as_fn_error $? "conditional \"HAVE_GENERIC_SIMD128\" was never defined. | |
21469 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
21470 fi | |
21471 if test -z "${HAVE_GENERIC_SIMD256_TRUE}" && test -z "${HAVE_GENERIC_SIMD256_FALSE}"; then | |
21472 as_fn_error $? "conditional \"HAVE_GENERIC_SIMD256\" was never defined. | |
21473 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
21474 fi | |
21475 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
21476 as_fn_error $? "conditional \"AMDEP\" was never defined. | |
21477 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
21478 fi | |
21479 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
21480 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
21481 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
21482 fi | |
21483 if test -z "${MPI_TRUE}" && test -z "${MPI_FALSE}"; then | |
21484 as_fn_error $? "conditional \"MPI\" was never defined. | |
21485 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
21486 fi | |
21487 if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then | |
21488 as_fn_error $? "conditional \"THREADS\" was never defined. | |
21489 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
21490 fi | |
21491 if test -z "${OPENMP_TRUE}" && test -z "${OPENMP_FALSE}"; then | |
21492 as_fn_error $? "conditional \"OPENMP\" was never defined. | |
21493 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
21494 fi | |
21495 if test -z "${SMP_TRUE}" && test -z "${SMP_FALSE}"; then | |
21496 as_fn_error $? "conditional \"SMP\" was never defined. | |
21497 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
21498 fi | |
21499 if test -z "${COMBINED_THREADS_TRUE}" && test -z "${COMBINED_THREADS_FALSE}"; then | |
21500 as_fn_error $? "conditional \"COMBINED_THREADS\" was never defined. | |
21501 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
21502 fi | |
21503 | |
21504 : "${CONFIG_STATUS=./config.status}" | |
21505 ac_write_fail=0 | |
21506 ac_clean_files_save=$ac_clean_files | |
21507 ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
21508 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
21509 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
21510 as_write_fail=0 | |
21511 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
21512 #! $SHELL | |
21513 # Generated by $as_me. | |
21514 # Run this file to recreate the current configuration. | |
21515 # Compiler output produced by configure, useful for debugging | |
21516 # configure, is in config.log if it exists. | |
21517 | |
21518 debug=false | |
21519 ac_cs_recheck=false | |
21520 ac_cs_silent=false | |
21521 | |
21522 SHELL=\${CONFIG_SHELL-$SHELL} | |
21523 export SHELL | |
21524 _ASEOF | |
21525 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
21526 ## -------------------- ## | |
21527 ## M4sh Initialization. ## | |
21528 ## -------------------- ## | |
21529 | |
21530 # Be more Bourne compatible | |
21531 DUALCASE=1; export DUALCASE # for MKS sh | |
21532 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
21533 emulate sh | |
21534 NULLCMD=: | |
21535 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
21536 # is contrary to our usage. Disable this feature. | |
21537 alias -g '${1+"$@"}'='"$@"' | |
21538 setopt NO_GLOB_SUBST | |
21539 else | |
21540 case `(set -o) 2>/dev/null` in #( | |
21541 *posix*) : | |
21542 set -o posix ;; #( | |
21543 *) : | |
21544 ;; | |
21545 esac | |
21546 fi | |
21547 | |
21548 | |
21549 as_nl=' | |
21550 ' | |
21551 export as_nl | |
21552 # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
21553 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
21554 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
21555 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
21556 # Prefer a ksh shell builtin over an external printf program on Solaris, | |
21557 # but without wasting forks for bash or zsh. | |
21558 if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
21559 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
21560 as_echo='print -r --' | |
21561 as_echo_n='print -rn --' | |
21562 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
21563 as_echo='printf %s\n' | |
21564 as_echo_n='printf %s' | |
21565 else | |
21566 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
21567 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
21568 as_echo_n='/usr/ucb/echo -n' | |
21569 else | |
21570 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
21571 as_echo_n_body='eval | |
21572 arg=$1; | |
21573 case $arg in #( | |
21574 *"$as_nl"*) | |
21575 expr "X$arg" : "X\\(.*\\)$as_nl"; | |
21576 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
21577 esac; | |
21578 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
21579 ' | |
21580 export as_echo_n_body | |
21581 as_echo_n='sh -c $as_echo_n_body as_echo' | |
21582 fi | |
21583 export as_echo_body | |
21584 as_echo='sh -c $as_echo_body as_echo' | |
21585 fi | |
21586 | |
21587 # The user is always right. | |
21588 if test "${PATH_SEPARATOR+set}" != set; then | |
21589 PATH_SEPARATOR=: | |
21590 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
21591 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
21592 PATH_SEPARATOR=';' | |
21593 } | |
21594 fi | |
21595 | |
21596 | |
21597 # IFS | |
21598 # We need space, tab and new line, in precisely that order. Quoting is | |
21599 # there to prevent editors from complaining about space-tab. | |
21600 # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
21601 # splitting by setting IFS to empty value.) | |
21602 IFS=" "" $as_nl" | |
21603 | |
21604 # Find who we are. Look in the path if we contain no directory separator. | |
21605 as_myself= | |
21606 case $0 in #(( | |
21607 *[\\/]* ) as_myself=$0 ;; | |
21608 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21609 for as_dir in $PATH | |
21610 do | |
21611 IFS=$as_save_IFS | |
21612 test -z "$as_dir" && as_dir=. | |
21613 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
21614 done | |
21615 IFS=$as_save_IFS | |
21616 | |
21617 ;; | |
21618 esac | |
21619 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
21620 # in which case we are not to be found in the path. | |
21621 if test "x$as_myself" = x; then | |
21622 as_myself=$0 | |
21623 fi | |
21624 if test ! -f "$as_myself"; then | |
21625 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
21626 exit 1 | |
21627 fi | |
21628 | |
21629 # Unset variables that we do not need and which cause bugs (e.g. in | |
21630 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
21631 # suppresses any "Segmentation fault" message there. '((' could | |
21632 # trigger a bug in pdksh 5.2.14. | |
21633 for as_var in BASH_ENV ENV MAIL MAILPATH | |
21634 do eval test x\${$as_var+set} = xset \ | |
21635 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
21636 done | |
21637 PS1='$ ' | |
21638 PS2='> ' | |
21639 PS4='+ ' | |
21640 | |
21641 # NLS nuisances. | |
21642 LC_ALL=C | |
21643 export LC_ALL | |
21644 LANGUAGE=C | |
21645 export LANGUAGE | |
21646 | |
21647 # CDPATH. | |
21648 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
21649 | |
21650 | |
21651 # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
21652 # ---------------------------------------- | |
21653 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
21654 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
21655 # script with STATUS, using 1 if that was 0. | |
21656 as_fn_error () | |
21657 { | |
21658 as_status=$1; test $as_status -eq 0 && as_status=1 | |
21659 if test "$4"; then | |
21660 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
21661 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
21662 fi | |
21663 $as_echo "$as_me: error: $2" >&2 | |
21664 as_fn_exit $as_status | |
21665 } # as_fn_error | |
21666 | |
21667 | |
21668 # as_fn_set_status STATUS | |
21669 # ----------------------- | |
21670 # Set $? to STATUS, without forking. | |
21671 as_fn_set_status () | |
21672 { | |
21673 return $1 | |
21674 } # as_fn_set_status | |
21675 | |
21676 # as_fn_exit STATUS | |
21677 # ----------------- | |
21678 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
21679 as_fn_exit () | |
21680 { | |
21681 set +e | |
21682 as_fn_set_status $1 | |
21683 exit $1 | |
21684 } # as_fn_exit | |
21685 | |
21686 # as_fn_unset VAR | |
21687 # --------------- | |
21688 # Portably unset VAR. | |
21689 as_fn_unset () | |
21690 { | |
21691 { eval $1=; unset $1;} | |
21692 } | |
21693 as_unset=as_fn_unset | |
21694 # as_fn_append VAR VALUE | |
21695 # ---------------------- | |
21696 # Append the text in VALUE to the end of the definition contained in VAR. Take | |
21697 # advantage of any shell optimizations that allow amortized linear growth over | |
21698 # repeated appends, instead of the typical quadratic growth present in naive | |
21699 # implementations. | |
21700 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
21701 eval 'as_fn_append () | |
21702 { | |
21703 eval $1+=\$2 | |
21704 }' | |
21705 else | |
21706 as_fn_append () | |
21707 { | |
21708 eval $1=\$$1\$2 | |
21709 } | |
21710 fi # as_fn_append | |
21711 | |
21712 # as_fn_arith ARG... | |
21713 # ------------------ | |
21714 # Perform arithmetic evaluation on the ARGs, and store the result in the | |
21715 # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
21716 # must be portable across $(()) and expr. | |
21717 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
21718 eval 'as_fn_arith () | |
21719 { | |
21720 as_val=$(( $* )) | |
21721 }' | |
21722 else | |
21723 as_fn_arith () | |
21724 { | |
21725 as_val=`expr "$@" || test $? -eq 1` | |
21726 } | |
21727 fi # as_fn_arith | |
21728 | |
21729 | |
21730 if expr a : '\(a\)' >/dev/null 2>&1 && | |
21731 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
21732 as_expr=expr | |
21733 else | |
21734 as_expr=false | |
21735 fi | |
21736 | |
21737 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
21738 as_basename=basename | |
21739 else | |
21740 as_basename=false | |
21741 fi | |
21742 | |
21743 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
21744 as_dirname=dirname | |
21745 else | |
21746 as_dirname=false | |
21747 fi | |
21748 | |
21749 as_me=`$as_basename -- "$0" || | |
21750 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
21751 X"$0" : 'X\(//\)$' \| \ | |
21752 X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
21753 $as_echo X/"$0" | | |
21754 sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
21755 s//\1/ | |
21756 q | |
21757 } | |
21758 /^X\/\(\/\/\)$/{ | |
21759 s//\1/ | |
21760 q | |
21761 } | |
21762 /^X\/\(\/\).*/{ | |
21763 s//\1/ | |
21764 q | |
21765 } | |
21766 s/.*/./; q'` | |
21767 | |
21768 # Avoid depending upon Character Ranges. | |
21769 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
21770 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
21771 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
21772 as_cr_digits='0123456789' | |
21773 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
21774 | |
21775 ECHO_C= ECHO_N= ECHO_T= | |
21776 case `echo -n x` in #((((( | |
21777 -n*) | |
21778 case `echo 'xy\c'` in | |
21779 *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
21780 xy) ECHO_C='\c';; | |
21781 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
21782 ECHO_T=' ';; | |
21783 esac;; | |
21784 *) | |
21785 ECHO_N='-n';; | |
21786 esac | |
21787 | |
21788 rm -f conf$$ conf$$.exe conf$$.file | |
21789 if test -d conf$$.dir; then | |
21790 rm -f conf$$.dir/conf$$.file | |
21791 else | |
21792 rm -f conf$$.dir | |
21793 mkdir conf$$.dir 2>/dev/null | |
21794 fi | |
21795 if (echo >conf$$.file) 2>/dev/null; then | |
21796 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
21797 as_ln_s='ln -s' | |
21798 # ... but there are two gotchas: | |
21799 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
21800 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
21801 # In both cases, we have to default to `cp -pR'. | |
21802 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
21803 as_ln_s='cp -pR' | |
21804 elif ln conf$$.file conf$$ 2>/dev/null; then | |
21805 as_ln_s=ln | |
21806 else | |
21807 as_ln_s='cp -pR' | |
21808 fi | |
21809 else | |
21810 as_ln_s='cp -pR' | |
21811 fi | |
21812 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
21813 rmdir conf$$.dir 2>/dev/null | |
21814 | |
21815 | |
21816 # as_fn_mkdir_p | |
21817 # ------------- | |
21818 # Create "$as_dir" as a directory, including parents if necessary. | |
21819 as_fn_mkdir_p () | |
21820 { | |
21821 | |
21822 case $as_dir in #( | |
21823 -*) as_dir=./$as_dir;; | |
21824 esac | |
21825 test -d "$as_dir" || eval $as_mkdir_p || { | |
21826 as_dirs= | |
21827 while :; do | |
21828 case $as_dir in #( | |
21829 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
21830 *) as_qdir=$as_dir;; | |
21831 esac | |
21832 as_dirs="'$as_qdir' $as_dirs" | |
21833 as_dir=`$as_dirname -- "$as_dir" || | |
21834 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
21835 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
21836 X"$as_dir" : 'X\(//\)$' \| \ | |
21837 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
21838 $as_echo X"$as_dir" | | |
21839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
21840 s//\1/ | |
21841 q | |
21842 } | |
21843 /^X\(\/\/\)[^/].*/{ | |
21844 s//\1/ | |
21845 q | |
21846 } | |
21847 /^X\(\/\/\)$/{ | |
21848 s//\1/ | |
21849 q | |
21850 } | |
21851 /^X\(\/\).*/{ | |
21852 s//\1/ | |
21853 q | |
21854 } | |
21855 s/.*/./; q'` | |
21856 test -d "$as_dir" && break | |
21857 done | |
21858 test -z "$as_dirs" || eval "mkdir $as_dirs" | |
21859 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
21860 | |
21861 | |
21862 } # as_fn_mkdir_p | |
21863 if mkdir -p . 2>/dev/null; then | |
21864 as_mkdir_p='mkdir -p "$as_dir"' | |
21865 else | |
21866 test -d ./-p && rmdir ./-p | |
21867 as_mkdir_p=false | |
21868 fi | |
21869 | |
21870 | |
21871 # as_fn_executable_p FILE | |
21872 # ----------------------- | |
21873 # Test if FILE is an executable regular file. | |
21874 as_fn_executable_p () | |
21875 { | |
21876 test -f "$1" && test -x "$1" | |
21877 } # as_fn_executable_p | |
21878 as_test_x='test -x' | |
21879 as_executable_p=as_fn_executable_p | |
21880 | |
21881 # Sed expression to map a string onto a valid CPP name. | |
21882 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
21883 | |
21884 # Sed expression to map a string onto a valid variable name. | |
21885 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
21886 | |
21887 | |
21888 exec 6>&1 | |
21889 ## ----------------------------------- ## | |
21890 ## Main body of $CONFIG_STATUS script. ## | |
21891 ## ----------------------------------- ## | |
21892 _ASEOF | |
21893 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
21894 | |
21895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21896 # Save the log message, to keep $0 and so on meaningful, and to | |
21897 # report actual input values of CONFIG_FILES etc. instead of their | |
21898 # values after options handling. | |
21899 ac_log=" | |
21900 This file was extended by fftw $as_me 3.3.5, which was | |
21901 generated by GNU Autoconf 2.69. Invocation command line was | |
21902 | |
21903 CONFIG_FILES = $CONFIG_FILES | |
21904 CONFIG_HEADERS = $CONFIG_HEADERS | |
21905 CONFIG_LINKS = $CONFIG_LINKS | |
21906 CONFIG_COMMANDS = $CONFIG_COMMANDS | |
21907 $ $0 $@ | |
21908 | |
21909 on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
21910 " | |
21911 | |
21912 _ACEOF | |
21913 | |
21914 case $ac_config_files in *" | |
21915 "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
21916 esac | |
21917 | |
21918 case $ac_config_headers in *" | |
21919 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
21920 esac | |
21921 | |
21922 | |
21923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21924 # Files that config.status was made for. | |
21925 config_files="$ac_config_files" | |
21926 config_headers="$ac_config_headers" | |
21927 config_commands="$ac_config_commands" | |
21928 | |
21929 _ACEOF | |
21930 | |
21931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21932 ac_cs_usage="\ | |
21933 \`$as_me' instantiates files and other configuration actions | |
21934 from templates according to the current configuration. Unless the files | |
21935 and actions are specified as TAGs, all are instantiated by default. | |
21936 | |
21937 Usage: $0 [OPTION]... [TAG]... | |
21938 | |
21939 -h, --help print this help, then exit | |
21940 -V, --version print version number and configuration settings, then exit | |
21941 --config print configuration, then exit | |
21942 -q, --quiet, --silent | |
21943 do not print progress messages | |
21944 -d, --debug don't remove temporary files | |
21945 --recheck update $as_me by reconfiguring in the same conditions | |
21946 --file=FILE[:TEMPLATE] | |
21947 instantiate the configuration file FILE | |
21948 --header=FILE[:TEMPLATE] | |
21949 instantiate the configuration header FILE | |
21950 | |
21951 Configuration files: | |
21952 $config_files | |
21953 | |
21954 Configuration headers: | |
21955 $config_headers | |
21956 | |
21957 Configuration commands: | |
21958 $config_commands | |
21959 | |
21960 Report bugs to <fftw@fftw.org>." | |
21961 | |
21962 _ACEOF | |
21963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21964 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
21965 ac_cs_version="\\ | |
21966 fftw config.status 3.3.5 | |
21967 configured by $0, generated by GNU Autoconf 2.69, | |
21968 with options \\"\$ac_cs_config\\" | |
21969 | |
21970 Copyright (C) 2012 Free Software Foundation, Inc. | |
21971 This config.status script is free software; the Free Software Foundation | |
21972 gives unlimited permission to copy, distribute and modify it." | |
21973 | |
21974 ac_pwd='$ac_pwd' | |
21975 srcdir='$srcdir' | |
21976 INSTALL='$INSTALL' | |
21977 MKDIR_P='$MKDIR_P' | |
21978 AWK='$AWK' | |
21979 test -n "\$AWK" || AWK=awk | |
21980 _ACEOF | |
21981 | |
21982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21983 # The default lists apply if the user does not specify any file. | |
21984 ac_need_defaults=: | |
21985 while test $# != 0 | |
21986 do | |
21987 case $1 in | |
21988 --*=?*) | |
21989 ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
21990 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
21991 ac_shift=: | |
21992 ;; | |
21993 --*=) | |
21994 ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
21995 ac_optarg= | |
21996 ac_shift=: | |
21997 ;; | |
21998 *) | |
21999 ac_option=$1 | |
22000 ac_optarg=$2 | |
22001 ac_shift=shift | |
22002 ;; | |
22003 esac | |
22004 | |
22005 case $ac_option in | |
22006 # Handling of the options. | |
22007 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
22008 ac_cs_recheck=: ;; | |
22009 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
22010 $as_echo "$ac_cs_version"; exit ;; | |
22011 --config | --confi | --conf | --con | --co | --c ) | |
22012 $as_echo "$ac_cs_config"; exit ;; | |
22013 --debug | --debu | --deb | --de | --d | -d ) | |
22014 debug=: ;; | |
22015 --file | --fil | --fi | --f ) | |
22016 $ac_shift | |
22017 case $ac_optarg in | |
22018 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
22019 '') as_fn_error $? "missing file argument" ;; | |
22020 esac | |
22021 as_fn_append CONFIG_FILES " '$ac_optarg'" | |
22022 ac_need_defaults=false;; | |
22023 --header | --heade | --head | --hea ) | |
22024 $ac_shift | |
22025 case $ac_optarg in | |
22026 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
22027 esac | |
22028 as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
22029 ac_need_defaults=false;; | |
22030 --he | --h) | |
22031 # Conflict between --help and --header | |
22032 as_fn_error $? "ambiguous option: \`$1' | |
22033 Try \`$0 --help' for more information.";; | |
22034 --help | --hel | -h ) | |
22035 $as_echo "$ac_cs_usage"; exit ;; | |
22036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
22037 | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
22038 ac_cs_silent=: ;; | |
22039 | |
22040 # This is an error. | |
22041 -*) as_fn_error $? "unrecognized option: \`$1' | |
22042 Try \`$0 --help' for more information." ;; | |
22043 | |
22044 *) as_fn_append ac_config_targets " $1" | |
22045 ac_need_defaults=false ;; | |
22046 | |
22047 esac | |
22048 shift | |
22049 done | |
22050 | |
22051 ac_configure_extra_args= | |
22052 | |
22053 if $ac_cs_silent; then | |
22054 exec 6>/dev/null | |
22055 ac_configure_extra_args="$ac_configure_extra_args --silent" | |
22056 fi | |
22057 | |
22058 _ACEOF | |
22059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22060 if \$ac_cs_recheck; then | |
22061 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
22062 shift | |
22063 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
22064 CONFIG_SHELL='$SHELL' | |
22065 export CONFIG_SHELL | |
22066 exec "\$@" | |
22067 fi | |
22068 | |
22069 _ACEOF | |
22070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
22071 exec 5>>config.log | |
22072 { | |
22073 echo | |
22074 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
22075 ## Running $as_me. ## | |
22076 _ASBOX | |
22077 $as_echo "$ac_log" | |
22078 } >&5 | |
22079 | |
22080 _ACEOF | |
22081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22082 # | |
22083 # INIT-COMMANDS | |
22084 # | |
22085 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
22086 | |
22087 | |
22088 # The HP-UX ksh and POSIX shell print the target directory to stdout | |
22089 # if CDPATH is set. | |
22090 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
22091 | |
22092 sed_quote_subst='$sed_quote_subst' | |
22093 double_quote_subst='$double_quote_subst' | |
22094 delay_variable_subst='$delay_variable_subst' | |
22095 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
22096 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' | |
22097 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
22098 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
22099 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
22100 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
22101 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
22102 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
22103 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
22104 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
22105 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
22106 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' | |
22107 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
22108 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
22109 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
22110 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
22111 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
22112 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
22113 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
22114 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
22115 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
22116 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
22117 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
22118 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
22119 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
22120 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
22121 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
22122 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
22123 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
22124 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
22125 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
22126 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
22127 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
22128 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
22129 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
22130 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
22131 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
22132 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
22133 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
22134 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
22135 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
22136 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
22137 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
22138 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
22139 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
22140 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
22141 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
22142 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
22143 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
22144 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
22145 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
22146 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
22147 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
22148 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
22149 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
22150 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
22151 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
22152 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"`' | |
22153 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | |
22154 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
22155 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
22156 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
22157 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
22158 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
22159 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
22160 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
22161 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
22162 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
22163 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
22164 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
22165 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
22166 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
22167 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
22168 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
22169 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
22170 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
22171 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
22172 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
22173 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
22174 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
22175 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
22176 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
22177 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
22178 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
22179 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
22180 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
22181 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
22182 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
22183 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
22184 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
22185 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
22186 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
22187 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
22188 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
22189 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
22190 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
22191 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
22192 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
22193 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
22194 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
22195 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
22196 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
22197 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
22198 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
22199 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
22200 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
22201 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
22202 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
22203 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
22204 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
22205 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
22206 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
22207 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
22208 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
22209 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
22210 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
22211 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
22212 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
22213 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
22214 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
22215 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
22216 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
22217 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
22218 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
22219 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
22220 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
22221 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
22222 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
22223 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
22224 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
22225 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
22226 LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`' | |
22227 reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`' | |
22228 reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`' | |
22229 old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`' | |
22230 compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`' | |
22231 GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`' | |
22232 lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`' | |
22233 lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`' | |
22234 lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`' | |
22235 lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`' | |
22236 lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`' | |
22237 archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`' | |
22238 enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`' | |
22239 export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`' | |
22240 whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`' | |
22241 compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`' | |
22242 old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`' | |
22243 old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`' | |
22244 archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`' | |
22245 archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`' | |
22246 module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`' | |
22247 module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`' | |
22248 with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`' | |
22249 allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`' | |
22250 no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`' | |
22251 hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`' | |
22252 hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`' | |
22253 hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`' | |
22254 hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`' | |
22255 hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`' | |
22256 hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`' | |
22257 hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`' | |
22258 inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`' | |
22259 link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`' | |
22260 always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`' | |
22261 export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`' | |
22262 exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`' | |
22263 include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`' | |
22264 prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`' | |
22265 postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`' | |
22266 file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`' | |
22267 hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`' | |
22268 | |
22269 LTCC='$LTCC' | |
22270 LTCFLAGS='$LTCFLAGS' | |
22271 compiler='$compiler_DEFAULT' | |
22272 | |
22273 # A function that is used when there is no print builtin or printf. | |
22274 func_fallback_echo () | |
22275 { | |
22276 eval 'cat <<_LTECHO_EOF | |
22277 \$1 | |
22278 _LTECHO_EOF' | |
22279 } | |
22280 | |
22281 # Quote evaled strings. | |
22282 for var in AS \ | |
22283 DLLTOOL \ | |
22284 OBJDUMP \ | |
22285 SHELL \ | |
22286 ECHO \ | |
22287 PATH_SEPARATOR \ | |
22288 SED \ | |
22289 GREP \ | |
22290 EGREP \ | |
22291 FGREP \ | |
22292 LD \ | |
22293 NM \ | |
22294 LN_S \ | |
22295 lt_SP2NL \ | |
22296 lt_NL2SP \ | |
22297 reload_flag \ | |
22298 deplibs_check_method \ | |
22299 file_magic_cmd \ | |
22300 file_magic_glob \ | |
22301 want_nocaseglob \ | |
22302 sharedlib_from_linklib_cmd \ | |
22303 AR \ | |
22304 AR_FLAGS \ | |
22305 archiver_list_spec \ | |
22306 STRIP \ | |
22307 RANLIB \ | |
22308 CC \ | |
22309 CFLAGS \ | |
22310 compiler \ | |
22311 lt_cv_sys_global_symbol_pipe \ | |
22312 lt_cv_sys_global_symbol_to_cdecl \ | |
22313 lt_cv_sys_global_symbol_to_c_name_address \ | |
22314 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
22315 nm_file_list_spec \ | |
22316 lt_prog_compiler_no_builtin_flag \ | |
22317 lt_prog_compiler_pic \ | |
22318 lt_prog_compiler_wl \ | |
22319 lt_prog_compiler_static \ | |
22320 lt_cv_prog_compiler_c_o \ | |
22321 need_locks \ | |
22322 MANIFEST_TOOL \ | |
22323 DSYMUTIL \ | |
22324 NMEDIT \ | |
22325 LIPO \ | |
22326 OTOOL \ | |
22327 OTOOL64 \ | |
22328 shrext_cmds \ | |
22329 export_dynamic_flag_spec \ | |
22330 whole_archive_flag_spec \ | |
22331 compiler_needs_object \ | |
22332 with_gnu_ld \ | |
22333 allow_undefined_flag \ | |
22334 no_undefined_flag \ | |
22335 hardcode_libdir_flag_spec \ | |
22336 hardcode_libdir_separator \ | |
22337 exclude_expsyms \ | |
22338 include_expsyms \ | |
22339 file_list_spec \ | |
22340 variables_saved_for_relink \ | |
22341 libname_spec \ | |
22342 library_names_spec \ | |
22343 soname_spec \ | |
22344 install_override_mode \ | |
22345 finish_eval \ | |
22346 old_striplib \ | |
22347 striplib \ | |
22348 LD_F77 \ | |
22349 reload_flag_F77 \ | |
22350 compiler_F77 \ | |
22351 lt_prog_compiler_no_builtin_flag_F77 \ | |
22352 lt_prog_compiler_pic_F77 \ | |
22353 lt_prog_compiler_wl_F77 \ | |
22354 lt_prog_compiler_static_F77 \ | |
22355 lt_cv_prog_compiler_c_o_F77 \ | |
22356 export_dynamic_flag_spec_F77 \ | |
22357 whole_archive_flag_spec_F77 \ | |
22358 compiler_needs_object_F77 \ | |
22359 with_gnu_ld_F77 \ | |
22360 allow_undefined_flag_F77 \ | |
22361 no_undefined_flag_F77 \ | |
22362 hardcode_libdir_flag_spec_F77 \ | |
22363 hardcode_libdir_separator_F77 \ | |
22364 exclude_expsyms_F77 \ | |
22365 include_expsyms_F77 \ | |
22366 file_list_spec_F77; do | |
22367 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
22368 *[\\\\\\\`\\"\\\$]*) | |
22369 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
22370 ;; | |
22371 *) | |
22372 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
22373 ;; | |
22374 esac | |
22375 done | |
22376 | |
22377 # Double-quote double-evaled strings. | |
22378 for var in reload_cmds \ | |
22379 old_postinstall_cmds \ | |
22380 old_postuninstall_cmds \ | |
22381 old_archive_cmds \ | |
22382 extract_expsyms_cmds \ | |
22383 old_archive_from_new_cmds \ | |
22384 old_archive_from_expsyms_cmds \ | |
22385 archive_cmds \ | |
22386 archive_expsym_cmds \ | |
22387 module_cmds \ | |
22388 module_expsym_cmds \ | |
22389 export_symbols_cmds \ | |
22390 prelink_cmds \ | |
22391 postlink_cmds \ | |
22392 postinstall_cmds \ | |
22393 postuninstall_cmds \ | |
22394 finish_cmds \ | |
22395 sys_lib_search_path_spec \ | |
22396 sys_lib_dlsearch_path_spec \ | |
22397 reload_cmds_F77 \ | |
22398 old_archive_cmds_F77 \ | |
22399 old_archive_from_new_cmds_F77 \ | |
22400 old_archive_from_expsyms_cmds_F77 \ | |
22401 archive_cmds_F77 \ | |
22402 archive_expsym_cmds_F77 \ | |
22403 module_cmds_F77 \ | |
22404 module_expsym_cmds_F77 \ | |
22405 export_symbols_cmds_F77 \ | |
22406 prelink_cmds_F77 \ | |
22407 postlink_cmds_F77; do | |
22408 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
22409 *[\\\\\\\`\\"\\\$]*) | |
22410 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
22411 ;; | |
22412 *) | |
22413 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
22414 ;; | |
22415 esac | |
22416 done | |
22417 | |
22418 ac_aux_dir='$ac_aux_dir' | |
22419 xsi_shell='$xsi_shell' | |
22420 lt_shell_append='$lt_shell_append' | |
22421 | |
22422 # See if we are running on zsh, and set the options which allow our | |
22423 # commands through without removal of \ escapes INIT. | |
22424 if test -n "\${ZSH_VERSION+set}" ; then | |
22425 setopt NO_GLOB_SUBST | |
22426 fi | |
22427 | |
22428 | |
22429 PACKAGE='$PACKAGE' | |
22430 VERSION='$VERSION' | |
22431 TIMESTAMP='$TIMESTAMP' | |
22432 RM='$RM' | |
22433 ofile='$ofile' | |
22434 | |
22435 | |
22436 | |
22437 | |
22438 | |
22439 | |
22440 _ACEOF | |
22441 | |
22442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
22443 | |
22444 # Handling of arguments. | |
22445 for ac_config_target in $ac_config_targets | |
22446 do | |
22447 case $ac_config_target in | |
22448 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
22449 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
22450 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
22451 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
22452 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;; | |
22453 "genfft/Makefile") CONFIG_FILES="$CONFIG_FILES genfft/Makefile" ;; | |
22454 "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;; | |
22455 "simd-support/Makefile") CONFIG_FILES="$CONFIG_FILES simd-support/Makefile" ;; | |
22456 "dft/Makefile") CONFIG_FILES="$CONFIG_FILES dft/Makefile" ;; | |
22457 "dft/scalar/Makefile") CONFIG_FILES="$CONFIG_FILES dft/scalar/Makefile" ;; | |
22458 "dft/scalar/codelets/Makefile") CONFIG_FILES="$CONFIG_FILES dft/scalar/codelets/Makefile" ;; | |
22459 "dft/simd/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/Makefile" ;; | |
22460 "dft/simd/common/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/common/Makefile" ;; | |
22461 "dft/simd/sse2/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/sse2/Makefile" ;; | |
22462 "dft/simd/avx/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/avx/Makefile" ;; | |
22463 "dft/simd/avx-128-fma/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/avx-128-fma/Makefile" ;; | |
22464 "dft/simd/avx2/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/avx2/Makefile" ;; | |
22465 "dft/simd/avx2-128/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/avx2-128/Makefile" ;; | |
22466 "dft/simd/avx512/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/avx512/Makefile" ;; | |
22467 "dft/simd/kcvi/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/kcvi/Makefile" ;; | |
22468 "dft/simd/altivec/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/altivec/Makefile" ;; | |
22469 "dft/simd/vsx/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/vsx/Makefile" ;; | |
22470 "dft/simd/neon/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/neon/Makefile" ;; | |
22471 "dft/simd/generic-simd128/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/generic-simd128/Makefile" ;; | |
22472 "dft/simd/generic-simd256/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/generic-simd256/Makefile" ;; | |
22473 "rdft/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/Makefile" ;; | |
22474 "rdft/scalar/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/scalar/Makefile" ;; | |
22475 "rdft/scalar/r2cf/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/scalar/r2cf/Makefile" ;; | |
22476 "rdft/scalar/r2cb/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/scalar/r2cb/Makefile" ;; | |
22477 "rdft/scalar/r2r/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/scalar/r2r/Makefile" ;; | |
22478 "rdft/simd/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/Makefile" ;; | |
22479 "rdft/simd/common/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/common/Makefile" ;; | |
22480 "rdft/simd/sse2/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/sse2/Makefile" ;; | |
22481 "rdft/simd/avx/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/avx/Makefile" ;; | |
22482 "rdft/simd/avx-128-fma/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/avx-128-fma/Makefile" ;; | |
22483 "rdft/simd/avx2/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/avx2/Makefile" ;; | |
22484 "rdft/simd/avx2-128/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/avx2-128/Makefile" ;; | |
22485 "rdft/simd/avx512/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/avx512/Makefile" ;; | |
22486 "rdft/simd/kcvi/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/kcvi/Makefile" ;; | |
22487 "rdft/simd/altivec/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/altivec/Makefile" ;; | |
22488 "rdft/simd/vsx/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/vsx/Makefile" ;; | |
22489 "rdft/simd/neon/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/neon/Makefile" ;; | |
22490 "rdft/simd/generic-simd128/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/generic-simd128/Makefile" ;; | |
22491 "rdft/simd/generic-simd256/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/generic-simd256/Makefile" ;; | |
22492 "reodft/Makefile") CONFIG_FILES="$CONFIG_FILES reodft/Makefile" ;; | |
22493 "threads/Makefile") CONFIG_FILES="$CONFIG_FILES threads/Makefile" ;; | |
22494 "api/Makefile") CONFIG_FILES="$CONFIG_FILES api/Makefile" ;; | |
22495 "mpi/Makefile") CONFIG_FILES="$CONFIG_FILES mpi/Makefile" ;; | |
22496 "libbench2/Makefile") CONFIG_FILES="$CONFIG_FILES libbench2/Makefile" ;; | |
22497 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; | |
22498 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
22499 "doc/FAQ/Makefile") CONFIG_FILES="$CONFIG_FILES doc/FAQ/Makefile" ;; | |
22500 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
22501 "tools/fftw_wisdom.1") CONFIG_FILES="$CONFIG_FILES tools/fftw_wisdom.1" ;; | |
22502 "tools/fftw-wisdom-to-conf") CONFIG_FILES="$CONFIG_FILES tools/fftw-wisdom-to-conf" ;; | |
22503 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; | |
22504 "fftw.pc") CONFIG_FILES="$CONFIG_FILES fftw.pc" ;; | |
22505 | |
22506 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
22507 esac | |
22508 done | |
22509 | |
22510 | |
22511 # If the user did not use the arguments to specify the items to instantiate, | |
22512 # then the envvar interface is used. Set only those that are not. | |
22513 # We use the long form for the default assignment because of an extremely | |
22514 # bizarre bug on SunOS 4.1.3. | |
22515 if $ac_need_defaults; then | |
22516 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
22517 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
22518 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
22519 fi | |
22520 | |
22521 # Have a temporary directory for convenience. Make it in the build tree | |
22522 # simply because there is no reason against having it here, and in addition, | |
22523 # creating and moving files from /tmp can sometimes cause problems. | |
22524 # Hook for its removal unless debugging. | |
22525 # Note that there is a small window in which the directory will not be cleaned: | |
22526 # after its creation but before its name has been assigned to `$tmp'. | |
22527 $debug || | |
22528 { | |
22529 tmp= ac_tmp= | |
22530 trap 'exit_status=$? | |
22531 : "${ac_tmp:=$tmp}" | |
22532 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
22533 ' 0 | |
22534 trap 'as_fn_exit 1' 1 2 13 15 | |
22535 } | |
22536 # Create a (secure) tmp directory for tmp files. | |
22537 | |
22538 { | |
22539 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
22540 test -d "$tmp" | |
22541 } || | |
22542 { | |
22543 tmp=./conf$$-$RANDOM | |
22544 (umask 077 && mkdir "$tmp") | |
22545 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
22546 ac_tmp=$tmp | |
22547 | |
22548 # Set up the scripts for CONFIG_FILES section. | |
22549 # No need to generate them if there are no CONFIG_FILES. | |
22550 # This happens for instance with `./config.status config.h'. | |
22551 if test -n "$CONFIG_FILES"; then | |
22552 | |
22553 | |
22554 ac_cr=`echo X | tr X '\015'` | |
22555 # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
22556 # But we know of no other shell where ac_cr would be empty at this | |
22557 # point, so we can use a bashism as a fallback. | |
22558 if test "x$ac_cr" = x; then | |
22559 eval ac_cr=\$\'\\r\' | |
22560 fi | |
22561 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
22562 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
22563 ac_cs_awk_cr='\\r' | |
22564 else | |
22565 ac_cs_awk_cr=$ac_cr | |
22566 fi | |
22567 | |
22568 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
22569 _ACEOF | |
22570 | |
22571 | |
22572 { | |
22573 echo "cat >conf$$subs.awk <<_ACEOF" && | |
22574 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
22575 echo "_ACEOF" | |
22576 } >conf$$subs.sh || | |
22577 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
22578 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
22579 ac_delim='%!_!# ' | |
22580 for ac_last_try in false false false false false :; do | |
22581 . ./conf$$subs.sh || | |
22582 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
22583 | |
22584 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
22585 if test $ac_delim_n = $ac_delim_num; then | |
22586 break | |
22587 elif $ac_last_try; then | |
22588 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
22589 else | |
22590 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
22591 fi | |
22592 done | |
22593 rm -f conf$$subs.sh | |
22594 | |
22595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22596 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
22597 _ACEOF | |
22598 sed -n ' | |
22599 h | |
22600 s/^/S["/; s/!.*/"]=/ | |
22601 p | |
22602 g | |
22603 s/^[^!]*!// | |
22604 :repl | |
22605 t repl | |
22606 s/'"$ac_delim"'$// | |
22607 t delim | |
22608 :nl | |
22609 h | |
22610 s/\(.\{148\}\)..*/\1/ | |
22611 t more1 | |
22612 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
22613 p | |
22614 n | |
22615 b repl | |
22616 :more1 | |
22617 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
22618 p | |
22619 g | |
22620 s/.\{148\}// | |
22621 t nl | |
22622 :delim | |
22623 h | |
22624 s/\(.\{148\}\)..*/\1/ | |
22625 t more2 | |
22626 s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
22627 p | |
22628 b | |
22629 :more2 | |
22630 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
22631 p | |
22632 g | |
22633 s/.\{148\}// | |
22634 t delim | |
22635 ' <conf$$subs.awk | sed ' | |
22636 /^[^""]/{ | |
22637 N | |
22638 s/\n// | |
22639 } | |
22640 ' >>$CONFIG_STATUS || ac_write_fail=1 | |
22641 rm -f conf$$subs.awk | |
22642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22643 _ACAWK | |
22644 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
22645 for (key in S) S_is_set[key] = 1 | |
22646 FS = "" | |
22647 | |
22648 } | |
22649 { | |
22650 line = $ 0 | |
22651 nfields = split(line, field, "@") | |
22652 substed = 0 | |
22653 len = length(field[1]) | |
22654 for (i = 2; i < nfields; i++) { | |
22655 key = field[i] | |
22656 keylen = length(key) | |
22657 if (S_is_set[key]) { | |
22658 value = S[key] | |
22659 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
22660 len += length(value) + length(field[++i]) | |
22661 substed = 1 | |
22662 } else | |
22663 len += 1 + keylen | |
22664 } | |
22665 | |
22666 print line | |
22667 } | |
22668 | |
22669 _ACAWK | |
22670 _ACEOF | |
22671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
22672 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
22673 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
22674 else | |
22675 cat | |
22676 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
22677 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
22678 _ACEOF | |
22679 | |
22680 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
22681 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
22682 # trailing colons and then remove the whole line if VPATH becomes empty | |
22683 # (actually we leave an empty line to preserve line numbers). | |
22684 if test "x$srcdir" = x.; then | |
22685 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
22686 h | |
22687 s/// | |
22688 s/^/:/ | |
22689 s/[ ]*$/:/ | |
22690 s/:\$(srcdir):/:/g | |
22691 s/:\${srcdir}:/:/g | |
22692 s/:@srcdir@:/:/g | |
22693 s/^:*// | |
22694 s/:*$// | |
22695 x | |
22696 s/\(=[ ]*\).*/\1/ | |
22697 G | |
22698 s/\n// | |
22699 s/^[^=]*=[ ]*$// | |
22700 }' | |
22701 fi | |
22702 | |
22703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
22704 fi # test -n "$CONFIG_FILES" | |
22705 | |
22706 # Set up the scripts for CONFIG_HEADERS section. | |
22707 # No need to generate them if there are no CONFIG_HEADERS. | |
22708 # This happens for instance with `./config.status Makefile'. | |
22709 if test -n "$CONFIG_HEADERS"; then | |
22710 cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
22711 BEGIN { | |
22712 _ACEOF | |
22713 | |
22714 # Transform confdefs.h into an awk script `defines.awk', embedded as | |
22715 # here-document in config.status, that substitutes the proper values into | |
22716 # config.h.in to produce config.h. | |
22717 | |
22718 # Create a delimiter string that does not exist in confdefs.h, to ease | |
22719 # handling of long lines. | |
22720 ac_delim='%!_!# ' | |
22721 for ac_last_try in false false :; do | |
22722 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
22723 if test -z "$ac_tt"; then | |
22724 break | |
22725 elif $ac_last_try; then | |
22726 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
22727 else | |
22728 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
22729 fi | |
22730 done | |
22731 | |
22732 # For the awk script, D is an array of macro values keyed by name, | |
22733 # likewise P contains macro parameters if any. Preserve backslash | |
22734 # newline sequences. | |
22735 | |
22736 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
22737 sed -n ' | |
22738 s/.\{148\}/&'"$ac_delim"'/g | |
22739 t rset | |
22740 :rset | |
22741 s/^[ ]*#[ ]*define[ ][ ]*/ / | |
22742 t def | |
22743 d | |
22744 :def | |
22745 s/\\$// | |
22746 t bsnl | |
22747 s/["\\]/\\&/g | |
22748 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
22749 D["\1"]=" \3"/p | |
22750 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
22751 d | |
22752 :bsnl | |
22753 s/["\\]/\\&/g | |
22754 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
22755 D["\1"]=" \3\\\\\\n"\\/p | |
22756 t cont | |
22757 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
22758 t cont | |
22759 d | |
22760 :cont | |
22761 n | |
22762 s/.\{148\}/&'"$ac_delim"'/g | |
22763 t clear | |
22764 :clear | |
22765 s/\\$// | |
22766 t bsnlc | |
22767 s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
22768 d | |
22769 :bsnlc | |
22770 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
22771 b cont | |
22772 ' <confdefs.h | sed ' | |
22773 s/'"$ac_delim"'/"\\\ | |
22774 "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
22775 | |
22776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22777 for (key in D) D_is_set[key] = 1 | |
22778 FS = "" | |
22779 } | |
22780 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
22781 line = \$ 0 | |
22782 split(line, arg, " ") | |
22783 if (arg[1] == "#") { | |
22784 defundef = arg[2] | |
22785 mac1 = arg[3] | |
22786 } else { | |
22787 defundef = substr(arg[1], 2) | |
22788 mac1 = arg[2] | |
22789 } | |
22790 split(mac1, mac2, "(") #) | |
22791 macro = mac2[1] | |
22792 prefix = substr(line, 1, index(line, defundef) - 1) | |
22793 if (D_is_set[macro]) { | |
22794 # Preserve the white space surrounding the "#". | |
22795 print prefix "define", macro P[macro] D[macro] | |
22796 next | |
22797 } else { | |
22798 # Replace #undef with comments. This is necessary, for example, | |
22799 # in the case of _POSIX_SOURCE, which is predefined and required | |
22800 # on some systems where configure will not decide to define it. | |
22801 if (defundef == "undef") { | |
22802 print "/*", prefix defundef, macro, "*/" | |
22803 next | |
22804 } | |
22805 } | |
22806 } | |
22807 { print } | |
22808 _ACAWK | |
22809 _ACEOF | |
22810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
22811 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
22812 fi # test -n "$CONFIG_HEADERS" | |
22813 | |
22814 | |
22815 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
22816 shift | |
22817 for ac_tag | |
22818 do | |
22819 case $ac_tag in | |
22820 :[FHLC]) ac_mode=$ac_tag; continue;; | |
22821 esac | |
22822 case $ac_mode$ac_tag in | |
22823 :[FHL]*:*);; | |
22824 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
22825 :[FH]-) ac_tag=-:-;; | |
22826 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
22827 esac | |
22828 ac_save_IFS=$IFS | |
22829 IFS=: | |
22830 set x $ac_tag | |
22831 IFS=$ac_save_IFS | |
22832 shift | |
22833 ac_file=$1 | |
22834 shift | |
22835 | |
22836 case $ac_mode in | |
22837 :L) ac_source=$1;; | |
22838 :[FH]) | |
22839 ac_file_inputs= | |
22840 for ac_f | |
22841 do | |
22842 case $ac_f in | |
22843 -) ac_f="$ac_tmp/stdin";; | |
22844 *) # Look for the file first in the build tree, then in the source tree | |
22845 # (if the path is not absolute). The absolute path cannot be DOS-style, | |
22846 # because $ac_f cannot contain `:'. | |
22847 test -f "$ac_f" || | |
22848 case $ac_f in | |
22849 [\\/$]*) false;; | |
22850 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
22851 esac || | |
22852 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
22853 esac | |
22854 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
22855 as_fn_append ac_file_inputs " '$ac_f'" | |
22856 done | |
22857 | |
22858 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
22859 # use $as_me), people would be surprised to read: | |
22860 # /* config.h. Generated by config.status. */ | |
22861 configure_input='Generated from '` | |
22862 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
22863 `' by configure.' | |
22864 if test x"$ac_file" != x-; then | |
22865 configure_input="$ac_file. $configure_input" | |
22866 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
22867 $as_echo "$as_me: creating $ac_file" >&6;} | |
22868 fi | |
22869 # Neutralize special characters interpreted by sed in replacement strings. | |
22870 case $configure_input in #( | |
22871 *\&* | *\|* | *\\* ) | |
22872 ac_sed_conf_input=`$as_echo "$configure_input" | | |
22873 sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
22874 *) ac_sed_conf_input=$configure_input;; | |
22875 esac | |
22876 | |
22877 case $ac_tag in | |
22878 *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
22879 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
22880 esac | |
22881 ;; | |
22882 esac | |
22883 | |
22884 ac_dir=`$as_dirname -- "$ac_file" || | |
22885 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22886 X"$ac_file" : 'X\(//\)[^/]' \| \ | |
22887 X"$ac_file" : 'X\(//\)$' \| \ | |
22888 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
22889 $as_echo X"$ac_file" | | |
22890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
22891 s//\1/ | |
22892 q | |
22893 } | |
22894 /^X\(\/\/\)[^/].*/{ | |
22895 s//\1/ | |
22896 q | |
22897 } | |
22898 /^X\(\/\/\)$/{ | |
22899 s//\1/ | |
22900 q | |
22901 } | |
22902 /^X\(\/\).*/{ | |
22903 s//\1/ | |
22904 q | |
22905 } | |
22906 s/.*/./; q'` | |
22907 as_dir="$ac_dir"; as_fn_mkdir_p | |
22908 ac_builddir=. | |
22909 | |
22910 case "$ac_dir" in | |
22911 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
22912 *) | |
22913 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
22914 # A ".." for each directory in $ac_dir_suffix. | |
22915 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
22916 case $ac_top_builddir_sub in | |
22917 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
22918 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
22919 esac ;; | |
22920 esac | |
22921 ac_abs_top_builddir=$ac_pwd | |
22922 ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
22923 # for backward compatibility: | |
22924 ac_top_builddir=$ac_top_build_prefix | |
22925 | |
22926 case $srcdir in | |
22927 .) # We are building in place. | |
22928 ac_srcdir=. | |
22929 ac_top_srcdir=$ac_top_builddir_sub | |
22930 ac_abs_top_srcdir=$ac_pwd ;; | |
22931 [\\/]* | ?:[\\/]* ) # Absolute name. | |
22932 ac_srcdir=$srcdir$ac_dir_suffix; | |
22933 ac_top_srcdir=$srcdir | |
22934 ac_abs_top_srcdir=$srcdir ;; | |
22935 *) # Relative name. | |
22936 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
22937 ac_top_srcdir=$ac_top_build_prefix$srcdir | |
22938 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
22939 esac | |
22940 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
22941 | |
22942 | |
22943 case $ac_mode in | |
22944 :F) | |
22945 # | |
22946 # CONFIG_FILE | |
22947 # | |
22948 | |
22949 case $INSTALL in | |
22950 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
22951 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
22952 esac | |
22953 ac_MKDIR_P=$MKDIR_P | |
22954 case $MKDIR_P in | |
22955 [\\/$]* | ?:[\\/]* ) ;; | |
22956 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
22957 esac | |
22958 _ACEOF | |
22959 | |
22960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
22961 # If the template does not know about datarootdir, expand it. | |
22962 # FIXME: This hack should be removed a few years after 2.60. | |
22963 ac_datarootdir_hack=; ac_datarootdir_seen= | |
22964 ac_sed_dataroot=' | |
22965 /datarootdir/ { | |
22966 p | |
22967 q | |
22968 } | |
22969 /@datadir@/p | |
22970 /@docdir@/p | |
22971 /@infodir@/p | |
22972 /@localedir@/p | |
22973 /@mandir@/p' | |
22974 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
22975 *datarootdir*) ac_datarootdir_seen=yes;; | |
22976 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
22977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
22978 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
22979 _ACEOF | |
22980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22981 ac_datarootdir_hack=' | |
22982 s&@datadir@&$datadir&g | |
22983 s&@docdir@&$docdir&g | |
22984 s&@infodir@&$infodir&g | |
22985 s&@localedir@&$localedir&g | |
22986 s&@mandir@&$mandir&g | |
22987 s&\\\${datarootdir}&$datarootdir&g' ;; | |
22988 esac | |
22989 _ACEOF | |
22990 | |
22991 # Neutralize VPATH when `$srcdir' = `.'. | |
22992 # Shell code in configure.ac might set extrasub. | |
22993 # FIXME: do we really want to maintain this feature? | |
22994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22995 ac_sed_extra="$ac_vpsub | |
22996 $extrasub | |
22997 _ACEOF | |
22998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
22999 :t | |
23000 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
23001 s|@configure_input@|$ac_sed_conf_input|;t t | |
23002 s&@top_builddir@&$ac_top_builddir_sub&;t t | |
23003 s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
23004 s&@srcdir@&$ac_srcdir&;t t | |
23005 s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
23006 s&@top_srcdir@&$ac_top_srcdir&;t t | |
23007 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
23008 s&@builddir@&$ac_builddir&;t t | |
23009 s&@abs_builddir@&$ac_abs_builddir&;t t | |
23010 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
23011 s&@INSTALL@&$ac_INSTALL&;t t | |
23012 s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
23013 $ac_datarootdir_hack | |
23014 " | |
23015 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
23016 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
23017 | |
23018 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
23019 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
23020 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
23021 "$ac_tmp/out"`; test -z "$ac_out"; } && | |
23022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
23023 which seems to be undefined. Please make sure it is defined" >&5 | |
23024 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
23025 which seems to be undefined. Please make sure it is defined" >&2;} | |
23026 | |
23027 rm -f "$ac_tmp/stdin" | |
23028 case $ac_file in | |
23029 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
23030 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
23031 esac \ | |
23032 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
23033 ;; | |
23034 :H) | |
23035 # | |
23036 # CONFIG_HEADER | |
23037 # | |
23038 if test x"$ac_file" != x-; then | |
23039 { | |
23040 $as_echo "/* $configure_input */" \ | |
23041 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
23042 } >"$ac_tmp/config.h" \ | |
23043 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
23044 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
23045 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
23046 $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
23047 else | |
23048 rm -f "$ac_file" | |
23049 mv "$ac_tmp/config.h" "$ac_file" \ | |
23050 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
23051 fi | |
23052 else | |
23053 $as_echo "/* $configure_input */" \ | |
23054 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
23055 || as_fn_error $? "could not create -" "$LINENO" 5 | |
23056 fi | |
23057 # Compute "$ac_file"'s index in $config_headers. | |
23058 _am_arg="$ac_file" | |
23059 _am_stamp_count=1 | |
23060 for _am_header in $config_headers :; do | |
23061 case $_am_header in | |
23062 $_am_arg | $_am_arg:* ) | |
23063 break ;; | |
23064 * ) | |
23065 _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
23066 esac | |
23067 done | |
23068 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
23069 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23070 X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
23071 X"$_am_arg" : 'X\(//\)$' \| \ | |
23072 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
23073 $as_echo X"$_am_arg" | | |
23074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
23075 s//\1/ | |
23076 q | |
23077 } | |
23078 /^X\(\/\/\)[^/].*/{ | |
23079 s//\1/ | |
23080 q | |
23081 } | |
23082 /^X\(\/\/\)$/{ | |
23083 s//\1/ | |
23084 q | |
23085 } | |
23086 /^X\(\/\).*/{ | |
23087 s//\1/ | |
23088 q | |
23089 } | |
23090 s/.*/./; q'`/stamp-h$_am_stamp_count | |
23091 ;; | |
23092 | |
23093 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
23094 $as_echo "$as_me: executing $ac_file commands" >&6;} | |
23095 ;; | |
23096 esac | |
23097 | |
23098 | |
23099 case $ac_file$ac_mode in | |
23100 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
23101 # Older Autoconf quotes --file arguments for eval, but not when files | |
23102 # are listed without --file. Let's play safe and only enable the eval | |
23103 # if we detect the quoting. | |
23104 case $CONFIG_FILES in | |
23105 *\'*) eval set x "$CONFIG_FILES" ;; | |
23106 *) set x $CONFIG_FILES ;; | |
23107 esac | |
23108 shift | |
23109 for mf | |
23110 do | |
23111 # Strip MF so we end up with the name of the file. | |
23112 mf=`echo "$mf" | sed -e 's/:.*$//'` | |
23113 # Check whether this is an Automake generated Makefile or not. | |
23114 # We used to match only the files named 'Makefile.in', but | |
23115 # some people rename them; so instead we look at the file content. | |
23116 # Grep'ing the first line is not enough: some people post-process | |
23117 # each Makefile.in and add a new line on top of each file to say so. | |
23118 # Grep'ing the whole file is not good either: AIX grep has a line | |
23119 # limit of 2048, but all sed's we know have understand at least 4000. | |
23120 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
23121 dirpart=`$as_dirname -- "$mf" || | |
23122 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23123 X"$mf" : 'X\(//\)[^/]' \| \ | |
23124 X"$mf" : 'X\(//\)$' \| \ | |
23125 X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
23126 $as_echo X"$mf" | | |
23127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
23128 s//\1/ | |
23129 q | |
23130 } | |
23131 /^X\(\/\/\)[^/].*/{ | |
23132 s//\1/ | |
23133 q | |
23134 } | |
23135 /^X\(\/\/\)$/{ | |
23136 s//\1/ | |
23137 q | |
23138 } | |
23139 /^X\(\/\).*/{ | |
23140 s//\1/ | |
23141 q | |
23142 } | |
23143 s/.*/./; q'` | |
23144 else | |
23145 continue | |
23146 fi | |
23147 # Extract the definition of DEPDIR, am__include, and am__quote | |
23148 # from the Makefile without running 'make'. | |
23149 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
23150 test -z "$DEPDIR" && continue | |
23151 am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
23152 test -z "$am__include" && continue | |
23153 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
23154 # Find all dependency output files, they are included files with | |
23155 # $(DEPDIR) in their names. We invoke sed twice because it is the | |
23156 # simplest approach to changing $(DEPDIR) to its actual value in the | |
23157 # expansion. | |
23158 for file in `sed -n " | |
23159 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
23160 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
23161 # Make sure the directory exists. | |
23162 test -f "$dirpart/$file" && continue | |
23163 fdir=`$as_dirname -- "$file" || | |
23164 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23165 X"$file" : 'X\(//\)[^/]' \| \ | |
23166 X"$file" : 'X\(//\)$' \| \ | |
23167 X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
23168 $as_echo X"$file" | | |
23169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
23170 s//\1/ | |
23171 q | |
23172 } | |
23173 /^X\(\/\/\)[^/].*/{ | |
23174 s//\1/ | |
23175 q | |
23176 } | |
23177 /^X\(\/\/\)$/{ | |
23178 s//\1/ | |
23179 q | |
23180 } | |
23181 /^X\(\/\).*/{ | |
23182 s//\1/ | |
23183 q | |
23184 } | |
23185 s/.*/./; q'` | |
23186 as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
23187 # echo "creating $dirpart/$file" | |
23188 echo '# dummy' > "$dirpart/$file" | |
23189 done | |
23190 done | |
23191 } | |
23192 ;; | |
23193 "libtool":C) | |
23194 | |
23195 # See if we are running on zsh, and set the options which allow our | |
23196 # commands through without removal of \ escapes. | |
23197 if test -n "${ZSH_VERSION+set}" ; then | |
23198 setopt NO_GLOB_SUBST | |
23199 fi | |
23200 | |
23201 cfgfile="${ofile}T" | |
23202 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
23203 $RM "$cfgfile" | |
23204 | |
23205 cat <<_LT_EOF >> "$cfgfile" | |
23206 #! $SHELL | |
23207 | |
23208 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
23209 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
23210 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
23211 # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
23212 # | |
23213 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
23214 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software | |
23215 # Foundation, Inc. | |
23216 # Written by Gordon Matzigkeit, 1996 | |
23217 # | |
23218 # This file is part of GNU Libtool. | |
23219 # | |
23220 # GNU Libtool is free software; you can redistribute it and/or | |
23221 # modify it under the terms of the GNU General Public License as | |
23222 # published by the Free Software Foundation; either version 2 of | |
23223 # the License, or (at your option) any later version. | |
23224 # | |
23225 # As a special exception to the GNU General Public License, | |
23226 # if you distribute this file as part of a program or library that | |
23227 # is built using GNU Libtool, you may include this file under the | |
23228 # same distribution terms that you use for the rest of that program. | |
23229 # | |
23230 # GNU Libtool is distributed in the hope that it will be useful, | |
23231 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
23232 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
23233 # GNU General Public License for more details. | |
23234 # | |
23235 # You should have received a copy of the GNU General Public License | |
23236 # along with GNU Libtool; see the file COPYING. If not, a copy | |
23237 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
23238 # obtained by writing to the Free Software Foundation, Inc., | |
23239 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
23240 | |
23241 | |
23242 # The names of the tagged configurations supported by this script. | |
23243 available_tags="F77 " | |
23244 | |
23245 # ### BEGIN LIBTOOL CONFIG | |
23246 | |
23247 # Whether or not to build shared libraries. | |
23248 build_libtool_libs=$enable_shared | |
23249 | |
23250 # Assembler program. | |
23251 AS=$lt_AS | |
23252 | |
23253 # DLL creation program. | |
23254 DLLTOOL=$lt_DLLTOOL | |
23255 | |
23256 # Object dumper program. | |
23257 OBJDUMP=$lt_OBJDUMP | |
23258 | |
23259 # Which release of libtool.m4 was used? | |
23260 macro_version=$macro_version | |
23261 macro_revision=$macro_revision | |
23262 | |
23263 # Whether or not to build static libraries. | |
23264 build_old_libs=$enable_static | |
23265 | |
23266 # What type of objects to build. | |
23267 pic_mode=$pic_mode | |
23268 | |
23269 # Whether or not to optimize for fast installation. | |
23270 fast_install=$enable_fast_install | |
23271 | |
23272 # Shell to use when invoking shell scripts. | |
23273 SHELL=$lt_SHELL | |
23274 | |
23275 # An echo program that protects backslashes. | |
23276 ECHO=$lt_ECHO | |
23277 | |
23278 # The PATH separator for the build system. | |
23279 PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
23280 | |
23281 # The host system. | |
23282 host_alias=$host_alias | |
23283 host=$host | |
23284 host_os=$host_os | |
23285 | |
23286 # The build system. | |
23287 build_alias=$build_alias | |
23288 build=$build | |
23289 build_os=$build_os | |
23290 | |
23291 # A sed program that does not truncate output. | |
23292 SED=$lt_SED | |
23293 | |
23294 # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
23295 Xsed="\$SED -e 1s/^X//" | |
23296 | |
23297 # A grep program that handles long lines. | |
23298 GREP=$lt_GREP | |
23299 | |
23300 # An ERE matcher. | |
23301 EGREP=$lt_EGREP | |
23302 | |
23303 # A literal string matcher. | |
23304 FGREP=$lt_FGREP | |
23305 | |
23306 # A BSD- or MS-compatible name lister. | |
23307 NM=$lt_NM | |
23308 | |
23309 # Whether we need soft or hard links. | |
23310 LN_S=$lt_LN_S | |
23311 | |
23312 # What is the maximum length of a command? | |
23313 max_cmd_len=$max_cmd_len | |
23314 | |
23315 # Object file suffix (normally "o"). | |
23316 objext=$ac_objext | |
23317 | |
23318 # Executable file suffix (normally ""). | |
23319 exeext=$exeext | |
23320 | |
23321 # whether the shell understands "unset". | |
23322 lt_unset=$lt_unset | |
23323 | |
23324 # turn spaces into newlines. | |
23325 SP2NL=$lt_lt_SP2NL | |
23326 | |
23327 # turn newlines into spaces. | |
23328 NL2SP=$lt_lt_NL2SP | |
23329 | |
23330 # convert \$build file names to \$host format. | |
23331 to_host_file_cmd=$lt_cv_to_host_file_cmd | |
23332 | |
23333 # convert \$build files to toolchain format. | |
23334 to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
23335 | |
23336 # Method to check whether dependent libraries are shared objects. | |
23337 deplibs_check_method=$lt_deplibs_check_method | |
23338 | |
23339 # Command to use when deplibs_check_method = "file_magic". | |
23340 file_magic_cmd=$lt_file_magic_cmd | |
23341 | |
23342 # How to find potential files when deplibs_check_method = "file_magic". | |
23343 file_magic_glob=$lt_file_magic_glob | |
23344 | |
23345 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
23346 want_nocaseglob=$lt_want_nocaseglob | |
23347 | |
23348 # Command to associate shared and link libraries. | |
23349 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
23350 | |
23351 # The archiver. | |
23352 AR=$lt_AR | |
23353 | |
23354 # Flags to create an archive. | |
23355 AR_FLAGS=$lt_AR_FLAGS | |
23356 | |
23357 # How to feed a file listing to the archiver. | |
23358 archiver_list_spec=$lt_archiver_list_spec | |
23359 | |
23360 # A symbol stripping program. | |
23361 STRIP=$lt_STRIP | |
23362 | |
23363 # Commands used to install an old-style archive. | |
23364 RANLIB=$lt_RANLIB | |
23365 old_postinstall_cmds=$lt_old_postinstall_cmds | |
23366 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
23367 | |
23368 # Whether to use a lock for old archive extraction. | |
23369 lock_old_archive_extraction=$lock_old_archive_extraction | |
23370 | |
23371 # A C compiler. | |
23372 LTCC=$lt_CC | |
23373 | |
23374 # LTCC compiler flags. | |
23375 LTCFLAGS=$lt_CFLAGS | |
23376 | |
23377 # Take the output of nm and produce a listing of raw symbols and C names. | |
23378 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
23379 | |
23380 # Transform the output of nm in a proper C declaration. | |
23381 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
23382 | |
23383 # Transform the output of nm in a C name address pair. | |
23384 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
23385 | |
23386 # Transform the output of nm in a C name address pair when lib prefix is needed. | |
23387 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
23388 | |
23389 # Specify filename containing input files for \$NM. | |
23390 nm_file_list_spec=$lt_nm_file_list_spec | |
23391 | |
23392 # The root where to search for dependent libraries,and in which our libraries should be installed. | |
23393 lt_sysroot=$lt_sysroot | |
23394 | |
23395 # The name of the directory that contains temporary libtool files. | |
23396 objdir=$objdir | |
23397 | |
23398 # Used to examine libraries when file_magic_cmd begins with "file". | |
23399 MAGIC_CMD=$MAGIC_CMD | |
23400 | |
23401 # Must we lock files when doing compilation? | |
23402 need_locks=$lt_need_locks | |
23403 | |
23404 # Manifest tool. | |
23405 MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
23406 | |
23407 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
23408 DSYMUTIL=$lt_DSYMUTIL | |
23409 | |
23410 # Tool to change global to local symbols on Mac OS X. | |
23411 NMEDIT=$lt_NMEDIT | |
23412 | |
23413 # Tool to manipulate fat objects and archives on Mac OS X. | |
23414 LIPO=$lt_LIPO | |
23415 | |
23416 # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
23417 OTOOL=$lt_OTOOL | |
23418 | |
23419 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
23420 OTOOL64=$lt_OTOOL64 | |
23421 | |
23422 # Old archive suffix (normally "a"). | |
23423 libext=$libext | |
23424 | |
23425 # Shared library suffix (normally ".so"). | |
23426 shrext_cmds=$lt_shrext_cmds | |
23427 | |
23428 # The commands to extract the exported symbol list from a shared archive. | |
23429 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
23430 | |
23431 # Variables whose values should be saved in libtool wrapper scripts and | |
23432 # restored at link time. | |
23433 variables_saved_for_relink=$lt_variables_saved_for_relink | |
23434 | |
23435 # Do we need the "lib" prefix for modules? | |
23436 need_lib_prefix=$need_lib_prefix | |
23437 | |
23438 # Do we need a version for libraries? | |
23439 need_version=$need_version | |
23440 | |
23441 # Library versioning type. | |
23442 version_type=$version_type | |
23443 | |
23444 # Shared library runtime path variable. | |
23445 runpath_var=$runpath_var | |
23446 | |
23447 # Shared library path variable. | |
23448 shlibpath_var=$shlibpath_var | |
23449 | |
23450 # Is shlibpath searched before the hard-coded library search path? | |
23451 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
23452 | |
23453 # Format of library name prefix. | |
23454 libname_spec=$lt_libname_spec | |
23455 | |
23456 # List of archive names. First name is the real one, the rest are links. | |
23457 # The last name is the one that the linker finds with -lNAME | |
23458 library_names_spec=$lt_library_names_spec | |
23459 | |
23460 # The coded name of the library, if different from the real name. | |
23461 soname_spec=$lt_soname_spec | |
23462 | |
23463 # Permission mode override for installation of shared libraries. | |
23464 install_override_mode=$lt_install_override_mode | |
23465 | |
23466 # Command to use after installation of a shared archive. | |
23467 postinstall_cmds=$lt_postinstall_cmds | |
23468 | |
23469 # Command to use after uninstallation of a shared archive. | |
23470 postuninstall_cmds=$lt_postuninstall_cmds | |
23471 | |
23472 # Commands used to finish a libtool library installation in a directory. | |
23473 finish_cmds=$lt_finish_cmds | |
23474 | |
23475 # As "finish_cmds", except a single script fragment to be evaled but | |
23476 # not shown. | |
23477 finish_eval=$lt_finish_eval | |
23478 | |
23479 # Whether we should hardcode library paths into libraries. | |
23480 hardcode_into_libs=$hardcode_into_libs | |
23481 | |
23482 # Compile-time system search path for libraries. | |
23483 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
23484 | |
23485 # Run-time system search path for libraries. | |
23486 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
23487 | |
23488 # Whether dlopen is supported. | |
23489 dlopen_support=$enable_dlopen | |
23490 | |
23491 # Whether dlopen of programs is supported. | |
23492 dlopen_self=$enable_dlopen_self | |
23493 | |
23494 # Whether dlopen of statically linked programs is supported. | |
23495 dlopen_self_static=$enable_dlopen_self_static | |
23496 | |
23497 # Commands to strip libraries. | |
23498 old_striplib=$lt_old_striplib | |
23499 striplib=$lt_striplib | |
23500 | |
23501 | |
23502 # The linker used to build libraries. | |
23503 LD=$lt_LD | |
23504 | |
23505 # How to create reloadable object files. | |
23506 reload_flag=$lt_reload_flag | |
23507 reload_cmds=$lt_reload_cmds | |
23508 | |
23509 # Commands used to build an old-style archive. | |
23510 old_archive_cmds=$lt_old_archive_cmds | |
23511 | |
23512 # A language specific compiler. | |
23513 CC=$lt_compiler | |
23514 | |
23515 # Is the compiler the GNU compiler? | |
23516 with_gcc=$GCC | |
23517 | |
23518 # Compiler flag to turn off builtin functions. | |
23519 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
23520 | |
23521 # Additional compiler flags for building library objects. | |
23522 pic_flag=$lt_lt_prog_compiler_pic | |
23523 | |
23524 # How to pass a linker flag through the compiler. | |
23525 wl=$lt_lt_prog_compiler_wl | |
23526 | |
23527 # Compiler flag to prevent dynamic linking. | |
23528 link_static_flag=$lt_lt_prog_compiler_static | |
23529 | |
23530 # Does compiler simultaneously support -c and -o options? | |
23531 compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
23532 | |
23533 # Whether or not to add -lc for building shared libraries. | |
23534 build_libtool_need_lc=$archive_cmds_need_lc | |
23535 | |
23536 # Whether or not to disallow shared libs when runtime libs are static. | |
23537 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
23538 | |
23539 # Compiler flag to allow reflexive dlopens. | |
23540 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
23541 | |
23542 # Compiler flag to generate shared objects directly from archives. | |
23543 whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
23544 | |
23545 # Whether the compiler copes with passing no objects directly. | |
23546 compiler_needs_object=$lt_compiler_needs_object | |
23547 | |
23548 # Create an old-style archive from a shared archive. | |
23549 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
23550 | |
23551 # Create a temporary old-style archive to link instead of a shared archive. | |
23552 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
23553 | |
23554 # Commands used to build a shared archive. | |
23555 archive_cmds=$lt_archive_cmds | |
23556 archive_expsym_cmds=$lt_archive_expsym_cmds | |
23557 | |
23558 # Commands used to build a loadable module if different from building | |
23559 # a shared archive. | |
23560 module_cmds=$lt_module_cmds | |
23561 module_expsym_cmds=$lt_module_expsym_cmds | |
23562 | |
23563 # Whether we are building with GNU ld or not. | |
23564 with_gnu_ld=$lt_with_gnu_ld | |
23565 | |
23566 # Flag that allows shared libraries with undefined symbols to be built. | |
23567 allow_undefined_flag=$lt_allow_undefined_flag | |
23568 | |
23569 # Flag that enforces no undefined symbols. | |
23570 no_undefined_flag=$lt_no_undefined_flag | |
23571 | |
23572 # Flag to hardcode \$libdir into a binary during linking. | |
23573 # This must work even if \$libdir does not exist | |
23574 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
23575 | |
23576 # Whether we need a single "-rpath" flag with a separated argument. | |
23577 hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
23578 | |
23579 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
23580 # DIR into the resulting binary. | |
23581 hardcode_direct=$hardcode_direct | |
23582 | |
23583 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
23584 # DIR into the resulting binary and the resulting library dependency is | |
23585 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
23586 # library is relocated. | |
23587 hardcode_direct_absolute=$hardcode_direct_absolute | |
23588 | |
23589 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
23590 # into the resulting binary. | |
23591 hardcode_minus_L=$hardcode_minus_L | |
23592 | |
23593 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
23594 # into the resulting binary. | |
23595 hardcode_shlibpath_var=$hardcode_shlibpath_var | |
23596 | |
23597 # Set to "yes" if building a shared library automatically hardcodes DIR | |
23598 # into the library and all subsequent libraries and executables linked | |
23599 # against it. | |
23600 hardcode_automatic=$hardcode_automatic | |
23601 | |
23602 # Set to yes if linker adds runtime paths of dependent libraries | |
23603 # to runtime path list. | |
23604 inherit_rpath=$inherit_rpath | |
23605 | |
23606 # Whether libtool must link a program against all its dependency libraries. | |
23607 link_all_deplibs=$link_all_deplibs | |
23608 | |
23609 # Set to "yes" if exported symbols are required. | |
23610 always_export_symbols=$always_export_symbols | |
23611 | |
23612 # The commands to list exported symbols. | |
23613 export_symbols_cmds=$lt_export_symbols_cmds | |
23614 | |
23615 # Symbols that should not be listed in the preloaded symbols. | |
23616 exclude_expsyms=$lt_exclude_expsyms | |
23617 | |
23618 # Symbols that must always be exported. | |
23619 include_expsyms=$lt_include_expsyms | |
23620 | |
23621 # Commands necessary for linking programs (against libraries) with templates. | |
23622 prelink_cmds=$lt_prelink_cmds | |
23623 | |
23624 # Commands necessary for finishing linking programs. | |
23625 postlink_cmds=$lt_postlink_cmds | |
23626 | |
23627 # Specify filename containing input files. | |
23628 file_list_spec=$lt_file_list_spec | |
23629 | |
23630 # How to hardcode a shared library path into an executable. | |
23631 hardcode_action=$hardcode_action | |
23632 | |
23633 # ### END LIBTOOL CONFIG | |
23634 | |
23635 _LT_EOF | |
23636 | |
23637 case $host_os in | |
23638 aix3*) | |
23639 cat <<\_LT_EOF >> "$cfgfile" | |
23640 # AIX sometimes has problems with the GCC collect2 program. For some | |
23641 # reason, if we set the COLLECT_NAMES environment variable, the problems | |
23642 # vanish in a puff of smoke. | |
23643 if test "X${COLLECT_NAMES+set}" != Xset; then | |
23644 COLLECT_NAMES= | |
23645 export COLLECT_NAMES | |
23646 fi | |
23647 _LT_EOF | |
23648 ;; | |
23649 esac | |
23650 | |
23651 | |
23652 ltmain="$ac_aux_dir/ltmain.sh" | |
23653 | |
23654 | |
23655 # We use sed instead of cat because bash on DJGPP gets confused if | |
23656 # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
23657 # text mode, it properly converts lines to CR/LF. This bash problem | |
23658 # is reportedly fixed, but why not run on old versions too? | |
23659 sed '$q' "$ltmain" >> "$cfgfile" \ | |
23660 || (rm -f "$cfgfile"; exit 1) | |
23661 | |
23662 if test x"$xsi_shell" = xyes; then | |
23663 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | |
23664 func_dirname ()\ | |
23665 {\ | |
23666 \ case ${1} in\ | |
23667 \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
23668 \ * ) func_dirname_result="${3}" ;;\ | |
23669 \ esac\ | |
23670 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | |
23671 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
23672 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
23673 test 0 -eq $? || _lt_function_replace_fail=: | |
23674 | |
23675 | |
23676 sed -e '/^func_basename ()$/,/^} # func_basename /c\ | |
23677 func_basename ()\ | |
23678 {\ | |
23679 \ func_basename_result="${1##*/}"\ | |
23680 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
23681 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
23682 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
23683 test 0 -eq $? || _lt_function_replace_fail=: | |
23684 | |
23685 | |
23686 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | |
23687 func_dirname_and_basename ()\ | |
23688 {\ | |
23689 \ case ${1} in\ | |
23690 \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
23691 \ * ) func_dirname_result="${3}" ;;\ | |
23692 \ esac\ | |
23693 \ func_basename_result="${1##*/}"\ | |
23694 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
23695 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
23696 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
23697 test 0 -eq $? || _lt_function_replace_fail=: | |
23698 | |
23699 | |
23700 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | |
23701 func_stripname ()\ | |
23702 {\ | |
23703 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | |
23704 \ # positional parameters, so assign one to ordinary parameter first.\ | |
23705 \ func_stripname_result=${3}\ | |
23706 \ func_stripname_result=${func_stripname_result#"${1}"}\ | |
23707 \ func_stripname_result=${func_stripname_result%"${2}"}\ | |
23708 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | |
23709 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
23710 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
23711 test 0 -eq $? || _lt_function_replace_fail=: | |
23712 | |
23713 | |
23714 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | |
23715 func_split_long_opt ()\ | |
23716 {\ | |
23717 \ func_split_long_opt_name=${1%%=*}\ | |
23718 \ func_split_long_opt_arg=${1#*=}\ | |
23719 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
23720 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
23721 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
23722 test 0 -eq $? || _lt_function_replace_fail=: | |
23723 | |
23724 | |
23725 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | |
23726 func_split_short_opt ()\ | |
23727 {\ | |
23728 \ func_split_short_opt_arg=${1#??}\ | |
23729 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | |
23730 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
23731 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
23732 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
23733 test 0 -eq $? || _lt_function_replace_fail=: | |
23734 | |
23735 | |
23736 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | |
23737 func_lo2o ()\ | |
23738 {\ | |
23739 \ case ${1} in\ | |
23740 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | |
23741 \ *) func_lo2o_result=${1} ;;\ | |
23742 \ esac\ | |
23743 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | |
23744 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
23745 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
23746 test 0 -eq $? || _lt_function_replace_fail=: | |
23747 | |
23748 | |
23749 sed -e '/^func_xform ()$/,/^} # func_xform /c\ | |
23750 func_xform ()\ | |
23751 {\ | |
23752 func_xform_result=${1%.*}.lo\ | |
23753 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | |
23754 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
23755 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
23756 test 0 -eq $? || _lt_function_replace_fail=: | |
23757 | |
23758 | |
23759 sed -e '/^func_arith ()$/,/^} # func_arith /c\ | |
23760 func_arith ()\ | |
23761 {\ | |
23762 func_arith_result=$(( $* ))\ | |
23763 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | |
23764 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
23765 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
23766 test 0 -eq $? || _lt_function_replace_fail=: | |
23767 | |
23768 | |
23769 sed -e '/^func_len ()$/,/^} # func_len /c\ | |
23770 func_len ()\ | |
23771 {\ | |
23772 func_len_result=${#1}\ | |
23773 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | |
23774 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
23775 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
23776 test 0 -eq $? || _lt_function_replace_fail=: | |
23777 | |
23778 fi | |
23779 | |
23780 if test x"$lt_shell_append" = xyes; then | |
23781 sed -e '/^func_append ()$/,/^} # func_append /c\ | |
23782 func_append ()\ | |
23783 {\ | |
23784 eval "${1}+=\\${2}"\ | |
23785 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | |
23786 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
23787 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
23788 test 0 -eq $? || _lt_function_replace_fail=: | |
23789 | |
23790 | |
23791 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | |
23792 func_append_quoted ()\ | |
23793 {\ | |
23794 \ func_quote_for_eval "${2}"\ | |
23795 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | |
23796 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | |
23797 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
23798 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
23799 test 0 -eq $? || _lt_function_replace_fail=: | |
23800 | |
23801 | |
23802 # Save a `func_append' function call where possible by direct use of '+=' | |
23803 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | |
23804 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
23805 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
23806 test 0 -eq $? || _lt_function_replace_fail=: | |
23807 else | |
23808 # Save a `func_append' function call even when '+=' is not available | |
23809 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | |
23810 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
23811 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
23812 test 0 -eq $? || _lt_function_replace_fail=: | |
23813 fi | |
23814 | |
23815 if test x"$_lt_function_replace_fail" = x":"; then | |
23816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | |
23817 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | |
23818 fi | |
23819 | |
23820 | |
23821 mv -f "$cfgfile" "$ofile" || | |
23822 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
23823 chmod +x "$ofile" | |
23824 | |
23825 | |
23826 cat <<_LT_EOF >> "$ofile" | |
23827 | |
23828 # ### BEGIN LIBTOOL TAG CONFIG: F77 | |
23829 | |
23830 # The linker used to build libraries. | |
23831 LD=$lt_LD_F77 | |
23832 | |
23833 # How to create reloadable object files. | |
23834 reload_flag=$lt_reload_flag_F77 | |
23835 reload_cmds=$lt_reload_cmds_F77 | |
23836 | |
23837 # Commands used to build an old-style archive. | |
23838 old_archive_cmds=$lt_old_archive_cmds_F77 | |
23839 | |
23840 # A language specific compiler. | |
23841 CC=$lt_compiler_F77 | |
23842 | |
23843 # Is the compiler the GNU compiler? | |
23844 with_gcc=$GCC_F77 | |
23845 | |
23846 # Compiler flag to turn off builtin functions. | |
23847 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 | |
23848 | |
23849 # Additional compiler flags for building library objects. | |
23850 pic_flag=$lt_lt_prog_compiler_pic_F77 | |
23851 | |
23852 # How to pass a linker flag through the compiler. | |
23853 wl=$lt_lt_prog_compiler_wl_F77 | |
23854 | |
23855 # Compiler flag to prevent dynamic linking. | |
23856 link_static_flag=$lt_lt_prog_compiler_static_F77 | |
23857 | |
23858 # Does compiler simultaneously support -c and -o options? | |
23859 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 | |
23860 | |
23861 # Whether or not to add -lc for building shared libraries. | |
23862 build_libtool_need_lc=$archive_cmds_need_lc_F77 | |
23863 | |
23864 # Whether or not to disallow shared libs when runtime libs are static. | |
23865 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 | |
23866 | |
23867 # Compiler flag to allow reflexive dlopens. | |
23868 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 | |
23869 | |
23870 # Compiler flag to generate shared objects directly from archives. | |
23871 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 | |
23872 | |
23873 # Whether the compiler copes with passing no objects directly. | |
23874 compiler_needs_object=$lt_compiler_needs_object_F77 | |
23875 | |
23876 # Create an old-style archive from a shared archive. | |
23877 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 | |
23878 | |
23879 # Create a temporary old-style archive to link instead of a shared archive. | |
23880 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 | |
23881 | |
23882 # Commands used to build a shared archive. | |
23883 archive_cmds=$lt_archive_cmds_F77 | |
23884 archive_expsym_cmds=$lt_archive_expsym_cmds_F77 | |
23885 | |
23886 # Commands used to build a loadable module if different from building | |
23887 # a shared archive. | |
23888 module_cmds=$lt_module_cmds_F77 | |
23889 module_expsym_cmds=$lt_module_expsym_cmds_F77 | |
23890 | |
23891 # Whether we are building with GNU ld or not. | |
23892 with_gnu_ld=$lt_with_gnu_ld_F77 | |
23893 | |
23894 # Flag that allows shared libraries with undefined symbols to be built. | |
23895 allow_undefined_flag=$lt_allow_undefined_flag_F77 | |
23896 | |
23897 # Flag that enforces no undefined symbols. | |
23898 no_undefined_flag=$lt_no_undefined_flag_F77 | |
23899 | |
23900 # Flag to hardcode \$libdir into a binary during linking. | |
23901 # This must work even if \$libdir does not exist | |
23902 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 | |
23903 | |
23904 # Whether we need a single "-rpath" flag with a separated argument. | |
23905 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 | |
23906 | |
23907 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
23908 # DIR into the resulting binary. | |
23909 hardcode_direct=$hardcode_direct_F77 | |
23910 | |
23911 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
23912 # DIR into the resulting binary and the resulting library dependency is | |
23913 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
23914 # library is relocated. | |
23915 hardcode_direct_absolute=$hardcode_direct_absolute_F77 | |
23916 | |
23917 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
23918 # into the resulting binary. | |
23919 hardcode_minus_L=$hardcode_minus_L_F77 | |
23920 | |
23921 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
23922 # into the resulting binary. | |
23923 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 | |
23924 | |
23925 # Set to "yes" if building a shared library automatically hardcodes DIR | |
23926 # into the library and all subsequent libraries and executables linked | |
23927 # against it. | |
23928 hardcode_automatic=$hardcode_automatic_F77 | |
23929 | |
23930 # Set to yes if linker adds runtime paths of dependent libraries | |
23931 # to runtime path list. | |
23932 inherit_rpath=$inherit_rpath_F77 | |
23933 | |
23934 # Whether libtool must link a program against all its dependency libraries. | |
23935 link_all_deplibs=$link_all_deplibs_F77 | |
23936 | |
23937 # Set to "yes" if exported symbols are required. | |
23938 always_export_symbols=$always_export_symbols_F77 | |
23939 | |
23940 # The commands to list exported symbols. | |
23941 export_symbols_cmds=$lt_export_symbols_cmds_F77 | |
23942 | |
23943 # Symbols that should not be listed in the preloaded symbols. | |
23944 exclude_expsyms=$lt_exclude_expsyms_F77 | |
23945 | |
23946 # Symbols that must always be exported. | |
23947 include_expsyms=$lt_include_expsyms_F77 | |
23948 | |
23949 # Commands necessary for linking programs (against libraries) with templates. | |
23950 prelink_cmds=$lt_prelink_cmds_F77 | |
23951 | |
23952 # Commands necessary for finishing linking programs. | |
23953 postlink_cmds=$lt_postlink_cmds_F77 | |
23954 | |
23955 # Specify filename containing input files. | |
23956 file_list_spec=$lt_file_list_spec_F77 | |
23957 | |
23958 # How to hardcode a shared library path into an executable. | |
23959 hardcode_action=$hardcode_action_F77 | |
23960 | |
23961 # ### END LIBTOOL TAG CONFIG: F77 | |
23962 _LT_EOF | |
23963 | |
23964 ;; | |
23965 | |
23966 esac | |
23967 done # for ac_tag | |
23968 | |
23969 | |
23970 as_fn_exit 0 | |
23971 _ACEOF | |
23972 ac_clean_files=$ac_clean_files_save | |
23973 | |
23974 test $ac_write_fail = 0 || | |
23975 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
23976 | |
23977 | |
23978 # configure is writing to config.log, and then calls config.status. | |
23979 # config.status does its own redirection, appending to config.log. | |
23980 # Unfortunately, on DOS this fails, as config.log is still kept open | |
23981 # by configure, so config.status won't be able to write to it; its | |
23982 # output is simply discarded. So we exec the FD to /dev/null, | |
23983 # effectively closing config.log, so it can be properly (re)opened and | |
23984 # appended to by config.status. When coming back to configure, we | |
23985 # need to make the FD available again. | |
23986 if test "$no_create" != yes; then | |
23987 ac_cs_success=: | |
23988 ac_config_status_args= | |
23989 test "$silent" = yes && | |
23990 ac_config_status_args="$ac_config_status_args --quiet" | |
23991 exec 5>/dev/null | |
23992 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
23993 exec 5>>config.log | |
23994 # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
23995 # would make configure fail if this is the last instruction. | |
23996 $ac_cs_success || as_fn_exit 1 | |
23997 fi | |
23998 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
23999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
24000 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
24001 fi | |
24002 |