Mercurial > hg > sv-dependency-builds
comparison src/fftw-3.3.3/configure @ 10:37bf6b4a2645
Add FFTW3
author | Chris Cannam |
---|---|
date | Wed, 20 Mar 2013 15:35:50 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
9:c0fb53affa76 | 10:37bf6b4a2645 |
---|---|
1 #! /bin/sh | |
2 # Guess values for system-dependent variables and create Makefiles. | |
3 # Generated by GNU Autoconf 2.69 for fftw 3.3.3. | |
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.3' | |
594 PACKAGE_STRING='fftw 3.3.3' | |
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 LIBQUADMATH | |
657 LIBOBJS | |
658 POW_LIB | |
659 ALLOCA | |
660 C_FFTW_R2R_KIND | |
661 STACK_ALIGN_CFLAGS | |
662 NEON_CFLAGS | |
663 ALTIVEC_CFLAGS | |
664 AVX_CFLAGS | |
665 SSE2_CFLAGS | |
666 MPI_FALSE | |
667 MPI_TRUE | |
668 C_MPI_FINT | |
669 MPIRUN | |
670 MPILIBS | |
671 MPICC | |
672 OCAMLBUILD | |
673 CPP | |
674 OTOOL64 | |
675 OTOOL | |
676 LIPO | |
677 NMEDIT | |
678 DSYMUTIL | |
679 MANIFEST_TOOL | |
680 RANLIB | |
681 ac_ct_AR | |
682 AR | |
683 NM | |
684 ac_ct_DUMPBIN | |
685 DUMPBIN | |
686 LD | |
687 FGREP | |
688 EGREP | |
689 GREP | |
690 SED | |
691 LIBTOOL | |
692 OBJDUMP | |
693 DLLTOOL | |
694 AS | |
695 LN_S | |
696 am__fastdepCC_FALSE | |
697 am__fastdepCC_TRUE | |
698 CCDEPMODE | |
699 am__nodep | |
700 AMDEPBACKSLASH | |
701 AMDEP_FALSE | |
702 AMDEP_TRUE | |
703 am__quote | |
704 am__include | |
705 DEPDIR | |
706 OBJEXT | |
707 EXEEXT | |
708 ac_ct_CC | |
709 CPPFLAGS | |
710 LDFLAGS | |
711 CFLAGS | |
712 CC | |
713 PREC_SUFFIX | |
714 HAVE_NEON_FALSE | |
715 HAVE_NEON_TRUE | |
716 HAVE_ALTIVEC_FALSE | |
717 HAVE_ALTIVEC_TRUE | |
718 HAVE_AVX_FALSE | |
719 HAVE_AVX_TRUE | |
720 HAVE_SSE2_FALSE | |
721 HAVE_SSE2_TRUE | |
722 CHECK_PL_OPTS | |
723 PRECISION | |
724 QUAD_FALSE | |
725 QUAD_TRUE | |
726 LDOUBLE_FALSE | |
727 LDOUBLE_TRUE | |
728 SINGLE_FALSE | |
729 SINGLE_TRUE | |
730 host_os | |
731 host_vendor | |
732 host_cpu | |
733 host | |
734 build_os | |
735 build_vendor | |
736 build_cpu | |
737 build | |
738 SHARED_VERSION_INFO | |
739 MAINT | |
740 MAINTAINER_MODE_FALSE | |
741 MAINTAINER_MODE_TRUE | |
742 am__untar | |
743 am__tar | |
744 AMTAR | |
745 am__leading_dot | |
746 SET_MAKE | |
747 AWK | |
748 mkdir_p | |
749 MKDIR_P | |
750 INSTALL_STRIP_PROGRAM | |
751 STRIP | |
752 install_sh | |
753 MAKEINFO | |
754 AUTOHEADER | |
755 AUTOMAKE | |
756 AUTOCONF | |
757 ACLOCAL | |
758 VERSION | |
759 PACKAGE | |
760 CYGPATH_W | |
761 am__isrc | |
762 INSTALL_DATA | |
763 INSTALL_SCRIPT | |
764 INSTALL_PROGRAM | |
765 target_alias | |
766 host_alias | |
767 build_alias | |
768 LIBS | |
769 ECHO_T | |
770 ECHO_N | |
771 ECHO_C | |
772 DEFS | |
773 mandir | |
774 localedir | |
775 libdir | |
776 psdir | |
777 pdfdir | |
778 dvidir | |
779 htmldir | |
780 infodir | |
781 docdir | |
782 oldincludedir | |
783 includedir | |
784 localstatedir | |
785 sharedstatedir | |
786 sysconfdir | |
787 datadir | |
788 datarootdir | |
789 libexecdir | |
790 sbindir | |
791 bindir | |
792 program_transform_name | |
793 prefix | |
794 exec_prefix | |
795 PACKAGE_URL | |
796 PACKAGE_BUGREPORT | |
797 PACKAGE_STRING | |
798 PACKAGE_VERSION | |
799 PACKAGE_TARNAME | |
800 PACKAGE_NAME | |
801 PATH_SEPARATOR | |
802 SHELL' | |
803 ac_subst_files='' | |
804 ac_user_opts=' | |
805 enable_option_checking | |
806 enable_maintainer_mode | |
807 enable_shared | |
808 enable_fma | |
809 enable_debug | |
810 enable_debug_malloc | |
811 enable_debug_alignment | |
812 enable_random_estimator | |
813 enable_alloca | |
814 enable_single | |
815 enable_float | |
816 enable_long_double | |
817 enable_quad_precision | |
818 enable_sse | |
819 enable_sse2 | |
820 enable_avx | |
821 enable_altivec | |
822 enable_neon | |
823 with_slow_timer | |
824 enable_mips_zbus_timer | |
825 with_our_malloc | |
826 with_our_malloc16 | |
827 with_windows_f77_mangling | |
828 with_incoming_stack_boundary | |
829 enable_dependency_tracking | |
830 enable_static | |
831 with_pic | |
832 enable_fast_install | |
833 with_gnu_ld | |
834 with_sysroot | |
835 enable_libtool_lock | |
836 enable_mpi | |
837 enable_fortran | |
838 with_g77_wrappers | |
839 enable_openmp | |
840 enable_threads | |
841 with_combined_threads | |
842 ' | |
843 ac_precious_vars='build_alias | |
844 host_alias | |
845 target_alias | |
846 CC | |
847 CFLAGS | |
848 LDFLAGS | |
849 LIBS | |
850 CPPFLAGS | |
851 CPP | |
852 MPICC | |
853 F77 | |
854 FFLAGS' | |
855 | |
856 | |
857 # Initialize some variables set by options. | |
858 ac_init_help= | |
859 ac_init_version=false | |
860 ac_unrecognized_opts= | |
861 ac_unrecognized_sep= | |
862 # The variables have the same names as the options, with | |
863 # dashes changed to underlines. | |
864 cache_file=/dev/null | |
865 exec_prefix=NONE | |
866 no_create= | |
867 no_recursion= | |
868 prefix=NONE | |
869 program_prefix=NONE | |
870 program_suffix=NONE | |
871 program_transform_name=s,x,x, | |
872 silent= | |
873 site= | |
874 srcdir= | |
875 verbose= | |
876 x_includes=NONE | |
877 x_libraries=NONE | |
878 | |
879 # Installation directory options. | |
880 # These are left unexpanded so users can "make install exec_prefix=/foo" | |
881 # and all the variables that are supposed to be based on exec_prefix | |
882 # by default will actually change. | |
883 # Use braces instead of parens because sh, perl, etc. also accept them. | |
884 # (The list follows the same order as the GNU Coding Standards.) | |
885 bindir='${exec_prefix}/bin' | |
886 sbindir='${exec_prefix}/sbin' | |
887 libexecdir='${exec_prefix}/libexec' | |
888 datarootdir='${prefix}/share' | |
889 datadir='${datarootdir}' | |
890 sysconfdir='${prefix}/etc' | |
891 sharedstatedir='${prefix}/com' | |
892 localstatedir='${prefix}/var' | |
893 includedir='${prefix}/include' | |
894 oldincludedir='/usr/include' | |
895 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
896 infodir='${datarootdir}/info' | |
897 htmldir='${docdir}' | |
898 dvidir='${docdir}' | |
899 pdfdir='${docdir}' | |
900 psdir='${docdir}' | |
901 libdir='${exec_prefix}/lib' | |
902 localedir='${datarootdir}/locale' | |
903 mandir='${datarootdir}/man' | |
904 | |
905 ac_prev= | |
906 ac_dashdash= | |
907 for ac_option | |
908 do | |
909 # If the previous option needs an argument, assign it. | |
910 if test -n "$ac_prev"; then | |
911 eval $ac_prev=\$ac_option | |
912 ac_prev= | |
913 continue | |
914 fi | |
915 | |
916 case $ac_option in | |
917 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
918 *=) ac_optarg= ;; | |
919 *) ac_optarg=yes ;; | |
920 esac | |
921 | |
922 # Accept the important Cygnus configure options, so we can diagnose typos. | |
923 | |
924 case $ac_dashdash$ac_option in | |
925 --) | |
926 ac_dashdash=yes ;; | |
927 | |
928 -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
929 ac_prev=bindir ;; | |
930 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
931 bindir=$ac_optarg ;; | |
932 | |
933 -build | --build | --buil | --bui | --bu) | |
934 ac_prev=build_alias ;; | |
935 -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
936 build_alias=$ac_optarg ;; | |
937 | |
938 -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
939 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
940 ac_prev=cache_file ;; | |
941 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
942 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
943 cache_file=$ac_optarg ;; | |
944 | |
945 --config-cache | -C) | |
946 cache_file=config.cache ;; | |
947 | |
948 -datadir | --datadir | --datadi | --datad) | |
949 ac_prev=datadir ;; | |
950 -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
951 datadir=$ac_optarg ;; | |
952 | |
953 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
954 | --dataroo | --dataro | --datar) | |
955 ac_prev=datarootdir ;; | |
956 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
957 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
958 datarootdir=$ac_optarg ;; | |
959 | |
960 -disable-* | --disable-*) | |
961 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
962 # Reject names that are not valid shell variable names. | |
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
964 as_fn_error $? "invalid feature name: $ac_useropt" | |
965 ac_useropt_orig=$ac_useropt | |
966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
967 case $ac_user_opts in | |
968 *" | |
969 "enable_$ac_useropt" | |
970 "*) ;; | |
971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
972 ac_unrecognized_sep=', ';; | |
973 esac | |
974 eval enable_$ac_useropt=no ;; | |
975 | |
976 -docdir | --docdir | --docdi | --doc | --do) | |
977 ac_prev=docdir ;; | |
978 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
979 docdir=$ac_optarg ;; | |
980 | |
981 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
982 ac_prev=dvidir ;; | |
983 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
984 dvidir=$ac_optarg ;; | |
985 | |
986 -enable-* | --enable-*) | |
987 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
988 # Reject names that are not valid shell variable names. | |
989 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
990 as_fn_error $? "invalid feature name: $ac_useropt" | |
991 ac_useropt_orig=$ac_useropt | |
992 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
993 case $ac_user_opts in | |
994 *" | |
995 "enable_$ac_useropt" | |
996 "*) ;; | |
997 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
998 ac_unrecognized_sep=', ';; | |
999 esac | |
1000 eval enable_$ac_useropt=\$ac_optarg ;; | |
1001 | |
1002 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1003 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1004 | --exec | --exe | --ex) | |
1005 ac_prev=exec_prefix ;; | |
1006 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1007 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1008 | --exec=* | --exe=* | --ex=*) | |
1009 exec_prefix=$ac_optarg ;; | |
1010 | |
1011 -gas | --gas | --ga | --g) | |
1012 # Obsolete; use --with-gas. | |
1013 with_gas=yes ;; | |
1014 | |
1015 -help | --help | --hel | --he | -h) | |
1016 ac_init_help=long ;; | |
1017 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1018 ac_init_help=recursive ;; | |
1019 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1020 ac_init_help=short ;; | |
1021 | |
1022 -host | --host | --hos | --ho) | |
1023 ac_prev=host_alias ;; | |
1024 -host=* | --host=* | --hos=* | --ho=*) | |
1025 host_alias=$ac_optarg ;; | |
1026 | |
1027 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1028 ac_prev=htmldir ;; | |
1029 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1030 | --ht=*) | |
1031 htmldir=$ac_optarg ;; | |
1032 | |
1033 -includedir | --includedir | --includedi | --included | --include \ | |
1034 | --includ | --inclu | --incl | --inc) | |
1035 ac_prev=includedir ;; | |
1036 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1037 | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1038 includedir=$ac_optarg ;; | |
1039 | |
1040 -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1041 ac_prev=infodir ;; | |
1042 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1043 infodir=$ac_optarg ;; | |
1044 | |
1045 -libdir | --libdir | --libdi | --libd) | |
1046 ac_prev=libdir ;; | |
1047 -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1048 libdir=$ac_optarg ;; | |
1049 | |
1050 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1051 | --libexe | --libex | --libe) | |
1052 ac_prev=libexecdir ;; | |
1053 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1054 | --libexe=* | --libex=* | --libe=*) | |
1055 libexecdir=$ac_optarg ;; | |
1056 | |
1057 -localedir | --localedir | --localedi | --localed | --locale) | |
1058 ac_prev=localedir ;; | |
1059 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1060 localedir=$ac_optarg ;; | |
1061 | |
1062 -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1063 | --localstate | --localstat | --localsta | --localst | --locals) | |
1064 ac_prev=localstatedir ;; | |
1065 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1066 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1067 localstatedir=$ac_optarg ;; | |
1068 | |
1069 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1070 ac_prev=mandir ;; | |
1071 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1072 mandir=$ac_optarg ;; | |
1073 | |
1074 -nfp | --nfp | --nf) | |
1075 # Obsolete; use --without-fp. | |
1076 with_fp=no ;; | |
1077 | |
1078 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1079 | --no-cr | --no-c | -n) | |
1080 no_create=yes ;; | |
1081 | |
1082 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1083 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1084 no_recursion=yes ;; | |
1085 | |
1086 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1087 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1088 | --oldin | --oldi | --old | --ol | --o) | |
1089 ac_prev=oldincludedir ;; | |
1090 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1091 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1092 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1093 oldincludedir=$ac_optarg ;; | |
1094 | |
1095 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1096 ac_prev=prefix ;; | |
1097 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1098 prefix=$ac_optarg ;; | |
1099 | |
1100 -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1101 | --program-pre | --program-pr | --program-p) | |
1102 ac_prev=program_prefix ;; | |
1103 -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1104 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1105 program_prefix=$ac_optarg ;; | |
1106 | |
1107 -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1108 | --program-suf | --program-su | --program-s) | |
1109 ac_prev=program_suffix ;; | |
1110 -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1111 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1112 program_suffix=$ac_optarg ;; | |
1113 | |
1114 -program-transform-name | --program-transform-name \ | |
1115 | --program-transform-nam | --program-transform-na \ | |
1116 | --program-transform-n | --program-transform- \ | |
1117 | --program-transform | --program-transfor \ | |
1118 | --program-transfo | --program-transf \ | |
1119 | --program-trans | --program-tran \ | |
1120 | --progr-tra | --program-tr | --program-t) | |
1121 ac_prev=program_transform_name ;; | |
1122 -program-transform-name=* | --program-transform-name=* \ | |
1123 | --program-transform-nam=* | --program-transform-na=* \ | |
1124 | --program-transform-n=* | --program-transform-=* \ | |
1125 | --program-transform=* | --program-transfor=* \ | |
1126 | --program-transfo=* | --program-transf=* \ | |
1127 | --program-trans=* | --program-tran=* \ | |
1128 | --progr-tra=* | --program-tr=* | --program-t=*) | |
1129 program_transform_name=$ac_optarg ;; | |
1130 | |
1131 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1132 ac_prev=pdfdir ;; | |
1133 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1134 pdfdir=$ac_optarg ;; | |
1135 | |
1136 -psdir | --psdir | --psdi | --psd | --ps) | |
1137 ac_prev=psdir ;; | |
1138 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1139 psdir=$ac_optarg ;; | |
1140 | |
1141 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1142 | -silent | --silent | --silen | --sile | --sil) | |
1143 silent=yes ;; | |
1144 | |
1145 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1146 ac_prev=sbindir ;; | |
1147 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1148 | --sbi=* | --sb=*) | |
1149 sbindir=$ac_optarg ;; | |
1150 | |
1151 -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1152 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1153 | --sharedst | --shareds | --shared | --share | --shar \ | |
1154 | --sha | --sh) | |
1155 ac_prev=sharedstatedir ;; | |
1156 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1157 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1158 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1159 | --sha=* | --sh=*) | |
1160 sharedstatedir=$ac_optarg ;; | |
1161 | |
1162 -site | --site | --sit) | |
1163 ac_prev=site ;; | |
1164 -site=* | --site=* | --sit=*) | |
1165 site=$ac_optarg ;; | |
1166 | |
1167 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1168 ac_prev=srcdir ;; | |
1169 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1170 srcdir=$ac_optarg ;; | |
1171 | |
1172 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1173 | --syscon | --sysco | --sysc | --sys | --sy) | |
1174 ac_prev=sysconfdir ;; | |
1175 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1176 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1177 sysconfdir=$ac_optarg ;; | |
1178 | |
1179 -target | --target | --targe | --targ | --tar | --ta | --t) | |
1180 ac_prev=target_alias ;; | |
1181 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1182 target_alias=$ac_optarg ;; | |
1183 | |
1184 -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1185 verbose=yes ;; | |
1186 | |
1187 -version | --version | --versio | --versi | --vers | -V) | |
1188 ac_init_version=: ;; | |
1189 | |
1190 -with-* | --with-*) | |
1191 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1192 # Reject names that are not valid shell variable names. | |
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1194 as_fn_error $? "invalid package name: $ac_useropt" | |
1195 ac_useropt_orig=$ac_useropt | |
1196 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1197 case $ac_user_opts in | |
1198 *" | |
1199 "with_$ac_useropt" | |
1200 "*) ;; | |
1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1202 ac_unrecognized_sep=', ';; | |
1203 esac | |
1204 eval with_$ac_useropt=\$ac_optarg ;; | |
1205 | |
1206 -without-* | --without-*) | |
1207 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1208 # Reject names that are not valid shell variable names. | |
1209 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1210 as_fn_error $? "invalid package name: $ac_useropt" | |
1211 ac_useropt_orig=$ac_useropt | |
1212 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1213 case $ac_user_opts in | |
1214 *" | |
1215 "with_$ac_useropt" | |
1216 "*) ;; | |
1217 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1218 ac_unrecognized_sep=', ';; | |
1219 esac | |
1220 eval with_$ac_useropt=no ;; | |
1221 | |
1222 --x) | |
1223 # Obsolete; use --with-x. | |
1224 with_x=yes ;; | |
1225 | |
1226 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1227 | --x-incl | --x-inc | --x-in | --x-i) | |
1228 ac_prev=x_includes ;; | |
1229 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1230 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1231 x_includes=$ac_optarg ;; | |
1232 | |
1233 -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1234 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1235 ac_prev=x_libraries ;; | |
1236 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1237 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1238 x_libraries=$ac_optarg ;; | |
1239 | |
1240 -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
1241 Try \`$0 --help' for more information" | |
1242 ;; | |
1243 | |
1244 *=*) | |
1245 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1246 # Reject names that are not valid shell variable names. | |
1247 case $ac_envvar in #( | |
1248 '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1249 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1250 esac | |
1251 eval $ac_envvar=\$ac_optarg | |
1252 export $ac_envvar ;; | |
1253 | |
1254 *) | |
1255 # FIXME: should be removed in autoconf 3.0. | |
1256 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1257 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1258 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1259 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
1260 ;; | |
1261 | |
1262 esac | |
1263 done | |
1264 | |
1265 if test -n "$ac_prev"; then | |
1266 ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1267 as_fn_error $? "missing argument to $ac_option" | |
1268 fi | |
1269 | |
1270 if test -n "$ac_unrecognized_opts"; then | |
1271 case $enable_option_checking in | |
1272 no) ;; | |
1273 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1274 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1275 esac | |
1276 fi | |
1277 | |
1278 # Check all directory arguments for consistency. | |
1279 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1280 datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1281 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1282 libdir localedir mandir | |
1283 do | |
1284 eval ac_val=\$$ac_var | |
1285 # Remove trailing slashes. | |
1286 case $ac_val in | |
1287 */ ) | |
1288 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1289 eval $ac_var=\$ac_val;; | |
1290 esac | |
1291 # Be sure to have absolute directory names. | |
1292 case $ac_val in | |
1293 [\\/$]* | ?:[\\/]* ) continue;; | |
1294 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1295 esac | |
1296 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1297 done | |
1298 | |
1299 # There might be people who depend on the old broken behavior: `$host' | |
1300 # used to hold the argument of --host etc. | |
1301 # FIXME: To remove some day. | |
1302 build=$build_alias | |
1303 host=$host_alias | |
1304 target=$target_alias | |
1305 | |
1306 # FIXME: To remove some day. | |
1307 if test "x$host_alias" != x; then | |
1308 if test "x$build_alias" = x; then | |
1309 cross_compiling=maybe | |
1310 elif test "x$build_alias" != "x$host_alias"; then | |
1311 cross_compiling=yes | |
1312 fi | |
1313 fi | |
1314 | |
1315 ac_tool_prefix= | |
1316 test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1317 | |
1318 test "$silent" = yes && exec 6>/dev/null | |
1319 | |
1320 | |
1321 ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1322 ac_ls_di=`ls -di .` && | |
1323 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1324 as_fn_error $? "working directory cannot be determined" | |
1325 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1326 as_fn_error $? "pwd does not report name of working directory" | |
1327 | |
1328 | |
1329 # Find the source files, if location was not specified. | |
1330 if test -z "$srcdir"; then | |
1331 ac_srcdir_defaulted=yes | |
1332 # Try the directory containing this script, then the parent directory. | |
1333 ac_confdir=`$as_dirname -- "$as_myself" || | |
1334 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1335 X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1336 X"$as_myself" : 'X\(//\)$' \| \ | |
1337 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1338 $as_echo X"$as_myself" | | |
1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1340 s//\1/ | |
1341 q | |
1342 } | |
1343 /^X\(\/\/\)[^/].*/{ | |
1344 s//\1/ | |
1345 q | |
1346 } | |
1347 /^X\(\/\/\)$/{ | |
1348 s//\1/ | |
1349 q | |
1350 } | |
1351 /^X\(\/\).*/{ | |
1352 s//\1/ | |
1353 q | |
1354 } | |
1355 s/.*/./; q'` | |
1356 srcdir=$ac_confdir | |
1357 if test ! -r "$srcdir/$ac_unique_file"; then | |
1358 srcdir=.. | |
1359 fi | |
1360 else | |
1361 ac_srcdir_defaulted=no | |
1362 fi | |
1363 if test ! -r "$srcdir/$ac_unique_file"; then | |
1364 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1365 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1366 fi | |
1367 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1368 ac_abs_confdir=`( | |
1369 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1370 pwd)` | |
1371 # When building in place, set srcdir=. | |
1372 if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1373 srcdir=. | |
1374 fi | |
1375 # Remove unnecessary trailing slashes from srcdir. | |
1376 # Double slashes in file names in object file debugging info | |
1377 # mess up M-x gdb in Emacs. | |
1378 case $srcdir in | |
1379 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1380 esac | |
1381 for ac_var in $ac_precious_vars; do | |
1382 eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1383 eval ac_env_${ac_var}_value=\$${ac_var} | |
1384 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1385 eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1386 done | |
1387 | |
1388 # | |
1389 # Report the --help message. | |
1390 # | |
1391 if test "$ac_init_help" = "long"; then | |
1392 # Omit some internal or obsolete options to make the list less imposing. | |
1393 # This message is too long to be a string in the A/UX 3.1 sh. | |
1394 cat <<_ACEOF | |
1395 \`configure' configures fftw 3.3.3 to adapt to many kinds of systems. | |
1396 | |
1397 Usage: $0 [OPTION]... [VAR=VALUE]... | |
1398 | |
1399 To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1400 VAR=VALUE. See below for descriptions of some of the useful variables. | |
1401 | |
1402 Defaults for the options are specified in brackets. | |
1403 | |
1404 Configuration: | |
1405 -h, --help display this help and exit | |
1406 --help=short display options specific to this package | |
1407 --help=recursive display the short help of all the included packages | |
1408 -V, --version display version information and exit | |
1409 -q, --quiet, --silent do not print \`checking ...' messages | |
1410 --cache-file=FILE cache test results in FILE [disabled] | |
1411 -C, --config-cache alias for \`--cache-file=config.cache' | |
1412 -n, --no-create do not create output files | |
1413 --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1414 | |
1415 Installation directories: | |
1416 --prefix=PREFIX install architecture-independent files in PREFIX | |
1417 [$ac_default_prefix] | |
1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1419 [PREFIX] | |
1420 | |
1421 By default, \`make install' will install all the files in | |
1422 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1423 an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1424 for instance \`--prefix=\$HOME'. | |
1425 | |
1426 For better control, use the options below. | |
1427 | |
1428 Fine tuning of the installation directories: | |
1429 --bindir=DIR user executables [EPREFIX/bin] | |
1430 --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1431 --libexecdir=DIR program executables [EPREFIX/libexec] | |
1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1435 --libdir=DIR object code libraries [EPREFIX/lib] | |
1436 --includedir=DIR C header files [PREFIX/include] | |
1437 --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1440 --infodir=DIR info documentation [DATAROOTDIR/info] | |
1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1442 --mandir=DIR man documentation [DATAROOTDIR/man] | |
1443 --docdir=DIR documentation root [DATAROOTDIR/doc/fftw] | |
1444 --htmldir=DIR html documentation [DOCDIR] | |
1445 --dvidir=DIR dvi documentation [DOCDIR] | |
1446 --pdfdir=DIR pdf documentation [DOCDIR] | |
1447 --psdir=DIR ps documentation [DOCDIR] | |
1448 _ACEOF | |
1449 | |
1450 cat <<\_ACEOF | |
1451 | |
1452 Program names: | |
1453 --program-prefix=PREFIX prepend PREFIX to installed program names | |
1454 --program-suffix=SUFFIX append SUFFIX to installed program names | |
1455 --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1456 | |
1457 System types: | |
1458 --build=BUILD configure for building on BUILD [guessed] | |
1459 --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1460 _ACEOF | |
1461 fi | |
1462 | |
1463 if test -n "$ac_init_help"; then | |
1464 case $ac_init_help in | |
1465 short | recursive ) echo "Configuration of fftw 3.3.3:";; | |
1466 esac | |
1467 cat <<\_ACEOF | |
1468 | |
1469 Optional Features: | |
1470 --disable-option-checking ignore unrecognized --enable/--with options | |
1471 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1472 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1473 --enable-maintainer-mode enable make rules and dependencies not useful | |
1474 (and sometimes confusing) to the casual installer | |
1475 --enable-shared[=PKGS] build shared libraries [default=no] | |
1476 --enable-fma enable optimizations for machines with fused | |
1477 multiply-add | |
1478 --enable-debug compile fftw with extra runtime checks for debugging | |
1479 --enable-debug-malloc enable malloc debugging version | |
1480 --enable-debug-alignment | |
1481 enable alignment debugging hacks | |
1482 --enable-random-estimator | |
1483 enable pseudorandom estimator (debugging hack) | |
1484 --disable-alloca disable use of the alloca() function (may be broken | |
1485 on mingw64) | |
1486 --enable-single compile fftw in single precision | |
1487 --enable-float synonym for --enable-single | |
1488 --enable-long-double compile fftw in long-double precision | |
1489 --enable-quad-precision compile fftw in quadruple precision if available | |
1490 --enable-sse enable SSE optimizations | |
1491 --enable-sse2 enable SSE/SSE2 optimizations | |
1492 --enable-avx enable AVX optimizations | |
1493 --enable-altivec enable Altivec optimizations | |
1494 --enable-neon enable ARM NEON optimizations | |
1495 --enable-mips-zbus-timer | |
1496 use MIPS ZBus cycle-counter | |
1497 --disable-dependency-tracking speeds up one-time build | |
1498 --enable-dependency-tracking do not reject slow dependency extractors | |
1499 --enable-static[=PKGS] build static libraries [default=yes] | |
1500 --enable-fast-install[=PKGS] | |
1501 optimize for fast installation [default=yes] | |
1502 --disable-libtool-lock avoid locking (might break parallel builds) | |
1503 --enable-mpi compile FFTW MPI library | |
1504 --disable-fortran don't include Fortran-callable wrappers | |
1505 --enable-openmp use OpenMP directives for parallelism | |
1506 --enable-threads compile FFTW SMP threads library | |
1507 | |
1508 Optional Packages: | |
1509 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1510 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1511 --with-slow-timer use low-precision timers (SLOW) | |
1512 --with-our-malloc use our aligned malloc (helpful for Win32) | |
1513 --with-our-malloc16 Obsolete alias for --with-our-malloc16 | |
1514 --with-windows-f77-mangling | |
1515 use common Win32 Fortran interface styles | |
1516 --with-incoming-stack-boundary=X | |
1517 Assume that stack is aligned to (1<<X) bytes | |
1518 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use | |
1519 both] | |
1520 --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1521 --with-sysroot=DIR Search for dependent libraries within DIR | |
1522 (or the compiler's sysroot if not specified). | |
1523 --with-g77-wrappers force inclusion of g77-compatible wrappers in | |
1524 addition to any other Fortran compiler that is | |
1525 detected | |
1526 --with-combined-threads combine threads into main libfftw3 | |
1527 | |
1528 Some influential environment variables: | |
1529 CC C compiler command | |
1530 CFLAGS C compiler flags | |
1531 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1532 nonstandard directory <lib dir> | |
1533 LIBS libraries to pass to the linker, e.g. -l<library> | |
1534 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1535 you have headers in a nonstandard directory <include dir> | |
1536 CPP C preprocessor | |
1537 MPICC MPI C compiler command | |
1538 F77 Fortran 77 compiler command | |
1539 FFLAGS Fortran 77 compiler flags | |
1540 | |
1541 Use these variables to override the choices made by `configure' or to help | |
1542 it to find libraries and programs with nonstandard names/locations. | |
1543 | |
1544 Report bugs to <fftw@fftw.org>. | |
1545 _ACEOF | |
1546 ac_status=$? | |
1547 fi | |
1548 | |
1549 if test "$ac_init_help" = "recursive"; then | |
1550 # If there are subdirs, report their specific --help. | |
1551 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1552 test -d "$ac_dir" || | |
1553 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1554 continue | |
1555 ac_builddir=. | |
1556 | |
1557 case "$ac_dir" in | |
1558 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1559 *) | |
1560 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1561 # A ".." for each directory in $ac_dir_suffix. | |
1562 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1563 case $ac_top_builddir_sub in | |
1564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1566 esac ;; | |
1567 esac | |
1568 ac_abs_top_builddir=$ac_pwd | |
1569 ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1570 # for backward compatibility: | |
1571 ac_top_builddir=$ac_top_build_prefix | |
1572 | |
1573 case $srcdir in | |
1574 .) # We are building in place. | |
1575 ac_srcdir=. | |
1576 ac_top_srcdir=$ac_top_builddir_sub | |
1577 ac_abs_top_srcdir=$ac_pwd ;; | |
1578 [\\/]* | ?:[\\/]* ) # Absolute name. | |
1579 ac_srcdir=$srcdir$ac_dir_suffix; | |
1580 ac_top_srcdir=$srcdir | |
1581 ac_abs_top_srcdir=$srcdir ;; | |
1582 *) # Relative name. | |
1583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1584 ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1586 esac | |
1587 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1588 | |
1589 cd "$ac_dir" || { ac_status=$?; continue; } | |
1590 # Check for guested configure. | |
1591 if test -f "$ac_srcdir/configure.gnu"; then | |
1592 echo && | |
1593 $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1594 elif test -f "$ac_srcdir/configure"; then | |
1595 echo && | |
1596 $SHELL "$ac_srcdir/configure" --help=recursive | |
1597 else | |
1598 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1599 fi || ac_status=$? | |
1600 cd "$ac_pwd" || { ac_status=$?; break; } | |
1601 done | |
1602 fi | |
1603 | |
1604 test -n "$ac_init_help" && exit $ac_status | |
1605 if $ac_init_version; then | |
1606 cat <<\_ACEOF | |
1607 fftw configure 3.3.3 | |
1608 generated by GNU Autoconf 2.69 | |
1609 | |
1610 Copyright (C) 2012 Free Software Foundation, Inc. | |
1611 This configure script is free software; the Free Software Foundation | |
1612 gives unlimited permission to copy, distribute and modify it. | |
1613 _ACEOF | |
1614 exit | |
1615 fi | |
1616 | |
1617 ## ------------------------ ## | |
1618 ## Autoconf initialization. ## | |
1619 ## ------------------------ ## | |
1620 | |
1621 # ac_fn_c_try_compile LINENO | |
1622 # -------------------------- | |
1623 # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1624 ac_fn_c_try_compile () | |
1625 { | |
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1627 rm -f conftest.$ac_objext | |
1628 if { { ac_try="$ac_compile" | |
1629 case "(($ac_try" in | |
1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1631 *) ac_try_echo=$ac_try;; | |
1632 esac | |
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1634 $as_echo "$ac_try_echo"; } >&5 | |
1635 (eval "$ac_compile") 2>conftest.err | |
1636 ac_status=$? | |
1637 if test -s conftest.err; then | |
1638 grep -v '^ *+' conftest.err >conftest.er1 | |
1639 cat conftest.er1 >&5 | |
1640 mv -f conftest.er1 conftest.err | |
1641 fi | |
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1643 test $ac_status = 0; } && { | |
1644 test -z "$ac_c_werror_flag" || | |
1645 test ! -s conftest.err | |
1646 } && test -s conftest.$ac_objext; then : | |
1647 ac_retval=0 | |
1648 else | |
1649 $as_echo "$as_me: failed program was:" >&5 | |
1650 sed 's/^/| /' conftest.$ac_ext >&5 | |
1651 | |
1652 ac_retval=1 | |
1653 fi | |
1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1655 as_fn_set_status $ac_retval | |
1656 | |
1657 } # ac_fn_c_try_compile | |
1658 | |
1659 # ac_fn_c_try_link LINENO | |
1660 # ----------------------- | |
1661 # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1662 ac_fn_c_try_link () | |
1663 { | |
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1665 rm -f conftest.$ac_objext conftest$ac_exeext | |
1666 if { { ac_try="$ac_link" | |
1667 case "(($ac_try" in | |
1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1669 *) ac_try_echo=$ac_try;; | |
1670 esac | |
1671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1672 $as_echo "$ac_try_echo"; } >&5 | |
1673 (eval "$ac_link") 2>conftest.err | |
1674 ac_status=$? | |
1675 if test -s conftest.err; then | |
1676 grep -v '^ *+' conftest.err >conftest.er1 | |
1677 cat conftest.er1 >&5 | |
1678 mv -f conftest.er1 conftest.err | |
1679 fi | |
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1681 test $ac_status = 0; } && { | |
1682 test -z "$ac_c_werror_flag" || | |
1683 test ! -s conftest.err | |
1684 } && test -s conftest$ac_exeext && { | |
1685 test "$cross_compiling" = yes || | |
1686 test -x conftest$ac_exeext | |
1687 }; then : | |
1688 ac_retval=0 | |
1689 else | |
1690 $as_echo "$as_me: failed program was:" >&5 | |
1691 sed 's/^/| /' conftest.$ac_ext >&5 | |
1692 | |
1693 ac_retval=1 | |
1694 fi | |
1695 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1696 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1697 # interfere with the next link command; also delete a directory that is | |
1698 # left behind by Apple's compiler. We do this before executing the actions. | |
1699 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1701 as_fn_set_status $ac_retval | |
1702 | |
1703 } # ac_fn_c_try_link | |
1704 | |
1705 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1706 # ------------------------------------------------------- | |
1707 # Tests whether HEADER exists and can be compiled using the include files in | |
1708 # INCLUDES, setting the cache variable VAR accordingly. | |
1709 ac_fn_c_check_header_compile () | |
1710 { | |
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1713 $as_echo_n "checking for $2... " >&6; } | |
1714 if eval \${$3+:} false; then : | |
1715 $as_echo_n "(cached) " >&6 | |
1716 else | |
1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1718 /* end confdefs.h. */ | |
1719 $4 | |
1720 #include <$2> | |
1721 _ACEOF | |
1722 if ac_fn_c_try_compile "$LINENO"; then : | |
1723 eval "$3=yes" | |
1724 else | |
1725 eval "$3=no" | |
1726 fi | |
1727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1728 fi | |
1729 eval ac_res=\$$3 | |
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1731 $as_echo "$ac_res" >&6; } | |
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1733 | |
1734 } # ac_fn_c_check_header_compile | |
1735 | |
1736 # ac_fn_c_try_cpp LINENO | |
1737 # ---------------------- | |
1738 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1739 ac_fn_c_try_cpp () | |
1740 { | |
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1742 if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1743 case "(($ac_try" in | |
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1745 *) ac_try_echo=$ac_try;; | |
1746 esac | |
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1748 $as_echo "$ac_try_echo"; } >&5 | |
1749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1750 ac_status=$? | |
1751 if test -s conftest.err; then | |
1752 grep -v '^ *+' conftest.err >conftest.er1 | |
1753 cat conftest.er1 >&5 | |
1754 mv -f conftest.er1 conftest.err | |
1755 fi | |
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1757 test $ac_status = 0; } > conftest.i && { | |
1758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1759 test ! -s conftest.err | |
1760 }; then : | |
1761 ac_retval=0 | |
1762 else | |
1763 $as_echo "$as_me: failed program was:" >&5 | |
1764 sed 's/^/| /' conftest.$ac_ext >&5 | |
1765 | |
1766 ac_retval=1 | |
1767 fi | |
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1769 as_fn_set_status $ac_retval | |
1770 | |
1771 } # ac_fn_c_try_cpp | |
1772 | |
1773 # ac_fn_c_try_run LINENO | |
1774 # ---------------------- | |
1775 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1776 # that executables *can* be run. | |
1777 ac_fn_c_try_run () | |
1778 { | |
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1780 if { { ac_try="$ac_link" | |
1781 case "(($ac_try" in | |
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1783 *) ac_try_echo=$ac_try;; | |
1784 esac | |
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1786 $as_echo "$ac_try_echo"; } >&5 | |
1787 (eval "$ac_link") 2>&5 | |
1788 ac_status=$? | |
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1790 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1791 { { case "(($ac_try" in | |
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1793 *) ac_try_echo=$ac_try;; | |
1794 esac | |
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1796 $as_echo "$ac_try_echo"; } >&5 | |
1797 (eval "$ac_try") 2>&5 | |
1798 ac_status=$? | |
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1800 test $ac_status = 0; }; }; then : | |
1801 ac_retval=0 | |
1802 else | |
1803 $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1804 $as_echo "$as_me: failed program was:" >&5 | |
1805 sed 's/^/| /' conftest.$ac_ext >&5 | |
1806 | |
1807 ac_retval=$ac_status | |
1808 fi | |
1809 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1811 as_fn_set_status $ac_retval | |
1812 | |
1813 } # ac_fn_c_try_run | |
1814 | |
1815 # ac_fn_c_check_func LINENO FUNC VAR | |
1816 # ---------------------------------- | |
1817 # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1818 ac_fn_c_check_func () | |
1819 { | |
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1822 $as_echo_n "checking for $2... " >&6; } | |
1823 if eval \${$3+:} false; then : | |
1824 $as_echo_n "(cached) " >&6 | |
1825 else | |
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1827 /* end confdefs.h. */ | |
1828 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1829 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1830 #define $2 innocuous_$2 | |
1831 | |
1832 /* System header to define __stub macros and hopefully few prototypes, | |
1833 which can conflict with char $2 (); below. | |
1834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1835 <limits.h> exists even on freestanding compilers. */ | |
1836 | |
1837 #ifdef __STDC__ | |
1838 # include <limits.h> | |
1839 #else | |
1840 # include <assert.h> | |
1841 #endif | |
1842 | |
1843 #undef $2 | |
1844 | |
1845 /* Override any GCC internal prototype to avoid an error. | |
1846 Use char because int might match the return type of a GCC | |
1847 builtin and then its argument prototype would still apply. */ | |
1848 #ifdef __cplusplus | |
1849 extern "C" | |
1850 #endif | |
1851 char $2 (); | |
1852 /* The GNU C library defines this for functions which it implements | |
1853 to always fail with ENOSYS. Some functions are actually named | |
1854 something starting with __ and the normal name is an alias. */ | |
1855 #if defined __stub_$2 || defined __stub___$2 | |
1856 choke me | |
1857 #endif | |
1858 | |
1859 int | |
1860 main () | |
1861 { | |
1862 return $2 (); | |
1863 ; | |
1864 return 0; | |
1865 } | |
1866 _ACEOF | |
1867 if ac_fn_c_try_link "$LINENO"; then : | |
1868 eval "$3=yes" | |
1869 else | |
1870 eval "$3=no" | |
1871 fi | |
1872 rm -f core conftest.err conftest.$ac_objext \ | |
1873 conftest$ac_exeext conftest.$ac_ext | |
1874 fi | |
1875 eval ac_res=\$$3 | |
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1877 $as_echo "$ac_res" >&6; } | |
1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1879 | |
1880 } # ac_fn_c_check_func | |
1881 | |
1882 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
1883 # -------------------------------------------- | |
1884 # Tries to find the compile-time value of EXPR in a program that includes | |
1885 # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
1886 # computed | |
1887 ac_fn_c_compute_int () | |
1888 { | |
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1890 if test "$cross_compiling" = yes; then | |
1891 # Depending upon the size, compute the lo and hi bounds. | |
1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1893 /* end confdefs.h. */ | |
1894 $4 | |
1895 int | |
1896 main () | |
1897 { | |
1898 static int test_array [1 - 2 * !(($2) >= 0)]; | |
1899 test_array [0] = 0; | |
1900 return test_array [0]; | |
1901 | |
1902 ; | |
1903 return 0; | |
1904 } | |
1905 _ACEOF | |
1906 if ac_fn_c_try_compile "$LINENO"; then : | |
1907 ac_lo=0 ac_mid=0 | |
1908 while :; do | |
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1910 /* end confdefs.h. */ | |
1911 $4 | |
1912 int | |
1913 main () | |
1914 { | |
1915 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
1916 test_array [0] = 0; | |
1917 return test_array [0]; | |
1918 | |
1919 ; | |
1920 return 0; | |
1921 } | |
1922 _ACEOF | |
1923 if ac_fn_c_try_compile "$LINENO"; then : | |
1924 ac_hi=$ac_mid; break | |
1925 else | |
1926 as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
1927 if test $ac_lo -le $ac_mid; then | |
1928 ac_lo= ac_hi= | |
1929 break | |
1930 fi | |
1931 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
1932 fi | |
1933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1934 done | |
1935 else | |
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1937 /* end confdefs.h. */ | |
1938 $4 | |
1939 int | |
1940 main () | |
1941 { | |
1942 static int test_array [1 - 2 * !(($2) < 0)]; | |
1943 test_array [0] = 0; | |
1944 return test_array [0]; | |
1945 | |
1946 ; | |
1947 return 0; | |
1948 } | |
1949 _ACEOF | |
1950 if ac_fn_c_try_compile "$LINENO"; then : | |
1951 ac_hi=-1 ac_mid=-1 | |
1952 while :; do | |
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1954 /* end confdefs.h. */ | |
1955 $4 | |
1956 int | |
1957 main () | |
1958 { | |
1959 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
1960 test_array [0] = 0; | |
1961 return test_array [0]; | |
1962 | |
1963 ; | |
1964 return 0; | |
1965 } | |
1966 _ACEOF | |
1967 if ac_fn_c_try_compile "$LINENO"; then : | |
1968 ac_lo=$ac_mid; break | |
1969 else | |
1970 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
1971 if test $ac_mid -le $ac_hi; then | |
1972 ac_lo= ac_hi= | |
1973 break | |
1974 fi | |
1975 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
1976 fi | |
1977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1978 done | |
1979 else | |
1980 ac_lo= ac_hi= | |
1981 fi | |
1982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1983 fi | |
1984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1985 # Binary search between lo and hi bounds. | |
1986 while test "x$ac_lo" != "x$ac_hi"; do | |
1987 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1989 /* end confdefs.h. */ | |
1990 $4 | |
1991 int | |
1992 main () | |
1993 { | |
1994 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
1995 test_array [0] = 0; | |
1996 return test_array [0]; | |
1997 | |
1998 ; | |
1999 return 0; | |
2000 } | |
2001 _ACEOF | |
2002 if ac_fn_c_try_compile "$LINENO"; then : | |
2003 ac_hi=$ac_mid | |
2004 else | |
2005 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2006 fi | |
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2008 done | |
2009 case $ac_lo in #(( | |
2010 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2011 '') ac_retval=1 ;; | |
2012 esac | |
2013 else | |
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2015 /* end confdefs.h. */ | |
2016 $4 | |
2017 static long int longval () { return $2; } | |
2018 static unsigned long int ulongval () { return $2; } | |
2019 #include <stdio.h> | |
2020 #include <stdlib.h> | |
2021 int | |
2022 main () | |
2023 { | |
2024 | |
2025 FILE *f = fopen ("conftest.val", "w"); | |
2026 if (! f) | |
2027 return 1; | |
2028 if (($2) < 0) | |
2029 { | |
2030 long int i = longval (); | |
2031 if (i != ($2)) | |
2032 return 1; | |
2033 fprintf (f, "%ld", i); | |
2034 } | |
2035 else | |
2036 { | |
2037 unsigned long int i = ulongval (); | |
2038 if (i != ($2)) | |
2039 return 1; | |
2040 fprintf (f, "%lu", i); | |
2041 } | |
2042 /* Do not output a trailing newline, as this causes \r\n confusion | |
2043 on some platforms. */ | |
2044 return ferror (f) || fclose (f) != 0; | |
2045 | |
2046 ; | |
2047 return 0; | |
2048 } | |
2049 _ACEOF | |
2050 if ac_fn_c_try_run "$LINENO"; then : | |
2051 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2052 else | |
2053 ac_retval=1 | |
2054 fi | |
2055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2056 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2057 rm -f conftest.val | |
2058 | |
2059 fi | |
2060 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2061 as_fn_set_status $ac_retval | |
2062 | |
2063 } # ac_fn_c_compute_int | |
2064 | |
2065 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
2066 # ------------------------------------------------------- | |
2067 # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2068 # the include files in INCLUDES and setting the cache variable VAR | |
2069 # accordingly. | |
2070 ac_fn_c_check_header_mongrel () | |
2071 { | |
2072 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2073 if eval \${$3+:} false; then : | |
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2075 $as_echo_n "checking for $2... " >&6; } | |
2076 if eval \${$3+:} false; then : | |
2077 $as_echo_n "(cached) " >&6 | |
2078 fi | |
2079 eval ac_res=\$$3 | |
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2081 $as_echo "$ac_res" >&6; } | |
2082 else | |
2083 # Is the header compilable? | |
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2085 $as_echo_n "checking $2 usability... " >&6; } | |
2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2087 /* end confdefs.h. */ | |
2088 $4 | |
2089 #include <$2> | |
2090 _ACEOF | |
2091 if ac_fn_c_try_compile "$LINENO"; then : | |
2092 ac_header_compiler=yes | |
2093 else | |
2094 ac_header_compiler=no | |
2095 fi | |
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2098 $as_echo "$ac_header_compiler" >&6; } | |
2099 | |
2100 # Is the header present? | |
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2102 $as_echo_n "checking $2 presence... " >&6; } | |
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2104 /* end confdefs.h. */ | |
2105 #include <$2> | |
2106 _ACEOF | |
2107 if ac_fn_c_try_cpp "$LINENO"; then : | |
2108 ac_header_preproc=yes | |
2109 else | |
2110 ac_header_preproc=no | |
2111 fi | |
2112 rm -f conftest.err conftest.i conftest.$ac_ext | |
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
2114 $as_echo "$ac_header_preproc" >&6; } | |
2115 | |
2116 # So? What about this header? | |
2117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
2118 yes:no: ) | |
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2120 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2122 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2123 ;; | |
2124 no:yes:* ) | |
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2126 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2128 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2130 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2132 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2134 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2135 ( $as_echo "## ---------------------------- ## | |
2136 ## Report this to fftw@fftw.org ## | |
2137 ## ---------------------------- ##" | |
2138 ) | sed "s/^/$as_me: WARNING: /" >&2 | |
2139 ;; | |
2140 esac | |
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2142 $as_echo_n "checking for $2... " >&6; } | |
2143 if eval \${$3+:} false; then : | |
2144 $as_echo_n "(cached) " >&6 | |
2145 else | |
2146 eval "$3=\$ac_header_compiler" | |
2147 fi | |
2148 eval ac_res=\$$3 | |
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2150 $as_echo "$ac_res" >&6; } | |
2151 fi | |
2152 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2153 | |
2154 } # ac_fn_c_check_header_mongrel | |
2155 | |
2156 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
2157 # ------------------------------------------- | |
2158 # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2159 # variable VAR accordingly. | |
2160 ac_fn_c_check_type () | |
2161 { | |
2162 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2164 $as_echo_n "checking for $2... " >&6; } | |
2165 if eval \${$3+:} false; then : | |
2166 $as_echo_n "(cached) " >&6 | |
2167 else | |
2168 eval "$3=no" | |
2169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2170 /* end confdefs.h. */ | |
2171 $4 | |
2172 int | |
2173 main () | |
2174 { | |
2175 if (sizeof ($2)) | |
2176 return 0; | |
2177 ; | |
2178 return 0; | |
2179 } | |
2180 _ACEOF | |
2181 if ac_fn_c_try_compile "$LINENO"; then : | |
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2183 /* end confdefs.h. */ | |
2184 $4 | |
2185 int | |
2186 main () | |
2187 { | |
2188 if (sizeof (($2))) | |
2189 return 0; | |
2190 ; | |
2191 return 0; | |
2192 } | |
2193 _ACEOF | |
2194 if ac_fn_c_try_compile "$LINENO"; then : | |
2195 | |
2196 else | |
2197 eval "$3=yes" | |
2198 fi | |
2199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2200 fi | |
2201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2202 fi | |
2203 eval ac_res=\$$3 | |
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2205 $as_echo "$ac_res" >&6; } | |
2206 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2207 | |
2208 } # ac_fn_c_check_type | |
2209 | |
2210 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | |
2211 # --------------------------------------------- | |
2212 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
2213 # accordingly. | |
2214 ac_fn_c_check_decl () | |
2215 { | |
2216 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2217 as_decl_name=`echo $2|sed 's/ *(.*//'` | |
2218 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2220 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
2221 if eval \${$3+:} false; then : | |
2222 $as_echo_n "(cached) " >&6 | |
2223 else | |
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2225 /* end confdefs.h. */ | |
2226 $4 | |
2227 int | |
2228 main () | |
2229 { | |
2230 #ifndef $as_decl_name | |
2231 #ifdef __cplusplus | |
2232 (void) $as_decl_use; | |
2233 #else | |
2234 (void) $as_decl_name; | |
2235 #endif | |
2236 #endif | |
2237 | |
2238 ; | |
2239 return 0; | |
2240 } | |
2241 _ACEOF | |
2242 if ac_fn_c_try_compile "$LINENO"; then : | |
2243 eval "$3=yes" | |
2244 else | |
2245 eval "$3=no" | |
2246 fi | |
2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2248 fi | |
2249 eval ac_res=\$$3 | |
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2251 $as_echo "$ac_res" >&6; } | |
2252 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2253 | |
2254 } # ac_fn_c_check_decl | |
2255 | |
2256 # ac_fn_f77_try_compile LINENO | |
2257 # ---------------------------- | |
2258 # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
2259 ac_fn_f77_try_compile () | |
2260 { | |
2261 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2262 rm -f conftest.$ac_objext | |
2263 if { { ac_try="$ac_compile" | |
2264 case "(($ac_try" in | |
2265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2266 *) ac_try_echo=$ac_try;; | |
2267 esac | |
2268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2269 $as_echo "$ac_try_echo"; } >&5 | |
2270 (eval "$ac_compile") 2>conftest.err | |
2271 ac_status=$? | |
2272 if test -s conftest.err; then | |
2273 grep -v '^ *+' conftest.err >conftest.er1 | |
2274 cat conftest.er1 >&5 | |
2275 mv -f conftest.er1 conftest.err | |
2276 fi | |
2277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2278 test $ac_status = 0; } && { | |
2279 test -z "$ac_f77_werror_flag" || | |
2280 test ! -s conftest.err | |
2281 } && test -s conftest.$ac_objext; then : | |
2282 ac_retval=0 | |
2283 else | |
2284 $as_echo "$as_me: failed program was:" >&5 | |
2285 sed 's/^/| /' conftest.$ac_ext >&5 | |
2286 | |
2287 ac_retval=1 | |
2288 fi | |
2289 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2290 as_fn_set_status $ac_retval | |
2291 | |
2292 } # ac_fn_f77_try_compile | |
2293 | |
2294 # ac_fn_f77_try_link LINENO | |
2295 # ------------------------- | |
2296 # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2297 ac_fn_f77_try_link () | |
2298 { | |
2299 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2300 rm -f conftest.$ac_objext conftest$ac_exeext | |
2301 if { { ac_try="$ac_link" | |
2302 case "(($ac_try" in | |
2303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2304 *) ac_try_echo=$ac_try;; | |
2305 esac | |
2306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2307 $as_echo "$ac_try_echo"; } >&5 | |
2308 (eval "$ac_link") 2>conftest.err | |
2309 ac_status=$? | |
2310 if test -s conftest.err; then | |
2311 grep -v '^ *+' conftest.err >conftest.er1 | |
2312 cat conftest.er1 >&5 | |
2313 mv -f conftest.er1 conftest.err | |
2314 fi | |
2315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2316 test $ac_status = 0; } && { | |
2317 test -z "$ac_f77_werror_flag" || | |
2318 test ! -s conftest.err | |
2319 } && test -s conftest$ac_exeext && { | |
2320 test "$cross_compiling" = yes || | |
2321 test -x conftest$ac_exeext | |
2322 }; then : | |
2323 ac_retval=0 | |
2324 else | |
2325 $as_echo "$as_me: failed program was:" >&5 | |
2326 sed 's/^/| /' conftest.$ac_ext >&5 | |
2327 | |
2328 ac_retval=1 | |
2329 fi | |
2330 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2331 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2332 # interfere with the next link command; also delete a directory that is | |
2333 # left behind by Apple's compiler. We do this before executing the actions. | |
2334 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2335 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2336 as_fn_set_status $ac_retval | |
2337 | |
2338 } # ac_fn_f77_try_link | |
2339 cat >config.log <<_ACEOF | |
2340 This file contains any messages produced by compilers while | |
2341 running configure, to aid debugging if configure makes a mistake. | |
2342 | |
2343 It was created by fftw $as_me 3.3.3, which was | |
2344 generated by GNU Autoconf 2.69. Invocation command line was | |
2345 | |
2346 $ $0 $@ | |
2347 | |
2348 _ACEOF | |
2349 exec 5>>config.log | |
2350 { | |
2351 cat <<_ASUNAME | |
2352 ## --------- ## | |
2353 ## Platform. ## | |
2354 ## --------- ## | |
2355 | |
2356 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2357 uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2358 uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2359 uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2360 uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2361 | |
2362 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2363 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2364 | |
2365 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2366 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2367 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2368 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2369 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2370 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2371 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2372 | |
2373 _ASUNAME | |
2374 | |
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2376 for as_dir in $PATH | |
2377 do | |
2378 IFS=$as_save_IFS | |
2379 test -z "$as_dir" && as_dir=. | |
2380 $as_echo "PATH: $as_dir" | |
2381 done | |
2382 IFS=$as_save_IFS | |
2383 | |
2384 } >&5 | |
2385 | |
2386 cat >&5 <<_ACEOF | |
2387 | |
2388 | |
2389 ## ----------- ## | |
2390 ## Core tests. ## | |
2391 ## ----------- ## | |
2392 | |
2393 _ACEOF | |
2394 | |
2395 | |
2396 # Keep a trace of the command line. | |
2397 # Strip out --no-create and --no-recursion so they do not pile up. | |
2398 # Strip out --silent because we don't want to record it for future runs. | |
2399 # Also quote any args containing shell meta-characters. | |
2400 # Make two passes to allow for proper duplicate-argument suppression. | |
2401 ac_configure_args= | |
2402 ac_configure_args0= | |
2403 ac_configure_args1= | |
2404 ac_must_keep_next=false | |
2405 for ac_pass in 1 2 | |
2406 do | |
2407 for ac_arg | |
2408 do | |
2409 case $ac_arg in | |
2410 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2411 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2412 | -silent | --silent | --silen | --sile | --sil) | |
2413 continue ;; | |
2414 *\'*) | |
2415 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2416 esac | |
2417 case $ac_pass in | |
2418 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2419 2) | |
2420 as_fn_append ac_configure_args1 " '$ac_arg'" | |
2421 if test $ac_must_keep_next = true; then | |
2422 ac_must_keep_next=false # Got value, back to normal. | |
2423 else | |
2424 case $ac_arg in | |
2425 *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2426 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2427 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2428 | -with-* | --with-* | -without-* | --without-* | --x) | |
2429 case "$ac_configure_args0 " in | |
2430 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2431 esac | |
2432 ;; | |
2433 -* ) ac_must_keep_next=true ;; | |
2434 esac | |
2435 fi | |
2436 as_fn_append ac_configure_args " '$ac_arg'" | |
2437 ;; | |
2438 esac | |
2439 done | |
2440 done | |
2441 { ac_configure_args0=; unset ac_configure_args0;} | |
2442 { ac_configure_args1=; unset ac_configure_args1;} | |
2443 | |
2444 # When interrupted or exit'd, cleanup temporary files, and complete | |
2445 # config.log. We remove comments because anyway the quotes in there | |
2446 # would cause problems or look ugly. | |
2447 # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2448 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2449 trap 'exit_status=$? | |
2450 # Save into config.log some information that might help in debugging. | |
2451 { | |
2452 echo | |
2453 | |
2454 $as_echo "## ---------------- ## | |
2455 ## Cache variables. ## | |
2456 ## ---------------- ##" | |
2457 echo | |
2458 # The following way of writing the cache mishandles newlines in values, | |
2459 ( | |
2460 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2461 eval ac_val=\$$ac_var | |
2462 case $ac_val in #( | |
2463 *${as_nl}*) | |
2464 case $ac_var in #( | |
2465 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2466 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2467 esac | |
2468 case $ac_var in #( | |
2469 _ | IFS | as_nl) ;; #( | |
2470 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2471 *) { eval $ac_var=; unset $ac_var;} ;; | |
2472 esac ;; | |
2473 esac | |
2474 done | |
2475 (set) 2>&1 | | |
2476 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2477 *${as_nl}ac_space=\ *) | |
2478 sed -n \ | |
2479 "s/'\''/'\''\\\\'\'''\''/g; | |
2480 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2481 ;; #( | |
2482 *) | |
2483 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2484 ;; | |
2485 esac | | |
2486 sort | |
2487 ) | |
2488 echo | |
2489 | |
2490 $as_echo "## ----------------- ## | |
2491 ## Output variables. ## | |
2492 ## ----------------- ##" | |
2493 echo | |
2494 for ac_var in $ac_subst_vars | |
2495 do | |
2496 eval ac_val=\$$ac_var | |
2497 case $ac_val in | |
2498 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2499 esac | |
2500 $as_echo "$ac_var='\''$ac_val'\''" | |
2501 done | sort | |
2502 echo | |
2503 | |
2504 if test -n "$ac_subst_files"; then | |
2505 $as_echo "## ------------------- ## | |
2506 ## File substitutions. ## | |
2507 ## ------------------- ##" | |
2508 echo | |
2509 for ac_var in $ac_subst_files | |
2510 do | |
2511 eval ac_val=\$$ac_var | |
2512 case $ac_val in | |
2513 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2514 esac | |
2515 $as_echo "$ac_var='\''$ac_val'\''" | |
2516 done | sort | |
2517 echo | |
2518 fi | |
2519 | |
2520 if test -s confdefs.h; then | |
2521 $as_echo "## ----------- ## | |
2522 ## confdefs.h. ## | |
2523 ## ----------- ##" | |
2524 echo | |
2525 cat confdefs.h | |
2526 echo | |
2527 fi | |
2528 test "$ac_signal" != 0 && | |
2529 $as_echo "$as_me: caught signal $ac_signal" | |
2530 $as_echo "$as_me: exit $exit_status" | |
2531 } >&5 | |
2532 rm -f core *.core core.conftest.* && | |
2533 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2534 exit $exit_status | |
2535 ' 0 | |
2536 for ac_signal in 1 2 13 15; do | |
2537 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2538 done | |
2539 ac_signal=0 | |
2540 | |
2541 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2542 rm -f -r conftest* confdefs.h | |
2543 | |
2544 $as_echo "/* confdefs.h */" > confdefs.h | |
2545 | |
2546 # Predefined preprocessor variables. | |
2547 | |
2548 cat >>confdefs.h <<_ACEOF | |
2549 #define PACKAGE_NAME "$PACKAGE_NAME" | |
2550 _ACEOF | |
2551 | |
2552 cat >>confdefs.h <<_ACEOF | |
2553 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2554 _ACEOF | |
2555 | |
2556 cat >>confdefs.h <<_ACEOF | |
2557 #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2558 _ACEOF | |
2559 | |
2560 cat >>confdefs.h <<_ACEOF | |
2561 #define PACKAGE_STRING "$PACKAGE_STRING" | |
2562 _ACEOF | |
2563 | |
2564 cat >>confdefs.h <<_ACEOF | |
2565 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2566 _ACEOF | |
2567 | |
2568 cat >>confdefs.h <<_ACEOF | |
2569 #define PACKAGE_URL "$PACKAGE_URL" | |
2570 _ACEOF | |
2571 | |
2572 | |
2573 # Let the site file select an alternate cache file if it wants to. | |
2574 # Prefer an explicitly selected file to automatically selected ones. | |
2575 ac_site_file1=NONE | |
2576 ac_site_file2=NONE | |
2577 if test -n "$CONFIG_SITE"; then | |
2578 # We do not want a PATH search for config.site. | |
2579 case $CONFIG_SITE in #(( | |
2580 -*) ac_site_file1=./$CONFIG_SITE;; | |
2581 */*) ac_site_file1=$CONFIG_SITE;; | |
2582 *) ac_site_file1=./$CONFIG_SITE;; | |
2583 esac | |
2584 elif test "x$prefix" != xNONE; then | |
2585 ac_site_file1=$prefix/share/config.site | |
2586 ac_site_file2=$prefix/etc/config.site | |
2587 else | |
2588 ac_site_file1=$ac_default_prefix/share/config.site | |
2589 ac_site_file2=$ac_default_prefix/etc/config.site | |
2590 fi | |
2591 for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2592 do | |
2593 test "x$ac_site_file" = xNONE && continue | |
2594 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2596 $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2597 sed 's/^/| /' "$ac_site_file" >&5 | |
2598 . "$ac_site_file" \ | |
2599 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2601 as_fn_error $? "failed to load site script $ac_site_file | |
2602 See \`config.log' for more details" "$LINENO" 5; } | |
2603 fi | |
2604 done | |
2605 | |
2606 if test -r "$cache_file"; then | |
2607 # Some versions of bash will fail to source /dev/null (special files | |
2608 # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2609 if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2611 $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2612 case $cache_file in | |
2613 [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2614 *) . "./$cache_file";; | |
2615 esac | |
2616 fi | |
2617 else | |
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2619 $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2620 >$cache_file | |
2621 fi | |
2622 | |
2623 # Check that the precious variables saved in the cache have kept the same | |
2624 # value. | |
2625 ac_cache_corrupted=false | |
2626 for ac_var in $ac_precious_vars; do | |
2627 eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2628 eval ac_new_set=\$ac_env_${ac_var}_set | |
2629 eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2630 eval ac_new_val=\$ac_env_${ac_var}_value | |
2631 case $ac_old_set,$ac_new_set in | |
2632 set,) | |
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2634 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2635 ac_cache_corrupted=: ;; | |
2636 ,set) | |
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2638 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2639 ac_cache_corrupted=: ;; | |
2640 ,);; | |
2641 *) | |
2642 if test "x$ac_old_val" != "x$ac_new_val"; then | |
2643 # differences in whitespace do not lead to failure. | |
2644 ac_old_val_w=`echo x $ac_old_val` | |
2645 ac_new_val_w=`echo x $ac_new_val` | |
2646 if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2648 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2649 ac_cache_corrupted=: | |
2650 else | |
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2652 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2653 eval $ac_var=\$ac_old_val | |
2654 fi | |
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2656 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2658 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2659 fi;; | |
2660 esac | |
2661 # Pass precious variables to config.status. | |
2662 if test "$ac_new_set" = set; then | |
2663 case $ac_new_val in | |
2664 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2665 *) ac_arg=$ac_var=$ac_new_val ;; | |
2666 esac | |
2667 case " $ac_configure_args " in | |
2668 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2669 *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2670 esac | |
2671 fi | |
2672 done | |
2673 if $ac_cache_corrupted; then | |
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2677 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2678 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2679 fi | |
2680 ## -------------------- ## | |
2681 ## Main body of script. ## | |
2682 ## -------------------- ## | |
2683 | |
2684 ac_ext=c | |
2685 ac_cpp='$CPP $CPPFLAGS' | |
2686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2688 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2689 | |
2690 | |
2691 | |
2692 # fftw-3.1.x was 4:X:1 | |
2693 # fftw-3.2.x was 5:X:2 | |
2694 # fftw-3.3.x was 6:X:3 | |
2695 SHARED_VERSION_INFO="6:2:3" # CURRENT:REVISION:AGE | |
2696 | |
2697 am__api_version='1.11' | |
2698 | |
2699 ac_aux_dir= | |
2700 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2701 if test -f "$ac_dir/install-sh"; then | |
2702 ac_aux_dir=$ac_dir | |
2703 ac_install_sh="$ac_aux_dir/install-sh -c" | |
2704 break | |
2705 elif test -f "$ac_dir/install.sh"; then | |
2706 ac_aux_dir=$ac_dir | |
2707 ac_install_sh="$ac_aux_dir/install.sh -c" | |
2708 break | |
2709 elif test -f "$ac_dir/shtool"; then | |
2710 ac_aux_dir=$ac_dir | |
2711 ac_install_sh="$ac_aux_dir/shtool install -c" | |
2712 break | |
2713 fi | |
2714 done | |
2715 if test -z "$ac_aux_dir"; then | |
2716 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
2717 fi | |
2718 | |
2719 # These three variables are undocumented and unsupported, | |
2720 # and are intended to be withdrawn in a future Autoconf release. | |
2721 # They can cause serious problems if a builder's source tree is in a directory | |
2722 # whose full name contains unusual characters. | |
2723 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2724 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2725 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2726 | |
2727 | |
2728 # Find a good install program. We prefer a C program (faster), | |
2729 # so one script is as good as another. But avoid the broken or | |
2730 # incompatible versions: | |
2731 # SysV /etc/install, /usr/sbin/install | |
2732 # SunOS /usr/etc/install | |
2733 # IRIX /sbin/install | |
2734 # AIX /bin/install | |
2735 # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2736 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2737 # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2738 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2739 # OS/2's system install, which has a completely different semantic | |
2740 # ./install, which can be erroneously created by make from ./install.sh. | |
2741 # Reject install programs that cannot install multiple files. | |
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2743 $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2744 if test -z "$INSTALL"; then | |
2745 if ${ac_cv_path_install+:} false; then : | |
2746 $as_echo_n "(cached) " >&6 | |
2747 else | |
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2749 for as_dir in $PATH | |
2750 do | |
2751 IFS=$as_save_IFS | |
2752 test -z "$as_dir" && as_dir=. | |
2753 # Account for people who put trailing slashes in PATH elements. | |
2754 case $as_dir/ in #(( | |
2755 ./ | .// | /[cC]/* | \ | |
2756 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2757 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2758 /usr/ucb/* ) ;; | |
2759 *) | |
2760 # OSF1 and SCO ODT 3.0 have their own names for install. | |
2761 # Don't use installbsd from OSF since it installs stuff as root | |
2762 # by default. | |
2763 for ac_prog in ginstall scoinst install; do | |
2764 for ac_exec_ext in '' $ac_executable_extensions; do | |
2765 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2766 if test $ac_prog = install && | |
2767 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2768 # AIX install. It has an incompatible calling convention. | |
2769 : | |
2770 elif test $ac_prog = install && | |
2771 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2772 # program-specific install script used by HP pwplus--don't use. | |
2773 : | |
2774 else | |
2775 rm -rf conftest.one conftest.two conftest.dir | |
2776 echo one > conftest.one | |
2777 echo two > conftest.two | |
2778 mkdir conftest.dir | |
2779 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2780 test -s conftest.one && test -s conftest.two && | |
2781 test -s conftest.dir/conftest.one && | |
2782 test -s conftest.dir/conftest.two | |
2783 then | |
2784 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2785 break 3 | |
2786 fi | |
2787 fi | |
2788 fi | |
2789 done | |
2790 done | |
2791 ;; | |
2792 esac | |
2793 | |
2794 done | |
2795 IFS=$as_save_IFS | |
2796 | |
2797 rm -rf conftest.one conftest.two conftest.dir | |
2798 | |
2799 fi | |
2800 if test "${ac_cv_path_install+set}" = set; then | |
2801 INSTALL=$ac_cv_path_install | |
2802 else | |
2803 # As a last resort, use the slow shell script. Don't cache a | |
2804 # value for INSTALL within a source directory, because that will | |
2805 # break other packages using the cache if that directory is | |
2806 # removed, or if the value is a relative name. | |
2807 INSTALL=$ac_install_sh | |
2808 fi | |
2809 fi | |
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2811 $as_echo "$INSTALL" >&6; } | |
2812 | |
2813 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2814 # It thinks the first close brace ends the variable substitution. | |
2815 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2816 | |
2817 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2818 | |
2819 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2820 | |
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
2822 $as_echo_n "checking whether build environment is sane... " >&6; } | |
2823 # Just in case | |
2824 sleep 1 | |
2825 echo timestamp > conftest.file | |
2826 # Reject unsafe characters in $srcdir or the absolute working directory | |
2827 # name. Accept space and tab only in the latter. | |
2828 am_lf=' | |
2829 ' | |
2830 case `pwd` in | |
2831 *[\\\"\#\$\&\'\`$am_lf]*) | |
2832 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
2833 esac | |
2834 case $srcdir in | |
2835 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2836 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
2837 esac | |
2838 | |
2839 # Do `set' in a subshell so we don't clobber the current shell's | |
2840 # arguments. Must try -L first in case configure is actually a | |
2841 # symlink; some systems play weird games with the mod time of symlinks | |
2842 # (eg FreeBSD returns the mod time of the symlink's containing | |
2843 # directory). | |
2844 if ( | |
2845 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2846 if test "$*" = "X"; then | |
2847 # -L didn't work. | |
2848 set X `ls -t "$srcdir/configure" conftest.file` | |
2849 fi | |
2850 rm -f conftest.file | |
2851 if test "$*" != "X $srcdir/configure conftest.file" \ | |
2852 && test "$*" != "X conftest.file $srcdir/configure"; then | |
2853 | |
2854 # If neither matched, then we have a broken ls. This can happen | |
2855 # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2856 # broken ls alias from the environment. This has actually | |
2857 # happened. Such a system could not be considered "sane". | |
2858 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2859 alias in your environment" "$LINENO" 5 | |
2860 fi | |
2861 | |
2862 test "$2" = conftest.file | |
2863 ) | |
2864 then | |
2865 # Ok. | |
2866 : | |
2867 else | |
2868 as_fn_error $? "newly created file is older than distributed files! | |
2869 Check your system clock" "$LINENO" 5 | |
2870 fi | |
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2872 $as_echo "yes" >&6; } | |
2873 test "$program_prefix" != NONE && | |
2874 program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2875 # Use a double $ so make ignores it. | |
2876 test "$program_suffix" != NONE && | |
2877 program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2878 # Double any \ or $. | |
2879 # By default was `s,x,x', remove it if useless. | |
2880 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
2881 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2882 | |
2883 # expand $ac_aux_dir to an absolute path | |
2884 am_aux_dir=`cd $ac_aux_dir && pwd` | |
2885 | |
2886 if test x"${MISSING+set}" != xset; then | |
2887 case $am_aux_dir in | |
2888 *\ * | *\ *) | |
2889 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2890 *) | |
2891 MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2892 esac | |
2893 fi | |
2894 # Use eval to expand $SHELL | |
2895 if eval "$MISSING --run true"; then | |
2896 am_missing_run="$MISSING --run " | |
2897 else | |
2898 am_missing_run= | |
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | |
2900 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2901 fi | |
2902 | |
2903 if test x"${install_sh}" != xset; then | |
2904 case $am_aux_dir in | |
2905 *\ * | *\ *) | |
2906 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2907 *) | |
2908 install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2909 esac | |
2910 fi | |
2911 | |
2912 # Installed binaries are usually stripped using `strip' when the user | |
2913 # run `make install-strip'. However `strip' might not be the right | |
2914 # tool to use in cross-compilation environments, therefore Automake | |
2915 # will honor the `STRIP' environment variable to overrule this program. | |
2916 if test "$cross_compiling" != no; then | |
2917 if test -n "$ac_tool_prefix"; then | |
2918 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2919 set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2921 $as_echo_n "checking for $ac_word... " >&6; } | |
2922 if ${ac_cv_prog_STRIP+:} false; then : | |
2923 $as_echo_n "(cached) " >&6 | |
2924 else | |
2925 if test -n "$STRIP"; then | |
2926 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2927 else | |
2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2929 for as_dir in $PATH | |
2930 do | |
2931 IFS=$as_save_IFS | |
2932 test -z "$as_dir" && as_dir=. | |
2933 for ac_exec_ext in '' $ac_executable_extensions; do | |
2934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2935 ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2937 break 2 | |
2938 fi | |
2939 done | |
2940 done | |
2941 IFS=$as_save_IFS | |
2942 | |
2943 fi | |
2944 fi | |
2945 STRIP=$ac_cv_prog_STRIP | |
2946 if test -n "$STRIP"; then | |
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2948 $as_echo "$STRIP" >&6; } | |
2949 else | |
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2951 $as_echo "no" >&6; } | |
2952 fi | |
2953 | |
2954 | |
2955 fi | |
2956 if test -z "$ac_cv_prog_STRIP"; then | |
2957 ac_ct_STRIP=$STRIP | |
2958 # Extract the first word of "strip", so it can be a program name with args. | |
2959 set dummy strip; ac_word=$2 | |
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2961 $as_echo_n "checking for $ac_word... " >&6; } | |
2962 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
2963 $as_echo_n "(cached) " >&6 | |
2964 else | |
2965 if test -n "$ac_ct_STRIP"; then | |
2966 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2967 else | |
2968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2969 for as_dir in $PATH | |
2970 do | |
2971 IFS=$as_save_IFS | |
2972 test -z "$as_dir" && as_dir=. | |
2973 for ac_exec_ext in '' $ac_executable_extensions; do | |
2974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2975 ac_cv_prog_ac_ct_STRIP="strip" | |
2976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2977 break 2 | |
2978 fi | |
2979 done | |
2980 done | |
2981 IFS=$as_save_IFS | |
2982 | |
2983 fi | |
2984 fi | |
2985 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2986 if test -n "$ac_ct_STRIP"; then | |
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2988 $as_echo "$ac_ct_STRIP" >&6; } | |
2989 else | |
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2991 $as_echo "no" >&6; } | |
2992 fi | |
2993 | |
2994 if test "x$ac_ct_STRIP" = x; then | |
2995 STRIP=":" | |
2996 else | |
2997 case $cross_compiling:$ac_tool_warned in | |
2998 yes:) | |
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3001 ac_tool_warned=yes ;; | |
3002 esac | |
3003 STRIP=$ac_ct_STRIP | |
3004 fi | |
3005 else | |
3006 STRIP="$ac_cv_prog_STRIP" | |
3007 fi | |
3008 | |
3009 fi | |
3010 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3011 | |
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3013 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3014 if test -z "$MKDIR_P"; then | |
3015 if ${ac_cv_path_mkdir+:} false; then : | |
3016 $as_echo_n "(cached) " >&6 | |
3017 else | |
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3019 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3020 do | |
3021 IFS=$as_save_IFS | |
3022 test -z "$as_dir" && as_dir=. | |
3023 for ac_prog in mkdir gmkdir; do | |
3024 for ac_exec_ext in '' $ac_executable_extensions; do | |
3025 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
3026 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3027 'mkdir (GNU coreutils) '* | \ | |
3028 'mkdir (coreutils) '* | \ | |
3029 'mkdir (fileutils) '4.1*) | |
3030 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3031 break 3;; | |
3032 esac | |
3033 done | |
3034 done | |
3035 done | |
3036 IFS=$as_save_IFS | |
3037 | |
3038 fi | |
3039 | |
3040 test -d ./--version && rmdir ./--version | |
3041 if test "${ac_cv_path_mkdir+set}" = set; then | |
3042 MKDIR_P="$ac_cv_path_mkdir -p" | |
3043 else | |
3044 # As a last resort, use the slow shell script. Don't cache a | |
3045 # value for MKDIR_P within a source directory, because that will | |
3046 # break other packages using the cache if that directory is | |
3047 # removed, or if the value is a relative name. | |
3048 MKDIR_P="$ac_install_sh -d" | |
3049 fi | |
3050 fi | |
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
3052 $as_echo "$MKDIR_P" >&6; } | |
3053 | |
3054 mkdir_p="$MKDIR_P" | |
3055 case $mkdir_p in | |
3056 [\\/$]* | ?:[\\/]*) ;; | |
3057 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
3058 esac | |
3059 | |
3060 for ac_prog in gawk mawk nawk awk | |
3061 do | |
3062 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3063 set dummy $ac_prog; ac_word=$2 | |
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3065 $as_echo_n "checking for $ac_word... " >&6; } | |
3066 if ${ac_cv_prog_AWK+:} false; then : | |
3067 $as_echo_n "(cached) " >&6 | |
3068 else | |
3069 if test -n "$AWK"; then | |
3070 ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3071 else | |
3072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3073 for as_dir in $PATH | |
3074 do | |
3075 IFS=$as_save_IFS | |
3076 test -z "$as_dir" && as_dir=. | |
3077 for ac_exec_ext in '' $ac_executable_extensions; do | |
3078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3079 ac_cv_prog_AWK="$ac_prog" | |
3080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3081 break 2 | |
3082 fi | |
3083 done | |
3084 done | |
3085 IFS=$as_save_IFS | |
3086 | |
3087 fi | |
3088 fi | |
3089 AWK=$ac_cv_prog_AWK | |
3090 if test -n "$AWK"; then | |
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
3092 $as_echo "$AWK" >&6; } | |
3093 else | |
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3095 $as_echo "no" >&6; } | |
3096 fi | |
3097 | |
3098 | |
3099 test -n "$AWK" && break | |
3100 done | |
3101 | |
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3103 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3104 set x ${MAKE-make} | |
3105 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3106 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
3107 $as_echo_n "(cached) " >&6 | |
3108 else | |
3109 cat >conftest.make <<\_ACEOF | |
3110 SHELL = /bin/sh | |
3111 all: | |
3112 @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3113 _ACEOF | |
3114 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
3115 case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3116 *@@@%%%=?*=@@@%%%*) | |
3117 eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3118 *) | |
3119 eval ac_cv_prog_make_${ac_make}_set=no;; | |
3120 esac | |
3121 rm -f conftest.make | |
3122 fi | |
3123 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3125 $as_echo "yes" >&6; } | |
3126 SET_MAKE= | |
3127 else | |
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3129 $as_echo "no" >&6; } | |
3130 SET_MAKE="MAKE=${MAKE-make}" | |
3131 fi | |
3132 | |
3133 rm -rf .tst 2>/dev/null | |
3134 mkdir .tst 2>/dev/null | |
3135 if test -d .tst; then | |
3136 am__leading_dot=. | |
3137 else | |
3138 am__leading_dot=_ | |
3139 fi | |
3140 rmdir .tst 2>/dev/null | |
3141 | |
3142 if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
3143 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3144 # is not polluted with repeated "-I." | |
3145 am__isrc=' -I$(srcdir)' | |
3146 # test to see if srcdir already configured | |
3147 if test -f $srcdir/config.status; then | |
3148 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3149 fi | |
3150 fi | |
3151 | |
3152 # test whether we have cygpath | |
3153 if test -z "$CYGPATH_W"; then | |
3154 if (cygpath --version) >/dev/null 2>/dev/null; then | |
3155 CYGPATH_W='cygpath -w' | |
3156 else | |
3157 CYGPATH_W=echo | |
3158 fi | |
3159 fi | |
3160 | |
3161 | |
3162 # Define the identity of the package. | |
3163 PACKAGE='fftw' | |
3164 VERSION='3.3.3' | |
3165 | |
3166 | |
3167 cat >>confdefs.h <<_ACEOF | |
3168 #define PACKAGE "$PACKAGE" | |
3169 _ACEOF | |
3170 | |
3171 | |
3172 cat >>confdefs.h <<_ACEOF | |
3173 #define VERSION "$VERSION" | |
3174 _ACEOF | |
3175 | |
3176 # Some tools Automake needs. | |
3177 | |
3178 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3179 | |
3180 | |
3181 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3182 | |
3183 | |
3184 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3185 | |
3186 | |
3187 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3188 | |
3189 | |
3190 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3191 | |
3192 # We need awk for the "check" target. The system "awk" is bad on | |
3193 # some platforms. | |
3194 # Always define AMTAR for backward compatibility. Yes, it's still used | |
3195 # in the wild :-( We should find a proper way to deprecate it ... | |
3196 AMTAR='$${TAR-tar}' | |
3197 | |
3198 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
3199 | |
3200 | |
3201 | |
3202 | |
3203 | |
3204 ac_config_headers="$ac_config_headers config.h" | |
3205 | |
3206 | |
3207 | |
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
3209 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
3210 # Check whether --enable-maintainer-mode was given. | |
3211 if test "${enable_maintainer_mode+set}" = set; then : | |
3212 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3213 else | |
3214 USE_MAINTAINER_MODE=no | |
3215 fi | |
3216 | |
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
3218 $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3219 if test $USE_MAINTAINER_MODE = yes; then | |
3220 MAINTAINER_MODE_TRUE= | |
3221 MAINTAINER_MODE_FALSE='#' | |
3222 else | |
3223 MAINTAINER_MODE_TRUE='#' | |
3224 MAINTAINER_MODE_FALSE= | |
3225 fi | |
3226 | |
3227 MAINT=$MAINTAINER_MODE_TRUE | |
3228 | |
3229 | |
3230 | |
3231 # Check whether --enable-shared was given. | |
3232 if test "${enable_shared+set}" = set; then : | |
3233 enableval=$enable_shared; p=${PACKAGE-default} | |
3234 case $enableval in | |
3235 yes) enable_shared=yes ;; | |
3236 no) enable_shared=no ;; | |
3237 *) | |
3238 enable_shared=no | |
3239 # Look at the argument we got. We use all the common list separators. | |
3240 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3241 for pkg in $enableval; do | |
3242 IFS="$lt_save_ifs" | |
3243 if test "X$pkg" = "X$p"; then | |
3244 enable_shared=yes | |
3245 fi | |
3246 done | |
3247 IFS="$lt_save_ifs" | |
3248 ;; | |
3249 esac | |
3250 else | |
3251 enable_shared=no | |
3252 fi | |
3253 | |
3254 | |
3255 | |
3256 | |
3257 | |
3258 | |
3259 | |
3260 | |
3261 # Make sure we can run config.sub. | |
3262 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
3263 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
3264 | |
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
3266 $as_echo_n "checking build system type... " >&6; } | |
3267 if ${ac_cv_build+:} false; then : | |
3268 $as_echo_n "(cached) " >&6 | |
3269 else | |
3270 ac_build_alias=$build_alias | |
3271 test "x$ac_build_alias" = x && | |
3272 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
3273 test "x$ac_build_alias" = x && | |
3274 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
3275 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
3276 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
3277 | |
3278 fi | |
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
3280 $as_echo "$ac_cv_build" >&6; } | |
3281 case $ac_cv_build in | |
3282 *-*-*) ;; | |
3283 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
3284 esac | |
3285 build=$ac_cv_build | |
3286 ac_save_IFS=$IFS; IFS='-' | |
3287 set x $ac_cv_build | |
3288 shift | |
3289 build_cpu=$1 | |
3290 build_vendor=$2 | |
3291 shift; shift | |
3292 # Remember, the first character of IFS is used to create $*, | |
3293 # except with old shells: | |
3294 build_os=$* | |
3295 IFS=$ac_save_IFS | |
3296 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
3297 | |
3298 | |
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
3300 $as_echo_n "checking host system type... " >&6; } | |
3301 if ${ac_cv_host+:} false; then : | |
3302 $as_echo_n "(cached) " >&6 | |
3303 else | |
3304 if test "x$host_alias" = x; then | |
3305 ac_cv_host=$ac_cv_build | |
3306 else | |
3307 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
3308 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
3309 fi | |
3310 | |
3311 fi | |
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
3313 $as_echo "$ac_cv_host" >&6; } | |
3314 case $ac_cv_host in | |
3315 *-*-*) ;; | |
3316 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
3317 esac | |
3318 host=$ac_cv_host | |
3319 ac_save_IFS=$IFS; IFS='-' | |
3320 set x $ac_cv_host | |
3321 shift | |
3322 host_cpu=$1 | |
3323 host_vendor=$2 | |
3324 shift; shift | |
3325 # Remember, the first character of IFS is used to create $*, | |
3326 # except with old shells: | |
3327 host_os=$* | |
3328 IFS=$ac_save_IFS | |
3329 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
3330 | |
3331 | |
3332 | |
3333 case "${host_cpu}" in | |
3334 powerpc*) have_fma=yes;; | |
3335 ia64*) have_fma=yes;; | |
3336 hppa*) have_fma=yes;; | |
3337 mips64*) have_fma=yes;; | |
3338 *) have_fma=no;; | |
3339 esac | |
3340 | |
3341 # Check whether --enable-fma was given. | |
3342 if test "${enable_fma+set}" = set; then : | |
3343 enableval=$enable_fma; have_fma=$enableval | |
3344 fi | |
3345 | |
3346 if test "$have_fma"x = "yes"x; then | |
3347 | |
3348 $as_echo "#define HAVE_FMA 1" >>confdefs.h | |
3349 | |
3350 fi | |
3351 | |
3352 | |
3353 # Check whether --enable-debug was given. | |
3354 if test "${enable_debug+set}" = set; then : | |
3355 enableval=$enable_debug; ok=$enableval | |
3356 else | |
3357 ok=no | |
3358 fi | |
3359 | |
3360 if test "$ok" = "yes"; then | |
3361 | |
3362 $as_echo "#define FFTW_DEBUG 1" >>confdefs.h | |
3363 | |
3364 debug_malloc=yes | |
3365 else | |
3366 debug_malloc=no | |
3367 fi | |
3368 | |
3369 # Check whether --enable-debug-malloc was given. | |
3370 if test "${enable_debug_malloc+set}" = set; then : | |
3371 enableval=$enable_debug_malloc; ok=$enableval | |
3372 else | |
3373 ok=$debug_malloc | |
3374 fi | |
3375 | |
3376 if test "$ok" = "yes"; then | |
3377 | |
3378 $as_echo "#define FFTW_DEBUG_MALLOC 1" >>confdefs.h | |
3379 | |
3380 fi | |
3381 | |
3382 # Check whether --enable-debug-alignment was given. | |
3383 if test "${enable_debug_alignment+set}" = set; then : | |
3384 enableval=$enable_debug_alignment; ok=$enableval | |
3385 else | |
3386 ok=no | |
3387 fi | |
3388 | |
3389 if test "$ok" = "yes"; then | |
3390 | |
3391 $as_echo "#define FFTW_DEBUG_ALIGNMENT 1" >>confdefs.h | |
3392 | |
3393 fi | |
3394 | |
3395 # Check whether --enable-random-estimator was given. | |
3396 if test "${enable_random_estimator+set}" = set; then : | |
3397 enableval=$enable_random_estimator; ok=$enableval | |
3398 else | |
3399 ok=no | |
3400 fi | |
3401 | |
3402 if test "$ok" = "yes"; then | |
3403 | |
3404 $as_echo "#define FFTW_RANDOM_ESTIMATOR 1" >>confdefs.h | |
3405 | |
3406 CHECK_PL_OPTS="--estimate" | |
3407 fi | |
3408 | |
3409 # Check whether --enable-alloca was given. | |
3410 if test "${enable_alloca+set}" = set; then : | |
3411 enableval=$enable_alloca; ok=$enableval | |
3412 else | |
3413 ok=yes | |
3414 fi | |
3415 | |
3416 if test "$ok" = "yes"; then | |
3417 | |
3418 $as_echo "#define FFTW_ENABLE_ALLOCA 1" >>confdefs.h | |
3419 | |
3420 fi | |
3421 | |
3422 # Check whether --enable-single was given. | |
3423 if test "${enable_single+set}" = set; then : | |
3424 enableval=$enable_single; ok=$enableval | |
3425 else | |
3426 ok=no | |
3427 fi | |
3428 | |
3429 # Check whether --enable-float was given. | |
3430 if test "${enable_float+set}" = set; then : | |
3431 enableval=$enable_float; ok=$enableval | |
3432 fi | |
3433 | |
3434 if test "$ok" = "yes"; then | |
3435 | |
3436 $as_echo "#define FFTW_SINGLE 1" >>confdefs.h | |
3437 | |
3438 | |
3439 $as_echo "#define BENCHFFT_SINGLE 1" >>confdefs.h | |
3440 | |
3441 PRECISION=s | |
3442 else | |
3443 PRECISION=d | |
3444 fi | |
3445 if test "$ok" = "yes"; then | |
3446 SINGLE_TRUE= | |
3447 SINGLE_FALSE='#' | |
3448 else | |
3449 SINGLE_TRUE='#' | |
3450 SINGLE_FALSE= | |
3451 fi | |
3452 | |
3453 | |
3454 # Check whether --enable-long-double was given. | |
3455 if test "${enable_long_double+set}" = set; then : | |
3456 enableval=$enable_long_double; ok=$enableval | |
3457 else | |
3458 ok=no | |
3459 fi | |
3460 | |
3461 if test "$ok" = "yes"; then | |
3462 if test "$PRECISION" = "s"; then | |
3463 as_fn_error $? "--enable-single/--enable-long-double conflict" "$LINENO" 5 | |
3464 fi | |
3465 | |
3466 $as_echo "#define FFTW_LDOUBLE 1" >>confdefs.h | |
3467 | |
3468 | |
3469 $as_echo "#define BENCHFFT_LDOUBLE 1" >>confdefs.h | |
3470 | |
3471 PRECISION=l | |
3472 fi | |
3473 if test "$ok" = "yes"; then | |
3474 LDOUBLE_TRUE= | |
3475 LDOUBLE_FALSE='#' | |
3476 else | |
3477 LDOUBLE_TRUE='#' | |
3478 LDOUBLE_FALSE= | |
3479 fi | |
3480 | |
3481 | |
3482 # Check whether --enable-quad-precision was given. | |
3483 if test "${enable_quad_precision+set}" = set; then : | |
3484 enableval=$enable_quad_precision; ok=$enableval | |
3485 else | |
3486 ok=no | |
3487 fi | |
3488 | |
3489 if test "$ok" = "yes"; then | |
3490 if test "$PRECISION" != "d"; then | |
3491 as_fn_error $? "conflicting precisions specified" "$LINENO" 5 | |
3492 fi | |
3493 | |
3494 $as_echo "#define FFTW_QUAD 1" >>confdefs.h | |
3495 | |
3496 | |
3497 $as_echo "#define BENCHFFT_QUAD 1" >>confdefs.h | |
3498 | |
3499 PRECISION=q | |
3500 fi | |
3501 if test "$ok" = "yes"; then | |
3502 QUAD_TRUE= | |
3503 QUAD_FALSE='#' | |
3504 else | |
3505 QUAD_TRUE='#' | |
3506 QUAD_FALSE= | |
3507 fi | |
3508 | |
3509 | |
3510 | |
3511 | |
3512 | |
3513 # Check whether --enable-sse was given. | |
3514 if test "${enable_sse+set}" = set; then : | |
3515 enableval=$enable_sse; have_sse=$enableval | |
3516 else | |
3517 have_sse=no | |
3518 fi | |
3519 | |
3520 if test "$have_sse" = "yes"; then | |
3521 if test "$PRECISION" != "s"; then | |
3522 as_fn_error $? "SSE requires single precision" "$LINENO" 5 | |
3523 fi | |
3524 fi | |
3525 | |
3526 # Check whether --enable-sse2 was given. | |
3527 if test "${enable_sse2+set}" = set; then : | |
3528 enableval=$enable_sse2; have_sse2=$enableval | |
3529 else | |
3530 have_sse2=no | |
3531 fi | |
3532 | |
3533 if test "$have_sse" = "yes"; then have_sse2=yes; fi | |
3534 if test "$have_sse2" = "yes"; then | |
3535 | |
3536 $as_echo "#define HAVE_SSE2 1" >>confdefs.h | |
3537 | |
3538 if test "$PRECISION" != "d" -a "$PRECISION" != "s"; then | |
3539 as_fn_error $? "SSE2 requires single or double precision" "$LINENO" 5 | |
3540 fi | |
3541 fi | |
3542 if test "$have_sse2" = "yes"; then | |
3543 HAVE_SSE2_TRUE= | |
3544 HAVE_SSE2_FALSE='#' | |
3545 else | |
3546 HAVE_SSE2_TRUE='#' | |
3547 HAVE_SSE2_FALSE= | |
3548 fi | |
3549 | |
3550 | |
3551 # Check whether --enable-avx was given. | |
3552 if test "${enable_avx+set}" = set; then : | |
3553 enableval=$enable_avx; have_avx=$enableval | |
3554 else | |
3555 have_avx=no | |
3556 fi | |
3557 | |
3558 if test "$have_avx" = "yes"; then | |
3559 | |
3560 $as_echo "#define HAVE_AVX 1" >>confdefs.h | |
3561 | |
3562 if test "$PRECISION" != "d" -a "$PRECISION" != "s"; then | |
3563 as_fn_error $? "AVX requires single or double precision" "$LINENO" 5 | |
3564 fi | |
3565 fi | |
3566 if test "$have_avx" = "yes"; then | |
3567 HAVE_AVX_TRUE= | |
3568 HAVE_AVX_FALSE='#' | |
3569 else | |
3570 HAVE_AVX_TRUE='#' | |
3571 HAVE_AVX_FALSE= | |
3572 fi | |
3573 | |
3574 | |
3575 # Check whether --enable-altivec was given. | |
3576 if test "${enable_altivec+set}" = set; then : | |
3577 enableval=$enable_altivec; have_altivec=$enableval | |
3578 else | |
3579 have_altivec=no | |
3580 fi | |
3581 | |
3582 if test "$have_altivec" = "yes"; then | |
3583 | |
3584 $as_echo "#define HAVE_ALTIVEC 1" >>confdefs.h | |
3585 | |
3586 if test "$PRECISION" != "s"; then | |
3587 as_fn_error $? "Altivec requires single precision" "$LINENO" 5 | |
3588 fi | |
3589 fi | |
3590 if test "$have_altivec" = "yes"; then | |
3591 HAVE_ALTIVEC_TRUE= | |
3592 HAVE_ALTIVEC_FALSE='#' | |
3593 else | |
3594 HAVE_ALTIVEC_TRUE='#' | |
3595 HAVE_ALTIVEC_FALSE= | |
3596 fi | |
3597 | |
3598 | |
3599 # Check whether --enable-neon was given. | |
3600 if test "${enable_neon+set}" = set; then : | |
3601 enableval=$enable_neon; have_neon=$enableval | |
3602 else | |
3603 have_neon=no | |
3604 fi | |
3605 | |
3606 if test "$have_neon" = "yes"; then | |
3607 | |
3608 $as_echo "#define HAVE_NEON 1" >>confdefs.h | |
3609 | |
3610 if test "$PRECISION" != "s"; then | |
3611 as_fn_error $? "NEON requires single precision" "$LINENO" 5 | |
3612 fi | |
3613 fi | |
3614 if test "$have_neon" = "yes"; then | |
3615 HAVE_NEON_TRUE= | |
3616 HAVE_NEON_FALSE='#' | |
3617 else | |
3618 HAVE_NEON_TRUE='#' | |
3619 HAVE_NEON_FALSE= | |
3620 fi | |
3621 | |
3622 | |
3623 | |
3624 | |
3625 # Check whether --with-slow-timer was given. | |
3626 if test "${with_slow_timer+set}" = set; then : | |
3627 withval=$with_slow_timer; with_slow_timer=$withval | |
3628 else | |
3629 with_slow_timer=no | |
3630 fi | |
3631 | |
3632 if test "$with_slow_timer" = "yes"; then | |
3633 | |
3634 $as_echo "#define WITH_SLOW_TIMER 1" >>confdefs.h | |
3635 | |
3636 fi | |
3637 | |
3638 # Check whether --enable-mips_zbus_timer was given. | |
3639 if test "${enable_mips_zbus_timer+set}" = set; then : | |
3640 enableval=$enable_mips_zbus_timer; have_mips_zbus_timer=$enableval | |
3641 else | |
3642 have_mips_zbus_timer=no | |
3643 fi | |
3644 | |
3645 if test "$have_mips_zbus_timer" = "yes"; then | |
3646 | |
3647 $as_echo "#define HAVE_MIPS_ZBUS_TIMER 1" >>confdefs.h | |
3648 | |
3649 fi | |
3650 | |
3651 | |
3652 # Check whether --with-our-malloc was given. | |
3653 if test "${with_our_malloc+set}" = set; then : | |
3654 withval=$with_our_malloc; with_our_malloc=$withval | |
3655 else | |
3656 with_our_malloc=no | |
3657 fi | |
3658 | |
3659 | |
3660 # Check whether --with-our-malloc16 was given. | |
3661 if test "${with_our_malloc16+set}" = set; then : | |
3662 withval=$with_our_malloc16; with_our_malloc=$withval | |
3663 fi | |
3664 | |
3665 if test "$with_our_malloc" = "yes"; then | |
3666 | |
3667 $as_echo "#define WITH_OUR_MALLOC 1" >>confdefs.h | |
3668 | |
3669 fi | |
3670 | |
3671 | |
3672 # Check whether --with-windows-f77-mangling was given. | |
3673 if test "${with_windows_f77_mangling+set}" = set; then : | |
3674 withval=$with_windows_f77_mangling; with_windows_f77_mangling=$withval | |
3675 else | |
3676 with_windows_f77_mangling=no | |
3677 fi | |
3678 | |
3679 if test "$with_windows_f77_mangling" = "yes"; then | |
3680 | |
3681 $as_echo "#define WINDOWS_F77_MANGLING 1" >>confdefs.h | |
3682 | |
3683 fi | |
3684 | |
3685 | |
3686 # Check whether --with-incoming-stack-boundary was given. | |
3687 if test "${with_incoming_stack_boundary+set}" = set; then : | |
3688 withval=$with_incoming_stack_boundary; with_incoming_stack_boundary=$withval | |
3689 else | |
3690 with_incoming_stack_boundary=no | |
3691 fi | |
3692 | |
3693 | |
3694 case "$PRECISION" in | |
3695 s) PREC_SUFFIX=f;; | |
3696 d) PREC_SUFFIX=;; | |
3697 l) PREC_SUFFIX=l;; | |
3698 q) PREC_SUFFIX=q;; | |
3699 esac | |
3700 | |
3701 | |
3702 ac_ext=c | |
3703 ac_cpp='$CPP $CPPFLAGS' | |
3704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3706 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3707 if test -n "$ac_tool_prefix"; then | |
3708 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3709 set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3711 $as_echo_n "checking for $ac_word... " >&6; } | |
3712 if ${ac_cv_prog_CC+:} false; then : | |
3713 $as_echo_n "(cached) " >&6 | |
3714 else | |
3715 if test -n "$CC"; then | |
3716 ac_cv_prog_CC="$CC" # Let the user override the test. | |
3717 else | |
3718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3719 for as_dir in $PATH | |
3720 do | |
3721 IFS=$as_save_IFS | |
3722 test -z "$as_dir" && as_dir=. | |
3723 for ac_exec_ext in '' $ac_executable_extensions; do | |
3724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3725 ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3727 break 2 | |
3728 fi | |
3729 done | |
3730 done | |
3731 IFS=$as_save_IFS | |
3732 | |
3733 fi | |
3734 fi | |
3735 CC=$ac_cv_prog_CC | |
3736 if test -n "$CC"; then | |
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3738 $as_echo "$CC" >&6; } | |
3739 else | |
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3741 $as_echo "no" >&6; } | |
3742 fi | |
3743 | |
3744 | |
3745 fi | |
3746 if test -z "$ac_cv_prog_CC"; then | |
3747 ac_ct_CC=$CC | |
3748 # Extract the first word of "gcc", so it can be a program name with args. | |
3749 set dummy gcc; ac_word=$2 | |
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3751 $as_echo_n "checking for $ac_word... " >&6; } | |
3752 if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3753 $as_echo_n "(cached) " >&6 | |
3754 else | |
3755 if test -n "$ac_ct_CC"; then | |
3756 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3757 else | |
3758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3759 for as_dir in $PATH | |
3760 do | |
3761 IFS=$as_save_IFS | |
3762 test -z "$as_dir" && as_dir=. | |
3763 for ac_exec_ext in '' $ac_executable_extensions; do | |
3764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3765 ac_cv_prog_ac_ct_CC="gcc" | |
3766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3767 break 2 | |
3768 fi | |
3769 done | |
3770 done | |
3771 IFS=$as_save_IFS | |
3772 | |
3773 fi | |
3774 fi | |
3775 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3776 if test -n "$ac_ct_CC"; then | |
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3778 $as_echo "$ac_ct_CC" >&6; } | |
3779 else | |
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3781 $as_echo "no" >&6; } | |
3782 fi | |
3783 | |
3784 if test "x$ac_ct_CC" = x; then | |
3785 CC="" | |
3786 else | |
3787 case $cross_compiling:$ac_tool_warned in | |
3788 yes:) | |
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3791 ac_tool_warned=yes ;; | |
3792 esac | |
3793 CC=$ac_ct_CC | |
3794 fi | |
3795 else | |
3796 CC="$ac_cv_prog_CC" | |
3797 fi | |
3798 | |
3799 if test -z "$CC"; then | |
3800 if test -n "$ac_tool_prefix"; then | |
3801 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3802 set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3804 $as_echo_n "checking for $ac_word... " >&6; } | |
3805 if ${ac_cv_prog_CC+:} false; then : | |
3806 $as_echo_n "(cached) " >&6 | |
3807 else | |
3808 if test -n "$CC"; then | |
3809 ac_cv_prog_CC="$CC" # Let the user override the test. | |
3810 else | |
3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3812 for as_dir in $PATH | |
3813 do | |
3814 IFS=$as_save_IFS | |
3815 test -z "$as_dir" && as_dir=. | |
3816 for ac_exec_ext in '' $ac_executable_extensions; do | |
3817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3818 ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3820 break 2 | |
3821 fi | |
3822 done | |
3823 done | |
3824 IFS=$as_save_IFS | |
3825 | |
3826 fi | |
3827 fi | |
3828 CC=$ac_cv_prog_CC | |
3829 if test -n "$CC"; then | |
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3831 $as_echo "$CC" >&6; } | |
3832 else | |
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3834 $as_echo "no" >&6; } | |
3835 fi | |
3836 | |
3837 | |
3838 fi | |
3839 fi | |
3840 if test -z "$CC"; then | |
3841 # Extract the first word of "cc", so it can be a program name with args. | |
3842 set dummy cc; ac_word=$2 | |
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3844 $as_echo_n "checking for $ac_word... " >&6; } | |
3845 if ${ac_cv_prog_CC+:} false; then : | |
3846 $as_echo_n "(cached) " >&6 | |
3847 else | |
3848 if test -n "$CC"; then | |
3849 ac_cv_prog_CC="$CC" # Let the user override the test. | |
3850 else | |
3851 ac_prog_rejected=no | |
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3853 for as_dir in $PATH | |
3854 do | |
3855 IFS=$as_save_IFS | |
3856 test -z "$as_dir" && as_dir=. | |
3857 for ac_exec_ext in '' $ac_executable_extensions; do | |
3858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3859 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3860 ac_prog_rejected=yes | |
3861 continue | |
3862 fi | |
3863 ac_cv_prog_CC="cc" | |
3864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3865 break 2 | |
3866 fi | |
3867 done | |
3868 done | |
3869 IFS=$as_save_IFS | |
3870 | |
3871 if test $ac_prog_rejected = yes; then | |
3872 # We found a bogon in the path, so make sure we never use it. | |
3873 set dummy $ac_cv_prog_CC | |
3874 shift | |
3875 if test $# != 0; then | |
3876 # We chose a different compiler from the bogus one. | |
3877 # However, it has the same basename, so the bogon will be chosen | |
3878 # first if we set CC to just the basename; use the full file name. | |
3879 shift | |
3880 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3881 fi | |
3882 fi | |
3883 fi | |
3884 fi | |
3885 CC=$ac_cv_prog_CC | |
3886 if test -n "$CC"; then | |
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3888 $as_echo "$CC" >&6; } | |
3889 else | |
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3891 $as_echo "no" >&6; } | |
3892 fi | |
3893 | |
3894 | |
3895 fi | |
3896 if test -z "$CC"; then | |
3897 if test -n "$ac_tool_prefix"; then | |
3898 for ac_prog in cl.exe | |
3899 do | |
3900 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3901 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3903 $as_echo_n "checking for $ac_word... " >&6; } | |
3904 if ${ac_cv_prog_CC+:} false; then : | |
3905 $as_echo_n "(cached) " >&6 | |
3906 else | |
3907 if test -n "$CC"; then | |
3908 ac_cv_prog_CC="$CC" # Let the user override the test. | |
3909 else | |
3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3911 for as_dir in $PATH | |
3912 do | |
3913 IFS=$as_save_IFS | |
3914 test -z "$as_dir" && as_dir=. | |
3915 for ac_exec_ext in '' $ac_executable_extensions; do | |
3916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3917 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3919 break 2 | |
3920 fi | |
3921 done | |
3922 done | |
3923 IFS=$as_save_IFS | |
3924 | |
3925 fi | |
3926 fi | |
3927 CC=$ac_cv_prog_CC | |
3928 if test -n "$CC"; then | |
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3930 $as_echo "$CC" >&6; } | |
3931 else | |
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3933 $as_echo "no" >&6; } | |
3934 fi | |
3935 | |
3936 | |
3937 test -n "$CC" && break | |
3938 done | |
3939 fi | |
3940 if test -z "$CC"; then | |
3941 ac_ct_CC=$CC | |
3942 for ac_prog in cl.exe | |
3943 do | |
3944 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3945 set dummy $ac_prog; ac_word=$2 | |
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3947 $as_echo_n "checking for $ac_word... " >&6; } | |
3948 if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3949 $as_echo_n "(cached) " >&6 | |
3950 else | |
3951 if test -n "$ac_ct_CC"; then | |
3952 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3953 else | |
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3955 for as_dir in $PATH | |
3956 do | |
3957 IFS=$as_save_IFS | |
3958 test -z "$as_dir" && as_dir=. | |
3959 for ac_exec_ext in '' $ac_executable_extensions; do | |
3960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3961 ac_cv_prog_ac_ct_CC="$ac_prog" | |
3962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3963 break 2 | |
3964 fi | |
3965 done | |
3966 done | |
3967 IFS=$as_save_IFS | |
3968 | |
3969 fi | |
3970 fi | |
3971 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3972 if test -n "$ac_ct_CC"; then | |
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3974 $as_echo "$ac_ct_CC" >&6; } | |
3975 else | |
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3977 $as_echo "no" >&6; } | |
3978 fi | |
3979 | |
3980 | |
3981 test -n "$ac_ct_CC" && break | |
3982 done | |
3983 | |
3984 if test "x$ac_ct_CC" = x; then | |
3985 CC="" | |
3986 else | |
3987 case $cross_compiling:$ac_tool_warned in | |
3988 yes:) | |
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3991 ac_tool_warned=yes ;; | |
3992 esac | |
3993 CC=$ac_ct_CC | |
3994 fi | |
3995 fi | |
3996 | |
3997 fi | |
3998 | |
3999 | |
4000 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4002 as_fn_error $? "no acceptable C compiler found in \$PATH | |
4003 See \`config.log' for more details" "$LINENO" 5; } | |
4004 | |
4005 # Provide some information about the compiler. | |
4006 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
4007 set X $ac_compile | |
4008 ac_compiler=$2 | |
4009 for ac_option in --version -v -V -qversion; do | |
4010 { { ac_try="$ac_compiler $ac_option >&5" | |
4011 case "(($ac_try" in | |
4012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4013 *) ac_try_echo=$ac_try;; | |
4014 esac | |
4015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4016 $as_echo "$ac_try_echo"; } >&5 | |
4017 (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4018 ac_status=$? | |
4019 if test -s conftest.err; then | |
4020 sed '10a\ | |
4021 ... rest of stderr output deleted ... | |
4022 10q' conftest.err >conftest.er1 | |
4023 cat conftest.er1 >&5 | |
4024 fi | |
4025 rm -f conftest.er1 conftest.err | |
4026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4027 test $ac_status = 0; } | |
4028 done | |
4029 | |
4030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4031 /* end confdefs.h. */ | |
4032 | |
4033 int | |
4034 main () | |
4035 { | |
4036 | |
4037 ; | |
4038 return 0; | |
4039 } | |
4040 _ACEOF | |
4041 ac_clean_files_save=$ac_clean_files | |
4042 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
4043 # Try to create an executable without -o first, disregard a.out. | |
4044 # It will help us diagnose broken compilers, and finding out an intuition | |
4045 # of exeext. | |
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
4047 $as_echo_n "checking whether the C compiler works... " >&6; } | |
4048 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
4049 | |
4050 # The possible output files: | |
4051 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4052 | |
4053 ac_rmfiles= | |
4054 for ac_file in $ac_files | |
4055 do | |
4056 case $ac_file in | |
4057 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4058 * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4059 esac | |
4060 done | |
4061 rm -f $ac_rmfiles | |
4062 | |
4063 if { { ac_try="$ac_link_default" | |
4064 case "(($ac_try" in | |
4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4066 *) ac_try_echo=$ac_try;; | |
4067 esac | |
4068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4069 $as_echo "$ac_try_echo"; } >&5 | |
4070 (eval "$ac_link_default") 2>&5 | |
4071 ac_status=$? | |
4072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4073 test $ac_status = 0; }; then : | |
4074 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4075 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4076 # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4077 # so that the user can short-circuit this test for compilers unknown to | |
4078 # Autoconf. | |
4079 for ac_file in $ac_files '' | |
4080 do | |
4081 test -f "$ac_file" || continue | |
4082 case $ac_file in | |
4083 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
4084 ;; | |
4085 [ab].out ) | |
4086 # We found the default executable, but exeext='' is most | |
4087 # certainly right. | |
4088 break;; | |
4089 *.* ) | |
4090 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
4091 then :; else | |
4092 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4093 fi | |
4094 # We set ac_cv_exeext here because the later test for it is not | |
4095 # safe: cross compilers may not add the suffix if given an `-o' | |
4096 # argument, so we may need to know it at that point already. | |
4097 # Even if this section looks crufty: it has the advantage of | |
4098 # actually working. | |
4099 break;; | |
4100 * ) | |
4101 break;; | |
4102 esac | |
4103 done | |
4104 test "$ac_cv_exeext" = no && ac_cv_exeext= | |
4105 | |
4106 else | |
4107 ac_file='' | |
4108 fi | |
4109 if test -z "$ac_file"; then : | |
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4111 $as_echo "no" >&6; } | |
4112 $as_echo "$as_me: failed program was:" >&5 | |
4113 sed 's/^/| /' conftest.$ac_ext >&5 | |
4114 | |
4115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4117 as_fn_error 77 "C compiler cannot create executables | |
4118 See \`config.log' for more details" "$LINENO" 5; } | |
4119 else | |
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4121 $as_echo "yes" >&6; } | |
4122 fi | |
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
4124 $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4126 $as_echo "$ac_file" >&6; } | |
4127 ac_exeext=$ac_cv_exeext | |
4128 | |
4129 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
4130 ac_clean_files=$ac_clean_files_save | |
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
4132 $as_echo_n "checking for suffix of executables... " >&6; } | |
4133 if { { ac_try="$ac_link" | |
4134 case "(($ac_try" in | |
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4136 *) ac_try_echo=$ac_try;; | |
4137 esac | |
4138 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4139 $as_echo "$ac_try_echo"; } >&5 | |
4140 (eval "$ac_link") 2>&5 | |
4141 ac_status=$? | |
4142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4143 test $ac_status = 0; }; then : | |
4144 # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
4145 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4146 # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4147 # `rm'. | |
4148 for ac_file in conftest.exe conftest conftest.*; do | |
4149 test -f "$ac_file" || continue | |
4150 case $ac_file in | |
4151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4152 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4153 break;; | |
4154 * ) break;; | |
4155 esac | |
4156 done | |
4157 else | |
4158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4160 as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
4161 See \`config.log' for more details" "$LINENO" 5; } | |
4162 fi | |
4163 rm -f conftest conftest$ac_cv_exeext | |
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
4165 $as_echo "$ac_cv_exeext" >&6; } | |
4166 | |
4167 rm -f conftest.$ac_ext | |
4168 EXEEXT=$ac_cv_exeext | |
4169 ac_exeext=$EXEEXT | |
4170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4171 /* end confdefs.h. */ | |
4172 #include <stdio.h> | |
4173 int | |
4174 main () | |
4175 { | |
4176 FILE *f = fopen ("conftest.out", "w"); | |
4177 return ferror (f) || fclose (f) != 0; | |
4178 | |
4179 ; | |
4180 return 0; | |
4181 } | |
4182 _ACEOF | |
4183 ac_clean_files="$ac_clean_files conftest.out" | |
4184 # Check that the compiler produces executables we can run. If not, either | |
4185 # the compiler is broken, or we cross compile. | |
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4187 $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4188 if test "$cross_compiling" != yes; then | |
4189 { { ac_try="$ac_link" | |
4190 case "(($ac_try" in | |
4191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4192 *) ac_try_echo=$ac_try;; | |
4193 esac | |
4194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4195 $as_echo "$ac_try_echo"; } >&5 | |
4196 (eval "$ac_link") 2>&5 | |
4197 ac_status=$? | |
4198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4199 test $ac_status = 0; } | |
4200 if { ac_try='./conftest$ac_cv_exeext' | |
4201 { { case "(($ac_try" in | |
4202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4203 *) ac_try_echo=$ac_try;; | |
4204 esac | |
4205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4206 $as_echo "$ac_try_echo"; } >&5 | |
4207 (eval "$ac_try") 2>&5 | |
4208 ac_status=$? | |
4209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4210 test $ac_status = 0; }; }; then | |
4211 cross_compiling=no | |
4212 else | |
4213 if test "$cross_compiling" = maybe; then | |
4214 cross_compiling=yes | |
4215 else | |
4216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4218 as_fn_error $? "cannot run C compiled programs. | |
4219 If you meant to cross compile, use \`--host'. | |
4220 See \`config.log' for more details" "$LINENO" 5; } | |
4221 fi | |
4222 fi | |
4223 fi | |
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4225 $as_echo "$cross_compiling" >&6; } | |
4226 | |
4227 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4228 ac_clean_files=$ac_clean_files_save | |
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
4230 $as_echo_n "checking for suffix of object files... " >&6; } | |
4231 if ${ac_cv_objext+:} false; then : | |
4232 $as_echo_n "(cached) " >&6 | |
4233 else | |
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4235 /* end confdefs.h. */ | |
4236 | |
4237 int | |
4238 main () | |
4239 { | |
4240 | |
4241 ; | |
4242 return 0; | |
4243 } | |
4244 _ACEOF | |
4245 rm -f conftest.o conftest.obj | |
4246 if { { ac_try="$ac_compile" | |
4247 case "(($ac_try" in | |
4248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4249 *) ac_try_echo=$ac_try;; | |
4250 esac | |
4251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4252 $as_echo "$ac_try_echo"; } >&5 | |
4253 (eval "$ac_compile") 2>&5 | |
4254 ac_status=$? | |
4255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4256 test $ac_status = 0; }; then : | |
4257 for ac_file in conftest.o conftest.obj conftest.*; do | |
4258 test -f "$ac_file" || continue; | |
4259 case $ac_file in | |
4260 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
4261 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
4262 break;; | |
4263 esac | |
4264 done | |
4265 else | |
4266 $as_echo "$as_me: failed program was:" >&5 | |
4267 sed 's/^/| /' conftest.$ac_ext >&5 | |
4268 | |
4269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4271 as_fn_error $? "cannot compute suffix of object files: cannot compile | |
4272 See \`config.log' for more details" "$LINENO" 5; } | |
4273 fi | |
4274 rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
4275 fi | |
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
4277 $as_echo "$ac_cv_objext" >&6; } | |
4278 OBJEXT=$ac_cv_objext | |
4279 ac_objext=$OBJEXT | |
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
4281 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4282 if ${ac_cv_c_compiler_gnu+:} false; then : | |
4283 $as_echo_n "(cached) " >&6 | |
4284 else | |
4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4286 /* end confdefs.h. */ | |
4287 | |
4288 int | |
4289 main () | |
4290 { | |
4291 #ifndef __GNUC__ | |
4292 choke me | |
4293 #endif | |
4294 | |
4295 ; | |
4296 return 0; | |
4297 } | |
4298 _ACEOF | |
4299 if ac_fn_c_try_compile "$LINENO"; then : | |
4300 ac_compiler_gnu=yes | |
4301 else | |
4302 ac_compiler_gnu=no | |
4303 fi | |
4304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4305 ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
4306 | |
4307 fi | |
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
4309 $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4310 if test $ac_compiler_gnu = yes; then | |
4311 GCC=yes | |
4312 else | |
4313 GCC= | |
4314 fi | |
4315 ac_test_CFLAGS=${CFLAGS+set} | |
4316 ac_save_CFLAGS=$CFLAGS | |
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4318 $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4319 if ${ac_cv_prog_cc_g+:} false; then : | |
4320 $as_echo_n "(cached) " >&6 | |
4321 else | |
4322 ac_save_c_werror_flag=$ac_c_werror_flag | |
4323 ac_c_werror_flag=yes | |
4324 ac_cv_prog_cc_g=no | |
4325 CFLAGS="-g" | |
4326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4327 /* end confdefs.h. */ | |
4328 | |
4329 int | |
4330 main () | |
4331 { | |
4332 | |
4333 ; | |
4334 return 0; | |
4335 } | |
4336 _ACEOF | |
4337 if ac_fn_c_try_compile "$LINENO"; then : | |
4338 ac_cv_prog_cc_g=yes | |
4339 else | |
4340 CFLAGS="" | |
4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4342 /* end confdefs.h. */ | |
4343 | |
4344 int | |
4345 main () | |
4346 { | |
4347 | |
4348 ; | |
4349 return 0; | |
4350 } | |
4351 _ACEOF | |
4352 if ac_fn_c_try_compile "$LINENO"; then : | |
4353 | |
4354 else | |
4355 ac_c_werror_flag=$ac_save_c_werror_flag | |
4356 CFLAGS="-g" | |
4357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4358 /* end confdefs.h. */ | |
4359 | |
4360 int | |
4361 main () | |
4362 { | |
4363 | |
4364 ; | |
4365 return 0; | |
4366 } | |
4367 _ACEOF | |
4368 if ac_fn_c_try_compile "$LINENO"; then : | |
4369 ac_cv_prog_cc_g=yes | |
4370 fi | |
4371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4372 fi | |
4373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4374 fi | |
4375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4376 ac_c_werror_flag=$ac_save_c_werror_flag | |
4377 fi | |
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4379 $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4380 if test "$ac_test_CFLAGS" = set; then | |
4381 CFLAGS=$ac_save_CFLAGS | |
4382 elif test $ac_cv_prog_cc_g = yes; then | |
4383 if test "$GCC" = yes; then | |
4384 CFLAGS="-g -O2" | |
4385 else | |
4386 CFLAGS="-g" | |
4387 fi | |
4388 else | |
4389 if test "$GCC" = yes; then | |
4390 CFLAGS="-O2" | |
4391 else | |
4392 CFLAGS= | |
4393 fi | |
4394 fi | |
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
4396 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4397 if ${ac_cv_prog_cc_c89+:} false; then : | |
4398 $as_echo_n "(cached) " >&6 | |
4399 else | |
4400 ac_cv_prog_cc_c89=no | |
4401 ac_save_CC=$CC | |
4402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4403 /* end confdefs.h. */ | |
4404 #include <stdarg.h> | |
4405 #include <stdio.h> | |
4406 struct stat; | |
4407 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4408 struct buf { int x; }; | |
4409 FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4410 static char *e (p, i) | |
4411 char **p; | |
4412 int i; | |
4413 { | |
4414 return p[i]; | |
4415 } | |
4416 static char *f (char * (*g) (char **, int), char **p, ...) | |
4417 { | |
4418 char *s; | |
4419 va_list v; | |
4420 va_start (v,p); | |
4421 s = g (p, va_arg (v,int)); | |
4422 va_end (v); | |
4423 return s; | |
4424 } | |
4425 | |
4426 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4427 function prototypes and stuff, but not '\xHH' hex character constants. | |
4428 These don't provoke an error unfortunately, instead are silently treated | |
4429 as 'x'. The following induces an error, until -std is added to get | |
4430 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4431 array size at least. It's necessary to write '\x00'==0 to get something | |
4432 that's true only with -std. */ | |
4433 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4434 | |
4435 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
4436 inside strings and character constants. */ | |
4437 #define FOO(x) 'x' | |
4438 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4439 | |
4440 int test (int i, double x); | |
4441 struct s1 {int (*f) (int a);}; | |
4442 struct s2 {int (*f) (double a);}; | |
4443 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4444 int argc; | |
4445 char **argv; | |
4446 int | |
4447 main () | |
4448 { | |
4449 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4450 ; | |
4451 return 0; | |
4452 } | |
4453 _ACEOF | |
4454 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
4455 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4456 do | |
4457 CC="$ac_save_CC $ac_arg" | |
4458 if ac_fn_c_try_compile "$LINENO"; then : | |
4459 ac_cv_prog_cc_c89=$ac_arg | |
4460 fi | |
4461 rm -f core conftest.err conftest.$ac_objext | |
4462 test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4463 done | |
4464 rm -f conftest.$ac_ext | |
4465 CC=$ac_save_CC | |
4466 | |
4467 fi | |
4468 # AC_CACHE_VAL | |
4469 case "x$ac_cv_prog_cc_c89" in | |
4470 x) | |
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4472 $as_echo "none needed" >&6; } ;; | |
4473 xno) | |
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4475 $as_echo "unsupported" >&6; } ;; | |
4476 *) | |
4477 CC="$CC $ac_cv_prog_cc_c89" | |
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4479 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4480 esac | |
4481 if test "x$ac_cv_prog_cc_c89" != xno; then : | |
4482 | |
4483 fi | |
4484 | |
4485 ac_ext=c | |
4486 ac_cpp='$CPP $CPPFLAGS' | |
4487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4489 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4490 DEPDIR="${am__leading_dot}deps" | |
4491 | |
4492 ac_config_commands="$ac_config_commands depfiles" | |
4493 | |
4494 | |
4495 am_make=${MAKE-make} | |
4496 cat > confinc << 'END' | |
4497 am__doit: | |
4498 @echo this is the am__doit target | |
4499 .PHONY: am__doit | |
4500 END | |
4501 # If we don't find an include directive, just comment out the code. | |
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4503 $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
4504 am__include="#" | |
4505 am__quote= | |
4506 _am_result=none | |
4507 # First try GNU make style include. | |
4508 echo "include confinc" > confmf | |
4509 # Ignore all kinds of additional output from `make'. | |
4510 case `$am_make -s -f confmf 2> /dev/null` in #( | |
4511 *the\ am__doit\ target*) | |
4512 am__include=include | |
4513 am__quote= | |
4514 _am_result=GNU | |
4515 ;; | |
4516 esac | |
4517 # Now try BSD make style include. | |
4518 if test "$am__include" = "#"; then | |
4519 echo '.include "confinc"' > confmf | |
4520 case `$am_make -s -f confmf 2> /dev/null` in #( | |
4521 *the\ am__doit\ target*) | |
4522 am__include=.include | |
4523 am__quote="\"" | |
4524 _am_result=BSD | |
4525 ;; | |
4526 esac | |
4527 fi | |
4528 | |
4529 | |
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
4531 $as_echo "$_am_result" >&6; } | |
4532 rm -f confinc confmf | |
4533 | |
4534 # Check whether --enable-dependency-tracking was given. | |
4535 if test "${enable_dependency_tracking+set}" = set; then : | |
4536 enableval=$enable_dependency_tracking; | |
4537 fi | |
4538 | |
4539 if test "x$enable_dependency_tracking" != xno; then | |
4540 am_depcomp="$ac_aux_dir/depcomp" | |
4541 AMDEPBACKSLASH='\' | |
4542 am__nodep='_no' | |
4543 fi | |
4544 if test "x$enable_dependency_tracking" != xno; then | |
4545 AMDEP_TRUE= | |
4546 AMDEP_FALSE='#' | |
4547 else | |
4548 AMDEP_TRUE='#' | |
4549 AMDEP_FALSE= | |
4550 fi | |
4551 | |
4552 | |
4553 | |
4554 depcc="$CC" am_compiler_list= | |
4555 | |
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4557 $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4558 if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
4559 $as_echo_n "(cached) " >&6 | |
4560 else | |
4561 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4562 # We make a subdir and do the tests there. Otherwise we can end up | |
4563 # making bogus files that we don't know about and never remove. For | |
4564 # instance it was reported that on HP-UX the gcc test will end up | |
4565 # making a dummy file named `D' -- because `-MD' means `put the output | |
4566 # in D'. | |
4567 rm -rf conftest.dir | |
4568 mkdir conftest.dir | |
4569 # Copy depcomp to subdir because otherwise we won't find it if we're | |
4570 # using a relative directory. | |
4571 cp "$am_depcomp" conftest.dir | |
4572 cd conftest.dir | |
4573 # We will build objects and dependencies in a subdirectory because | |
4574 # it helps to detect inapplicable dependency modes. For instance | |
4575 # both Tru64's cc and ICC support -MD to output dependencies as a | |
4576 # side effect of compilation, but ICC will put the dependencies in | |
4577 # the current directory while Tru64 will put them in the object | |
4578 # directory. | |
4579 mkdir sub | |
4580 | |
4581 am_cv_CC_dependencies_compiler_type=none | |
4582 if test "$am_compiler_list" = ""; then | |
4583 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4584 fi | |
4585 am__universal=false | |
4586 case " $depcc " in #( | |
4587 *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4588 esac | |
4589 | |
4590 for depmode in $am_compiler_list; do | |
4591 # Setup a source with many dependencies, because some compilers | |
4592 # like to wrap large dependency lists on column 80 (with \), and | |
4593 # we should not choose a depcomp mode which is confused by this. | |
4594 # | |
4595 # We need to recreate these files for each test, as the compiler may | |
4596 # overwrite some of them when testing with obscure command lines. | |
4597 # This happens at least with the AIX C compiler. | |
4598 : > sub/conftest.c | |
4599 for i in 1 2 3 4 5 6; do | |
4600 echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4601 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4602 # Solaris 8's {/usr,}/bin/sh. | |
4603 touch sub/conftst$i.h | |
4604 done | |
4605 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4606 | |
4607 # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
4608 # mode. It turns out that the SunPro C++ compiler does not properly | |
4609 # handle `-M -o', and we need to detect this. Also, some Intel | |
4610 # versions had trouble with output in subdirs | |
4611 am__obj=sub/conftest.${OBJEXT-o} | |
4612 am__minus_obj="-o $am__obj" | |
4613 case $depmode in | |
4614 gcc) | |
4615 # This depmode causes a compiler race in universal mode. | |
4616 test "$am__universal" = false || continue | |
4617 ;; | |
4618 nosideeffect) | |
4619 # after this tag, mechanisms are not by side-effect, so they'll | |
4620 # only be used when explicitly requested | |
4621 if test "x$enable_dependency_tracking" = xyes; then | |
4622 continue | |
4623 else | |
4624 break | |
4625 fi | |
4626 ;; | |
4627 msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4628 # This compiler won't grok `-c -o', but also, the minuso test has | |
4629 # not run yet. These depmodes are late enough in the game, and | |
4630 # so weak that their functioning should not be impacted. | |
4631 am__obj=conftest.${OBJEXT-o} | |
4632 am__minus_obj= | |
4633 ;; | |
4634 none) break ;; | |
4635 esac | |
4636 if depmode=$depmode \ | |
4637 source=sub/conftest.c object=$am__obj \ | |
4638 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4639 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4640 >/dev/null 2>conftest.err && | |
4641 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4642 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4643 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4644 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4645 # icc doesn't choke on unknown options, it will just issue warnings | |
4646 # or remarks (even with -Werror). So we grep stderr for any message | |
4647 # that says an option was ignored or not supported. | |
4648 # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4649 # icc: Command line warning: ignoring option '-M'; no argument required | |
4650 # The diagnosis changed in icc 8.0: | |
4651 # icc: Command line remark: option '-MP' not supported | |
4652 if (grep 'ignoring option' conftest.err || | |
4653 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4654 am_cv_CC_dependencies_compiler_type=$depmode | |
4655 break | |
4656 fi | |
4657 fi | |
4658 done | |
4659 | |
4660 cd .. | |
4661 rm -rf conftest.dir | |
4662 else | |
4663 am_cv_CC_dependencies_compiler_type=none | |
4664 fi | |
4665 | |
4666 fi | |
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4668 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4669 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
4670 | |
4671 if | |
4672 test "x$enable_dependency_tracking" != xno \ | |
4673 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4674 am__fastdepCC_TRUE= | |
4675 am__fastdepCC_FALSE='#' | |
4676 else | |
4677 am__fastdepCC_TRUE='#' | |
4678 am__fastdepCC_FALSE= | |
4679 fi | |
4680 | |
4681 | |
4682 if test "x$CC" != xcc; then | |
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 | |
4684 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } | |
4685 else | |
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 | |
4687 $as_echo_n "checking whether cc understands -c and -o together... " >&6; } | |
4688 fi | |
4689 set dummy $CC; ac_cc=`$as_echo "$2" | | |
4690 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
4691 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : | |
4692 $as_echo_n "(cached) " >&6 | |
4693 else | |
4694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4695 /* end confdefs.h. */ | |
4696 | |
4697 int | |
4698 main () | |
4699 { | |
4700 | |
4701 ; | |
4702 return 0; | |
4703 } | |
4704 _ACEOF | |
4705 # Make sure it works both with $CC and with simple cc. | |
4706 # We do the test twice because some compilers refuse to overwrite an | |
4707 # existing .o file with -o, though they will create one. | |
4708 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | |
4709 rm -f conftest2.* | |
4710 if { { case "(($ac_try" in | |
4711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4712 *) ac_try_echo=$ac_try;; | |
4713 esac | |
4714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4715 $as_echo "$ac_try_echo"; } >&5 | |
4716 (eval "$ac_try") 2>&5 | |
4717 ac_status=$? | |
4718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4719 test $ac_status = 0; } && | |
4720 test -f conftest2.$ac_objext && { { case "(($ac_try" in | |
4721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4722 *) ac_try_echo=$ac_try;; | |
4723 esac | |
4724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4725 $as_echo "$ac_try_echo"; } >&5 | |
4726 (eval "$ac_try") 2>&5 | |
4727 ac_status=$? | |
4728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4729 test $ac_status = 0; }; | |
4730 then | |
4731 eval ac_cv_prog_cc_${ac_cc}_c_o=yes | |
4732 if test "x$CC" != xcc; then | |
4733 # Test first that cc exists at all. | |
4734 if { ac_try='cc -c conftest.$ac_ext >&5' | |
4735 { { case "(($ac_try" in | |
4736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4737 *) ac_try_echo=$ac_try;; | |
4738 esac | |
4739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4740 $as_echo "$ac_try_echo"; } >&5 | |
4741 (eval "$ac_try") 2>&5 | |
4742 ac_status=$? | |
4743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4744 test $ac_status = 0; }; }; then | |
4745 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | |
4746 rm -f conftest2.* | |
4747 if { { case "(($ac_try" in | |
4748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4749 *) ac_try_echo=$ac_try;; | |
4750 esac | |
4751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4752 $as_echo "$ac_try_echo"; } >&5 | |
4753 (eval "$ac_try") 2>&5 | |
4754 ac_status=$? | |
4755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4756 test $ac_status = 0; } && | |
4757 test -f conftest2.$ac_objext && { { case "(($ac_try" in | |
4758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4759 *) ac_try_echo=$ac_try;; | |
4760 esac | |
4761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4762 $as_echo "$ac_try_echo"; } >&5 | |
4763 (eval "$ac_try") 2>&5 | |
4764 ac_status=$? | |
4765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4766 test $ac_status = 0; }; | |
4767 then | |
4768 # cc works too. | |
4769 : | |
4770 else | |
4771 # cc exists but doesn't like -o. | |
4772 eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
4773 fi | |
4774 fi | |
4775 fi | |
4776 else | |
4777 eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
4778 fi | |
4779 rm -f core conftest* | |
4780 | |
4781 fi | |
4782 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then | |
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4784 $as_echo "yes" >&6; } | |
4785 else | |
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4787 $as_echo "no" >&6; } | |
4788 | |
4789 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h | |
4790 | |
4791 fi | |
4792 | |
4793 # FIXME: we rely on the cache variable name because | |
4794 # there is no other way. | |
4795 set dummy $CC | |
4796 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
4797 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o | |
4798 if test "$am_t" != yes; then | |
4799 # Losing compiler, so override with the script. | |
4800 # FIXME: It is wrong to rewrite CC. | |
4801 # But if we don't then we get into trouble of one sort or another. | |
4802 # A longer-term fix would be to have automake use am__CC in this case, | |
4803 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4804 CC="$am_aux_dir/compile $CC" | |
4805 fi | |
4806 | |
4807 | |
4808 | |
4809 | |
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5 | |
4811 $as_echo_n "checking for C compiler vendor... " >&6; } | |
4812 if ${ax_cv_c_compiler_vendor+:} false; then : | |
4813 $as_echo_n "(cached) " >&6 | |
4814 else | |
4815 ax_cv_c_compiler_vendor=unknown | |
4816 # note: don't check for gcc first since some other compilers define __GNUC__ | |
4817 for ventest in intel:__ICC,__ECC,__INTEL_COMPILER ibm:__xlc__,__xlC__,__IBMC__,__IBMCPP__ pathscale:__PATHCC__,__PATHSCALE__ 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 | |
4818 vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")" | |
4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4820 /* end confdefs.h. */ | |
4821 | |
4822 int | |
4823 main () | |
4824 { | |
4825 | |
4826 #if !($vencpp) | |
4827 thisisanerror; | |
4828 #endif | |
4829 | |
4830 ; | |
4831 return 0; | |
4832 } | |
4833 _ACEOF | |
4834 if ac_fn_c_try_compile "$LINENO"; then : | |
4835 ax_cv_c_compiler_vendor=`echo $ventest | cut -d: -f1`; break | |
4836 fi | |
4837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4838 done | |
4839 | |
4840 fi | |
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5 | |
4842 $as_echo "$ax_cv_c_compiler_vendor" >&6; } | |
4843 | |
4844 case $ac_cv_prog_cc_stdc in #( | |
4845 no) : | |
4846 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( | |
4847 *) : | |
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 | |
4849 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | |
4850 if ${ac_cv_prog_cc_c99+:} false; then : | |
4851 $as_echo_n "(cached) " >&6 | |
4852 else | |
4853 ac_cv_prog_cc_c99=no | |
4854 ac_save_CC=$CC | |
4855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4856 /* end confdefs.h. */ | |
4857 #include <stdarg.h> | |
4858 #include <stdbool.h> | |
4859 #include <stdlib.h> | |
4860 #include <wchar.h> | |
4861 #include <stdio.h> | |
4862 | |
4863 // Check varargs macros. These examples are taken from C99 6.10.3.5. | |
4864 #define debug(...) fprintf (stderr, __VA_ARGS__) | |
4865 #define showlist(...) puts (#__VA_ARGS__) | |
4866 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
4867 static void | |
4868 test_varargs_macros (void) | |
4869 { | |
4870 int x = 1234; | |
4871 int y = 5678; | |
4872 debug ("Flag"); | |
4873 debug ("X = %d\n", x); | |
4874 showlist (The first, second, and third items.); | |
4875 report (x>y, "x is %d but y is %d", x, y); | |
4876 } | |
4877 | |
4878 // Check long long types. | |
4879 #define BIG64 18446744073709551615ull | |
4880 #define BIG32 4294967295ul | |
4881 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
4882 #if !BIG_OK | |
4883 your preprocessor is broken; | |
4884 #endif | |
4885 #if BIG_OK | |
4886 #else | |
4887 your preprocessor is broken; | |
4888 #endif | |
4889 static long long int bignum = -9223372036854775807LL; | |
4890 static unsigned long long int ubignum = BIG64; | |
4891 | |
4892 struct incomplete_array | |
4893 { | |
4894 int datasize; | |
4895 double data[]; | |
4896 }; | |
4897 | |
4898 struct named_init { | |
4899 int number; | |
4900 const wchar_t *name; | |
4901 double average; | |
4902 }; | |
4903 | |
4904 typedef const char *ccp; | |
4905 | |
4906 static inline int | |
4907 test_restrict (ccp restrict text) | |
4908 { | |
4909 // See if C++-style comments work. | |
4910 // Iterate through items via the restricted pointer. | |
4911 // Also check for declarations in for loops. | |
4912 for (unsigned int i = 0; *(text+i) != '\0'; ++i) | |
4913 continue; | |
4914 return 0; | |
4915 } | |
4916 | |
4917 // Check varargs and va_copy. | |
4918 static void | |
4919 test_varargs (const char *format, ...) | |
4920 { | |
4921 va_list args; | |
4922 va_start (args, format); | |
4923 va_list args_copy; | |
4924 va_copy (args_copy, args); | |
4925 | |
4926 const char *str; | |
4927 int number; | |
4928 float fnumber; | |
4929 | |
4930 while (*format) | |
4931 { | |
4932 switch (*format++) | |
4933 { | |
4934 case 's': // string | |
4935 str = va_arg (args_copy, const char *); | |
4936 break; | |
4937 case 'd': // int | |
4938 number = va_arg (args_copy, int); | |
4939 break; | |
4940 case 'f': // float | |
4941 fnumber = va_arg (args_copy, double); | |
4942 break; | |
4943 default: | |
4944 break; | |
4945 } | |
4946 } | |
4947 va_end (args_copy); | |
4948 va_end (args); | |
4949 } | |
4950 | |
4951 int | |
4952 main () | |
4953 { | |
4954 | |
4955 // Check bool. | |
4956 _Bool success = false; | |
4957 | |
4958 // Check restrict. | |
4959 if (test_restrict ("String literal") == 0) | |
4960 success = true; | |
4961 char *restrict newvar = "Another string"; | |
4962 | |
4963 // Check varargs. | |
4964 test_varargs ("s, d' f .", "string", 65, 34.234); | |
4965 test_varargs_macros (); | |
4966 | |
4967 // Check flexible array members. | |
4968 struct incomplete_array *ia = | |
4969 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
4970 ia->datasize = 10; | |
4971 for (int i = 0; i < ia->datasize; ++i) | |
4972 ia->data[i] = i * 1.234; | |
4973 | |
4974 // Check named initializers. | |
4975 struct named_init ni = { | |
4976 .number = 34, | |
4977 .name = L"Test wide string", | |
4978 .average = 543.34343, | |
4979 }; | |
4980 | |
4981 ni.number = 58; | |
4982 | |
4983 int dynamic_array[ni.number]; | |
4984 dynamic_array[ni.number - 1] = 543; | |
4985 | |
4986 // work around unused variable warnings | |
4987 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | |
4988 || dynamic_array[ni.number - 1] != 543); | |
4989 | |
4990 ; | |
4991 return 0; | |
4992 } | |
4993 _ACEOF | |
4994 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 | |
4995 do | |
4996 CC="$ac_save_CC $ac_arg" | |
4997 if ac_fn_c_try_compile "$LINENO"; then : | |
4998 ac_cv_prog_cc_c99=$ac_arg | |
4999 fi | |
5000 rm -f core conftest.err conftest.$ac_objext | |
5001 test "x$ac_cv_prog_cc_c99" != "xno" && break | |
5002 done | |
5003 rm -f conftest.$ac_ext | |
5004 CC=$ac_save_CC | |
5005 | |
5006 fi | |
5007 # AC_CACHE_VAL | |
5008 case "x$ac_cv_prog_cc_c99" in | |
5009 x) | |
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5011 $as_echo "none needed" >&6; } ;; | |
5012 xno) | |
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5014 $as_echo "unsupported" >&6; } ;; | |
5015 *) | |
5016 CC="$CC $ac_cv_prog_cc_c99" | |
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
5018 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | |
5019 esac | |
5020 if test "x$ac_cv_prog_cc_c99" != xno; then : | |
5021 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 | |
5022 else | |
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
5024 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
5025 if ${ac_cv_prog_cc_c89+:} false; then : | |
5026 $as_echo_n "(cached) " >&6 | |
5027 else | |
5028 ac_cv_prog_cc_c89=no | |
5029 ac_save_CC=$CC | |
5030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5031 /* end confdefs.h. */ | |
5032 #include <stdarg.h> | |
5033 #include <stdio.h> | |
5034 struct stat; | |
5035 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
5036 struct buf { int x; }; | |
5037 FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
5038 static char *e (p, i) | |
5039 char **p; | |
5040 int i; | |
5041 { | |
5042 return p[i]; | |
5043 } | |
5044 static char *f (char * (*g) (char **, int), char **p, ...) | |
5045 { | |
5046 char *s; | |
5047 va_list v; | |
5048 va_start (v,p); | |
5049 s = g (p, va_arg (v,int)); | |
5050 va_end (v); | |
5051 return s; | |
5052 } | |
5053 | |
5054 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
5055 function prototypes and stuff, but not '\xHH' hex character constants. | |
5056 These don't provoke an error unfortunately, instead are silently treated | |
5057 as 'x'. The following induces an error, until -std is added to get | |
5058 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
5059 array size at least. It's necessary to write '\x00'==0 to get something | |
5060 that's true only with -std. */ | |
5061 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
5062 | |
5063 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
5064 inside strings and character constants. */ | |
5065 #define FOO(x) 'x' | |
5066 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
5067 | |
5068 int test (int i, double x); | |
5069 struct s1 {int (*f) (int a);}; | |
5070 struct s2 {int (*f) (double a);}; | |
5071 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
5072 int argc; | |
5073 char **argv; | |
5074 int | |
5075 main () | |
5076 { | |
5077 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
5078 ; | |
5079 return 0; | |
5080 } | |
5081 _ACEOF | |
5082 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
5083 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
5084 do | |
5085 CC="$ac_save_CC $ac_arg" | |
5086 if ac_fn_c_try_compile "$LINENO"; then : | |
5087 ac_cv_prog_cc_c89=$ac_arg | |
5088 fi | |
5089 rm -f core conftest.err conftest.$ac_objext | |
5090 test "x$ac_cv_prog_cc_c89" != "xno" && break | |
5091 done | |
5092 rm -f conftest.$ac_ext | |
5093 CC=$ac_save_CC | |
5094 | |
5095 fi | |
5096 # AC_CACHE_VAL | |
5097 case "x$ac_cv_prog_cc_c89" in | |
5098 x) | |
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5100 $as_echo "none needed" >&6; } ;; | |
5101 xno) | |
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5103 $as_echo "unsupported" >&6; } ;; | |
5104 *) | |
5105 CC="$CC $ac_cv_prog_cc_c89" | |
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
5107 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
5108 esac | |
5109 if test "x$ac_cv_prog_cc_c89" != xno; then : | |
5110 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 | |
5111 else | |
5112 ac_cv_prog_cc_stdc=no | |
5113 fi | |
5114 | |
5115 fi | |
5116 ;; | |
5117 esac | |
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 | |
5119 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } | |
5120 if ${ac_cv_prog_cc_stdc+:} false; then : | |
5121 $as_echo_n "(cached) " >&6 | |
5122 fi | |
5123 | |
5124 case $ac_cv_prog_cc_stdc in #( | |
5125 no) : | |
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5127 $as_echo "unsupported" >&6; } ;; #( | |
5128 '') : | |
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5130 $as_echo "none needed" >&6; } ;; #( | |
5131 *) : | |
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 | |
5133 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; | |
5134 esac | |
5135 | |
5136 | |
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
5138 $as_echo_n "checking whether ln -s works... " >&6; } | |
5139 LN_S=$as_ln_s | |
5140 if test "$LN_S" = "ln -s"; then | |
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5142 $as_echo "yes" >&6; } | |
5143 else | |
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
5145 $as_echo "no, using $LN_S" >&6; } | |
5146 fi | |
5147 | |
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
5149 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
5150 set x ${MAKE-make} | |
5151 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
5152 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
5153 $as_echo_n "(cached) " >&6 | |
5154 else | |
5155 cat >conftest.make <<\_ACEOF | |
5156 SHELL = /bin/sh | |
5157 all: | |
5158 @echo '@@@%%%=$(MAKE)=@@@%%%' | |
5159 _ACEOF | |
5160 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
5161 case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
5162 *@@@%%%=?*=@@@%%%*) | |
5163 eval ac_cv_prog_make_${ac_make}_set=yes;; | |
5164 *) | |
5165 eval ac_cv_prog_make_${ac_make}_set=no;; | |
5166 esac | |
5167 rm -f conftest.make | |
5168 fi | |
5169 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5171 $as_echo "yes" >&6; } | |
5172 SET_MAKE= | |
5173 else | |
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5175 $as_echo "no" >&6; } | |
5176 SET_MAKE="MAKE=${MAKE-make}" | |
5177 fi | |
5178 | |
5179 enable_win32_dll=yes | |
5180 | |
5181 case $host in | |
5182 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) | |
5183 if test -n "$ac_tool_prefix"; then | |
5184 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
5185 set dummy ${ac_tool_prefix}as; ac_word=$2 | |
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5187 $as_echo_n "checking for $ac_word... " >&6; } | |
5188 if ${ac_cv_prog_AS+:} false; then : | |
5189 $as_echo_n "(cached) " >&6 | |
5190 else | |
5191 if test -n "$AS"; then | |
5192 ac_cv_prog_AS="$AS" # Let the user override the test. | |
5193 else | |
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5195 for as_dir in $PATH | |
5196 do | |
5197 IFS=$as_save_IFS | |
5198 test -z "$as_dir" && as_dir=. | |
5199 for ac_exec_ext in '' $ac_executable_extensions; do | |
5200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5201 ac_cv_prog_AS="${ac_tool_prefix}as" | |
5202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5203 break 2 | |
5204 fi | |
5205 done | |
5206 done | |
5207 IFS=$as_save_IFS | |
5208 | |
5209 fi | |
5210 fi | |
5211 AS=$ac_cv_prog_AS | |
5212 if test -n "$AS"; then | |
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 | |
5214 $as_echo "$AS" >&6; } | |
5215 else | |
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5217 $as_echo "no" >&6; } | |
5218 fi | |
5219 | |
5220 | |
5221 fi | |
5222 if test -z "$ac_cv_prog_AS"; then | |
5223 ac_ct_AS=$AS | |
5224 # Extract the first word of "as", so it can be a program name with args. | |
5225 set dummy as; ac_word=$2 | |
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5227 $as_echo_n "checking for $ac_word... " >&6; } | |
5228 if ${ac_cv_prog_ac_ct_AS+:} false; then : | |
5229 $as_echo_n "(cached) " >&6 | |
5230 else | |
5231 if test -n "$ac_ct_AS"; then | |
5232 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | |
5233 else | |
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5235 for as_dir in $PATH | |
5236 do | |
5237 IFS=$as_save_IFS | |
5238 test -z "$as_dir" && as_dir=. | |
5239 for ac_exec_ext in '' $ac_executable_extensions; do | |
5240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5241 ac_cv_prog_ac_ct_AS="as" | |
5242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5243 break 2 | |
5244 fi | |
5245 done | |
5246 done | |
5247 IFS=$as_save_IFS | |
5248 | |
5249 fi | |
5250 fi | |
5251 ac_ct_AS=$ac_cv_prog_ac_ct_AS | |
5252 if test -n "$ac_ct_AS"; then | |
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 | |
5254 $as_echo "$ac_ct_AS" >&6; } | |
5255 else | |
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5257 $as_echo "no" >&6; } | |
5258 fi | |
5259 | |
5260 if test "x$ac_ct_AS" = x; then | |
5261 AS="false" | |
5262 else | |
5263 case $cross_compiling:$ac_tool_warned in | |
5264 yes:) | |
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5267 ac_tool_warned=yes ;; | |
5268 esac | |
5269 AS=$ac_ct_AS | |
5270 fi | |
5271 else | |
5272 AS="$ac_cv_prog_AS" | |
5273 fi | |
5274 | |
5275 if test -n "$ac_tool_prefix"; then | |
5276 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
5277 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5279 $as_echo_n "checking for $ac_word... " >&6; } | |
5280 if ${ac_cv_prog_DLLTOOL+:} false; then : | |
5281 $as_echo_n "(cached) " >&6 | |
5282 else | |
5283 if test -n "$DLLTOOL"; then | |
5284 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
5285 else | |
5286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5287 for as_dir in $PATH | |
5288 do | |
5289 IFS=$as_save_IFS | |
5290 test -z "$as_dir" && as_dir=. | |
5291 for ac_exec_ext in '' $ac_executable_extensions; do | |
5292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5293 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
5294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5295 break 2 | |
5296 fi | |
5297 done | |
5298 done | |
5299 IFS=$as_save_IFS | |
5300 | |
5301 fi | |
5302 fi | |
5303 DLLTOOL=$ac_cv_prog_DLLTOOL | |
5304 if test -n "$DLLTOOL"; then | |
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
5306 $as_echo "$DLLTOOL" >&6; } | |
5307 else | |
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5309 $as_echo "no" >&6; } | |
5310 fi | |
5311 | |
5312 | |
5313 fi | |
5314 if test -z "$ac_cv_prog_DLLTOOL"; then | |
5315 ac_ct_DLLTOOL=$DLLTOOL | |
5316 # Extract the first word of "dlltool", so it can be a program name with args. | |
5317 set dummy dlltool; ac_word=$2 | |
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5319 $as_echo_n "checking for $ac_word... " >&6; } | |
5320 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
5321 $as_echo_n "(cached) " >&6 | |
5322 else | |
5323 if test -n "$ac_ct_DLLTOOL"; then | |
5324 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
5325 else | |
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5327 for as_dir in $PATH | |
5328 do | |
5329 IFS=$as_save_IFS | |
5330 test -z "$as_dir" && as_dir=. | |
5331 for ac_exec_ext in '' $ac_executable_extensions; do | |
5332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5333 ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
5334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5335 break 2 | |
5336 fi | |
5337 done | |
5338 done | |
5339 IFS=$as_save_IFS | |
5340 | |
5341 fi | |
5342 fi | |
5343 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
5344 if test -n "$ac_ct_DLLTOOL"; then | |
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
5346 $as_echo "$ac_ct_DLLTOOL" >&6; } | |
5347 else | |
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5349 $as_echo "no" >&6; } | |
5350 fi | |
5351 | |
5352 if test "x$ac_ct_DLLTOOL" = x; then | |
5353 DLLTOOL="false" | |
5354 else | |
5355 case $cross_compiling:$ac_tool_warned in | |
5356 yes:) | |
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5358 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5359 ac_tool_warned=yes ;; | |
5360 esac | |
5361 DLLTOOL=$ac_ct_DLLTOOL | |
5362 fi | |
5363 else | |
5364 DLLTOOL="$ac_cv_prog_DLLTOOL" | |
5365 fi | |
5366 | |
5367 if test -n "$ac_tool_prefix"; then | |
5368 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5369 set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5371 $as_echo_n "checking for $ac_word... " >&6; } | |
5372 if ${ac_cv_prog_OBJDUMP+:} false; then : | |
5373 $as_echo_n "(cached) " >&6 | |
5374 else | |
5375 if test -n "$OBJDUMP"; then | |
5376 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5377 else | |
5378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5379 for as_dir in $PATH | |
5380 do | |
5381 IFS=$as_save_IFS | |
5382 test -z "$as_dir" && as_dir=. | |
5383 for ac_exec_ext in '' $ac_executable_extensions; do | |
5384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5385 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
5386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5387 break 2 | |
5388 fi | |
5389 done | |
5390 done | |
5391 IFS=$as_save_IFS | |
5392 | |
5393 fi | |
5394 fi | |
5395 OBJDUMP=$ac_cv_prog_OBJDUMP | |
5396 if test -n "$OBJDUMP"; then | |
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
5398 $as_echo "$OBJDUMP" >&6; } | |
5399 else | |
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5401 $as_echo "no" >&6; } | |
5402 fi | |
5403 | |
5404 | |
5405 fi | |
5406 if test -z "$ac_cv_prog_OBJDUMP"; then | |
5407 ac_ct_OBJDUMP=$OBJDUMP | |
5408 # Extract the first word of "objdump", so it can be a program name with args. | |
5409 set dummy objdump; ac_word=$2 | |
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5411 $as_echo_n "checking for $ac_word... " >&6; } | |
5412 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
5413 $as_echo_n "(cached) " >&6 | |
5414 else | |
5415 if test -n "$ac_ct_OBJDUMP"; then | |
5416 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5417 else | |
5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5419 for as_dir in $PATH | |
5420 do | |
5421 IFS=$as_save_IFS | |
5422 test -z "$as_dir" && as_dir=. | |
5423 for ac_exec_ext in '' $ac_executable_extensions; do | |
5424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5425 ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
5426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5427 break 2 | |
5428 fi | |
5429 done | |
5430 done | |
5431 IFS=$as_save_IFS | |
5432 | |
5433 fi | |
5434 fi | |
5435 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5436 if test -n "$ac_ct_OBJDUMP"; then | |
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
5438 $as_echo "$ac_ct_OBJDUMP" >&6; } | |
5439 else | |
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5441 $as_echo "no" >&6; } | |
5442 fi | |
5443 | |
5444 if test "x$ac_ct_OBJDUMP" = x; then | |
5445 OBJDUMP="false" | |
5446 else | |
5447 case $cross_compiling:$ac_tool_warned in | |
5448 yes:) | |
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5451 ac_tool_warned=yes ;; | |
5452 esac | |
5453 OBJDUMP=$ac_ct_OBJDUMP | |
5454 fi | |
5455 else | |
5456 OBJDUMP="$ac_cv_prog_OBJDUMP" | |
5457 fi | |
5458 | |
5459 ;; | |
5460 esac | |
5461 | |
5462 test -z "$AS" && AS=as | |
5463 | |
5464 | |
5465 | |
5466 | |
5467 | |
5468 test -z "$DLLTOOL" && DLLTOOL=dlltool | |
5469 | |
5470 | |
5471 | |
5472 | |
5473 | |
5474 test -z "$OBJDUMP" && OBJDUMP=objdump | |
5475 | |
5476 | |
5477 | |
5478 | |
5479 | |
5480 | |
5481 | |
5482 case `pwd` in | |
5483 *\ * | *\ *) | |
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5485 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5486 esac | |
5487 | |
5488 | |
5489 | |
5490 macro_version='2.4.2' | |
5491 macro_revision='1.3337' | |
5492 | |
5493 | |
5494 | |
5495 | |
5496 | |
5497 | |
5498 | |
5499 | |
5500 | |
5501 | |
5502 | |
5503 | |
5504 | |
5505 ltmain="$ac_aux_dir/ltmain.sh" | |
5506 | |
5507 # Backslashify metacharacters that are still active within | |
5508 # double-quoted strings. | |
5509 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
5510 | |
5511 # Same as above, but do not quote variable references. | |
5512 double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
5513 | |
5514 # Sed substitution to delay expansion of an escaped shell variable in a | |
5515 # double_quote_subst'ed string. | |
5516 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
5517 | |
5518 # Sed substitution to delay expansion of an escaped single quote. | |
5519 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
5520 | |
5521 # Sed substitution to avoid accidental globbing in evaled expressions | |
5522 no_glob_subst='s/\*/\\\*/g' | |
5523 | |
5524 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
5525 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5526 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
5527 | |
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
5529 $as_echo_n "checking how to print strings... " >&6; } | |
5530 # Test print first, because it will be a builtin if present. | |
5531 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
5532 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5533 ECHO='print -r --' | |
5534 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5535 ECHO='printf %s\n' | |
5536 else | |
5537 # Use this function as a fallback that always works. | |
5538 func_fallback_echo () | |
5539 { | |
5540 eval 'cat <<_LTECHO_EOF | |
5541 $1 | |
5542 _LTECHO_EOF' | |
5543 } | |
5544 ECHO='func_fallback_echo' | |
5545 fi | |
5546 | |
5547 # func_echo_all arg... | |
5548 # Invoke $ECHO with all args, space-separated. | |
5549 func_echo_all () | |
5550 { | |
5551 $ECHO "" | |
5552 } | |
5553 | |
5554 case "$ECHO" in | |
5555 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
5556 $as_echo "printf" >&6; } ;; | |
5557 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5558 $as_echo "print -r" >&6; } ;; | |
5559 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5560 $as_echo "cat" >&6; } ;; | |
5561 esac | |
5562 | |
5563 | |
5564 | |
5565 | |
5566 | |
5567 | |
5568 | |
5569 | |
5570 | |
5571 | |
5572 | |
5573 | |
5574 | |
5575 | |
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
5577 $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5578 if ${ac_cv_path_SED+:} false; then : | |
5579 $as_echo_n "(cached) " >&6 | |
5580 else | |
5581 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
5582 for ac_i in 1 2 3 4 5 6 7; do | |
5583 ac_script="$ac_script$as_nl$ac_script" | |
5584 done | |
5585 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5586 { ac_script=; unset ac_script;} | |
5587 if test -z "$SED"; then | |
5588 ac_path_SED_found=false | |
5589 # Loop through the user's path and test for each of PROGNAME-LIST | |
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5591 for as_dir in $PATH | |
5592 do | |
5593 IFS=$as_save_IFS | |
5594 test -z "$as_dir" && as_dir=. | |
5595 for ac_prog in sed gsed; do | |
5596 for ac_exec_ext in '' $ac_executable_extensions; do | |
5597 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
5598 as_fn_executable_p "$ac_path_SED" || continue | |
5599 # Check for GNU ac_path_SED and select it if it is found. | |
5600 # Check for GNU $ac_path_SED | |
5601 case `"$ac_path_SED" --version 2>&1` in | |
5602 *GNU*) | |
5603 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5604 *) | |
5605 ac_count=0 | |
5606 $as_echo_n 0123456789 >"conftest.in" | |
5607 while : | |
5608 do | |
5609 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5610 mv "conftest.tmp" "conftest.in" | |
5611 cp "conftest.in" "conftest.nl" | |
5612 $as_echo '' >> "conftest.nl" | |
5613 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5614 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5615 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5616 if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5617 # Best one so far, save it but keep looking for a better one | |
5618 ac_cv_path_SED="$ac_path_SED" | |
5619 ac_path_SED_max=$ac_count | |
5620 fi | |
5621 # 10*(2^10) chars as input seems more than enough | |
5622 test $ac_count -gt 10 && break | |
5623 done | |
5624 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5625 esac | |
5626 | |
5627 $ac_path_SED_found && break 3 | |
5628 done | |
5629 done | |
5630 done | |
5631 IFS=$as_save_IFS | |
5632 if test -z "$ac_cv_path_SED"; then | |
5633 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
5634 fi | |
5635 else | |
5636 ac_cv_path_SED=$SED | |
5637 fi | |
5638 | |
5639 fi | |
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5641 $as_echo "$ac_cv_path_SED" >&6; } | |
5642 SED="$ac_cv_path_SED" | |
5643 rm -f conftest.sed | |
5644 | |
5645 test -z "$SED" && SED=sed | |
5646 Xsed="$SED -e 1s/^X//" | |
5647 | |
5648 | |
5649 | |
5650 | |
5651 | |
5652 | |
5653 | |
5654 | |
5655 | |
5656 | |
5657 | |
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
5659 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5660 if ${ac_cv_path_GREP+:} false; then : | |
5661 $as_echo_n "(cached) " >&6 | |
5662 else | |
5663 if test -z "$GREP"; then | |
5664 ac_path_GREP_found=false | |
5665 # Loop through the user's path and test for each of PROGNAME-LIST | |
5666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5667 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5668 do | |
5669 IFS=$as_save_IFS | |
5670 test -z "$as_dir" && as_dir=. | |
5671 for ac_prog in grep ggrep; do | |
5672 for ac_exec_ext in '' $ac_executable_extensions; do | |
5673 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
5674 as_fn_executable_p "$ac_path_GREP" || continue | |
5675 # Check for GNU ac_path_GREP and select it if it is found. | |
5676 # Check for GNU $ac_path_GREP | |
5677 case `"$ac_path_GREP" --version 2>&1` in | |
5678 *GNU*) | |
5679 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5680 *) | |
5681 ac_count=0 | |
5682 $as_echo_n 0123456789 >"conftest.in" | |
5683 while : | |
5684 do | |
5685 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5686 mv "conftest.tmp" "conftest.in" | |
5687 cp "conftest.in" "conftest.nl" | |
5688 $as_echo 'GREP' >> "conftest.nl" | |
5689 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5690 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5691 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5692 if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5693 # Best one so far, save it but keep looking for a better one | |
5694 ac_cv_path_GREP="$ac_path_GREP" | |
5695 ac_path_GREP_max=$ac_count | |
5696 fi | |
5697 # 10*(2^10) chars as input seems more than enough | |
5698 test $ac_count -gt 10 && break | |
5699 done | |
5700 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5701 esac | |
5702 | |
5703 $ac_path_GREP_found && break 3 | |
5704 done | |
5705 done | |
5706 done | |
5707 IFS=$as_save_IFS | |
5708 if test -z "$ac_cv_path_GREP"; then | |
5709 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5710 fi | |
5711 else | |
5712 ac_cv_path_GREP=$GREP | |
5713 fi | |
5714 | |
5715 fi | |
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
5717 $as_echo "$ac_cv_path_GREP" >&6; } | |
5718 GREP="$ac_cv_path_GREP" | |
5719 | |
5720 | |
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
5722 $as_echo_n "checking for egrep... " >&6; } | |
5723 if ${ac_cv_path_EGREP+:} false; then : | |
5724 $as_echo_n "(cached) " >&6 | |
5725 else | |
5726 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
5727 then ac_cv_path_EGREP="$GREP -E" | |
5728 else | |
5729 if test -z "$EGREP"; then | |
5730 ac_path_EGREP_found=false | |
5731 # Loop through the user's path and test for each of PROGNAME-LIST | |
5732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5733 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5734 do | |
5735 IFS=$as_save_IFS | |
5736 test -z "$as_dir" && as_dir=. | |
5737 for ac_prog in egrep; do | |
5738 for ac_exec_ext in '' $ac_executable_extensions; do | |
5739 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5740 as_fn_executable_p "$ac_path_EGREP" || continue | |
5741 # Check for GNU ac_path_EGREP and select it if it is found. | |
5742 # Check for GNU $ac_path_EGREP | |
5743 case `"$ac_path_EGREP" --version 2>&1` in | |
5744 *GNU*) | |
5745 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5746 *) | |
5747 ac_count=0 | |
5748 $as_echo_n 0123456789 >"conftest.in" | |
5749 while : | |
5750 do | |
5751 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5752 mv "conftest.tmp" "conftest.in" | |
5753 cp "conftest.in" "conftest.nl" | |
5754 $as_echo 'EGREP' >> "conftest.nl" | |
5755 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5756 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5757 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5758 if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5759 # Best one so far, save it but keep looking for a better one | |
5760 ac_cv_path_EGREP="$ac_path_EGREP" | |
5761 ac_path_EGREP_max=$ac_count | |
5762 fi | |
5763 # 10*(2^10) chars as input seems more than enough | |
5764 test $ac_count -gt 10 && break | |
5765 done | |
5766 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5767 esac | |
5768 | |
5769 $ac_path_EGREP_found && break 3 | |
5770 done | |
5771 done | |
5772 done | |
5773 IFS=$as_save_IFS | |
5774 if test -z "$ac_cv_path_EGREP"; then | |
5775 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5776 fi | |
5777 else | |
5778 ac_cv_path_EGREP=$EGREP | |
5779 fi | |
5780 | |
5781 fi | |
5782 fi | |
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
5784 $as_echo "$ac_cv_path_EGREP" >&6; } | |
5785 EGREP="$ac_cv_path_EGREP" | |
5786 | |
5787 | |
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
5789 $as_echo_n "checking for fgrep... " >&6; } | |
5790 if ${ac_cv_path_FGREP+:} false; then : | |
5791 $as_echo_n "(cached) " >&6 | |
5792 else | |
5793 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
5794 then ac_cv_path_FGREP="$GREP -F" | |
5795 else | |
5796 if test -z "$FGREP"; then | |
5797 ac_path_FGREP_found=false | |
5798 # Loop through the user's path and test for each of PROGNAME-LIST | |
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5800 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5801 do | |
5802 IFS=$as_save_IFS | |
5803 test -z "$as_dir" && as_dir=. | |
5804 for ac_prog in fgrep; do | |
5805 for ac_exec_ext in '' $ac_executable_extensions; do | |
5806 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5807 as_fn_executable_p "$ac_path_FGREP" || continue | |
5808 # Check for GNU ac_path_FGREP and select it if it is found. | |
5809 # Check for GNU $ac_path_FGREP | |
5810 case `"$ac_path_FGREP" --version 2>&1` in | |
5811 *GNU*) | |
5812 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5813 *) | |
5814 ac_count=0 | |
5815 $as_echo_n 0123456789 >"conftest.in" | |
5816 while : | |
5817 do | |
5818 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5819 mv "conftest.tmp" "conftest.in" | |
5820 cp "conftest.in" "conftest.nl" | |
5821 $as_echo 'FGREP' >> "conftest.nl" | |
5822 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5823 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5824 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5825 if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5826 # Best one so far, save it but keep looking for a better one | |
5827 ac_cv_path_FGREP="$ac_path_FGREP" | |
5828 ac_path_FGREP_max=$ac_count | |
5829 fi | |
5830 # 10*(2^10) chars as input seems more than enough | |
5831 test $ac_count -gt 10 && break | |
5832 done | |
5833 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5834 esac | |
5835 | |
5836 $ac_path_FGREP_found && break 3 | |
5837 done | |
5838 done | |
5839 done | |
5840 IFS=$as_save_IFS | |
5841 if test -z "$ac_cv_path_FGREP"; then | |
5842 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5843 fi | |
5844 else | |
5845 ac_cv_path_FGREP=$FGREP | |
5846 fi | |
5847 | |
5848 fi | |
5849 fi | |
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
5851 $as_echo "$ac_cv_path_FGREP" >&6; } | |
5852 FGREP="$ac_cv_path_FGREP" | |
5853 | |
5854 | |
5855 test -z "$GREP" && GREP=grep | |
5856 | |
5857 | |
5858 | |
5859 | |
5860 | |
5861 | |
5862 | |
5863 | |
5864 | |
5865 | |
5866 | |
5867 | |
5868 | |
5869 | |
5870 | |
5871 | |
5872 | |
5873 | |
5874 | |
5875 # Check whether --with-gnu-ld was given. | |
5876 if test "${with_gnu_ld+set}" = set; then : | |
5877 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
5878 else | |
5879 with_gnu_ld=no | |
5880 fi | |
5881 | |
5882 ac_prog=ld | |
5883 if test "$GCC" = yes; then | |
5884 # Check if gcc -print-prog-name=ld gives a path. | |
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
5886 $as_echo_n "checking for ld used by $CC... " >&6; } | |
5887 case $host in | |
5888 *-*-mingw*) | |
5889 # gcc leaves a trailing carriage return which upsets mingw | |
5890 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5891 *) | |
5892 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5893 esac | |
5894 case $ac_prog in | |
5895 # Accept absolute paths. | |
5896 [\\/]* | ?:[\\/]*) | |
5897 re_direlt='/[^/][^/]*/\.\./' | |
5898 # Canonicalize the pathname of ld | |
5899 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5900 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5901 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5902 done | |
5903 test -z "$LD" && LD="$ac_prog" | |
5904 ;; | |
5905 "") | |
5906 # If it fails, then pretend we aren't using GCC. | |
5907 ac_prog=ld | |
5908 ;; | |
5909 *) | |
5910 # If it is relative, then search for the first ld in PATH. | |
5911 with_gnu_ld=unknown | |
5912 ;; | |
5913 esac | |
5914 elif test "$with_gnu_ld" = yes; then | |
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
5916 $as_echo_n "checking for GNU ld... " >&6; } | |
5917 else | |
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
5919 $as_echo_n "checking for non-GNU ld... " >&6; } | |
5920 fi | |
5921 if ${lt_cv_path_LD+:} false; then : | |
5922 $as_echo_n "(cached) " >&6 | |
5923 else | |
5924 if test -z "$LD"; then | |
5925 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5926 for ac_dir in $PATH; do | |
5927 IFS="$lt_save_ifs" | |
5928 test -z "$ac_dir" && ac_dir=. | |
5929 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5930 lt_cv_path_LD="$ac_dir/$ac_prog" | |
5931 # Check to see if the program is GNU ld. I'd rather use --version, | |
5932 # but apparently some variants of GNU ld only accept -v. | |
5933 # Break only if it was the GNU/non-GNU ld that we prefer. | |
5934 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5935 *GNU* | *'with BFD'*) | |
5936 test "$with_gnu_ld" != no && break | |
5937 ;; | |
5938 *) | |
5939 test "$with_gnu_ld" != yes && break | |
5940 ;; | |
5941 esac | |
5942 fi | |
5943 done | |
5944 IFS="$lt_save_ifs" | |
5945 else | |
5946 lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
5947 fi | |
5948 fi | |
5949 | |
5950 LD="$lt_cv_path_LD" | |
5951 if test -n "$LD"; then | |
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5953 $as_echo "$LD" >&6; } | |
5954 else | |
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5956 $as_echo "no" >&6; } | |
5957 fi | |
5958 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
5960 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5961 if ${lt_cv_prog_gnu_ld+:} false; then : | |
5962 $as_echo_n "(cached) " >&6 | |
5963 else | |
5964 # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
5965 case `$LD -v 2>&1 </dev/null` in | |
5966 *GNU* | *'with BFD'*) | |
5967 lt_cv_prog_gnu_ld=yes | |
5968 ;; | |
5969 *) | |
5970 lt_cv_prog_gnu_ld=no | |
5971 ;; | |
5972 esac | |
5973 fi | |
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
5975 $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
5976 with_gnu_ld=$lt_cv_prog_gnu_ld | |
5977 | |
5978 | |
5979 | |
5980 | |
5981 | |
5982 | |
5983 | |
5984 | |
5985 | |
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
5987 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
5988 if ${lt_cv_path_NM+:} false; then : | |
5989 $as_echo_n "(cached) " >&6 | |
5990 else | |
5991 if test -n "$NM"; then | |
5992 # Let the user override the test. | |
5993 lt_cv_path_NM="$NM" | |
5994 else | |
5995 lt_nm_to_check="${ac_tool_prefix}nm" | |
5996 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5997 lt_nm_to_check="$lt_nm_to_check nm" | |
5998 fi | |
5999 for lt_tmp_nm in $lt_nm_to_check; do | |
6000 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6001 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
6002 IFS="$lt_save_ifs" | |
6003 test -z "$ac_dir" && ac_dir=. | |
6004 tmp_nm="$ac_dir/$lt_tmp_nm" | |
6005 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
6006 # Check to see if the nm accepts a BSD-compat flag. | |
6007 # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
6008 # nm: unknown option "B" ignored | |
6009 # Tru64's nm complains that /dev/null is an invalid object file | |
6010 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
6011 */dev/null* | *'Invalid file or object type'*) | |
6012 lt_cv_path_NM="$tmp_nm -B" | |
6013 break | |
6014 ;; | |
6015 *) | |
6016 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
6017 */dev/null*) | |
6018 lt_cv_path_NM="$tmp_nm -p" | |
6019 break | |
6020 ;; | |
6021 *) | |
6022 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
6023 continue # so that we can try to find one that supports BSD flags | |
6024 ;; | |
6025 esac | |
6026 ;; | |
6027 esac | |
6028 fi | |
6029 done | |
6030 IFS="$lt_save_ifs" | |
6031 done | |
6032 : ${lt_cv_path_NM=no} | |
6033 fi | |
6034 fi | |
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
6036 $as_echo "$lt_cv_path_NM" >&6; } | |
6037 if test "$lt_cv_path_NM" != "no"; then | |
6038 NM="$lt_cv_path_NM" | |
6039 else | |
6040 # Didn't find any BSD compatible name lister, look for dumpbin. | |
6041 if test -n "$DUMPBIN"; then : | |
6042 # Let the user override the test. | |
6043 else | |
6044 if test -n "$ac_tool_prefix"; then | |
6045 for ac_prog in dumpbin "link -dump" | |
6046 do | |
6047 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6048 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6050 $as_echo_n "checking for $ac_word... " >&6; } | |
6051 if ${ac_cv_prog_DUMPBIN+:} false; then : | |
6052 $as_echo_n "(cached) " >&6 | |
6053 else | |
6054 if test -n "$DUMPBIN"; then | |
6055 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
6056 else | |
6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6058 for as_dir in $PATH | |
6059 do | |
6060 IFS=$as_save_IFS | |
6061 test -z "$as_dir" && as_dir=. | |
6062 for ac_exec_ext in '' $ac_executable_extensions; do | |
6063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6064 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
6065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6066 break 2 | |
6067 fi | |
6068 done | |
6069 done | |
6070 IFS=$as_save_IFS | |
6071 | |
6072 fi | |
6073 fi | |
6074 DUMPBIN=$ac_cv_prog_DUMPBIN | |
6075 if test -n "$DUMPBIN"; then | |
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
6077 $as_echo "$DUMPBIN" >&6; } | |
6078 else | |
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6080 $as_echo "no" >&6; } | |
6081 fi | |
6082 | |
6083 | |
6084 test -n "$DUMPBIN" && break | |
6085 done | |
6086 fi | |
6087 if test -z "$DUMPBIN"; then | |
6088 ac_ct_DUMPBIN=$DUMPBIN | |
6089 for ac_prog in dumpbin "link -dump" | |
6090 do | |
6091 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6092 set dummy $ac_prog; ac_word=$2 | |
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6094 $as_echo_n "checking for $ac_word... " >&6; } | |
6095 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : | |
6096 $as_echo_n "(cached) " >&6 | |
6097 else | |
6098 if test -n "$ac_ct_DUMPBIN"; then | |
6099 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
6100 else | |
6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6102 for as_dir in $PATH | |
6103 do | |
6104 IFS=$as_save_IFS | |
6105 test -z "$as_dir" && as_dir=. | |
6106 for ac_exec_ext in '' $ac_executable_extensions; do | |
6107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6108 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
6109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6110 break 2 | |
6111 fi | |
6112 done | |
6113 done | |
6114 IFS=$as_save_IFS | |
6115 | |
6116 fi | |
6117 fi | |
6118 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
6119 if test -n "$ac_ct_DUMPBIN"; then | |
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
6121 $as_echo "$ac_ct_DUMPBIN" >&6; } | |
6122 else | |
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6124 $as_echo "no" >&6; } | |
6125 fi | |
6126 | |
6127 | |
6128 test -n "$ac_ct_DUMPBIN" && break | |
6129 done | |
6130 | |
6131 if test "x$ac_ct_DUMPBIN" = x; then | |
6132 DUMPBIN=":" | |
6133 else | |
6134 case $cross_compiling:$ac_tool_warned in | |
6135 yes:) | |
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6138 ac_tool_warned=yes ;; | |
6139 esac | |
6140 DUMPBIN=$ac_ct_DUMPBIN | |
6141 fi | |
6142 fi | |
6143 | |
6144 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | |
6145 *COFF*) | |
6146 DUMPBIN="$DUMPBIN -symbols" | |
6147 ;; | |
6148 *) | |
6149 DUMPBIN=: | |
6150 ;; | |
6151 esac | |
6152 fi | |
6153 | |
6154 if test "$DUMPBIN" != ":"; then | |
6155 NM="$DUMPBIN" | |
6156 fi | |
6157 fi | |
6158 test -z "$NM" && NM=nm | |
6159 | |
6160 | |
6161 | |
6162 | |
6163 | |
6164 | |
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
6166 $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
6167 if ${lt_cv_nm_interface+:} false; then : | |
6168 $as_echo_n "(cached) " >&6 | |
6169 else | |
6170 lt_cv_nm_interface="BSD nm" | |
6171 echo "int some_variable = 0;" > conftest.$ac_ext | |
6172 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
6173 (eval "$ac_compile" 2>conftest.err) | |
6174 cat conftest.err >&5 | |
6175 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
6176 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
6177 cat conftest.err >&5 | |
6178 (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
6179 cat conftest.out >&5 | |
6180 if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
6181 lt_cv_nm_interface="MS dumpbin" | |
6182 fi | |
6183 rm -f conftest* | |
6184 fi | |
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
6186 $as_echo "$lt_cv_nm_interface" >&6; } | |
6187 | |
6188 # find the maximum length of command line arguments | |
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
6190 $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
6191 if ${lt_cv_sys_max_cmd_len+:} false; then : | |
6192 $as_echo_n "(cached) " >&6 | |
6193 else | |
6194 i=0 | |
6195 teststring="ABCD" | |
6196 | |
6197 case $build_os in | |
6198 msdosdjgpp*) | |
6199 # On DJGPP, this test can blow up pretty badly due to problems in libc | |
6200 # (any single argument exceeding 2000 bytes causes a buffer overrun | |
6201 # during glob expansion). Even if it were fixed, the result of this | |
6202 # check would be larger than it should be. | |
6203 lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
6204 ;; | |
6205 | |
6206 gnu*) | |
6207 # Under GNU Hurd, this test is not required because there is | |
6208 # no limit to the length of command line arguments. | |
6209 # Libtool will interpret -1 as no limit whatsoever | |
6210 lt_cv_sys_max_cmd_len=-1; | |
6211 ;; | |
6212 | |
6213 cygwin* | mingw* | cegcc*) | |
6214 # On Win9x/ME, this test blows up -- it succeeds, but takes | |
6215 # about 5 minutes as the teststring grows exponentially. | |
6216 # Worse, since 9x/ME are not pre-emptively multitasking, | |
6217 # you end up with a "frozen" computer, even though with patience | |
6218 # the test eventually succeeds (with a max line length of 256k). | |
6219 # Instead, let's just punt: use the minimum linelength reported by | |
6220 # all of the supported platforms: 8192 (on NT/2K/XP). | |
6221 lt_cv_sys_max_cmd_len=8192; | |
6222 ;; | |
6223 | |
6224 mint*) | |
6225 # On MiNT this can take a long time and run out of memory. | |
6226 lt_cv_sys_max_cmd_len=8192; | |
6227 ;; | |
6228 | |
6229 amigaos*) | |
6230 # On AmigaOS with pdksh, this test takes hours, literally. | |
6231 # So we just punt and use a minimum line length of 8192. | |
6232 lt_cv_sys_max_cmd_len=8192; | |
6233 ;; | |
6234 | |
6235 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
6236 # This has been around since 386BSD, at least. Likely further. | |
6237 if test -x /sbin/sysctl; then | |
6238 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
6239 elif test -x /usr/sbin/sysctl; then | |
6240 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
6241 else | |
6242 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
6243 fi | |
6244 # And add a safety zone | |
6245 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6246 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6247 ;; | |
6248 | |
6249 interix*) | |
6250 # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
6251 lt_cv_sys_max_cmd_len=196608 | |
6252 ;; | |
6253 | |
6254 os2*) | |
6255 # The test takes a long time on OS/2. | |
6256 lt_cv_sys_max_cmd_len=8192 | |
6257 ;; | |
6258 | |
6259 osf*) | |
6260 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
6261 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
6262 # nice to cause kernel panics so lets avoid the loop below. | |
6263 # First set a reasonable default. | |
6264 lt_cv_sys_max_cmd_len=16384 | |
6265 # | |
6266 if test -x /sbin/sysconfig; then | |
6267 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
6268 *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
6269 esac | |
6270 fi | |
6271 ;; | |
6272 sco3.2v5*) | |
6273 lt_cv_sys_max_cmd_len=102400 | |
6274 ;; | |
6275 sysv5* | sco5v6* | sysv4.2uw2*) | |
6276 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
6277 if test -n "$kargmax"; then | |
6278 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
6279 else | |
6280 lt_cv_sys_max_cmd_len=32768 | |
6281 fi | |
6282 ;; | |
6283 *) | |
6284 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
6285 if test -n "$lt_cv_sys_max_cmd_len"; then | |
6286 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6287 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6288 else | |
6289 # Make teststring a little bigger before we do anything with it. | |
6290 # a 1K string should be a reasonable start. | |
6291 for i in 1 2 3 4 5 6 7 8 ; do | |
6292 teststring=$teststring$teststring | |
6293 done | |
6294 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
6295 # If test is not a shell built-in, we'll probably end up computing a | |
6296 # maximum length that is only half of the actual maximum length, but | |
6297 # we can't tell. | |
6298 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ | |
6299 = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
6300 test $i != 17 # 1/2 MB should be enough | |
6301 do | |
6302 i=`expr $i + 1` | |
6303 teststring=$teststring$teststring | |
6304 done | |
6305 # Only check the string length outside the loop. | |
6306 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
6307 teststring= | |
6308 # Add a significant safety factor because C++ compilers can tack on | |
6309 # massive amounts of additional arguments before passing them to the | |
6310 # linker. It appears as though 1/2 is a usable value. | |
6311 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
6312 fi | |
6313 ;; | |
6314 esac | |
6315 | |
6316 fi | |
6317 | |
6318 if test -n $lt_cv_sys_max_cmd_len ; then | |
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
6320 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
6321 else | |
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
6323 $as_echo "none" >&6; } | |
6324 fi | |
6325 max_cmd_len=$lt_cv_sys_max_cmd_len | |
6326 | |
6327 | |
6328 | |
6329 | |
6330 | |
6331 | |
6332 : ${CP="cp -f"} | |
6333 : ${MV="mv -f"} | |
6334 : ${RM="rm -f"} | |
6335 | |
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
6337 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
6338 # Try some XSI features | |
6339 xsi_shell=no | |
6340 ( _lt_dummy="a/b/c" | |
6341 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | |
6342 = c,a/b,b/c, \ | |
6343 && eval 'test $(( 1 + 1 )) -eq 2 \ | |
6344 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
6345 && xsi_shell=yes | |
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
6347 $as_echo "$xsi_shell" >&6; } | |
6348 | |
6349 | |
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
6351 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
6352 lt_shell_append=no | |
6353 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
6354 >/dev/null 2>&1 \ | |
6355 && lt_shell_append=yes | |
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
6357 $as_echo "$lt_shell_append" >&6; } | |
6358 | |
6359 | |
6360 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
6361 lt_unset=unset | |
6362 else | |
6363 lt_unset=false | |
6364 fi | |
6365 | |
6366 | |
6367 | |
6368 | |
6369 | |
6370 # test EBCDIC or ASCII | |
6371 case `echo X|tr X '\101'` in | |
6372 A) # ASCII based system | |
6373 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6374 lt_SP2NL='tr \040 \012' | |
6375 lt_NL2SP='tr \015\012 \040\040' | |
6376 ;; | |
6377 *) # EBCDIC based system | |
6378 lt_SP2NL='tr \100 \n' | |
6379 lt_NL2SP='tr \r\n \100\100' | |
6380 ;; | |
6381 esac | |
6382 | |
6383 | |
6384 | |
6385 | |
6386 | |
6387 | |
6388 | |
6389 | |
6390 | |
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | |
6392 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
6393 if ${lt_cv_to_host_file_cmd+:} false; then : | |
6394 $as_echo_n "(cached) " >&6 | |
6395 else | |
6396 case $host in | |
6397 *-*-mingw* ) | |
6398 case $build in | |
6399 *-*-mingw* ) # actually msys | |
6400 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
6401 ;; | |
6402 *-*-cygwin* ) | |
6403 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
6404 ;; | |
6405 * ) # otherwise, assume *nix | |
6406 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
6407 ;; | |
6408 esac | |
6409 ;; | |
6410 *-*-cygwin* ) | |
6411 case $build in | |
6412 *-*-mingw* ) # actually msys | |
6413 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
6414 ;; | |
6415 *-*-cygwin* ) | |
6416 lt_cv_to_host_file_cmd=func_convert_file_noop | |
6417 ;; | |
6418 * ) # otherwise, assume *nix | |
6419 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
6420 ;; | |
6421 esac | |
6422 ;; | |
6423 * ) # unhandled hosts (and "normal" native builds) | |
6424 lt_cv_to_host_file_cmd=func_convert_file_noop | |
6425 ;; | |
6426 esac | |
6427 | |
6428 fi | |
6429 | |
6430 to_host_file_cmd=$lt_cv_to_host_file_cmd | |
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
6432 $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
6433 | |
6434 | |
6435 | |
6436 | |
6437 | |
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
6439 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
6440 if ${lt_cv_to_tool_file_cmd+:} false; then : | |
6441 $as_echo_n "(cached) " >&6 | |
6442 else | |
6443 #assume ordinary cross tools, or native build. | |
6444 lt_cv_to_tool_file_cmd=func_convert_file_noop | |
6445 case $host in | |
6446 *-*-mingw* ) | |
6447 case $build in | |
6448 *-*-mingw* ) # actually msys | |
6449 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
6450 ;; | |
6451 esac | |
6452 ;; | |
6453 esac | |
6454 | |
6455 fi | |
6456 | |
6457 to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
6459 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
6460 | |
6461 | |
6462 | |
6463 | |
6464 | |
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
6466 $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
6467 if ${lt_cv_ld_reload_flag+:} false; then : | |
6468 $as_echo_n "(cached) " >&6 | |
6469 else | |
6470 lt_cv_ld_reload_flag='-r' | |
6471 fi | |
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
6473 $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
6474 reload_flag=$lt_cv_ld_reload_flag | |
6475 case $reload_flag in | |
6476 "" | " "*) ;; | |
6477 *) reload_flag=" $reload_flag" ;; | |
6478 esac | |
6479 reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6480 case $host_os in | |
6481 cygwin* | mingw* | pw32* | cegcc*) | |
6482 if test "$GCC" != yes; then | |
6483 reload_cmds=false | |
6484 fi | |
6485 ;; | |
6486 darwin*) | |
6487 if test "$GCC" = yes; then | |
6488 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
6489 else | |
6490 reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6491 fi | |
6492 ;; | |
6493 esac | |
6494 | |
6495 | |
6496 | |
6497 | |
6498 | |
6499 | |
6500 | |
6501 | |
6502 | |
6503 if test -n "$ac_tool_prefix"; then | |
6504 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
6505 set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6507 $as_echo_n "checking for $ac_word... " >&6; } | |
6508 if ${ac_cv_prog_OBJDUMP+:} false; then : | |
6509 $as_echo_n "(cached) " >&6 | |
6510 else | |
6511 if test -n "$OBJDUMP"; then | |
6512 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
6513 else | |
6514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6515 for as_dir in $PATH | |
6516 do | |
6517 IFS=$as_save_IFS | |
6518 test -z "$as_dir" && as_dir=. | |
6519 for ac_exec_ext in '' $ac_executable_extensions; do | |
6520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6521 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
6522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6523 break 2 | |
6524 fi | |
6525 done | |
6526 done | |
6527 IFS=$as_save_IFS | |
6528 | |
6529 fi | |
6530 fi | |
6531 OBJDUMP=$ac_cv_prog_OBJDUMP | |
6532 if test -n "$OBJDUMP"; then | |
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
6534 $as_echo "$OBJDUMP" >&6; } | |
6535 else | |
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6537 $as_echo "no" >&6; } | |
6538 fi | |
6539 | |
6540 | |
6541 fi | |
6542 if test -z "$ac_cv_prog_OBJDUMP"; then | |
6543 ac_ct_OBJDUMP=$OBJDUMP | |
6544 # Extract the first word of "objdump", so it can be a program name with args. | |
6545 set dummy objdump; ac_word=$2 | |
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6547 $as_echo_n "checking for $ac_word... " >&6; } | |
6548 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
6549 $as_echo_n "(cached) " >&6 | |
6550 else | |
6551 if test -n "$ac_ct_OBJDUMP"; then | |
6552 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
6553 else | |
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6555 for as_dir in $PATH | |
6556 do | |
6557 IFS=$as_save_IFS | |
6558 test -z "$as_dir" && as_dir=. | |
6559 for ac_exec_ext in '' $ac_executable_extensions; do | |
6560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6561 ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
6562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6563 break 2 | |
6564 fi | |
6565 done | |
6566 done | |
6567 IFS=$as_save_IFS | |
6568 | |
6569 fi | |
6570 fi | |
6571 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
6572 if test -n "$ac_ct_OBJDUMP"; then | |
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
6574 $as_echo "$ac_ct_OBJDUMP" >&6; } | |
6575 else | |
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6577 $as_echo "no" >&6; } | |
6578 fi | |
6579 | |
6580 if test "x$ac_ct_OBJDUMP" = x; then | |
6581 OBJDUMP="false" | |
6582 else | |
6583 case $cross_compiling:$ac_tool_warned in | |
6584 yes:) | |
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6587 ac_tool_warned=yes ;; | |
6588 esac | |
6589 OBJDUMP=$ac_ct_OBJDUMP | |
6590 fi | |
6591 else | |
6592 OBJDUMP="$ac_cv_prog_OBJDUMP" | |
6593 fi | |
6594 | |
6595 test -z "$OBJDUMP" && OBJDUMP=objdump | |
6596 | |
6597 | |
6598 | |
6599 | |
6600 | |
6601 | |
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | |
6603 $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
6604 if ${lt_cv_deplibs_check_method+:} false; then : | |
6605 $as_echo_n "(cached) " >&6 | |
6606 else | |
6607 lt_cv_file_magic_cmd='$MAGIC_CMD' | |
6608 lt_cv_file_magic_test_file= | |
6609 lt_cv_deplibs_check_method='unknown' | |
6610 # Need to set the preceding variable on all platforms that support | |
6611 # interlibrary dependencies. | |
6612 # 'none' -- dependencies not supported. | |
6613 # `unknown' -- same as none, but documents that we really don't know. | |
6614 # 'pass_all' -- all dependencies passed with no checks. | |
6615 # 'test_compile' -- check by making test program. | |
6616 # 'file_magic [[regex]]' -- check by looking for files in library path | |
6617 # which responds to the $file_magic_cmd with a given extended regex. | |
6618 # If you have `file' or equivalent on your system and you're not sure | |
6619 # whether `pass_all' will *always* work, you probably want this one. | |
6620 | |
6621 case $host_os in | |
6622 aix[4-9]*) | |
6623 lt_cv_deplibs_check_method=pass_all | |
6624 ;; | |
6625 | |
6626 beos*) | |
6627 lt_cv_deplibs_check_method=pass_all | |
6628 ;; | |
6629 | |
6630 bsdi[45]*) | |
6631 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6632 lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6633 lt_cv_file_magic_test_file=/shlib/libc.so | |
6634 ;; | |
6635 | |
6636 cygwin*) | |
6637 # func_win32_libid is a shell function defined in ltmain.sh | |
6638 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6639 lt_cv_file_magic_cmd='func_win32_libid' | |
6640 ;; | |
6641 | |
6642 mingw* | pw32*) | |
6643 # Base MSYS/MinGW do not provide the 'file' command needed by | |
6644 # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6645 # unless we find 'file', for example because we are cross-compiling. | |
6646 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
6647 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
6648 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6649 lt_cv_file_magic_cmd='func_win32_libid' | |
6650 else | |
6651 # Keep this pattern in sync with the one in func_win32_libid. | |
6652 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
6653 lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6654 fi | |
6655 ;; | |
6656 | |
6657 cegcc*) | |
6658 # use the weaker test based on 'objdump'. See mingw*. | |
6659 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6660 lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6661 ;; | |
6662 | |
6663 darwin* | rhapsody*) | |
6664 lt_cv_deplibs_check_method=pass_all | |
6665 ;; | |
6666 | |
6667 freebsd* | dragonfly*) | |
6668 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6669 case $host_cpu in | |
6670 i*86 ) | |
6671 # Not sure whether the presence of OpenBSD here was a mistake. | |
6672 # Let's accept both of them until this is cleared up. | |
6673 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6674 lt_cv_file_magic_cmd=/usr/bin/file | |
6675 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6676 ;; | |
6677 esac | |
6678 else | |
6679 lt_cv_deplibs_check_method=pass_all | |
6680 fi | |
6681 ;; | |
6682 | |
6683 haiku*) | |
6684 lt_cv_deplibs_check_method=pass_all | |
6685 ;; | |
6686 | |
6687 hpux10.20* | hpux11*) | |
6688 lt_cv_file_magic_cmd=/usr/bin/file | |
6689 case $host_cpu in | |
6690 ia64*) | |
6691 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6692 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6693 ;; | |
6694 hppa*64*) | |
6695 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]' | |
6696 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6697 ;; | |
6698 *) | |
6699 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
6700 lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6701 ;; | |
6702 esac | |
6703 ;; | |
6704 | |
6705 interix[3-9]*) | |
6706 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6707 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6708 ;; | |
6709 | |
6710 irix5* | irix6* | nonstopux*) | |
6711 case $LD in | |
6712 *-32|*"-32 ") libmagic=32-bit;; | |
6713 *-n32|*"-n32 ") libmagic=N32;; | |
6714 *-64|*"-64 ") libmagic=64-bit;; | |
6715 *) libmagic=never-match;; | |
6716 esac | |
6717 lt_cv_deplibs_check_method=pass_all | |
6718 ;; | |
6719 | |
6720 # This must be glibc/ELF. | |
6721 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
6722 lt_cv_deplibs_check_method=pass_all | |
6723 ;; | |
6724 | |
6725 netbsd* | netbsdelf*-gnu) | |
6726 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6727 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6728 else | |
6729 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6730 fi | |
6731 ;; | |
6732 | |
6733 newos6*) | |
6734 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6735 lt_cv_file_magic_cmd=/usr/bin/file | |
6736 lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6737 ;; | |
6738 | |
6739 *nto* | *qnx*) | |
6740 lt_cv_deplibs_check_method=pass_all | |
6741 ;; | |
6742 | |
6743 openbsd*) | |
6744 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6745 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6746 else | |
6747 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6748 fi | |
6749 ;; | |
6750 | |
6751 osf3* | osf4* | osf5*) | |
6752 lt_cv_deplibs_check_method=pass_all | |
6753 ;; | |
6754 | |
6755 rdos*) | |
6756 lt_cv_deplibs_check_method=pass_all | |
6757 ;; | |
6758 | |
6759 solaris*) | |
6760 lt_cv_deplibs_check_method=pass_all | |
6761 ;; | |
6762 | |
6763 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
6764 lt_cv_deplibs_check_method=pass_all | |
6765 ;; | |
6766 | |
6767 sysv4 | sysv4.3*) | |
6768 case $host_vendor in | |
6769 motorola) | |
6770 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]' | |
6771 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6772 ;; | |
6773 ncr) | |
6774 lt_cv_deplibs_check_method=pass_all | |
6775 ;; | |
6776 sequent) | |
6777 lt_cv_file_magic_cmd='/bin/file' | |
6778 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6779 ;; | |
6780 sni) | |
6781 lt_cv_file_magic_cmd='/bin/file' | |
6782 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6783 lt_cv_file_magic_test_file=/lib/libc.so | |
6784 ;; | |
6785 siemens) | |
6786 lt_cv_deplibs_check_method=pass_all | |
6787 ;; | |
6788 pc) | |
6789 lt_cv_deplibs_check_method=pass_all | |
6790 ;; | |
6791 esac | |
6792 ;; | |
6793 | |
6794 tpf*) | |
6795 lt_cv_deplibs_check_method=pass_all | |
6796 ;; | |
6797 esac | |
6798 | |
6799 fi | |
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
6801 $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
6802 | |
6803 file_magic_glob= | |
6804 want_nocaseglob=no | |
6805 if test "$build" = "$host"; then | |
6806 case $host_os in | |
6807 mingw* | pw32*) | |
6808 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
6809 want_nocaseglob=yes | |
6810 else | |
6811 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
6812 fi | |
6813 ;; | |
6814 esac | |
6815 fi | |
6816 | |
6817 file_magic_cmd=$lt_cv_file_magic_cmd | |
6818 deplibs_check_method=$lt_cv_deplibs_check_method | |
6819 test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
6820 | |
6821 | |
6822 | |
6823 | |
6824 | |
6825 | |
6826 | |
6827 | |
6828 | |
6829 | |
6830 | |
6831 | |
6832 | |
6833 | |
6834 | |
6835 | |
6836 | |
6837 | |
6838 | |
6839 | |
6840 | |
6841 | |
6842 if test -n "$ac_tool_prefix"; then | |
6843 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
6844 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6846 $as_echo_n "checking for $ac_word... " >&6; } | |
6847 if ${ac_cv_prog_DLLTOOL+:} false; then : | |
6848 $as_echo_n "(cached) " >&6 | |
6849 else | |
6850 if test -n "$DLLTOOL"; then | |
6851 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
6852 else | |
6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6854 for as_dir in $PATH | |
6855 do | |
6856 IFS=$as_save_IFS | |
6857 test -z "$as_dir" && as_dir=. | |
6858 for ac_exec_ext in '' $ac_executable_extensions; do | |
6859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6860 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
6861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6862 break 2 | |
6863 fi | |
6864 done | |
6865 done | |
6866 IFS=$as_save_IFS | |
6867 | |
6868 fi | |
6869 fi | |
6870 DLLTOOL=$ac_cv_prog_DLLTOOL | |
6871 if test -n "$DLLTOOL"; then | |
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
6873 $as_echo "$DLLTOOL" >&6; } | |
6874 else | |
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6876 $as_echo "no" >&6; } | |
6877 fi | |
6878 | |
6879 | |
6880 fi | |
6881 if test -z "$ac_cv_prog_DLLTOOL"; then | |
6882 ac_ct_DLLTOOL=$DLLTOOL | |
6883 # Extract the first word of "dlltool", so it can be a program name with args. | |
6884 set dummy dlltool; ac_word=$2 | |
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6886 $as_echo_n "checking for $ac_word... " >&6; } | |
6887 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
6888 $as_echo_n "(cached) " >&6 | |
6889 else | |
6890 if test -n "$ac_ct_DLLTOOL"; then | |
6891 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
6892 else | |
6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6894 for as_dir in $PATH | |
6895 do | |
6896 IFS=$as_save_IFS | |
6897 test -z "$as_dir" && as_dir=. | |
6898 for ac_exec_ext in '' $ac_executable_extensions; do | |
6899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6900 ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
6901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6902 break 2 | |
6903 fi | |
6904 done | |
6905 done | |
6906 IFS=$as_save_IFS | |
6907 | |
6908 fi | |
6909 fi | |
6910 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
6911 if test -n "$ac_ct_DLLTOOL"; then | |
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
6913 $as_echo "$ac_ct_DLLTOOL" >&6; } | |
6914 else | |
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6916 $as_echo "no" >&6; } | |
6917 fi | |
6918 | |
6919 if test "x$ac_ct_DLLTOOL" = x; then | |
6920 DLLTOOL="false" | |
6921 else | |
6922 case $cross_compiling:$ac_tool_warned in | |
6923 yes:) | |
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6926 ac_tool_warned=yes ;; | |
6927 esac | |
6928 DLLTOOL=$ac_ct_DLLTOOL | |
6929 fi | |
6930 else | |
6931 DLLTOOL="$ac_cv_prog_DLLTOOL" | |
6932 fi | |
6933 | |
6934 test -z "$DLLTOOL" && DLLTOOL=dlltool | |
6935 | |
6936 | |
6937 | |
6938 | |
6939 | |
6940 | |
6941 | |
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | |
6943 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
6944 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
6945 $as_echo_n "(cached) " >&6 | |
6946 else | |
6947 lt_cv_sharedlib_from_linklib_cmd='unknown' | |
6948 | |
6949 case $host_os in | |
6950 cygwin* | mingw* | pw32* | cegcc*) | |
6951 # two different shell functions defined in ltmain.sh | |
6952 # decide which to use based on capabilities of $DLLTOOL | |
6953 case `$DLLTOOL --help 2>&1` in | |
6954 *--identify-strict*) | |
6955 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
6956 ;; | |
6957 *) | |
6958 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
6959 ;; | |
6960 esac | |
6961 ;; | |
6962 *) | |
6963 # fallback: assume linklib IS sharedlib | |
6964 lt_cv_sharedlib_from_linklib_cmd="$ECHO" | |
6965 ;; | |
6966 esac | |
6967 | |
6968 fi | |
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | |
6970 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
6971 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
6972 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
6973 | |
6974 | |
6975 | |
6976 | |
6977 | |
6978 | |
6979 | |
6980 if test -n "$ac_tool_prefix"; then | |
6981 for ac_prog in ar | |
6982 do | |
6983 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6984 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6986 $as_echo_n "checking for $ac_word... " >&6; } | |
6987 if ${ac_cv_prog_AR+:} false; then : | |
6988 $as_echo_n "(cached) " >&6 | |
6989 else | |
6990 if test -n "$AR"; then | |
6991 ac_cv_prog_AR="$AR" # Let the user override the test. | |
6992 else | |
6993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6994 for as_dir in $PATH | |
6995 do | |
6996 IFS=$as_save_IFS | |
6997 test -z "$as_dir" && as_dir=. | |
6998 for ac_exec_ext in '' $ac_executable_extensions; do | |
6999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7000 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
7001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7002 break 2 | |
7003 fi | |
7004 done | |
7005 done | |
7006 IFS=$as_save_IFS | |
7007 | |
7008 fi | |
7009 fi | |
7010 AR=$ac_cv_prog_AR | |
7011 if test -n "$AR"; then | |
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
7013 $as_echo "$AR" >&6; } | |
7014 else | |
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7016 $as_echo "no" >&6; } | |
7017 fi | |
7018 | |
7019 | |
7020 test -n "$AR" && break | |
7021 done | |
7022 fi | |
7023 if test -z "$AR"; then | |
7024 ac_ct_AR=$AR | |
7025 for ac_prog in ar | |
7026 do | |
7027 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7028 set dummy $ac_prog; ac_word=$2 | |
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7030 $as_echo_n "checking for $ac_word... " >&6; } | |
7031 if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
7032 $as_echo_n "(cached) " >&6 | |
7033 else | |
7034 if test -n "$ac_ct_AR"; then | |
7035 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
7036 else | |
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7038 for as_dir in $PATH | |
7039 do | |
7040 IFS=$as_save_IFS | |
7041 test -z "$as_dir" && as_dir=. | |
7042 for ac_exec_ext in '' $ac_executable_extensions; do | |
7043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7044 ac_cv_prog_ac_ct_AR="$ac_prog" | |
7045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7046 break 2 | |
7047 fi | |
7048 done | |
7049 done | |
7050 IFS=$as_save_IFS | |
7051 | |
7052 fi | |
7053 fi | |
7054 ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
7055 if test -n "$ac_ct_AR"; then | |
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
7057 $as_echo "$ac_ct_AR" >&6; } | |
7058 else | |
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7060 $as_echo "no" >&6; } | |
7061 fi | |
7062 | |
7063 | |
7064 test -n "$ac_ct_AR" && break | |
7065 done | |
7066 | |
7067 if test "x$ac_ct_AR" = x; then | |
7068 AR="false" | |
7069 else | |
7070 case $cross_compiling:$ac_tool_warned in | |
7071 yes:) | |
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7074 ac_tool_warned=yes ;; | |
7075 esac | |
7076 AR=$ac_ct_AR | |
7077 fi | |
7078 fi | |
7079 | |
7080 : ${AR=ar} | |
7081 : ${AR_FLAGS=cru} | |
7082 | |
7083 | |
7084 | |
7085 | |
7086 | |
7087 | |
7088 | |
7089 | |
7090 | |
7091 | |
7092 | |
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
7094 $as_echo_n "checking for archiver @FILE support... " >&6; } | |
7095 if ${lt_cv_ar_at_file+:} false; then : | |
7096 $as_echo_n "(cached) " >&6 | |
7097 else | |
7098 lt_cv_ar_at_file=no | |
7099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7100 /* end confdefs.h. */ | |
7101 | |
7102 int | |
7103 main () | |
7104 { | |
7105 | |
7106 ; | |
7107 return 0; | |
7108 } | |
7109 _ACEOF | |
7110 if ac_fn_c_try_compile "$LINENO"; then : | |
7111 echo conftest.$ac_objext > conftest.lst | |
7112 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
7113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
7114 (eval $lt_ar_try) 2>&5 | |
7115 ac_status=$? | |
7116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7117 test $ac_status = 0; } | |
7118 if test "$ac_status" -eq 0; then | |
7119 # Ensure the archiver fails upon bogus file names. | |
7120 rm -f conftest.$ac_objext libconftest.a | |
7121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
7122 (eval $lt_ar_try) 2>&5 | |
7123 ac_status=$? | |
7124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7125 test $ac_status = 0; } | |
7126 if test "$ac_status" -ne 0; then | |
7127 lt_cv_ar_at_file=@ | |
7128 fi | |
7129 fi | |
7130 rm -f conftest.* libconftest.a | |
7131 | |
7132 fi | |
7133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7134 | |
7135 fi | |
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
7137 $as_echo "$lt_cv_ar_at_file" >&6; } | |
7138 | |
7139 if test "x$lt_cv_ar_at_file" = xno; then | |
7140 archiver_list_spec= | |
7141 else | |
7142 archiver_list_spec=$lt_cv_ar_at_file | |
7143 fi | |
7144 | |
7145 | |
7146 | |
7147 | |
7148 | |
7149 | |
7150 | |
7151 if test -n "$ac_tool_prefix"; then | |
7152 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
7153 set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7155 $as_echo_n "checking for $ac_word... " >&6; } | |
7156 if ${ac_cv_prog_STRIP+:} false; then : | |
7157 $as_echo_n "(cached) " >&6 | |
7158 else | |
7159 if test -n "$STRIP"; then | |
7160 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
7161 else | |
7162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7163 for as_dir in $PATH | |
7164 do | |
7165 IFS=$as_save_IFS | |
7166 test -z "$as_dir" && as_dir=. | |
7167 for ac_exec_ext in '' $ac_executable_extensions; do | |
7168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7169 ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
7170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7171 break 2 | |
7172 fi | |
7173 done | |
7174 done | |
7175 IFS=$as_save_IFS | |
7176 | |
7177 fi | |
7178 fi | |
7179 STRIP=$ac_cv_prog_STRIP | |
7180 if test -n "$STRIP"; then | |
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
7182 $as_echo "$STRIP" >&6; } | |
7183 else | |
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7185 $as_echo "no" >&6; } | |
7186 fi | |
7187 | |
7188 | |
7189 fi | |
7190 if test -z "$ac_cv_prog_STRIP"; then | |
7191 ac_ct_STRIP=$STRIP | |
7192 # Extract the first word of "strip", so it can be a program name with args. | |
7193 set dummy strip; ac_word=$2 | |
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7195 $as_echo_n "checking for $ac_word... " >&6; } | |
7196 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
7197 $as_echo_n "(cached) " >&6 | |
7198 else | |
7199 if test -n "$ac_ct_STRIP"; then | |
7200 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
7201 else | |
7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7203 for as_dir in $PATH | |
7204 do | |
7205 IFS=$as_save_IFS | |
7206 test -z "$as_dir" && as_dir=. | |
7207 for ac_exec_ext in '' $ac_executable_extensions; do | |
7208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7209 ac_cv_prog_ac_ct_STRIP="strip" | |
7210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7211 break 2 | |
7212 fi | |
7213 done | |
7214 done | |
7215 IFS=$as_save_IFS | |
7216 | |
7217 fi | |
7218 fi | |
7219 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
7220 if test -n "$ac_ct_STRIP"; then | |
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
7222 $as_echo "$ac_ct_STRIP" >&6; } | |
7223 else | |
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7225 $as_echo "no" >&6; } | |
7226 fi | |
7227 | |
7228 if test "x$ac_ct_STRIP" = x; then | |
7229 STRIP=":" | |
7230 else | |
7231 case $cross_compiling:$ac_tool_warned in | |
7232 yes:) | |
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7235 ac_tool_warned=yes ;; | |
7236 esac | |
7237 STRIP=$ac_ct_STRIP | |
7238 fi | |
7239 else | |
7240 STRIP="$ac_cv_prog_STRIP" | |
7241 fi | |
7242 | |
7243 test -z "$STRIP" && STRIP=: | |
7244 | |
7245 | |
7246 | |
7247 | |
7248 | |
7249 | |
7250 if test -n "$ac_tool_prefix"; then | |
7251 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
7252 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7254 $as_echo_n "checking for $ac_word... " >&6; } | |
7255 if ${ac_cv_prog_RANLIB+:} false; then : | |
7256 $as_echo_n "(cached) " >&6 | |
7257 else | |
7258 if test -n "$RANLIB"; then | |
7259 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
7260 else | |
7261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7262 for as_dir in $PATH | |
7263 do | |
7264 IFS=$as_save_IFS | |
7265 test -z "$as_dir" && as_dir=. | |
7266 for ac_exec_ext in '' $ac_executable_extensions; do | |
7267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7268 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
7269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7270 break 2 | |
7271 fi | |
7272 done | |
7273 done | |
7274 IFS=$as_save_IFS | |
7275 | |
7276 fi | |
7277 fi | |
7278 RANLIB=$ac_cv_prog_RANLIB | |
7279 if test -n "$RANLIB"; then | |
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
7281 $as_echo "$RANLIB" >&6; } | |
7282 else | |
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7284 $as_echo "no" >&6; } | |
7285 fi | |
7286 | |
7287 | |
7288 fi | |
7289 if test -z "$ac_cv_prog_RANLIB"; then | |
7290 ac_ct_RANLIB=$RANLIB | |
7291 # Extract the first word of "ranlib", so it can be a program name with args. | |
7292 set dummy ranlib; ac_word=$2 | |
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7294 $as_echo_n "checking for $ac_word... " >&6; } | |
7295 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
7296 $as_echo_n "(cached) " >&6 | |
7297 else | |
7298 if test -n "$ac_ct_RANLIB"; then | |
7299 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
7300 else | |
7301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7302 for as_dir in $PATH | |
7303 do | |
7304 IFS=$as_save_IFS | |
7305 test -z "$as_dir" && as_dir=. | |
7306 for ac_exec_ext in '' $ac_executable_extensions; do | |
7307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7308 ac_cv_prog_ac_ct_RANLIB="ranlib" | |
7309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7310 break 2 | |
7311 fi | |
7312 done | |
7313 done | |
7314 IFS=$as_save_IFS | |
7315 | |
7316 fi | |
7317 fi | |
7318 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
7319 if test -n "$ac_ct_RANLIB"; then | |
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
7321 $as_echo "$ac_ct_RANLIB" >&6; } | |
7322 else | |
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7324 $as_echo "no" >&6; } | |
7325 fi | |
7326 | |
7327 if test "x$ac_ct_RANLIB" = x; then | |
7328 RANLIB=":" | |
7329 else | |
7330 case $cross_compiling:$ac_tool_warned in | |
7331 yes:) | |
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7334 ac_tool_warned=yes ;; | |
7335 esac | |
7336 RANLIB=$ac_ct_RANLIB | |
7337 fi | |
7338 else | |
7339 RANLIB="$ac_cv_prog_RANLIB" | |
7340 fi | |
7341 | |
7342 test -z "$RANLIB" && RANLIB=: | |
7343 | |
7344 | |
7345 | |
7346 | |
7347 | |
7348 | |
7349 # Determine commands to create old-style static archives. | |
7350 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
7351 old_postinstall_cmds='chmod 644 $oldlib' | |
7352 old_postuninstall_cmds= | |
7353 | |
7354 if test -n "$RANLIB"; then | |
7355 case $host_os in | |
7356 openbsd*) | |
7357 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" | |
7358 ;; | |
7359 *) | |
7360 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | |
7361 ;; | |
7362 esac | |
7363 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" | |
7364 fi | |
7365 | |
7366 case $host_os in | |
7367 darwin*) | |
7368 lock_old_archive_extraction=yes ;; | |
7369 *) | |
7370 lock_old_archive_extraction=no ;; | |
7371 esac | |
7372 | |
7373 | |
7374 | |
7375 | |
7376 | |
7377 | |
7378 | |
7379 | |
7380 | |
7381 | |
7382 | |
7383 | |
7384 | |
7385 | |
7386 | |
7387 | |
7388 | |
7389 | |
7390 | |
7391 | |
7392 | |
7393 | |
7394 | |
7395 | |
7396 | |
7397 | |
7398 | |
7399 | |
7400 | |
7401 | |
7402 | |
7403 | |
7404 | |
7405 | |
7406 | |
7407 | |
7408 | |
7409 | |
7410 | |
7411 # If no C compiler was specified, use CC. | |
7412 LTCC=${LTCC-"$CC"} | |
7413 | |
7414 # If no C compiler flags were specified, use CFLAGS. | |
7415 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7416 | |
7417 # Allow CC to be a program name with arguments. | |
7418 compiler=$CC | |
7419 | |
7420 | |
7421 # Check for command to grab the raw symbol name followed by C symbol from nm. | |
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
7423 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
7424 if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
7425 $as_echo_n "(cached) " >&6 | |
7426 else | |
7427 | |
7428 # These are sane defaults that work on at least a few old systems. | |
7429 # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
7430 | |
7431 # Character class describing NM global symbol codes. | |
7432 symcode='[BCDEGRST]' | |
7433 | |
7434 # Regexp to match symbols that can be accessed directly from C. | |
7435 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
7436 | |
7437 # Define system-specific variables. | |
7438 case $host_os in | |
7439 aix*) | |
7440 symcode='[BCDT]' | |
7441 ;; | |
7442 cygwin* | mingw* | pw32* | cegcc*) | |
7443 symcode='[ABCDGISTW]' | |
7444 ;; | |
7445 hpux*) | |
7446 if test "$host_cpu" = ia64; then | |
7447 symcode='[ABCDEGRST]' | |
7448 fi | |
7449 ;; | |
7450 irix* | nonstopux*) | |
7451 symcode='[BCDEGRST]' | |
7452 ;; | |
7453 osf*) | |
7454 symcode='[BCDEGQRST]' | |
7455 ;; | |
7456 solaris*) | |
7457 symcode='[BDRT]' | |
7458 ;; | |
7459 sco3.2v5*) | |
7460 symcode='[DT]' | |
7461 ;; | |
7462 sysv4.2uw2*) | |
7463 symcode='[DT]' | |
7464 ;; | |
7465 sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7466 symcode='[ABDT]' | |
7467 ;; | |
7468 sysv4) | |
7469 symcode='[DFNSTU]' | |
7470 ;; | |
7471 esac | |
7472 | |
7473 # If we're using GNU nm, then use its standard symbol codes. | |
7474 case `$NM -V 2>&1` in | |
7475 *GNU* | *'with BFD'*) | |
7476 symcode='[ABCDGIRSTW]' ;; | |
7477 esac | |
7478 | |
7479 # Transform an extracted symbol line into a proper C declaration. | |
7480 # Some systems (esp. on ia64) link data and code symbols differently, | |
7481 # so use this general approach. | |
7482 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
7483 | |
7484 # Transform an extracted symbol line into symbol name and symbol address | |
7485 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
7486 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'" | |
7487 | |
7488 # Handle CRLF in mingw tool chain | |
7489 opt_cr= | |
7490 case $build_os in | |
7491 mingw*) | |
7492 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7493 ;; | |
7494 esac | |
7495 | |
7496 # Try without a prefix underscore, then with it. | |
7497 for ac_symprfx in "" "_"; do | |
7498 | |
7499 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
7500 symxfrm="\\1 $ac_symprfx\\2 \\2" | |
7501 | |
7502 # Write the raw and C identifiers. | |
7503 if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7504 # Fake it for dumpbin and say T for any non-static function | |
7505 # and D for any global variable. | |
7506 # Also find C++ and __fastcall symbols from MSVC++, | |
7507 # which start with @ or ?. | |
7508 lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7509 " {last_section=section; section=\$ 3};"\ | |
7510 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | |
7511 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
7512 " \$ 0!~/External *\|/{next};"\ | |
7513 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7514 " {if(hide[section]) next};"\ | |
7515 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
7516 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
7517 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
7518 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
7519 " ' prfx=^$ac_symprfx" | |
7520 else | |
7521 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7522 fi | |
7523 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | |
7524 | |
7525 # Check to see that the pipe works correctly. | |
7526 pipe_works=no | |
7527 | |
7528 rm -f conftest* | |
7529 cat > conftest.$ac_ext <<_LT_EOF | |
7530 #ifdef __cplusplus | |
7531 extern "C" { | |
7532 #endif | |
7533 char nm_test_var; | |
7534 void nm_test_func(void); | |
7535 void nm_test_func(void){} | |
7536 #ifdef __cplusplus | |
7537 } | |
7538 #endif | |
7539 int main(){nm_test_var='a';nm_test_func();return(0);} | |
7540 _LT_EOF | |
7541 | |
7542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7543 (eval $ac_compile) 2>&5 | |
7544 ac_status=$? | |
7545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7546 test $ac_status = 0; }; then | |
7547 # Now try to grab the symbols. | |
7548 nlist=conftest.nm | |
7549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
7550 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
7551 ac_status=$? | |
7552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7553 test $ac_status = 0; } && test -s "$nlist"; then | |
7554 # Try sorting and uniquifying the output. | |
7555 if sort "$nlist" | uniq > "$nlist"T; then | |
7556 mv -f "$nlist"T "$nlist" | |
7557 else | |
7558 rm -f "$nlist"T | |
7559 fi | |
7560 | |
7561 # Make sure that we snagged all the symbols we need. | |
7562 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
7563 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7564 cat <<_LT_EOF > conftest.$ac_ext | |
7565 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | |
7566 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | |
7567 /* DATA imports from DLLs on WIN32 con't be const, because runtime | |
7568 relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
7569 # define LT_DLSYM_CONST | |
7570 #elif defined(__osf__) | |
7571 /* This system does not cope well with relocations in const data. */ | |
7572 # define LT_DLSYM_CONST | |
7573 #else | |
7574 # define LT_DLSYM_CONST const | |
7575 #endif | |
7576 | |
7577 #ifdef __cplusplus | |
7578 extern "C" { | |
7579 #endif | |
7580 | |
7581 _LT_EOF | |
7582 # Now generate the symbol file. | |
7583 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
7584 | |
7585 cat <<_LT_EOF >> conftest.$ac_ext | |
7586 | |
7587 /* The mapping between symbol names and symbols. */ | |
7588 LT_DLSYM_CONST struct { | |
7589 const char *name; | |
7590 void *address; | |
7591 } | |
7592 lt__PROGRAM__LTX_preloaded_symbols[] = | |
7593 { | |
7594 { "@PROGRAM@", (void *) 0 }, | |
7595 _LT_EOF | |
7596 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7597 cat <<\_LT_EOF >> conftest.$ac_ext | |
7598 {0, (void *) 0} | |
7599 }; | |
7600 | |
7601 /* This works around a problem in FreeBSD linker */ | |
7602 #ifdef FREEBSD_WORKAROUND | |
7603 static const void *lt_preloaded_setup() { | |
7604 return lt__PROGRAM__LTX_preloaded_symbols; | |
7605 } | |
7606 #endif | |
7607 | |
7608 #ifdef __cplusplus | |
7609 } | |
7610 #endif | |
7611 _LT_EOF | |
7612 # Now try linking the two files. | |
7613 mv conftest.$ac_objext conftstm.$ac_objext | |
7614 lt_globsym_save_LIBS=$LIBS | |
7615 lt_globsym_save_CFLAGS=$CFLAGS | |
7616 LIBS="conftstm.$ac_objext" | |
7617 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
7618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
7619 (eval $ac_link) 2>&5 | |
7620 ac_status=$? | |
7621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7622 test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7623 pipe_works=yes | |
7624 fi | |
7625 LIBS=$lt_globsym_save_LIBS | |
7626 CFLAGS=$lt_globsym_save_CFLAGS | |
7627 else | |
7628 echo "cannot find nm_test_func in $nlist" >&5 | |
7629 fi | |
7630 else | |
7631 echo "cannot find nm_test_var in $nlist" >&5 | |
7632 fi | |
7633 else | |
7634 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7635 fi | |
7636 else | |
7637 echo "$progname: failed program was:" >&5 | |
7638 cat conftest.$ac_ext >&5 | |
7639 fi | |
7640 rm -rf conftest* conftst* | |
7641 | |
7642 # Do not use the global_symbol_pipe unless it works. | |
7643 if test "$pipe_works" = yes; then | |
7644 break | |
7645 else | |
7646 lt_cv_sys_global_symbol_pipe= | |
7647 fi | |
7648 done | |
7649 | |
7650 fi | |
7651 | |
7652 if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
7653 lt_cv_sys_global_symbol_to_cdecl= | |
7654 fi | |
7655 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
7657 $as_echo "failed" >&6; } | |
7658 else | |
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
7660 $as_echo "ok" >&6; } | |
7661 fi | |
7662 | |
7663 # Response file support. | |
7664 if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7665 nm_file_list_spec='@' | |
7666 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
7667 nm_file_list_spec='@' | |
7668 fi | |
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 | |
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | |
7697 $as_echo_n "checking for sysroot... " >&6; } | |
7698 | |
7699 # Check whether --with-sysroot was given. | |
7700 if test "${with_sysroot+set}" = set; then : | |
7701 withval=$with_sysroot; | |
7702 else | |
7703 with_sysroot=no | |
7704 fi | |
7705 | |
7706 | |
7707 lt_sysroot= | |
7708 case ${with_sysroot} in #( | |
7709 yes) | |
7710 if test "$GCC" = yes; then | |
7711 lt_sysroot=`$CC --print-sysroot 2>/dev/null` | |
7712 fi | |
7713 ;; #( | |
7714 /*) | |
7715 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
7716 ;; #( | |
7717 no|'') | |
7718 ;; #( | |
7719 *) | |
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 | |
7721 $as_echo "${with_sysroot}" >&6; } | |
7722 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | |
7723 ;; | |
7724 esac | |
7725 | |
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | |
7727 $as_echo "${lt_sysroot:-no}" >&6; } | |
7728 | |
7729 | |
7730 | |
7731 | |
7732 | |
7733 # Check whether --enable-libtool-lock was given. | |
7734 if test "${enable_libtool_lock+set}" = set; then : | |
7735 enableval=$enable_libtool_lock; | |
7736 fi | |
7737 | |
7738 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
7739 | |
7740 # Some flags need to be propagated to the compiler or linker for good | |
7741 # libtool support. | |
7742 case $host in | |
7743 ia64-*-hpux*) | |
7744 # Find out which ABI we are using. | |
7745 echo 'int i;' > conftest.$ac_ext | |
7746 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7747 (eval $ac_compile) 2>&5 | |
7748 ac_status=$? | |
7749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7750 test $ac_status = 0; }; then | |
7751 case `/usr/bin/file conftest.$ac_objext` in | |
7752 *ELF-32*) | |
7753 HPUX_IA64_MODE="32" | |
7754 ;; | |
7755 *ELF-64*) | |
7756 HPUX_IA64_MODE="64" | |
7757 ;; | |
7758 esac | |
7759 fi | |
7760 rm -rf conftest* | |
7761 ;; | |
7762 *-*-irix6*) | |
7763 # Find out which ABI we are using. | |
7764 echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
7765 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7766 (eval $ac_compile) 2>&5 | |
7767 ac_status=$? | |
7768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7769 test $ac_status = 0; }; then | |
7770 if test "$lt_cv_prog_gnu_ld" = yes; then | |
7771 case `/usr/bin/file conftest.$ac_objext` in | |
7772 *32-bit*) | |
7773 LD="${LD-ld} -melf32bsmip" | |
7774 ;; | |
7775 *N32*) | |
7776 LD="${LD-ld} -melf32bmipn32" | |
7777 ;; | |
7778 *64-bit*) | |
7779 LD="${LD-ld} -melf64bmip" | |
7780 ;; | |
7781 esac | |
7782 else | |
7783 case `/usr/bin/file conftest.$ac_objext` in | |
7784 *32-bit*) | |
7785 LD="${LD-ld} -32" | |
7786 ;; | |
7787 *N32*) | |
7788 LD="${LD-ld} -n32" | |
7789 ;; | |
7790 *64-bit*) | |
7791 LD="${LD-ld} -64" | |
7792 ;; | |
7793 esac | |
7794 fi | |
7795 fi | |
7796 rm -rf conftest* | |
7797 ;; | |
7798 | |
7799 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
7800 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
7801 # Find out which ABI we are using. | |
7802 echo 'int i;' > conftest.$ac_ext | |
7803 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7804 (eval $ac_compile) 2>&5 | |
7805 ac_status=$? | |
7806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7807 test $ac_status = 0; }; then | |
7808 case `/usr/bin/file conftest.o` in | |
7809 *32-bit*) | |
7810 case $host in | |
7811 x86_64-*kfreebsd*-gnu) | |
7812 LD="${LD-ld} -m elf_i386_fbsd" | |
7813 ;; | |
7814 x86_64-*linux*) | |
7815 LD="${LD-ld} -m elf_i386" | |
7816 ;; | |
7817 ppc64-*linux*|powerpc64-*linux*) | |
7818 LD="${LD-ld} -m elf32ppclinux" | |
7819 ;; | |
7820 s390x-*linux*) | |
7821 LD="${LD-ld} -m elf_s390" | |
7822 ;; | |
7823 sparc64-*linux*) | |
7824 LD="${LD-ld} -m elf32_sparc" | |
7825 ;; | |
7826 esac | |
7827 ;; | |
7828 *64-bit*) | |
7829 case $host in | |
7830 x86_64-*kfreebsd*-gnu) | |
7831 LD="${LD-ld} -m elf_x86_64_fbsd" | |
7832 ;; | |
7833 x86_64-*linux*) | |
7834 LD="${LD-ld} -m elf_x86_64" | |
7835 ;; | |
7836 ppc*-*linux*|powerpc*-*linux*) | |
7837 LD="${LD-ld} -m elf64ppc" | |
7838 ;; | |
7839 s390*-*linux*|s390*-*tpf*) | |
7840 LD="${LD-ld} -m elf64_s390" | |
7841 ;; | |
7842 sparc*-*linux*) | |
7843 LD="${LD-ld} -m elf64_sparc" | |
7844 ;; | |
7845 esac | |
7846 ;; | |
7847 esac | |
7848 fi | |
7849 rm -rf conftest* | |
7850 ;; | |
7851 | |
7852 *-*-sco3.2v5*) | |
7853 # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
7854 SAVE_CFLAGS="$CFLAGS" | |
7855 CFLAGS="$CFLAGS -belf" | |
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
7857 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
7858 if ${lt_cv_cc_needs_belf+:} false; then : | |
7859 $as_echo_n "(cached) " >&6 | |
7860 else | |
7861 ac_ext=c | |
7862 ac_cpp='$CPP $CPPFLAGS' | |
7863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7865 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7866 | |
7867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7868 /* end confdefs.h. */ | |
7869 | |
7870 int | |
7871 main () | |
7872 { | |
7873 | |
7874 ; | |
7875 return 0; | |
7876 } | |
7877 _ACEOF | |
7878 if ac_fn_c_try_link "$LINENO"; then : | |
7879 lt_cv_cc_needs_belf=yes | |
7880 else | |
7881 lt_cv_cc_needs_belf=no | |
7882 fi | |
7883 rm -f core conftest.err conftest.$ac_objext \ | |
7884 conftest$ac_exeext conftest.$ac_ext | |
7885 ac_ext=c | |
7886 ac_cpp='$CPP $CPPFLAGS' | |
7887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7889 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7890 | |
7891 fi | |
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
7893 $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7894 if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
7895 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7896 CFLAGS="$SAVE_CFLAGS" | |
7897 fi | |
7898 ;; | |
7899 *-*solaris*) | |
7900 # Find out which ABI we are using. | |
7901 echo 'int i;' > conftest.$ac_ext | |
7902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7903 (eval $ac_compile) 2>&5 | |
7904 ac_status=$? | |
7905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7906 test $ac_status = 0; }; then | |
7907 case `/usr/bin/file conftest.o` in | |
7908 *64-bit*) | |
7909 case $lt_cv_prog_gnu_ld in | |
7910 yes*) | |
7911 case $host in | |
7912 i?86-*-solaris*) | |
7913 LD="${LD-ld} -m elf_x86_64" | |
7914 ;; | |
7915 sparc*-*-solaris*) | |
7916 LD="${LD-ld} -m elf64_sparc" | |
7917 ;; | |
7918 esac | |
7919 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
7920 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
7921 LD="${LD-ld}_sol2" | |
7922 fi | |
7923 ;; | |
7924 *) | |
7925 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7926 LD="${LD-ld} -64" | |
7927 fi | |
7928 ;; | |
7929 esac | |
7930 ;; | |
7931 esac | |
7932 fi | |
7933 rm -rf conftest* | |
7934 ;; | |
7935 esac | |
7936 | |
7937 need_locks="$enable_libtool_lock" | |
7938 | |
7939 if test -n "$ac_tool_prefix"; then | |
7940 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
7941 set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7943 $as_echo_n "checking for $ac_word... " >&6; } | |
7944 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
7945 $as_echo_n "(cached) " >&6 | |
7946 else | |
7947 if test -n "$MANIFEST_TOOL"; then | |
7948 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
7949 else | |
7950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7951 for as_dir in $PATH | |
7952 do | |
7953 IFS=$as_save_IFS | |
7954 test -z "$as_dir" && as_dir=. | |
7955 for ac_exec_ext in '' $ac_executable_extensions; do | |
7956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7957 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
7958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7959 break 2 | |
7960 fi | |
7961 done | |
7962 done | |
7963 IFS=$as_save_IFS | |
7964 | |
7965 fi | |
7966 fi | |
7967 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
7968 if test -n "$MANIFEST_TOOL"; then | |
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
7970 $as_echo "$MANIFEST_TOOL" >&6; } | |
7971 else | |
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7973 $as_echo "no" >&6; } | |
7974 fi | |
7975 | |
7976 | |
7977 fi | |
7978 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
7979 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
7980 # Extract the first word of "mt", so it can be a program name with args. | |
7981 set dummy mt; ac_word=$2 | |
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7983 $as_echo_n "checking for $ac_word... " >&6; } | |
7984 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
7985 $as_echo_n "(cached) " >&6 | |
7986 else | |
7987 if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7988 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
7989 else | |
7990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7991 for as_dir in $PATH | |
7992 do | |
7993 IFS=$as_save_IFS | |
7994 test -z "$as_dir" && as_dir=. | |
7995 for ac_exec_ext in '' $ac_executable_extensions; do | |
7996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7997 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
7998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7999 break 2 | |
8000 fi | |
8001 done | |
8002 done | |
8003 IFS=$as_save_IFS | |
8004 | |
8005 fi | |
8006 fi | |
8007 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
8008 if test -n "$ac_ct_MANIFEST_TOOL"; then | |
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
8010 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
8011 else | |
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8013 $as_echo "no" >&6; } | |
8014 fi | |
8015 | |
8016 if test "x$ac_ct_MANIFEST_TOOL" = x; then | |
8017 MANIFEST_TOOL=":" | |
8018 else | |
8019 case $cross_compiling:$ac_tool_warned in | |
8020 yes:) | |
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8023 ac_tool_warned=yes ;; | |
8024 esac | |
8025 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
8026 fi | |
8027 else | |
8028 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
8029 fi | |
8030 | |
8031 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | |
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
8033 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
8034 if ${lt_cv_path_mainfest_tool+:} false; then : | |
8035 $as_echo_n "(cached) " >&6 | |
8036 else | |
8037 lt_cv_path_mainfest_tool=no | |
8038 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
8039 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
8040 cat conftest.err >&5 | |
8041 if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
8042 lt_cv_path_mainfest_tool=yes | |
8043 fi | |
8044 rm -f conftest* | |
8045 fi | |
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
8047 $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
8048 if test "x$lt_cv_path_mainfest_tool" != xyes; then | |
8049 MANIFEST_TOOL=: | |
8050 fi | |
8051 | |
8052 | |
8053 | |
8054 | |
8055 | |
8056 | |
8057 case $host_os in | |
8058 rhapsody* | darwin*) | |
8059 if test -n "$ac_tool_prefix"; then | |
8060 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
8061 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8063 $as_echo_n "checking for $ac_word... " >&6; } | |
8064 if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
8065 $as_echo_n "(cached) " >&6 | |
8066 else | |
8067 if test -n "$DSYMUTIL"; then | |
8068 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
8069 else | |
8070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8071 for as_dir in $PATH | |
8072 do | |
8073 IFS=$as_save_IFS | |
8074 test -z "$as_dir" && as_dir=. | |
8075 for ac_exec_ext in '' $ac_executable_extensions; do | |
8076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8077 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
8078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8079 break 2 | |
8080 fi | |
8081 done | |
8082 done | |
8083 IFS=$as_save_IFS | |
8084 | |
8085 fi | |
8086 fi | |
8087 DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
8088 if test -n "$DSYMUTIL"; then | |
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
8090 $as_echo "$DSYMUTIL" >&6; } | |
8091 else | |
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8093 $as_echo "no" >&6; } | |
8094 fi | |
8095 | |
8096 | |
8097 fi | |
8098 if test -z "$ac_cv_prog_DSYMUTIL"; then | |
8099 ac_ct_DSYMUTIL=$DSYMUTIL | |
8100 # Extract the first word of "dsymutil", so it can be a program name with args. | |
8101 set dummy dsymutil; ac_word=$2 | |
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8103 $as_echo_n "checking for $ac_word... " >&6; } | |
8104 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
8105 $as_echo_n "(cached) " >&6 | |
8106 else | |
8107 if test -n "$ac_ct_DSYMUTIL"; then | |
8108 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
8109 else | |
8110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8111 for as_dir in $PATH | |
8112 do | |
8113 IFS=$as_save_IFS | |
8114 test -z "$as_dir" && as_dir=. | |
8115 for ac_exec_ext in '' $ac_executable_extensions; do | |
8116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8117 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
8118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8119 break 2 | |
8120 fi | |
8121 done | |
8122 done | |
8123 IFS=$as_save_IFS | |
8124 | |
8125 fi | |
8126 fi | |
8127 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
8128 if test -n "$ac_ct_DSYMUTIL"; then | |
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
8130 $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
8131 else | |
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8133 $as_echo "no" >&6; } | |
8134 fi | |
8135 | |
8136 if test "x$ac_ct_DSYMUTIL" = x; then | |
8137 DSYMUTIL=":" | |
8138 else | |
8139 case $cross_compiling:$ac_tool_warned in | |
8140 yes:) | |
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8143 ac_tool_warned=yes ;; | |
8144 esac | |
8145 DSYMUTIL=$ac_ct_DSYMUTIL | |
8146 fi | |
8147 else | |
8148 DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
8149 fi | |
8150 | |
8151 if test -n "$ac_tool_prefix"; then | |
8152 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
8153 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8155 $as_echo_n "checking for $ac_word... " >&6; } | |
8156 if ${ac_cv_prog_NMEDIT+:} false; then : | |
8157 $as_echo_n "(cached) " >&6 | |
8158 else | |
8159 if test -n "$NMEDIT"; then | |
8160 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
8161 else | |
8162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8163 for as_dir in $PATH | |
8164 do | |
8165 IFS=$as_save_IFS | |
8166 test -z "$as_dir" && as_dir=. | |
8167 for ac_exec_ext in '' $ac_executable_extensions; do | |
8168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8169 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
8170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8171 break 2 | |
8172 fi | |
8173 done | |
8174 done | |
8175 IFS=$as_save_IFS | |
8176 | |
8177 fi | |
8178 fi | |
8179 NMEDIT=$ac_cv_prog_NMEDIT | |
8180 if test -n "$NMEDIT"; then | |
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
8182 $as_echo "$NMEDIT" >&6; } | |
8183 else | |
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8185 $as_echo "no" >&6; } | |
8186 fi | |
8187 | |
8188 | |
8189 fi | |
8190 if test -z "$ac_cv_prog_NMEDIT"; then | |
8191 ac_ct_NMEDIT=$NMEDIT | |
8192 # Extract the first word of "nmedit", so it can be a program name with args. | |
8193 set dummy nmedit; ac_word=$2 | |
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8195 $as_echo_n "checking for $ac_word... " >&6; } | |
8196 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
8197 $as_echo_n "(cached) " >&6 | |
8198 else | |
8199 if test -n "$ac_ct_NMEDIT"; then | |
8200 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
8201 else | |
8202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8203 for as_dir in $PATH | |
8204 do | |
8205 IFS=$as_save_IFS | |
8206 test -z "$as_dir" && as_dir=. | |
8207 for ac_exec_ext in '' $ac_executable_extensions; do | |
8208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8209 ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
8210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8211 break 2 | |
8212 fi | |
8213 done | |
8214 done | |
8215 IFS=$as_save_IFS | |
8216 | |
8217 fi | |
8218 fi | |
8219 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
8220 if test -n "$ac_ct_NMEDIT"; then | |
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
8222 $as_echo "$ac_ct_NMEDIT" >&6; } | |
8223 else | |
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8225 $as_echo "no" >&6; } | |
8226 fi | |
8227 | |
8228 if test "x$ac_ct_NMEDIT" = x; then | |
8229 NMEDIT=":" | |
8230 else | |
8231 case $cross_compiling:$ac_tool_warned in | |
8232 yes:) | |
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8235 ac_tool_warned=yes ;; | |
8236 esac | |
8237 NMEDIT=$ac_ct_NMEDIT | |
8238 fi | |
8239 else | |
8240 NMEDIT="$ac_cv_prog_NMEDIT" | |
8241 fi | |
8242 | |
8243 if test -n "$ac_tool_prefix"; then | |
8244 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
8245 set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8247 $as_echo_n "checking for $ac_word... " >&6; } | |
8248 if ${ac_cv_prog_LIPO+:} false; then : | |
8249 $as_echo_n "(cached) " >&6 | |
8250 else | |
8251 if test -n "$LIPO"; then | |
8252 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8253 else | |
8254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8255 for as_dir in $PATH | |
8256 do | |
8257 IFS=$as_save_IFS | |
8258 test -z "$as_dir" && as_dir=. | |
8259 for ac_exec_ext in '' $ac_executable_extensions; do | |
8260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8261 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
8262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8263 break 2 | |
8264 fi | |
8265 done | |
8266 done | |
8267 IFS=$as_save_IFS | |
8268 | |
8269 fi | |
8270 fi | |
8271 LIPO=$ac_cv_prog_LIPO | |
8272 if test -n "$LIPO"; then | |
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
8274 $as_echo "$LIPO" >&6; } | |
8275 else | |
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8277 $as_echo "no" >&6; } | |
8278 fi | |
8279 | |
8280 | |
8281 fi | |
8282 if test -z "$ac_cv_prog_LIPO"; then | |
8283 ac_ct_LIPO=$LIPO | |
8284 # Extract the first word of "lipo", so it can be a program name with args. | |
8285 set dummy lipo; ac_word=$2 | |
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8287 $as_echo_n "checking for $ac_word... " >&6; } | |
8288 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
8289 $as_echo_n "(cached) " >&6 | |
8290 else | |
8291 if test -n "$ac_ct_LIPO"; then | |
8292 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
8293 else | |
8294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8295 for as_dir in $PATH | |
8296 do | |
8297 IFS=$as_save_IFS | |
8298 test -z "$as_dir" && as_dir=. | |
8299 for ac_exec_ext in '' $ac_executable_extensions; do | |
8300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8301 ac_cv_prog_ac_ct_LIPO="lipo" | |
8302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8303 break 2 | |
8304 fi | |
8305 done | |
8306 done | |
8307 IFS=$as_save_IFS | |
8308 | |
8309 fi | |
8310 fi | |
8311 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
8312 if test -n "$ac_ct_LIPO"; then | |
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
8314 $as_echo "$ac_ct_LIPO" >&6; } | |
8315 else | |
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8317 $as_echo "no" >&6; } | |
8318 fi | |
8319 | |
8320 if test "x$ac_ct_LIPO" = x; then | |
8321 LIPO=":" | |
8322 else | |
8323 case $cross_compiling:$ac_tool_warned in | |
8324 yes:) | |
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8327 ac_tool_warned=yes ;; | |
8328 esac | |
8329 LIPO=$ac_ct_LIPO | |
8330 fi | |
8331 else | |
8332 LIPO="$ac_cv_prog_LIPO" | |
8333 fi | |
8334 | |
8335 if test -n "$ac_tool_prefix"; then | |
8336 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
8337 set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8339 $as_echo_n "checking for $ac_word... " >&6; } | |
8340 if ${ac_cv_prog_OTOOL+:} false; then : | |
8341 $as_echo_n "(cached) " >&6 | |
8342 else | |
8343 if test -n "$OTOOL"; then | |
8344 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
8345 else | |
8346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8347 for as_dir in $PATH | |
8348 do | |
8349 IFS=$as_save_IFS | |
8350 test -z "$as_dir" && as_dir=. | |
8351 for ac_exec_ext in '' $ac_executable_extensions; do | |
8352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8353 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
8354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8355 break 2 | |
8356 fi | |
8357 done | |
8358 done | |
8359 IFS=$as_save_IFS | |
8360 | |
8361 fi | |
8362 fi | |
8363 OTOOL=$ac_cv_prog_OTOOL | |
8364 if test -n "$OTOOL"; then | |
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
8366 $as_echo "$OTOOL" >&6; } | |
8367 else | |
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8369 $as_echo "no" >&6; } | |
8370 fi | |
8371 | |
8372 | |
8373 fi | |
8374 if test -z "$ac_cv_prog_OTOOL"; then | |
8375 ac_ct_OTOOL=$OTOOL | |
8376 # Extract the first word of "otool", so it can be a program name with args. | |
8377 set dummy otool; ac_word=$2 | |
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8379 $as_echo_n "checking for $ac_word... " >&6; } | |
8380 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
8381 $as_echo_n "(cached) " >&6 | |
8382 else | |
8383 if test -n "$ac_ct_OTOOL"; then | |
8384 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
8385 else | |
8386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8387 for as_dir in $PATH | |
8388 do | |
8389 IFS=$as_save_IFS | |
8390 test -z "$as_dir" && as_dir=. | |
8391 for ac_exec_ext in '' $ac_executable_extensions; do | |
8392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8393 ac_cv_prog_ac_ct_OTOOL="otool" | |
8394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8395 break 2 | |
8396 fi | |
8397 done | |
8398 done | |
8399 IFS=$as_save_IFS | |
8400 | |
8401 fi | |
8402 fi | |
8403 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
8404 if test -n "$ac_ct_OTOOL"; then | |
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
8406 $as_echo "$ac_ct_OTOOL" >&6; } | |
8407 else | |
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8409 $as_echo "no" >&6; } | |
8410 fi | |
8411 | |
8412 if test "x$ac_ct_OTOOL" = x; then | |
8413 OTOOL=":" | |
8414 else | |
8415 case $cross_compiling:$ac_tool_warned in | |
8416 yes:) | |
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8419 ac_tool_warned=yes ;; | |
8420 esac | |
8421 OTOOL=$ac_ct_OTOOL | |
8422 fi | |
8423 else | |
8424 OTOOL="$ac_cv_prog_OTOOL" | |
8425 fi | |
8426 | |
8427 if test -n "$ac_tool_prefix"; then | |
8428 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
8429 set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8431 $as_echo_n "checking for $ac_word... " >&6; } | |
8432 if ${ac_cv_prog_OTOOL64+:} false; then : | |
8433 $as_echo_n "(cached) " >&6 | |
8434 else | |
8435 if test -n "$OTOOL64"; then | |
8436 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
8437 else | |
8438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8439 for as_dir in $PATH | |
8440 do | |
8441 IFS=$as_save_IFS | |
8442 test -z "$as_dir" && as_dir=. | |
8443 for ac_exec_ext in '' $ac_executable_extensions; do | |
8444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8445 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
8446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8447 break 2 | |
8448 fi | |
8449 done | |
8450 done | |
8451 IFS=$as_save_IFS | |
8452 | |
8453 fi | |
8454 fi | |
8455 OTOOL64=$ac_cv_prog_OTOOL64 | |
8456 if test -n "$OTOOL64"; then | |
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
8458 $as_echo "$OTOOL64" >&6; } | |
8459 else | |
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8461 $as_echo "no" >&6; } | |
8462 fi | |
8463 | |
8464 | |
8465 fi | |
8466 if test -z "$ac_cv_prog_OTOOL64"; then | |
8467 ac_ct_OTOOL64=$OTOOL64 | |
8468 # Extract the first word of "otool64", so it can be a program name with args. | |
8469 set dummy otool64; ac_word=$2 | |
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8471 $as_echo_n "checking for $ac_word... " >&6; } | |
8472 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
8473 $as_echo_n "(cached) " >&6 | |
8474 else | |
8475 if test -n "$ac_ct_OTOOL64"; then | |
8476 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
8477 else | |
8478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8479 for as_dir in $PATH | |
8480 do | |
8481 IFS=$as_save_IFS | |
8482 test -z "$as_dir" && as_dir=. | |
8483 for ac_exec_ext in '' $ac_executable_extensions; do | |
8484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8485 ac_cv_prog_ac_ct_OTOOL64="otool64" | |
8486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8487 break 2 | |
8488 fi | |
8489 done | |
8490 done | |
8491 IFS=$as_save_IFS | |
8492 | |
8493 fi | |
8494 fi | |
8495 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
8496 if test -n "$ac_ct_OTOOL64"; then | |
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
8498 $as_echo "$ac_ct_OTOOL64" >&6; } | |
8499 else | |
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8501 $as_echo "no" >&6; } | |
8502 fi | |
8503 | |
8504 if test "x$ac_ct_OTOOL64" = x; then | |
8505 OTOOL64=":" | |
8506 else | |
8507 case $cross_compiling:$ac_tool_warned in | |
8508 yes:) | |
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8511 ac_tool_warned=yes ;; | |
8512 esac | |
8513 OTOOL64=$ac_ct_OTOOL64 | |
8514 fi | |
8515 else | |
8516 OTOOL64="$ac_cv_prog_OTOOL64" | |
8517 fi | |
8518 | |
8519 | |
8520 | |
8521 | |
8522 | |
8523 | |
8524 | |
8525 | |
8526 | |
8527 | |
8528 | |
8529 | |
8530 | |
8531 | |
8532 | |
8533 | |
8534 | |
8535 | |
8536 | |
8537 | |
8538 | |
8539 | |
8540 | |
8541 | |
8542 | |
8543 | |
8544 | |
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
8546 $as_echo_n "checking for -single_module linker flag... " >&6; } | |
8547 if ${lt_cv_apple_cc_single_mod+:} false; then : | |
8548 $as_echo_n "(cached) " >&6 | |
8549 else | |
8550 lt_cv_apple_cc_single_mod=no | |
8551 if test -z "${LT_MULTI_MODULE}"; then | |
8552 # By default we will add the -single_module flag. You can override | |
8553 # by either setting the environment variable LT_MULTI_MODULE | |
8554 # non-empty at configure time, or by adding -multi_module to the | |
8555 # link flags. | |
8556 rm -rf libconftest.dylib* | |
8557 echo "int foo(void){return 1;}" > conftest.c | |
8558 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8559 -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8560 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8561 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8562 _lt_result=$? | |
8563 # If there is a non-empty error log, and "single_module" | |
8564 # appears in it, assume the flag caused a linker warning | |
8565 if test -s conftest.err && $GREP single_module conftest.err; then | |
8566 cat conftest.err >&5 | |
8567 # Otherwise, if the output was created with a 0 exit code from | |
8568 # the compiler, it worked. | |
8569 elif test -f libconftest.dylib && test $_lt_result -eq 0; then | |
8570 lt_cv_apple_cc_single_mod=yes | |
8571 else | |
8572 cat conftest.err >&5 | |
8573 fi | |
8574 rm -rf libconftest.dylib* | |
8575 rm -f conftest.* | |
8576 fi | |
8577 fi | |
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
8579 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
8580 | |
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
8582 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
8583 if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
8584 $as_echo_n "(cached) " >&6 | |
8585 else | |
8586 lt_cv_ld_exported_symbols_list=no | |
8587 save_LDFLAGS=$LDFLAGS | |
8588 echo "_main" > conftest.sym | |
8589 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
8590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8591 /* end confdefs.h. */ | |
8592 | |
8593 int | |
8594 main () | |
8595 { | |
8596 | |
8597 ; | |
8598 return 0; | |
8599 } | |
8600 _ACEOF | |
8601 if ac_fn_c_try_link "$LINENO"; then : | |
8602 lt_cv_ld_exported_symbols_list=yes | |
8603 else | |
8604 lt_cv_ld_exported_symbols_list=no | |
8605 fi | |
8606 rm -f core conftest.err conftest.$ac_objext \ | |
8607 conftest$ac_exeext conftest.$ac_ext | |
8608 LDFLAGS="$save_LDFLAGS" | |
8609 | |
8610 fi | |
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
8612 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
8613 | |
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
8615 $as_echo_n "checking for -force_load linker flag... " >&6; } | |
8616 if ${lt_cv_ld_force_load+:} false; then : | |
8617 $as_echo_n "(cached) " >&6 | |
8618 else | |
8619 lt_cv_ld_force_load=no | |
8620 cat > conftest.c << _LT_EOF | |
8621 int forced_loaded() { return 2;} | |
8622 _LT_EOF | |
8623 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8624 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8625 echo "$AR cru libconftest.a conftest.o" >&5 | |
8626 $AR cru libconftest.a conftest.o 2>&5 | |
8627 echo "$RANLIB libconftest.a" >&5 | |
8628 $RANLIB libconftest.a 2>&5 | |
8629 cat > conftest.c << _LT_EOF | |
8630 int main() { return 0;} | |
8631 _LT_EOF | |
8632 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8633 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8634 _lt_result=$? | |
8635 if test -s conftest.err && $GREP force_load conftest.err; then | |
8636 cat conftest.err >&5 | |
8637 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then | |
8638 lt_cv_ld_force_load=yes | |
8639 else | |
8640 cat conftest.err >&5 | |
8641 fi | |
8642 rm -f conftest.err libconftest.a conftest conftest.c | |
8643 rm -rf conftest.dSYM | |
8644 | |
8645 fi | |
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
8647 $as_echo "$lt_cv_ld_force_load" >&6; } | |
8648 case $host_os in | |
8649 rhapsody* | darwin1.[012]) | |
8650 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
8651 darwin1.*) | |
8652 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8653 darwin*) # darwin 5.x on | |
8654 # if running on 10.5 or later, the deployment target defaults | |
8655 # to the OS version, if on x86, and 10.4, the deployment | |
8656 # target defaults to 10.4. Don't you love it? | |
8657 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
8658 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
8659 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8660 10.[012]*) | |
8661 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8662 10.*) | |
8663 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8664 esac | |
8665 ;; | |
8666 esac | |
8667 if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
8668 _lt_dar_single_mod='$single_module' | |
8669 fi | |
8670 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
8671 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
8672 else | |
8673 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8674 fi | |
8675 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
8676 _lt_dsymutil='~$DSYMUTIL $lib || :' | |
8677 else | |
8678 _lt_dsymutil= | |
8679 fi | |
8680 ;; | |
8681 esac | |
8682 | |
8683 ac_ext=c | |
8684 ac_cpp='$CPP $CPPFLAGS' | |
8685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8687 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
8689 $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
8690 # On Suns, sometimes $CPP names a directory. | |
8691 if test -n "$CPP" && test -d "$CPP"; then | |
8692 CPP= | |
8693 fi | |
8694 if test -z "$CPP"; then | |
8695 if ${ac_cv_prog_CPP+:} false; then : | |
8696 $as_echo_n "(cached) " >&6 | |
8697 else | |
8698 # Double quotes because CPP needs to be expanded | |
8699 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
8700 do | |
8701 ac_preproc_ok=false | |
8702 for ac_c_preproc_warn_flag in '' yes | |
8703 do | |
8704 # Use a header file that comes with gcc, so configuring glibc | |
8705 # with a fresh cross-compiler works. | |
8706 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8707 # <limits.h> exists even on freestanding compilers. | |
8708 # On the NeXT, cc -E runs the code through the compiler's parser, | |
8709 # not just through cpp. "Syntax error" is here to catch this case. | |
8710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8711 /* end confdefs.h. */ | |
8712 #ifdef __STDC__ | |
8713 # include <limits.h> | |
8714 #else | |
8715 # include <assert.h> | |
8716 #endif | |
8717 Syntax error | |
8718 _ACEOF | |
8719 if ac_fn_c_try_cpp "$LINENO"; then : | |
8720 | |
8721 else | |
8722 # Broken: fails on valid input. | |
8723 continue | |
8724 fi | |
8725 rm -f conftest.err conftest.i conftest.$ac_ext | |
8726 | |
8727 # OK, works on sane cases. Now check whether nonexistent headers | |
8728 # can be detected and how. | |
8729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8730 /* end confdefs.h. */ | |
8731 #include <ac_nonexistent.h> | |
8732 _ACEOF | |
8733 if ac_fn_c_try_cpp "$LINENO"; then : | |
8734 # Broken: success on invalid input. | |
8735 continue | |
8736 else | |
8737 # Passes both tests. | |
8738 ac_preproc_ok=: | |
8739 break | |
8740 fi | |
8741 rm -f conftest.err conftest.i conftest.$ac_ext | |
8742 | |
8743 done | |
8744 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
8745 rm -f conftest.i conftest.err conftest.$ac_ext | |
8746 if $ac_preproc_ok; then : | |
8747 break | |
8748 fi | |
8749 | |
8750 done | |
8751 ac_cv_prog_CPP=$CPP | |
8752 | |
8753 fi | |
8754 CPP=$ac_cv_prog_CPP | |
8755 else | |
8756 ac_cv_prog_CPP=$CPP | |
8757 fi | |
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
8759 $as_echo "$CPP" >&6; } | |
8760 ac_preproc_ok=false | |
8761 for ac_c_preproc_warn_flag in '' yes | |
8762 do | |
8763 # Use a header file that comes with gcc, so configuring glibc | |
8764 # with a fresh cross-compiler works. | |
8765 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8766 # <limits.h> exists even on freestanding compilers. | |
8767 # On the NeXT, cc -E runs the code through the compiler's parser, | |
8768 # not just through cpp. "Syntax error" is here to catch this case. | |
8769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8770 /* end confdefs.h. */ | |
8771 #ifdef __STDC__ | |
8772 # include <limits.h> | |
8773 #else | |
8774 # include <assert.h> | |
8775 #endif | |
8776 Syntax error | |
8777 _ACEOF | |
8778 if ac_fn_c_try_cpp "$LINENO"; then : | |
8779 | |
8780 else | |
8781 # Broken: fails on valid input. | |
8782 continue | |
8783 fi | |
8784 rm -f conftest.err conftest.i conftest.$ac_ext | |
8785 | |
8786 # OK, works on sane cases. Now check whether nonexistent headers | |
8787 # can be detected and how. | |
8788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8789 /* end confdefs.h. */ | |
8790 #include <ac_nonexistent.h> | |
8791 _ACEOF | |
8792 if ac_fn_c_try_cpp "$LINENO"; then : | |
8793 # Broken: success on invalid input. | |
8794 continue | |
8795 else | |
8796 # Passes both tests. | |
8797 ac_preproc_ok=: | |
8798 break | |
8799 fi | |
8800 rm -f conftest.err conftest.i conftest.$ac_ext | |
8801 | |
8802 done | |
8803 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
8804 rm -f conftest.i conftest.err conftest.$ac_ext | |
8805 if $ac_preproc_ok; then : | |
8806 | |
8807 else | |
8808 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8810 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
8811 See \`config.log' for more details" "$LINENO" 5; } | |
8812 fi | |
8813 | |
8814 ac_ext=c | |
8815 ac_cpp='$CPP $CPPFLAGS' | |
8816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8818 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8819 | |
8820 | |
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
8822 $as_echo_n "checking for ANSI C header files... " >&6; } | |
8823 if ${ac_cv_header_stdc+:} false; then : | |
8824 $as_echo_n "(cached) " >&6 | |
8825 else | |
8826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8827 /* end confdefs.h. */ | |
8828 #include <stdlib.h> | |
8829 #include <stdarg.h> | |
8830 #include <string.h> | |
8831 #include <float.h> | |
8832 | |
8833 int | |
8834 main () | |
8835 { | |
8836 | |
8837 ; | |
8838 return 0; | |
8839 } | |
8840 _ACEOF | |
8841 if ac_fn_c_try_compile "$LINENO"; then : | |
8842 ac_cv_header_stdc=yes | |
8843 else | |
8844 ac_cv_header_stdc=no | |
8845 fi | |
8846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8847 | |
8848 if test $ac_cv_header_stdc = yes; then | |
8849 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
8850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8851 /* end confdefs.h. */ | |
8852 #include <string.h> | |
8853 | |
8854 _ACEOF | |
8855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8856 $EGREP "memchr" >/dev/null 2>&1; then : | |
8857 | |
8858 else | |
8859 ac_cv_header_stdc=no | |
8860 fi | |
8861 rm -f conftest* | |
8862 | |
8863 fi | |
8864 | |
8865 if test $ac_cv_header_stdc = yes; then | |
8866 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
8867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8868 /* end confdefs.h. */ | |
8869 #include <stdlib.h> | |
8870 | |
8871 _ACEOF | |
8872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8873 $EGREP "free" >/dev/null 2>&1; then : | |
8874 | |
8875 else | |
8876 ac_cv_header_stdc=no | |
8877 fi | |
8878 rm -f conftest* | |
8879 | |
8880 fi | |
8881 | |
8882 if test $ac_cv_header_stdc = yes; then | |
8883 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
8884 if test "$cross_compiling" = yes; then : | |
8885 : | |
8886 else | |
8887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8888 /* end confdefs.h. */ | |
8889 #include <ctype.h> | |
8890 #include <stdlib.h> | |
8891 #if ((' ' & 0x0FF) == 0x020) | |
8892 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
8893 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
8894 #else | |
8895 # define ISLOWER(c) \ | |
8896 (('a' <= (c) && (c) <= 'i') \ | |
8897 || ('j' <= (c) && (c) <= 'r') \ | |
8898 || ('s' <= (c) && (c) <= 'z')) | |
8899 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
8900 #endif | |
8901 | |
8902 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
8903 int | |
8904 main () | |
8905 { | |
8906 int i; | |
8907 for (i = 0; i < 256; i++) | |
8908 if (XOR (islower (i), ISLOWER (i)) | |
8909 || toupper (i) != TOUPPER (i)) | |
8910 return 2; | |
8911 return 0; | |
8912 } | |
8913 _ACEOF | |
8914 if ac_fn_c_try_run "$LINENO"; then : | |
8915 | |
8916 else | |
8917 ac_cv_header_stdc=no | |
8918 fi | |
8919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
8920 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
8921 fi | |
8922 | |
8923 fi | |
8924 fi | |
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
8926 $as_echo "$ac_cv_header_stdc" >&6; } | |
8927 if test $ac_cv_header_stdc = yes; then | |
8928 | |
8929 $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
8930 | |
8931 fi | |
8932 | |
8933 # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
8934 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
8935 inttypes.h stdint.h unistd.h | |
8936 do : | |
8937 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8938 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
8939 " | |
8940 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
8941 cat >>confdefs.h <<_ACEOF | |
8942 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8943 _ACEOF | |
8944 | |
8945 fi | |
8946 | |
8947 done | |
8948 | |
8949 | |
8950 for ac_header in dlfcn.h | |
8951 do : | |
8952 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8953 " | |
8954 if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8955 cat >>confdefs.h <<_ACEOF | |
8956 #define HAVE_DLFCN_H 1 | |
8957 _ACEOF | |
8958 | |
8959 fi | |
8960 | |
8961 done | |
8962 | |
8963 | |
8964 | |
8965 | |
8966 | |
8967 # Set options | |
8968 | |
8969 | |
8970 | |
8971 enable_dlopen=no | |
8972 | |
8973 | |
8974 | |
8975 | |
8976 # Check whether --enable-static was given. | |
8977 if test "${enable_static+set}" = set; then : | |
8978 enableval=$enable_static; p=${PACKAGE-default} | |
8979 case $enableval in | |
8980 yes) enable_static=yes ;; | |
8981 no) enable_static=no ;; | |
8982 *) | |
8983 enable_static=no | |
8984 # Look at the argument we got. We use all the common list separators. | |
8985 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8986 for pkg in $enableval; do | |
8987 IFS="$lt_save_ifs" | |
8988 if test "X$pkg" = "X$p"; then | |
8989 enable_static=yes | |
8990 fi | |
8991 done | |
8992 IFS="$lt_save_ifs" | |
8993 ;; | |
8994 esac | |
8995 else | |
8996 enable_static=yes | |
8997 fi | |
8998 | |
8999 | |
9000 | |
9001 | |
9002 | |
9003 | |
9004 | |
9005 | |
9006 | |
9007 | |
9008 # Check whether --with-pic was given. | |
9009 if test "${with_pic+set}" = set; then : | |
9010 withval=$with_pic; lt_p=${PACKAGE-default} | |
9011 case $withval in | |
9012 yes|no) pic_mode=$withval ;; | |
9013 *) | |
9014 pic_mode=default | |
9015 # Look at the argument we got. We use all the common list separators. | |
9016 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9017 for lt_pkg in $withval; do | |
9018 IFS="$lt_save_ifs" | |
9019 if test "X$lt_pkg" = "X$lt_p"; then | |
9020 pic_mode=yes | |
9021 fi | |
9022 done | |
9023 IFS="$lt_save_ifs" | |
9024 ;; | |
9025 esac | |
9026 else | |
9027 pic_mode=default | |
9028 fi | |
9029 | |
9030 | |
9031 test -z "$pic_mode" && pic_mode=default | |
9032 | |
9033 | |
9034 | |
9035 | |
9036 | |
9037 | |
9038 | |
9039 # Check whether --enable-fast-install was given. | |
9040 if test "${enable_fast_install+set}" = set; then : | |
9041 enableval=$enable_fast_install; p=${PACKAGE-default} | |
9042 case $enableval in | |
9043 yes) enable_fast_install=yes ;; | |
9044 no) enable_fast_install=no ;; | |
9045 *) | |
9046 enable_fast_install=no | |
9047 # Look at the argument we got. We use all the common list separators. | |
9048 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9049 for pkg in $enableval; do | |
9050 IFS="$lt_save_ifs" | |
9051 if test "X$pkg" = "X$p"; then | |
9052 enable_fast_install=yes | |
9053 fi | |
9054 done | |
9055 IFS="$lt_save_ifs" | |
9056 ;; | |
9057 esac | |
9058 else | |
9059 enable_fast_install=yes | |
9060 fi | |
9061 | |
9062 | |
9063 | |
9064 | |
9065 | |
9066 | |
9067 | |
9068 | |
9069 | |
9070 | |
9071 | |
9072 # This can be used to rebuild libtool when needed | |
9073 LIBTOOL_DEPS="$ltmain" | |
9074 | |
9075 # Always use our own libtool. | |
9076 LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
9077 | |
9078 | |
9079 | |
9080 | |
9081 | |
9082 | |
9083 | |
9084 | |
9085 | |
9086 | |
9087 | |
9088 | |
9089 | |
9090 | |
9091 | |
9092 | |
9093 | |
9094 | |
9095 | |
9096 | |
9097 | |
9098 | |
9099 | |
9100 | |
9101 | |
9102 | |
9103 | |
9104 | |
9105 | |
9106 | |
9107 test -z "$LN_S" && LN_S="ln -s" | |
9108 | |
9109 | |
9110 | |
9111 | |
9112 | |
9113 | |
9114 | |
9115 | |
9116 | |
9117 | |
9118 | |
9119 | |
9120 | |
9121 | |
9122 if test -n "${ZSH_VERSION+set}" ; then | |
9123 setopt NO_GLOB_SUBST | |
9124 fi | |
9125 | |
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
9127 $as_echo_n "checking for objdir... " >&6; } | |
9128 if ${lt_cv_objdir+:} false; then : | |
9129 $as_echo_n "(cached) " >&6 | |
9130 else | |
9131 rm -f .libs 2>/dev/null | |
9132 mkdir .libs 2>/dev/null | |
9133 if test -d .libs; then | |
9134 lt_cv_objdir=.libs | |
9135 else | |
9136 # MS-DOS does not allow filenames that begin with a dot. | |
9137 lt_cv_objdir=_libs | |
9138 fi | |
9139 rmdir .libs 2>/dev/null | |
9140 fi | |
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
9142 $as_echo "$lt_cv_objdir" >&6; } | |
9143 objdir=$lt_cv_objdir | |
9144 | |
9145 | |
9146 | |
9147 | |
9148 | |
9149 cat >>confdefs.h <<_ACEOF | |
9150 #define LT_OBJDIR "$lt_cv_objdir/" | |
9151 _ACEOF | |
9152 | |
9153 | |
9154 | |
9155 | |
9156 case $host_os in | |
9157 aix3*) | |
9158 # AIX sometimes has problems with the GCC collect2 program. For some | |
9159 # reason, if we set the COLLECT_NAMES environment variable, the problems | |
9160 # vanish in a puff of smoke. | |
9161 if test "X${COLLECT_NAMES+set}" != Xset; then | |
9162 COLLECT_NAMES= | |
9163 export COLLECT_NAMES | |
9164 fi | |
9165 ;; | |
9166 esac | |
9167 | |
9168 # Global variables: | |
9169 ofile=libtool | |
9170 can_build_shared=yes | |
9171 | |
9172 # All known linkers require a `.a' archive for static linking (except MSVC, | |
9173 # which needs '.lib'). | |
9174 libext=a | |
9175 | |
9176 with_gnu_ld="$lt_cv_prog_gnu_ld" | |
9177 | |
9178 old_CC="$CC" | |
9179 old_CFLAGS="$CFLAGS" | |
9180 | |
9181 # Set sane defaults for various variables | |
9182 test -z "$CC" && CC=cc | |
9183 test -z "$LTCC" && LTCC=$CC | |
9184 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
9185 test -z "$LD" && LD=ld | |
9186 test -z "$ac_objext" && ac_objext=o | |
9187 | |
9188 for cc_temp in $compiler""; do | |
9189 case $cc_temp in | |
9190 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
9191 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
9192 \-*) ;; | |
9193 *) break;; | |
9194 esac | |
9195 done | |
9196 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
9197 | |
9198 | |
9199 # Only perform the check for file, if the check method requires it | |
9200 test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
9201 case $deplibs_check_method in | |
9202 file_magic*) | |
9203 if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
9205 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
9206 if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
9207 $as_echo_n "(cached) " >&6 | |
9208 else | |
9209 case $MAGIC_CMD in | |
9210 [\\/*] | ?:[\\/]*) | |
9211 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9212 ;; | |
9213 *) | |
9214 lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9215 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9216 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9217 for ac_dir in $ac_dummy; do | |
9218 IFS="$lt_save_ifs" | |
9219 test -z "$ac_dir" && ac_dir=. | |
9220 if test -f $ac_dir/${ac_tool_prefix}file; then | |
9221 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
9222 if test -n "$file_magic_test_file"; then | |
9223 case $deplibs_check_method in | |
9224 "file_magic "*) | |
9225 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9226 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9227 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9228 $EGREP "$file_magic_regex" > /dev/null; then | |
9229 : | |
9230 else | |
9231 cat <<_LT_EOF 1>&2 | |
9232 | |
9233 *** Warning: the command libtool uses to detect shared libraries, | |
9234 *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9235 *** The result is that libtool may fail to recognize shared libraries | |
9236 *** as such. This will affect the creation of libtool libraries that | |
9237 *** depend on shared libraries, but programs linked with such libtool | |
9238 *** libraries will work regardless of this problem. Nevertheless, you | |
9239 *** may want to report the problem to your system manager and/or to | |
9240 *** bug-libtool@gnu.org | |
9241 | |
9242 _LT_EOF | |
9243 fi ;; | |
9244 esac | |
9245 fi | |
9246 break | |
9247 fi | |
9248 done | |
9249 IFS="$lt_save_ifs" | |
9250 MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9251 ;; | |
9252 esac | |
9253 fi | |
9254 | |
9255 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9256 if test -n "$MAGIC_CMD"; then | |
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
9258 $as_echo "$MAGIC_CMD" >&6; } | |
9259 else | |
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9261 $as_echo "no" >&6; } | |
9262 fi | |
9263 | |
9264 | |
9265 | |
9266 | |
9267 | |
9268 if test -z "$lt_cv_path_MAGIC_CMD"; then | |
9269 if test -n "$ac_tool_prefix"; then | |
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
9271 $as_echo_n "checking for file... " >&6; } | |
9272 if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
9273 $as_echo_n "(cached) " >&6 | |
9274 else | |
9275 case $MAGIC_CMD in | |
9276 [\\/*] | ?:[\\/]*) | |
9277 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
9278 ;; | |
9279 *) | |
9280 lt_save_MAGIC_CMD="$MAGIC_CMD" | |
9281 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
9282 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
9283 for ac_dir in $ac_dummy; do | |
9284 IFS="$lt_save_ifs" | |
9285 test -z "$ac_dir" && ac_dir=. | |
9286 if test -f $ac_dir/file; then | |
9287 lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
9288 if test -n "$file_magic_test_file"; then | |
9289 case $deplibs_check_method in | |
9290 "file_magic "*) | |
9291 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
9292 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9293 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
9294 $EGREP "$file_magic_regex" > /dev/null; then | |
9295 : | |
9296 else | |
9297 cat <<_LT_EOF 1>&2 | |
9298 | |
9299 *** Warning: the command libtool uses to detect shared libraries, | |
9300 *** $file_magic_cmd, produces output that libtool cannot recognize. | |
9301 *** The result is that libtool may fail to recognize shared libraries | |
9302 *** as such. This will affect the creation of libtool libraries that | |
9303 *** depend on shared libraries, but programs linked with such libtool | |
9304 *** libraries will work regardless of this problem. Nevertheless, you | |
9305 *** may want to report the problem to your system manager and/or to | |
9306 *** bug-libtool@gnu.org | |
9307 | |
9308 _LT_EOF | |
9309 fi ;; | |
9310 esac | |
9311 fi | |
9312 break | |
9313 fi | |
9314 done | |
9315 IFS="$lt_save_ifs" | |
9316 MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9317 ;; | |
9318 esac | |
9319 fi | |
9320 | |
9321 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9322 if test -n "$MAGIC_CMD"; then | |
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
9324 $as_echo "$MAGIC_CMD" >&6; } | |
9325 else | |
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9327 $as_echo "no" >&6; } | |
9328 fi | |
9329 | |
9330 | |
9331 else | |
9332 MAGIC_CMD=: | |
9333 fi | |
9334 fi | |
9335 | |
9336 fi | |
9337 ;; | |
9338 esac | |
9339 | |
9340 # Use C for the default configuration in the libtool script | |
9341 | |
9342 lt_save_CC="$CC" | |
9343 ac_ext=c | |
9344 ac_cpp='$CPP $CPPFLAGS' | |
9345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9347 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9348 | |
9349 | |
9350 # Source file extension for C test sources. | |
9351 ac_ext=c | |
9352 | |
9353 # Object file extension for compiled C test sources. | |
9354 objext=o | |
9355 objext=$objext | |
9356 | |
9357 # Code to be used in simple compile tests | |
9358 lt_simple_compile_test_code="int some_variable = 0;" | |
9359 | |
9360 # Code to be used in simple link tests | |
9361 lt_simple_link_test_code='int main(){return(0);}' | |
9362 | |
9363 | |
9364 | |
9365 | |
9366 | |
9367 | |
9368 | |
9369 # If no C compiler was specified, use CC. | |
9370 LTCC=${LTCC-"$CC"} | |
9371 | |
9372 # If no C compiler flags were specified, use CFLAGS. | |
9373 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9374 | |
9375 # Allow CC to be a program name with arguments. | |
9376 compiler=$CC | |
9377 | |
9378 # Save the default compiler, since it gets overwritten when the other | |
9379 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
9380 compiler_DEFAULT=$CC | |
9381 | |
9382 # save warnings/boilerplate of simple test code | |
9383 ac_outfile=conftest.$ac_objext | |
9384 echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
9385 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9386 _lt_compiler_boilerplate=`cat conftest.err` | |
9387 $RM conftest* | |
9388 | |
9389 ac_outfile=conftest.$ac_objext | |
9390 echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
9391 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9392 _lt_linker_boilerplate=`cat conftest.err` | |
9393 $RM -r conftest* | |
9394 | |
9395 | |
9396 ## CAVEAT EMPTOR: | |
9397 ## There is no encapsulation within the following macros, do not change | |
9398 ## the running order or otherwise move them around unless you know exactly | |
9399 ## what you are doing... | |
9400 if test -n "$compiler"; then | |
9401 | |
9402 lt_prog_compiler_no_builtin_flag= | |
9403 | |
9404 if test "$GCC" = yes; then | |
9405 case $cc_basename in | |
9406 nvcc*) | |
9407 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
9408 *) | |
9409 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
9410 esac | |
9411 | |
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
9413 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
9414 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
9415 $as_echo_n "(cached) " >&6 | |
9416 else | |
9417 lt_cv_prog_compiler_rtti_exceptions=no | |
9418 ac_outfile=conftest.$ac_objext | |
9419 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9420 lt_compiler_flag="-fno-rtti -fno-exceptions" | |
9421 # Insert the option either (1) after the last *FLAGS variable, or | |
9422 # (2) before a word containing "conftest.", or (3) at the end. | |
9423 # Note that $ac_compile itself does not contain backslashes and begins | |
9424 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9425 # The option is referenced via a variable to avoid confusing sed. | |
9426 lt_compile=`echo "$ac_compile" | $SED \ | |
9427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9429 -e 's:$: $lt_compiler_flag:'` | |
9430 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9431 (eval "$lt_compile" 2>conftest.err) | |
9432 ac_status=$? | |
9433 cat conftest.err >&5 | |
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9435 if (exit $ac_status) && test -s "$ac_outfile"; then | |
9436 # The compiler can only warn and ignore the option if not recognized | |
9437 # So say no if there are warnings other than the usual output. | |
9438 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9439 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9440 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9441 lt_cv_prog_compiler_rtti_exceptions=yes | |
9442 fi | |
9443 fi | |
9444 $RM conftest* | |
9445 | |
9446 fi | |
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
9448 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
9449 | |
9450 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
9451 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
9452 else | |
9453 : | |
9454 fi | |
9455 | |
9456 fi | |
9457 | |
9458 | |
9459 | |
9460 | |
9461 | |
9462 | |
9463 lt_prog_compiler_wl= | |
9464 lt_prog_compiler_pic= | |
9465 lt_prog_compiler_static= | |
9466 | |
9467 | |
9468 if test "$GCC" = yes; then | |
9469 lt_prog_compiler_wl='-Wl,' | |
9470 lt_prog_compiler_static='-static' | |
9471 | |
9472 case $host_os in | |
9473 aix*) | |
9474 # All AIX code is PIC. | |
9475 if test "$host_cpu" = ia64; then | |
9476 # AIX 5 now supports IA64 processor | |
9477 lt_prog_compiler_static='-Bstatic' | |
9478 fi | |
9479 ;; | |
9480 | |
9481 amigaos*) | |
9482 case $host_cpu in | |
9483 powerpc) | |
9484 # see comment about AmigaOS4 .so support | |
9485 lt_prog_compiler_pic='-fPIC' | |
9486 ;; | |
9487 m68k) | |
9488 # FIXME: we need at least 68020 code to build shared libraries, but | |
9489 # adding the `-m68020' flag to GCC prevents building anything better, | |
9490 # like `-m68040'. | |
9491 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
9492 ;; | |
9493 esac | |
9494 ;; | |
9495 | |
9496 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
9497 # PIC is the default for these OSes. | |
9498 ;; | |
9499 | |
9500 mingw* | cygwin* | pw32* | os2* | cegcc*) | |
9501 # This hack is so that the source file can tell whether it is being | |
9502 # built for inclusion in a dll (and should export symbols for example). | |
9503 # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
9504 # (--disable-auto-import) libraries | |
9505 lt_prog_compiler_pic='-DDLL_EXPORT' | |
9506 ;; | |
9507 | |
9508 darwin* | rhapsody*) | |
9509 # PIC is the default on this platform | |
9510 # Common symbols not allowed in MH_DYLIB files | |
9511 lt_prog_compiler_pic='-fno-common' | |
9512 ;; | |
9513 | |
9514 haiku*) | |
9515 # PIC is the default for Haiku. | |
9516 # The "-static" flag exists, but is broken. | |
9517 lt_prog_compiler_static= | |
9518 ;; | |
9519 | |
9520 hpux*) | |
9521 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
9522 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
9523 # sets the default TLS model and affects inlining. | |
9524 case $host_cpu in | |
9525 hppa*64*) | |
9526 # +Z the default | |
9527 ;; | |
9528 *) | |
9529 lt_prog_compiler_pic='-fPIC' | |
9530 ;; | |
9531 esac | |
9532 ;; | |
9533 | |
9534 interix[3-9]*) | |
9535 # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
9536 # Instead, we relocate shared libraries at runtime. | |
9537 ;; | |
9538 | |
9539 msdosdjgpp*) | |
9540 # Just because we use GCC doesn't mean we suddenly get shared libraries | |
9541 # on systems that don't support them. | |
9542 lt_prog_compiler_can_build_shared=no | |
9543 enable_shared=no | |
9544 ;; | |
9545 | |
9546 *nto* | *qnx*) | |
9547 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9548 # it will coredump. | |
9549 lt_prog_compiler_pic='-fPIC -shared' | |
9550 ;; | |
9551 | |
9552 sysv4*MP*) | |
9553 if test -d /usr/nec; then | |
9554 lt_prog_compiler_pic=-Kconform_pic | |
9555 fi | |
9556 ;; | |
9557 | |
9558 *) | |
9559 lt_prog_compiler_pic='-fPIC' | |
9560 ;; | |
9561 esac | |
9562 | |
9563 case $cc_basename in | |
9564 nvcc*) # Cuda Compiler Driver 2.2 | |
9565 lt_prog_compiler_wl='-Xlinker ' | |
9566 if test -n "$lt_prog_compiler_pic"; then | |
9567 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
9568 fi | |
9569 ;; | |
9570 esac | |
9571 else | |
9572 # PORTME Check for flag to pass linker flags through the system compiler. | |
9573 case $host_os in | |
9574 aix*) | |
9575 lt_prog_compiler_wl='-Wl,' | |
9576 if test "$host_cpu" = ia64; then | |
9577 # AIX 5 now supports IA64 processor | |
9578 lt_prog_compiler_static='-Bstatic' | |
9579 else | |
9580 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9581 fi | |
9582 ;; | |
9583 | |
9584 mingw* | cygwin* | pw32* | os2* | cegcc*) | |
9585 # This hack is so that the source file can tell whether it is being | |
9586 # built for inclusion in a dll (and should export symbols for example). | |
9587 lt_prog_compiler_pic='-DDLL_EXPORT' | |
9588 ;; | |
9589 | |
9590 hpux9* | hpux10* | hpux11*) | |
9591 lt_prog_compiler_wl='-Wl,' | |
9592 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9593 # not for PA HP-UX. | |
9594 case $host_cpu in | |
9595 hppa*64*|ia64*) | |
9596 # +Z the default | |
9597 ;; | |
9598 *) | |
9599 lt_prog_compiler_pic='+Z' | |
9600 ;; | |
9601 esac | |
9602 # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9603 lt_prog_compiler_static='${wl}-a ${wl}archive' | |
9604 ;; | |
9605 | |
9606 irix5* | irix6* | nonstopux*) | |
9607 lt_prog_compiler_wl='-Wl,' | |
9608 # PIC (with -KPIC) is the default. | |
9609 lt_prog_compiler_static='-non_shared' | |
9610 ;; | |
9611 | |
9612 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
9613 case $cc_basename in | |
9614 # old Intel for x86_64 which still supported -KPIC. | |
9615 ecc*) | |
9616 lt_prog_compiler_wl='-Wl,' | |
9617 lt_prog_compiler_pic='-KPIC' | |
9618 lt_prog_compiler_static='-static' | |
9619 ;; | |
9620 # icc used to be incompatible with GCC. | |
9621 # ICC 10 doesn't accept -KPIC any more. | |
9622 icc* | ifort*) | |
9623 lt_prog_compiler_wl='-Wl,' | |
9624 lt_prog_compiler_pic='-fPIC' | |
9625 lt_prog_compiler_static='-static' | |
9626 ;; | |
9627 # Lahey Fortran 8.1. | |
9628 lf95*) | |
9629 lt_prog_compiler_wl='-Wl,' | |
9630 lt_prog_compiler_pic='--shared' | |
9631 lt_prog_compiler_static='--static' | |
9632 ;; | |
9633 nagfor*) | |
9634 # NAG Fortran compiler | |
9635 lt_prog_compiler_wl='-Wl,-Wl,,' | |
9636 lt_prog_compiler_pic='-PIC' | |
9637 lt_prog_compiler_static='-Bstatic' | |
9638 ;; | |
9639 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9640 # Portland Group compilers (*not* the Pentium gcc compiler, | |
9641 # which looks to be a dead project) | |
9642 lt_prog_compiler_wl='-Wl,' | |
9643 lt_prog_compiler_pic='-fpic' | |
9644 lt_prog_compiler_static='-Bstatic' | |
9645 ;; | |
9646 ccc*) | |
9647 lt_prog_compiler_wl='-Wl,' | |
9648 # All Alpha code is PIC. | |
9649 lt_prog_compiler_static='-non_shared' | |
9650 ;; | |
9651 xl* | bgxl* | bgf* | mpixl*) | |
9652 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
9653 lt_prog_compiler_wl='-Wl,' | |
9654 lt_prog_compiler_pic='-qpic' | |
9655 lt_prog_compiler_static='-qstaticlink' | |
9656 ;; | |
9657 *) | |
9658 case `$CC -V 2>&1 | sed 5q` in | |
9659 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) | |
9660 # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
9661 lt_prog_compiler_pic='-KPIC' | |
9662 lt_prog_compiler_static='-Bstatic' | |
9663 lt_prog_compiler_wl='' | |
9664 ;; | |
9665 *Sun\ F* | *Sun*Fortran*) | |
9666 lt_prog_compiler_pic='-KPIC' | |
9667 lt_prog_compiler_static='-Bstatic' | |
9668 lt_prog_compiler_wl='-Qoption ld ' | |
9669 ;; | |
9670 *Sun\ C*) | |
9671 # Sun C 5.9 | |
9672 lt_prog_compiler_pic='-KPIC' | |
9673 lt_prog_compiler_static='-Bstatic' | |
9674 lt_prog_compiler_wl='-Wl,' | |
9675 ;; | |
9676 *Intel*\ [CF]*Compiler*) | |
9677 lt_prog_compiler_wl='-Wl,' | |
9678 lt_prog_compiler_pic='-fPIC' | |
9679 lt_prog_compiler_static='-static' | |
9680 ;; | |
9681 *Portland\ Group*) | |
9682 lt_prog_compiler_wl='-Wl,' | |
9683 lt_prog_compiler_pic='-fpic' | |
9684 lt_prog_compiler_static='-Bstatic' | |
9685 ;; | |
9686 esac | |
9687 ;; | |
9688 esac | |
9689 ;; | |
9690 | |
9691 newsos6) | |
9692 lt_prog_compiler_pic='-KPIC' | |
9693 lt_prog_compiler_static='-Bstatic' | |
9694 ;; | |
9695 | |
9696 *nto* | *qnx*) | |
9697 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9698 # it will coredump. | |
9699 lt_prog_compiler_pic='-fPIC -shared' | |
9700 ;; | |
9701 | |
9702 osf3* | osf4* | osf5*) | |
9703 lt_prog_compiler_wl='-Wl,' | |
9704 # All OSF/1 code is PIC. | |
9705 lt_prog_compiler_static='-non_shared' | |
9706 ;; | |
9707 | |
9708 rdos*) | |
9709 lt_prog_compiler_static='-non_shared' | |
9710 ;; | |
9711 | |
9712 solaris*) | |
9713 lt_prog_compiler_pic='-KPIC' | |
9714 lt_prog_compiler_static='-Bstatic' | |
9715 case $cc_basename in | |
9716 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
9717 lt_prog_compiler_wl='-Qoption ld ';; | |
9718 *) | |
9719 lt_prog_compiler_wl='-Wl,';; | |
9720 esac | |
9721 ;; | |
9722 | |
9723 sunos4*) | |
9724 lt_prog_compiler_wl='-Qoption ld ' | |
9725 lt_prog_compiler_pic='-PIC' | |
9726 lt_prog_compiler_static='-Bstatic' | |
9727 ;; | |
9728 | |
9729 sysv4 | sysv4.2uw2* | sysv4.3*) | |
9730 lt_prog_compiler_wl='-Wl,' | |
9731 lt_prog_compiler_pic='-KPIC' | |
9732 lt_prog_compiler_static='-Bstatic' | |
9733 ;; | |
9734 | |
9735 sysv4*MP*) | |
9736 if test -d /usr/nec ;then | |
9737 lt_prog_compiler_pic='-Kconform_pic' | |
9738 lt_prog_compiler_static='-Bstatic' | |
9739 fi | |
9740 ;; | |
9741 | |
9742 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
9743 lt_prog_compiler_wl='-Wl,' | |
9744 lt_prog_compiler_pic='-KPIC' | |
9745 lt_prog_compiler_static='-Bstatic' | |
9746 ;; | |
9747 | |
9748 unicos*) | |
9749 lt_prog_compiler_wl='-Wl,' | |
9750 lt_prog_compiler_can_build_shared=no | |
9751 ;; | |
9752 | |
9753 uts4*) | |
9754 lt_prog_compiler_pic='-pic' | |
9755 lt_prog_compiler_static='-Bstatic' | |
9756 ;; | |
9757 | |
9758 *) | |
9759 lt_prog_compiler_can_build_shared=no | |
9760 ;; | |
9761 esac | |
9762 fi | |
9763 | |
9764 case $host_os in | |
9765 # For platforms which do not support PIC, -DPIC is meaningless: | |
9766 *djgpp*) | |
9767 lt_prog_compiler_pic= | |
9768 ;; | |
9769 *) | |
9770 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
9771 ;; | |
9772 esac | |
9773 | |
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
9775 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
9776 if ${lt_cv_prog_compiler_pic+:} false; then : | |
9777 $as_echo_n "(cached) " >&6 | |
9778 else | |
9779 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
9780 fi | |
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
9782 $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
9783 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
9784 | |
9785 # | |
9786 # Check to make sure the PIC flag actually works. | |
9787 # | |
9788 if test -n "$lt_prog_compiler_pic"; then | |
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
9790 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
9791 if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
9792 $as_echo_n "(cached) " >&6 | |
9793 else | |
9794 lt_cv_prog_compiler_pic_works=no | |
9795 ac_outfile=conftest.$ac_objext | |
9796 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9797 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
9798 # Insert the option either (1) after the last *FLAGS variable, or | |
9799 # (2) before a word containing "conftest.", or (3) at the end. | |
9800 # Note that $ac_compile itself does not contain backslashes and begins | |
9801 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9802 # The option is referenced via a variable to avoid confusing sed. | |
9803 lt_compile=`echo "$ac_compile" | $SED \ | |
9804 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9806 -e 's:$: $lt_compiler_flag:'` | |
9807 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9808 (eval "$lt_compile" 2>conftest.err) | |
9809 ac_status=$? | |
9810 cat conftest.err >&5 | |
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9812 if (exit $ac_status) && test -s "$ac_outfile"; then | |
9813 # The compiler can only warn and ignore the option if not recognized | |
9814 # So say no if there are warnings other than the usual output. | |
9815 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9816 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9817 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9818 lt_cv_prog_compiler_pic_works=yes | |
9819 fi | |
9820 fi | |
9821 $RM conftest* | |
9822 | |
9823 fi | |
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
9825 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
9826 | |
9827 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
9828 case $lt_prog_compiler_pic in | |
9829 "" | " "*) ;; | |
9830 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
9831 esac | |
9832 else | |
9833 lt_prog_compiler_pic= | |
9834 lt_prog_compiler_can_build_shared=no | |
9835 fi | |
9836 | |
9837 fi | |
9838 | |
9839 | |
9840 | |
9841 | |
9842 | |
9843 | |
9844 | |
9845 | |
9846 | |
9847 | |
9848 | |
9849 # | |
9850 # Check to make sure the static flag actually works. | |
9851 # | |
9852 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
9854 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
9855 if ${lt_cv_prog_compiler_static_works+:} false; then : | |
9856 $as_echo_n "(cached) " >&6 | |
9857 else | |
9858 lt_cv_prog_compiler_static_works=no | |
9859 save_LDFLAGS="$LDFLAGS" | |
9860 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
9861 echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9862 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9863 # The linker can only warn and ignore the option if not recognized | |
9864 # So say no if there are warnings | |
9865 if test -s conftest.err; then | |
9866 # Append any errors to the config.log. | |
9867 cat conftest.err 1>&5 | |
9868 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9869 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9870 if diff conftest.exp conftest.er2 >/dev/null; then | |
9871 lt_cv_prog_compiler_static_works=yes | |
9872 fi | |
9873 else | |
9874 lt_cv_prog_compiler_static_works=yes | |
9875 fi | |
9876 fi | |
9877 $RM -r conftest* | |
9878 LDFLAGS="$save_LDFLAGS" | |
9879 | |
9880 fi | |
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
9882 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
9883 | |
9884 if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
9885 : | |
9886 else | |
9887 lt_prog_compiler_static= | |
9888 fi | |
9889 | |
9890 | |
9891 | |
9892 | |
9893 | |
9894 | |
9895 | |
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
9897 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9898 if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9899 $as_echo_n "(cached) " >&6 | |
9900 else | |
9901 lt_cv_prog_compiler_c_o=no | |
9902 $RM -r conftest 2>/dev/null | |
9903 mkdir conftest | |
9904 cd conftest | |
9905 mkdir out | |
9906 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9907 | |
9908 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
9909 # Insert the option either (1) after the last *FLAGS variable, or | |
9910 # (2) before a word containing "conftest.", or (3) at the end. | |
9911 # Note that $ac_compile itself does not contain backslashes and begins | |
9912 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9913 lt_compile=`echo "$ac_compile" | $SED \ | |
9914 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9915 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9916 -e 's:$: $lt_compiler_flag:'` | |
9917 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9918 (eval "$lt_compile" 2>out/conftest.err) | |
9919 ac_status=$? | |
9920 cat out/conftest.err >&5 | |
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9922 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9923 then | |
9924 # The compiler can only warn and ignore the option if not recognized | |
9925 # So say no if there are warnings | |
9926 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9927 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9928 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9929 lt_cv_prog_compiler_c_o=yes | |
9930 fi | |
9931 fi | |
9932 chmod u+w . 2>&5 | |
9933 $RM conftest* | |
9934 # SGI C++ compiler will create directory out/ii_files/ for | |
9935 # template instantiation | |
9936 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9937 $RM out/* && rmdir out | |
9938 cd .. | |
9939 $RM -r conftest | |
9940 $RM conftest* | |
9941 | |
9942 fi | |
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9944 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9945 | |
9946 | |
9947 | |
9948 | |
9949 | |
9950 | |
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
9952 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9953 if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9954 $as_echo_n "(cached) " >&6 | |
9955 else | |
9956 lt_cv_prog_compiler_c_o=no | |
9957 $RM -r conftest 2>/dev/null | |
9958 mkdir conftest | |
9959 cd conftest | |
9960 mkdir out | |
9961 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9962 | |
9963 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
9964 # Insert the option either (1) after the last *FLAGS variable, or | |
9965 # (2) before a word containing "conftest.", or (3) at the end. | |
9966 # Note that $ac_compile itself does not contain backslashes and begins | |
9967 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9968 lt_compile=`echo "$ac_compile" | $SED \ | |
9969 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9970 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9971 -e 's:$: $lt_compiler_flag:'` | |
9972 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9973 (eval "$lt_compile" 2>out/conftest.err) | |
9974 ac_status=$? | |
9975 cat out/conftest.err >&5 | |
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9977 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9978 then | |
9979 # The compiler can only warn and ignore the option if not recognized | |
9980 # So say no if there are warnings | |
9981 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9982 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9983 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9984 lt_cv_prog_compiler_c_o=yes | |
9985 fi | |
9986 fi | |
9987 chmod u+w . 2>&5 | |
9988 $RM conftest* | |
9989 # SGI C++ compiler will create directory out/ii_files/ for | |
9990 # template instantiation | |
9991 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9992 $RM out/* && rmdir out | |
9993 cd .. | |
9994 $RM -r conftest | |
9995 $RM conftest* | |
9996 | |
9997 fi | |
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9999 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
10000 | |
10001 | |
10002 | |
10003 | |
10004 hard_links="nottested" | |
10005 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
10006 # do not overwrite the value of need_locks provided by the user | |
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
10008 $as_echo_n "checking if we can lock with hard links... " >&6; } | |
10009 hard_links=yes | |
10010 $RM conftest* | |
10011 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
10012 touch conftest.a | |
10013 ln conftest.a conftest.b 2>&5 || hard_links=no | |
10014 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
10016 $as_echo "$hard_links" >&6; } | |
10017 if test "$hard_links" = no; then | |
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
10019 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
10020 need_locks=warn | |
10021 fi | |
10022 else | |
10023 need_locks=no | |
10024 fi | |
10025 | |
10026 | |
10027 | |
10028 | |
10029 | |
10030 | |
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
10032 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
10033 | |
10034 runpath_var= | |
10035 allow_undefined_flag= | |
10036 always_export_symbols=no | |
10037 archive_cmds= | |
10038 archive_expsym_cmds= | |
10039 compiler_needs_object=no | |
10040 enable_shared_with_static_runtimes=no | |
10041 export_dynamic_flag_spec= | |
10042 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
10043 hardcode_automatic=no | |
10044 hardcode_direct=no | |
10045 hardcode_direct_absolute=no | |
10046 hardcode_libdir_flag_spec= | |
10047 hardcode_libdir_separator= | |
10048 hardcode_minus_L=no | |
10049 hardcode_shlibpath_var=unsupported | |
10050 inherit_rpath=no | |
10051 link_all_deplibs=unknown | |
10052 module_cmds= | |
10053 module_expsym_cmds= | |
10054 old_archive_from_new_cmds= | |
10055 old_archive_from_expsyms_cmds= | |
10056 thread_safe_flag_spec= | |
10057 whole_archive_flag_spec= | |
10058 # include_expsyms should be a list of space-separated symbols to be *always* | |
10059 # included in the symbol list | |
10060 include_expsyms= | |
10061 # exclude_expsyms can be an extended regexp of symbols to exclude | |
10062 # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
10063 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
10064 # as well as any symbol that contains `d'. | |
10065 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
10066 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
10067 # platforms (ab)use it in PIC code, but their linkers get confused if | |
10068 # the symbol is explicitly referenced. Since portable code cannot | |
10069 # rely on this symbol name, it's probably fine to never include it in | |
10070 # preloaded symbol tables. | |
10071 # Exclude shared library initialization/finalization symbols. | |
10072 extract_expsyms_cmds= | |
10073 | |
10074 case $host_os in | |
10075 cygwin* | mingw* | pw32* | cegcc*) | |
10076 # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
10077 # When not using gcc, we currently assume that we are using | |
10078 # Microsoft Visual C++. | |
10079 if test "$GCC" != yes; then | |
10080 with_gnu_ld=no | |
10081 fi | |
10082 ;; | |
10083 interix*) | |
10084 # we just hope/assume this is gcc and not c89 (= MSVC++) | |
10085 with_gnu_ld=yes | |
10086 ;; | |
10087 openbsd*) | |
10088 with_gnu_ld=no | |
10089 ;; | |
10090 linux* | k*bsd*-gnu | gnu*) | |
10091 link_all_deplibs=no | |
10092 ;; | |
10093 esac | |
10094 | |
10095 ld_shlibs=yes | |
10096 | |
10097 # On some targets, GNU ld is compatible enough with the native linker | |
10098 # that we're better off using the native interface for both. | |
10099 lt_use_gnu_ld_interface=no | |
10100 if test "$with_gnu_ld" = yes; then | |
10101 case $host_os in | |
10102 aix*) | |
10103 # The AIX port of GNU ld has always aspired to compatibility | |
10104 # with the native linker. However, as the warning in the GNU ld | |
10105 # block says, versions before 2.19.5* couldn't really create working | |
10106 # shared libraries, regardless of the interface used. | |
10107 case `$LD -v 2>&1` in | |
10108 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
10109 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
10110 *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
10111 *) | |
10112 lt_use_gnu_ld_interface=yes | |
10113 ;; | |
10114 esac | |
10115 ;; | |
10116 *) | |
10117 lt_use_gnu_ld_interface=yes | |
10118 ;; | |
10119 esac | |
10120 fi | |
10121 | |
10122 if test "$lt_use_gnu_ld_interface" = yes; then | |
10123 # If archive_cmds runs LD, not CC, wlarc should be empty | |
10124 wlarc='${wl}' | |
10125 | |
10126 # Set some defaults for GNU ld with shared library support. These | |
10127 # are reset later if shared libraries are not supported. Putting them | |
10128 # here allows them to be overridden if necessary. | |
10129 runpath_var=LD_RUN_PATH | |
10130 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10131 export_dynamic_flag_spec='${wl}--export-dynamic' | |
10132 # ancient GNU ld didn't support --whole-archive et. al. | |
10133 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
10134 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
10135 else | |
10136 whole_archive_flag_spec= | |
10137 fi | |
10138 supports_anon_versioning=no | |
10139 case `$LD -v 2>&1` in | |
10140 *GNU\ gold*) supports_anon_versioning=yes ;; | |
10141 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
10142 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
10143 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
10144 *\ 2.11.*) ;; # other 2.11 versions | |
10145 *) supports_anon_versioning=yes ;; | |
10146 esac | |
10147 | |
10148 # See if GNU ld supports shared libraries. | |
10149 case $host_os in | |
10150 aix[3-9]*) | |
10151 # On AIX/PPC, the GNU linker is very broken | |
10152 if test "$host_cpu" != ia64; then | |
10153 ld_shlibs=no | |
10154 cat <<_LT_EOF 1>&2 | |
10155 | |
10156 *** Warning: the GNU linker, at least up to release 2.19, is reported | |
10157 *** to be unable to reliably create shared libraries on AIX. | |
10158 *** Therefore, libtool is disabling shared libraries support. If you | |
10159 *** really care for shared libraries, you may want to install binutils | |
10160 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
10161 *** You will then need to restart the configuration process. | |
10162 | |
10163 _LT_EOF | |
10164 fi | |
10165 ;; | |
10166 | |
10167 amigaos*) | |
10168 case $host_cpu in | |
10169 powerpc) | |
10170 # see comment about AmigaOS4 .so support | |
10171 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10172 archive_expsym_cmds='' | |
10173 ;; | |
10174 m68k) | |
10175 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)' | |
10176 hardcode_libdir_flag_spec='-L$libdir' | |
10177 hardcode_minus_L=yes | |
10178 ;; | |
10179 esac | |
10180 ;; | |
10181 | |
10182 beos*) | |
10183 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10184 allow_undefined_flag=unsupported | |
10185 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
10186 # support --undefined. This deserves some investigation. FIXME | |
10187 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10188 else | |
10189 ld_shlibs=no | |
10190 fi | |
10191 ;; | |
10192 | |
10193 cygwin* | mingw* | pw32* | cegcc*) | |
10194 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
10195 # as there is no search path for DLLs. | |
10196 hardcode_libdir_flag_spec='-L$libdir' | |
10197 export_dynamic_flag_spec='${wl}--export-all-symbols' | |
10198 allow_undefined_flag=unsupported | |
10199 always_export_symbols=no | |
10200 enable_shared_with_static_runtimes=yes | |
10201 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' | |
10202 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
10203 | |
10204 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
10205 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10206 # If the export-symbols file already is a .def file (1st line | |
10207 # is EXPORTS), use it as is; otherwise, prepend... | |
10208 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
10209 cp $export_symbols $output_objdir/$soname.def; | |
10210 else | |
10211 echo EXPORTS > $output_objdir/$soname.def; | |
10212 cat $export_symbols >> $output_objdir/$soname.def; | |
10213 fi~ | |
10214 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
10215 else | |
10216 ld_shlibs=no | |
10217 fi | |
10218 ;; | |
10219 | |
10220 haiku*) | |
10221 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10222 link_all_deplibs=yes | |
10223 ;; | |
10224 | |
10225 interix[3-9]*) | |
10226 hardcode_direct=no | |
10227 hardcode_shlibpath_var=no | |
10228 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10229 export_dynamic_flag_spec='${wl}-E' | |
10230 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
10231 # Instead, shared libraries are loaded at an image base (0x10000000 by | |
10232 # default) and relocated if they conflict, which is a slow very memory | |
10233 # consuming and fragmenting process. To avoid this, we pick a random, | |
10234 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
10235 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
10236 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
10237 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' | |
10238 ;; | |
10239 | |
10240 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
10241 tmp_diet=no | |
10242 if test "$host_os" = linux-dietlibc; then | |
10243 case $cc_basename in | |
10244 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
10245 esac | |
10246 fi | |
10247 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
10248 && test "$tmp_diet" = no | |
10249 then | |
10250 tmp_addflag=' $pic_flag' | |
10251 tmp_sharedflag='-shared' | |
10252 case $cc_basename,$host_cpu in | |
10253 pgcc*) # Portland Group C compiler | |
10254 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' | |
10255 tmp_addflag=' $pic_flag' | |
10256 ;; | |
10257 pgf77* | pgf90* | pgf95* | pgfortran*) | |
10258 # Portland Group f77 and f90 compilers | |
10259 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' | |
10260 tmp_addflag=' $pic_flag -Mnomain' ;; | |
10261 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
10262 tmp_addflag=' -i_dynamic' ;; | |
10263 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
10264 tmp_addflag=' -i_dynamic -nofor_main' ;; | |
10265 ifc* | ifort*) # Intel Fortran compiler | |
10266 tmp_addflag=' -nofor_main' ;; | |
10267 lf95*) # Lahey Fortran 8.1 | |
10268 whole_archive_flag_spec= | |
10269 tmp_sharedflag='--shared' ;; | |
10270 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
10271 tmp_sharedflag='-qmkshrobj' | |
10272 tmp_addflag= ;; | |
10273 nvcc*) # Cuda Compiler Driver 2.2 | |
10274 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' | |
10275 compiler_needs_object=yes | |
10276 ;; | |
10277 esac | |
10278 case `$CC -V 2>&1 | sed 5q` in | |
10279 *Sun\ C*) # Sun C 5.9 | |
10280 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' | |
10281 compiler_needs_object=yes | |
10282 tmp_sharedflag='-G' ;; | |
10283 *Sun\ F*) # Sun Fortran 8.3 | |
10284 tmp_sharedflag='-G' ;; | |
10285 esac | |
10286 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10287 | |
10288 if test "x$supports_anon_versioning" = xyes; then | |
10289 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10290 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10291 echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10292 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
10293 fi | |
10294 | |
10295 case $cc_basename in | |
10296 xlf* | bgf* | bgxlf* | mpixlf*) | |
10297 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
10298 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
10299 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10300 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | |
10301 if test "x$supports_anon_versioning" = xyes; then | |
10302 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
10303 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
10304 echo "local: *; };" >> $output_objdir/$libname.ver~ | |
10305 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
10306 fi | |
10307 ;; | |
10308 esac | |
10309 else | |
10310 ld_shlibs=no | |
10311 fi | |
10312 ;; | |
10313 | |
10314 netbsd* | netbsdelf*-gnu) | |
10315 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10316 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
10317 wlarc= | |
10318 else | |
10319 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10320 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10321 fi | |
10322 ;; | |
10323 | |
10324 solaris*) | |
10325 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
10326 ld_shlibs=no | |
10327 cat <<_LT_EOF 1>&2 | |
10328 | |
10329 *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
10330 *** create shared libraries on Solaris systems. Therefore, libtool | |
10331 *** is disabling shared libraries support. We urge you to upgrade GNU | |
10332 *** binutils to release 2.9.1 or newer. Another option is to modify | |
10333 *** your PATH or compiler configuration so that the native linker is | |
10334 *** used, and then restart. | |
10335 | |
10336 _LT_EOF | |
10337 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10338 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10339 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10340 else | |
10341 ld_shlibs=no | |
10342 fi | |
10343 ;; | |
10344 | |
10345 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
10346 case `$LD -v 2>&1` in | |
10347 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
10348 ld_shlibs=no | |
10349 cat <<_LT_EOF 1>&2 | |
10350 | |
10351 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
10352 *** reliably create shared libraries on SCO systems. Therefore, libtool | |
10353 *** is disabling shared libraries support. We urge you to upgrade GNU | |
10354 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
10355 *** your PATH or compiler configuration so that the native linker is | |
10356 *** used, and then restart. | |
10357 | |
10358 _LT_EOF | |
10359 ;; | |
10360 *) | |
10361 # For security reasons, it is highly recommended that you always | |
10362 # use absolute paths for naming shared libraries, and exclude the | |
10363 # DT_RUNPATH tag from executables and libraries. But doing so | |
10364 # requires that you compile everything twice, which is a pain. | |
10365 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10366 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10367 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10368 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10369 else | |
10370 ld_shlibs=no | |
10371 fi | |
10372 ;; | |
10373 esac | |
10374 ;; | |
10375 | |
10376 sunos4*) | |
10377 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10378 wlarc= | |
10379 hardcode_direct=yes | |
10380 hardcode_shlibpath_var=no | |
10381 ;; | |
10382 | |
10383 *) | |
10384 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
10385 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10386 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10387 else | |
10388 ld_shlibs=no | |
10389 fi | |
10390 ;; | |
10391 esac | |
10392 | |
10393 if test "$ld_shlibs" = no; then | |
10394 runpath_var= | |
10395 hardcode_libdir_flag_spec= | |
10396 export_dynamic_flag_spec= | |
10397 whole_archive_flag_spec= | |
10398 fi | |
10399 else | |
10400 # PORTME fill in a description of your system's linker (not GNU ld) | |
10401 case $host_os in | |
10402 aix3*) | |
10403 allow_undefined_flag=unsupported | |
10404 always_export_symbols=yes | |
10405 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' | |
10406 # Note: this linker hardcodes the directories in LIBPATH if there | |
10407 # are no directories specified by -L. | |
10408 hardcode_minus_L=yes | |
10409 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
10410 # Neither direct hardcoding nor static linking is supported with a | |
10411 # broken collect2. | |
10412 hardcode_direct=unsupported | |
10413 fi | |
10414 ;; | |
10415 | |
10416 aix[4-9]*) | |
10417 if test "$host_cpu" = ia64; then | |
10418 # On IA64, the linker does run time linking by default, so we don't | |
10419 # have to do anything special. | |
10420 aix_use_runtimelinking=no | |
10421 exp_sym_flag='-Bexport' | |
10422 no_entry_flag="" | |
10423 else | |
10424 # If we're using GNU nm, then we don't want the "-C" option. | |
10425 # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
10426 # Also, AIX nm treats weak defined symbols like other global | |
10427 # defined symbols, whereas GNU nm marks them as "W". | |
10428 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
10429 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' | |
10430 else | |
10431 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' | |
10432 fi | |
10433 aix_use_runtimelinking=no | |
10434 | |
10435 # Test if we are trying to use run time linking or normal | |
10436 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
10437 # need to do runtime linking. | |
10438 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
10439 for ld_flag in $LDFLAGS; do | |
10440 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
10441 aix_use_runtimelinking=yes | |
10442 break | |
10443 fi | |
10444 done | |
10445 ;; | |
10446 esac | |
10447 | |
10448 exp_sym_flag='-bexport' | |
10449 no_entry_flag='-bnoentry' | |
10450 fi | |
10451 | |
10452 # When large executables or shared objects are built, AIX ld can | |
10453 # have problems creating the table of contents. If linking a library | |
10454 # or program results in "error TOC overflow" add -mminimal-toc to | |
10455 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10456 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
10457 | |
10458 archive_cmds='' | |
10459 hardcode_direct=yes | |
10460 hardcode_direct_absolute=yes | |
10461 hardcode_libdir_separator=':' | |
10462 link_all_deplibs=yes | |
10463 file_list_spec='${wl}-f,' | |
10464 | |
10465 if test "$GCC" = yes; then | |
10466 case $host_os in aix4.[012]|aix4.[012].*) | |
10467 # We only want to do this on AIX 4.2 and lower, the check | |
10468 # below for broken collect2 doesn't work under 4.3+ | |
10469 collect2name=`${CC} -print-prog-name=collect2` | |
10470 if test -f "$collect2name" && | |
10471 strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
10472 then | |
10473 # We have reworked collect2 | |
10474 : | |
10475 else | |
10476 # We have old collect2 | |
10477 hardcode_direct=unsupported | |
10478 # It fails to find uninstalled libraries when the uninstalled | |
10479 # path is not listed in the libpath. Setting hardcode_minus_L | |
10480 # to unsupported forces relinking | |
10481 hardcode_minus_L=yes | |
10482 hardcode_libdir_flag_spec='-L$libdir' | |
10483 hardcode_libdir_separator= | |
10484 fi | |
10485 ;; | |
10486 esac | |
10487 shared_flag='-shared' | |
10488 if test "$aix_use_runtimelinking" = yes; then | |
10489 shared_flag="$shared_flag "'${wl}-G' | |
10490 fi | |
10491 link_all_deplibs=no | |
10492 else | |
10493 # not using gcc | |
10494 if test "$host_cpu" = ia64; then | |
10495 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
10496 # chokes on -Wl,-G. The following line is correct: | |
10497 shared_flag='-G' | |
10498 else | |
10499 if test "$aix_use_runtimelinking" = yes; then | |
10500 shared_flag='${wl}-G' | |
10501 else | |
10502 shared_flag='${wl}-bM:SRE' | |
10503 fi | |
10504 fi | |
10505 fi | |
10506 | |
10507 export_dynamic_flag_spec='${wl}-bexpall' | |
10508 # It seems that -bexpall does not export symbols beginning with | |
10509 # underscore (_), so it is better to generate a list of symbols to export. | |
10510 always_export_symbols=yes | |
10511 if test "$aix_use_runtimelinking" = yes; then | |
10512 # Warning - without using the other runtime loading flags (-brtl), | |
10513 # -berok will link without error, but may produce a broken library. | |
10514 allow_undefined_flag='-berok' | |
10515 # Determine the default libpath from the value encoded in an | |
10516 # empty executable. | |
10517 if test "${lt_cv_aix_libpath+set}" = set; then | |
10518 aix_libpath=$lt_cv_aix_libpath | |
10519 else | |
10520 if ${lt_cv_aix_libpath_+:} false; then : | |
10521 $as_echo_n "(cached) " >&6 | |
10522 else | |
10523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10524 /* end confdefs.h. */ | |
10525 | |
10526 int | |
10527 main () | |
10528 { | |
10529 | |
10530 ; | |
10531 return 0; | |
10532 } | |
10533 _ACEOF | |
10534 if ac_fn_c_try_link "$LINENO"; then : | |
10535 | |
10536 lt_aix_libpath_sed=' | |
10537 /Import File Strings/,/^$/ { | |
10538 /^0/ { | |
10539 s/^0 *\([^ ]*\) *$/\1/ | |
10540 p | |
10541 } | |
10542 }' | |
10543 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10544 # Check for a 64-bit object if we didn't find anything. | |
10545 if test -z "$lt_cv_aix_libpath_"; then | |
10546 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10547 fi | |
10548 fi | |
10549 rm -f core conftest.err conftest.$ac_objext \ | |
10550 conftest$ac_exeext conftest.$ac_ext | |
10551 if test -z "$lt_cv_aix_libpath_"; then | |
10552 lt_cv_aix_libpath_="/usr/lib:/lib" | |
10553 fi | |
10554 | |
10555 fi | |
10556 | |
10557 aix_libpath=$lt_cv_aix_libpath_ | |
10558 fi | |
10559 | |
10560 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
10561 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" | |
10562 else | |
10563 if test "$host_cpu" = ia64; then | |
10564 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
10565 allow_undefined_flag="-z nodefs" | |
10566 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" | |
10567 else | |
10568 # Determine the default libpath from the value encoded in an | |
10569 # empty executable. | |
10570 if test "${lt_cv_aix_libpath+set}" = set; then | |
10571 aix_libpath=$lt_cv_aix_libpath | |
10572 else | |
10573 if ${lt_cv_aix_libpath_+:} false; then : | |
10574 $as_echo_n "(cached) " >&6 | |
10575 else | |
10576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10577 /* end confdefs.h. */ | |
10578 | |
10579 int | |
10580 main () | |
10581 { | |
10582 | |
10583 ; | |
10584 return 0; | |
10585 } | |
10586 _ACEOF | |
10587 if ac_fn_c_try_link "$LINENO"; then : | |
10588 | |
10589 lt_aix_libpath_sed=' | |
10590 /Import File Strings/,/^$/ { | |
10591 /^0/ { | |
10592 s/^0 *\([^ ]*\) *$/\1/ | |
10593 p | |
10594 } | |
10595 }' | |
10596 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10597 # Check for a 64-bit object if we didn't find anything. | |
10598 if test -z "$lt_cv_aix_libpath_"; then | |
10599 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10600 fi | |
10601 fi | |
10602 rm -f core conftest.err conftest.$ac_objext \ | |
10603 conftest$ac_exeext conftest.$ac_ext | |
10604 if test -z "$lt_cv_aix_libpath_"; then | |
10605 lt_cv_aix_libpath_="/usr/lib:/lib" | |
10606 fi | |
10607 | |
10608 fi | |
10609 | |
10610 aix_libpath=$lt_cv_aix_libpath_ | |
10611 fi | |
10612 | |
10613 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
10614 # Warning - without using the other run time loading flags, | |
10615 # -berok will link without error, but may produce a broken library. | |
10616 no_undefined_flag=' ${wl}-bernotok' | |
10617 allow_undefined_flag=' ${wl}-berok' | |
10618 if test "$with_gnu_ld" = yes; then | |
10619 # We only use this code for GNU lds that support --whole-archive. | |
10620 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
10621 else | |
10622 # Exported symbols can be pulled into shared objects from archives | |
10623 whole_archive_flag_spec='$convenience' | |
10624 fi | |
10625 archive_cmds_need_lc=yes | |
10626 # This is similar to how AIX traditionally builds its shared libraries. | |
10627 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' | |
10628 fi | |
10629 fi | |
10630 ;; | |
10631 | |
10632 amigaos*) | |
10633 case $host_cpu in | |
10634 powerpc) | |
10635 # see comment about AmigaOS4 .so support | |
10636 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10637 archive_expsym_cmds='' | |
10638 ;; | |
10639 m68k) | |
10640 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)' | |
10641 hardcode_libdir_flag_spec='-L$libdir' | |
10642 hardcode_minus_L=yes | |
10643 ;; | |
10644 esac | |
10645 ;; | |
10646 | |
10647 bsdi[45]*) | |
10648 export_dynamic_flag_spec=-rdynamic | |
10649 ;; | |
10650 | |
10651 cygwin* | mingw* | pw32* | cegcc*) | |
10652 # When not using gcc, we currently assume that we are using | |
10653 # Microsoft Visual C++. | |
10654 # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10655 # no search path for DLLs. | |
10656 case $cc_basename in | |
10657 cl*) | |
10658 # Native MSVC | |
10659 hardcode_libdir_flag_spec=' ' | |
10660 allow_undefined_flag=unsupported | |
10661 always_export_symbols=yes | |
10662 file_list_spec='@' | |
10663 # Tell ltmain to make .lib files, not .a files. | |
10664 libext=lib | |
10665 # Tell ltmain to make .dll files, not .so files. | |
10666 shrext_cmds=".dll" | |
10667 # FIXME: Setting linknames here is a bad hack. | |
10668 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
10669 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
10670 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
10671 else | |
10672 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
10673 fi~ | |
10674 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
10675 linknames=' | |
10676 # The linker will not automatically build a static lib if we build a DLL. | |
10677 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
10678 enable_shared_with_static_runtimes=yes | |
10679 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
10680 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
10681 # Don't use ranlib | |
10682 old_postinstall_cmds='chmod 644 $oldlib' | |
10683 postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
10684 lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
10685 case $lt_outputfile in | |
10686 *.exe|*.EXE) ;; | |
10687 *) | |
10688 lt_outputfile="$lt_outputfile.exe" | |
10689 lt_tool_outputfile="$lt_tool_outputfile.exe" | |
10690 ;; | |
10691 esac~ | |
10692 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
10693 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
10694 $RM "$lt_outputfile.manifest"; | |
10695 fi' | |
10696 ;; | |
10697 *) | |
10698 # Assume MSVC wrapper | |
10699 hardcode_libdir_flag_spec=' ' | |
10700 allow_undefined_flag=unsupported | |
10701 # Tell ltmain to make .lib files, not .a files. | |
10702 libext=lib | |
10703 # Tell ltmain to make .dll files, not .so files. | |
10704 shrext_cmds=".dll" | |
10705 # FIXME: Setting linknames here is a bad hack. | |
10706 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
10707 # The linker will automatically build a .lib file if we build a DLL. | |
10708 old_archive_from_new_cmds='true' | |
10709 # FIXME: Should let the user specify the lib program. | |
10710 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10711 enable_shared_with_static_runtimes=yes | |
10712 ;; | |
10713 esac | |
10714 ;; | |
10715 | |
10716 darwin* | rhapsody*) | |
10717 | |
10718 | |
10719 archive_cmds_need_lc=no | |
10720 hardcode_direct=no | |
10721 hardcode_automatic=yes | |
10722 hardcode_shlibpath_var=unsupported | |
10723 if test "$lt_cv_ld_force_load" = "yes"; then | |
10724 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\"`' | |
10725 | |
10726 else | |
10727 whole_archive_flag_spec='' | |
10728 fi | |
10729 link_all_deplibs=yes | |
10730 allow_undefined_flag="$_lt_dar_allow_undefined" | |
10731 case $cc_basename in | |
10732 ifort*) _lt_dar_can_shared=yes ;; | |
10733 *) _lt_dar_can_shared=$GCC ;; | |
10734 esac | |
10735 if test "$_lt_dar_can_shared" = "yes"; then | |
10736 output_verbose_link_cmd=func_echo_all | |
10737 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
10738 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
10739 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}" | |
10740 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}" | |
10741 | |
10742 else | |
10743 ld_shlibs=no | |
10744 fi | |
10745 | |
10746 ;; | |
10747 | |
10748 dgux*) | |
10749 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10750 hardcode_libdir_flag_spec='-L$libdir' | |
10751 hardcode_shlibpath_var=no | |
10752 ;; | |
10753 | |
10754 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
10755 # support. Future versions do this automatically, but an explicit c++rt0.o | |
10756 # does not break anything, and helps significantly (at the cost of a little | |
10757 # extra space). | |
10758 freebsd2.2*) | |
10759 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10760 hardcode_libdir_flag_spec='-R$libdir' | |
10761 hardcode_direct=yes | |
10762 hardcode_shlibpath_var=no | |
10763 ;; | |
10764 | |
10765 # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
10766 freebsd2.*) | |
10767 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10768 hardcode_direct=yes | |
10769 hardcode_minus_L=yes | |
10770 hardcode_shlibpath_var=no | |
10771 ;; | |
10772 | |
10773 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
10774 freebsd* | dragonfly*) | |
10775 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10776 hardcode_libdir_flag_spec='-R$libdir' | |
10777 hardcode_direct=yes | |
10778 hardcode_shlibpath_var=no | |
10779 ;; | |
10780 | |
10781 hpux9*) | |
10782 if test "$GCC" = yes; then | |
10783 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' | |
10784 else | |
10785 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' | |
10786 fi | |
10787 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10788 hardcode_libdir_separator=: | |
10789 hardcode_direct=yes | |
10790 | |
10791 # hardcode_minus_L: Not really in the search PATH, | |
10792 # but as the default location of the library. | |
10793 hardcode_minus_L=yes | |
10794 export_dynamic_flag_spec='${wl}-E' | |
10795 ;; | |
10796 | |
10797 hpux10*) | |
10798 if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10799 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10800 else | |
10801 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10802 fi | |
10803 if test "$with_gnu_ld" = no; then | |
10804 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10805 hardcode_libdir_separator=: | |
10806 hardcode_direct=yes | |
10807 hardcode_direct_absolute=yes | |
10808 export_dynamic_flag_spec='${wl}-E' | |
10809 # hardcode_minus_L: Not really in the search PATH, | |
10810 # but as the default location of the library. | |
10811 hardcode_minus_L=yes | |
10812 fi | |
10813 ;; | |
10814 | |
10815 hpux11*) | |
10816 if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10817 case $host_cpu in | |
10818 hppa*64*) | |
10819 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10820 ;; | |
10821 ia64*) | |
10822 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10823 ;; | |
10824 *) | |
10825 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10826 ;; | |
10827 esac | |
10828 else | |
10829 case $host_cpu in | |
10830 hppa*64*) | |
10831 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10832 ;; | |
10833 ia64*) | |
10834 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10835 ;; | |
10836 *) | |
10837 | |
10838 # Older versions of the 11.00 compiler do not understand -b yet | |
10839 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10841 $as_echo_n "checking if $CC understands -b... " >&6; } | |
10842 if ${lt_cv_prog_compiler__b+:} false; then : | |
10843 $as_echo_n "(cached) " >&6 | |
10844 else | |
10845 lt_cv_prog_compiler__b=no | |
10846 save_LDFLAGS="$LDFLAGS" | |
10847 LDFLAGS="$LDFLAGS -b" | |
10848 echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10849 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10850 # The linker can only warn and ignore the option if not recognized | |
10851 # So say no if there are warnings | |
10852 if test -s conftest.err; then | |
10853 # Append any errors to the config.log. | |
10854 cat conftest.err 1>&5 | |
10855 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10856 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10857 if diff conftest.exp conftest.er2 >/dev/null; then | |
10858 lt_cv_prog_compiler__b=yes | |
10859 fi | |
10860 else | |
10861 lt_cv_prog_compiler__b=yes | |
10862 fi | |
10863 fi | |
10864 $RM -r conftest* | |
10865 LDFLAGS="$save_LDFLAGS" | |
10866 | |
10867 fi | |
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
10869 $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
10870 | |
10871 if test x"$lt_cv_prog_compiler__b" = xyes; then | |
10872 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10873 else | |
10874 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10875 fi | |
10876 | |
10877 ;; | |
10878 esac | |
10879 fi | |
10880 if test "$with_gnu_ld" = no; then | |
10881 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10882 hardcode_libdir_separator=: | |
10883 | |
10884 case $host_cpu in | |
10885 hppa*64*|ia64*) | |
10886 hardcode_direct=no | |
10887 hardcode_shlibpath_var=no | |
10888 ;; | |
10889 *) | |
10890 hardcode_direct=yes | |
10891 hardcode_direct_absolute=yes | |
10892 export_dynamic_flag_spec='${wl}-E' | |
10893 | |
10894 # hardcode_minus_L: Not really in the search PATH, | |
10895 # but as the default location of the library. | |
10896 hardcode_minus_L=yes | |
10897 ;; | |
10898 esac | |
10899 fi | |
10900 ;; | |
10901 | |
10902 irix5* | irix6* | nonstopux*) | |
10903 if test "$GCC" = yes; then | |
10904 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' | |
10905 # Try to use the -exported_symbol ld option, if it does not | |
10906 # work, assume that -exports_file does not work either and | |
10907 # implicitly export all symbols. | |
10908 # This should be the same for all languages, so no per-tag cache variable. | |
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
10910 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
10911 if ${lt_cv_irix_exported_symbol+:} false; then : | |
10912 $as_echo_n "(cached) " >&6 | |
10913 else | |
10914 save_LDFLAGS="$LDFLAGS" | |
10915 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
10916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10917 /* end confdefs.h. */ | |
10918 int foo (void) { return 0; } | |
10919 _ACEOF | |
10920 if ac_fn_c_try_link "$LINENO"; then : | |
10921 lt_cv_irix_exported_symbol=yes | |
10922 else | |
10923 lt_cv_irix_exported_symbol=no | |
10924 fi | |
10925 rm -f core conftest.err conftest.$ac_objext \ | |
10926 conftest$ac_exeext conftest.$ac_ext | |
10927 LDFLAGS="$save_LDFLAGS" | |
10928 fi | |
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
10930 $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
10931 if test "$lt_cv_irix_exported_symbol" = yes; then | |
10932 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' | |
10933 fi | |
10934 else | |
10935 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' | |
10936 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' | |
10937 fi | |
10938 archive_cmds_need_lc='no' | |
10939 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10940 hardcode_libdir_separator=: | |
10941 inherit_rpath=yes | |
10942 link_all_deplibs=yes | |
10943 ;; | |
10944 | |
10945 netbsd* | netbsdelf*-gnu) | |
10946 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10947 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10948 else | |
10949 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10950 fi | |
10951 hardcode_libdir_flag_spec='-R$libdir' | |
10952 hardcode_direct=yes | |
10953 hardcode_shlibpath_var=no | |
10954 ;; | |
10955 | |
10956 newsos6) | |
10957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10958 hardcode_direct=yes | |
10959 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10960 hardcode_libdir_separator=: | |
10961 hardcode_shlibpath_var=no | |
10962 ;; | |
10963 | |
10964 *nto* | *qnx*) | |
10965 ;; | |
10966 | |
10967 openbsd*) | |
10968 if test -f /usr/libexec/ld.so; then | |
10969 hardcode_direct=yes | |
10970 hardcode_shlibpath_var=no | |
10971 hardcode_direct_absolute=yes | |
10972 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10973 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10974 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
10975 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10976 export_dynamic_flag_spec='${wl}-E' | |
10977 else | |
10978 case $host_os in | |
10979 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
10980 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10981 hardcode_libdir_flag_spec='-R$libdir' | |
10982 ;; | |
10983 *) | |
10984 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10985 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10986 ;; | |
10987 esac | |
10988 fi | |
10989 else | |
10990 ld_shlibs=no | |
10991 fi | |
10992 ;; | |
10993 | |
10994 os2*) | |
10995 hardcode_libdir_flag_spec='-L$libdir' | |
10996 hardcode_minus_L=yes | |
10997 allow_undefined_flag=unsupported | |
10998 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' | |
10999 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
11000 ;; | |
11001 | |
11002 osf3*) | |
11003 if test "$GCC" = yes; then | |
11004 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
11005 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' | |
11006 else | |
11007 allow_undefined_flag=' -expect_unresolved \*' | |
11008 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' | |
11009 fi | |
11010 archive_cmds_need_lc='no' | |
11011 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11012 hardcode_libdir_separator=: | |
11013 ;; | |
11014 | |
11015 osf4* | osf5*) # as osf3* with the addition of -msym flag | |
11016 if test "$GCC" = yes; then | |
11017 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
11018 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' | |
11019 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
11020 else | |
11021 allow_undefined_flag=' -expect_unresolved \*' | |
11022 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' | |
11023 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~ | |
11024 $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' | |
11025 | |
11026 # Both c and cxx compiler support -rpath directly | |
11027 hardcode_libdir_flag_spec='-rpath $libdir' | |
11028 fi | |
11029 archive_cmds_need_lc='no' | |
11030 hardcode_libdir_separator=: | |
11031 ;; | |
11032 | |
11033 solaris*) | |
11034 no_undefined_flag=' -z defs' | |
11035 if test "$GCC" = yes; then | |
11036 wlarc='${wl}' | |
11037 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11038 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11039 $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' | |
11040 else | |
11041 case `$CC -V 2>&1` in | |
11042 *"Compilers 5.0"*) | |
11043 wlarc='' | |
11044 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11045 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11046 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
11047 ;; | |
11048 *) | |
11049 wlarc='${wl}' | |
11050 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
11051 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
11052 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
11053 ;; | |
11054 esac | |
11055 fi | |
11056 hardcode_libdir_flag_spec='-R$libdir' | |
11057 hardcode_shlibpath_var=no | |
11058 case $host_os in | |
11059 solaris2.[0-5] | solaris2.[0-5].*) ;; | |
11060 *) | |
11061 # The compiler driver will combine and reorder linker options, | |
11062 # but understands `-z linker_flag'. GCC discards it without `$wl', | |
11063 # but is careful enough not to reorder. | |
11064 # Supported since Solaris 2.6 (maybe 2.5.1?) | |
11065 if test "$GCC" = yes; then | |
11066 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
11067 else | |
11068 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
11069 fi | |
11070 ;; | |
11071 esac | |
11072 link_all_deplibs=yes | |
11073 ;; | |
11074 | |
11075 sunos4*) | |
11076 if test "x$host_vendor" = xsequent; then | |
11077 # Use $CC to link under sequent, because it throws in some extra .o | |
11078 # files that make .init and .fini sections work. | |
11079 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
11080 else | |
11081 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
11082 fi | |
11083 hardcode_libdir_flag_spec='-L$libdir' | |
11084 hardcode_direct=yes | |
11085 hardcode_minus_L=yes | |
11086 hardcode_shlibpath_var=no | |
11087 ;; | |
11088 | |
11089 sysv4) | |
11090 case $host_vendor in | |
11091 sni) | |
11092 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11093 hardcode_direct=yes # is this really true??? | |
11094 ;; | |
11095 siemens) | |
11096 ## LD is ld it makes a PLAMLIB | |
11097 ## CC just makes a GrossModule. | |
11098 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
11099 reload_cmds='$CC -r -o $output$reload_objs' | |
11100 hardcode_direct=no | |
11101 ;; | |
11102 motorola) | |
11103 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11104 hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
11105 ;; | |
11106 esac | |
11107 runpath_var='LD_RUN_PATH' | |
11108 hardcode_shlibpath_var=no | |
11109 ;; | |
11110 | |
11111 sysv4.3*) | |
11112 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11113 hardcode_shlibpath_var=no | |
11114 export_dynamic_flag_spec='-Bexport' | |
11115 ;; | |
11116 | |
11117 sysv4*MP*) | |
11118 if test -d /usr/nec; then | |
11119 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11120 hardcode_shlibpath_var=no | |
11121 runpath_var=LD_RUN_PATH | |
11122 hardcode_runpath_var=yes | |
11123 ld_shlibs=yes | |
11124 fi | |
11125 ;; | |
11126 | |
11127 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
11128 no_undefined_flag='${wl}-z,text' | |
11129 archive_cmds_need_lc=no | |
11130 hardcode_shlibpath_var=no | |
11131 runpath_var='LD_RUN_PATH' | |
11132 | |
11133 if test "$GCC" = yes; then | |
11134 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11135 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11136 else | |
11137 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11138 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11139 fi | |
11140 ;; | |
11141 | |
11142 sysv5* | sco3.2v5* | sco5v6*) | |
11143 # Note: We can NOT use -z defs as we might desire, because we do not | |
11144 # link with -lc, and that would cause any symbols used from libc to | |
11145 # always be unresolved, which means just about no library would | |
11146 # ever link correctly. If we're not using GNU ld we use -z text | |
11147 # though, which does catch some bad symbols but isn't as heavy-handed | |
11148 # as -z defs. | |
11149 no_undefined_flag='${wl}-z,text' | |
11150 allow_undefined_flag='${wl}-z,nodefs' | |
11151 archive_cmds_need_lc=no | |
11152 hardcode_shlibpath_var=no | |
11153 hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
11154 hardcode_libdir_separator=':' | |
11155 link_all_deplibs=yes | |
11156 export_dynamic_flag_spec='${wl}-Bexport' | |
11157 runpath_var='LD_RUN_PATH' | |
11158 | |
11159 if test "$GCC" = yes; then | |
11160 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11161 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11162 else | |
11163 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11164 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11165 fi | |
11166 ;; | |
11167 | |
11168 uts4*) | |
11169 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11170 hardcode_libdir_flag_spec='-L$libdir' | |
11171 hardcode_shlibpath_var=no | |
11172 ;; | |
11173 | |
11174 *) | |
11175 ld_shlibs=no | |
11176 ;; | |
11177 esac | |
11178 | |
11179 if test x$host_vendor = xsni; then | |
11180 case $host in | |
11181 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
11182 export_dynamic_flag_spec='${wl}-Blargedynsym' | |
11183 ;; | |
11184 esac | |
11185 fi | |
11186 fi | |
11187 | |
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
11189 $as_echo "$ld_shlibs" >&6; } | |
11190 test "$ld_shlibs" = no && can_build_shared=no | |
11191 | |
11192 with_gnu_ld=$with_gnu_ld | |
11193 | |
11194 | |
11195 | |
11196 | |
11197 | |
11198 | |
11199 | |
11200 | |
11201 | |
11202 | |
11203 | |
11204 | |
11205 | |
11206 | |
11207 | |
11208 # | |
11209 # Do we need to explicitly link libc? | |
11210 # | |
11211 case "x$archive_cmds_need_lc" in | |
11212 x|xyes) | |
11213 # Assume -lc should be added | |
11214 archive_cmds_need_lc=yes | |
11215 | |
11216 if test "$enable_shared" = yes && test "$GCC" = yes; then | |
11217 case $archive_cmds in | |
11218 *'~'*) | |
11219 # FIXME: we may have to deal with multi-command sequences. | |
11220 ;; | |
11221 '$CC '*) | |
11222 # Test whether the compiler implicitly links with -lc since on some | |
11223 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
11224 # to ld, don't add -lc before -lgcc. | |
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
11226 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
11227 if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
11228 $as_echo_n "(cached) " >&6 | |
11229 else | |
11230 $RM conftest* | |
11231 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11232 | |
11233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
11234 (eval $ac_compile) 2>&5 | |
11235 ac_status=$? | |
11236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11237 test $ac_status = 0; } 2>conftest.err; then | |
11238 soname=conftest | |
11239 lib=conftest | |
11240 libobjs=conftest.$ac_objext | |
11241 deplibs= | |
11242 wl=$lt_prog_compiler_wl | |
11243 pic_flag=$lt_prog_compiler_pic | |
11244 compiler_flags=-v | |
11245 linker_flags=-v | |
11246 verstring= | |
11247 output_objdir=. | |
11248 libname=conftest | |
11249 lt_save_allow_undefined_flag=$allow_undefined_flag | |
11250 allow_undefined_flag= | |
11251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
11252 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
11253 ac_status=$? | |
11254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11255 test $ac_status = 0; } | |
11256 then | |
11257 lt_cv_archive_cmds_need_lc=no | |
11258 else | |
11259 lt_cv_archive_cmds_need_lc=yes | |
11260 fi | |
11261 allow_undefined_flag=$lt_save_allow_undefined_flag | |
11262 else | |
11263 cat conftest.err 1>&5 | |
11264 fi | |
11265 $RM conftest* | |
11266 | |
11267 fi | |
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
11269 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
11270 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
11271 ;; | |
11272 esac | |
11273 fi | |
11274 ;; | |
11275 esac | |
11276 | |
11277 | |
11278 | |
11279 | |
11280 | |
11281 | |
11282 | |
11283 | |
11284 | |
11285 | |
11286 | |
11287 | |
11288 | |
11289 | |
11290 | |
11291 | |
11292 | |
11293 | |
11294 | |
11295 | |
11296 | |
11297 | |
11298 | |
11299 | |
11300 | |
11301 | |
11302 | |
11303 | |
11304 | |
11305 | |
11306 | |
11307 | |
11308 | |
11309 | |
11310 | |
11311 | |
11312 | |
11313 | |
11314 | |
11315 | |
11316 | |
11317 | |
11318 | |
11319 | |
11320 | |
11321 | |
11322 | |
11323 | |
11324 | |
11325 | |
11326 | |
11327 | |
11328 | |
11329 | |
11330 | |
11331 | |
11332 | |
11333 | |
11334 | |
11335 | |
11336 | |
11337 | |
11338 | |
11339 | |
11340 | |
11341 | |
11342 | |
11343 | |
11344 | |
11345 | |
11346 | |
11347 | |
11348 | |
11349 | |
11350 | |
11351 | |
11352 | |
11353 | |
11354 | |
11355 | |
11356 | |
11357 | |
11358 | |
11359 | |
11360 | |
11361 | |
11362 | |
11363 | |
11364 | |
11365 | |
11366 | |
11367 | |
11368 | |
11369 | |
11370 | |
11371 | |
11372 | |
11373 | |
11374 | |
11375 | |
11376 | |
11377 | |
11378 | |
11379 | |
11380 | |
11381 | |
11382 | |
11383 | |
11384 | |
11385 | |
11386 | |
11387 | |
11388 | |
11389 | |
11390 | |
11391 | |
11392 | |
11393 | |
11394 | |
11395 | |
11396 | |
11397 | |
11398 | |
11399 | |
11400 | |
11401 | |
11402 | |
11403 | |
11404 | |
11405 | |
11406 | |
11407 | |
11408 | |
11409 | |
11410 | |
11411 | |
11412 | |
11413 | |
11414 | |
11415 | |
11416 | |
11417 | |
11418 | |
11419 | |
11420 | |
11421 | |
11422 | |
11423 | |
11424 | |
11425 | |
11426 | |
11427 | |
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
11429 $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
11430 | |
11431 if test "$GCC" = yes; then | |
11432 case $host_os in | |
11433 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
11434 *) lt_awk_arg="/^libraries:/" ;; | |
11435 esac | |
11436 case $host_os in | |
11437 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
11438 *) lt_sed_strip_eq="s,=/,/,g" ;; | |
11439 esac | |
11440 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
11441 case $lt_search_path_spec in | |
11442 *\;*) | |
11443 # if the path contains ";" then we assume it to be the separator | |
11444 # otherwise default to the standard path separator (i.e. ":") - it is | |
11445 # assumed that no part of a normal pathname contains ";" but that should | |
11446 # okay in the real world where ";" in dirpaths is itself problematic. | |
11447 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
11448 ;; | |
11449 *) | |
11450 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
11451 ;; | |
11452 esac | |
11453 # Ok, now we have the path, separated by spaces, we can step through it | |
11454 # and add multilib dir if necessary. | |
11455 lt_tmp_lt_search_path_spec= | |
11456 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
11457 for lt_sys_path in $lt_search_path_spec; do | |
11458 if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
11459 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
11460 else | |
11461 test -d "$lt_sys_path" && \ | |
11462 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
11463 fi | |
11464 done | |
11465 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
11466 BEGIN {RS=" "; FS="/|\n";} { | |
11467 lt_foo=""; | |
11468 lt_count=0; | |
11469 for (lt_i = NF; lt_i > 0; lt_i--) { | |
11470 if ($lt_i != "" && $lt_i != ".") { | |
11471 if ($lt_i == "..") { | |
11472 lt_count++; | |
11473 } else { | |
11474 if (lt_count == 0) { | |
11475 lt_foo="/" $lt_i lt_foo; | |
11476 } else { | |
11477 lt_count--; | |
11478 } | |
11479 } | |
11480 } | |
11481 } | |
11482 if (lt_foo != "") { lt_freq[lt_foo]++; } | |
11483 if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
11484 }'` | |
11485 # AWK program above erroneously prepends '/' to C:/dos/paths | |
11486 # for these hosts. | |
11487 case $host_os in | |
11488 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
11489 $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
11490 esac | |
11491 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
11492 else | |
11493 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11494 fi | |
11495 library_names_spec= | |
11496 libname_spec='lib$name' | |
11497 soname_spec= | |
11498 shrext_cmds=".so" | |
11499 postinstall_cmds= | |
11500 postuninstall_cmds= | |
11501 finish_cmds= | |
11502 finish_eval= | |
11503 shlibpath_var= | |
11504 shlibpath_overrides_runpath=unknown | |
11505 version_type=none | |
11506 dynamic_linker="$host_os ld.so" | |
11507 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
11508 need_lib_prefix=unknown | |
11509 hardcode_into_libs=no | |
11510 | |
11511 # when you set need_version to no, make sure it does not cause -set_version | |
11512 # flags to be left without arguments | |
11513 need_version=unknown | |
11514 | |
11515 case $host_os in | |
11516 aix3*) | |
11517 version_type=linux # correct to gnu/linux during the next big refactor | |
11518 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
11519 shlibpath_var=LIBPATH | |
11520 | |
11521 # AIX 3 has no versioning support, so we append a major version to the name. | |
11522 soname_spec='${libname}${release}${shared_ext}$major' | |
11523 ;; | |
11524 | |
11525 aix[4-9]*) | |
11526 version_type=linux # correct to gnu/linux during the next big refactor | |
11527 need_lib_prefix=no | |
11528 need_version=no | |
11529 hardcode_into_libs=yes | |
11530 if test "$host_cpu" = ia64; then | |
11531 # AIX 5 supports IA64 | |
11532 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
11533 shlibpath_var=LD_LIBRARY_PATH | |
11534 else | |
11535 # With GCC up to 2.95.x, collect2 would create an import file | |
11536 # for dependence libraries. The import file would start with | |
11537 # the line `#! .'. This would cause the generated library to | |
11538 # depend on `.', always an invalid library. This was fixed in | |
11539 # development snapshots of GCC prior to 3.0. | |
11540 case $host_os in | |
11541 aix4 | aix4.[01] | aix4.[01].*) | |
11542 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
11543 echo ' yes ' | |
11544 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
11545 : | |
11546 else | |
11547 can_build_shared=no | |
11548 fi | |
11549 ;; | |
11550 esac | |
11551 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
11552 # soname into executable. Probably we can add versioning support to | |
11553 # collect2, so additional links can be useful in future. | |
11554 if test "$aix_use_runtimelinking" = yes; then | |
11555 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
11556 # instead of lib<name>.a to let people know that these are not | |
11557 # typical AIX shared libraries. | |
11558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11559 else | |
11560 # We preserve .a as extension for shared libraries through AIX4.2 | |
11561 # and later when we are not doing run time linking. | |
11562 library_names_spec='${libname}${release}.a $libname.a' | |
11563 soname_spec='${libname}${release}${shared_ext}$major' | |
11564 fi | |
11565 shlibpath_var=LIBPATH | |
11566 fi | |
11567 ;; | |
11568 | |
11569 amigaos*) | |
11570 case $host_cpu in | |
11571 powerpc) | |
11572 # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11573 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
11574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11575 ;; | |
11576 m68k) | |
11577 library_names_spec='$libname.ixlibrary $libname.a' | |
11578 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
11579 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' | |
11580 ;; | |
11581 esac | |
11582 ;; | |
11583 | |
11584 beos*) | |
11585 library_names_spec='${libname}${shared_ext}' | |
11586 dynamic_linker="$host_os ld.so" | |
11587 shlibpath_var=LIBRARY_PATH | |
11588 ;; | |
11589 | |
11590 bsdi[45]*) | |
11591 version_type=linux # correct to gnu/linux during the next big refactor | |
11592 need_version=no | |
11593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11594 soname_spec='${libname}${release}${shared_ext}$major' | |
11595 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11596 shlibpath_var=LD_LIBRARY_PATH | |
11597 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11598 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11599 # the default ld.so.conf also contains /usr/contrib/lib and | |
11600 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11601 # libtool to hard-code these into programs | |
11602 ;; | |
11603 | |
11604 cygwin* | mingw* | pw32* | cegcc*) | |
11605 version_type=windows | |
11606 shrext_cmds=".dll" | |
11607 need_version=no | |
11608 need_lib_prefix=no | |
11609 | |
11610 case $GCC,$cc_basename in | |
11611 yes,*) | |
11612 # gcc | |
11613 library_names_spec='$libname.dll.a' | |
11614 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11615 postinstall_cmds='base_file=`basename \${file}`~ | |
11616 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11617 dldir=$destdir/`dirname \$dlpath`~ | |
11618 test -d \$dldir || mkdir -p \$dldir~ | |
11619 $install_prog $dir/$dlname \$dldir/$dlname~ | |
11620 chmod a+x \$dldir/$dlname~ | |
11621 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11622 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11623 fi' | |
11624 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11625 dlpath=$dir/\$dldll~ | |
11626 $RM \$dlpath' | |
11627 shlibpath_overrides_runpath=yes | |
11628 | |
11629 case $host_os in | |
11630 cygwin*) | |
11631 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11632 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11633 | |
11634 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
11635 ;; | |
11636 mingw* | cegcc*) | |
11637 # MinGW DLLs use traditional 'lib' prefix | |
11638 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11639 ;; | |
11640 pw32*) | |
11641 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11642 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11643 ;; | |
11644 esac | |
11645 dynamic_linker='Win32 ld.exe' | |
11646 ;; | |
11647 | |
11648 *,cl*) | |
11649 # Native MSVC | |
11650 libname_spec='$name' | |
11651 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11652 library_names_spec='${libname}.dll.lib' | |
11653 | |
11654 case $build_os in | |
11655 mingw*) | |
11656 sys_lib_search_path_spec= | |
11657 lt_save_ifs=$IFS | |
11658 IFS=';' | |
11659 for lt_path in $LIB | |
11660 do | |
11661 IFS=$lt_save_ifs | |
11662 # Let DOS variable expansion print the short 8.3 style file name. | |
11663 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
11664 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
11665 done | |
11666 IFS=$lt_save_ifs | |
11667 # Convert to MSYS style. | |
11668 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
11669 ;; | |
11670 cygwin*) | |
11671 # Convert to unix form, then to dos form, then back to unix form | |
11672 # but this time dos style (no spaces!) so that the unix form looks | |
11673 # like /cygdrive/c/PROGRA~1:/cygdr... | |
11674 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
11675 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
11676 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11677 ;; | |
11678 *) | |
11679 sys_lib_search_path_spec="$LIB" | |
11680 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
11681 # It is most probably a Windows format PATH. | |
11682 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
11683 else | |
11684 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11685 fi | |
11686 # FIXME: find the short name or the path components, as spaces are | |
11687 # common. (e.g. "Program Files" -> "PROGRA~1") | |
11688 ;; | |
11689 esac | |
11690 | |
11691 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11692 postinstall_cmds='base_file=`basename \${file}`~ | |
11693 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11694 dldir=$destdir/`dirname \$dlpath`~ | |
11695 test -d \$dldir || mkdir -p \$dldir~ | |
11696 $install_prog $dir/$dlname \$dldir/$dlname' | |
11697 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11698 dlpath=$dir/\$dldll~ | |
11699 $RM \$dlpath' | |
11700 shlibpath_overrides_runpath=yes | |
11701 dynamic_linker='Win32 link.exe' | |
11702 ;; | |
11703 | |
11704 *) | |
11705 # Assume MSVC wrapper | |
11706 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
11707 dynamic_linker='Win32 ld.exe' | |
11708 ;; | |
11709 esac | |
11710 # FIXME: first we should search . and the directory the executable is in | |
11711 shlibpath_var=PATH | |
11712 ;; | |
11713 | |
11714 darwin* | rhapsody*) | |
11715 dynamic_linker="$host_os dyld" | |
11716 version_type=darwin | |
11717 need_lib_prefix=no | |
11718 need_version=no | |
11719 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
11720 soname_spec='${libname}${release}${major}$shared_ext' | |
11721 shlibpath_overrides_runpath=yes | |
11722 shlibpath_var=DYLD_LIBRARY_PATH | |
11723 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
11724 | |
11725 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
11726 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11727 ;; | |
11728 | |
11729 dgux*) | |
11730 version_type=linux # correct to gnu/linux during the next big refactor | |
11731 need_lib_prefix=no | |
11732 need_version=no | |
11733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
11734 soname_spec='${libname}${release}${shared_ext}$major' | |
11735 shlibpath_var=LD_LIBRARY_PATH | |
11736 ;; | |
11737 | |
11738 freebsd* | dragonfly*) | |
11739 # DragonFly does not have aout. When/if they implement a new | |
11740 # versioning mechanism, adjust this. | |
11741 if test -x /usr/bin/objformat; then | |
11742 objformat=`/usr/bin/objformat` | |
11743 else | |
11744 case $host_os in | |
11745 freebsd[23].*) objformat=aout ;; | |
11746 *) objformat=elf ;; | |
11747 esac | |
11748 fi | |
11749 version_type=freebsd-$objformat | |
11750 case $version_type in | |
11751 freebsd-elf*) | |
11752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11753 need_version=no | |
11754 need_lib_prefix=no | |
11755 ;; | |
11756 freebsd-*) | |
11757 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
11758 need_version=yes | |
11759 ;; | |
11760 esac | |
11761 shlibpath_var=LD_LIBRARY_PATH | |
11762 case $host_os in | |
11763 freebsd2.*) | |
11764 shlibpath_overrides_runpath=yes | |
11765 ;; | |
11766 freebsd3.[01]* | freebsdelf3.[01]*) | |
11767 shlibpath_overrides_runpath=yes | |
11768 hardcode_into_libs=yes | |
11769 ;; | |
11770 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11771 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11772 shlibpath_overrides_runpath=no | |
11773 hardcode_into_libs=yes | |
11774 ;; | |
11775 *) # from 4.6 on, and DragonFly | |
11776 shlibpath_overrides_runpath=yes | |
11777 hardcode_into_libs=yes | |
11778 ;; | |
11779 esac | |
11780 ;; | |
11781 | |
11782 haiku*) | |
11783 version_type=linux # correct to gnu/linux during the next big refactor | |
11784 need_lib_prefix=no | |
11785 need_version=no | |
11786 dynamic_linker="$host_os runtime_loader" | |
11787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11788 soname_spec='${libname}${release}${shared_ext}$major' | |
11789 shlibpath_var=LIBRARY_PATH | |
11790 shlibpath_overrides_runpath=yes | |
11791 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
11792 hardcode_into_libs=yes | |
11793 ;; | |
11794 | |
11795 hpux9* | hpux10* | hpux11*) | |
11796 # Give a soname corresponding to the major version so that dld.sl refuses to | |
11797 # link against other versions. | |
11798 version_type=sunos | |
11799 need_lib_prefix=no | |
11800 need_version=no | |
11801 case $host_cpu in | |
11802 ia64*) | |
11803 shrext_cmds='.so' | |
11804 hardcode_into_libs=yes | |
11805 dynamic_linker="$host_os dld.so" | |
11806 shlibpath_var=LD_LIBRARY_PATH | |
11807 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11809 soname_spec='${libname}${release}${shared_ext}$major' | |
11810 if test "X$HPUX_IA64_MODE" = X32; then | |
11811 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11812 else | |
11813 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11814 fi | |
11815 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11816 ;; | |
11817 hppa*64*) | |
11818 shrext_cmds='.sl' | |
11819 hardcode_into_libs=yes | |
11820 dynamic_linker="$host_os dld.sl" | |
11821 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11822 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11824 soname_spec='${libname}${release}${shared_ext}$major' | |
11825 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11826 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11827 ;; | |
11828 *) | |
11829 shrext_cmds='.sl' | |
11830 dynamic_linker="$host_os dld.sl" | |
11831 shlibpath_var=SHLIB_PATH | |
11832 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
11833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11834 soname_spec='${libname}${release}${shared_ext}$major' | |
11835 ;; | |
11836 esac | |
11837 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
11838 postinstall_cmds='chmod 555 $lib' | |
11839 # or fails outright, so override atomically: | |
11840 install_override_mode=555 | |
11841 ;; | |
11842 | |
11843 interix[3-9]*) | |
11844 version_type=linux # correct to gnu/linux during the next big refactor | |
11845 need_lib_prefix=no | |
11846 need_version=no | |
11847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11848 soname_spec='${libname}${release}${shared_ext}$major' | |
11849 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
11850 shlibpath_var=LD_LIBRARY_PATH | |
11851 shlibpath_overrides_runpath=no | |
11852 hardcode_into_libs=yes | |
11853 ;; | |
11854 | |
11855 irix5* | irix6* | nonstopux*) | |
11856 case $host_os in | |
11857 nonstopux*) version_type=nonstopux ;; | |
11858 *) | |
11859 if test "$lt_cv_prog_gnu_ld" = yes; then | |
11860 version_type=linux # correct to gnu/linux during the next big refactor | |
11861 else | |
11862 version_type=irix | |
11863 fi ;; | |
11864 esac | |
11865 need_lib_prefix=no | |
11866 need_version=no | |
11867 soname_spec='${libname}${release}${shared_ext}$major' | |
11868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11869 case $host_os in | |
11870 irix5* | nonstopux*) | |
11871 libsuff= shlibsuff= | |
11872 ;; | |
11873 *) | |
11874 case $LD in # libtool.m4 will add one of these switches to LD | |
11875 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11876 libsuff= shlibsuff= libmagic=32-bit;; | |
11877 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11878 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11879 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11880 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11881 *) libsuff= shlibsuff= libmagic=never-match;; | |
11882 esac | |
11883 ;; | |
11884 esac | |
11885 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11886 shlibpath_overrides_runpath=no | |
11887 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
11888 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
11889 hardcode_into_libs=yes | |
11890 ;; | |
11891 | |
11892 # No shared lib support for Linux oldld, aout, or coff. | |
11893 linux*oldld* | linux*aout* | linux*coff*) | |
11894 dynamic_linker=no | |
11895 ;; | |
11896 | |
11897 # This must be glibc/ELF. | |
11898 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
11899 version_type=linux # correct to gnu/linux during the next big refactor | |
11900 need_lib_prefix=no | |
11901 need_version=no | |
11902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11903 soname_spec='${libname}${release}${shared_ext}$major' | |
11904 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11905 shlibpath_var=LD_LIBRARY_PATH | |
11906 shlibpath_overrides_runpath=no | |
11907 | |
11908 # Some binutils ld are patched to set DT_RUNPATH | |
11909 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
11910 $as_echo_n "(cached) " >&6 | |
11911 else | |
11912 lt_cv_shlibpath_overrides_runpath=no | |
11913 save_LDFLAGS=$LDFLAGS | |
11914 save_libdir=$libdir | |
11915 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11916 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
11917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11918 /* end confdefs.h. */ | |
11919 | |
11920 int | |
11921 main () | |
11922 { | |
11923 | |
11924 ; | |
11925 return 0; | |
11926 } | |
11927 _ACEOF | |
11928 if ac_fn_c_try_link "$LINENO"; then : | |
11929 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
11930 lt_cv_shlibpath_overrides_runpath=yes | |
11931 fi | |
11932 fi | |
11933 rm -f core conftest.err conftest.$ac_objext \ | |
11934 conftest$ac_exeext conftest.$ac_ext | |
11935 LDFLAGS=$save_LDFLAGS | |
11936 libdir=$save_libdir | |
11937 | |
11938 fi | |
11939 | |
11940 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
11941 | |
11942 # This implies no fast_install, which is unacceptable. | |
11943 # Some rework will be needed to allow for fast_install | |
11944 # before this can be enabled. | |
11945 hardcode_into_libs=yes | |
11946 | |
11947 # Append ld.so.conf contents to the search path | |
11948 if test -f /etc/ld.so.conf; then | |
11949 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' ' '` | |
11950 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
11951 fi | |
11952 | |
11953 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
11954 # powerpc, because MkLinux only supported shared libraries with the | |
11955 # GNU dynamic linker. Since this was broken with cross compilers, | |
11956 # most powerpc-linux boxes support dynamic linking these days and | |
11957 # people can always --disable-shared, the test was removed, and we | |
11958 # assume the GNU/Linux dynamic linker is in use. | |
11959 dynamic_linker='GNU/Linux ld.so' | |
11960 ;; | |
11961 | |
11962 netbsdelf*-gnu) | |
11963 version_type=linux | |
11964 need_lib_prefix=no | |
11965 need_version=no | |
11966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11967 soname_spec='${libname}${release}${shared_ext}$major' | |
11968 shlibpath_var=LD_LIBRARY_PATH | |
11969 shlibpath_overrides_runpath=no | |
11970 hardcode_into_libs=yes | |
11971 dynamic_linker='NetBSD ld.elf_so' | |
11972 ;; | |
11973 | |
11974 netbsd*) | |
11975 version_type=sunos | |
11976 need_lib_prefix=no | |
11977 need_version=no | |
11978 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11980 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11981 dynamic_linker='NetBSD (a.out) ld.so' | |
11982 else | |
11983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11984 soname_spec='${libname}${release}${shared_ext}$major' | |
11985 dynamic_linker='NetBSD ld.elf_so' | |
11986 fi | |
11987 shlibpath_var=LD_LIBRARY_PATH | |
11988 shlibpath_overrides_runpath=yes | |
11989 hardcode_into_libs=yes | |
11990 ;; | |
11991 | |
11992 newsos6) | |
11993 version_type=linux # correct to gnu/linux during the next big refactor | |
11994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11995 shlibpath_var=LD_LIBRARY_PATH | |
11996 shlibpath_overrides_runpath=yes | |
11997 ;; | |
11998 | |
11999 *nto* | *qnx*) | |
12000 version_type=qnx | |
12001 need_lib_prefix=no | |
12002 need_version=no | |
12003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12004 soname_spec='${libname}${release}${shared_ext}$major' | |
12005 shlibpath_var=LD_LIBRARY_PATH | |
12006 shlibpath_overrides_runpath=no | |
12007 hardcode_into_libs=yes | |
12008 dynamic_linker='ldqnx.so' | |
12009 ;; | |
12010 | |
12011 openbsd*) | |
12012 version_type=sunos | |
12013 sys_lib_dlsearch_path_spec="/usr/lib" | |
12014 need_lib_prefix=no | |
12015 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
12016 case $host_os in | |
12017 openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
12018 *) need_version=no ;; | |
12019 esac | |
12020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12022 shlibpath_var=LD_LIBRARY_PATH | |
12023 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
12024 case $host_os in | |
12025 openbsd2.[89] | openbsd2.[89].*) | |
12026 shlibpath_overrides_runpath=no | |
12027 ;; | |
12028 *) | |
12029 shlibpath_overrides_runpath=yes | |
12030 ;; | |
12031 esac | |
12032 else | |
12033 shlibpath_overrides_runpath=yes | |
12034 fi | |
12035 ;; | |
12036 | |
12037 os2*) | |
12038 libname_spec='$name' | |
12039 shrext_cmds=".dll" | |
12040 need_lib_prefix=no | |
12041 library_names_spec='$libname${shared_ext} $libname.a' | |
12042 dynamic_linker='OS/2 ld.exe' | |
12043 shlibpath_var=LIBPATH | |
12044 ;; | |
12045 | |
12046 osf3* | osf4* | osf5*) | |
12047 version_type=osf | |
12048 need_lib_prefix=no | |
12049 need_version=no | |
12050 soname_spec='${libname}${release}${shared_ext}$major' | |
12051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12052 shlibpath_var=LD_LIBRARY_PATH | |
12053 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
12054 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
12055 ;; | |
12056 | |
12057 rdos*) | |
12058 dynamic_linker=no | |
12059 ;; | |
12060 | |
12061 solaris*) | |
12062 version_type=linux # correct to gnu/linux during the next big refactor | |
12063 need_lib_prefix=no | |
12064 need_version=no | |
12065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12066 soname_spec='${libname}${release}${shared_ext}$major' | |
12067 shlibpath_var=LD_LIBRARY_PATH | |
12068 shlibpath_overrides_runpath=yes | |
12069 hardcode_into_libs=yes | |
12070 # ldd complains unless libraries are executable | |
12071 postinstall_cmds='chmod +x $lib' | |
12072 ;; | |
12073 | |
12074 sunos4*) | |
12075 version_type=sunos | |
12076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12077 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
12078 shlibpath_var=LD_LIBRARY_PATH | |
12079 shlibpath_overrides_runpath=yes | |
12080 if test "$with_gnu_ld" = yes; then | |
12081 need_lib_prefix=no | |
12082 fi | |
12083 need_version=yes | |
12084 ;; | |
12085 | |
12086 sysv4 | sysv4.3*) | |
12087 version_type=linux # correct to gnu/linux during the next big refactor | |
12088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12089 soname_spec='${libname}${release}${shared_ext}$major' | |
12090 shlibpath_var=LD_LIBRARY_PATH | |
12091 case $host_vendor in | |
12092 sni) | |
12093 shlibpath_overrides_runpath=no | |
12094 need_lib_prefix=no | |
12095 runpath_var=LD_RUN_PATH | |
12096 ;; | |
12097 siemens) | |
12098 need_lib_prefix=no | |
12099 ;; | |
12100 motorola) | |
12101 need_lib_prefix=no | |
12102 need_version=no | |
12103 shlibpath_overrides_runpath=no | |
12104 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
12105 ;; | |
12106 esac | |
12107 ;; | |
12108 | |
12109 sysv4*MP*) | |
12110 if test -d /usr/nec ;then | |
12111 version_type=linux # correct to gnu/linux during the next big refactor | |
12112 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
12113 soname_spec='$libname${shared_ext}.$major' | |
12114 shlibpath_var=LD_LIBRARY_PATH | |
12115 fi | |
12116 ;; | |
12117 | |
12118 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
12119 version_type=freebsd-elf | |
12120 need_lib_prefix=no | |
12121 need_version=no | |
12122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12123 soname_spec='${libname}${release}${shared_ext}$major' | |
12124 shlibpath_var=LD_LIBRARY_PATH | |
12125 shlibpath_overrides_runpath=yes | |
12126 hardcode_into_libs=yes | |
12127 if test "$with_gnu_ld" = yes; then | |
12128 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
12129 else | |
12130 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
12131 case $host_os in | |
12132 sco3.2v5*) | |
12133 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
12134 ;; | |
12135 esac | |
12136 fi | |
12137 sys_lib_dlsearch_path_spec='/usr/lib' | |
12138 ;; | |
12139 | |
12140 tpf*) | |
12141 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
12142 version_type=linux # correct to gnu/linux during the next big refactor | |
12143 need_lib_prefix=no | |
12144 need_version=no | |
12145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12146 shlibpath_var=LD_LIBRARY_PATH | |
12147 shlibpath_overrides_runpath=no | |
12148 hardcode_into_libs=yes | |
12149 ;; | |
12150 | |
12151 uts4*) | |
12152 version_type=linux # correct to gnu/linux during the next big refactor | |
12153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12154 soname_spec='${libname}${release}${shared_ext}$major' | |
12155 shlibpath_var=LD_LIBRARY_PATH | |
12156 ;; | |
12157 | |
12158 *) | |
12159 dynamic_linker=no | |
12160 ;; | |
12161 esac | |
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
12163 $as_echo "$dynamic_linker" >&6; } | |
12164 test "$dynamic_linker" = no && can_build_shared=no | |
12165 | |
12166 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
12167 if test "$GCC" = yes; then | |
12168 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
12169 fi | |
12170 | |
12171 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
12172 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
12173 fi | |
12174 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
12175 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
12176 fi | |
12177 | |
12178 | |
12179 | |
12180 | |
12181 | |
12182 | |
12183 | |
12184 | |
12185 | |
12186 | |
12187 | |
12188 | |
12189 | |
12190 | |
12191 | |
12192 | |
12193 | |
12194 | |
12195 | |
12196 | |
12197 | |
12198 | |
12199 | |
12200 | |
12201 | |
12202 | |
12203 | |
12204 | |
12205 | |
12206 | |
12207 | |
12208 | |
12209 | |
12210 | |
12211 | |
12212 | |
12213 | |
12214 | |
12215 | |
12216 | |
12217 | |
12218 | |
12219 | |
12220 | |
12221 | |
12222 | |
12223 | |
12224 | |
12225 | |
12226 | |
12227 | |
12228 | |
12229 | |
12230 | |
12231 | |
12232 | |
12233 | |
12234 | |
12235 | |
12236 | |
12237 | |
12238 | |
12239 | |
12240 | |
12241 | |
12242 | |
12243 | |
12244 | |
12245 | |
12246 | |
12247 | |
12248 | |
12249 | |
12250 | |
12251 | |
12252 | |
12253 | |
12254 | |
12255 | |
12256 | |
12257 | |
12258 | |
12259 | |
12260 | |
12261 | |
12262 | |
12263 | |
12264 | |
12265 | |
12266 | |
12267 | |
12268 | |
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
12270 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
12271 hardcode_action= | |
12272 if test -n "$hardcode_libdir_flag_spec" || | |
12273 test -n "$runpath_var" || | |
12274 test "X$hardcode_automatic" = "Xyes" ; then | |
12275 | |
12276 # We can hardcode non-existent directories. | |
12277 if test "$hardcode_direct" != no && | |
12278 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
12279 # have to relink, otherwise we might link with an installed library | |
12280 # when we should be linking with a yet-to-be-installed one | |
12281 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
12282 test "$hardcode_minus_L" != no; then | |
12283 # Linking always hardcodes the temporary library directory. | |
12284 hardcode_action=relink | |
12285 else | |
12286 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
12287 hardcode_action=immediate | |
12288 fi | |
12289 else | |
12290 # We cannot hardcode anything, or else we can only hardcode existing | |
12291 # directories. | |
12292 hardcode_action=unsupported | |
12293 fi | |
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
12295 $as_echo "$hardcode_action" >&6; } | |
12296 | |
12297 if test "$hardcode_action" = relink || | |
12298 test "$inherit_rpath" = yes; then | |
12299 # Fast installation is not supported | |
12300 enable_fast_install=no | |
12301 elif test "$shlibpath_overrides_runpath" = yes || | |
12302 test "$enable_shared" = no; then | |
12303 # Fast installation is not necessary | |
12304 enable_fast_install=needless | |
12305 fi | |
12306 | |
12307 | |
12308 | |
12309 | |
12310 | |
12311 | |
12312 if test "x$enable_dlopen" != xyes; then | |
12313 enable_dlopen=unknown | |
12314 enable_dlopen_self=unknown | |
12315 enable_dlopen_self_static=unknown | |
12316 else | |
12317 lt_cv_dlopen=no | |
12318 lt_cv_dlopen_libs= | |
12319 | |
12320 case $host_os in | |
12321 beos*) | |
12322 lt_cv_dlopen="load_add_on" | |
12323 lt_cv_dlopen_libs= | |
12324 lt_cv_dlopen_self=yes | |
12325 ;; | |
12326 | |
12327 mingw* | pw32* | cegcc*) | |
12328 lt_cv_dlopen="LoadLibrary" | |
12329 lt_cv_dlopen_libs= | |
12330 ;; | |
12331 | |
12332 cygwin*) | |
12333 lt_cv_dlopen="dlopen" | |
12334 lt_cv_dlopen_libs= | |
12335 ;; | |
12336 | |
12337 darwin*) | |
12338 # if libdl is installed we need to link against it | |
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
12340 $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
12341 if ${ac_cv_lib_dl_dlopen+:} false; then : | |
12342 $as_echo_n "(cached) " >&6 | |
12343 else | |
12344 ac_check_lib_save_LIBS=$LIBS | |
12345 LIBS="-ldl $LIBS" | |
12346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12347 /* end confdefs.h. */ | |
12348 | |
12349 /* Override any GCC internal prototype to avoid an error. | |
12350 Use char because int might match the return type of a GCC | |
12351 builtin and then its argument prototype would still apply. */ | |
12352 #ifdef __cplusplus | |
12353 extern "C" | |
12354 #endif | |
12355 char dlopen (); | |
12356 int | |
12357 main () | |
12358 { | |
12359 return dlopen (); | |
12360 ; | |
12361 return 0; | |
12362 } | |
12363 _ACEOF | |
12364 if ac_fn_c_try_link "$LINENO"; then : | |
12365 ac_cv_lib_dl_dlopen=yes | |
12366 else | |
12367 ac_cv_lib_dl_dlopen=no | |
12368 fi | |
12369 rm -f core conftest.err conftest.$ac_objext \ | |
12370 conftest$ac_exeext conftest.$ac_ext | |
12371 LIBS=$ac_check_lib_save_LIBS | |
12372 fi | |
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
12374 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12375 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
12376 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
12377 else | |
12378 | |
12379 lt_cv_dlopen="dyld" | |
12380 lt_cv_dlopen_libs= | |
12381 lt_cv_dlopen_self=yes | |
12382 | |
12383 fi | |
12384 | |
12385 ;; | |
12386 | |
12387 *) | |
12388 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
12389 if test "x$ac_cv_func_shl_load" = xyes; then : | |
12390 lt_cv_dlopen="shl_load" | |
12391 else | |
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
12393 $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
12394 if ${ac_cv_lib_dld_shl_load+:} false; then : | |
12395 $as_echo_n "(cached) " >&6 | |
12396 else | |
12397 ac_check_lib_save_LIBS=$LIBS | |
12398 LIBS="-ldld $LIBS" | |
12399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12400 /* end confdefs.h. */ | |
12401 | |
12402 /* Override any GCC internal prototype to avoid an error. | |
12403 Use char because int might match the return type of a GCC | |
12404 builtin and then its argument prototype would still apply. */ | |
12405 #ifdef __cplusplus | |
12406 extern "C" | |
12407 #endif | |
12408 char shl_load (); | |
12409 int | |
12410 main () | |
12411 { | |
12412 return shl_load (); | |
12413 ; | |
12414 return 0; | |
12415 } | |
12416 _ACEOF | |
12417 if ac_fn_c_try_link "$LINENO"; then : | |
12418 ac_cv_lib_dld_shl_load=yes | |
12419 else | |
12420 ac_cv_lib_dld_shl_load=no | |
12421 fi | |
12422 rm -f core conftest.err conftest.$ac_objext \ | |
12423 conftest$ac_exeext conftest.$ac_ext | |
12424 LIBS=$ac_check_lib_save_LIBS | |
12425 fi | |
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
12427 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
12428 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
12429 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
12430 else | |
12431 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
12432 if test "x$ac_cv_func_dlopen" = xyes; then : | |
12433 lt_cv_dlopen="dlopen" | |
12434 else | |
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
12436 $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
12437 if ${ac_cv_lib_dl_dlopen+:} false; then : | |
12438 $as_echo_n "(cached) " >&6 | |
12439 else | |
12440 ac_check_lib_save_LIBS=$LIBS | |
12441 LIBS="-ldl $LIBS" | |
12442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12443 /* end confdefs.h. */ | |
12444 | |
12445 /* Override any GCC internal prototype to avoid an error. | |
12446 Use char because int might match the return type of a GCC | |
12447 builtin and then its argument prototype would still apply. */ | |
12448 #ifdef __cplusplus | |
12449 extern "C" | |
12450 #endif | |
12451 char dlopen (); | |
12452 int | |
12453 main () | |
12454 { | |
12455 return dlopen (); | |
12456 ; | |
12457 return 0; | |
12458 } | |
12459 _ACEOF | |
12460 if ac_fn_c_try_link "$LINENO"; then : | |
12461 ac_cv_lib_dl_dlopen=yes | |
12462 else | |
12463 ac_cv_lib_dl_dlopen=no | |
12464 fi | |
12465 rm -f core conftest.err conftest.$ac_objext \ | |
12466 conftest$ac_exeext conftest.$ac_ext | |
12467 LIBS=$ac_check_lib_save_LIBS | |
12468 fi | |
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
12470 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
12471 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
12472 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
12473 else | |
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
12475 $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
12476 if ${ac_cv_lib_svld_dlopen+:} false; then : | |
12477 $as_echo_n "(cached) " >&6 | |
12478 else | |
12479 ac_check_lib_save_LIBS=$LIBS | |
12480 LIBS="-lsvld $LIBS" | |
12481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12482 /* end confdefs.h. */ | |
12483 | |
12484 /* Override any GCC internal prototype to avoid an error. | |
12485 Use char because int might match the return type of a GCC | |
12486 builtin and then its argument prototype would still apply. */ | |
12487 #ifdef __cplusplus | |
12488 extern "C" | |
12489 #endif | |
12490 char dlopen (); | |
12491 int | |
12492 main () | |
12493 { | |
12494 return dlopen (); | |
12495 ; | |
12496 return 0; | |
12497 } | |
12498 _ACEOF | |
12499 if ac_fn_c_try_link "$LINENO"; then : | |
12500 ac_cv_lib_svld_dlopen=yes | |
12501 else | |
12502 ac_cv_lib_svld_dlopen=no | |
12503 fi | |
12504 rm -f core conftest.err conftest.$ac_objext \ | |
12505 conftest$ac_exeext conftest.$ac_ext | |
12506 LIBS=$ac_check_lib_save_LIBS | |
12507 fi | |
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
12509 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
12510 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
12511 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
12512 else | |
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
12514 $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
12515 if ${ac_cv_lib_dld_dld_link+:} false; then : | |
12516 $as_echo_n "(cached) " >&6 | |
12517 else | |
12518 ac_check_lib_save_LIBS=$LIBS | |
12519 LIBS="-ldld $LIBS" | |
12520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12521 /* end confdefs.h. */ | |
12522 | |
12523 /* Override any GCC internal prototype to avoid an error. | |
12524 Use char because int might match the return type of a GCC | |
12525 builtin and then its argument prototype would still apply. */ | |
12526 #ifdef __cplusplus | |
12527 extern "C" | |
12528 #endif | |
12529 char dld_link (); | |
12530 int | |
12531 main () | |
12532 { | |
12533 return dld_link (); | |
12534 ; | |
12535 return 0; | |
12536 } | |
12537 _ACEOF | |
12538 if ac_fn_c_try_link "$LINENO"; then : | |
12539 ac_cv_lib_dld_dld_link=yes | |
12540 else | |
12541 ac_cv_lib_dld_dld_link=no | |
12542 fi | |
12543 rm -f core conftest.err conftest.$ac_objext \ | |
12544 conftest$ac_exeext conftest.$ac_ext | |
12545 LIBS=$ac_check_lib_save_LIBS | |
12546 fi | |
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
12548 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
12549 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
12550 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
12551 fi | |
12552 | |
12553 | |
12554 fi | |
12555 | |
12556 | |
12557 fi | |
12558 | |
12559 | |
12560 fi | |
12561 | |
12562 | |
12563 fi | |
12564 | |
12565 | |
12566 fi | |
12567 | |
12568 ;; | |
12569 esac | |
12570 | |
12571 if test "x$lt_cv_dlopen" != xno; then | |
12572 enable_dlopen=yes | |
12573 else | |
12574 enable_dlopen=no | |
12575 fi | |
12576 | |
12577 case $lt_cv_dlopen in | |
12578 dlopen) | |
12579 save_CPPFLAGS="$CPPFLAGS" | |
12580 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
12581 | |
12582 save_LDFLAGS="$LDFLAGS" | |
12583 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
12584 | |
12585 save_LIBS="$LIBS" | |
12586 LIBS="$lt_cv_dlopen_libs $LIBS" | |
12587 | |
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
12589 $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
12590 if ${lt_cv_dlopen_self+:} false; then : | |
12591 $as_echo_n "(cached) " >&6 | |
12592 else | |
12593 if test "$cross_compiling" = yes; then : | |
12594 lt_cv_dlopen_self=cross | |
12595 else | |
12596 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12597 lt_status=$lt_dlunknown | |
12598 cat > conftest.$ac_ext <<_LT_EOF | |
12599 #line $LINENO "configure" | |
12600 #include "confdefs.h" | |
12601 | |
12602 #if HAVE_DLFCN_H | |
12603 #include <dlfcn.h> | |
12604 #endif | |
12605 | |
12606 #include <stdio.h> | |
12607 | |
12608 #ifdef RTLD_GLOBAL | |
12609 # define LT_DLGLOBAL RTLD_GLOBAL | |
12610 #else | |
12611 # ifdef DL_GLOBAL | |
12612 # define LT_DLGLOBAL DL_GLOBAL | |
12613 # else | |
12614 # define LT_DLGLOBAL 0 | |
12615 # endif | |
12616 #endif | |
12617 | |
12618 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12619 find out it does not work in some platform. */ | |
12620 #ifndef LT_DLLAZY_OR_NOW | |
12621 # ifdef RTLD_LAZY | |
12622 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12623 # else | |
12624 # ifdef DL_LAZY | |
12625 # define LT_DLLAZY_OR_NOW DL_LAZY | |
12626 # else | |
12627 # ifdef RTLD_NOW | |
12628 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12629 # else | |
12630 # ifdef DL_NOW | |
12631 # define LT_DLLAZY_OR_NOW DL_NOW | |
12632 # else | |
12633 # define LT_DLLAZY_OR_NOW 0 | |
12634 # endif | |
12635 # endif | |
12636 # endif | |
12637 # endif | |
12638 #endif | |
12639 | |
12640 /* When -fvisbility=hidden is used, assume the code has been annotated | |
12641 correspondingly for the symbols needed. */ | |
12642 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12643 int fnord () __attribute__((visibility("default"))); | |
12644 #endif | |
12645 | |
12646 int fnord () { return 42; } | |
12647 int main () | |
12648 { | |
12649 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12650 int status = $lt_dlunknown; | |
12651 | |
12652 if (self) | |
12653 { | |
12654 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12655 else | |
12656 { | |
12657 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12658 else puts (dlerror ()); | |
12659 } | |
12660 /* dlclose (self); */ | |
12661 } | |
12662 else | |
12663 puts (dlerror ()); | |
12664 | |
12665 return status; | |
12666 } | |
12667 _LT_EOF | |
12668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12669 (eval $ac_link) 2>&5 | |
12670 ac_status=$? | |
12671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12672 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12673 (./conftest; exit; ) >&5 2>/dev/null | |
12674 lt_status=$? | |
12675 case x$lt_status in | |
12676 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12677 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12678 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12679 esac | |
12680 else : | |
12681 # compilation failed | |
12682 lt_cv_dlopen_self=no | |
12683 fi | |
12684 fi | |
12685 rm -fr conftest* | |
12686 | |
12687 | |
12688 fi | |
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
12690 $as_echo "$lt_cv_dlopen_self" >&6; } | |
12691 | |
12692 if test "x$lt_cv_dlopen_self" = xyes; then | |
12693 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
12695 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
12696 if ${lt_cv_dlopen_self_static+:} false; then : | |
12697 $as_echo_n "(cached) " >&6 | |
12698 else | |
12699 if test "$cross_compiling" = yes; then : | |
12700 lt_cv_dlopen_self_static=cross | |
12701 else | |
12702 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12703 lt_status=$lt_dlunknown | |
12704 cat > conftest.$ac_ext <<_LT_EOF | |
12705 #line $LINENO "configure" | |
12706 #include "confdefs.h" | |
12707 | |
12708 #if HAVE_DLFCN_H | |
12709 #include <dlfcn.h> | |
12710 #endif | |
12711 | |
12712 #include <stdio.h> | |
12713 | |
12714 #ifdef RTLD_GLOBAL | |
12715 # define LT_DLGLOBAL RTLD_GLOBAL | |
12716 #else | |
12717 # ifdef DL_GLOBAL | |
12718 # define LT_DLGLOBAL DL_GLOBAL | |
12719 # else | |
12720 # define LT_DLGLOBAL 0 | |
12721 # endif | |
12722 #endif | |
12723 | |
12724 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12725 find out it does not work in some platform. */ | |
12726 #ifndef LT_DLLAZY_OR_NOW | |
12727 # ifdef RTLD_LAZY | |
12728 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12729 # else | |
12730 # ifdef DL_LAZY | |
12731 # define LT_DLLAZY_OR_NOW DL_LAZY | |
12732 # else | |
12733 # ifdef RTLD_NOW | |
12734 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12735 # else | |
12736 # ifdef DL_NOW | |
12737 # define LT_DLLAZY_OR_NOW DL_NOW | |
12738 # else | |
12739 # define LT_DLLAZY_OR_NOW 0 | |
12740 # endif | |
12741 # endif | |
12742 # endif | |
12743 # endif | |
12744 #endif | |
12745 | |
12746 /* When -fvisbility=hidden is used, assume the code has been annotated | |
12747 correspondingly for the symbols needed. */ | |
12748 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12749 int fnord () __attribute__((visibility("default"))); | |
12750 #endif | |
12751 | |
12752 int fnord () { return 42; } | |
12753 int main () | |
12754 { | |
12755 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12756 int status = $lt_dlunknown; | |
12757 | |
12758 if (self) | |
12759 { | |
12760 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12761 else | |
12762 { | |
12763 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12764 else puts (dlerror ()); | |
12765 } | |
12766 /* dlclose (self); */ | |
12767 } | |
12768 else | |
12769 puts (dlerror ()); | |
12770 | |
12771 return status; | |
12772 } | |
12773 _LT_EOF | |
12774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12775 (eval $ac_link) 2>&5 | |
12776 ac_status=$? | |
12777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12778 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12779 (./conftest; exit; ) >&5 2>/dev/null | |
12780 lt_status=$? | |
12781 case x$lt_status in | |
12782 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12783 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12784 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
12785 esac | |
12786 else : | |
12787 # compilation failed | |
12788 lt_cv_dlopen_self_static=no | |
12789 fi | |
12790 fi | |
12791 rm -fr conftest* | |
12792 | |
12793 | |
12794 fi | |
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
12796 $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
12797 fi | |
12798 | |
12799 CPPFLAGS="$save_CPPFLAGS" | |
12800 LDFLAGS="$save_LDFLAGS" | |
12801 LIBS="$save_LIBS" | |
12802 ;; | |
12803 esac | |
12804 | |
12805 case $lt_cv_dlopen_self in | |
12806 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12807 *) enable_dlopen_self=unknown ;; | |
12808 esac | |
12809 | |
12810 case $lt_cv_dlopen_self_static in | |
12811 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12812 *) enable_dlopen_self_static=unknown ;; | |
12813 esac | |
12814 fi | |
12815 | |
12816 | |
12817 | |
12818 | |
12819 | |
12820 | |
12821 | |
12822 | |
12823 | |
12824 | |
12825 | |
12826 | |
12827 | |
12828 | |
12829 | |
12830 | |
12831 | |
12832 striplib= | |
12833 old_striplib= | |
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
12835 $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
12836 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
12837 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12838 test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12840 $as_echo "yes" >&6; } | |
12841 else | |
12842 # FIXME - insert some real tests, host_os isn't really good enough | |
12843 case $host_os in | |
12844 darwin*) | |
12845 if test -n "$STRIP" ; then | |
12846 striplib="$STRIP -x" | |
12847 old_striplib="$STRIP -S" | |
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12849 $as_echo "yes" >&6; } | |
12850 else | |
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12852 $as_echo "no" >&6; } | |
12853 fi | |
12854 ;; | |
12855 *) | |
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12857 $as_echo "no" >&6; } | |
12858 ;; | |
12859 esac | |
12860 fi | |
12861 | |
12862 | |
12863 | |
12864 | |
12865 | |
12866 | |
12867 | |
12868 | |
12869 | |
12870 | |
12871 | |
12872 | |
12873 # Report which library types will actually be built | |
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
12875 $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12877 $as_echo "$can_build_shared" >&6; } | |
12878 | |
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
12880 $as_echo_n "checking whether to build shared libraries... " >&6; } | |
12881 test "$can_build_shared" = "no" && enable_shared=no | |
12882 | |
12883 # On AIX, shared libraries and static libraries use the same namespace, and | |
12884 # are all built from PIC. | |
12885 case $host_os in | |
12886 aix3*) | |
12887 test "$enable_shared" = yes && enable_static=no | |
12888 if test -n "$RANLIB"; then | |
12889 archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12890 postinstall_cmds='$RANLIB $lib' | |
12891 fi | |
12892 ;; | |
12893 | |
12894 aix[4-9]*) | |
12895 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
12896 test "$enable_shared" = yes && enable_static=no | |
12897 fi | |
12898 ;; | |
12899 esac | |
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
12901 $as_echo "$enable_shared" >&6; } | |
12902 | |
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
12904 $as_echo_n "checking whether to build static libraries... " >&6; } | |
12905 # Make sure either enable_shared or enable_static is yes. | |
12906 test "$enable_shared" = yes || enable_static=yes | |
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
12908 $as_echo "$enable_static" >&6; } | |
12909 | |
12910 | |
12911 | |
12912 | |
12913 fi | |
12914 ac_ext=c | |
12915 ac_cpp='$CPP $CPPFLAGS' | |
12916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12918 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12919 | |
12920 CC="$lt_save_CC" | |
12921 | |
12922 | |
12923 | |
12924 | |
12925 | |
12926 | |
12927 | |
12928 | |
12929 | |
12930 | |
12931 | |
12932 | |
12933 | |
12934 | |
12935 | |
12936 ac_config_commands="$ac_config_commands libtool" | |
12937 | |
12938 | |
12939 | |
12940 | |
12941 # Only expand once: | |
12942 | |
12943 | |
12944 | |
12945 # Extract the first word of "ocamlbuild", so it can be a program name with args. | |
12946 set dummy ocamlbuild; ac_word=$2 | |
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12948 $as_echo_n "checking for $ac_word... " >&6; } | |
12949 if ${ac_cv_prog_OCAMLBUILD+:} false; then : | |
12950 $as_echo_n "(cached) " >&6 | |
12951 else | |
12952 if test -n "$OCAMLBUILD"; then | |
12953 ac_cv_prog_OCAMLBUILD="$OCAMLBUILD" # Let the user override the test. | |
12954 else | |
12955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12956 for as_dir in $PATH | |
12957 do | |
12958 IFS=$as_save_IFS | |
12959 test -z "$as_dir" && as_dir=. | |
12960 for ac_exec_ext in '' $ac_executable_extensions; do | |
12961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12962 ac_cv_prog_OCAMLBUILD="ocamlbuild" | |
12963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12964 break 2 | |
12965 fi | |
12966 done | |
12967 done | |
12968 IFS=$as_save_IFS | |
12969 | |
12970 fi | |
12971 fi | |
12972 OCAMLBUILD=$ac_cv_prog_OCAMLBUILD | |
12973 if test -n "$OCAMLBUILD"; then | |
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLBUILD" >&5 | |
12975 $as_echo "$OCAMLBUILD" >&6; } | |
12976 else | |
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12978 $as_echo "no" >&6; } | |
12979 fi | |
12980 | |
12981 | |
12982 | |
12983 | |
12984 # Check whether --enable-mpi was given. | |
12985 if test "${enable_mpi+set}" = set; then : | |
12986 enableval=$enable_mpi; enable_mpi=$enableval | |
12987 else | |
12988 enable_mpi=no | |
12989 fi | |
12990 | |
12991 | |
12992 if test "$enable_mpi" = "yes"; then | |
12993 if test $PRECISION = q; then | |
12994 as_fn_error $? "quad precision is not supported in MPI" "$LINENO" 5 | |
12995 fi | |
12996 | |
12997 | |
12998 | |
12999 | |
13000 | |
13001 for ac_prog in mpicc hcc mpcc mpcc_r mpxlc cmpicc | |
13002 do | |
13003 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13004 set dummy $ac_prog; ac_word=$2 | |
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13006 $as_echo_n "checking for $ac_word... " >&6; } | |
13007 if ${ac_cv_prog_MPICC+:} false; then : | |
13008 $as_echo_n "(cached) " >&6 | |
13009 else | |
13010 if test -n "$MPICC"; then | |
13011 ac_cv_prog_MPICC="$MPICC" # Let the user override the test. | |
13012 else | |
13013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13014 for as_dir in $PATH | |
13015 do | |
13016 IFS=$as_save_IFS | |
13017 test -z "$as_dir" && as_dir=. | |
13018 for ac_exec_ext in '' $ac_executable_extensions; do | |
13019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13020 ac_cv_prog_MPICC="$ac_prog" | |
13021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13022 break 2 | |
13023 fi | |
13024 done | |
13025 done | |
13026 IFS=$as_save_IFS | |
13027 | |
13028 fi | |
13029 fi | |
13030 MPICC=$ac_cv_prog_MPICC | |
13031 if test -n "$MPICC"; then | |
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5 | |
13033 $as_echo "$MPICC" >&6; } | |
13034 else | |
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13036 $as_echo "no" >&6; } | |
13037 fi | |
13038 | |
13039 | |
13040 test -n "$MPICC" && break | |
13041 done | |
13042 test -n "$MPICC" || MPICC="$CC" | |
13043 | |
13044 acx_mpi_save_CC="$CC" | |
13045 CC="$MPICC" | |
13046 | |
13047 | |
13048 | |
13049 if test x = x"$MPILIBS"; then | |
13050 ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init" | |
13051 if test "x$ac_cv_func_MPI_Init" = xyes; then : | |
13052 MPILIBS=" " | |
13053 fi | |
13054 | |
13055 fi | |
13056 if test x = x"$MPILIBS"; then | |
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5 | |
13058 $as_echo_n "checking for MPI_Init in -lmpi... " >&6; } | |
13059 if ${ac_cv_lib_mpi_MPI_Init+:} false; then : | |
13060 $as_echo_n "(cached) " >&6 | |
13061 else | |
13062 ac_check_lib_save_LIBS=$LIBS | |
13063 LIBS="-lmpi $LIBS" | |
13064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13065 /* end confdefs.h. */ | |
13066 | |
13067 /* Override any GCC internal prototype to avoid an error. | |
13068 Use char because int might match the return type of a GCC | |
13069 builtin and then its argument prototype would still apply. */ | |
13070 #ifdef __cplusplus | |
13071 extern "C" | |
13072 #endif | |
13073 char MPI_Init (); | |
13074 int | |
13075 main () | |
13076 { | |
13077 return MPI_Init (); | |
13078 ; | |
13079 return 0; | |
13080 } | |
13081 _ACEOF | |
13082 if ac_fn_c_try_link "$LINENO"; then : | |
13083 ac_cv_lib_mpi_MPI_Init=yes | |
13084 else | |
13085 ac_cv_lib_mpi_MPI_Init=no | |
13086 fi | |
13087 rm -f core conftest.err conftest.$ac_objext \ | |
13088 conftest$ac_exeext conftest.$ac_ext | |
13089 LIBS=$ac_check_lib_save_LIBS | |
13090 fi | |
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5 | |
13092 $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; } | |
13093 if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then : | |
13094 MPILIBS="-lmpi" | |
13095 fi | |
13096 | |
13097 fi | |
13098 if test x = x"$MPILIBS"; then | |
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5 | |
13100 $as_echo_n "checking for MPI_Init in -lmpich... " >&6; } | |
13101 if ${ac_cv_lib_mpich_MPI_Init+:} false; then : | |
13102 $as_echo_n "(cached) " >&6 | |
13103 else | |
13104 ac_check_lib_save_LIBS=$LIBS | |
13105 LIBS="-lmpich $LIBS" | |
13106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13107 /* end confdefs.h. */ | |
13108 | |
13109 /* Override any GCC internal prototype to avoid an error. | |
13110 Use char because int might match the return type of a GCC | |
13111 builtin and then its argument prototype would still apply. */ | |
13112 #ifdef __cplusplus | |
13113 extern "C" | |
13114 #endif | |
13115 char MPI_Init (); | |
13116 int | |
13117 main () | |
13118 { | |
13119 return MPI_Init (); | |
13120 ; | |
13121 return 0; | |
13122 } | |
13123 _ACEOF | |
13124 if ac_fn_c_try_link "$LINENO"; then : | |
13125 ac_cv_lib_mpich_MPI_Init=yes | |
13126 else | |
13127 ac_cv_lib_mpich_MPI_Init=no | |
13128 fi | |
13129 rm -f core conftest.err conftest.$ac_objext \ | |
13130 conftest$ac_exeext conftest.$ac_ext | |
13131 LIBS=$ac_check_lib_save_LIBS | |
13132 fi | |
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5 | |
13134 $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; } | |
13135 if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then : | |
13136 MPILIBS="-lmpich" | |
13137 fi | |
13138 | |
13139 fi | |
13140 | |
13141 if test x != x"$MPILIBS"; then | |
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5 | |
13143 $as_echo_n "checking for mpi.h... " >&6; } | |
13144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13145 /* end confdefs.h. */ | |
13146 #include <mpi.h> | |
13147 int | |
13148 main () | |
13149 { | |
13150 | |
13151 ; | |
13152 return 0; | |
13153 } | |
13154 _ACEOF | |
13155 if ac_fn_c_try_compile "$LINENO"; then : | |
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13157 $as_echo "yes" >&6; } | |
13158 else | |
13159 MPILIBS="" | |
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13161 $as_echo "no" >&6; } | |
13162 fi | |
13163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13164 fi | |
13165 | |
13166 CC="$acx_mpi_save_CC" | |
13167 | |
13168 | |
13169 | |
13170 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: | |
13171 if test x = x"$MPILIBS"; then | |
13172 as_fn_error $? "could not find mpi library for --enable-mpi" "$LINENO" 5 | |
13173 : | |
13174 else | |
13175 | |
13176 $as_echo "#define HAVE_MPI 1" >>confdefs.h | |
13177 | |
13178 : | |
13179 fi | |
13180 | |
13181 # Extract the first word of "mpirun", so it can be a program name with args. | |
13182 set dummy mpirun; ac_word=$2 | |
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13184 $as_echo_n "checking for $ac_word... " >&6; } | |
13185 if ${ac_cv_prog_MPIRUN+:} false; then : | |
13186 $as_echo_n "(cached) " >&6 | |
13187 else | |
13188 if test -n "$MPIRUN"; then | |
13189 ac_cv_prog_MPIRUN="$MPIRUN" # Let the user override the test. | |
13190 else | |
13191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13192 for as_dir in $PATH | |
13193 do | |
13194 IFS=$as_save_IFS | |
13195 test -z "$as_dir" && as_dir=. | |
13196 for ac_exec_ext in '' $ac_executable_extensions; do | |
13197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13198 ac_cv_prog_MPIRUN="mpirun" | |
13199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13200 break 2 | |
13201 fi | |
13202 done | |
13203 done | |
13204 IFS=$as_save_IFS | |
13205 | |
13206 fi | |
13207 fi | |
13208 MPIRUN=$ac_cv_prog_MPIRUN | |
13209 if test -n "$MPIRUN"; then | |
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIRUN" >&5 | |
13211 $as_echo "$MPIRUN" >&6; } | |
13212 else | |
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13214 $as_echo "no" >&6; } | |
13215 fi | |
13216 | |
13217 | |
13218 | |
13219 | |
13220 save_CC=$CC | |
13221 CC=$MPICC | |
13222 # The cast to long int works around a bug in the HP C Compiler | |
13223 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
13224 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13225 # This bug is HP SR number 8606223364. | |
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of MPI_Fint" >&5 | |
13227 $as_echo_n "checking size of MPI_Fint... " >&6; } | |
13228 if ${ac_cv_sizeof_MPI_Fint+:} false; then : | |
13229 $as_echo_n "(cached) " >&6 | |
13230 else | |
13231 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (MPI_Fint))" "ac_cv_sizeof_MPI_Fint" "#include <mpi.h> | |
13232 "; then : | |
13233 | |
13234 else | |
13235 if test "$ac_cv_type_MPI_Fint" = yes; then | |
13236 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13238 as_fn_error 77 "cannot compute sizeof (MPI_Fint) | |
13239 See \`config.log' for more details" "$LINENO" 5; } | |
13240 else | |
13241 ac_cv_sizeof_MPI_Fint=0 | |
13242 fi | |
13243 fi | |
13244 | |
13245 fi | |
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_MPI_Fint" >&5 | |
13247 $as_echo "$ac_cv_sizeof_MPI_Fint" >&6; } | |
13248 | |
13249 | |
13250 | |
13251 cat >>confdefs.h <<_ACEOF | |
13252 #define SIZEOF_MPI_FINT $ac_cv_sizeof_MPI_Fint | |
13253 _ACEOF | |
13254 | |
13255 | |
13256 CC=$save_CC | |
13257 if test 0 = $ac_cv_sizeof_MPI_Fint; then | |
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sizeof(MPI_Fint) test failed" >&5 | |
13259 $as_echo "$as_me: WARNING: sizeof(MPI_Fint) test failed" >&2;}; | |
13260 # The cast to long int works around a bug in the HP C Compiler | |
13261 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
13262 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13263 # This bug is HP SR number 8606223364. | |
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
13265 $as_echo_n "checking size of int... " >&6; } | |
13266 if ${ac_cv_sizeof_int+:} false; then : | |
13267 $as_echo_n "(cached) " >&6 | |
13268 else | |
13269 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | |
13270 | |
13271 else | |
13272 if test "$ac_cv_type_int" = yes; then | |
13273 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13275 as_fn_error 77 "cannot compute sizeof (int) | |
13276 See \`config.log' for more details" "$LINENO" 5; } | |
13277 else | |
13278 ac_cv_sizeof_int=0 | |
13279 fi | |
13280 fi | |
13281 | |
13282 fi | |
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
13284 $as_echo "$ac_cv_sizeof_int" >&6; } | |
13285 | |
13286 | |
13287 | |
13288 cat >>confdefs.h <<_ACEOF | |
13289 #define SIZEOF_INT $ac_cv_sizeof_int | |
13290 _ACEOF | |
13291 | |
13292 | |
13293 if test 0 = $ac_cv_sizeof_int; then as_fn_error $? "sizeof(int) test failed" "$LINENO" 5; fi | |
13294 ac_cv_sizeof_MPI_Fint=$ac_cv_sizeof_int | |
13295 fi | |
13296 C_MPI_FINT=C_INT`expr $ac_cv_sizeof_MPI_Fint \* 8`_T | |
13297 | |
13298 fi | |
13299 if test "$enable_mpi" = "yes"; then | |
13300 MPI_TRUE= | |
13301 MPI_FALSE='#' | |
13302 else | |
13303 MPI_TRUE='#' | |
13304 MPI_FALSE= | |
13305 fi | |
13306 | |
13307 | |
13308 | |
13309 | |
13310 | |
13311 | |
13312 | |
13313 | |
13314 # Try to determine "good" native compiler flags if none specified via CFLAGS | |
13315 if test "$ac_test_CFLAGS" != "set"; then | |
13316 CFLAGS="" | |
13317 case $ax_cv_c_compiler_vendor in | |
13318 dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host" | |
13319 ;; | |
13320 | |
13321 sun) CFLAGS="-native -fast -xO5 -dalign" | |
13322 ;; | |
13323 | |
13324 hp) CFLAGS="+Oall +Optrs_ansi +DSnative" | |
13325 ;; | |
13326 | |
13327 ibm) xlc_opt="-qtune=auto" | |
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5 | |
13329 $as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; } | |
13330 ax_save_FLAGS=$CFLAGS | |
13331 CFLAGS="$xlc_opt" | |
13332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13333 /* end confdefs.h. */ | |
13334 | |
13335 int | |
13336 main () | |
13337 { | |
13338 | |
13339 ; | |
13340 return 0; | |
13341 } | |
13342 _ACEOF | |
13343 if ac_fn_c_try_compile "$LINENO"; then : | |
13344 eval `$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`=yes | |
13345 else | |
13346 eval `$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`=no | |
13347 fi | |
13348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13349 CFLAGS=$ax_save_FLAGS | |
13350 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh` | |
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
13352 $as_echo "$ax_check_compiler_flags" >&6; } | |
13353 if test "x$ax_check_compiler_flags" = xyes; then | |
13354 CFLAGS="-O3 -qansialias -w $xlc_opt" | |
13355 else | |
13356 CFLAGS="-O3 -qansialias -w" | |
13357 echo "******************************************************" | |
13358 echo "* You seem to have the IBM C compiler. It is *" | |
13359 echo "* recommended for best performance that you use: *" | |
13360 echo "* *" | |
13361 echo "* CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *" | |
13362 echo "* ^^^ ^^^ *" | |
13363 echo "* where xxx is pwr2, pwr3, 604, or whatever kind of *" | |
13364 echo "* CPU you have. (Set the CFLAGS environment var. *" | |
13365 echo "* and re-run configure.) For more info, man cc. *" | |
13366 echo "******************************************************" | |
13367 fi | |
13368 | |
13369 ;; | |
13370 | |
13371 intel) CFLAGS="-O3" | |
13372 # Intel seems to have changed the spelling of this flag recently | |
13373 icc_ansi_alias="unknown" | |
13374 for flag in -ansi-alias -ansi_alias; do | |
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 | |
13376 $as_echo_n "checking whether C compiler accepts $flag... " >&6; } | |
13377 ax_save_FLAGS=$CFLAGS | |
13378 CFLAGS="$flag" | |
13379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13380 /* end confdefs.h. */ | |
13381 | |
13382 int | |
13383 main () | |
13384 { | |
13385 | |
13386 ; | |
13387 return 0; | |
13388 } | |
13389 _ACEOF | |
13390 if ac_fn_c_try_compile "$LINENO"; then : | |
13391 eval `$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`=yes | |
13392 else | |
13393 eval `$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`=no | |
13394 fi | |
13395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13396 CFLAGS=$ax_save_FLAGS | |
13397 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh` | |
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
13399 $as_echo "$ax_check_compiler_flags" >&6; } | |
13400 if test "x$ax_check_compiler_flags" = xyes; then | |
13401 icc_ansi_alias=$flag; break | |
13402 else | |
13403 : | |
13404 fi | |
13405 | |
13406 done | |
13407 if test "x$icc_ansi_alias" != xunknown; then | |
13408 CFLAGS="$CFLAGS $icc_ansi_alias" | |
13409 fi | |
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5 | |
13411 $as_echo_n "checking whether C compiler accepts -malign-double... " >&6; } | |
13412 if ${ax_cv_c_flags__malign_double+:} false; then : | |
13413 $as_echo_n "(cached) " >&6 | |
13414 else | |
13415 | |
13416 ax_save_FLAGS=$CFLAGS | |
13417 CFLAGS="-malign-double" | |
13418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13419 /* end confdefs.h. */ | |
13420 | |
13421 int | |
13422 main () | |
13423 { | |
13424 | |
13425 ; | |
13426 return 0; | |
13427 } | |
13428 _ACEOF | |
13429 if ac_fn_c_try_compile "$LINENO"; then : | |
13430 ax_cv_c_flags__malign_double=yes | |
13431 else | |
13432 ax_cv_c_flags__malign_double=no | |
13433 fi | |
13434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13435 CFLAGS=$ax_save_FLAGS | |
13436 fi | |
13437 | |
13438 eval ax_check_compiler_flags=$ax_cv_c_flags__malign_double | |
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
13440 $as_echo "$ax_check_compiler_flags" >&6; } | |
13441 if test "x$ax_check_compiler_flags" = xyes; then | |
13442 CFLAGS="$CFLAGS -malign-double" | |
13443 else | |
13444 : | |
13445 fi | |
13446 | |
13447 # We used to check for architecture flags here, e.g. -xHost etc., | |
13448 # but these flags are problematic. On icc-12.0.0, "-mavx -xHost" | |
13449 # overrides -mavx with -xHost, generating SSE2 code instead of AVX | |
13450 # code. ICC does not seem to support -mtune=host or equivalent | |
13451 # non-ABI changing flag. | |
13452 ;; | |
13453 | |
13454 gnu) | |
13455 # Default optimization flags for gcc on all systems. | |
13456 # Somehow -O3 does not imply -fomit-frame-pointer on ia32 | |
13457 CFLAGS="-O3 -fomit-frame-pointer" | |
13458 | |
13459 # tune for the host by default | |
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mtune=native" >&5 | |
13461 $as_echo_n "checking whether C compiler accepts -mtune=native... " >&6; } | |
13462 if ${ax_cv_c_flags__mtune_native+:} false; then : | |
13463 $as_echo_n "(cached) " >&6 | |
13464 else | |
13465 | |
13466 ax_save_FLAGS=$CFLAGS | |
13467 CFLAGS="-mtune=native" | |
13468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13469 /* end confdefs.h. */ | |
13470 | |
13471 int | |
13472 main () | |
13473 { | |
13474 | |
13475 ; | |
13476 return 0; | |
13477 } | |
13478 _ACEOF | |
13479 if ac_fn_c_try_compile "$LINENO"; then : | |
13480 ax_cv_c_flags__mtune_native=yes | |
13481 else | |
13482 ax_cv_c_flags__mtune_native=no | |
13483 fi | |
13484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13485 CFLAGS=$ax_save_FLAGS | |
13486 fi | |
13487 | |
13488 eval ax_check_compiler_flags=$ax_cv_c_flags__mtune_native | |
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
13490 $as_echo "$ax_check_compiler_flags" >&6; } | |
13491 if test "x$ax_check_compiler_flags" = xyes; then | |
13492 CFLAGS="$CFLAGS -mtune=native" | |
13493 else | |
13494 : | |
13495 fi | |
13496 | |
13497 | |
13498 # -malign-double for x86 systems | |
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5 | |
13500 $as_echo_n "checking whether C compiler accepts -malign-double... " >&6; } | |
13501 if ${ax_cv_c_flags__malign_double+:} false; then : | |
13502 $as_echo_n "(cached) " >&6 | |
13503 else | |
13504 | |
13505 ax_save_FLAGS=$CFLAGS | |
13506 CFLAGS="-malign-double" | |
13507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13508 /* end confdefs.h. */ | |
13509 | |
13510 int | |
13511 main () | |
13512 { | |
13513 | |
13514 ; | |
13515 return 0; | |
13516 } | |
13517 _ACEOF | |
13518 if ac_fn_c_try_compile "$LINENO"; then : | |
13519 ax_cv_c_flags__malign_double=yes | |
13520 else | |
13521 ax_cv_c_flags__malign_double=no | |
13522 fi | |
13523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13524 CFLAGS=$ax_save_FLAGS | |
13525 fi | |
13526 | |
13527 eval ax_check_compiler_flags=$ax_cv_c_flags__malign_double | |
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
13529 $as_echo "$ax_check_compiler_flags" >&6; } | |
13530 if test "x$ax_check_compiler_flags" = xyes; then | |
13531 CFLAGS="$CFLAGS -malign-double" | |
13532 else | |
13533 : | |
13534 fi | |
13535 | |
13536 | |
13537 # -fstrict-aliasing for gcc-2.95+ | |
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5 | |
13539 $as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; } | |
13540 if ${ax_cv_c_flags__fstrict_aliasing+:} false; then : | |
13541 $as_echo_n "(cached) " >&6 | |
13542 else | |
13543 | |
13544 ax_save_FLAGS=$CFLAGS | |
13545 CFLAGS="-fstrict-aliasing" | |
13546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13547 /* end confdefs.h. */ | |
13548 | |
13549 int | |
13550 main () | |
13551 { | |
13552 | |
13553 ; | |
13554 return 0; | |
13555 } | |
13556 _ACEOF | |
13557 if ac_fn_c_try_compile "$LINENO"; then : | |
13558 ax_cv_c_flags__fstrict_aliasing=yes | |
13559 else | |
13560 ax_cv_c_flags__fstrict_aliasing=no | |
13561 fi | |
13562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13563 CFLAGS=$ax_save_FLAGS | |
13564 fi | |
13565 | |
13566 eval ax_check_compiler_flags=$ax_cv_c_flags__fstrict_aliasing | |
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
13568 $as_echo "$ax_check_compiler_flags" >&6; } | |
13569 if test "x$ax_check_compiler_flags" = xyes; then | |
13570 CFLAGS="$CFLAGS -fstrict-aliasing" | |
13571 else | |
13572 : | |
13573 fi | |
13574 | |
13575 | |
13576 # -fno-schedule-insns is pretty much required on all risc | |
13577 # processors. | |
13578 # | |
13579 # gcc performs one pass of instruction scheduling, then a pass of | |
13580 # register allocation, then another pass of instruction | |
13581 # scheduling. The first pass reorders instructions in a way that | |
13582 # is pretty much the worst possible for the purposes of register | |
13583 # allocation. We disable the first pass. | |
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-schedule-insns" >&5 | |
13585 $as_echo_n "checking whether C compiler accepts -fno-schedule-insns... " >&6; } | |
13586 if ${ax_cv_c_flags__fno_schedule_insns+:} false; then : | |
13587 $as_echo_n "(cached) " >&6 | |
13588 else | |
13589 | |
13590 ax_save_FLAGS=$CFLAGS | |
13591 CFLAGS="-fno-schedule-insns" | |
13592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13593 /* end confdefs.h. */ | |
13594 | |
13595 int | |
13596 main () | |
13597 { | |
13598 | |
13599 ; | |
13600 return 0; | |
13601 } | |
13602 _ACEOF | |
13603 if ac_fn_c_try_compile "$LINENO"; then : | |
13604 ax_cv_c_flags__fno_schedule_insns=yes | |
13605 else | |
13606 ax_cv_c_flags__fno_schedule_insns=no | |
13607 fi | |
13608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13609 CFLAGS=$ax_save_FLAGS | |
13610 fi | |
13611 | |
13612 eval ax_check_compiler_flags=$ax_cv_c_flags__fno_schedule_insns | |
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
13614 $as_echo "$ax_check_compiler_flags" >&6; } | |
13615 if test "x$ax_check_compiler_flags" = xyes; then | |
13616 CFLAGS="$CFLAGS -fno-schedule-insns" | |
13617 else | |
13618 : | |
13619 fi | |
13620 | |
13621 | |
13622 # note that we enable "unsafe" fp optimization with other compilers, too | |
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5 | |
13624 $as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; } | |
13625 if ${ax_cv_c_flags__ffast_math+:} false; then : | |
13626 $as_echo_n "(cached) " >&6 | |
13627 else | |
13628 | |
13629 ax_save_FLAGS=$CFLAGS | |
13630 CFLAGS="-ffast-math" | |
13631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13632 /* end confdefs.h. */ | |
13633 | |
13634 int | |
13635 main () | |
13636 { | |
13637 | |
13638 ; | |
13639 return 0; | |
13640 } | |
13641 _ACEOF | |
13642 if ac_fn_c_try_compile "$LINENO"; then : | |
13643 ax_cv_c_flags__ffast_math=yes | |
13644 else | |
13645 ax_cv_c_flags__ffast_math=no | |
13646 fi | |
13647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13648 CFLAGS=$ax_save_FLAGS | |
13649 fi | |
13650 | |
13651 eval ax_check_compiler_flags=$ax_cv_c_flags__ffast_math | |
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
13653 $as_echo "$ax_check_compiler_flags" >&6; } | |
13654 if test "x$ax_check_compiler_flags" = xyes; then | |
13655 CFLAGS="$CFLAGS -ffast-math" | |
13656 else | |
13657 : | |
13658 fi | |
13659 | |
13660 | |
13661 ;; | |
13662 esac | |
13663 | |
13664 if test -z "$CFLAGS"; then | |
13665 echo "" | |
13666 echo "********************************************************" | |
13667 echo "* WARNING: Don't know the best CFLAGS for this system *" | |
13668 echo "* Use ./configure CFLAGS=... to specify your own flags *" | |
13669 echo "* (otherwise, a default of CFLAGS=-O3 will be used) *" | |
13670 echo "********************************************************" | |
13671 echo "" | |
13672 CFLAGS="-O3" | |
13673 fi | |
13674 | |
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5 | |
13676 $as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; } | |
13677 ax_save_FLAGS=$CFLAGS | |
13678 CFLAGS="$CFLAGS" | |
13679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13680 /* end confdefs.h. */ | |
13681 | |
13682 int | |
13683 main () | |
13684 { | |
13685 | |
13686 ; | |
13687 return 0; | |
13688 } | |
13689 _ACEOF | |
13690 if ac_fn_c_try_compile "$LINENO"; then : | |
13691 eval `$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`=yes | |
13692 else | |
13693 eval `$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`=no | |
13694 fi | |
13695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13696 CFLAGS=$ax_save_FLAGS | |
13697 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh` | |
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
13699 $as_echo "$ax_check_compiler_flags" >&6; } | |
13700 if test "x$ax_check_compiler_flags" = xyes; then | |
13701 : | |
13702 else | |
13703 | |
13704 echo "" | |
13705 echo "********************************************************" | |
13706 echo "* WARNING: The guessed CFLAGS don't seem to work with *" | |
13707 echo "* your compiler. *" | |
13708 echo "* Use ./configure CFLAGS=... to specify your own flags *" | |
13709 echo "********************************************************" | |
13710 echo "" | |
13711 CFLAGS="" | |
13712 | |
13713 fi | |
13714 | |
13715 | |
13716 fi | |
13717 | |
13718 | |
13719 case "${ax_cv_c_compiler_vendor}" in | |
13720 intel) # Stop icc from defining __GNUC__, except on MacOS where this fails | |
13721 case "${host_os}" in | |
13722 *darwin*) ;; # icc -no-gcc fails to compile some system headers | |
13723 *) | |
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -no-gcc" >&5 | |
13725 $as_echo_n "checking whether C compiler accepts -no-gcc... " >&6; } | |
13726 if ${ax_cv_c_flags__no_gcc+:} false; then : | |
13727 $as_echo_n "(cached) " >&6 | |
13728 else | |
13729 | |
13730 ax_save_FLAGS=$CFLAGS | |
13731 CFLAGS="-no-gcc" | |
13732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13733 /* end confdefs.h. */ | |
13734 | |
13735 int | |
13736 main () | |
13737 { | |
13738 | |
13739 ; | |
13740 return 0; | |
13741 } | |
13742 _ACEOF | |
13743 if ac_fn_c_try_compile "$LINENO"; then : | |
13744 ax_cv_c_flags__no_gcc=yes | |
13745 else | |
13746 ax_cv_c_flags__no_gcc=no | |
13747 fi | |
13748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13749 CFLAGS=$ax_save_FLAGS | |
13750 fi | |
13751 | |
13752 eval ax_check_compiler_flags=$ax_cv_c_flags__no_gcc | |
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
13754 $as_echo "$ax_check_compiler_flags" >&6; } | |
13755 if test "x$ax_check_compiler_flags" = xyes; then | |
13756 CC="$CC -no-gcc" | |
13757 else | |
13758 : | |
13759 fi | |
13760 | |
13761 ;; | |
13762 esac | |
13763 ;; | |
13764 | |
13765 hp) # must (sometimes) manually increase cpp limits to handle fftw3.h | |
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wp,-H128000" >&5 | |
13767 $as_echo_n "checking whether C compiler accepts -Wp,-H128000... " >&6; } | |
13768 if ${ax_cv_c_flags__Wp+:} false; then : | |
13769 $as_echo_n "(cached) " >&6 | |
13770 else | |
13771 | |
13772 ax_save_FLAGS=$CFLAGS | |
13773 CFLAGS="-Wp,-H128000" | |
13774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13775 /* end confdefs.h. */ | |
13776 | |
13777 int | |
13778 main () | |
13779 { | |
13780 | |
13781 ; | |
13782 return 0; | |
13783 } | |
13784 _ACEOF | |
13785 if ac_fn_c_try_compile "$LINENO"; then : | |
13786 ax_cv_c_flags__Wp=yes | |
13787 else | |
13788 ax_cv_c_flags__Wp=no | |
13789 fi | |
13790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13791 CFLAGS=$ax_save_FLAGS | |
13792 fi | |
13793 | |
13794 eval ax_check_compiler_flags=$ax_cv_c_flags__Wp | |
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
13796 $as_echo "$ax_check_compiler_flags" >&6; } | |
13797 if test "x$ax_check_compiler_flags" = xyes; then | |
13798 CC="$CC -Wp,-H128000" | |
13799 else | |
13800 : | |
13801 fi | |
13802 | |
13803 ;; | |
13804 | |
13805 portland) # -Masmkeyword required for asm("") cycle counters | |
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Masmkeyword" >&5 | |
13807 $as_echo_n "checking whether C compiler accepts -Masmkeyword... " >&6; } | |
13808 if ${ax_cv_c_flags__Masmkeyword+:} false; then : | |
13809 $as_echo_n "(cached) " >&6 | |
13810 else | |
13811 | |
13812 ax_save_FLAGS=$CFLAGS | |
13813 CFLAGS="-Masmkeyword" | |
13814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13815 /* end confdefs.h. */ | |
13816 | |
13817 int | |
13818 main () | |
13819 { | |
13820 | |
13821 ; | |
13822 return 0; | |
13823 } | |
13824 _ACEOF | |
13825 if ac_fn_c_try_compile "$LINENO"; then : | |
13826 ax_cv_c_flags__Masmkeyword=yes | |
13827 else | |
13828 ax_cv_c_flags__Masmkeyword=no | |
13829 fi | |
13830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13831 CFLAGS=$ax_save_FLAGS | |
13832 fi | |
13833 | |
13834 eval ax_check_compiler_flags=$ax_cv_c_flags__Masmkeyword | |
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
13836 $as_echo "$ax_check_compiler_flags" >&6; } | |
13837 if test "x$ax_check_compiler_flags" = xyes; then | |
13838 CC="$CC -Masmkeyword" | |
13839 else | |
13840 : | |
13841 fi | |
13842 | |
13843 ;; | |
13844 esac | |
13845 | |
13846 case "${ax_cv_c_compiler_vendor}" in | |
13847 gnu|intel) | |
13848 # SSE/SSE2 | |
13849 if test "$have_sse2" = "yes" -a "x$SSE2_CFLAGS" = x; then | |
13850 if test "$PRECISION" = d; then flag=msse2; else flag=msse; fi | |
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -$flag" >&5 | |
13852 $as_echo_n "checking whether C compiler accepts -$flag... " >&6; } | |
13853 ax_save_FLAGS=$CFLAGS | |
13854 CFLAGS="-$flag" | |
13855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13856 /* end confdefs.h. */ | |
13857 | |
13858 int | |
13859 main () | |
13860 { | |
13861 | |
13862 ; | |
13863 return 0; | |
13864 } | |
13865 _ACEOF | |
13866 if ac_fn_c_try_compile "$LINENO"; then : | |
13867 eval `$as_echo "ax_cv_c_flags_-$flag" | $as_tr_sh`=yes | |
13868 else | |
13869 eval `$as_echo "ax_cv_c_flags_-$flag" | $as_tr_sh`=no | |
13870 fi | |
13871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13872 CFLAGS=$ax_save_FLAGS | |
13873 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_-$flag" | $as_tr_sh` | |
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
13875 $as_echo "$ax_check_compiler_flags" >&6; } | |
13876 if test "x$ax_check_compiler_flags" = xyes; then | |
13877 SSE2_CFLAGS="-$flag" | |
13878 else | |
13879 as_fn_error $? "Need a version of gcc with -$flag" "$LINENO" 5 | |
13880 fi | |
13881 | |
13882 fi | |
13883 | |
13884 # AVX | |
13885 if test "$have_avx" = "yes" -a "x$AVX_CFLAGS" = x; then | |
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx" >&5 | |
13887 $as_echo_n "checking whether C compiler accepts -mavx... " >&6; } | |
13888 if ${ax_cv_c_flags__mavx+:} false; then : | |
13889 $as_echo_n "(cached) " >&6 | |
13890 else | |
13891 | |
13892 ax_save_FLAGS=$CFLAGS | |
13893 CFLAGS="-mavx" | |
13894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13895 /* end confdefs.h. */ | |
13896 | |
13897 int | |
13898 main () | |
13899 { | |
13900 | |
13901 ; | |
13902 return 0; | |
13903 } | |
13904 _ACEOF | |
13905 if ac_fn_c_try_compile "$LINENO"; then : | |
13906 ax_cv_c_flags__mavx=yes | |
13907 else | |
13908 ax_cv_c_flags__mavx=no | |
13909 fi | |
13910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13911 CFLAGS=$ax_save_FLAGS | |
13912 fi | |
13913 | |
13914 eval ax_check_compiler_flags=$ax_cv_c_flags__mavx | |
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
13916 $as_echo "$ax_check_compiler_flags" >&6; } | |
13917 if test "x$ax_check_compiler_flags" = xyes; then | |
13918 AVX_CFLAGS="-mavx" | |
13919 else | |
13920 as_fn_error $? "Need a version of gcc with -mavx" "$LINENO" 5 | |
13921 fi | |
13922 | |
13923 fi | |
13924 | |
13925 if test "$have_altivec" = "yes" -a "x$ALTIVEC_CFLAGS" = x; then | |
13926 # -DFAKE__VEC__ is a workaround because gcc-3.3 does not | |
13927 # #define __VEC__ with -maltivec. | |
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -faltivec" >&5 | |
13929 $as_echo_n "checking whether C compiler accepts -faltivec... " >&6; } | |
13930 if ${ax_cv_c_flags__faltivec+:} false; then : | |
13931 $as_echo_n "(cached) " >&6 | |
13932 else | |
13933 | |
13934 ax_save_FLAGS=$CFLAGS | |
13935 CFLAGS="-faltivec" | |
13936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13937 /* end confdefs.h. */ | |
13938 | |
13939 int | |
13940 main () | |
13941 { | |
13942 | |
13943 ; | |
13944 return 0; | |
13945 } | |
13946 _ACEOF | |
13947 if ac_fn_c_try_compile "$LINENO"; then : | |
13948 ax_cv_c_flags__faltivec=yes | |
13949 else | |
13950 ax_cv_c_flags__faltivec=no | |
13951 fi | |
13952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13953 CFLAGS=$ax_save_FLAGS | |
13954 fi | |
13955 | |
13956 eval ax_check_compiler_flags=$ax_cv_c_flags__faltivec | |
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
13958 $as_echo "$ax_check_compiler_flags" >&6; } | |
13959 if test "x$ax_check_compiler_flags" = xyes; then | |
13960 ALTIVEC_CFLAGS="-faltivec" | |
13961 else | |
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -maltivec -mabi=altivec" >&5 | |
13963 $as_echo_n "checking whether C compiler accepts -maltivec -mabi=altivec... " >&6; } | |
13964 if ${ax_cv_c_flags__maltivec__mabi_altivec+:} false; then : | |
13965 $as_echo_n "(cached) " >&6 | |
13966 else | |
13967 | |
13968 ax_save_FLAGS=$CFLAGS | |
13969 CFLAGS="-maltivec -mabi=altivec" | |
13970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13971 /* end confdefs.h. */ | |
13972 | |
13973 int | |
13974 main () | |
13975 { | |
13976 | |
13977 ; | |
13978 return 0; | |
13979 } | |
13980 _ACEOF | |
13981 if ac_fn_c_try_compile "$LINENO"; then : | |
13982 ax_cv_c_flags__maltivec__mabi_altivec=yes | |
13983 else | |
13984 ax_cv_c_flags__maltivec__mabi_altivec=no | |
13985 fi | |
13986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13987 CFLAGS=$ax_save_FLAGS | |
13988 fi | |
13989 | |
13990 eval ax_check_compiler_flags=$ax_cv_c_flags__maltivec__mabi_altivec | |
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
13992 $as_echo "$ax_check_compiler_flags" >&6; } | |
13993 if test "x$ax_check_compiler_flags" = xyes; then | |
13994 ALTIVEC_CFLAGS="-maltivec -mabi=altivec -DFAKE__VEC__" | |
13995 else | |
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvec" >&5 | |
13997 $as_echo_n "checking whether C compiler accepts -fvec... " >&6; } | |
13998 if ${ax_cv_c_flags__fvec+:} false; then : | |
13999 $as_echo_n "(cached) " >&6 | |
14000 else | |
14001 | |
14002 ax_save_FLAGS=$CFLAGS | |
14003 CFLAGS="-fvec" | |
14004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14005 /* end confdefs.h. */ | |
14006 | |
14007 int | |
14008 main () | |
14009 { | |
14010 | |
14011 ; | |
14012 return 0; | |
14013 } | |
14014 _ACEOF | |
14015 if ac_fn_c_try_compile "$LINENO"; then : | |
14016 ax_cv_c_flags__fvec=yes | |
14017 else | |
14018 ax_cv_c_flags__fvec=no | |
14019 fi | |
14020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14021 CFLAGS=$ax_save_FLAGS | |
14022 fi | |
14023 | |
14024 eval ax_check_compiler_flags=$ax_cv_c_flags__fvec | |
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
14026 $as_echo "$ax_check_compiler_flags" >&6; } | |
14027 if test "x$ax_check_compiler_flags" = xyes; then | |
14028 ALTIVEC_CFLAGS="-fvec" | |
14029 else | |
14030 as_fn_error $? "Need a version of gcc with -maltivec" "$LINENO" 5 | |
14031 fi | |
14032 | |
14033 fi | |
14034 | |
14035 fi | |
14036 | |
14037 fi | |
14038 | |
14039 if test "$have_neon" = "yes" -a "x$NEON_CFLAGS" = x; then | |
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mfpu=neon" >&5 | |
14041 $as_echo_n "checking whether C compiler accepts -mfpu=neon... " >&6; } | |
14042 if ${ax_cv_c_flags__mfpu_neon+:} false; then : | |
14043 $as_echo_n "(cached) " >&6 | |
14044 else | |
14045 | |
14046 ax_save_FLAGS=$CFLAGS | |
14047 CFLAGS="-mfpu=neon" | |
14048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14049 /* end confdefs.h. */ | |
14050 | |
14051 int | |
14052 main () | |
14053 { | |
14054 | |
14055 ; | |
14056 return 0; | |
14057 } | |
14058 _ACEOF | |
14059 if ac_fn_c_try_compile "$LINENO"; then : | |
14060 ax_cv_c_flags__mfpu_neon=yes | |
14061 else | |
14062 ax_cv_c_flags__mfpu_neon=no | |
14063 fi | |
14064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14065 CFLAGS=$ax_save_FLAGS | |
14066 fi | |
14067 | |
14068 eval ax_check_compiler_flags=$ax_cv_c_flags__mfpu_neon | |
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
14070 $as_echo "$ax_check_compiler_flags" >&6; } | |
14071 if test "x$ax_check_compiler_flags" = xyes; then | |
14072 NEON_CFLAGS="-mfpu=neon" | |
14073 else | |
14074 as_fn_error $? "Need a version of gcc with -mfpu=neon" "$LINENO" 5 | |
14075 fi | |
14076 | |
14077 fi | |
14078 | |
14079 ;; | |
14080 esac | |
14081 | |
14082 | |
14083 | |
14084 | |
14085 | |
14086 | |
14087 if test "$with_incoming_stack_boundary"x != "no"x; then | |
14088 case "${ax_cv_c_compiler_vendor}" in | |
14089 gnu) | |
14090 tentative_flags="-mincoming-stack-boundary=$with_incoming_stack_boundary"; | |
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $tentative_flags" >&5 | |
14092 $as_echo_n "checking whether C compiler accepts $tentative_flags... " >&6; } | |
14093 ax_save_FLAGS=$CFLAGS | |
14094 CFLAGS="$tentative_flags" | |
14095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14096 /* end confdefs.h. */ | |
14097 | |
14098 int | |
14099 main () | |
14100 { | |
14101 | |
14102 ; | |
14103 return 0; | |
14104 } | |
14105 _ACEOF | |
14106 if ac_fn_c_try_compile "$LINENO"; then : | |
14107 eval `$as_echo "ax_cv_c_flags_$tentative_flags" | $as_tr_sh`=yes | |
14108 else | |
14109 eval `$as_echo "ax_cv_c_flags_$tentative_flags" | $as_tr_sh`=no | |
14110 fi | |
14111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14112 CFLAGS=$ax_save_FLAGS | |
14113 eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$tentative_flags" | $as_tr_sh` | |
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
14115 $as_echo "$ax_check_compiler_flags" >&6; } | |
14116 if test "x$ax_check_compiler_flags" = xyes; then | |
14117 STACK_ALIGN_CFLAGS=$tentative_flags | |
14118 else | |
14119 : | |
14120 fi | |
14121 | |
14122 ;; | |
14123 esac | |
14124 fi | |
14125 | |
14126 | |
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
14128 $as_echo_n "checking for ANSI C header files... " >&6; } | |
14129 if ${ac_cv_header_stdc+:} false; then : | |
14130 $as_echo_n "(cached) " >&6 | |
14131 else | |
14132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14133 /* end confdefs.h. */ | |
14134 #include <stdlib.h> | |
14135 #include <stdarg.h> | |
14136 #include <string.h> | |
14137 #include <float.h> | |
14138 | |
14139 int | |
14140 main () | |
14141 { | |
14142 | |
14143 ; | |
14144 return 0; | |
14145 } | |
14146 _ACEOF | |
14147 if ac_fn_c_try_compile "$LINENO"; then : | |
14148 ac_cv_header_stdc=yes | |
14149 else | |
14150 ac_cv_header_stdc=no | |
14151 fi | |
14152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14153 | |
14154 if test $ac_cv_header_stdc = yes; then | |
14155 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
14156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14157 /* end confdefs.h. */ | |
14158 #include <string.h> | |
14159 | |
14160 _ACEOF | |
14161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14162 $EGREP "memchr" >/dev/null 2>&1; then : | |
14163 | |
14164 else | |
14165 ac_cv_header_stdc=no | |
14166 fi | |
14167 rm -f conftest* | |
14168 | |
14169 fi | |
14170 | |
14171 if test $ac_cv_header_stdc = yes; then | |
14172 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
14173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14174 /* end confdefs.h. */ | |
14175 #include <stdlib.h> | |
14176 | |
14177 _ACEOF | |
14178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14179 $EGREP "free" >/dev/null 2>&1; then : | |
14180 | |
14181 else | |
14182 ac_cv_header_stdc=no | |
14183 fi | |
14184 rm -f conftest* | |
14185 | |
14186 fi | |
14187 | |
14188 if test $ac_cv_header_stdc = yes; then | |
14189 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
14190 if test "$cross_compiling" = yes; then : | |
14191 : | |
14192 else | |
14193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14194 /* end confdefs.h. */ | |
14195 #include <ctype.h> | |
14196 #include <stdlib.h> | |
14197 #if ((' ' & 0x0FF) == 0x020) | |
14198 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
14199 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
14200 #else | |
14201 # define ISLOWER(c) \ | |
14202 (('a' <= (c) && (c) <= 'i') \ | |
14203 || ('j' <= (c) && (c) <= 'r') \ | |
14204 || ('s' <= (c) && (c) <= 'z')) | |
14205 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
14206 #endif | |
14207 | |
14208 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
14209 int | |
14210 main () | |
14211 { | |
14212 int i; | |
14213 for (i = 0; i < 256; i++) | |
14214 if (XOR (islower (i), ISLOWER (i)) | |
14215 || toupper (i) != TOUPPER (i)) | |
14216 return 2; | |
14217 return 0; | |
14218 } | |
14219 _ACEOF | |
14220 if ac_fn_c_try_run "$LINENO"; then : | |
14221 | |
14222 else | |
14223 ac_cv_header_stdc=no | |
14224 fi | |
14225 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14226 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14227 fi | |
14228 | |
14229 fi | |
14230 fi | |
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
14232 $as_echo "$ac_cv_header_stdc" >&6; } | |
14233 if test $ac_cv_header_stdc = yes; then | |
14234 | |
14235 $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
14236 | |
14237 fi | |
14238 | |
14239 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 | |
14240 do : | |
14241 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14242 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
14243 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
14244 cat >>confdefs.h <<_ACEOF | |
14245 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14246 _ACEOF | |
14247 | |
14248 fi | |
14249 | |
14250 done | |
14251 | |
14252 | |
14253 save_CFLAGS="$CFLAGS" | |
14254 save_CPPFLAGS="$CPPFLAGS" | |
14255 CFLAGS="$CFLAGS $ALTIVEC_CFLAGS" | |
14256 CPPFLAGS="$CPPFLAGS $ALTIVEC_CFLAGS" | |
14257 for ac_header in altivec.h | |
14258 do : | |
14259 ac_fn_c_check_header_mongrel "$LINENO" "altivec.h" "ac_cv_header_altivec_h" "$ac_includes_default" | |
14260 if test "x$ac_cv_header_altivec_h" = xyes; then : | |
14261 cat >>confdefs.h <<_ACEOF | |
14262 #define HAVE_ALTIVEC_H 1 | |
14263 _ACEOF | |
14264 | |
14265 fi | |
14266 | |
14267 done | |
14268 | |
14269 CFLAGS="$save_CFLAGS" | |
14270 CPPFLAGS="$save_CPPFLAGS" | |
14271 | |
14272 | |
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | |
14274 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
14275 if ${ac_cv_c_const+:} false; then : | |
14276 $as_echo_n "(cached) " >&6 | |
14277 else | |
14278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14279 /* end confdefs.h. */ | |
14280 | |
14281 int | |
14282 main () | |
14283 { | |
14284 | |
14285 #ifndef __cplusplus | |
14286 /* Ultrix mips cc rejects this sort of thing. */ | |
14287 typedef int charset[2]; | |
14288 const charset cs = { 0, 0 }; | |
14289 /* SunOS 4.1.1 cc rejects this. */ | |
14290 char const *const *pcpcc; | |
14291 char **ppc; | |
14292 /* NEC SVR4.0.2 mips cc rejects this. */ | |
14293 struct point {int x, y;}; | |
14294 static struct point const zero = {0,0}; | |
14295 /* AIX XL C 1.02.0.0 rejects this. | |
14296 It does not let you subtract one const X* pointer from another in | |
14297 an arm of an if-expression whose if-part is not a constant | |
14298 expression */ | |
14299 const char *g = "string"; | |
14300 pcpcc = &g + (g ? g-g : 0); | |
14301 /* HPUX 7.0 cc rejects these. */ | |
14302 ++pcpcc; | |
14303 ppc = (char**) pcpcc; | |
14304 pcpcc = (char const *const *) ppc; | |
14305 { /* SCO 3.2v4 cc rejects this sort of thing. */ | |
14306 char tx; | |
14307 char *t = &tx; | |
14308 char const *s = 0 ? (char *) 0 : (char const *) 0; | |
14309 | |
14310 *t++ = 0; | |
14311 if (s) return 0; | |
14312 } | |
14313 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
14314 int x[] = {25, 17}; | |
14315 const int *foo = &x[0]; | |
14316 ++foo; | |
14317 } | |
14318 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
14319 typedef const int *iptr; | |
14320 iptr p = 0; | |
14321 ++p; | |
14322 } | |
14323 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying | |
14324 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
14325 struct s { int j; const int *ap[3]; } bx; | |
14326 struct s *b = &bx; b->j = 5; | |
14327 } | |
14328 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
14329 const int foo = 10; | |
14330 if (!foo) return 0; | |
14331 } | |
14332 return !cs[0] && !zero.x; | |
14333 #endif | |
14334 | |
14335 ; | |
14336 return 0; | |
14337 } | |
14338 _ACEOF | |
14339 if ac_fn_c_try_compile "$LINENO"; then : | |
14340 ac_cv_c_const=yes | |
14341 else | |
14342 ac_cv_c_const=no | |
14343 fi | |
14344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14345 fi | |
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | |
14347 $as_echo "$ac_cv_c_const" >&6; } | |
14348 if test $ac_cv_c_const = no; then | |
14349 | |
14350 $as_echo "#define const /**/" >>confdefs.h | |
14351 | |
14352 fi | |
14353 | |
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | |
14355 $as_echo_n "checking for inline... " >&6; } | |
14356 if ${ac_cv_c_inline+:} false; then : | |
14357 $as_echo_n "(cached) " >&6 | |
14358 else | |
14359 ac_cv_c_inline=no | |
14360 for ac_kw in inline __inline__ __inline; do | |
14361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14362 /* end confdefs.h. */ | |
14363 #ifndef __cplusplus | |
14364 typedef int foo_t; | |
14365 static $ac_kw foo_t static_foo () {return 0; } | |
14366 $ac_kw foo_t foo () {return 0; } | |
14367 #endif | |
14368 | |
14369 _ACEOF | |
14370 if ac_fn_c_try_compile "$LINENO"; then : | |
14371 ac_cv_c_inline=$ac_kw | |
14372 fi | |
14373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14374 test "$ac_cv_c_inline" != no && break | |
14375 done | |
14376 | |
14377 fi | |
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | |
14379 $as_echo "$ac_cv_c_inline" >&6; } | |
14380 | |
14381 case $ac_cv_c_inline in | |
14382 inline | yes) ;; | |
14383 *) | |
14384 case $ac_cv_c_inline in | |
14385 no) ac_val=;; | |
14386 *) ac_val=$ac_cv_c_inline;; | |
14387 esac | |
14388 cat >>confdefs.h <<_ACEOF | |
14389 #ifndef __cplusplus | |
14390 #define inline $ac_val | |
14391 #endif | |
14392 _ACEOF | |
14393 ;; | |
14394 esac | |
14395 | |
14396 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | |
14397 if test "x$ac_cv_type_size_t" = xyes; then : | |
14398 | |
14399 else | |
14400 | |
14401 cat >>confdefs.h <<_ACEOF | |
14402 #define size_t unsigned int | |
14403 _ACEOF | |
14404 | |
14405 fi | |
14406 | |
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | |
14408 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | |
14409 if ${ac_cv_header_time+:} false; then : | |
14410 $as_echo_n "(cached) " >&6 | |
14411 else | |
14412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14413 /* end confdefs.h. */ | |
14414 #include <sys/types.h> | |
14415 #include <sys/time.h> | |
14416 #include <time.h> | |
14417 | |
14418 int | |
14419 main () | |
14420 { | |
14421 if ((struct tm *) 0) | |
14422 return 0; | |
14423 ; | |
14424 return 0; | |
14425 } | |
14426 _ACEOF | |
14427 if ac_fn_c_try_compile "$LINENO"; then : | |
14428 ac_cv_header_time=yes | |
14429 else | |
14430 ac_cv_header_time=no | |
14431 fi | |
14432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14433 fi | |
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | |
14435 $as_echo "$ac_cv_header_time" >&6; } | |
14436 if test $ac_cv_header_time = yes; then | |
14437 | |
14438 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | |
14439 | |
14440 fi | |
14441 | |
14442 ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default" | |
14443 if test "x$ac_cv_type_long_double" = xyes; then : | |
14444 | |
14445 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h | |
14446 | |
14447 else | |
14448 | |
14449 if test $PRECISION = l; then | |
14450 as_fn_error $? "long double is not a supported type with your compiler." "$LINENO" 5 | |
14451 fi | |
14452 | |
14453 fi | |
14454 | |
14455 ac_fn_c_check_type "$LINENO" "hrtime_t" "ac_cv_type_hrtime_t" " | |
14456 #if HAVE_SYS_TIME_H | |
14457 #include <sys/time.h> | |
14458 #endif | |
14459 | |
14460 " | |
14461 if test "x$ac_cv_type_hrtime_t" = xyes; then : | |
14462 | |
14463 $as_echo "#define HAVE_HRTIME_T 1" >>confdefs.h | |
14464 | |
14465 fi | |
14466 | |
14467 | |
14468 # The cast to long int works around a bug in the HP C Compiler | |
14469 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14470 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14471 # This bug is HP SR number 8606223364. | |
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
14473 $as_echo_n "checking size of int... " >&6; } | |
14474 if ${ac_cv_sizeof_int+:} false; then : | |
14475 $as_echo_n "(cached) " >&6 | |
14476 else | |
14477 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | |
14478 | |
14479 else | |
14480 if test "$ac_cv_type_int" = yes; then | |
14481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14483 as_fn_error 77 "cannot compute sizeof (int) | |
14484 See \`config.log' for more details" "$LINENO" 5; } | |
14485 else | |
14486 ac_cv_sizeof_int=0 | |
14487 fi | |
14488 fi | |
14489 | |
14490 fi | |
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
14492 $as_echo "$ac_cv_sizeof_int" >&6; } | |
14493 | |
14494 | |
14495 | |
14496 cat >>confdefs.h <<_ACEOF | |
14497 #define SIZEOF_INT $ac_cv_sizeof_int | |
14498 _ACEOF | |
14499 | |
14500 | |
14501 # The cast to long int works around a bug in the HP C Compiler | |
14502 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14503 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14504 # This bug is HP SR number 8606223364. | |
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 | |
14506 $as_echo_n "checking size of unsigned int... " >&6; } | |
14507 if ${ac_cv_sizeof_unsigned_int+:} false; then : | |
14508 $as_echo_n "(cached) " >&6 | |
14509 else | |
14510 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then : | |
14511 | |
14512 else | |
14513 if test "$ac_cv_type_unsigned_int" = yes; then | |
14514 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14516 as_fn_error 77 "cannot compute sizeof (unsigned int) | |
14517 See \`config.log' for more details" "$LINENO" 5; } | |
14518 else | |
14519 ac_cv_sizeof_unsigned_int=0 | |
14520 fi | |
14521 fi | |
14522 | |
14523 fi | |
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5 | |
14525 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; } | |
14526 | |
14527 | |
14528 | |
14529 cat >>confdefs.h <<_ACEOF | |
14530 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int | |
14531 _ACEOF | |
14532 | |
14533 | |
14534 # The cast to long int works around a bug in the HP C Compiler | |
14535 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14536 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14537 # This bug is HP SR number 8606223364. | |
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
14539 $as_echo_n "checking size of long... " >&6; } | |
14540 if ${ac_cv_sizeof_long+:} false; then : | |
14541 $as_echo_n "(cached) " >&6 | |
14542 else | |
14543 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : | |
14544 | |
14545 else | |
14546 if test "$ac_cv_type_long" = yes; then | |
14547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14549 as_fn_error 77 "cannot compute sizeof (long) | |
14550 See \`config.log' for more details" "$LINENO" 5; } | |
14551 else | |
14552 ac_cv_sizeof_long=0 | |
14553 fi | |
14554 fi | |
14555 | |
14556 fi | |
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
14558 $as_echo "$ac_cv_sizeof_long" >&6; } | |
14559 | |
14560 | |
14561 | |
14562 cat >>confdefs.h <<_ACEOF | |
14563 #define SIZEOF_LONG $ac_cv_sizeof_long | |
14564 _ACEOF | |
14565 | |
14566 | |
14567 # The cast to long int works around a bug in the HP C Compiler | |
14568 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14569 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14570 # This bug is HP SR number 8606223364. | |
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 | |
14572 $as_echo_n "checking size of unsigned long... " >&6; } | |
14573 if ${ac_cv_sizeof_unsigned_long+:} false; then : | |
14574 $as_echo_n "(cached) " >&6 | |
14575 else | |
14576 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : | |
14577 | |
14578 else | |
14579 if test "$ac_cv_type_unsigned_long" = yes; then | |
14580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14582 as_fn_error 77 "cannot compute sizeof (unsigned long) | |
14583 See \`config.log' for more details" "$LINENO" 5; } | |
14584 else | |
14585 ac_cv_sizeof_unsigned_long=0 | |
14586 fi | |
14587 fi | |
14588 | |
14589 fi | |
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 | |
14591 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; } | |
14592 | |
14593 | |
14594 | |
14595 cat >>confdefs.h <<_ACEOF | |
14596 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long | |
14597 _ACEOF | |
14598 | |
14599 | |
14600 # The cast to long int works around a bug in the HP C Compiler | |
14601 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14602 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14603 # This bug is HP SR number 8606223364. | |
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | |
14605 $as_echo_n "checking size of long long... " >&6; } | |
14606 if ${ac_cv_sizeof_long_long+:} false; then : | |
14607 $as_echo_n "(cached) " >&6 | |
14608 else | |
14609 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : | |
14610 | |
14611 else | |
14612 if test "$ac_cv_type_long_long" = yes; then | |
14613 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14615 as_fn_error 77 "cannot compute sizeof (long long) | |
14616 See \`config.log' for more details" "$LINENO" 5; } | |
14617 else | |
14618 ac_cv_sizeof_long_long=0 | |
14619 fi | |
14620 fi | |
14621 | |
14622 fi | |
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 | |
14624 $as_echo "$ac_cv_sizeof_long_long" >&6; } | |
14625 | |
14626 | |
14627 | |
14628 cat >>confdefs.h <<_ACEOF | |
14629 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
14630 _ACEOF | |
14631 | |
14632 | |
14633 # The cast to long int works around a bug in the HP C Compiler | |
14634 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14635 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14636 # This bug is HP SR number 8606223364. | |
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5 | |
14638 $as_echo_n "checking size of unsigned long long... " >&6; } | |
14639 if ${ac_cv_sizeof_unsigned_long_long+:} false; then : | |
14640 $as_echo_n "(cached) " >&6 | |
14641 else | |
14642 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then : | |
14643 | |
14644 else | |
14645 if test "$ac_cv_type_unsigned_long_long" = yes; then | |
14646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14648 as_fn_error 77 "cannot compute sizeof (unsigned long long) | |
14649 See \`config.log' for more details" "$LINENO" 5; } | |
14650 else | |
14651 ac_cv_sizeof_unsigned_long_long=0 | |
14652 fi | |
14653 fi | |
14654 | |
14655 fi | |
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5 | |
14657 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } | |
14658 | |
14659 | |
14660 | |
14661 cat >>confdefs.h <<_ACEOF | |
14662 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long | |
14663 _ACEOF | |
14664 | |
14665 | |
14666 # The cast to long int works around a bug in the HP C Compiler | |
14667 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14668 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14669 # This bug is HP SR number 8606223364. | |
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 | |
14671 $as_echo_n "checking size of size_t... " >&6; } | |
14672 if ${ac_cv_sizeof_size_t+:} false; then : | |
14673 $as_echo_n "(cached) " >&6 | |
14674 else | |
14675 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : | |
14676 | |
14677 else | |
14678 if test "$ac_cv_type_size_t" = yes; then | |
14679 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14681 as_fn_error 77 "cannot compute sizeof (size_t) | |
14682 See \`config.log' for more details" "$LINENO" 5; } | |
14683 else | |
14684 ac_cv_sizeof_size_t=0 | |
14685 fi | |
14686 fi | |
14687 | |
14688 fi | |
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 | |
14690 $as_echo "$ac_cv_sizeof_size_t" >&6; } | |
14691 | |
14692 | |
14693 | |
14694 cat >>confdefs.h <<_ACEOF | |
14695 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
14696 _ACEOF | |
14697 | |
14698 | |
14699 # The cast to long int works around a bug in the HP C Compiler | |
14700 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14701 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14702 # This bug is HP SR number 8606223364. | |
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ptrdiff_t" >&5 | |
14704 $as_echo_n "checking size of ptrdiff_t... " >&6; } | |
14705 if ${ac_cv_sizeof_ptrdiff_t+:} false; then : | |
14706 $as_echo_n "(cached) " >&6 | |
14707 else | |
14708 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ptrdiff_t))" "ac_cv_sizeof_ptrdiff_t" "$ac_includes_default"; then : | |
14709 | |
14710 else | |
14711 if test "$ac_cv_type_ptrdiff_t" = yes; then | |
14712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14714 as_fn_error 77 "cannot compute sizeof (ptrdiff_t) | |
14715 See \`config.log' for more details" "$LINENO" 5; } | |
14716 else | |
14717 ac_cv_sizeof_ptrdiff_t=0 | |
14718 fi | |
14719 fi | |
14720 | |
14721 fi | |
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ptrdiff_t" >&5 | |
14723 $as_echo "$ac_cv_sizeof_ptrdiff_t" >&6; } | |
14724 | |
14725 | |
14726 | |
14727 cat >>confdefs.h <<_ACEOF | |
14728 #define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t | |
14729 _ACEOF | |
14730 | |
14731 | |
14732 | |
14733 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default | |
14734 #ifdef HAVE_STDINT_H | |
14735 # include <stdint.h> | |
14736 #endif | |
14737 " | |
14738 if test "x$ac_cv_type_uintptr_t" = xyes; then : | |
14739 | |
14740 cat >>confdefs.h <<_ACEOF | |
14741 #define HAVE_UINTPTR_T 1 | |
14742 _ACEOF | |
14743 | |
14744 | |
14745 else | |
14746 # The cast to long int works around a bug in the HP C Compiler | |
14747 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14748 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14749 # This bug is HP SR number 8606223364. | |
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | |
14751 $as_echo_n "checking size of void *... " >&6; } | |
14752 if ${ac_cv_sizeof_void_p+:} false; then : | |
14753 $as_echo_n "(cached) " >&6 | |
14754 else | |
14755 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : | |
14756 | |
14757 else | |
14758 if test "$ac_cv_type_void_p" = yes; then | |
14759 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14761 as_fn_error 77 "cannot compute sizeof (void *) | |
14762 See \`config.log' for more details" "$LINENO" 5; } | |
14763 else | |
14764 ac_cv_sizeof_void_p=0 | |
14765 fi | |
14766 fi | |
14767 | |
14768 fi | |
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | |
14770 $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
14771 | |
14772 | |
14773 | |
14774 cat >>confdefs.h <<_ACEOF | |
14775 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
14776 _ACEOF | |
14777 | |
14778 | |
14779 fi | |
14780 | |
14781 | |
14782 # The cast to long int works around a bug in the HP C Compiler | |
14783 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14784 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14785 # This bug is HP SR number 8606223364. | |
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 | |
14787 $as_echo_n "checking size of float... " >&6; } | |
14788 if ${ac_cv_sizeof_float+:} false; then : | |
14789 $as_echo_n "(cached) " >&6 | |
14790 else | |
14791 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then : | |
14792 | |
14793 else | |
14794 if test "$ac_cv_type_float" = yes; then | |
14795 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14797 as_fn_error 77 "cannot compute sizeof (float) | |
14798 See \`config.log' for more details" "$LINENO" 5; } | |
14799 else | |
14800 ac_cv_sizeof_float=0 | |
14801 fi | |
14802 fi | |
14803 | |
14804 fi | |
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 | |
14806 $as_echo "$ac_cv_sizeof_float" >&6; } | |
14807 | |
14808 | |
14809 | |
14810 cat >>confdefs.h <<_ACEOF | |
14811 #define SIZEOF_FLOAT $ac_cv_sizeof_float | |
14812 _ACEOF | |
14813 | |
14814 | |
14815 # The cast to long int works around a bug in the HP C Compiler | |
14816 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14817 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14818 # This bug is HP SR number 8606223364. | |
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 | |
14820 $as_echo_n "checking size of double... " >&6; } | |
14821 if ${ac_cv_sizeof_double+:} false; then : | |
14822 $as_echo_n "(cached) " >&6 | |
14823 else | |
14824 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then : | |
14825 | |
14826 else | |
14827 if test "$ac_cv_type_double" = yes; then | |
14828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14830 as_fn_error 77 "cannot compute sizeof (double) | |
14831 See \`config.log' for more details" "$LINENO" 5; } | |
14832 else | |
14833 ac_cv_sizeof_double=0 | |
14834 fi | |
14835 fi | |
14836 | |
14837 fi | |
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 | |
14839 $as_echo "$ac_cv_sizeof_double" >&6; } | |
14840 | |
14841 | |
14842 | |
14843 cat >>confdefs.h <<_ACEOF | |
14844 #define SIZEOF_DOUBLE $ac_cv_sizeof_double | |
14845 _ACEOF | |
14846 | |
14847 | |
14848 | |
14849 # The cast to long int works around a bug in the HP C Compiler | |
14850 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14851 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14852 # This bug is HP SR number 8606223364. | |
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fftw_r2r_kind" >&5 | |
14854 $as_echo_n "checking size of fftw_r2r_kind... " >&6; } | |
14855 if ${ac_cv_sizeof_fftw_r2r_kind+:} false; then : | |
14856 $as_echo_n "(cached) " >&6 | |
14857 else | |
14858 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fftw_r2r_kind))" "ac_cv_sizeof_fftw_r2r_kind" "typedef enum { | |
14859 FFTW_R2HC=0, FFTW_HC2R=1, FFTW_DHT=2, | |
14860 FFTW_REDFT00=3, FFTW_REDFT01=4, FFTW_REDFT10=5, FFTW_REDFT11=6, | |
14861 FFTW_RODFT00=7, FFTW_RODFT01=8, FFTW_RODFT10=9, FFTW_RODFT11=10 | |
14862 } fftw_r2r_kind; | |
14863 "; then : | |
14864 | |
14865 else | |
14866 if test "$ac_cv_type_fftw_r2r_kind" = yes; then | |
14867 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14869 as_fn_error 77 "cannot compute sizeof (fftw_r2r_kind) | |
14870 See \`config.log' for more details" "$LINENO" 5; } | |
14871 else | |
14872 ac_cv_sizeof_fftw_r2r_kind=0 | |
14873 fi | |
14874 fi | |
14875 | |
14876 fi | |
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fftw_r2r_kind" >&5 | |
14878 $as_echo "$ac_cv_sizeof_fftw_r2r_kind" >&6; } | |
14879 | |
14880 | |
14881 | |
14882 cat >>confdefs.h <<_ACEOF | |
14883 #define SIZEOF_FFTW_R2R_KIND $ac_cv_sizeof_fftw_r2r_kind | |
14884 _ACEOF | |
14885 | |
14886 | |
14887 if test 0 = $ac_cv_sizeof_fftw_r2r_kind; then as_fn_error $? "sizeof(fftw_r2r_kind) test failed" "$LINENO" 5; fi | |
14888 C_FFTW_R2R_KIND=C_INT`expr $ac_cv_sizeof_fftw_r2r_kind \* 8`_T | |
14889 | |
14890 | |
14891 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
14892 # for constant arguments. Useless! | |
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | |
14894 $as_echo_n "checking for working alloca.h... " >&6; } | |
14895 if ${ac_cv_working_alloca_h+:} false; then : | |
14896 $as_echo_n "(cached) " >&6 | |
14897 else | |
14898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14899 /* end confdefs.h. */ | |
14900 #include <alloca.h> | |
14901 int | |
14902 main () | |
14903 { | |
14904 char *p = (char *) alloca (2 * sizeof (int)); | |
14905 if (p) return 0; | |
14906 ; | |
14907 return 0; | |
14908 } | |
14909 _ACEOF | |
14910 if ac_fn_c_try_link "$LINENO"; then : | |
14911 ac_cv_working_alloca_h=yes | |
14912 else | |
14913 ac_cv_working_alloca_h=no | |
14914 fi | |
14915 rm -f core conftest.err conftest.$ac_objext \ | |
14916 conftest$ac_exeext conftest.$ac_ext | |
14917 fi | |
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 | |
14919 $as_echo "$ac_cv_working_alloca_h" >&6; } | |
14920 if test $ac_cv_working_alloca_h = yes; then | |
14921 | |
14922 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h | |
14923 | |
14924 fi | |
14925 | |
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 | |
14927 $as_echo_n "checking for alloca... " >&6; } | |
14928 if ${ac_cv_func_alloca_works+:} false; then : | |
14929 $as_echo_n "(cached) " >&6 | |
14930 else | |
14931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14932 /* end confdefs.h. */ | |
14933 #ifdef __GNUC__ | |
14934 # define alloca __builtin_alloca | |
14935 #else | |
14936 # ifdef _MSC_VER | |
14937 # include <malloc.h> | |
14938 # define alloca _alloca | |
14939 # else | |
14940 # ifdef HAVE_ALLOCA_H | |
14941 # include <alloca.h> | |
14942 # else | |
14943 # ifdef _AIX | |
14944 #pragma alloca | |
14945 # else | |
14946 # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
14947 void *alloca (size_t); | |
14948 # endif | |
14949 # endif | |
14950 # endif | |
14951 # endif | |
14952 #endif | |
14953 | |
14954 int | |
14955 main () | |
14956 { | |
14957 char *p = (char *) alloca (1); | |
14958 if (p) return 0; | |
14959 ; | |
14960 return 0; | |
14961 } | |
14962 _ACEOF | |
14963 if ac_fn_c_try_link "$LINENO"; then : | |
14964 ac_cv_func_alloca_works=yes | |
14965 else | |
14966 ac_cv_func_alloca_works=no | |
14967 fi | |
14968 rm -f core conftest.err conftest.$ac_objext \ | |
14969 conftest$ac_exeext conftest.$ac_ext | |
14970 fi | |
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 | |
14972 $as_echo "$ac_cv_func_alloca_works" >&6; } | |
14973 | |
14974 if test $ac_cv_func_alloca_works = yes; then | |
14975 | |
14976 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h | |
14977 | |
14978 else | |
14979 # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
14980 # that cause trouble. Some versions do not even contain alloca or | |
14981 # contain a buggy version. If you still want to use their alloca, | |
14982 # use ar to extract alloca.o from them instead of compiling alloca.c. | |
14983 | |
14984 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext | |
14985 | |
14986 $as_echo "#define C_ALLOCA 1" >>confdefs.h | |
14987 | |
14988 | |
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 | |
14990 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
14991 if ${ac_cv_os_cray+:} false; then : | |
14992 $as_echo_n "(cached) " >&6 | |
14993 else | |
14994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14995 /* end confdefs.h. */ | |
14996 #if defined CRAY && ! defined CRAY2 | |
14997 webecray | |
14998 #else | |
14999 wenotbecray | |
15000 #endif | |
15001 | |
15002 _ACEOF | |
15003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15004 $EGREP "webecray" >/dev/null 2>&1; then : | |
15005 ac_cv_os_cray=yes | |
15006 else | |
15007 ac_cv_os_cray=no | |
15008 fi | |
15009 rm -f conftest* | |
15010 | |
15011 fi | |
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 | |
15013 $as_echo "$ac_cv_os_cray" >&6; } | |
15014 if test $ac_cv_os_cray = yes; then | |
15015 for ac_func in _getb67 GETB67 getb67; do | |
15016 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
15017 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
15018 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
15019 | |
15020 cat >>confdefs.h <<_ACEOF | |
15021 #define CRAY_STACKSEG_END $ac_func | |
15022 _ACEOF | |
15023 | |
15024 break | |
15025 fi | |
15026 | |
15027 done | |
15028 fi | |
15029 | |
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 | |
15031 $as_echo_n "checking stack direction for C alloca... " >&6; } | |
15032 if ${ac_cv_c_stack_direction+:} false; then : | |
15033 $as_echo_n "(cached) " >&6 | |
15034 else | |
15035 if test "$cross_compiling" = yes; then : | |
15036 ac_cv_c_stack_direction=0 | |
15037 else | |
15038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15039 /* end confdefs.h. */ | |
15040 $ac_includes_default | |
15041 int | |
15042 find_stack_direction (int *addr, int depth) | |
15043 { | |
15044 int dir, dummy = 0; | |
15045 if (! addr) | |
15046 addr = &dummy; | |
15047 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; | |
15048 dir = depth ? find_stack_direction (addr, depth - 1) : 0; | |
15049 return dir + dummy; | |
15050 } | |
15051 | |
15052 int | |
15053 main (int argc, char **argv) | |
15054 { | |
15055 return find_stack_direction (0, argc + !argv + 20) < 0; | |
15056 } | |
15057 _ACEOF | |
15058 if ac_fn_c_try_run "$LINENO"; then : | |
15059 ac_cv_c_stack_direction=1 | |
15060 else | |
15061 ac_cv_c_stack_direction=-1 | |
15062 fi | |
15063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
15064 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15065 fi | |
15066 | |
15067 fi | |
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 | |
15069 $as_echo "$ac_cv_c_stack_direction" >&6; } | |
15070 cat >>confdefs.h <<_ACEOF | |
15071 #define STACK_DIRECTION $ac_cv_c_stack_direction | |
15072 _ACEOF | |
15073 | |
15074 | |
15075 fi | |
15076 | |
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 | |
15078 $as_echo_n "checking for working strtod... " >&6; } | |
15079 if ${ac_cv_func_strtod+:} false; then : | |
15080 $as_echo_n "(cached) " >&6 | |
15081 else | |
15082 if test "$cross_compiling" = yes; then : | |
15083 ac_cv_func_strtod=no | |
15084 else | |
15085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15086 /* end confdefs.h. */ | |
15087 | |
15088 $ac_includes_default | |
15089 #ifndef strtod | |
15090 double strtod (); | |
15091 #endif | |
15092 int | |
15093 main() | |
15094 { | |
15095 { | |
15096 /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
15097 char *string = " +69"; | |
15098 char *term; | |
15099 double value; | |
15100 value = strtod (string, &term); | |
15101 if (value != 69 || term != (string + 4)) | |
15102 return 1; | |
15103 } | |
15104 | |
15105 { | |
15106 /* Under Solaris 2.4, strtod returns the wrong value for the | |
15107 terminating character under some conditions. */ | |
15108 char *string = "NaN"; | |
15109 char *term; | |
15110 strtod (string, &term); | |
15111 if (term != string && *(term - 1) == 0) | |
15112 return 1; | |
15113 } | |
15114 return 0; | |
15115 } | |
15116 | |
15117 _ACEOF | |
15118 if ac_fn_c_try_run "$LINENO"; then : | |
15119 ac_cv_func_strtod=yes | |
15120 else | |
15121 ac_cv_func_strtod=no | |
15122 fi | |
15123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
15124 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15125 fi | |
15126 | |
15127 fi | |
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 | |
15129 $as_echo "$ac_cv_func_strtod" >&6; } | |
15130 if test $ac_cv_func_strtod = no; then | |
15131 case " $LIBOBJS " in | |
15132 *" strtod.$ac_objext "* ) ;; | |
15133 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" | |
15134 ;; | |
15135 esac | |
15136 | |
15137 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" | |
15138 if test "x$ac_cv_func_pow" = xyes; then : | |
15139 | |
15140 fi | |
15141 | |
15142 if test $ac_cv_func_pow = no; then | |
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 | |
15144 $as_echo_n "checking for pow in -lm... " >&6; } | |
15145 if ${ac_cv_lib_m_pow+:} false; then : | |
15146 $as_echo_n "(cached) " >&6 | |
15147 else | |
15148 ac_check_lib_save_LIBS=$LIBS | |
15149 LIBS="-lm $LIBS" | |
15150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15151 /* end confdefs.h. */ | |
15152 | |
15153 /* Override any GCC internal prototype to avoid an error. | |
15154 Use char because int might match the return type of a GCC | |
15155 builtin and then its argument prototype would still apply. */ | |
15156 #ifdef __cplusplus | |
15157 extern "C" | |
15158 #endif | |
15159 char pow (); | |
15160 int | |
15161 main () | |
15162 { | |
15163 return pow (); | |
15164 ; | |
15165 return 0; | |
15166 } | |
15167 _ACEOF | |
15168 if ac_fn_c_try_link "$LINENO"; then : | |
15169 ac_cv_lib_m_pow=yes | |
15170 else | |
15171 ac_cv_lib_m_pow=no | |
15172 fi | |
15173 rm -f core conftest.err conftest.$ac_objext \ | |
15174 conftest$ac_exeext conftest.$ac_ext | |
15175 LIBS=$ac_check_lib_save_LIBS | |
15176 fi | |
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 | |
15178 $as_echo "$ac_cv_lib_m_pow" >&6; } | |
15179 if test "x$ac_cv_lib_m_pow" = xyes; then : | |
15180 POW_LIB=-lm | |
15181 else | |
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 | |
15183 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | |
15184 fi | |
15185 | |
15186 fi | |
15187 | |
15188 fi | |
15189 | |
15190 for ac_func in vprintf | |
15191 do : | |
15192 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" | |
15193 if test "x$ac_cv_func_vprintf" = xyes; then : | |
15194 cat >>confdefs.h <<_ACEOF | |
15195 #define HAVE_VPRINTF 1 | |
15196 _ACEOF | |
15197 | |
15198 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" | |
15199 if test "x$ac_cv_func__doprnt" = xyes; then : | |
15200 | |
15201 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h | |
15202 | |
15203 fi | |
15204 | |
15205 fi | |
15206 done | |
15207 | |
15208 | |
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 | |
15210 $as_echo_n "checking for sin in -lm... " >&6; } | |
15211 if ${ac_cv_lib_m_sin+:} false; then : | |
15212 $as_echo_n "(cached) " >&6 | |
15213 else | |
15214 ac_check_lib_save_LIBS=$LIBS | |
15215 LIBS="-lm $LIBS" | |
15216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15217 /* end confdefs.h. */ | |
15218 | |
15219 /* Override any GCC internal prototype to avoid an error. | |
15220 Use char because int might match the return type of a GCC | |
15221 builtin and then its argument prototype would still apply. */ | |
15222 #ifdef __cplusplus | |
15223 extern "C" | |
15224 #endif | |
15225 char sin (); | |
15226 int | |
15227 main () | |
15228 { | |
15229 return sin (); | |
15230 ; | |
15231 return 0; | |
15232 } | |
15233 _ACEOF | |
15234 if ac_fn_c_try_link "$LINENO"; then : | |
15235 ac_cv_lib_m_sin=yes | |
15236 else | |
15237 ac_cv_lib_m_sin=no | |
15238 fi | |
15239 rm -f core conftest.err conftest.$ac_objext \ | |
15240 conftest$ac_exeext conftest.$ac_ext | |
15241 LIBS=$ac_check_lib_save_LIBS | |
15242 fi | |
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 | |
15244 $as_echo "$ac_cv_lib_m_sin" >&6; } | |
15245 if test "x$ac_cv_lib_m_sin" = xyes; then : | |
15246 cat >>confdefs.h <<_ACEOF | |
15247 #define HAVE_LIBM 1 | |
15248 _ACEOF | |
15249 | |
15250 LIBS="-lm $LIBS" | |
15251 | |
15252 fi | |
15253 | |
15254 | |
15255 if test $PRECISION = q; then | |
15256 | |
15257 | |
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gcc 4.6.0 or later" >&5 | |
15259 $as_echo_n "checking whether we are using gcc 4.6.0 or later... " >&6; } | |
15260 if ${ax_cv_gcc_4_6_0+:} false; then : | |
15261 $as_echo_n "(cached) " >&6 | |
15262 else | |
15263 | |
15264 ax_cv_gcc_4_6_0=no | |
15265 if test "$GCC" = "yes"; then | |
15266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15267 /* end confdefs.h. */ | |
15268 | |
15269 #ifdef __GNUC__ | |
15270 # if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ > 6) \ | |
15271 || (__GNUC__ == 4 && __GNUC_MINOR__ == 6 && __GNUC_PATCHLEVEL__ >= 0) | |
15272 yes; | |
15273 # endif | |
15274 #endif | |
15275 | |
15276 _ACEOF | |
15277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15278 $EGREP "yes" >/dev/null 2>&1; then : | |
15279 ax_cv_gcc_4_6_0=yes | |
15280 fi | |
15281 rm -f conftest* | |
15282 | |
15283 fi | |
15284 | |
15285 fi | |
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_4_6_0" >&5 | |
15287 $as_echo "$ax_cv_gcc_4_6_0" >&6; } | |
15288 if test "$ax_cv_gcc_4_6_0" = yes; then | |
15289 : | |
15290 else | |
15291 as_fn_error $? "gcc 4.6 or later required for quad precision support" "$LINENO" 5 | |
15292 fi | |
15293 | |
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinq in -lquadmath" >&5 | |
15295 $as_echo_n "checking for sinq in -lquadmath... " >&6; } | |
15296 if ${ac_cv_lib_quadmath_sinq+:} false; then : | |
15297 $as_echo_n "(cached) " >&6 | |
15298 else | |
15299 ac_check_lib_save_LIBS=$LIBS | |
15300 LIBS="-lquadmath $LIBS" | |
15301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15302 /* end confdefs.h. */ | |
15303 | |
15304 /* Override any GCC internal prototype to avoid an error. | |
15305 Use char because int might match the return type of a GCC | |
15306 builtin and then its argument prototype would still apply. */ | |
15307 #ifdef __cplusplus | |
15308 extern "C" | |
15309 #endif | |
15310 char sinq (); | |
15311 int | |
15312 main () | |
15313 { | |
15314 return sinq (); | |
15315 ; | |
15316 return 0; | |
15317 } | |
15318 _ACEOF | |
15319 if ac_fn_c_try_link "$LINENO"; then : | |
15320 ac_cv_lib_quadmath_sinq=yes | |
15321 else | |
15322 ac_cv_lib_quadmath_sinq=no | |
15323 fi | |
15324 rm -f core conftest.err conftest.$ac_objext \ | |
15325 conftest$ac_exeext conftest.$ac_ext | |
15326 LIBS=$ac_check_lib_save_LIBS | |
15327 fi | |
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quadmath_sinq" >&5 | |
15329 $as_echo "$ac_cv_lib_quadmath_sinq" >&6; } | |
15330 if test "x$ac_cv_lib_quadmath_sinq" = xyes; then : | |
15331 cat >>confdefs.h <<_ACEOF | |
15332 #define HAVE_LIBQUADMATH 1 | |
15333 _ACEOF | |
15334 | |
15335 LIBS="-lquadmath $LIBS" | |
15336 | |
15337 else | |
15338 as_fn_error $? "quad precision requires libquadmath for quad-precision trigonometric routines" "$LINENO" 5 | |
15339 fi | |
15340 | |
15341 LIBQUADMATH=-lquadmath | |
15342 fi | |
15343 | |
15344 | |
15345 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 | |
15346 do : | |
15347 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
15348 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
15349 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
15350 cat >>confdefs.h <<_ACEOF | |
15351 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15352 _ACEOF | |
15353 | |
15354 fi | |
15355 done | |
15356 | |
15357 ac_fn_c_check_decl "$LINENO" "drand48" "ac_cv_have_decl_drand48" "$ac_includes_default" | |
15358 if test "x$ac_cv_have_decl_drand48" = xyes; then : | |
15359 ac_have_decl=1 | |
15360 else | |
15361 ac_have_decl=0 | |
15362 fi | |
15363 | |
15364 cat >>confdefs.h <<_ACEOF | |
15365 #define HAVE_DECL_DRAND48 $ac_have_decl | |
15366 _ACEOF | |
15367 ac_fn_c_check_decl "$LINENO" "srand48" "ac_cv_have_decl_srand48" "$ac_includes_default" | |
15368 if test "x$ac_cv_have_decl_srand48" = xyes; then : | |
15369 ac_have_decl=1 | |
15370 else | |
15371 ac_have_decl=0 | |
15372 fi | |
15373 | |
15374 cat >>confdefs.h <<_ACEOF | |
15375 #define HAVE_DECL_SRAND48 $ac_have_decl | |
15376 _ACEOF | |
15377 ac_fn_c_check_decl "$LINENO" "memalign" "ac_cv_have_decl_memalign" "$ac_includes_default" | |
15378 if test "x$ac_cv_have_decl_memalign" = xyes; then : | |
15379 ac_have_decl=1 | |
15380 else | |
15381 ac_have_decl=0 | |
15382 fi | |
15383 | |
15384 cat >>confdefs.h <<_ACEOF | |
15385 #define HAVE_DECL_MEMALIGN $ac_have_decl | |
15386 _ACEOF | |
15387 ac_fn_c_check_decl "$LINENO" "posix_memalign" "ac_cv_have_decl_posix_memalign" "$ac_includes_default" | |
15388 if test "x$ac_cv_have_decl_posix_memalign" = xyes; then : | |
15389 ac_have_decl=1 | |
15390 else | |
15391 ac_have_decl=0 | |
15392 fi | |
15393 | |
15394 cat >>confdefs.h <<_ACEOF | |
15395 #define HAVE_DECL_POSIX_MEMALIGN $ac_have_decl | |
15396 _ACEOF | |
15397 ac_fn_c_check_decl "$LINENO" "sinl" "ac_cv_have_decl_sinl" "$ac_includes_default" | |
15398 if test "x$ac_cv_have_decl_sinl" = xyes; then : | |
15399 ac_have_decl=1 | |
15400 else | |
15401 ac_have_decl=0 | |
15402 fi | |
15403 | |
15404 cat >>confdefs.h <<_ACEOF | |
15405 #define HAVE_DECL_SINL $ac_have_decl | |
15406 _ACEOF | |
15407 ac_fn_c_check_decl "$LINENO" "cosl" "ac_cv_have_decl_cosl" "$ac_includes_default" | |
15408 if test "x$ac_cv_have_decl_cosl" = xyes; then : | |
15409 ac_have_decl=1 | |
15410 else | |
15411 ac_have_decl=0 | |
15412 fi | |
15413 | |
15414 cat >>confdefs.h <<_ACEOF | |
15415 #define HAVE_DECL_COSL $ac_have_decl | |
15416 _ACEOF | |
15417 ac_fn_c_check_decl "$LINENO" "sinq" "ac_cv_have_decl_sinq" "$ac_includes_default" | |
15418 if test "x$ac_cv_have_decl_sinq" = xyes; then : | |
15419 ac_have_decl=1 | |
15420 else | |
15421 ac_have_decl=0 | |
15422 fi | |
15423 | |
15424 cat >>confdefs.h <<_ACEOF | |
15425 #define HAVE_DECL_SINQ $ac_have_decl | |
15426 _ACEOF | |
15427 ac_fn_c_check_decl "$LINENO" "cosq" "ac_cv_have_decl_cosq" "$ac_includes_default" | |
15428 if test "x$ac_cv_have_decl_cosq" = xyes; then : | |
15429 ac_have_decl=1 | |
15430 else | |
15431 ac_have_decl=0 | |
15432 fi | |
15433 | |
15434 cat >>confdefs.h <<_ACEOF | |
15435 #define HAVE_DECL_COSQ $ac_have_decl | |
15436 _ACEOF | |
15437 | |
15438 | |
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _rtc intrinsic" >&5 | |
15440 $as_echo_n "checking for _rtc intrinsic... " >&6; } | |
15441 rtc_ok=yes | |
15442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15443 /* end confdefs.h. */ | |
15444 #ifdef HAVE_INTRINSICS_H | |
15445 #include <intrinsics.h> | |
15446 #endif | |
15447 int | |
15448 main () | |
15449 { | |
15450 _rtc() | |
15451 ; | |
15452 return 0; | |
15453 } | |
15454 _ACEOF | |
15455 if ac_fn_c_try_link "$LINENO"; then : | |
15456 | |
15457 $as_echo "#define HAVE__RTC 1" >>confdefs.h | |
15458 | |
15459 else | |
15460 rtc_ok=no | |
15461 fi | |
15462 rm -f core conftest.err conftest.$ac_objext \ | |
15463 conftest$ac_exeext conftest.$ac_ext | |
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rtc_ok" >&5 | |
15465 $as_echo "$rtc_ok" >&6; } | |
15466 | |
15467 if test "$PRECISION" = "l"; then | |
15468 for ac_func in cosl sinl tanl | |
15469 do : | |
15470 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
15471 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
15472 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
15473 cat >>confdefs.h <<_ACEOF | |
15474 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15475 _ACEOF | |
15476 | |
15477 else | |
15478 as_fn_error $? "long-double precision requires long-double trigonometric routines" "$LINENO" 5 | |
15479 fi | |
15480 done | |
15481 | |
15482 fi | |
15483 | |
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5 | |
15485 $as_echo_n "checking for isnan... " >&6; } | |
15486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15487 /* end confdefs.h. */ | |
15488 #include <math.h> | |
15489 | |
15490 int | |
15491 main () | |
15492 { | |
15493 if (!isnan(3.14159)) isnan(2.7183); | |
15494 ; | |
15495 return 0; | |
15496 } | |
15497 _ACEOF | |
15498 if ac_fn_c_try_link "$LINENO"; then : | |
15499 ok=yes | |
15500 else | |
15501 ok=no | |
15502 fi | |
15503 rm -f core conftest.err conftest.$ac_objext \ | |
15504 conftest$ac_exeext conftest.$ac_ext | |
15505 if test "$ok" = "yes"; then | |
15506 | |
15507 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h | |
15508 | |
15509 fi | |
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ok}" >&5 | |
15511 $as_echo "${ok}" >&6; } | |
15512 | |
15513 | |
15514 | |
15515 ax_gcc_aligns_stack=no | |
15516 if test "$GCC" = "yes"; then | |
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mpreferred-stack-boundary=4" >&5 | |
15518 $as_echo_n "checking whether C compiler accepts -mpreferred-stack-boundary=4... " >&6; } | |
15519 if ${ax_cv_c_flags__mpreferred_stack_boundary_4+:} false; then : | |
15520 $as_echo_n "(cached) " >&6 | |
15521 else | |
15522 | |
15523 ax_save_FLAGS=$CFLAGS | |
15524 CFLAGS="-mpreferred-stack-boundary=4" | |
15525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15526 /* end confdefs.h. */ | |
15527 | |
15528 int | |
15529 main () | |
15530 { | |
15531 | |
15532 ; | |
15533 return 0; | |
15534 } | |
15535 _ACEOF | |
15536 if ac_fn_c_try_compile "$LINENO"; then : | |
15537 ax_cv_c_flags__mpreferred_stack_boundary_4=yes | |
15538 else | |
15539 ax_cv_c_flags__mpreferred_stack_boundary_4=no | |
15540 fi | |
15541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15542 CFLAGS=$ax_save_FLAGS | |
15543 fi | |
15544 | |
15545 eval ax_check_compiler_flags=$ax_cv_c_flags__mpreferred_stack_boundary_4 | |
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
15547 $as_echo "$ax_check_compiler_flags" >&6; } | |
15548 if test "x$ax_check_compiler_flags" = xyes; then | |
15549 | |
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the stack is at least 8-byte aligned by gcc" >&5 | |
15551 $as_echo_n "checking whether the stack is at least 8-byte aligned by gcc... " >&6; } | |
15552 save_CFLAGS="$CFLAGS" | |
15553 CFLAGS="-O" | |
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5 | |
15555 $as_echo_n "checking whether C compiler accepts -malign-double... " >&6; } | |
15556 if ${ax_cv_c_flags__malign_double+:} false; then : | |
15557 $as_echo_n "(cached) " >&6 | |
15558 else | |
15559 | |
15560 ax_save_FLAGS=$CFLAGS | |
15561 CFLAGS="-malign-double" | |
15562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15563 /* end confdefs.h. */ | |
15564 | |
15565 int | |
15566 main () | |
15567 { | |
15568 | |
15569 ; | |
15570 return 0; | |
15571 } | |
15572 _ACEOF | |
15573 if ac_fn_c_try_compile "$LINENO"; then : | |
15574 ax_cv_c_flags__malign_double=yes | |
15575 else | |
15576 ax_cv_c_flags__malign_double=no | |
15577 fi | |
15578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15579 CFLAGS=$ax_save_FLAGS | |
15580 fi | |
15581 | |
15582 eval ax_check_compiler_flags=$ax_cv_c_flags__malign_double | |
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 | |
15584 $as_echo "$ax_check_compiler_flags" >&6; } | |
15585 if test "x$ax_check_compiler_flags" = xyes; then | |
15586 CFLAGS="$CFLAGS -malign-double" | |
15587 else | |
15588 : | |
15589 fi | |
15590 | |
15591 if test "$cross_compiling" = yes; then : | |
15592 | |
15593 | |
15594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gcc 3.0.0 or later" >&5 | |
15595 $as_echo_n "checking whether we are using gcc 3.0.0 or later... " >&6; } | |
15596 if ${ax_cv_gcc_3_0_0+:} false; then : | |
15597 $as_echo_n "(cached) " >&6 | |
15598 else | |
15599 | |
15600 ax_cv_gcc_3_0_0=no | |
15601 if test "$GCC" = "yes"; then | |
15602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15603 /* end confdefs.h. */ | |
15604 | |
15605 #ifdef __GNUC__ | |
15606 # if (__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ > 0) \ | |
15607 || (__GNUC__ == 3 && __GNUC_MINOR__ == 0 && __GNUC_PATCHLEVEL__ >= 0) | |
15608 yes; | |
15609 # endif | |
15610 #endif | |
15611 | |
15612 _ACEOF | |
15613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15614 $EGREP "yes" >/dev/null 2>&1; then : | |
15615 ax_cv_gcc_3_0_0=yes | |
15616 fi | |
15617 rm -f conftest* | |
15618 | |
15619 fi | |
15620 | |
15621 fi | |
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_3_0_0" >&5 | |
15623 $as_echo "$ax_cv_gcc_3_0_0" >&6; } | |
15624 if test "$ax_cv_gcc_3_0_0" = yes; then | |
15625 ax_gcc_stack_align_bug=no | |
15626 else | |
15627 ax_gcc_stack_align_bug=yes | |
15628 fi | |
15629 | |
15630 else | |
15631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15632 /* end confdefs.h. */ | |
15633 #include <stdlib.h> | |
15634 # include <stdio.h> | |
15635 struct yuck { int blechh; }; | |
15636 int one(void) { return 1; } | |
15637 struct yuck ick(void) { struct yuck y; y.blechh = 3; return y; } | |
15638 # define CHK_ALIGN(x) if ((((long) &(x)) & 0x7)) { fprintf(stderr, "bad alignment of " #x "\n"); exit(1); } | |
15639 void blah(int foo) { double foobar; CHK_ALIGN(foobar); } | |
15640 int main2(void) {double ok1; struct yuck y; double ok2; CHK_ALIGN(ok1); | |
15641 CHK_ALIGN(ok2); y = ick(); blah(one()); return 0;} | |
15642 int main(void) { if ((((long) (__builtin_alloca(0))) & 0x7)) __builtin_alloca(4); return main2(); } | |
15643 | |
15644 _ACEOF | |
15645 if ac_fn_c_try_run "$LINENO"; then : | |
15646 ax_gcc_aligns_stack=yes; ax_gcc_stack_align_bug=no | |
15647 else | |
15648 ax_gcc_stack_align_bug=yes | |
15649 fi | |
15650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
15651 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15652 fi | |
15653 | |
15654 CFLAGS="$save_CFLAGS" | |
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_gcc_aligns_stack" >&5 | |
15656 $as_echo "$ax_gcc_aligns_stack" >&6; } | |
15657 | |
15658 else | |
15659 : | |
15660 fi | |
15661 | |
15662 fi | |
15663 if test "$ax_gcc_aligns_stack" = yes; then | |
15664 : | |
15665 else | |
15666 : | |
15667 fi | |
15668 | |
15669 | |
15670 if test "${enable_debug}" = "yes"; then | |
15671 CFLAGS="-g" | |
15672 fi | |
15673 | |
15674 if test "$enable_debug" = yes || test "$USE_MAINTAINER_MODE" = yes; then | |
15675 if test "$ac_test_CFLAGS" != "set"; then | |
15676 if test $ac_cv_c_compiler_gnu = yes; then | |
15677 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 | |
15678 fi | |
15679 fi | |
15680 fi | |
15681 | |
15682 | |
15683 # Check whether --enable-fortran was given. | |
15684 if test "${enable_fortran+set}" = set; then : | |
15685 enableval=$enable_fortran; enable_fortran=$enableval | |
15686 else | |
15687 enable_fortran=yes | |
15688 fi | |
15689 | |
15690 | |
15691 if test "$enable_fortran" = "yes"; then | |
15692 ac_ext=f | |
15693 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
15694 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15695 ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
15696 if test -n "$ac_tool_prefix"; then | |
15697 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 | |
15698 do | |
15699 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
15700 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15702 $as_echo_n "checking for $ac_word... " >&6; } | |
15703 if ${ac_cv_prog_F77+:} false; then : | |
15704 $as_echo_n "(cached) " >&6 | |
15705 else | |
15706 if test -n "$F77"; then | |
15707 ac_cv_prog_F77="$F77" # Let the user override the test. | |
15708 else | |
15709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15710 for as_dir in $PATH | |
15711 do | |
15712 IFS=$as_save_IFS | |
15713 test -z "$as_dir" && as_dir=. | |
15714 for ac_exec_ext in '' $ac_executable_extensions; do | |
15715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15716 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" | |
15717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15718 break 2 | |
15719 fi | |
15720 done | |
15721 done | |
15722 IFS=$as_save_IFS | |
15723 | |
15724 fi | |
15725 fi | |
15726 F77=$ac_cv_prog_F77 | |
15727 if test -n "$F77"; then | |
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5 | |
15729 $as_echo "$F77" >&6; } | |
15730 else | |
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15732 $as_echo "no" >&6; } | |
15733 fi | |
15734 | |
15735 | |
15736 test -n "$F77" && break | |
15737 done | |
15738 fi | |
15739 if test -z "$F77"; then | |
15740 ac_ct_F77=$F77 | |
15741 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 | |
15742 do | |
15743 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
15744 set dummy $ac_prog; ac_word=$2 | |
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15746 $as_echo_n "checking for $ac_word... " >&6; } | |
15747 if ${ac_cv_prog_ac_ct_F77+:} false; then : | |
15748 $as_echo_n "(cached) " >&6 | |
15749 else | |
15750 if test -n "$ac_ct_F77"; then | |
15751 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. | |
15752 else | |
15753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15754 for as_dir in $PATH | |
15755 do | |
15756 IFS=$as_save_IFS | |
15757 test -z "$as_dir" && as_dir=. | |
15758 for ac_exec_ext in '' $ac_executable_extensions; do | |
15759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15760 ac_cv_prog_ac_ct_F77="$ac_prog" | |
15761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15762 break 2 | |
15763 fi | |
15764 done | |
15765 done | |
15766 IFS=$as_save_IFS | |
15767 | |
15768 fi | |
15769 fi | |
15770 ac_ct_F77=$ac_cv_prog_ac_ct_F77 | |
15771 if test -n "$ac_ct_F77"; then | |
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5 | |
15773 $as_echo "$ac_ct_F77" >&6; } | |
15774 else | |
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15776 $as_echo "no" >&6; } | |
15777 fi | |
15778 | |
15779 | |
15780 test -n "$ac_ct_F77" && break | |
15781 done | |
15782 | |
15783 if test "x$ac_ct_F77" = x; then | |
15784 F77="" | |
15785 else | |
15786 case $cross_compiling:$ac_tool_warned in | |
15787 yes:) | |
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
15789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
15790 ac_tool_warned=yes ;; | |
15791 esac | |
15792 F77=$ac_ct_F77 | |
15793 fi | |
15794 fi | |
15795 | |
15796 | |
15797 # Provide some information about the compiler. | |
15798 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5 | |
15799 set X $ac_compile | |
15800 ac_compiler=$2 | |
15801 for ac_option in --version -v -V -qversion; do | |
15802 { { ac_try="$ac_compiler $ac_option >&5" | |
15803 case "(($ac_try" in | |
15804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15805 *) ac_try_echo=$ac_try;; | |
15806 esac | |
15807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
15808 $as_echo "$ac_try_echo"; } >&5 | |
15809 (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
15810 ac_status=$? | |
15811 if test -s conftest.err; then | |
15812 sed '10a\ | |
15813 ... rest of stderr output deleted ... | |
15814 10q' conftest.err >conftest.er1 | |
15815 cat conftest.er1 >&5 | |
15816 fi | |
15817 rm -f conftest.er1 conftest.err | |
15818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15819 test $ac_status = 0; } | |
15820 done | |
15821 rm -f a.out | |
15822 | |
15823 # If we don't use `.F' as extension, the preprocessor is not run on the | |
15824 # input file. (Note that this only needs to work for GNU compilers.) | |
15825 ac_save_ext=$ac_ext | |
15826 ac_ext=F | |
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5 | |
15828 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } | |
15829 if ${ac_cv_f77_compiler_gnu+:} false; then : | |
15830 $as_echo_n "(cached) " >&6 | |
15831 else | |
15832 cat > conftest.$ac_ext <<_ACEOF | |
15833 program main | |
15834 #ifndef __GNUC__ | |
15835 choke me | |
15836 #endif | |
15837 | |
15838 end | |
15839 _ACEOF | |
15840 if ac_fn_f77_try_compile "$LINENO"; then : | |
15841 ac_compiler_gnu=yes | |
15842 else | |
15843 ac_compiler_gnu=no | |
15844 fi | |
15845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15846 ac_cv_f77_compiler_gnu=$ac_compiler_gnu | |
15847 | |
15848 fi | |
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5 | |
15850 $as_echo "$ac_cv_f77_compiler_gnu" >&6; } | |
15851 ac_ext=$ac_save_ext | |
15852 ac_test_FFLAGS=${FFLAGS+set} | |
15853 ac_save_FFLAGS=$FFLAGS | |
15854 FFLAGS= | |
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5 | |
15856 $as_echo_n "checking whether $F77 accepts -g... " >&6; } | |
15857 if ${ac_cv_prog_f77_g+:} false; then : | |
15858 $as_echo_n "(cached) " >&6 | |
15859 else | |
15860 FFLAGS=-g | |
15861 cat > conftest.$ac_ext <<_ACEOF | |
15862 program main | |
15863 | |
15864 end | |
15865 _ACEOF | |
15866 if ac_fn_f77_try_compile "$LINENO"; then : | |
15867 ac_cv_prog_f77_g=yes | |
15868 else | |
15869 ac_cv_prog_f77_g=no | |
15870 fi | |
15871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15872 | |
15873 fi | |
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5 | |
15875 $as_echo "$ac_cv_prog_f77_g" >&6; } | |
15876 if test "$ac_test_FFLAGS" = set; then | |
15877 FFLAGS=$ac_save_FFLAGS | |
15878 elif test $ac_cv_prog_f77_g = yes; then | |
15879 if test "x$ac_cv_f77_compiler_gnu" = xyes; then | |
15880 FFLAGS="-g -O2" | |
15881 else | |
15882 FFLAGS="-g" | |
15883 fi | |
15884 else | |
15885 if test "x$ac_cv_f77_compiler_gnu" = xyes; then | |
15886 FFLAGS="-O2" | |
15887 else | |
15888 FFLAGS= | |
15889 fi | |
15890 fi | |
15891 | |
15892 if test $ac_compiler_gnu = yes; then | |
15893 G77=yes | |
15894 else | |
15895 G77= | |
15896 fi | |
15897 ac_ext=c | |
15898 ac_cpp='$CPP $CPPFLAGS' | |
15899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15901 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15902 | |
15903 ac_ext=f | |
15904 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
15905 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15906 ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
15907 | |
15908 if test -z "$F77" || test "X$F77" = "Xno"; then | |
15909 _lt_disable_F77=yes | |
15910 fi | |
15911 | |
15912 archive_cmds_need_lc_F77=no | |
15913 allow_undefined_flag_F77= | |
15914 always_export_symbols_F77=no | |
15915 archive_expsym_cmds_F77= | |
15916 export_dynamic_flag_spec_F77= | |
15917 hardcode_direct_F77=no | |
15918 hardcode_direct_absolute_F77=no | |
15919 hardcode_libdir_flag_spec_F77= | |
15920 hardcode_libdir_separator_F77= | |
15921 hardcode_minus_L_F77=no | |
15922 hardcode_automatic_F77=no | |
15923 inherit_rpath_F77=no | |
15924 module_cmds_F77= | |
15925 module_expsym_cmds_F77= | |
15926 link_all_deplibs_F77=unknown | |
15927 old_archive_cmds_F77=$old_archive_cmds | |
15928 reload_flag_F77=$reload_flag | |
15929 reload_cmds_F77=$reload_cmds | |
15930 no_undefined_flag_F77= | |
15931 whole_archive_flag_spec_F77= | |
15932 enable_shared_with_static_runtimes_F77=no | |
15933 | |
15934 # Source file extension for f77 test sources. | |
15935 ac_ext=f | |
15936 | |
15937 # Object file extension for compiled f77 test sources. | |
15938 objext=o | |
15939 objext_F77=$objext | |
15940 | |
15941 # No sense in running all these tests if we already determined that | |
15942 # the F77 compiler isn't working. Some variables (like enable_shared) | |
15943 # are currently assumed to apply to all compilers on this platform, | |
15944 # and will be corrupted by setting them based on a non-working compiler. | |
15945 if test "$_lt_disable_F77" != yes; then | |
15946 # Code to be used in simple compile tests | |
15947 lt_simple_compile_test_code="\ | |
15948 subroutine t | |
15949 return | |
15950 end | |
15951 " | |
15952 | |
15953 # Code to be used in simple link tests | |
15954 lt_simple_link_test_code="\ | |
15955 program t | |
15956 end | |
15957 " | |
15958 | |
15959 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
15960 | |
15961 | |
15962 | |
15963 | |
15964 | |
15965 | |
15966 # If no C compiler was specified, use CC. | |
15967 LTCC=${LTCC-"$CC"} | |
15968 | |
15969 # If no C compiler flags were specified, use CFLAGS. | |
15970 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
15971 | |
15972 # Allow CC to be a program name with arguments. | |
15973 compiler=$CC | |
15974 | |
15975 | |
15976 # save warnings/boilerplate of simple test code | |
15977 ac_outfile=conftest.$ac_objext | |
15978 echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
15979 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
15980 _lt_compiler_boilerplate=`cat conftest.err` | |
15981 $RM conftest* | |
15982 | |
15983 ac_outfile=conftest.$ac_objext | |
15984 echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
15985 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
15986 _lt_linker_boilerplate=`cat conftest.err` | |
15987 $RM -r conftest* | |
15988 | |
15989 | |
15990 # Allow CC to be a program name with arguments. | |
15991 lt_save_CC="$CC" | |
15992 lt_save_GCC=$GCC | |
15993 lt_save_CFLAGS=$CFLAGS | |
15994 CC=${F77-"f77"} | |
15995 CFLAGS=$FFLAGS | |
15996 compiler=$CC | |
15997 compiler_F77=$CC | |
15998 for cc_temp in $compiler""; do | |
15999 case $cc_temp in | |
16000 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
16001 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
16002 \-*) ;; | |
16003 *) break;; | |
16004 esac | |
16005 done | |
16006 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
16007 | |
16008 GCC=$G77 | |
16009 if test -n "$compiler"; then | |
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
16011 $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
16013 $as_echo "$can_build_shared" >&6; } | |
16014 | |
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
16016 $as_echo_n "checking whether to build shared libraries... " >&6; } | |
16017 test "$can_build_shared" = "no" && enable_shared=no | |
16018 | |
16019 # On AIX, shared libraries and static libraries use the same namespace, and | |
16020 # are all built from PIC. | |
16021 case $host_os in | |
16022 aix3*) | |
16023 test "$enable_shared" = yes && enable_static=no | |
16024 if test -n "$RANLIB"; then | |
16025 archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
16026 postinstall_cmds='$RANLIB $lib' | |
16027 fi | |
16028 ;; | |
16029 aix[4-9]*) | |
16030 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
16031 test "$enable_shared" = yes && enable_static=no | |
16032 fi | |
16033 ;; | |
16034 esac | |
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
16036 $as_echo "$enable_shared" >&6; } | |
16037 | |
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
16039 $as_echo_n "checking whether to build static libraries... " >&6; } | |
16040 # Make sure either enable_shared or enable_static is yes. | |
16041 test "$enable_shared" = yes || enable_static=yes | |
16042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
16043 $as_echo "$enable_static" >&6; } | |
16044 | |
16045 GCC_F77="$G77" | |
16046 LD_F77="$LD" | |
16047 | |
16048 ## CAVEAT EMPTOR: | |
16049 ## There is no encapsulation within the following macros, do not change | |
16050 ## the running order or otherwise move them around unless you know exactly | |
16051 ## what you are doing... | |
16052 lt_prog_compiler_wl_F77= | |
16053 lt_prog_compiler_pic_F77= | |
16054 lt_prog_compiler_static_F77= | |
16055 | |
16056 | |
16057 if test "$GCC" = yes; then | |
16058 lt_prog_compiler_wl_F77='-Wl,' | |
16059 lt_prog_compiler_static_F77='-static' | |
16060 | |
16061 case $host_os in | |
16062 aix*) | |
16063 # All AIX code is PIC. | |
16064 if test "$host_cpu" = ia64; then | |
16065 # AIX 5 now supports IA64 processor | |
16066 lt_prog_compiler_static_F77='-Bstatic' | |
16067 fi | |
16068 ;; | |
16069 | |
16070 amigaos*) | |
16071 case $host_cpu in | |
16072 powerpc) | |
16073 # see comment about AmigaOS4 .so support | |
16074 lt_prog_compiler_pic_F77='-fPIC' | |
16075 ;; | |
16076 m68k) | |
16077 # FIXME: we need at least 68020 code to build shared libraries, but | |
16078 # adding the `-m68020' flag to GCC prevents building anything better, | |
16079 # like `-m68040'. | |
16080 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' | |
16081 ;; | |
16082 esac | |
16083 ;; | |
16084 | |
16085 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
16086 # PIC is the default for these OSes. | |
16087 ;; | |
16088 | |
16089 mingw* | cygwin* | pw32* | os2* | cegcc*) | |
16090 # This hack is so that the source file can tell whether it is being | |
16091 # built for inclusion in a dll (and should export symbols for example). | |
16092 # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
16093 # (--disable-auto-import) libraries | |
16094 lt_prog_compiler_pic_F77='-DDLL_EXPORT' | |
16095 ;; | |
16096 | |
16097 darwin* | rhapsody*) | |
16098 # PIC is the default on this platform | |
16099 # Common symbols not allowed in MH_DYLIB files | |
16100 lt_prog_compiler_pic_F77='-fno-common' | |
16101 ;; | |
16102 | |
16103 haiku*) | |
16104 # PIC is the default for Haiku. | |
16105 # The "-static" flag exists, but is broken. | |
16106 lt_prog_compiler_static_F77= | |
16107 ;; | |
16108 | |
16109 hpux*) | |
16110 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
16111 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
16112 # sets the default TLS model and affects inlining. | |
16113 case $host_cpu in | |
16114 hppa*64*) | |
16115 # +Z the default | |
16116 ;; | |
16117 *) | |
16118 lt_prog_compiler_pic_F77='-fPIC' | |
16119 ;; | |
16120 esac | |
16121 ;; | |
16122 | |
16123 interix[3-9]*) | |
16124 # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
16125 # Instead, we relocate shared libraries at runtime. | |
16126 ;; | |
16127 | |
16128 msdosdjgpp*) | |
16129 # Just because we use GCC doesn't mean we suddenly get shared libraries | |
16130 # on systems that don't support them. | |
16131 lt_prog_compiler_can_build_shared_F77=no | |
16132 enable_shared=no | |
16133 ;; | |
16134 | |
16135 *nto* | *qnx*) | |
16136 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
16137 # it will coredump. | |
16138 lt_prog_compiler_pic_F77='-fPIC -shared' | |
16139 ;; | |
16140 | |
16141 sysv4*MP*) | |
16142 if test -d /usr/nec; then | |
16143 lt_prog_compiler_pic_F77=-Kconform_pic | |
16144 fi | |
16145 ;; | |
16146 | |
16147 *) | |
16148 lt_prog_compiler_pic_F77='-fPIC' | |
16149 ;; | |
16150 esac | |
16151 | |
16152 case $cc_basename in | |
16153 nvcc*) # Cuda Compiler Driver 2.2 | |
16154 lt_prog_compiler_wl_F77='-Xlinker ' | |
16155 if test -n "$lt_prog_compiler_pic_F77"; then | |
16156 lt_prog_compiler_pic_F77="-Xcompiler $lt_prog_compiler_pic_F77" | |
16157 fi | |
16158 ;; | |
16159 esac | |
16160 else | |
16161 # PORTME Check for flag to pass linker flags through the system compiler. | |
16162 case $host_os in | |
16163 aix*) | |
16164 lt_prog_compiler_wl_F77='-Wl,' | |
16165 if test "$host_cpu" = ia64; then | |
16166 # AIX 5 now supports IA64 processor | |
16167 lt_prog_compiler_static_F77='-Bstatic' | |
16168 else | |
16169 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' | |
16170 fi | |
16171 ;; | |
16172 | |
16173 mingw* | cygwin* | pw32* | os2* | cegcc*) | |
16174 # This hack is so that the source file can tell whether it is being | |
16175 # built for inclusion in a dll (and should export symbols for example). | |
16176 lt_prog_compiler_pic_F77='-DDLL_EXPORT' | |
16177 ;; | |
16178 | |
16179 hpux9* | hpux10* | hpux11*) | |
16180 lt_prog_compiler_wl_F77='-Wl,' | |
16181 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
16182 # not for PA HP-UX. | |
16183 case $host_cpu in | |
16184 hppa*64*|ia64*) | |
16185 # +Z the default | |
16186 ;; | |
16187 *) | |
16188 lt_prog_compiler_pic_F77='+Z' | |
16189 ;; | |
16190 esac | |
16191 # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
16192 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' | |
16193 ;; | |
16194 | |
16195 irix5* | irix6* | nonstopux*) | |
16196 lt_prog_compiler_wl_F77='-Wl,' | |
16197 # PIC (with -KPIC) is the default. | |
16198 lt_prog_compiler_static_F77='-non_shared' | |
16199 ;; | |
16200 | |
16201 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
16202 case $cc_basename in | |
16203 # old Intel for x86_64 which still supported -KPIC. | |
16204 ecc*) | |
16205 lt_prog_compiler_wl_F77='-Wl,' | |
16206 lt_prog_compiler_pic_F77='-KPIC' | |
16207 lt_prog_compiler_static_F77='-static' | |
16208 ;; | |
16209 # icc used to be incompatible with GCC. | |
16210 # ICC 10 doesn't accept -KPIC any more. | |
16211 icc* | ifort*) | |
16212 lt_prog_compiler_wl_F77='-Wl,' | |
16213 lt_prog_compiler_pic_F77='-fPIC' | |
16214 lt_prog_compiler_static_F77='-static' | |
16215 ;; | |
16216 # Lahey Fortran 8.1. | |
16217 lf95*) | |
16218 lt_prog_compiler_wl_F77='-Wl,' | |
16219 lt_prog_compiler_pic_F77='--shared' | |
16220 lt_prog_compiler_static_F77='--static' | |
16221 ;; | |
16222 nagfor*) | |
16223 # NAG Fortran compiler | |
16224 lt_prog_compiler_wl_F77='-Wl,-Wl,,' | |
16225 lt_prog_compiler_pic_F77='-PIC' | |
16226 lt_prog_compiler_static_F77='-Bstatic' | |
16227 ;; | |
16228 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
16229 # Portland Group compilers (*not* the Pentium gcc compiler, | |
16230 # which looks to be a dead project) | |
16231 lt_prog_compiler_wl_F77='-Wl,' | |
16232 lt_prog_compiler_pic_F77='-fpic' | |
16233 lt_prog_compiler_static_F77='-Bstatic' | |
16234 ;; | |
16235 ccc*) | |
16236 lt_prog_compiler_wl_F77='-Wl,' | |
16237 # All Alpha code is PIC. | |
16238 lt_prog_compiler_static_F77='-non_shared' | |
16239 ;; | |
16240 xl* | bgxl* | bgf* | mpixl*) | |
16241 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
16242 lt_prog_compiler_wl_F77='-Wl,' | |
16243 lt_prog_compiler_pic_F77='-qpic' | |
16244 lt_prog_compiler_static_F77='-qstaticlink' | |
16245 ;; | |
16246 *) | |
16247 case `$CC -V 2>&1 | sed 5q` in | |
16248 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) | |
16249 # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
16250 lt_prog_compiler_pic_F77='-KPIC' | |
16251 lt_prog_compiler_static_F77='-Bstatic' | |
16252 lt_prog_compiler_wl_F77='' | |
16253 ;; | |
16254 *Sun\ F* | *Sun*Fortran*) | |
16255 lt_prog_compiler_pic_F77='-KPIC' | |
16256 lt_prog_compiler_static_F77='-Bstatic' | |
16257 lt_prog_compiler_wl_F77='-Qoption ld ' | |
16258 ;; | |
16259 *Sun\ C*) | |
16260 # Sun C 5.9 | |
16261 lt_prog_compiler_pic_F77='-KPIC' | |
16262 lt_prog_compiler_static_F77='-Bstatic' | |
16263 lt_prog_compiler_wl_F77='-Wl,' | |
16264 ;; | |
16265 *Intel*\ [CF]*Compiler*) | |
16266 lt_prog_compiler_wl_F77='-Wl,' | |
16267 lt_prog_compiler_pic_F77='-fPIC' | |
16268 lt_prog_compiler_static_F77='-static' | |
16269 ;; | |
16270 *Portland\ Group*) | |
16271 lt_prog_compiler_wl_F77='-Wl,' | |
16272 lt_prog_compiler_pic_F77='-fpic' | |
16273 lt_prog_compiler_static_F77='-Bstatic' | |
16274 ;; | |
16275 esac | |
16276 ;; | |
16277 esac | |
16278 ;; | |
16279 | |
16280 newsos6) | |
16281 lt_prog_compiler_pic_F77='-KPIC' | |
16282 lt_prog_compiler_static_F77='-Bstatic' | |
16283 ;; | |
16284 | |
16285 *nto* | *qnx*) | |
16286 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
16287 # it will coredump. | |
16288 lt_prog_compiler_pic_F77='-fPIC -shared' | |
16289 ;; | |
16290 | |
16291 osf3* | osf4* | osf5*) | |
16292 lt_prog_compiler_wl_F77='-Wl,' | |
16293 # All OSF/1 code is PIC. | |
16294 lt_prog_compiler_static_F77='-non_shared' | |
16295 ;; | |
16296 | |
16297 rdos*) | |
16298 lt_prog_compiler_static_F77='-non_shared' | |
16299 ;; | |
16300 | |
16301 solaris*) | |
16302 lt_prog_compiler_pic_F77='-KPIC' | |
16303 lt_prog_compiler_static_F77='-Bstatic' | |
16304 case $cc_basename in | |
16305 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
16306 lt_prog_compiler_wl_F77='-Qoption ld ';; | |
16307 *) | |
16308 lt_prog_compiler_wl_F77='-Wl,';; | |
16309 esac | |
16310 ;; | |
16311 | |
16312 sunos4*) | |
16313 lt_prog_compiler_wl_F77='-Qoption ld ' | |
16314 lt_prog_compiler_pic_F77='-PIC' | |
16315 lt_prog_compiler_static_F77='-Bstatic' | |
16316 ;; | |
16317 | |
16318 sysv4 | sysv4.2uw2* | sysv4.3*) | |
16319 lt_prog_compiler_wl_F77='-Wl,' | |
16320 lt_prog_compiler_pic_F77='-KPIC' | |
16321 lt_prog_compiler_static_F77='-Bstatic' | |
16322 ;; | |
16323 | |
16324 sysv4*MP*) | |
16325 if test -d /usr/nec ;then | |
16326 lt_prog_compiler_pic_F77='-Kconform_pic' | |
16327 lt_prog_compiler_static_F77='-Bstatic' | |
16328 fi | |
16329 ;; | |
16330 | |
16331 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
16332 lt_prog_compiler_wl_F77='-Wl,' | |
16333 lt_prog_compiler_pic_F77='-KPIC' | |
16334 lt_prog_compiler_static_F77='-Bstatic' | |
16335 ;; | |
16336 | |
16337 unicos*) | |
16338 lt_prog_compiler_wl_F77='-Wl,' | |
16339 lt_prog_compiler_can_build_shared_F77=no | |
16340 ;; | |
16341 | |
16342 uts4*) | |
16343 lt_prog_compiler_pic_F77='-pic' | |
16344 lt_prog_compiler_static_F77='-Bstatic' | |
16345 ;; | |
16346 | |
16347 *) | |
16348 lt_prog_compiler_can_build_shared_F77=no | |
16349 ;; | |
16350 esac | |
16351 fi | |
16352 | |
16353 case $host_os in | |
16354 # For platforms which do not support PIC, -DPIC is meaningless: | |
16355 *djgpp*) | |
16356 lt_prog_compiler_pic_F77= | |
16357 ;; | |
16358 *) | |
16359 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" | |
16360 ;; | |
16361 esac | |
16362 | |
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
16364 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
16365 if ${lt_cv_prog_compiler_pic_F77+:} false; then : | |
16366 $as_echo_n "(cached) " >&6 | |
16367 else | |
16368 lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77 | |
16369 fi | |
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5 | |
16371 $as_echo "$lt_cv_prog_compiler_pic_F77" >&6; } | |
16372 lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77 | |
16373 | |
16374 # | |
16375 # Check to make sure the PIC flag actually works. | |
16376 # | |
16377 if test -n "$lt_prog_compiler_pic_F77"; then | |
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 | |
16379 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; } | |
16380 if ${lt_cv_prog_compiler_pic_works_F77+:} false; then : | |
16381 $as_echo_n "(cached) " >&6 | |
16382 else | |
16383 lt_cv_prog_compiler_pic_works_F77=no | |
16384 ac_outfile=conftest.$ac_objext | |
16385 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
16386 lt_compiler_flag="$lt_prog_compiler_pic_F77" | |
16387 # Insert the option either (1) after the last *FLAGS variable, or | |
16388 # (2) before a word containing "conftest.", or (3) at the end. | |
16389 # Note that $ac_compile itself does not contain backslashes and begins | |
16390 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
16391 # The option is referenced via a variable to avoid confusing sed. | |
16392 lt_compile=`echo "$ac_compile" | $SED \ | |
16393 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
16394 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
16395 -e 's:$: $lt_compiler_flag:'` | |
16396 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
16397 (eval "$lt_compile" 2>conftest.err) | |
16398 ac_status=$? | |
16399 cat conftest.err >&5 | |
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16401 if (exit $ac_status) && test -s "$ac_outfile"; then | |
16402 # The compiler can only warn and ignore the option if not recognized | |
16403 # So say no if there are warnings other than the usual output. | |
16404 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
16405 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
16406 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
16407 lt_cv_prog_compiler_pic_works_F77=yes | |
16408 fi | |
16409 fi | |
16410 $RM conftest* | |
16411 | |
16412 fi | |
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5 | |
16414 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; } | |
16415 | |
16416 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then | |
16417 case $lt_prog_compiler_pic_F77 in | |
16418 "" | " "*) ;; | |
16419 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; | |
16420 esac | |
16421 else | |
16422 lt_prog_compiler_pic_F77= | |
16423 lt_prog_compiler_can_build_shared_F77=no | |
16424 fi | |
16425 | |
16426 fi | |
16427 | |
16428 | |
16429 | |
16430 | |
16431 | |
16432 # | |
16433 # Check to make sure the static flag actually works. | |
16434 # | |
16435 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" | |
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
16437 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
16438 if ${lt_cv_prog_compiler_static_works_F77+:} false; then : | |
16439 $as_echo_n "(cached) " >&6 | |
16440 else | |
16441 lt_cv_prog_compiler_static_works_F77=no | |
16442 save_LDFLAGS="$LDFLAGS" | |
16443 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
16444 echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
16445 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
16446 # The linker can only warn and ignore the option if not recognized | |
16447 # So say no if there are warnings | |
16448 if test -s conftest.err; then | |
16449 # Append any errors to the config.log. | |
16450 cat conftest.err 1>&5 | |
16451 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
16452 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
16453 if diff conftest.exp conftest.er2 >/dev/null; then | |
16454 lt_cv_prog_compiler_static_works_F77=yes | |
16455 fi | |
16456 else | |
16457 lt_cv_prog_compiler_static_works_F77=yes | |
16458 fi | |
16459 fi | |
16460 $RM -r conftest* | |
16461 LDFLAGS="$save_LDFLAGS" | |
16462 | |
16463 fi | |
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5 | |
16465 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; } | |
16466 | |
16467 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then | |
16468 : | |
16469 else | |
16470 lt_prog_compiler_static_F77= | |
16471 fi | |
16472 | |
16473 | |
16474 | |
16475 | |
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
16477 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
16478 if ${lt_cv_prog_compiler_c_o_F77+:} false; then : | |
16479 $as_echo_n "(cached) " >&6 | |
16480 else | |
16481 lt_cv_prog_compiler_c_o_F77=no | |
16482 $RM -r conftest 2>/dev/null | |
16483 mkdir conftest | |
16484 cd conftest | |
16485 mkdir out | |
16486 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
16487 | |
16488 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
16489 # Insert the option either (1) after the last *FLAGS variable, or | |
16490 # (2) before a word containing "conftest.", or (3) at the end. | |
16491 # Note that $ac_compile itself does not contain backslashes and begins | |
16492 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
16493 lt_compile=`echo "$ac_compile" | $SED \ | |
16494 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
16495 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
16496 -e 's:$: $lt_compiler_flag:'` | |
16497 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
16498 (eval "$lt_compile" 2>out/conftest.err) | |
16499 ac_status=$? | |
16500 cat out/conftest.err >&5 | |
16501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16502 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
16503 then | |
16504 # The compiler can only warn and ignore the option if not recognized | |
16505 # So say no if there are warnings | |
16506 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
16507 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
16508 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
16509 lt_cv_prog_compiler_c_o_F77=yes | |
16510 fi | |
16511 fi | |
16512 chmod u+w . 2>&5 | |
16513 $RM conftest* | |
16514 # SGI C++ compiler will create directory out/ii_files/ for | |
16515 # template instantiation | |
16516 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
16517 $RM out/* && rmdir out | |
16518 cd .. | |
16519 $RM -r conftest | |
16520 $RM conftest* | |
16521 | |
16522 fi | |
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5 | |
16524 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } | |
16525 | |
16526 | |
16527 | |
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
16529 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
16530 if ${lt_cv_prog_compiler_c_o_F77+:} false; then : | |
16531 $as_echo_n "(cached) " >&6 | |
16532 else | |
16533 lt_cv_prog_compiler_c_o_F77=no | |
16534 $RM -r conftest 2>/dev/null | |
16535 mkdir conftest | |
16536 cd conftest | |
16537 mkdir out | |
16538 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
16539 | |
16540 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
16541 # Insert the option either (1) after the last *FLAGS variable, or | |
16542 # (2) before a word containing "conftest.", or (3) at the end. | |
16543 # Note that $ac_compile itself does not contain backslashes and begins | |
16544 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
16545 lt_compile=`echo "$ac_compile" | $SED \ | |
16546 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
16547 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
16548 -e 's:$: $lt_compiler_flag:'` | |
16549 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
16550 (eval "$lt_compile" 2>out/conftest.err) | |
16551 ac_status=$? | |
16552 cat out/conftest.err >&5 | |
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16554 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
16555 then | |
16556 # The compiler can only warn and ignore the option if not recognized | |
16557 # So say no if there are warnings | |
16558 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
16559 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
16560 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
16561 lt_cv_prog_compiler_c_o_F77=yes | |
16562 fi | |
16563 fi | |
16564 chmod u+w . 2>&5 | |
16565 $RM conftest* | |
16566 # SGI C++ compiler will create directory out/ii_files/ for | |
16567 # template instantiation | |
16568 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
16569 $RM out/* && rmdir out | |
16570 cd .. | |
16571 $RM -r conftest | |
16572 $RM conftest* | |
16573 | |
16574 fi | |
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5 | |
16576 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } | |
16577 | |
16578 | |
16579 | |
16580 | |
16581 hard_links="nottested" | |
16582 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then | |
16583 # do not overwrite the value of need_locks provided by the user | |
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
16585 $as_echo_n "checking if we can lock with hard links... " >&6; } | |
16586 hard_links=yes | |
16587 $RM conftest* | |
16588 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
16589 touch conftest.a | |
16590 ln conftest.a conftest.b 2>&5 || hard_links=no | |
16591 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
16593 $as_echo "$hard_links" >&6; } | |
16594 if test "$hard_links" = no; then | |
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
16596 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
16597 need_locks=warn | |
16598 fi | |
16599 else | |
16600 need_locks=no | |
16601 fi | |
16602 | |
16603 | |
16604 | |
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
16606 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
16607 | |
16608 runpath_var= | |
16609 allow_undefined_flag_F77= | |
16610 always_export_symbols_F77=no | |
16611 archive_cmds_F77= | |
16612 archive_expsym_cmds_F77= | |
16613 compiler_needs_object_F77=no | |
16614 enable_shared_with_static_runtimes_F77=no | |
16615 export_dynamic_flag_spec_F77= | |
16616 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
16617 hardcode_automatic_F77=no | |
16618 hardcode_direct_F77=no | |
16619 hardcode_direct_absolute_F77=no | |
16620 hardcode_libdir_flag_spec_F77= | |
16621 hardcode_libdir_separator_F77= | |
16622 hardcode_minus_L_F77=no | |
16623 hardcode_shlibpath_var_F77=unsupported | |
16624 inherit_rpath_F77=no | |
16625 link_all_deplibs_F77=unknown | |
16626 module_cmds_F77= | |
16627 module_expsym_cmds_F77= | |
16628 old_archive_from_new_cmds_F77= | |
16629 old_archive_from_expsyms_cmds_F77= | |
16630 thread_safe_flag_spec_F77= | |
16631 whole_archive_flag_spec_F77= | |
16632 # include_expsyms should be a list of space-separated symbols to be *always* | |
16633 # included in the symbol list | |
16634 include_expsyms_F77= | |
16635 # exclude_expsyms can be an extended regexp of symbols to exclude | |
16636 # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
16637 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
16638 # as well as any symbol that contains `d'. | |
16639 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
16640 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
16641 # platforms (ab)use it in PIC code, but their linkers get confused if | |
16642 # the symbol is explicitly referenced. Since portable code cannot | |
16643 # rely on this symbol name, it's probably fine to never include it in | |
16644 # preloaded symbol tables. | |
16645 # Exclude shared library initialization/finalization symbols. | |
16646 extract_expsyms_cmds= | |
16647 | |
16648 case $host_os in | |
16649 cygwin* | mingw* | pw32* | cegcc*) | |
16650 # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
16651 # When not using gcc, we currently assume that we are using | |
16652 # Microsoft Visual C++. | |
16653 if test "$GCC" != yes; then | |
16654 with_gnu_ld=no | |
16655 fi | |
16656 ;; | |
16657 interix*) | |
16658 # we just hope/assume this is gcc and not c89 (= MSVC++) | |
16659 with_gnu_ld=yes | |
16660 ;; | |
16661 openbsd*) | |
16662 with_gnu_ld=no | |
16663 ;; | |
16664 linux* | k*bsd*-gnu | gnu*) | |
16665 link_all_deplibs_F77=no | |
16666 ;; | |
16667 esac | |
16668 | |
16669 ld_shlibs_F77=yes | |
16670 | |
16671 # On some targets, GNU ld is compatible enough with the native linker | |
16672 # that we're better off using the native interface for both. | |
16673 lt_use_gnu_ld_interface=no | |
16674 if test "$with_gnu_ld" = yes; then | |
16675 case $host_os in | |
16676 aix*) | |
16677 # The AIX port of GNU ld has always aspired to compatibility | |
16678 # with the native linker. However, as the warning in the GNU ld | |
16679 # block says, versions before 2.19.5* couldn't really create working | |
16680 # shared libraries, regardless of the interface used. | |
16681 case `$LD -v 2>&1` in | |
16682 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
16683 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
16684 *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
16685 *) | |
16686 lt_use_gnu_ld_interface=yes | |
16687 ;; | |
16688 esac | |
16689 ;; | |
16690 *) | |
16691 lt_use_gnu_ld_interface=yes | |
16692 ;; | |
16693 esac | |
16694 fi | |
16695 | |
16696 if test "$lt_use_gnu_ld_interface" = yes; then | |
16697 # If archive_cmds runs LD, not CC, wlarc should be empty | |
16698 wlarc='${wl}' | |
16699 | |
16700 # Set some defaults for GNU ld with shared library support. These | |
16701 # are reset later if shared libraries are not supported. Putting them | |
16702 # here allows them to be overridden if necessary. | |
16703 runpath_var=LD_RUN_PATH | |
16704 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
16705 export_dynamic_flag_spec_F77='${wl}--export-dynamic' | |
16706 # ancient GNU ld didn't support --whole-archive et. al. | |
16707 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
16708 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
16709 else | |
16710 whole_archive_flag_spec_F77= | |
16711 fi | |
16712 supports_anon_versioning=no | |
16713 case `$LD -v 2>&1` in | |
16714 *GNU\ gold*) supports_anon_versioning=yes ;; | |
16715 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
16716 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
16717 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
16718 *\ 2.11.*) ;; # other 2.11 versions | |
16719 *) supports_anon_versioning=yes ;; | |
16720 esac | |
16721 | |
16722 # See if GNU ld supports shared libraries. | |
16723 case $host_os in | |
16724 aix[3-9]*) | |
16725 # On AIX/PPC, the GNU linker is very broken | |
16726 if test "$host_cpu" != ia64; then | |
16727 ld_shlibs_F77=no | |
16728 cat <<_LT_EOF 1>&2 | |
16729 | |
16730 *** Warning: the GNU linker, at least up to release 2.19, is reported | |
16731 *** to be unable to reliably create shared libraries on AIX. | |
16732 *** Therefore, libtool is disabling shared libraries support. If you | |
16733 *** really care for shared libraries, you may want to install binutils | |
16734 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
16735 *** You will then need to restart the configuration process. | |
16736 | |
16737 _LT_EOF | |
16738 fi | |
16739 ;; | |
16740 | |
16741 amigaos*) | |
16742 case $host_cpu in | |
16743 powerpc) | |
16744 # see comment about AmigaOS4 .so support | |
16745 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16746 archive_expsym_cmds_F77='' | |
16747 ;; | |
16748 m68k) | |
16749 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)' | |
16750 hardcode_libdir_flag_spec_F77='-L$libdir' | |
16751 hardcode_minus_L_F77=yes | |
16752 ;; | |
16753 esac | |
16754 ;; | |
16755 | |
16756 beos*) | |
16757 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
16758 allow_undefined_flag_F77=unsupported | |
16759 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
16760 # support --undefined. This deserves some investigation. FIXME | |
16761 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16762 else | |
16763 ld_shlibs_F77=no | |
16764 fi | |
16765 ;; | |
16766 | |
16767 cygwin* | mingw* | pw32* | cegcc*) | |
16768 # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, | |
16769 # as there is no search path for DLLs. | |
16770 hardcode_libdir_flag_spec_F77='-L$libdir' | |
16771 export_dynamic_flag_spec_F77='${wl}--export-all-symbols' | |
16772 allow_undefined_flag_F77=unsupported | |
16773 always_export_symbols_F77=no | |
16774 enable_shared_with_static_runtimes_F77=yes | |
16775 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' | |
16776 exclude_expsyms_F77='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
16777 | |
16778 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
16779 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
16780 # If the export-symbols file already is a .def file (1st line | |
16781 # is EXPORTS), use it as is; otherwise, prepend... | |
16782 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
16783 cp $export_symbols $output_objdir/$soname.def; | |
16784 else | |
16785 echo EXPORTS > $output_objdir/$soname.def; | |
16786 cat $export_symbols >> $output_objdir/$soname.def; | |
16787 fi~ | |
16788 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
16789 else | |
16790 ld_shlibs_F77=no | |
16791 fi | |
16792 ;; | |
16793 | |
16794 haiku*) | |
16795 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16796 link_all_deplibs_F77=yes | |
16797 ;; | |
16798 | |
16799 interix[3-9]*) | |
16800 hardcode_direct_F77=no | |
16801 hardcode_shlibpath_var_F77=no | |
16802 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
16803 export_dynamic_flag_spec_F77='${wl}-E' | |
16804 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
16805 # Instead, shared libraries are loaded at an image base (0x10000000 by | |
16806 # default) and relocated if they conflict, which is a slow very memory | |
16807 # consuming and fragmenting process. To avoid this, we pick a random, | |
16808 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
16809 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
16810 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' | |
16811 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' | |
16812 ;; | |
16813 | |
16814 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
16815 tmp_diet=no | |
16816 if test "$host_os" = linux-dietlibc; then | |
16817 case $cc_basename in | |
16818 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
16819 esac | |
16820 fi | |
16821 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
16822 && test "$tmp_diet" = no | |
16823 then | |
16824 tmp_addflag=' $pic_flag' | |
16825 tmp_sharedflag='-shared' | |
16826 case $cc_basename,$host_cpu in | |
16827 pgcc*) # Portland Group C compiler | |
16828 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' | |
16829 tmp_addflag=' $pic_flag' | |
16830 ;; | |
16831 pgf77* | pgf90* | pgf95* | pgfortran*) | |
16832 # Portland Group f77 and f90 compilers | |
16833 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' | |
16834 tmp_addflag=' $pic_flag -Mnomain' ;; | |
16835 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
16836 tmp_addflag=' -i_dynamic' ;; | |
16837 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
16838 tmp_addflag=' -i_dynamic -nofor_main' ;; | |
16839 ifc* | ifort*) # Intel Fortran compiler | |
16840 tmp_addflag=' -nofor_main' ;; | |
16841 lf95*) # Lahey Fortran 8.1 | |
16842 whole_archive_flag_spec_F77= | |
16843 tmp_sharedflag='--shared' ;; | |
16844 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
16845 tmp_sharedflag='-qmkshrobj' | |
16846 tmp_addflag= ;; | |
16847 nvcc*) # Cuda Compiler Driver 2.2 | |
16848 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' | |
16849 compiler_needs_object_F77=yes | |
16850 ;; | |
16851 esac | |
16852 case `$CC -V 2>&1 | sed 5q` in | |
16853 *Sun\ C*) # Sun C 5.9 | |
16854 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' | |
16855 compiler_needs_object_F77=yes | |
16856 tmp_sharedflag='-G' ;; | |
16857 *Sun\ F*) # Sun Fortran 8.3 | |
16858 tmp_sharedflag='-G' ;; | |
16859 esac | |
16860 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16861 | |
16862 if test "x$supports_anon_versioning" = xyes; then | |
16863 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~ | |
16864 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
16865 echo "local: *; };" >> $output_objdir/$libname.ver~ | |
16866 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
16867 fi | |
16868 | |
16869 case $cc_basename in | |
16870 xlf* | bgf* | bgxlf* | mpixlf*) | |
16871 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
16872 whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive' | |
16873 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
16874 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | |
16875 if test "x$supports_anon_versioning" = xyes; then | |
16876 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~ | |
16877 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
16878 echo "local: *; };" >> $output_objdir/$libname.ver~ | |
16879 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
16880 fi | |
16881 ;; | |
16882 esac | |
16883 else | |
16884 ld_shlibs_F77=no | |
16885 fi | |
16886 ;; | |
16887 | |
16888 netbsd* | netbsdelf*-gnu) | |
16889 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
16890 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
16891 wlarc= | |
16892 else | |
16893 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16894 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' | |
16895 fi | |
16896 ;; | |
16897 | |
16898 solaris*) | |
16899 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
16900 ld_shlibs_F77=no | |
16901 cat <<_LT_EOF 1>&2 | |
16902 | |
16903 *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
16904 *** create shared libraries on Solaris systems. Therefore, libtool | |
16905 *** is disabling shared libraries support. We urge you to upgrade GNU | |
16906 *** binutils to release 2.9.1 or newer. Another option is to modify | |
16907 *** your PATH or compiler configuration so that the native linker is | |
16908 *** used, and then restart. | |
16909 | |
16910 _LT_EOF | |
16911 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
16912 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16913 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' | |
16914 else | |
16915 ld_shlibs_F77=no | |
16916 fi | |
16917 ;; | |
16918 | |
16919 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
16920 case `$LD -v 2>&1` in | |
16921 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
16922 ld_shlibs_F77=no | |
16923 cat <<_LT_EOF 1>&2 | |
16924 | |
16925 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
16926 *** reliably create shared libraries on SCO systems. Therefore, libtool | |
16927 *** is disabling shared libraries support. We urge you to upgrade GNU | |
16928 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
16929 *** your PATH or compiler configuration so that the native linker is | |
16930 *** used, and then restart. | |
16931 | |
16932 _LT_EOF | |
16933 ;; | |
16934 *) | |
16935 # For security reasons, it is highly recommended that you always | |
16936 # use absolute paths for naming shared libraries, and exclude the | |
16937 # DT_RUNPATH tag from executables and libraries. But doing so | |
16938 # requires that you compile everything twice, which is a pain. | |
16939 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
16940 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
16941 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16942 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
16943 else | |
16944 ld_shlibs_F77=no | |
16945 fi | |
16946 ;; | |
16947 esac | |
16948 ;; | |
16949 | |
16950 sunos4*) | |
16951 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
16952 wlarc= | |
16953 hardcode_direct_F77=yes | |
16954 hardcode_shlibpath_var_F77=no | |
16955 ;; | |
16956 | |
16957 *) | |
16958 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
16959 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16960 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' | |
16961 else | |
16962 ld_shlibs_F77=no | |
16963 fi | |
16964 ;; | |
16965 esac | |
16966 | |
16967 if test "$ld_shlibs_F77" = no; then | |
16968 runpath_var= | |
16969 hardcode_libdir_flag_spec_F77= | |
16970 export_dynamic_flag_spec_F77= | |
16971 whole_archive_flag_spec_F77= | |
16972 fi | |
16973 else | |
16974 # PORTME fill in a description of your system's linker (not GNU ld) | |
16975 case $host_os in | |
16976 aix3*) | |
16977 allow_undefined_flag_F77=unsupported | |
16978 always_export_symbols_F77=yes | |
16979 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' | |
16980 # Note: this linker hardcodes the directories in LIBPATH if there | |
16981 # are no directories specified by -L. | |
16982 hardcode_minus_L_F77=yes | |
16983 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
16984 # Neither direct hardcoding nor static linking is supported with a | |
16985 # broken collect2. | |
16986 hardcode_direct_F77=unsupported | |
16987 fi | |
16988 ;; | |
16989 | |
16990 aix[4-9]*) | |
16991 if test "$host_cpu" = ia64; then | |
16992 # On IA64, the linker does run time linking by default, so we don't | |
16993 # have to do anything special. | |
16994 aix_use_runtimelinking=no | |
16995 exp_sym_flag='-Bexport' | |
16996 no_entry_flag="" | |
16997 else | |
16998 # If we're using GNU nm, then we don't want the "-C" option. | |
16999 # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
17000 # Also, AIX nm treats weak defined symbols like other global | |
17001 # defined symbols, whereas GNU nm marks them as "W". | |
17002 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
17003 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' | |
17004 else | |
17005 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' | |
17006 fi | |
17007 aix_use_runtimelinking=no | |
17008 | |
17009 # Test if we are trying to use run time linking or normal | |
17010 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
17011 # need to do runtime linking. | |
17012 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
17013 for ld_flag in $LDFLAGS; do | |
17014 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
17015 aix_use_runtimelinking=yes | |
17016 break | |
17017 fi | |
17018 done | |
17019 ;; | |
17020 esac | |
17021 | |
17022 exp_sym_flag='-bexport' | |
17023 no_entry_flag='-bnoentry' | |
17024 fi | |
17025 | |
17026 # When large executables or shared objects are built, AIX ld can | |
17027 # have problems creating the table of contents. If linking a library | |
17028 # or program results in "error TOC overflow" add -mminimal-toc to | |
17029 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
17030 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
17031 | |
17032 archive_cmds_F77='' | |
17033 hardcode_direct_F77=yes | |
17034 hardcode_direct_absolute_F77=yes | |
17035 hardcode_libdir_separator_F77=':' | |
17036 link_all_deplibs_F77=yes | |
17037 file_list_spec_F77='${wl}-f,' | |
17038 | |
17039 if test "$GCC" = yes; then | |
17040 case $host_os in aix4.[012]|aix4.[012].*) | |
17041 # We only want to do this on AIX 4.2 and lower, the check | |
17042 # below for broken collect2 doesn't work under 4.3+ | |
17043 collect2name=`${CC} -print-prog-name=collect2` | |
17044 if test -f "$collect2name" && | |
17045 strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
17046 then | |
17047 # We have reworked collect2 | |
17048 : | |
17049 else | |
17050 # We have old collect2 | |
17051 hardcode_direct_F77=unsupported | |
17052 # It fails to find uninstalled libraries when the uninstalled | |
17053 # path is not listed in the libpath. Setting hardcode_minus_L | |
17054 # to unsupported forces relinking | |
17055 hardcode_minus_L_F77=yes | |
17056 hardcode_libdir_flag_spec_F77='-L$libdir' | |
17057 hardcode_libdir_separator_F77= | |
17058 fi | |
17059 ;; | |
17060 esac | |
17061 shared_flag='-shared' | |
17062 if test "$aix_use_runtimelinking" = yes; then | |
17063 shared_flag="$shared_flag "'${wl}-G' | |
17064 fi | |
17065 link_all_deplibs_F77=no | |
17066 else | |
17067 # not using gcc | |
17068 if test "$host_cpu" = ia64; then | |
17069 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
17070 # chokes on -Wl,-G. The following line is correct: | |
17071 shared_flag='-G' | |
17072 else | |
17073 if test "$aix_use_runtimelinking" = yes; then | |
17074 shared_flag='${wl}-G' | |
17075 else | |
17076 shared_flag='${wl}-bM:SRE' | |
17077 fi | |
17078 fi | |
17079 fi | |
17080 | |
17081 export_dynamic_flag_spec_F77='${wl}-bexpall' | |
17082 # It seems that -bexpall does not export symbols beginning with | |
17083 # underscore (_), so it is better to generate a list of symbols to export. | |
17084 always_export_symbols_F77=yes | |
17085 if test "$aix_use_runtimelinking" = yes; then | |
17086 # Warning - without using the other runtime loading flags (-brtl), | |
17087 # -berok will link without error, but may produce a broken library. | |
17088 allow_undefined_flag_F77='-berok' | |
17089 # Determine the default libpath from the value encoded in an | |
17090 # empty executable. | |
17091 if test "${lt_cv_aix_libpath+set}" = set; then | |
17092 aix_libpath=$lt_cv_aix_libpath | |
17093 else | |
17094 if ${lt_cv_aix_libpath__F77+:} false; then : | |
17095 $as_echo_n "(cached) " >&6 | |
17096 else | |
17097 cat > conftest.$ac_ext <<_ACEOF | |
17098 program main | |
17099 | |
17100 end | |
17101 _ACEOF | |
17102 if ac_fn_f77_try_link "$LINENO"; then : | |
17103 | |
17104 lt_aix_libpath_sed=' | |
17105 /Import File Strings/,/^$/ { | |
17106 /^0/ { | |
17107 s/^0 *\([^ ]*\) *$/\1/ | |
17108 p | |
17109 } | |
17110 }' | |
17111 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
17112 # Check for a 64-bit object if we didn't find anything. | |
17113 if test -z "$lt_cv_aix_libpath__F77"; then | |
17114 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
17115 fi | |
17116 fi | |
17117 rm -f core conftest.err conftest.$ac_objext \ | |
17118 conftest$ac_exeext conftest.$ac_ext | |
17119 if test -z "$lt_cv_aix_libpath__F77"; then | |
17120 lt_cv_aix_libpath__F77="/usr/lib:/lib" | |
17121 fi | |
17122 | |
17123 fi | |
17124 | |
17125 aix_libpath=$lt_cv_aix_libpath__F77 | |
17126 fi | |
17127 | |
17128 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | |
17129 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" | |
17130 else | |
17131 if test "$host_cpu" = ia64; then | |
17132 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' | |
17133 allow_undefined_flag_F77="-z nodefs" | |
17134 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" | |
17135 else | |
17136 # Determine the default libpath from the value encoded in an | |
17137 # empty executable. | |
17138 if test "${lt_cv_aix_libpath+set}" = set; then | |
17139 aix_libpath=$lt_cv_aix_libpath | |
17140 else | |
17141 if ${lt_cv_aix_libpath__F77+:} false; then : | |
17142 $as_echo_n "(cached) " >&6 | |
17143 else | |
17144 cat > conftest.$ac_ext <<_ACEOF | |
17145 program main | |
17146 | |
17147 end | |
17148 _ACEOF | |
17149 if ac_fn_f77_try_link "$LINENO"; then : | |
17150 | |
17151 lt_aix_libpath_sed=' | |
17152 /Import File Strings/,/^$/ { | |
17153 /^0/ { | |
17154 s/^0 *\([^ ]*\) *$/\1/ | |
17155 p | |
17156 } | |
17157 }' | |
17158 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
17159 # Check for a 64-bit object if we didn't find anything. | |
17160 if test -z "$lt_cv_aix_libpath__F77"; then | |
17161 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
17162 fi | |
17163 fi | |
17164 rm -f core conftest.err conftest.$ac_objext \ | |
17165 conftest$ac_exeext conftest.$ac_ext | |
17166 if test -z "$lt_cv_aix_libpath__F77"; then | |
17167 lt_cv_aix_libpath__F77="/usr/lib:/lib" | |
17168 fi | |
17169 | |
17170 fi | |
17171 | |
17172 aix_libpath=$lt_cv_aix_libpath__F77 | |
17173 fi | |
17174 | |
17175 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | |
17176 # Warning - without using the other run time loading flags, | |
17177 # -berok will link without error, but may produce a broken library. | |
17178 no_undefined_flag_F77=' ${wl}-bernotok' | |
17179 allow_undefined_flag_F77=' ${wl}-berok' | |
17180 if test "$with_gnu_ld" = yes; then | |
17181 # We only use this code for GNU lds that support --whole-archive. | |
17182 whole_archive_flag_spec_F77='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
17183 else | |
17184 # Exported symbols can be pulled into shared objects from archives | |
17185 whole_archive_flag_spec_F77='$convenience' | |
17186 fi | |
17187 archive_cmds_need_lc_F77=yes | |
17188 # This is similar to how AIX traditionally builds its shared libraries. | |
17189 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' | |
17190 fi | |
17191 fi | |
17192 ;; | |
17193 | |
17194 amigaos*) | |
17195 case $host_cpu in | |
17196 powerpc) | |
17197 # see comment about AmigaOS4 .so support | |
17198 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
17199 archive_expsym_cmds_F77='' | |
17200 ;; | |
17201 m68k) | |
17202 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)' | |
17203 hardcode_libdir_flag_spec_F77='-L$libdir' | |
17204 hardcode_minus_L_F77=yes | |
17205 ;; | |
17206 esac | |
17207 ;; | |
17208 | |
17209 bsdi[45]*) | |
17210 export_dynamic_flag_spec_F77=-rdynamic | |
17211 ;; | |
17212 | |
17213 cygwin* | mingw* | pw32* | cegcc*) | |
17214 # When not using gcc, we currently assume that we are using | |
17215 # Microsoft Visual C++. | |
17216 # hardcode_libdir_flag_spec is actually meaningless, as there is | |
17217 # no search path for DLLs. | |
17218 case $cc_basename in | |
17219 cl*) | |
17220 # Native MSVC | |
17221 hardcode_libdir_flag_spec_F77=' ' | |
17222 allow_undefined_flag_F77=unsupported | |
17223 always_export_symbols_F77=yes | |
17224 file_list_spec_F77='@' | |
17225 # Tell ltmain to make .lib files, not .a files. | |
17226 libext=lib | |
17227 # Tell ltmain to make .dll files, not .so files. | |
17228 shrext_cmds=".dll" | |
17229 # FIXME: Setting linknames here is a bad hack. | |
17230 archive_cmds_F77='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
17231 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
17232 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
17233 else | |
17234 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
17235 fi~ | |
17236 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
17237 linknames=' | |
17238 # The linker will not automatically build a static lib if we build a DLL. | |
17239 # _LT_TAGVAR(old_archive_from_new_cmds, F77)='true' | |
17240 enable_shared_with_static_runtimes_F77=yes | |
17241 exclude_expsyms_F77='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
17242 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
17243 # Don't use ranlib | |
17244 old_postinstall_cmds_F77='chmod 644 $oldlib' | |
17245 postlink_cmds_F77='lt_outputfile="@OUTPUT@"~ | |
17246 lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
17247 case $lt_outputfile in | |
17248 *.exe|*.EXE) ;; | |
17249 *) | |
17250 lt_outputfile="$lt_outputfile.exe" | |
17251 lt_tool_outputfile="$lt_tool_outputfile.exe" | |
17252 ;; | |
17253 esac~ | |
17254 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
17255 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
17256 $RM "$lt_outputfile.manifest"; | |
17257 fi' | |
17258 ;; | |
17259 *) | |
17260 # Assume MSVC wrapper | |
17261 hardcode_libdir_flag_spec_F77=' ' | |
17262 allow_undefined_flag_F77=unsupported | |
17263 # Tell ltmain to make .lib files, not .a files. | |
17264 libext=lib | |
17265 # Tell ltmain to make .dll files, not .so files. | |
17266 shrext_cmds=".dll" | |
17267 # FIXME: Setting linknames here is a bad hack. | |
17268 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
17269 # The linker will automatically build a .lib file if we build a DLL. | |
17270 old_archive_from_new_cmds_F77='true' | |
17271 # FIXME: Should let the user specify the lib program. | |
17272 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
17273 enable_shared_with_static_runtimes_F77=yes | |
17274 ;; | |
17275 esac | |
17276 ;; | |
17277 | |
17278 darwin* | rhapsody*) | |
17279 | |
17280 | |
17281 archive_cmds_need_lc_F77=no | |
17282 hardcode_direct_F77=no | |
17283 hardcode_automatic_F77=yes | |
17284 hardcode_shlibpath_var_F77=unsupported | |
17285 if test "$lt_cv_ld_force_load" = "yes"; then | |
17286 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\"`' | |
17287 compiler_needs_object_F77=yes | |
17288 else | |
17289 whole_archive_flag_spec_F77='' | |
17290 fi | |
17291 link_all_deplibs_F77=yes | |
17292 allow_undefined_flag_F77="$_lt_dar_allow_undefined" | |
17293 case $cc_basename in | |
17294 ifort*) _lt_dar_can_shared=yes ;; | |
17295 *) _lt_dar_can_shared=$GCC ;; | |
17296 esac | |
17297 if test "$_lt_dar_can_shared" = "yes"; then | |
17298 output_verbose_link_cmd=func_echo_all | |
17299 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}" | |
17300 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
17301 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}" | |
17302 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}" | |
17303 | |
17304 else | |
17305 ld_shlibs_F77=no | |
17306 fi | |
17307 | |
17308 ;; | |
17309 | |
17310 dgux*) | |
17311 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17312 hardcode_libdir_flag_spec_F77='-L$libdir' | |
17313 hardcode_shlibpath_var_F77=no | |
17314 ;; | |
17315 | |
17316 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
17317 # support. Future versions do this automatically, but an explicit c++rt0.o | |
17318 # does not break anything, and helps significantly (at the cost of a little | |
17319 # extra space). | |
17320 freebsd2.2*) | |
17321 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
17322 hardcode_libdir_flag_spec_F77='-R$libdir' | |
17323 hardcode_direct_F77=yes | |
17324 hardcode_shlibpath_var_F77=no | |
17325 ;; | |
17326 | |
17327 # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
17328 freebsd2.*) | |
17329 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
17330 hardcode_direct_F77=yes | |
17331 hardcode_minus_L_F77=yes | |
17332 hardcode_shlibpath_var_F77=no | |
17333 ;; | |
17334 | |
17335 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
17336 freebsd* | dragonfly*) | |
17337 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
17338 hardcode_libdir_flag_spec_F77='-R$libdir' | |
17339 hardcode_direct_F77=yes | |
17340 hardcode_shlibpath_var_F77=no | |
17341 ;; | |
17342 | |
17343 hpux9*) | |
17344 if test "$GCC" = yes; then | |
17345 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' | |
17346 else | |
17347 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' | |
17348 fi | |
17349 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
17350 hardcode_libdir_separator_F77=: | |
17351 hardcode_direct_F77=yes | |
17352 | |
17353 # hardcode_minus_L: Not really in the search PATH, | |
17354 # but as the default location of the library. | |
17355 hardcode_minus_L_F77=yes | |
17356 export_dynamic_flag_spec_F77='${wl}-E' | |
17357 ;; | |
17358 | |
17359 hpux10*) | |
17360 if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
17361 archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
17362 else | |
17363 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
17364 fi | |
17365 if test "$with_gnu_ld" = no; then | |
17366 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
17367 hardcode_libdir_separator_F77=: | |
17368 hardcode_direct_F77=yes | |
17369 hardcode_direct_absolute_F77=yes | |
17370 export_dynamic_flag_spec_F77='${wl}-E' | |
17371 # hardcode_minus_L: Not really in the search PATH, | |
17372 # but as the default location of the library. | |
17373 hardcode_minus_L_F77=yes | |
17374 fi | |
17375 ;; | |
17376 | |
17377 hpux11*) | |
17378 if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
17379 case $host_cpu in | |
17380 hppa*64*) | |
17381 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17382 ;; | |
17383 ia64*) | |
17384 archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
17385 ;; | |
17386 *) | |
17387 archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
17388 ;; | |
17389 esac | |
17390 else | |
17391 case $host_cpu in | |
17392 hppa*64*) | |
17393 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17394 ;; | |
17395 ia64*) | |
17396 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
17397 ;; | |
17398 *) | |
17399 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
17400 ;; | |
17401 esac | |
17402 fi | |
17403 if test "$with_gnu_ld" = no; then | |
17404 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
17405 hardcode_libdir_separator_F77=: | |
17406 | |
17407 case $host_cpu in | |
17408 hppa*64*|ia64*) | |
17409 hardcode_direct_F77=no | |
17410 hardcode_shlibpath_var_F77=no | |
17411 ;; | |
17412 *) | |
17413 hardcode_direct_F77=yes | |
17414 hardcode_direct_absolute_F77=yes | |
17415 export_dynamic_flag_spec_F77='${wl}-E' | |
17416 | |
17417 # hardcode_minus_L: Not really in the search PATH, | |
17418 # but as the default location of the library. | |
17419 hardcode_minus_L_F77=yes | |
17420 ;; | |
17421 esac | |
17422 fi | |
17423 ;; | |
17424 | |
17425 irix5* | irix6* | nonstopux*) | |
17426 if test "$GCC" = yes; then | |
17427 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' | |
17428 # Try to use the -exported_symbol ld option, if it does not | |
17429 # work, assume that -exports_file does not work either and | |
17430 # implicitly export all symbols. | |
17431 # This should be the same for all languages, so no per-tag cache variable. | |
17432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
17433 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
17434 if ${lt_cv_irix_exported_symbol+:} false; then : | |
17435 $as_echo_n "(cached) " >&6 | |
17436 else | |
17437 save_LDFLAGS="$LDFLAGS" | |
17438 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
17439 cat > conftest.$ac_ext <<_ACEOF | |
17440 | |
17441 subroutine foo | |
17442 end | |
17443 _ACEOF | |
17444 if ac_fn_f77_try_link "$LINENO"; then : | |
17445 lt_cv_irix_exported_symbol=yes | |
17446 else | |
17447 lt_cv_irix_exported_symbol=no | |
17448 fi | |
17449 rm -f core conftest.err conftest.$ac_objext \ | |
17450 conftest$ac_exeext conftest.$ac_ext | |
17451 LDFLAGS="$save_LDFLAGS" | |
17452 fi | |
17453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
17454 $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
17455 if test "$lt_cv_irix_exported_symbol" = yes; then | |
17456 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' | |
17457 fi | |
17458 else | |
17459 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' | |
17460 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' | |
17461 fi | |
17462 archive_cmds_need_lc_F77='no' | |
17463 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
17464 hardcode_libdir_separator_F77=: | |
17465 inherit_rpath_F77=yes | |
17466 link_all_deplibs_F77=yes | |
17467 ;; | |
17468 | |
17469 netbsd* | netbsdelf*-gnu) | |
17470 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
17471 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
17472 else | |
17473 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
17474 fi | |
17475 hardcode_libdir_flag_spec_F77='-R$libdir' | |
17476 hardcode_direct_F77=yes | |
17477 hardcode_shlibpath_var_F77=no | |
17478 ;; | |
17479 | |
17480 newsos6) | |
17481 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17482 hardcode_direct_F77=yes | |
17483 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
17484 hardcode_libdir_separator_F77=: | |
17485 hardcode_shlibpath_var_F77=no | |
17486 ;; | |
17487 | |
17488 *nto* | *qnx*) | |
17489 ;; | |
17490 | |
17491 openbsd*) | |
17492 if test -f /usr/libexec/ld.so; then | |
17493 hardcode_direct_F77=yes | |
17494 hardcode_shlibpath_var_F77=no | |
17495 hardcode_direct_absolute_F77=yes | |
17496 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
17497 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
17498 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
17499 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
17500 export_dynamic_flag_spec_F77='${wl}-E' | |
17501 else | |
17502 case $host_os in | |
17503 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
17504 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
17505 hardcode_libdir_flag_spec_F77='-R$libdir' | |
17506 ;; | |
17507 *) | |
17508 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
17509 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
17510 ;; | |
17511 esac | |
17512 fi | |
17513 else | |
17514 ld_shlibs_F77=no | |
17515 fi | |
17516 ;; | |
17517 | |
17518 os2*) | |
17519 hardcode_libdir_flag_spec_F77='-L$libdir' | |
17520 hardcode_minus_L_F77=yes | |
17521 allow_undefined_flag_F77=unsupported | |
17522 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' | |
17523 old_archive_from_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
17524 ;; | |
17525 | |
17526 osf3*) | |
17527 if test "$GCC" = yes; then | |
17528 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | |
17529 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' | |
17530 else | |
17531 allow_undefined_flag_F77=' -expect_unresolved \*' | |
17532 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' | |
17533 fi | |
17534 archive_cmds_need_lc_F77='no' | |
17535 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
17536 hardcode_libdir_separator_F77=: | |
17537 ;; | |
17538 | |
17539 osf4* | osf5*) # as osf3* with the addition of -msym flag | |
17540 if test "$GCC" = yes; then | |
17541 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | |
17542 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' | |
17543 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
17544 else | |
17545 allow_undefined_flag_F77=' -expect_unresolved \*' | |
17546 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' | |
17547 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~ | |
17548 $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' | |
17549 | |
17550 # Both c and cxx compiler support -rpath directly | |
17551 hardcode_libdir_flag_spec_F77='-rpath $libdir' | |
17552 fi | |
17553 archive_cmds_need_lc_F77='no' | |
17554 hardcode_libdir_separator_F77=: | |
17555 ;; | |
17556 | |
17557 solaris*) | |
17558 no_undefined_flag_F77=' -z defs' | |
17559 if test "$GCC" = yes; then | |
17560 wlarc='${wl}' | |
17561 archive_cmds_F77='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17562 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
17563 $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' | |
17564 else | |
17565 case `$CC -V 2>&1` in | |
17566 *"Compilers 5.0"*) | |
17567 wlarc='' | |
17568 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17569 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
17570 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
17571 ;; | |
17572 *) | |
17573 wlarc='${wl}' | |
17574 archive_cmds_F77='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
17575 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
17576 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
17577 ;; | |
17578 esac | |
17579 fi | |
17580 hardcode_libdir_flag_spec_F77='-R$libdir' | |
17581 hardcode_shlibpath_var_F77=no | |
17582 case $host_os in | |
17583 solaris2.[0-5] | solaris2.[0-5].*) ;; | |
17584 *) | |
17585 # The compiler driver will combine and reorder linker options, | |
17586 # but understands `-z linker_flag'. GCC discards it without `$wl', | |
17587 # but is careful enough not to reorder. | |
17588 # Supported since Solaris 2.6 (maybe 2.5.1?) | |
17589 if test "$GCC" = yes; then | |
17590 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
17591 else | |
17592 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' | |
17593 fi | |
17594 ;; | |
17595 esac | |
17596 link_all_deplibs_F77=yes | |
17597 ;; | |
17598 | |
17599 sunos4*) | |
17600 if test "x$host_vendor" = xsequent; then | |
17601 # Use $CC to link under sequent, because it throws in some extra .o | |
17602 # files that make .init and .fini sections work. | |
17603 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
17604 else | |
17605 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
17606 fi | |
17607 hardcode_libdir_flag_spec_F77='-L$libdir' | |
17608 hardcode_direct_F77=yes | |
17609 hardcode_minus_L_F77=yes | |
17610 hardcode_shlibpath_var_F77=no | |
17611 ;; | |
17612 | |
17613 sysv4) | |
17614 case $host_vendor in | |
17615 sni) | |
17616 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17617 hardcode_direct_F77=yes # is this really true??? | |
17618 ;; | |
17619 siemens) | |
17620 ## LD is ld it makes a PLAMLIB | |
17621 ## CC just makes a GrossModule. | |
17622 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
17623 reload_cmds_F77='$CC -r -o $output$reload_objs' | |
17624 hardcode_direct_F77=no | |
17625 ;; | |
17626 motorola) | |
17627 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17628 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie | |
17629 ;; | |
17630 esac | |
17631 runpath_var='LD_RUN_PATH' | |
17632 hardcode_shlibpath_var_F77=no | |
17633 ;; | |
17634 | |
17635 sysv4.3*) | |
17636 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17637 hardcode_shlibpath_var_F77=no | |
17638 export_dynamic_flag_spec_F77='-Bexport' | |
17639 ;; | |
17640 | |
17641 sysv4*MP*) | |
17642 if test -d /usr/nec; then | |
17643 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17644 hardcode_shlibpath_var_F77=no | |
17645 runpath_var=LD_RUN_PATH | |
17646 hardcode_runpath_var=yes | |
17647 ld_shlibs_F77=yes | |
17648 fi | |
17649 ;; | |
17650 | |
17651 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
17652 no_undefined_flag_F77='${wl}-z,text' | |
17653 archive_cmds_need_lc_F77=no | |
17654 hardcode_shlibpath_var_F77=no | |
17655 runpath_var='LD_RUN_PATH' | |
17656 | |
17657 if test "$GCC" = yes; then | |
17658 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17659 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17660 else | |
17661 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17662 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17663 fi | |
17664 ;; | |
17665 | |
17666 sysv5* | sco3.2v5* | sco5v6*) | |
17667 # Note: We can NOT use -z defs as we might desire, because we do not | |
17668 # link with -lc, and that would cause any symbols used from libc to | |
17669 # always be unresolved, which means just about no library would | |
17670 # ever link correctly. If we're not using GNU ld we use -z text | |
17671 # though, which does catch some bad symbols but isn't as heavy-handed | |
17672 # as -z defs. | |
17673 no_undefined_flag_F77='${wl}-z,text' | |
17674 allow_undefined_flag_F77='${wl}-z,nodefs' | |
17675 archive_cmds_need_lc_F77=no | |
17676 hardcode_shlibpath_var_F77=no | |
17677 hardcode_libdir_flag_spec_F77='${wl}-R,$libdir' | |
17678 hardcode_libdir_separator_F77=':' | |
17679 link_all_deplibs_F77=yes | |
17680 export_dynamic_flag_spec_F77='${wl}-Bexport' | |
17681 runpath_var='LD_RUN_PATH' | |
17682 | |
17683 if test "$GCC" = yes; then | |
17684 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17685 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17686 else | |
17687 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17688 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17689 fi | |
17690 ;; | |
17691 | |
17692 uts4*) | |
17693 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17694 hardcode_libdir_flag_spec_F77='-L$libdir' | |
17695 hardcode_shlibpath_var_F77=no | |
17696 ;; | |
17697 | |
17698 *) | |
17699 ld_shlibs_F77=no | |
17700 ;; | |
17701 esac | |
17702 | |
17703 if test x$host_vendor = xsni; then | |
17704 case $host in | |
17705 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
17706 export_dynamic_flag_spec_F77='${wl}-Blargedynsym' | |
17707 ;; | |
17708 esac | |
17709 fi | |
17710 fi | |
17711 | |
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5 | |
17713 $as_echo "$ld_shlibs_F77" >&6; } | |
17714 test "$ld_shlibs_F77" = no && can_build_shared=no | |
17715 | |
17716 with_gnu_ld_F77=$with_gnu_ld | |
17717 | |
17718 | |
17719 | |
17720 | |
17721 | |
17722 | |
17723 # | |
17724 # Do we need to explicitly link libc? | |
17725 # | |
17726 case "x$archive_cmds_need_lc_F77" in | |
17727 x|xyes) | |
17728 # Assume -lc should be added | |
17729 archive_cmds_need_lc_F77=yes | |
17730 | |
17731 if test "$enable_shared" = yes && test "$GCC" = yes; then | |
17732 case $archive_cmds_F77 in | |
17733 *'~'*) | |
17734 # FIXME: we may have to deal with multi-command sequences. | |
17735 ;; | |
17736 '$CC '*) | |
17737 # Test whether the compiler implicitly links with -lc since on some | |
17738 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
17739 # to ld, don't add -lc before -lgcc. | |
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
17741 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
17742 if ${lt_cv_archive_cmds_need_lc_F77+:} false; then : | |
17743 $as_echo_n "(cached) " >&6 | |
17744 else | |
17745 $RM conftest* | |
17746 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
17747 | |
17748 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
17749 (eval $ac_compile) 2>&5 | |
17750 ac_status=$? | |
17751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17752 test $ac_status = 0; } 2>conftest.err; then | |
17753 soname=conftest | |
17754 lib=conftest | |
17755 libobjs=conftest.$ac_objext | |
17756 deplibs= | |
17757 wl=$lt_prog_compiler_wl_F77 | |
17758 pic_flag=$lt_prog_compiler_pic_F77 | |
17759 compiler_flags=-v | |
17760 linker_flags=-v | |
17761 verstring= | |
17762 output_objdir=. | |
17763 libname=conftest | |
17764 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 | |
17765 allow_undefined_flag_F77= | |
17766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
17767 (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
17768 ac_status=$? | |
17769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
17770 test $ac_status = 0; } | |
17771 then | |
17772 lt_cv_archive_cmds_need_lc_F77=no | |
17773 else | |
17774 lt_cv_archive_cmds_need_lc_F77=yes | |
17775 fi | |
17776 allow_undefined_flag_F77=$lt_save_allow_undefined_flag | |
17777 else | |
17778 cat conftest.err 1>&5 | |
17779 fi | |
17780 $RM conftest* | |
17781 | |
17782 fi | |
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_F77" >&5 | |
17784 $as_echo "$lt_cv_archive_cmds_need_lc_F77" >&6; } | |
17785 archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77 | |
17786 ;; | |
17787 esac | |
17788 fi | |
17789 ;; | |
17790 esac | |
17791 | |
17792 | |
17793 | |
17794 | |
17795 | |
17796 | |
17797 | |
17798 | |
17799 | |
17800 | |
17801 | |
17802 | |
17803 | |
17804 | |
17805 | |
17806 | |
17807 | |
17808 | |
17809 | |
17810 | |
17811 | |
17812 | |
17813 | |
17814 | |
17815 | |
17816 | |
17817 | |
17818 | |
17819 | |
17820 | |
17821 | |
17822 | |
17823 | |
17824 | |
17825 | |
17826 | |
17827 | |
17828 | |
17829 | |
17830 | |
17831 | |
17832 | |
17833 | |
17834 | |
17835 | |
17836 | |
17837 | |
17838 | |
17839 | |
17840 | |
17841 | |
17842 | |
17843 | |
17844 | |
17845 | |
17846 | |
17847 | |
17848 | |
17849 | |
17850 | |
17851 | |
17852 | |
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
17854 $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
17855 | |
17856 library_names_spec= | |
17857 libname_spec='lib$name' | |
17858 soname_spec= | |
17859 shrext_cmds=".so" | |
17860 postinstall_cmds= | |
17861 postuninstall_cmds= | |
17862 finish_cmds= | |
17863 finish_eval= | |
17864 shlibpath_var= | |
17865 shlibpath_overrides_runpath=unknown | |
17866 version_type=none | |
17867 dynamic_linker="$host_os ld.so" | |
17868 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
17869 need_lib_prefix=unknown | |
17870 hardcode_into_libs=no | |
17871 | |
17872 # when you set need_version to no, make sure it does not cause -set_version | |
17873 # flags to be left without arguments | |
17874 need_version=unknown | |
17875 | |
17876 case $host_os in | |
17877 aix3*) | |
17878 version_type=linux # correct to gnu/linux during the next big refactor | |
17879 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
17880 shlibpath_var=LIBPATH | |
17881 | |
17882 # AIX 3 has no versioning support, so we append a major version to the name. | |
17883 soname_spec='${libname}${release}${shared_ext}$major' | |
17884 ;; | |
17885 | |
17886 aix[4-9]*) | |
17887 version_type=linux # correct to gnu/linux during the next big refactor | |
17888 need_lib_prefix=no | |
17889 need_version=no | |
17890 hardcode_into_libs=yes | |
17891 if test "$host_cpu" = ia64; then | |
17892 # AIX 5 supports IA64 | |
17893 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
17894 shlibpath_var=LD_LIBRARY_PATH | |
17895 else | |
17896 # With GCC up to 2.95.x, collect2 would create an import file | |
17897 # for dependence libraries. The import file would start with | |
17898 # the line `#! .'. This would cause the generated library to | |
17899 # depend on `.', always an invalid library. This was fixed in | |
17900 # development snapshots of GCC prior to 3.0. | |
17901 case $host_os in | |
17902 aix4 | aix4.[01] | aix4.[01].*) | |
17903 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
17904 echo ' yes ' | |
17905 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
17906 : | |
17907 else | |
17908 can_build_shared=no | |
17909 fi | |
17910 ;; | |
17911 esac | |
17912 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
17913 # soname into executable. Probably we can add versioning support to | |
17914 # collect2, so additional links can be useful in future. | |
17915 if test "$aix_use_runtimelinking" = yes; then | |
17916 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
17917 # instead of lib<name>.a to let people know that these are not | |
17918 # typical AIX shared libraries. | |
17919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17920 else | |
17921 # We preserve .a as extension for shared libraries through AIX4.2 | |
17922 # and later when we are not doing run time linking. | |
17923 library_names_spec='${libname}${release}.a $libname.a' | |
17924 soname_spec='${libname}${release}${shared_ext}$major' | |
17925 fi | |
17926 shlibpath_var=LIBPATH | |
17927 fi | |
17928 ;; | |
17929 | |
17930 amigaos*) | |
17931 case $host_cpu in | |
17932 powerpc) | |
17933 # Since July 2007 AmigaOS4 officially supports .so libraries. | |
17934 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
17935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17936 ;; | |
17937 m68k) | |
17938 library_names_spec='$libname.ixlibrary $libname.a' | |
17939 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
17940 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' | |
17941 ;; | |
17942 esac | |
17943 ;; | |
17944 | |
17945 beos*) | |
17946 library_names_spec='${libname}${shared_ext}' | |
17947 dynamic_linker="$host_os ld.so" | |
17948 shlibpath_var=LIBRARY_PATH | |
17949 ;; | |
17950 | |
17951 bsdi[45]*) | |
17952 version_type=linux # correct to gnu/linux during the next big refactor | |
17953 need_version=no | |
17954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17955 soname_spec='${libname}${release}${shared_ext}$major' | |
17956 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
17957 shlibpath_var=LD_LIBRARY_PATH | |
17958 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
17959 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
17960 # the default ld.so.conf also contains /usr/contrib/lib and | |
17961 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
17962 # libtool to hard-code these into programs | |
17963 ;; | |
17964 | |
17965 cygwin* | mingw* | pw32* | cegcc*) | |
17966 version_type=windows | |
17967 shrext_cmds=".dll" | |
17968 need_version=no | |
17969 need_lib_prefix=no | |
17970 | |
17971 case $GCC,$cc_basename in | |
17972 yes,*) | |
17973 # gcc | |
17974 library_names_spec='$libname.dll.a' | |
17975 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
17976 postinstall_cmds='base_file=`basename \${file}`~ | |
17977 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
17978 dldir=$destdir/`dirname \$dlpath`~ | |
17979 test -d \$dldir || mkdir -p \$dldir~ | |
17980 $install_prog $dir/$dlname \$dldir/$dlname~ | |
17981 chmod a+x \$dldir/$dlname~ | |
17982 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
17983 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
17984 fi' | |
17985 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
17986 dlpath=$dir/\$dldll~ | |
17987 $RM \$dlpath' | |
17988 shlibpath_overrides_runpath=yes | |
17989 | |
17990 case $host_os in | |
17991 cygwin*) | |
17992 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
17993 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
17994 | |
17995 ;; | |
17996 mingw* | cegcc*) | |
17997 # MinGW DLLs use traditional 'lib' prefix | |
17998 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
17999 ;; | |
18000 pw32*) | |
18001 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
18002 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
18003 ;; | |
18004 esac | |
18005 dynamic_linker='Win32 ld.exe' | |
18006 ;; | |
18007 | |
18008 *,cl*) | |
18009 # Native MSVC | |
18010 libname_spec='$name' | |
18011 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
18012 library_names_spec='${libname}.dll.lib' | |
18013 | |
18014 case $build_os in | |
18015 mingw*) | |
18016 sys_lib_search_path_spec= | |
18017 lt_save_ifs=$IFS | |
18018 IFS=';' | |
18019 for lt_path in $LIB | |
18020 do | |
18021 IFS=$lt_save_ifs | |
18022 # Let DOS variable expansion print the short 8.3 style file name. | |
18023 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
18024 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
18025 done | |
18026 IFS=$lt_save_ifs | |
18027 # Convert to MSYS style. | |
18028 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
18029 ;; | |
18030 cygwin*) | |
18031 # Convert to unix form, then to dos form, then back to unix form | |
18032 # but this time dos style (no spaces!) so that the unix form looks | |
18033 # like /cygdrive/c/PROGRA~1:/cygdr... | |
18034 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
18035 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
18036 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
18037 ;; | |
18038 *) | |
18039 sys_lib_search_path_spec="$LIB" | |
18040 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
18041 # It is most probably a Windows format PATH. | |
18042 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
18043 else | |
18044 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
18045 fi | |
18046 # FIXME: find the short name or the path components, as spaces are | |
18047 # common. (e.g. "Program Files" -> "PROGRA~1") | |
18048 ;; | |
18049 esac | |
18050 | |
18051 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
18052 postinstall_cmds='base_file=`basename \${file}`~ | |
18053 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
18054 dldir=$destdir/`dirname \$dlpath`~ | |
18055 test -d \$dldir || mkdir -p \$dldir~ | |
18056 $install_prog $dir/$dlname \$dldir/$dlname' | |
18057 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
18058 dlpath=$dir/\$dldll~ | |
18059 $RM \$dlpath' | |
18060 shlibpath_overrides_runpath=yes | |
18061 dynamic_linker='Win32 link.exe' | |
18062 ;; | |
18063 | |
18064 *) | |
18065 # Assume MSVC wrapper | |
18066 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
18067 dynamic_linker='Win32 ld.exe' | |
18068 ;; | |
18069 esac | |
18070 # FIXME: first we should search . and the directory the executable is in | |
18071 shlibpath_var=PATH | |
18072 ;; | |
18073 | |
18074 darwin* | rhapsody*) | |
18075 dynamic_linker="$host_os dyld" | |
18076 version_type=darwin | |
18077 need_lib_prefix=no | |
18078 need_version=no | |
18079 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
18080 soname_spec='${libname}${release}${major}$shared_ext' | |
18081 shlibpath_overrides_runpath=yes | |
18082 shlibpath_var=DYLD_LIBRARY_PATH | |
18083 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
18084 | |
18085 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
18086 ;; | |
18087 | |
18088 dgux*) | |
18089 version_type=linux # correct to gnu/linux during the next big refactor | |
18090 need_lib_prefix=no | |
18091 need_version=no | |
18092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
18093 soname_spec='${libname}${release}${shared_ext}$major' | |
18094 shlibpath_var=LD_LIBRARY_PATH | |
18095 ;; | |
18096 | |
18097 freebsd* | dragonfly*) | |
18098 # DragonFly does not have aout. When/if they implement a new | |
18099 # versioning mechanism, adjust this. | |
18100 if test -x /usr/bin/objformat; then | |
18101 objformat=`/usr/bin/objformat` | |
18102 else | |
18103 case $host_os in | |
18104 freebsd[23].*) objformat=aout ;; | |
18105 *) objformat=elf ;; | |
18106 esac | |
18107 fi | |
18108 version_type=freebsd-$objformat | |
18109 case $version_type in | |
18110 freebsd-elf*) | |
18111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
18112 need_version=no | |
18113 need_lib_prefix=no | |
18114 ;; | |
18115 freebsd-*) | |
18116 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
18117 need_version=yes | |
18118 ;; | |
18119 esac | |
18120 shlibpath_var=LD_LIBRARY_PATH | |
18121 case $host_os in | |
18122 freebsd2.*) | |
18123 shlibpath_overrides_runpath=yes | |
18124 ;; | |
18125 freebsd3.[01]* | freebsdelf3.[01]*) | |
18126 shlibpath_overrides_runpath=yes | |
18127 hardcode_into_libs=yes | |
18128 ;; | |
18129 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
18130 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
18131 shlibpath_overrides_runpath=no | |
18132 hardcode_into_libs=yes | |
18133 ;; | |
18134 *) # from 4.6 on, and DragonFly | |
18135 shlibpath_overrides_runpath=yes | |
18136 hardcode_into_libs=yes | |
18137 ;; | |
18138 esac | |
18139 ;; | |
18140 | |
18141 haiku*) | |
18142 version_type=linux # correct to gnu/linux during the next big refactor | |
18143 need_lib_prefix=no | |
18144 need_version=no | |
18145 dynamic_linker="$host_os runtime_loader" | |
18146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
18147 soname_spec='${libname}${release}${shared_ext}$major' | |
18148 shlibpath_var=LIBRARY_PATH | |
18149 shlibpath_overrides_runpath=yes | |
18150 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
18151 hardcode_into_libs=yes | |
18152 ;; | |
18153 | |
18154 hpux9* | hpux10* | hpux11*) | |
18155 # Give a soname corresponding to the major version so that dld.sl refuses to | |
18156 # link against other versions. | |
18157 version_type=sunos | |
18158 need_lib_prefix=no | |
18159 need_version=no | |
18160 case $host_cpu in | |
18161 ia64*) | |
18162 shrext_cmds='.so' | |
18163 hardcode_into_libs=yes | |
18164 dynamic_linker="$host_os dld.so" | |
18165 shlibpath_var=LD_LIBRARY_PATH | |
18166 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
18167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
18168 soname_spec='${libname}${release}${shared_ext}$major' | |
18169 if test "X$HPUX_IA64_MODE" = X32; then | |
18170 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
18171 else | |
18172 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
18173 fi | |
18174 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
18175 ;; | |
18176 hppa*64*) | |
18177 shrext_cmds='.sl' | |
18178 hardcode_into_libs=yes | |
18179 dynamic_linker="$host_os dld.sl" | |
18180 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
18181 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
18182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
18183 soname_spec='${libname}${release}${shared_ext}$major' | |
18184 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
18185 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
18186 ;; | |
18187 *) | |
18188 shrext_cmds='.sl' | |
18189 dynamic_linker="$host_os dld.sl" | |
18190 shlibpath_var=SHLIB_PATH | |
18191 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
18192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
18193 soname_spec='${libname}${release}${shared_ext}$major' | |
18194 ;; | |
18195 esac | |
18196 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
18197 postinstall_cmds='chmod 555 $lib' | |
18198 # or fails outright, so override atomically: | |
18199 install_override_mode=555 | |
18200 ;; | |
18201 | |
18202 interix[3-9]*) | |
18203 version_type=linux # correct to gnu/linux during the next big refactor | |
18204 need_lib_prefix=no | |
18205 need_version=no | |
18206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
18207 soname_spec='${libname}${release}${shared_ext}$major' | |
18208 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
18209 shlibpath_var=LD_LIBRARY_PATH | |
18210 shlibpath_overrides_runpath=no | |
18211 hardcode_into_libs=yes | |
18212 ;; | |
18213 | |
18214 irix5* | irix6* | nonstopux*) | |
18215 case $host_os in | |
18216 nonstopux*) version_type=nonstopux ;; | |
18217 *) | |
18218 if test "$lt_cv_prog_gnu_ld" = yes; then | |
18219 version_type=linux # correct to gnu/linux during the next big refactor | |
18220 else | |
18221 version_type=irix | |
18222 fi ;; | |
18223 esac | |
18224 need_lib_prefix=no | |
18225 need_version=no | |
18226 soname_spec='${libname}${release}${shared_ext}$major' | |
18227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
18228 case $host_os in | |
18229 irix5* | nonstopux*) | |
18230 libsuff= shlibsuff= | |
18231 ;; | |
18232 *) | |
18233 case $LD in # libtool.m4 will add one of these switches to LD | |
18234 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
18235 libsuff= shlibsuff= libmagic=32-bit;; | |
18236 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
18237 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
18238 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
18239 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
18240 *) libsuff= shlibsuff= libmagic=never-match;; | |
18241 esac | |
18242 ;; | |
18243 esac | |
18244 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
18245 shlibpath_overrides_runpath=no | |
18246 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
18247 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
18248 hardcode_into_libs=yes | |
18249 ;; | |
18250 | |
18251 # No shared lib support for Linux oldld, aout, or coff. | |
18252 linux*oldld* | linux*aout* | linux*coff*) | |
18253 dynamic_linker=no | |
18254 ;; | |
18255 | |
18256 # This must be glibc/ELF. | |
18257 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
18258 version_type=linux # correct to gnu/linux during the next big refactor | |
18259 need_lib_prefix=no | |
18260 need_version=no | |
18261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
18262 soname_spec='${libname}${release}${shared_ext}$major' | |
18263 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
18264 shlibpath_var=LD_LIBRARY_PATH | |
18265 shlibpath_overrides_runpath=no | |
18266 | |
18267 # Some binutils ld are patched to set DT_RUNPATH | |
18268 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
18269 $as_echo_n "(cached) " >&6 | |
18270 else | |
18271 lt_cv_shlibpath_overrides_runpath=no | |
18272 save_LDFLAGS=$LDFLAGS | |
18273 save_libdir=$libdir | |
18274 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \ | |
18275 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\"" | |
18276 cat > conftest.$ac_ext <<_ACEOF | |
18277 program main | |
18278 | |
18279 end | |
18280 _ACEOF | |
18281 if ac_fn_f77_try_link "$LINENO"; then : | |
18282 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
18283 lt_cv_shlibpath_overrides_runpath=yes | |
18284 fi | |
18285 fi | |
18286 rm -f core conftest.err conftest.$ac_objext \ | |
18287 conftest$ac_exeext conftest.$ac_ext | |
18288 LDFLAGS=$save_LDFLAGS | |
18289 libdir=$save_libdir | |
18290 | |
18291 fi | |
18292 | |
18293 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
18294 | |
18295 # This implies no fast_install, which is unacceptable. | |
18296 # Some rework will be needed to allow for fast_install | |
18297 # before this can be enabled. | |
18298 hardcode_into_libs=yes | |
18299 | |
18300 # Append ld.so.conf contents to the search path | |
18301 if test -f /etc/ld.so.conf; then | |
18302 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' ' '` | |
18303 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
18304 fi | |
18305 | |
18306 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
18307 # powerpc, because MkLinux only supported shared libraries with the | |
18308 # GNU dynamic linker. Since this was broken with cross compilers, | |
18309 # most powerpc-linux boxes support dynamic linking these days and | |
18310 # people can always --disable-shared, the test was removed, and we | |
18311 # assume the GNU/Linux dynamic linker is in use. | |
18312 dynamic_linker='GNU/Linux ld.so' | |
18313 ;; | |
18314 | |
18315 netbsdelf*-gnu) | |
18316 version_type=linux | |
18317 need_lib_prefix=no | |
18318 need_version=no | |
18319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
18320 soname_spec='${libname}${release}${shared_ext}$major' | |
18321 shlibpath_var=LD_LIBRARY_PATH | |
18322 shlibpath_overrides_runpath=no | |
18323 hardcode_into_libs=yes | |
18324 dynamic_linker='NetBSD ld.elf_so' | |
18325 ;; | |
18326 | |
18327 netbsd*) | |
18328 version_type=sunos | |
18329 need_lib_prefix=no | |
18330 need_version=no | |
18331 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
18332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
18333 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
18334 dynamic_linker='NetBSD (a.out) ld.so' | |
18335 else | |
18336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
18337 soname_spec='${libname}${release}${shared_ext}$major' | |
18338 dynamic_linker='NetBSD ld.elf_so' | |
18339 fi | |
18340 shlibpath_var=LD_LIBRARY_PATH | |
18341 shlibpath_overrides_runpath=yes | |
18342 hardcode_into_libs=yes | |
18343 ;; | |
18344 | |
18345 newsos6) | |
18346 version_type=linux # correct to gnu/linux during the next big refactor | |
18347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
18348 shlibpath_var=LD_LIBRARY_PATH | |
18349 shlibpath_overrides_runpath=yes | |
18350 ;; | |
18351 | |
18352 *nto* | *qnx*) | |
18353 version_type=qnx | |
18354 need_lib_prefix=no | |
18355 need_version=no | |
18356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
18357 soname_spec='${libname}${release}${shared_ext}$major' | |
18358 shlibpath_var=LD_LIBRARY_PATH | |
18359 shlibpath_overrides_runpath=no | |
18360 hardcode_into_libs=yes | |
18361 dynamic_linker='ldqnx.so' | |
18362 ;; | |
18363 | |
18364 openbsd*) | |
18365 version_type=sunos | |
18366 sys_lib_dlsearch_path_spec="/usr/lib" | |
18367 need_lib_prefix=no | |
18368 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
18369 case $host_os in | |
18370 openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
18371 *) need_version=no ;; | |
18372 esac | |
18373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
18374 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
18375 shlibpath_var=LD_LIBRARY_PATH | |
18376 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
18377 case $host_os in | |
18378 openbsd2.[89] | openbsd2.[89].*) | |
18379 shlibpath_overrides_runpath=no | |
18380 ;; | |
18381 *) | |
18382 shlibpath_overrides_runpath=yes | |
18383 ;; | |
18384 esac | |
18385 else | |
18386 shlibpath_overrides_runpath=yes | |
18387 fi | |
18388 ;; | |
18389 | |
18390 os2*) | |
18391 libname_spec='$name' | |
18392 shrext_cmds=".dll" | |
18393 need_lib_prefix=no | |
18394 library_names_spec='$libname${shared_ext} $libname.a' | |
18395 dynamic_linker='OS/2 ld.exe' | |
18396 shlibpath_var=LIBPATH | |
18397 ;; | |
18398 | |
18399 osf3* | osf4* | osf5*) | |
18400 version_type=osf | |
18401 need_lib_prefix=no | |
18402 need_version=no | |
18403 soname_spec='${libname}${release}${shared_ext}$major' | |
18404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
18405 shlibpath_var=LD_LIBRARY_PATH | |
18406 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
18407 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
18408 ;; | |
18409 | |
18410 rdos*) | |
18411 dynamic_linker=no | |
18412 ;; | |
18413 | |
18414 solaris*) | |
18415 version_type=linux # correct to gnu/linux during the next big refactor | |
18416 need_lib_prefix=no | |
18417 need_version=no | |
18418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
18419 soname_spec='${libname}${release}${shared_ext}$major' | |
18420 shlibpath_var=LD_LIBRARY_PATH | |
18421 shlibpath_overrides_runpath=yes | |
18422 hardcode_into_libs=yes | |
18423 # ldd complains unless libraries are executable | |
18424 postinstall_cmds='chmod +x $lib' | |
18425 ;; | |
18426 | |
18427 sunos4*) | |
18428 version_type=sunos | |
18429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
18430 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
18431 shlibpath_var=LD_LIBRARY_PATH | |
18432 shlibpath_overrides_runpath=yes | |
18433 if test "$with_gnu_ld" = yes; then | |
18434 need_lib_prefix=no | |
18435 fi | |
18436 need_version=yes | |
18437 ;; | |
18438 | |
18439 sysv4 | sysv4.3*) | |
18440 version_type=linux # correct to gnu/linux during the next big refactor | |
18441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
18442 soname_spec='${libname}${release}${shared_ext}$major' | |
18443 shlibpath_var=LD_LIBRARY_PATH | |
18444 case $host_vendor in | |
18445 sni) | |
18446 shlibpath_overrides_runpath=no | |
18447 need_lib_prefix=no | |
18448 runpath_var=LD_RUN_PATH | |
18449 ;; | |
18450 siemens) | |
18451 need_lib_prefix=no | |
18452 ;; | |
18453 motorola) | |
18454 need_lib_prefix=no | |
18455 need_version=no | |
18456 shlibpath_overrides_runpath=no | |
18457 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
18458 ;; | |
18459 esac | |
18460 ;; | |
18461 | |
18462 sysv4*MP*) | |
18463 if test -d /usr/nec ;then | |
18464 version_type=linux # correct to gnu/linux during the next big refactor | |
18465 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
18466 soname_spec='$libname${shared_ext}.$major' | |
18467 shlibpath_var=LD_LIBRARY_PATH | |
18468 fi | |
18469 ;; | |
18470 | |
18471 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
18472 version_type=freebsd-elf | |
18473 need_lib_prefix=no | |
18474 need_version=no | |
18475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
18476 soname_spec='${libname}${release}${shared_ext}$major' | |
18477 shlibpath_var=LD_LIBRARY_PATH | |
18478 shlibpath_overrides_runpath=yes | |
18479 hardcode_into_libs=yes | |
18480 if test "$with_gnu_ld" = yes; then | |
18481 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
18482 else | |
18483 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
18484 case $host_os in | |
18485 sco3.2v5*) | |
18486 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
18487 ;; | |
18488 esac | |
18489 fi | |
18490 sys_lib_dlsearch_path_spec='/usr/lib' | |
18491 ;; | |
18492 | |
18493 tpf*) | |
18494 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
18495 version_type=linux # correct to gnu/linux during the next big refactor | |
18496 need_lib_prefix=no | |
18497 need_version=no | |
18498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
18499 shlibpath_var=LD_LIBRARY_PATH | |
18500 shlibpath_overrides_runpath=no | |
18501 hardcode_into_libs=yes | |
18502 ;; | |
18503 | |
18504 uts4*) | |
18505 version_type=linux # correct to gnu/linux during the next big refactor | |
18506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
18507 soname_spec='${libname}${release}${shared_ext}$major' | |
18508 shlibpath_var=LD_LIBRARY_PATH | |
18509 ;; | |
18510 | |
18511 *) | |
18512 dynamic_linker=no | |
18513 ;; | |
18514 esac | |
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
18516 $as_echo "$dynamic_linker" >&6; } | |
18517 test "$dynamic_linker" = no && can_build_shared=no | |
18518 | |
18519 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
18520 if test "$GCC" = yes; then | |
18521 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
18522 fi | |
18523 | |
18524 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
18525 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
18526 fi | |
18527 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
18528 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
18529 fi | |
18530 | |
18531 | |
18532 | |
18533 | |
18534 | |
18535 | |
18536 | |
18537 | |
18538 | |
18539 | |
18540 | |
18541 | |
18542 | |
18543 | |
18544 | |
18545 | |
18546 | |
18547 | |
18548 | |
18549 | |
18550 | |
18551 | |
18552 | |
18553 | |
18554 | |
18555 | |
18556 | |
18557 | |
18558 | |
18559 | |
18560 | |
18561 | |
18562 | |
18563 | |
18564 | |
18565 | |
18566 | |
18567 | |
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
18569 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
18570 hardcode_action_F77= | |
18571 if test -n "$hardcode_libdir_flag_spec_F77" || | |
18572 test -n "$runpath_var_F77" || | |
18573 test "X$hardcode_automatic_F77" = "Xyes" ; then | |
18574 | |
18575 # We can hardcode non-existent directories. | |
18576 if test "$hardcode_direct_F77" != no && | |
18577 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
18578 # have to relink, otherwise we might link with an installed library | |
18579 # when we should be linking with a yet-to-be-installed one | |
18580 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" != no && | |
18581 test "$hardcode_minus_L_F77" != no; then | |
18582 # Linking always hardcodes the temporary library directory. | |
18583 hardcode_action_F77=relink | |
18584 else | |
18585 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
18586 hardcode_action_F77=immediate | |
18587 fi | |
18588 else | |
18589 # We cannot hardcode anything, or else we can only hardcode existing | |
18590 # directories. | |
18591 hardcode_action_F77=unsupported | |
18592 fi | |
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5 | |
18594 $as_echo "$hardcode_action_F77" >&6; } | |
18595 | |
18596 if test "$hardcode_action_F77" = relink || | |
18597 test "$inherit_rpath_F77" = yes; then | |
18598 # Fast installation is not supported | |
18599 enable_fast_install=no | |
18600 elif test "$shlibpath_overrides_runpath" = yes || | |
18601 test "$enable_shared" = no; then | |
18602 # Fast installation is not necessary | |
18603 enable_fast_install=needless | |
18604 fi | |
18605 | |
18606 | |
18607 | |
18608 | |
18609 | |
18610 | |
18611 | |
18612 fi # test -n "$compiler" | |
18613 | |
18614 GCC=$lt_save_GCC | |
18615 CC="$lt_save_CC" | |
18616 CFLAGS="$lt_save_CFLAGS" | |
18617 fi # test "$_lt_disable_F77" != yes | |
18618 | |
18619 ac_ext=c | |
18620 ac_cpp='$CPP $CPPFLAGS' | |
18621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18623 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18624 | |
18625 | |
18626 if test -z "$F77"; then | |
18627 enable_fortran=no | |
18628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Couldn't find f77 compiler; using default Fortran wrappers." >&5 | |
18629 $as_echo "$as_me: WARNING: *** Couldn't find f77 compiler; using default Fortran wrappers." >&2;} | |
18630 else | |
18631 ac_ext=f | |
18632 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
18633 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18634 ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $F77" >&5 | |
18636 $as_echo_n "checking how to get verbose linking output from $F77... " >&6; } | |
18637 if ${ac_cv_prog_f77_v+:} false; then : | |
18638 $as_echo_n "(cached) " >&6 | |
18639 else | |
18640 cat > conftest.$ac_ext <<_ACEOF | |
18641 program main | |
18642 | |
18643 end | |
18644 _ACEOF | |
18645 if ac_fn_f77_try_compile "$LINENO"; then : | |
18646 ac_cv_prog_f77_v= | |
18647 # Try some options frequently used verbose output | |
18648 for ac_verb in -v -verbose --verbose -V -\#\#\#; do | |
18649 cat > conftest.$ac_ext <<_ACEOF | |
18650 program main | |
18651 | |
18652 end | |
18653 _ACEOF | |
18654 | |
18655 # Compile and link our simple test program by passing a flag (argument | |
18656 # 1 to this macro) to the Fortran compiler in order to get | |
18657 # "verbose" output that we can then parse for the Fortran linker | |
18658 # flags. | |
18659 ac_save_FFLAGS=$FFLAGS | |
18660 FFLAGS="$FFLAGS $ac_verb" | |
18661 eval "set x $ac_link" | |
18662 shift | |
18663 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5 | |
18664 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, | |
18665 # LIBRARY_PATH; skip all such settings. | |
18666 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | | |
18667 sed '/^Driving:/d; /^Configured with:/d; | |
18668 '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` | |
18669 $as_echo "$ac_f77_v_output" >&5 | |
18670 FFLAGS=$ac_save_FFLAGS | |
18671 | |
18672 rm -rf conftest* | |
18673 | |
18674 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where | |
18675 # /foo, /bar, and /baz are search directories for the Fortran linker. | |
18676 # Here, we change these into -L/foo -L/bar -L/baz (and put it first): | |
18677 ac_f77_v_output="`echo $ac_f77_v_output | | |
18678 grep 'LPATH is:' | | |
18679 sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output" | |
18680 | |
18681 # FIXME: we keep getting bitten by quoted arguments; a more general fix | |
18682 # that detects unbalanced quotes in FLIBS should be implemented | |
18683 # and (ugh) tested at some point. | |
18684 case $ac_f77_v_output in | |
18685 # With xlf replace commas with spaces, | |
18686 # and remove "-link" and closing parenthesis. | |
18687 *xlfentry*) | |
18688 ac_f77_v_output=`echo $ac_f77_v_output | | |
18689 sed ' | |
18690 s/,/ /g | |
18691 s/ -link / /g | |
18692 s/) *$// | |
18693 ' | |
18694 ` ;; | |
18695 | |
18696 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted | |
18697 # $LIBS confuse us, and the libraries appear later in the output anyway). | |
18698 *mGLOB_options_string*) | |
18699 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; | |
18700 | |
18701 # Portland Group compiler has singly- or doubly-quoted -cmdline argument | |
18702 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. | |
18703 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". | |
18704 *-cmdline\ * | *-ignore\ * | *-def\ *) | |
18705 ac_f77_v_output=`echo $ac_f77_v_output | sed "\ | |
18706 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g | |
18707 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g | |
18708 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; | |
18709 | |
18710 # If we are using fort77 (the f2c wrapper) then filter output and delete quotes. | |
18711 *fort77*f2c*gcc*) | |
18712 ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n ' | |
18713 /:[ ]\+Running[ ]\{1,\}"gcc"/{ | |
18714 /"-c"/d | |
18715 /[.]c"*/d | |
18716 s/^.*"gcc"/"gcc"/ | |
18717 s/"//gp | |
18718 }'` ;; | |
18719 | |
18720 # If we are using Cray Fortran then delete quotes. | |
18721 *cft90*) | |
18722 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;; | |
18723 esac | |
18724 | |
18725 | |
18726 # look for -l* and *.a constructs in the output | |
18727 for ac_arg in $ac_f77_v_output; do | |
18728 case $ac_arg in | |
18729 [\\/]*.a | ?:[\\/]*.a | -[lLRu]*) | |
18730 ac_cv_prog_f77_v=$ac_verb | |
18731 break 2 ;; | |
18732 esac | |
18733 done | |
18734 done | |
18735 if test -z "$ac_cv_prog_f77_v"; then | |
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $F77" >&5 | |
18737 $as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;} | |
18738 fi | |
18739 else | |
18740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5 | |
18741 $as_echo "$as_me: WARNING: compilation failed" >&2;} | |
18742 fi | |
18743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18744 | |
18745 fi | |
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_v" >&5 | |
18747 $as_echo "$ac_cv_prog_f77_v" >&6; } | |
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5 | |
18749 $as_echo_n "checking for Fortran 77 libraries of $F77... " >&6; } | |
18750 if ${ac_cv_f77_libs+:} false; then : | |
18751 $as_echo_n "(cached) " >&6 | |
18752 else | |
18753 if test "x$FLIBS" != "x"; then | |
18754 ac_cv_f77_libs="$FLIBS" # Let the user override the test. | |
18755 else | |
18756 | |
18757 cat > conftest.$ac_ext <<_ACEOF | |
18758 program main | |
18759 | |
18760 end | |
18761 _ACEOF | |
18762 | |
18763 # Compile and link our simple test program by passing a flag (argument | |
18764 # 1 to this macro) to the Fortran compiler in order to get | |
18765 # "verbose" output that we can then parse for the Fortran linker | |
18766 # flags. | |
18767 ac_save_FFLAGS=$FFLAGS | |
18768 FFLAGS="$FFLAGS $ac_cv_prog_f77_v" | |
18769 eval "set x $ac_link" | |
18770 shift | |
18771 $as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5 | |
18772 # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, | |
18773 # LIBRARY_PATH; skip all such settings. | |
18774 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | | |
18775 sed '/^Driving:/d; /^Configured with:/d; | |
18776 '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` | |
18777 $as_echo "$ac_f77_v_output" >&5 | |
18778 FFLAGS=$ac_save_FFLAGS | |
18779 | |
18780 rm -rf conftest* | |
18781 | |
18782 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where | |
18783 # /foo, /bar, and /baz are search directories for the Fortran linker. | |
18784 # Here, we change these into -L/foo -L/bar -L/baz (and put it first): | |
18785 ac_f77_v_output="`echo $ac_f77_v_output | | |
18786 grep 'LPATH is:' | | |
18787 sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output" | |
18788 | |
18789 # FIXME: we keep getting bitten by quoted arguments; a more general fix | |
18790 # that detects unbalanced quotes in FLIBS should be implemented | |
18791 # and (ugh) tested at some point. | |
18792 case $ac_f77_v_output in | |
18793 # With xlf replace commas with spaces, | |
18794 # and remove "-link" and closing parenthesis. | |
18795 *xlfentry*) | |
18796 ac_f77_v_output=`echo $ac_f77_v_output | | |
18797 sed ' | |
18798 s/,/ /g | |
18799 s/ -link / /g | |
18800 s/) *$// | |
18801 ' | |
18802 ` ;; | |
18803 | |
18804 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted | |
18805 # $LIBS confuse us, and the libraries appear later in the output anyway). | |
18806 *mGLOB_options_string*) | |
18807 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; | |
18808 | |
18809 # Portland Group compiler has singly- or doubly-quoted -cmdline argument | |
18810 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. | |
18811 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". | |
18812 *-cmdline\ * | *-ignore\ * | *-def\ *) | |
18813 ac_f77_v_output=`echo $ac_f77_v_output | sed "\ | |
18814 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g | |
18815 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g | |
18816 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; | |
18817 | |
18818 # If we are using fort77 (the f2c wrapper) then filter output and delete quotes. | |
18819 *fort77*f2c*gcc*) | |
18820 ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n ' | |
18821 /:[ ]\+Running[ ]\{1,\}"gcc"/{ | |
18822 /"-c"/d | |
18823 /[.]c"*/d | |
18824 s/^.*"gcc"/"gcc"/ | |
18825 s/"//gp | |
18826 }'` ;; | |
18827 | |
18828 # If we are using Cray Fortran then delete quotes. | |
18829 *cft90*) | |
18830 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;; | |
18831 esac | |
18832 | |
18833 | |
18834 | |
18835 ac_cv_f77_libs= | |
18836 | |
18837 # Save positional arguments (if any) | |
18838 ac_save_positional="$@" | |
18839 | |
18840 set X $ac_f77_v_output | |
18841 while test $# != 1; do | |
18842 shift | |
18843 ac_arg=$1 | |
18844 case $ac_arg in | |
18845 [\\/]*.a | ?:[\\/]*.a) | |
18846 ac_exists=false | |
18847 for ac_i in $ac_cv_f77_libs; do | |
18848 if test x"$ac_arg" = x"$ac_i"; then | |
18849 ac_exists=true | |
18850 break | |
18851 fi | |
18852 done | |
18853 | |
18854 if test x"$ac_exists" = xtrue; then : | |
18855 | |
18856 else | |
18857 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" | |
18858 fi | |
18859 ;; | |
18860 -bI:*) | |
18861 ac_exists=false | |
18862 for ac_i in $ac_cv_f77_libs; do | |
18863 if test x"$ac_arg" = x"$ac_i"; then | |
18864 ac_exists=true | |
18865 break | |
18866 fi | |
18867 done | |
18868 | |
18869 if test x"$ac_exists" = xtrue; then : | |
18870 | |
18871 else | |
18872 if test "$ac_compiler_gnu" = yes; then | |
18873 for ac_link_opt in $ac_arg; do | |
18874 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" | |
18875 done | |
18876 else | |
18877 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" | |
18878 fi | |
18879 fi | |
18880 ;; | |
18881 # Ignore these flags. | |
18882 -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \ | |
18883 |-LANG:=* | -LIST:* | -LNO:* | -link) | |
18884 ;; | |
18885 -lkernel32) | |
18886 case $host_os in | |
18887 *cygwin*) ;; | |
18888 *) ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" | |
18889 ;; | |
18890 esac | |
18891 ;; | |
18892 -[LRuYz]) | |
18893 # These flags, when seen by themselves, take an argument. | |
18894 # We remove the space between option and argument and re-iterate | |
18895 # unless we find an empty arg or a new option (starting with -) | |
18896 case $2 in | |
18897 "" | -*);; | |
18898 *) | |
18899 ac_arg="$ac_arg$2" | |
18900 shift; shift | |
18901 set X $ac_arg "$@" | |
18902 ;; | |
18903 esac | |
18904 ;; | |
18905 -YP,*) | |
18906 for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do | |
18907 ac_exists=false | |
18908 for ac_i in $ac_cv_f77_libs; do | |
18909 if test x"$ac_j" = x"$ac_i"; then | |
18910 ac_exists=true | |
18911 break | |
18912 fi | |
18913 done | |
18914 | |
18915 if test x"$ac_exists" = xtrue; then : | |
18916 | |
18917 else | |
18918 ac_arg="$ac_arg $ac_j" | |
18919 ac_cv_f77_libs="$ac_cv_f77_libs $ac_j" | |
18920 fi | |
18921 done | |
18922 ;; | |
18923 -[lLR]*) | |
18924 ac_exists=false | |
18925 for ac_i in $ac_cv_f77_libs; do | |
18926 if test x"$ac_arg" = x"$ac_i"; then | |
18927 ac_exists=true | |
18928 break | |
18929 fi | |
18930 done | |
18931 | |
18932 if test x"$ac_exists" = xtrue; then : | |
18933 | |
18934 else | |
18935 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" | |
18936 fi | |
18937 ;; | |
18938 -zallextract*| -zdefaultextract) | |
18939 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" | |
18940 ;; | |
18941 # Ignore everything else. | |
18942 esac | |
18943 done | |
18944 # restore positional arguments | |
18945 set X $ac_save_positional; shift | |
18946 | |
18947 # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, | |
18948 # then we insist that the "run path" must be an absolute path (i.e. it | |
18949 # must begin with a "/"). | |
18950 case `(uname -sr) 2>/dev/null` in | |
18951 "SunOS 5"*) | |
18952 ac_ld_run_path=`$as_echo "$ac_f77_v_output" | | |
18953 sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` | |
18954 test "x$ac_ld_run_path" != x && | |
18955 if test "$ac_compiler_gnu" = yes; then | |
18956 for ac_link_opt in $ac_ld_run_path; do | |
18957 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" | |
18958 done | |
18959 else | |
18960 ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path" | |
18961 fi | |
18962 ;; | |
18963 esac | |
18964 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" | |
18965 | |
18966 fi | |
18967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_libs" >&5 | |
18968 $as_echo "$ac_cv_f77_libs" >&6; } | |
18969 FLIBS="$ac_cv_f77_libs" | |
18970 | |
18971 | |
18972 ac_ext=c | |
18973 ac_cpp='$CPP $CPPFLAGS' | |
18974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18976 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18977 | |
18978 ac_ext=f | |
18979 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
18980 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18981 ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
18982 | |
18983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran 77 libraries" >&5 | |
18984 $as_echo_n "checking for dummy main to link with Fortran 77 libraries... " >&6; } | |
18985 if ${ac_cv_f77_dummy_main+:} false; then : | |
18986 $as_echo_n "(cached) " >&6 | |
18987 else | |
18988 ac_f77_dm_save_LIBS=$LIBS | |
18989 LIBS="$LIBS $FLIBS" | |
18990 ac_fortran_dm_var=F77_DUMMY_MAIN | |
18991 ac_ext=c | |
18992 ac_cpp='$CPP $CPPFLAGS' | |
18993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18995 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18996 | |
18997 # First, try linking without a dummy main: | |
18998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18999 /* end confdefs.h. */ | |
19000 | |
19001 #ifdef F77_DUMMY_MAIN | |
19002 | |
19003 # ifdef __cplusplus | |
19004 extern "C" | |
19005 # endif | |
19006 int F77_DUMMY_MAIN() { return 1; } | |
19007 | |
19008 #endif | |
19009 int | |
19010 main () | |
19011 { | |
19012 | |
19013 ; | |
19014 return 0; | |
19015 } | |
19016 _ACEOF | |
19017 if ac_fn_c_try_link "$LINENO"; then : | |
19018 ac_cv_fortran_dummy_main=none | |
19019 else | |
19020 ac_cv_fortran_dummy_main=unknown | |
19021 fi | |
19022 rm -f core conftest.err conftest.$ac_objext \ | |
19023 conftest$ac_exeext conftest.$ac_ext | |
19024 | |
19025 if test $ac_cv_fortran_dummy_main = unknown; then | |
19026 for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do | |
19027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19028 /* end confdefs.h. */ | |
19029 #define $ac_fortran_dm_var $ac_func | |
19030 #ifdef F77_DUMMY_MAIN | |
19031 | |
19032 # ifdef __cplusplus | |
19033 extern "C" | |
19034 # endif | |
19035 int F77_DUMMY_MAIN() { return 1; } | |
19036 | |
19037 #endif | |
19038 int | |
19039 main () | |
19040 { | |
19041 | |
19042 ; | |
19043 return 0; | |
19044 } | |
19045 _ACEOF | |
19046 if ac_fn_c_try_link "$LINENO"; then : | |
19047 ac_cv_fortran_dummy_main=$ac_func; break | |
19048 fi | |
19049 rm -f core conftest.err conftest.$ac_objext \ | |
19050 conftest$ac_exeext conftest.$ac_ext | |
19051 done | |
19052 fi | |
19053 ac_ext=f | |
19054 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
19055 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19056 ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
19057 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main | |
19058 rm -rf conftest* | |
19059 LIBS=$ac_f77_dm_save_LIBS | |
19060 | |
19061 fi | |
19062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_dummy_main" >&5 | |
19063 $as_echo "$ac_cv_f77_dummy_main" >&6; } | |
19064 F77_DUMMY_MAIN=$ac_cv_f77_dummy_main | |
19065 if test "$F77_DUMMY_MAIN" != unknown; then : | |
19066 if test $F77_DUMMY_MAIN != none; then | |
19067 | |
19068 cat >>confdefs.h <<_ACEOF | |
19069 #define F77_DUMMY_MAIN $F77_DUMMY_MAIN | |
19070 _ACEOF | |
19071 | |
19072 if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then | |
19073 | |
19074 $as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h | |
19075 | |
19076 fi | |
19077 fi | |
19078 else | |
19079 enable_fortran=no | |
19080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Couldn't figure out how to link C and Fortran; using default Fortran wrappers." >&5 | |
19081 $as_echo "$as_me: WARNING: *** Couldn't figure out how to link C and Fortran; using default Fortran wrappers." >&2;} | |
19082 fi | |
19083 | |
19084 ac_ext=c | |
19085 ac_cpp='$CPP $CPPFLAGS' | |
19086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19088 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19089 | |
19090 fi | |
19091 else | |
19092 | |
19093 $as_echo "#define DISABLE_FORTRAN 1" >>confdefs.h | |
19094 | |
19095 fi | |
19096 | |
19097 if test "x$enable_fortran" = xyes; then | |
19098 ac_ext=f | |
19099 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
19100 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19101 ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 name-mangling scheme" >&5 | |
19103 $as_echo_n "checking for Fortran 77 name-mangling scheme... " >&6; } | |
19104 if ${ac_cv_f77_mangling+:} false; then : | |
19105 $as_echo_n "(cached) " >&6 | |
19106 else | |
19107 cat > conftest.$ac_ext <<_ACEOF | |
19108 subroutine foobar() | |
19109 return | |
19110 end | |
19111 subroutine foo_bar() | |
19112 return | |
19113 end | |
19114 _ACEOF | |
19115 if ac_fn_f77_try_compile "$LINENO"; then : | |
19116 mv conftest.$ac_objext cfortran_test.$ac_objext | |
19117 | |
19118 ac_save_LIBS=$LIBS | |
19119 LIBS="cfortran_test.$ac_objext $LIBS $FLIBS" | |
19120 | |
19121 ac_ext=c | |
19122 ac_cpp='$CPP $CPPFLAGS' | |
19123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19125 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19126 ac_success=no | |
19127 for ac_foobar in foobar FOOBAR; do | |
19128 for ac_underscore in "" "_"; do | |
19129 ac_func="$ac_foobar$ac_underscore" | |
19130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19131 /* end confdefs.h. */ | |
19132 | |
19133 /* Override any GCC internal prototype to avoid an error. | |
19134 Use char because int might match the return type of a GCC | |
19135 builtin and then its argument prototype would still apply. */ | |
19136 #ifdef __cplusplus | |
19137 extern "C" | |
19138 #endif | |
19139 char $ac_func (); | |
19140 #ifdef F77_DUMMY_MAIN | |
19141 | |
19142 # ifdef __cplusplus | |
19143 extern "C" | |
19144 # endif | |
19145 int F77_DUMMY_MAIN() { return 1; } | |
19146 | |
19147 #endif | |
19148 int | |
19149 main () | |
19150 { | |
19151 return $ac_func (); | |
19152 ; | |
19153 return 0; | |
19154 } | |
19155 _ACEOF | |
19156 if ac_fn_c_try_link "$LINENO"; then : | |
19157 ac_success=yes; break 2 | |
19158 fi | |
19159 rm -f core conftest.err conftest.$ac_objext \ | |
19160 conftest$ac_exeext conftest.$ac_ext | |
19161 done | |
19162 done | |
19163 ac_ext=f | |
19164 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
19165 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19166 ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
19167 | |
19168 if test "$ac_success" = "yes"; then | |
19169 case $ac_foobar in | |
19170 foobar) | |
19171 ac_case=lower | |
19172 ac_foo_bar=foo_bar | |
19173 ;; | |
19174 FOOBAR) | |
19175 ac_case=upper | |
19176 ac_foo_bar=FOO_BAR | |
19177 ;; | |
19178 esac | |
19179 | |
19180 ac_ext=c | |
19181 ac_cpp='$CPP $CPPFLAGS' | |
19182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19184 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19185 ac_success_extra=no | |
19186 for ac_extra in "" "_"; do | |
19187 ac_func="$ac_foo_bar$ac_underscore$ac_extra" | |
19188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19189 /* end confdefs.h. */ | |
19190 | |
19191 /* Override any GCC internal prototype to avoid an error. | |
19192 Use char because int might match the return type of a GCC | |
19193 builtin and then its argument prototype would still apply. */ | |
19194 #ifdef __cplusplus | |
19195 extern "C" | |
19196 #endif | |
19197 char $ac_func (); | |
19198 #ifdef F77_DUMMY_MAIN | |
19199 | |
19200 # ifdef __cplusplus | |
19201 extern "C" | |
19202 # endif | |
19203 int F77_DUMMY_MAIN() { return 1; } | |
19204 | |
19205 #endif | |
19206 int | |
19207 main () | |
19208 { | |
19209 return $ac_func (); | |
19210 ; | |
19211 return 0; | |
19212 } | |
19213 _ACEOF | |
19214 if ac_fn_c_try_link "$LINENO"; then : | |
19215 ac_success_extra=yes; break | |
19216 fi | |
19217 rm -f core conftest.err conftest.$ac_objext \ | |
19218 conftest$ac_exeext conftest.$ac_ext | |
19219 done | |
19220 ac_ext=f | |
19221 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
19222 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19223 ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
19224 | |
19225 if test "$ac_success_extra" = "yes"; then | |
19226 ac_cv_f77_mangling="$ac_case case" | |
19227 if test -z "$ac_underscore"; then | |
19228 ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore" | |
19229 else | |
19230 ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore" | |
19231 fi | |
19232 if test -z "$ac_extra"; then | |
19233 ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore" | |
19234 else | |
19235 ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore" | |
19236 fi | |
19237 else | |
19238 ac_cv_f77_mangling="unknown" | |
19239 fi | |
19240 else | |
19241 ac_cv_f77_mangling="unknown" | |
19242 fi | |
19243 | |
19244 LIBS=$ac_save_LIBS | |
19245 rm -rf conftest* | |
19246 rm -f cfortran_test* | |
19247 else | |
19248 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
19249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
19250 as_fn_error $? "cannot compile a simple Fortran program | |
19251 See \`config.log' for more details" "$LINENO" 5; } | |
19252 fi | |
19253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19254 | |
19255 fi | |
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_mangling" >&5 | |
19257 $as_echo "$ac_cv_f77_mangling" >&6; } | |
19258 | |
19259 ac_ext=c | |
19260 ac_cpp='$CPP $CPPFLAGS' | |
19261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19263 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19264 | |
19265 ac_ext=f | |
19266 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
19267 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19268 ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
19269 case $ac_cv_f77_mangling in | |
19270 "lower case, no underscore, no extra underscore") | |
19271 $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h | |
19272 | |
19273 $as_echo "#define F77_FUNC_(name,NAME) name" >>confdefs.h | |
19274 ;; | |
19275 "lower case, no underscore, extra underscore") | |
19276 $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h | |
19277 | |
19278 $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h | |
19279 ;; | |
19280 "lower case, underscore, no extra underscore") | |
19281 $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h | |
19282 | |
19283 $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h | |
19284 ;; | |
19285 "lower case, underscore, extra underscore") | |
19286 $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h | |
19287 | |
19288 $as_echo "#define F77_FUNC_(name,NAME) name ## __" >>confdefs.h | |
19289 ;; | |
19290 "upper case, no underscore, no extra underscore") | |
19291 $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h | |
19292 | |
19293 $as_echo "#define F77_FUNC_(name,NAME) NAME" >>confdefs.h | |
19294 ;; | |
19295 "upper case, no underscore, extra underscore") | |
19296 $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h | |
19297 | |
19298 $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h | |
19299 ;; | |
19300 "upper case, underscore, no extra underscore") | |
19301 $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h | |
19302 | |
19303 $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h | |
19304 ;; | |
19305 "upper case, underscore, extra underscore") | |
19306 $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h | |
19307 | |
19308 $as_echo "#define F77_FUNC_(name,NAME) NAME ## __" >>confdefs.h | |
19309 ;; | |
19310 *) | |
19311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5 | |
19312 $as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;} | |
19313 ;; | |
19314 esac | |
19315 | |
19316 ac_ext=c | |
19317 ac_cpp='$CPP $CPPFLAGS' | |
19318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19320 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19321 | |
19322 ac_ext=f | |
19323 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
19324 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19325 ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
19326 case $ac_cv_f77_mangling in | |
19327 upper*) ac_val="F77FOO" ;; | |
19328 lower*) ac_val="f77foo" ;; | |
19329 *) ac_val="unknown" ;; | |
19330 esac | |
19331 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac | |
19332 | |
19333 f77foo="$ac_val" | |
19334 | |
19335 ac_ext=c | |
19336 ac_cpp='$CPP $CPPFLAGS' | |
19337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19339 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19340 | |
19341 ac_ext=f | |
19342 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
19343 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19344 ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
19345 case $ac_cv_f77_mangling in | |
19346 upper*) ac_val="F77_FOO" ;; | |
19347 lower*) ac_val="f77_foo" ;; | |
19348 *) ac_val="unknown" ;; | |
19349 esac | |
19350 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac | |
19351 case $ac_cv_f77_mangling in *," extra underscore"*) ac_val="$ac_val"_ ;; esac | |
19352 | |
19353 f77_foo="$ac_val" | |
19354 | |
19355 ac_ext=c | |
19356 ac_cpp='$CPP $CPPFLAGS' | |
19357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19359 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19360 | |
19361 f77_foo2=`echo $f77foo | sed 's/77/77_/'` | |
19362 if test "$f77_foo" = "$f77_foo2"; then | |
19363 | |
19364 $as_echo "#define F77_FUNC_EQUIV 1" >>confdefs.h | |
19365 | |
19366 | |
19367 # Include g77 wrappers by default for GNU systems or gfortran | |
19368 with_g77_wrappers=$ac_cv_f77_compiler_gnu | |
19369 case $host_os in *gnu*) with_g77_wrappers=yes ;; esac | |
19370 fi | |
19371 else | |
19372 with_g77_wrappers=no | |
19373 fi | |
19374 | |
19375 | |
19376 # Check whether --with-g77-wrappers was given. | |
19377 if test "${with_g77_wrappers+set}" = set; then : | |
19378 withval=$with_g77_wrappers; with_g77_wrappers=$withval | |
19379 fi | |
19380 | |
19381 if test "x$with_g77_wrappers" = "xyes"; then | |
19382 | |
19383 $as_echo "#define WITH_G77_WRAPPERS 1" >>confdefs.h | |
19384 | |
19385 fi | |
19386 | |
19387 have_smp="no" | |
19388 # Check whether --enable-openmp was given. | |
19389 if test "${enable_openmp+set}" = set; then : | |
19390 enableval=$enable_openmp; enable_openmp=$enableval | |
19391 else | |
19392 enable_openmp=no | |
19393 fi | |
19394 | |
19395 | |
19396 if test "$enable_openmp" = "yes"; then | |
19397 | |
19398 $as_echo "#define HAVE_OPENMP 1" >>confdefs.h | |
19399 | |
19400 | |
19401 | |
19402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMP flag of C compiler" >&5 | |
19403 $as_echo_n "checking for OpenMP flag of C compiler... " >&6; } | |
19404 if ${ax_cv_c_openmp+:} false; then : | |
19405 $as_echo_n "(cached) " >&6 | |
19406 else | |
19407 saveCFLAGS=$CFLAGS | |
19408 ax_cv_c_openmp=unknown | |
19409 # Flags to try: -fopenmp (gcc), -openmp (icc), -mp (SGI & PGI), | |
19410 # -xopenmp (Sun), -omp (Tru64), -qsmp=omp (AIX), none | |
19411 ax_openmp_flags="-fopenmp -openmp -mp -xopenmp -omp -qsmp=omp none" | |
19412 if test "x$OPENMP_CFLAGS" != x; then | |
19413 ax_openmp_flags="$OPENMP_CFLAGS $ax_openmp_flags" | |
19414 fi | |
19415 for ax_openmp_flag in $ax_openmp_flags; do | |
19416 case $ax_openmp_flag in | |
19417 none) CFLAGS=$saveC ;; | |
19418 *) CFLAGS="$saveCFLAGS $ax_openmp_flag" ;; | |
19419 esac | |
19420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19421 /* end confdefs.h. */ | |
19422 | |
19423 /* Override any GCC internal prototype to avoid an error. | |
19424 Use char because int might match the return type of a GCC | |
19425 builtin and then its argument prototype would still apply. */ | |
19426 #ifdef __cplusplus | |
19427 extern "C" | |
19428 #endif | |
19429 char omp_set_num_threads (); | |
19430 #ifdef F77_DUMMY_MAIN | |
19431 | |
19432 # ifdef __cplusplus | |
19433 extern "C" | |
19434 # endif | |
19435 int F77_DUMMY_MAIN() { return 1; } | |
19436 | |
19437 #endif | |
19438 int | |
19439 main () | |
19440 { | |
19441 return omp_set_num_threads (); | |
19442 ; | |
19443 return 0; | |
19444 } | |
19445 _ACEOF | |
19446 if ac_fn_c_try_link "$LINENO"; then : | |
19447 ax_cv_c_openmp=$ax_openmp_flag; break | |
19448 fi | |
19449 rm -f core conftest.err conftest.$ac_objext \ | |
19450 conftest$ac_exeext conftest.$ac_ext | |
19451 done | |
19452 CFLAGS=$saveCFLAGS | |
19453 | |
19454 fi | |
19455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_openmp" >&5 | |
19456 $as_echo "$ax_cv_c_openmp" >&6; } | |
19457 if test "x$ax_cv_c_openmp" = "xunknown"; then | |
19458 as_fn_error $? "don't know how to enable OpenMP" "$LINENO" 5 | |
19459 else | |
19460 if test "x$ax_cv_c_openmp" != "xnone"; then | |
19461 OPENMP_CFLAGS=$ax_cv_c_openmp | |
19462 fi | |
19463 | |
19464 $as_echo "#define HAVE_OPENMP 1" >>confdefs.h | |
19465 | |
19466 fi | |
19467 | |
19468 | |
19469 fi | |
19470 | |
19471 # Check whether --enable-threads was given. | |
19472 if test "${enable_threads+set}" = set; then : | |
19473 enableval=$enable_threads; enable_threads=$enableval | |
19474 else | |
19475 enable_threads=no | |
19476 fi | |
19477 | |
19478 | |
19479 if test "$enable_threads" = "yes"; then | |
19480 | |
19481 $as_echo "#define HAVE_THREADS 1" >>confdefs.h | |
19482 | |
19483 fi | |
19484 | |
19485 | |
19486 # Check whether --with-combined-threads was given. | |
19487 if test "${with_combined_threads+set}" = set; then : | |
19488 withval=$with_combined_threads; with_combined_threads=$withval | |
19489 else | |
19490 with_combined_threads=no | |
19491 fi | |
19492 | |
19493 | |
19494 if test "$with_combined_threads" = yes; then | |
19495 if test "$enable_openmp" = "yes"; then | |
19496 as_fn_error $? "--with-combined-threads incompatible with --enable-openmp" "$LINENO" 5 | |
19497 fi | |
19498 if test "$enable_threads" != "yes"; then | |
19499 as_fn_error $? "--with-combined-threads requires --enable-threads" "$LINENO" 5 | |
19500 fi | |
19501 fi | |
19502 | |
19503 THREADLIBS="" | |
19504 if test "$enable_threads" = "yes"; then | |
19505 # POSIX threads, the default choice: | |
19506 if test -z "$THREADLIBS"; then | |
19507 | |
19508 | |
19509 | |
19510 ac_ext=c | |
19511 ac_cpp='$CPP $CPPFLAGS' | |
19512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19514 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19515 | |
19516 acx_pthread_ok=no | |
19517 | |
19518 # We used to check for pthread.h first, but this fails if pthread.h | |
19519 # requires special compiler flags (e.g. on True64 or Sequent). | |
19520 # It gets checked for in the link test anyway. | |
19521 | |
19522 # First of all, check if the user has set any of the PTHREAD_LIBS, | |
19523 # etcetera environment variables, and if threads linking works using | |
19524 # them: | |
19525 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then | |
19526 save_CFLAGS="$CFLAGS" | |
19527 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | |
19528 save_LIBS="$LIBS" | |
19529 LIBS="$PTHREAD_LIBS $LIBS" | |
19530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 | |
19531 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } | |
19532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19533 /* end confdefs.h. */ | |
19534 | |
19535 /* Override any GCC internal prototype to avoid an error. | |
19536 Use char because int might match the return type of a GCC | |
19537 builtin and then its argument prototype would still apply. */ | |
19538 #ifdef __cplusplus | |
19539 extern "C" | |
19540 #endif | |
19541 char pthread_join (); | |
19542 #ifdef F77_DUMMY_MAIN | |
19543 | |
19544 # ifdef __cplusplus | |
19545 extern "C" | |
19546 # endif | |
19547 int F77_DUMMY_MAIN() { return 1; } | |
19548 | |
19549 #endif | |
19550 int | |
19551 main () | |
19552 { | |
19553 return pthread_join (); | |
19554 ; | |
19555 return 0; | |
19556 } | |
19557 _ACEOF | |
19558 if ac_fn_c_try_link "$LINENO"; then : | |
19559 acx_pthread_ok=yes | |
19560 fi | |
19561 rm -f core conftest.err conftest.$ac_objext \ | |
19562 conftest$ac_exeext conftest.$ac_ext | |
19563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 | |
19564 $as_echo "$acx_pthread_ok" >&6; } | |
19565 if test x"$acx_pthread_ok" = xno; then | |
19566 PTHREAD_LIBS="" | |
19567 PTHREAD_CFLAGS="" | |
19568 fi | |
19569 LIBS="$save_LIBS" | |
19570 CFLAGS="$save_CFLAGS" | |
19571 fi | |
19572 | |
19573 # We must check for the threads library under a number of different | |
19574 # names; the ordering is very important because some systems | |
19575 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the | |
19576 # libraries is broken (non-POSIX). | |
19577 | |
19578 # Create a list of thread flags to try. Items starting with a "-" are | |
19579 # C compiler flags, and other items are library names, except for "none" | |
19580 # which indicates that we try without any flags at all, and "pthread-config" | |
19581 # which is a program returning the flags for the Pth emulation library. | |
19582 | |
19583 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config" | |
19584 | |
19585 # The ordering *is* (sometimes) important. Some notes on the | |
19586 # individual items follow: | |
19587 | |
19588 # pthreads: AIX (must check this before -lpthread) | |
19589 # none: in case threads are in libc; should be tried before -Kthread and | |
19590 # other compiler flags to prevent continual compiler warnings | |
19591 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) | |
19592 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) | |
19593 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) | |
19594 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) | |
19595 # -pthreads: Solaris/gcc | |
19596 # -mthreads: Mingw32/gcc, Lynx/gcc | |
19597 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it | |
19598 # doesn't hurt to check since this sometimes defines pthreads too; | |
19599 # also defines -D_REENTRANT) | |
19600 # ... -mt is also the pthreads flag for HP/aCC | |
19601 # (where it should come before -mthreads to avoid spurious warnings) | |
19602 # pthread: Linux, etcetera | |
19603 # --thread-safe: KAI C++ | |
19604 # pthread-config: use pthread-config program (for GNU Pth library) | |
19605 | |
19606 case "${host_cpu}-${host_os}" in | |
19607 *solaris*) | |
19608 | |
19609 # On Solaris (at least, for some versions), libc contains stubbed | |
19610 # (non-functional) versions of the pthreads routines, so link-based | |
19611 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ | |
19612 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather | |
19613 # a function called by this macro, so we could check for that, but | |
19614 # who knows whether they'll stub that too in a future libc.) So, | |
19615 # we'll just look for -pthreads and -lpthread first: | |
19616 | |
19617 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" | |
19618 ;; | |
19619 esac | |
19620 | |
19621 if test x"$acx_pthread_ok" = xno; then | |
19622 for flag in $acx_pthread_flags; do | |
19623 | |
19624 case $flag in | |
19625 none) | |
19626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 | |
19627 $as_echo_n "checking whether pthreads work without any flags... " >&6; } | |
19628 ;; | |
19629 | |
19630 -*) | |
19631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 | |
19632 $as_echo_n "checking whether pthreads work with $flag... " >&6; } | |
19633 PTHREAD_CFLAGS="$flag" | |
19634 ;; | |
19635 | |
19636 pthread-config) | |
19637 # Extract the first word of "pthread-config", so it can be a program name with args. | |
19638 set dummy pthread-config; ac_word=$2 | |
19639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
19640 $as_echo_n "checking for $ac_word... " >&6; } | |
19641 if ${ac_cv_prog_acx_pthread_config+:} false; then : | |
19642 $as_echo_n "(cached) " >&6 | |
19643 else | |
19644 if test -n "$acx_pthread_config"; then | |
19645 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. | |
19646 else | |
19647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19648 for as_dir in $PATH | |
19649 do | |
19650 IFS=$as_save_IFS | |
19651 test -z "$as_dir" && as_dir=. | |
19652 for ac_exec_ext in '' $ac_executable_extensions; do | |
19653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
19654 ac_cv_prog_acx_pthread_config="yes" | |
19655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19656 break 2 | |
19657 fi | |
19658 done | |
19659 done | |
19660 IFS=$as_save_IFS | |
19661 | |
19662 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" | |
19663 fi | |
19664 fi | |
19665 acx_pthread_config=$ac_cv_prog_acx_pthread_config | |
19666 if test -n "$acx_pthread_config"; then | |
19667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5 | |
19668 $as_echo "$acx_pthread_config" >&6; } | |
19669 else | |
19670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19671 $as_echo "no" >&6; } | |
19672 fi | |
19673 | |
19674 | |
19675 if test x"$acx_pthread_config" = xno; then continue; fi | |
19676 PTHREAD_CFLAGS="`pthread-config --cflags`" | |
19677 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" | |
19678 ;; | |
19679 | |
19680 *) | |
19681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 | |
19682 $as_echo_n "checking for the pthreads library -l$flag... " >&6; } | |
19683 PTHREAD_LIBS="-l$flag" | |
19684 ;; | |
19685 esac | |
19686 | |
19687 save_LIBS="$LIBS" | |
19688 save_CFLAGS="$CFLAGS" | |
19689 LIBS="$PTHREAD_LIBS $LIBS" | |
19690 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | |
19691 | |
19692 # Check for various functions. We must include pthread.h, | |
19693 # since some functions may be macros. (On the Sequent, we | |
19694 # need a special flag -Kthread to make this header compile.) | |
19695 # We check for pthread_join because it is in -lpthread on IRIX | |
19696 # while pthread_create is in libc. We check for pthread_attr_init | |
19697 # due to DEC craziness with -lpthreads. We check for | |
19698 # pthread_cleanup_push because it is one of the few pthread | |
19699 # functions on Solaris that doesn't have a non-functional libc stub. | |
19700 # We try pthread_create on general principles. | |
19701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19702 /* end confdefs.h. */ | |
19703 #include <pthread.h> | |
19704 #ifdef F77_DUMMY_MAIN | |
19705 | |
19706 # ifdef __cplusplus | |
19707 extern "C" | |
19708 # endif | |
19709 int F77_DUMMY_MAIN() { return 1; } | |
19710 | |
19711 #endif | |
19712 int | |
19713 main () | |
19714 { | |
19715 pthread_t th; pthread_join(th, (void**) 0); | |
19716 pthread_attr_init((pthread_attr_t*) 0); | |
19717 pthread_cleanup_push((void(*)(void *)) 0, (void*) 0); | |
19718 pthread_create((pthread_t*) 0, (pthread_attr_t*) 0, | |
19719 (void*(*)(void *)) 0, (void*) 0); | |
19720 pthread_cleanup_pop(0); | |
19721 ; | |
19722 return 0; | |
19723 } | |
19724 _ACEOF | |
19725 if ac_fn_c_try_link "$LINENO"; then : | |
19726 acx_pthread_ok=yes | |
19727 fi | |
19728 rm -f core conftest.err conftest.$ac_objext \ | |
19729 conftest$ac_exeext conftest.$ac_ext | |
19730 | |
19731 LIBS="$save_LIBS" | |
19732 CFLAGS="$save_CFLAGS" | |
19733 | |
19734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 | |
19735 $as_echo "$acx_pthread_ok" >&6; } | |
19736 if test "x$acx_pthread_ok" = xyes; then | |
19737 break; | |
19738 fi | |
19739 | |
19740 PTHREAD_LIBS="" | |
19741 PTHREAD_CFLAGS="" | |
19742 done | |
19743 fi | |
19744 | |
19745 # Various other checks: | |
19746 if test "x$acx_pthread_ok" = xyes; then | |
19747 save_LIBS="$LIBS" | |
19748 LIBS="$PTHREAD_LIBS $LIBS" | |
19749 save_CFLAGS="$CFLAGS" | |
19750 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | |
19751 | |
19752 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. | |
19753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 | |
19754 $as_echo_n "checking for joinable pthread attribute... " >&6; } | |
19755 attr_name=unknown | |
19756 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do | |
19757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19758 /* end confdefs.h. */ | |
19759 #include <pthread.h> | |
19760 #ifdef F77_DUMMY_MAIN | |
19761 | |
19762 # ifdef __cplusplus | |
19763 extern "C" | |
19764 # endif | |
19765 int F77_DUMMY_MAIN() { return 1; } | |
19766 | |
19767 #endif | |
19768 int | |
19769 main () | |
19770 { | |
19771 int attr=$attr; return attr; | |
19772 ; | |
19773 return 0; | |
19774 } | |
19775 _ACEOF | |
19776 if ac_fn_c_try_link "$LINENO"; then : | |
19777 attr_name=$attr; break | |
19778 fi | |
19779 rm -f core conftest.err conftest.$ac_objext \ | |
19780 conftest$ac_exeext conftest.$ac_ext | |
19781 done | |
19782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 | |
19783 $as_echo "$attr_name" >&6; } | |
19784 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then | |
19785 | |
19786 cat >>confdefs.h <<_ACEOF | |
19787 #define PTHREAD_CREATE_JOINABLE $attr_name | |
19788 _ACEOF | |
19789 | |
19790 fi | |
19791 | |
19792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 | |
19793 $as_echo_n "checking if more special flags are required for pthreads... " >&6; } | |
19794 flag=no | |
19795 case "${host_cpu}-${host_os}" in | |
19796 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; | |
19797 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; | |
19798 esac | |
19799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 | |
19800 $as_echo "${flag}" >&6; } | |
19801 if test "x$flag" != xno; then | |
19802 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" | |
19803 fi | |
19804 | |
19805 LIBS="$save_LIBS" | |
19806 CFLAGS="$save_CFLAGS" | |
19807 | |
19808 # More AIX lossage: must compile with xlc_r or cc_r | |
19809 if test x"$GCC" != xyes; then | |
19810 for ac_prog in xlc_r cc_r | |
19811 do | |
19812 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
19813 set dummy $ac_prog; ac_word=$2 | |
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
19815 $as_echo_n "checking for $ac_word... " >&6; } | |
19816 if ${ac_cv_prog_PTHREAD_CC+:} false; then : | |
19817 $as_echo_n "(cached) " >&6 | |
19818 else | |
19819 if test -n "$PTHREAD_CC"; then | |
19820 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. | |
19821 else | |
19822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19823 for as_dir in $PATH | |
19824 do | |
19825 IFS=$as_save_IFS | |
19826 test -z "$as_dir" && as_dir=. | |
19827 for ac_exec_ext in '' $ac_executable_extensions; do | |
19828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
19829 ac_cv_prog_PTHREAD_CC="$ac_prog" | |
19830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19831 break 2 | |
19832 fi | |
19833 done | |
19834 done | |
19835 IFS=$as_save_IFS | |
19836 | |
19837 fi | |
19838 fi | |
19839 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC | |
19840 if test -n "$PTHREAD_CC"; then | |
19841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 | |
19842 $as_echo "$PTHREAD_CC" >&6; } | |
19843 else | |
19844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19845 $as_echo "no" >&6; } | |
19846 fi | |
19847 | |
19848 | |
19849 test -n "$PTHREAD_CC" && break | |
19850 done | |
19851 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" | |
19852 | |
19853 else | |
19854 PTHREAD_CC=$CC | |
19855 fi | |
19856 else | |
19857 PTHREAD_CC="$CC" | |
19858 fi | |
19859 | |
19860 | |
19861 | |
19862 | |
19863 | |
19864 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: | |
19865 if test x"$acx_pthread_ok" = xyes; then | |
19866 THREADLIBS="$PTHREAD_LIBS " | |
19867 CC="$PTHREAD_CC" | |
19868 | |
19869 $as_echo "#define USING_POSIX_THREADS 1" >>confdefs.h | |
19870 | |
19871 : | |
19872 else | |
19873 acx_pthread_ok=no | |
19874 | |
19875 fi | |
19876 ac_ext=c | |
19877 ac_cpp='$CPP $CPPFLAGS' | |
19878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19880 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19881 | |
19882 | |
19883 fi | |
19884 | |
19885 if test -z "$THREADLIBS"; then | |
19886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Win32 threads" >&5 | |
19887 $as_echo_n "checking for Win32 threads... " >&6; } | |
19888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19889 /* end confdefs.h. */ | |
19890 #include <windows.h> | |
19891 #ifdef F77_DUMMY_MAIN | |
19892 | |
19893 # ifdef __cplusplus | |
19894 extern "C" | |
19895 # endif | |
19896 int F77_DUMMY_MAIN() { return 1; } | |
19897 | |
19898 #endif | |
19899 int | |
19900 main () | |
19901 { | |
19902 _beginthreadex(0,0,0,0,0,0); | |
19903 ; | |
19904 return 0; | |
19905 } | |
19906 _ACEOF | |
19907 if ac_fn_c_try_link "$LINENO"; then : | |
19908 THREADLIBS=" "; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19909 $as_echo "yes" >&6; } | |
19910 else | |
19911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19912 $as_echo "no" >&6; } | |
19913 fi | |
19914 rm -f core conftest.err conftest.$ac_objext \ | |
19915 conftest$ac_exeext conftest.$ac_ext | |
19916 fi | |
19917 | |
19918 if test -z "$THREADLIBS"; then | |
19919 as_fn_error $? "couldn't find threads library for --enable-threads" "$LINENO" 5 | |
19920 fi | |
19921 | |
19922 $as_echo "#define HAVE_THREADS 1" >>confdefs.h | |
19923 | |
19924 fi | |
19925 | |
19926 if test "$enable_threads" = "yes"; then | |
19927 THREADS_TRUE= | |
19928 THREADS_FALSE='#' | |
19929 else | |
19930 THREADS_TRUE='#' | |
19931 THREADS_FALSE= | |
19932 fi | |
19933 | |
19934 if test "$enable_openmp" = "yes"; then | |
19935 OPENMP_TRUE= | |
19936 OPENMP_FALSE='#' | |
19937 else | |
19938 OPENMP_TRUE='#' | |
19939 OPENMP_FALSE= | |
19940 fi | |
19941 | |
19942 if test "$enable_threads" = "yes" -o "$enable_openmp" = "yes"; then | |
19943 SMP_TRUE= | |
19944 SMP_FALSE='#' | |
19945 else | |
19946 SMP_TRUE='#' | |
19947 SMP_FALSE= | |
19948 fi | |
19949 | |
19950 if test x"$with_combined_threads" = xyes; then | |
19951 COMBINED_THREADS_TRUE= | |
19952 COMBINED_THREADS_FALSE='#' | |
19953 else | |
19954 COMBINED_THREADS_TRUE='#' | |
19955 COMBINED_THREADS_FALSE= | |
19956 fi | |
19957 | |
19958 | |
19959 | |
19960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a cycle counter is available" >&5 | |
19961 $as_echo_n "checking whether a cycle counter is available... " >&6; } | |
19962 save_CPPFLAGS=$CPPFLAGS | |
19963 CPPFLAGS="$CPPFLAGS -I$srcdir/kernel" | |
19964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19965 /* end confdefs.h. */ | |
19966 #include "cycle.h" | |
19967 #ifndef HAVE_TICK_COUNTER | |
19968 # error No cycle counter | |
19969 #endif | |
19970 _ACEOF | |
19971 if ac_fn_c_try_cpp "$LINENO"; then : | |
19972 ok=yes | |
19973 else | |
19974 ok=no | |
19975 fi | |
19976 rm -f conftest.err conftest.i conftest.$ac_ext | |
19977 CPPFLAGS=$save_CPPFLAGS | |
19978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ok" >&5 | |
19979 $as_echo "$ok" >&6; } | |
19980 if test $ok = no && test "x$with_slow_timer" = xno; then | |
19981 echo "***************************************************************" | |
19982 echo "WARNING: No cycle counter found. FFTW will use ESTIMATE mode " | |
19983 echo " for all plans. See the manual for more information." | |
19984 echo "***************************************************************" | |
19985 fi | |
19986 | |
19987 | |
19988 | |
19989 cat >>confdefs.h <<_ACEOF | |
19990 #define FFTW_CC "$CC $CFLAGS" | |
19991 _ACEOF | |
19992 | |
19993 | |
19994 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/altivec/Makefile dft/simd/neon/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/altivec/Makefile rdft/simd/neon/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" | |
19995 | |
19996 | |
19997 cat >confcache <<\_ACEOF | |
19998 # This file is a shell script that caches the results of configure | |
19999 # tests run on this system so they can be shared between configure | |
20000 # scripts and configure runs, see configure's option --config-cache. | |
20001 # It is not useful on other systems. If it contains results you don't | |
20002 # want to keep, you may remove or edit it. | |
20003 # | |
20004 # config.status only pays attention to the cache file if you give it | |
20005 # the --recheck option to rerun configure. | |
20006 # | |
20007 # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
20008 # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
20009 # following values. | |
20010 | |
20011 _ACEOF | |
20012 | |
20013 # The following way of writing the cache mishandles newlines in values, | |
20014 # but we know of no workaround that is simple, portable, and efficient. | |
20015 # So, we kill variables containing newlines. | |
20016 # Ultrix sh set writes to stderr and can't be redirected directly, | |
20017 # and sets the high bit in the cache file unless we assign to the vars. | |
20018 ( | |
20019 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
20020 eval ac_val=\$$ac_var | |
20021 case $ac_val in #( | |
20022 *${as_nl}*) | |
20023 case $ac_var in #( | |
20024 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
20025 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
20026 esac | |
20027 case $ac_var in #( | |
20028 _ | IFS | as_nl) ;; #( | |
20029 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
20030 *) { eval $ac_var=; unset $ac_var;} ;; | |
20031 esac ;; | |
20032 esac | |
20033 done | |
20034 | |
20035 (set) 2>&1 | | |
20036 case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
20037 *${as_nl}ac_space=\ *) | |
20038 # `set' does not quote correctly, so add quotes: double-quote | |
20039 # substitution turns \\\\ into \\, and sed turns \\ into \. | |
20040 sed -n \ | |
20041 "s/'/'\\\\''/g; | |
20042 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
20043 ;; #( | |
20044 *) | |
20045 # `set' quotes correctly as required by POSIX, so do not add quotes. | |
20046 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
20047 ;; | |
20048 esac | | |
20049 sort | |
20050 ) | | |
20051 sed ' | |
20052 /^ac_cv_env_/b end | |
20053 t clear | |
20054 :clear | |
20055 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
20056 t end | |
20057 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
20058 :end' >>confcache | |
20059 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
20060 if test -w "$cache_file"; then | |
20061 if test "x$cache_file" != "x/dev/null"; then | |
20062 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
20063 $as_echo "$as_me: updating cache $cache_file" >&6;} | |
20064 if test ! -f "$cache_file" || test -h "$cache_file"; then | |
20065 cat confcache >"$cache_file" | |
20066 else | |
20067 case $cache_file in #( | |
20068 */* | ?:*) | |
20069 mv -f confcache "$cache_file"$$ && | |
20070 mv -f "$cache_file"$$ "$cache_file" ;; #( | |
20071 *) | |
20072 mv -f confcache "$cache_file" ;; | |
20073 esac | |
20074 fi | |
20075 fi | |
20076 else | |
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
20078 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
20079 fi | |
20080 fi | |
20081 rm -f confcache | |
20082 | |
20083 test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
20084 # Let make expand exec_prefix. | |
20085 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
20086 | |
20087 DEFS=-DHAVE_CONFIG_H | |
20088 | |
20089 ac_libobjs= | |
20090 ac_ltlibobjs= | |
20091 U= | |
20092 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
20093 # 1. Remove the extension, and $U if already installed. | |
20094 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
20095 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
20096 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
20097 # will be set to the directory where LIBOBJS objects are built. | |
20098 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
20099 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
20100 done | |
20101 LIBOBJS=$ac_libobjs | |
20102 | |
20103 LTLIBOBJS=$ac_ltlibobjs | |
20104 | |
20105 | |
20106 if test -n "$EXEEXT"; then | |
20107 am__EXEEXT_TRUE= | |
20108 am__EXEEXT_FALSE='#' | |
20109 else | |
20110 am__EXEEXT_TRUE='#' | |
20111 am__EXEEXT_FALSE= | |
20112 fi | |
20113 | |
20114 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
20115 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. | |
20116 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
20117 fi | |
20118 if test -z "${SINGLE_TRUE}" && test -z "${SINGLE_FALSE}"; then | |
20119 as_fn_error $? "conditional \"SINGLE\" was never defined. | |
20120 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
20121 fi | |
20122 if test -z "${LDOUBLE_TRUE}" && test -z "${LDOUBLE_FALSE}"; then | |
20123 as_fn_error $? "conditional \"LDOUBLE\" was never defined. | |
20124 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
20125 fi | |
20126 if test -z "${QUAD_TRUE}" && test -z "${QUAD_FALSE}"; then | |
20127 as_fn_error $? "conditional \"QUAD\" was never defined. | |
20128 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
20129 fi | |
20130 if test -z "${HAVE_SSE2_TRUE}" && test -z "${HAVE_SSE2_FALSE}"; then | |
20131 as_fn_error $? "conditional \"HAVE_SSE2\" was never defined. | |
20132 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
20133 fi | |
20134 if test -z "${HAVE_AVX_TRUE}" && test -z "${HAVE_AVX_FALSE}"; then | |
20135 as_fn_error $? "conditional \"HAVE_AVX\" was never defined. | |
20136 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
20137 fi | |
20138 if test -z "${HAVE_ALTIVEC_TRUE}" && test -z "${HAVE_ALTIVEC_FALSE}"; then | |
20139 as_fn_error $? "conditional \"HAVE_ALTIVEC\" was never defined. | |
20140 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
20141 fi | |
20142 if test -z "${HAVE_NEON_TRUE}" && test -z "${HAVE_NEON_FALSE}"; then | |
20143 as_fn_error $? "conditional \"HAVE_NEON\" was never defined. | |
20144 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
20145 fi | |
20146 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
20147 as_fn_error $? "conditional \"AMDEP\" was never defined. | |
20148 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
20149 fi | |
20150 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
20151 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
20152 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
20153 fi | |
20154 if test -z "${MPI_TRUE}" && test -z "${MPI_FALSE}"; then | |
20155 as_fn_error $? "conditional \"MPI\" was never defined. | |
20156 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
20157 fi | |
20158 if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then | |
20159 as_fn_error $? "conditional \"THREADS\" was never defined. | |
20160 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
20161 fi | |
20162 if test -z "${OPENMP_TRUE}" && test -z "${OPENMP_FALSE}"; then | |
20163 as_fn_error $? "conditional \"OPENMP\" was never defined. | |
20164 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
20165 fi | |
20166 if test -z "${SMP_TRUE}" && test -z "${SMP_FALSE}"; then | |
20167 as_fn_error $? "conditional \"SMP\" was never defined. | |
20168 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
20169 fi | |
20170 if test -z "${COMBINED_THREADS_TRUE}" && test -z "${COMBINED_THREADS_FALSE}"; then | |
20171 as_fn_error $? "conditional \"COMBINED_THREADS\" was never defined. | |
20172 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
20173 fi | |
20174 | |
20175 : "${CONFIG_STATUS=./config.status}" | |
20176 ac_write_fail=0 | |
20177 ac_clean_files_save=$ac_clean_files | |
20178 ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
20179 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
20180 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
20181 as_write_fail=0 | |
20182 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
20183 #! $SHELL | |
20184 # Generated by $as_me. | |
20185 # Run this file to recreate the current configuration. | |
20186 # Compiler output produced by configure, useful for debugging | |
20187 # configure, is in config.log if it exists. | |
20188 | |
20189 debug=false | |
20190 ac_cs_recheck=false | |
20191 ac_cs_silent=false | |
20192 | |
20193 SHELL=\${CONFIG_SHELL-$SHELL} | |
20194 export SHELL | |
20195 _ASEOF | |
20196 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
20197 ## -------------------- ## | |
20198 ## M4sh Initialization. ## | |
20199 ## -------------------- ## | |
20200 | |
20201 # Be more Bourne compatible | |
20202 DUALCASE=1; export DUALCASE # for MKS sh | |
20203 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
20204 emulate sh | |
20205 NULLCMD=: | |
20206 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
20207 # is contrary to our usage. Disable this feature. | |
20208 alias -g '${1+"$@"}'='"$@"' | |
20209 setopt NO_GLOB_SUBST | |
20210 else | |
20211 case `(set -o) 2>/dev/null` in #( | |
20212 *posix*) : | |
20213 set -o posix ;; #( | |
20214 *) : | |
20215 ;; | |
20216 esac | |
20217 fi | |
20218 | |
20219 | |
20220 as_nl=' | |
20221 ' | |
20222 export as_nl | |
20223 # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
20224 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
20225 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
20226 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
20227 # Prefer a ksh shell builtin over an external printf program on Solaris, | |
20228 # but without wasting forks for bash or zsh. | |
20229 if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
20230 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
20231 as_echo='print -r --' | |
20232 as_echo_n='print -rn --' | |
20233 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
20234 as_echo='printf %s\n' | |
20235 as_echo_n='printf %s' | |
20236 else | |
20237 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
20238 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
20239 as_echo_n='/usr/ucb/echo -n' | |
20240 else | |
20241 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
20242 as_echo_n_body='eval | |
20243 arg=$1; | |
20244 case $arg in #( | |
20245 *"$as_nl"*) | |
20246 expr "X$arg" : "X\\(.*\\)$as_nl"; | |
20247 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
20248 esac; | |
20249 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
20250 ' | |
20251 export as_echo_n_body | |
20252 as_echo_n='sh -c $as_echo_n_body as_echo' | |
20253 fi | |
20254 export as_echo_body | |
20255 as_echo='sh -c $as_echo_body as_echo' | |
20256 fi | |
20257 | |
20258 # The user is always right. | |
20259 if test "${PATH_SEPARATOR+set}" != set; then | |
20260 PATH_SEPARATOR=: | |
20261 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
20262 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
20263 PATH_SEPARATOR=';' | |
20264 } | |
20265 fi | |
20266 | |
20267 | |
20268 # IFS | |
20269 # We need space, tab and new line, in precisely that order. Quoting is | |
20270 # there to prevent editors from complaining about space-tab. | |
20271 # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
20272 # splitting by setting IFS to empty value.) | |
20273 IFS=" "" $as_nl" | |
20274 | |
20275 # Find who we are. Look in the path if we contain no directory separator. | |
20276 as_myself= | |
20277 case $0 in #(( | |
20278 *[\\/]* ) as_myself=$0 ;; | |
20279 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20280 for as_dir in $PATH | |
20281 do | |
20282 IFS=$as_save_IFS | |
20283 test -z "$as_dir" && as_dir=. | |
20284 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
20285 done | |
20286 IFS=$as_save_IFS | |
20287 | |
20288 ;; | |
20289 esac | |
20290 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
20291 # in which case we are not to be found in the path. | |
20292 if test "x$as_myself" = x; then | |
20293 as_myself=$0 | |
20294 fi | |
20295 if test ! -f "$as_myself"; then | |
20296 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
20297 exit 1 | |
20298 fi | |
20299 | |
20300 # Unset variables that we do not need and which cause bugs (e.g. in | |
20301 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
20302 # suppresses any "Segmentation fault" message there. '((' could | |
20303 # trigger a bug in pdksh 5.2.14. | |
20304 for as_var in BASH_ENV ENV MAIL MAILPATH | |
20305 do eval test x\${$as_var+set} = xset \ | |
20306 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
20307 done | |
20308 PS1='$ ' | |
20309 PS2='> ' | |
20310 PS4='+ ' | |
20311 | |
20312 # NLS nuisances. | |
20313 LC_ALL=C | |
20314 export LC_ALL | |
20315 LANGUAGE=C | |
20316 export LANGUAGE | |
20317 | |
20318 # CDPATH. | |
20319 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
20320 | |
20321 | |
20322 # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
20323 # ---------------------------------------- | |
20324 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
20325 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
20326 # script with STATUS, using 1 if that was 0. | |
20327 as_fn_error () | |
20328 { | |
20329 as_status=$1; test $as_status -eq 0 && as_status=1 | |
20330 if test "$4"; then | |
20331 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
20332 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
20333 fi | |
20334 $as_echo "$as_me: error: $2" >&2 | |
20335 as_fn_exit $as_status | |
20336 } # as_fn_error | |
20337 | |
20338 | |
20339 # as_fn_set_status STATUS | |
20340 # ----------------------- | |
20341 # Set $? to STATUS, without forking. | |
20342 as_fn_set_status () | |
20343 { | |
20344 return $1 | |
20345 } # as_fn_set_status | |
20346 | |
20347 # as_fn_exit STATUS | |
20348 # ----------------- | |
20349 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
20350 as_fn_exit () | |
20351 { | |
20352 set +e | |
20353 as_fn_set_status $1 | |
20354 exit $1 | |
20355 } # as_fn_exit | |
20356 | |
20357 # as_fn_unset VAR | |
20358 # --------------- | |
20359 # Portably unset VAR. | |
20360 as_fn_unset () | |
20361 { | |
20362 { eval $1=; unset $1;} | |
20363 } | |
20364 as_unset=as_fn_unset | |
20365 # as_fn_append VAR VALUE | |
20366 # ---------------------- | |
20367 # Append the text in VALUE to the end of the definition contained in VAR. Take | |
20368 # advantage of any shell optimizations that allow amortized linear growth over | |
20369 # repeated appends, instead of the typical quadratic growth present in naive | |
20370 # implementations. | |
20371 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
20372 eval 'as_fn_append () | |
20373 { | |
20374 eval $1+=\$2 | |
20375 }' | |
20376 else | |
20377 as_fn_append () | |
20378 { | |
20379 eval $1=\$$1\$2 | |
20380 } | |
20381 fi # as_fn_append | |
20382 | |
20383 # as_fn_arith ARG... | |
20384 # ------------------ | |
20385 # Perform arithmetic evaluation on the ARGs, and store the result in the | |
20386 # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
20387 # must be portable across $(()) and expr. | |
20388 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
20389 eval 'as_fn_arith () | |
20390 { | |
20391 as_val=$(( $* )) | |
20392 }' | |
20393 else | |
20394 as_fn_arith () | |
20395 { | |
20396 as_val=`expr "$@" || test $? -eq 1` | |
20397 } | |
20398 fi # as_fn_arith | |
20399 | |
20400 | |
20401 if expr a : '\(a\)' >/dev/null 2>&1 && | |
20402 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
20403 as_expr=expr | |
20404 else | |
20405 as_expr=false | |
20406 fi | |
20407 | |
20408 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
20409 as_basename=basename | |
20410 else | |
20411 as_basename=false | |
20412 fi | |
20413 | |
20414 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
20415 as_dirname=dirname | |
20416 else | |
20417 as_dirname=false | |
20418 fi | |
20419 | |
20420 as_me=`$as_basename -- "$0" || | |
20421 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
20422 X"$0" : 'X\(//\)$' \| \ | |
20423 X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
20424 $as_echo X/"$0" | | |
20425 sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
20426 s//\1/ | |
20427 q | |
20428 } | |
20429 /^X\/\(\/\/\)$/{ | |
20430 s//\1/ | |
20431 q | |
20432 } | |
20433 /^X\/\(\/\).*/{ | |
20434 s//\1/ | |
20435 q | |
20436 } | |
20437 s/.*/./; q'` | |
20438 | |
20439 # Avoid depending upon Character Ranges. | |
20440 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
20441 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
20442 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
20443 as_cr_digits='0123456789' | |
20444 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
20445 | |
20446 ECHO_C= ECHO_N= ECHO_T= | |
20447 case `echo -n x` in #((((( | |
20448 -n*) | |
20449 case `echo 'xy\c'` in | |
20450 *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
20451 xy) ECHO_C='\c';; | |
20452 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
20453 ECHO_T=' ';; | |
20454 esac;; | |
20455 *) | |
20456 ECHO_N='-n';; | |
20457 esac | |
20458 | |
20459 rm -f conf$$ conf$$.exe conf$$.file | |
20460 if test -d conf$$.dir; then | |
20461 rm -f conf$$.dir/conf$$.file | |
20462 else | |
20463 rm -f conf$$.dir | |
20464 mkdir conf$$.dir 2>/dev/null | |
20465 fi | |
20466 if (echo >conf$$.file) 2>/dev/null; then | |
20467 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
20468 as_ln_s='ln -s' | |
20469 # ... but there are two gotchas: | |
20470 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
20471 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
20472 # In both cases, we have to default to `cp -pR'. | |
20473 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
20474 as_ln_s='cp -pR' | |
20475 elif ln conf$$.file conf$$ 2>/dev/null; then | |
20476 as_ln_s=ln | |
20477 else | |
20478 as_ln_s='cp -pR' | |
20479 fi | |
20480 else | |
20481 as_ln_s='cp -pR' | |
20482 fi | |
20483 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
20484 rmdir conf$$.dir 2>/dev/null | |
20485 | |
20486 | |
20487 # as_fn_mkdir_p | |
20488 # ------------- | |
20489 # Create "$as_dir" as a directory, including parents if necessary. | |
20490 as_fn_mkdir_p () | |
20491 { | |
20492 | |
20493 case $as_dir in #( | |
20494 -*) as_dir=./$as_dir;; | |
20495 esac | |
20496 test -d "$as_dir" || eval $as_mkdir_p || { | |
20497 as_dirs= | |
20498 while :; do | |
20499 case $as_dir in #( | |
20500 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
20501 *) as_qdir=$as_dir;; | |
20502 esac | |
20503 as_dirs="'$as_qdir' $as_dirs" | |
20504 as_dir=`$as_dirname -- "$as_dir" || | |
20505 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
20506 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
20507 X"$as_dir" : 'X\(//\)$' \| \ | |
20508 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
20509 $as_echo X"$as_dir" | | |
20510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
20511 s//\1/ | |
20512 q | |
20513 } | |
20514 /^X\(\/\/\)[^/].*/{ | |
20515 s//\1/ | |
20516 q | |
20517 } | |
20518 /^X\(\/\/\)$/{ | |
20519 s//\1/ | |
20520 q | |
20521 } | |
20522 /^X\(\/\).*/{ | |
20523 s//\1/ | |
20524 q | |
20525 } | |
20526 s/.*/./; q'` | |
20527 test -d "$as_dir" && break | |
20528 done | |
20529 test -z "$as_dirs" || eval "mkdir $as_dirs" | |
20530 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
20531 | |
20532 | |
20533 } # as_fn_mkdir_p | |
20534 if mkdir -p . 2>/dev/null; then | |
20535 as_mkdir_p='mkdir -p "$as_dir"' | |
20536 else | |
20537 test -d ./-p && rmdir ./-p | |
20538 as_mkdir_p=false | |
20539 fi | |
20540 | |
20541 | |
20542 # as_fn_executable_p FILE | |
20543 # ----------------------- | |
20544 # Test if FILE is an executable regular file. | |
20545 as_fn_executable_p () | |
20546 { | |
20547 test -f "$1" && test -x "$1" | |
20548 } # as_fn_executable_p | |
20549 as_test_x='test -x' | |
20550 as_executable_p=as_fn_executable_p | |
20551 | |
20552 # Sed expression to map a string onto a valid CPP name. | |
20553 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
20554 | |
20555 # Sed expression to map a string onto a valid variable name. | |
20556 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
20557 | |
20558 | |
20559 exec 6>&1 | |
20560 ## ----------------------------------- ## | |
20561 ## Main body of $CONFIG_STATUS script. ## | |
20562 ## ----------------------------------- ## | |
20563 _ASEOF | |
20564 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
20565 | |
20566 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20567 # Save the log message, to keep $0 and so on meaningful, and to | |
20568 # report actual input values of CONFIG_FILES etc. instead of their | |
20569 # values after options handling. | |
20570 ac_log=" | |
20571 This file was extended by fftw $as_me 3.3.3, which was | |
20572 generated by GNU Autoconf 2.69. Invocation command line was | |
20573 | |
20574 CONFIG_FILES = $CONFIG_FILES | |
20575 CONFIG_HEADERS = $CONFIG_HEADERS | |
20576 CONFIG_LINKS = $CONFIG_LINKS | |
20577 CONFIG_COMMANDS = $CONFIG_COMMANDS | |
20578 $ $0 $@ | |
20579 | |
20580 on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
20581 " | |
20582 | |
20583 _ACEOF | |
20584 | |
20585 case $ac_config_files in *" | |
20586 "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
20587 esac | |
20588 | |
20589 case $ac_config_headers in *" | |
20590 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
20591 esac | |
20592 | |
20593 | |
20594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20595 # Files that config.status was made for. | |
20596 config_files="$ac_config_files" | |
20597 config_headers="$ac_config_headers" | |
20598 config_commands="$ac_config_commands" | |
20599 | |
20600 _ACEOF | |
20601 | |
20602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20603 ac_cs_usage="\ | |
20604 \`$as_me' instantiates files and other configuration actions | |
20605 from templates according to the current configuration. Unless the files | |
20606 and actions are specified as TAGs, all are instantiated by default. | |
20607 | |
20608 Usage: $0 [OPTION]... [TAG]... | |
20609 | |
20610 -h, --help print this help, then exit | |
20611 -V, --version print version number and configuration settings, then exit | |
20612 --config print configuration, then exit | |
20613 -q, --quiet, --silent | |
20614 do not print progress messages | |
20615 -d, --debug don't remove temporary files | |
20616 --recheck update $as_me by reconfiguring in the same conditions | |
20617 --file=FILE[:TEMPLATE] | |
20618 instantiate the configuration file FILE | |
20619 --header=FILE[:TEMPLATE] | |
20620 instantiate the configuration header FILE | |
20621 | |
20622 Configuration files: | |
20623 $config_files | |
20624 | |
20625 Configuration headers: | |
20626 $config_headers | |
20627 | |
20628 Configuration commands: | |
20629 $config_commands | |
20630 | |
20631 Report bugs to <fftw@fftw.org>." | |
20632 | |
20633 _ACEOF | |
20634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20635 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
20636 ac_cs_version="\\ | |
20637 fftw config.status 3.3.3 | |
20638 configured by $0, generated by GNU Autoconf 2.69, | |
20639 with options \\"\$ac_cs_config\\" | |
20640 | |
20641 Copyright (C) 2012 Free Software Foundation, Inc. | |
20642 This config.status script is free software; the Free Software Foundation | |
20643 gives unlimited permission to copy, distribute and modify it." | |
20644 | |
20645 ac_pwd='$ac_pwd' | |
20646 srcdir='$srcdir' | |
20647 INSTALL='$INSTALL' | |
20648 MKDIR_P='$MKDIR_P' | |
20649 AWK='$AWK' | |
20650 test -n "\$AWK" || AWK=awk | |
20651 _ACEOF | |
20652 | |
20653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20654 # The default lists apply if the user does not specify any file. | |
20655 ac_need_defaults=: | |
20656 while test $# != 0 | |
20657 do | |
20658 case $1 in | |
20659 --*=?*) | |
20660 ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
20661 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
20662 ac_shift=: | |
20663 ;; | |
20664 --*=) | |
20665 ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
20666 ac_optarg= | |
20667 ac_shift=: | |
20668 ;; | |
20669 *) | |
20670 ac_option=$1 | |
20671 ac_optarg=$2 | |
20672 ac_shift=shift | |
20673 ;; | |
20674 esac | |
20675 | |
20676 case $ac_option in | |
20677 # Handling of the options. | |
20678 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
20679 ac_cs_recheck=: ;; | |
20680 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
20681 $as_echo "$ac_cs_version"; exit ;; | |
20682 --config | --confi | --conf | --con | --co | --c ) | |
20683 $as_echo "$ac_cs_config"; exit ;; | |
20684 --debug | --debu | --deb | --de | --d | -d ) | |
20685 debug=: ;; | |
20686 --file | --fil | --fi | --f ) | |
20687 $ac_shift | |
20688 case $ac_optarg in | |
20689 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
20690 '') as_fn_error $? "missing file argument" ;; | |
20691 esac | |
20692 as_fn_append CONFIG_FILES " '$ac_optarg'" | |
20693 ac_need_defaults=false;; | |
20694 --header | --heade | --head | --hea ) | |
20695 $ac_shift | |
20696 case $ac_optarg in | |
20697 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
20698 esac | |
20699 as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
20700 ac_need_defaults=false;; | |
20701 --he | --h) | |
20702 # Conflict between --help and --header | |
20703 as_fn_error $? "ambiguous option: \`$1' | |
20704 Try \`$0 --help' for more information.";; | |
20705 --help | --hel | -h ) | |
20706 $as_echo "$ac_cs_usage"; exit ;; | |
20707 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
20708 | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
20709 ac_cs_silent=: ;; | |
20710 | |
20711 # This is an error. | |
20712 -*) as_fn_error $? "unrecognized option: \`$1' | |
20713 Try \`$0 --help' for more information." ;; | |
20714 | |
20715 *) as_fn_append ac_config_targets " $1" | |
20716 ac_need_defaults=false ;; | |
20717 | |
20718 esac | |
20719 shift | |
20720 done | |
20721 | |
20722 ac_configure_extra_args= | |
20723 | |
20724 if $ac_cs_silent; then | |
20725 exec 6>/dev/null | |
20726 ac_configure_extra_args="$ac_configure_extra_args --silent" | |
20727 fi | |
20728 | |
20729 _ACEOF | |
20730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20731 if \$ac_cs_recheck; then | |
20732 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
20733 shift | |
20734 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
20735 CONFIG_SHELL='$SHELL' | |
20736 export CONFIG_SHELL | |
20737 exec "\$@" | |
20738 fi | |
20739 | |
20740 _ACEOF | |
20741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20742 exec 5>>config.log | |
20743 { | |
20744 echo | |
20745 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
20746 ## Running $as_me. ## | |
20747 _ASBOX | |
20748 $as_echo "$ac_log" | |
20749 } >&5 | |
20750 | |
20751 _ACEOF | |
20752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20753 # | |
20754 # INIT-COMMANDS | |
20755 # | |
20756 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
20757 | |
20758 | |
20759 # The HP-UX ksh and POSIX shell print the target directory to stdout | |
20760 # if CDPATH is set. | |
20761 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
20762 | |
20763 sed_quote_subst='$sed_quote_subst' | |
20764 double_quote_subst='$double_quote_subst' | |
20765 delay_variable_subst='$delay_variable_subst' | |
20766 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
20767 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' | |
20768 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
20769 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
20770 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
20771 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
20772 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
20773 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
20774 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
20775 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
20776 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
20777 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' | |
20778 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
20779 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
20780 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
20781 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
20782 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
20783 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
20784 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
20785 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
20786 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
20787 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
20788 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
20789 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
20790 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
20791 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
20792 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
20793 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
20794 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
20795 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
20796 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
20797 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
20798 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
20799 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
20800 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
20801 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
20802 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
20803 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
20804 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
20805 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
20806 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
20807 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
20808 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
20809 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
20810 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
20811 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
20812 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
20813 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
20814 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
20815 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
20816 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
20817 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
20818 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
20819 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
20820 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
20821 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
20822 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
20823 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"`' | |
20824 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | |
20825 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
20826 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
20827 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
20828 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
20829 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
20830 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
20831 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
20832 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
20833 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
20834 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
20835 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
20836 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
20837 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
20838 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
20839 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
20840 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
20841 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
20842 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
20843 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
20844 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
20845 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
20846 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
20847 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
20848 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
20849 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
20850 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
20851 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
20852 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
20853 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
20854 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
20855 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
20856 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
20857 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
20858 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
20859 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
20860 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
20861 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
20862 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
20863 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
20864 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
20865 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
20866 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
20867 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
20868 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
20869 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
20870 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
20871 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
20872 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
20873 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
20874 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
20875 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
20876 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
20877 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
20878 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
20879 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
20880 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
20881 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
20882 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
20883 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
20884 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
20885 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
20886 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
20887 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
20888 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
20889 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
20890 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
20891 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
20892 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
20893 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
20894 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
20895 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
20896 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
20897 LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`' | |
20898 reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`' | |
20899 reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`' | |
20900 old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`' | |
20901 compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`' | |
20902 GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`' | |
20903 lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`' | |
20904 lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`' | |
20905 lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`' | |
20906 lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`' | |
20907 lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`' | |
20908 archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`' | |
20909 enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`' | |
20910 export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`' | |
20911 whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`' | |
20912 compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`' | |
20913 old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`' | |
20914 old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`' | |
20915 archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`' | |
20916 archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`' | |
20917 module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`' | |
20918 module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`' | |
20919 with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`' | |
20920 allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`' | |
20921 no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`' | |
20922 hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`' | |
20923 hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`' | |
20924 hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`' | |
20925 hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`' | |
20926 hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`' | |
20927 hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`' | |
20928 hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`' | |
20929 inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`' | |
20930 link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`' | |
20931 always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`' | |
20932 export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`' | |
20933 exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`' | |
20934 include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`' | |
20935 prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`' | |
20936 postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`' | |
20937 file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`' | |
20938 hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`' | |
20939 | |
20940 LTCC='$LTCC' | |
20941 LTCFLAGS='$LTCFLAGS' | |
20942 compiler='$compiler_DEFAULT' | |
20943 | |
20944 # A function that is used when there is no print builtin or printf. | |
20945 func_fallback_echo () | |
20946 { | |
20947 eval 'cat <<_LTECHO_EOF | |
20948 \$1 | |
20949 _LTECHO_EOF' | |
20950 } | |
20951 | |
20952 # Quote evaled strings. | |
20953 for var in AS \ | |
20954 DLLTOOL \ | |
20955 OBJDUMP \ | |
20956 SHELL \ | |
20957 ECHO \ | |
20958 PATH_SEPARATOR \ | |
20959 SED \ | |
20960 GREP \ | |
20961 EGREP \ | |
20962 FGREP \ | |
20963 LD \ | |
20964 NM \ | |
20965 LN_S \ | |
20966 lt_SP2NL \ | |
20967 lt_NL2SP \ | |
20968 reload_flag \ | |
20969 deplibs_check_method \ | |
20970 file_magic_cmd \ | |
20971 file_magic_glob \ | |
20972 want_nocaseglob \ | |
20973 sharedlib_from_linklib_cmd \ | |
20974 AR \ | |
20975 AR_FLAGS \ | |
20976 archiver_list_spec \ | |
20977 STRIP \ | |
20978 RANLIB \ | |
20979 CC \ | |
20980 CFLAGS \ | |
20981 compiler \ | |
20982 lt_cv_sys_global_symbol_pipe \ | |
20983 lt_cv_sys_global_symbol_to_cdecl \ | |
20984 lt_cv_sys_global_symbol_to_c_name_address \ | |
20985 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
20986 nm_file_list_spec \ | |
20987 lt_prog_compiler_no_builtin_flag \ | |
20988 lt_prog_compiler_pic \ | |
20989 lt_prog_compiler_wl \ | |
20990 lt_prog_compiler_static \ | |
20991 lt_cv_prog_compiler_c_o \ | |
20992 need_locks \ | |
20993 MANIFEST_TOOL \ | |
20994 DSYMUTIL \ | |
20995 NMEDIT \ | |
20996 LIPO \ | |
20997 OTOOL \ | |
20998 OTOOL64 \ | |
20999 shrext_cmds \ | |
21000 export_dynamic_flag_spec \ | |
21001 whole_archive_flag_spec \ | |
21002 compiler_needs_object \ | |
21003 with_gnu_ld \ | |
21004 allow_undefined_flag \ | |
21005 no_undefined_flag \ | |
21006 hardcode_libdir_flag_spec \ | |
21007 hardcode_libdir_separator \ | |
21008 exclude_expsyms \ | |
21009 include_expsyms \ | |
21010 file_list_spec \ | |
21011 variables_saved_for_relink \ | |
21012 libname_spec \ | |
21013 library_names_spec \ | |
21014 soname_spec \ | |
21015 install_override_mode \ | |
21016 finish_eval \ | |
21017 old_striplib \ | |
21018 striplib \ | |
21019 LD_F77 \ | |
21020 reload_flag_F77 \ | |
21021 compiler_F77 \ | |
21022 lt_prog_compiler_no_builtin_flag_F77 \ | |
21023 lt_prog_compiler_pic_F77 \ | |
21024 lt_prog_compiler_wl_F77 \ | |
21025 lt_prog_compiler_static_F77 \ | |
21026 lt_cv_prog_compiler_c_o_F77 \ | |
21027 export_dynamic_flag_spec_F77 \ | |
21028 whole_archive_flag_spec_F77 \ | |
21029 compiler_needs_object_F77 \ | |
21030 with_gnu_ld_F77 \ | |
21031 allow_undefined_flag_F77 \ | |
21032 no_undefined_flag_F77 \ | |
21033 hardcode_libdir_flag_spec_F77 \ | |
21034 hardcode_libdir_separator_F77 \ | |
21035 exclude_expsyms_F77 \ | |
21036 include_expsyms_F77 \ | |
21037 file_list_spec_F77; do | |
21038 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
21039 *[\\\\\\\`\\"\\\$]*) | |
21040 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
21041 ;; | |
21042 *) | |
21043 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
21044 ;; | |
21045 esac | |
21046 done | |
21047 | |
21048 # Double-quote double-evaled strings. | |
21049 for var in reload_cmds \ | |
21050 old_postinstall_cmds \ | |
21051 old_postuninstall_cmds \ | |
21052 old_archive_cmds \ | |
21053 extract_expsyms_cmds \ | |
21054 old_archive_from_new_cmds \ | |
21055 old_archive_from_expsyms_cmds \ | |
21056 archive_cmds \ | |
21057 archive_expsym_cmds \ | |
21058 module_cmds \ | |
21059 module_expsym_cmds \ | |
21060 export_symbols_cmds \ | |
21061 prelink_cmds \ | |
21062 postlink_cmds \ | |
21063 postinstall_cmds \ | |
21064 postuninstall_cmds \ | |
21065 finish_cmds \ | |
21066 sys_lib_search_path_spec \ | |
21067 sys_lib_dlsearch_path_spec \ | |
21068 reload_cmds_F77 \ | |
21069 old_archive_cmds_F77 \ | |
21070 old_archive_from_new_cmds_F77 \ | |
21071 old_archive_from_expsyms_cmds_F77 \ | |
21072 archive_cmds_F77 \ | |
21073 archive_expsym_cmds_F77 \ | |
21074 module_cmds_F77 \ | |
21075 module_expsym_cmds_F77 \ | |
21076 export_symbols_cmds_F77 \ | |
21077 prelink_cmds_F77 \ | |
21078 postlink_cmds_F77; do | |
21079 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
21080 *[\\\\\\\`\\"\\\$]*) | |
21081 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
21082 ;; | |
21083 *) | |
21084 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
21085 ;; | |
21086 esac | |
21087 done | |
21088 | |
21089 ac_aux_dir='$ac_aux_dir' | |
21090 xsi_shell='$xsi_shell' | |
21091 lt_shell_append='$lt_shell_append' | |
21092 | |
21093 # See if we are running on zsh, and set the options which allow our | |
21094 # commands through without removal of \ escapes INIT. | |
21095 if test -n "\${ZSH_VERSION+set}" ; then | |
21096 setopt NO_GLOB_SUBST | |
21097 fi | |
21098 | |
21099 | |
21100 PACKAGE='$PACKAGE' | |
21101 VERSION='$VERSION' | |
21102 TIMESTAMP='$TIMESTAMP' | |
21103 RM='$RM' | |
21104 ofile='$ofile' | |
21105 | |
21106 | |
21107 | |
21108 | |
21109 | |
21110 | |
21111 _ACEOF | |
21112 | |
21113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21114 | |
21115 # Handling of arguments. | |
21116 for ac_config_target in $ac_config_targets | |
21117 do | |
21118 case $ac_config_target in | |
21119 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
21120 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
21121 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
21122 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
21123 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;; | |
21124 "genfft/Makefile") CONFIG_FILES="$CONFIG_FILES genfft/Makefile" ;; | |
21125 "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;; | |
21126 "simd-support/Makefile") CONFIG_FILES="$CONFIG_FILES simd-support/Makefile" ;; | |
21127 "dft/Makefile") CONFIG_FILES="$CONFIG_FILES dft/Makefile" ;; | |
21128 "dft/scalar/Makefile") CONFIG_FILES="$CONFIG_FILES dft/scalar/Makefile" ;; | |
21129 "dft/scalar/codelets/Makefile") CONFIG_FILES="$CONFIG_FILES dft/scalar/codelets/Makefile" ;; | |
21130 "dft/simd/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/Makefile" ;; | |
21131 "dft/simd/common/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/common/Makefile" ;; | |
21132 "dft/simd/sse2/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/sse2/Makefile" ;; | |
21133 "dft/simd/avx/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/avx/Makefile" ;; | |
21134 "dft/simd/altivec/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/altivec/Makefile" ;; | |
21135 "dft/simd/neon/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/neon/Makefile" ;; | |
21136 "rdft/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/Makefile" ;; | |
21137 "rdft/scalar/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/scalar/Makefile" ;; | |
21138 "rdft/scalar/r2cf/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/scalar/r2cf/Makefile" ;; | |
21139 "rdft/scalar/r2cb/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/scalar/r2cb/Makefile" ;; | |
21140 "rdft/scalar/r2r/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/scalar/r2r/Makefile" ;; | |
21141 "rdft/simd/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/Makefile" ;; | |
21142 "rdft/simd/common/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/common/Makefile" ;; | |
21143 "rdft/simd/sse2/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/sse2/Makefile" ;; | |
21144 "rdft/simd/avx/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/avx/Makefile" ;; | |
21145 "rdft/simd/altivec/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/altivec/Makefile" ;; | |
21146 "rdft/simd/neon/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/neon/Makefile" ;; | |
21147 "reodft/Makefile") CONFIG_FILES="$CONFIG_FILES reodft/Makefile" ;; | |
21148 "threads/Makefile") CONFIG_FILES="$CONFIG_FILES threads/Makefile" ;; | |
21149 "api/Makefile") CONFIG_FILES="$CONFIG_FILES api/Makefile" ;; | |
21150 "mpi/Makefile") CONFIG_FILES="$CONFIG_FILES mpi/Makefile" ;; | |
21151 "libbench2/Makefile") CONFIG_FILES="$CONFIG_FILES libbench2/Makefile" ;; | |
21152 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; | |
21153 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
21154 "doc/FAQ/Makefile") CONFIG_FILES="$CONFIG_FILES doc/FAQ/Makefile" ;; | |
21155 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
21156 "tools/fftw_wisdom.1") CONFIG_FILES="$CONFIG_FILES tools/fftw_wisdom.1" ;; | |
21157 "tools/fftw-wisdom-to-conf") CONFIG_FILES="$CONFIG_FILES tools/fftw-wisdom-to-conf" ;; | |
21158 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; | |
21159 "fftw.pc") CONFIG_FILES="$CONFIG_FILES fftw.pc" ;; | |
21160 | |
21161 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
21162 esac | |
21163 done | |
21164 | |
21165 | |
21166 # If the user did not use the arguments to specify the items to instantiate, | |
21167 # then the envvar interface is used. Set only those that are not. | |
21168 # We use the long form for the default assignment because of an extremely | |
21169 # bizarre bug on SunOS 4.1.3. | |
21170 if $ac_need_defaults; then | |
21171 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
21172 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
21173 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
21174 fi | |
21175 | |
21176 # Have a temporary directory for convenience. Make it in the build tree | |
21177 # simply because there is no reason against having it here, and in addition, | |
21178 # creating and moving files from /tmp can sometimes cause problems. | |
21179 # Hook for its removal unless debugging. | |
21180 # Note that there is a small window in which the directory will not be cleaned: | |
21181 # after its creation but before its name has been assigned to `$tmp'. | |
21182 $debug || | |
21183 { | |
21184 tmp= ac_tmp= | |
21185 trap 'exit_status=$? | |
21186 : "${ac_tmp:=$tmp}" | |
21187 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
21188 ' 0 | |
21189 trap 'as_fn_exit 1' 1 2 13 15 | |
21190 } | |
21191 # Create a (secure) tmp directory for tmp files. | |
21192 | |
21193 { | |
21194 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
21195 test -d "$tmp" | |
21196 } || | |
21197 { | |
21198 tmp=./conf$$-$RANDOM | |
21199 (umask 077 && mkdir "$tmp") | |
21200 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
21201 ac_tmp=$tmp | |
21202 | |
21203 # Set up the scripts for CONFIG_FILES section. | |
21204 # No need to generate them if there are no CONFIG_FILES. | |
21205 # This happens for instance with `./config.status config.h'. | |
21206 if test -n "$CONFIG_FILES"; then | |
21207 | |
21208 | |
21209 ac_cr=`echo X | tr X '\015'` | |
21210 # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
21211 # But we know of no other shell where ac_cr would be empty at this | |
21212 # point, so we can use a bashism as a fallback. | |
21213 if test "x$ac_cr" = x; then | |
21214 eval ac_cr=\$\'\\r\' | |
21215 fi | |
21216 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
21217 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
21218 ac_cs_awk_cr='\\r' | |
21219 else | |
21220 ac_cs_awk_cr=$ac_cr | |
21221 fi | |
21222 | |
21223 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
21224 _ACEOF | |
21225 | |
21226 | |
21227 { | |
21228 echo "cat >conf$$subs.awk <<_ACEOF" && | |
21229 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
21230 echo "_ACEOF" | |
21231 } >conf$$subs.sh || | |
21232 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
21233 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
21234 ac_delim='%!_!# ' | |
21235 for ac_last_try in false false false false false :; do | |
21236 . ./conf$$subs.sh || | |
21237 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
21238 | |
21239 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
21240 if test $ac_delim_n = $ac_delim_num; then | |
21241 break | |
21242 elif $ac_last_try; then | |
21243 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
21244 else | |
21245 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
21246 fi | |
21247 done | |
21248 rm -f conf$$subs.sh | |
21249 | |
21250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21251 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
21252 _ACEOF | |
21253 sed -n ' | |
21254 h | |
21255 s/^/S["/; s/!.*/"]=/ | |
21256 p | |
21257 g | |
21258 s/^[^!]*!// | |
21259 :repl | |
21260 t repl | |
21261 s/'"$ac_delim"'$// | |
21262 t delim | |
21263 :nl | |
21264 h | |
21265 s/\(.\{148\}\)..*/\1/ | |
21266 t more1 | |
21267 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
21268 p | |
21269 n | |
21270 b repl | |
21271 :more1 | |
21272 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
21273 p | |
21274 g | |
21275 s/.\{148\}// | |
21276 t nl | |
21277 :delim | |
21278 h | |
21279 s/\(.\{148\}\)..*/\1/ | |
21280 t more2 | |
21281 s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
21282 p | |
21283 b | |
21284 :more2 | |
21285 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
21286 p | |
21287 g | |
21288 s/.\{148\}// | |
21289 t delim | |
21290 ' <conf$$subs.awk | sed ' | |
21291 /^[^""]/{ | |
21292 N | |
21293 s/\n// | |
21294 } | |
21295 ' >>$CONFIG_STATUS || ac_write_fail=1 | |
21296 rm -f conf$$subs.awk | |
21297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21298 _ACAWK | |
21299 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
21300 for (key in S) S_is_set[key] = 1 | |
21301 FS = "" | |
21302 | |
21303 } | |
21304 { | |
21305 line = $ 0 | |
21306 nfields = split(line, field, "@") | |
21307 substed = 0 | |
21308 len = length(field[1]) | |
21309 for (i = 2; i < nfields; i++) { | |
21310 key = field[i] | |
21311 keylen = length(key) | |
21312 if (S_is_set[key]) { | |
21313 value = S[key] | |
21314 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
21315 len += length(value) + length(field[++i]) | |
21316 substed = 1 | |
21317 } else | |
21318 len += 1 + keylen | |
21319 } | |
21320 | |
21321 print line | |
21322 } | |
21323 | |
21324 _ACAWK | |
21325 _ACEOF | |
21326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21327 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
21328 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
21329 else | |
21330 cat | |
21331 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
21332 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
21333 _ACEOF | |
21334 | |
21335 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
21336 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
21337 # trailing colons and then remove the whole line if VPATH becomes empty | |
21338 # (actually we leave an empty line to preserve line numbers). | |
21339 if test "x$srcdir" = x.; then | |
21340 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
21341 h | |
21342 s/// | |
21343 s/^/:/ | |
21344 s/[ ]*$/:/ | |
21345 s/:\$(srcdir):/:/g | |
21346 s/:\${srcdir}:/:/g | |
21347 s/:@srcdir@:/:/g | |
21348 s/^:*// | |
21349 s/:*$// | |
21350 x | |
21351 s/\(=[ ]*\).*/\1/ | |
21352 G | |
21353 s/\n// | |
21354 s/^[^=]*=[ ]*$// | |
21355 }' | |
21356 fi | |
21357 | |
21358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21359 fi # test -n "$CONFIG_FILES" | |
21360 | |
21361 # Set up the scripts for CONFIG_HEADERS section. | |
21362 # No need to generate them if there are no CONFIG_HEADERS. | |
21363 # This happens for instance with `./config.status Makefile'. | |
21364 if test -n "$CONFIG_HEADERS"; then | |
21365 cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
21366 BEGIN { | |
21367 _ACEOF | |
21368 | |
21369 # Transform confdefs.h into an awk script `defines.awk', embedded as | |
21370 # here-document in config.status, that substitutes the proper values into | |
21371 # config.h.in to produce config.h. | |
21372 | |
21373 # Create a delimiter string that does not exist in confdefs.h, to ease | |
21374 # handling of long lines. | |
21375 ac_delim='%!_!# ' | |
21376 for ac_last_try in false false :; do | |
21377 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
21378 if test -z "$ac_tt"; then | |
21379 break | |
21380 elif $ac_last_try; then | |
21381 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
21382 else | |
21383 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
21384 fi | |
21385 done | |
21386 | |
21387 # For the awk script, D is an array of macro values keyed by name, | |
21388 # likewise P contains macro parameters if any. Preserve backslash | |
21389 # newline sequences. | |
21390 | |
21391 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
21392 sed -n ' | |
21393 s/.\{148\}/&'"$ac_delim"'/g | |
21394 t rset | |
21395 :rset | |
21396 s/^[ ]*#[ ]*define[ ][ ]*/ / | |
21397 t def | |
21398 d | |
21399 :def | |
21400 s/\\$// | |
21401 t bsnl | |
21402 s/["\\]/\\&/g | |
21403 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
21404 D["\1"]=" \3"/p | |
21405 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
21406 d | |
21407 :bsnl | |
21408 s/["\\]/\\&/g | |
21409 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
21410 D["\1"]=" \3\\\\\\n"\\/p | |
21411 t cont | |
21412 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
21413 t cont | |
21414 d | |
21415 :cont | |
21416 n | |
21417 s/.\{148\}/&'"$ac_delim"'/g | |
21418 t clear | |
21419 :clear | |
21420 s/\\$// | |
21421 t bsnlc | |
21422 s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
21423 d | |
21424 :bsnlc | |
21425 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
21426 b cont | |
21427 ' <confdefs.h | sed ' | |
21428 s/'"$ac_delim"'/"\\\ | |
21429 "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
21430 | |
21431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21432 for (key in D) D_is_set[key] = 1 | |
21433 FS = "" | |
21434 } | |
21435 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
21436 line = \$ 0 | |
21437 split(line, arg, " ") | |
21438 if (arg[1] == "#") { | |
21439 defundef = arg[2] | |
21440 mac1 = arg[3] | |
21441 } else { | |
21442 defundef = substr(arg[1], 2) | |
21443 mac1 = arg[2] | |
21444 } | |
21445 split(mac1, mac2, "(") #) | |
21446 macro = mac2[1] | |
21447 prefix = substr(line, 1, index(line, defundef) - 1) | |
21448 if (D_is_set[macro]) { | |
21449 # Preserve the white space surrounding the "#". | |
21450 print prefix "define", macro P[macro] D[macro] | |
21451 next | |
21452 } else { | |
21453 # Replace #undef with comments. This is necessary, for example, | |
21454 # in the case of _POSIX_SOURCE, which is predefined and required | |
21455 # on some systems where configure will not decide to define it. | |
21456 if (defundef == "undef") { | |
21457 print "/*", prefix defundef, macro, "*/" | |
21458 next | |
21459 } | |
21460 } | |
21461 } | |
21462 { print } | |
21463 _ACAWK | |
21464 _ACEOF | |
21465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21466 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
21467 fi # test -n "$CONFIG_HEADERS" | |
21468 | |
21469 | |
21470 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
21471 shift | |
21472 for ac_tag | |
21473 do | |
21474 case $ac_tag in | |
21475 :[FHLC]) ac_mode=$ac_tag; continue;; | |
21476 esac | |
21477 case $ac_mode$ac_tag in | |
21478 :[FHL]*:*);; | |
21479 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
21480 :[FH]-) ac_tag=-:-;; | |
21481 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
21482 esac | |
21483 ac_save_IFS=$IFS | |
21484 IFS=: | |
21485 set x $ac_tag | |
21486 IFS=$ac_save_IFS | |
21487 shift | |
21488 ac_file=$1 | |
21489 shift | |
21490 | |
21491 case $ac_mode in | |
21492 :L) ac_source=$1;; | |
21493 :[FH]) | |
21494 ac_file_inputs= | |
21495 for ac_f | |
21496 do | |
21497 case $ac_f in | |
21498 -) ac_f="$ac_tmp/stdin";; | |
21499 *) # Look for the file first in the build tree, then in the source tree | |
21500 # (if the path is not absolute). The absolute path cannot be DOS-style, | |
21501 # because $ac_f cannot contain `:'. | |
21502 test -f "$ac_f" || | |
21503 case $ac_f in | |
21504 [\\/$]*) false;; | |
21505 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
21506 esac || | |
21507 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
21508 esac | |
21509 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
21510 as_fn_append ac_file_inputs " '$ac_f'" | |
21511 done | |
21512 | |
21513 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
21514 # use $as_me), people would be surprised to read: | |
21515 # /* config.h. Generated by config.status. */ | |
21516 configure_input='Generated from '` | |
21517 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
21518 `' by configure.' | |
21519 if test x"$ac_file" != x-; then | |
21520 configure_input="$ac_file. $configure_input" | |
21521 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
21522 $as_echo "$as_me: creating $ac_file" >&6;} | |
21523 fi | |
21524 # Neutralize special characters interpreted by sed in replacement strings. | |
21525 case $configure_input in #( | |
21526 *\&* | *\|* | *\\* ) | |
21527 ac_sed_conf_input=`$as_echo "$configure_input" | | |
21528 sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
21529 *) ac_sed_conf_input=$configure_input;; | |
21530 esac | |
21531 | |
21532 case $ac_tag in | |
21533 *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
21534 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
21535 esac | |
21536 ;; | |
21537 esac | |
21538 | |
21539 ac_dir=`$as_dirname -- "$ac_file" || | |
21540 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
21541 X"$ac_file" : 'X\(//\)[^/]' \| \ | |
21542 X"$ac_file" : 'X\(//\)$' \| \ | |
21543 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
21544 $as_echo X"$ac_file" | | |
21545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
21546 s//\1/ | |
21547 q | |
21548 } | |
21549 /^X\(\/\/\)[^/].*/{ | |
21550 s//\1/ | |
21551 q | |
21552 } | |
21553 /^X\(\/\/\)$/{ | |
21554 s//\1/ | |
21555 q | |
21556 } | |
21557 /^X\(\/\).*/{ | |
21558 s//\1/ | |
21559 q | |
21560 } | |
21561 s/.*/./; q'` | |
21562 as_dir="$ac_dir"; as_fn_mkdir_p | |
21563 ac_builddir=. | |
21564 | |
21565 case "$ac_dir" in | |
21566 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
21567 *) | |
21568 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
21569 # A ".." for each directory in $ac_dir_suffix. | |
21570 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
21571 case $ac_top_builddir_sub in | |
21572 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
21573 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
21574 esac ;; | |
21575 esac | |
21576 ac_abs_top_builddir=$ac_pwd | |
21577 ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
21578 # for backward compatibility: | |
21579 ac_top_builddir=$ac_top_build_prefix | |
21580 | |
21581 case $srcdir in | |
21582 .) # We are building in place. | |
21583 ac_srcdir=. | |
21584 ac_top_srcdir=$ac_top_builddir_sub | |
21585 ac_abs_top_srcdir=$ac_pwd ;; | |
21586 [\\/]* | ?:[\\/]* ) # Absolute name. | |
21587 ac_srcdir=$srcdir$ac_dir_suffix; | |
21588 ac_top_srcdir=$srcdir | |
21589 ac_abs_top_srcdir=$srcdir ;; | |
21590 *) # Relative name. | |
21591 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
21592 ac_top_srcdir=$ac_top_build_prefix$srcdir | |
21593 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
21594 esac | |
21595 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
21596 | |
21597 | |
21598 case $ac_mode in | |
21599 :F) | |
21600 # | |
21601 # CONFIG_FILE | |
21602 # | |
21603 | |
21604 case $INSTALL in | |
21605 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
21606 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
21607 esac | |
21608 ac_MKDIR_P=$MKDIR_P | |
21609 case $MKDIR_P in | |
21610 [\\/$]* | ?:[\\/]* ) ;; | |
21611 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
21612 esac | |
21613 _ACEOF | |
21614 | |
21615 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21616 # If the template does not know about datarootdir, expand it. | |
21617 # FIXME: This hack should be removed a few years after 2.60. | |
21618 ac_datarootdir_hack=; ac_datarootdir_seen= | |
21619 ac_sed_dataroot=' | |
21620 /datarootdir/ { | |
21621 p | |
21622 q | |
21623 } | |
21624 /@datadir@/p | |
21625 /@docdir@/p | |
21626 /@infodir@/p | |
21627 /@localedir@/p | |
21628 /@mandir@/p' | |
21629 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
21630 *datarootdir*) ac_datarootdir_seen=yes;; | |
21631 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
21632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
21633 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
21634 _ACEOF | |
21635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21636 ac_datarootdir_hack=' | |
21637 s&@datadir@&$datadir&g | |
21638 s&@docdir@&$docdir&g | |
21639 s&@infodir@&$infodir&g | |
21640 s&@localedir@&$localedir&g | |
21641 s&@mandir@&$mandir&g | |
21642 s&\\\${datarootdir}&$datarootdir&g' ;; | |
21643 esac | |
21644 _ACEOF | |
21645 | |
21646 # Neutralize VPATH when `$srcdir' = `.'. | |
21647 # Shell code in configure.ac might set extrasub. | |
21648 # FIXME: do we really want to maintain this feature? | |
21649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
21650 ac_sed_extra="$ac_vpsub | |
21651 $extrasub | |
21652 _ACEOF | |
21653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
21654 :t | |
21655 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
21656 s|@configure_input@|$ac_sed_conf_input|;t t | |
21657 s&@top_builddir@&$ac_top_builddir_sub&;t t | |
21658 s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
21659 s&@srcdir@&$ac_srcdir&;t t | |
21660 s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
21661 s&@top_srcdir@&$ac_top_srcdir&;t t | |
21662 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
21663 s&@builddir@&$ac_builddir&;t t | |
21664 s&@abs_builddir@&$ac_abs_builddir&;t t | |
21665 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
21666 s&@INSTALL@&$ac_INSTALL&;t t | |
21667 s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
21668 $ac_datarootdir_hack | |
21669 " | |
21670 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
21671 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
21672 | |
21673 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
21674 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
21675 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
21676 "$ac_tmp/out"`; test -z "$ac_out"; } && | |
21677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
21678 which seems to be undefined. Please make sure it is defined" >&5 | |
21679 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
21680 which seems to be undefined. Please make sure it is defined" >&2;} | |
21681 | |
21682 rm -f "$ac_tmp/stdin" | |
21683 case $ac_file in | |
21684 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
21685 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
21686 esac \ | |
21687 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
21688 ;; | |
21689 :H) | |
21690 # | |
21691 # CONFIG_HEADER | |
21692 # | |
21693 if test x"$ac_file" != x-; then | |
21694 { | |
21695 $as_echo "/* $configure_input */" \ | |
21696 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
21697 } >"$ac_tmp/config.h" \ | |
21698 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
21699 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
21700 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
21701 $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
21702 else | |
21703 rm -f "$ac_file" | |
21704 mv "$ac_tmp/config.h" "$ac_file" \ | |
21705 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
21706 fi | |
21707 else | |
21708 $as_echo "/* $configure_input */" \ | |
21709 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
21710 || as_fn_error $? "could not create -" "$LINENO" 5 | |
21711 fi | |
21712 # Compute "$ac_file"'s index in $config_headers. | |
21713 _am_arg="$ac_file" | |
21714 _am_stamp_count=1 | |
21715 for _am_header in $config_headers :; do | |
21716 case $_am_header in | |
21717 $_am_arg | $_am_arg:* ) | |
21718 break ;; | |
21719 * ) | |
21720 _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
21721 esac | |
21722 done | |
21723 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
21724 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
21725 X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
21726 X"$_am_arg" : 'X\(//\)$' \| \ | |
21727 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
21728 $as_echo X"$_am_arg" | | |
21729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
21730 s//\1/ | |
21731 q | |
21732 } | |
21733 /^X\(\/\/\)[^/].*/{ | |
21734 s//\1/ | |
21735 q | |
21736 } | |
21737 /^X\(\/\/\)$/{ | |
21738 s//\1/ | |
21739 q | |
21740 } | |
21741 /^X\(\/\).*/{ | |
21742 s//\1/ | |
21743 q | |
21744 } | |
21745 s/.*/./; q'`/stamp-h$_am_stamp_count | |
21746 ;; | |
21747 | |
21748 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
21749 $as_echo "$as_me: executing $ac_file commands" >&6;} | |
21750 ;; | |
21751 esac | |
21752 | |
21753 | |
21754 case $ac_file$ac_mode in | |
21755 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
21756 # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
21757 # are listed without --file. Let's play safe and only enable the eval | |
21758 # if we detect the quoting. | |
21759 case $CONFIG_FILES in | |
21760 *\'*) eval set x "$CONFIG_FILES" ;; | |
21761 *) set x $CONFIG_FILES ;; | |
21762 esac | |
21763 shift | |
21764 for mf | |
21765 do | |
21766 # Strip MF so we end up with the name of the file. | |
21767 mf=`echo "$mf" | sed -e 's/:.*$//'` | |
21768 # Check whether this is an Automake generated Makefile or not. | |
21769 # We used to match only the files named `Makefile.in', but | |
21770 # some people rename them; so instead we look at the file content. | |
21771 # Grep'ing the first line is not enough: some people post-process | |
21772 # each Makefile.in and add a new line on top of each file to say so. | |
21773 # Grep'ing the whole file is not good either: AIX grep has a line | |
21774 # limit of 2048, but all sed's we know have understand at least 4000. | |
21775 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
21776 dirpart=`$as_dirname -- "$mf" || | |
21777 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
21778 X"$mf" : 'X\(//\)[^/]' \| \ | |
21779 X"$mf" : 'X\(//\)$' \| \ | |
21780 X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
21781 $as_echo X"$mf" | | |
21782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
21783 s//\1/ | |
21784 q | |
21785 } | |
21786 /^X\(\/\/\)[^/].*/{ | |
21787 s//\1/ | |
21788 q | |
21789 } | |
21790 /^X\(\/\/\)$/{ | |
21791 s//\1/ | |
21792 q | |
21793 } | |
21794 /^X\(\/\).*/{ | |
21795 s//\1/ | |
21796 q | |
21797 } | |
21798 s/.*/./; q'` | |
21799 else | |
21800 continue | |
21801 fi | |
21802 # Extract the definition of DEPDIR, am__include, and am__quote | |
21803 # from the Makefile without running `make'. | |
21804 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
21805 test -z "$DEPDIR" && continue | |
21806 am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
21807 test -z "am__include" && continue | |
21808 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
21809 # When using ansi2knr, U may be empty or an underscore; expand it | |
21810 U=`sed -n 's/^U = //p' < "$mf"` | |
21811 # Find all dependency output files, they are included files with | |
21812 # $(DEPDIR) in their names. We invoke sed twice because it is the | |
21813 # simplest approach to changing $(DEPDIR) to its actual value in the | |
21814 # expansion. | |
21815 for file in `sed -n " | |
21816 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
21817 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
21818 # Make sure the directory exists. | |
21819 test -f "$dirpart/$file" && continue | |
21820 fdir=`$as_dirname -- "$file" || | |
21821 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
21822 X"$file" : 'X\(//\)[^/]' \| \ | |
21823 X"$file" : 'X\(//\)$' \| \ | |
21824 X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
21825 $as_echo X"$file" | | |
21826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
21827 s//\1/ | |
21828 q | |
21829 } | |
21830 /^X\(\/\/\)[^/].*/{ | |
21831 s//\1/ | |
21832 q | |
21833 } | |
21834 /^X\(\/\/\)$/{ | |
21835 s//\1/ | |
21836 q | |
21837 } | |
21838 /^X\(\/\).*/{ | |
21839 s//\1/ | |
21840 q | |
21841 } | |
21842 s/.*/./; q'` | |
21843 as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
21844 # echo "creating $dirpart/$file" | |
21845 echo '# dummy' > "$dirpart/$file" | |
21846 done | |
21847 done | |
21848 } | |
21849 ;; | |
21850 "libtool":C) | |
21851 | |
21852 # See if we are running on zsh, and set the options which allow our | |
21853 # commands through without removal of \ escapes. | |
21854 if test -n "${ZSH_VERSION+set}" ; then | |
21855 setopt NO_GLOB_SUBST | |
21856 fi | |
21857 | |
21858 cfgfile="${ofile}T" | |
21859 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
21860 $RM "$cfgfile" | |
21861 | |
21862 cat <<_LT_EOF >> "$cfgfile" | |
21863 #! $SHELL | |
21864 | |
21865 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
21866 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
21867 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
21868 # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
21869 # | |
21870 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
21871 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software | |
21872 # Foundation, Inc. | |
21873 # Written by Gordon Matzigkeit, 1996 | |
21874 # | |
21875 # This file is part of GNU Libtool. | |
21876 # | |
21877 # GNU Libtool is free software; you can redistribute it and/or | |
21878 # modify it under the terms of the GNU General Public License as | |
21879 # published by the Free Software Foundation; either version 2 of | |
21880 # the License, or (at your option) any later version. | |
21881 # | |
21882 # As a special exception to the GNU General Public License, | |
21883 # if you distribute this file as part of a program or library that | |
21884 # is built using GNU Libtool, you may include this file under the | |
21885 # same distribution terms that you use for the rest of that program. | |
21886 # | |
21887 # GNU Libtool is distributed in the hope that it will be useful, | |
21888 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
21889 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
21890 # GNU General Public License for more details. | |
21891 # | |
21892 # You should have received a copy of the GNU General Public License | |
21893 # along with GNU Libtool; see the file COPYING. If not, a copy | |
21894 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
21895 # obtained by writing to the Free Software Foundation, Inc., | |
21896 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
21897 | |
21898 | |
21899 # The names of the tagged configurations supported by this script. | |
21900 available_tags="F77 " | |
21901 | |
21902 # ### BEGIN LIBTOOL CONFIG | |
21903 | |
21904 # Whether or not to build shared libraries. | |
21905 build_libtool_libs=$enable_shared | |
21906 | |
21907 # Assembler program. | |
21908 AS=$lt_AS | |
21909 | |
21910 # DLL creation program. | |
21911 DLLTOOL=$lt_DLLTOOL | |
21912 | |
21913 # Object dumper program. | |
21914 OBJDUMP=$lt_OBJDUMP | |
21915 | |
21916 # Which release of libtool.m4 was used? | |
21917 macro_version=$macro_version | |
21918 macro_revision=$macro_revision | |
21919 | |
21920 # Whether or not to build static libraries. | |
21921 build_old_libs=$enable_static | |
21922 | |
21923 # What type of objects to build. | |
21924 pic_mode=$pic_mode | |
21925 | |
21926 # Whether or not to optimize for fast installation. | |
21927 fast_install=$enable_fast_install | |
21928 | |
21929 # Shell to use when invoking shell scripts. | |
21930 SHELL=$lt_SHELL | |
21931 | |
21932 # An echo program that protects backslashes. | |
21933 ECHO=$lt_ECHO | |
21934 | |
21935 # The PATH separator for the build system. | |
21936 PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
21937 | |
21938 # The host system. | |
21939 host_alias=$host_alias | |
21940 host=$host | |
21941 host_os=$host_os | |
21942 | |
21943 # The build system. | |
21944 build_alias=$build_alias | |
21945 build=$build | |
21946 build_os=$build_os | |
21947 | |
21948 # A sed program that does not truncate output. | |
21949 SED=$lt_SED | |
21950 | |
21951 # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
21952 Xsed="\$SED -e 1s/^X//" | |
21953 | |
21954 # A grep program that handles long lines. | |
21955 GREP=$lt_GREP | |
21956 | |
21957 # An ERE matcher. | |
21958 EGREP=$lt_EGREP | |
21959 | |
21960 # A literal string matcher. | |
21961 FGREP=$lt_FGREP | |
21962 | |
21963 # A BSD- or MS-compatible name lister. | |
21964 NM=$lt_NM | |
21965 | |
21966 # Whether we need soft or hard links. | |
21967 LN_S=$lt_LN_S | |
21968 | |
21969 # What is the maximum length of a command? | |
21970 max_cmd_len=$max_cmd_len | |
21971 | |
21972 # Object file suffix (normally "o"). | |
21973 objext=$ac_objext | |
21974 | |
21975 # Executable file suffix (normally ""). | |
21976 exeext=$exeext | |
21977 | |
21978 # whether the shell understands "unset". | |
21979 lt_unset=$lt_unset | |
21980 | |
21981 # turn spaces into newlines. | |
21982 SP2NL=$lt_lt_SP2NL | |
21983 | |
21984 # turn newlines into spaces. | |
21985 NL2SP=$lt_lt_NL2SP | |
21986 | |
21987 # convert \$build file names to \$host format. | |
21988 to_host_file_cmd=$lt_cv_to_host_file_cmd | |
21989 | |
21990 # convert \$build files to toolchain format. | |
21991 to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
21992 | |
21993 # Method to check whether dependent libraries are shared objects. | |
21994 deplibs_check_method=$lt_deplibs_check_method | |
21995 | |
21996 # Command to use when deplibs_check_method = "file_magic". | |
21997 file_magic_cmd=$lt_file_magic_cmd | |
21998 | |
21999 # How to find potential files when deplibs_check_method = "file_magic". | |
22000 file_magic_glob=$lt_file_magic_glob | |
22001 | |
22002 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
22003 want_nocaseglob=$lt_want_nocaseglob | |
22004 | |
22005 # Command to associate shared and link libraries. | |
22006 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
22007 | |
22008 # The archiver. | |
22009 AR=$lt_AR | |
22010 | |
22011 # Flags to create an archive. | |
22012 AR_FLAGS=$lt_AR_FLAGS | |
22013 | |
22014 # How to feed a file listing to the archiver. | |
22015 archiver_list_spec=$lt_archiver_list_spec | |
22016 | |
22017 # A symbol stripping program. | |
22018 STRIP=$lt_STRIP | |
22019 | |
22020 # Commands used to install an old-style archive. | |
22021 RANLIB=$lt_RANLIB | |
22022 old_postinstall_cmds=$lt_old_postinstall_cmds | |
22023 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
22024 | |
22025 # Whether to use a lock for old archive extraction. | |
22026 lock_old_archive_extraction=$lock_old_archive_extraction | |
22027 | |
22028 # A C compiler. | |
22029 LTCC=$lt_CC | |
22030 | |
22031 # LTCC compiler flags. | |
22032 LTCFLAGS=$lt_CFLAGS | |
22033 | |
22034 # Take the output of nm and produce a listing of raw symbols and C names. | |
22035 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
22036 | |
22037 # Transform the output of nm in a proper C declaration. | |
22038 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
22039 | |
22040 # Transform the output of nm in a C name address pair. | |
22041 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
22042 | |
22043 # Transform the output of nm in a C name address pair when lib prefix is needed. | |
22044 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
22045 | |
22046 # Specify filename containing input files for \$NM. | |
22047 nm_file_list_spec=$lt_nm_file_list_spec | |
22048 | |
22049 # The root where to search for dependent libraries,and in which our libraries should be installed. | |
22050 lt_sysroot=$lt_sysroot | |
22051 | |
22052 # The name of the directory that contains temporary libtool files. | |
22053 objdir=$objdir | |
22054 | |
22055 # Used to examine libraries when file_magic_cmd begins with "file". | |
22056 MAGIC_CMD=$MAGIC_CMD | |
22057 | |
22058 # Must we lock files when doing compilation? | |
22059 need_locks=$lt_need_locks | |
22060 | |
22061 # Manifest tool. | |
22062 MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
22063 | |
22064 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
22065 DSYMUTIL=$lt_DSYMUTIL | |
22066 | |
22067 # Tool to change global to local symbols on Mac OS X. | |
22068 NMEDIT=$lt_NMEDIT | |
22069 | |
22070 # Tool to manipulate fat objects and archives on Mac OS X. | |
22071 LIPO=$lt_LIPO | |
22072 | |
22073 # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
22074 OTOOL=$lt_OTOOL | |
22075 | |
22076 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
22077 OTOOL64=$lt_OTOOL64 | |
22078 | |
22079 # Old archive suffix (normally "a"). | |
22080 libext=$libext | |
22081 | |
22082 # Shared library suffix (normally ".so"). | |
22083 shrext_cmds=$lt_shrext_cmds | |
22084 | |
22085 # The commands to extract the exported symbol list from a shared archive. | |
22086 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
22087 | |
22088 # Variables whose values should be saved in libtool wrapper scripts and | |
22089 # restored at link time. | |
22090 variables_saved_for_relink=$lt_variables_saved_for_relink | |
22091 | |
22092 # Do we need the "lib" prefix for modules? | |
22093 need_lib_prefix=$need_lib_prefix | |
22094 | |
22095 # Do we need a version for libraries? | |
22096 need_version=$need_version | |
22097 | |
22098 # Library versioning type. | |
22099 version_type=$version_type | |
22100 | |
22101 # Shared library runtime path variable. | |
22102 runpath_var=$runpath_var | |
22103 | |
22104 # Shared library path variable. | |
22105 shlibpath_var=$shlibpath_var | |
22106 | |
22107 # Is shlibpath searched before the hard-coded library search path? | |
22108 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
22109 | |
22110 # Format of library name prefix. | |
22111 libname_spec=$lt_libname_spec | |
22112 | |
22113 # List of archive names. First name is the real one, the rest are links. | |
22114 # The last name is the one that the linker finds with -lNAME | |
22115 library_names_spec=$lt_library_names_spec | |
22116 | |
22117 # The coded name of the library, if different from the real name. | |
22118 soname_spec=$lt_soname_spec | |
22119 | |
22120 # Permission mode override for installation of shared libraries. | |
22121 install_override_mode=$lt_install_override_mode | |
22122 | |
22123 # Command to use after installation of a shared archive. | |
22124 postinstall_cmds=$lt_postinstall_cmds | |
22125 | |
22126 # Command to use after uninstallation of a shared archive. | |
22127 postuninstall_cmds=$lt_postuninstall_cmds | |
22128 | |
22129 # Commands used to finish a libtool library installation in a directory. | |
22130 finish_cmds=$lt_finish_cmds | |
22131 | |
22132 # As "finish_cmds", except a single script fragment to be evaled but | |
22133 # not shown. | |
22134 finish_eval=$lt_finish_eval | |
22135 | |
22136 # Whether we should hardcode library paths into libraries. | |
22137 hardcode_into_libs=$hardcode_into_libs | |
22138 | |
22139 # Compile-time system search path for libraries. | |
22140 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
22141 | |
22142 # Run-time system search path for libraries. | |
22143 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
22144 | |
22145 # Whether dlopen is supported. | |
22146 dlopen_support=$enable_dlopen | |
22147 | |
22148 # Whether dlopen of programs is supported. | |
22149 dlopen_self=$enable_dlopen_self | |
22150 | |
22151 # Whether dlopen of statically linked programs is supported. | |
22152 dlopen_self_static=$enable_dlopen_self_static | |
22153 | |
22154 # Commands to strip libraries. | |
22155 old_striplib=$lt_old_striplib | |
22156 striplib=$lt_striplib | |
22157 | |
22158 | |
22159 # The linker used to build libraries. | |
22160 LD=$lt_LD | |
22161 | |
22162 # How to create reloadable object files. | |
22163 reload_flag=$lt_reload_flag | |
22164 reload_cmds=$lt_reload_cmds | |
22165 | |
22166 # Commands used to build an old-style archive. | |
22167 old_archive_cmds=$lt_old_archive_cmds | |
22168 | |
22169 # A language specific compiler. | |
22170 CC=$lt_compiler | |
22171 | |
22172 # Is the compiler the GNU compiler? | |
22173 with_gcc=$GCC | |
22174 | |
22175 # Compiler flag to turn off builtin functions. | |
22176 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
22177 | |
22178 # Additional compiler flags for building library objects. | |
22179 pic_flag=$lt_lt_prog_compiler_pic | |
22180 | |
22181 # How to pass a linker flag through the compiler. | |
22182 wl=$lt_lt_prog_compiler_wl | |
22183 | |
22184 # Compiler flag to prevent dynamic linking. | |
22185 link_static_flag=$lt_lt_prog_compiler_static | |
22186 | |
22187 # Does compiler simultaneously support -c and -o options? | |
22188 compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
22189 | |
22190 # Whether or not to add -lc for building shared libraries. | |
22191 build_libtool_need_lc=$archive_cmds_need_lc | |
22192 | |
22193 # Whether or not to disallow shared libs when runtime libs are static. | |
22194 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
22195 | |
22196 # Compiler flag to allow reflexive dlopens. | |
22197 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
22198 | |
22199 # Compiler flag to generate shared objects directly from archives. | |
22200 whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
22201 | |
22202 # Whether the compiler copes with passing no objects directly. | |
22203 compiler_needs_object=$lt_compiler_needs_object | |
22204 | |
22205 # Create an old-style archive from a shared archive. | |
22206 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
22207 | |
22208 # Create a temporary old-style archive to link instead of a shared archive. | |
22209 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
22210 | |
22211 # Commands used to build a shared archive. | |
22212 archive_cmds=$lt_archive_cmds | |
22213 archive_expsym_cmds=$lt_archive_expsym_cmds | |
22214 | |
22215 # Commands used to build a loadable module if different from building | |
22216 # a shared archive. | |
22217 module_cmds=$lt_module_cmds | |
22218 module_expsym_cmds=$lt_module_expsym_cmds | |
22219 | |
22220 # Whether we are building with GNU ld or not. | |
22221 with_gnu_ld=$lt_with_gnu_ld | |
22222 | |
22223 # Flag that allows shared libraries with undefined symbols to be built. | |
22224 allow_undefined_flag=$lt_allow_undefined_flag | |
22225 | |
22226 # Flag that enforces no undefined symbols. | |
22227 no_undefined_flag=$lt_no_undefined_flag | |
22228 | |
22229 # Flag to hardcode \$libdir into a binary during linking. | |
22230 # This must work even if \$libdir does not exist | |
22231 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
22232 | |
22233 # Whether we need a single "-rpath" flag with a separated argument. | |
22234 hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
22235 | |
22236 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
22237 # DIR into the resulting binary. | |
22238 hardcode_direct=$hardcode_direct | |
22239 | |
22240 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
22241 # DIR into the resulting binary and the resulting library dependency is | |
22242 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
22243 # library is relocated. | |
22244 hardcode_direct_absolute=$hardcode_direct_absolute | |
22245 | |
22246 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
22247 # into the resulting binary. | |
22248 hardcode_minus_L=$hardcode_minus_L | |
22249 | |
22250 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
22251 # into the resulting binary. | |
22252 hardcode_shlibpath_var=$hardcode_shlibpath_var | |
22253 | |
22254 # Set to "yes" if building a shared library automatically hardcodes DIR | |
22255 # into the library and all subsequent libraries and executables linked | |
22256 # against it. | |
22257 hardcode_automatic=$hardcode_automatic | |
22258 | |
22259 # Set to yes if linker adds runtime paths of dependent libraries | |
22260 # to runtime path list. | |
22261 inherit_rpath=$inherit_rpath | |
22262 | |
22263 # Whether libtool must link a program against all its dependency libraries. | |
22264 link_all_deplibs=$link_all_deplibs | |
22265 | |
22266 # Set to "yes" if exported symbols are required. | |
22267 always_export_symbols=$always_export_symbols | |
22268 | |
22269 # The commands to list exported symbols. | |
22270 export_symbols_cmds=$lt_export_symbols_cmds | |
22271 | |
22272 # Symbols that should not be listed in the preloaded symbols. | |
22273 exclude_expsyms=$lt_exclude_expsyms | |
22274 | |
22275 # Symbols that must always be exported. | |
22276 include_expsyms=$lt_include_expsyms | |
22277 | |
22278 # Commands necessary for linking programs (against libraries) with templates. | |
22279 prelink_cmds=$lt_prelink_cmds | |
22280 | |
22281 # Commands necessary for finishing linking programs. | |
22282 postlink_cmds=$lt_postlink_cmds | |
22283 | |
22284 # Specify filename containing input files. | |
22285 file_list_spec=$lt_file_list_spec | |
22286 | |
22287 # How to hardcode a shared library path into an executable. | |
22288 hardcode_action=$hardcode_action | |
22289 | |
22290 # ### END LIBTOOL CONFIG | |
22291 | |
22292 _LT_EOF | |
22293 | |
22294 case $host_os in | |
22295 aix3*) | |
22296 cat <<\_LT_EOF >> "$cfgfile" | |
22297 # AIX sometimes has problems with the GCC collect2 program. For some | |
22298 # reason, if we set the COLLECT_NAMES environment variable, the problems | |
22299 # vanish in a puff of smoke. | |
22300 if test "X${COLLECT_NAMES+set}" != Xset; then | |
22301 COLLECT_NAMES= | |
22302 export COLLECT_NAMES | |
22303 fi | |
22304 _LT_EOF | |
22305 ;; | |
22306 esac | |
22307 | |
22308 | |
22309 ltmain="$ac_aux_dir/ltmain.sh" | |
22310 | |
22311 | |
22312 # We use sed instead of cat because bash on DJGPP gets confused if | |
22313 # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
22314 # text mode, it properly converts lines to CR/LF. This bash problem | |
22315 # is reportedly fixed, but why not run on old versions too? | |
22316 sed '$q' "$ltmain" >> "$cfgfile" \ | |
22317 || (rm -f "$cfgfile"; exit 1) | |
22318 | |
22319 if test x"$xsi_shell" = xyes; then | |
22320 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | |
22321 func_dirname ()\ | |
22322 {\ | |
22323 \ case ${1} in\ | |
22324 \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
22325 \ * ) func_dirname_result="${3}" ;;\ | |
22326 \ esac\ | |
22327 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | |
22328 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22329 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22330 test 0 -eq $? || _lt_function_replace_fail=: | |
22331 | |
22332 | |
22333 sed -e '/^func_basename ()$/,/^} # func_basename /c\ | |
22334 func_basename ()\ | |
22335 {\ | |
22336 \ func_basename_result="${1##*/}"\ | |
22337 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
22338 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22339 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22340 test 0 -eq $? || _lt_function_replace_fail=: | |
22341 | |
22342 | |
22343 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | |
22344 func_dirname_and_basename ()\ | |
22345 {\ | |
22346 \ case ${1} in\ | |
22347 \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
22348 \ * ) func_dirname_result="${3}" ;;\ | |
22349 \ esac\ | |
22350 \ func_basename_result="${1##*/}"\ | |
22351 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
22352 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22353 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22354 test 0 -eq $? || _lt_function_replace_fail=: | |
22355 | |
22356 | |
22357 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | |
22358 func_stripname ()\ | |
22359 {\ | |
22360 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | |
22361 \ # positional parameters, so assign one to ordinary parameter first.\ | |
22362 \ func_stripname_result=${3}\ | |
22363 \ func_stripname_result=${func_stripname_result#"${1}"}\ | |
22364 \ func_stripname_result=${func_stripname_result%"${2}"}\ | |
22365 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | |
22366 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22367 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22368 test 0 -eq $? || _lt_function_replace_fail=: | |
22369 | |
22370 | |
22371 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | |
22372 func_split_long_opt ()\ | |
22373 {\ | |
22374 \ func_split_long_opt_name=${1%%=*}\ | |
22375 \ func_split_long_opt_arg=${1#*=}\ | |
22376 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
22377 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22378 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22379 test 0 -eq $? || _lt_function_replace_fail=: | |
22380 | |
22381 | |
22382 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | |
22383 func_split_short_opt ()\ | |
22384 {\ | |
22385 \ func_split_short_opt_arg=${1#??}\ | |
22386 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | |
22387 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
22388 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22389 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22390 test 0 -eq $? || _lt_function_replace_fail=: | |
22391 | |
22392 | |
22393 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | |
22394 func_lo2o ()\ | |
22395 {\ | |
22396 \ case ${1} in\ | |
22397 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | |
22398 \ *) func_lo2o_result=${1} ;;\ | |
22399 \ esac\ | |
22400 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | |
22401 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22402 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22403 test 0 -eq $? || _lt_function_replace_fail=: | |
22404 | |
22405 | |
22406 sed -e '/^func_xform ()$/,/^} # func_xform /c\ | |
22407 func_xform ()\ | |
22408 {\ | |
22409 func_xform_result=${1%.*}.lo\ | |
22410 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | |
22411 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22412 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22413 test 0 -eq $? || _lt_function_replace_fail=: | |
22414 | |
22415 | |
22416 sed -e '/^func_arith ()$/,/^} # func_arith /c\ | |
22417 func_arith ()\ | |
22418 {\ | |
22419 func_arith_result=$(( $* ))\ | |
22420 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | |
22421 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22422 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22423 test 0 -eq $? || _lt_function_replace_fail=: | |
22424 | |
22425 | |
22426 sed -e '/^func_len ()$/,/^} # func_len /c\ | |
22427 func_len ()\ | |
22428 {\ | |
22429 func_len_result=${#1}\ | |
22430 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | |
22431 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22432 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22433 test 0 -eq $? || _lt_function_replace_fail=: | |
22434 | |
22435 fi | |
22436 | |
22437 if test x"$lt_shell_append" = xyes; then | |
22438 sed -e '/^func_append ()$/,/^} # func_append /c\ | |
22439 func_append ()\ | |
22440 {\ | |
22441 eval "${1}+=\\${2}"\ | |
22442 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | |
22443 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22444 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22445 test 0 -eq $? || _lt_function_replace_fail=: | |
22446 | |
22447 | |
22448 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | |
22449 func_append_quoted ()\ | |
22450 {\ | |
22451 \ func_quote_for_eval "${2}"\ | |
22452 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | |
22453 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | |
22454 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22455 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22456 test 0 -eq $? || _lt_function_replace_fail=: | |
22457 | |
22458 | |
22459 # Save a `func_append' function call where possible by direct use of '+=' | |
22460 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | |
22461 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22462 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22463 test 0 -eq $? || _lt_function_replace_fail=: | |
22464 else | |
22465 # Save a `func_append' function call even when '+=' is not available | |
22466 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | |
22467 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
22468 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
22469 test 0 -eq $? || _lt_function_replace_fail=: | |
22470 fi | |
22471 | |
22472 if test x"$_lt_function_replace_fail" = x":"; then | |
22473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | |
22474 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | |
22475 fi | |
22476 | |
22477 | |
22478 mv -f "$cfgfile" "$ofile" || | |
22479 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
22480 chmod +x "$ofile" | |
22481 | |
22482 | |
22483 cat <<_LT_EOF >> "$ofile" | |
22484 | |
22485 # ### BEGIN LIBTOOL TAG CONFIG: F77 | |
22486 | |
22487 # The linker used to build libraries. | |
22488 LD=$lt_LD_F77 | |
22489 | |
22490 # How to create reloadable object files. | |
22491 reload_flag=$lt_reload_flag_F77 | |
22492 reload_cmds=$lt_reload_cmds_F77 | |
22493 | |
22494 # Commands used to build an old-style archive. | |
22495 old_archive_cmds=$lt_old_archive_cmds_F77 | |
22496 | |
22497 # A language specific compiler. | |
22498 CC=$lt_compiler_F77 | |
22499 | |
22500 # Is the compiler the GNU compiler? | |
22501 with_gcc=$GCC_F77 | |
22502 | |
22503 # Compiler flag to turn off builtin functions. | |
22504 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 | |
22505 | |
22506 # Additional compiler flags for building library objects. | |
22507 pic_flag=$lt_lt_prog_compiler_pic_F77 | |
22508 | |
22509 # How to pass a linker flag through the compiler. | |
22510 wl=$lt_lt_prog_compiler_wl_F77 | |
22511 | |
22512 # Compiler flag to prevent dynamic linking. | |
22513 link_static_flag=$lt_lt_prog_compiler_static_F77 | |
22514 | |
22515 # Does compiler simultaneously support -c and -o options? | |
22516 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 | |
22517 | |
22518 # Whether or not to add -lc for building shared libraries. | |
22519 build_libtool_need_lc=$archive_cmds_need_lc_F77 | |
22520 | |
22521 # Whether or not to disallow shared libs when runtime libs are static. | |
22522 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 | |
22523 | |
22524 # Compiler flag to allow reflexive dlopens. | |
22525 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 | |
22526 | |
22527 # Compiler flag to generate shared objects directly from archives. | |
22528 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 | |
22529 | |
22530 # Whether the compiler copes with passing no objects directly. | |
22531 compiler_needs_object=$lt_compiler_needs_object_F77 | |
22532 | |
22533 # Create an old-style archive from a shared archive. | |
22534 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 | |
22535 | |
22536 # Create a temporary old-style archive to link instead of a shared archive. | |
22537 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 | |
22538 | |
22539 # Commands used to build a shared archive. | |
22540 archive_cmds=$lt_archive_cmds_F77 | |
22541 archive_expsym_cmds=$lt_archive_expsym_cmds_F77 | |
22542 | |
22543 # Commands used to build a loadable module if different from building | |
22544 # a shared archive. | |
22545 module_cmds=$lt_module_cmds_F77 | |
22546 module_expsym_cmds=$lt_module_expsym_cmds_F77 | |
22547 | |
22548 # Whether we are building with GNU ld or not. | |
22549 with_gnu_ld=$lt_with_gnu_ld_F77 | |
22550 | |
22551 # Flag that allows shared libraries with undefined symbols to be built. | |
22552 allow_undefined_flag=$lt_allow_undefined_flag_F77 | |
22553 | |
22554 # Flag that enforces no undefined symbols. | |
22555 no_undefined_flag=$lt_no_undefined_flag_F77 | |
22556 | |
22557 # Flag to hardcode \$libdir into a binary during linking. | |
22558 # This must work even if \$libdir does not exist | |
22559 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 | |
22560 | |
22561 # Whether we need a single "-rpath" flag with a separated argument. | |
22562 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 | |
22563 | |
22564 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
22565 # DIR into the resulting binary. | |
22566 hardcode_direct=$hardcode_direct_F77 | |
22567 | |
22568 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
22569 # DIR into the resulting binary and the resulting library dependency is | |
22570 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
22571 # library is relocated. | |
22572 hardcode_direct_absolute=$hardcode_direct_absolute_F77 | |
22573 | |
22574 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
22575 # into the resulting binary. | |
22576 hardcode_minus_L=$hardcode_minus_L_F77 | |
22577 | |
22578 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
22579 # into the resulting binary. | |
22580 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 | |
22581 | |
22582 # Set to "yes" if building a shared library automatically hardcodes DIR | |
22583 # into the library and all subsequent libraries and executables linked | |
22584 # against it. | |
22585 hardcode_automatic=$hardcode_automatic_F77 | |
22586 | |
22587 # Set to yes if linker adds runtime paths of dependent libraries | |
22588 # to runtime path list. | |
22589 inherit_rpath=$inherit_rpath_F77 | |
22590 | |
22591 # Whether libtool must link a program against all its dependency libraries. | |
22592 link_all_deplibs=$link_all_deplibs_F77 | |
22593 | |
22594 # Set to "yes" if exported symbols are required. | |
22595 always_export_symbols=$always_export_symbols_F77 | |
22596 | |
22597 # The commands to list exported symbols. | |
22598 export_symbols_cmds=$lt_export_symbols_cmds_F77 | |
22599 | |
22600 # Symbols that should not be listed in the preloaded symbols. | |
22601 exclude_expsyms=$lt_exclude_expsyms_F77 | |
22602 | |
22603 # Symbols that must always be exported. | |
22604 include_expsyms=$lt_include_expsyms_F77 | |
22605 | |
22606 # Commands necessary for linking programs (against libraries) with templates. | |
22607 prelink_cmds=$lt_prelink_cmds_F77 | |
22608 | |
22609 # Commands necessary for finishing linking programs. | |
22610 postlink_cmds=$lt_postlink_cmds_F77 | |
22611 | |
22612 # Specify filename containing input files. | |
22613 file_list_spec=$lt_file_list_spec_F77 | |
22614 | |
22615 # How to hardcode a shared library path into an executable. | |
22616 hardcode_action=$hardcode_action_F77 | |
22617 | |
22618 # ### END LIBTOOL TAG CONFIG: F77 | |
22619 _LT_EOF | |
22620 | |
22621 ;; | |
22622 | |
22623 esac | |
22624 done # for ac_tag | |
22625 | |
22626 | |
22627 as_fn_exit 0 | |
22628 _ACEOF | |
22629 ac_clean_files=$ac_clean_files_save | |
22630 | |
22631 test $ac_write_fail = 0 || | |
22632 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
22633 | |
22634 | |
22635 # configure is writing to config.log, and then calls config.status. | |
22636 # config.status does its own redirection, appending to config.log. | |
22637 # Unfortunately, on DOS this fails, as config.log is still kept open | |
22638 # by configure, so config.status won't be able to write to it; its | |
22639 # output is simply discarded. So we exec the FD to /dev/null, | |
22640 # effectively closing config.log, so it can be properly (re)opened and | |
22641 # appended to by config.status. When coming back to configure, we | |
22642 # need to make the FD available again. | |
22643 if test "$no_create" != yes; then | |
22644 ac_cs_success=: | |
22645 ac_config_status_args= | |
22646 test "$silent" = yes && | |
22647 ac_config_status_args="$ac_config_status_args --quiet" | |
22648 exec 5>/dev/null | |
22649 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
22650 exec 5>>config.log | |
22651 # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
22652 # would make configure fail if this is the last instruction. | |
22653 $ac_cs_success || as_fn_exit 1 | |
22654 fi | |
22655 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
22656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
22657 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
22658 fi | |
22659 |